摘要:
#include#includeint main(){ int n,cnt=0,i,j; scanf("%d",&n); for(i=1;i n) break; } } printf("%d\n",cnt+1); ret... 阅读全文
摘要:
#include #include #includeint f[26];int find(int pos,int top){ while(f[pos] b) return a; else return b;}int main(){ int top=0,i... 阅读全文
摘要:
#include #include int count=1;int pow1(int a,int b){ int pro=1,i; if(b==0) return 1; for(i=0;i<b;i++) { pro*=a; } retu... 阅读全文
摘要:
#include #include int main(){ float sped; int wei,sth; while(scanf("%f %d %d",&sped,&wei,&sth) != EOF) { int flag=0; if(sped... 阅读全文
摘要:
#include #include #include void reverse(char *p1,char *p2,int col){ int i; p2--; for(i=0;i<col/2;i++) { char t; t = *p1; ... 阅读全文
摘要:
#include #include int main(){ int n,x,y; scanf("%d",&n); while(n--) { scanf("%d %d",&x,&y); if(x>=y) printf("MMM ... 阅读全文
摘要:
#include #include int main(){ int n,i; while(scanf("%d",&n)!=EOF) { int temp=0,sum=0,s,t; if(n==-1) break; fo... 阅读全文
摘要:
#include #include #includeint main(){ int n,i,set_num=0; char arr1[15][26],arr2[15][26]; char *p1_fir,*p1_sec,*p2_sta,*p2_end; while(scanf... 阅读全文