#include<bits/stdc++.h>usingnamespacestd;intid[30];charletter[10];intmain(){//数据输入charinput[1000];while(scanf("%s",input)==1&&input[0]!='#'){intn=0;for(chartmp='A';tmp<='Z';tmp++)if(s
YouhavebeenemployedbytheorganisersofaSuperKryptonFactorContestinwhichcontestantshaveveryhighmentalandphysicalabilities.Inonesectionofthecontestthecontestantsaretestedontheirabilitytorecallasequenaceof
#include<iostream>#include<cstdio>usingnamespacestd;voidprint_subset_zl(intn,int*A,intcur){//增量构造法for(inti=0;i<cur;i++)printf("%d",A[i]);printf("\n");//每次都要输出ints=cu
原题描述: 输入k,输出满足x>=y并且1/k=1/x+1/y的所有数据; 首先是确定枚举的边界x>=y 可得1/k<=2/y ∴y<=2k 又有x>=y 可以让y从k+1开始枚举,看x的是否为整数,如果是则输出结果
贪心算法
排序
二叉树
二叉树的遍历
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号