diff --git "a/test.jsonl" "b/test.jsonl" new file mode 100644--- /dev/null +++ "b/test.jsonl" @@ -0,0 +1,12000 @@ +{"label": "81", "index": "40000", "code": "void main()\n{\nint f(int b[5][5],int n,int m);\nint a[5][5];\nint i,j,k,m,n,t;\nfor(i=0;i<5;i++)\n for (j=0;j<5;j++)\n\t scanf(\"%d\",&a[i][j]);\nscanf(\"%d %d\",&n,&m);\nk=f(a,n,m);\nif(k==0)\n printf(\"error\");\nif (k==1)\n{ for (j=0;j<5;j++)\n\t { t=a[n][j];\n a[n][j]=a[m][j];\n\t a[m][j]=t;}\n for (i=0;i<5;i++)\n {for (j=0;j<4;j++)\n\t\t printf(\"%d \",a[i][j]);\n\t printf(\"%d\\n\",a[i][4]);}\n}\n}\n\nf(int b[5][5],int n,int m)\n{\nint i,j,k,e,f;\ne=0;f=0;\nfor(i=0;i<5;i++)\n for(j=0;j<5;j++)\n\t if (b[i][j]==n)\n\t {e=1;\n\t break;}\nfor (i=0;i<5;i++)\n for (j=0;j<5;j++)\n\t if (b[i][j]==m)\n\t {f=1;\n\t break;}\nif(e==1&&f==1&&n<5&&m<5)\n k=1;\nelse k=0;\nreturn (k);\n\n\n}"} +{"label": "81", "index": "40001", "code": "int main()\n{\nint n,a[5][5],i,j,m,k;\nfor(i=0;i<5;i++)\n{for(j=0;j<5;j++){\nscanf(\"%d\",&a[i][j]);}}\n\n\nscanf(\"%d %d\",&n,&m);\nif(m>=0&&n<5&&m<5&&n>=0)\n{\nfor(i=0;i<5;i++)\n{k=a[m][i];a[m][i]=a[n][i];a[n][i]=k;}\nfor(i=0;i<5;i++)\n{for(j=0;j<5;j++){\nif(j<=3)\nprintf(\"%d \",a[i][j]);\nelse printf(\"%d\\n\",a[i][j]);}}\nreturn 1;}\nelse printf(\"error\");\n\n\nreturn 0;}\n"} +{"label": "81", "index": "40002", "code": "void huanhang(int array[][5],int x,int y)\n{\n int j,a[1][5];\n for(j=0;j<5;j++)\n {\n a[0][j]=array[y][j];\n array[y][j]=array[x][j];\t \n array[x][j]=a[0][j];\n }\n}\nint panbie(int p,int q)\n{ \n if(p>=0 && p<5 && q>=0 && q<5)\n return(1);\n else\n return(0);\t \n}\n void main()\n{\n int i,j,n,m;\n int b[5][5];\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",&b[i][j]);\n scanf(\"%d %d\",&n,&m);\n if(panbie(n,m))\n { \n\thuanhang(b,n,m);\n for(i=0;i<5;i++)\n {\n\t printf(\"%d\",b[i][0]);\n\t for(j=1;j<5;j++)\n printf(\" %d\",b[i][j]);\n printf(\"\\n\");\n }\n }\n else\n printf(\"error\");\n printf(\"\\n\");\n }"} +{"label": "81", "index": "40003", "code": "int a[5][5];\nint cha(int k,int t)\n{\n\tint *p1,*p2,temp,j;\n if(k>4||k<0||t>4||t<0)\n\t\treturn(0);\n\telse\n\t{\n\t\tp1=a[k];\n\t\tp2=a[t];\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=*(p1+j);\n *(p1+j)= *(p2+j);\n *(p2+j)=temp;\n\t\t}\n\t\treturn(1);\n\t}\n}\nvoid main()\n{ \n\tint m,n,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif(cha(n,m)==1)\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tprintf(\"%d %d %d %d %d\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\tprintf(\"\\n\");\n\t\t}\n\tif(cha(n,m)==0)\n\t\tprintf(\"error\\n\");\n}\t\t\n\n"} +{"label": "81", "index": "40004", "code": "int Array(int a[5][5],int i,int j)\n{\n\tint k,t;\n\tif(i<5&&j<5)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tt=a[i][k];\n\t\t\ta[i][k]=a[j][k];\n\t\t\ta[j][k]=t;\n\t}\treturn (1);\n\t}\n\telse\n\t\treturn (0);}\nvoid main()\n\n\n{\n\tint s[5][5];\n\tint n,m;\n\tint p,q;\n\tfor(p=0;p<5;p++)\n\t{\tfor(q=0;q<5;q++)\n\t{\tscanf(\"%d\",&s[p][q]);}}\n\t\tscanf(\"%d %d\",&n,&m);\n \n\tif(Array(s,n,m)==0)\n\t{\tprintf(\"error\");}\n\telse\n\t{\n\t\tfor(p=0;p<5;p++)\n\t\n\t\t{ \n\t\t\tfor(q=0;q<5;q++)\n\t\t\t{\n\t\t\t\tif(q<4)\n\t\t\t\tprintf(\"%d \",s[p][q]);\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",s[p][q]);}\n\t\t}\n\t}\n}\t\n\n\n\t\n\n\n"} +{"label": "81", "index": "40005", "code": "int sz[5][5];\nint i,j,e;\nint h(int m,int n);\nint main(){\n\tint x,y,a;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d \",&sz[i][j]);\n\t\t}\n\t\t\n\t}\n\tscanf(\"%d%d\",&x,&y);\n\ta=h(x,y);\n\tif(a==0){\n\t\tprintf(\"error\");\n\t}\n\telse{\n\t\tfor(i=0;i<5;i++){\n\t\t for(j=0;j<4;j++){\n\t\t\t printf(\"%d \",sz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t}\n\t}\nreturn 0;\n}\nint h(int m,int n){\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m<0||m>4||n<0||n>4){\n\t\treturn 0 ;\n\t}\n\telse{\n\t\tfor(i=0;i<5;i++){\n\t\t\te=sz[m][i];\n\t\t\tsz[m][i]=sz[n][i];\n\t\t\tsz[n][i]=e;\n\t\t}\n\t\treturn 1;\n\t}\n}\n\n\n\n\n\t\t\n\n \n\t\n\n\n\n\n\n\n\n\n\n\n"} +{"label": "81", "index": "40006", "code": "int M[5][5];\nint main()\n{\n\tint i=0,j=0,k,n,m,d=0;\n\tint f(int p, int q);\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&M[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tk=f(n,m);\n\tif(k==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",M[i][j]);\n\t\t\t\td+=1;\n\t\t\t\tif(d%5==0)\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\telse \n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t}\n\t}\n}\n\nint f(int p, int q)\n{\n\tint e,i=0,j=0,n,m,a;\n\tif(q>=0&&p<5&&p>=0&&q<5)\n\t{\n\t\ta= 1;\n\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\te=M[p][i];\n\t\t\t\tM[p][i]=M[q][i];\n\t\t\t\tM[q][i]=e;\n\t\t\t}\n\t}\n\telse a= 0;\n\treturn a;\n}"} +{"label": "81", "index": "40007", "code": "\nint a[5][5],t;\n\nint main()\n{\n int i,j,m,n;\n for(i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n {\n cin>>a[i][j];\n }\n }\n cin>>n>>m;\n if (n<0 || n>4 || m<0 || m>4) cout<<\"error\"<4||n>4)\n {\n printf(\"error\");\n return 0;\n }\n else if(m<5&&n<5)\n {\n int a[5];\n for(int col=0;col<5;col++)\n {\n a[col]=shuzu[n][col];\n shuzu[n][col]=shuzu[m][col];\n shuzu[m][col]=a[col];\n }\n }\n for(row=0;row<5;row++)\n {\n for(int col=0;col<4;col++)\n {\n printf(\"%d \",shuzu[row][col]);\n }\n printf(\"%d\",shuzu[row][4]);\n printf(\"\\n\");\n }\n return 0;\n}"} +{"label": "81", "index": "40009", "code": "int array[5][5];\nint pp;\n\nint pd(int n,int m)\n{\n\tif ((n>=0)&&(n<=4)&&(m>=0)&&(m<=4))\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\n\nvoid change(int n,int m)\n{\n\tint t,i;\n\tif (pd(n,m)!=0)\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tt = array[n][i];\n\t\t\tarray[n][i] = array[m][i];\n\t\t\tarray[m][i] = t;\n\t\t}\n\telse\n\t{\n\t\tpp = 0;\n\t\tprintf(\"error\");\n\t}\n}\n\nvoid print(int row)\n{\n\tint j;\n\tfor (j=0;j<4;j++)\n\t\tprintf(\"%d \",array[row][j]);\n\tprintf(\"%d\\n\",array[row][4]);\n}\n\nint main()\n{\n\tint i,j,n,m,t;\n\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&array[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tpp = 1;\n\tchange(n,m);\n\n\tif (pp!=0)\n\tfor (i=0;i<5;i++)\n\t{\t\n\t\tprint(i);\n\t}\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40010", "code": "int qq(int m,int n)\n{if(m<5&&m>=0&&n<5&&n>=0)\n return 1;\n else\n return 0;\n \n}\nint main()\n{\n int a,b,c,d[5][5],i,j;\n \n for(i=0;i<5;i++)\n {\n scanf(\"%d%d%d%d%d\",&d[i][0],&d[i][1],&d[i][2],&d[i][3],&d[i][4]);\n }\n scanf(\"%d %d\",&a,&b);\n c=qq(a,b);\n if(c==0)\n printf(\"error\");\n else\n {\n for(i=0;i<5;i++)\n {\n if(i==a)\n printf(\"%d %d %d %d %d\\n\",d[b][0],d[b][1],d[b][2],d[b][3],d[b][4]);\n else if(i==b)\n \n printf(\"%d %d %d %d %d\\n\",d[a][0],d[a][1],d[a][2],d[a][3],d[a][4]);\n else\n printf(\"%d %d %d %d %d\\n\",d[i][0],d[i][1],d[i][2],d[i][3],d[i][4]);\n }\n \n }\n \n getchar();getchar();getchar(); getchar();getchar();getchar(); getchar();getchar();getchar(); getchar();getchar();getchar(); getchar();getchar();getchar();\n \n}"} +{"label": "81", "index": "40011", "code": "int panduan(int n,int m)\n{\n\tint y;\n\t\n\n\t\n\n\t\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t\t\n\t\t\ty=1;\n \n\t\t\n\n\t\telse y=0;\n\t\treturn y;\n\t\t\n\n}\n \nvoid main()\n{\n\tint puanduan(int n,int m);\n\tint y,i,j,a[5][5]={0},b[5][5]={0},c[5]={0};\n\tint m,n;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t\tb[i][j]=a[i][j];\n\t\t}\n\t\tscanf(\"%d %d\",&n,&m);\n\t\t\n\ty=panduan(n,m);\n\tif(y==1)\n\t{for(i=0;i<5;i++)\n\t\t{\n\t\t\tc[i]=a[n][i];\n\t\t\tb[n][i]=a[m][i];\n\t\t\tb[m][i]=a[n][i];\n\t\t}\n\t for(i=0;i<5;i++)\n\t\t printf(\"%d %d %d %d %d\\n\",b[i][0],b[i][1],b[i][2],b[i][3],b[i][4]);\n\n\t}\n\t\n \n\telse \n\t\tprintf(\"error\");\n}\n\t\t\t\n\n"} +{"label": "81", "index": "40012", "code": "\n\nint main()\n{\n int judge(int array[][5],int x,int y);\n int sz[5][5],n,m,i,j;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&sz[i][j]);\n } \n }\n scanf(\"%d%d\",&n,&m);\n if(judge(sz,n,m)==0){\n printf(\"error\\n\");\n }\n else{\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",sz[i][j]);\n }\n for(j=4;j<5;j++){\n printf(\"%d\",sz[i][j]);\n } \n printf(\"\\n\");\n }\n }\n \n return 0;\n }\nint judge(int array[][5],int x,int y)\n{\n int a,t[5],i;\n a=(x>=0&&x<=4&&y>=0&&y<=4)?1:0;\n if(a==1){\n for(i=0;i<5;i++){\n t[i]=array[x][i];\n array[x][i]=array[y][i];\n array[y][i]=t[i];\n }\n }\n return a;\n }"} +{"label": "81", "index": "40013", "code": "// ¾ØÕ\u00f3½»»»Ðеڶþµ¯.cpp : Defines the entry point for the console application.\n//\n\n\nint main(int argc, char* argv[])\n{\n\tint sz[5][5],m,n,i,j,e;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m>=0&&m<=4&&n>=0&&n<=4){\n\t\tfor(i=0;i<5;i++){\n\t\t\te=sz[m][i];\n\t\t\tsz[m][i]=sz[n][i];\n\t\t\tsz[n][i]=e;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j==0)printf(\"%d\",sz[i][j]);\n\t\t\t\telse if(j==4)printf(\" %d\\n\",sz[i][j]);\n\t\t\t\telse printf(\" %d\",sz[i][j]);\n\t\t\t}\n\t\t}\n\t}else printf(\"error\");\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40014", "code": "void main()\n{\nint check(int b[5][5],int k);\nint i,j,k,m,n,t;\n\nint a[5][5];\nfor(i=0;i<5;i++)\n for(j=0;j<5;j++)\n\t scanf(\"%d\",&a[i][j]);\nscanf(\"%d %d\",&n,&m);\nif(check(a,n)==1&&check(a,m)==1)\n{ for(i=0;i<5;i++)\n {\n t=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=t;\n }\nfor(i=0;i<5;i++)\n{for(j=0;j<5;j++)\n\t { printf(\"%d\",a[i][j]);\n if(j<4)\n\t\t printf(\" \");}\nprintf(\"\\n\");}\n}\nelse\nprintf(\"error\");\n}\n\ncheck(int b[5][5],int k)\n{\nint flag=0;\nif (k>=0&&k<=4)\n flag=1;\nreturn(flag);\n\n}"} +{"label": "81", "index": "40015", "code": "void main ()\n{\n\tint f(int s[5][5],int x,int y);\n\tint a[5][5],m,n,i,j,t;\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf (\"%d\",&a[i][j]);\n\t\tscanf (\"%d %d\",&m,&n);\n\t\tt=f(a,m,n);\n\t\tif (t==0)\n\t\t\tprintf(\"error\\n\");\n\t\tif (t==1)\n\t\t\tfor (i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tfor (j=0;j<4;j++)\n\t\t\t\t\tprintf(\"%d \",a[i][j]); \n\t\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n}\n int f(int s[5][5],int x,int y)\n {\n\t int term,i;\n\t if (x>4||y>4)return 0;\n\t else\n\t {\n\t\t for (i=0;i<5;i++)\n\t\t {\n\t\t\t term=s[x][i];\n\t\t s[x][i]=s[y][i];\n\t\t s[y][i]=term;\n\t\t }\n\t } return 1;\n }\n\n"} +{"label": "81", "index": "40016", "code": "int f(int c[][5],int a,int b)\n{\n\tint i,j,k;\n\tif(a>4||b>4) k=0;\n\telse\n\t{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tj=c[a][i];\n\t\tc[a][i]=c[b][i];\n\t\tc[b][i]=j;\n\t}\n\tk=1;\n\t}\n\treturn(k);\n}\nvoid main()\n{\n\tint i,j,m,n,d[5][5];\n for(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n\tscanf(\"%d\",&d[i][j]);\n scanf(\"%d%d\",&m,&n);\n\tif(f(d,m,n)==0) printf(\"error\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<4;j++)\n\tprintf(\"%d \",d[i][j]);\n\t\t printf(\"%d\",d[i][4]);\n\t\t printf(\"\\n\");\n\t\t}\n}"} +{"label": "81", "index": "40017", "code": "int f(int s[5][5],int n, int m)\n{\n\tint i,j,a[5][5];\n\tif(m<5&&n>=0)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ta[0][j]=s[n][j];\n\t\t\ts[n][j]=s[m][j];\n\t\t\ts[m][j]=a[0][j];\n\t\t}\n\t\treturn 1;\n\t}\n\tif(m>=5||n<0)\n\t{\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tint f(int s[5][5],int n, int m);\n\tint i,j,n,m,s[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(f(s,n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",s[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",s[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\tif(f(s,n,m)==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40018", "code": "int f(int c[5][5],int n,int m)\n{\n if(m>=5||n>=5) return 0;\n else {\n int i,e;\n for(i=0;i<5;i++){\n e=c[n][i];\n c[n][i]=c[m][i];\n c[m][i]=e;\n }\n return c[5][5];\n \n }\n }\nint main(){\n int c[5][5],i,j,a,m,n;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&c[i][j]);}}\n scanf(\"%d%d\",&n,&m);\n a=f(c,n,m);\n if(a==0){printf(\"error\");}\n else \n for(i=0;i<5;i++){printf(\"%d\",c[i][0]);\n for(j=1;j<5;j++){\n printf(\" %d\",c[i][j]);}\nprintf(\"\\n\");}\n return 0;\n }\n\n"} +{"label": "81", "index": "40019", "code": "int main()\n{\n\tint a,b,i,j;\n\tint s[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&a,&b);\n\tif((a<5)&&(b<5))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tif(i==a)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",s[b][j]);\n\t\t\t\t}\n\t\t\t\tif(i==b)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",s[a][j]);\n\t\t\t\t}\n\t\t\t\tif((i!=a)&&(i!=b))\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",s[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i==a)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",s[b][4]);\n\t\t\t}\n\t\t\tif(i==b)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",s[a][4]);\n\t\t\t}\n\t\t\tif((i!=a)&&(i!=b))\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",s[i][4]);\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40020", "code": "int hanshu(int m,int n){\n\tif(m>=0&&m<5&&n>=0&&n<5){\n\t\treturn 1;\n\t}\n\telse{\n\t\treturn 0;\n\t}\n}\nint main(){\n\tint m,n;\n\tint sz[5][5];\n\tint sz2[5];\n\tint hang,lie;\n\tfor(hang=0;hang<5;hang++){\n\t\tfor(lie=0;lie<5;lie++){\n\t\t\tscanf(\"%d\",&sz[hang][lie]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tint result=hanshu(m,n);\n\tif(result==0){\n\t\tprintf(\"error\");\n\t}\n\telse{\n\t\tfor(lie=0;lie<5;lie++){\n\t\t\tsz2[lie]=sz[m][lie];\n\t\t\tsz[m][lie]=sz[n][lie];\n\t\t\tsz[n][lie]=sz2[lie];\n\t\t}\n\t\tfor(hang=0;hang<5;hang++){\n\t\t\tprintf(\"%d %d %d %d %d\\n\",sz[hang][0],sz[hang][1],sz[hang][2],sz[hang][3],sz[hang][4]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40021", "code": "int f(int m,int n)\n{\n\tif(m<=4&&n<=4) return 1;\n\telse return 0;\n}\nvoid main()\n{\n\tint x,y,i,j,a[5][5],c;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)scanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&x,&y);\n\tif(!f(x,y)) printf(\"error\");\n\telse {\n\t\tfor(i=0;i<5;i++){\n\t\t\tc=a[x][i];\n\t\t\ta[x][i]=a[y][i];\n\t\t\ta[y][i]=c;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j==0)printf(\"%d\",a[i][j]);\n\t\t\t\telse printf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");}\n\t}\n}\n\n\n"} +{"label": "81", "index": "40022", "code": "int p(int x,int y,int c[5][5])\n{\n\tint i=0,b;\n\tif(x>=0&&x<5&&y>=0&&y<5)\n\t{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tb=c[x][i];\n\t\tc[x][i]=c[y][i];\n\t\tc[y][i]=b;\n\t}\n\treturn(1);\n\t}\n\telse\n\t\treturn(0);\n}\nvoid main()\n{\n\tint n,m,a[5][5],i,j,k=0,l=0;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(p(m,n,a)==1)\n \tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\telse\n\t\tprintf(\"error\");\n}"} +{"label": "81", "index": "40023", "code": "\nint panduan (int n ,int m)\n{\n\tif(n>4 || n<0 || m<0 || m>4)\n\t\treturn(0);\n\telse if(n>=0 && n<=4 && m>=0 && m<=4)\n\t\treturn(1);\n\telse return(2);\n}\n\nvoid main()\n{\n\tint a[5][5];\n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tint n,m;\n\tscanf(\"%d %d\",&n,&m);\n\tint t[5];\n\tif(panduan(n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=t[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t for(j=1;j<5;j++)\n\t\t\t {\n\t\t\t printf(\" %d\",a[i][j]);\n\t\t\t }\n\t\t\t printf(\"\\n\");\n\t\t}\n\t}\n\telse if(panduan(n,m)==0)\n\t\tprintf(\"error\\n\");\n}"} +{"label": "81", "index": "40024", "code": "int num(int a,int b)\n{\n\tint p;\n\tif(a<=4&&b<=4)\n\t\tp=1;\n\telse\n\t\tp=0;\n\treturn(p);\n}\nvoid main()\n{\n\tint num(int a,int b);\n\tint a[5][5];\n\tint i,j,m,n,c,d=0,t=0;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tc=num(m,n);\n\tif(c==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j%5-4!=0)\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\td=d+1;\n\t\t\t\tif(d%5==0)\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t}\n}\n\t"} +{"label": "81", "index": "40025", "code": "int trans(int a[][5],int n,int m)\n{\nif (0<=n&&n<5&&0<=m&&m<5)\n{\n int i,tmp;\n for(i=0;i<5;i++)\n {\n tmp=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=tmp;\n} \nreturn 1;\n}\nelse \nreturn 0;\n}\nint main()\n{\n int i,j,value[5][5];\nint n,m;\n for (i=0;i<5;i++)\n for(j=0;j<5;j++)\n{\nscanf(\"%d\",&value[i][j]);\n}\nscanf(\"%d %d\",&n,&m);\nif (trans(value,n,m)==0)\nprintf(\"error\\n\");\nelse\n{\n for (i=0;i<5;i++)\nprintf(\"%d %d %d %d %d\\n\",value[i][0],value[i][1],value[i][2],value[i][3],value[i][4]);\n}\nreturn 0;\n}"} +{"label": "81", "index": "40026", "code": "int main(){\n\tint i,n,m,j,k,r;\n\tint sz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(!(n>=0&&n<=4&&m>=0&&m<=4)){\n\tprintf(\"error\");\n\treturn 0;\n\t}else{\n\t\tm=n>m?n:m;\n\t\tn=m4||n>4)\n\t\treturn (0);\n\telse\n\t\treturn (1);\n}\nvoid main()\n{\n\tint array[5][5],i,j,n,m,mid;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&array[i][j]);\n\t\tscanf(\"%d%d\",&n,&m);\n\t\tif(f(array,n,m))\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tmid=array[n][j];\n\t\t\t\tarray[n][j]=array[m][j];\n\t\t\t\tarray[m][j]=mid;\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\t\tprintf(\"%d \",array[i][j]);\n\t\t\t\tprintf(\"%d\",array[i][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tprintf(\"error\");\n}\n\t\t\t\n\t\t\t\t\n\t\n\n"} +{"label": "81", "index": "40028", "code": "int main(){\n\tint i,a[5][5],b[5],j,k,z=0,n,m;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>=0&&n<5&&m>=0&&m<5){\n\t\tfor(k=0;k<5;k++){\n\t\t\tb[k]=a[m][k];\n\t\t\ta[m][k]=a[n][k];\n\t\t\ta[n][k]=b[k];\n\t\t}\n\t\tz=1;\n\t}\n\tif(z==0){\n\t\tprintf(\"error\");\n\t}\n\tif(z==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<4;j++){\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\" %d\\n\",a[i][4]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40029", "code": "void main()\n{\n\tint a[5][5],b,c,d,e;\n\tint huanh(int z[][5],int x,int y);\n\tfor(d=0;d<5;d++)\n\t{\n\t\tfor(e=0;e<5;e++)\n\t\t\tscanf(\"%d\",&a[d][e]);\n\t}\n\tscanf(\"%d%d\",&b,&c);\n\td=huanh(a,b,c);\n\tif(d==0)\n\t\tprintf(\"error\");\n\tif(d!=0)\n\t{\n\t\tfor(d=0;d<5;d++)\n\t\t\tfor(e=0;e<5;e++)\n\t\t\t\tprintf(\"%d%c\",a[d][e],e<4?' ':'\\n');\n\t}\n}\nint huanh(int z[][5],int x,int y)\n{\n\tint i,t;\n\tif(x<5&&x>=0&&y<5&&y>=0)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=z[x][i];\n\t\t\tz[x][i]=z[y][i];\n\t\t\tz[y][i]=t;\n\t\t}\n\t\treturn(1);\n\t}\n\telse\n\t\treturn(0);\n}\n\n\n\n"} +{"label": "81", "index": "40030", "code": "\nvoid main()\n{\n\tint change(int an[5][5],int a,int b);\n\t\n\tint x,y,a[5][5],i,j,c,t;\n\t\n\t for(i=0;i<5;i++)\n\t {\n\t\t for(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t }\n\t\t\n\tscanf(\"%d%d\",&x,&y);\n\tc=change(a[5][5],x,y);\n\tif(c==0)\n\t\tprintf(\"error\");\n\tif(c==1)\n\t{\n\tfor(j=0;j<5;j++)\n\t{ t=a[x][j];\n\t a[x][j]=a[y][j];\n\t a[y][j]=t;\n\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\n\tprintf(\"%d \",a[i][j]);\n\tprintf(\"%d\\n\",a[i][4]);\n\t}\n\t}\n}\n\t\nint change(int an[5][5],int a,int b)\n{\n\tint c;\n\n\tif(a<0||a>4||b<0||b>4)\n\t\treturn c=0;\n\telse\n\t\treturn c=1;\n}\n\n"} +{"label": "81", "index": "40031", "code": "int trans(int n,int m,int (*a)[5])\n{\n\tint temp,j,i=0;\n\tif(0<=n&&n<=4&&0<=m&&m<=4)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=*(*(a+n)+j);\n\t\t\t*(*(a+n)+j)=*(*(a+m)+j);\n\t\t\t*(*(a+m)+j)=temp;\n\t\t}\n\t\ti=1;\n\t}\n\treturn(i);\n}\nint main()\n{\n\tint m,n,a[5][5],t,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(a+i)+j);\n\tscanf(\"%d%d\",&n,&m);\n\tt=trans(n,m,a);\n\tif(t==0)\n\t\tprintf(\"error\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j<4)\n\t\t\t\tprintf(\"%d \",*(*(a+i)+j));\n\t\t\t else\n\t\t\t\t\tprintf(\"%d\\n\",*(*(a+i)+j));\n\t\t\t}\n\nreturn 0;\n}\n\n\n"} +{"label": "81", "index": "40032", "code": "int f1(int n,int m)\n{\n\tif(n>=0 && n<5 && m>=0 && m<5)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\nint main()\n{\n\tint a[5][5],n,m,temp,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif(f1(n,m)==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=temp;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40033", "code": "int a[5][5];\nint n,m;\nint jiaohuan(int a[5][5],int n,int m)\n{\n\tint i,b[5];\n\tif(n<0||n>=5||m<0||m>=5) return 0;\n\telse \n\t{ \n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=b[i];\n\t\t}\n\t}\n\treturn 1;\n}\nint main()\n{\n\tint i=0,temp;\n\tint j=0;\n for(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n cin>>a[i][j];\n\t\t cin>>n>>m;\n\t\t temp=jiaohuan(a,n,m);\n\t\t if(temp==0) cout<<\"error\"<4||n<0||m>4||m<0){\n\t\t\t\tprintf(\"error\");\n\t\t\t}else{\n\t\t\t\ta=sz[n][0];\n\t\t\t\tb=sz[n][1];\n\t\t\t\tc=sz[n][2];\n\t\t\t\td=sz[n][3];\n\t\t\t\te=sz[n][4];\n\t\t\t\tsz[n][0]=sz[m][0];\n\t\t\t\tsz[n][1]=sz[m][1];\n\t\t\t\tsz[n][2]=sz[m][2];\n\t\t\t\tsz[n][3]=sz[m][3];\n\t\t\t\tsz[n][4]=sz[m][4];\n\t\t\t\tsz[m][0]=a;\n\t\t\t\tsz[m][1]=b;\n\t\t\t\tsz[m][2]=c;\n\t\t\t\tsz[m][3]=d;\n\t\t\t\tsz[m][4]=e;\n\tfor(row=0;row=0&&n<5&&m>=0&&m<5)\n\t\treturn(1);\n\telse return(0);\n}\nvoid move(int a[5][5],int n,int m)\n{ int t,j,*p;\n p=&a[0][0];\n \n \n\t\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=*(p+5*n+j);\n\t\t\t*(p+5*n+j)=*(p+5*m+j);\n\t\t\t*(p+5*m+j)=t;\n\t\t}\n}\n\t\t\n"} +{"label": "81", "index": "40036", "code": "int main(int argc, char* argv[])\n{\n\tint a[100][100],m,n,i,j,temp;\n\tfor (i=0;i<=4;i++)\n\t\tfor (j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tif (m<=4&&n<=4&&m!=n)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=a[m][j];\n\t\t\ta[m][j]=a[n][j];\n\t\t\ta[n][j]=temp;\n\t\t}\n\t for (i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse printf(\"error\");\n\treturn 0;\n}"} +{"label": "81", "index": "40037", "code": "int main()\n{\n int m,n;\n int fuck[5][5];\n int i,j,k;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&fuck[i][j]);\n }\n }\n scanf(\"%d %d\",&n,&m);\n if(m>=5||n>=5){\n printf(\"error\");\n }\n else{\n for(i=0;i<5;i++){\n k=fuck[n][i];\n fuck[n][i]=fuck[m][i];\n fuck[m][i]=k;\n }\n for(i=0;i<4;i++){\n printf(\"%d %d %d %d %d\\n\",fuck[i][0],fuck[i][1],fuck[i][2],fuck[i][3],fuck[i][4]);\n }\n printf(\"%d %d %d %d %d\",fuck[4][0],fuck[4][1],fuck[4][2],fuck[4][3],fuck[4][4]);\n }\n return 0;\n}\n\n"} +{"label": "81", "index": "40038", "code": "int change(int x,int y,int b[5][5])\n{ \n\tint z,t,k;\n\tif(x<=4&&x>=0&&y<=4&&y>=0)\n\t{\n z=1;\n\t for(k=0;k<=4;k++)\n\t {\n\t\t t=b[x][k];\n\t\t b[x][k]=b[y][k];\n\t\t b[y][k]=t;\n\t } return(z);\n\t}\n\telse \n\t{\n\t\tz=0;\n\t\treturn(z);\n\t} \n}\nvoid main()\n{\n\tint a[5][5];\n\tint i,j,m,n,d;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\td=change(m,n,a);\n if(d==1)\n\t{ \n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\telse printf(\"error\\n\");\n}\n\n"} +{"label": "81", "index": "40039", "code": "main()\n{\n\tint n,m,t,i,j,s;\n\tint exist(int n,int m);\n\tint a[5][5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t scanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tt=exist(n,m);\n\tif(t==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t s=a[n][j],a[n][j]=a[m][j],a[m][j]=s;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t printf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse printf(\"error\");\n}\n\nint exist(int n,int m)\n{\n\tint t=0;\n\tif(n<=4 && m<=4)\n\tt=1;\n\treturn(t);\n}"} +{"label": "81", "index": "40040", "code": "\n\nint change(int a[5][5],int x,int y);\nint main(int argc, char* argv[])\n{\n\tint n,m;\n\tint a[5][5],i,j;\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\tscanf(\"%d%d\",&n,&m);//????\n\t\n\n\t\t\n\tif(change(a,n,m)==1){\n\t\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tif(j!=4)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\telse\n\t\t\t\tprintf(\"%d\",a[i][j]);//??????????\n\t\t}\n\t\tprintf(\"\\n\");//????\n\t\t}\n\t}else \n\t\tprintf(\"error\\n\");\n\treturn 0;\n\t\n}\n\nint change(int a[5][5],int x,int y)//???????????????\n{\n\tint k,temp;\n\tif(x>=0&&x<5&&y>=0&&y<5){\n\t\tfor(k=0;k<5;k++){\n\t\t\ttemp=a[x][k];\n\t\t\ta[x][k]=a[y][k];\n\t\t\ta[y][k]=temp;\t\n\t\t}\n\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\n\n\n\n"} +{"label": "81", "index": "40041", "code": "\nint turn(int sz[5][5],int n,int m);\nint main()\n{\n\tint sz[5][5],i,j,n,m;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(turn(sz,n,m)){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",sz[i][j]);\t\n\t\t\t}\n\t\t\tif(j==4){\n\t\t\t\tprintf(\"%d\\n\",sz[i][j]);\n\t\t\t}\n\t\t}\t\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\n\nint turn(int sz[5][5],int n,int m){\n\tint i,temp;\n\tif((n>=0&&n<=4)&&(m>=0&&m<=4)){\n\t\tfor(i=0;i<5;i++){\n\t\t\ttemp=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=temp;\n\t\t}\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40042", "code": "/* Note:Your choice is C IDE */\nvoid main()\n{\n int n,m,i,j,f;\n int zf[5][5];\n for(i=0;i<5;i++){\n \tfor(j=0;j<5;j++){\n \t\tscanf(\"%d\",&zf[i][j]);\n \t}\n }\n scanf(\"%d %d\", &n,&m);\n if((n>=5 || n<0) || (m>=5 || m<0)){\n \tprintf(\"error\");\n }else {\n for(i=0;i<5;i++){\n \tif(i==n){\n \t\tf=m;\n \t}else if(i==m){\n \tf=n;\n \t}else {\n \tf=i;\n \t}\n \tfor(j=0;j<5;j++){\n \t\tif(j==0){\n \t\tprintf(\"%d\",zf[f][j]);\n \t\t}else if(j==4){\n \t\tprintf(\" %d\\n\", zf[f][j]);\n \t\t}else {\n \t\tprintf(\" %d\", zf[f][j]);\n \t\t}\n \t}\n }\n }\n}"} +{"label": "81", "index": "40043", "code": "int n,m;\nint a[5][5];\nvoid swap()\n{\n\tint tmp=0,i;\n\tfor(i=1;i<=5;i++)\n\t{\n\ttmp=a[n][i-1];\n\ta[n][i-1]=a[m][i-1];\n\ta[m][i-1]=tmp;\n\t}\n}\nint main()\n{\n\tint i,j;\n\tfor(i=1;i<=5;i++)\n\t\tfor(j=1;j<=5;j++)\n\t\t\tscanf(\"%d\",&a[i-1][j-1]);\n\t\tscanf(\"%d%d\",&n,&m);\n\t\tif(n>=0&&n<=4&&m>=0&&m<=4) swap();\n\t\telse \n\t\t{printf(\"error\");\n\t\treturn 0;\n\t\t}\n\tfor(i=1;i<=5;i++)\n\t\tfor(j=1;j<=5;j++)\n\t\t\tif(j!=5)\n\t\t\tprintf(\"%d \",a[i-1][j-1]);\n\t\t\telse \tprintf(\"%d\\n\",a[i-1][j-1]);\n\n\treturn 0;\n}"} +{"label": "81", "index": "40044", "code": "int f(int b[5][5],int p,int q)\n{\n int *s;\n int i,t;\n s=b;\n if((p>=0)&&(p<=4)&&(q>=0)&&(q<=4))\n {\n for(i=0;i<=4;i++)\n {\n t=*(s+p*5+i);\n *(s+p*5+i)=*(s+q*5+i);\n *(s+q*5+i)=t;\n }\n return 1;\n }\n else return 0;\n}\nvoid main()\n{\n int f(int b[5][5],int p,int q);\n int m,n,a[5][5],j,k;\n int *r;\n r=a;\n for(j=0;j<=24;j++)\n scanf(\"%d\",r+j);\n scanf(\"%d%d\",&m,&n);\n if(f(a,m,n)==1)\n for(j=0;j<=4;j++)\n {\n for(k=0;k<=3;k++)\n printf(\"%d \",*(r+j*5+k));\n printf(\"%d\\n\",*(r+j*5+4));\n } \n else\n printf(\"error\");\n}"} +{"label": "81", "index": "40045", "code": "void main(void)\n{\n\tint i,j,x,m,n,a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>=0 && m<5 && n>=0 && n<5)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tx=a[m][j];\n\t\t\ta[m][j]=a[n][j];\n\t\t\ta[n][j]=x;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}printf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\\n\");\n}"} +{"label": "81", "index": "40046", "code": "void main()\n{\n\tint a[10][10],i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tint c[10],d[10];\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tc[i]=a[n][i];\n\t\t\td[i]=a[m][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[n][i]=d[i];\n\t\t\ta[m][i]=c[i];\n\t\t}\n\t\tfor(i=0;i<4;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t\tfor(j=0;j<4;j++)\n\t\t{\n\t\t\tprintf(\"%d \",a[4][j]);\n\t\t}\n\t\tprintf(\"%d\",a[4][4]);\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n}"} +{"label": "81", "index": "40047", "code": "int main(){\n int i,n,m;\n char shuzu[6][10];\n char e[10]; \n for(i=0;i<5;i++){\n gets(shuzu[i]); \n }\n scanf(\"%d %d\",&n,&m); \n if(m<5&&m>=0&&n<5&&n>=0){\n strcpy(e,shuzu[n]);\n strcpy(shuzu[n],shuzu[m]);\n strcpy(shuzu[m],e);\n for(i=0;i<5;i++){\n puts(shuzu[i]);\n }\n }\n else\n printf(\"error\");\n \n return 0;\n}\n"} +{"label": "81", "index": "40048", "code": "int f(int a[5][5], int m, int n)\n{\n\tif (m>=0&&m<=4&&n>=0&&n<=4)\n\t\treturn(1);\n\telse return (0);\n}\nvoid main()\n{\n\tint a[5][5],m,n,i,j,p;\n\tfor (i=0;i<5;i++)\n\t for (j=0;j<5;j++)\n\t\t scanf(\"%d\", &a[i][j]);\n\t scanf(\"%d %d\",&m,&n);\n\t p=f (a[5][5],m,n);\n\t if (p==0) printf(\"error\");\n\t if (p==1) \n\t {\n\t\t for (i=0;i<5;i++)\n\t\t {\n\t\t\t int t;\n\t\t\t t=a[m][i];\n\t\t\t a[m][i]=a[n][i];\n\t\t\t a[n][i]=t;\n\t\t }\n\t for (i=0;i<5;i++)\n\t\t {\n\t for (j=0;j<4;j++)\n\t\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t printf(\"%d\", a[i][4]);\n\t\t\t printf(\"\\n\");\n\t\t }\n\t }\n}\n"} +{"label": "81", "index": "40049", "code": "int h(int m,int n){\n\tint g;\n\tif(m<=4&&m>=0&&n>=0&&n<=4){\n\t\tg=1;\n\t}\n\telse {\n\t\tg=0;\n\t}\n\treturn g;\n}\nint main () {\n\tint a[5][5],i,j,e,x,y;\n for (i=0;i<5;i++){\n\t\tfor (j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf (\"%d %d\",&x,&y);\n\tif(h(x,y)){\n\t\tfor (j=0;j<5;j++){\n\t\t\te=a[x][j];\n\t\t\ta[x][j]=a[y][j];\n\t\t\ta[y][j]=e;\n\t\t}\n\t\tfor (i=0;i<5;i++){\n\t\t\tfor (j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\t\telse {\n\t\t\tprintf(\"error\");\n\t\t}\n\t\treturn 0;\n}\n\t\n"} +{"label": "81", "index": "40050", "code": "int main()\n{\n\tint a[6][6],i,j,b,c,d,e;\n\tfor(i=1;i<=5;i++)\n\t\tfor(j=1;j<=5;j++)\n\t\t\tcin>>a[i][j];\n\tcin>>b>>c;\n\tif(b>=0&&b<=4&&c>=0&&c<=4)\n\t{\n\t\tb++;\n\t\tc++;\n\t\tfor(i=1;i<=5;i++)\n\t\t{\n\t\t\td=a[b][i];\n\t\t\ta[b][i]=a[c][i];\n\t\t\ta[c][i]=d;\n\t\t}\n\t\tfor(i=1;i<=5;i++)\n\t\t{\n\t\t\tfor(j=1;j<=5;j++)\n\t\t\t{\n cout<-1&&n>-1)\n\t{\n\t for(j=0;j<5;j++)\n\t\t {\n\t\t\t t[j]=sz[m][j];\n\t\t\t sz[m][j]=sz[n][j];\n sz[n][j]=t[j];\n\t\t }\n\t for(i=0;i<4;i++)\n\t\t {\n\t\t for(j=0;j<4;j++)\n\t\t {\n\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t }\n\t\t printf(\"%d\\n\",sz[i][4]);\n\t\t }\nfor(j=0;j<4;j++)\nprintf(\"%d \",sz[4][j]);\nprintf(\"%d\",sz[4][4]);\n}\nif(m>4||m<0||n>4||n<0)\nprintf(\"error\");\nreturn 0;\n}"} +{"label": "81", "index": "40052", "code": "int main()\n{\n\tint a[5][5],m,n,i,j,(*p)[5],temp;\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",(*(p+i)+j));\n\t}\n scanf(\"%d %d\",&m,&n);\n\tif(n>4||n<0||m>4||m<0) printf(\"error\\n\");\n\telse{\n\tfor(i=0;i<5;i++)\n\t{\n\t\ttemp=*(*(p+m)+i);\n\t\t*(*(p+m)+i)=*(*(p+n)+i);\n\t\t*(*(p+n)+i)=temp;\n\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tif(j==0) printf(\"%d\",*(*(p+i)+j));\n\t\t\telse printf(\" %d\",*(*(p+i)+j));\n\t\tprintf(\"\\n\");\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40053", "code": "main()\n{int m,n,array[5][5];\nint *p;\nfor(p=array[0];p4||n<0||n>4){printf(\"error\");return 0;}\nint i,t;\nfor(i=0;i<5;i++)\n\t{t=array[m][i];array[m][i]=array[n][i];array[n][i]=t;\n\t}\n\nfor(p=array[0];p=0&&n<=4&&m>=0&&m<=4) return(1);\n else return(0);\n}\nvoid main()\n{\n int a[5][5],b[5],*p,*q,i,j,n,m;\n for(i=0;i<5;i++) for(j=0;j<5;j++) scanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&n,&m);\n if(f(n,m)==0) printf(\"error\");\n else\n {\n q=b;\n for(p=a[n];p=0&&x<=4&&y>=0&&y<=4)\n {\n for(j=0;j<5;j++)\n {\n p[j]=&(s[x][j]);\n }\n for(j=0;j<5;j++)\n {\n q[j]=&(s[y][j]);\n }\n for(j=0;j<5;j++)\n {\n int e;\n e=*p[j];\n *p[j]=*q[j];\n *q[j]=e;\n }\n \n for(j=0;j<5;j++)\n {\n for(k=0;k<4;k++)\n {\n printf(\"%d \",s[j][k]);\n }\n printf(\"%d\\n\",s[j][k]);\n }\n \n \n \n \n }else{\n printf(\"error\\n\");\n }\n return 0;\n}"} +{"label": "81", "index": "40057", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,m,i,j;\n\tint a[5][5];\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\n\tif(n<5&&n>=0&&m<5&&m>=0)\n\t{\n\t\tfor(i=0;i=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t\tint b[5];\n\t\tint j;\n\t\tfor(j=0;j<=4;j++)\t\n\t\t{\n\t\t\tb[j]=*p[m][j];\n\t\t\t*p[m][j]=*p[n][j];\n\t\t\t*p[n][j]=b[j];\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nvoid main()\n{\n\tint a[5][5],*p[5][5];\n\tint x,y;\n\tfor(x=0;x<=4;x++)\n\t{\n\t\tfor(y=0;y<=4;y++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[x][y]);\n\t\t\tp[x][y]=&a[x][y];\n\t\t}\n\t}\n\tint m,n,re;\n\tscanf(\"%d %d\",&m,&n);\n\tre=f(p,m,n);\n\tif(re==0) printf(\"error\\n\");\n\telse\n\t{\n\t\tfor(x=0;x<=4;x++)\t\t\n\t\t{\n\t\t\tfor(y=0;y<=3;y++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",*p[x][y]);\t\t\t\t\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",*p[x][y]);\n\t\t}\n\t}\n}\n\n"} +{"label": "81", "index": "40059", "code": "int in_or_not(int n,int m);\nint main()\n{\n\tint data[5][5],temp[5];\n\tint n,m,i,j,result;\n\tfor(j=0;j<5;j++){\n\t\tfor(i=0;i<5;i++){\n\t\t\tscanf(\"%d\",&data[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tresult=in_or_not(n,m);\n\tif(result==0){\n\t\tprintf(\"error\");\n\t}\n\tif(result==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\ttemp[i]=data[i][n];\n\t\t\tdata[i][n]=data[i][m];\n\t\t\tdata[i][m]=temp[i];\n\t\t}\n\t\tfor(j=0;j<5;j++){\n\t\t\tprintf(\"%d %d %d %d %d\\n\",data[0][j],data[1][j],data[2][j],data[3][j],data[4][j]);\n\t\t}\n\t}\n\treturn 0;\n}\nint in_or_not(int n,int m){\n\tif(n>=0&&n<=4&&m>=0&&m<=4){\n\t\treturn 1;\n\t}else\n\t\treturn 0;\n}"} +{"label": "81", "index": "40060", "code": "int jz(int *p,int n,int m)\n{\n\tint q, i;\n\tif(m<=4 && m>=0 && n<=4 && n>=0)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tq=*(p+n*5+i);\n\t\t\t*(p+n*5+i)=*(p+m*5+i);\n\t\t\t*(p+m*5+i)=q;\n\t\t}\t\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\nint main()\n{\n\tint a[5][5];\n\tint i,j,x,y,r;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&x,&y);\n\tr=jz(a,x,y);\n\tif(r==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "81", "index": "40061", "code": "int f(int n,int m,int (*p)[5])\n{\n\tint t,i;\n\tif(0<=m&&m<5&&0<=n&&n<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=*(*(p+m)+i);\n\t\t\t*(*(p+m)+i)=*(*(p+n)+i);\n\t\t\t*(*(p+n)+i)=t;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nint main()\n{\n\tint a[5][5];\n\tint i,j,flag,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(a+i)+j);\n\tscanf(\"%d %d\",&n,&m);\n\tflag=f(n,m,a);\n\tif(flag==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j==4) printf(\"\\n\");\n\t\t\t\telse printf(\" \");\n\t\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40062", "code": "int main(){\n int n,m,a[5][5],i,j,t;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&(a[i][j]));\n }\n }\n scanf(\"%d %d\",&n,&m);\n if(n>=0&&n<=4&&m>=0&&m<=4){\n for(i=0;i<5;i++){\n t=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=t;\n }\n for(j=0;j<4;j++){\n printf(\"%d \",a[0][j]);\n }\n printf(\"%d\\n\",a[0][4]);\n for(j=0;j<4;j++){\n printf(\"%d \",a[1][j]);\n }\n printf(\"%d\\n\",a[1][4]);\n for(j=0;j<4;j++){\n printf(\"%d \",a[2][j]);\n }\n printf(\"%d\\n\",a[2][4]);\n for(j=0;j<4;j++){\n printf(\"%d \",a[3][j]);\n }\n printf(\"%d\\n\",a[3][4]);\n for(j=0;j<4;j++){\n printf(\"%d \",a[4][j]);\n }\n printf(\"%d\\n\",a[4][4]);\n }else{\n printf(\"error\");\n }\n return 0;\n}\n"} +{"label": "81", "index": "40063", "code": "\nint panduan(int m,int n)\n{\n\n\tif(m>4)\n\t\treturn 0;\n\tif(n>4)\n\t\treturn 0;\n\t\n\treturn 1;\n}\nvoid main()\n{\n\tint i,j;\n\tint a[5][5],c[5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\n\tint m,n;\n\tscanf(\"%d%d\",&m,&n);\n\tif(panduan(m,n)==0)\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n\telse\n\t{\n\t\t\tfor(i=0;i<5;i++)\n\t{\n\t\tc[i]=a[m][i];\n\t\ta[m][i]=a[n][i];\n\t\ta[n][i]=c[i];\n\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\n\t}\n}"} +{"label": "81", "index": "40064", "code": "int main(){\nint u[5][5],i,j;\nfor(i=0;i<5;i++)\n{\n for(j=0;j<5;j++)\n {\n scanf(\"%d\",&u[i][j]);\n }\n}\nint n,m;\nscanf(\"%d%d\",&m,&n);\nif(n>4||m>4)\n{\n\tprintf(\"error\\n\");\n}\nelse \n{\nint t;\nt=m;\nm=n;\nn=t;\nfor(i=0;i=0&&a<=4&&b>=0&&b<=4){\n\tint h[5];\n\tfor(i=a;;){\n\t\tfor(j=0;j<=4;j++){\n\t\t\th[j]=k[i][j];\n\t\t\tk[i][j]=k[b][j];\n\t\t\tk[b][j]=h[j];\n\t\t}\n\t\tbreak;\n\t}\n\tfor(i=0;i<=4;i++){\n\tfor(j=0;j<=4;j++){\n\t\tif(j==0)\n\t\t\tprintf(\"%d\",k[i][j]);\n\t\telse if(j==4)\n\t\t\tprintf(\" %d\\n\",k[i][j]);\n\t\telse\n\t\t\tprintf(\" %d\",k[i][j]);\n\t}\n}\n}\nelse\nprintf(\"error\");\n\treturn 0;\n}"} +{"label": "81", "index": "40066", "code": "int exchange(int num[5][5],int p,int q);\nint main()\n{\n\tint i,p,q,num[5][5],j,pan;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tcin>>num[i][j];\n\tcin>>p>>q;\n\tpan=exchange(num,p,q);\n\tif(pan==0)\n\t\tcout<<\"error\"<=0&&p<=4&&q>=0&&q<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=num[p][i];\n\t\t\tnum[p][i]=num[q][i];\n\t\t\tnum[q][i]=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40067", "code": "void main()\n{\n\tint change(int x,int y);int b[5]={0};\n\tint n,m,i,j,k;\n\tint a[5][5]={0};\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n scanf(\"%d%d\",&n,&m);\n\t\tk=change(n,m);\n if(k==0)\n\t{printf(\"error\");\n\t\n\t}\n\telse if(k==1){\n\t\t for(i=0;i<=4;i++)b[i]=a[n][i];\n\t\t for(i=0;i<=4;i++)a[n][i]=a[m][i];\n\t\t for(i=0;i<=4;i++)a[m][i]=b[i];\nfor(i=0;i<=4;i++)\n\n{\n\t\n\t\t\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n}\n\t}\n}\nint change(int x,int y)\n{\n\tint z;\n\tif(0<=x&&x<=4&&0<=y&&y<=4&&x!=y)z=1;\n\telse z=0;\n\treturn(z);\n}\n\t\t \n\n"} +{"label": "81", "index": "40068", "code": "int fun(int a[5][5],int n,int m);\nint main()\n{\n int a[5][5],n,m,i,j;\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n }\n scanf(\"%d%d\",&n,&m);\n i=fun(a,n,m);\n if(i==0)\n printf(\"error\\n\");\n else\n {\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\nif(j!=4){\n printf(\"%d \",a[i][j]);}\nelse{printf(\"%d\",a[i][j]);}\n printf(\"\\n\");\n }\n }\n return 0;\n}\nint fun(int a[5][5],int n,int m)\n{\n int i,t;\n if(!(n>=0&&n<5&&m>=0&&m<5))\n {\n return 0;\n }\n for(i=0;i<5;i++)\n {\n t=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=t;\n }\n return 1;\n} "} +{"label": "81", "index": "40069", "code": "int n,m,p;\nint main()\n{\n\tint q,i,j,matrix[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&matrix[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tint a=n;\n\tint b=m;\n\tint t[5],c;\n\tif(a<5&&a>=0&&b<5&&b>=0)\n\t{\n\t\tfor(c=0;c<5;c++)\n\t\t{\n\t\t\tt[c]=matrix[b][c];\n\t\t\tmatrix[b][c]=matrix[a][c];\n\t\t\tmatrix[a][c]=t[c];\n\t\t\tp=1;\n\t\t}\n\t}\n\telse\n\t{\n\t\tp=0;\n\t}\n\tq=p;\n\tif(q==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse if(q==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",matrix[i][j]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",matrix[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40070", "code": "int replace(int b[5][5],int n1,int m1)\n{\n\tint ret,dummy[5],k;\n\tif(n1<0||n1>4||m1<0||m1>4)ret=0;\n\telse \n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tdummy[k]=b[n1][k];\n\t\t\tb[n1][k]=b[m1][k];\n\t\t b[m1][k]=dummy[k];\n\t\t ret=1;\n\t\t}\n\t}\n\treturn(ret);\n}\nvoid main()\n{\n\tint a[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(replace(a,n,m)==0)printf(\"error\\n\");\n\telse for(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j==4)printf(\"%d\\n\",a[i][j]);\n\t\t\telse printf(\"%d \",a[i][j]);\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40071", "code": "int main()\n{\n\tint a[6][5];\n\tint i, j, n, m;\n\tfor (i = 0;i <= 4;i++)\n\t\tfor (j = 0;j <= 4;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\t\t\t\n\tscanf(\"%d%d\",&n,&m);\n\tif (n >= 0 && n <= 4 && m >= 0 && m <= 4)\n\t{\n\t\tfor (i = 0;i <= 4;i++) \n\t\t{\t\n\t\t\ta[5][i] = a[n][i];\n\t\t\ta[n][i] = a[m][i];\n\t\t\ta[m][i] = a[5][i];\n\t\t}\n\t\n\t\tfor (i = 0;i <= 4;i++)\n\t\t\tfor (j = 0;j <= 4;j++)\n\t\t\t{\n\t\t\t\tif (j < 4)\tprintf(\"%d \",a[i][j]);\n\t\t\t\telse if (i < 4) printf(\"%d\\n\",a[i][j]);\n\t\t\t\telse printf(\"%d\",a[i][j]);\n\t\t\t}\n\t}\n\telse printf(\"error\"); \n\treturn 0;\n}"} +{"label": "81", "index": "40072", "code": "void main()\n{\n\tint a[5][5];\n\tint j,i,m,n,t,*p;\n for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n p=&a[0][0];\n\tscanf(\"%d %d\",&m,&n);\n\tif((m>=0)&&(m<=4)&&(n>=0)&&(n<=4))\n\t{\n for(i=0;i<5;i++)\n\t {\n\t\tt=*(p+5*m+i);\n\t\t*(p+5*m+i)=*(p+5*n+i);\n\t\t*(p+5*n+i)=t;\n\t }\n\t for(i=0;i<5;i++)\n\t\tprintf(\"%d %d %d %d %d\\n\",*(a[i]+0),*(a[i]+1),*(a[i]+2),*(a[i]+3),*(a[i]+4));\n\t}\n\telse\n\t\tprintf(\"error\");\n}\n"} +{"label": "81", "index": "40073", "code": "int b[5]={0,1,2,3,4};\nint a[5][5],x,y,i,j;\nint main()\n{\n for (i=0;i<5;i++)\n for (j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&x,&y);\n b[x]=y;\n b[y]=x;\n if (x<0 || x>4 || y<0 || y>4)\n {\n printf(\"error\\n\");\n return 0;\n }\n for (i=0;i<5;i++)\n {\n for (j=0;j<4;j++)\n printf(\"%d \",a[b[i]][j]);\n printf(\"%d\\n\",a[b[i]][j]);\n }\n return 0;\n}"} +{"label": "81", "index": "40074", "code": "void main()\n{\n\tint inve(int x[5][5],int p,int q);\n\tint a[5][5],i,j,m,n;\n\tfor(i=1;i<=5;i++)\n\t{\n\t\tfor(j=1;j<=5;j++)\n\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tinve(a,m,n);\n\tif (inve(a,m,n)==0)\n\t\tprintf(\"error\");\n\tif(inve(a,m,n)==1)\n\tfor(i=1;i<=5;i++)\n\t{\n\t\tfor(j=1;j<=4;j++)\n\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\",a[i][5]);\n\t\tprintf(\"\\n\");\n\t}\n}\nint inve(int x[5][5],int p,int q)\n{\n\tint i, b[100];\n\tif(0<=p&&p<=4&&0<=q&&q<=4)\n\t{\tp++;q++;\n\t\t\tfor(i=1;i<=5;i++)\n\t\t{\n\t\t\tb[i]=x[p][i];\n\t\t\tx[p][i]=x[q][i];\n\t\t\tx[q][i]=b[i];\n\t\t}\n\t\t\treturn(1);\n\t}\n\telse\n\t\treturn(0);\n}\n\n\t\t\n\t\n\t"} +{"label": "81", "index": "40075", "code": "\nint jiaohuan(int a[][5],int m,int n)\n{\n\tint temp,i;\n\tif(m>4)\n\t\treturn(0);\n\telse if(n>4)\n\t\treturn(0);\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=temp;\n\t\t}\n\t\treturn(1);\n\t}\n}\n\nint main()\n{\n\tint a[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\t\n\tscanf(\"%d %d\",&n,&m);\n\ti=jiaohuan(a,m,n);\n\tif(i==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n}"} +{"label": "81", "index": "40076", "code": "int judge(int a,int b)\n{\nint l=0;\nif(a<0||a>4||b<0||b>4)\nl=1;\nreturn l;}\nvoid main()\n{\nint m,n,k,i,j,t;\nint a[5][5];\n\nfor(i=0;i<5;i++)\n for(j=0;j<5;j++)\n\t\tscanf(\"%d\",&a[i][j]);\nscanf(\"%d %d\",&m,&n);\n\n\t\n\nk=judge(m,n);\nif(k==1)\nprintf(\"error\");\nelse \n{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tt=a[m][i];\n\t\ta[m][i]=a[n][i];\n\t\ta[n][i]=t;\n\t}\n for(i=0;i<5;i++)\n\t{ \n for(j=0;j<4;j++)\n\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\",a[i][4]);\n\t printf(\"\\n\");\n\t}\n}\n\n\n\n}"} +{"label": "81", "index": "40077", "code": "int main()\n{\n\tint x[5][5],m,n,i,j;\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&x[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t\t{\n\t\t\t j=x[n][i];\n\t x[n][i]=x[m][i];\n\t\t\t x[m][i]=j;\n\t\t }\n for(i=0;i<=4;i++)\n\t\t\tfor(j=0;j<=4;j++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\",x[i][j]);\n\t\t\t\t\tif(j==4) \n\t\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tprintf(\" \");\n\t\t\t }\n\t}\n\telse printf(\"error\");\n\n\treturn 0;\n}"} +{"label": "81", "index": "40078", "code": "int main()\n{\n\tint a[5][5],m,n,(*p)[5],i;\n\tint f(int (*p)[5],int m,int n);\n\tfor(p=a;p4||m<0||m>4)\n\t return 0;\n else\n return 1;\n}\n\nint main()\n{\nint a[5][5],n,m,i,j,b[5];\n\n for (i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n\t{\n\t scanf(\"%d\",&a[i][j]);\n\t}\n }\nscanf(\"%d%d\",&n,&m);\nif (huan(n,m)==0)\n printf(\"error\\n\");\nif (huan(n,m)==1)\n{\n\tfor(i=0;i<5;i++)\n\t{\n\t b[i]=a[n][i];\n\t a[n][i]=a[m][i];\n\t a[m][i]=b[i];\n\t}\n for (i=0;i<5;i++)\n {\n for (j=0;j<4;j++)\n\t{\n\t printf(\"%d \",a[i][j]);\n\t}\n\tprintf(\"%d\\n\",a[i][4]);\n }\n}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40080", "code": "int change(int a[5][5],int m,int n)\n{int count,i;\n\tif(m<0||m>=5||n<0||n>=5)\n\t\t{\n\t\t\tprintf(\"error\");return 0;\n\t\t}\n\tfor(count=0;count<5;count++)\n\t\t{\n\t\t\tif(count==n)\n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[m][i]);\n\t\t\t\tprintf(\"%d\\n\",a[m][4]);\n\t\t\t\n\t\t\t}\n\t\t\telse if(count==m)\n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[n][i]);\n\t\t\t\tprintf(\"%d\\n\",a[n][4]);\n\t\t\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[count][i]);\n\t\t\t\tprintf(\"%d\\n\",a[count][4]);\n\t\t\t\n\t\t\t}\n\t\t}return 1;\n}\nint main()\n{\n\tint a[5][5],m,n,i,j,count=0;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&m,&n);\n\tchange(a,m,n);\n\n\t/*for(count=0;count<5;count++)\n\t\t{\n\t\t\tif(count==n)\n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[m][i]);\n\t\t\t\tprintf(\"%d\\n\",a[m][4]);\n\t\t\t\n\t\t\t}\n\t\t\telse if(count==m)\n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[n][i]);\n\t\t\t\tprintf(\"%d\\n\",a[n][4]);\n\t\t\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[count][i]);\n\t\t\t\tprintf(\"%d\\n\",a[count][4]);\n\t\t\t\n\t\t\t}\n\t\t}return 0;*/\n}\n\n"} +{"label": "81", "index": "40081", "code": "trans(int a[][5],int n, int m)\n{\n\tif (n > 4||m > 4||n < 0||m < 0)\n\t\treturn 0;\n\telse\n\t{\n\t\tint (*p)[5],(*q)[5];\n\t\tint i,k;\n\t\tp = a + m;\n\t\tq = a + n;\n\t\tfor(i = 0;i < 5;i++)\n\t\t{\n\t\t\tk = *(*p + i);\n\t\t\t*(*p + i) = *(*q + i);\n\t\t\t*(*q + i) = k;\n\t\t}\n\t}\n\t\treturn 1;\n}\nmain()\n{\n\tint a[5][5];\n\tint (*p)[5] = a;\n\tint i,j,k,l,s;\n\tfor (k = 0;k < 5;k++)\n\t{\n\t\tfor (l = 0;l < 5;l++)\n\t\t\tscanf(\"%d\",(*(p+k)+l));\n\t}\n scanf(\"%d%d\",&i,&j);\n\ts = trans(a,i,j);\n\tif (s == 0)\n\t\tprintf(\"error\");\n\telse\n\t{\n for (k = 0;k < 5;k++)\n\t\t{\n printf(\"%d\",a[k][0]);\n\t\t for (l = 1;l < 5;l++)\n\t\t\t {\n\t\t\t\t printf(\" %d\",*(*(p+k)+l));\n\t\t\t }\n\t\t\t printf(\"\\n\");\n\t\t}\n\t}\n}\n\t\t\t \n"} +{"label": "81", "index": "40082", "code": "int n,m,a[5][5];\nvoid jisuan(int n,int m)\n{ \n\tint b[5],i;\n\tfor(i=0;i<5;i++)\n\t{\n\t b[i]=a[n][i];\n\t\t a[n][i]=a[m][i];\n\t\t a[m][i]=b[i]; \n\t}\n}\nint huanhang(int n,int m)\n{\n int b[5],i;\n if(n<=4&&n>=0&&m<=4&&m>=0)\n {\n for(i=0;i<5;i++)\n\t {\n\t b[i]=a[n][i];\n\t\t a[n][i]=a[m][i];\n\t\t a[m][i]=b[i]; \n\t }\n\t return 1;\n }\n else\n\t return 0;\n}\nint main()\n{\n\tint i, j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\", &a[i][j]);\n\t}\n\tscanf(\"%d%d\", &n, &m);\n\tif(huanhang(n,m)==0)\n\tprintf(\"error\\n\");\n\tif(huanhang(n,m)==1)\n\t{\n\t\tjisuan(n,m);\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<4;j++)\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40083", "code": "int f(int (*p)[5],int m,int n)\n{\n\tint *b,i,c[5];\n\tb=c;\n\tif(m<=4&&m>=0&&n<=4&&n>=0)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\t*(b+i)=*(*(p+m)+i);\n\t\t\t*(*(p+m)+i)=*(*(p+n)+i);\n\t\t\t*(*(p+n)+i)=*(b+i);\n\t\t}\n\n\t return 1;\n\t}\n\telse return 0;\n}\nint main()\n{\n\tint m,n,a[5][5],i,j,(*p)[5];\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j!=4)\n\t\t\tscanf(\"%d \",*(p+i)+j);\n\t\t\telse\n\t\t\t\tscanf(\"%d\\n\",*(p+i)+j);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\t\n\tif(f(p,m,n)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j!=4)\n\t\t\tprintf(\"%d \",*(*(p+i)+j));\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",*(*(p+i)+j));\n\t\t}\n\t}\n\t}\n\tif(f(p,m,n)==0)\n\t\tprintf(\"error\");\n\treturn 0;\n}\n\n\n\n\t\n\n\t\t\n\n"} +{"label": "81", "index": "40084", "code": "void main()\n{\n\tint change(int *p,int n,int m);\n\tint a[5][5],i,j,(*p)[5],*k;int m,n;\n p=a;\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<4;j++)\n\t\t\tscanf(\"%d\",*(p+i)+j);\n\t scanf(\"%d\\n\",*(p+i)+4);\n\t}\n\tscanf(\"%d%d\",&m,&n);\n k=*a;\n\tif(change(k,n,m))\n for(i=0;i<5;i++)\n\t{for(j=0;j<4;j++)\n\t\t\tprintf(\"%d \",*(*(p+i)+j));\n\t printf(\"%d\\n\",*(*(p+i)+4));\n\t}\n\t else printf(\"error\");\n}\nint change(int *p,int n,int m)\n{\n\tint i,j,k;\n\tif(n<0||n>4||m<0||m>4)i=0;\n\telse \n\t{ for(j=0;j<5;j++)\n\t{k=*(p+5*n+j);\n\t*(p+5*n+j)=*(p+5*m+j);\n\t\t*(p+5*m+j)=k;\n\t}\n\ti=1;\n\t\n\t}\n\n\treturn(i);\n}"} +{"label": "81", "index": "40085", "code": "int main(){\n int sz[5][5];\n int e,m,n,i,k;\n int h;\n for(i=0;i<5;i++){\n for(k=0;k<5;k++){\n scanf(\"%d\",&sz[i][k]);\n }\n }\n scanf(\"%d%d\",&n,&m);\n if((m<5)&&(n<5)){\n h=0;\n for(i=0;i<5;i++){\n e=sz[m][i];\n sz[m][i]=sz[n][i];\n sz[n][i]=e;\n }\n }else{\n h=1; \n }\n if(h==1){\n printf(\"error\");\n }else {\n for(i=0;i<5;i++){\n for(k=0;k<4;k++){\n printf(\"%d \",sz[i][k]);\n }\n printf(\"%d\\n\",sz[i][4]);\n }\n }\n return 0;\n}"} +{"label": "81", "index": "40086", "code": "int main()\n{\n\tint a[5][5];\n\tint n,m;\n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tint fuc(int a[5][5],int n,int m);\n\tif(fuc(a,n,m))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tint tmp;\n\t\t\ttmp=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=tmp;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j<4)\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\telse \n\t\t\t{\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n\treturn 0;\n}\nint fuc(int a[5][5],int n,int m)\n{\n\tif(n<=4&&m<=4)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\n"} +{"label": "81", "index": "40087", "code": "int a(int m,int n)\n{\n int s[5][5];\n if(m>-1)\n {\n if(m<5)\n {\n if(n>-1)\n {\n if(n<5)\n {\n \n \n return 1;\n \n \n }\n else return 0;\n }\n else return 0;\n }\n else return 0;\n \n }\n else return 0;\n}\n\nint main()\n{\n int s[5][5];\n int i,j,m,n,x,t;\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n scanf(\"%d\",&s[i][j]);\n }\n }\n \n scanf(\"%d%d\",&m,&n);\n \n x=a(m,n);\n \n \n if(x==1)\n {\n for(i=0;i<5;i++)\n {\n t=s[m][i];\n s[m][i]=s[n][i];\n s[n][i]=t;\n }\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n if(j==4) printf(\"%d\\n\",s[i][j]);\n else printf(\"%d \",s[i][j]);\n }\n }\n }\n \n else printf(\"error\");\n \n}\n"} +{"label": "81", "index": "40088", "code": "int exchange(int sz[5][5],int a, int b)\n{\n\tif(0<=a&&a<=4&&0<=b&&b<=4){\n\t\tint i;\n\t\tfor(i=0;i<5;i++){\n\t\t\tint e=sz[a][i];\n\t\t\tsz[a][i]=sz[b][i];\n\t\t\tsz[b][i]=e;\n\t\t}\n\t\treturn 1;\t\n\t}else{\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tint matrix[5][5];\n\tint row,col;\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++){\n\t\t\tscanf(\"%d\",&matrix[row][col]);\n\t\t}\n\t}\n\tint n,m;\n\tscanf(\"%d %d\",&n, &m);\n\tint judge;\n\tjudge=exchange(matrix,n,m);\n\tif(judge==0)\n\t\tprintf(\"error\");\n\tif(judge==1){\n\t\tfor(row=0;row<5;row++){\n\t\t\tfor(col=0;col<4;col++){\n\t\t\t\tprintf(\"%d \",matrix[row][col]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",matrix[row][4]);\n\t\t}\n\t}\t\n\treturn 0;\n}"} +{"label": "81", "index": "40089", "code": "int main()\n{\n\t int sort(int **p,int n,int m);\n\t int **p,m,n,i,j,a;\n\t p=(int**)malloc(5*sizeof(int*));\n\t for(i=0;i<5;i++)\n\t {\n\t\t *(p+i)=(int*)malloc(5*sizeof(int));\n\t }\n\t for(i=0;i<5;i++)\n\t {\n\t\t for(j=0;j<5;j++)\n\t\t {\n\t\t\t scanf(\"%d\",*(p+i)+j);\n\t\t }\n\t }\n\t scanf(\"%d %d\",&n,&m);\n\t a=sort(p,n,m);\n\t if(a==1)\n\t {\n\t\t for(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",*(*(p+i)+j));\n\t\t\t}\n\t\t printf(\"%d\\n\",*(*(p+i)+j));\n\t\t }\n\t }\n\t if(a==0)\n\t {\n\t\t printf(\"error\");\n\t }\n\t return 0;\n}\nint sort(int **p,int n,int m)\n{\n\tint k,temp;//temp????????????//\n\tif(m>=0&&m<5&&n>=0&&n<5)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\ttemp=*(*(p+m)+k);\n\t\t\t*(*(p+m)+k)=*(*(p+n)+k);\n *(*(p+n)+k)=temp;\n\t\t}\n\t\treturn 1;//?????????????????1//\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40090", "code": "int a[5][5],b[5][5],m,n,c[5]; \nint zhuanhuan(int a[5][5],int m, int n)\n{\n int z,i;\n if(n<=4&&n>=0&&m<=4&&m>=0)\n {\n z=1;\n for (i=0;i<5;i++)\n {\n *(c+i)=*(a[m]+i); \n *(a[m]+i)=*(a[n]+i);\n *(a[n]+i)=*(c+i);\n }\n \n }\n else \n {\n z=0;\n }\n return(z);\n}\nvoid main()\n{\n int i,j,fanhui;\n for (i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n {\n scanf(\"%d\",&*(a[i]+j));\n }\n } \n scanf(\"%d\",&m);\n scanf(\"%d\",&n);\n fanhui=zhuanhuan(a,m,n); \n if (fanhui==0)\n {\n printf(\"error\");\n }\n if (fanhui==1)\n {\n for(i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n {\n if(j==4) printf(\"%d\\n\",*(a[i]+j));\n else printf(\"%d \",*(a[i]+j));\n }\n } \n }\n}\n"} +{"label": "81", "index": "40091", "code": "void main()\n{\n\tint panduan(int x,int y);\n\tint m,n;\n\tint a[5][5]={{0},{0}};\n\tint i,j,t;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t//printf(\"\\n\");\n\t}\n scanf(\"%d %d\",&n,&m);\n\t if(panduan(n,m)==1)\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tt=a[n][i];\n\t\t\t\ta[n][i]=a[m][i];\n\t\t\t\ta[m][i]=t;\n\t\t\t}\n\t for(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t\tprintf(\"%d\",a[i][4]);\n\t\t printf(\"\\n\");\n\t\t\t}\n\t\t}\n\t\telse if(panduan(n,m)==0)\n\t\t\tprintf(\"error\");\n\n}\n\nint panduan(int x,int y)\n{\n\tint z;\n\tz=(x<5&&x>=0)&&(y<5&&y>=0)?1:0;\n\treturn(z);\n}"} +{"label": "81", "index": "40092", "code": "int hanshu(int x,int y);\nint main(){\n\tint x[5][5],n,m,i,e,c,j,a;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&x[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m); \n\tc=hanshu(n,m);\n\tif(c==0){\n\t\tprintf(\"error\");\n\t}\n\telse{\n\t\tfor(i=0;i<5;i++){\n\t\t\te=x[n][i];\n\t\t\tx[n][i]=x[m][i];\n\t\t\tx[m][i]=e;\n\t\t}\n\t\tfor(a=0;a<5;a++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tif(j<4){\n\t\t\tprintf(\"%d \",x[a][j]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"%d\",x[a][j]);\n\t\t\t}\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\t}\n\treturn 0;\n}\nint hanshu(int x,int y){\n\tint result; \n\tif(x>=0&&x<=4&&y<=4&&y>=0){\n\t\tresult=1;\n\t}\n\telse{\n\t\tresult=0;\n\t}\n\treturn result;\n}\n"} +{"label": "81", "index": "40093", "code": "int main()\n{\n\tint i,j,*p,a[5][5],m,n,s=1,b;\n\tp=&b;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++) scanf(\"%d\",*(a+i)+j);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>4||m<0||n>4||n<0) \n\t{\n\t\ts=0;\n\t\tprintf(\"error\\n\");\n\t}\n\telse\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\t*p=*(*(a+m)+j);\n\t\t\t*(*(a+m)+j)=*(*(a+n)+j);\n\t\t\t*(*(a+n)+j)=*p;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++) printf(\"%d%c\",*(*(a+i)+j),(j==4)?'\\n':' ');\n\t\t}\n\t}\n\treturn s;\n}\n\n\n\n"} +{"label": "81", "index": "40094", "code": "int jhsz(int sz[5][5],int m,int n);\nint main()\n{\n\tint sz[5][5],m,n,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d \",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\n\tsz[5][5]=jhsz(sz,m,n);\n\n\treturn 0;\n}\n\nint jhsz(int sz[5][5],int m,int n)\n{\n int i,j,jh[5];\n\n\tif(m>4||n>4){\n\t\tprintf(\"error\");\n\t}else\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tjh[j]=sz[m][j];\n\t\t\tsz[m][j]=sz[n][j];\n\t\t\tsz[n][j]=jh[j];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<4;j++)\n\t\t\t{\n\t\t\t printf(\"%d \",sz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t}\n\t}\n\treturn sz[5][5];\n}"} +{"label": "81", "index": "40095", "code": "int main()\n{\nint a[5][5],i,n,m,e,j;\nfor(i=0;i<5;i++){\nfor(j=0;j<5;j++){\nscanf(\"%d\",&a[i][j]);\n}\n}\nscanf(\"%d %d\",&n,&m);\nif(n>4||n<0||m>4||m<0){\nprintf(\"error\");\n}\nelse{\nfor(i=0;i<5;i++){\ne=a[m][i];\na[m][i]=a[n][i];\na[n][i]=e;\n}\nprintf(\"%d %d %d %d %d\\n\",a[0][0],a[0][1],a[0][2],a[0][3],a[0][4]);\nprintf(\"%d %d %d %d %d\\n\",a[1][0],a[1][1],a[1][2],a[1][3],a[1][4]);\nprintf(\"%d %d %d %d %d\\n\",a[2][0],a[2][1],a[2][2],a[2][3],a[2][4]);\nprintf(\"%d %d %d %d %d\\n\",a[3][0],a[3][1],a[3][2],a[3][3],a[3][4]);\nprintf(\"%d %d %d %d %d\\n\",a[4][0],a[4][1],a[4][2],a[4][3],a[4][4]);\n}\nreturn 0;\n}\n"} +{"label": "81", "index": "40096", "code": "int exchange(int [][5],int n,int m);\nint main(int argc, char* argv[])\n{\n\tint a[5][5],i,j,n,m,num;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tnum=exchange(a,n,m);\n\tif(num==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==4)\n\t\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\telse\n\t\t\t \tprintf(\"%d \",a[i][j]);\n\t\t\t\tif((j+1)%5==0)\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\nint exchange(int (*p)[5],int n,int m)\n{\n\tint i,temp;\n\tif((n>=0&&n<=4)&&(m>=0&&m<=4))\n\t{\n\t\tif(m!=n)\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\ttemp=*(*(p+n)+i);\n\t\t\t\t*(*(p+n)+i)=*(*(p+m)+i);\n *(*(p+m)+i)=temp;\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40097", "code": "int main()\n{\nint i,m,n,row,col,sz[5][5],e[5];\nfor(row=0;row<5;row++)\n{\n for(col=0;col<5;col++)\n\t{scanf(\"%d\",&sz[row][col]);}\n}\nscanf(\"%d %d\",&n,&m);\nif((n>=0&&n<=4)&&(m>=0&&m<=4))\n{\n\tfor(i=0;i<5;i++)\n\t{\n\t\te[i]=sz[n][i];\n\t sz[n][i]=sz[m][i];\n\t\tsz[m][i]=e[i];\n\t}\n\tfor(row=0;row<5;row++)\n\t{\n for(col=0;col<5;col++)\n\t\t{\n\t\t\tif(col==0)\n\t\t {\n\t\t printf(\"%d\",sz[row][col]);\n\t\t\t}\n else if(col==4)\n\t\t {\n\t\t printf(\" %d\\n\",sz[row][col]);\n }\n\t\t else if(col>0&&col<4)\n\t\t\t\tprintf(\" %d\",sz[row][col]);\n\t\t}\t\n\t}\nreturn 0;\n}\nelse\n{printf(\"error\\n\");\nreturn 0;\n}\n}"} +{"label": "81", "index": "40098", "code": "int change(int x,int y);\nint main()\n{\n\n\tint i,j;\n\tint n,m;\n\tint a[row][col];\n\tint t;\n\tfor (i=0;i=0&&x<5&&y>=0&&y<5)\n\t{\n\t\tz=1;\n\t\tfor(g=0;g<5;g++)\n\t\t{\n\t\t\ttemp=*(p+g+5*x);\n\t\t\t*(p+g+x*5)=*(p+g+y*5);\n\t\t\t*(p+g+y*5)=temp;\n\t\t}\n\t}\n\telse z=0;return(z);\n}"} +{"label": "81", "index": "40100", "code": "int fun(int (*p)[5],int n,int m)\n{\n\tint i,t;\n\tif(n<0||n>=5||m<0||m>=5)\n\t\treturn 0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=*(*(p+n)+i);*(*(p+n)+i)=*(*(p+m)+i);*(*(p+m)+i)=t;\n\t\t}\n\t\treturn 1;\n\t}\n}\nint main()\n{\n\tint n,i,j,m;\n\tint a[5][5],(*p)[5];\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t{\t\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",*(p+i)+j);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(fun(p,n,m)==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\n\t\t{\t\n\t\t\n\t\t\tfor(j=0;j<5;j++)\n\t\t\n\t\t\t{\n\t\t\t\tif(j!=4)\n\t\t\tprintf(\"%d \",*(*(p+i)+j));\n\t\t\t\telse\n printf(\"%d\\n\",*(*(p+i)+j));\n\t\t\n\t\t\t}\n\t\n\t\t}\n\t}\n\n\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40101", "code": "int a(int n);\nint main()\n{\n int b[5][5];\n int i,j,k;\n int n1,n2;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",&b[i][j]);\n scanf(\"%d%d\",&n1,&n2);\n if((a(n1)==0)||(a(n2)==0))\n printf(\"error\");\n else\n {\n for(i=0;i<5;i++)\n {\n if(i==n1)\n {\n for(j=0;j<4;j++)\n printf(\"%d \",b[n2][j]);\n printf(\"%d\\n\",b[n2][j]);\n }\n else if(i==n2)\n {\n for(j=0;j<4;j++)\n printf(\"%d \",b[n1][j]);\n printf(\"%d\\n\",b[n1][j]);\n }\n else\n {\n for(j=0;j<4;j++)\n printf(\"%d \",b[i][j]);\n printf(\"%d\\n\",b[i][j]);\n }\n\n }}\n\n\n}\nint a(int n)\n{\n if((n>=0)&&(n<5))\n return 1;\n else\n return 0;\n}\n"} +{"label": "81", "index": "40102", "code": "int matrix(int b,int c){\n int l;\n if(c>=0&&c<5&&b>=0&&b<5){\n l=1;\n }else \n l=0;\n return l;\n}\nint main(){\n int a[5][5];\n int i,j;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&a[i][j]);\n }}\n int n,m;\n scanf(\"%d%d\",&n,&m);\n if(matrix(n,m)==0){\n printf(\"error\");\n }else {\n for(i=0;i<5;i++){\n if(i==m){\n i=n;\n for(j=0;j<4;j++){\n printf(\"%d \",a[i][j]);\n }\n printf(\"%d\\n\",a[i][4]);\n i=m;\n }\n if(i==n){\n i=m;\n for(j=0;j<4;j++){\n printf(\"%d \",a[i][j]);\n }\n printf(\"%d\\n\",a[i][4]);\n i=n;\n }\n if(i!=m&&i!=n){\n for(j=0;j<4;j++){\n printf(\"%d \",a[i][j]);\n }\n printf(\"%d\\n\",a[i][4]);\n }\n }}\n return 0;\n}\n"} +{"label": "81", "index": "40103", "code": "int main()\n{\nint a[5][5],b[5];\nint m,n,i,j;\nfor(i=0;i<=4;i++)\n{scanf(\"%d %d %d %d %d\\n\",&a[i][0],&a[i][1],&a[i][2],&a[i][3],&a[i][4]);}\nscanf(\"%d %d\",&m,&n);\n\nif(m>=0&&m<=4&&n>=0&&n<=4) \n{for(j=0;j<=4;j++)\n{b[j]=a[m][j];\n a[m][j]=a[n][j];\n a[n][j]=b[j];}\nfor(i=0;i<=4;i++)\n{printf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);}}\nif(m<0||m>4||n<0||n>4) printf(\"error\\n\");\n}\n\n"} +{"label": "81", "index": "40104", "code": "\nint f(int x,int y)\n{\n\tint z;\n\tif((x>=0&&x<=4)&&(y>=0&&y<=4)) z=1;\n\telse z=0;\n\treturn z;\n}\nint main()\n{\n\tint a[5][5],i,j,m,n,w,b[5]={0,1,2,3,4},t,l;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tw=f(n,m);\n\tif(w==0) printf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tif(b[i]==n)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=4;j++)\n\t\t\t\t{\n\t\t\t\t\tif(b[j]==m)\n\t\t\t\t\t{\n\t\t\t\t\t\tt=m;\n\t\t\t\t\t\tb[j]=n;\n\t\t\t\t\t\tb[i]=t;\n\t\t\t\t\t\tl=100;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(l==100) break;\n\t\t}\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[b[i]][0]);\n\t\t\tfor(j=1;j<=4;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[b[i]][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40105", "code": "change(int x,int y)\n{\n\tint t;\n\tif(x>=0&&y<=4&&x>=0&&y<=4) t=1;\n\telse t=0;\n\treturn(t);\n}\n\nvoid main()\n{\n\tint a[5][5],b[5],i,j,m,n;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tif(change(m,n)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t b[i]=a[m][i];\n\t\t a[m][i]=a[n][i];\n\t\t a[n][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n if(change(m,n)==0) printf(\"error\");\n}\t\n"} +{"label": "81", "index": "40106", "code": "int judge (int x,int y);\nint main(){\n\tint sz[5][5];\n\tint n,m;\n\tint result;\n\tint i,j;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tresult=judge(n,m);\n\tint k[5];\n\tif(result==0){\n\t\tprintf(\"error\");\n\t}else if(result==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tk[i]=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=k[i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j!=4){\n\t\t\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\t\t}else{\n\t\t\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\nint judge(int x,int y){\n\tif(x>=0&&x<=4&&y>=0&&y<=4){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n\n}"} +{"label": "81", "index": "40107", "code": "void main()\n{\n\tint change(int a[5][5],int m,int n);/*??????????*/\n\tint a[5][5];\n int i,j,t,m,n;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tt=change(a,m,n);\n if(t==1)\n\t\t \tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j==4)\n\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\telse\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t}\n\t\tif(t==0)\n\t\t\tprintf(\"error\");\n}\t\n\nint change(int a[5][5],int m,int n)\n{\n\tint i,c,p;\n\tif(m>=5||n>=5)\n\t\tc=0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{ \n\t\t\tp=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=p;\n\t\t}\n\t\t\tc=1;\n\t}\n\treturn(c);\n}\n\n\t"} +{"label": "81", "index": "40108", "code": "int main()\n{\n int n,m,i,j,d,s[5][5],t[5][5];\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n scanf(\"%d\",&s[i][j]);\n }\n }\n scanf(\"%d%d\",&n,&m);\n if(n>=0&&n<5&&m>=0&&m<5)\n {\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n if(i==m||i==n)\n {\n t[i][j]=s[m+n-i][j];\n }else{\n t[i][j]=s[i][j];\n }\n }\n }\n for(i=0;i<5;i++)\n {\n for(j=0;j<4;j++)\n {\n printf(\"%d \",t[i][j]);\n }\n printf(\"%d\\n\",t[i][4]);\n }\n }else{\n printf(\"error\");\n }\n return 0;\n}\n\n"} +{"label": "81", "index": "40109", "code": "\nint trans(int a[5][5],int n,int m)\n{int *pi,*pj,i,c;\n\n if(n<=4&&n>=0&&m<=4&&n>=0) \n {\n pi=*(a+n);\n pj=*(a+m);\n for(i=0;i<5;i++)\n {c=*pi;\n *pi=*pj;\n *pj=c;\n pi++;\n pj++;\n }\n return 1;\n }\nelse return 0;\n}\n \n\nmain()\n{\n int a[5][5],n,m,*p;\n p=*a;\n for(n=0;n<5;n++) \n\t for(m=0;m<5;m++)\n\t {scanf(\"%d\",p);\n\t p++;\n\t }\np=*a;\nscanf(\"%d %d\",&n,&m);\n\t if(trans(a,n,m))\n\t { \n\t for(n=0;n<5;n++)\n\t\t{\n for(m=0;m<4;m++)\n\t\t {printf(\"%d \",*p);p++;}\n\t\t printf(\"%d\\n\",*p);p++;\n\t\t \n\t\t}\n\t \n\t }\n\t else printf(\"error\\n\");\n}"} +{"label": "81", "index": "40110", "code": "main()\n{\n\tint a[5][5],b[5];\n\tint i,j,m,n;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n if(m>4||n>4)\n\t{\t\t\n\t\tprintf(\"error\");\n\t\treturn(0);\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t b[i]=a[m][i];\n\t\tfor(i=0;i<5;i++)\n\t a[m][i]=a[n][i];\n\t\tfor(i=0;i<5;i++)\n\t a[n][i]=b[i];\n for(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<5;j++)\n\t\t\t{\n\t\t\t if(j==4)\n\t\t\t\t printf(\"%d\\n\",a[i][j]);\n\t\t\t else \n\t\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t} \n\t\t}\n\t\treturn(1);\n\t}\n}"} +{"label": "81", "index": "40111", "code": "void main()\n{\n\tint a[5][5],(*p)[5],i,j,m,n;\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(p+i)+j);\n\tscanf(\"%d %d\",&m,&n);\n\tint trans(int (*p)[5],int m,int n);\n\tif(trans(a,m,n))\n\t for(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<4;j++)\n\t\t\t printf(\"%d \",*(*(p+i)+j));\n\t\t\tprintf(\"%d\\n\",*(*(p+i)+4));\n\t\t}\n\telse\n\t\tprintf(\"error\\n\");\n}\nint trans(int (*p)[5],int m,int n)\n{\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t int i,t;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=*(*(p+m)+i);\n\t\t\t*(*(p+m)+i)=*(*(p+n)+i);\n\t\t\t*(*(p+n)+i)=t;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40112", "code": "int main()\n{\n\tint reverse(int m,int n);\n\tint m,n,i,j,count=0;\n\tint sz[6][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d \",&sz[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(reverse(m,n)==0)\n\t\tprintf(\"error\\n\");\n\tif(reverse(m,n)==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tsz[5][j]=sz[m][j];\n\t\t\tsz[m][j]=sz[n][j];\n\t\t\tsz[n][j]=sz[5][j];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",sz[i][j]);\n\t\t\t\tcount++;\n\t\t\t\tif(count%5==0)\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\telse\n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\n\t\t\n\nint reverse(int m,int n)\n{\n\tif((m>=0 && m<5) && (n>=0 && n<5))\n\t{\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40113", "code": "int a[5][5];\nvoid main()\n{\n\tvoid zz(int m,int n);\n\tint m,n,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t\t{\n\t\tzz(m,n);\n\t\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\tif(j<4)\n\t\t\t\tprintf(\" \");\n\t\t}\n\t\tif(i<4)\n\t\t\tprintf(\"\\n\");\n\t}\n\t\t}\n\t\telse\n\t\t\tprintf(\"error\");\n}\nvoid zz(int m,int n)\n{\n\tint i,j,t;\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tt=a[m][i];\n\t\t\t\ta[m][i]=a[n][i];\n\t\t\t\ta[n][i]=t;\n\t\t\t}\n\t}\n}"} +{"label": "81", "index": "40114", "code": "int putout(int n,int m);\nint main()\n{\n\tint i,j,n,m,return1;\n\tint str[5][5]={0},turn[5];\n\tint *p;\n\tp=str[0];\n\tfor(i=0;i<25;i++)\n\t{\n\t\tscanf(\"%d\",p++);\n\t\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\t\n\treturn1=putout(n,m);\n\tif(return1==0) printf(\"error\\n\");\n\telse \n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tturn[j]=str[m][j];\n\t\t\tstr[m][j]=str[n][j];\n\t\t\tstr[n][j]=turn[j];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\t\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",str[i][j]);\n\t\t\tprintf(\"%d\\n\",str[i][4]);\n\n\t\t}\n\t}\nreturn 0;\n}\nint putout(int n,int m)\n{\n\tint z;\n\tif(n<=4&&n>=0&&m<=4&&m>=0) z=1;\n\telse z=0;\nreturn (z);\n}\n"} +{"label": "81", "index": "40115", "code": "void main()\n{\n\tint f(int n,int m,int (*a)[5]);\n\tint n,m,a[5][5],i,j,c,d=0;\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(a+i)+j);\n\t\tprintf(\"\\n\");\n\t\tscanf(\"%d%d\",&n,&m);\n\t\tc=f(n,m,a);\n\t\tif(c==0)printf(\"error\");\n\t\telse for(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t printf(\"%d\\n\",a[i][4]);\n\t\t}\n\t\t\t\n}\n int f(int n,int m,int (*a)[5])\n\t {\n\t\t int p,b,i;\n\t\t if((n>=0&&n<5)&&(m>=0&&m<5))\n\t\t {\n\t\t\t for(i=0;i<5;i++)\n\t\t\t {\n\t\t\t p=*(*(a+n)+i);\n\t\t\t *(*(a+n)+i)=*(*(a+m)+i);\n\t\t\t *(*(a+m)+i)=p;\n\t\t\t b=1;\n\t\t\t }\n\t\t }\n\t\t else b=0;\n\t\t return b;\n\t }\n"} +{"label": "81", "index": "40116", "code": "int main(){\n\tint a[5][5],m,n,e[5],i,j;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m<5&&n<5){\n\t\tfor(i=0;i<5;i++){\n\t\t\te[i]=a[m][i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\ta[m][i]=a[n][i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\ta[n][i]=e[i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t for(j=0;j<5;j++){\n\t\t\t\tif(j!=4){printf(\"%d \",a[i][j]);}\n\t\t\t\tif(j==4){printf(\"%d\\n\",a[i][j]);}\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\telse{printf(\"error\");}\n\treturn 0;\n}"} +{"label": "81", "index": "40117", "code": "void main ()\n{\n\tint exchange(int b[5][5],int n,int m);\n\tint a[5][5];\n\tint n,m;\n\tint i,j;\n\n\tfor(i=0;i<5;++i)\n\t{\n\t\tfor (j=0;j<5;++j)\n\t\t{scanf(\"%d\",&a[i][j]);}\n\t}\n\n\tscanf(\"%d %d\",&n,&m);\n\n\tif (exchange(a,n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\n\t\t\t\tif (j!=4) printf(\" \");\n\t\t\t\telse printf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\telse printf(\"error\\n\");\n}\n\nint exchange(int b[5][5],int n,int m)\n{\n\tint i;\n\n\tif(n>4||n<0||m>4||m<0) return 0;\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tint c[5];\n\t\t\tc[i]=b[n][i];\n\t\t\tb[n][i]=b[m][i];\n\t\t\tb[m][i]=c[i];\n\t\t}\n\t}\n\n\treturn 1;\n}"} +{"label": "81", "index": "40118", "code": "int exchange(int a,int b){\n\tif(a>=0&&a<5&&b>=0&&b<5){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\nint main(){\n\tint n,m,i,j,k,t=0,panduan;\n\tint sz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tpanduan=exchange(n,m);\n\tif(panduan){\n\t\tfor(k=0;k<5;k++){\n\t\t\tt=sz[n][k];\n\t\t\tsz[n][k]=sz[m][k];\n\t\t\tsz[m][k]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t for(j=0;j<5;j++){\n\t\t\t\tif(j<4){\n\t\t\t printf(\"%d \",sz[i][j]);\n\t\t\t\t}else if(j=4){\n\t\t\t\t\tprintf(\"%d\\n\",sz[i][j]);\n\t\t\t\t}\n\t\t }\n\t }\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40119", "code": "int survival(int a[6][6],int n,int m)\n{\n\tif(n<0||n>4||m<0||m>4) return 0;\n\telse\n\t{\n\t\tint temp,i;\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\ttemp=*(a[n]+i);\n\t\t\t*(a[n]+i)=*(a[m]+i);\n\t\t\t*(a[m]+i)=temp;\n\t\t}\n\t\treturn 1;\n\t}\n}\n\nvoid main()\n{\n\tint a[6][6],n,m,i,j,f;\n\tint survival(int a[6][6],int n,int m);\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",a[i]+j);\n\tscanf(\"%d%d\",&n,&m);\n\tf=survival(a,n,m);\n\tif(f==0) printf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tfor(j=0;j<=3;j++)\n\t\t\t\tprintf(\"%d \",*(a[i]+j));\n\t\t\tprintf(\"%d\\n\",*(a[i]+j));\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40120", "code": "\nint main()\n{\n int a[5][5];\n int i,j,k,s,p,n,m,temp=0;\n int panduan(int a[5][5],int n,int m);\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n scanf(\"%d\",&a[i][j]);\n }\n }\n scanf(\"%d%d\",&n,&m);\n \n if(panduan(a,n,m))\n {\n \n for(s=0;s<4;s++)\n {\n printf(\"%d %d %d %d %d\\n\",a[s][0],a[s][1],a[s][2],a[s][3],a[s][4]);\n }\n printf(\"%d %d %d %d %d\",a[4][0],a[4][1],a[4][2],a[4][3],a[4][4]);\n }\n else\n printf(\"error\");\n \n getchar();\n getchar();\n \n}\n\nint panduan(int a[5][5],int n,int m)\n{\n int k;\n int temp;\n if(n<5&&n>=0&&n!=m&&m>=0&&m<5)\n {\n for(k=0;k<5;k++)\n {\n temp=a[n][k];\n a[n][k]=a[m][k];\n a[m][k]=temp;\n }\n return(1);\n }\n else\n return(0);\n}\n\n"} +{"label": "81", "index": "40121", "code": "int i,j,w;\nint n,m;\nint a[5][5];/*5!not 4*/\nvoid main()\n{\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tf(n,m,a[5][5]);\n\tif(w==0) printf(\"error\\n\");\n\tif(w==1)\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j==0) printf(\"%d\",a[i][j]);\n\t\t\telse printf(\" %d\",a[i][j]);}\n\t\t\tprintf(\"\\n\");\n\t\t}\n}\nint f()\n{int x,t;\n\tif(n>4||m>4) w=0;\n\telse\n\t{\n\t\tw=1;\n\t\tfor (x=0;x<5;x++)\n\t\t{\n\t\t\t\n\t\t\tt=a[n][x];\n\t\t\ta[n][x]=a[m][x];\n\t\t\ta[m][x]=t;\n\t\t}\n\n\t}\n\treturn w;\n}\n"} +{"label": "81", "index": "40122", "code": "int main()\n{\n\tint func(int a[5][5],int n, int m);\n\tint n, m, i, j, t;\n\tint a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\", &a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\\n\", &n,&m);\n\tt=func(a,n,m);\n\tif(t==0)\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\", a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\", a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\nint func(int a[5][5],int n,int m)\n{\n\tint i, z;\n\tint b[5];\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\t\t}\n\t\tz=1;\n\t}\n\telse z=0;\n\treturn(z);\n}\n"} +{"label": "81", "index": "40123", "code": "void main()\n{\n\tint *p,n,m,t,i,j;\n\tp=(int*)calloc(25,sizeof(int));\n\tfor (i=0;i<25;i++)\n\t\tscanf(\"%d\",p+i);\n\tscanf(\"%d%d\",&n,&m);\n\tif (0<=n&&0<=m&&5>n&&5>m)\n\t{\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tt=*(p+5*n+i);\n\t\t\t*(p+5*n+i)=*(p+5*m+i);\n\t\t\t*(p+5*m+i)=t;\n\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t\tfor (j=0;j<5;j++)\n\t\t\t\tj==4?printf(\"%d\\n\",*(p+5*i+j)):printf(\"%d \",*(p+5*i+j));\n\t}\n\telse printf(\"error\");\n}"} +{"label": "81", "index": "40124", "code": "void main()\n{int huan(int a[5][5],int x,int y);\nint a[5][5];\nint i,j,n,m;\n\nfor(i=0;i<5;i++)\nscanf(\"%d %d %d %d %d\",&a[i][0],&a[i][1],&a[i][2],&a[i][3],&a[i][4]);\nscanf(\"%d %d\",&n,&m);\nj=huan(a,n,m);\nif(j==0)\nprintf(\"error\");\nelse \n{\n\tfor(i=0;i<5;i++)\n\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);}\n\n}\nint huan(int a[5][5],int x,int y)\n{\n\tint t,s,j;\n\n\tif(x<=4&&x>=0&&y<=4&&y>=0)\n{j=1;\n\tfor(s=0;s<5;s++)\n\t{t=a[x][s];a[x][s]=a[y][s];a[y][s]=t;}\n}\n\telse j=0;\n\treturn(j);\n\t\n\n}"} +{"label": "81", "index": "40125", "code": "void ox( int a[5][5], int m, int n)\n{\n\tint i,j,t[5];\n\t\n\t\tif(m<=4&&m>=0&&n<=4&&n>=0)\n\t\t{\n\t\t\tfor(i=0;i<=4;i++)\n\t\t\t{\n\t\t\t\tt[i]=a[m][i];\n\t\t\t\ta[m][i]=a[n][i];\n\t\t\t\ta[n][i]=t[i];\n\t\t\t}\n\t\t\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tfor(j=0;j<=3;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\",a[i][4]);\n printf(\"\\n\");\n\t\t}\n\t\t}\n\t\telse\n\t\t\tprintf(\"error\\n\");\n\t\t\n}\nvoid main()\n{\n\tint m,n,i,j,a[5][5];\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tox(a,m,n);\n}\n\t\n"} +{"label": "81", "index": "40126", "code": "int change(int a[5][5],int n, int m)\n{\n\tint i,x;\n\tif(n>4||n<0||m>4||m<0) return 0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tx=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=x;\n\t\t}\n\t\treturn 1;\n\t}\n}\nint main()\n{\n\tint i,j,m,n,a[5][5]={0},y;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\ty=change(a,m,n);\n\tif(y==0) printf(\"error\\n\");\n\telse{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\t\n\t\treturn 0;\n}\n\n\n"} +{"label": "81", "index": "40127", "code": "\nint mat[5][5];\n\nint check(int n,int m)\n{\n int l1,t;\n if ((n<0) || (n>4) || (m<0) || (m>4))\n return 0;\n else\n {\n for (l1=0;l1<5;l1++)\n {\n t=mat[m][l1];\n mat[m][l1]=mat[n][l1];\n mat[n][l1]=t;\n }\n return 1;\n }\n}\nint main()\n{\n int n,m;\n int l1,l2;\n\n for (l1=0;l1<5;l1++)\n for (l2=0;l2<5;l2++)\n scanf(\"%d\",&mat[l1][l2]);\n scanf(\"%d%d\",&n,&m);\n if (check(n,m)==0)\n printf(\"error\\n\");\n else\n for (l1=0;l1<5;l1++)\n {\n for (l2=0;l2<4;l2++)\n printf(\"%d \",mat[l1][l2]);\n printf(\"%d\\n\",mat[l1][4]);\n }\n\n return 0;\n}\n"} +{"label": "81", "index": "40128", "code": "\nint function(int a[][5], int n, int m)\n{\n\tif((m<0||m>4)||(n<0||n>4))\n\t{\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\tint i;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tint temp=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=temp;\n\t\t}\n\t\treturn 1;\n\t}\n}\n\nint main()\n{\n\tint a[5][5], n, m;\n\tint i, j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\", &a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\", &n, &m);\n\t\n\tint b=function(a,n,m);\n\tif(b==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j<4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \", a[i][j]);\n\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n\t\n\t\n}"} +{"label": "81", "index": "40129", "code": "int a[5][5];\nint change(int m,int n)\n{ \n int i,j,t;\n\tif(n>=5||m>=5)\n\t\treturn(0);\n\telse \n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=a[m][j];\n\t\t\ta[m][j]=a[n][j];\n\t\t\ta[n][j]=t;\n\t\t}\n\t\treturn(1);\n\t}\n}\n\nvoid main()\n{\n int m,n;\n int i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif(change(m,n)==0)\n\t\tprintf(\"error\\n\");\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n if(j<4)\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t if(j==4)\n\t\t\t\t printf(\"%d\\n\",a[i][j]);\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40130", "code": "int x(int p1,int p2)\n{\n\tif(p1>=0 && p1<=4 && p2>=0 && p2<=4) return 1;\n\telse return 0;\n}\nint main()\n{\n\tint i,j,n,m,t,y,a[5][5];\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\t\t{scanf(\"%d\",&a[i][j]);}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\ty=x(n,m);\n\tif(y)\n\t{for(i=0;i<5;i++)\n\t\t{t=a[n][i];\n\t\t a[n][i]=a[m][i];\n\t\t a[m][i]=t;\n\t\t}\n\t for(i=0;i<5;i++)\n\t {printf(\"%d\",a[i][0]);\n\t for(j=1;j<5;j++)\n\t {printf(\" %d\",a[i][j]);}\n\t printf(\"\\n\");\n\t }\n\t}\n\telse printf(\"error\\n\");\n\treturn 0;\n}"} +{"label": "81", "index": "40131", "code": "int p(int a){\n\tif(a>=0&&a<=4){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\n\nint main(){\n int s[5][5];\n\tint m,n,e;\n\tfor(int i=0;i<=4;i++){\n\t\tfor(int j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(p(m)&&p(n)){\n\t\tfor(int t=0;t<5;t++){\n\t\t\te=s[m][t];\n\t\t\ts[m][t]=s[n][t];\n\t\t\ts[n][t]=e;\n\t\t}\n\t\tfor(int a=0;a<5;a++){\n\t\t\tfor(int b=0;b<4;b++){\n\t\t\t\tprintf(\"%d \",s[a][b]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",s[a][4]);\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\n return 0;\n\t}"} +{"label": "81", "index": "40132", "code": "int find(int n,int m)\n{\n\tif ((n>=0) && (n<=4) && (m>=0) && (m<=4)) return(1);\n\telse return(0);\n}\nvoid main()\n{\n\tint flag,i,j,m,n,swap,num[5][5];\n\tfor (i=0;i<=4;i++)\n\t\tfor (j=0;j<=4;j++) \n\t\t\tscanf(\"%d\",&num[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif (find(n,m))\n\t{\n\t\tfor (i=0;i<=4;i++)\n\t\t{\n\t\t\tswap=num[n][i];\n\t\t\tnum[n][i]=num[m][i];\n\t\t\tnum[m][i]=swap;\n\t\t}\n\t\tfor (i=0;i<=4;i++)\n\t\t{\n\t\t\tflag=0;\n\t\t\tfor (j=0;j<=4;j++) \n\t\t\t{\n\t\t\t\tif (flag) printf(\" \");\n\t\t\t\telse flag=1;\t\n\t\t\t\tprintf(\"%d\",num[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse printf(\"error\");\n}"} +{"label": "81", "index": "40133", "code": "\nint mat(int a[5][5],int m,int n)\n{\n\tint i,e;\n\tif (n<=4&&n>=0&&m<=4&&m>=0)\n\t{\n\t\t\n\t\tfor (i=0;i<=4;i++)\n\t\t{\n\t\t\te=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=e;\n\t\t\t\n\n\t\t}\n\t\t\treturn 1;\t\t\n\t}\n\telse\n\t\treturn 0;\t\n\t\n}\nint main(int argc, char* argv[])\n{\n\tint b[5][5]={0},k,l,c,m,n;\n\t\n\tfor (k=0;k<=4;k++)\n\t{\n\t\tfor (l=0;l<=4;l++)\n\t\t\tscanf(\"%d\",&b[k][l]);\n\t\t\n\t}\n\t\n\t\n\tscanf(\"%d %d\",&m,&n);\t\n\tc = mat(b,m,n);\n\t\n\tif (c==0)\n\t\tprintf(\"error\");\n\t\n\telse if (c==1)\n\t{\n\t\tfor (k=0;k<=4;k++)\n\t\t{\n\t\t\tfor (l=0;l<=3;l++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",b[k][l]);\n\t\t\t}\n\t\t\t\n\t\tprintf(\"%d\",b[k][4]);\n\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "81", "index": "40134", "code": "void main()\n{\n\tint c[5][5];\n\tint i,j,m,n,p;\n\tint check(int c[][5],int,int);\n\tfor (i=0;i<=4;i++)\n\t{\n\t\tfor (j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&c[i][j]);\n\t}\n\tscanf(\"%d\",&m);\n\tscanf(\"%d\",&n);\n\tp=check(c,m,n);\n\tif (p==1)\n\t{\n\t\tfor (i=0;i<=4;i++)\n\t\t{\n\t\t\tfor (j=0;j<=3;j++)\n\t\t\t\tprintf(\"%d \",c[i][j]);\n\t\t\tprintf(\"%d\\n\",c[i][4]);\n\t\t}\n\t}\n\telse if (p==0)\n\t\tprintf(\"error\\n\");\n}\n\nint check(int c[][5],int m,int n)\n{\n\tint j,f;\n\tint a[5];\n\tif (m<=4&&n<=4)\n\t{\n\t\tfor (j=0;j<=4;j++)\n\t\t\ta[j]=c[m][j];\n\t\tfor (j=0;j<=4;j++)\n\t\t\tc[m][j]=c[n][j];\n\t\tfor (j=0;j<=4;j++)\n\t\t\tc[n][j]=a[j];\n\t\tf=1;\n\t}\n\telse\n\t\tf=0;\n\treturn(f);\n}"} +{"label": "81", "index": "40135", "code": "int main()\n{\n\tint a[5][5],m,n,i,j,t=0,b[5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m<5&&n<5)\n\t\tt++;\n\tif(t==0)\n\t{\n\t printf(\"error\");\n\t }\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==0)\n\t\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\telse\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\t\treturn 0;\n\t}\n\n\n\n"} +{"label": "81", "index": "40136", "code": "void main()\n{\n\tint a[5][5];int t;\n\tint i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t{\t\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif((n<5&&n>=0)&&(m<5&&m>=0)) \n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=a[m][j];a[m][j]=a[n][j];a[n][j]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tif(i!=4) printf(\"%d\\n\",a[i][j]);\n\t\t\telse printf(\"%d\",a[i][j]);\n\t\t}\n\t}\n\telse printf(\"error\");\n}"} +{"label": "81", "index": "40137", "code": "int g(int c[5][5],int v,int u)\n{\n\tint b[1][5],i;\n\t\tif(v>=0&&v<5&&u>=0&&u<5)\n\t\t{ \n\t\t\tfor(i=0;i<5;i++) \n\t\t\t{ \n\t\t\t b[0][i]=c[v][i];\n\t\t c[v][i]=c[u][i];\n\t\t\t c[u][i]=b[0][i];\n\t\t\t}\n\t\t\t return(1);\n\t\t}\n else return(0);\n}\nvoid main()\n{ \n\tint a[5][5],i,j,m,n; \n\tfor(i=0;i<5;i++)\n\t{\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\t\tscanf(\"%d\",&m);\n\t\tscanf(\"%d\",&n);\n\t\tg(a,m,n);\n\t\tif(g(a,m,n)==0)printf(\"error\");\n\t\telse if(g(a,m,n)==1)\n\t\t\tfor(i=0;i<5;i++)\n\t{\t\n\t\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j/4==0)printf(\"%d \",a[i][j]);\n\t\t\telse if(j/4==1)printf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\t}\n}"} +{"label": "81", "index": "40138", "code": "void main()\n{int a[5][5],m,n,i,j,t;\tint f(int,int);\n\tfor(i=0;i<5;i++)\n\tfor(j=0;j<5;j++)scanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\n\tif(f(m,n)){for(i=0;i<5;i++){t=a[m][i];a[m][i]=a[n][i];a[n][i]=t;}\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<4;j++)printf(\"%d \",a[i][j]);printf(\"%d\\n\",a[i][4]);}}\n\telse printf(\"error\");}\nint f(int x,int y)\n{if(x>4||y>4)return 0;\n\telse return 1;}"} +{"label": "81", "index": "40139", "code": "int main(){\n int sz[5][5];\n int row, col;\n for (row=0;row<5;row++){\n for (col=0; col<5;col++){\n scanf(\"%d\", &sz[row][col]);\n }\n }\n int n, m;\n scanf(\"%d %d\", &n, &m);\n int o, p, q, r, s;\n int i;\n if (n<=4&&n>=0&&m<=4&&m>=0){\n o=sz[n][0];\n p=sz[n][1];\n q=sz[n][2];\n r=sz[n][3];\n s=sz[n][4];\n for(i=0;i<5;i++){\n sz[n][i]=sz[m][i];\n }\n sz[m][0]=o;\n sz[m][1]=p;\n sz[m][2]=q;\n sz[m][3]=r;\n sz[m][4]=s;\n for(row=0; row<5;row++){\n for (col=0;col<4; col++){\n printf(\"%d \", sz[row][col]);\n }\n printf(\"%d\\n\",sz[row][4]);\n }\n }\n else {\n printf(\"error\");\n }\n return 0;\n}\n\n"} +{"label": "81", "index": "40140", "code": "int f(int a[5][5],int m,int n)\n{\n int i,temp;\n if(n>4||m>4) return 0;\n else \n for(i=0;i<5;i++)\n {\n temp=a[m][i];\n a[m][i]=a[n][i];\n a[n][i]=temp;\n }\n return 1;\n}\n int main()\n {\n int m,n,a[5][5],k,i,j;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n scanf(\"%d%d\",&m,&n);\n k=f(a,m,n);\n if(k==0)\n printf(\"error\\n\");\n if(k==1)\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n {\n if(j<4)\n printf(\"%d \",a[i][j]);\n if(j==4)\n printf(\"%d\\n\",a[i][j]);\n }\n return 0;\n }\n"} +{"label": "81", "index": "40141", "code": "int m,n,a[5][5];\nint f(int x,int y)\n{\n\tif (x>=0&&x<5&&y>=0&&y<5) return (1);\n\telse return (0);\n}\nvoid main()\n{\n\tint i,j,t;\n\t\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n for (j=0;j<5;j++)\n\t{t=*(*(a+m)+j); *(*(a+m)+j)=*(*(a+n)+j);*(*(a+n)+j)=t;}\n\tif(f(m,n)==1) \n\t{\n\t\tfor (i=0;i<5;i++)\n\t\t\n\t\t\tfor (j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j<4) printf(\"%d \",*(*(a+i)+j));\n\t\t\t else printf(\"%d\\n\",*(*(a+i)+j));\n\t\t\t \n\t\t\t}\n\t}\n\tif(f(m,n)==0) printf(\"error\");\n}\n"} +{"label": "81", "index": "40142", "code": "int A(int m,int n)\n{\n\tint a;\n\tif(0<=m&&m<=4&&0<=n&&n<=4)\n\t\ta=1;\n\telse a=0;\n\treturn(a);\n}\nvoid main()\n{\n\tint m,n,i,j,f[5][5],b[5];\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&f[i][j]);\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tif(A(m,n)==1)\n\t\t{\n\t\t\tif(m!=n)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=4;j++)\n\t\t\t\t{\n\t\t\t\t\tb[j]=f[m][j];f[m][j]=f[n][j];f[n][j]=b[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i=0;i<=4;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=3;j++)\n\t\t\t\t\tprintf(\"%d \",f[i][j]);\n\t\t\t\tprintf(\"%d\\n\",f[i][4]);\n\t\t\t}\n\t\t}\n\t\telse printf(\"error\");\n}\n\n\n"} +{"label": "81", "index": "40143", "code": "int a[5][5],m,n;\nint f(int x,int y){\n\tint temp[5],i;\n\tif(x>4||y>4)return 0;\n\telse {for(i=0;i<5;i++){\n\t\ttemp[i]=a[x][i];\n\t\ta[x][i]=a[y][i];\n\t\ta[y][i]=temp[i];\n\t}\n\treturn 1;\n\t}\n}\nvoid main()\n{\n\tint i,j,t;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tt=f(m,n);\n\tif(t==0)printf(\"error\\n\");\n\telse for(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tprintf(\"%d%c\",a[i][j],j==4?'\\n':' ');\n\t\t}\n\t}\n}"} +{"label": "81", "index": "40144", "code": "\nint main()\n{\n\tint a[6][6] = {0};\n\tint outcome;\n\tint i, j, m, n;\n\tint m1, n1;\n\tint exchange(int b[6][6], int m1, int n1);\n\n\tfor (i = 0; i < 5; i++){\n\t\tfor(j = 0; j < 5; j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\t\n\toutcome = exchange(a, m, n);\n\tif (outcome == 0){\n\t\tprintf(\"error\");\n\t}\n\telse {\n\t\tfor(i = 0; i < 5; i++){\n\t\t\tfor(j = 0; j < 4; j++){\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\nint exchange(int b[6][6], int m1, int n1){\n\tint i;\n\tint c[6] = {0};\n\tif (m1 < 0 || m1>4 || n1 < 0 || n1 > 4){\n\t\treturn 0;\n\t}\n\telse {\n\t\tfor (i = 0; i < 5; i++){\n\t\t\tc[i] = b[m1][i];\n\t\t\tb[m1][i] = b[n1][i];\n\t\t\tb[n1][i] = c[i];\n\t\t}\n\t\treturn 1;\n\t}\n}"} +{"label": "81", "index": "40145", "code": "int main()\n{int sz[5][5],m,n,e,row,col;\nfor( row=0;row<5;row++){\nfor( col=0;col<5;col++){\nscanf(\"%d\",&sz[row][col]);}\n}\nscanf(\"%d%d\",&m,&n);\nif(m<5&&n<5){\n\tfor(int col=0;col<5;col++){\n\t\te=sz[m][col];\n\t\tsz[m][col]=sz[n][col];\n\t\tsz[n][col]=e;\n}\n}\nif(m<5&&n<5){for( row=0;row<5;row++){\nfor( col=0;col<5;col++){\nprintf(\"%d\",sz[row][col]);if(col<4){printf(\" \");}}\n\nprintf(\"\\n\");\n}}\nif(m>4||n>4){printf(\"error\");}\nreturn 0;\n}\n\n"} +{"label": "81", "index": "40146", "code": "int has(int n,int m){\n if((0<=n)&&(n<5)&&(0<=m)&&(m<5)){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\nint main(){\n\tint i,r,m,n;\n\tint s[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(r=0;r<5;r++){\n\t\t\tif(r<4){\n\t\t\tscanf(\"%d \",&s[i][r]);\n\t\t\t}\n\t\t\tif(r==4){\n\t\t\tscanf(\"%d\",&s[i][r]);\n\t\t\t}\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(has(m,n)){\n\t\tint tmp;\n\t\tfor(i=0;i<5;i++){\n\t\t\ttmp=s[m][i];\n\t\t\ts[m][i]=s[n][i];\n\t\t\ts[n][i]=tmp;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tprintf(\"%d %d %d %d %d\\n\",s[i][0],s[i][1],s[i][2],s[i][3],s[i][4]);\n\t\t}\n\t}else{\n\t\tprintf(\"error\\n\");\n\t}\n\treturn 0;\n}\n\t"} +{"label": "81", "index": "40147", "code": "int main()\n{\n\tint a[5][5];\n\tint i,y;\n\tint *p;\n\tint *pa[5];\n\tint fun(int *pa[]);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tpa[i]=a[i];\n\t\tfor(p=a[i];p4||m>4)\n\t\treturn 0;\n\telse\n\t{\n\t\ti=pa[n];\n\t\tpa[n]=pa[m];\n\t\tpa[m]=i;\n\t\treturn 1;\n\t}\n}"} +{"label": "81", "index": "40148", "code": "void main()\n{\n\tint a[5][5]={0};\n\tint b[5]={0};\n\tint n, m;\n int i,j;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\", &a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\", &n, &m);\n\tif (n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tb[j]=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=b[j];\n\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \", a[i][j]);\n\t\t\t}\n\t\t\tif (j=4)\n\t\t\t\tprintf(\"%d\\n\", a[i][j]);\n\t\t}\n\t}\n\telse printf(\"error\");\n}\n\n"} +{"label": "81", "index": "40149", "code": "void main()\n{\n\tint a[6][6]={0},j,i,n,m;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\t\tscanf(\"%d %d\",&n,&m);\n\t\tif(n>=0&&n<5&&m>=0&&m<5)\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\ta[5][i]=a[n][i];\n\t\t\t\ta[n][i]=a[m][i];\n\t\t\t\ta[m][i]=a[5][i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t\tfor(j=0;j<5;j++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\t\tif(j==4)\n\t\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t}\n\t\telse printf(\"error\\n\");\n}"} +{"label": "81", "index": "40150", "code": "int main(){\n int A[5][5],m,n,row,list,i;\n row=0;\n while(row<5){\n list=0;\n while(list<5){\n scanf(\"%d\",&A[row][list]);\n list++;\n }\n row++;\n }\n scanf(\"%d%d\",&m,&n);\n if(m<0||n<0||m>4||n>4){\n printf(\"error\");\n }\n else{\n i=0;\n while(i<5){\n row=A[m][i];\n A[m][i]=A[n][i];\n A[n][i]=row;\n i++;\n }\n row=0;\n while(row<5){\n list=0;\n while(list<5){\n if(list==4){\n printf(\"%d\\n\",A[row][list]);\n }\n else{\n printf(\"%d \",A[row][list]);\n }\n list++;\n }\n row++;\n }\n }\n return 0;\n}\n\n"} +{"label": "81", "index": "40151", "code": "int judge(int m,int n);\nint main(){\n\tint m,n,i,j,array[5][5],tmp;\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&(array[i][j]));\n\tscanf(\"%d%d\",&m,&n);\n\tif (judge(m,n))\n\t{\n\t\tfor (i=0;i<5;i++)\n\t\t\t{\n\t\t\ttmp=array[m][i];\n\t\t\tarray[m][i]=array[n][i];\n\t\t\tarray[n][i]=tmp;\n\t\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",array[i][j]);\n\t\t\tprintf(\"%d\\n\",array[i][4]);\n\t\t}\n\t}\n\t\telse printf(\"error\");\n\treturn 0;\n}\nint judge(int m,int n)\n{\n\tif ((m<5)&&(n<5))\n\t\treturn 1;\n\telse return 0;\n}\n\n"} +{"label": "81", "index": "40152", "code": "\n\nint main()\n{\n\tint n,m,i,j,flag=0;\n int a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\t\n\tif(n<5&&m<5)\n\t{\n\t\n\tfor(j=0;j<5;j++)\n\t{int tmp;\n\ttmp=a[n][j];\n\t\ta[n][j]=a[m][j];\n\t\ta[m][j]=tmp;\n\t}\n\t\n\t\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j==0)\n\tprintf(\"%d\",a[i][j]);\n\t\t\telse printf(\" %d\",a[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\t}\n\telse printf(\"error\");\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40153", "code": "int main()\n{\n\tint sz1[5][5];\n\tint n,m,i,j;\n\tint sz(int sz1[5][5],int m,int n);\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&sz1[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tif(sz(sz1,m,n)==0)\n\tprintf(\"error\");\n\treturn 0;\n}\nint sz(int sz1[5][5],int m,int n)\n{\n\tint i,j,t,y;\n\tif(n<=4&&m<=4){\n\t\ty=1;\n\t\tfor(i=0;i<5;i++){\n\t\t\tt=sz1[n][i];\n\t\t\tsz1[n][i]=sz1[m][i];\n\t\t\tsz1[m][i]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tprintf(\"%d\",sz1[i][j]);\n\t\t\t\tif(j<4)\n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\tif(i<4)\n\t\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t\ty=0;\n\treturn(y);\n}"} +{"label": "81", "index": "40154", "code": "int h(int n,int m);\nint main(){\nint s[5][5];\nint i,m,n,c,y,z,a;\nfor(i=0;i<=4;i++){\nscanf(\"%d %d %d %d %d\",&s[i][0],&s[i][1],&s[i][2],&s[i][3],&s[i][4]);\n}\nscanf(\"%d %d\",&n,&m);\nc=h(n,m);\nif(c==1){\nfor(y=0;y<=4;y++){\nz=s[n][y];\ns[n][y]=s[m][y];\ns[m][y]=z;\n}\nfor(a=0;a<=4;a++){\nprintf(\"%d %d %d %d %d\\n\",s[a][0],s[a][1],s[a][2],s[a][3],s[a][4]);\n}\n}else{\nprintf(\"error\");\n}\nreturn 0;\n}\n\nint h(int n,int m){\nint x;\nif((m>=0&&m<=4)&&(n>=0&&n<=4)){\nx=1;\n}else{\nx=0;\n}\nreturn x;\n}\n"} +{"label": "81", "index": "40155", "code": "int change(int a[5][5],int m,int n)\n{\n\tint c,i,k;\n\tif(m>4||n>4)\n\t{\n\t\tprintf(\"error\\n\");\n\t\treturn(0);\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i==m)\n\t\t\t\tfor(k=0;k<5;k++)\n\t\t\t\t{\n\t\t\t\tc=a[i][k];\n\t\t\t\ta[i][k]=a[n][k];\n\t\t\t\ta[n][k]=c;\n\t\t\t\t}\n\t\t}\n\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n printf(\"%d\",a[i][0]);\n\t\t\tfor(k=1;k<5;k++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[i][k]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n return(1);\n\t}\nvoid main()\n{\n\tint b[5][5],i,k,x,y;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tscanf(\"%d\",&b[i][k]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&x,&y);\n\tchange(b,x,y);\n}"} +{"label": "81", "index": "40156", "code": "int a[5][5],b[5];\nint f(int n,int m)\n{\n\tint i,j,k;\n\tif(m>=5||n>=5)\n\t\treturn 0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\t\t}\n\t\treturn 1;\n\t}\n}\n\n\n\n\nint main(int argc, char* argv[])\n{\n int m,n;\n\tint i,j,k;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tif(f(n,m)==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t{\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t\t\t\n\treturn 0;\n}\n"} +{"label": "81", "index": "40157", "code": "int fanwei(int x,int y);\nint main(){\n\tint i,j,sz[5][5],m,n,zhongjian[1][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(fanwei(m,n)==0){\n\t\tprintf(\"error\");\n\t\treturn 0;\n\t}\n\tif(fanwei(m,n)==1){\n\t\tfor(j=0;j<5;j++){\n\t\t\tzhongjian[0][j]=sz[m][j];\n\t\t}\n\tfor(j=0;j<5;j++){\n\t\t\tsz[m][j]=sz[n][j];\n\t\t}\t\n\tfor(j=0;j<5;j++){\n\t\t\tsz[n][j]=zhongjian[0][j];\n\t\t}\n\t\nfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tif(j==4){\n\t\t\t\tprintf(\"%d\\n\",sz[i][j]);\n\t\t\t}\n\t\t\telse printf(\"%d \",sz[i][j]);\n\t\t}\n\t}\n\t}\n\t return 0;\n\t }\nint fanwei(int x,int y){\n\tif(x<=4&&y<=4&&x>=0&&y>=0){\n\t\treturn 1;\n\t}\n\telse{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40158", "code": "int main(){\n\tint sz[5][25];\n\tint h,l;\n\tint e;\n\tint m,n;\n\tfor(h=0;h<5;h++){\n\t\tfor(l=0;l<5;l++){\n\t\t\tscanf(\"%d\",&sz[h][l]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>=0&&m<=4&&n>=0&&n<=4){\n\n\tfor(l=0;l<5;l++){\n\t\te=sz[m][l];\n\t\tsz[m][l]=sz[n][l];\n\t\tsz[n][l]=e;\n\t}\n\t}\n\tif(m>=0&&m<=4&&n>=0&&n<=4){\n\t\tfor(h=0;h<5;h++){\n\t\tfor(l=0;l<5;l++){\n\t\t\tif(l==4){\n\t\t\t\tprintf(\"%d\\n\",sz[h][l]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"%d \",sz[h][l]);\n\t\t\t}\n\t\t}\n\t}\n\t}\n\telse{\n\t\tprintf(\"error\");\n\t}\n\n\n\n\n\n\n\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40159", "code": "int main()\n{\n\tint a[6][6];\n\tint i,j;\n\tint n,m,t;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\t\n\t\t for(j=0;j<5;j++)\n\t\t {\n t=a[n][j];\n\t\t a[n][j]=a[m][j];\n\t\t a[m][j]=t;\n\t\t }\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\t\n\t\t for(j=0;j<4;j++)\n\t\t {\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t }\n\t\t printf(\"%d\\n\",a[i][4]);\n\t\t}\n\t\n\t}\n\telse printf(\"error\");\n\treturn 0;\n}\n\n\n\t \t\n\t\t\t"} +{"label": "81", "index": "40160", "code": "int main()\n{\n\tint a[5][5],b[5]={0,1,2,3,4},m,n,i,j,temp;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>4||n>4)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse if(m<=4&&n<=4)\n\t{\n\t\ttemp=b[m];\n\t\tb[m]=b[n];\n\t\tb[n]=temp;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[b[i]][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[b[i]][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40161", "code": "int s[5][5];\nint Huan(int a,int b)\n{\n\tint i,j;\n\tif(a<0||a>4||b<0||b>4)\n\t{\n\t\tprintf(\"error\\n\");\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\tfor(i=0;in)\n\t\t{\n\t\t\tt=m;\n\t\t\tm=n;\n\t\t\tn=t;\n\t\t}\n\t\tHuan(m,n);\n\t\treturn 0;\n}\n"} +{"label": "81", "index": "40162", "code": "void main()\n{\n\tint judge(int m,int n);\n\tint a[5][5],m,n,i,j,k,t,leap;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tleap=judge(m,n);\n\tif(leap==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\tif(leap==1)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tt=a[n][k];\n\t\t\ta[n][k]=a[m][k];\n\t\t\ta[m][k]=t;\n\t\t}\n\t for(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<5;j++)\n\t\t\t{\n\t\t\t if(j==0)\n\t\t\t\t{\n\t\t\t\t printf(\"%d\",a[i][j]);\n\t\t\t\t}\n\t\t\t\tif(j!=0)\n\t\t\t\t{\n\t\t\t\t printf(\" %d\",a[i][j]);\n\t\t\t\t}\n\t\t\t\tif(j%4==0&&j!=0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n int judge(int m,int n)\n\t{\n\t\tint leap;\n\t\tif(m>=0&&m<5&&n>=0&&n<5)\n\t\t{\n\t\t\tleap=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tleap=0;\n\t\t}\n\t\treturn(leap);\n\t}"} +{"label": "81", "index": "40163", "code": "int main(){\nint a[5][5];\nint b[5];\nint i,k,n,m;\nfor(i=0;i<5;i++){\nfor(k=0;k<5;k++){\nscanf(\"%d\",&(a[i][k]));\n}\n}\nscanf(\"%d%d\",&n,&m);\nif(n<0||n>4||m<0||m>4){\nprintf(\"error\");\n}\nif(n>=0&&n<=4&&m>=0&&m<=4){\nfor(i=0;i<5;i++){\nb[i]=a[n][i];\na[n][i]=a[m][i];\na[m][i]=b[i];\n}\nfor(i=0;i<5;i++){\nprintf(\"%d\",a[i][0]);\nfor(k=1;k<5;k++){\nprintf(\" %d\",a[i][k]);\nif(k==4){\nprintf(\"\\n\");\n}\n}\n}\n}\nreturn 0;\n}\n\n"} +{"label": "81", "index": "40164", "code": "int j[5][5];\nint change()\n{\n\t int i,m,n,k,l;\n\t int z[5];\n\t for(k=0;k<5;k++)\n {\n\t for(l=0;l<5;l++) scanf(\"%d\",&j[k][l]);\n }\n scanf(\"%d%d\",&m,&n);\n if(m<0||m>4||n<0||n>4) return 0;\n\t else\n\t {\n\t\t for(i=0;i<5;i++) z[i]=j[m][i];\n\t\t for(i=0;i<5;i++) j[m][i]=j[n][i];\n\t\t for(i=0;i<5;i++) j[n][i]=z[i];\n\t\t return 1;\n\t }\n\t \n}\nvoid main()\n{\n int fh,k,l;\n fh=change();\n if(fh==0) printf(\"error\");\n else\n {\n\tfor(k=0;k<5;k++)\n {\n\t\tprintf(\"%d\",j[k][0]);\n\t\tfor(l=1;l<5;l++) printf(\" %d\",j[k][l]);\n\t printf(\"\\n\");\n }\n }\n}\n\n\t\t"} +{"label": "81", "index": "40165", "code": "int change(int a[5][5],int m,int n)\n{\n\tint z,t,i,j;\n\tif((m>4||m<0)||(n>4||n<0))\n\t{\n\t\tz=0;\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=t;\n\t\t\tz=1;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}\n\t\t\n\t}\n\treturn(z);\n}\n\nvoid main()\n{\n\tint a[5][5],p,q,m,n;\n\tfor(p=0;p<5;p++)\n\t\t{\n\t\t\tfor(q=0;q<5;q++)\n\t\t\t{scanf(\"%d\",&a[p][q]);}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tchange(a,m,n);\n}"} +{"label": "81", "index": "40166", "code": "int change(int (*a)[5],int m,int n)\n{\n\tint b,i,temp;\n\tif(n<0||n>4||m<0||m>4) b=0;\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n temp=*(*(a+n)+i);\n *(*(a+n)+i)=*(*(a+m)+i);\n *(*(a+m)+i)=temp;\n\t\t}\n\t\tb=1;\n\t}\n\treturn b;\n}\nint main()\n{\n\tint a[5][5],i,j,(*p)[5],m,n,b;\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",a[i]+j);\n }\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tb=change(p,m,n);\n\tif(b) \n\t\tfor(i=0;i<5;i++)\n\t{\t\n printf(\"\\n\");\n printf(\"%d\",a[i][0]);\n\t\tfor(j=1;j<5;j++)\n\t\t{\n\t\t\tprintf(\" %d\",a[i][j]);\n }\n \n\n\t}\n\t\telse printf(\"\\nerror\\n\");\n\t\treturn 0;\n}\n\n\n"} +{"label": "81", "index": "40167", "code": "\nint main() {\nint i,j,n,t=0,m,k1,k2,k3,k4,k5,k=0;\nint a[6][6];\n\nfor(i=0;i<5;i++){\n\tfor(j=0;j<5;j++){\n\t\tscanf(\"%d\",&a[i][j]);\n\t}\n}\nscanf(\"%d%d\",&n,&m);\n\nfor(i=0;i<5;i++){\n\tfor(j=0;j<5;j++){\n\t\tif(a[i][j]==n) {t++;k2=i;break;}\n\t}\n\tif(t==1) {break;}\n}\nfor(i=0;i<5;i++){\n\tfor(j=0;j<5;j++){\n\t\tif(a[i][j]==m) {k++;k3=i;break;}\n\t}\n\tif(k==1) {break;}\n}\nif(k2!=k3&&t==1&&k==1) {\nk1=a[n][0];a[n][0]=a[m][0];a[m][0]=k1;\nk1=a[n][1];a[n][1]=a[m][1];a[m][1]=k1;\nk1=a[n][2];a[n][2]=a[m][2];a[m][2]=k1;\nk1=a[n][3];a[n][3]=a[m][3];a[m][3]=k1;\nk1=a[n][4];a[n][4]=a[m][4];a[m][4]=k1;\nfor(j=0;j<4;j++){\n\t\tprintf(\"%d \",a[0][j]);\n\t}\nprintf(\"%d\\n\",a[0][4]);\n\nfor(j=0;j<4;j++){\n\t\tprintf(\"%d \",a[1][j]);\n\t}\nprintf(\"%d\\n\",a[1][4]);\n\nfor(j=0;j<4;j++){\n\t\tprintf(\"%d \",a[2][j]);\n\t}\nprintf(\"%d\\n\",a[2][4]);\n\nfor(j=0;j<4;j++){\n\t\tprintf(\"%d \",a[3][j]);\n\t}\nprintf(\"%d\\n\",a[3][4]);\n\nfor(j=0;j<4;j++){\n\t\tprintf(\"%d \",a[4][j]);\n\t}\nprintf(\"%d\\n\",a[4][4]);\n\n\n}\nelse {printf(\"error\");}\nreturn 0;\n}"} +{"label": "81", "index": "40168", "code": "\n\nint main()\n{\n\tint f(int M[5][5], int p, int q);\n\tint i=0,j=0,k,n,m,d=0;\n\tint M[5][5];\n\t\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&M[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\n\tk=f(M,n,m);\n\tif(k==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",M[i][j]);\n\t\t\t\td+=1;\n\t\t\t\tif(d%5==0)\n\t\t\t\t\tprintf(\"\\n\");\n else printf(\" \");\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn 0;\n}\n\nint f(int M[5][5], int p, int q)\n{\n\tint e,i=0,j=0,n,m;\n\n\tif(q>=0&&p<5&&p>=0&&q<5)\n\t{\n\t\t\n\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\te=M[p][i];\n\t\t\t\tM[p][i]=M[q][i];\n\t\t\t\tM[q][i]=e;\n\t\t\t}\n return 1;\n\t}\n\telse return 0;\n}"} +{"label": "81", "index": "40169", "code": "int hs(int sz[5][5],int m,int n){\n\tint szt[5];\n\tint i;\n\tif(m>=0&&m<=4&&n>=0&&n<=4){\n\t\tfor(i=0;i<5;i++){\n\t\tszt[i]=sz[n][i];\n\t\tsz[n][i]=sz[m][i];\n\t\tsz[m][i]=szt[i];\n\t\t}\n\t\treturn 1;\n\t}else{\n\treturn 0;\n\t}\n}\nint main(){\n int t,j,d,k,l,z[5][5];\n\tfor(j=0;j<5;j++){\n\t\tfor(d=0;d<5;d++){\n\t\t\tscanf(\"%d\",&(z[j][d]));\n\t\t}\n\t}\n\tscanf(\"%d%d\",&k,&l);\n t=hs(z,k,l);\n\tif(t==0){\n\t\tprintf(\"error\");\n\t}else{\n\t\tfor(j=0;j<5;j++){\n\t\t for(d=0;d<5;d++){\n\t\t\t if(d!=4){\n\t\t\t\t printf(\"%d \",z[j][d]);\n\t\t\t }else{\n\t\t\t\t printf(\"%d\\n\",z[j][d]);\n\t\t\t }\n\t\t }\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40170", "code": "\nint main()\n{\n char (*p)[5];\n p=(char (*)[5])calloc(5,sizeof(char)*5);\n int i,j,n,m,t;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",*(p+i)+j);\n scanf(\"%d %d\",&n,&m);\n if(n<5&&n>=0&&m<5&&m>=0)\n {for(j=0;j<5;j++)\n t=*(*(p+n)+j),*(*(p+n)+j)=*(*(p+m)+j),*(*(p+m)+j)=t;\n for(i=0;i<5;i++)\n {\n printf(\"%d\",**(p+i));\n for(j=1;j<5;j++)\n printf(\" %d\",*(*(p+i)+j));\n printf(\"\\n\");}\n }\n else printf(\"error\");\n}\n"} +{"label": "81", "index": "40171", "code": "int main(){\nint sz[5][5],n,m,i,j,e;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++)\n scanf(\"%d\",&sz[i][j]);}\n scanf(\"%d%d\",&n,&m);\n if(n<5&&m<5){\n for(j=0;j<5;j++)\n {e=sz[n][j];\n sz[n][j]=sz[m][j];\n sz[m][j]=e;}\n for(j=0;j<=3;j++)\n printf(\"%d \",sz[0][j]);\n printf(\"%d\\n\",sz[0][4]);\n for(j=0;j<=3;j++)\n printf(\"%d \",sz[1][j]);\n printf(\"%d\\n\",sz[1][4]);\n for(j=0;j<=3;j++)\n printf(\"%d \",sz[2][j]);\n printf(\"%d\\n\",sz[2][4]);\n for(j=0;j<=3;j++)\n printf(\"%d \",sz[3][j]);\n printf(\"%d\\n\",sz[3][4]);\n for(j=0;j<=3;j++)\n printf(\"%d \",sz[4][j]);\n printf(\"%d\\n\",sz[4][4]);\n}\nelse printf(\"error\");\nreturn 0;\n}\n \n\n"} +{"label": "81", "index": "40172", "code": "int main()\n{\n\tint a[5][5],n,m,b[1][5],i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t scanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\n\tif(n<5&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[0][i]=a[n][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[n][i]=a[m][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[m][i]=b[0][i];\n\t\t}\n\t\n\nfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j==4)\n\t\t\t{\n\t printf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t}\n\t}\n\t}else\n\t{\n\t\tprintf(\"error\");\n\t}\n\n\n\nreturn 0;\n}"} +{"label": "81", "index": "40173", "code": "void main()\n{\n\tint m,n,i;\n\tint *p[5],*p1;/*????*/\n\tint panduan(int,int);\n\tp[0]=(int *)calloc(5,sizeof(int));\n\tp[1]=(int *)calloc(5,sizeof(int));\n\tp[2]=(int *)calloc(5,sizeof(int));\n\tp[3]=(int *)calloc(5,sizeof(int));\n\tp[4]=(int *)calloc(5,sizeof(int));\n\tfor(i=0;i<5;i++)\n\t{\n\t\tscanf(\"%d %d %d %d %d\",p[i]+0,p[i]+1,p[i]+2,p[i]+3,p[i]+4);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n if(panduan(m,n)==1)\n\t{\n\t\tp1=p[m];\n\t\tp[m]=p[n];\n\t\tp[n]=p1;\n\t for(i=0;i<5;i++)\n\t {\n\t\t\tprintf(\"%d %d %d %d %d\\n\",*(p[i]+0),*(p[i]+1),*(p[i]+2),*(p[i]+3),*(p[i]+4));\n\t }\n\t}\n\telse\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n}\nint panduan(int m,int n)\n{\n\tint z;\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t\tz=1;\n\t}\n\telse\n\t{\n\t\tz=0;\n\t}\n\treturn(z);\n}\n"} +{"label": "81", "index": "40174", "code": "void replace(int*,int*);\n\nint main()\n{\n\tint l[5][5];\n\tint n,m,i,j,*p1,*p2;\n\t\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&l[i][j]);\n\t\t}\n\t}\n\n\tscanf(\"%d%d\",&n,&m);\n\tif((n>=0)&&(n<5)&&(m>=0)&&(m<5))\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tp1=*(l+m)+j;\n\t\t\tp2=*(l+n)+j;\n\t\t\treplace(p1,p2);\n\t\t}\n\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif (i!=0) printf(\"\\n\");\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",l[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",l[i][j]);\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\n\treturn 0;\n}\n\nvoid replace(int*p1,int*p2)\n{\n\t\n\tint a;\n\n\t\ta=*p1;\n\t\t*p1=*p2;\n\t\t*p2=a;\t\t\n\n}\n\t"} +{"label": "81", "index": "40175", "code": "int exchange(int n,int m,int num[5][5])\n{\n\tint i;\n\tint t;\n\tif(n>=0&&n<5&&m>=0&&m<5){\n\t\tfor(i=0;i<5;i++){\n\t\t\tt=num[n][i];\n\t\t\tnum[n][i]=num[m][i];\n\t\t\tnum[m][i]=t;\n\t\t}\n\t\treturn 1;\n\t}\n\tif(n<0||n>=5||m<0||m>=5){\n\t\treturn 0;\n\t}\n}\n\nint main()\n{\n int num[5][5];\n\tint i,j;\n\tint n,m;\n\t\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&num[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\t\n\tif(exchange(n,m,num)==1){\n\t\tfor(i=0;i<5;i++){\n\t\t for(j=0;j<4;j++){\n\t\t\t printf(\"%d \",num[i][j]);\n\t\t\t}\n\t\t printf(\"%d\",num[i][4]);\n\t\t printf(\"\\n\");\n\t\t}\n\t}\n\tif(exchange(n,m,num)==0){\n\t\tprintf(\"error\\n\");\n\t}\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40176", "code": "int main()\n{\n\tint a[5][5],m,n;\n\tint i,j,num1=0,num2=0,temp;\n\tfor(i=0;i<5;i++)\n\t{ \n\t\tfor(j=0;j<5;j++)\n\t\t{ scanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>=0 && n<=4) num1++;\n\tif(m>=0 && m<=4) num2++;\n if(num1==0||num2==0)\n\t printf(\"error\");\n else if(num1!=0 && num2!=0)\n { \n\t for(i=0;i<5;i++)\n\t { temp=a[n][i];\n\t a[n][i]=a[m][i];\n\t\t\t a[m][i]=temp;\n\t }\n for(i=0;i<5;i++)\n\t { \n\t for(j=0;j<4;j++)\n\t\t { printf(\"%d \",a[i][j]);\n\t\t }\n\t printf(\"%d\\n\",a[i][4]);\n\t }\n }\n return 0;\n}"} +{"label": "81", "index": "40177", "code": " int n,m,i,j,k,q,p,w=0;\n\tint c[5][5];\n\n int change(int a,int b)\n{\n\tint e; \n\tif((a<=4)&&(b<=4))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\te=c[n][i];\n\t\t\tc[n][i]=c[m][i];\n\t\t\tc[m][i]=e;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\nvoid main()\n{\n\t\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&c[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tk=change(n,m);\n\tif(k==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\t\tfor(q=0;q<5;q++)\n\t\t{\n\t\t\tfor(p=0;p<5;p++)\n\t\t\t{\n\t\t\t\tif(p==0)\n\t\t\t\t\tprintf(\"%d\",c[q][p]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\" %d\",c[q][p]);\n\t\t\t\t\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\n\n\n}"} +{"label": "81", "index": "40178", "code": "\nint main()\n{\n\tint a[25],m,n,i,temp,x,y;\n\tfor(i=0;i<25;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tscanf(\"%d %d\",&n,&m);\n\tif((m!=0 && m!=1&& m!=2&&m!=3&&m!=4)||(n!=0&&n!=1&&n!=2&&n!=3&&n!=4))\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\t\tx=m*5;\n y=n*5;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[x];\n\t\t\ta[x]=a[y];\n\t\t\ta[y]=temp;\n\t\t\tx++;y++;\n\t\t}\n\t\tprintf(\"%d %d %d %d %d\\n\",a[0],a[1],a[2],a[3],a[4]);\n\t\tprintf(\"%d %d %d %d %d\\n\",a[5],a[6],a[7],a[8],a[9]);\n\t\tprintf(\"%d %d %d %d %d\\n\",a[10],a[11],a[12],a[13],a[14]);\n\t\tprintf(\"%d %d %d %d %d\\n\",a[15],a[16],a[17],a[18],a[19]);\n\t\tprintf(\"%d %d %d %d %d\\n\",a[20],a[21],a[22],a[23],a[24]);\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40179", "code": "int juzhen(int a[5][5],int m,int n);\nvoid main()\n{ \n\t\n\tint s[5][5],b,c,i,j;\n for(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\tscanf(\"%d\", &s[i][j]);}\n\tscanf(\"%d %d\",&b,&c);\n\tif (juzhen(s,b,c))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{for(j=0;j<4;j++)\n\t\tprintf(\"%d \",s[i][j]);\n\t\tprintf(\"%d\",s[i][4]);\n\t\tprintf(\"\\n\");}\n\t}\n\t\n\telse printf(\"error\");\n}\t\n\nint juzhen(int a[5][5],int m,int n)\n{\n\tint p,j;\n\t\n\tif (m<5 && n<5 && m>=0 && n>=0)\n\t{\n\tfor(j=0;j<5;j++)\n\t{\n\t\tp=a[m][j];\n\t\ta[m][j]=a[n][j];\n\t\ta[n][j]=p;}\n\treturn (1);\n\t}\n\telse return (0);\n}\n"} +{"label": "81", "index": "40180", "code": "\nint shuzu[5][5];\n\tint e[5];\n\tint after[5][5];\n\tint m,n,row,col,i;\nint main(int argc, char* argv[])\n{\n\tint exchange(int a,int b);\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++){\n\tscanf(\"%d\",&shuzu[row][col]);}}\n\tscanf(\"%d%d\",&m,&n);\n\tif(exchange(m,n)==0)\n\t{printf(\"error\");}\n\telse\n\t{for(row=0;row<5;row++){\n\tfor(col=0;col<5;col++){\n\t\tif(col!=4){printf(\"%d \",after[row][col]);}\n\telse printf(\"%d\\n\",after[row][col]);}}}\n\n\t\n\treturn 0;\n}\nint exchange(int a, int b){\n\tif(a>=0&&a<5&&b>=0&&b<5) \n\t{for(i=0;i<5;i++){\n\te[i]=shuzu[m][i];\n\tshuzu[m][i]=shuzu[n][i];\n\tshuzu[n][i]=e[i];}\n\tfor(row=0;row<5;row++){\n\tfor(col=0;col<5;col++){\n\t\tafter[row][col]=shuzu[row][col];}}\n\treturn 1;}\n\n\telse return 0;}"} +{"label": "81", "index": "40181", "code": "\nint change(int a,int b);\nint main()\n{\n\tint a[5][5],b[5],i,j,x,y,result;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<=4;j++){\n\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&x,&y);\n\tresult=change(x,y);\n\tif(result==0)\n\t\tprintf(\"error\");\n\tif(result==1){\n\t\tfor(i=0;i<=4;i++){\n\t\tb[i]=a[x][i];\n\t\ta[x][i]=a[y][i];\n\t\ta[y][i]=b[i];\n\t\t}\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tif(j==0){\n\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t}\n\t\t\tif(j>=1&&j<=3){\n\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tif(j==4){\n\t\t\t\tif(i==4){\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t\t}else{\n\t\t\t\tprintf(\" %d\\n\",a[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t}\n\treturn 0;\n}\nint change(int a,int b){\n\tif(a>=0&&a<=4&&b>=0&&b<=4){\n\treturn 1;\n\t}else{\n\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40182", "code": "\nint check(int n,int m);\nvoid swap(int *a,int *b);\n\nvoid main()\n{\n\tint o[5][5];\n\tint n,m;\n\tint i,j,c;\n\tint *x,*y;\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&o[i][j]);\n\t\t}\n\tscanf(\"%d%d\",&n,&m);\n\tc=check(n,m);\n\tif(c==0) printf(\"error\");\n\telse \t\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t x=&o[n][i];\n\t y=&o[m][i];\n\t\t swap(x,y);\n\t\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j<4)\tprintf(\"%d \",o[i][j]);\n\t\t\telse printf(\"%d\",o[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\t}\n}\n\nint check(int n,int m)\n{\n\tint q=0;\n\tif(n<5&&m<5) q=1;\n\telse q=0;\n\treturn(q);\n}\n\t\t\nvoid swap(int *a,int *b)\n{\n\tint temp;\n\ttemp=*a;\n\t*a=*b;\n\t*b=temp;\n}"} +{"label": "81", "index": "40183", "code": "int hanshu(int a[5][5],int m,int n,int *a_p)\n{\n\tint i,y;\n\ta_p=&a[0][0];\n\tif(m<5&&m>=0&&n<5&&n>=0)\n\t{\n\t\tint z[5];\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tz[i]=*(a_p+5*m+i);\n\t\t\t*(a_p+5*m+i)=*(a_p+5*n+i);\n\t\t\t*(a_p+5*n+i)=z[i];\n\t\t}\n\t\ty=1;\n\t}\n\telse\n\t\ty=0;\n\treturn (y);\n}\nint main()\n{\n int hanshu(int a[5][5],int m,int n,int *a_p);\n\tint a[5][5],i,j,m,n,y,*a_p;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\ta_p=&a[0][0];\n\tscanf(\"%d %d\",&m,&n);\n\ty=hanshu(a,m,n,a_p);\n\tif(y==0) printf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j==4) printf(\"\\n\");\n\t\t\t\telse printf(\" \");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40184", "code": "int change(int a,int b);\nint x[5][5];\nint main(){\n\tint n,i,j,a,b;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t scanf(\"%d\",&x[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&a,&b);\n\tn=change(a,b);\n\tif(n==0) printf(\"error\");\n\telse{\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j==0) printf(\"%d\",x[i][j]);\n\t\t\t\telse printf(\" %d\",x[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\t\n return 0;\n\n}\n\nint change(int a,int b){\n\tint i,j,y;\n\t\n\tif(a>4||b>4) return 0;\n\telse{\n\t\tfor(i=0;i<5;i++){\n\t\t\ty=x[a][i];\n\t\t\tx[a][i]=x[b][i];\n\t\t\tx[b][i]=y;\n\t\t}\n\t}\n\treturn 1;\n}\n\t"} +{"label": "81", "index": "40185", "code": "int main(){\n int i,m,n,h,l,re;\n int jz[5][5];\n int te[5];\n for(h=0;h<5;h++){\n for(l=0;l<5;l++){\n scanf(\"%d\",&jz[h][l]);\n }\n }\n //for(h=0;h<5;h++){\n //for(l=0;l<5;l++){\n //printf(\"%d \",jz[h][l]);\n //}\n //}\n scanf(\"%d %d\",&n,&m);\n if(n>-1&&n<5&&m>-1&&m<5){\n re=1;\n }\n else{\n re=0;\n }\n //printf(\"%d\\n \",re);\n if(re==0){\n printf(\"error\");\n }\n else if(re==1){\n for(i=0,l=0;i<5;i++,l++){\n te[i]=jz[n][l];\n }\n for(i=0,l=0;i<5;i++,l++){\n jz[n][l]=jz[m][l];\n }\n for(i=0,l=0;i<5;i++,l++){\n jz[m][l]=te[i];\n }\n for(h=0;h<4;h++){\n for(l=0;l<4;l++){\n printf(\"%d \",jz[h][l]);\n }\n printf(\"%d\\n\",jz[h][4]);\n }\n for(l=0;l<4;l++){\n printf(\"%d \",jz[4][l]);\n }\n printf(\"%d\",jz[4][4]);\n }\n return 0;\n}\n"} +{"label": "81", "index": "40186", "code": "int jh(int a,int b){\n\tif((a<5)&&(a>=0)&&(b<5)&&(b>=0)){return 1;}\n\t\t else{return 0;}\n}\nint main(){\n\tint m,n,i,t,k,a,b;\n\tint sz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(k=0;k<5;k++){\n\t\t\tscanf(\"%d\",&sz[i][k]);\n\t\t}\n\t}\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n t=jh(a,b);\n\tif(t==0){printf(\"error\");}\n\telse {\n\t\tfor(k=0;k<5;k++){\n\t\t\tm=sz[a][k];\n sz[a][k]=sz[b][k];\n\t\t\tsz[b][k]=m;\n\t\t}\n\t}\n if(t==1){\n for(i=0;i<5;i++){\n\t\tfor(k=0;k<5;k++){\n\t\t\tif(k==0){printf(\"%d\",sz[i][k]);}\n\t\t\telse if((k!=4)&&(k!=0)){printf(\" %d\",sz[i][k]);}\n\t\t\telse{printf(\" %d\\n\",sz[i][k]);}\n\t\t}\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40187", "code": "int change(int n,int m)\n{\n\tint c;\n\tif((n>=0)&&(n<=4)&&(m>=0)&&(m<=4)) c=1;\n\telse c=0;\n\treturn c;\n}\nvoid main()\n{\n\tint m,n,num[5][5],*p[5],i,q,c;\n\tfor(i=0;i<5;i++)\n\t\tfor(q=0;q<5;q++) scanf(\"%d\",&num[i][q]);\n\tscanf(\"%d %d\",&n,&m);\n\tfor(i=0;i<5;i++)\n\t\tp[i]=num[i];\n\tc=change(n,m);\n\tif(c==0) printf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i==n) \n\t\t\t{\n\t\t\t\tfor(q=0;q<4;q++) printf(\"%d \",num[m][q]);\n\t\t\t\tprintf(\"%d\\n\",num[m][4]);\n\t\t\t}\n\t\t\telse if(i==m)\n\t\t\t{\n\t\t\t\tfor(q=0;q<4;q++) printf(\"%d \",num[n][q]);\n\t\t\t\tprintf(\"%d\\n\",num[n][4]);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tfor(q=0;q<4;q++) printf(\"%d \",num[i][q]);\n\t\t\t\tprintf(\"%d\\n\",num[i][4]);\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40188", "code": "\nint tf(int i,int j)\n{\n\tif (i>4||i<0||j>4||j<0)\n\t\treturn 0;\n\telse return 1;\n}\n\nint main()\n{\n\tint i,j,m,n,a[5][5],temp;\n\tint *p=a[0];\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n \tif (tf(m,n))\n\t{\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=*(p+m*5+i);\n\t\t\t*(p+m*5+i)=*(p+n*5+i);\n\t\t\t*(p+n*5+i)=temp;\n\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\telse printf(\"error\");\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40189", "code": "int f(int x,int y)\n{\n\tint z;\n\tif(x!=y&&x>=0&&x<=4&&y>=0&&y<=4)\n\t\tz=1;\n\telse\n\t\tz=0;\n\treturn(z);\n}\nvoid main()\n{\n\tint i,j,k,m,n,a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(f(n,m)==0)\n\t\tprintf(\"error\");\n\tif(f(n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tk=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=k;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n}"} +{"label": "81", "index": "40190", "code": "int matf(int (*mat)[5],int n,int m)\n{\n\tint temp;\n\tint i;\n\n \tif(!(n>=0&&n<=4&&m>=0&&m<=4))\t\n\t\treturn 0;\t\n\telse\n\t{\n for(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=*(*(mat+n)+i);\n\t\t\t*(*(mat+n)+i)=*(*(mat+m)+i);\n\t\t\t*(*(mat+m)+i)=temp;\n\t\t}\n\t\treturn 1;\n\t}\n}\n\nint main()\n{\n\tint i,j;\n\tint mat[5][5];\n\tint n,m;\n\tint p;\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(mat+i)+j);\n\tscanf(\"%d %d\",&n,&m);\n\tp=matf(mat,n,m);\n\tif(p==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n\t\t\t printf(\"%d%c\",*(*(mat+i)+j),(j!=4)?' ':'\\n');\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40191", "code": "\nint check(int m)\n{\n if (m<=5 && m>=0) return 1;\n else return 0; \n}\n\n\nint main()\n{\n int m,n,i;\n char temp[10],a[6][10];\n for (i=1;i<=5;i++)\n {\n gets(a[i]); \n }\n scanf(\"%d%d\",&m,&n);\n if (check(m+1) && check(n+1))\n {\n strcpy(temp,a[m+1]);\n strcpy(a[m+1],a[n+1]);\n strcpy(a[n+1],temp);\n for (i=1;i<=5;i++)\n puts(a[i]);\n \n }\n else printf(\"error\");\n\n\n return 0;\n} "} +{"label": "81", "index": "40192", "code": "int change(int a[5][5],int n,int m)\n{\n\tint c,j,t;\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tc=1;\n\t for(j=0;j<5;j++)\n\t {\n\t \tt=a[n][j];\n\t \ta[n][j]=a[m][j];\n\t\t a[m][j]=t;\n\t }\n\t}\n\telse\n\tc=0;\n\treturn(c);\n}\nvoid main()\n{\n\tint s[5][5];\n\tint i,j,x,y;\n for(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n {\n\t\t\tscanf(\"%d \",&s[i][j]);\n }\n scanf(\"%d\",&s[i][4]);\n\t}\n\tscanf(\"%d%d\",&x,&y);\n\tif(change(s,x,y)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t {\n\t\t for(j=0;j<4;j++)\n {\n\t\t\t printf(\"%d \",s[i][j]);\n }\n printf(\"%d\",s[i][4]);\n printf(\"\\n\");\n\t }\n\t}\n\telse\n printf(\"error\");\n}\n"} +{"label": "81", "index": "40193", "code": "int main(){\n\tint sz[5][5];\n\tint j;\n\tint i,n,m,a;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t scanf(\"%d\",&(sz[i][j]));\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\t if(n>=0&&n<5&&m>=0&&m<5){\n\t\t for(i=0;i<5;i++){\n\t\t\t a=sz[m][i];\n\t\t\t sz[m][i]=sz[n][i];\n\t\t\t sz[n][i]=a;\n\t\t }\n\t\t\t for(i=0;i<5;i++){\n\t\t\t\t for(j=0;j<5;j++){\n\t\t\t\t\t if(j>0){\n\t\t\t\t\t\t printf(\" \");\n\t\t\t\t\t }\n\t\t\t\t\t\tif(j!=4){\n\t\t printf(\"%d\",sz[i][j]);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t printf(\"%d\\n\",sz[i][j]);\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t }\n\t }else{\n\t\t printf(\"error\");\n\t }\n\n\treturn 0;\n}"} +{"label": "81", "index": "40194", "code": "int main(){\nint sz[5][5],m,n,a,b;\nfor(int k=0;k<=4;k++){\nfor(int t=0;t<=4;t++){\nscanf(\"%d\",&sz[k][t]);}}\nscanf(\"%d%d\",&m,&n);\nif(m<=4&&m>=0&&n<=4&&n>=0){a=1;}\nelse{a=0;}\nif(a==1){\nfor(int i=0;i<=4;i++){\nb=sz[m][i];\nsz[m][i]=sz[n][i];\nsz[n][i]=b;}\nfor(int p=0;p<=4;p++){\n printf(\"%d\", sz[p][0]);\nfor(int q=1;q<=4;q++){\nprintf(\" %d\",sz[p][q]);}\nprintf(\"\\n\");}\n}\nif(a==0){\nprintf(\"error\");}\nreturn 0;\n\n}\n\n"} +{"label": "81", "index": "40195", "code": "void main()\n{\n\tint change(int b[5][5],int x,int y);\n\tint a[5][5];\n\tint c[5];\n\tint i,j,k;\n\tint n,m;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif (change (a[5][5],n,m)==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\tif (change (a[5][5],n,m)==1)\n\t{for (k=0;k<5;k++)\n\t\t{\n\t\t\tc[k]=a[n][k];\n\t\t\ta[n][k]=a[m][k];\n\t\t\ta[m][k]=c[k];\n\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n}\nint change(int b[5][5],int x,int y)\n{\n\tint z;\n\tif (x>4||x<0||y>4||y<0)\n\t{\n\t\tz=0;\n\t}\n\telse\n\t{\n\t\tz=1;\n\t}\n\treturn (z);\n}"} +{"label": "81", "index": "40196", "code": "int jiaohuan(int n,int m,int a[5][5])\n{\n\tint i,c,t;\n\tif(((m<0)||(m>4))||((n<0)||(n>4)))\n\t{\n\t\tc=0;\n\t}\n\telse\n\t{\n\t\tc=1;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t;\n\t\t}\n\t}\n\treturn (c);\n\t\n\n} \nvoid main()\n{ \n\tint n,m,c,i,j;\n\tint a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tc=jiaohuan(n,m,a);\n\tif(c==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\tif(c==1)\n\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\t\n}\n"} +{"label": "81", "index": "40197", "code": "int h(int x,int y);\nint main(){\n int a[5][5],m,n,i,j,s,b[5];\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&(a[i][j]));\n }\n }\n scanf(\"%d%d\",&n,&m);\n s=h(n,m);\n if(s==0)printf(\"error\");\n else {\n for(i=0;i<5;i++){\n b[i]=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=b[i];\n }\n for(i=0;i<5;i++){\n printf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n }\n }\n return 0;\n}\nint h(int x,int y){\n if(x>=0 && x<5 && y>=0 && y<5)return 1;\n else return 0;\n}"} +{"label": "81", "index": "40198", "code": "void exchange(int (*p)[5],int x,int y);\nint main()\n{\n\tint i,k,m,n;\n\tint square[5][5];\n\tfor(k=0;k<=4;k++){\n\t\tfor(i=0;i<=4;i++){\n\t\t\tscanf(\"%d\",&(square[k][i]));\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\texchange(square,m,n);\n\treturn 0;\n}\nvoid exchange(int (*p)[5],int x,int y)\n{\n\tint e,i,k;\n\tif(x>=0&&x<=4&&y>=0&&y<=4){\n\t\tfor(i=0;i<=4;i++){\n\t\t\te=*(*(p+x)+i);\n\t\t\t*(*(p+x)+i)=*(*(p+y)+i);\n\t\t\t*(*(p+y)+i)=e;\n\t\t}\n\t\tfor(i=0;i<=4;i++){\n\t\t\tfor(k=0;k<=3;k++){\n\t\t\t\tprintf(\"%d \",*(*(p+i)+k));\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",*(*(p+i)+4));\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\n}\n"} +{"label": "81", "index": "40199", "code": "void main()\n{\n\tint f(int (*p)[5],int n,int m);\n\tint a[5][5],m,n,i,j,k,(*p)[5];\n\tfor(i=0;i<5;i++)\n\tfor(j=0;j<5;j++)\n\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tp=a;\n k=f(p,n,m);\n\tif(k==0) printf(\"error\");\n\tif(k==1)\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\tif(j==0) printf(\"%d\",a[i][j]);\n\telse printf(\" %d\",a[i][j]);\n\tprintf(\"\\n\");}\n}\nint f(int (*p)[5],int n,int m)\n{\n\tint j,temp;\n\tif(n<0||n>4||m<0||m>4) return 0;\n\telse \n\t\tfor(j=0;j<5;j++)\n\t\t{temp=*(*(p+n)+j);*(*(p+n)+j)=*(*(p+m)+j);\n\t\t*(*(p+m)+j)=temp;}\n\treturn 1;\n}\n"} +{"label": "81", "index": "40200", "code": "int main()\n{\n\tint a[5][5],m,n,i,*p[5],*t;\n\tfor(i=0;i<5;i++)\n\tp[i]=a[i];\n\tfor(i=0;i<5;i++)\n\t\tscanf(\"%d %d %d %d %d\",p[i],p[i]+1,p[i]+2,p[i]+3,p[i]+4);\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&m<5)\n\t{\n\t\tt=p[n];\n\t\tp[n]=p[m];\n\t\tp[m]=t;\n\t for(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d %d %d %d %d\",*p[i],*(p[i]+1),*(p[i]+2),*(p[i]+3),*(p[i]+4));\n\t\t\tif(i<4)printf(\"\\n\");\n\t\t}\n\t}\n\telse printf(\"error\");\n\treturn 0;\n}"} +{"label": "81", "index": "40201", "code": "int main()\n{\n\tint a[5][5];\n\tint b[5][5];\n\tint i,j;\n\tint n,m,x,y;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\t\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(a[i][j]==n)\n\t\t\t{\n\t\t\t x=1;\n\t\t\t break;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx=0;\n\t\t\t}\n\t\t}\n\t\tif(x==1)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(a[i][j]==m)\n\t\t\t\t{\n\t\t\t\t\tx=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x==1)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\tif(x==0||n>4||m>4)\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n\telse\n\t{\n\t\t\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tb[i][j]=a[i][j];\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tb[n][j]=a[m][j];\n\t\t}\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tb[m][j]=a[n][j];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",b[i][j]);\n\t\t\t\tif(j!=4)\n\t\t\t\t{\n\t\t\t\t\tputchar(' ');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tputchar('\\n');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n\t\n}\n"} +{"label": "81", "index": "40202", "code": "int main()\n{\n\tint cal(int s,int t);\n\tint a[5][5],i,n,m,(*p)[5],temp;\n\tfor(p=a;p=0&&y<=4&&y>=0)\n\t\treturn (1);\n\telse\n\t\treturn (0);\n}"} +{"label": "81", "index": "40204", "code": "int main(int argc, char* argv[])\n{\n\tint a[5][5],e[5];\n\tint m,n;\n\tint i,j;\n\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\t\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t\t{\n\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\te[i]=a[n][i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\ta[n][i]=a[m][i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\ta[m][i]=e[i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j!=4)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\telse \n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\n\t\t}printf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n\n\treturn 0;\n}\n\n\n"} +{"label": "81", "index": "40205", "code": "int main()\n{\n\tint jz[5][5],n,m,i,j,x[5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&jz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&m<5){\n\t\tfor(j=0;j<5;j++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\tx[j]=jz[n][j];\n\t\t\tjz[n][j]=jz[m][j];\n\t\t\tjz[m][j]=x[j];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",jz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",jz[i][4]);\n\t\t}\n\t}\n\t}\n else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40206", "code": "void main()\n{\n\tint a[5][5];\n\tint i=0,j=0,m,n,k,p=0;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(f(m,n)==0)\n\t\tprintf(\"error\");\n\tif(f(m,n)==1)\n\t{\n\t\tfor(p=0;p<=4;p++)\n\t\t{\n\t\t\tk=a[m][p];\n\t\t\ta[m][p]=a[n][p];\n\t\t\ta[n][p]=k;\n\t\t}\n\t\ti=0;\n\t\tj=0;\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tfor(j=0;j<=4;j++)\n\t\t\t{\n\t\t\t\tif(j!=4)\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\t\t}\n\t}\n}\nint f(int a,int b)\n{\n\tint c;\n\tif(a<=4&&b<=4&&a!=b)\n\t\tc=1;\n\telse\n\t\tc=0;\n\treturn(c);\n}\n"} +{"label": "81", "index": "40207", "code": "int main()\n{\n\tint exchange(int a[5][5],int n,int m);\n\tint a[5][5],n,m;\n\tint i,j;\n\tint y;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\ty=exchange(a,n,m);\n\tif(y==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j!=4)\n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\n\n\treturn 0;\n}\n\n\nint exchange(int a[5][5],int n,int m)\n{\n\tint z,k,i,j;\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tk=a[m][j];\n\t\t\ta[m][j]=a[n][j];\n\t\t\ta[n][j]=k;\n\t\t}\n\t\tz=1;\n\t}\n\telse\n\t\tz=0;\n\treturn z;\n}\n\t\t"} +{"label": "81", "index": "40208", "code": "void main()\n{\n int hanshu(int juzhen[5][5],int x,int y);\n int a[5][5],i,x,y,k,e;\n for(i=0;i<5;i++)\n {\n for(k=0;k<5;k++)\n {\n scanf(\"%d\",&a[i][k]);\n }\n }\n scanf(\"%d %d\",&x,&y);\n e=hanshu(a,x,y);\n if(e==1)\n {\n for(i=0;i<5;i++)\n {\n for(k=0;k<5;k++)\n {\n if(k==0)\n printf(\"%d\",a[i][k]);\n else\n printf(\" %d\",a[i][k]);\n if(k==4)\n printf(\"\\n\");\n }\n }\n }\n if(e==0)\n {\n printf(\"error\");\n }\n}\nint hanshu(int juzhen[5][5],int m,int n)\n{\n int c,d[5],p;\n if(m>=0&&m<5&&n>=0&&n<5)\n {\n c=1;\n for(p=0;p<5;p++)\n {\n d[p]=juzhen[m][p];\n juzhen[m][p]=juzhen[n][p];\n juzhen[n][p]=d[p];\n }\n return (c);\n }\n else\n {\n c=0;\n return (c);\n }\n}"} +{"label": "81", "index": "40209", "code": "int huanhang(int sz[5][5],int x,int y)\n{\n\tint k,t,i;\n\tif(x>=0&&x<=4&&y>=0&&y<=4){\n\t\tfor(i=0;i<5;i++){\n\t\t\tt=sz[x][i];\n\t\t\tsz[x][i]=sz[y][i];\n\t\t\tsz[y][i]=t;\n\t\t}\n\t\treturn 1;\n\t}\n\tif(x>=5||x<0||y>=5||y<0){\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tint shuzu[5][5],i,j,n,m,t;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&shuzu[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tt=huanhang(shuzu,n,m);\n\tif(t==0){\n\t\tprintf(\"error\");\n\t}\n\tif(t==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",shuzu[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",shuzu[i][4]);\n\t\t}\n\t}\n\treturn 0;\n}\n \n"} +{"label": "81", "index": "40210", "code": "int f(int n,int m){\n\tif(n>=5||m>=5||m<0||n<0){\n\t\treturn 0;\n\t}else{\n\t\treturn 1;\n\t}\n}\n\nint main(){\n\tint a[5];\n\tint i,j,m,n;\n\tint sz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(f(n,m)==0){\n\t\tprintf(\"error\");\n\t}else{\n\t\tfor(i=0;i<5;i++){\n\t\t\ta[i]=sz[m][i];\n\t\t\tsz[m][i]=sz[n][i];\n\t\t\tsz[n][i]=a[i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j<=3) printf(\"%d \",sz[i][j]);\n\t\t\t\telse printf(\"%d\\n\",sz[i][j]);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40211", "code": "void main()\n{\n\tint hanshu(int s[5][5],int n,int m);\n\t\tint a[5][5],b[1][5];\n\tint n,m,i,j;\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d %d\",&n,&m);\n\t\tif(hanshu(a,n,m)==0)\n\t\t\tprintf(\"error\\n\");\n\t\tif(hanshu(a,n,m)==1)\n\t\t{\n\t\t\tfor(j=0;j<=4;j++)\n\t\t\t{\n\t \tb[0][j]=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=b[0][j];\n\t\t\t}\n for(i=0;i<=4;i++)\n\t\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\n\t\t}\n}\n\nint hanshu(int a[5][5],int n,int m)\n{\n\tint z;\n\tif(n>=5||m>=5)\n\t\tz=0;\n\tif(n<5&&m<5)\n \tz=1;\n\t\treturn(z);\n}\n"} +{"label": "81", "index": "40212", "code": "int main(){\n\tint sz[5][5];\n\tint i,k,e,a,n,m;\n\tfor(k=0;k<5;k++){\n\t\tfor(i=0;i<5;i++){\n\t\t\tscanf(\"%d\",&sz[k][i]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&m<5){\n\t\tfor(i=0;i<5;i++){\n\t\t\te=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=e;\n\t\t}\n\t\ta=1;\n\t}else{\n\t\ta=0;\n\t}\n\tif(a==1){\n\t\tfor(k=0;k<5;k++){\n\t\t\tprintf(\"%d %d %d %d %d\\n\",sz[k][0],sz[k][1],sz[k][2],sz[k][3],sz[k][4]);\n\t\t}\n\t}else if(a==0){\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40213", "code": "\nint a[5][5]={0};\nint m, n;\n\nint jiaohuan(int a[5][5], int n, int m)\n{\n\tint b[5]={0};\n\tint i;\n\tif(n<5&&m<5&&n>=0&&m>=0)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[m][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[m][i]=a[n][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[n][i]=b[i];\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}\n\nint main()\n{\n\tint i, j, c;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\", &a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\", &n ,&m);\n\tc=jiaohuan(a, n, m);\n\tif(c==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\tif(c==1)\n\t{\t\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \", a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\", a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40214", "code": "int stu(int (*p)[5],int m,int n)\n{int i,tem;\n\nif(m>=0&&m<5&&n>=0&&n<5)\n{for(i=0;i<5;i++)\n{tem=*(*(p+m)+i);\n*(*(p+m)+i)=*(*(p+n)+i);\n*(*(p+n)+i)=tem;}\nreturn(1);}\nelse return(0);\n}\n\n\nint main()\n{int B[5][5],M,N,j,k,w,e,p,m,i,PAN,tem;\n\nfor(j=0;j<5;j++)\n\t\t\t\t\t{for(k=0;k<5;k++)\n\t\t\t\t\t{scanf(\"%d\",&B[j][k]);\n\n\t\t\t}\n\n\n\n\t\t\t}\n\nscanf(\"%d %d\",&M,&N);\n\nif(M>=0&&M<5&&N>=0&&N<5)\n{for(i=0;i<5;i++)\n{tem=B[M][i];\nB[M][i]=B[N][i];\nB[N][i]=tem;}\nPAN=1;}\nelse PAN=0;\n\nif(PAN==0)\nprintf(\"error\");\nelse \n\t\tfor(w=0;w<5;w++)\n\t\t{\n\t\t\tprintf(\"%d\",B[w][0]);\n\t\t\t\tfor(e=1;e<5;e++)\n\n\t\t\tprintf(\" %d\",B[w][e]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\t}\n\t\treturn 0;\n}\n"} +{"label": "81", "index": "40215", "code": "int change(int a[5][5],int n,int m)\n{\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tint i,t;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nint main()\n{\n\tint b[5][5];\n\tint k,l,m,n,t;\n\tfor(k=0;k<5;k++)\n\t{\n\t\tfor(l=0;l<5;l++)\n\t\t{\n\t\t\tscanf(\"%d\",&b[k][l]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(change(b,m,n)==0)\n\t{printf(\"error\\n\");}\n\telse\n\t{\n\t\tif(change(b,m,n)==1)\n\t\t{\n\t\t\tfor(k=0;k<5;k++)\n\t\t\t{\n\t\t\t\tt=b[m][k];\n\t\t\t\tb[m][k]=b[n][k];\n\t\t\t\tb[n][k]=t;\n\t\t\t}\n\t\t\tfor(k=0;k<5;k++)\n\t\t\t{\n\t\t\t\tfor(l=0;l<4;l++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",b[k][l]);\n\t\t\t\t}\n\t\t\t\tprintf(\"%d\\n\",b[k][4]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40216", "code": "void main()\n{\n\tint array[5][5],n,m,i,z;\n\tint *p;\n\tint panduan(int,int);\n\tvoid zhuanhuan(int *,int*);\n\tfor(i=0;i<5;i++)\n\t{ \n\t\tp=array[i];\n\t scanf(\"%d %d %d %d %d\\n\",p,p+1,p+2,p+3,p+4);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tz=panduan(n,m);\n\tif(z==1)\n\t{\n\t\tzhuanhuan(array[n],array[m]);\n\t\tfor(i=0;i<5;i++)\n\t\t{ \n\t\tp=array[i];\n\t printf(\"%d %d %d %d %d\\n\",*p,*(p+1),*(p+2),*(p+3),*(p+4));\n\t\t}\n\t}\n\tif(z==0)\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n}\n\nint panduan(int n,int m)\n{\n\tint z=1;\n\tif(n<0||n>4)z=0;\n\tif(m<0||m>4)z=0;\n\treturn(z);\n}\n\nvoid zhuanhuan(int *a,int *b)\n{\n\tint temp,i;\n\tfor(i=0;i<5;i++)\n\t{\n\t\ttemp=*(a+i);\n\t\t*(a+i)=*(b+i);\n\t\t*(b+i)=temp;\n\t}\n}"} +{"label": "81", "index": "40217", "code": "\nint panduan(int x,int y){\n\tif(x>=0&&x<5&&y>=0&&y<5)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\n\nint main(){\n int i,j,m,n,t,pd=0,a[5][5];\n\t for(i=0;i<5;i++){\n\t\t for(j=0;j<5;j++){\n\t\t\t scanf(\"%d\",&a[i][j]);\n\t\t }\n\t }\n\t scanf(\"%d%d\",&m,&n);\n pd=panduan(m,n);\n\t if(pd==0)\n\t\t printf(\"error\\n\");\n\t else{\n\t\t for(j=0;j<5;j++){\n\t\t\t t=a[m][j];\n\t\t\t a[m][j]=a[n][j];\n\t\t\t a[n][j]=t;\n\t\t }\n\t for(i=0;i<5;i++){\n\t\t for(j=0;j<5;j++){\n\t\t\t if(j!=4)\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t if(j==4)\n\t\t\t\t printf(\"%d\\n\",a[i][j]);\n\t\t }\n\t }\n\t }\n\t return 0;\n\n}\n"} +{"label": "81", "index": "40218", "code": "void main()\n{\n\tint s[5][5],t[5];\n\tint m,n,i,j;\n\tint c(int x,int y);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(c(m,n))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt[i]=s[m][i];\n\t\t\ts[m][i]=s[n][i];\n\t\t\ts[n][i]=t[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",s[i][j]);\n\t\t\t\t\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",s[i][4]);\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n}\nint c(int x,int y)\n{\n\tif(x>=0&&x<5&&y<5&&y>=0)\n\t{\n\t\treturn 1;\n\t}\n\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40219", "code": "void Change(int a[5][5],int b,int c);//????~\n\nvoid main()\n{\n\tint i,j,matrix[5][5],p,q;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&matrix[i][j]);\n\tscanf(\"%d%d\",&p,&q);\n\n\tif(!(p>=0&&p<5&&q>=0&&q<5))\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tChange(matrix,p,q);\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t \tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==0)\n\t\t \tprintf(\"%d\",matrix[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\" %d\",matrix[i][j]);//?????????????????~\n\t\t\t}\n\t\t printf(\"\\n\");\n\t\t}\n\t}\n}\n void Change(int a[5][5],int b,int c)\n\t{\n\t\tint t,temp;\n\t\tfor(t=0;t<5;t++)\n\t\t{\n\t\t\ttemp=a[b][t];\n\t\t\ta[b][t]=a[c][t];\n\t\t\ta[c][t]=temp;\n\t\t}\n\t}"} +{"label": "81", "index": "40220", "code": "int main()\n{\n int s[5][5]={0},m,n,i,j,t;\n \n for(i=0;i<5;i++){\n for(j=0;j<5;j++)\n scanf(\"%d\",&s[i][j]);\n }\n scanf(\"%d%d\",&m,&n);\n \n int converse(int p,int q);\n \n if(converse(m,n)){\n for(j=0;j<5;j++){\n t=s[m][j];\n s[m][j]=s[n][j];\n s[n][j]=t;\n }\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n if(j!=4)\n printf(\"%d \",s[i][j]);\n if(j==4)\n printf(\"%d\\n\",s[i][j]);\n }\n }\n } \n else{\n printf(\"error\"); \n } \n return 0;\n} \n\nint converse(int p,int q)\n{\n int t;\n if(p<0||p>4||q<0||q>4)\n return t=0;\n else \n return t=1; \n}"} +{"label": "81", "index": "40221", "code": "void main ()\n{\n int i,j,n,m;int a[5][5],zz;\n for(i=0;i<5;i++)\n\t { for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n\t }\n scanf(\"%d %d\",&n,&m);\n \n\t if(n>=0&&n<5&&m>=0&&m<5)\n\t {\n for(i=0;i<5;i++)\n\t\t{\n\t\t\tzz=a[n][i];a[n][i]=a[m][i];a[m][i]=zz;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n for(j=0;j<5;j++)\n\t\t {\n printf(\"%d\",a[i][j]);\n if(j<4) printf(\" \");\n\t\t }\n printf(\"\\n\");\n\t\t}\n\t }\n else printf(\"error\\n\");\t \n}\n"} +{"label": "81", "index": "40222", "code": " \nint main(){\n\tint a[5][5]; int e,n,m; \n\tfor(int k=0;k<5;k++){\n\tfor(int i=0;i<5;i++)\n\t\t\tscanf(\"%d\", &a[k][i]);\n}\nscanf(\"%d%d\", &n,&m);\nif(n>4||m>4)\nprintf(\"error\" );\nelse {\n\tfor(int i=0;i<5;i++){\ne=a[n][i];\na[n][i]=a[m][i];\na[m][i]=e;\n\t}\nfor(int k=0;k<5;k++){\n\n\t \tfor(int i=0;i<4;i++)\n\t\t\tprintf(\"%d \", a[k][i]);\n printf(\"%d\\n\", a[k][4]);\n \n}\n\n}\n\treturn 0;\n} \n"} +{"label": "81", "index": "40223", "code": "int work(int arr[5][5],int m,int n)\n{\n\tint k,t;\n\tif ((m>=0)&&(m<5)&&(n>=0)&&(n<5))\n\t{\n\t\tfor (k=0;k<5;k++)\n\t\t{\n\t\t\tt=arr[m][k];\n\t\t\tarr[m][k]=arr[n][k];\n\t\t\tarr[n][k]=t;\n\t\t}\n\t\treturn 1;\n\t} \n else\n\t return 0;\n}\n\nint main()\n{\n\tint i,j,m,n;\n\tint a[5][5];\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&m,&n);\n\tif (work(a,m,n)==1)\n\t{\n\t\tfor (i=0;i<5;i++)\n {\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor (j=1;j<5;j++) printf(\" %d\",a[i][j]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\\n\");\n\treturn 0;\n}"} +{"label": "81", "index": "40224", "code": "void main()\n{\n\tint a[5][5];\n\tint z[5],x[5];\n\tint i,j;\n\tint n,m;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif (n<5 && m<5)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\t{\n\t\t\tz[j]=a[n][j];\n\t\t\tx[j]=a[m][j];\n\t\t\ta[n][j]=x[j];\n\t\t\ta[m][j]=z[j];\n\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t\tfor (j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\telse \n\t{\n\t\tprintf(\"error\\n\");\n\t}\n}\n"} +{"label": "81", "index": "40225", "code": "int main()\n{\n\tint o,n,m,array[5][5],i,j,temp[5];\n for(i=0;i<5;i++){ \n for(j=0;j<5;j++){\n scanf(\"%d\",&array[i][j]);}\n }\n scanf(\"%d %d\",&n,&m);\n if((n>=0&&n<=4)&&(m>=0&&m<=4)){\n for(i=0;i<5;i++){\n temp[i]=array[n][i];\n array[n][i]=array[m][i];\n array[m][i]=temp[i];\n }\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n if(j==0){\n printf(\"%d\",array[i][j]);\n }\n else if(j!=0&&j!=4){\n printf(\" %d\",array[i][j]);\n } \n else{\n printf(\" %d\\n\",array[i][j]);\n } \n }\n } \n}\n else{\n printf(\"error\"); } \n\tscanf(\"%d\",&o);\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40226", "code": "void function(int num[5][5],int n,int m)\n{\n\tint i,j;\nif((n<5&&n>=0)&&(m<5&&n>=0))\n{\nfor(i=0;i<=4;i++)\n{\n\tif(i==n)\t\n\t{\n\t\tfor(j=0;j<=3;j++)\n\t\tprintf(\"%d \",num[m][j]);\n\t\tprintf(\"%d\\n\",num[m][4]);\n\t}\n\telse if(i==m)\t\n\t{\n\t\tfor(j=0;j<=3;j++)\n\t\tprintf(\"%d \",num[n][j]);\n\t\tprintf(\"%d\\n\",num[n][4]);\n\t}\n\telse \n\t{\n\t\tfor(j=0;j<=3;j++)\n\t\tprintf(\"%d \",num[i][j]);\n\t\tprintf(\"%d\\n\",num[i][4]);\n\t}\n}\n}\nelse printf(\"error\\n\");\n}\nvoid main()\n{\n\tint num[5][5]={0};\n\tint n,m,i,j;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t\tscanf(\"%d\",&num[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tfunction(num,n,m);\n}"} +{"label": "81", "index": "40227", "code": "int i,j,p,m,n;\nint han(int m,int n,int sz[5][5]);\nint han(int m,int n,int sz[5][5]){\n\t\n\tif(0<=m&&m<=4&&0<=n&&n<=4){\n\t\tfor(i=0;i<5;i++){\n\t\t\tp=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=p;\n\t\t}\n\t\treturn 1;\n\t}else{ return 0;}\n}\nint main(){\n\tint s[5][5],c;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t\t}\n\t}scanf(\"%d%d\",&m,&n);\n c=han(m,n,s);\n\tif(c==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j<4){\n\t\t\t\t\tprintf(\"%d \",s[i][j]);\n\t\t\t\t}else{printf(\"%d\\n\",s[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\n\t\t\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40228", "code": "int ab(int n,int m);\nint main(){\n int i,j,n,m,a[5][5];\n for(i=0;i<5;i++){\n\t for(j=0;j<5;j++){\n\t scanf(\"%d\",&a[i][j]);\n\t }\n }\n scanf(\"%d%d\",&n,&m);\n if(ab(n,m)) {\n\t for(j=0;j<5;j++){\n\t int tmp;\n\t\t tmp=a[n][j];\n\t\t a[n][j]=a[m][j];\n\t\t a[m][j]=tmp;\n\t }\n for(i=0;i<5;i++){\n\t for(j=0;j<5;j++){\n\t printf(\"%d\",a[i][j]);\n\t\t if(j<4) printf(\" \");\n\t\t if(j==4) printf(\"\\n\");\n\t\t}\n\t }\n }\n else printf(\"error\");\n return 0;\n}\nint ab(int n,int m){\n if(n<5&&m<5) return 1;\n else return 0;\n}"} +{"label": "81", "index": "40229", "code": "int exchange(int matrix[][5],int n,int m);\nint main() \n{\n int det[5][5];\n int m,n,i,j;\n \n for(i=0;i<5;i++){ \n for(j=0;j<5;j++){\n scanf(\"%d\",&det[i][j]);\n }\n } \n scanf(\"%d%d\",&n,&m);\n if(exchange(det,n,m)== 1){\n \n \n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n printf(\"%d\",det[i][j]);\n if(j<4)\n printf(\" \");\n }\n printf(\"\\n\");\n }\n }else{ \n printf(\"error\\n\");\n } \n \n \n\n return 0;\n}\n\nint exchange(int matrix[5][5],int nf,int mf)\n{\n \n int temp,i;\n if(mf>=0 && mf<5 && nf>=0 && nf<5){\n for(i=0;i<5;i++){\n temp=matrix[nf][i];\n matrix[nf][i]=matrix[mf][i];\n matrix[mf][i]=temp;\n }\n return 1;\n \n \n }else\n return 0;\n}\n\n"} +{"label": "81", "index": "40230", "code": "int a[5][5];\nint panduan(int (*p)[5],int n,int m)\n{int z;\nif(n>=0&&n<5&&m>=0&&m<5)\nz=1;\nelse\nz=0;\nreturn z; \n}\nvoid jiaohuan(int (*p)[5],int n,int m)\n{int i,j,b[5];\nfor(j=0;j<5;j++)\nb[j]=*(*(p+n)+j);\nfor(j=0;j<5;j++)\n*(*(p+n)+j)=*(*(p+m)+j);\nfor(j=0;j<5;j++)\n*(*(p+m)+j)=b[j];\nfor(i=0;i<5;i++)\n{printf(\"%d\",**(p+i));\n\tfor(j=1;j<5;j++)\nprintf(\" %d\",*(*(p+i)+j));\nprintf(\"\\n\");\n}\n}\nint main()\n{int a[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n{for(j=0;j<5;j++)\n\tscanf(\"%d\",*(a+i)+j);\n}\nscanf(\"%d%d\",&n,&m);\nif(panduan(a,n,m)==0)\nprintf(\"error\");\nelse\n{jiaohuan(a,n,m);\n}\n\n\n\n\n\nreturn 0;\n}"} +{"label": "81", "index": "40231", "code": "void main()\n{\n\tint inrange(int x,int y);\n\tint matrix[5][5],m,n,i,j,temp;\n\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&matrix[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\n\tif(inrange(m,n))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=matrix[m][i];\n\t\t\tmatrix[m][i]=matrix[n][i];\n\t\t\tmatrix[n][i]=temp;\n\t\t}\n\t\t\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j<4)\n\t\t\t\t\tprintf(\"%d \",matrix[i][j]);\n\t\t\t\telse printf(\"%d\\n\",matrix[i][j]);\n\t\t\t}\n\t\t}\n\t}\n\telse printf(\"error\\n\");\n}\n\nint inrange(int x,int y)\n{\n\tif((x>=0 && x<=4)&&(y>=0 && y<=4))\n\t\treturn(1);\n\telse\n\t\treturn(0);\n}"} +{"label": "81", "index": "40232", "code": "int pd(int n,int m)\n{ if (n<=4 && n>=0 && m<=4 && m>=0) return 1;\n else return 0;\n}\n\nint main(int argc, char* argv[])\n{\n\tint a[5][5],b[5];\n\tint i,j,m,n;\n\tfor (i=0;i<=4;i++)\n\t{ for (j=0;j<=4;j++)\n\t\t{\tscanf (\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf (\"%d %d\",&n,&m);\n\tif (pd(n,m)==0) printf(\"error\");\n\tif (pd(n,m)==1) \n\t{ for (j=0;j<=4;j++)\n\t{ b[j]=a[m][j];\n a[m][j]=a[n][j];\n\t\ta[n][j]=b[j];\n\t}\n\t for (i=0;i<=4;i++)\n\t{ for (j=0;j<=4;j++)\n\t\t{\tprintf (\"%d\",a[i][j]);\n\t\t if (j==4) printf(\"\\n\");\n\t\t\tif (j!=4) printf(\" \");\n\t\t}\n\t}\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40233", "code": "int shuzu(int n,int m);\nint main(){\n\tint a[10][10];\nint i,j,d;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tint s;\n\ts=shuzu(n,m);\n\tif(s==0)\n\t\tprintf(\"error\");\n\telse{\n\t\t\n for(j=0;j<5;j++){\n\t\t\t\td=a[m][j];\n a[m][j]=a[n][j];\n\t\t\t\ta[n][j]=d;\n\t\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}\n\t}\n\treturn 0;\n}\n\n\nint shuzu(int n,int m){\n\n\tif(n<0||n>4||n<0||m>4){\n\t\treturn 0;\n\t}\n\telse{\n\t\n\t\t\t\n\t\t\treturn 1;\n\t}\n}\n\t\n\t"} +{"label": "81", "index": "40234", "code": "int change(int a[5][5],int n,int m)\n{\n\tint b[5],i;\n\tif(n<0 || n>4 || m<0 || m>4)\n\t\treturn 0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\t\t}\n\t\treturn 1;\n\t}\n}\nvoid main()\n{\n\tint a[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&m);\n\tif(change(a,n,m)==0)\n\t\tputs(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t\t\n\t}\n}"} +{"label": "81", "index": "40235", "code": "main()\n{\n\tint a[5][5],n,m,l,i,j;\n\tint swap(int a[][5],int,int);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tl=swap(a,m,n);\n\tif(l==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==0)\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\telse\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\n\nint swap(int a[][5],int x,int y)\n{\n\tint z,j,m;\n\tif(x>=0&&x<5&&y>=0&&y<5)\n\t{\n\t\tz=1;\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tm=a[x][j];\n\t\t\ta[x][j]=a[y][j];\n\t\t\ta[y][j]=m;\n\t\t}\n\t}\n\telse\n\t\tz=0;\n\treturn(z);\n}"} +{"label": "81", "index": "40236", "code": "\nint matrix(int p[5][5], int, int);\nint main()\n{\n\tint i,j,mat[5][5], n, m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&mat[i][j]);\n\n\tscanf(\"%d %d\", &n, &m);\n\tif(matrix(mat,n,m))\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tprintf(\"%d\",mat[i][j]);\n\t\t\t\tif(j<4) printf(\" \");\n\t\t\t}\n\t\t\tif(i<4) printf(\"\\n\");\n\t\t}\nelse printf(\"error\");\n\treturn 0;\n}\n\nint matrix(int p[5][5], int n, int m)\n{ \n\tint i,temp[5]={0};\n\tif(n<5 && m<5){\n\t\tfor(i=0;i<5;i++){\n\t\t\ttemp[i]=*(*(p+n)+i);\n\t\t\t*(*(p+n)+i)=*(*(p+m)+i);\n\t\t\t*(*(p+m)+i)=temp[i];\n\t\t}\n\t\treturn(1);\n\t}\n\telse return(0);\n}\n"} +{"label": "81", "index": "40237", "code": "int F(int n,int m);\nint main(){\n\tint n,m,r,i;\n\tint jz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(r=0;r<5;r++){\n\t\t\tscanf(\"%d\",&jz[i][r]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(F(n,m)){\n\t\tfor(i=0;i<5;i++){\n\t\t\tr=jz[m][i];\n\t\t\tjz[m][i]=jz[n][i];\n\t\t\tjz[n][i]=r;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(r=0;r<4;r++){\n\t\t\t\tprintf(\"%d \",jz[i][r]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",jz[i][4]);\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n\treturn 0;\n}\nint F(int n,int m){\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40238", "code": "int main()\n{\nint decide(int x,int y);\nint i,j,m,n,b;\nint a[6][5];\nfor(i=0;i<5;i++)\nfor(j=0;j<5;j++)\nscanf(\"%d\",&a[i][j]);\nscanf(\"%d %d\",&m,&n);\nb=decide(m,n);\n\nif(b==0)\nprintf(\"error\");\nelse\n{\n\tfor(j=0;j<5;j++)\n\t{\n\ta[5][j]=a[n][j];\n\ta[n][j]=a[m][j];\n\ta[m][j]=a[5][j];\n\t}\nfor(i=0;i<5;i++){\nfor(j=0;j<5;j++)\n\t{\n\tif(j!=4) printf(\"%d \",a[i][j]);\n if(j==4) printf(\"%d\",a[i][j]);\n\t}\n printf(\"\\n\");\n}\n}\nreturn 0;\n}\n\n\nint decide(int x,int y)\n{\n\tint b=0;\nif(x>=0)\nif(x<4)\nif(y>=0)\nif(y<4)\n{ \nb=1;\n}\nreturn b;\n}"} +{"label": "81", "index": "40239", "code": "\nint main()\n{\nint sz[10][10],xsz[10];\nint i,j,n,m;\nfor(i=0;i<5;i++){\nfor(j=0;j<5;j++){\nscanf(\"%d\",&sz[i][j]);\n}\n}\nscanf(\"%d %d\",&n,&m);\nif((n<5)&&(m<5)){\nfor(j=0;j<5;j++){\nxsz[j]=sz[n][j];\nsz[n][j]=sz[m][j];\nsz[m][j]=xsz[j];\n}\nfor(i=0;i<5;i++){\nfor(j=0;j<4;j++){\nprintf(\"%d \",sz[i][j]);\n}\nprintf(\"%d\\n\",sz[i][4]);\n}\n}\nelse\nprintf(\"error\\n\");\n\nreturn 0;\n}\n"} +{"label": "81", "index": "40240", "code": "\nint sz[5][5];\nvoid exchange(int a,int b);\nint main()\n{\n\n\t\n\tint a,b,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t}\n\tscanf(\"%d %d\",&a,&b);\n\texchange(a,b);\n\t\n\n\treturn 0;\n}\nvoid exchange(int m,int n)\n{\n\tif(m>4||m<0||n>4||n<0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tint a[5];\n\t\tint k,t;\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\ta[k]=sz[m][k];\n\t\t\tsz[m][k]=sz[n][k];\n\t\t\tsz[n][k]=a[k];\n\t\t}\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tfor(t=0;t<4;t++)\n\t\t\t\tprintf(\"%d \",sz[k][t]);\n\t\t\tprintf(\"%d\\n\",sz[k][4]);\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40241", "code": "int f(int n,int m);\nint main(){\n\tint i,j,n,m;\n\tint shuzu[5][5]={0};\n\tint t[5]={0};\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&shuzu[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(f(n,m)==0){\n\t\tprintf(\"error\");\n\t}else{\n\t\tfor(j=0;j<5;j++){\n\t\t t[j]=shuzu[n][j];\n\t\t shuzu[n][j]=shuzu[m][j];\n\t\t shuzu[m][j]=t[j];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",shuzu[i][j]);\n\t\t\t}printf(\"%d\\n\",shuzu[i][j]);\n\t\t}\n\t}\n\treturn 0;\n}\nint f(int n,int m){\n\tif(n>=5||m>=5){return 0;}\n\treturn 1;\n}"} +{"label": "81", "index": "40242", "code": "int change(int m,int n)\n{\n\tif (n>=0&&n<=4&&m>=0&&m<=4)\n\t\treturn(1);\n\telse return(0);\n}\n\nvoid main()\n{\n\tint a[5][5];\n\tint n,m,i,j,p;\n\tfor (i=0;i<5;i++)\n\t\tfor (j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif (change(m,n)==0)\n\t\tprintf(\"error\");\n\telse if (change(m,n)==1)\n\t{\n\t\tfor (i=0;i<5;i++)\n\t\t{\n\t\t p=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=p;\n\t\t}\n\t\tfor (i=0;i<5;i++)\n\t\t for (j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif (j<4)\n\t\t\t\t\tprintf(\" \");\n\t\t\t\tif (i<4&&j==4)\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t}\n}"} +{"label": "81", "index": "40243", "code": "int f(int array[][5],int m,int n)\n{\t\n\tint temp,k;\n\tif(0<=m&&m<=4&&0<=n&&n<=4)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\ttemp=*(*(array+m)+k);\n\t\t\t*(*(array+m)+k)=*(*(array+n)+k);\n\t\t\t*(*(array+n)+k)=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\n\nvoid main()\n{\n\tint m,n,i,j;\n\tint a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif (f(a,m,n)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse if(f(a,m,n)==0)\n\t\tprintf(\"error\");\n}"} +{"label": "81", "index": "40244", "code": "int main()\n{\n\tint jiaohuan(int (*s)[5],int n,int m);\n\tint i,j,n,m,shuzu[5][5],(*s)[5]=shuzu;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&*(*(s+i)+j));\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(jiaohuan(s,n,m)==0)\n\t\tprintf(\"error\");\n\telse{\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j==0)\n\t\t\t\t\tprintf(\"%d\",*(*(s+i)+j));\n\t\t\t\telse\n\t\t\t\t\tprintf(\" %d\",*(*(s+i)+j));\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\nint jiaohuan(int (*s)[5],int n,int m)\n{\n\tint i,temp;\n\tif(n>=0&&n<5&&m>=0&&m<5){\n\t\tfor(i=0;i<5;i++){\n\t\t\ttemp=*(*(s+n)+i);\n\t\t\t*(*(s+n)+i)=*(*(s+m)+i);\n\t\t\t*(*(s+m)+i)=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40245", "code": "int p[5][5];\nint n,m;\nint main()\n{\n int exchange();\n for(int i=0;i<5;i++)\n for(int j=0;j<5;j++)\n scanf(\"%d\",&p[i][j]);\n scanf(\"%d %d\",&n,&m);\n if(exchange())\n for(int i=0;i<5;i++)\n {\n printf(\"%d\",p[i][0]);\n for(int j=1;j<5;j++)\n printf(\" %d\",p[i][j]);\n printf(\"\\n\"); \n }\n else\n printf(\"error\");\n \n}\nint exchange()\n{\n if(n<5&&n>=0&&m<5&&m>=0)\n {\n for(int i=0;i<5;i++)\n {\n int temp=p[n][i];\n p[n][i]=p[m][i];\n p[m][i]=temp; \n } \n return 1; \n } \n else\n return 0;\n}\n"} +{"label": "81", "index": "40246", "code": "int q(int a,int b);\nvoid main()\n{\n\tint x[5][5],a,b,i,j,c[5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&x[i][j]);\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif(q(a,b)==0)\n\t\t\tprintf(\"error\");\n\t if(q(a,b)==1)\n\t\t{\n\n for(j=0;j<5;j++)\n\t\t{\n\t\t\tc[j]=x[a][j];\n\t\t\tx[a][j]=x[b][j];\n\t\t\tx[b][j]=c[j];\n\t\t}\n for(i=0;i<5;i++)\n\t {\n\t\tfor(j=0;j<4;j++)\n\t\t{\n\t\t\tprintf(\"%d \",x[i][j]);\n\t\t}\n\t\tif(j=4)\n\t\t{\n\t\t\tprintf(\"%d\",x[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t }\n\t\t}\n}\nint q(int a,int b)\n{\n\tint t;\n\t\n\tif(a<=4&&b<=4)\n\t\tt=1;\n else\n\t\tt=0;\n\treturn(t);\n}"} +{"label": "81", "index": "40247", "code": "void main()\n{\n\tint can(int n,int m);\n\tvoid change(int a[5][5],int n,int m);\n\tint i,j,m,n;\n\tint a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(can(n,m))\n\t{\n\t\tchange(a,n,m);\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\tif(can(n,m)==0)\n\t\tprintf(\"error\");\n}\nint can(int n,int m)\n{\n\t\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\treturn(1);\n\t}\n\tif(n<0||n>=5||m<0||m>=5)\n\t{\n\t\treturn(0);\n\t}\n}\nvoid change(int a[5][5],int n,int m)\n{\n\tint i,temp;\n\tfor(i=0;i<5;i++)\n\t{\n\t\ttemp=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=temp;\n\t}\n}\n"} +{"label": "81", "index": "40248", "code": "int main(){\n\tint sz[5][5],a,b,m,n,t;\n\tfor(a=0;a<5;a++){\n\t\tfor(b=0;b<5;b++){\n\t\t\tif(b<4){\n\t\t\t\tscanf(\"%d\",&sz[a][b]);\n\t\t\t}else{\n\t\t\t\tscanf(\"%d\\n\",&sz[a][b]);\n\t\t\t}\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(0<=n&&n<=4&&0<=m&&m<=4){\n\t\tfor(b=0;b<5;b++){\n\t\t\tt=sz[n][b];\n\t\t\tsz[n][b]=sz[m][b];\n\t\t\tsz[m][b]=t;\n\t\t}\n\t\tfor(a=0;a<5;a++){\n\t\t\tfor(b=0;b<5;b++){\n\t\t\t\tif(b<4){\n\t\t\t\t\tprintf(\"%d \",sz[a][b]);\n\t\t\t\t}else{\n\t\t\t\t\tprintf(\"%d\\n\",sz[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40249", "code": "int zn(int n,int m,int sz[5][5]);\nint main(){\n\tint sz[5][5];\n\tint n,m;\n\tint a,b;\n\tfor(a=0;a<5;a++){\n\t\tfor(b=0;b<5;b++){\n\t\t\tscanf(\"%d\",&sz[a][b]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(zn(n,m,sz)){\n\t\tfor(b=0;b<5;b++){\n\t\t\tint e;\n\t\t\te=sz[n][b];\n\t\t\tsz[n][b]=sz[m][b];\n\t\t\tsz[m][b]=e;\n\t\t}\n\t\tfor(a=0;a<5;a++){\n\t\t\tfor(b=0;b<4;b++){\n\t\t\t\tprintf(\"%d \",sz[a][b]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[a][4]);\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\nint zn(int n,int m,int sz[5][5]){\n\tint f1=0,f2=0;\n\tfor(int a=0;a<5;a++){\n\t\tfor(int b=0;b<5;b++){\n\t\t\tif(sz[a][b]==n){\n\t\t\t\tf1=1;\n\t\t\t}\n\t\t\tif(sz[a][b]==m){\n\t\t\t\tf2=1;\n\t\t\t}\n\t\t}\n\t}\n\tif(f1==1&&f2==1&&n<5&&m<5){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40250", "code": "fanwei(int x,int y)\n{\n\tint z=1;\n\tif (x*(x-4)>0)\n\t{\n\t\tz=0;\n\t}\n\tif (y*(y-4)>0)\n\t{\n\t\tz=0;\n\t}\n\treturn(z);\n}\nvoid main()\n{\n\tint a[5][5];\n\tint c[5];\n\tint m,n,i,j;\n\tfor (i=0;i<=4;i++)\n\t{\n\t\tfor (j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif (fanwei(m,n)==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse if (fanwei(m,n)==1)\n\t{\n\t\tfor (i=0;i<=4;i++)\n\t\t{\n\t\t\tc[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=c[i];\n\t\t}\n\t\tfor (i=0;i<=4;i++)\n\t\t{\n\t\t\tfor (j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n}"} +{"label": "81", "index": "40251", "code": "int isin(int n,int m);\nint main()\n{\n\tint a,b,n,m;\n\tint z[5][5];\n\tfor(a=0;a<=4;a++)\n\t{\n\t\tfor(b=0;b<=4;b++)\n\t\t{\n\t\t\tscanf(\"%d\",&z[a][b]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif (isin(n,m)==0) printf(\"error\");\n\t\telse\n\t{\n\t\t\tint x[5];\n\t\t\n\t\tfor(a=0;a<=4;a++)\n\t\t{\n\t\t\tx[a]=z[n][a];\n\t\t\tz[n][a]=z[m][a];\n\t\t\tz[m][a]=x[a];\n\t\t}\n for(a=0;a<=4;a++)\n\t\t{\n\t\t for(b=0;b<=4;b++)\n\t\t\t{\n\t\t\t\tif(b<4)\n\t\t\t printf(\"%d \",z[a][b]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\",z[a][b]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\nint isin(int n,int m)\n{\n if((n<=4)&&(m<=4)&&(n>=0)&&(m>=0))\n\t{\n\t\t\n\t\treturn 1;\n\t}\n\telse return 0;\n}"} +{"label": "81", "index": "40252", "code": "int a(int x,int y)\n{\n\tif(x<0||y<0||y>4||x>4){\n\t\treturn 0;\n\t}\n\telse{\n\t\treturn 1;\n\t}\n}\nint main(){\n\tint sz[5][5];\n\tint n,m;\n\tfor(int i=0;i<5;i++){\n\t\tfor(int j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\n\n\tif(a(m,n)==0){\n\t\tprintf(\"error\");\n\t}\n\tif(a(m,n)==1){\n\t\tfor(int r=0;r<5;r++){\n\t\t\tfor(int t=0;t<5;t++){\n\t\t\t\tif(r==m){\n\t\t\t\t\tif(t==4){\n\t\t\t\t\t\tprintf(\"%d\\n\",sz[n][t]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tprintf(\"%d \",sz[n][t]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(r==n){\n\t\t\t\t\tif(t==4){\n\t\t\t\t\t printf(\"%d\\n\",sz[m][t]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tprintf(\"%d \",sz[m][t]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(r!=n&&r!=m){\n\t\t\t\t\tif(t==4){\n\t\t\t\t\t printf(\"%d\\n\",sz[r][t]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tprintf(\"%d \",sz[r][t]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40253", "code": "int ismatrix(int m, int n)\n{\n if(m>=5||n>=5||n<0||m<0){\n return 0;\n }\n return 1;\n}\n\nint main()\n{\n int i, j;\n int m, n;\n int a[5][5];\n for(i=0; i<5; i++)\n for(j=0; j<5; j++)\n scanf(\"%d\", &a[i][j]);\n scanf(\"%d%d\", &m, &n);\n if(ismatrix(m, n)){\n int tmp, first=1;\n for(i=0; i<5; i++){\n tmp=a[m][i];\n a[m][i]=a[n][i];\n a[n][i]=tmp;\n }\n for(i=0; i<5; i++)\n for(j=0; j<5; j++){\n if(j!=4)\n printf(\"%d \", a[i][j]);\n if(j==4)\n printf(\"%d\\n\",a[i][j]);\n }\n }\n else\n printf(\"error\\n\");\n return 0;\n}\n\n"} +{"label": "81", "index": "40254", "code": "\nint main(int argc, char* argv[])\n{\n int i,j,m,n,a[6][6],t;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&m,&n);\n if(m>=0&&m<5&&n>=0&&n<5)\n {for(i=0;i<5;i++)\n {t=a[m][i];\n a[m][i]=a[n][i];\n a[n][i]=t;\n }\n for(i=0;i<5;i++)\n\t{ printf(\"%d\",a[i][0]);\n\t for(j=1;j<5;j++)\n printf(\" %d\",a[i][j]);\n\t printf(\"\\n\");\n\t}\n }\n else\n printf(\"error\\n\");\nreturn 0;\n}"} +{"label": "81", "index": "40255", "code": "int main()\n{\n\tint a[5][5],m,n,i,j,t;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tif(m<0||m>4||n<0||n>4)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n\t\t {\n\t\t\t printf(\"%d\",a[i][j]);\n\t\t\t if(j>=0&&j<4)printf(\" \");\n\t\t\t else printf(\"\\n\");\n\t\t }\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40256", "code": "int panduan(int a[5][5],int n,int m)\n{\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}\nvoid diaohuan(int a[5][5],int n,int m)\n{\n\tint i,j,temp;\n\tif(panduan(a,n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=temp;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\nint main()\n{\n\tint juzhen[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&juzhen[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(panduan(juzhen,n,m)==0)\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n\telse if(panduan(juzhen,n,m)==1)\n\t{\n\t\tdiaohuan(juzhen,n,m);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40257", "code": "void main()\n{\n int zhh(int n,int m);\n int a[5][5],i,j,m,n,c;\n for(i=0;i<=4;i++)\n {\n for(j=0;j<=4;j++)\n scanf(\"%d\",&a[i][j]);\n }\n scanf(\"%d %d\",&n,&m);\n if(zhh(n,m)==0)\n printf(\"error\");\n else \n {\t for(i=0;i<=4;i++)\n {\n if(i==m)i=n;\n else if(i==n)i=m;\n for(j=0;j<=4;j++)\n {\n\t if(j<4)\n printf (\"%d \",a[i][j]);\n\t else printf(\"%d\",a[i][j]);\n if(j==4)printf(\"\\n\");\n }\n if(i==n)i=m;\n else if(i==m)i=n;\n }\n}\n}\n\n\nint zhh(int n,int m)\n{\n if(n>4||m>4)\n return(0);\n else \n return(1);\n }\n"} +{"label": "81", "index": "40258", "code": "\nvoid main()\n{\n\tint a[5][5],i=0,j=0,c,b,d[5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&c,&b);\n\t\n\tif((c>4)||(b>4)||(c<0)||(b<0))\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n\tif((c>=0)&&(c<=4)&&(b>=0)&&(b<=4))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\td[i]=a[c][i];\n\t\t\ta[c][i]=a[b][i];\n\t\t\ta[b][i]=d[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40259", "code": "void main()\n{\n\tint f(int n,int m,int a[5][5]);\n\tint a[5][5];\n\tint i,j,t,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tt=f(n,m,a);\n\tif(t==0)\n\t\tprintf(\"error\");\n}\n\nint f(int n,int m,int a[5][5])\n{\n\tint t,i;\n\tif(n<5&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tif(i==n)\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[m][0],a[m][1],a[m][2],a[m][3],a[m][4]);\n\t\telse if(i==m)\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[n][0],a[n][1],a[n][2],a[n][3],a[n][4]);\n\t\telse \n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}\n\t}\n\telse\n\t\tt=0;\n\treturn(t);\n}\n\n"} +{"label": "81", "index": "40260", "code": "char a[5][100];\nint jiaohuan(int x,int y)\n{\n\tchar b[100];\n\tint i,j;\n\tif(x<0||x>4||y<0||y>4)\n\t\treturn(0);\n\telse\n\t{ \n\t\tfor(i=0;*(a[x]+i)!='\\0';i++)\n\t\t\t*(b+i)=*(a[x]+i);\n\t\t *(b+i)='\\0';\n\t\tfor(i=0;*(a[y]+i)!='\\0';i++)\n\t\t\t*(a[x]+i)=*(a[y]+i);\n\t\t *(a[x]+i)='\\0';\n\t\tfor(i=0;*(b+i)!='\\0';i++)\n\t\t\t*(a[y]+i)=*(b+i);\n\t\t *(a[y]+i)='\\0';\n\n\t\t\treturn(1);\n\t}\n}\nint main()\n{\n\tint j,n,m;\n\tfor(j=0;j<5;j++)\n\t\tgets(a[j]);\n\tscanf(\"%d%d\",&n,&m);\n if(jiaohuan(n,m)==0)\n\t\tprintf(\"error\");\n\telse\n\t{ \n\t\tfor(j=0;j<5;j++)\n\t\tputs(a[j]);\n\t}\n\t\treturn 0;\n}\n"} +{"label": "81", "index": "40261", "code": "int ar(int n,int m);\nvoid main()\n{\n\tint a,b,t,A[5][5],i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&A[i][j]);\n\t\t}\n\tscanf(\"%d%d\",&a,&b);\n\tif(ar(a,b)==1)\n\t{\n for(j=0;j<5;j++)\n\t\t{\n\t\t\tt=A[a][j];\n A[a][j]=A[b][j];\n A[b][j]=t;\n\t\t}\n\t for(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<5;j++)\n\t\t {\n\t\t\tprintf(\"%d\",A[i][j]);\n\t\t\tif(j!=4)\n\t\t\t{\n\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t }\n\t\t printf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n}\nint ar(int n,int m)\n{\n\tint c;\n\tif(n<5&&m<5)\n\t\tc=1;\n\telse\n\t\tc=0;\n\treturn(c);\n}"} +{"label": "81", "index": "40262", "code": "\nint exch(int a[5][5],int rowa,int rowb){\n\tif(rowa<0||rowa>4||rowb<0||rowb>4)return 0;\n\telse{\n\t\tint col;\n\t\tfor(col=0;col<5;col++){\n\t\t\tint temp;\n\t\t\ttemp=a[rowa][col];\n\t\t\ta[rowa][col]=a[rowb][col];\n\t\t\ta[rowb][col]=temp;\n\t\t}\n\t\treturn 1;\n\t}\n}\n\nint main()\n{\n\tint a[5][5],rowa,rowb;\n\tint row,col;\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++){\n\t\t\tscanf(\"%d\",&a[row][col]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&rowa,&rowb);\n\tswitch(exch(a,rowa,rowb)){\n\t\tcase 0: {\n\t\t\tprintf(\"error\");\n\t\t\tbreak;\n\t\t}\n\t\tcase 1:{\n\t\t\tfor(row=0;row<5;row++){\n\t\t\t\tprintf(\"\\n%d\",a[row][0]);\n\t\t\t\tfor(col=1;col<5;col++){\n\t\t\t\t\tprintf(\" %d\",a[row][col]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40263", "code": "int main()\n{\n\tint a[5][5],n,m,i,j,t,flag;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&m,&n);\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t\tflag=1;\n\telse\n\t\tflag=0;\n\tif(flag==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=a[m][j];\n a[m][j]=a[n][j];\n\t\t\ta[n][j]=t;\n\t\t}\n\t for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(i==4&&j==4)\n\t\t\t\tprintf(\"%d\",a[4][4]);\n\t\t\telse\n\t\t\t\tif(j==4)\n\t\t\t\t printf(\"%d\\n\",a[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t}\n\t}\n return 0;\n}\n"} +{"label": "81", "index": "40264", "code": "int jud(int n,int m){\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t\treturn 1;\n\telse return 0;\n}\nint main(){\nint a[5][5],i,j,n,m,*p[5],*q;\nfor(i=0;i<5;i++){\nfor(j=0;j<5;j++)\nscanf(\"%d\",&a[i][j]);\np[i]=a[i];}\nscanf(\"%d %d\",&n,&m);\nif(jud(n,m)==0)\nprintf(\"error\");\nelse{\nq=p[n];\np[n]=p[m];\np[m]=q;\nfor(i=0;i<5;i++)\nfor(j=0;j<5;j++){\nif(j==4)\nprintf(\"%d\\n\",*(p[i]+j));\nelse printf(\"%d \",*(p[i]+j));}}\nreturn 0;}"} +{"label": "81", "index": "40265", "code": "int n,m;\nint jiaohuan(int str[5][5])\n{ \n\tint i,j,t;\n if(n<5&&m<5)\n {for(i=0;i<5;i++)\n {t=str[m][i];str[m][i]=str[n][i];str[n][i]=t;}\n return 1;}\n else return 0;\n}\n\nint main()\n{\n\tint str[5][5],i,j;\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\t{scanf(\"%d\",&str[i][j]);}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n if(jiaohuan(str)==1)\n\t{for(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\t{if(j==0){printf(\"%d\",str[i][j]);}\n\telse{printf(\" %d\",str[i][j]);}}\n\tprintf(\"\\n\");}\n\t}\n if(jiaohuan(str)==0){printf(\"error\");}\n}\n\n "} +{"label": "81", "index": "40266", "code": "int judge(int m,int n)\n{\n\tif(m==n||m>4||n>4||m<0||n<0)\n\t\treturn 0;\n\telse return 1;\n}\nvoid main()\n{\n\tint judge(int m,int n);\n\tint a[5][5],m,n,b,i,j;\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\t{scanf(\"%d\",&a[i][j]);}\n\t}\n\tscanf(\"%d\",&m);\n scanf(\"%d\",&n);\n\tif(judge(m,n)==0)\n\t{printf(\"error\");}\n\telse {for(j=0;j<5;j++)\n\t{b=a[m][j];a[m][j]=a[n][j];a[n][j]=b;}\n\tfor(i=0;i<5;i++)\n\t{for(j=0;j<5;j++)\n\t\t{printf(\"%d\",a[i][j]);\n\t\tif(j==4)printf(\"\\n\");\n\t\telse printf(\" \");}}}\n}\n"} +{"label": "81", "index": "40267", "code": "int main(){\n\tint n,m,i,j,a[5][5],e[5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif(n>4||m>4||n<0||m<0)\n\t\tprintf(\"error\");\n\telse{\n\t\tfor(j=0;j<5;j++){\n\t\t\te[j]=a[m][j];\n\t\t\ta[m][j]=a[n][j];\n\t\t\ta[n][j]=e[j];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40268", "code": "void prt(int *a)\n{\tint i;\n\tfor(i=0;i<5;i++)\n\t\tprintf(\"%d%c\",*(a+i),(i<4)?' ':'\\n');\n}\nvoid main()\n{\n\tint i,n,m,a[5][5],j;\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\tscanf(\"%d %d\",&m,&n);\n\n\tif(0<=m&&m<=4&&0<=n&&n<=4)\n\t{\tfor(i=0;i<5;i++)\n\t\t{\tif(i==m)prt(a[n]);\n\t\t\telse if(i==n)prt(a[m]);\n\t\t\telse prt(a[i]);\n\t\t}\n\n\t}\n\telse printf(\"error\");\n}\n\t\n\n"} +{"label": "81", "index": "40269", "code": "\nint panduan(int, int);\n\nint main()\n{\n\tint a[10][10], m, n;\n\tint t[10], i, j;\n\n\tfor(i=0; i<5; i++)\n\t\tfor(j=0; j<5; j++)\n\t\t\tscanf(\"%d\", &a[i][j]);\n\n\tscanf(\"%d %d\", &n, &m);\n\n\tif(panduan(n, m))\n\t{\n\t\tfor(i=0; i<5; i++)\n\t\t{\n\t\t\tt[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t[i];\n\t\t}\n\t\tfor(i=0; i<5; i++)\n\t\t\tfor(j=0; j<5; j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\", a[i][j]);\n\t\t\t\tif(j==4)\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\telse\n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t}\n\telse\n\t\tprintf(\"error\\n\");\n\n\treturn 0;\n}\n\nint panduan(int n, int m)\n{\n\tif(m>4||n>4)\n\t\treturn 0;\n\telse\n\t\treturn 1;\n}"} +{"label": "81", "index": "40270", "code": "int f(int x,int y)\n{int z;\nif(x>=0&&x<=4&&y>=0&&y<=4)\nz=1;\nelse\nz=0;\nreturn z;\n}\nint main()\n{int n,m,i,j,a[5][5],(*p)[5];\np=a;\nfor(i=0;i<5;i++)\n{for(j=0;j<5;j++)\nscanf(\"%d\",*(p+i)+j);\n}\nscanf(\"%d%d\",&n,&m);\nif(f(m,n)==0)\nprintf(\"error\");\nelse\n{for(i=0;i4 || n<0 || m>4 || m<0) return 0;\n\tif((n>=0 && n<=4) && (m>=0 && m<=4)) return 1;\n}\nint main()\n{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n1,&m1);\n\tif(ch(n1,m1)==0) printf(\"error\\n\");\n\tif(ch(n1,m1)==1) \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[n1][i];\n\t\t\ta[n1][i]=a[m1][i];\n\t\t\ta[m1][i]=t;\n\t\t}\n for(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<4;j++)\n\t\t\t{\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tif(j==4) printf(\"%d\\n\",a[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40273", "code": "\nint product(int n,int m)\n{\n\tint z;\n\tif(n>=0&&n<=4&&m>=0&&m<=4)z=1;\n\telse z=0;\n\treturn z;\n}\nvoid main()\n{\n\tint product(int n,int m);\n\tint t[5],a[5][5],x,y;\n\tint i,j,k;\n\tfor (i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&x,&y);\n\t\tk=product(x,y);\n\t\tif(k==0)printf(\"error\");\n\t\telse \n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tt[j]=a[x][j];\n\t\t\t\ta[x][j]=a[y][j];\n\t\t\t\ta[y][j]=t[j];\n\t\t\t}\n\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\t}\n}"} +{"label": "81", "index": "40274", "code": "main()\n{\n\tint f(int x[][5],int m,int n);\n\tint a[5][5],i,m,n;\n\tfor(i=0;i<5;i++)\n\t scanf(\"%d %d %d %d %d\",&a[i][0],&a[i][1],&a[i][2],&a[i][3],&a[i][4]);\n\tscanf(\"%d %d\",&m,&n);\n\tif(f(a,m,n))\n\t{for(i=0;i<5;i++)\n\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);}\n\telse printf(\"error\");\t\t\n}\nint f(int x[][5],int m,int n)\n{\n\tint t,i;\n\tif(m<5&&n<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{t=x[m][i];x[m][i]=x[n][i];x[n][i]=t;}\n\t\treturn(1);\n\t}\n\telse return(0);\n}"} +{"label": "81", "index": "40275", "code": "int main(){\n\tint k,i,n,m,p;\n\tint a,b;\n\tint sz[5][5];\n\tfor(k=0;k<5;k++){\n\t\t\tfor(i=0;i<5;i++){\n\t\t\t\tscanf(\"%d\",&(sz[k][i]));\n\t\t\t}\n\t\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n<5&&m<5){\n\t\t\tfor(i=0;i<5;i++){\n\t\t\t a=sz[m][i];\n\t\t\t b=sz[n][i];\n\t\t\t sz[m][i]=b;\n\t\t\t sz[n][i]=a;\n\t\t\t}\n\t\t\tfor(k=0;k<5;k++){\n\t\t\tfor(i=0;i<5;i++){\n\t\t\t\tif(i<4){\n\t\t\t\tprintf(\"%d \",sz[k][i]);\n\t\t\t\t}\n\t\t\t\telse if(i==4){\n\t\t\t\t\tprintf(\"%d\\n\",sz[k][i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t}\n\telse if(n>4||m>4){\n\t\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40276", "code": "int change(int n,int m)\n{\n\tint s=0;\n\tif (n<=4 && n>=0 && m<=4 && m>=0)\n\t\ts=1;\n\treturn s;\n}\n\n\nvoid main()\n{\n\tint i,j,a[5][5],n,m,temp;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif (change(n,m)==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=temp;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif (j!=4)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\telse printf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\t\t}\n\t}\n\telse printf(\"error\\n\");\n}\n\n\t"} +{"label": "81", "index": "40277", "code": "int main()\n{\n\tint i,j,b,c,d,e,f,g,h,k,m,n,t,a,x[500][500],y[10];\n\t\n\n\tfor(i=0;i<=4;i++){\n\t\tfor(j=0;j<=4;j++){\n\t\t\tscanf(\"%d\",&x[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&a,&b);\n\tif(a>=0&&a<=4&&b>=0&&b<=4){\n\t\tj=0;\n\t\n\t\tfor(j=0;j<=4;j++){\n\t\ty[j]=x[a][j];\n\t\tx[a][j]=x[b][j];\n\t\tx[b][j]=y[j];\n\t}\n\ti=0;\n\tj=0;\n\t\tfor(i=0;i<=4;i++){\n\t\tfor(j=0;j<=4;j++){\n\t\t\tif(j==0)printf(\"%d\",x[i][j]);\n\t\t\telse {\n\t\t\t\tif(j==4)printf(\" %d\\n\",x[i][j]);\n\t\t\telse printf(\" %d\",x[i][j]);\n\t\t}\n\t}\n\t}\n\t}\n\telse printf(\"error\");\n\t\n\t\n\treturn 0;\n}\n"} +{"label": "81", "index": "40278", "code": "int f(int,int,int *p);\nvoid main()\n{\nint a[5][5],i,j,k,m,n;\nfor(i=0;i<=4;i++)\n for(j=0;j<=4;j++)\n scanf(\"%d\",&a[i][j]);\nscanf(\"%d%d\",&m,&n);\n k=f(m,n,a[0]);\n if(k==0)\n\t printf(\"error\\n\");\n else\n for(i=0;i<=4;i++)\n{for(j=0;j<=3;j++)\n printf(\"%d \",*(a[0]+i*5+j));\nprintf(\"%d\\n\",*(a[0]+i*5+4));\n}\n \n}\n\nint f(int m,int n,int *p)\n{int k=1,i,temp;\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\tfor(i=0;i<=4;i++)\n\t{ temp=*(p+n*5+i);\n\t *(p+n*5+i)=*(p+m*5+i);\n\t *(p+m*5+i)=temp;\n\t}\n\telse k=0;\n\t\nreturn k;\t\n\t}"} +{"label": "81", "index": "40279", "code": "\nint swi (int num[5][5],int a,int b)\n{\n\tint f;\n\tint k;\n if(a>4||b>4)\n\t\treturn 0;\n\telse \n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tf=num[a][k];\n\t\t\tnum[a][k]=num[b][k];\n\t\t\tnum[b][k]=f;\n\t\t}\n\t\treturn 1;\n\t}\n\n\n}\nint main ()\n{\n\tint NU[5][5];\n\tint m,n;\n\tint i,j,c;\n\tint swi(int num[5][5],int a,int b);\n\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tcin>>NU[i][j];\n\t\t}\n\t}\n\tcin>>m>>n;\n\n\tc=swi(NU,m,n);\n \n if(c==0)\n\t\tcout<<\"error\";\n\tif(c==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tcout<=0)&&(b<5))&&((c<5)&&(c>=0))){\n\t\tpanduan=1;\n\t\tfor(k=0;k<5;k++){\n\t\t\t\tif(b==c){break;}\n\t\t\t\ttihuan[k]=a[b][k];\n\t\t\t\ta[b][k]=a[c][k];\n\t\t\t\ta[c][k]=tihuan[k];\n\t\t\t}\n\t}else{panduan=0;}\n\tif(panduan){\n\t\tfor(k=0;k<5;k++){\n\t\t\tfor(l=0;l<4;l++){\n\t\t\t\tprintf(\"%d \",a[k][l]);\t\t\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[k][4]);\n\t\t}\t\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\n\n}"} +{"label": "81", "index": "40281", "code": "int (*q)[5];\nint cmp(int x,int y,int a[][5])\n{ int (*p)[5],i,temp;\n p=a;\n\tif(x>=0&&x<5&&y>=0&&y<5)\n\t\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n temp=*(*(p+x)+i);\n\t\t *(*(p+x)+i)=*(*(p+y)+i);\n *(*(p+y)+i)=temp;\n\t\t}\n\t\tq=p;\n\t\treturn(1);\n\t}\n\telse\n\t\treturn(0);\n}\nint main()\n{\n\tint n,m,a[5][5],i,j;\n\tq=a;\n for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tcin>>a[i][j];\n\tcin>>n>>m;\n\tif(cmp(n,m,q)==0)\n\t\tcout<<\"error\"<=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tt=a[m][i];\n\t\ta[m][i]=a[n][i];\n\t\ta[n][i]=t;\n\t\t}\n\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\nvoid main()\n{\n\n\tint n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(gmm(n,m)==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j!=4)\n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\n\n"} +{"label": "81", "index": "40283", "code": "int x(int m,int n,int sz[5][5]);\nint main(){\n\tint m,n,i,j,sz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t scanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(x(m,n,sz)==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j==4){\n\t\t\t\t printf(\"%d\\n\",sz[i][j]);\n\t\t\t\t}else{\n\t\t\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}else if(x(m,n,sz)==0){\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\nint x(int m,int n,int sz[5][5]){\n\tint ty[1][5],i;\n\tif(m>=0&&m<5&&n<5&&n>=0){\n\t\tfor(i=0;i<5;i++){\n\t\t ty[0][i]=sz[m][i];\n\t\t sz[m][i]=sz[n][i];\n\t\t sz[n][i]=ty[0][i];\n\t\t}\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40284", "code": "int main(){\n int n,m,i,j,k;\n int jz[5][5];\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n scanf(\"%d\",&jz[i][j]);\n }scanf(\"%d\\n\",&jz[i][4]);\n }\n scanf(\"%d%d\",&n,&m);\n if(n>4||m>4){\n printf(\"error\");\n }else{\n if(n>m){k=n;n=m;m=k;}\n for(i=0;i=5) return 0;\n if(n>=5) return 0;\n}\nvoid trans(int (*p)[5],int n,int m)\n{\n int i,temp,p1,p2;\n for(i=1;i<=5;i++)\n {\n temp=*(*(p+n)+i-1);\n *(*(p+n)+i-1)=*(*(p+m)+i-1);\n *(*(p+m)+i-1)=temp; \n }\n}\n"} +{"label": "81", "index": "40286", "code": "int pd(int x,int y);\nint a[5][5],i,j,n,m,x,y,z,c,b[5];\n\n\n\nvoid main()\n{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n }\n\tscanf(\"%d %d\",&n,&m);\n\tc=pd(n,m);\n\tif(c==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t\t\n\t\t}\n\n\t}\n\n}\n\n\nint pd(int x,int y)\n{\n\tif((n>=0&&n<5)&&(m>=0&&m<5))\n\t\tz=1;\n\telse \n\t\tz=0;\n\treturn(z);\n\n\n}"} +{"label": "81", "index": "40287", "code": "\nint main(int argc, char *argv[])\n{\n char a[5][80],(*p1)[],(*p2)[];\n int i,m,n;\n for(i=0;i<5;i++)\n gets(a[i]);\n scanf(\"%d%d\",&m,&n);\n if(m<0||m>4||n<0||n>4)\n printf(\"error\");\n else\n {\n p1=&a[m];\n p2=&a[n];\n for(i=0;i<5;i++)\n {\n if(i==m)\n puts(*p2); \n else if(i==n) \n puts(*p1); \n else\n puts(a[i]); \n }\n } \n \n return 0;\n}\n"} +{"label": "81", "index": "40288", "code": "int mn(int n,int m)\n{\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\nint main()\n{\n\tint a,n,m,i,j,(*p)[5],b[5][5];\n\tfor(i=0;i<5;i++)\n\t for(j=0;j<5;j++)\n\t\t scanf(\"%d\",&b[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\ta=mn(n,m);\n\tp=b;\n\tif(a==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i!=m&&i!=n)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",b[i][j]);\n\t\t\t\tprintf(\"%d\",b[i][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\telse if(i==m)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t printf(\"%d \",*(*(p+n)+j));\n\t\t\t\tprintf(\"%d\",*(*(p+n)+4));\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t printf(\"%d \",*(*(p+m)+j));\n\t\t\t\tprintf(\"%d\",*(*(p+m)+4));\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n}\n"} +{"label": "81", "index": "40289", "code": "int main()\n{\n\tint a[5][5],n,m,c,i,j,t;\n\tint f(int x,int y);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tc=f(n,m);\n\tif(c==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tt=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=t;\n\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j<4)\n\t\t\t{\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\telse printf(\"%d\",a[i][j]);\n\t\t\tif(j==4)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\t}\n\treturn 0;\n}\n\n\n\nint f(int x,int y)\n{\n\tif(x>=5||y>=5)\n\t{\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\treturn 1;\n\t}\n}"} +{"label": "81", "index": "40290", "code": "int(*p)[5],m,n,i,j,temp,c; \nint trans()\n{\n\tp=(int(*)[5])calloc(5,5*sizeof(int));\n for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(p+i)+j);\n scanf(\"%d%d\",&m,&n);\n\tif(m<5 && n<5)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{temp=*(*(p+m)+j);\n *(*(p+m)+j)=*(*(p+n)+j);\n *(*(p+n)+j)=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nint main()\n{ \n c=trans();\n\tif(c)\n\t{\n for(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t printf(\"%d \",*(*(p+i)+j));\n\t printf(\"%d\\n\",*(*(p+i)+4));\n }\n\t}\n\telse printf(\"error\");\n}"} +{"label": "81", "index": "40291", "code": "int change(int a[5][5],int n,int m)\n{\n\tint z,c[5],j;\n\tif(m>=0&&m<5&&n>=0&&n<5)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\tc[j]=a[n][j];\n\t\t a[n][j]=a[m][j];\n\t\t a[m][j]=c[j];\n\t\t\t}\n\t z=1;\n\t}\n\tif(m>4||n>4)\n\t\tz=0;\n\treturn (z);\n}\n\nvoid main()\n{\n\tint a[5][5],i,j,m,n;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t\tscanf(\"%d %d\",&n,&m);\n\t\tif(change(a,n,m)==0)\n\t\t\tprintf(\"error\");\n\t\telse\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%d %d %d %d %d\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t\t}\n\t\t}\n}"} +{"label": "81", "index": "40292", "code": "int main()\n{\n\tint a[5][5], m, n,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n, &m);\n\tif(m>4||n>4){\n\t\tprintf(\"error\");\n\t}\n\telse if(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\n\t\tfor(j=0;j<5;j++)\n\t\t{\t\n\t\t\tint t;\n\t\t\tt=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tfor(j=4;j<5;j++){\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40293", "code": "int main(){\n int i,j,m,n,a[5][5];\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n scanf(\"%d\",&(a[i][j]));\n }\n scanf(\"%d\\n\",&(a[i][4]));\n }\n scanf(\"%d%d\",&n,&m);\n if(m<=4&&n<=4){\n for(j=0;j<5;j++){\n i=a[n][j];\n a[n][j]=a[m][j];\n a[m][j]=i;\n }\nfor(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",a[i][j]);\n }\n printf(\"%d\\n\",a[i][4]);\n }\n\n }else{\nprintf(\"error\");\n}\nreturn 0;\n}"} +{"label": "81", "index": "40294", "code": "int a[5][5];\n\nmain()\n{\n\tint i,j,m,n;\n int exch(int a[5][5],int n,int m);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(exch(a,n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t \tfor(j=0;j<4;j++)\n\t \t{\n\t \t\tprintf(\"%d \",a[i][j]);\n\t \t}\n\t\t\tprintf(\"%d\\n\",a[i][j]);\n \t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n}\n\nint exch(int a[5][5],int n,int m)\n{\n\tint t,i;\n\tif(!(n>=0&&n<=4)||!(m>=0&&m<=4))\n\t\treturn 0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=t;\n\t\t}\n\t\treturn 1;\n\t}\n}"} +{"label": "81", "index": "40295", "code": "int array[5][5];\nint scan(int N,int M);\nvoid main(){\n\tint n,m,i,j;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&array[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(scan(n,m)==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tprintf(\"%d\",array[i][j]);\n\t\t\t\tif(j!=4){\n\t\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i!=4){\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\telse if(scan(n,m)==0){\n\t\tprintf(\"error\\n\");\n\t}\n}\n\nint scan(int N,int M){\t\n\tint i,temp[5];\n\tif((N>=0)&&(N<5)&&(M>=0)&&(M<5)){\n\t\tfor(i=0;i<5;i++){\n\t\t\ttemp[i]=array[N][i];\n\t\t\tarray[N][i]=array[M][i];\n\t\t\tarray[M][i]=temp[i];\n\t\t}\n\t\treturn 1;\n\t}\n\telse {\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40296", "code": "int convert(int (*pt)[5],int x,int y)\n{\n int temp,i;\n if(x<0||x>4||y<0||y>4)\n return 0;\n else\n {\n for(i=0;i<5;i++)\n {\n temp=*(*(pt+x)+i);\n *(*(pt+x)+i)=*(*(pt+y)+i);\n *(*(pt+y)+i)=temp;\n }\n }\n return 1; \n}\nint main()\n{\n int n,m,i,j,a[5][5],*p,num;\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n scanf(\"%d \",&a[i][j]);\n }\n }\n scanf(\"%d %d\",&n,&m);\n num=convert(a,n,m);\n if(num==0)\n printf(\"error\");\n if(num==1)\n {\n for(p=a[0];p>*(*(p+i)+j);\n\t }\n }\n cin>>n>>m;\n if(n>=5 || n<0 || m>=5 || m<0)\n {\n cout<<\"error\";\n }\n else \n {\n for(j=0;j<5;j++)\n\t\t temp[j]=*(*(p+n)+j);\n\t for(j=0;j<5;j++)\n\t\t *(*(p+n)+j)=*(*(p+m)+j);\n\t for(j=0;j<5;j++)\n\t\t *(*(p+m)+j)=temp[j];\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n if(j==0)\n cout<<*(*(p+i)+j);\n else cout<<' '<<*(*(p+i)+j);\n if(j==4) cout<4 || m>4 ||n<0 ||m<0)\n return 0;\n for(i=0;i<5;++i){\n temp=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=temp;\n }\n return 1;\n}\n\nint main(){\nint a[5][5],n,m;\nfor(n=0;n<5;n++)\n for(m=0;m<5;m++)\n scanf(\"%d\",&a[n][m]);\nscanf(\"%d%d\",&n,&m);\nif(exchange(a,n,m)==0)\n printf(\"error\\n\");\nelse{\n for(n=0;n<5;n++)\n for(m=0;m<5;m++)\n if(m==4)\n printf(\"%d\\n\",a[n][m]);\n else\n printf(\"%d \",a[n][m]);\n}\n}\n"} +{"label": "81", "index": "40299", "code": "int exchange(int (*)[5]);\nint main()\n{\n\tint matrix[5][5],*p;\n\tfor(p=matrix[0];p-matrix[0]<25;p++)\n\t\tscanf(\"%d\",p);\n\tif(exchange(matrix))\n\t{\n\t\tfor(p=matrix[0];p-matrix[0]<25;p++)\n\t\t\tprintf(\"%d%c\",*p,(p-matrix[0]+1)%5?' ':'\\n');\n\t}\n\telse\n\t\tprintf(\"error\\n\");// a=1010110110100001 \n\treturn 0; // b=1110100100011100\n} // a^=b :0100010010111101 \nint exchange(int (*matrix)[5])// b^=a :1010110110100001\n{// a^=b :1110100100011100\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tif(n<0||n>4||m<0||m>4)\n\t\treturn 0;\n\telse\n\t{\n\t\tint i;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tmatrix[m][i]^=matrix[n][i];\n\t\t\tmatrix[n][i]^=matrix[m][i];\n\t\t\tmatrix[m][i]^=matrix[n][i];\n\t\t}\n\t\treturn 1;\n\t}\n}\n\n\n\n\n\n\t\n"} +{"label": "81", "index": "40300", "code": "int F(int a[5][5],int n,int m)\n{\n\tint i,j,tem;\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttem=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=tem;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t\treturn 0;\n\t}\n}\n\nint main()\n{\n\tint a[5][5];\n\tint n,m;\n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\t\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tF(a,n,m);\n\treturn 0;\n}\n"} +{"label": "81", "index": "40301", "code": "int hu(int a[][5], int m, int n);\nvoid main()\n{\n\tint h[5][5],p,q,i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&h[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&p,&q);\n\tif(hu(h,p,q))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d %d %d %d %d\\n\",h[i][0],h[i][1],h[i][2],h[i][3],h[i][4]);\n\t\t}\t\t\n\t \n\t}\n\telse\n\t\tprintf(\"error\");\n}\nint hu(int a[][5], int m, int n)\n{\n\tint temp=0,i;\n\tif(m>4||n>4)\n\t\treturn 0;\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=temp;\n\t\t}\n\t\t\n\t \n\t\t\n\t\treturn 1;\n\t}\n}\n"} +{"label": "81", "index": "40302", "code": "//#define N 5\nvoid chan (int *p, int *q)\n{\n\tint t=*p; *p=*q; *q=t;\n}\n\n\nint exch (int ar[5][5], int n, int m)\n{\n\tif (n>=5||m>=5) return 0;\n\telse \n\t{\n\t\tint i;\n\t\tfor (i=0; i<5; i++)\n\t\t\tchan (*(ar+n)+i, *(ar+m)+i);\n\t\treturn 1;\n\t}\n}\n\nint main ()\n{\n\tint ar[5][5], n, m, i, j, k;\n\tfor (i=0; i<5; i++)\n\t\tfor (j=0; j<5; j++)\n\t\t\tscanf (\"%d\", *(ar+i)+j);\n\tscanf (\"%d%d\", &n, &m);\n\tk=exch(ar, n, m);\n\tif (k==0)\n\t\tprintf (\"error\");\n\telse \n\t{\n\t\tfor (i=0; i<5; i++)\n\t\tfor (j=0; j<5; j++)\n\t\t{\n\t\t\tif (j==4)\n\t\t\t\tprintf (\"%d\\n\", *(*(ar+i)+j));\n\t\t\telse printf (\"%d \", *(*(ar+i)+j));\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40303", "code": "void main()\n{\n\tint f(int x,int y);\n\tint a[5][5],i,j,b[5],m,n;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);}\n\tscanf(\"%d %d\",&m,&n);\n\tif (f(m,n)==0)\n\t\tprintf(\"error\");\n\telse if (f(m,n)==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tb[j]=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=b[j];}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t printf(\"%d \",a[i][j]);\n printf(\"%d\",a[i][4]);}}}\nint f(int m,int n)\n{\n\tint z;\n\tif (m>=0&&m<5)\n\t{\n\t\tif(n>=0&&n<5)\n\t\t\tz=1;\n\t\telse z=0;}\n\telse z=0;\n\treturn(z);\n}\n\n\n\n\n"} +{"label": "81", "index": "40304", "code": "int panduan(int m,int n) {\n\tif (m<5&&n<5) {\n\t\treturn 1;\n\t}\n\treturn 0;\n}\t\t\nint main(int argc, char* argv[])\n{\n\tint a[5][5];\n\tint m,n;\t\n\tint k,w,i;\n\tint t;\n\tfor (k=0;k<5;k++)\n\t{\n\t\tfor(w=0;w<5;w++)\n\t\t\tscanf(\"%d\",&a[k][w]);\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif (panduan(m,n)==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t;\n\t\t}\n\t\tfor (k=0;k<5;k++)\n\t\t{\n\t\t\tfor (w=0;w<5;w++)\n\t\t\t\tif(w!=4)\n\t\t\t\tprintf(\"%d \",a[k][w]);\n\t\t\t\telse \n\t\t\t\t\tprintf(\"%d\\n\",a[k][w]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40305", "code": "int pand(int y,int z);\nvoid main()\n{\n\tint a[5][5],n,m,i,l,t;\n\tfor(i=0;i<5;i++)\n\t{\n\tscanf(\"%d %d %d %d %d\\n\",&a[i][0],&a[i][1],&a[i][2],&a[i][3],&a[i][4]);\n\t}\n\tscanf(\"%d %d\\n\",&n,&m);\n\tl=pand(n,m);\n\tif(l==0)printf(\"error\");\n\telse\n\t{\t\t\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}\n\t}\n}\nint pand(int y,int z)\n{\n int x;\n\t x=(y<=4&&z<=4)? 1:0;\n\t return x;\n}"} +{"label": "81", "index": "40306", "code": "\nvoid main()\n{\nint a[5][5],i,j,k,m,n;\n for(i=0;i<5;i++)\n\t for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\nscanf(\"%d%d\",&m,&n);\nint change(int m,int n);\n if(change(m,n))\n\t{ for(i=0;i<5;i++)\n\t {\n\t\t k=a[m][i];a[m][i]=a[n][i];a[n][i]=k;\n\t }\n\t for(i=0;i<5;i++)\n\t {\n\t\t for(j=0;j<4;j++)\n printf(\"%d \",a[i][j]);\n\t\t printf(\"%d\",a[i][4]);\n\t\t printf(\"\\n\");\n\t }\n\t}\n else\n\t printf(\"error\");\n}\n\nint change(int m,int n)\n{\n\tif(m<5&&n<5)\n\t\treturn(1);\n\telse \n\t\treturn(0);\n}"} +{"label": "81", "index": "40307", "code": "int main(){\n\tint i,k,a,c[5][5],m,n;\n\tfor(i=0;i<5;i++){\n\t\tfor(k=0;k<5;k++){\n\t\t\tscanf(\"%d\",&c[i][k]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m<5&&n<5&&m>=0&&n>=0){\n\t\tfor(i=0;i<5;i++){\n\t\t\ta=c[m][i];\n\t\t\tc[m][i]=c[n][i];\n\t\t\tc[n][i]=a;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tif(i!=0){\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\tprintf(\"%d\",c[i][0]);\n\t\t\tfor(k=1;k<5;k++){\n\t\t\t\tprintf(\" %d\",c[i][k]);\n\t\t\t}\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\t//scanf(\"%d\",&n);\n\treturn 0;\n}\n"} +{"label": "81", "index": "40308", "code": "void main()\n{\n\tint s(int m,int n);\n\tint m,n,c,a[5][5],i,j,t;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n c=s(m,n);\n\tif(c==0)printf(\"error\");\n\tif(c==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=*(*(a+n)+j);\n *(*(a+n)+j)=*(*(a+m)+j);\n\t\t*(*(a+m)+j)=t;\n\t\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\",a[i][4]);\n\t\tprintf(\"\\n\");\n\t}\n\t}\n}\nint s(int m,int n)\n{\n int c;\n\tif((0<=m&&m<5)&&(0<=n&&n<5))c=1;\n\telse c=0;\n\treturn(c);\n}"} +{"label": "81", "index": "40309", "code": "\nint f(int a[][5],int m,int n)\n{\n\tint k,i;\n\tif(m<5&&m>=0&&n<5&&n>=0)\n\t{for(i=0;i<5;i++)\n\t\t{k=a[m][i];\n\t\ta[m][i]=a[n][i];\n\t\ta[n][i]=k;\n\t\t}\n\treturn 1;\n\t}\n\telse return 0;\n}\n\nvoid main()\n{\n\tint i,j,m,n,k;\n\tint a[5][5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\tscanf(\"%d\",&a[i][j]);\n\t\t\n\tscanf(\"%d%d\",&m,&n);\n k=f(a,m,n);\n\tif(k==1)\n\t\tfor(i=0;i<5;i++)\n\t\t{for(j=0;j<4;j++)\n\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t\n\telse printf(\"error\\n\");\n}\n\n"} +{"label": "81", "index": "40310", "code": "int y(int n,int m){if(n>=0&&n<=4&&m>=0&&m<=4){return 1;}else{return 0;}}\nint main(){\n int a[5][5], i,j,t,m,n;\n for(i=0;i<5;i++){for(j=0;j<5;j++){scanf(\"%d\",&a[i][j]);}}\n scanf(\"%d%d\",&n,&m);\n if(y(n,m)==0){ printf(\"error\");return 0;}\n if(y(n,m)==1){for(j=0;j<5;j++){\nt=a[n][j];a[n][j]=a[m][j];a[m][j]=t;\n }}\n for(i=0;i<5;i++){for(j=0;j<5;j++){ if(j<4){printf(\"%d \",a[i][j]);}else if(j==4){printf(\"%d\\n\",a[i][j]);}}}\n return 0;}\n\n"} +{"label": "81", "index": "40311", "code": "int f(int x,int y)\n{\n\tint z;\n\tif((x>=0&&x<5)&&(y>=0&&y<5))\n\t\tz=1;\n\telse\n\t\tz=0;\n\treturn(z);\n}\n\nvoid main()\n{\n\tint a[5][5],m,n,i,j,t;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tt=f(n,m);\n\tif(t==0)\n\t\tprintf(\"error\");\n\tif(t==1)\n\t{for(i=0;i<5;i++)\n\t\t{t=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=t;}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t}}\n}"} +{"label": "81", "index": "40312", "code": "int juzhen(int hang)\n{\n if (hang<5&&hang>=0)\n {\n return 1;\n }\n else return 0;\n\n}\n\nint main()\n{\n int temp,a[5][5],i,j,n,m;\n\n for (i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n {\n scanf(\"%d\",&a[i][j]);\n }\n }\n scanf(\"%d %d\",&n,&m);\n if (juzhen(n)&&juzhen(m))\n {\n\n for (j=0;j<5;j++)\n {\n temp=a[n][j];\n a[n][j]=a[m][j];\n a[m][j]=temp;\n }\n }\n else{printf(\"error\\n\"); return 0;}\n\n for (i=0;i<5;i++)\n {\n for (j=0;j<4;j++)\n {\n printf(\"%d \",a[i][j]);\n\n }\n printf(\"%d\\n\",a[i][4]);\n }\n\n\n return 0;\n}\n"} +{"label": "81", "index": "40313", "code": "int main()\n{\n\tint i,j,m,n,sz[5][5],a=0,k,s[5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\tscanf(\"%d\",&sz[i][j]);}}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m>=0&&m<5&&n>=0&&n<5){\n\ta=1;\n\tfor(k=0;k<5;k++){\n\ts[k]=sz[m][k];sz[m][k]=sz[n][k];sz[n][k]=s[k];}\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<4;j++){\n\t\t\tprintf(\"%d \",sz[i][j]);}\n\t\tprintf(\"%d\\n\",sz[i][4]);}}\n\tif(a==0){printf(\"error\");}\nreturn 0;\n}"} +{"label": "81", "index": "40314", "code": "int main(){\n\tint sz[5][5],a[5];\n\tint n,m,i,j,f;\n\tfor(i=0;i<5;i++){\n for(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n if(n>=0&&n<=4&&m>=0&&m<=4){f=1;}\n\telse{f=0;}\n\tif(f==1){\n\t\tfor(i=0;i<5;i++){\n\t\ta[i]=sz[n][i];\n\t\tsz[n][i]=sz[m][i];\n\t\tsz[m][i]=a[i];\n\t\t}\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n\t\t\t printf(\"%d \",sz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t}\n\t}\n\tif(f==0)printf(\"error\");\nreturn 0;\n}\n"} +{"label": "81", "index": "40315", "code": "int a[5][5];\nint main()\n{\n int swap(int x[5][5],int n,int m);\n int i,j,n,m;\n for (i=0;i<5;i++){\n for (j=0;j<5;j++){\n scanf(\"%d\",&a[i][j]);\n }\n }\n scanf(\"%d %d\",&n,&m);\n if (swap(a,n,m)==1) {\n for (i=0;i<5;i++){\n for (j=0;j<4;j++){\n printf(\"%d \",a[i][j]); \n }\n printf(\"%d\\n\",a[i][4]);\n }\n }\n else if (swap(a,n,m)==0){\n printf(\"error\");\n }\n return 0;\n}\n\nint swap(int a[5][5],int n,int m)\n{\n int f,i,t;\n if ((n<5)&&(m<5)){\n f=1;\n for (i=0;i<5;i++){\n t=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=t;\n }\n }\n else f=0;\n return (f);\n } "} +{"label": "81", "index": "40316", "code": "int a(int n,int m){\n\tif(n>=0&&n<=4&&m>=0&&m<=4){\n\t\treturn 1;\n\t}\n\telse{\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tint c[5][5],e[5],d,i,j,n,m;\n\t\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&c[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n d=a(n,m);\n\tif(d==1){\n\t\tfor(j=0;j<5;j++){\n\t\t\te[j]=c[n][j];\n\t\t\tc[n][j]=c[m][j];\n\t\t\tc[m][j]=e[j];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j<4){\n\t\t\t\tprintf(\"%d \",c[i][j]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tprintf(\"%d\\n\",c[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\telse{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40317", "code": "int a[5][5];\nvoid main()\n{\n\tint jiaohuan(int x,int y);\n\tint i,j;\n\tint n,m,c;\n\tfor(i=0;i<=4;i++)\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t\tscanf(\"%d%d\",&n,&m);\n\t\tc=jiaohuan(n,m);\n\t\tif(c==0)\n\t\t\tprintf(\"error\\n\");\n\t\tif(c==1)\n\t for(i=0;i<=4;i++)\n\t {\n\t\t printf(\"%d\",a[i][0]);\n\t\tfor(j=1;j<=4;j++)\n\t\t{\n\t\t\tprintf(\" %d\",a[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t }\n}\n int jiaohuan(int x,int y)\n\t {\n\t\t int z,k,t;\n\t\t if((x<0||x>4)||(y<0||y>4)||((x<0||x>4)&&(y<0||y>4)))\n\t\t {\n\t\t\t z=0;\n\t\t return(z);\n\t\t }\n\t\t else if((0<=x&&x<=4)&&(0<=y&&y<=4))\n\t\t {\n\t\t\t for(k=0;k<=4;k++)\n\t\t\t {\n\t\t\t\t t=a[x][k];\n\t\t\t a[x][k]=a[y][k];\n\t\t\t\t a[y][k]=t;\n\t\t\t }\n\t\t\t z=1;\n\t\t\t return(z);\n\t\t }\n\t }\n\t\n"} +{"label": "81", "index": "40318", "code": "int main()\n{ int sz[5][5],mn[5];\n int n,m,i,j,a;\n int panduan(int sz[5][5], int x,int y);\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&sz[i][j]);\n\t} \n\t}\n scanf(\"%d %d\",&n,&m);\n a=panduan(sz,n,m);\n if(a==0){\n printf(\"error\");\n\t}else if(a==1){\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",sz[i][j]);\n\t }\n printf(\"%d\\n\",sz[i][4]);\n }\n }\nreturn 0;\n}\nint panduan(int sz[5][5], int x,int y)\n{ int a,mn[5],i,n;\n if(0<=x&&x<5&&0<=y&&y<5){\n a=1;\n for(i=0;i<5;i++){\n mn[i]=sz[x][i];\n\t}\n for(i=0;i<5;i++){\n sz[x][i]=sz[y][i];\n\t}\n for(i=0;i<5;i++){\n sz[y][i]=mn[i];\n\t}\n }else{\n a=0;\n }\n return a;\n}\n"} +{"label": "81", "index": "40319", "code": "int main(){\n\tint m,n,p,i,j;\n\tint sz[5][5];\n\tfor(int i=0; i<5;i++){\n\t\tfor(int j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&(sz[i][j]));\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif((m>-1)&&(m<5)&&(n>-1)&&(n<5)){\n\t\tif(m<=n){\n\t\t\tfor(i=0;in){\n\t\t\tfor(i=0;i=0) && (m<=4 && m>=0))\n\t {\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=t[i];\n\t\t}\n\t\treturn 1;\n\t }\n\telse\n\t{\n\t return 0;\n\t}\n}\nint main()\n{\n int a[5][5],n,m;\n\t int i,j;\n\t for(i=0;i<5;i++)\n\t {\n\t\t for(j=0;j<5;j++)\n\t\t\t scanf(\"%d\",&a[i][j]);\n\t }\n\t scanf(\"%d %d\",&n,&m);\n if(swap(a,n,m)==1)\n\t {\n\t\t for(i=0;i<5;i++)\n\t\t {\n\t\t\t for(j=0;j<4;j++)\n\t\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t printf(\"%d\",a[i][4]);\n\t\t\t printf(\"\\n\");\n }\n\t }\n\t else\n\t {\n\t\t printf(\"error\\n\");\n\t }\n\t return 0;\n}\n"} +{"label": "81", "index": "40321", "code": "\nint main()\n{\n\tint desk[5][5], n, m, temp;\n\tfor( int i = 0; i < 5; i ++ )\n\t\tfor( int j = 0; j < 5; j ++ )\n\t\t\tcin >> desk[i][j];\n\tcin >> n >> m;\n\tif( n >= 0 && n < 5 && m > 0 && m < 5 )\n\t{\n\t\tfor( int i = 0; i < 5; i ++ )\n\t\t{\n\t\t\ttemp = desk[n][i];\n\t\t\tdesk[n][i] = desk[m][i];\n\t\t\tdesk[m][i] = temp;\n\t\t}\n\t\tfor( int i = 0; i < 5; i ++ )\n\t\t{\n\t\t\tfor( int j = 0; j < 5; j ++ )\n\t\t\t{\n\t\t\t\tif( j ) cout << ' ';\n\t\t\t\tcout << desk[i][j];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\n\t}\n\telse cout << \"error\" << endl;\n\treturn 0;\n}\n"} +{"label": "81", "index": "40322", "code": "int change(int a[5][5],int b,int c)\n{\n\tint i;\n\tint w[5];\n\tif((b>=0 && b<5) && (c>=0 && c<5))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tw[i]=a[b][i];\n\t\t\ta[b][i]=a[c][i];\n\t\t\ta[c][i]=w[i];\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}\n\nint main()\n{\n\tint i,j;\n\tint t[5][5],n,m;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&t[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tint p;\n\tp=change(t,n,m);\n\tif(p==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse if(p==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",t[i][j]);\n\t\t\t\tif(i!=4 && j==4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t}\n\t\t\t\telse if(i==4 && j==4)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "81", "index": "40323", "code": "int main(){\n int sz[5][5];\n \n for(int a=0;a<5;a++){\n for(int b=0;b<5;b++){\n scanf(\"%d\",&sz[a][b]);\n }\n }\n int m,n,e;\n scanf(\"%d %d\",&m,&n);\n if(m<=4&&m>=0&&n<=4&&n>=0){\n for(int b=0;b<5;b++){\n e=sz[n][b];\n sz[n][b]=sz[m][b];\n sz[m][b]=e;\n }\n for(int a=0;a<5;a++){\n for(int b=0;b<4;b++){\n printf(\"%d \",sz[a][b]);\n }\n printf(\"%d\\n\",sz[a][4]);\n }\n }\n else{printf(\"error\");}\n return 0;\n}\n"} +{"label": "81", "index": "40324", "code": "int f(int n,int m)\n{\n\tint z;\n\tif(m>4||n>4)z=0;\n\telse z=1;\n\treturn(z);\n}\nvoid main()\n{\n\tint i,j,t,x,p,q,a[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&p,&q);\n\tx=f(p,q);\n\tif(x==0)printf(\"error\\n\");\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[p][i];\n\t\t\ta[p][i]=a[q][i];\n\t\t\ta[q][i]=t;\n\t\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t}\n\t}\n}\n\n\t\t\n\n"} +{"label": "81", "index": "40325", "code": "\n\nint a[6][6];\nint n,m;\n\nint main()\n{\n for(int i=0;i<5;i++)\n {\n for(int j=0;j<5;j++)\n {\n cin>>a[j][i];\n }\n }\n cin>>n>>m;\n int k=0;\n if(n>=0 && n<=4)\n {\n if(m>=0 && m<=4)\n k=1;\n }\n if(k)\n {\n for(int i=0;i<5;i++)\n {\n int u;\n if(i==n)\n u=m;\n else if(i==m)\n u=n;\n else\n u=i;\n for(int j=0;j<5;j++)\n {\n if(j!=4)\n cout<4||n<0||n>4){\n\t\treturn 0;\n\t}\n\telse{\n\t\tint e;\n\t\tfor(i=0;i<5;i++){\n\t\t\te=sz[m][i];\n\t\t\tsz[m][i]=sz[n][i];\n\t\t\tsz[n][i]=e;\n\t\t}\n\t\treturn 1;\n\t}\n}\n"} +{"label": "81", "index": "40327", "code": "int main()\n{\n\tint exchange(int row[5][5],int n,int m);\n\tint jz[5][5];\n\tint i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&jz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(exchange(jz,n,m)==0)\n\t\tprintf(\"error\\n\");\n\treturn 0;\n}\nint exchange(int row[5][5],int n,int m)\n{\n\tif(n<0||n>4||m<0||m>4)\n\t{\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\tint i,j;\n\t\tint between;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tbetween=row[n][i];\n\t\t\trow[n][i]=row[m][i];\n\t\t\trow[m][i]=between;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t printf(\"%d \",row[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",row[i][4]);\n\t\t}\n return (1);\n\t}\n}\n\n\n\t\t\t\n\n"} +{"label": "81", "index": "40328", "code": "\nint main(){\nint m,n;\nint a,b,c;\nint i,j;\nint x[5][5],y[5],z[5];\nfor (i=0;i<5;i++){\n\tfor (j=0;j<5;j++){\n\tscanf (\"%d\",&x[i][j]);\n\t}\n}\nscanf (\"%d %d\",&m,&n);\nif ((m<=4)&&(n<=4)){\n\tfor (i=m;i<=m;i++){\n\t\tfor (j=0;j<5;j++){\n\t\ty[j]=x[i][j];\n\t\t}\n\t}\n\tfor (i=n;i<=n;i++){\n\t\tfor (j=0;j<5;j++){\n\t\tz[j]=x[i][j];\n\t\t}\n\t}\n\t\n\tfor (i=m;i<=m;i++){\n\t\tfor (j=0;j<5;j++){\n\t\tx[i][j]=z[j];\n\t}\n\t}\n\tfor (i=n;i<=n;i++){\n\t\tfor (j=0;j<5;j++){\n\t\tx[i][j]=y[j];\n\t\t}\n\t}\n\tfor (i=0;i<5;i++){\n\tfor (j=0;j<4;j++){\n\tprintf (\"%d \",x[i][j]);\n\t}\n\tfor (j=4;j<5;j++){\n\tprintf (\"%d\",x[i][j]);\n\t}\n\tprintf (\"\\n\");\n\t}\n}\nelse {printf (\"error\");}\nreturn 0;\n}\n\n"} +{"label": "81", "index": "40329", "code": "\n\nint ch(int a[5][5], int n, int m)\n{\n\tif (n>=0 && n<=4 && m>=0 && m<=4)\n\t{\n\t\tint b[5];\n\t\tfor (int k=0; k<5; k++)\n\t\t{\n\t\t\tb[k]=a[m][k];\n\t\t\ta[m][k]=a[n][k];\n\t\t\ta[n][k]=b[k];\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}\n\nint main()\n{\nint x[5][5];\nfor (int i=0; i<5; i++)\n{\n\tfor (int j=0; j<5; j++)\n\t{\n\t\tscanf(\"%d\", &x[i][j]);\n\t}\n}\nint m, n;\nscanf(\"%d%d\", &n, &m);\nint r=ch(x, n, m);\nif (r==0)\n{\n\tprintf(\"error\");\n}\nelse if (r==1)\n{\n\tfor (int w=0; w<5; w++)\n\t{\n\t\tint z=0;\n\t\tfor (z=0; z<4; z++)\n\t\t{\n\t\t\tprintf(\"%d \", x[w][z]);\n\t\t}\n\t\tprintf(\"%d\\n\", x[w][z]);\n\t}\n}\nreturn 0;\n}"} +{"label": "81", "index": "40330", "code": "int main(){\n\tint m,n;\n\tint s[5][5],tem;\n\tfor(int i=0;i<5;i++){\n\t\tfor(int w=0;w<5;w++){\n\t\t scanf(\"%d\",&s[w][i]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&m<5){\n\t\tfor(int p=0;p<5;p++){\n\t\t tem= s[p][n];\n\t\t s[p][n]=s[p][m];\n s[p][m]=tem;\n\t\t}\n\tfor(int q=0;q<5;q++){\n\t\tfor(int x=0;x<5;x++){\n\t\t\tif(x==4){\n\t\t\t printf(\"%d\",s[x][q]);\n\t\t\t}\n\t\t\telse{ printf(\"%d \",s[x][q]);}\n\t\t}\n\t printf(\"\\n\");\n\t\t}\n\t}\n\telse{\n\t printf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40331", "code": "void trans(int (*m)[5],int p,int q)\n{\n int s,i,j;\n if(p>4||q>4)\n {\n printf(\"error\");\n }\n else\n {\n \n for(i=0;i<5;i++)\n {\n s=*(*(m+p)+i);\n *(*(m+p)+i)=*(*(m+q)+i);\n *(*(m+q)+i)=s;\n }\n for(i=0;i<5;i++)\n {\n for (j=0;j<4;j++)\n printf(\"%d \",*(*(m+i)+j));\n printf(\"%d\\n\",*(*(m+i)+4));\n }\n }\n}\nint main()\n{\n int a[5][5],i,n,j,m,(*p)[5];\n //freopen(\"input.txt\",\"r\",stdin);\n //freopen(\"output.txt\",\"w\",stdout);\n p=a;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",(*(p+i)+j));\n\n scanf(\"%d %d\",&n,&m);\n trans(p,n,m);\n return 0;\n}\n"} +{"label": "81", "index": "40332", "code": "void main()\n{\n\tint s(int m,int n);\n\tint m,n,c,a[5][5],i,j,t;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n c=s(m,n);\n\tif(c==0)printf(\"error\");\n\tif(c==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=a[n][j];\n a[n][j]=a[m][j];\n\t\ta[m][j]=t;\n\t\t}\n\tfor(i=0;i<5;i++)\n\t {\n\t\tfor(j=0;j<4;j++)\n\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\",a[i][4]);\n\t\tprintf(\"\\n\");\n\t }\n\t}\n}\nint s(int m,int n)\n{\n int c;\n\tif((0<=m&&m<5)&&(0<=n&&n<5))c=1;\n\telse c=0;\n\treturn(c);\n}"} +{"label": "81", "index": "40333", "code": "void main()\n{\n\tint a[5][5],*p[5],m,n,i,j,k;\n\tint f(int *q[4],int x,int y);\n\tfor(i=0;i<5;i++)\n\t\tp[i]=*(a+i);\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",p[i]+j);\n\tscanf(\"%d%d\",&n,&m);\n\tk=f(p,n,m);\n\t\n\tif(k==0)\n\t\tprintf(\"error\");\n\telse\n\t{\nfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j<4)\n\t\t\t{\n\t\t\tprintf(\"%d \",*(p[i]+j));\n\t\t\t}\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",*(p[i]+4));\n\t\t}\n\t}\n\t\t\n\n}\nint f(int *q[4],int x,int y)\n{\n\tint *t,z;\n\tif(x<5&&y<5)\n\t{\n\t\tz=1;\n\t\tt=q[x];\n\t\tq[x]=q[y];\n\t\tq[y]=t;\n\t}\n\telse\n\t\tz=0;\n\treturn(z);\n}"} +{"label": "81", "index": "40334", "code": "int exchange(int (*)[5],int,int);\n//---------------------------------------------------------------------\nint main()\n{\n\tint matrix[5][5];\n\tint m,n;\n\tint i;\n\tfor(i=0;i<25;i++)\n\t\tscanf(\"%d\",matrix[0]+i);\n\tscanf(\"%d%d\",&m,&n);\n\tif(exchange(matrix,m,n))\n\t\tfor(i=0;i<25;i++)\n\t\t\tprintf(\"%d%c\",*(matrix[0]+i),(i+1)%5?' ':'\\n');\n\telse\n\t\tprintf(\"error\");\n\treturn 0;\n}\n//---------------------------------------------------------------------\nint exchange(int (*matrix)[5],int m,int n)\n{\n\tif(m>=0&&m<5&&n>=0&&n<5)\n\t{\n\t\tint temp,i;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=matrix[m][i];\n\t\t\tmatrix[m][i]=matrix[n][i];\n\t\t\tmatrix[n][i]=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\n//=====================================================================\n\n"} +{"label": "81", "index": "40335", "code": "int main()\n{\n\tint a[5][5],i,j,n,m;\n\tint f(int n,int m);\n\tint b[5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tif(f(n,m)==0)\n\t\tprintf(\"error\\n\");\n\tif(f(n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n if(j==4)\n break;\n printf(\" \");\n\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\nint f(int n,int m)\n{\n\tint z;\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t\tz=1;\n\telse \n\t\tz=0;\n\treturn (z);\n}\n"} +{"label": "81", "index": "40336", "code": "changeline(int a[5][5],int m,int n)\n{\n\tint i,t;\n\tif(m<=4&&n<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[n][i];a[n][i]=a[m][i];a[m][i]=t;\n\t\t}\n\t\treturn(1);\n\t}\n\telse return(0);\n}\nvoid main()\n{\n\tint a[5][5],i,j,m,n;\t\n\t{\t\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t\tscanf(\"%d\" ,&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(changeline(a,m,n))\n\t{\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\t\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j!=4) printf(\" \");\n\t\t\t\telse printf(\"\\n\");\n\t\t\t}\n\t}\n\t\t\telse\n\t\tprintf(\"error\\n\");\n}"} +{"label": "81", "index": "40337", "code": "int check(int m,int n);\nint main(void)\n{\n\tint a[5][5],m,n,i,j,t;\n for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n if(check(m,n))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=t;\n\t\t}\n\t for(i=0;i<5;i++)\n\t {\t \n for(j=0;j<4;j++)\n\t\t { \n printf(\"%d \",a[i][j]); \n\t\t }\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t }\n }\n\telse printf(\"error\");\n}\nint check(int m,int n)\n{\n\tif(m<=4&&m>=0&&n<=4&&n>=0)\n\treturn(1);\n\telse return(0);\n return 0;\n}"} +{"label": "81", "index": "40338", "code": "\nvoid swapInt(int *p,int *q)\n{\n\tint t=*p;*p=*q;*q=t;\n}\n\nint inside(int n,int m)\n{\n\treturn n>=0 && m>=0 && n4 ||y>4) return 0;\n\telse return 1;\n}\nint main()\n{\n\tint i,j,k,l,m,n;\n\t\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tk=compare(m,n);\n\tif (k==0) printf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tl=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n a[n][i]=l;\n\t\t}\n\t\n for(i=0;i<5;i++)\n\t{\n\t\tprintf(\"%d\",a[i][0]);\n\t\tfor(j=1;j<5;j++)\n\t\t{\t\n\t\t\tprintf(\" %d\",a[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t}}\n\treturn 0;\n}"} +{"label": "81", "index": "40340", "code": " int main()\n{\n int sz[5][5];\n int sz1[5];\n for(int i=0;i<5;i++)\n {\n for (int k=0;k<5;k++)\n scanf(\"%d\",&(sz[i][k]));\n }\n int m,n;\n scanf(\"%d%d\",&m,&n);\n if(m<=4&&m>=0&&n<=4&&n>=0)\n {\n for(int i=0;i<5;i++)\n {\n sz1[i]=sz[m][i];\n sz[m][i]=sz[n][i];\n sz[n][i]=sz1[i];\n }\n for(int i=0;i<5;i++)\n {\n for(int k=0;k<5;k++)\n {\n if(k==4)\n {\n printf(\"%d\\n\",sz[i][k]);\n }\n else\n {\n printf(\"%d \",sz[i][k]);\n }\n }\n }\n }\n else\n {\n printf(\"error\");\n }\n return 0;\n}\n"} +{"label": "81", "index": "40341", "code": "int main()\n{\n int an[5][5],*q=an[0],i,n,m;\n int rev(int n,int x,int an[5][5]);\n for(i=0;i<25;i++)\n\t scanf(\"%d\",q+i);\n scanf(\"%d%d\",&n,&m);\n if(rev(n,m,an)==1) \n {\n\t q=an[0];\n\t for(i=0;i<25;i++)\n\t {\n\t\t printf(\"%d\",*(q+i));\n\t\t if(i%5!=4)printf(\" \");\n\t\t else printf(\"\\n\");\n\t }\n }\n else printf(\"error\\n\");\n \n\nreturn 0;\n}\nint rev(int n,int m,int an[5][5])\n{\n int (*p)[5]=an,k,w;\n if((n>=0)&&(n<5)&&(m>=0)&&(m<5))\n {\n for(w=0;w<5;w++)\n {\n k=*(*(p+n)+w);\n *(*(p+n)+w)=*(*(p+m)+w);\n *(*(p+m)+w)=k;\n }\n return 1;\n }\n else return 0;\n}"} +{"label": "81", "index": "40342", "code": "void main()\n{\n\tvoid convert(int a[5][5]);\n\tint a[N][N];\n\tint i,j;\n\tfor(i=0;i4||m>4||n<0||m<0)\n\tprintf(\"error\");\n\telse\n\tfor(i=0;i=0&&m<5&&m>=0)\t\t\n\tfor(i=0;i=0&&n<5&&m>0&&m<5){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\n\n"} +{"label": "81", "index": "40344", "code": "\nint swap(int (*a)[5], int n,int m);\n\nint main()\n{\n int i,j,n,m,y;\n\tint a[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\ty=swap(a,n, m);\n\tif(y==0)\n\t\tprintf(\"error\\n\");\n\tif(y==1){\t\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tprintf(\"%d\",a[i][j]);\n if(j==4)\n break;\n printf(\" \");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n return 0;\n}\n\nint swap(int (*a)[5], int n,int m)\n{\n int i, j;\n int temp;\n\tif(n>=0&&n<5&&m>=0&&m<5){\n\t\tfor(i = 0; i < 5; i ++){\n\t\t\tfor(j = 0; j < 5; j ++){\n\t\t\t\ttemp = a[n][j];\n\t\t\t\ta[n][j] = a[m][j];\n\t\t\t\ta[m][j] = temp;\n\t\t\t} \n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40345", "code": "void main()\n{\n\tint a[5][5],i,j,p,n,m;\n\tint matrix(int b[5][5],int e,int f);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tp=matrix(a,n,m);\n\tif(p==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tj=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=j;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j!=4)\n\t\t\t\t\tprintf(\" \");\n\t\t\t\telse\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n}\n\nint matrix(int b[5][5],int e,int g)\n{\n\tint f;\n\tif(e<5&&g<5)\n\t\tf=1;\n\telse\n\t\tf=0;\n\treturn(f);\n}"} +{"label": "81", "index": "40346", "code": "\nint su(int n,int m,int *a)\n{\n int e=0,i;\n if(n>=0&&n<=4&&m>=0&&m<=4)\n {\n for(i=0;i<5;i++)\n {\n e=*(a+m*5+i);\n *(a+m*5+i)=*(a+n*5+i);\n *(a+n*5+i)=e;\n }\n return 1;\n }\n else return 0;\n}\nint main(int argc, char *argv[])\n{\n int a[5][5],i,j,m,n;\n \n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n scanf(\"%d\",&a[i][j]);\n }\n }\n \n scanf(\"%d%d\",&n,&m);\n if(su(n,m,*a))\n {\n for(i=0;i<5;i++)\n {\n for(j=0;j<4;j++)\n {\n printf(\"%d \",a[i][j]);\n }\n printf(\"%d\\n\",a[i][4]);\n }\n }\n if(su(n,m,*a)==0)\n printf(\"error\"); \n \n \n \n \n return 0;\n}\n"} +{"label": "81", "index": "40347", "code": "struct num\n{\n\tchar juzhen[20];\n\tstruct num * next;\n};\nint main()\n{\n\tstruct num number[5],* head,* p;\n\tint l,m,i;\n\tchar change[10];\n\tfor(i=0;i<5;i++)\n\t\tgets(number[i].juzhen);\n\tscanf(\"%d%d\",&l,&m);\n strcpy(change,number[l].juzhen);\n strcpy(number[l].juzhen,number[m].juzhen);\n\tstrcpy(number[m].juzhen,change);\n head=&number[0];\n\tp=head;\n\tnumber[4].next=NULL;\n\tif(l>=5||m>=5)\n\t\tprintf(\"error\");\n\telse\n\t{\n\n for(i=0;i<4;i++)\n\t\tnumber[i].next=&number[i+1];\n\tdo\n\t{ \n\t\tputs(p->juzhen);\n\t\tp=p->next;\n\t}while(p!=NULL);\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40348", "code": "void main()\n{\n\tint i,j,m,n;\n\tint a[5][5];\n\tint fac(int a[5][5],int n,int m);\n for (i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(fac(a,n,m)==1)\n\t{\n\t\t for (i=0;i<5;i++)\n\t\t {\n\t\t\t for(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif (j<4)\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\telse printf(\"%d\\n\",a[i][j]);\n\t\t }}\n\t}\n\telse printf(\"error\");\n}\n\n int fac(int a[][5],int n,int m)\n{\n\tint i,j;\n\tif(n>=0 && n<5 && m>=0 && m<5)\n\t{ \n\t\tfor(i=0;i<5;i++)\n\t\t{\n j=a[m][i];\n\t\t\t a[m][i]=a[n][i];\n\t\t\t a[n][i]=j;\n\t\t} \n\t\treturn(1);\n\t}\n\telse \n\treturn(0);\n}"} +{"label": "81", "index": "40349", "code": "void main()\n{\n\tint m,n,i,j,t,a[5][5];\n\tint f(int m,int n);\n for(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(f(m,n)==0)\n\t\tprintf(\"error\");\n\t\telse\n\t\t{\n\t\t for(i=0;i<5;i++)\n\t\t\t {\n\t\t \tt=a[n][i];\n\t\t\t a[n][i]=a[m][i];\n\t\t\t a[m][i]=t;\n\t\t\t }\n\t for(i=0;i<5;i++)\n\t\t\t\t{\n\t \t printf(\"%d\",a[i][0]);\n\t\t for(j=1;j<5;j++)\n\t\t\t\t\t{\t\t\t\n\t\t \t printf(\" %d\",a[i][j]);\n\t\t\t\t\t}\n\t\t\t printf(\"\\n\");\n\t\t\t\t}\n\t\t}\n}\nint f(int m,int n)\n{\n\tint s;\n\tif(m<5&&n<5)\n\t\t\ts=1;\n\telse\n\t\t\ts=0;\n\treturn(s);\n}\n\n\n"} +{"label": "81", "index": "40350", "code": "int f(int n,int m)\n{\nif(n>=0&&n<=4&&m>=0&&m<5)\nreturn 1;\nelse return 0;\n}\nint main()\n{\nint a[5][5],m,n,i,j,k,s;\nfor(i=0;i<5;i++)\n{\nfor(j=0;j<5;j++)\nscanf(\"%d\",&a[i][j]);\n}\nscanf(\"%d %d\",&n,&m);\nk=f(n,m);\nif(k==0) printf(\"error\");\nelse {\nfor(i=0;i<5;i++)\n{\ns=a[n][i];\na[n][i]=a[m][i];\na[m][i]=s;\n}\nfor(i=0;i<5;i++)\nprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n}\nreturn 0;\n}\n\n\n"} +{"label": "81", "index": "40351", "code": "void main()\n{int jiaohuan(int array[][5],int,int);\nint i,j,m,n,a[5][5];\nfor(i=0;i<5;i++)\n{for(j=0;j<5;j++)\nscanf(\"%d\",&a[i][j]);}\nscanf(\"%d %d\",&m,&n);\nif(jiaohuan(a,m,n))\n{for(i=0;i<5;i++)\n{for(j=0;j<5;j++)\n{printf(\"%d\",a[i][j]);\nif(j!=4)printf(\" \");}\nprintf(\"\\n\");}}\nelse\nprintf(\"error\");\nprintf(\"\\n\");}\n\n\nint jiaohuan(int array[][5],int m,int n)\n{int t,i;\nif((m>4)||(n>4))\n return(0);\nelse\n{for(i=0;i<5;i++)\n{t=array[m][i];\narray[m][i]=array[n][i];\narray[n][i]=t;}\nreturn(1);}}"} +{"label": "81", "index": "40352", "code": "int cube(int a[5][5],int n,int m)\n{\n\tint c[5],i;\n\tif(m<5&&m>=0&&n<5&&n>=0)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tc[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=c[i];\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nvoid main()\n{\n\tint a[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif(cube(a,n,m)==0) printf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t\tprintf(\"%d%c\",a[i][j],(j<4)?' ':'\\n');\n\t}\n}\n"} +{"label": "81", "index": "40353", "code": "int f(int a[5][5],int n,int m)\n{\n\tif((0<=n&&n<5)&&(0<=m&&m<5))\n\t{\n\t\tint i,temp;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=temp;\n\t\t}\n\t\treturn(1);\n\t}\n\telse\n\t\treturn(0);\n}\nmain()\n{\n\tint a[5][5];\n\tint n,m,i,j,k;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&n,&m);\n\tk=f(a,n,m);\n\tif(k==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j!=0)\n\t\t\t\t\tprintf(\" \");\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\\n\");\n}\n"} +{"label": "81", "index": "40354", "code": "int judge(int n,int m,int *p[5])\n{\n\tint *temp;\n\tif(n<5&&n>=0&&m<5&&m>=0)\n\t{\n\t\ttemp=p[n];\n\t\tp[n]=p[m];\n\t\tp[m]=temp;\n\t\treturn (1);\n\t}\n\telse return (0);\n}\n\n\nvoid main()\n{\n\tint n,m,i,j,s[5][5],*p[5],a;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t}\n\tfor(i=0;i<5;i++)\n\t\tp[i]=&s[i][0];\n\tscanf(\"%d%d\",&n,&m);\n\ta=judge(n,m,p);\n\n\tif(a==0)\n\t\tprintf(\"error\");\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==0)\n\t\t\t\tprintf(\"%d\",*(p[i]+j));\n\t\t\t\telse if(j==4)\n\t\t\t\t\tprintf(\" %d\\n\",*(p[i]+j));\n\t\t\t\telse\n\t\t\t\t\tprintf(\" %d\",*(p[i]+j));\n\n\t\t\t}\n\t\t}\n\t}\n}\n\n\t\n\n\n"} +{"label": "81", "index": "40355", "code": "\nint main()\n{\n\tint m,n,a[5][5],i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tif(m==n||m>4||m<0||n>4||n<0)\n\t\tprintf(\"error\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i==m)\n\t\t\t\t\tprintf(\"%d\",a[n][0]);\n\t\t\t\telse if(i==n)\n\t\t\t\t\tprintf(\"%d\",a[m][0]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\t\tif(i==m)\n\t\t\t\t\tprintf(\" %d\",a[n][j]);\n\t\t\t\telse if(i==n)\n\t\t\t\t\tprintf(\" %d\",a[m][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\" %d\",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40356", "code": "\nf(int a[5][5],int s,int t)\n{\n\tint i,k,b[1][5];\n\t\n\tif(s<0||s>4||t<0||t>4)\n\t\t\tk=0;\n\t\telse \n\t\t{\n\t\t\tk=1;\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tb[0][i]=a[s][i];\n\t\t\t\ta[s][i]=a[t][i];\n\t\t\t\ta[t][i]=b[0][i];\n\t\t\t\n\t\t\t}\n\n\n\t\t}\n\treturn(k);\n}\n\n\n\nvoid main()\n{\n\tint d[5][5],m,n,i,j;\n\t\n\t\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&d[i][j]);\n\t\tscanf(\"%d%d\",&m,&n);\n f(d,m,n);\n\tif(f(d,m,n)==0)\n\t\tprintf(\"error\");\n\t\telse if(f(d,m,n)==1)\n\t\t\t for(i=0;i<5;i++)\n\t\t\t {\n\t\t\t\t for(j=0;j<5;j++)\n\t\t\t\t {if(j/4==0)\n\t\t\t\t\t printf(\"%d \",d[i][j]);\n\t\t\t\telse if(j/4==1)\n\t\t\t\tprintf(\"%d\\n\",d[i][j]);\n\t\t\t\t }\n\t\t\t }\n}\n\n"} +{"label": "81", "index": "40357", "code": "int main()\n{\n\tint n,m,i,j,a[5][5];\n\t\n\t\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tcin>>*(*(a+i)+j);\n\t\tcin>>n>>m;\n\tif(m<5&&n<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i==n)\n\t\t\t{\tfor(j=0;j<4;j++)\n\t\t\t\t\tcout<=5||m<0||m>=5) return 0;\n\tfor (i=0; i<5; ++i) \n\t{\n\t\tt=arr[n][i]; arr[n][i]=arr[m][i]; arr[m][i]=t;\n\t}\n\treturn 1;\n}\n\nint main() {\n\tint arr[5][5];\n int check(int (*arr)[5], int n, int m);\n int i,j;\n\tint n,m;\n\tfor (i=0; i<5; ++i) for (j=0; j<5; ++j) scanf(\"%d\", &arr[i][j]);\n\tscanf(\"%d %d\", &n, &m);\n\tif (check(arr, n, m)==0) \n\t{\n\t\tprintf(\"error\\n\");\n\t\treturn;\n\t}\n\tfor (i=0; i<5; ++i) \n\t{\n\t\tfor (j=0; j<4; ++j) printf(\"%d \", arr[i][j]);\n\t\tprintf(\"%d\\n\", arr[i][4]);\n\t}\n\tscanf(\"%d\", &i);\n}"} +{"label": "81", "index": "40359", "code": "\nint right(int m,int n)\n{\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\n\n\nvoid main()\n{\n\tint m,n;\n\tint i,j;\n\tint array[5][5];\n\tint tempt[5];\n\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&array[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\n\n\tif(right(m,n))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttempt[i]=array[m][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tarray[m][i]=array[n][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tarray[n][i]=tempt[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",array[i][j]);\n\t\t\tprintf(\"%d\\n\",array[i][4]);\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n}"} +{"label": "81", "index": "40360", "code": "int main(){\nint sz[5][5];\nint n,m; \nint sw(int csz[5][5],int *x,int *y);\nfor (int i=0;i<5;i++){\n for (int j=0;j<5;j++){\n scanf(\"%d\",&sz[i][j]);\n } \n}\nscanf(\"%d %d\",&n,&m);\nif (sw(sz,&n,&m)==1){\n for (int i=0;i<5;i++){\n for (int j=0;j<5;j++){\n if (j==4){\n printf(\"%d\\n\",sz[i][j]);\n }\n else {\n printf(\"%d \",sz[i][j]);\n } \n } \n }\n}\nelse {\n printf(\"error\");\n}\nreturn 0; \n}\nint sw(int csz[5][5],int *x,int *y){\n int e; \n if (*x>=0&&*x<5&&*y>=0&&*y<5){\n for (int k=0;k<5;k++){\n e=csz[*x][k];\n csz[*x][k]=csz[*y][k];\n csz[*y][k]=e;\n }\n return 1;\n }\n else {\n return 0;\n }\n}"} +{"label": "81", "index": "40361", "code": "\n\nint main()\n{\n int from[5][5];\n\tint i,j;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\", &from[i][j]);\n\t\t}\n\t}\n int n,m;\n scanf(\"%d %d\", &n,&m);\n\tif(n<5&&m<5)\n\t{\n\t\tint a[5];\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=from[n][i];\n\t\t\tfrom[n][i]=from[m][i];\n\t\t\tfrom[m][i]=a[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j!=4)\n\t\t\t\t{\n\t\t\t\tprintf(\"%d \", from[i][j]);\n\t\t\t\t}\n\t\t\t\telse if(j==4)\n\t\t\t\t{\n\t\t\t\tprintf(\"%d\", from[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n}\n\t\n\t\n \n \n"} +{"label": "81", "index": "40362", "code": "int array[5][5]={0};\nint change(int m,int n)\n{\n\tint i,t;\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=array[n][i];\n\t\t\tarray[n][i]=array[m][i];\n\t\t\tarray[m][i]=t;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nint main()\n{\n\tint i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&array[i][j]);\n\t\tscanf(\"%d %d\",&n,&m);\n\t\tif(change(n,m))\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t\tfor(j=0;j<5;j++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\",array[i][j]);\n\t\t\t\t\tif(j!=4)printf(\" \");\n\t\t\t\t\telse printf(\"\\n\");\n\t\t\t\t}\n\t\t}\n\t\telse printf(\"error\");\n\t\t\t\treturn 0;\n}\n"} +{"label": "81", "index": "40363", "code": "int main(){\n\tint i,b,n,m,x,y,simida;\n\tint a[10][10];\n\n\tfor(y=0;y<5;y++){\n\t\tfor(x=0;x<5;x++){\n\t\t\tscanf(\"%d\",&a[y][x]);}}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&m<5){\n\t\tfor(x=0;x<5;x++){\n\t\t\tsimida=a[n][x];\n\t\t\ta[n][x]=a[m][x];\n\t\t\ta[m][x]=simida;}\n\t\t\tfor(y=0;y<5;y++){\n\t\t\t\tfor(x=0;x<5;x++){\n\t\t\t\t\tif(x==4){printf(\"%d\\n\",a[y][x]);}\n\t\t\t\t\telse {printf(\"%d \",a[y][x]);}}}\n\t}\n\telse {printf(\"error\");}\n\n\t\t return 0;\n}\n"} +{"label": "81", "index": "40364", "code": "int main(){\n\tint sz[5][5];\n\tint n,m,x,y,i=0,j=0;\n\tfor(x=0;x<5;x++){\n\t\tfor(y=0;y<5;y++){\n\t\t\tscanf(\"%d\",&sz[x][y]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>-1&&n<5&&m>-1&&m<5){\n\t\ttrans(m,n,sz);\n\t\tfor(x=0;x<5;x++){\n\t\t\tfor(y=0;y<5;y++){\n\t\t\t\tif(y!=4)\n\t\t\t\t\tprintf(\"%d \",sz[x][y]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\\n\",sz[x][y]);\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}\n\telse{\n\t\tprintf(\"error\");\n\t\treturn 0;\n\n\t}\n}\nint trans(int m_,int n_,int sz[5][5]){\n int y_;\n for(y_=0;y_<5;y_++){\n\t\t\tint e;\n\t\t\te=sz[n_][y_];\n\t\t\tsz[n_][y_]=sz[m_][y_];\n\t\t\tsz[m_][y_]=e;\n\t\t}\n}"} +{"label": "81", "index": "40365", "code": "int main()\n{\n\tint check(int x,int y);\n\tchar a[5][10];\n\tchar *p[5];\n\tchar *t;\n\tint n,m,i;\n\t\n\tfor(i=0;i<5;i++)\n\tgets(a[i]);\n\tfor(i=0;i<5;i++)\n\tp[i]=a[i];\n\t\n\tscanf(\"%d%d\",&n,&m);\n\tif(check(n,m))\n\t{\n t=p[n];\n\t p[n]=p[m];\n\t p[m]=t;\n\t\n\tfor(i=0;i<5;i++)\n\t{printf(\"%s\\n\",p[i]);}}\n\telse printf(\"error\\n\");\n\treturn 0;\n}\n\nint check(int x,int y)\n{\n\tif(x>-1&&x<5&&y>-1&&y<5)return 1;\n\telse return 0;\n}\n\n"} +{"label": "81", "index": "40366", "code": "\nint check(int(*a)[5],int n,int m)\n{\n\tint temp,i;\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=*(*(a+m)+i);\n\t\t\t*(*(a+m)+i)=*(*(a+n)+i);\n\t\t\t*(*(a+n)+i)=temp;\n\t\t}\n\t\treturn(1);\n\t}\n\telse\n\t\treturn(0);\n}\n\nvoid main()\n{\n\tint (*a)[5];\n\tint n,m,i,j;\n\ta=(int(*)[5])malloc(5*sizeof(int));\n\tfor(j=0;j<5;j++)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tscanf(\"%d\",*(a+j)+i);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(check(a,n,m)==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tfor(i=0;i<4;i++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",*(*(a+j)+i));\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",*(*(a+j)+4));\n\t\t}\n\t}\n}\n\t\n"} +{"label": "81", "index": "40367", "code": "\nint SwapRow(int array[5][5],int row_n,int row_m)\n{\n\tint col,a;\n\tif(row_n>=0&&row_n<5&&row_m>=0&&row_m<5){\n\t\tfor(col=0;col<5;col++){\n\t\t\ta=array[row_n][col];\n\t\t\tarray[row_n][col]=array[row_m][col];\n\t\t\tarray[row_m][col]=a;\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\n\nint main(int argc, char* argv[])\n{\n\tint array[5][5],n,m,row,col;\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++)\n\t\t\tscanf(\"%d\",&array[row][col]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(0 == SwapRow(array,n,m))\n\t\tprintf(\"error\");\n\telse{\n\t\tfor(row=0;row<5;row++){\n\t\t\tfor(col=0;col<5;col++){\n\t\t\t\tif(col==4)\n\t\t\t\t\tprintf(\"%d\\n\", array[row][col]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d \", array [row][col]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40368", "code": "int matrix(int shuzu[5][5],int n,int m)\n{\n\tint i;\n\tint temp=0;\n\tif (n>=0&&n<=4&& m>=0&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=shuzu[n][i];\n\t\t\tshuzu[n][i]=shuzu[m][i];\n\t\t\tshuzu[m][i]=temp;\n\t\t}\n\treturn 1;\n\t}\n\telse \n\t{\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tint shuzu[5][5];\n\tint n;\n\tint m;\n\tint i;\n\tint j;\n\tint k;\n\tint temp;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&shuzu[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif (matrix(shuzu,n,m)==0)\n\t\tprintf(\"error\");\n\telse if (matrix(shuzu,n,m)==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=shuzu[n][i];\n\t\t\tshuzu[n][i]=shuzu[m][i];\n\t\t\tshuzu[m][i]=temp;\n\t\t}\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",shuzu[k][j]);\n\t\t\t\tif(j<4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n\n\n\n\n"} +{"label": "81", "index": "40369", "code": "\nint main()\n{\n\tint a[5][5];\n\tint m,n,i,j,k,e;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t\t\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>=0&&m<5&&n>=0&&n<5)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\te=a[m][k];\n\t\t\ta[m][k]=a[n][k];\n\t\t\ta[n][k]=e;\n\t\t}\n\t\n for(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j==0)\n\t\t\t{printf(\"%d\",a[i][j]);}\n\t\t\tif(j>0&&j<4)\n\t\t\t{printf(\" %d\",a[i][j]);}\n\t\t\tif(j==4)\n\t\t\t{printf(\" %d\\n\",a[i][j]);}\n\t\t}\n\t\t\n\t}\n\t}\n\telse printf(\"error\");\n\n\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40370", "code": "int main()\n{\n\tint i,j,n,m,z,flag,sz[5][5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tz=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=z;\n\t\tflag=1;\n\t\t}\n\t}\n\telse\n\t\tflag=0;\n\tif(flag==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==0)\n\t\t\t\t printf(\"%d\",sz[i][j]);\n\t\t\t\telse\n printf(\" %d\",sz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40371", "code": "\nint * p[5];\n\nint exchange(int m,int n);\nvoid output();\n\nint main()\n{\n\tint num[5][5];\n\tint i,j,m,n;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&num[i][j]);\n\t\t}\n\t\tp[i]=&num[i][0];\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif (exchange(m,n)==0)\n\t{\n\t\tprintf(\"error\\n\");\n\t}\n\telse\n\t{\n\t\toutput();\n\t}\n\tscanf(\"%d\",&m);\n\treturn 0;\n}\n\nint exchange(int m,int n)\n{\n\tif (m<0 || n<0 || m>4 || n>4) return 0;\n\tint * pt;\n\tpt=p[m];\n\tp[m]=p[n];\n\tp[n]=pt;\n\treturn 1;\n}\n\nvoid output()\n{\n\tint i,j;\n\tfor (i=0;i<5;i++)\n\t{\n\t\tprintf(\"%d\",*(p[i]));\n\t\tfor (j=1;j<5;j++)\n\t\t{\n\t\t\tprintf(\" %d\",*(p[i]+j));\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n}"} +{"label": "81", "index": "40372", "code": "int main()\n{\n\tint a[5][5];\n\tint temp[5];\n\tint n,m;\n\tint i,j;\n\tfor(i=0;i<=4;i++){\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\t\t\n\t\t}\t\n\t}\n\tscanf(\"%d %d\", &n,&m);\n\tif(n>=0 && n<=4 && m>=0 && m<=4)\n\t{\n\t\ttemp[0]=a[n][0];\n\t\ttemp[1]=a[n][1];\n\t\ttemp[2]=a[n][2];\n\t\ttemp[3]=a[n][3];\n\t\ttemp[4]=a[n][4];\n\n\t\ta[n][0]=a[m][0];\n\t\ta[n][1]=a[m][1];\n\t\ta[n][2]=a[m][2];\n\t\ta[n][3]=a[m][3];\n\t\ta[n][4]=a[m][4];\n\n\t\ta[m][0]=temp[0];\n\t\ta[m][1]=temp[1];\n\t\ta[m][2]=temp[2];\n\t\ta[m][3]=temp[3];\n\t\ta[m][4]=temp[4];\t\n\n\n\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[0][j]);\n\t\t\t}\n\t\tprintf(\"%d\",a[0][4]);\n\t\tprintf(\"\\n\\n\");\n\n\t\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[1][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",a[1][4]);\n\t\tprintf(\"\\n\\n\");\n\n\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[2][j]);\n\t\t\t}\n\t\tprintf(\"%d\",a[2][4]);\n\t\tprintf(\"\\n\\n\");\n\n\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[3][j]);\n\t\t\t}\n\t\tprintf(\"%d\",a[3][4]);\n\t\tprintf(\"\\n\\n\");\n\n\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[4][j]);\n\t\t\t}\n\t\tprintf(\"%d\",a[4][4]);\n\t\tprintf(\"\\n\\n\");\n\n\n\n\n\n\n\n\n\n\t\t}\n\t\n\telse\n\t\tprintf(\"error\\n\");\n\nreturn 0;\n}"} +{"label": "81", "index": "40373", "code": "\n\nint main(int argc, char* argv[])\n{\n\tint juzhen[5][5];\n\tint i,j;\n\tint m,n;\n\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&juzhen[i][j]);\n\t\t}\n\t}\n\t\n\tscanf(\"%d%d\",&m,&n);\n\t\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\t\tint a[5],i;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=juzhen[m][i];\n\t\t\tjuzhen[m][i]=juzhen[n][i];\n\t\t\tjuzhen[n][i]=a[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==4)\n\t\t\t\t\tprintf(\"%d\",juzhen[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d \",juzhen[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\t\n\t}\n\telse\n\t\tprintf(\"error\");\n\n\treturn 0;\n}"} +{"label": "81", "index": "40374", "code": "int f(int x,int y)\n{\n\tint z;\n\tif((x<=4)&&(y<=4))z=1;\n\telse z=0;\n\treturn(z);\n}\n\nvoid main()\n{\n\tint i,m,n,z,a[5][5],s1,s2,s3,s4,s0;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tscanf(\"%d\",&a[0][i]);\n\t}\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tscanf(\"%d\",&a[1][i]);\n\t}\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tscanf(\"%d\",&a[2][i]);\n\t}\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tscanf(\"%d\",&a[3][i]);\n\t}\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tscanf(\"%d\",&a[4][i]);\n\t}\n scanf(\"%d\",&n);\n\tscanf(\"%d\",&m);\n\tz=f(n,m);\n\tif(z==0)printf(\"error\");\n\tif(z==1)\n\t{\n\t\ts0=a[m][0];\n\t\ts1=a[m][1];\n\t\ts2=a[m][2];\n\t\ts3=a[m][3];\n\t\ts4=a[m][4];\n\t\ta[m][0]=a[n][0];\n\t\ta[m][1]=a[n][1];\n a[m][2]=a[n][2];\n a[m][3]=a[n][3];\n a[m][4]=a[n][4];\n\t\ta[n][0]=s0;\n\t\ta[n][1]=s1;\n\t\ta[n][2]=s2;\n\t\ta[n][3]=s3;\n\t\ta[n][4]=s4;\n\t\tfor(i=0;i<=3;i++)\n\t\t{\n\t\tprintf(\"%d \",a[0][i]);\n\t\t}\n\t\tprintf(\"%d\\n\",a[0][4]);\n\t\tfor(i=0;i<=3;i++)\n\t\t{\n\t\tprintf(\"%d \",a[1][i]);\n\t\t}\n\t\tprintf(\"%d\\n\",a[1][4]);\n\t\tfor(i=0;i<=3;i++)\n\t\t{\n\t\tprintf(\"%d \",a[2][i]);\n\t\t}\n\t\tprintf(\"%d\\n\",a[2][4]);\n\t\tfor(i=0;i<=3;i++)\n\t\t{\n\t\tprintf(\"%d \",a[3][i]);\n\t\t}\n\t\tprintf(\"%d\\n\",a[3][4]);\n\t\tfor(i=0;i<=3;i++)\n\t\t{\n\t\tprintf(\"%d \",a[4][i]);\n\t\t}\n\t\tprintf(\"%d\",a[4][4]);\n\t}\n}\n\n\n\n\t\n\n\n"} +{"label": "81", "index": "40375", "code": "void q(int a[5][5],int m,int n)\n{\n\tint i,b;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tb=a[m][i];\n\t\ta[m][i]=a[n][i];\n\t\ta[n][i]=b;\n\t}\n}\nint main()\n{\n\tint a[5][5],i,j,c,d,e;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tint m,n;\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>=5||n>=5)\n\t{\n\t\tprintf(\"error\\n\");\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\tq(a,m,n);\n\t\n\tfor(i=0;i<5;i++)\n\t{\n\t\tprintf(\"%d\",a[i][0]);\n\t\n\t\tfor(j=1;j<5;j++)\n\t\t{\n\t\t\tprintf(\" %d\",a[i][j]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\t}\n\treturn 0;\n}\n\t\n\n\n"} +{"label": "81", "index": "40376", "code": "void main ()\n{\n\tvoid exchange (int a, int b,int c[100][100]);\n\tint i,j,a,b,c[100][100];\n\t\n\tfor (i=0;i<=4;i++)\n\t{\n\t\tfor (j=0;j<5;j++)\n\t\tscanf(\"%d\",&c[i][j]);\n\t}\n\tscanf (\"%d %d\",&a,&b);\n\t\n\tif (a<5&&a>=0&&b>=0&&b<5)\n\t{ exchange (a,b,c);\n for (i=0;i<=4;i++)\n\t {\n\t\tfor (j=0;j<4;j++)\n\t\t{\n\t\t\tprintf(\"%d \",c[i][j]);\n\t\t}\n printf (\"%d\",c[i][4]);\n\t printf(\"\\n\"); \n\t }\n }\n \n \n else \n\t\tprintf(\"error\");\n}\n \n void exchange (int a, int b, int c[100][100])\n {\n int j,t;\n\t for (j=0;j<5;j++)\n\t {\n\t\t\n\t\t t=c[a][j];\n\t c[a][j]=c[b][j];\n\t c[b][j]=t;\n\t }\n }\n"} +{"label": "81", "index": "40377", "code": "int judge(int a,int b){\n\tif(a>=0&&a<5&&b>=0&&b<5){\n\t\treturn 1;\n\t}\n\treturn 0;\n}\nint main(){\n\tint a[5][5];\n\tint i,j,tmp;\n\tfor(i=0;i<5;i++){\n\t\tscanf(\"%d%d%d%d%d\",&a[i][0],&a[i][1],&a[i][2],&a[i][3],&a[i][4]);\n\t}\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tif(judge(n,m)==0){\n\t\tprintf(\"error\");\n\t}\n\tif(judge(n,m)!=0){\n\t\tfor(j=0;j<5;j++){\n\t\t\ttmp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=tmp;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tif(j!=4){\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\t}\n\t\t\t\tif(j==4){\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40378", "code": "int f(int a[5][5],int n,int m)\n{ int i,t;\n\tif((n>=0&&n<5)&&(m>=0&&m<5))\n\t{\tfor(i=0;i<5;i++)\n\t\t{t=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=t;\n\t\t}\n\treturn 1;\n\t}\n\t\n return 0;\n\t}\nint main()\n{ int a[5][5],m,n;\n int i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n scanf(\"%d%d\",&n,&m);\n\tif(f(a,n,m))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{if(j!=4)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\telse printf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\t}\n\telse printf(\"error\");\n\treturn 0;\n}\n\n"} +{"label": "81", "index": "40379", "code": "int a[5][5];\nint n,m;\nint ser()\n{\n\tint t,i,*p,*q;\n\tif((n>4||n<0)||(m>4||m<0))\n\t\treturn 0;\n\telse\n\t{\n\t\tp=a[n]; q=a[m];\n\t\tfor(i=0;i<5;i++,p++,q++)\n\t\t{\n\t\t\tt=*p; *p=*q; *q=t;\n\t\t}\n\t\treturn 1;\n\t}\n}\nvoid main()\n{\n\tint i,j,t,*p;\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tt=ser();\n\tif(t==0)\n\t\tprintf(\"error\");\n\tif(t==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tfor(j=0;j<4;j++)\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n}\n\n"} +{"label": "81", "index": "40380", "code": "\nint main()\n{\n\tint a[5][5]={0},i,j;\n\tint n,m,temp;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t\tscanf(\"%d %d\",&n,&m);\n\t\tif(n>4||n<0||m>4||m<0)\n\t\t\tprintf(\"error\");\n\t\telse{\n\t\t\tfor(j=0;j<5;j++)\n {\n\t\t\t\ttemp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=temp;\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}\n\t\n\treturn 0;\n}"} +{"label": "81", "index": "40381", "code": "int a[5][5];\n int m,n;\nint jh(int a[5][5],int m,int n){\n int c;\n if(m>4||m<0||n>4||n<0){\n printf(\"error\");}\n else{\n for(int j=0;j<=4;j++){\n c=a[m][j];\n a[m][j]=a[n][j];\n a[n][j]=c;}\n for(int i=0;i<=4;i++){\n for(int j=0;j<=3;j++){\n printf(\"%d \",a[i][j]);}\n printf(\"%d\\n\",a[i][4]);}}\n return 0;\n }\nint main(){\n for(int i=0;i<=4;i++){\n for(int j=0;j<=4;j++){\n scanf(\"%d\",&a[i][j]);}}\n scanf(\"%d %d\",&m,&n);\n jh(a,m,n);\n int y;\n scanf(\"%d\",&y);\n return 0;}\n"} +{"label": "81", "index": "40382", "code": "void main()\n{\n int a[5][5];\n\tint exchange(int a[5][5],int n,int m);\n\tint n,m;\n\tfor(n=0;n<5;n=n+1)\n\t\tfor(m=0;m<5;m=m+1)\n\t\t\tscanf(\"%d\",&a[n][m]);\n\tscanf(\"%d%d\",&n,&m);\n\tif(exchange(a,n,m)==1)\n\t{\n for(n=0;n<5;n=n+1)\n\t {\n for(m=0;m<4;m=m+1)\n\t\t\t printf(\"%d \",a[n][m]);\n\t printf(\"%d\\n\",a[n][4]);\n\t }\n\t}\n\telse\n\t\tprintf(\"error\\n\");\n}\nint exchange(int a[5][5],int n,int m)\n{\n\tint flag,i,t;\n\tif((n>=0&&n<=4)&&(m>=0&&m<=4))\n\t{\n flag=1;\n\t for(i=0;i<5;i++)\n\t {\n t=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=t;\n }\n\t}\n\telse flag=0;\n\treturn(flag);\n}"} +{"label": "81", "index": "40383", "code": "\n\nint main()\n{\n\tint matrix[5][5],i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&matrix[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\n\tif(n<0||n>4||m<0||m>4)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t\tswap(matrix[n][i],matrix[m][i]);\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",matrix[i][j]);\n\t\t\tprintf(\"%d\\n\",matrix[i][4]);\n\t\t}\n\t}\n\t\n\treturn 0;\n}"} +{"label": "81", "index": "40384", "code": "void swi (int num[5][5],int a,int b)\n{\n\tint f;\n\tint k,i,j;\n if(a>4||b>4)\n\t cout<<\"error\";\n\telse \n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tf=num[a][k];\n\t\t\tnum[a][k]=num[b][k];\n\t\t\tnum[b][k]=f;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tcout<>NU[i][j];\n\t\t}\n\t}\n\tcin>>m>>n;\n\n\tswi(NU,m,n);\n \n\treturn 0;\n}"} +{"label": "81", "index": "40385", "code": "void main()\n{\n int f(int a,int b);\n\tint m,n,i,p,q,j,x[5][5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\tscanf(\"%d\",&x[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tp=f(m,n);\n\tif(p==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tq=x[m][i];\n\t\t\t x[m][i]=x[n][i];\n\t\t\t x[n][i]=q;\n\t\t\t}\n\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==0) printf(\"%d\",x[i][j]);\n\t\t\t\telse printf(\" %d\",x[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\nint f(int a,int b)\n{\n\tif(a<5 && a>=0 && b<5 && b>=0)\n\t\treturn 1;\n\telse return 0;\n}\n\n"} +{"label": "81", "index": "40386", "code": "void main()\n{\n int m,n,i;\n char a[5][10],(*p)[10];\n p=a;\n for(i=0;i<5;i++)\n {\n\t gets(a[i]);\n }\n scanf(\"%d%d\",&n,&m);\n if(m<0||m>4||n<0||n>4)\n\t printf(\"error\");\n else\n\t for(i=0;i<5;i++)\n\t {\n\t if(i==m)\n\t\t\t puts(*(p+n));\n\t\t else if(i==n)\n\t\t\t puts(*(p+m));\n\t\t else\n\t\t\t puts(*(p+i));\n\t }\n}"} +{"label": "81", "index": "40387", "code": "\nint check(int (*p)[5],int n,int m)\n{\n\tint i,t;\n\tif((n>=0)&&(n<=4)&&(m>=0)&&(m<=4))\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tt=*(*(p+n)+i);\n\t\t\t*(*(p+n)+i)=*(*(p+m)+i);\n\t\t\t*(*(p+m)+i)=t; \n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\nint main()\n{\n\tint x,y,j,k,c;\n\tint a[5][5];\n\tfor(j=0;j<5;j++)\n\t\tfor(k=0;k<5;k++)\n\t\t\tscanf(\"%d\",&a[j][k]);\n\tscanf(\"%d %d\",&x,&y);\n\tc=check(a,x,y);\n\tif(c==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t for(k=0;k<4;k++)\n\t\t\t printf(\"%d \",a[j][k]);\n\t\tprintf(\"%d\",a[j][4]);\n\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse if(c==0)\n\t\tprintf(\"error\");\n\t\n\treturn 0;\n}\n\n\t\n\n\n\n\n\n\n"} +{"label": "81", "index": "40388", "code": "int change(int*p3,int*p4,int n,int m)\n{\n\tint b[6]={0},i;\n\tif(m>4||n>4) return(0);\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=*(p3+i);\n *(p3+i)=*(p4+i);\n\t\t\t*(p4+i)=b[i];\n\t\t}\n\t\treturn(1);\n\t}\n}\n\n\nvoid main()\n{\n\tint a[5][5],i,j,m,n,v;\n\tint*p1,*p2,*p=a[0];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tp1=a[n];p2=a[m];\n\tv=change(p1,p2,n,m);\n\tif(v)\n\t{\n\t\tfor(i=0;i<5;i++,p++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++,p++)\n\t\t\tprintf(\"%d \",*(p));\n\t\t\tprintf(\"%d\",*(p));\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse printf(\"error\");\n}\n\n"} +{"label": "81", "index": "40389", "code": "int process(int a[][5],int m,int n)\n{\n\tint re,i,temp;\n\tif(m>-1&&m<5&&n>-1&&n<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=temp;\n\t\t}\n\t\tre=1;\n\t}\n\telse\n\t\tre=0;\n\treturn re;\n}\nvoid main()\n{\n\tint re,m,n,a[5][5],i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tre=process(a,m,n);\n\tif(re==0)\n printf(\"error\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t}\n}"} +{"label": "81", "index": "40390", "code": "\nint change(int a[][5],int m,int n);\n\nvoid main()\n{\n\tint a[5][5],m,n,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tchange(a,m,n);\n\tif(change(a,m,n)==0)\n\t\tprintf(\"error\\n\");\n\tif(change(a,m,n)==1)\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j==4)\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n}\n\nint change(int a[][5],int m,int n)\n{\n\tif((m>4)||(m<0)||(n>4)||(n<0))\n\t\treturn 0;\n\telse\n\t{\n\t\tint i,b;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=b;\n\t\t}\n\t\treturn 1;\n\t}\n}"} +{"label": "81", "index": "40391", "code": "int jzhh(int shuzu[5][5],int n,int m);\nint main()\n{\n\tint shuzu1[5][5],x,y,j,k;\n\tfor(j=0;j<5;j++)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tscanf(\"%d\",&shuzu1[j][k]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&x,&y);\n\tif(jzhh(shuzu1,x,y)==0)\n\t{\n\t\tprintf(\"error\");\n\t}else\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tfor(k=0;k<5;k++)\n\t\t\t{\n\t\t\t\tif(k==4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",shuzu1[j][k]);\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",shuzu1[j][k]);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\nint jzhh(int shuzu[5][5],int n,int m)\n{\n\tint e,i;\n\tif((m<=4)&&(n<=4))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\te=shuzu[m][i];\n\t\t\tshuzu[m][i]=shuzu[n][i];\n\t\t\tshuzu[n][i]=e;\n\t\t}\n\t\treturn 1;\n\t}else\n\t{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40392", "code": "int f(int n,int m)\n{\n\tint a;\n\tif(n>=0&&n<=4&&m<=4&&m>=0) a=1;\n\telse a=0;\n\treturn(a);\n}\n\nvoid main()\n{\n\tint a[5][5],n,i,j,m,t;\n\tint *p1,*p2,*p3;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tp1=&n;p2=&m;\n\tif(f(n,m)==0) printf(\"error\");\n\tif(f(n,m)==1) \n\t{\n for(i=0,t=0;t<5;i++,t++)\n\t\t{if(i==*p1) {i=*p2;for(j=0;j<4;j++) printf(\"%d \",a[i][j]); printf(\"%d\\n\",a[i][4]);i=t;}\n\t\telse if(i==*p2) {i=*p1;for(j=0;j<4;j++) printf(\"%d \",a[i][j]); printf(\"%d\\n\",a[i][4]);i=t;}\n\t\telse {for(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][4]);}\n\t\tprintf(\"\\n\");\n\t\t}\n}\n}"} +{"label": "81", "index": "40393", "code": "int main()\n{\n\tint a[5][5],m,n,i,j,count=0;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tif(m<0||m>=5||n<0||n>=5)\n\t\t{\n\t\t\tprintf(\"error\");return 0;\n\t\t}\n\tfor(count=0;count<5;count++)\n\t\t{\n\t\t\tif(count==n)\n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[m][i]);\n\t\t\t\tprintf(\"%d\\n\",a[m][4]);\n\t\t\t\n\t\t\t}\n\t\t\telse if(count==m)\n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[n][i]);\n\t\t\t\tprintf(\"%d\\n\",a[n][4]);\n\t\t\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tfor(i=0;i<4;i++)\n\t\t\t\t\tprintf(\"%d \",a[count][i]);\n\t\t\t\tprintf(\"%d\\n\",a[count][4]);\n\t\t\t\n\t\t\t}\n\t\t}return 0;\n}\n\n"} +{"label": "81", "index": "40394", "code": "\nint main()\n{int haha(int a,int b,int s[5][5]);\nint t[5][5];\nint m,n,i,j,c;\nfor(i=0;i<5;i++)\nfor(j=0;j<5;j++)\n{scanf(\"%d\",&t[i][j]);}\nscanf(\"%d%d\",&m,&n);\nc=haha(m,n,t);\nif(c==0)\nprintf(\"error\");\nelse\n{\nfor(i=0;i<5;i++)\n{for(j=0;j<4;j++)\n{printf(\"%d \",t[i][j]);}\nprintf(\"%d\",t[i][4]);\nprintf(\"\\n\");}\n}\nreturn 0;\n}\nint haha(int a,int b,int s[5][5])\n{\nint k[5];\nint i;\nif(a<0||a>4||b<0||b>4)\nreturn 0;\nelse\n{for(i=0;i<5;i++)\n{k[i]=s[a][i];\ns[a][i]=s[b][i];\ns[b][i]=k[i];\n}\nreturn 1;\n}\n}"} +{"label": "81", "index": "40395", "code": "void main()\n{\n\tint change(int n,int m);\n\tvoid changing(int a[5][5],int n,int m);\n\tint n,m,i,j,flag,a[5][5];\n\tfor(j=0;j<5;j++)\n\t\tfor(i=0;i<5;i++)\n\t\t\tscanf(\"%d\",&a[j][i]);\n\tscanf(\"%d%d\",&n,&m);\n\tflag=change(n,m);\n\tif(flag==0) printf(\"error\\n\");\n\telse\n\t{\n\t\tchanging(a,n,m);\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tprintf(\"%d\",a[j][0]);\n\t\t\tfor(i=1;i<5;i++)\n\t\t\t\tprintf(\" %d\",a[j][i]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\nint change(int n,int m)\n{\n\tint f;\n\tif((n>=0&&n<5)&&(m>=0&&m<5)) f=1;\n\telse f=0;\n\treturn(f);\n}\nvoid changing(int a[5][5],int n,int m)\n{\n\tint i,b[5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tb[i]=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=b[i];\n\t}\n}\n\t\t\n\n\t\t\n"} +{"label": "81", "index": "40396", "code": "int main()\n{\n\tint i,j,k;\n\tint m,n;\n\tint sz[5][5];\n\tint s[5]={0};\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m<=4&&n<=4&&m>=0&&n>=0){\n\t\tk=1;\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\ts[j]=sz[m][j];\n\t\t\t\tsz[m][j]=sz[n][j];\n\t\t\t\tsz[n][j]=s[j];\n\t\t\t}\n\t}else{\n\t\tk=0;\n\t}\n\tif(k==0){\n\t\tprintf(\"error\");\n\t}else if(k==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tprintf(\"%d\",sz[i][0]);\n\t\t\tfor(j=1;j<5;j++){\n\t\t\t\tprintf(\" %d\",sz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40397", "code": "int main()\n{\n int jiaohuan(int *p,int ,int);\n int a[5][5],n,m,i,c;\n int *p;\n p=a[0];\n for (i=0;i<25;i++,p++)\n \n scanf(\"%d\",&*p);\n scanf(\"%d%d\",&n,&m);\n p=a[0];\n c=jiaohuan(p,n,m);\n \n if(c==0)printf(\"error\");\n else if(c==1)\n {\n p=a[0];\n for (i=0;i<25;i++,p++)\n \n \n {\n\t if(i%5==0)printf(\"\\n\");\n\t else printf(\" \");\n printf(\"%d\",*p);\n }\n \n }\n\n return 0;\n}\nint jiaohuan(int *p,int n,int m)\n{\n int t,i;\n if(m<5&&n<5)\n {\n for(i=0;i<5;i++)\n {\n t=*(p+n*5+i);\n *(p+n*5+i)=*(p+m*5+i);\n *(p+m*5+i)=t;\n }\n return 1;\n }\n else return 0;\n}\n\n \n\n"} +{"label": "81", "index": "40398", "code": "int main()\n{\n\tint MtxSwap(int [][5], int, int);\n\tint mtx[5][5], i, j;\n\tfor(i=0; i<5; i++)\n\t\tfor(j=0; j<5; j++)\n\t\t\tscanf(\"%d\", &mtx[i][j]);\n\tint m, n;\n\tscanf(\"%d%d\", &m, &n);\n\tif(MtxSwap(mtx,m,n))\n\t\tfor(i=0; i<5; i++)\n\t\t{\n\t\t\tfor(j=0; j<4; j++)\n\t\t\t\tprintf(\"%d \", mtx[i][j]);\n\t\t\tprintf(\"%d\\n\", mtx[i][j]);\n\t\t}\n\telse printf(\"error\\n\");\n\treturn 0;\n}\nint MtxSwap(int mtx[][5], int m, int n)\n{\n\tif(m<0 || m>4 || n<0 || n>4)\n\t\treturn 0;\n\tint tmp[5];\n\tmemcpy(tmp, mtx[m], sizeof(tmp));\n\tmemcpy(mtx[m], mtx[n], sizeof(tmp));\n\tmemcpy(mtx[n], tmp, sizeof(tmp));\n\treturn 1;\n}\n"} +{"label": "81", "index": "40399", "code": "int main()\n{\n int shuzu[5][5];\n\tint i,k;\n\tfor(i=0;i<5;i++){\n\t\tfor(k=0;k<5;k++){\n\t\t\tscanf(\"%d\",&shuzu[i][k]);\n\t\t}\n\t}\n int a,n,m;\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&m<5){\n a=1;\n\t}else{\n\t\ta=0;\n\t}\n\tif(a==0){\n\t\tprintf(\"error\");\n\t}\n\tif(a==1){\n\t\tint shu[5];\n\t\tfor(i=0;i<5;i++){\n\t\t\tshu[i]=shuzu[n][i];\n\t\t\tshuzu[n][i]=shuzu[m][i];\n\t\t\tshuzu[m][i]=shu[i];\n\t\t}\n\t for(i=0;i<5;i++){\n\t\t for(k=0;k<4;k++){\n\t\t\t printf(\"%d \",shuzu[i][k]);\n\t\t\t}\n\t \tif(k==4){\n\t\t\t printf(\"%d\\n\",shuzu[i][4]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40400", "code": "judge(int x,int y)\n{\n return(((x>=0)&&(x<=4)&&(y<=4)&&(y>=0))? 1:0);\n}\nvoid move(int a[5][5],int p,int q)\n{\n int c=judge(p,q);\n int t[1][5],i,j;\n if(c==1)\n {\n \n for(j=0;j<5;j++)\n\t { \n t[0][j]=a[p][j];\n a[p][j]=a[q][j];\n a[q][j]=t[0][j];\n\t }\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n\t { if(j<4)\n\t printf(\"%d \",a[i][j]);\n\t else\n\t\t\t printf(\"%d\\n\",a[i][j]);}\n }\n else\n printf(\"error\");\n}\nvoid main()\n{\n int a[5][5],i,j,u,v;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n scanf(\"%d %d\",&u,&v);\n move(a,u,v);\n}"} +{"label": "81", "index": "40401", "code": "\nint main()\n{\n void swap(int data[5][5], int n, int m);\n \n int data[5][5];\n int n, m;\n \n int i, j;\n \n for(i = 0; i <= 4; i++)\n for(j = 0; j <= 4; j++)\n scanf(\"%d\", &data[i][j]);\n \n scanf(\"%d %d\", &n, &m);\n \n swap(data, n, m);\n \n return 0;\n}\n\nvoid swap(int data[5][5], int n, int m)\n{\n int i, j;\n \n if(n < 0 || n > 4 || m < 0 || m > 4)\n printf(\"error\");\n else\n {\n for(i = 0; i <= 4; i++)\n { \n for(j = 0; j <= 4; j++)\n {\n if(i == m)\n printf(\"%d\", data[n][j]);\n if(i == n)\n printf(\"%d\", data[m][j]);\n if(i != m && i != n)\n printf(\"%d\", data[i][j]);\n if(j != 4)\n printf(\" \");\n }\n printf(\"\\n\");\n }\n }\n}\n \n \n"} +{"label": "81", "index": "40402", "code": "main()\n{\n int base[5][5]={0};\n int tem[5]={0};\n int i,j,a,b;\n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n scanf(\"%d\",&base[i][j]);\n scanf(\"%d%d\",&a,&b);\n if(a<0||a>4||b<0||b>4)\n printf(\"error\");\n else\n {\n for(i=0;i<5;i++)\n tem[i]=base[a][i];\n for(i=0;i<5;i++)\n base[a][i]=base[b][i]; \n for(i=0;i<5;i++)\n base[b][i]=tem[i];\n \n for(i=0;i<5;i++)\n { \n for(j=0;j<4;j++)\n printf(\"%d \",base[i][j]);\n printf(\"%d\\n\",base[i][4]) ; \n }\n }\n}\n"} +{"label": "81", "index": "40403", "code": "main()\n{\n int *p,a[5][5],m,n,i,q;\n p=a[0];\n for(i=0;i<=24;i++)\n scanf(\"%d\",p+i);\n scanf(\"%d %d\",&m,&n);\n if(m<=4&&m>=0&&n>=0&&n<=4&&m>n)\n {for(i=0;i=0&&n>=0&&n<=4&&n>m)\n {for(i=0;i=0 && n<=4 && m>=0 && m<=4)\n\t{\n\t\tint i,b;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb=*(point+i+n*5);\n\t\t\t*(point+i+n*5)=*(point+i+m*5);\n\t\t\t*(point+i+m*5)=b;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\nvoid main()\n{\n\tint m,n,a[5][5],i,j;\n\tint *point=a[0];\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif (f(n,m,point)==0)printf(\"error\");\n\telse \n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\t{\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t}\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t}\n}"} +{"label": "81", "index": "40405", "code": "int p(int x[5][5],int y,int z)\n{\n\tint u,i,temp;\n\tif(y>=0&&y<=4&&z>=0&&z<=4)\n\t{\n\t\tu=1;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=x[y][i];\n\t\t\tx[y][i]=x[z][i];\n\t\t\tx[z][i]=temp;\n\t\t}\n\t}\n\telse u=0;\n\treturn u;\n}\nvoid main()\n{\n\tint a[5][5],b,c,i,j,d,w=0;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d %d\",&b,&c);\n\t\td=p(a,b,c);\n\t\tif(d==1)\n\t\t{\n\t\tfor(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n\t\t {\n\t\t\t if(j==4)printf(\"%d\",a[i][j]);\n\t\t\t else\n\t\t\t printf(\"%d \",a[i][j]);\n\t\t\t w++;\n\t\t\t if(w==5)\n\t\t\t\t printf(\"\\n\");\n\t\t\t if(w==10)printf(\"\\n\");\n\t\t\t if(w==15)printf(\"\\n\");\n\t\t\t if(w==20)printf(\"\\n\");\n\t\t }\n\t\t}\n\t\telse printf(\"error\");\n}"} +{"label": "81", "index": "40406", "code": "void main()\n{\n\tint a[5][5],m,n,i,j,c,b[5][5],e[5][5];\n\tint cha(int x,int y);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\tscanf(\"%d\",&a[i][j]);\n\t}\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tc=cha(m,n);\n\tif(c==1)\n\t{ \n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t b[i][j]=a[i][j];\n\t}\n for(j=0;j<5;j++)\n\t{\n\t e[0][j]=b[m][j];\n\t b[m][j]=b[n][j];\n\t b[n][j]=e[0][j];\n\t}\n\n\t\t \n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tfor(j=0;j<4;j++)\n\t printf(\"%d \",b[i][j]);\n\t\tprintf(\"%d\\n\",b[i][4]);\n\t\t}\n\t}\nelse printf(\"error\");\n}\n\nint cha(int x,int y)\n{\n\tint z;\n\tif(x>=0&&x<=4&&y>=0&&y<=4)\n z=1;\nelse z=0;\nreturn(z);\n}\n"} +{"label": "81", "index": "40407", "code": "int check(int a[5][5],int n,int m);\n\nint check(int a[5][5],int n,int m){\n\tint row,col,indin=0,indim=0,indi;\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++){\n\t\t\tif((a[row][col])==n){\n\t\t\t\tindin=1;\n\t\t\t}\n\t\t\tif((a[row][col])==m){\n\t\t\t\tindim=1;\n\t\t\t}\n\t\t}\n\t}\n\tindi=indin*indim;\n\treturn indi;\n}\n\n\nint main()\n{\n\tint square[5][5],n,m;\n\tint row,col;\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++){\n\t\t\tscanf(\"%d\",&square[row][col]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tint result,temp;\n\tresult=check(square,n,m);\n\tif(result==0||n>4||m>4)printf(\"error\");\n\telse{\n\t\tfor(col=0;col<5;col++){\n\t\t\ttemp=square[n][col];\n\t\t\tsquare[n][col]=square[m][col];\n\t\t\tsquare[m][col]=temp;\n\t\t}\n\tfor(row=0;row<5;row++){\n\t\tprintf(\"\\n%d\",square[row][0]);\n\t\tfor(col=1;col<5;col++)printf(\" %d\",square[row][col]);\n\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40408", "code": "int change(int sz[][5],int,int);\n\nint main(){\n\tint n,m,i,j;\n\tint sz[5][5];\n\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&(sz[i][j]));\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(change(sz,n,m)){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t}\n\t}else{\n\t\tprintf(\"error\");\n\t}\t\n return 0;\n}\n\n\nint change(int sz[][5],int n,int m){\n\tint temp,i;\n\tif((n>=0&&n<=4)&&(m>=0&&m<=4)){\n\t\tfor (i=0;i<5;i++){\n\t\ttemp=sz[n][i];\n\t\tsz[n][i]=sz[m][i];\n\t\tsz[m][i]=temp;}\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40409", "code": "int main()\n{\n\tint convert(int *,int n,int m);\n\tint c,*p,i,j,n,m,a[5][5];\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n p=&a[0][0];\n\tc=convert(p,n,m);\n if(c==0) printf(\"error\");\n\tif(c==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tif(i!=4)\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t\telse\n\t\t\t\tprintf(\"%d\",a[i][4]);\n\t\t}\n\t}\n\treturn 0;\n}\nint convert(int *p,int n,int m)\n{\n\tint t,j;\n\tif(n>4||m>4||n<0||m<0) return 0;\n\telse\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=*(p+5*n+j);\n\t\t\t*(p+5*n+j)=*(p+5*m+j);\n\t\t\t*(p+5*m+j)=t;\n\t\t}\n\t return 1;\n\t}\n}"} +{"label": "81", "index": "40410", "code": "int jiaohuan (int m,int n) \n{ \n\tif ((m>-1)&&(m<5)&&(n>-1)&&(n<5))\n\t{\n \n return 1;\n\t \n\t}\n\telse \n\t{return 0;} \n\n}\nint main(int argc, char* argv[])\n{\n int i,j,m,n,p;\n int x[5][5];\n for (i=0;i<5;i++)\n\t {\n\t for (j=0;j<5;j++)\n\t {\n\t\tscanf (\"%d \",&x[i][j]);\n\t\t\t \n\t \n\t }\n\t \n\t }\n\tscanf (\"%d%d\",&m,&n);\n\tif (jiaohuan (m,n)==1)\n\t{\n for (j=0;j<5;j++)\n\t {\n\t p=x[m][j];\n\t x[m][j]=x[n][j];\n x[n][j]=p;\n\t \n\t \n\t } \n\t for (i=0;i<5;i++)\n\t {\n\t for (j=0;j<5;j++)\n\t\t { \n\t\t\t if (j==4) {printf (\"%d\\n\",x[i][j]);}\t\n\t\t\t \n\t\t\t else\n\t\t\t {\n\t\t printf (\"%d \",x[i][j]);\n\t\t\t }\n\t\t }\n\t }\n\t}\n\telse \n\t{\n\t\tprintf (\"error\");\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40411", "code": "\nint define(int m,int n)\n{\n\tif(m<=4&&n<=4)\n\t{\n\t\treturn 1;\n\t}else\n\t\treturn 0;\n}\n\nvoid main()\n{\n\tint m,n,i,j,a[5][5],b[5]={0};\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(define(m,n)==1)\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tb[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<=3;i++)\n\t\t{\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}printf(\"%d %d %d %d %d\",a[4][0],a[4][1],a[4][2],a[4][3],a[4][4]);\n\t}else printf(\"error\");\n}"} +{"label": "81", "index": "40412", "code": "\nint change(int sz[5][5],int n,int m);\nint main(int argc, char* argv[])\n{\n\tint sz[5][5],i,j,n,m;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(change(sz,n,m)){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",sz[i][j]);\t\n\t\t\t}\n\t\t\tif(j==4){\n\t\t\t\tprintf(\"%d\\n\",sz[i][j]);\n\t\t\t}\n\t\t}\t\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\n\nint change(int sz[5][5],int n,int m){\n\tint i,e;\n\tif((n>=0&&n<=4)&&(m>=0&&m<=4)){\n\t\tfor(i=0;i<5;i++){\n\t\t\te=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=e;\n\t\t}\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\n"} +{"label": "81", "index": "40413", "code": "\nint main()\n{\n\tint a[6][6]={0},i,j,k,n,m;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>=5||n<0||m>=5||m<0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i==n)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",a[m][j]);\n\t\t\t\t}\n\t\t\t\tprintf(\"%d\\n\",a[m][4]);\n\t\t\t}\n\t\t\telse if(i==m)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",a[n][j]);\n\t\t\t\t}\n\t\t\t\tprintf(\"%d\\n\",a[n][4]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\t}\n\t\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "81", "index": "40414", "code": "\nvoid go(int a[5][5],int n,int m)\n{\n\tint b[5],i,j;\n\tif(n<0||n>4||m<0||m>4)\n\t{printf(\"error\");}\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j!=4)printf(\" \");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\t\n\n\t}\n\n\t\n}\n\nint main()\n{\n\tint a[5][5],i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t\t\n\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tgo(a,n,m);\n\t\n\treturn 0;\n}\n"} +{"label": "81", "index": "40415", "code": "void main()\n{\n int i,j,m,n,a[5][5];\n\t for(i=0;i<5;i++)\n\t\t for(j=0;j<5;j++)\n\t\t\t scanf(\"%d\",&a[i][j]);\n\t scanf(\"%d %d\",&n,&m);\n\t if(m>4||n>4) printf(\"error\\n\");\n\t else\n\t {\n\t\t for(i=0;i<5;i++)\n\t\t {\n\t\t\t j=*(*(a+m)+i);*(*(a+m)+i)=*(*(a+n)+i);*(*(a+n)+i)=j;\n\t\t }\n\t\t for(i=0;i<5;i++)\n\t\t {\n\t\t\t for(j=0;j<4;j++)\n\t\t\t printf(\"%d \",*(*(a+i)+j));\n\t\t\t printf(\"%d\\n\",*(*(a+i)+4));\n\t\t }\n\t }\n\t\t \n\n\n}"} +{"label": "81", "index": "40416", "code": "int hanshu(int m,int n);\nint main()\n{\n\tint a[5][5];\n\tint b[5]; \n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tint m,n;\n\tscanf(\"%d%d\",&m,&n);\n\tif(hanshu(m,n)==1)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tb[j]=a[m][j];\n\t\t\ta[m][j]=a[n][j];\n\t\t\ta[n][j]=b[j];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t for(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\nint hanshu(int m,int n)\n{\n\tint result;\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t\tresult=1;\n\t}\n\telse\n\t{\n\t\tresult=0;\n\t}\n\treturn result;\n}"} +{"label": "81", "index": "40417", "code": "void main()\n{\n\tint ch(int a[5][5],int n,int m);\n int b[5][5],x,y,i,j,t;\n for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++) scanf(\"%d\",&b[i][j]);\n\tscanf(\"%d %d\",&x,&y);\n\tif(ch(b,x,y))\n\t{\n\t\tfor(j=0;j<5;j++)\n\t { \n\t\t t=b[x][j];\n\t b[x][j]=b[y][j];\n\t b[y][j]=t;\n\t }\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++) printf(\"%d \",b[i][j]);\n\t\t\tprintf(\"%d\\n\",b[i][4]);\n\t\t}\n\t}\n\telse printf(\"error\");\n\n}\nint ch(int a[5][5],int n,int m)\n{\n\tif(n>=0&&n<=4&&m>=0&&m<=4) return(1);\n\telse return(0);\n}\n\n"} +{"label": "81", "index": "40418", "code": "void main()\n{\n\tint change(int x,int y);\n\tint m,n,i,j,c,b[5],a[5][5],k;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tc=change(m,n);\n\tif(c==0)\n\t\tprintf(\"error\\n\");\n\tif(c==1)\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\tb[k]=a[m][k];\n\t\t\ta[m][k]=a[n][k];\n\t\t\ta[n][k]=b[k];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t}\n\t}\n}\nint change(int x,int y)\n{\n\tint z;\n\tif(x>4||y>4)\n\t\tz=0;\n\telse\n\t\tz=1;\n\treturn(z);\n}"} +{"label": "81", "index": "40419", "code": "int main()\n{\n\tint a[5][5],n,m,o,i,k,t;\n\tfor(i=0;i<5;i++){\n\t\tfor(k=0;k<5;k++){\n\t\t\tscanf(\"%d \",&a[i][k]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<0||n>4||m<0||m>4){\n\t\to=0;\n\t}\n\telse{\n\t\to=1;\n\t}\n\tif(o==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tt=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=t;\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t\t\t}\n\t\t}\n\telse if(o==0){\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40420", "code": "int main()\n{\n int m,n;\n int sz[5][5],i,p;\n for(i=0;i<5;i++){\n for(p=0;p<5;p++){\n\t\t\tscanf(\"%d\",&sz[i][p]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(m>4||n>4){printf(\"error\");return 0;}\n\tfor(i=0;i<5;i++){\n\t\tint tem;\n\t\ttem=sz[m][i];\n\t\tsz[m][i]=sz[n][i];\n\t\tsz[n][i]=tem;\n\t}\n for(i=0;i<5;i++){\n\t\tprintf(\"%d\",sz[i][0]);\n for(p=1;p<5;p++){\n\t\t\tprintf(\" %d\",sz[i][p]);\n\t\t}printf(\"\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40421", "code": "\nint turn(int *pt,int p,int q)\n{int y,*t,j;\n if(p>=0 && p<=4 && q>=0 && q<=4)\n {for(j=0;j<5;j++)\n {t=*(pt+p*5+j);\n *(pt+p*5+j)=*(pt+q*5+j);\n *(pt+q*5+j)=t;\n y=1;\n }}\n else y=0;\n return y;\n}\nvoid main()\n{int a[5][5],m,n,i,*pa=a;\n for(i=0;i<25;i++)\n {scanf(\"%d\",pa++);\n }\n pa=a;\n scanf(\"%d%d\",&n,&m);\n if(turn(pa,n,m))\n {for(i=1;i<=25;i++)\n {\n\t printf(\"%d\",*(pa++));\n if(i%5==0)printf(\"\\n\");\n\t else printf(\" \");\n }}\n else printf(\"error\");\n}\n"} +{"label": "81", "index": "40422", "code": "int main()\n{\n\tint n,m,a[5][5],flag=0;\n\tint i,j,k;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&n,&m);\n\t\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t\t\tflag=1;\n\t\tif(flag==0)\n\t\t\tprintf(\"error\\n\");\n\t\telse\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{k=i;\n\t\t\tif(i==n)k=m;\t\t\t\n\t\t\tif(i==m)k=n;\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[k][j]);\n\t\t\tprintf(\"%d\\n\",a[k][4]);}\n\t\t\t\n\t\t}\n\t\treturn 0;\n\t\t\n}"} +{"label": "81", "index": "40423", "code": "int down(int m,int n);\nvoid main()\n{\n\tint a[5][5],m,n,i,j;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(down(m,n)==0)\n\t\tprintf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tif(i==m)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=3;j++)\n\t\t\t\tprintf(\"%d \",a[n][j]);\n\t\t\t\tprintf(\"%d\",a[n][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\tif(i==n)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=3;j++)\n\t\t\t\tprintf(\"%d \",a[m][j]);\n\t\t\t\tprintf(\"%d\",a[m][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\telse if(i!=m&&i!=n)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=3;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n}\nint down(int m,int n)\n{\n\tif(m<=4&&m>=0&&n<=4&&n>=0)\n\t\treturn(1);\n\telse\n\t\treturn(0);\n}\n"} +{"label": "81", "index": "40424", "code": "int sushu(int a);\nint main(){\n\tint m,n,i,j,sz[5][5];\n\tfor(i=0;i<=4;i++){\n\t\tfor(j=0;j<=4;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m>4||m<0||n>4||n<0){\n\t\tprintf(\"error\");\n\t}\n\telse{\n\t\tfor(i=0;i<=4;i++){\n\t\t\tj=sz[n][i];\n\t\t\tsz[n][i]=sz[m][i];\n\t\t\tsz[m][i]=j;\n\t\t}\n\t\tfor(i=0;i<=4;i++){\n\t\t\tfor(j=0;j<=4;j++){\n\t\t\t\tif(j!=4){\n\t\t\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\t\t}\n\t\t\t\tif(j==4){\n\t\t\t\t\tprintf(\"%d\\n\",sz[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tscanf(\"%d\",&m);\n\treturn 0;\n}"} +{"label": "81", "index": "40425", "code": "int swap(int n,int m,int sz[][5])\n{\n\tint t1,t2,t3,t4,t5;\n\tif(n<=4&&n>=0&&m>=0&&m<=4)\n\t{\n\t\tt1=sz[n][0];\n\t\tt2=sz[n][1];\n\t\tt3=sz[n][2];\n\t\tt4=sz[n][3];\n\t\tt5=sz[n][4];\n\t\tsz[n][0]=sz[m][0];\n\t\tsz[n][1]=sz[m][1];\n\t\tsz[n][2]=sz[m][2];\n\t\tsz[n][3]=sz[m][3];\n\t\tsz[n][4]=sz[m][4];\n\t\tsz[m][0]=t1;\n\t\tsz[m][1]=t2;\n\t\tsz[m][2]=t3;\n\t\tsz[m][3]=t4;\n\t\tsz[m][4]=t5;\n\t\treturn 1;\n\t}\n\telse\n\t\treturn 0;\n}\nvoid main()\n{\n\tint sz[5][5],n,m,i,p,q,j,a;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\ta=swap(n,m,sz);\n\t\n\tif (a==1)\n\t{\n\t\tfor(q=0;q<5;q++)\n\t\t{\n\t\t\tfor(p=0;p<4;p++)\n\t\t\t\tprintf(\"%d \",sz[q][p]);\n\t\t\tif(p==4)\n\t\t\t\tprintf(\"%d\\n\",sz[q][p]);\n\t\t}\n\t}\n\tif (a==0)\n\t\tprintf(\"error\");\n}\n\n"} +{"label": "81", "index": "40426", "code": "int a[10][10];\nint main()\n{\n\tint process(int y,int z);\n\tint i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tif(process(m,n))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\tif(j!=4) printf(\" \");\n\t\t}\n\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse printf(\"error\\n\");\n\treturn 0;\n}\nint process(int y,int z)\n{\n\tint k,temp;\n\tif((y>=0&&y<5)&&(z>=0&&z<5))\n\t{\n\t\tfor(k=0;k<5;k++)\n\t\t{\n\t\t\ttemp=a[y][k];\n\t\t\ta[y][k]=a[z][k];\n\t\t\ta[z][k]=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\n\n"} +{"label": "81", "index": "40427", "code": "int a[5][5];\nint m;\nint n;\nint pan(int m,int n)\n{\n\tint c[5];\n\tint q;\n\tif(m<=4&&m>=0&&n<=4&&n>=0)\n\t{\n\t\tint c[5];\n\t\tint q;\n\t\tfor(q=0;q<=4;q++)\n\t\t{\n\t\t\tc[q]=a[m][q];\n\t\t\ta[m][q]=a[n][q];\n\t\t\ta[n][q]=c[q];\n\t\t}\n\t\treturn 1;\n\t}\n\telse\n\t{\n return 0;\n\t}\n}\nint main()\n{\n\tint i,j;\n\tint k;\n\tint pan(int m,int n);\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tk=pan(m,n);\n if(k==0)\n\t{\n\t\tprintf(\"error\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\tif(j!=4)\n\t\t\t{\n\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40428", "code": "int main(){\nint a[5][5],i,j,n,m,e;\nfor(i=0;i<5;i++){\n\tfor(j=0;j<5;j++){\nscanf(\"%d\",&a[i][j]);}}\nscanf(\"%d %d\",&n,&m);\nif(n>4||m>4||n<0||m<0){printf(\"error\");}\nelse {\n for(j=0;j<5;j++){\n\te=a[n][j];\n\ta[n][j]=a[m][j];\n a[m][j]=e;}\n\nfor(i=0;i<5;i++){\n\tfor(j=0;j<5;j++){\nprintf(\"%d\",a[i][j]);\nif(j==4){printf(\"\\n\\n\");}\nelse{printf(\" \");}}}\n}\n\nreturn 0;\n}"} +{"label": "81", "index": "40429", "code": "int kuso(int n,int m)\n{\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t\treturn(1);\n\telse \n\t\treturn(0);\n}\nvoid main()\n{\n\tint a[5][5],n,m,i,j,p,b[5];\n\tint kuso(int n,int m);\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d %d\",&n,&m);\n\tp=kuso(n,m);\n\tif(p==0)\n\t\tprintf(\"error\\n\");\n\telse\n\t{\t\n\t\tfor(i=0;i<5;i++)\n\t\t{\t\n\t\t\tb[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j<4)\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\t}\n}\n\t\t\n\t\t\n\n\n"} +{"label": "81", "index": "40430", "code": "void main()\n{int shuz[5][5];\nint i,j;\nfor(i=0;i<5;i++)\nfor(j=0;j<5;j++)\nscanf(\"%d\",&shuz[i][j]);\nint m,n;\nint f(int m,int n);\nscanf(\"%d%d\",&m,&n);\nif(f(m,n)==0) printf(\"error\");\nelse if(f(m,n)==1) \n{\n\tint s[5];\n\tfor(i=0;i<5;i++)\n\t{\n\t\ts[i]=shuz[m][i];\n\t\tshuz[m][i]=shuz[n][i];\n\t\tshuz[n][i]=s[i];\n\t}\n\nfor(i=0;i<5;i++)\n{for(j=0;j<5;j++)\n{printf(\"%d\",shuz[i][j]);if(j!=4) printf(\" \");}\nif(i!=4) printf(\"\\n\");\n}}\n}\nint f(int m,int n)\n{if(m>=0&&m<=4&&n>=0&&n<=4) return 1;\nelse return 0;\n}\n\n"} +{"label": "81", "index": "40431", "code": "void main()\n{\n\tint s[5][5],m,n;\n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&s[i][j]);\n\t\tscanf(\"%d %d\",&m,&n);\n\t\t\tif(m>=5||n>=5)\n\t\t\t\tprintf(\"error\");\n\t\t\telse{\n\t\t\t\tfor(i=0;i<5;i++){\n\t\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i==m)\n\t\t\t\t\t\t\tprintf(\"%d \",s[n][j]);\n\t\t\t\t\t\telse if(i==n)\n\t\t\t\t\t\t\tprintf(\"%d \",s[m][j]);\n\t\t\t\t\t\telse printf(\"%d \",s[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\tif(i==m)\n\t\t\t\t\t\tprintf(\"%d\",s[n][4]);\n\t\t\t\t\telse if(i==n)\n\t\t\t\t\t\tprintf(\"%d\",s[m][4]);\n\t\t\t\t\telse printf(\"%d\",s[i][4]);\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n}\n"} +{"label": "81", "index": "40432", "code": "\nint exc(int x,int y);\nint exc(int x,int y){\n\tint z,j,e,s[5][5];\n\tif(x>4||y>4){\n\t\tz=0;\n\t}else{\n\t\tz=1;\n\t\tfor(j=0;j<5;j++){\n\t\t\te=s[x][j];\n\t\t\ts[x][j]=s[y][j];\n\t\t\ts[y][j]=e;\n\t\t}\n\t}\n\treturn z;\n}\n\n\nint main(){\n\tint sz[5][5],n,m,j,e;\n\tint row,col;\n\t\n\tfor(row=0;row<5;row++){\n\t\tfor(col=0;col<5;col++){\n\t\t\tscanf(\"%d\",&sz[row][col]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\n\texc(n,m);\n\tif(exc(n,m)==0){\n\t\tprintf(\"error\");\n\t}else{\n\t\tfor(j=0;j<5;j++){\n\t\t\te=sz[n][j];\n\t\t\tsz[n][j]=sz[m][j];\n\t\t\tsz[m][j]=e;\n\t\t}\n\t\tfor(row=0;row<5;row++){\n\t \tfor(col=0;col<4;col++){\n\t \t\tprintf(\"%d \",sz[row][col]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[row][4]);\n\t\t}\n\t}\n\n\treturn 0;\n\n}\n"} +{"label": "81", "index": "40433", "code": "\nint exchange(int k[][5],int n,int m)\n{int t,i;\n\tif(n<5&&m<5)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=k[m][i];\n\t\t\tk[m][i]=k[n][i];\n\t\t\tk[n][i]=t;\n\t\t}\t\t\n\treturn 1;\n\t}\nelse\n\treturn 0;\n}\n\nint main(int argc, char* argv[])\n{\nint a[5][5],n,m,i,j,c;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&n,&m);\n\tc=exchange(a,n,m);\n\tif(c==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\tif(c==0)\n\t\t\tprintf(\"error\");\nreturn 0;\n}\n\n"} +{"label": "81", "index": "40434", "code": "void main()\n{\n\tint i,j,k,m,n,a[5][5],*p;\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tif(m>4||n>4)printf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<=4;i++)\n\t\t{\n\t\t\tk=a[m][i];\n\t\t\t//printf(\"%d!\",k);\n\t\t\ta[m][i]=a[n][i];\n\t\t\t//printf(\"%d!\",k);\n\t\t\ta[n][i]=k;\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n}"} +{"label": "81", "index": "40435", "code": "int a[5][5],b[5][5],m,n,c[5]; \nint *p=a;\nint zhuanhuan(int p,int m, int n)\n{\n int z,i;\n if(n<=4&&n>=0&&m<=4&&m>=0)\n {\n z=1;\n for (i=0;i<5;i++)\n {\n *(c+i)=*(a[m]+i); \n *(a[m]+i)=*(a[n]+i);\n *(a[n]+i)=*(c+i);\n }\n \n }\n else \n {\n z=0;\n }\n return(z);\n}\nvoid main()\n{\n int i,j,fanhui;\n for (i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n {\n scanf(\"%d\",&*(a[i]+j));\n }\n } \n scanf(\"%d\",&m);\n scanf(\"%d\",&n);\n fanhui=zhuanhuan(a,m,n); \n if (fanhui==0)\n {\n printf(\"error\");\n }\n if (fanhui==1)\n {\n for(i=0;i<5;i++)\n {\n for (j=0;j<5;j++)\n {\n if(j==4) printf(\"%d\\n\",*(a[i]+j));\n else printf(\"%d \",*(a[i]+j));\n }\n } \n }\n}\n"} +{"label": "81", "index": "40436", "code": "//??????????????????\nint main()\n{\n\tint panduan(int sz[][5],int n,int m);\n\tint sz[5][5],n,m,i,k;\n\tfor(i=0;i<5;i++){ /*?????????*/\n\t\tfor(k=0;k<5;k++)\n\t\t\tscanf(\"%d\",&sz[i][k]);\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(panduan(sz,n,m)){ /*????????????*/\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(k=0;k<4;k++)\n\t\t\t\tprintf(\"%d \",sz[i][k]);\n\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\");\n\treturn 0;\n}\n//??????????????????\nint panduan(int sz[][5],int n,int m)\n{\n\tint result,zhong[5],i;\n\tif((n<5&&n>=0)&&(m<5&&m>=0)){\n\t\tfor(i=0;i<5;i++){ /*?????n?m??????*/\n\t\t\tzhong[i]=sz[m][i];\n\t\t\tsz[m][i]=sz[n][i];\n\t\t\tsz[n][i]=zhong[i];\n\t\t}\n\t\tresult=1;\n\t}\n\telse\n\t\tresult=0;\n\treturn result;\n}"} +{"label": "81", "index": "40437", "code": "// 5*5 ??\nint FindAndExchange(int Matrix[5][5], int n, int m)\n{\nint i;\nint *num_n;\nint *num_m;\nif (!(n>=0&&n<=4 && m>=0&&m<=4))\nreturn 0;\nnum_n = &Matrix[n][0];\nnum_m = &Matrix[m][0];\nfor (i=0; i<5; i++){\n*num_n ^= *num_m;\n*num_m ^= *num_n;\n*num_n ^= *num_m;\nnum_n++;\nnum_m++;\n}\nreturn 1;\n}\nint main()\n{\nint Matrix[5][5];\nint i, j;\nint n, m;\nfor (i=0; i<5; i++){\nfor (j=0; j<5; j++){\nscanf(\"%d\", &Matrix[i][j]);\n}\n}\nscanf(\"%d %d\", &n, &m);\nif (FindAndExchange(Matrix, n, m)) {\nfor (i=0; i<5; i++){\nif (i>0) printf(\"\\n\");\nfor (j=0; j<5; j++){\nif (j>0) printf(\" \");\nprintf(\"%d\", Matrix[i][j]);\n}\n}\n} else\nprintf(\"error\");\nreturn 0;\n}"} +{"label": "81", "index": "40438", "code": "int main(){\n\tint sz[5][5],a,b,m,n,i,zs[5];\n\tfor(a=0;a<5;a++){\n\t\tfor(b=0;b<5;b++){\n\t\t\tscanf(\"%d \",&sz[a][b]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(0<=m&&m<=4&&0<=n&&n<5){\n\t\ti=0;\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\tif(i==0){\n\t\tfor(a=0;a<5;a++){\n\t\t\tzs[a]=sz[m][a];\n\t\t\tsz[m][a]=sz[n][a];\n\t\t\tsz[n][a]=zs[a];\n\t\t}for(a=0;a<5;a++){\n\t\tfor(b=0;b<5;b++){\n\t\t\tif(b==0){\n\t\t\t\tprintf(\"%d\",sz[a][b]);\n\t\t\t}else{\n\t\t\t\tprintf(\" %d\",sz[a][b]);\n\t\t\t}\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "81", "index": "40439", "code": "int main(){\nint sz[5][5],m,n,a,b;\nfor(int k=0;k<=4;k++){\nfor(int t=0;t<=4;t++){\nscanf(\"%d\",&sz[k][t]);}}\nscanf(\"%d%d\",&m,&n);\nif(m<=4&&n<=4){\nfor(int i=0;i<5;i++){\nb=sz[m][i];\nsz[m][i]=sz[n][i];\nsz[n][i]=b;}\nfor(int p=0;p<=4;p++){\nfor(int q=0;q<=3;q++){\nprintf(\"%d \",sz[p][q]);\n}printf(\"%d\\n\",sz[p][4]);\n}\n}\nelse{\nprintf(\"error\");\n}\nreturn 0;\n}\n\n"} +{"label": "81", "index": "40440", "code": "int f(int,int);\nvoid main()\n{\n\tint a[5][5],i,m,n;\n\tint *p=*a,*q=*(a+4)+4;\n\tfor(;p<=q;)\n\t\tscanf(\"%d\",p++);\n\tscanf(\"%d%d\",&m,&n);\n\tif(f(m,n))\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tif(i==m)\n\t\t\t\tp=*(a+n);\n\t\t\telse if(i==n)\n\t\t\t\tp=*(a+m);\n\t\t\telse\n\t\t\t\tp=*(a+i);\n\t\t\tq=p+5;\n\t\t\tq--;\n\t\t\tfor(;p=0&&n>=0&&m<5&&n<5)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40441", "code": "void trans(int m, int n)\n{\n\n\tint a[5][5];\n\tint i,j;\n\tint t;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&m,&n);\n\tif(n>4 || m>4)\n\tprintf(\"error\\n\");\n\telse\n\t{\n\tfor(j=0;j<5;j++)\n\t{\n\t\tt=a[m][j];\n\t\ta[m][j]=a[n][j];\n\t\ta[n][j]=t;\n\t}\n for(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\t{printf(\"%d \",a[i][j]);}\n\t\tprintf(\"%d\\n\",a[i][j]);\n\t}\n\t}\n}\n\nint main()\n{\n\tint m,n;\n\ttrans(m,n);\n\treturn 0;\n}\n"} +{"label": "81", "index": "40442", "code": " int hh(int a, int b )\n{ \n if(a<5&&b<5)\n { \n return 1;\n } \n else { \n\t return 0;\n\t }\n}\n int main()\n{\n int i,j,m,n,a,b,s;\n int x[5][5],y[5]; \n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n {\n scanf(\"%d\",&x[i][j]);\n }\n } \n scanf(\"%d %d\",&m,&n);\n if(hh(m,n)==0)\n printf(\"error\");\n else{\n for(i=0;i<5;i++)\n {\n y[i]=x[n][i];\n x[n][i]=x[m][i];\n x[m][i]=y[i];\n }\n \n for(i=0;i<5;i++)\n for(j=0;j<5;j++)\n {\n if(j==4)\n printf(\"%d\\n\",x[i][4]);\n else\n printf(\"%d \",x[i][j]);\n }\n }\n return 0;\n}\n\n\n\n"} +{"label": "81", "index": "40443", "code": "void main()\n{\n\tint array[5][5];\n\tint (*p)[5],i,j;\n\tint m,n;\n\tint num[5];\n\tp=array;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&array[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tnum[i]=*(*(p+m)+i);\n\t\t\t*(*(p+m)+i)=*(*(p+n)+i);\n\t\t\t*(*(p+n)+i)=num[i];\n }\n\t\n\tfor(i=0;i<5;i++)\n\t\tprintf(\"%d %d %d %d %d\\n\",array[i][0],array[i][1],array[i][2],array[i][3],array[i][4]);\n\t}\n else printf(\"error\");\n\n\n\n}"} +{"label": "81", "index": "40444", "code": "int main(){\n int sz[5][5];\n int n,m,i,j,e;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&sz[i][j]);\n } \n }\n scanf(\"%d %d\",&n,&m);\n if((n>=0)&&(n<5)&&(m>=0)&&(m<5)){\n for(i=0;i<5;i++){\n e=sz[n][i];\n sz[n][i]=sz[m][i];\n sz[m][i]=e;\n }\n \n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n printf(\"%d\",sz[i][j]);\n if(j<4){printf(\" \");} \n else if(!(j<4)){printf(\"\\n\");}\n } \n \n }return 0; \n}\n printf(\"error\");\n \n return 0;\n}\n"} +{"label": "81", "index": "40445", "code": "\nvoid input(int *a)\n{\n int i,j;\n for(i=0;i<5;i++)\n\t for(j=0;j<5;j++)\n scanf(\"%d\",a++);\t \n}\n \nvoid output(int *a)\n{\n int i,j;\n for(i=0;i<5;i++)\n {\n\t for(j=0;j<4;j++)\n printf(\"%d \",*a++);\n\t printf(\"%d\\n\",*a++);\n }\n} \n\nint inv(int (*a)[5],int n,int m)\n{\n int z,t,i;\n if(n>=0&&n<=4&&m>=0&&m<=4)\n {\n\t for(i=0;i<5;i++)\n\t {\n t=a[n][i];\n\t a[n][i]=a[m][i];\n\t a[m][i]=t;\n\t }\n\t z=1;\n }\n else z=0;\n return z;\n}\n\nmain()\n{\n int a[5][5];\n int n,m;\n input(a[0]);\n scanf(\"%d%d\",&n,&m);\n if(inv(a,n,m)==0) printf(\"error\");\n else output(a[0]);\n}"} +{"label": "81", "index": "40446", "code": "int main(){\n int z[5][5],x[5][5];\n int n,m,i=0;\n for(int row = 0; row < 5; row++){\n \t\tfor(int col = 0; col < 5; col++){\n\t\t\t\t\tscanf(\"%d\", &z[row][col]);\n\t\t\t}\n\t}\n for(int row = 0; row < 5; row++){\n \tfor(int col = 0; col < 5; col++){\n\t\t\t\tx[row][col]=z[row][col];\n\t\t\t}\n\t}\n scanf(\"%d%d\",&n,&m);\n if(n<=4&&n>=0&&m<=4&&m>=0){\n for(int i=0;i<5;i++){\n x[n][i]=z[m][i];\n x[m][i]=z[n][i];\n }\n for(int row = 0; row < 5; row++){\n for(int col = 0; col <4; col++){\n\t\t\t\tprintf(\"%d \",x[row][col]);\n\t\t\t}\n printf(\"%d\",x[row][4]);\n printf(\"\\n\");\n\t}\n }\n else{\n printf(\"error\");\n }\n return 0;\n}"} +{"label": "81", "index": "40447", "code": "int main(){\n\tint zai(int m,int n);\n\tint a[5][5];\n\tint b,c,d,i,e;\n\tfor(d=0;d<5;d++){\n\t\tfor(i=0;i<5;i++){\n\t\t\tscanf(\"%d\",&a[d][i]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&b,&c);\n\td=zai(b,c);\n\tif(d==0) printf(\"error\");\n else{\n\t\tfor(i=0;i<5;i++){\n\t\t\te=a[b][i];\n\t\t\ta[b][i]=a[c][i];\n\t a[c][i]=e;}\n\tfor(d=0;d<5;d++){\n\t\tfor(i=0;i<4;i++){\n\t\t\tprintf(\"%d \",a[d][i]);\n\t\t}\nprintf(\"%d\\n\",a[d][4]);\n\t}\n\t}\n\treturn 0;\n}\nint zai(int m,int n){\n\tif(m<5 && n<5) return 1;\n\telse return 0;\n}"} +{"label": "81", "index": "40448", "code": "void main()\n{\n\tint change(int,int);\n\tint a[5][5],i,j,n,m,temp;\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(change(n,m))\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n temp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=temp;\n\t\t}\n for(i=0;i<=4;i++)\n\t\t{\n\t\t for(j=0;j<=4;j++)\n\t\t\t{\n\t\t \t printf(\"%d\",a[i][j]);\n\t\t\t\tif(j!=4) printf(\" \");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\telse printf(\"error\\n\");\n}\nint change(int n,int m)\n{\n\tint flag=0;\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tflag=1;\n\t}\n\treturn(flag);\n}"} +{"label": "81", "index": "40449", "code": "int jis(int x, int y, int a[5][5]);\nvoid main()\n{\n \n\tint s[5][5],i,j,m,n,x[5];\n\t\n\t\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\nscanf(\"%d\",&s[i][j]);\n\t\t}\n\t}\nscanf(\"%d %d\",&n,&m);\n\n\tif(jis(n, m, s[5][5])==0)\n printf(\"error\");\n\tif(jis(n, m, s[5][5])==1)\n\t{\n\t\t\n for(j=0;j<5;j++)\n\t\t{\n x[j]=s[m][j];\n s[m][j]=s[n][j];\n s[n][j]=x[j];\n\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t{\n\t\t\n\t\t\n printf(\"%d %d %d %d %d\\n\",s[i][0],s[i][1],s[i][2],s[i][3],s[i][4]);\n\t\t}\n\n\t}\n}\nint jis(int x, int y, int a[5][5])\n{\n\tif(x>=0&&x<=4&&y>=0&&y<=4)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}"} +{"label": "81", "index": "40450", "code": "\nint c[5][5];\n\nint change(int n,int m,int a[][5])\n{\n\tint b[5],i,j,s;\n\tif(m<=4&&n<=4){\n\t\tfor(i=0;i<5;i++){\n\t\t\tb[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=b[i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t\tc[i][j]=a[i][j];\n\t\t}\n\t\ts=1;\n\t}\n\telse\n\t\ts=0;\n\treturn s;\n}\n\nmain()\n{\n\tint a[5][5],i,j,n,m;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(change(n,m,a)==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",c[i][j]);\n\t\t\tprintf(\"%d\\n\",c[i][4]);\n\t\t}\n\t}\n\telse\n\t\tprintf(\"error\\n\");\n}"} +{"label": "81", "index": "40451", "code": "\nint func(int a[5][5],int m,int n)\n{\n\tif(m>4||n>4)\n\t\treturn 0;\n\n\telse\n\t{\n\t\tint b[5],i;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tb[i]=a[m][i];\n\t\t\ta[m][i]=a[n][i];\n\t\t\ta[n][i]=b[i];\n\t\t}\n\t\treturn 1;\n\t}\n}\n\nvoid main()\n{\n\tint a[5][5],i,j,m,n,c;\n\tfor(i=0;i<5;i++)\n\t{\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\n\tc=func(a,m,n);\n\tif(c==0)\n\t\tprintf(\"error\");\n\tif(c==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\tif(j<4)\n\t\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\n"} +{"label": "81", "index": "40452", "code": "int main()\n{\n\tint a[5][5];\n\tint b[5];\n\tint i,j,k,n,m;\n\tint swit1=0,swit2=0;\n\t\n\t\tswit1=0;\n\t\tswit2=0;\n\t\t\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tscanf(\"%d\", &a[i][j]);\n\t\t\t}\n\t\t}\n\t\tscanf(\"%d %d\", &n, &m);\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(a[i][j]==n)\n\t\t\t\t{\n\t\t\t\t\tswit1=1;\n\t\t\t\t}\n\t\t\t\tif(a[i][j]==m)\n\t\t\t\t{\n\t\t\t\t\tswit2=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\nif(swit1==0 || swit2==0 || n>=5 || m>=5)\n\t\t{\n\t\t\tprintf(\"error\");\t\nreturn 0;\n\t }\nelse\n{\n\t\tif(swit1==1 && swit2==1)\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tb[i]=a[n][i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\ta[n][i]=a[m][i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\ta[m][i]=b[i];\n\t\t\t}\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<5;j++)\n\t\t\t\t{\n\t\t\t\t\tif(j!=4)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d \", a[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\telse if(j==4)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\", a[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n}\n}"} +{"label": "81", "index": "40453", "code": "\nint exchange(int shz[5][5],int x,int y)\n{\n\tint p,t;\n\tif((x>=0&&x<5)&&(y>=0&&y<5)){\n\t for(p=0;p<5;p++){\n\t\tt=shz[x][p];\n\t\tshz[x][p]=shz[y][p];\n\t\tshz[y][p]=t;\n\t }\n\t return 1;\n\t}else{\t\t\n\t return 0;\n\t}\n}\n\nvoid main()\n{\n\tint n,m;\n\tint result;\t\n\tint i,j;\n\tint sz[5][5];\n\tfor(i=0;i<5;i++){\n\t for(j=0;j<5;j++){\n\t\tscanf(\"%d\",&sz[i][j]);\n\t }\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tresult=exchange(sz,n,m); \n\tif(result==0){\n\t printf(\"error\\n\");\n\t}else{\n\t for(i=0;i<5;i++){\n\t\tfor(j=0;j<4;j++){\n\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\tif(j==3){\n\t\t\tprintf(\"%d\\n\",sz[i][4]);\n\t\t\t}\n\t\t}\n\t }\n\t}\n}"} +{"label": "81", "index": "40454", "code": "int change(int a,int b)\n{\n\tint v=0;\n\tif((a>=0)&&(a<5)&&(b>=0)&&(b<5))\n\t\tv=1;\n\treturn(v);\n}\nvoid main()\n{\n\tint n,m,i,j,t[5]={0},a[5][5]={0};\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d %d\",&n,&m);\n\t\tif(change(n,m)==0)\n\t\t\tprintf(\"error\");\n\t\telse if(change(n,m)==1)\n\t\t{\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tt[i]=a[n][i];\n\t\t\t\ta[n][i]=a[m][i];\n\t\t\t\ta[m][i]=t[i];\n\t\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\t}\n\t\n}"} +{"label": "81", "index": "40455", "code": "\nint main(int argc, char* argv[])\n{\n\tint a[10][10];\n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tif((m>=0&&m<5)&&(n>=0&&n<5))\n\t{\n\t\tint t[1][5];\n\t\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tt[0][j]=a[n][j];\n\t\t\t}\n\t\t for(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\ta[n][j]=a[m][j];\n\t\t\t}\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\ta[m][j]=t[0][j];\n\t\t\t}\n\t\n\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t\t{\n\t\t\t\tif(j==4)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\",a[i][j]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n\n\treturn 0;\n}\n"} +{"label": "81", "index": "40456", "code": "int main(){\n int sz[5][5];\n int n,m,i,j,e;\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n scanf(\"%d\",&(sz[i][j]));\n }\n scanf(\"%d\\n\",&sz[i][4]);\n }\n scanf(\"%d%d\",&n,&m);\n if(n>=0&&n<=4&&m>=0&&m<=4){\n for(i=0;i<5;i++){\n e=sz[n][i];\n sz[n][i]=sz[m][i];\n sz[m][i]=e;\n }\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",(sz[i][j]));\n }\n printf(\"%d\\n\",sz[i][4]);\n }\n }\n else{\n printf(\"error\");\n return 0;\n }\n \n}"} +{"label": "81", "index": "40457", "code": "\nint a[5][5];\n\nvoid jiaohuan(int n,int m)\n{\n\t\tint i,temp;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\ttemp=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=temp;\n\t\t}\n}\n\nint main()\n{\n\tint i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++) scanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&n,&m);\n\tif(n>4||n<0||m>4||m<0) printf(\"error\\n\");\n\telse \n\t{jiaohuan(n,m);\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++) printf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40458", "code": "void main()\n{\n\tint array[5][5];\n\tint (*p)[5],i,j;\n\tint m,n;\n\tint num[5];\n\tp=array;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&array[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tnum[i]=array[m][i];\n\t\t\tarray[m][i]=array[n][i];\n\t\t\tarray[n][i]=num[i];\n }\n\t\n\tfor(i=0;i<5;i++)\n\t\tprintf(\"%d %d %d %d %d\\n\",array[i][0],array[i][1],array[i][2],array[i][3],array[i][4]);\n\t}\n else printf(\"error\");\n\n\n\n}"} +{"label": "81", "index": "40459", "code": "\nint reverse(int,int);\nint main(int argc, char* argv[])\n{\n\tint sz[5][5],n,m,i,j,e[5];\n\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\n\tif(reverse(n,m)==0){\n\t\tprintf(\"error\\n\");\n\t}else{\n\t\tfor(j=0;j<5;j++){\n\t\te[j]=sz[n][j];\n\t\tsz[n][j]=sz[m][j];\n\t\tsz[m][j]=e[j];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\t}\n\t\t\tif(j==4){\n\t\t\t\tprintf(\"%d\",sz[i][j]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\n\treturn 0;\n}\n\nint reverse(int n,int m){\n\t\n\tif(n>=0&&n<5&&m>=0&&m<5){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n\n}"} +{"label": "81", "index": "40460", "code": "void main()\n{\n\tint a[5][5],b,c,i,t,j,n,m,e[5][5];\n\tfor(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n scanf(\"%d %d\",&n,&m);\n\tb=pan(n,m);\n\tif(b==0)\n\t\tprintf(\"error\");\n\tif(b==1)\n\t{\n\t\tfor(j=0;j<=4;j++)\n\t\t{\n\t\t\te[n][j]=a[n][j];\n\t\t\te[m][j]=a[m][j];\n\t\t\ta[n][j]=e[m][j];\n\t\t\ta[m][j]=e[n][j];\n\t\t}\n\n for(i=0;i<=4;i++)\n\t{\n\t\tfor(j=0;j<=3;j++)\n\t\t{\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\t}\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t}\n\t}\n}\n\t\t\n\nint pan(int n,int m)\n\t{\n\t\tint c,t;\n\t\tif(n!=m&&n>=0&&n<=4&&m>=0&&m<=4)\n\t\t{ c=1;\n\t\t\tt=m;\n\t\t\tm=n;\n\t\t\tn=t;}\n\t else\n\t\t\tc=0;\n\t\treturn(c);\n\t}\n\t\n\n"} +{"label": "81", "index": "40461", "code": "\nint main()\n{\nint sw(int a[5][5],int n,int m);\nint i,j,m,n,a[5][5],q,h;\nif(sw(a,n,m)==0)printf(\"error\");\nelse {for(q=0;q<5;q++){\nfor(h=0;h<4;h++)\nprintf(\"%d \",a[q][h]);\nprintf(\"%d\",a[q][4]);\nprintf(\"\\n\");\n}}\nreturn 0;}\n\n\n\nint sw(int a[5][5],int n,int m)\n{\n\tint i,j,q,h;\nfor(i=0;i<5;i++)\nfor(j=0;j<5;j++)\nscanf(\"%d\",&a[i][j]);\nscanf(\"%d%d\",&n,&m);\n\tint p,t;\n\nif(n>=0&&n<5&&m>=0&&m<5){\nfor(p=0;p<5;p++){\nt=a[n][p];a[n][p]=a[m][p];a[m][p]=t;\n}\nreturn 1;}\nreturn 0;\n\t\n\t\n}\n\n\n"} +{"label": "81", "index": "40462", "code": "void swap(int *a,int *b);\nint main(int argc, char* argv[])\n{\n\tint sz[5][5],i=0,j=0;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t}\n\tint n=0,m=0;\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>=0&&n<=4&&m>=0&&m<=4)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tswap(&sz[n][j],&sz[m][j]);\n\t\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tif(j<4)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",sz[i][j]);\n\t\t\t}\n\t\t\telse printf(\"%d\",sz[i][j]);\n\t\t}\n\t\tif(i<4)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\t}\n\telse printf(\"error\");\n\treturn 0;\n}\nvoid swap(int *a,int *b)\n{\n\tint e;\n\te=*a;\n\t*a=*b;\n\t*b=e;\n}"} +{"label": "81", "index": "40463", "code": "void main()\n{\n\tint b,n,m,a[5][5],i,j;\n\tint decide(int n,int m);\n\tvoid change(int n,int m,int a[5][5]);\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&n,&m);\n\tb=decide(n,m);\n\tif(b==0)\n\t\tprintf(\"error\");\n\tif(b==1)\n\t\tchange(n,m,a);\n}\nint decide(int n,int m)\n{\n\tint a;\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t\ta=1;\n\telse a=0;\n\treturn(a);\n}\nvoid change(int n,int m,int a[5][5])\n{\n\tint b,i,j;\n\tfor(j=0;j<5;j++)\n\t{\n\t\tb=a[n][j];\n\t\ta[n][j]=a[m][j];\n\t\ta[m][j]=b;\n\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][4]);\n\t}\n}"} +{"label": "81", "index": "40464", "code": "int swap(int b[5][5],int,int);\nvoid main()\n{\n\tint a[5][5],i,j,n,m;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tif(swap(a,n,m)==0) printf(\"error\\n\");\n\telse \n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",a[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t\tprintf(\"%2d\",a[i][j]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}\nint swap(int b[5][5],int n,int m)\n{\n\tint c,x;\n\tif(m>=0&&m<5&&n>=0&&n<5)\n\t{\n\t\tfor(x=0;x<5;x++)\n\t\t\tc=b[m][x],b[m][x]=b[n][x],b[n][x]=c;\n\t\treturn 1;\n\t}\n\telse return 0;\n}"} +{"label": "81", "index": "40465", "code": "\nint main()\n{\n\tint str[5][5],i,j,m,n;\n\tint (*p)[5]=str,k;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",*(p+i)+j);\n\tscanf(\"%d %d\",&m,&n);\n\tif(!(m>=0&&m<=4&&n>=0&&n<=4)) printf(\"error\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t {\n\t\t if(i==n) k=m;\n\t\t else if(i==m) k=n;\n\t\t else k=i;\n\t\t for(j=0;j<4;j++)\n\t\t\t printf(\"%d \",*(*(p+k)+j));\n\t\t printf(\"%d\",*(*(p+k)+j));\n\t\t printf(\"\\n\");\n\n\t }\n\t}\n\treturn 0;\n\t\n}\n"} +{"label": "81", "index": "40466", "code": "int judge(int n,int m)\n{\n if((n>=0)&&(m>=0)&&(n<=4)&&(m<=4))\n return(1);\n else\n return(0);\n}\n\nint main()\n{ \n int judge(int n,int m);\n int n,m;\n int a[5][5];\n int i,j,flag,t;\n for(i=0;i<=4;i++)\n {\n for(j=0;j<=4;j++)\n {\n scanf(\"%d\",&a[i][j]);\n }\n scanf(\"\\n\");\n }\n scanf(\"\\n\");\n scanf(\"%d%d\",&n,&m);\n /*for(i=0;i<=4;i++)\n {\n for(j=0;j<=4;j++)\n printf(\"%d \",a[i][j]);\n }*/\n flag=judge(n,m);\n if(flag==0)\n printf(\"error\");\n else\n {\n for(j=0;j<=4;j++)\n {\n t=a[n][j];\n a[n][j]=a[m][j];\n a[m][j]=t;\n }\n for(i=0;i<=4;i++)\n {\n for(j=0;j<=4;j++)\n { \n if(j==0)\n printf(\"%d\",a[i][j]); \n else\n {\n if((j==4)&&(i!=4))\n printf(\" %d\\n\",a[i][j]);\n else\n { \n if((j==4)&&(i==4))\n printf(\" %d\",a[i][j]);\n else\n printf(\" %d\",a[i][j]);\n }\n }\n }\n }\n } \n return 0;\n}"} +{"label": "81", "index": "40467", "code": "void main()\n{\n\tint f(int m,int n);\n\tint i,j,x,y,d[5][5],b[5];\n\tfor(i=0;i<5;i++)\n\t{\tfor(j=0;j<5;j++)\n\tscanf(\"%d \",&d[i][j]);}\n\tscanf(\"%d %d\",&x,&y);\n\tif(f(x,y)==0)\n\t\tprintf(\"error\\n\");\n\telse {for(j=0;j<5;j++)\n\t\t {\n\t\tb[j]=d[x][j];\n d[x][j]=d[y][j];\n d[y][j]=b[j];\n\t}\n\t\t for(i=0;i<5;i++)\n\t\t {printf(\"\\n\");\n\t\t\t for(j=0;j<4;j++)\n\t\t\t {printf(\"%d \",d[i][j]);}\n\t\t\t printf(\"%d\",d[i][4]);}}\n}\n\tint f(int m,int n)\n\t{\n\t\tint c;\n\t\tif(m<=4&&m>=0&&n<=4&&n>=0)\n\t\t\tc=1;\n\t\telse c=0;\n\t\treturn(c);\n\t}\n\n"} +{"label": "81", "index": "40468", "code": "int a[5]={0,1,2,3,4};\nint change(int m,int n)\n{\n\tint t;\n\tif(m<5&&m>-1&&n<5&&n>-1)\n\t{\n\t\tt=a[m];\n\t\ta[m]=a[n];\n\t\ta[n]=t;\n\t\treturn 1;\n\t}\n\telse\treturn 0;\n}\nint main()\n{\n\tint num[5][5],m,n;\n\tfor(m=0;m<5;m++)\n\t\tfor(n=0;n<5;n++)\tcin>>num[m][n];\n\tcin>>m>>n;\n\tif(change(m,n))\n\t{\n\t\tfor(m=0;m<5;m++)\n\t\t{\n\t\t\tcout<=0&&x<5)\n\t{\n\t\tif(y>=0&&y<5)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t}\n\tif(x<0||x>4)\n\t{\n\t\treturn 0;\n\t}\n\treturn 0;\n}\n\nint main()\n{\n\tint num[5][5],jum[5];\n\tint i,j;\n\tint m,n;\n\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&num[i][j]);\n\t\t}\n\t}\n\n\tscanf(\"%d %d\",&n,&m);\n\n\tint h = hanshu(n,m);\n\n\tif(h==1)\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tjum[i] = num[n][i];\n\t\t\tnum[n][i] = num[m][i];\n\t\t\tnum[m][i] = jum[i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t{\n\t\t\t\tprintf(\"%d \",num[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",num[i][4]);\n\t\t}\n\t\treturn 0;\n\t}\n\tif(h==0)\n\t{\n\t\tprintf(\"error\");\n\t\treturn 0;\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40470", "code": "int change(int n,int m){\n\tif(n<=4&&n>=0&&m<=4&&m>=0){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\n\nint main(){\n\tint n,m,i,j;\n\tint sz[5][5];\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(change(n,m)==0){\n\t\tprintf(\"error\");\n\t}else if(change(n,m)==1){\n int s[5][5];\n\t\tint i,j;\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\ts[i][j]=sz[i][j];\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\ts[n][i]=sz[m][i];\n\t\t\ts[m][i]=sz[n][i];\n\t\t}\n\t\tfor(i=0;i<5;i++){\n\t\t\tprintf(\"%d %d %d %d %d\\n\",s[i][0],s[i][1],s[i][2],s[i][3],s[i][4]);\n\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40471", "code": "int main(){\n #define H 5\n #define L 5\n int sz[H][L];\n int h,l,n,m,a,e;\n a=0;\n for(int h=0;h=0&&m<=4&&n>=0&&n<=4){\n\t\tfor(j=0;j<5;j++){\n\t\te=sz[n][j];\n\t\tsz[n][j]=sz[m][j];\n\t\tsz[m][j]=e;\n\t\t}\n\treturn 1;\n\t}else{\n\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40473", "code": "int main ()\n{\n\tint a[5][5]={0},m,n,i,j,p;\n\tfor(i=0;i<5;i++)\n\t{\n\tfor(j=0;j<5;j++)\n\t{\n\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\t}\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&m);\n\tif(n>=0&&n<5&&m>=0&&m<5)\n\t{\n\tfor(i=0;i<5;i++)\n\t{\n\t\tp=a[n][i];\n\t\ta[n][i]=a[m][i];\n\t\ta[m][i]=p;\n\t}\n\tfor(i=0;i<5;i++)\n\t{\n\tfor(j=0;j<5;j++)\n\t{\n\t\tprintf(\"%d\",a[i][j]);\n\t\tif(j==4)\n\t\t{\n\t\tbreak;\n\t\t}\n\t\tprintf(\" \");\n\t}\nprintf(\"\\n\");\n\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40474", "code": "int main(){\n int a[5][5],b[5][5],m,n,i,k;\n for(i=0;i<5;i++){\n for(k=0;k<5;k++){\n scanf(\"%d\",&a[i][k]);\n }\n }\n scanf(\"%d %d\",&m,&n);\n if(m>4||n>4){printf(\"error\");}\n else{for(i=0;i<5;i++){\n for(k=0;k<5;k++){\n if(i==m){b[i][k]=a[n][k];}\n else if(i==n){b[i][k]=a[m][k];}\n else{b[i][k]=a[i][k];}\n }\n printf(\"%d %d %d %d %d\\n\",b[i][0],b[i][1],b[i][2],b[i][3],b[i][4]); }\n }\n return 0;\n}"} +{"label": "81", "index": "40475", "code": "void change(int a[5][5],int n,int m)\n{\n\tint i, j,t,*p;\n\tp=&a[0][0];\n\tif((n<5)&&(m<5))\n\t{\n\t\t\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tt=*(p+5*n+j);\n\t\t\t*(p+5*n+j)=*(p+5*m+j);\n\t\t\t*(p+5*m+j)=t;\n\t\t}\n for(i=0;i<5;i++)\n\t\tprintf(\"%d %d %d %d %d\\n\",a[i][0],a[i][1],a[i][2],a[i][3],a[i][4]);\n\t}\n\telse\n\t\tprintf(\"error\");\t\n}\nvoid main()\n{\n\tint a[5][5],i,j,m,n;\n\tfor(i=0;i<5;i++)\n\tfor(j=0;j<5;j++)\n\t{\n\t\tscanf(\"%d\",&a[i][j]);\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tchange(a,n,m);\n}\n \n"} +{"label": "81", "index": "40476", "code": "void main()\n{\n\tint (*a)[5],i,j,k,m,n,f(int (*a)[5],int n,int m);\n\ta=(int (*)[5])malloc(5*5*sizeof(int));\n\tfor(j=0;j<5;j++)\n\t\tfor(i=0;i<5;i++)\n\t\t\tscanf(\"%d\",*(a+j)+i);\n\tscanf(\"%d %d\",&n,&m);\n\tk=f(a,n,m);\n\tif(k==0)\n\t\tprintf(\"error\");\n\telse\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tfor(i=0;i<4;i++)\n\t\t\t\tprintf(\"%d \",*(*(a+j)+i));\n\t\t\tprintf(\"%d\\n\",*(*(a+j)+4));\n\t\t}\n}\nint f(int (*a)[5],int n,int m)\n{\n\tint t,i,j;\n\tif(n>4||m>4)\n\t\treturn(0);\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt=*(*(a+n)+i);\n\t\t\t*(*(a+n)+i)=*(*(a+m)+i);\n\t\t\t*(*(a+m)+i)=t;\n\t\t}\n\t\treturn(1);\n\t}\n}\n"} +{"label": "81", "index": "40477", "code": "int main()\n{\n\tint zu[5][5],n,m,h[5][5];\n\tint i,j;\n\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&zu[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<0||n>4||m<0||m>4) printf(\"error\");\n\telse\n\t{\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\th[0][i]=zu[m][i];\n\t\t\tzu[m][i]=zu[n][i];\n\t\t\tzu[n][i]=h[0][i];\n\t\t}\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tprintf(\"%d\",zu[i][0]);\n\t\t\tfor(j=1;j<5;j++)\n\t\t\t{\n\t\t\tprintf(\" %d\",zu[i][j]);\t\n\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\n\t\n\treturn 0;\n}\n\n\n"} +{"label": "81", "index": "40478", "code": "int add(int m,int n);\nint main(){\n int a[5][5],m,n,i,j,p,b,c;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&a[i][j]);\n }\n }\n scanf(\"%d %d\",&m,&n);\n if(add(m,n)){\n for(p=0;p<5;p++){\n c=a[m][p];\n a[m][p]=a[n][p];\n a[n][p]=c;\n } \n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n if(j==4){\n printf(\"%d\\n\",a[i][j]);\n }else{\n printf(\"%d \",a[i][j]);\n }\n }\n }\n }else{\n printf(\"error\");\n }\n return 0;\n}\n int add(int m,int n){\n if(m>=0&&m<5&&n>=0&&n<5){\n return 1;\n }else{\n return 0;\n }\n }\n \n \n "} +{"label": "81", "index": "40479", "code": " \nint judge(int a[][5],int n,int m)\n{\n int i,temp;\n if(n<=4&&n>=0&&m>=0&&m<=4)\n {\n for(i=0;i<5;i++)\n {\n temp=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=temp;\n }\n return(1);\n }\n else\n return(0);\n}\nvoid main()\n{\n int judge(int a[][5],int n,int m);\n int i,j,a[5][5],n,m;\n for(i=0;i<5;i++)\n {\n for(j=0;j<5;j++)\n scanf(\"%d\",&a[i][j]);\n }\n scanf(\"%d%d\",&n,&m);\n if(judge(a,n,m)==0)\n printf(\"error\\n\");\n else \n {\n int judge(a,n,m);\n for(i=0;i<5;i++)\n { \n for(j=0;j<4;j++)\n printf(\"%d \",a[i][j]);\n printf(\"%d\\n\",a[i][4]);\n }\n }\n}"} +{"label": "81", "index": "40480", "code": "int main(){\n int a[5][5],b[5][5],m,n,i,j;\n for(i=0;i<5;i++){\n\t for(j=0;j<5;j++){\n\t scanf(\"%d\",&a[i][j]);\n\t }\n }\n scanf(\"%d%d\",&n,&m);\n if(n<5&&m<5&&n>=0&&m>=0){\n for(i=0;i<5;i++){\n\t\n\t for(j=0;j<5;j++){\n\t\t if(i==m)\n\t\t\t b[i][j]=a[n][j];\n\t\t else if(i==n)\n\t\t\t b[i][j]=a[m][j];\n\t\t else\n\t\t\t b[i][j]=a[i][j];\n\t \n\t }\n\t \n\t }\n\t for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n\t\t if(j==0)\n\t printf(\"%d\",b[i][j]);\n\t\t else if(j==4)\n\t\t\t printf(\" %d\\n\",b[i][j]);\n\t\t else\n\t\t\t printf(\" %d\",b[i][j]);\n\t }\n\t }\n\n }\n else\n\t printf(\"error\");\n return 0;\n}\n\t\n\n"} +{"label": "81", "index": "40481", "code": "void main()\n{\n\tint a[5][5];\n\tint i,j,m,n;\n\tint t[5]={0};\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\t if(m<5&&n<5) \n\t { \n\t\t for(i=0;i<5;i++)\n\t\t {\n\t\t\t t[i]=a[m][i];\n\t a[m][i]=a[n][i];\n\t\t a[n][i]=t[i];\n\t\t }\n\t for(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\tprintf(\"%d%c\",a[i][j],j<4?' ':'\\n');\n\t\t}\n\t }\n\telse \n\t\tprintf(\"error\\n\");\n}"} +{"label": "81", "index": "40482", "code": "/* Note:Your choice is C IDE */\nvoid main()\n{\n\tint a[5][5],b,m,n,change(int m,int n),i,j;\n\tfor(i=0;i<5;i++)\n\tfor(j=0;j<5;j++)\n\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d %d\",&m,&n);\n\tif(change(m,n)==0)\n\tprintf(\"error\");\n\tif(change(m,n)==1)\n\t{for(i=0;i<5;i++)\n\t{b=a[m][i];\n\ta[m][i]=a[n][i];\n\ta[n][i]=b;}\n\t\n\t\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t{printf(\"%d%c\",a[i][j],(j!=4)?' ':'\\n');\n\t\t}}\n\t\n}\nint change(int m,int n)\n{\n\tint y;\n\tif(m>4||n>4)\n\ty=0;\n\tif(m>=0&&m<=4&&n>=0&&n<=4)\n\ty=1;\n\treturn(y);\n}\n\t\n \n"} +{"label": "81", "index": "40483", "code": "int main(){\n\tint a[5][5],m,n,e[5];\n\tint i=0;\n\tint j=0;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&m,&n);\n\tif(m<5&&n<5&&m!=n&&m>=0&&n>=0){\n\tfor(j=0;j<5;j++){\n\t\te[j]=a[m][j];\n\t\ta[m][j]=a[n][j];\n\t\ta[n][j]=e[j];\n\t}\n\tprintf(\"%d \",a[0][0]);\n\tprintf(\"%d \",a[0][1]);\n\tprintf(\"%d \",a[0][2]);\n\tprintf(\"%d \",a[0][3]);\n\tprintf(\"%d\\n\",a[0][4]);\n\tprintf(\"%d \",a[1][0]);\n\tprintf(\"%d \",a[1][1]);\n\tprintf(\"%d \",a[1][2]);\n\tprintf(\"%d \",a[1][3]);\n\tprintf(\"%d\\n\",a[1][4]);\n\tprintf(\"%d \",a[2][0]);\n\tprintf(\"%d \",a[2][1]);\n\tprintf(\"%d \",a[2][2]);\n\tprintf(\"%d \",a[2][3]);\n\tprintf(\"%d\\n\",a[2][4]);\n\tprintf(\"%d \",a[3][0]);\n\tprintf(\"%d \",a[3][1]);\n\tprintf(\"%d \",a[3][2]);\n\tprintf(\"%d \",a[3][3]);\n\tprintf(\"%d\\n\",a[3][4]);\n\tprintf(\"%d \",a[4][0]);\n\tprintf(\"%d \",a[4][1]);\n\tprintf(\"%d \",a[4][2]);\n\tprintf(\"%d \",a[4][3]);\n\tprintf(\"%d\\n\",a[4][4]);\n\t}else{\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}"} +{"label": "81", "index": "40484", "code": "int main()\n{\nint array[5][5],i,j,n,m;\nint exchange(int array[5][5],int n,int m);\nfor(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\",&array[i][j]);\n }\n }\nscanf(\"%d %d\",&n,&m);\nif(exchange(array,n,m)){\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",array[i][j]);\n }\n printf(\"%d\",array[i][4]); \n printf(\"\\n\");\n } \n }else{\n printf(\"error\");\n }\nreturn 0;\n}\n\nint exchange(int array[5][5],int n,int m){\n int a[5],b[5],i;\n if((n<5&&n>=0)&&(m<5&&m>=0)){\n for(i=0;i<5;i++){\n a[i]=array[n][i];\n }\n for(i=0;i<5;i++){\n b[i]=array[m][i];\n }\n for(i=0;i<5;i++){\n array[m][i]=a[i];\n }\n for(i=0;i<5;i++){\n array[n][i]=b[i];\n }\n return 1;\n }else{\n return 0;\n }\n}\n"} +{"label": "81", "index": "40485", "code": "int rev(int in[5][5], int* x, int* y);\n\nvoid main()\n{int in[5][5];\n int n, m;\n int i,j,a;\nfor(i=0; i<5; i++)\n{for (j=0; j<5; j++)\n scanf(\"%d\", &in[i][j]);}\nscanf (\"%d%d\", &n, &m);\n\na=rev(in, &n, &m);\n\nif (a==0)\nprintf(\"error\");\nif (a==1)\nfor(i=0; i<5; i++)\n{for (j=0; j<4; j++)\n printf(\"%d \", in[i][j]);\n printf(\"%d\\n\", in[i][4]);}\n\n}\n\n\nint rev(int in[5][5], int* x, int*y)\n{int tem[5], i;\nif ((*x<5)&&(*y<5))\n{\nfor (i=0; i<5; i++)\n{tem[i]=in[*x][i];\n in[*x][i]=in[*y][i];\n in[*y][i]=tem[i];\n}\nreturn 1;}\nelse\nreturn 0;\n\n \n}"} +{"label": "81", "index": "40486", "code": "int main(){\n int sz[5][5],i,j,n,m,e,s;\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d\\n\",&sz[i][j]);\n }\n }\n scanf(\"%d%d\",&n,&m);\n if(n<=4&&m<=4){\n for(j=0;j<5;j++){\n e=sz[n][j];\n sz[n][j]=sz[m][j];\n sz[m][j]=e;\n }\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",sz[i][j]);\n }\n printf(\"%d\\n\",sz[i][4]);\n }\n }else{\n printf(\"error\");\n }return 0;\n}\n"} +{"label": "81", "index": "40487", "code": "int trans(int n,int m,int a[][5])\n{\n\tint temp,j,i=0;\n\tif(0<=n&&n<=4&&0<=m&&m<=4)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=temp;\n\t\t}\n\t\ti=1;\n\t}\n\treturn(i);\n}\nint main()\n{\n\tint m,n,a[5][5],t,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tt=trans(n,m,a);\n\tif(t==0)\n\t\tprintf(\"error\");\n\telse\n\t\tfor(i=0;i<5;i++)\n\t\t\tfor(j=0;j<5;j++)\n\t\t\t{\n\t\t\t\tif(j<4)\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t else\n\t\t\t\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t\t}\n\nreturn 0;\n}\n\n\n"} +{"label": "81", "index": "40488", "code": "int juzhen(int n,int m);\nint a[5][5];\nint main(){\n \n\tint i,j;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tint b=juzhen(n,m);\n\tif(b==1){\n\t\tfor(i=0;i<5;i++){ \n\t\t\tfor(j=0;j<4;j++){\n\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",a[i][4]);\n\t\t}\n\t}\n\tif(b==0){\n\t\tprintf(\"error\");\n\t}\t\n\treturn 0;\n}\nint juzhen(int n,int m){\n\tint j;\n\tif(0<=n&&n<=4&&0<=m&&m<=4){\n\t\tfor(j=0;j<5;j++){\n\t\t\tint temp;\n\t\t\ttemp=a[n][j];\n\t\t\ta[n][j]=a[m][j];\n\t\t\ta[m][j]=temp;\n\t\t}\n\t\treturn 1;\n\t}\n\telse return 0;\n}\n \n "} +{"label": "81", "index": "40489", "code": "int array[5][5];\nint check(int N,int M);\nvoid main(){\n\tint n,m,i,j;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d\",&array[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(check(n,m)==1){\n\t\tfor(i=0;i<5;i++){\n\t\t\tfor(j=0;j<5;j++){\n\t\t\t\tprintf(\"%d\",array[i][j]);\n\t\t\t\tif(j!=4){\n\t\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i!=4){\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n\t}\n\telse if(check(n,m)==0){\n\t\tprintf(\"error\\n\");\n\t}\n}\n\nint check(int N,int M){\t\n\tint i,spare[5];\n\tif((N>=0)&&(N<5)&&(M>=0)&&(M<5)){\n\t\tfor(i=0;i<5;i++){\n\t\t\tspare[i]=array[N][i];\n\t\t\tarray[N][i]=array[M][i];\n\t\t\tarray[M][i]=spare[i];\n\t\t}\n\t\treturn 1;\n\t}\n\telse if((N<=0||N>=5)||(M<=0||M>5)){\n\t\treturn 0;\n\t}\n}"} +{"label": "81", "index": "40490", "code": "int a[5][5];\n int i=0, j=0, m=0, n=0, t=0;\nint main()\n{\n\t\n for(i=0;i<5;i++){\n for(j=0;j<5;j++){\n scanf(\"%d \", &a[i][j]);\n }\n }\n scanf(\"%d%d\",&n,&m);\n if((n<5)&&(m<5)){\n for(i=0;i<5;i++){\n t=a[n][i];\n a[n][i]=a[m][i];\n a[m][i]=t;}\n for(i=0;i<5;i++){\n for(j=0;j<4;j++){\n printf(\"%d \",a[i][j]);\n }\n\t\t\t printf(\"%d\",a[i][4]);\n printf(\"\\n\");}\n }\n else printf(\"error\");\n\treturn 0;\n}\n"} +{"label": "81", "index": "40491", "code": "void main()\n{\n\tint m,n,i,j,c,a[5][5],temp;\n\tint compare(int n,int m);\n\tint (*p)[5];\n\tp=a;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&n,&m);\n\tc=compare(n,m);\n\tif(c)\n\t{\n\t\tfor(j=0;j<5;j++)\n\t\t{\n\t\t\ttemp=*(*(p+n)+j);\n\t\t\t*(*(p+n)+j)=*(*(p+m)+j);\n\t\t\t*(*(p+m)+j)=temp;\n\t\t}\n\t\tp=a;\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tfor(j=0;j<4;j++)\n\t\t\t\tprintf(\"%d \",*(*(p+i)+j));\n\t\t\tprintf(\"%d\\n\",*(*(p+i)+j));\n\t\t}\n\t}\n\telse printf(\"error\");\n}\nint compare(int n,int m)\n{\n\tint c;\n\tif(n<5&&m<5)\n\t\tc=1;\n\telse c=0;\n\treturn(c);\n}\n\n\n\n\n\n"} +{"label": "81", "index": "40492", "code": "\n\nint main()\n{\n\tint a[5][5],n,m,i,j;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\tscanf(\"%d%d\",&n,&m);\n\t\tint change(int a[5][5],int n,int m);\n\t\tif(change(a,n,m)==1)\n\t\t\tfor(i=0;i<5;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<4;j++)\n\t\t\t\t\tprintf(\"%d \",a[i][j]);\n\t\t\t\tprintf(\"%d\",a[i][4]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\tif(change(a,n,m)==0) printf(\"error\");\n\t\treturn 0;\n}\nint change(int a[5][5],int n,int m)\n{\n\tint i;\n\tif(m>4||m<0||n>4||n<0) return 0;\n\telse \n\t{\n\t\tint t[5];\n\t\tfor(i=0;i<5;i++)\n\t\t{\n\t\t\tt[i]=a[n][i];\n\t\t\ta[n][i]=a[m][i];\n\t\t\ta[m][i]=t[i];\n\t\t}\n\t\treturn 1;\n\t}\n}"} +{"label": "81", "index": "40493", "code": "int main()\n{\n\tint a[5][5];\n\tint i,m,c,b,x;\n\tint *p;\n\tfor(m=0;m<5;m++)\n\t{for(i=0;i<4;i++)\n\t\tscanf(\"%d \",&a[m][i]);\n\tscanf(\"%d\",&a[m][4]);}\nscanf(\"%d %d\",&c,&b);\nif(c>=0&&c<=4&&b>=0&&b<=4)\n{\n\tfor(i=0;i<5;i++)\n{\n\tx=a[c][i];\n a[c][i]=a[b][i];\n\ta[b][i]=x;}\nfor(m=0;m<5;m++)\n\t{for(i=0;i<4;i++)\n\t\tprintf(\"%d \",a[m][i]);\nprintf(\"%d\\n\",a[m][4]);}\n}\nelse printf(\"error\");\n}\n\n\n"} +{"label": "81", "index": "40494", "code": "int main()\n{\n\tint i,j,m,n,a[5][5],f=1;\n\tfor(i=0;i<5;i++)\n\t\tfor(j=0;j<5;j++)\n\t\t\tscanf(\"%d\",&a[i][j]);\n\tscanf(\"%d%d\",&m,&n);\n\t\tif(m<0||m>4||n<0||n>4)\n\t\t\tprintf(\"error\"),f=0;\n\t\telse \n\t\t\tfor(j=0;j<5;j++)\n\t\t\t\ti=a[m][j],a[m][j]=a[n][j],a[n][j]=i;\n\t\n\t\t\tif(f)\n\t\t\tfor(i=0;i<5;i++)\n\t{\n\t\tfor(j=0;j<4;j++)\n\t\t\tprintf(\"%d \",a[i][j]);\n\t\tprintf(\"%d\\n\",a[i][j]);\n\t\t}\n\t\treturn 0;\n\t}\n\t"} +{"label": "81", "index": "40495", "code": "int main()\n{\n int m,n,a,b,c,i,j,u[5][5];\n for(i=0;i<5;i++)\n {for(j=0;j<5;j++)\n {scanf(\"%d \",&u[i][j]);}\n }\n scanf(\"%d %d\",&n,&m);\n if(m>=0&&m<=4&&n>=0&&n<=4)\n {for(i=0;i<5;i++)\n {a=u[m][i];\n u[m][i]=u[n][i];\n u[n][i]=a;\n } for(i=0;i<5;i++){printf(\"%d %d %d %d %d\\n\",u[i][0],u[i][1],u[i][2],u[i][3],u[i][4]);}\n \n }\n else printf(\"error\");\n return 0;\n}\n\n"} +{"label": "81", "index": "40496", "code": "int main(){\n\tint sz[5][5];\n\tint n,m,x,y,i=0,j=0;\n\tfor(x=0;x<5;x++){\n\t\tfor(y=0;y<5;y++){\n\t\t\tscanf(\"%d\",&sz[x][y]);\n\t\t}\n\t}\n\tscanf(\"%d%d\",&n,&m);\n\tif(n>-1&&n<5&&m>-1&&m<5){\n\t\tfor(y=0;y<5;y++){\n\t\t\tint e;\n\t\t\te=sz[n][y];\n\t\t\tsz[n][y]=sz[m][y];\n\t\t\tsz[m][y]=e;\n\t\t}\n\t\tfor(x=0;x<5;x++){\n\t\t\tfor(y=0;y<5;y++){\n\t\t\t\tif(y!=4)\n\t\t\t\t\tprintf(\"%d \",sz[x][y]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%d\\n\",sz[x][y]);\n\t\t\t}\n\t\t}\n\t\treturn 1;\n\t}\n\telse{\n\t\tprintf(\"error\");\n\t\treturn 0;\n\n\t}\n}"} +{"label": "81", "index": "40497", "code": "int main() {\n\tint n,m,i,k,a,b,c;\n\tint sz[5][5];\n\tint ss[5];\n\tfor(i=0;i<5;i++){\n\t\tfor(k=0;k<5;k++){\n\t\t\tscanf(\"%d\",&sz[i][k]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n<5&&n>=0&&m>=0&&m<5){\n\t\tfor(a=0;a<5;a++){\n\t\t\tss[a]=sz[n][a];\n\t\t\tsz[n][a]=sz[m][a];\n\t\t\tsz[m][a]=ss[a];\n\t\t}\n\t\tfor(b=0;b<5;b++){\n\t\t\tfor(c=0;c<4;c++){\n\t\t\t\tprintf(\"%d \",sz[b][c]);\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",sz[b][4]);\n\t\t}\n\t}else {\n\t\tprintf(\"error\");\n\t}\n\treturn 0;\n}\n"} +{"label": "81", "index": "40498", "code": "int main(){\n\tint x[100][100],n,m,i,j;\n\tfor(i=0;i<5;i++){\n\t\tfor(j=0;j<5;j++){\n\t\t\tscanf(\"%d \",&x[i][j]);\n\t\t}\n\t}\n\tscanf(\"%d %d\",&n,&m);\n\tif(n>=0&&n<5&&m>=0&&m<5){\n\t\tif(n<=m){\n\t\t\tfor(i=0;i4||n>4)\n printf(\"error\");\n else\n {\n for(j=0;j<5;j++)\n {\n temp=a[m][j];\n a[m][j]=a[n][j];\n a[n][j]=temp;\n }\n for(i=0;i<=4;i++)\n {for(j=0;j<=3;j++)\n printf(\"%d \",a[i][j]);\n printf(\"%d\\n\",a[i][4]);\n }\n }\n}\n"} +{"label": "82", "index": "40500", "code": "\nint main(){\n\tint n,a[100]={0},b[100],c[100],t=0,z;\n\tscanf(\"%d\\n\",&n);\n\tfor(int i=0;i=90&&b[i]<=140&&c[i]>=60&&c[i]<=90){\n\t\t\ta[t]++;}else{\n\t\t\t\tt++;}\n\t}\n\tfor(int p=0;p<99;p++){\n\t\tif(a[p]>a[p+1]){\n\t\t\tz=a[p+1];\n\t\t\ta[p+1]=a[p];\n\t\t\ta[p]=z;}\n\t}\n\tprintf(\"%d\",a[99]);\n\n\n\treturn 0;}"} +{"label": "82", "index": "40501", "code": "int main()\n{\n int n,i,j=0,a[100],b[100],c[100],m;\n scanf(\"%d\",&n);\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t c[j]++;\n\t else \n\t {\n\t\t j++;\n\t }\n }\n m=c[0];\n\n\n for(i=0;imax)\n\t\t\tmax=c[k];\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40503", "code": "\nint main()\n{\n int n;\n cin>>n;\n int high,low;//???????\n int j=0;\n int flag[n];//???????????????\n for(int k=0;k>high>>low;\n if(high<=140&&high>=90&&low>=60&&low<=90) flag[j]++;//????????????????????+1\n else j++; //???????????????????\n }\n int max=flag[0];\n for(int l=0;lmax)\n max=flag[l];//??????????????\n }\n cout<=90 && a<=140 && b>=60 && b<=90)\n count=count+1;\n else \n {\n if(count_maxcount_max)\n count_max=count;\n }\n printf(\"%d\",count_max);\n return 0;\n} "} +{"label": "82", "index": "40505", "code": "int main()\n{\n\tint n,k=0,a[200],b[200],i,j;\n\tint s[200];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{ k++;}\n\t\telse\n\t\t{ break;}\n\t }\n\t\ts[j]=k;\n\t\tk=0;\n\t }\n\tint x=0;\n\tfor(i=0;ix)\n\t\t{ x=s[i];}\n\t}\n\tprintf(\"%d\",x);\n\treturn 0;\n}"} +{"label": "82", "index": "40506", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint xueya[100][2];\n\tint shijian[100];\n\tint i;\n\tfor(i=0;i=90&&xueya[i][0]<=140&&xueya[i][1]>=60&&xueya[i][1]<=90)\n\t\t{\n\t\t\tshijian[i]=1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tshijian[i]=0;\n\t\t}\n\t}\n\tint duan[100];\n\tfor(i=0;imax)\n\t\t{\n\t\t\tmax=duan[i];\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\n\n\n\treturn 0;\n}"} +{"label": "82", "index": "40507", "code": "int main()\n{\n int n,i,t=0,a[100],k=0,m=1,min,max,result=0;\n cin>>n;\n for(i=0;i>max>>min;\n\t\tif(max<90)\n\t\t\tm=0;\n\t\telse\n\t\t{\n\t\t\tif(max>140)\n\t\t\t\tm=0;\n\t\t}\n\t\tif(min>90)\n\t\t\tm=0;\n\t\telse\n\t\t{\n\t\t\tif(min<60)\n\t\t\t\tm=0;\n\t\t}\n\t\tif(m==1)\n\t\t\tt++;\n\t\telse\n\t\t{\n\t\t\ta[k]=t;\n\t\t\tk++;\n\t\t\tt=0;\n\t\t}\n\t}\n\ta[k]=t;\n\tk++;\n\tfor(i=0;i=m[i-1])\n\t\t m[0]=m[0];\n\t}\n\tprintf(\"%d\",m[0]);\n\treturn 0;\n}"} +{"label": "82", "index": "40509", "code": "\n\nint main() {\n\tint N;\n\tcin >>N;\n\tconst int n=N;\n\tint high[n];\n\tint low[n];\n\tfor (int i=0;i<=n-1;i++)\n\t{\n\t\tcin >>high[i]>>low[i];\n\t}\n\tint contin[n];\n\tfor (int i=0;i<=n-1;i++)\n\t{\n\t\tcontin[i]=0;\n\t}\n\tfor (int k=0;k<=n-1;k++)\n\t{\n\t\tfor (int i=k;i<=n-1;i++)\n\t\t{\n\t\t\tif ((high[i]>=90)&&(high[i]<=140)&&(low[i]>=60)&&(low[i]<=90))\n\t\t\t{\n\t\t\t\tcontin[k]=contin[k]+1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tint max=contin[0];\n\tfor (int i=0;i<=n-1;i++)\n\t{\n\t\tif (contin[i]>max)\n\t\t\tmax=contin[i];\n\t}\n\tcout <max)?temp:max;\n\t}\n\n\tprintf(\"%d\",max);\n\treturn 0;\n\t\n}"} +{"label": "82", "index": "40511", "code": "int main()\n{\n\tint a[100],b[100],i,n,max=0,count=0;\n\tcin>>n;\n\tfor(i=0;i>a[i]>>b[i];\n\t}\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tcount++;\n\t\t\tif(count>max)\n\t\t\t\tmax=count;\n\t\t\tcontinue;\n\t\t}\n\t\tcount=0;\n\t}\n\tcout<>n; //??????\n i=t=T=0; //????????????????0\n while(++i<=n){ //??????????????\n \tcin >>h >>l; //????????\n \tt=(140>=h && h>=90 && 90>=l && l>=60)?t+1:0; //?????????+1?????????\n \tT=(t>T)?t:T; //????????????????????????\n }\n cout <=90&&shou<=140&&shu>=60&&shu<=90){\n\t\t\th++;\n\t\t}else{\n\t\t\tif(max=90&&a[i][0]<=140&&a[i][1]>=60&&a[i][1]<=90)\n\t\t{\n\t\t\tci[m]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm++;\n\t\t}\n\t}\n\tint max=ci[0];;\n\tfor(i=0;imax)\n\t\t{\n\t\t\tint e;\n\t\t\te=ci[i];\n\t\t\tci[i]=max;\n\t\t\tmax=e;\n\t\t}\n\t}\n\n\tprintf(\"%d\",max);\n\n\n\treturn 0;\n}\n"} +{"label": "82", "index": "40515", "code": "void main(){\n\tint i,n,s=0,t=0;\n\tscanf(\"%d\",&n);\n\tint a[100],b[100];\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tt++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(sd){\n d=c[i];\n }\n }\n printf(\"%d\",d);\n return 0;\n}"} +{"label": "82", "index": "40517", "code": "/*\n Name: ??(5-5) ????\n Author: 120012757(chenminhuan)\n Date: 15/10/12 18:28\n*/\n\nint n,ans,cnt,a,b;\nint main()\n{\n \n cin>>n; //read in times\n ans = 0; // answer\n cnt = 0; \n while (n--){\n cin>>a>>b;\n if(a>=90 && a<=140 && b>=60 && b<=90) cnt++; \n else\n {\n if(cnt>ans) ans = cnt;\n cnt = 0;\n }\n }\n if (cnt>ans) ans = cnt;\n cout<=90&&p[i].u<=140&&p[i].v>=60&&p[i].v<=90){\n\t\t\tj=j+1;\n\t\t\tif(j>m)\n\t\t\t\tm=j;\n\t\t}\n\t\telse{\n\t\t\tj=0;\n\t\t}\n\t}\n\tprintf(\"%d\",m);\n\treturn 0;\n}"} +{"label": "82", "index": "40519", "code": "\nint main()\n{\n\tint i,j,s,h,l,n,a,e;\n\tint t[100];\n\tscanf(\"%d\",&n);\n\ts=0;\n\n\tfor(i=0;i<100;i++)\n\t\tt[i]=0;\n\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d %d\",&h,&l);\n\t\tif((h<=140)&&(h>=90)&&(l<=90)&&(l>=60))\n\t\t{\n\t\t\ts++;\n\t\t\tt[i-1]=s;\n\t\t}\n\t\telse\n\t\t\ts=0;\n\t}\n\n\tfor(i=1;i<100;i++)\n\t{\n\t\tfor(j=0;j<100-i;j++)\n\t\t{\n\t\t\tif(t[j]>t[j+1])\n\t\t\t{\n\t\t\t\te=t[j];\n\t\t\t\tt[j]=t[j+1];\n\t\t\t\tt[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\tprintf(\"%d\\n\",t[99]);\n\treturn 0;\n}"} +{"label": "82", "index": "40520", "code": "int main()\n{\n\tint n,i,j,a[100],b[100],c[100]={0},max=0,f=0;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&a[i]<=140&&b[i]<=90&&b[i]>=60) \n\t\t{\n\t\t\tc[i]=0;\n\t\t\tfor(j=i;j=90&&a[j]<=140&&b[j]<=90&&b[j]>=60) \n\t\t\t\t\tc[i]++;\n\t\t\t\telse break;\n\t\t}\n}\nfor(i=0;imax)\n\t{\n\tint tmp;\n\ttmp=c[i];\n\tc[i]=max;\n\tmax=tmp;\n\t}\n}\nprintf(\"%d\",max);\nreturn 0;\n}"} +{"label": "82", "index": "40521", "code": "void main()\n{\n\tint n,a[100],b[100];\n\tscanf(\"%d\",&n);\n\tint m=0;\n\tint i=0;\n\tfor (i;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90&&im)\n\t\t{\n\t\t\tm=s;\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\",m);\n}"} +{"label": "82", "index": "40522", "code": "int main()\n{\nint xy[2],ok[100];\nint i,n,max=0,t=0;\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++)\n{\nscanf(\"%d%d\",&xy[0],&xy[1]);\nif(xy[0]<=140&&xy[0]>=90&&xy[1]<=90&&xy[1]>=60)\nok[i]=1;\nelse\nok[i]=0;\n}\nfor(i=1;i<=n;i++)\n{\nif(ok[i]==1)\nt++;\nelse\nt=0;\nif(t>max)\nmax=t;\n}\nprintf(\"%d\",max);\n\nreturn 0;\n}\n"} +{"label": "82", "index": "40523", "code": "int main(){\n int i,j=0,t=0,n,k,e,ss[101],sz[101],sz2[101];\n scanf(\"%d\",&n);\n for(i=0;i=90)&&(ss[i]<=140)&&(sz[i]>=60)&&(sz[i]<=90)){\n\t j++; \n\t }\n\t else{\n\t\t sz2[t]=j;\n\t\t t++;\n\t j=0;\n\t }\n } \n if((ss[n-1]>=90)&&(ss[n-1]<=140)&&(sz[n-1]>=60)&&(sz[n-1]<=90)){\n j++;\n\t sz2[t]=j;\n }\n else{\n sz2[t]=j;\n }\n for(k=1;k=90&&a[i]<=140&&b[i]>59&&b[i]<=90){\n\t\t\t\td=i;\n\t\t\t\tfor(j=d+1;j=90&&a[j]<=140&&b[j]>59&&b[j]<=90&&a[j-1]>=90&&a[j-1]<=140&&b[j-1]>59&&b[j-1]<=90){\n\t\t\t\t\t\te=j;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tf=e-d+1;\n\t\t\t\tif(f>c){\n\t\t\t\t\tc=f;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t}\n\t\n\tprintf(\"%d\",c);\n\n\treturn 0;\n\n}\n\n"} +{"label": "82", "index": "40525", "code": "int main()\n{\n int n;\n int ss[100];\n int sz[100];\n int a=0;\n int e=0;\n scanf(\"%d\",&n);\n for(int i=0;i=90)&&(ss[i]<=140)&&(sz[i]>=60)&&(sz[i]<=90)){\n a++;\n }\n else{\n if(a>e){\n e=a;\n }\n a=0;\n \n \n }\n }\n printf(\"%d\",e);\n return 0;\n}\n\n\n"} +{"label": "82", "index": "40526", "code": "int main()\n{\nint n,i,j,k,p,q,e,y;\nint sz[1000][1000];\nint sz2[100000];\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++){for(j=1;j<=2;j++){scanf(\"%d\",&sz[i][j]);}}\nk=0;\nfor(y=1;y<=n;y++){if(sz[y][1]>=90&&sz[y][1]<=140&&sz[y][2]>=60&&sz[y][2]<=90){sz2[y]=k+1;k++;}else{sz2[y]=0;k=0;}}\nfor(q=1;q<=n-1;q++){if(sz2[q]>=sz2[q+1]){e=sz2[q+1];sz2[q+1]=sz2[q];sz2[q]=e;}}\nprintf(\"%d\",sz2[n]);\nreturn 0;\n}"} +{"label": "82", "index": "40527", "code": "int main()\n{\n int n,a[100],b[100],i=1,j=1,k=1,sum[100],max=0;\n\tmemset (sum,0,sizeof(sum));\n\tcin >> n ;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t}\n\tfor (j = 1; j <= n; j++)\n {\n\tif ( (a[j] >= 90) && (a[j] <= 140) && (b[j] >= 60) && (b[j] <= 90) )\n\t\tsum[k] ++;\n\telse \n\t\tk++;\n\t}\n\tfor (k = 1; k <= n; k++)\n\t{\n\t\tif (sum[k] >= max)\n\t\t\tmax = sum[k] ;\n\t}\n\tcout << max << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40528", "code": "int main()\n{\n int n,a,b,j=0,sum =0 ,r[100]={0},max=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=0; i=90) && (b<=90&&b>=60) )\n\t\t\tsum++;\n\t\telse if ( (a>=140||a<=90) || (b>=90||b<=60) )\n\t\t{\n\t\t\tr[j]=sum;\n\t\t\tj++;\n\t\t\tsum=0;\n\t\t}\n\t\tif(i==n-1) r[j+1]=sum;\n\t}\n\n\tfor(int m=0;mr[m])?max:r[m];\n\t}\n\n printf(\"%d\\n\",max);\n\t\n return 0;\n}"} +{"label": "82", "index": "40529", "code": "int m(int p,int q)\n{int z;\nz=(p>q)? p:q;\nreturn z;\n}\nmain()\n{ \n int i,x,j,y,n,r;\n scanf(\"%d\",&n);\n int a[n],t[n];\n for(i=1;i<=n;i++)\n {t[i-1]=0;\n scanf(\"%d %d\",&x,&y);\n if(x>=90&&x<=140&&y<=90&&y>=60) a[i-1]=1;else a[i-1]=0;\n }\n for(i=1,j=0;i<=n;i++)\n {if(a[i-1]==1) t[j]++;else j++;\n }\n for(i=1,r=t[0];i<=n-1;i++)\n r=m(r,t[i]);\n printf(\"%d\",r);\n\n return 0;\n}\n"} +{"label": "82", "index": "40530", "code": "\nint main(int argc, char *argv[])\n{\n int n, sys, dia, i, normal=0, max=0;\n /*n?????? sys?dia????????? i????? normal?????????? max????????*/\n scanf (\"%d\",&n);\n /*?????? ????????*/ \n for (i=1;i<=n;i++){//????n? \n scanf (\"%d %d\",&sys,&dia);//???? \n if (sys>=90 && sys<=140 && dia>=60 && dia<=90)\n normal++; \n else\n normal = 0;\n /*????????????? ?normal+1 ??normal??*/ \n if (max=90 && x<=140 && y>=60 && y<=90){\n\t\t\ttime+=1;\n\t\t\tif(time>=max){\n\t\t\t\tmax=time;\n\t\t\t}\n\t\t}else{\n\t\t\ttime=0;\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40532", "code": "int main(int argc, char* argv[])\n{ \n\tint i,n,x[200];\n\tint t=0;\n\tint s=0;\n\tint max(int x,int y);\n\tscanf (\"%d\",&n);\n\tfor (i=0;i=90)\n\t\t\t&&(x[(2*i+1)]<=90)\n\t\t\t&&(x[(2*i+1)]>=60)\n\t\t\t)\n\t {\n\t s=s+1;\n\t\t}\n\t else \n\t\t{\n\t\t\tt=max (t,s);\n\t\t s=0;\n\t\t}\n\t\n\t}\n\tt=max (t,s);\n\tprintf (\"%d\",t);\n\treturn 0;\n}\nint max(int x,int y)\n{\nint z;\nif (x>y) z=x;\nelse z=y;\nreturn(z);\n}\n"} +{"label": "82", "index": "40533", "code": "//????\nint main()\n{\n int a[100];\n\tint b[100];\n\tint h[100];\n\tint m,n,i,j;\n\tscanf(\"%d\",&m);\n\tn=0;\n\tfor(n=0;n=90&&a[j]<=140&&b[j]>=60&&b[j]<=90)\n\t\t\th[n]++;\n\t\telse\n\t\t\tbreak;\n\t}\n\t}\n\ti=0;\n\tfor(i=0;ih[0])\n\t\t\th[0]=h[i];\n\t}\n\tprintf(\"%d\\n\",h[0]);\n\treturn 0;\n}\n\t\t\n\n"} +{"label": "82", "index": "40534", "code": "\nint s[110];\n\nint main(){\n\tint n,i,a,b,sum=0,c=0;\n\tcin>>n;\n\tfor (i=0;i=90&&b>=60&&b<=90){\n\t\t\ts[i]=1;\n\t\t}\n\t}\n\t\n\tfor (i=0;ic) c=x;\n\t}\n\telse \n\t\tx=0;\n }\nprintf(\"%d\",c);\n return 0;\n}"} +{"label": "82", "index": "40536", "code": "\nint c[100];\nint main()\n{\n\tint e,i,k,n,a[100],b[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))\n\t\t{\n\t\t\tfor(k=i;k=90)&&(a[k]<=140)&&(b[k]>=60)&&(b[k]<=90))\n\t\t\t {\n\t\t\t\t c[i]=c[i]+1;\n\t\t\t }\n\t\t\t else\n\t\t\t\t break;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tfor(i=0;ic[i+1])\n\t\t{\n\t\t\te=c[i+1];\n\t\t\tc[i+1]=c[i];\n\t\t\tc[i]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",c[n-1]);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40537", "code": "int main()\n{\n\tint a[100],b[100],c[100],n,s=0,i,j=0,m=0;\n\tmemset(a,0,sizeof(a));\n\tmemset(b,0,sizeof(b));\n\tmemset(c,0,sizeof(c));\n\tcin>>n;\n\tfor(i=0;i>a[i]>>b[i];\n\t\tif((a[i]>=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))\n\t\t\tc[j]++;\n\t\telse\n\t\t\tj++;\n\t}\n\tfor(j=0;j<=n;j++)\n\t{\n\t\tm=(m>c[j])?m:c[j];\n\t}\n\tcout<=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tc[s]++;\n\t\t}else{\n\t\t\tif(c[s]>max){\n\t\t\t\tmax=c[s];\n\t\t\t}\n\t\t\ts++;\n\t\t\tc[s]=0;\n\t\t}\n\t\tif(c[s]>max){\n\t\t\t\tmax=c[s];\n\t\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40539", "code": "\n\nint main()\n{\n\tint n;\n\tint k = 0;\n\tint max = 0;\n\tint a;\n\tint b;\n scanf(\"%d\",&n);\n\twhile(n != 0)\n\t{\n\t\tscanf(\"%d\",&a);\n\t\tscanf(\"%d\",&b);\n\t\tif (90 <= a && a <= 140 && 60 <= b && b<= 90)\n\t\t\tk++;\n\t\telse\n\t\t\tk = 0;\n\t\t\t\n\t\tif(max < k)\n\t\t\tmax = k;\n\t\t\t\n\t n--;\n\t}\n\tprintf(\"%d\",max);\n\t\n return 0;\n}\n"} +{"label": "82", "index": "40540", "code": "int main()\n{\n int n;\n cin>>n;\n int max=0;\n int t=0;\n int a,b;\n for(int i=1;i<=n;i++)\n {\n cin>>a>>b;\n if(a>=90&&a<=140&&b>=60&&b<=90)\n t++;\n else if(t!=0)\n {max=t>max?t:max;t=0;}\n max=t>max?t:max;\n }\n cout<=90&&q[i]<=90&&q[i]>=60)\n\t\t{\n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(j>m)\n\t\t\t{\n\t\t\t\tm=j;\n\t\t\t\tj=0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tj=0;\n\t\t\t}\n\t\t}\n\t}\n\tif(j>m)\n\t\t\t{\n\t\t\tprintf(\"%d\",j);\n\t\t\t}\n\t\t\telse\n\t\t\t{\nprintf(\"%d\",m);\n\t\t\t}\n\treturn 0;\n}\n"} +{"label": "82", "index": "40542", "code": "int main()\n{\n\tint t = 0, i, n, shou, shu, health;\n\tint max = 0;\n\tint bp[100 + 10] = {0};\n\tcin >> n;\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tcin >> shou >> shu;\n\t\tif (90 <= shou && shou <= 140 && 60 <= shu && shu <= 90)\n\t\t\tbp[i] = 1;\n\t}\n\tcout << endl;\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tif (bp[i] == 0)\n\t\t{max = max > t ? max : t; t = 0;}\n\t\telse t ++;\n\t}\n\t\n\tmax = max > t ? max : t;\n\tcout << max << endl;\n} "} +{"label": "82", "index": "40543", "code": "int main()\n{\n\tint n,x,y,i,j,a=0,b[100];\n\tcin>>n;\n\tfor(i=0;i>x>>y;\n\t\tif(x>=90&&x<=140&&y>=60&&y<=90) {a=a+1; b[i]=a;}\n\t\telse {b[i]=a; a=0;}\n\t}\n\tfor(i=0;i>n;\n\tfor(i=1;i<=n;i++) //??\n\t{\n\t\tcin>>a[i]>>b[i]; //????\n\t\tif(90<=a[i]&&a[i]<=140&&60<=b[i]&&b[i]<=90) //??????\n\t\t{\n\t\t\th++; //????1\n\t\t\tm[i]=h; //m???????\n\t\t}\n\t\telse // ???????\n\t\t{\n\t\t\tm[i]=h; //????????m???????\n\t\t\th=0; //????????\n\t\t}\n\t}\n\tt=m[1]; //t?????m1\n\tfor(i=1;i<=n;i++) \n\t{\n\t\tif(t<=m[i]) \n\t\t{\n\t\t\tt=m[i];\n\t\t} //??t????????t???????\n }\n\tcout<=90&&gao[i]<=140&&di[i]>=60&&di[i]<=90){\n\t\t\txiaoshi++;\n\t\t\tif(gao[i+1]>=90&&gao[i+1]<=140&&di[i+1]>=60&&di[i+1]<=90){\n\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\tif(xiaoshi>max){\n\t\t\t\t\tmax=xiaoshi;\n\t\t\t\t}\n\t\t\t\txiaoshi=0;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40546", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[100]={0};\n\tint b,c;\n\tint i,j=0;\n\tfor(i=0;i=90&&c<=90&&c>=60){\n\t\t\ta[j]++;\n\t\t}\n\t\telse{\n\t\t\tj++;\n\t\t}\n\t}\n\tb=a[0];\n\tfor(i=1;i<=j;i++){\n\t\tif(a[i]>b){\n\t\t\tb=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\",b);\n\treturn 0;\n}"} +{"label": "82", "index": "40547", "code": "int main(){\n\tint S[100][2],n,i,j,k,K;\n\tscanf(\"%d\",&n);\n\tfor(i=0;iK){\n\t\t\t\t\tK=k;\n\t\t\t\t k=0;\n\t\t\t\t}\n\t\t\t\telse k=0;\n\t\t\t}\n\t\t}\n\t\tif(k>K)\n\t\t\tK=k;\n\t\tprintf(\"%d\",K);\n\t\treturn 0;\n}"} +{"label": "82", "index": "40548", "code": "int main()\n{\n\tint n,a[100],b[100],c[100]={0},t,p,q;\n\tcin>>n;\n\tif (n==1)\n\t{\tcin>>p>>q;\n\tif (p<=140 && p>=90 && q>=60 &&q<=90)\n\t\tcout<<\"1\"<>a[i]>>b[i];\n\t}\n\tfor (int j=1;j<=n;j++)\n\t{\n\t\tif (a[j-1]<=140 && a[j-1]>=90 && b[j-1]>=60 &&b[j-1]<=90)\n\t\t\tc[j]=c[j-1]+1;\n\t}\n\tfor (int k=0;k140||b<90||c>90||c<60){\n\t\t\ty[j]=i+1;\n\t\t\tj++;\n\t\t}\n\t}\n\ty[0]=0;\n\ty[j]=a+1;\n\tj++;\n\ta=y[1]-y[0];\n\tfor(i=1;ia){\n\t\t\ta=y[i+1]-y[i];\n\t\t}\n\t}\n\ta=a-1;\n\tprintf(\"%d\",a);\n\treturn 0;\n}"} +{"label": "82", "index": "40550", "code": "int main(){\n int a[100],b[100],c[100]={0},d[100]={0};\n int i,n,k,result=0,max=0;\n scanf(\"%d\",&n);\n for(i=0;i=max)\n max=d[i];\n }\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40551", "code": "//********************************\n//*???????.cpp **\n//*?????? 1200012768 **\n//*???2012.10.12 **\n//********************************\nint main() \n{\n int n, h = 0, t = 0; //????????????????????? \n// cout << \"????????n?\";\n cin >> n;\n int sbp[n], dbp[n]; //???n????????n??????? \n for (int i = 0; i < n; i++)\n cin >> sbp[i] >> dbp[i]; //????????? \n for (int i = 0; i < n; i++)\n {\n if (sbp[i] >= 90 && sbp[i] <= 140\n && dbp[i] >=60 && dbp[i] <= 90)\n {\n h += 1; //???????????? 1 \n t =(t > h ? t : h); //?????? \n } \n else\n h = 0; //?????????????????????????? \n }\n// cout << \"?????????????\";\n cout << t << endl;\n return 0;\n} \n"} +{"label": "82", "index": "40552", "code": "int main()\n{\n int n,i,j=0,max;\n int bp[N][2];\n int state[N]={0};\n int hou[N]={0};\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++){\n scanf(\"%d%d\",&bp[i][0],&bp[i][1]);\n }\n for(i=0;i<=n-1;i++){\n if(((bp[i][0]>=90)&&(bp[i][0]<=140))&&((bp[i][1]>=60)&&(bp[i][1]<=90))){\n state[i]=1;\n } //????????????????1\n }\n state[n]=0;\n for(i=0;i<=n;i++){\n if(state[i]==1){\n j++; \n }\n else{\n hou[i]=j;\n j=0;\n }\n } //?hou[i]??????????????\n max=hou[0];\n for(i=0;i<=n;i++){\n if(max=90&&l[i]<=140&&r[i]>=60&&r[i]<=90){\n\t\t\twa[z]++;\n\t\t}else{\n\t\t\tz++;\n\t\t}\n\t}\n\tif(l[n-1]>=90&&l[n-1]<=140&&r[n-1]>=60&&r[n-1]<=90){\n\t\tz++;\n\t}\n\tfor(i=0;i=90)&&(s[i][0]<=140)&&(s[i][1]>=60)&&(s[i][1]<=90))\n u[a]++;\n else a++;\n }\n int b=u[0];\n for(i=0;i=90&&sz[i][0]<=140&&sz[i][1]>=60&&sz[i][1]<=90)\n\t\t{\n\t\t\ta[hours]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\thours++;\n\t\t}\n\t}\n for(k=1;k<=hours;k++)\n\t{\n\t\tfor(d=0;d<=hours-k;d++)\n\t\t{\n\t\t\tif(a[d]>a[d+1])\n\t\t\t{\n\t\t\t\tf=a[d+1];\n\t\t\t\ta[d+1]=a[d];\n\t\t\t\ta[d]=f;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",a[hours]);\n\treturn 0;\n\n}"} +{"label": "82", "index": "40556", "code": "\nint main()\n{\n\tint normal(int x,int y);\n\tint n,i,c=0,t=0,a[100],b[100];\n\tscanf(\"%d\",&n);\n for(i=0;i<=n-1;i++){\n\tscanf(\"%d %d\",&a[i],&b[i]);\n\t\tif(normal(a[i],b[i])==1){\n\t\tt+=1;\n\t\t if(t>c){\n\t \tc=t;\n\t\t\t\t}\n\t\t\t}\n\t\tif(normal(a[i],b[i])==0){\n\t\t\tt=0;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",c);\n\treturn 0;\n}\nint normal(int x,int y){\n int z;\n\tif(x>=90&&x<=140&&y>=60&&y<=90)\n\t\tz=1;\n\telse z=0;\n\treturn (z);\n}"} +{"label": "82", "index": "40557", "code": "int main()\n{\n\tint i,n,a[100],b[100],sum1=0,sum2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\tsum1++;\n\t\telse\n\t\t{\n\t\t\tif(sum1>sum2)\n\t\t\t\tsum2=sum1;\n\t\t\tsum1=0;\n\t\t}\n\t\tif(i==n-1&&sum1>sum2)\n sum2=sum1;\n\t}\n\tprintf(\"%d\",sum2);\n\treturn 0;\n}"} +{"label": "82", "index": "40558", "code": "int main()\n{\n int n,i,j=0,max;\n int bp[N][2];\n int sz[N];\n int hou[N];\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n {\n scanf(\"%d%d\",&bp[i][0],&bp[i][1]);\n }\n for(i=0;i<=n-1;i++)\n {\n sz[i]=0;\n hou[i]=0;\n }\n for(i=0;i<=n-1;i++)\n {\n if(((bp[i][0]>=90)&&(bp[i][0]<=140))&&((bp[i][1]>=60)&&(bp[i][1]<=90)))\n {\n sz[i]=1;\n } \n \n }\n sz[n]=0;\n for(i=0;i<=n;i++)\n {\n if(sz[i]==1)\n {\n j++; \n }\n else\n {\n hou[i]=j;\n j=0;\n }\n } \n max=hou[0];\n for(i=0;i<=n;i++)\n {\n if(max>n; //??n\n\tint c[n+1]; //??1???????????\n\tfor(i=0;i>a>>b; //?????????\n\t\tc[i]=0; //c[i]???0\n\t\tif (a>=90&&a<=140&&b>=60&&b<=90) //??????\n\t\t\tc[k]=c[k]+1; //???????c?1\n\t\telse k=k+1; //?????c????????\n\t}\n\tc[n]=0; //?c[n+1]???????????\n\tfor(i=0;i<=k;i++){ //????\n\t\tif (s> n;\n do\n {\n cin >> a >> b;\n if(a >= 90 && a <= 140 && b >= 60 && b <= 90)\n h = max(i - t, h);\n else\n t = i;\n i++;\n }while(i <= n);\n cout << h << endl;\n return 0;\n}\n"} +{"label": "82", "index": "40561", "code": "//????\nint main()\n{\n int n,h=0,hmax=0;\n cin>>n;\n int a[100][3];//a?????\n for(int i=1;i<=n;i++)\n {\n cin>>a[i][1]>>a[i][2];\n if(90<=a[i][1]&&a[i][1]<=140&&60<=a[i][2]&&a[i][2]<=90)\n h++;\n else h=0;\n hmax=h>=hmax?h:hmax;\n }\n cout<=90)&&(xy[i].ssy<=140)&&(xy[i].szy<=90)&&(xy[i].szy>=60)){\n\t\t\ta=a+1;\n\t\t}else{\n\t\t\ta=0;\n\t\t}\n\t\tif(a>d){\n\t\t\td=a;\n\t\t}\n\t}\n\tprintf(\"%d\",d);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40563", "code": "/*\n * pressure.cpp\n *\n * Created on: 2012-10-17\n * Author: Justin\n */\nint main(){\n\tint p1,p2,hour,hourmax,n;\n\thour=0;\n\thourmax=0;\n\tcin>>n;\n\twhile(n>0){\n\t\tcin>>p1>>p2;\n\t\tif(p1<=140 && p1>=90 && p2<=90 && p2>=60)\n\t\t\t{hour=hour+1;\n\t\t\tn=n-1;\n\t\t\t}\n\t\telse\n\t\t{hourmax=max(hour,hourmax);\n\t\thour=0;\n\t\tn=n-1;\n\t\t}\n\t}\n\tcout<=x)\n\t\t{\n\t\t\tx=sum;\n\t\t}\n\t}\n\tprintf(\"%d\",x);\n\treturn 0;\n}"} +{"label": "82", "index": "40565", "code": "int zhengchang(int i,int j){\n\tif((i>=90&&i<=140)&&(j>=60&&j<=90)){\n\t\treturn 1;\n\t}\n\treturn 0;\n}\nint main(){\n\tint n,i,a[100],b[100],k,t[100]={0},m=0,j,max;\n\tscanf(\"%d\",&n);\n\tfor(k=0;kmax){\n\t\t\tmax=t[i];\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40566", "code": "int main()\n{\n\tint n,i,j,a,b,p,q; //????n????i?j???a???b???????p???????q\n\tcin >> n; //????\n//\tp = 0; //p??????0\n\tq = 0; //q??????0\n\tj = 0; //j??????0\n\tfor (i = 1;i <= n;i++) //??n?\n\t{\n\t\tcin >> a >> b; //??a?b\n\t\tif (a >= 90 && a <= 140 && b >= 60 && b <= 90) //??????\n\t\t{\n\t\t\tj = j+1; //???+1\n\t\t}\n\t\telse\n\t\t{\n\t\t\tj = 0;\n\t\t}\n//\t\tp = j;\n\t\t\tif (j > q)\n\t\t\t{\n\t\t\t\tq=j;\n\t\t\t}\t\t\n\t}\n\tcout << q << endl;\n\tcin.get();\n cin.get(); //????\n\treturn 0;\n}"} +{"label": "82", "index": "40567", "code": "\nint main()\n{\n\tint n,sp,dp,dur,h=0,max=0;//sp=systolic pressure,dp=diabolic pressure,dur=duration\n\tint i;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d%d\",&sp,&dp);\n\t\tif(sp>=90&&sp<=140&&dp>=60&&dp<=90){\n\t\t\th++;\n\t\t\tdur=h;\n\t\t}\n\t\telse\n\t\t\tdur=h=0;\n\t\tif(max>=dur)\n\t\t\tcontinue;\n\t\telse \n\t\t\tmax=dur;\n\t}\n\tprintf(\"%d\\n\",max);\n}"} +{"label": "82", "index": "40568", "code": "int main()\n{\nint i,n,shou[100],shu[100],time,m=0,t=0;\nscanf(\"%d\",&n);\nscanf(\"%d %d\",&shou[0],&shu[0]);\nif((shou[0]>=90)&&(shou[0]<=140)&&(shu[0]>=60)&&(shu[0]<=90)){\n m=1;\n t=1;\n }\nfor(i=1;i=90)&&(shou[i]<=140)&&(shu[i]>=60)&&(shu[i]<=90)){\n time=1;\n }\n else {\n time=0;\n }\n if((shou[i-1]>=90)&&(shou[i-1]<=140)&&(shu[i-1]>=60)&&(shu[i-1]<=90)){\n if(time==1){\n m=m+1;\n if(m>t){\n t=m;\n }\n }\n else {\n m=0;\n } \n }\n if((time==1)&&((shou[i-1]<90)||(shou[i-1]>140)||(shu[i-1]<60)||(shu[i-1]>90))){\n m=1;\n }\n}\n printf(\"%d\",t);\n return 0;\n}\n"} +{"label": "82", "index": "40569", "code": "int main()\n{\n\tint i,n,a[100],b[100],sum=0,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90 && a[i]<=140 && b[i]>=60 && b[i]<=90)\n\t\t{\n\t\t\tsum++;\n\t\t}\n\t\telse sum=0;\n\t\tif(sum>=max)\n\t\t\tmax=sum;\n\t}\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}\n\t\t\n"} +{"label": "82", "index": "40570", "code": "int main()\n{\n int a[100],b[100],n,i,c=0,d[100];\n scanf(\"%d\",&n);\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n c++;\n d[i]=0;\n}else{d[i]=c;\nc=0;}\n}\n for(i=0;id[i+1]){\n d[i+1]=d[i];\n}\n}\n if(d[n-1]>=c){\n printf(\"%d\\n\",d[n-1]);\n }else{\n printf(\"%d\\n\",c);\n }\n return 0;\n}"} +{"label": "82", "index": "40571", "code": "int main()\n{\n\tint n, high, low, k = 0, g = 0;\n\tcin >> n;\n\tfor (int i = 1; i <= n; i++)\n\t{\n\t\tcin >> high >> low;\n\t\tif (high <= 140 && high >= 90 && low <= 90 && low >= 60)\n\t\t\tk++;\n\t\telse\n\t\t{\n\t\t\tif (k > g)\n\t\t\t\tg = k;\n\t\t\tk = 0;\n\t\t}\n\t}\n\tif (k > g)\n\t\tg = k;\n\tcout << g << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40572", "code": "int main(){\nint y=0,x=0,n,i,a[100],b[100];\nscanf(\"%d\",&n);\nfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\nx++;\n}\nelse if(i!=n-1&&x>y){\ny=x;\nx=0;\n}\nelse if(i!=n-1&&y>=x){\nx=0;\n}\nelse if(i==n-1&&a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90&&yy){\ny=x;\n}\n}\nprintf(\"%d\",y);\nreturn 0;\n}"} +{"label": "82", "index": "40573", "code": "\nint main(){\n\tint sum=0,max=0;\n\tint pre[101][2];\n\tint n,i=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(pre[i][0]<=140)&&(pre[i][1]>=60)&&(pre[i][1]<=90)){\n\t\t\tsum++;\n\t\t\tif(sum>max){\n\t\t\t\tmax=sum;\n\t\t\t}\n\t\t}else{\n\t\t\tsum=0;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40574", "code": "void main()\n{\n\tint a[100][2],i,j=0,x=0,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(a[i][0]<=140)&&(a[i][1]>=60)&&(a[i][1]<=90))\n\t\t\tj++;\n\t\telse\n\t\t{\n\t\t\tif(x=90)&&(a[i][0]<=140)&&(a[i][1]>=60)&&(a[i][1]<=90)&&(x=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n m=1;\n }else {\n m=0;\n }\n if(m==0){\n if(temp>sum){\n sum=temp;\n }\n temp=0;\n }\n else {\n temp++;\n }\n }\n if(temp>sum){\n sum=temp;\n }\n printf(\"%d\",sum);\n return 0;\n}\n"} +{"label": "82", "index": "40576", "code": "int main()\n{\nint a[100];\nint b[100];\nint n,i,max,m;\nscanf(\"%d\\n\",&n);\nfor (i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\tm=m+1;\n\telse{ \n\t\tif (m>max){\n\t\t\tmax=m;\n\t\t}\n\tm=0;\n\t}\n}\nif (a[n-1]>=90&&a[n-1]<=140&&b[n-1]>=60&&b[n-1]<=90&&m>max)\nmax=m;\nprintf(\"%d\\n\",max);\nreturn 0;\n}"} +{"label": "82", "index": "40577", "code": "int main()\n{int n,i,count[1000]={0},max=0,t=0,m=0;\nscanf(\"%d\",&n);\nint g[n],d[n],z[n];\nfor(i=0;i=90&&g[i]<=140&&d[i]>=60&&d[i]<=90){\n z[i]=1;\n }else{\n z[i]=0;}\n}\nfor(i=0;imax){\n max=count[i];}\n}\nprintf(\"%d\",max);\nreturn 0;\n}\n \n "} +{"label": "82", "index": "40578", "code": "int main()\n{\n\tint a[100],b[100],n,c[100];\n\tint i,x=0,y=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\tx++;\n\t\telse{\n\t\t\tc[y]=x;\n\t\t\ty++;\n\t\t\tx=0;\n\t\t\t}\n\t}\n\tc[y]=x;\n\tint e,k;\n\tfor(k=1;k<=y+1;k++){\n\t\tfor(i=0;i140||sz2[i]<60||sz2[i]>90){\n\t\t\tsz[b]=i;\n\t\t\tb=b+1;\n\t\t}\n\t\t\n\t}\n\tif(n==1){\n\t\tif(b==2){\n\t\t\tprintf(\"0\");\n\t\t}\n\t\telse {printf(\"1\");}\n\t}\n\telse {\n\t\t\n\t\t\t\n\t\t\tsz[b]=n;\n\tif(b>1){\n\t\tc=b;\n\t\tfor(i=0;i=90&&s[i][0]<=140&&s[i][1]>=60&&s[i][1]<=90){\n\t\t\ta[m]++;\n\t\t}else{\n\t\t\tm++;\n\t\t}\n\t}\n\tb=a[0];\n\tfor(i=0;ib){\n\t\t\tb=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\",b);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40581", "code": "int main(){\n\tint n,a,b,i,j=0,k=0,l;\n\tint sz[100];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<100;i++){\n\t\tsz[i]=0;\n\t}\n\tfor(i=1;i<=n+1;i++){\n\t\tif(i<=n){\n\t\t\tscanf(\"%d %d\",&a,&b);\n\t\t}\n\t\tif(i==n+1){\n\t\t\ta=1;\n\t\t\tb=1;\n\t\t}\n\t\t\tif(a>=90&&a<=140&&b>=60&&b<=90){\n\t\t\tj++;\n\t\t}\n\t\telse if(j>=1){\n\t\t\tsz[k]+=j;\n\t\t\tk++;\n\t\t\tj=0;\n\t\t}\n\t}\n\tfor(l=0;l<=98;l++){\n\t\tif(sz[l+1]<=sz[l]){\n\t\t\t\t\t\ta=sz[l+1];\n\t\t\t\t\t\tsz[l+1]=sz[l];\n\t\t\t\t\t\tsz[l]=a;\n\t\t}\n\t}\n\tprintf(\"%d\",sz[99]);\n\treturn 0;\n}"} +{"label": "82", "index": "40582", "code": "int main()\n{int n,i,m,s,t;\n int a[100],b[100],c[100];\n for(i=0;i<100;i++){\n c[i]=0;}\n scanf(\"%d\",&n);\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n a[i]=1;}\n else{\n a[i]=0;}\n }\n m=0;\n s=0;\n for(i=0;it){\n t=c[i];}}\n printf(\"%d\",t);\n return 0;\n }\n"} +{"label": "82", "index": "40583", "code": "int main()\n{\n\tint bloodpressuremax[101];\n\tint bloodpressuremin[101];\n\tint lastingtime[101];\n\tlastingtime[1] = 0;\n\tint n , a = 1 ;\n\n\tcin >> n;\n\n\tfor (int i=1 ; i <=n ; i++)\n\t{\n\t\tcin >> bloodpressuremax[i];\n\t\tcin >> bloodpressuremin[i];\n\t\tif (bloodpressuremax[i] <= 140 && bloodpressuremax[i] >= 90 && bloodpressuremin[i] <= 90 && bloodpressuremin[i] >= 60)\n\t\t{\n\t\t\tlastingtime[a] = lastingtime[a] + 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta = a + 1;\n\t\t\tlastingtime[a] = 0;\n\t\t}\n\t}\n\n\tint maxtime = 0;\n\tfor (int j = 1; j <= a; j++)\n\t\tif (maxtime <= lastingtime[j])\n\t\t\tmaxtime = lastingtime[j];\n\n\tcout << maxtime << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40584", "code": "\n\nint main(){\n int t,n,sum,i;\n int ru[M][2];\n int m[M];\n sum=0;\n t=0;\n scanf(\"%d\\n\",&n);\n\n for(i=0;i89&&ru[i][1]<141&&ru[i][2]>59&&ru[i][2]<91){\n\t\t sum++;\n\t\t m[i]=sum;\n\t }else{\n\t\t m[i]=sum;\n\t\t sum=0;\n\t }\n }\n\n for(i=0;it){\n\t\t t=m[i];\n\t }\n }\n\n printf(\"%d\",t);\n\n\nreturn 0;\n}\n"} +{"label": "82", "index": "40585", "code": "int main(){\n\tint n,i,s=0,m,j[100];\n\tscanf(\"%d\",&n);\n\tstruct point\n\t{\n\t\tint a;\n\t\tint b;\n\t}\n\tc[100];\n\tfor (i=0;i=90 && c[i].a<=140 && c[i].b>=60 && c[i].b<=90){\n\t\t\ts++;\n\t\t\tj[i]=s;\n\t\t}else{\n\t\t\tj[i]=0;\n\t\t\ts=0;\n\t\t}\n\t}\n\tfor (i=1;i> n ;\n\tfor (i = 1 ; i <= n ; i++)\n\t{\n\t\tcin >> ss >> sz ;\n\t\tif ((ss >= 90) && (ss <= 140) && (sz >= 60) && (sz <= 90))\n\t\t{\n\t\t\ta[p] = a[p] + 1;\n\t\t}\n\t\telse \n\t\t{ \n\t\t\tp = p + 1;\n\t\t}\n\t}\n\t\tq = 0;\n\t\tfor (i = 0 ; i <= 99 ; i++)\n\t\t{\n\t\t\tif (a[i] > a[q]) \n\t\t\t{\n\t\t\t\tq = i ;\n\t\t\t}\n\t\t}\n\t\n\t\tcout << a[q] << endl ;\n\t\treturn 0 ;\n\t}\n"} +{"label": "82", "index": "40587", "code": "int ss[10000],sz[10000],xiaoshi[10000];\nint main(){\nint i,n,hour=0;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&(ss[i])<=140&&(sz[i])>=60&&(sz[i])<=90){\n hour++;\n xiaoshi[i]=hour;\n }\n else{\n hour=0;\n }\n} \n int e;\n for(int k=1;k<=n;k++){\n for(int i=0;i> n;\n\tx = 0;\n\tmax = 0;\n\tfor ( int i = 1; i <= n; i ++ )\n\t{\n\t\tcin >> a >> b;\n\t\tt = ( a >= 90 ) && ( a <= 140 ) && ( b >= 60 ) && ( b <= 90 );\n\t\tif ( t == 1 )\n\t\t{\n\t\t\tx = x + 1;\n\t\t\tif ( x >= max )\n\t\t\t\tmax = x;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( x >= max )\n\t\t\t\tmax = x;\n\t\t\tx = 0;\n\t\t}\n\t}\n\tcout << max;\n\treturn 0;\n}"} +{"label": "82", "index": "40589", "code": "\nint main(int argc, char *argv[])\n{int a[200],b[200],i,k,j;\nint n;\nint temp;\nint c[200]={0};\nscanf(\"%d\",&n);\nfor(i=0;i<2*n;i++)\n{scanf(\"%d\",&a[i]);\n }\n for(i=0;i=90&&a[2*i]<=140&&a[2*i+1]>=60&&a[2*i+1]<=90)\n b[i]=1;\n else\n b[i]=0; } \n for(k=0;kc[j+1])\n {temp=c[j];\n c[j]=c[j+1];\n c[j+1]=temp;}\n } \n printf(\"%d\\n\",c[n]); \n \n \n \n \n return 0;\n}"} +{"label": "82", "index": "40590", "code": "/**\n????6\n? ?????\n? ??10.26\n? ??????\n*/\n\nint main()\n{\n\tint n, t=0, hours;\n\tint p1, p2;\n\tcin >> n;\n\thours = t;\n\n\tfor(int i = 1;i <= n;i++)\n\t{\n\t\tcin >> p1 >> p2;\n\t\tif(p1 <= 140 && p1 >= 90 && p2 <= 90 && p2 >= 60)\n\t\t\tt++;\n\t\tif(p1 > 140 || p1 < 90 || p2 > 90 || p2 < 60)\n\t\t{ \n\t\t\tt=0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(t >= hours)\n\t\t\thours = t;\n\t}\n\tcout << hours << endl;\n\treturn 0;\n}\n\t\t\n\n\n"} +{"label": "82", "index": "40591", "code": "/*\n *???: 1.cpp\n *??????\n *????: 2012-10-15\n *??: ????????n??????????????????????????????\n */\n\n\nint main ()\n{\n int n = 0,iCounter = 1,iHour = 0,iResult = 0,iHigh = 0,iLow = 0;\n cin >> n;\n while (iCounter <= n)\n {\n cin >> iHigh >> iLow;\n if ((iHigh >= 90) + (iHigh <= 140) == 2 && (iLow >= 60) + (iLow <= 90) == 2)\n {\n iHour++; //???? ??????1\n if (iResult < iHour)\n iResult = iHour; //?????????\n }\n \n else iHour = 0; //?? ??????\n iCounter++;\n }\n cout << iResult << endl;\n return 0;\n}"} +{"label": "82", "index": "40592", "code": "int main(){\n\tint n,i,a,b,sz[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a<=140&&b<=90&&b>=60){\n\t\t\tsz[i]=1;\n\t\t}else{\n\t\t\tsz[i]=0;\n\t\t}\n\t}\n\tint k,c,d=0,m=0;\n\tfor(k=m;kd){\n\t\t\td=c;\n\t\t}\n\t}\n\tprintf(\"%d\",d);\n\treturn 0;\n}"} +{"label": "82", "index": "40593", "code": "int main(){\n\tint n,a,b,i,s[100]={0},k=0,j,t;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\ts[k]++;\n\t\t}\n\t\telse k++;\n\t}\n\tfor(i=1;is[j+1]){\n\t\t\t\tt=s[j+1];\n\t\t\t\ts[j+1]=s[j];\n\t\t\t\ts[j]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",s[k]);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40594", "code": "int main()\n { int n,a,b,sz[100],m=0,j=0,max=0,i;\n scanf(\"%d\\n\",&n);\n for(j=0;j<=99;j++)\n sz[j]=0;\n \n j=0;\n for(i=0;i<=n-1;i++)\n {scanf(\"%d %d\\n\",&a,&b);\n if(a>=90&&a<=140&&b>=60&&b<=90)\n { m=m+1;\n sz[j]=m;\n }\n else {j=j+1;\n sz[j]=0;\n j=j+1;\n m=0;}\n }\n \n for(j=0;j<=99;j++)\n {if(sz[j]>max)\n max=sz[j];}\n printf(\"%d\",max);\n return 0;\n}"} +{"label": "82", "index": "40595", "code": "\nint main()\n{\n\tint n,a,b,t;\n\tint s[100]={0},e[100]={0};\n\tint i,k=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&b>=60&&b<=90){\n\t\t\ts[i]=1;\n\t\t}\n\t}\n\tfor(i=0;ie[0])\n\t\t\t e[0]=e[i];\n\t}\n\tprintf(\"%d\",e[0]);\n\treturn 0;\n}"} +{"label": "82", "index": "40596", "code": "int main()\n{\n\tint n,a[100],b[100],c=0,sum=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=1;i<=n;i++)\n\t{\t\n\t\tscanf(\"%d %d\",&a[i],&b[i]);\n\t\tif(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tsum++;\n\t\t\tif(sum>c) c=sum;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tsum=0;\n\t\t\tcontinue;\n\t\t}\n\n\t}\n\tprintf(\"%d\",c);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40597", "code": "int main()\n{\nint n,m=0,k=0,b=0,i;\nint a[100][2];\nscanf(\"%d\",&n);\nfor(i=0;i<100;i++)\na[i][1]=0;\nfor(i=0;i=90&&a[i][1]<=140&&a[i][2]>=60&&a[i][2]<=90)\n{k=k+1;\n if(k>b) b=k;}\nelse\nk=0;\n}\nprintf(\"%d\",b);\nreturn 0;\n}"} +{"label": "82", "index": "40598", "code": "int main()\n{\n\tint n, i, m, b;\n\tscanf(\"%d\", &n);\n\tint a[2*n+2];\n\tfor(i=1; i<=2*n; i++)\n\t\tscanf(\"%d\", &a[i]);\n\tm=0;\n\tb=0;\n\tfor(i=1;i<=2*n;i=i+2)\n\t{\n\t\tif(a[i]>=90 && a[i]<=140 && a[i+1]>=60 && a[i+1]<=90)\n\t\t{\n\t\t\tm=m+1;\n\t\t\tif(m>b)\n\t\t\t\tb=m;\n\t\t}\t\n\t\telse\n\t\t\tm=0;\n\t}\n\tprintf(\"%d\", b);\n\n\treturn 0;\n\t\n}"} +{"label": "82", "index": "40599", "code": "int main()\n{\n\tint i,n,p1[100],p2[100],t[100],c=0,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(p1[i]<=140))&&((p2[i]>=60)&&(p2[i]<=90)))\n\t\t\t t[i]=1;\n\t\t else\n\t\t\t t[i]=0;\n\t}\n\tfor(i=0;imax)\n\t\t\t\t max=c;\n\t\t}\n\t\telse{\n\t\t c=0;\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40600", "code": "\n\nint main()\n{\n int n,i,m=0,a,b,max=0;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i=i+1){\n scanf(\"%d %d\",&a,&b);\n if(a>=90&&a<=140&&b>=60&&b<=90){\n m=m+1;\n }\n else{\n if(m>max){ max=m;}\n \n m=0;\n } \n \n \n \n }\n if(m>max){ max=m;} \n if(max==0){printf(\"%d\\n\",m);}\n \n \n else{printf(\"%d\\n\",max);}\n\t\n return 0;\n}\n"} +{"label": "82", "index": "40601", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int i,k,m,a[n],b[n],j[n];\n k=0; \n for(i=0;i=90&&a[i]<=140&&b[i]<=90&&b[i]>=60) j[k]++;\n else \n {\n k++;\n }\n }\n for(k=0;k=90&&b<=90&&b>=60){\n i++;\n if(k>i){k=k;}\n if(k<=i){k=i;}\n }\n else{\n i=0;}\n }\n printf(\"%d\",k);\n \n return 0;\n }\n \n "} +{"label": "82", "index": "40603", "code": "int main()\n{\t\nint n;\t\nscanf(\"%d\",&n);\t\nint x,y,a;\t\nint i=0,b=0;\t\nif(n==1)\t\n{\t \nscanf(\"%d %d\",&x,&y);\t \nif(x<90||x>140||y<60||y>90)\t \n {\t \n b=0; \n\t }\n\t else\t\n {\t \n b=1;\t \n }\t\n}\t\nelse\n\t{\t\n while(1)\t\n {\t \n i++;\t\t\nif(i==n+1)\t\n\t{\t\n\t a=n+1;\n\t\t b=n;\t\n\t break;\t\n\t}\t\t\nscanf(\"%d %d\",&x,&y);\t\n\tif(x<90||x>140||y<60||y>90)\t\n\t{\t\t\n a=i;\t\t\n b=a-b-1;\t\n\t break;\n\t\t}\n\t }\t \n while(i<=n&&i>=a)\t\n {\t\n i++;\n\t\tif(i==n+1)\n\t\t{\t\n\t if(n-a>b)\t\n\t {\t\t\n b=n-a;\t\t\n\tbreak;\t\t\n }\t\t else\t\n\t {\t\t b=b;\t\t\tbreak;\t\t }\t\t}\t\tscanf(\"%d %d\",&x,&y);\t\tif(x<90||x>140||y<60||y>90)\t\t{\t\t if(i-a-1>b)\t\t {\t\t b=i-a-1;\t\t\ta=i;\t\t }\t\t else\t\t {\t\t b=b;\t\t\ta=i;\t\t }\t\t}\t }\t}\tprintf(\"%d\",b);\treturn 0;}\n"} +{"label": "82", "index": "40604", "code": "int main()\n{int n,a[1000],b[1000],i,max=0,res=0;\ncin>>n;\nfor(i=1;i<=n;i++)\n {cin>>a[i]>>b[i];\n if(a[i]<=140&&a[i]>=90&&b[i]<=90&&b[i]>=60)\n max=max+1;\n else max=0;\n if(max>res) res=max;\n }\ncout<=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t c[i]=1;\n\t }else{c[i]=0;}\n }\n\n\n for(i=0;is2){s2=y;}\n\t\ty=0;\n\t }\n\n\n\t }else{continue;}\n }\n\n\n\n\n\tprintf(\"%d\",s2);\n\n\n\n\treturn 0;\n}\n"} +{"label": "82", "index": "40606", "code": "int main(void)\n{\n int n,h,l,i,j=0,k=0;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n {\n scanf(\"%d %d\",&h,&l);\n if((h<90)||(h>140)||(l<60)||(l>90)) j=0;\n if((h<=140)&&(h>=90)&&(l<=90)&&(l>=60)) \n {j++;\n if(j>=k) k=j;} \n \n }\n printf(\"%d\",k);\nreturn 0;\n}\n"} +{"label": "82", "index": "40607", "code": "//******************************\n//* ³ÌÐ\u00f2Ãû£ºÕý³£ÑªÑ¹ ** \n//* \u00d7\u00f7ÕߣºÀîÕæÒ» 1300012948 ** \n//* Ê\u00b1¼ä£º 2013.10.24 ** \n//******************************\nint main()\n{\n int n, shou, shu, p = 0, q = 0, k;\n cin >> n;\n for(int i = 1; i <= n; i++)\n {\n cin >> shou >> shu;\n k = ((shou >= 90)&&(shou <= 140)&&(shu >= 60)&&(shu <= 90));\n q += k;\n if(k == 0)\n {\n q = 0;\n continue;\n }\n p = p >= q ? p : q; \n \n }\n cout << p << endl;\n return 0;\n}"} +{"label": "82", "index": "40608", "code": "int main()\n{\n int n,m,i,j,f,e,d,k;\n int q[10000],p[10000];\n e=0;\n k=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&p[i]>=60&&p[i]<=90)e++;\n\t else e=0;\n\t if(k=90&&shousuo[i]<=140&&shuzhang[i]>=60&&shuzhang[i]<=90&&i=90&&shousuo[i]<=140&&shuzhang[i]>=60&&shuzhang[i]<=90&&i==n-1){\n\t\t\tj=j+1;;\n\t\t\tzanshi[i]=j;\n\t\t}\n\t\telse if(shousuo[i]<90||shousuo[i]>140||shuzhang[i]<60||shuzhang[i]>90){\n\t\t\tzanshi[i]=j;\n\t\t\tj=0;\n\t\t}\n\t}\n\tfor(i=0;izanshi[i+1]){\n\t\t\te=zanshi[i];\n\t\t\tzanshi[i]=zanshi[i+1];\n\t\t\tzanshi[i+1]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",zanshi[n-1]);\n\treturn 0;\n}"} +{"label": "82", "index": "40610", "code": "//********************************\n//*????5.cpp **\n//*??????? **\n//*?????? 1200012834 **\n//*???2012.10.14 **\n//********************************\n\nint main()\n{\n\tint n,i,j; // ?? \n\tcin >> n;\n\tint a[n],b[n],c[n],max;\n\tfor(i=0;i> a[i] >> b[i];\n\tfor(i=0;i=90 && a[i]<=140 && b[i]>=60 && b[i]<=90)\n c[i]=1; \n for(j=i+1;j=90 && a[j]<=140 && b[j]>=60 && b[j]<=90)\n c[i]++;\n else break;\n }\n }\n max=c[0];\n for(i=1;imax)\n max=c[i]; \n cout << max << endl;\n return 0;\n}\n"} +{"label": "82", "index": "40611", "code": "\nint main()\n{\n\tint i=0, j=0, n, cnt=0, max=0, a[101][2];\n\tcin >> n;\n\tfor (int i=0; i> a[i][j];\n\tfor (int i=0; i=90 && a[i][1]<=90 && a[i][1]>=60 )\n\t\t\tcnt++;\n\t\telse\n\t\t\tcnt = 0;\n\t\tif (max=90)&&(sou[i]<=140)&&(su[i]>=60)&&(su[i]<=90))\n {\n a++;\n h[i]=a;\n }else{\n h[i]=0;\n a=0;\n }\n m=h[0];\n for(i=0;i>n;\n int k=0;\n int i;\n for(i=1;i<=n;i++)\n scanf(\"%d %d\",&p[i].x,&p[i].y); \n for(i=1;i<=n;i++)\n { \n if(p[i].x>=90&&p[i].x<=140&&p[i].y<=90&&p[i].y>=60)\n k++;\n else k=0;\n \n if(max<=k)\n max=k; \n } \ncout<> n;\n\t \n\tfor(int i = 0; i < n; i ++) //?????? \n\tcin >> shousuo[i] >> shuzhang[i];\n\t\n\tfor(int j = 0; j < n; j ++) //?????count++?????result?????result \n\t{\n\t\tif(shousuo[j] >= 90 && shousuo[j] <= 140 && shuzhang[j] >= 60 && shuzhang[j] <= 90)\n\t\t{\n\t\t\tcount ++;\n\t\t\t\n\t\t\tif(count > result)\n\t\t\tresult = count;\n\t\t}\n\t\t\n\t\telse //??????count=0?????result?????result \n\t\t{\n\t\t\tif(count >= result)\n\t\t\tresult = count;\n\t\t\t\n\t\t\tcount = 0;\n\t\t}\n\t}\n\t\n\tcout << result << endl;\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40615", "code": "int main(){\n int n,a,b,d,s[1000],c[1000];\n\tscanf(\"%d\",&n);\n\tfor(a=0;a=90&&b<=140&&d>=60&&d<=90){s[a]=1;c[a+1]=c[a]+s[a];}else{s[a]=0;c[a+1]=0;}\n\t}\n\tint e,k,i;\n\tfor(i=1;i<=a+1;i++){\n\t\tfor(k=0;kc[k+1]){e=c[k];c[k]=c[k+1];c[k+1]=e;}\n\t\t}\n\t}\n printf(\"%d\",c[a]);\n\treturn 0;\n}"} +{"label": "82", "index": "40616", "code": "int main()\n{\n\tint n,a[101],b[101],c[101],i,j,s;\n\ti=1;\n\tj=0;\n\tscanf(\"%d\",&n);\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d%d\",&a[i],&b[i]);\n\t\tif(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tj=j+1;\n\t\t\tc[i]=j;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc[i]=j=0;\n\t\t}\n\t\ti++;\n\t}\n\ts=c[1];\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(s=90&&l<=140&&r>=60&&r<=90){\n\t\t\ts[z]++;\n\t\t}else{\n\t\t\tz++;\n\t\t}\n\t}\n\tif(l>=90&&l<=140&&r>=60&&r<=90){\n\t\tz++;\n\t}\n\tfor(i=0;i=60 && szlarge[i]<=140 && szlarge[i]>=90)\n\t\t{\n\t\t\tsz[i]=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsz[i]=0;\n\t\t}\n\t}\n\twhile(1)\n\t{\t\n\t\tk=0;\n\t\tfor(i=m;imaxk)\n\t\t\t\t{\n\t\t\t\t\tmaxk=k;\n\t\t\t\t}\n\t\t\t\tif(m==n)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(sz[m]==0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif(m==n||i==n)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tprintf(\"%d\",maxk);\n\treturn 0;\n} \n"} +{"label": "82", "index": "40619", "code": "int main()\n{\n\tint n,j,i,max,f[100],g[100],k[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&f[i]<=140&&g[i]>=60&&g[i]<=90)\n\t\t{\n\t\t\tj=j+1;\n\t\t\tk[i]=j;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tk[i]=j;\n \t\t\tj=0;\n\t\t}\n\t}\n\tfor(i=0;ik[max])\n\t\t{\n\t\t\tmax=i;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",k[max]);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40620", "code": "int main()\n{\n\tint i,j,M,m,min[120],max[120],n;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d %d\",&min[i],&max[i]);\n\t}\n\tm=1;\n\tint jieguo[120]={0};\n\tfor(i=1;i<=n;i++){\n\t\tif(min[i]>=90&&min[i]<=140&&max[i]>=60&&max[i]<=90){\n\t\t\tjieguo[m]=1;\n\t\t\tfor(j=1;(i+j)<=n;j++){\n\t\t\t\tif(min[i+j]>=90&&min[i+j]<=140&&max[i+j]>=60&&max[i+j]<=90){\n\t\t\t\t\tjieguo[m]++;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tm++;\n\t\t}\n\t}\n\tM=jieguo[1];\n\tfor(i=2;i<=100;i++){\n\t\tif(jieguo[i]>=M){\n\t\t\tM=jieguo[i];\n\t\t}else{\n\t\t\tcontinue;\n\t\t}\n\t}\n\tprintf(\"%d\",M);\n\treturn 0;\n}\n\n\t\t\n"} +{"label": "82", "index": "40621", "code": "int main()\n{\n\tint n,i,k,j,e;\n\tk=0;\n\tint shou[100],shu[100];\n\tint sz[100];\n\tfor(j=0;j<100;j++){\n\t\tsz[j]=0;\n\t}\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&shou[i]<=140&&shu[i]>=60&&shu[i]<=90){\n\t\t\tsz[k]=sz[k]+1;\n\t\t}\n\t\telse{k=k+1;\n\t\t}\n\t}\n\tfor(j=0;jsz[j+1]){\n\t\t\te=sz[j];\n\t\t\tsz[j]=sz[j+1];\n\t\t\tsz[j+1]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",sz[k]);\n\treturn 0;\n\n\t\n\t\n\n\n}"} +{"label": "82", "index": "40622", "code": "int main()\n{\n\tint n,a[100],b[100],c[100],s=0,i,d=0;\n\tcin >> n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif(a[i]>=90 && a[i]<=140 && b[i]>=60 && b[i]<=90)\n\t\t{\n\t\t\ts = s + 1;\n\t\t\tc[i] = s;\n\t\t}\n\t\telse \n\t\t{\n\t\t\ts = 0;\n\t\t\tc[i]=0;\n\t\t}\n\t\tif(d<=c[i]) d=c[i];\n\t}\n cout << d << endl;\nreturn 0;\n}"} +{"label": "82", "index": "40623", "code": "int main()\n{\n int n,x,y,i=1,k=0,l=0;\n scanf(\"%d\",&n);\n while(i<=n)\n {\n scanf(\"%d%d\",&x,&y);\n if(x>=90&&x<=140&&y>=60&&y<=90)\n k++;\n else\n k=0;\n if(k>l)\n l=k;\n i++;\n }\n printf(\"%d\",l);\n scanf(\"%d\",&n);\n return 0;\n}"} +{"label": "82", "index": "40624", "code": "int main(){\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tint a[100],b[100];\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tc[i]=1;\n\t\t}else{\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tint t=0,q=0;\n\tint d[100]={0};\n\tfor(i=0;i=90&&min[i]>=60&&min[i]<=90)\n\t\t{\n\t\t\tt++;\n\t\t}\n\t\telse\n\t\t\tt=0;\n\t\tif(t>=tr)\n\t\t\ttr=t;\n\t}\n\tprintf(\"%d\",tr);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40626", "code": "int main()\n{\nint n,a,b,i,j,t;\nj=0;\nt=0;\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i=i+1)\n {\n scanf(\"%d %d\",&a,&b);\n if((a>=90&&a<=140)&&(b>=60&&b<=90))\n {\n j=j+1;\n }\n else\n {\n if(t=90&&a<=140&&b>=60&&b<=90)\n\t{\n\t\ts=s+1;\n\t}\n\telse\n\t{\n\t\tif(s>=l)\n\t\t{\n\t\t\tl=s;\n\t\t\ts=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t s=0;\n\t\t}\n\t}\n}\nif(l>=s)\nprintf(\"%d\\n\",l);\nelse\nprintf(\"%d\\n\",s);\n}\n\n"} +{"label": "82", "index": "40628", "code": "int main(){\n int n,r,i,p,q;\n int high[100];\n int low[100];\n r=0;\n q=0;\n p=-1;\n scanf(\"%d\",&n);\n for(i=0;i=90&&high[i]<=140&&low[i]>=60&&low[i]<=90){\n if(i-p==1){\n q=q+1;\n p=i;\n }\n \n }else{ \n if(r>a>>b;\n if(a>=90&&a<=140&&b>=60&&b<=90)\n r++;\n else {\n if(r>v)\n v=r;\n r=0;\n }\n}\nint main()\n{\n int a,i,b,z,t=0,c=0,d[4]={0};\n double m,n=0;\n char s[100];\n cin>>b;\n for(i=0;ir?v:r)<>n;\n int a[n],b[n],c[n],d[n];\n for(int i=0;i>a[i]>>b[i];\n if(a[i]<141&&a[i]>89&&b[i]<91&&b[i]>59)\n c[i]=1;\n else\n c[i]=0;\n }\n for(int m=0;md[0])d[0]=d[q];}\n cout<>n;\n\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>shousuo[i]>>shuzhang[i];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif((shousuo[i]>=90)&&(140>=shousuo[i])&&(shuzhang[i]>=60)&&(90>=shuzhang[i]))\n\t\t{\n\t\t\tt++;\n\t\t\tshijian[i]=t;\n\t\t}\n\t else \n\t\t{\t\n\t\t\tshijian[i]=t=0;\n\t\t}\n\t}\n\tmax=shijian[1];\n for(i=1;i<=n;i++)\n\t{\n\t if(max=90&&b[i]<=90&&b[i]>=60)\n\t\t\t{\n\t\t\t\th++;\n\t\t\t\tc[l]=h;\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\tif(a[i]<=140&&a[i]>=90&&b[i]<=90&&b[i]>=60)\n\t\t\th++;\n\t\telse\n\t\t{\n\t\t\tc[l]=h;\n\t\t\th=0;\n\t\t\tl++;\n\t\t}\n\t\t}\n\t}\n\tfor(i=0;imax)\n\t\t\tmax=c[i];\n\t}\n\tprintf(\"%d\",max);\n}"} +{"label": "82", "index": "40633", "code": "int main()\n{\n\tint n;\n\tint temp=0;\n\tscanf(\"%d\",&n);\n\tint count=0;\n\tint sz[100][2];\n\tint pd[100]={0};\n\tfor(int i=0;i=90)&&(sz[k][0]<=140)&&(sz[k][1]>=60)&&(sz[k][1]<=90))\n\t\t{\n\t\t\tpd[k]=1;\n\t\t}\n\t\t\n\t}\n\tfor(int l=0;ltemp)\n\t\t\t{\n temp=count;\n\t\t\t}\n\t\t \n\t\t count=0;\n\t\t}\n\t}\n\tif(count>temp)\n\t{\n\t\ttemp=count;\n\t}\n\tprintf(\"%d\",temp);\n\n\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40634", "code": "\nint main(){\n int n,i,j,s;\n int a[100];\n int b[100];\n int d[100];\n char c;\n scanf(\"%d\",&n);\n for(i=0;i=90&&b[i]<=90&&b[i]>=60)\n {d[j]++;}\n else{j++;}\n }\n s=d[0];\n for(j=0;js)\n {s=d[j];}\n }\n printf(\"%d\",s);\n \n return 0;\n}"} +{"label": "82", "index": "40635", "code": "int main()\n{\n\tint n,i,j,k;\n\tint a[200];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<2*n;i=i+2)\n\t\tscanf(\"%d %d\",&a[i],&a[i+1]);\n\tprintf(\"\\n\");\n\tfor(i=0,j=0,k=0;i<2*n;i=i+2)\n\t{\n\t\tif(a[i]>=90&&a[i]<=140&&a[i+1]>=60&&a[i+1]<=90)\n\t\t\tj=j+1;\n\t\telse\n\t\t{\n\t\t\t{if(j>k)\n\t\t\t\tk=j;}\n\t\t\tj=0;\n\t\t}\n\t}\n\tif(j>k)\n\t\tk=j;\n\n\tprintf(\"%d\\n\",k);\n\n\t\n\treturn 0;\n\n}"} +{"label": "82", "index": "40636", "code": "int main() {\n\tint a[101],b[101],c[101],n,i,e=1,f=0,g,h;\n\tscanf(\"%d\",&n);\n\t\n\tfor (i=1;i<=n;i++){\n\t\tscanf(\"%d %d\",&a[i],&b[i]);\n\t}\n\tfor(i=1;i<=101;i++){\n\t\tc[i]=0;\n\t}\n\tfor (i=1;i<=n;i++){\n\t\tif(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90) {\n\t\t\tf++;\n\t\t c[e]=f;\n\t\t}\n\t\telse { \n\t\t\t\te++;\n\t\t\t\tf=0;\n\t\t\n\t\t}\n\t}\n\t\tfor(g=e-1;g>=1;g--){\n\t\t\tif (c[g]=90&&sz[i]<=140&&sz[(i+1)]<=90&&sz[(i+1)]>=60){\n\t\t\tx++;\n\t\t}else{\n\t\t\tif(x>=c){\n\t\t\tc=x;\n\t\tx=0;\n\t\t}\n\t\t\tx=0;\n\t}\n\t}\n\tif(x>=c){\n\t\t\tc=x;\n\t\tx=0;\n\t}\n\t\tprintf(\"%d\", c);\n\t\treturn 0;\n\n\t}\n"} +{"label": "82", "index": "40638", "code": "int main()\n{\n\tint a,b,c,d,i,n;\n\td=0;\n\tc=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d%d\",&a,&b);\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90){\n\t\t\tc++;\n\t\t\tif(c>=d){d=c;\n\t\t\t}\n\t\t}\n\t\telse{c=0;}\n\t}\n\tprintf(\"%d\",d);\n\treturn 0;\n\n}"} +{"label": "82", "index": "40639", "code": "int main(){\nint n,b,sz[100],s[100],z[100];\nscanf(\"%d\",&n);\nint a=0;\nint k=0;\nfor(int k=0;k<100;k++){\nz[k]=0;\n}\nfor(int i=0;i=90&&s[i]<=90&&s[i]>=60){z[k]++;\n\t}else{\n\tk++;\n\t}\n}\nfor(int k=0;k<100;k++){if(z[k]>z[k+1]){\n\t\tb=z[k+1];\n\t\tz[k+1]=z[k];\n\t\tz[k]=b;\n\t}\n}\nprintf(\"%d\",z[99]);\nreturn 0;\n}"} +{"label": "82", "index": "40640", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tint high[101], low[101], time = 0, continuous[101], max = 0;\n\tfor(int i = 1; i <= n; i ++)\n\t{\n\t\tcin>>high[i]>>low[i];\n\t}\n\tfor(int j = 1; j <= n; j++)\n\t{\n\t\tif(high[j] >= 90 && high[j] <= 140 && low[j] >= 60 && low[j] <= 90)\n\t\t{\n\t\t\ttime ++;\n\t\t\tcontinuous[j] = time;\n\t\t}\n\t\telse\n\t\t\tcontinuous[j] = time = 0;\n\t}\n\tmax = continuous[1];\n\tfor (int k = 1; k <= n; k++)\n\t{\n\t\tif(max < continuous[k])\n\t\t\tmax = continuous[k];\n\t}\n\tcout<=90&&a[i]<=140)&&(b[i]>=60&&b[i]<=90)){\n\t\tt++;\n\t\t}\n\t\telse{\n\t\t\tt=0;\n\t\t}\n\t\tif(t>max){\n\t\tmax=t;\n\t\t}\n\t}\n\tprintf(\"%d\",max);\nreturn 0;\n}\n"} +{"label": "82", "index": "40642", "code": "int main(){\n\tint a[100][2],b[100];\n\tint i,j;\n\tint h=0;\n\tint n;\n\tint k=0;\n\tint e;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(a[i][0]<=140)&&(a[i][1]>=60)&&(a[i][1]<=90)){\n\t\t\th+=1;\n\t\t}else{\n\t\t\tb[k]=h;\n\t\t\tk+=1;\n\t\t\th=0;\n\t\t}\n\t}\n\tif((a[n-1][0]>=90)&&(a[n-1][0]<=140)&&(a[n-1][1]>=60)&&(a[n-1][1]<=90)){\n\t\tb[k-1]=h;\n\t}\n\tfor(i=0;ib[i+1]){\n\t\t\te=b[i+1];\n\t\t\tb[i+1]=b[i];\n\t\t\tb[i]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",b[k-1]);\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40643", "code": "int main()\n{\n int n,a=0,b=0,c;\n scanf(\"%d\",&n);\n int num[n][2],dnum[n];\n for(int i=0;i=90&&num[i][1]>=60&&num[i][1]<=90)\n {\n a++;\n }\n else\n {\n \n dnum[b]=a;\n b++;\n a=0;\n }\n \n }\n dnum[b]=a;\n\n for(int i=0;idnum[j])\n {\n c=dnum[j-1];\n dnum[j-1]=dnum[j];\n dnum[j]=c;\n }\n }\n }\n \n printf(\"%d\",dnum[b]);\n return 0;\n}\n"} +{"label": "82", "index": "40644", "code": "int main()\n{\n\tint a,b,T,i,j=0,k,K=0;\n\tscanf(\"%d\",&T);\n\t\n for(i=0;i=60&&a>=90&&a<=140)\n\t { \n\t\t j=j+1;\n\t\t k=j;\n if (K=90)&&(m<=140)&&(n>=60)&&(n<=90))\n\t{\n\t\t\ta++;\n\t\tb=a;}\n\t\telse\n\t\t{a=a;\n\t\tb=a;\n\t\tif(b!=0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\t}\n\tint y=i;\n for(i=y;i=90)&&(m<=140)&&(n>=60)&&(n<=90))\n\t{\n\t\t\tc++;}\n\t\telse c=0;\n\t\tif(c>b)\n\t\t{b=c;}\n\t}\n\tprintf(\"%d\",b);\n\treturn 0;\n\t}"} +{"label": "82", "index": "40646", "code": "int Ok(int a,int b);\nint max(int a[],int n);\nint n,high[100],low[100],length[100];\nint main()\n{\n int i,t=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<100;i++)\n\t\tlength[i]=0;\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90;\n\t}\nint max(int a[],int n)\n{\n\tint i,MAX;\n\tMAX=*a;\n\tfor (i=1;i=90)&&(d<=140)&&(x>=60)&&(x<=90))\n sz[i]=1;\n\t else sz[i]=0;\n\t }\n for(i=0;iq)\n\t\t q=k[i];\n\t }\n\t printf(\"%d\",q);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40648", "code": "int main(){\n int n,i,x=0,c=0;\n int num[100];\n scanf(\"%d\",&n);\n struct xueya{\n int a;\n int b;\n }xy[100];\n for(i=0;inum[i+1]){\n d=num[i+1];\n num[i+1]=num[i];\n num[i]=d;\n }\n }\n }\n printf(\"%d\\n\",num[c-1]);\nreturn 0;\n}\n\n"} +{"label": "82", "index": "40649", "code": "int main(){\n int x,a,b;\n\tscanf(\"%d\",&x);\n\tint y=0;\n\tint max=0;\n\tfor(int i=0;i=90&&a<=140&&b>=60&&b<=90){y++;\n\tif(y>=max){max=y;}\n\t}\n\n\telse{y=0;}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40650", "code": "int main(){\n\tint n,i,j,s,t=0,m,max=0,a,b;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tt++;\n if(t>max){\n\t\t\t max=t;\n\t\t\t}\n\t\t}else{\n\t\t\tt=0;\n\t\t}\n\t}printf(\"%d\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40651", "code": "//********************************\n//*??????? **\n//*?????? 1300012713 **\n//*???2013.10.24 **\n//********************************\nint main() \n{\n\tint m = 0, p = 0, n, a, b; // ???????m,p,????n????a????b\n\tcin >> n; //??????n\n\tfor (int i = 1; i <= n; i++) //?????\n\t{\n\t\tcin >> a >> b; //?????a????b\n\t\tif(a >= 90 && a <= 140 && b >= 60 && b <=90) //????????\n\t\t\tm = m + 1; //??????\n\t\telse //??\n\t\t{\n\t\t\tif (p == 0) //??p???????????m\n\t\t\t\tp = m;\n\t\t\telse if (p > 0 && p < m) //??p??????m???m??\n\t\t\t\tp = m;\n\t\t\tm = 0; //m??\n\t\t}\n\t}\n\tif (p < m) //??p?m \n\t\tp = m;\n\tcout << p << endl; //?????\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40652", "code": "int main()\n{\n struct\n {\n int x;\n int y;\n } sz[100];\n int n,i,a=0,b=0,cs[100],max;\n scanf(\"%d\",&n);\n for(i=0;i=90&&sz[i].x<=140&&sz[i].y>=60&&sz[i].y<=90)\n {\n a+=1;\n if(i==n-1)\n {\n max=a;\n }\n }\n else\n {\n cs[b]=a;\n a=0;\n b+=1;\n if(i==n-1)\n {\n max=cs[0];\n }\n }\n }\n for(i=0;imax)\n max=cs[i]; \n }\n printf(\"%d\",max);\n return 0;\n}\n\n"} +{"label": "82", "index": "40653", "code": "int main(){\n\tint n,ss,sz,i,sc[100],e,k;\n\tfor(i=0;i<100;i++){\n\t\tsc[i]=0;\n\t}\n\te=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(ss<=140)&&(sz>=60)&&(sz<=90)){\n\t\t\tsc[e]++;\n\t\t}\n\t\telse{\n\t\t\te++;\n\t\t}\n\t}\n\tfor(e=0;e<100;e++){\n\t\tfor(i=0;i<99;i++){\n\t\t\tif(sc[i]> n ;\n\tfor ( i = 1 ; i <= n ; i++ )\n\t{\n\t\tcin >> a >> b ;\n\t\tif ( (a >= 90) && (a <= 140) && (b >= 60) && (b <= 90) )\n\t\t{\n\t\t\tt = t + 1;\n\t\t\tif ( i < n )\n\t\t\tcontinue ;\n\t\t\telse if ( t > l )\n\t\t\t{\n\t\t\t\tl = t ;\n\t\t\t\tbreak ;\n\t\t \t}\n\t\t\telse\n\t\t\tbreak ;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif ( t > l )\n\t\t\t{\n\t\t\t\tl = t ;\n\t\t\t\tt = 0 ;\n\t\t\t}\n\t\t\telse \n\t\t\t\tt = 0 ;\n\t\t}\n\t}\n\tcout << l << endl ;\n\treturn 0 ;\n}"} +{"label": "82", "index": "40655", "code": "\nint main()\n{\n int n;\n \n scanf(\"%d\", &n);\n \n int *normal = (int *) malloc(sizeof(int) * n);\n \n int hi, lo;\n \n int i;\n \n int max = 0;\n int len;\n int previous = -1;\n \n for(i = 0; i <= n - 1; i++)\n {\n scanf(\"%d %d\", &hi, &lo);\n if( (lo >= 60) && (lo <= 90) && (hi >= 90) && (hi <= 140) )\n {}\n else\n {\n len = i - previous - 1;\n previous = i;\n if(len > max)\n max = len;\n }\n }\n \n i = n;\n len = i - previous - 1;\n if(len > max)\n max = len;\n \n printf(\"%d\", max);\n \n \n \n return 0;\n}\n\n"} +{"label": "82", "index": "40656", "code": "int main(){\n\tint n,a=0;\n\tint ew[100][2];\n\tint z[100];\n\tint s[100];\n\tint i,j,k=0;\n\tint max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d%d\",&ew[i][0],&ew[i][1]);\n\t\tif(((ew[i][0]<=140)&&(ew[i][0]>=90))&&((ew[i][1]<=90)&&(ew[i][1]>=60))){\n\t\t\tz[i]=1;\n\t\t}\n\t\telse\n\t\t\tz[i]=0;\n\n\n\t}\n//\tfor(i=0;i<=n-1;i++){\n//\t\tprintf(\"%d\",z[i]);\n//\t}\n\ts[0]=0;\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\n\t\tif(z[i]==1){\n\t\t\ts[k]++;\n\t\t}\n\t\telse{\n\t\t\tk++;\n\t\t\ts[k]=0;\n\t\t}\n\t\n\t}\n//\tprintf(\"%d\",s[1]);\n\tfor(i=0;i<=k;i++){\n\t\tif(s[i]>=max){\n\t\t\tmax=s[i];\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\n\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40657", "code": "int main()\n{\t\n\tint n=0;\n\tscanf(\"%d\",&n);\n\tint i=0,hour=0,j=0,max=0;\n\tint a[100]={0},b[100]={0},c[100]={0};\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\tc[i]=1;\n\t}\n\tfor(i=0;imax)\n\t\t\tmax=hour;\n\t\thour=0;\n\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40658", "code": "int main(){\n\tint x,y;\n\tint n;cin >> n;\n\tint m = 0,count = 0;\n\twhile(n--){\n\t\tcin >> x >> y;\n\t\tif(x >= 90 && x <= 140 && y >= 60 && y <= 90){\n\t\t\tcount ++;\n\t\t\tm = max(m,count);\n\t\t} else {\n\t\t\tcount = 0;\n\t\t}\n\t}\n\tcout << m << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40659", "code": "int main(){\n int n,i,j,c=0;\n scanf(\"%d\",&n);\n int SZ[n][2];\n int a[1000]={0};\n for(i=0;i=90&&SZ[i][0]<=140&&SZ[i][1]>=60&&SZ[i][1]<=90){\n a[c]=a[c]+1;\n }else{\n c=c+1;\n }\n } \n int tmp=0;\n for(i=0;ii;j--){\n if(a[i]>a[j]){\n tmp=a[j];\n a[j]=a[i];\n a[i]=tmp;\n }\n }\n }\n printf(\"%d\",a[n-1]);\n return 0;\n}\n\n\n\n\n\n\n\n\n\n"} +{"label": "82", "index": "40660", "code": "int main()\n{\n\tint n,i,max=0;\n\tint x=0;\n\tint sz[100],sc[100];\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i=90&&sz[i]<=140&&sc[i]>=60&&sc[i]<=90){\n\t\t x=x+1;\n\t\n\t\t\t }\n\t\t\t else{\n\t\t if(x>max){\n\t\t\t\t max=x;\n\t\t\t\t x=0;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tx=0;\n\t\t\t\t}\n\t\t\t\n\t\t\t }\n\t\t\t \n\t\t}\n \n\t\tif(x>max){\n\t\t\tmax=x;\n\t\t}\n\n printf(\"%d\",max);\n\t\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40661", "code": "\nint main()\n{\n int n, ai, bi, sum=0, num[100];\n cin >> n;\n for (int j=0; j> ai >> bi;\n if(ai>=90 & ai<=140 & bi>=60 & bi<=90 )\n sum = sum + 1;\n \n else \n sum = 0;\n \n num[j] = sum; \n }\n \n if(n<=1) \n cout << sum << endl;\n else\n { for (int j=1; j=90)&&(sz[i]<=90)&&(sz[i]>=60)){\n s++;\n xs[t]=s;}\n else {s=0;\n t++;}\n }\n l=t;\n h=xs[0];\n for(t=0;t<=l;t++){\n if(h<(xs[t]))\n h=xs[t];\n } \n printf(\"%d\",h); \n return 0;\n}\n"} +{"label": "82", "index": "40663", "code": "int main()\n{\n\tint n,a[100],b[100],i;\n\tscanf(\"%d\",&n);\n\tint max = 0, cur = 0;\n\tfor(i=0;i=90 && a[i] <= 140 && b[i] >= 60 && b[i] <= 90) {\n\t\t\tcur++;\n\t\t}\n\t\telse cur = 0;\n\t\tif (cur > max) max = cur;\n\t}\n\n\tprintf(\"%d\", max);\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40664", "code": "int main()\n{\n int n,a,b,i,x,y;\n scanf(\"%d\",&n);\n x=0;\n y=0;\n i=1;\n while(i<=n)\n {\n scanf(\"%d %d\",&a,&b);\n if(a<=140&&a>=90&&b<=90&&b>=60)\n {\n x=x+1;\n if(y> n;\n int i;\n int lowPressure,highPressure;\n int maxContinueNormalHours = 0;\n int continueNormalHours = 0;\n for (i = 0; i < n; i++) {\n cin >> highPressure >> lowPressure;\n if ((highPressure >= 90)&&(highPressure <= 140)&&(lowPressure >= 60)&&(lowPressure <= 90)) {\n continueNormalHours ++;\n if (continueNormalHours > maxContinueNormalHours) {\n maxContinueNormalHours = continueNormalHours;\n }\n }\n else\n continueNormalHours = 0;\n }\n cout << maxContinueNormalHours;\n}"} +{"label": "82", "index": "40666", "code": "int main()\n{\n\tint n, i;\n\tint time=0, max=0;\n\tcin >> n;\n\tint a[100], b[100];\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t if(a[i]>=90 && a[i]<=140 && b[i]>=60 && b[i]<=90)\n\t\t{\n\t\t\ttime=time+1;\n\t\t\tif(max> n; //??n\n for(i = 1; i <= n; i++)\n {\n cin >> x >> y;\n if(((x - 90) >= 0) && ((x - 140) <= 0) && ((y - 60) >= 0) && ((y - 90) <= 0)) //??????\n {\n t = t + 1; //????t?1????????????\n\n }\n else\n {\n t = 0; //?????t??\n }\n if(b <=t)\n b = t; //b?????????\n }\n cout << b << endl; //??b\n return 0;\n}\n"} +{"label": "82", "index": "40668", "code": "//***********************************\n//*?????? 1300012809 **\n//*???2013.10.25 **\n//*??????? **\n//***********************************\nint main()\n{\n int n,i,time,jishu; \n\tcin >> n;\n\ttime=0;\n\tjishu=0;\n\tfor (i=1;i<=n;i++) //??n???\n\t{\n\t\tint a,b;\n\t\tcin >> a >> b ;\n\t\tif ((a<90||a>140||b<60||b>90)&&jishu<=time) jishu = time; //?????????\n\t\tif (a>=90&&a<=140&&b>=60&&b<=90) //??????????\n\t\t{\n\t\t\ttime = time+1;\n\t\t\t\t\t}\n else \n\t\t{\n\t\t\ttime = 0; //????????????\n\t\t}\n\t\tif (jishu= 90 ) * ( hi <= 140 ) * ( lo <= 90 ) * ( lo >= 60 ) == 1 )\n\t\t time = time + 1;\n else \n {\n if( time > max )\n max = time;\n time = 0;\n }\n \n if( i == n && time > max)\n max = time;\n \n \n }\n \n \n printf(\"%d\", max);\n \n \n return 0;\n \n \n }\n\n\n\n\t\n"} +{"label": "82", "index": "40670", "code": "int main()\n{\n\tint n,a,b,p,c;\n int d=0;\n\tint i=0;\n\tint max(int x,int y);\n\tscanf(\"%d\",&n);//????n\n\tfor(p=1;p<=n;p++)\n\t{\n\t\tscanf(\"%d %d \",&a,&b);//????\n\t\tif(90<=a&a<=140)\n\t\t{\n\t\t\tif(60<=b&b<=90)\n\t\t\t{\n\t\t\t\ti=i+1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti=0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\ti=0;\n\t\t}\n\t\tc=i;\n\t\td=max_int(d,c);\n\t}\n\tprintf (\"%d\\n\",d);\n\treturn 0;\n}\nint max_int(int x,int y)\n{\n\tint z;\n\tif(x>y)\n\t{\n\t\tz=x;\n\t}\n\telse\n\t{\n\t\tz=y;\n\t}\n\treturn(z);\n}"} +{"label": "82", "index": "40671", "code": "int main(){\n\tint n,i,j,a,b,k[100],m,l;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<100;i++){k[i]=0;}\n\tm=0;\n\tfor(i=0;i=90&&a<=140)&&b>=60&&b<=90){\n\t\t\tk[m]++;\n\t\t}\n\t\telse m++;\n\t}\n\tfor(i=1;i<=m;i++){\n\t\tfor(j=0;j<=m-i;j++){\n\t\t\tif(k[j]>k[j+1]){\n\t\t\t\tl=k[j];\n\t\t\t\tk[j]=k[j+1];\n\t\t\t\tk[j+1]=l;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",k[m]);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40672", "code": "/**\n * @file 6.cpp\n * @author ??? 1300012960\n * @date 2013-10-23\n * @description\n * ??????: ???? */\nint main()\n{\n int n, p1, p2, t1 = 0, t2 = 0; // p1 p2????? ??? t1??????? t2????????\n \n cin >> n; // ?????\n for (int j = 1; j <= n; j++)\n {\n cin >> p1 >> p2;\n if (p1 >= 90 && p1 <= 140 && p2 >= 60 && p2 <= 90) // ?????t2+1\n t2++;\n else // ?????0???\n {\n t1 = max(t1, t2); // ??t1?????????\n t2 = 0; // t2???0\n }\n }\n t1 = max(t1, t2); // ?????????? ??????\n cout << t1;\n return 0;\n}"} +{"label": "82", "index": "40673", "code": "int main(){\n\tint n,e,i,max;\n\tint ss[99],sz[99];\n\tint jg[99];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(ss[i]<=140)&&(sz[i]>=60)&&(sz[i]<=90)){\n\t\t\tjg[i]=1;\n\t\t}else{\n\t\t\tjg[i]=0;\n\t\t}\n\t}\n\te=0;\n\tmax=0;\n\tfor(i=0;i=max){\n\t\t\t\t\tmax=e;\n\t\t\t\t}\n\t\t\t\te=0;\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40674", "code": "int main()\n{\n int n,k,a,b,m,l,s;\n scanf(\"%d\",&n);\n k=0;\n m=0;\n s=0;\n while(m=90)&&(a<=140)&&(b>=60)&&(b<=90)){\n k=k+1;\n m=m+1;\n } \n else{\n m=m+1;\n if(s=90&&y[i]<=90&&y[i]>=60){\n\t\t\tz[i]=1;\n\t\t\t\n\t\t}\n\t\telse {z[i]=0;}\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tif(z[i]==1){\n\t\t\ts=s+1;\n\t\t}\n\t\tif(z[i]==0||i==n){\n\t\t\tif(s>t){\n\t\t\t\tt=s;\n\t\t\t}\n\t\t\ts=0;\n\t\t}\n\t}\n\nprintf(\"%d\",t);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40676", "code": "int main()\n{\n\tint n,i,a,b,x,y;\n\ty=0;\n\tx=0;\n\ti=1;\n\tscanf(\"%d\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d%d\",&a,&b);\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90){\n\t\t\tx=x+1;\n\t\t\ti=i+1;\n\t\t}else{\n\t\t\tif(y=90&&b[i]>=60&&b[i]<=90){\n k++;\n shuzu[i]=k;\n }else{\n k=0;\n }\n }\n for(i=0;imax){\n max=shuzu[i];\n }\n }\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40678", "code": "int main(){\n int a,b,n,c,d,e,f;\n d=0;\n e=0;\n scanf(\"%d\",&n);\n for(a=0;a=90)&&(b<=140)&&(c>=60)&&(c<=90)){\n d+=1;\n if(d>e){\n e=d;\n }}\n else{\n d=0;}\n }\n printf(\"%d\\n\",e);\n return 0;\n}"} +{"label": "82", "index": "40679", "code": "int main(){\n\tint m,i;\n\tscanf (\"%d\",&m);\n\tint a[101],b[101],c[101];\n\tfor (i=0;i=a[i]&&60<=b[i]&&90>=b[i]){\n\t\t\tc[i]=1;\n\t\t}\n\t\telse {\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tint q=0,p=0;\n\tfor (i=0;iq){\n\t\t\tq=p;\n\t\t}\n\t\tif (c[i]==0){\n\t\t\tp=0;\n\t\t\tcontinue ;\n\t\t}\n\t}\n\tprintf (\"%d\",q);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40680", "code": "\n//**************************************************************************\n//??????\n//??????\n//???2012.10.10\n//**************************************************************************\n\nint main()\n{\n\tint n,i; //????n?????i\n\tint x,y,hours,max; //?????????x??????y??????hours????????max\n\tcin >> n;\n\tint a[100],b[100],c[102]; //??a?b??????????????c????????\n\tx=1;\n\ty=0;\n\thours=0;\n\tmax=0;\n\tmemset(a,0,sizeof(a));\n memset(b,0,sizeof(b));\n\tmemset(c,0,sizeof(c)); //?????\n for (i=0;i> a[i] >> b[i];\n\t\t//cout << \"????????\" << endl;\n\t}\n\tfor (i=0;i=90)+(b[i]<=90)+(b[i]>=60)==4)\n\t\t\tc[i+1]=1;\n\t\telse c[i+1]=0; //??????1?????0???????????????0?1?????\n\t}\n for (i=1;i<=n;i++)\n\t{\n\t\tif ((c[i-1]==0)+(c[i]==1)==2)\n\t\t\tx=i;\n\t\tif ((c[i]==1)+(c[i+1]==0)==2)\n\t\t\ty=i; \n\t\thours=y-x+1; //??c????1????????????\n\t\tmax=max > hours ? max : hours; //?????hours???max\n\t}\n\n cout << max << endl;\n\nreturn 0;\n}"} +{"label": "82", "index": "40681", "code": "int main()\n{\n\tint n,a[100],b[100],i,j,c[100],k=0,e;\n\tscanf(\"%d\",&n);\n\tc[0]=0;\nfor(i=0;i=90&&b[0]>=60&&b[0]<=90) printf(\"1\");\nelse printf(\"0\");\n}\n\nif (n!=1){\n\t\tfor(i=0;i=90&&b[i]>=60&&b[i]<=90){\n\t\t\tk++;\n\t\tfor(j=(i+1);j140||a[j]<90||b[j]<60||b[j]>90) break;\n\t\t}\n\t\t\tc[k]=j-i;\n\t\t}\n\t}\n\tfor(i=0;ic[i+1]){\n\t\t\te=c[i];\n\t\t\tc[i]=c[i+1];\n\t\t\tc[i+1]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",c[k]);\n}\n\treturn 0;\n\n\n\n\t\n}\n\n\t \n \n"} +{"label": "82", "index": "40682", "code": "int main(){\n int k;\n\tscanf(\"%d\",&k);\n\tint sz[1000],dz[1000],a,i,sz3[1000],b;\n\ta=0;\n\tfor(i=0 ; i=90 && sz[i]<=140 && dz[i]<=90 && dz[i]>=60){\n\t\ta=a+1;\n\t\tsz3[i]=a;\n\t\t}\n\t\telse{\n\t\t\ta=0;\n\t\t}\n\t}\n\tb=sz3[0];\n\tfor(i=0 ; ib){\n\t\t\t\tb=sz3[i];}\n\t}\n\n\n\tprintf(\"%d\",b);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40683", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n int i,a,b,j=0,m=0,k=1;\n for(i=1;i<=n;i++){\n while(i<=n){ \n scanf(\"%d %d\",&a,&b);\n \n \n if(a>=90&&a<=140&&b>=60&&b<=90){\n j++;\n }\n else{\n break;\n }\n i++;\n }\n if(j>m){\n m=j;\n \n }\n j=0; \n }\n printf(\"%d\",m);\n return 0;\n }"} +{"label": "82", "index": "40684", "code": "int main(){\n\tint n;scanf(\"%d\",&n);\n\tint xueya[101][2],outcome[101];\n\tint i;\n\tfor(i=0;i=90 && xueya[i][0]<=140 && xueya[i][1]>=60 && xueya[i][1]<=90)\t\n\t\t\toutcome[i]=1;\n\t\telse\n\t\t\toutcome[i]=0;\n\t}\n\n\tint j=0,k=0,m;\n\tint count[101];\n\tfor(m=0;m0;p--){\n\t\tfor(q=0;q=count[q+1]){\n\t\t\t\tt=count[q];\n\t\t\t\tcount[q]=count[q+1];\n\t\t\t\tcount[q+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",count[n-1]);\n\treturn 0;\n}"} +{"label": "82", "index": "40685", "code": "int main(){\n\tint n,i,s=0,d=0;\n\tint a[100],b[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\ts+=1;\n\t\t}else{\n\t\t\tif(s>d){\n\t\t\t\td=s;\n\t\t\t}\n\t\t\ts=0;\n\t\t}\n\t}\n\tif(a[n-1]>=90&&a[n-1]<=140&&b[n-1]>=60&&b[n-1]<=90){\n\t\ts+=1;\n\t\tif(s>d){\n\t\t\td=s;\n\t\t}\n\t}\n\tprintf(\"%d\",d);\n\treturn 0;\n}"} +{"label": "82", "index": "40686", "code": "int main(){\n\tint n,a[100],b[100],i,hour=0,c[100],k,x,j=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ic[i+1])\n\t\t\t{\n\t\t\t\tx=c[i+1];\n\t\t\t\tc[i+1]=c[i];\n\t\t\t\tc[i]=x;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",c[j-1]);\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40687", "code": "int main()\n{\n\tint n,a,b,k,j,i;\n\tint m[100];\n\tj=0;\n\tscanf(\"%d\",&n);\n\tfor(k=1;k<=n;k++)\n\t{\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif(90<=a&&a<=140&&60<=b&&b<=90)\n\t\t{\n j=j+1;\n\t\t m[k-1]=j;\n\t\t}\n\t if(a<90||a>140||b<60||b>90)\n\t\t{\tm[k-1]=0;\n\t j=0;\n\t\t}\n\n\t}\n\tfor(i=1;i<=n;i=i++)\n\t{\n\t\tif(m[0]=m[i-1])\n\t\t m[0]=m[0];\n\t}\n\tprintf(\"%d\",m[0]);\n\treturn 0;\n}"} +{"label": "82", "index": "40688", "code": "int main(){\n\tint nu;\n\tscanf(\"%d\\n\",&nu);\n\tstruct aaa{\n\t\tint x,y;\n\t}time[100];\n\tint i;\n\tint h=0;\n\tint m=0;\n\tint s=0;\n\tfor(i=0;i=90&&(time[i].y)<=90&&(time[i].y)>=60){\n\t\t\th+=1;\n\t\t\ts=h;\n\t\t}else if(m<=h){\n\t\t\tm=h;\n\t\t\th=0;\n\t\t\tcontinue;\n\t\t}else if(m>=h){\n\t\t\th=0;\n\t\t\tcontinue;\n\t\t}\n\t}\n\tif(s>=m){\n\t\tprintf(\"%d\",s);\n\t}else{\n printf(\"%d\\n\",m);}\n\t\treturn 0;\n}"} +{"label": "82", "index": "40689", "code": "\nint main()\n{\n\tint n;\n\tcin>>n;\n\tint m=0,t=0;\n\tfor(int k=0;k>p1>>p2;\n\t\tif(p1<=140&&p1>=90&&p2<=90&&p2>=60){\n\t\t\tt++;\n\t\t}else{\n\t\t\tif(m=90&&xue<=140&&shu>=60&&shu<=90){\n\t\t\th[i]=h[i-1]+1;\n\t\t}else{\n\t\t\th[i]=0;\n\t\t}\n\t}\n\te=h[0];\n\tfor(i=1;i<=n;i++){\n\t\tif(e=90&&max[0]<=140&&min[0]>=60&&min[0]<=90){\n\t\tt++;\n\t\tb=t;\n\t\t}\n\tfor(i=1;i=90&&max[i]<=140&&min[i]>=60&&min[i]<=90){\n\t\t\tif(max[i-1]>=90&&max[i-1]<=140&&min[i-1]>=60&&min[i-1]<=90){\n\t\t\t\tt++;\n\t\t\t\tif(t>b){b=t;}\n\t\t\t}else{\n\t\t\t\tt=0;\n\t\t\t\tt++;\n if(t>b){b=t;}\n\t\t\t}\n\t\t}else{\n\t\t\tif(max[i-1]>=90&&max[i-1]<=140&&min[i-1]>=60&&min[i-1]<=90){\n\t\t\t\tif(t>b){\n\t\t\t\t\tb=t;\n\t\t\t\t\tt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b);\n\treturn 0;\n}"} +{"label": "82", "index": "40692", "code": "/*????????????????????????90 - 140????????60 - 90????????????????\n * ?????????????????????????????????\n *????: 2012-10-15\n *??: ??\n */\n\nint main ()\n{\n\tint n, time[99], k = 0; //time?????????????????\n\tmemset(time, 0, sizeof(time)); //??????????0\n\tcin >> n;\n\tint high[n], low[n];\n\tfor(int i = 0; i < n; i++)\n\t\t{cin >> high[i] >> low[i];\n\t\tif(high[i] >= 90 && high[i] <= 140 && low[i] >= 60 && low[i] <= 90) //??????????+1????????????\n\t\t\ttime[k]++;\n\t\telse\n\t\t\tk++;\n\t\t}\n\tint maxt = time[0];\n\tfor(int j = 1; j <= k; j++) //?maxt????????????\n\t\tif(time[j] > maxt)\n\t\t\tmaxt = time[j];\n\tcout << maxt;\n}\n"} +{"label": "82", "index": "40693", "code": "int main(){\n\tint n,i,j,a,max=0,y=0,sz[100][2];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90)&&(sz[j][0]<=140)&&(sz[j][1]>=60)&&(sz[j][1]<=90)){\n\t\t\ty++;\n\t\t\tfor(a=j+1;a=90)&&(sz[a][0]<=140)&&(sz[a][1]>=60)&&(sz[a][1]<=90)){\n\t\t\t\t\ty++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(y>max){\n\t\t\tmax=y;\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40694", "code": "/*\n * 304.cpp\n * Theme: ???? \n * Created on: 2012-10-24\n * Author: ??? \n */\n\nint max (int a,int b) //??????:?????????? \n{\n\treturn a > b?a:b;\n}\n\nint main(){\n int n,a,b,k=0,sum=0; //???? \n\tcin >>n; //??n \n\tfor (int i = 1;i <= n;i ++)\n\t{\n\t\tcin >>a >>b;\n\t\tif ((a >= 90 &&a <= 140) && (b >= 60 &&b <= 90))\n\t\t\t{sum ++;\n\t\tk = max(k,sum);} //??max?? \n\t\telse sum = 0; //???????sum?? \n\n\t}\n\tcout <0;k--){\n\t\tfor (i=0;i=90&&shousuo<=140&&shuzhang>=60&&shuzhang<=90) a[i]=1;\n\t\t\telse a[i]=0;\n\t}\n for (i=0;imax)\n\t\t{\n\t\t\tmax=sz[i];\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\nint normal(int shou,int shu)\n{\n\tif(shou<=140&&shou>=90&&shu<=90&&shu>=60)\n\t{\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n}"} +{"label": "82", "index": "40697", "code": "int main()\n{\n int n,t=0,i,a,b=0,c=0;\n int x[100],y[100];\n scanf(\"%d\",&n);\n for (i=1;i<=n;i++)\n {\n scanf(\"%d %d\",&x[i-1],&y[i-1]);\n if (x[i-1]>=90&&x[i-1]<=140&&y[i-1]>=60&&y[i-1]<=90)\n {\n a=i;\n if (t==0)\n {\n t=1;\n b=a;\n }\n if ((a-b)==1)\n {\n t++;\n }\n else \n {\n if (t>c)\n { \n c=t; \n } \n t=1;\n } \n } \n b=a;\n } \n if (t>c)\n { \n c=t; \n } \n printf(\"%d\",c);\n return 0; \n}\n "} +{"label": "82", "index": "40698", "code": "int main(){\nint m,n,i,j;\nint a[100],b[100],c[100];\n\tfor(i=0;i<99;i++){\n\t\tc[i]=0;\n\t}\n\tscanf(\"%d\",&n);\nj=0;\nfor(i=0;i=90&&b[i]<=90&&b[i]>=60){\n\t\tc[j]++;\n\t}else{\n\t\tj++;\n\t}\n}\n\tfor(i=0;i<99;i++){\n\t\tif(c[i]>c[i+1]){\n\t\t\tm=c[i+1];\n\t\t\tc[i+1]=c[i];\n\t\t\tc[i]=m;\n\t\t}\n\t}\n\tprintf(\"%d\",c[99]);\n\treturn 0;\n}"} +{"label": "82", "index": "40699", "code": "int main(){\nint n,i,a[1000],b[1000],c=0,d=0;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\nc+=1;\n}\nelse{\nif(c>d){\nd=c;\nc=0;\n}else{\nc=0;\n}\n}\n}\nif(d>c){\nprintf(\"%d\",d);\n}else{\nprintf(\"%d\",c);\n}\n\n\n\nreturn 0;\n}\n"} +{"label": "82", "index": "40700", "code": "int panduan(int a,int b)\n{\n if(a>=90&&a<=140&&b>=60&&b<=90)return 1;\n else return 0;\n}\nint main()\n{\n int n,res,temp,a,b;\n res=0;\n temp=0;\n cin>>n;\n while(n--)\n {\n cin>>a>>b;\n if(panduan(a,b))temp+=1;\n else\n {\n if(temp>res)res=temp;\n temp=0;\n }\n }\n if(temp>res)res=temp;\n cout<=90&&s<=140&&z<=90&&z>=60){\n\t\t\tm=m+1;\n\t\t}else{\n\t\t\tif(max>m){\n\t\t\t\tmax=max;\n\t\t\t\n\t\t\t}else{\n\t\t\t\tmax=m;\n\t\t\t}\n\t\t\tm=0;\n\t\t}\n\t\ti=i+1;}\n\tif(max>m){\n\t\t\t\tmax=max;\n\t\t\t\n\t\t\t}else{\n\t\t\t\tmax=m;\n\t\t\t}\n\tprintf(\"%d\",max);\nreturn 0;}\n"} +{"label": "82", "index": "40702", "code": "int main()\n{\n\tint n,i,hour,answer,k,p;\n\tint sys[100];\n\tint dia[100];\n\tint hours[100];\n\t//???????sys???????dia???????hours???????\n\tscanf(\"%d\",&n);\n\tfor(i=1,k=0,hour=0;i<=n;i++)\n\t{\n\t\tscanf(\"%d%d\",&sys[i],&dia[i]);\n\t\tif(sys[i]<=140&&sys[i]>=90&&dia[i]<=90&&dia[i]>=60)\n\t\t{\n\t\t\thour+=1;\n\t\t\tif(hour>k)\n\t\t\t\tk=hour;\n\t\t\telse\n\t\t\t\tk=k;\n\t\t}\n\t\telse\n\t\t\thour=0;\n\t\thours[i]=hour;\n\t}\n\thours[0]=0;\n\tfor(i=1,answer=0;i<=n;i++)\n\t{\n\t\tif(hours[i]>=hours[i-1])\n\t\t\tanswer=hours[i];\n\t\telse\n\t\t\tanswer=answer;\n\t}\n\tanswer=k;\n\tprintf(\"%d\\n\",answer);\n\treturn 0;\n}"} +{"label": "82", "index": "40703", "code": "int main()\n{\n int i,j,k[100],l,n,m;\n\tstruct\n\t{\n\t\tint a;\n\t\tint b;\n\t}\n\tq[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d %d\",&q[i].a,&q[i].b);\n\t}\n\tfor(i=0;i<=99;i++)\n\t\tk[i]=0;\n\tl=0;\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(q[i].a<=140&&q[i].a>=90&&q[i].b>=60&&q[i].b<=90)\n\t\t\tk[l]+=1;\n\t\telse\n\t\t{\n\t\t\tl+=1;\n\t\t}\n\t}\n\tm=0;\n\tfor(i=0;i<=l+1;i++)\n\t{\n\t\tif(m=90&&a[i]<=140){\n\t\tif(b[i]>=60&&b[i]<=90){\n\t\tm++;\n\t\t\n\t\tif(m>e){\n\t\te=m;\n\t\t}\n\t\t\n\t\t}\n\t\telse{m=0;}\n\t\n\t}\n\telse{m=0;}\n\n}\nprintf(\"%d\",e);\n\n\n\n return 0;\n } \n"} +{"label": "82", "index": "40705", "code": "int main()\n{\n\tint n,a,b,t=0,m=0;\n\tcin>>n;\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tcin>>a>>b;\n\t\tif( (a-90)*(a-140)<=0 &&(b-60)*(b-90)<=0 )\n\t\t t+=1;\n\t\telse t=0;\n\t\tif( t>m ) m=t;\n\t}\n\tcout<=90&&a<=140&&b>=60&&b<=90){\n j=j++;\n c=j;\n if(temp<=c)\n temp=c;\n }\n else{\n j=0;\n }\n }\n printf(\"%d\",temp);\n scanf(\"\"); \n return 0; \n}"} +{"label": "82", "index": "40707", "code": "int main()\n{\n\tint n=0;\n\tint h=0,l=0;\n\tcin>>n;\n\tint time=0;\n\tint max=0;\n\tfor(int i=0;i>h>>l;\n\t\tif(h>=90&&h<=140&&l>=60&&l<=90)\n\t\t{\n\t\t\ttime++;\n\t\t\tif(time>max)\n\t\t\t\tmax=time;\n\t\t}\n\t\telse\n\t\t\ttime=0;\n\t}\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40708", "code": "\nint main()\n{\n int n,i,t,max,a[100],b[100],c[100];\n t=0;\n scanf(\"%d\\n\",&n);\n for(i=0;i<=n-1;i++){\n scanf(\"%d %d\\n\", &(a[i]),&(b[i]));\n if(a[i]<=140&&a[i]>=90&&b[i]>=60&&b[i]<=90){\n t=t+1;\n c[i]=t;\n }\n else{\n c[i]=t=0;\n \n }\n }\n max=c[0];\nfor (i=0;i<=n-1;i++){\n\tif (max=90&&a[m]<=140&&b[m]>=60&&b[m]<=90){\ns[m]=1;\n}\nelse{\ns[m]=0;\n}\n}\nint q=1;\nfor(int k=0;k=max){\nmax=s[p];\n}\n}\nprintf(\"%d\",max);\nreturn 0;\n}"} +{"label": "82", "index": "40710", "code": "int main()\n{\n\tint a,b,n;\n\tint i=1,h=0,t=0;\n\tscanf(\"%d\",&n);\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d %d\",&a,&b);\n\t\ti=i+1;\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90)\n\t\t{\n\t\t\th=h+1;\n\t\t\tif(h>=t)\n\t\t\t\tt=h;\n\t\t}\n\t\telse if(h>=t)\n\t\t{\n\t\t\tt=h;\n\t\t\th=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tt=t;\n\t\t\th=0;\n\t\t}\n\t}\n\tprintf(\"%d\",t);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40711", "code": "int main(){\n\tint n;\n\tint i;\n\tint a;\n\tint b;\n\tb=0;\n\ta=0;\n\tint zzd[101];\n\tint hzy[101];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&zzd[i]<=140&&hzy[i]>=60&&hzy[i]<=90){\n a++;\n\t\t}\n\t\telse{\n\t\t\tif(a>b){\n\t\t\t\tb=a;\n\t\t\t}\n\t\t\ta=0;\n\t\t}\n\t}\n\tif(b>a){\n\tprintf(\"%d\",b);\n\t}\n\telse if(b<=a){\n\t\tprintf(\"%d\",a);\n\t}\n\treturn 0;\n}\n"} +{"label": "82", "index": "40712", "code": "int main()\n{\n\tint n, a, b, c=0, d, i=1, j=0; //??????\n\tint m[100]={0}; //????\n\tcin >> n; //??n\n\tfor (i=1;i<=n;i++) \n\t{\n\t\tcin >> a >> b;\n\t\tif (a>=90 && a<=140 && b>=60 && b<=90) //??????1\n\t\t\tc++;\n\t\telse\n\t\t{\n\t\t\tj++; //?????c,??\n\t\t\tm[j]=c;\n\t\t\tc=0;\n\t\t}\n\t\tif (i==n) //??????????c\n\t\t{\n\t\t\tj++;\n\t\t\tm[j]=c;\n\t\t}\t\t\n\t}\n\tfor (i=1;i<=j;i++) //??????????\n\t{\n\t\tif (m[i]<=m[i+1])\n\t\t\td = m[i+1];\n\t\telse\n\t\t{\n\t\t\tm[i+1] = m[i];\n\t\t\td = m [i+1];\n\t\t}\n\t}\n\tcout << d << endl; //???????\n\treturn 0;\n}\n"} +{"label": "82", "index": "40713", "code": "int main(){\n\tint high[100],low[100],count,max,all,i;\n\tscanf(\"%d\",&all);\n\tmax=0;\n\tfor(i=0;i=90&&high[i]<=140&&low[i]>=60&&low[i]<=90){\n\t\t\tcount=0;\n\t\t\twhile(high[i+1]>=90&&high[i+1]<=140&&low[i+1]>=60&&low[i+1]<=90){\n\t\t\t\ti++;count++;\n\t\t\t}\n\t\t\tcount++;\n\t\t\tif(count>max){max=count;}\n\n\t\t}\n\t}\n\tif(all==1&&high[i]>=90&&high[i]<=140&&low[i]>=60&&low[i]<=90){max=1;}\n\tprintf(\"%d\",max);\n\n\t\nreturn 0;\n}"} +{"label": "82", "index": "40714", "code": "int main(){\n int n,i,j,y=0,max=0;\n int a[150],b[150],s[150];\n scanf(\"%d\",&n);\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90) x[i]=1;}\n\t \n \n for(i=0;imax) max=s[i];}\n\n\n printf(\"%d\",max);\n\n\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40715", "code": "int main(){\n int n,a,b,t,i,c;\n\tscanf(\"%d\\n\",&n);\n\tt=0;\n\tc=0;\n\ti=1;\n\twhile(i<=n-1){\n\t\tscanf(\"%d%d\\n\",&a,&b);\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90){\n\t\t\tt++;\n\t\t\tif(c=90&&a<=140&&b>=60&&b<=90){\n\t\t\tt++;\n\t\t\tif(c=90&&a<=140&&b>=60&&b<=90;}\nint max(int a[],int n)\n{\nint i,max;\nmax=a[0];\nfor(i=1;i=90&&xy[h][0]<=140&&xy[h][1]>=60&&xy[h][1]<=90){\n tag++;\n\t\t}\n\t\telse{\n\t\t\tif(sz[0]=90&&p[i]>=60&&p[i]<=90)e++;\n\t else e=0;\n\t if(k=90)&&(ss[k]<=140)&&(sz[k]>=60)&&(sz[k]<=90)){\n h++;}\n else{\n time[j]=h;\n j++;\n h=0;}}\n int e=0;\n for(int l=0;l=h){\n printf(\"%d\",e);}\n else{\n printf(\"%d\",h);}\n return 0;\n}\n "} +{"label": "82", "index": "40720", "code": "\n int main(){\n int n,a[100],b[100],t[100],m=0,s=0,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90)){\n\t\tt[i]=1;\n\t\t}else{t[i]=0;}\n\t}\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tk++;\n\t\t}else{ \n\t\t\tj++;\n\t\t\tsz[j]=k;\n\t\t\tk=0;\n\t\t}\n\t}\n\tfor(p=0;pk?sz[p]:k;\n\t}\n\tprintf(\"%d\",k);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40722", "code": "int main(){\n\tint n;\n\tint t1=0;\n\tint t2=0;\n\tint j=1;\n\tint a[100],b[100];\n\t\n\tscanf(\"%d\",&n);\n\tint i;\n\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tt2+=1;\n\t\t\tif(t2>t1){\n\t\t\t\tt1=t2;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\telse{\n\t\t\tt2=0;\n\t\t}\n\t}\n\n\t\n\tprintf(\"%d\",t1);\n\t\n\n\n\n\treturn 0;\n}"} +{"label": "82", "index": "40723", "code": "int main()\n{\n int n,i,j=0,k,a;\n int xy[101][2],xs[101]={0};\n scanf(\"%d\",&n);\n for(i=0;i=90&&xy[i][0]<=140&&xy[i][1]>=60&&xy[i][1]<=90)\n xs[j]++;\n else j++;}\n for(i=1;i<=100;i++){\n for(k=0;k<=100-i;k++){\n if(xs[k]>xs[k+1]){\n a=xs[k];\n xs[k]=xs[k+1];\n xs[k+1]=a;}}}\n printf(\"%d\",xs[100]);\n \n return 0;\n}\n"} +{"label": "82", "index": "40724", "code": "int x[100],y[100];\nint main()\n{\n\tint n,i,j,hour,maxhour;\n\thour=0;\n\tmaxhour=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tfor(j=1;j<=n;j++)\n\t\t{\n\t\t\tscanf(\"%d %d\\n\",&x[i-1],&y[j-1]);\n\t\t\tif(x[i-1]>=90&&x[i-1]<=140&&y[j-1]>=60&&y[j-1]<=90)\n\t\t\t{\n\t\t\thour++;\n\t\t\t}else{\n\t\t\t\tif(maxhour=90&&beg[i]<=140&&end[i]>=60&&end[i]<=90)\n ti[i]=1;\n for(int j=i+1;j=90&&beg[j]<=140&&end[j]>=60&&end[j]<=90)\n ti[i]++;\n else break;\n }\n }\n for(int i=0;i>n;\n\th=0;\n\thmax=h;\n for(i=1;i<=n;i=i+1)\n\t{\n\t\tcin>>n1>>n2;\n\t\t\tif(n1>=90&&n1<=140&&n2>=60&&n2<=90)\n\t\t\t{\n\t\t\t\th=h+1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(h>hmax)\n\t\t\t\t{\n\t\t\t\t\thmax=h;\n\t\t\t\t h=0;\n\t\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\thmax=hmax;\n\t\t\t h=0;\n\t\t\t}\n\t\t\t} continue;\n\t}\n\tif(h>hmax)\n\t{\n\t\thmax=h;\n\t}\n\telse\n\t{\n\t\thmax=hmax;\n\t}\n\tcout<=90)&&(a[i]<=140)&&(b[i]<=90)&&b[i]>=60)\n {\n c++;\n }\n else\n {\n if(c>k)\n {\n k=c;\n }\n c=0;\n }\n }\n if(c>k)\n {\n printf(\"%d\\n\",c);\n }\n else\n {\n printf(\"%d\\n\",k);\n }\n return 0;\n}\n"} +{"label": "82", "index": "40728", "code": "int main(){\n\tint ss[100],sz[100],n,h=0,i,sc[100]={0},e,k,c;\n scanf(\"%d\",&n);\n for(i=0;i=90&&sz[i]>=60&&sz[i]<=90){\n\t\t h++;\n\t }else{\n\t\t sc[i]=h;\n\t\t h=0;\n\t }\n\t \n } c=h;\n \n for(k = 1 ; k <=100; k++){\n \tfor(i = 0; i < 100-k; i++){\n\t\t\tif(sc[i] < sc[i+1]){\n\t\t\t\t\te = sc[i+1];\n\t\t\t\t\tsc[i+1] = sc[i];\n\t\t\t\t\tsc[i] = e;\n\t\t\t}\n\t\t}\n\t}\n if(c=90&&g<=140&&d>=60&&d<=90)\n\t\t{\n\t\t\tsz[k]=sz[k]+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tk=k+1;\n\t\t}\n\t}\n\tint e;\n\tfor(q=1;q=90&&sp[i]<=140&&dp[i]>=60&&dp[i]<=90){\n\t\t\th++;\n\t\t\td[i]=h;\n\t\t}\n\t\telse\n\t\t\td[i]=h=0;\n\t}\n\n//now for the maximum of duration//\n\n\tfor(j=1;j<=n;j++){\n\t\tif(max>=d[j])\n\t\t\tcontinue;\n\t\telse \n\t\t\tmax=d[j];\n\t}\n\tprintf(\"%d\\n\",max);\n}"} +{"label": "82", "index": "40731", "code": "int main()\n{\n\tint n,a[100],b[100],i,c,d[100],m;\n\tfor(i=0;i<100;i++)\n\t{\n\t\td[i]=0;\n\t}\n\tscanf(\"%d\",&n);\n\tc=0;\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tc=c+1;\n\t\t\td[i]=c;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td[i]=c;\n\t\t\tc=0;\n\t\t}\n\t}\n\tm=0;\n\tfor(i=0;i<99;i++)\n\t{\n\t\tif(d[i]>m)\n\t\t{\n\t\t\tm=d[i];\n\t\t}\n\t}\n\tprintf(\"%d\",m);\n return 0;\n}\n"} +{"label": "82", "index": "40732", "code": "/*\n * nbp.cpp\n *\n * Created on: 2012-11-6\n * Author: Lsj\n */\nint main(){\n\tint n,i;//??????n?i\n\tcin>>n;\n\tint a[1000],b[1000],p[1000]={0};//????\n\tfor(i=0;i>a[i]>>b[i];//???a[]?b[]??\n\tif(a[0]>=90&&a[0]<=140&&b[0]>=60&&b[0]<=90)\n\t\tp[0]=1;\n\telse\n\t\tp[0]=0; //???????????????p[0]=1????0\n\tfor(i=1;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\t\tp[i]=1+p[i-1];\n\t\t\telse\n\t\t\t\tp[i]=0;//????????????????????p????????0\n\t}\n\tfor(i=1;i=90 && j<=140 && k>=60 && k<=90)\n\t {h++;\n\t l[i]=h;\n\t }else\n\t {h=0;\n\t }\n\t}\n\tfor(i=0;i<100;i++){\n\t\tif(l[i]>l[max]){\n\t\t\tmax=i;\n\t\t}\n\t}\n\tprintf(\"%d\",l[max]);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40734", "code": "int main()\n{\n\tint n,i,j=0,max=0,a[100],b[100],c[100]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n {\n\t\t\tc[j]++;\n\t\t} \n\t\telse\n\t\t{\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(i=0;imax)\n\t\t\tmax=c[i];\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40735", "code": "int main()\n{\n\tint a[100][2],i,j,sum=0,n,sum_max=0;\n\tscanf(\"%d\",&n);\n\tprintf(\"\\n\");\n\tfor(i =0;i= 90) && (a[i][0] <= 140)) && ((a[i][1] <= 90) && (a[i][1] >= 60)))\n\t\t{\t\t\n\t\t\tsum+=1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif(sum>sum_max)sum_max = sum;\n\t\t\tsum = 0;\n\t\t}\n\t}\n\tif(sum>sum_max)sum_max=sum;\n\tprintf(\"%d\",sum_max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40736", "code": "int main(){\n\nint n;\nscanf(\"%d\",&n);\n\nint sz[100][2];\nint panduan[100];\nint i,j;\nfor(i=0;i89&&sz[i][0]<141)&&(sz[i][1]>59&&sz[i][1]<91)){\n\tpanduan[i]=1;\n\t}\n\telse {panduan[i]=0;\n\t}\n}\n\nint cx[100]={0};\nint e=0;\nfor(i=0;i=90&&140>=ssy[i]&&szy[i]>=60&&90>=szy[i])\n {\n lx[j]=i;\n j++;\n } else lx[j]=-1;\n }\n int x=0,t=0,max=0;\n if(j>0)\n {\n\t\tm=1;\n\tfor(t=0;t<=j;t++)\n\t{\n\t if(lx[t+1]-lx[t]==1)\n\t\t m++;\n if(lx[t+1]-lx[t]!=1)\n {\n if(max<=m)\n max=m;\n m=1;\n }\n\t}\n printf(\"%d\",max);\n }\n else{printf(\"0\");}\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "82", "index": "40738", "code": "int main()\n{\n\tint n, shou, shu, x, t = 0, y = 0;//?n??????shou?????shu????\n\tcin >> n;\n\tfor(int i = 1; i <= n; i++ )\n\t{\n\t\tcin >> shou >> shu;\n\t\tif (( shou >= 90 ) && ( shou <= 140 ) && ( shu >= 60 ) && ( shu <= 90 ))//??????90-140???????60-90?????\n\t\t\tt = t + 1;\n\t\tif (( shou < 90 ) || ( shou > 140 ) || ( shu < 60 ) || ( shu > 90 ))\n\t\t{\n\t\t\tx = t;//?????????????????\n\t\t\tt = 0;//?t????x,??t???0\n\t\t\tif( x > y )\n\t\t\ty = x;//??x??y,??x???y\n\t\t}\n\t}\n\tif( t > y )\n\t\tcout << t << endl;\n\telse\n\t\tcout << y << endl;//????????????\nreturn 0;\n}"} +{"label": "82", "index": "40739", "code": "\nint main(){\n\tint n,a,b,s=0;\n\tint sb[120];\n\tfor(int k=0;k<=120;k++){\n\tsb[k]=0;\n\t}\n\tscanf(\"%d\\n\",&n);\n\tfor(int i=0;i=90&&b>=60&&b<=90){\n\t\t\ts++;\n\t\t\tsb[i]=s;\n\t\t\n\t\t}\n\n\t\telse s=0;\n\t}\n\tfor(int j=0;j<120;j++){\n\t\tif(sb[j+1]=90&&a[i][1]<=90&&a[i][1]>=60){\n b[i]=1;\n }else{\n b[i]=0;\n }\n }\n for(i=0;i=90&&a<=140&&b>=60&&b<=90)\n\t\t{\n\t\t\tsz[r]++;\n\t\t}\n\t\telse\n\t\t\tr++;\n\t}\n\tint max=0;\n\tfor(int j=0;j<100;j++){\n\t\tif(sz[j]>max)\n\t\t\tmax=sz[j];\n\t}\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40742", "code": "int main(){\n\tint i,j,t;\n\tint n,k=0,m=0,s=0;\n\tint sz[100][2],lx[100]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(sz[i][0]<=140)&&(sz[i][1]>=60)&&(sz[i][1]<=90)){\n\t\t\tlx[k]++;\n\t\t}\n\t\telse{\n\t\t\tk++;\n\t\t}\n\t\t\t\n\t}\n\tfor(j=0;j>n;\n\tcount=0;\n\tint a[n],b[n],c[n];\n\tc[n]=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a[i]>>b[i];\n\t\tif(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tcount=count+1;//????????????????\n\t\t\tc[i]=count;//???????\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcount=0;\n\t\t\tc[i]=count;//???????0\n\t\t}\n\t}\n\tnumber=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(c[i]>number) number=c[i];//???????????\n\t}\n\tcout<=90&&a[i]<=140&&b[i]<=90&&b[i]>=60){\n\t sh[i]=1;\n\t\t\n\t\n\t }\n \t\n\t\n\t\n}\n\nfor(i=0,k=0;i=90&&x<=140&&y>=60&&y<=90)\n{\nk=i;\nt=k-j+1;\nif(max>=t)\nmax=max;\nelse\nmax=t;\n}\nelse\n{\nk=i;\nj=i+1;\n}\n}\nprintf(\"%d\",max);\nreturn 0;\n}"} +{"label": "82", "index": "40746", "code": "\nint main () {\nint a=0,i,n,s1[100],s2[100],h=0,s3[100]={0},max=0;\nscanf(\"%d\",&n);\nfor ( i=0;i=90&&s1[i]<=140&&s2[i]>=60&&s2[i]<=90) {\n s3[i]=1;\n h=1;\n max=1;\n }\n }\n for (int j=0;jmax) {\n max=h;\n }\n if (s3[i+1]==0||s3[i]==0) {\n h=1;\n }\n }\n printf(\"%d\",max);\n\n\n\nreturn 0;\n}\n"} +{"label": "82", "index": "40747", "code": "int main(){\n\tint sz[101];\n\tint n,i,t=0,q,s=-1;\n\tint xy[100][2];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&xy[i][0]<=140&&xy[i][1]>=60&&xy[i][1]<=90){\n\t\t\tt++;\n\t\t}\n\t\tif(xy[i+1][0]<90||xy[i+1][0]>140||xy[i+1][1]<60||xy[i+1][1]>90){\n\t\t\ts++;\n\t\t\tsz[s]=t;\n\t\t\tt=0;\n\t\t}\n\t}\n\tfor(i=0;isz[i+1]){\n\t\t\tq=sz[i];\n\t\t\tsz[i]=sz[i+1];\n\t\t\tsz[i+1]=q;\n\t\t}\n\t}\n\tprintf(\"%d\",sz[s]);\n\treturn 0;\n}\n\n\n\n\n\t\t\t\t\n\n"} +{"label": "82", "index": "40748", "code": "\nint main()\n{\n int n, i, j = 0, t = 0, x1, x2;\n \n cin >> n;\n \n for(i = 0; i < n; i++)\n {\n cin >> x1 >> x2;\n \n if(x1 >= 90 && x1 <= 140 && x2 >= 60 && x2 <= 90) j++;\n else if(j == 0) continue;\n else if(j != 0)\n {\n t = t >=j ? t: j;\n j = 0;\n }\n }\n \n t = t >= j ? t : j;\n \n cout << t << endl;\n\n return 0;\n}\n"} +{"label": "82", "index": "40749", "code": "int main(){\nint n,i,a,b,d,m;\nscanf(\"%d\",&n);\nint c[n];\nm=1;\nc[m]=0;\nfor(i=0;i=90&&b<=90&&b>=60){\n c[m]=c[m]+1;\n }else{\n m=m+1;\n c[m]=0;\n }\n}\nfor(i=1;ic[i+1]){\n d=c[i];\n c[i]=c[i+1];\n c[i+1]=d;\n }\n}\nprintf(\"%d\",c[m]);\nreturn 0;\n}\n"} +{"label": "82", "index": "40750", "code": "int main()\n{\n\tint n,a,b,i,h[100];\n\th[0]=0;\n\tcin>>n;\n for(i=1;i<=n;i++)\n {\n cin>>a>>b;\n if(a>=90&&a<=140&&b>=60&&b<=90)\n h[i]=h[i-1]+1;\n else\n\t h[i]=0;\n }\n for(i=2;i<=n;i++)\n {\n if(h[i]<=h[i-1])\n\t h[i]=h[i-1];\n }\n cout<=90 && sz[i][0]<=140 && sz[i][1]>=60 && sz[i][1]<=90){\n\t\t\ts+=1;\n\t\t}else{\n\t\t\tif(s>max){\n\t\t\t\tmax=s;\n\t\t\t}s=0;\n\t\t}\n\t}\n\tif(s>max){\n\t\tmax=s;\n\t}printf(\"%d\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40752", "code": "int main()\n{\n int n,i,j,t=0,max=0;\n\tint a[100][2];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i][0]<=140&&a[i][1]>=60&&a[i][1]<=90){\n\t\t\tt++;\n\t\t\tif(max=90 && a<=140 && b>=60 && b<=90)\n\t\t\tcurnml=1;\n\t\telse\n\t\t\tcurnml=0;\n\n\t\tif (normalstt)\n\t\t{\n\t\t\t//????\n\t\t\tif (curnml)\t//????\n\t\t\t\ttempcnt++;\n\t\t\telse //????\n\t\t\t{\n\t\t\t\tif(tempcnt>normalcnt)\n\t\t\t\t\tnormalcnt=tempcnt;\n\t\t\t\tnormalstt=0;\n\t\t\t\ttempcnt=0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//?????\n\t\t\tif(curnml)//???\n\t\t\t{\n\t\t\t\tnormalstt=1;\n\t\t\t\ttempcnt++;\n\t\t\t}\n\t\t}\n\t}\n\n\t//????????\n\tif(normalstt&&tempcnt>normalcnt)\n\t\tnormalcnt=tempcnt;\n\n\tprintf(\"%d\",normalcnt);\n\n\treturn 0;\n}"} +{"label": "82", "index": "40754", "code": "int main()\n{\n\tint n,sz[100],sz2[100],sz3[100]={0},i;\n\tscanf(\"%d\",&n);\n if(n>1){\n\tfor(i=0;i=90&&sz[i]<=140)&&(sz2[i]>=60&&sz2[i]<=90)){\n\t\t\tj++;\n\t\t\tsz3[k]=j;\n\t\t}\n\t\telse{\n\t\t\tj=0;\n\t\t\tk++;\n\t\t}\n\t}int max=sz3[0];\n\tfor(i=0;i<=k;i++){\n\t\tif(sz3[i]>max)\n\t\t\tmax=sz3[i];\n\t}\n\t \n\tprintf(\"%d\",max);}\nif(n==1){scanf(\"%d%d\",&sz[0],&sz2[0]);\n if((sz[0]>=90&&sz[0]<=140)&&(sz2[0]>=60&&sz2[0]<=90))\n\t\tprintf(\"1\");\n\t else printf(\"0\");\n\t}\n\n\n\treturn 0;\n}\n"} +{"label": "82", "index": "40755", "code": "int main(){\n\tint n,max=0,i,jc=0,a[1000],b[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[0]<=140&&b[0]>=60&&b[0]<=90){\n\t\t\tprintf(\"%d\\n\",n);\n\t\t}else printf(\"0\");\n\t}\n\telse if(n!=1){\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)){\n\t\t\tjc++;\n\t\t\tif(jc>max) max=jc;\n\t\t}\n\t\telse jc=0;\n\t}\n\tprintf(\"%d\\n\",max);\n\t}\n\t\n return 0;\n }\n"} +{"label": "82", "index": "40756", "code": "\n\nint main(int argc, char* argv[])\n{\n\tint i,n,high,low,number,k;\n\tscanf(\"%d\",&n);\n\tnumber=0;\n\tk=0;\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d %d\",&high,&low);\n\t\tif((high<=140)&&(high>=90)&&(low>=60)&&(low<=90)){\n\t\t\tnumber+=1;\n\t\t}else{\n\t\t\tif(k0;k--){\n\t\tfor(i=n-k;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\t\tc[i]++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;jc[i+1]){\n\t\t\t\te=c[i+1];\n\t\t\t\tc[i+1]=c[i];\n\t\t\t\tc[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",c[n-1]);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40758", "code": "int zh(int,int);\nint main(){\nint i,j,p=0,a[300],b[300],n;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&x<=140&&y>=60&&y<=90){return 1;}\n else{return 0;}\n}\n\n"} +{"label": "82", "index": "40759", "code": "int main(){\nint n,i,j,t=0,e=0,k,a,b;\nint an[50]={0};\nscanf(\"%d\",&n);\nfor(j=0;j=90)&&(a<=140))&&((b>=60)&&(b<=90))){\nan[t]=an[t]+1;\n}else{\nt=t+1;\n}\n}\nfor(k=1;k<=t+1;k++){\n\tfor(i=0;ian[i+1]){\n\t\t\t\te=an[i+1];\n\t\t\t\tan[i+1] =an[i];\n\t\t\t\tan[i] = e;\n\t\t}\n}\n}\nprintf(\"%d\\n\",an[t]);\nreturn 0;\n}"} +{"label": "82", "index": "40760", "code": "int main(){\n\tint n,i,k=0,a[100],b[100],c[100]={0},m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){c[k]++;}\n\t\telse{k++;}\n\t}\n\tm=c[0];\n\tfor(i=0;i=90)&&(shou[i+j]<=140))&&((shu[i+j]>=60)&&(shu[i+j]<=90))){\n\t\t\t\tt[i]++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t\t\t\t\n\tfor(k=1;k<=n;k++){\n\t\tfor(i=0;it[i+1]){\n\t\t\t\te=t[i+1];\n\t\t\t\tt[i+1]=t[i];\n\t\t\t\tt[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",t[n-1]);\n\n\t\n\n\treturn 0;\n}\n"} +{"label": "82", "index": "40762", "code": "int main(){\n\tint n,k,ssy[100],szy[100],t[100],cs[100],i,a;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&ssy[i]<=140&&szy[i]>=60&&szy[i]<=90){\n\t\t\tt[i]=1;\n\t\t}else{\n\t\t\tt[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))\n\t\t{\n\t\t\tk++;\n\t\t\tm[s]=k;\n\t\t\ts++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tk=0;\n\t\t}\n\t}\n\nfor(int j=0;jmax)\n\t{\n\t\tmax=m[j];\n\t}\n\n}\nprintf(\"%d\",max);\nreturn 0;\n}\n"} +{"label": "82", "index": "40764", "code": "int main()\n{\n\tint a,b,n,i,j,c;\n\tc=0;\n\tscanf(\"%d\",&n);\n\tint a1[100];\n\tfor(j=0;j<100;j++)\n\t{\n\t\ta1[j]=0;\n\t}\n for(i=0;i89&&a<141&&b>59&&b<91)\n\t\t{\n\t\t\ta1[i+1]=a1[i]+1;\n\t\t}\n\t if(a<90||a>140||b<60||b>90)\n\t\t\t{\n\t\t\t\ta1[i+1]=0;\n\t\t\t}\n\t\t\n\t}\n\tfor(i=0;i<1+n;i++)\n\t{\n\t\tif(c=90 && a<=140) && (b<=90 && b>=60)){\n c[i]=1;\n }\n else c[i]=0;\n}\nfor(i=0;imax){\n max=num[i];\n }\n }\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40766", "code": "\nint main(){\n int n;\n scanf(\"%d\",&n);\n int shou[n];\n int zhang[n];\n for(int i=0;i=90&&shou[i]<=140&&zhang[i]>=60&&zhang[i]<=90){\n a++;\n if(a>e){e=a;}\n }else{a=0;}\n }\n printf(\"%d\",e);\n return 0;\n}"} +{"label": "82", "index": "40767", "code": "\nint main()\n{\n int n,k,row,col,x,y,a;\n int sz[100][2];\n scanf(\"%d\\n\", &n);\n if((n>0)&&(n<100)){\n for(row=0;row=90)&&(x<=140)&&(y>=60)&&(y<=90)){\n k++;\n }else if(a=k){\nk=0;\n}\n }\nif(a89&&a<141&&b>59&&b<91)\n {\n sz[i]=0;\n }\n else{sz[i]=1;}\n }\n //for(i=0;i> n;\n \n for(i=1;i<=n;i++)\n {\n cin >> shousuoya >> shuzhangya;\n if(shousuoya>=90 && shousuoya<=140 && shuzhangya>=60 && shuzhangya<=90)\n {\n hour+=1;\n }\n else\n {\n if(hour>=c)\n { \n c=hour;\n hour=0;\n }\n else\n {\n hour=0;\n }\n }\n }\nif(hour>=c)\n {\n c=hour;\n }\n cout << c << endl;\nreturn 0;\n}"} +{"label": "82", "index": "40770", "code": "/*\n * 4.cpp\n *?????????????\n * Created on: 2012-10-19\n * Author: ??\n */\n\nint main(){\n\tint n,i,j=0;\n\tcin>>n;//?????\n\tint a[n],b[n],c[n],d[n];\n\tfor(i=0;i>a[i]>>b[i];//??\n\t\tif(90<=a[i]&&a[i]<=140&&60<=b[i]&&b[i]<=90)\n\t\t\tc[i]=1;\n\t\telse c[i]=0;//?????1?????0\n\t}\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90)\n\t\t{\n\t\ttime++;\n\t\t\tif(time>max)\n\t\t\t{\n\t\t max=time;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tmax=max;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(time>max)\n\t\t\t{\n\t\t max=time;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tmax=max;\n\t\t\ttime=0;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40773", "code": "/*???????\n ??????1200012829\n ???2012.10.9*/\nint main ()\n{\n\tint n, a, b, i, x = 0, k = 0;\n\tcin >> n;\n\tfor ( i = 1; i <= n; i++ )\n\t{\n\t\tcin >> a >> b;\n\t\tif ( 90 <= a && a <= 140 && 60 <=b && b <= 90)\n\t\t{\n\t\t\tx = x + 1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif ( k < x )\n\t\t\t{\n\t\t\t\tk = x;\n\t\t\t}\n\t\t\tx = 0;\n\t\t}\n\t}\n\tif ( k >= x )\n\t{\n\t\tcout << k << endl;\n\t}\n\telse\n\t{\n\t\tcout << x << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "82", "index": "40774", "code": "int main(){\n\tint a,b,i,n,m=0,p=-1,k=0;\n\tint sz[150]={0};\n\tscanf(\"%d\",&n);\n\tif(n==1){\n\tscanf(\"%d%d\",&a,&b);\n\tif(a>=90&&a<=140&&b>=60&&b<=90){\n\t\tp=0;\n\t\t}else{\n\t\t\tp=-1;\n\t\t}\t\n\t}if(n>1){\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tsz[i]=1;\n\t\t}if(i>0){\n\t\t\tif(sz[i-1]==1&&sz[i]==1){\n\t\t\t\tm++;\n\t\t\t\tif(m>p){\n\t\t\t\tp=m;\n\t\t\t }\n\t\t\t}else{\n\t\t\t\tm=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}\n\t}if(p==-1){\n\tfor(i=0;imax) \n\t max=c[i];\n }\n printf(\"%d\",max);\n}"} +{"label": "82", "index": "40776", "code": "int main(){\n\tint i,n,a[100][2],k=0,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i][0]<=140&&a[i][1]>=60&&a[i][1]<=90)\n\t\t\tk++;\n\t\telse{\n\t\t\tif(k>max)\n\t\t\t\tmax=k;\n\t\t\tk=0;\n\t\t}\n\t}\n\tif(k>max)\n\t\tmax=k;\n\tk=0;\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40777", "code": "\nint main()\n{\n int a,b,t=0,m=0,n,i;\n cin>>n;\n for(i=1;i<=n;i++)\n {\n cin>>a;\n cin>>b;\n if(a>=90&&a<=140&&b>=60&&b<=90)\n {\n t++;\n if(i==n&&t>=m)\n m=t;\n }\n else\n {\n if(t>=m)\n m=t;\n t=0;\n }\n }\n cout<=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tk++;\n\t\t\tc[i]=k;\n\t\t} else {\n\t\t\tc[i]=k=0;\n\t\t}\n\t}\n\t\tmax=c[0];\n\t\tfor(i=0;i=90&&a[i][0]<=140&&a[i][1]>=60&&a[i][1]<=90)\n\t\t\tk[j]++;\n\t\telse\n\t\t\tj++;\n\tfor(i=0,j=k[0];i<100;i++)\n\t\tif(k[i]>j)\n\t\t\tj=k[i];\n\tprintf(\"%d\\n\",j);\n\treturn 0;\n}"} +{"label": "82", "index": "40780", "code": "int main()\n{int n,i,max=0,j=0,a[100],b[100];\ncin>>n;\nfor(i=0;i<=n-1;i++)\n cin>>a[i]>>b[i];\nfor(i=0;i<=n-1;i++)\n {\n if(a[i]>=90&&a[i]<=140&&b[i]<=90&&b[i]>=60)\n {j=j+1;\n if(j>max)\n max=j;}\n else \n j=0;}\ncout<=90)&&(a[i]<=140)&&(b[i]>=60)&&b[i]<=90)\n {c++;}\n else{\n if(c>k)\n {\n k=c;\n \n }\n c=0;\n }\n }\n if(c>k){printf(\"%d\",c);}\n else printf(\"%d\",k);\n \n \n \n return 0;\n}\n"} +{"label": "82", "index": "40782", "code": "int main(){ \n int n,i,x,y,k,m; \n scanf(\"%d\",&n); \n i=1;\n k=0; \n m=k; \n while(i<=n){ \n scanf(\"%d %d\",&x,&y); \n if(x>=90&&x<=140&&y>=60&&y<=90){\n k+=1; \n }else{ \n k=0;\n }if(k>m){\n m=k;\n } \n i=i+1;\n} \n printf(\"%d\",m); \n return 0; \n}\n \n"} +{"label": "82", "index": "40783", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint sz[100][2],sz2[100];\n\tint i,j,flag=0,e,max;\n\tfor(i=0;i=90&&sz[i][0]<=140&&sz[i][1]>=60&&sz[i][1]<=90)\n\t\t{\n\t\t\tflag=flag+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tflag=0;\n\t\t}\n\t\tsz2[i]=flag;\n\t}\n\tfor(i=0;isz2[i+1])\n\t\t{\n\t\t\te=sz2[i+1];\n\t\t\tsz2[i+1]=sz2[i];\n\t\t\te=sz2[i];\n\t\t}\n\t}\n\tmax=sz2[n-1];\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n\n\n\n\n\n\n\n"} +{"label": "82", "index": "40784", "code": "int main(){\n int n,count[100]={0},m=0,a,b;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=90&&a<=140)&&(b>=60&&b<=90)){\n\t\t\tcount[m]++;\n\t\t}else{\n\t\t\tm++;\n\t\t}\n\t}\n int e=0,k,f;\n\tfor(k=0;kcount[k]){\n\t\t\t\te=count[k];\n\t\t\t\tcount[k]=count[f];\n\t\t\t\tcount[f]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",count[0]);\n return 0;\n}"} +{"label": "82", "index": "40785", "code": "int main(){\n\tint n,a[101],b[101],i,j=0,c[101],max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\tc[j]++;\n\t\t}else{\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(i=0;i<101;i++){\n\t\tif(c[i]>c[max]){\n\t\t\tmax=i;\n\t\t}\n\t}\n\tprintf(\"%d\",c[max]);\n\treturn 0;\n}"} +{"label": "82", "index": "40786", "code": "int main(){\n\tint a,b,c,mid,i,n,high,low,stop;\n\ta=0;\n\tb=0;\n\tc=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(high<=140)&&(low<=90)&&(low>=60)){\n\t\t\ta++;\n\t\t\tc=a;\n\t\t}else{\n\t\t\t//if(n==1){\n\t\t//\t\tprintf(\"0\");\n\t\t//\t}\n\t\t\tif(a>0){\n\t\t\t\tmid=b;\n\t\t\t\tif(a>mid){\n\t\t\t\t\tb=a;\n\t\t\t\t}\t\t\t\t\n\t\t\t\ta=0;\n\t\t\t}\n\t\t}\n\t}\n\tif(c=90&&x<=140&&y>=60&&y<=90)\n z++;\n else z=0;\n if(z>=a) a=z; \n }\n printf(\"%d\",a);\n return 0;\n}"} +{"label": "82", "index": "40788", "code": "int main()\n{\n\tint n,i,j,l,shou[100],shu[100],total[100]={0},k=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&shou[j]<=140&&shu[j]>=60&&shu[j]<=90){\n\t\t total[k]++;\n\t }\n else {\n k++;\n\t }\n }\t\n int max=0;\n for(l=0;lmax){\n\t max=total[l];\n\t }\n }\n printf(\"%d\",max);\n return 0;\n}"} +{"label": "82", "index": "40789", "code": "main()\n{\nint n;\nscanf(\"%d\", &n);\nint a[n], b[n]; int i;\nfor(i=0; i=90&&a[i]<=140)&&(b[i]>=60&&b[i]<=90))\n {\n p=p+1;\n c[i]=0; \n }\n else\n {\n c[i]=p; p=0;\n }\n }\nif ((a[n-1]>=90&&a[n-1]<=140)&&(b[n-1]>=60&&b[n-1]<=90))\n{ c[n-1]=p+1;}\nelse\n{ c[n-1]=p;}\nint Max=0;\nfor(i=0; i>n;\n\tfor (i=0;i>a[i]>>b[i];\n\tfor (i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{ count[i]=1;\n\t\t\tfor (j=i+1;j=90&&a[j]<=140&&b[j]>=60&&b[j]<=90)\n\t\t\t\t\tcount[i]++;\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}\n\tint max=0;\n\tfor (i=0;imax)\n\t\t\tmax=count[i];\n\t}\n\tcout<=90&&b<=140&&c>=60&&c<=90)\n {\n m++; \n a[i]=m;\n } \n else{\n m=0; \n a[i]=0;\n }\n }\n a[n]=a[n-1];\n for(i=0;ia[i])\n t=a[i+1];\n else{\n t=a[i+1];\n a[i+1]=a[i];\n a[i]=t;\n t=a[i+1];\n }\n } \n printf(\"%d\",t);\n return 0;\n} "} +{"label": "82", "index": "40792", "code": "int main()\n{\n\tint n,i,j,x,y,max=0,sum[50]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=j=0;i=90&&x<=140&&y>=60&&y<=90)\n\t\t\tsum[j]++;\n\t\telse\n\t\t\tif(sum[j])\n\t\t\t\tj++;\n\t}\n\tfor(i=0;i<50;i++)\n\t\tif(max<=sum[i])\n\t\t\tmax=sum[i];\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40793", "code": "/*\n * ????.cpp\n *\n * Created on: 2012-10-14\n * Author: ??\n */\n\nint max (int a,int b) //??????????????????\n{\n\treturn a > b?a:b;\n}\n\nint main(){\n int n,a,b,ans; //ans?????\n\tint sum = 0;\n\tcin >>n;\n\tsum = 0;\n ans = 0;\n\tfor (int i = 1;i <= n;i ++)\n\t{\n\t\tcin >>a >>b;\n\t\tif ((a >= 90 &&a <= 140) && (b >= 60 &&b <= 90))\n\t\t\t{sum ++;\n\t\tans = max(ans,sum);} //?????????ans?\n\t\telse sum = 0; //??????????sum??????\n\n\t}\n\tcout <=90)&&(sz[i][0]<=140)&&(sz[i][1]>=60)&&(sz[i][1]<=90))\n\t\t\t{\n\t\t\t\ta++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsf[k]=a;\n\t\t\t\tk++;\n\t\t\t\ta=0;\n\t\t\t}\n\t\t}\n\t\tif(i==n-1)\n\t\t{\n\t\t\tif((sz[i][0]>=90)&&(sz[i][0]<=140)&&(sz[i][1]>=60)&&(sz[i][1]<=90))\n\t\t\t{\n\t\t\t\tsf[k]=a+1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsf[k]=a;\n\t\t\t}\n\t\t}\n\t\n\t}\n\tfor(l=0;lsf[l+1])\n\t\t{\n\t\t\te=sf[l];\n\t\t\tsf[l]=sf[l+1];\n\t\t\tsf[l+1]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",sf[k]);\n\treturn 0;\n}"} +{"label": "82", "index": "40795", "code": "int main()\n{\n\tint hour[101] ={0}, high, low;\n\tint n;\n\tcin >> n;\n\tint num = 1;\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tcin >> high >> low;\n\t\tif( high >= 90 && high <= 140 && low >= 60 && low <= 90 )\n\t\t\thour[num] ++;\n\t\telse\n\t\t\tnum ++;\n\t}\n\tint max = 0;\n\tfor(int i = 1; i <= num; i++)\n\t{\n\t\tif( hour[i] > max )\n\t\t\tmax = hour[i];\n\t}\n\tcout << max << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40796", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,plow,phigh,k,i,m;\n\tscanf(\"%d\",&n);\n\tfor(i=1,k=0,m=0;i<=n;i++){\n\tscanf(\"%d %d\",&phigh,&plow);\n\tif((plow>=60)&&(plow<=90)&&(phigh>=90)&&(phigh<=140)){\n\tk++;}\n\telse{\n\t\tif(k>m){\n\tm=k;\n\tk=0;\n\t}\n\t\telse{\n\tk=0;}\n\t}}\n\tif(k>m){\n\t\tm=k;}\n\tprintf(\"%d\",m);\n\treturn 0;\n}"} +{"label": "82", "index": "40797", "code": "//***************************\n//**???6.cpp\n//**??????\n//**???2013.10.23\n//**?????????\n//***************************\n//??????????????????????????????\nint main()\n{\n\t// n????????a?????????????b?????????????j?k???\n\tint n, high, low, a[100], b[50], j = 0, k = 0, max = 0;\n\tcin >> n;\n\n\tfor (int i = 1; i <= n; i++)\n\t{\n\t\tcin >> high >> low;\n\n\t\ta[i] = (high <= 140 && high >= 90 && low <= 90 && low >= 60);\n\t\tif (a[i] == 0) // ??????\n\t\t{\n\t\t\tj++; // b????????\n\t\t\tk = 0; // ??????0\n\t\t}\n\t\telse // ?????\n\t\t{\n\t\t\tk++; // ?????1\n\t\t\tb[j] = k;\n\t\t\tif (b[j] > max)\n\t\t\t\tmax = b[j];\n\t\t}\n\t}\n\tcout << max << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40798", "code": "//*************************************************\n//???????? *\n//?????? *\n//??10?8? *\n//************************************************* \nint main()\n{\n //??i?n???????????n \n //????a?b?c???????????????i????? \n int i, n, a[100], b[100], c[100] = {0};\n cin >> n;\n //?????\n //????start??????????t?????????max?????????? \n int start = 0, t = 0, max = 0;\n //???i????c[i]?1 \n for(i = 1; i <= n; i++)\n {\n cin >> a[i] >> b[i];\n if((a[i] >= 90 )&& (a[i] <= 140) && (b[i] >= 60) && (b[i] <= 90))\n c[i] = 1;\n }\n //?????????????? \n for(i = 1; i <= n+1; i++)\n {\n if(c[i] == 0)\n {\n t = i - start -1;\n start = i;\n \n if(max < t)\n max=t;\n }\n }\n cout << max;\n \n}"} +{"label": "82", "index": "40799", "code": "int main(){\n\tint a[1000],b[1000],n,i=0,t=0,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90 && a[i]<=140 && b[i]>=60 && b[i]<=90){\n\t\t\tt=t+1;\n\t\t\tif(t>max){\n\t\t\t\tmax=t;\n\t\t\t}\n\t\t}\n\t\telse {\n t=0;\n\t\t\t\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40800", "code": "int main(int argc, char* argv[])\n{\n int n,sz[100][2],i,j,p[100]={1},hour=0,hour1[100]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i140||sz[i][1]<60||sz[i][1]>90){\n\t\t\tp[i]=0;\n\t\t}\n\t\telse p[i]=1;\n\t}\n\tfor(i=0;ihour){\n\t\t\thour=hour1[i];\n\t\t}\n\t}\n\n\t\t\n\t printf(\"%d\",hour);\n\n\n\n\n\t\n\treturn 0;\n\t\n}"} +{"label": "82", "index": "40801", "code": "int main()\n{\n\tint n,x,y,i,t,total,max,a[100],b[100],c[100];\n\tfor(i=0;i<=99;i++)\n\t{ \n\t\ta[i]=0;\n\t\tb[i]=0;\n\t\tc[i]=0;\n\t}\n\n\tscanf(\"%d\",&n);\n\tfor(i=0,t=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d%d\",&x,&y);\n\t\tif(x>=90&&x<=140&&y>=60&&y<=90)\n\t\t a[t]=a[t]+1;\n\t\telse\n\t\tt=t+1;\t\n\t}\nmax=a[0];\n\tfor(i=0;i<=98;i++)\n\t{ \n if(max>a[i+1])\n\t\t\ttotal=max;\n\t\telse \n\t\t{\n\t\t\tmax=a[i+1];\n\t\t total=max;\n\t\t}\n\t}\nprintf(\"%d\\n\",total);\n\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40802", "code": "int main(){\n\tint n,i,a[100],b[100],p[100],e[100],j,m=0,max;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(b[i]<=90)&&(b[i]>=60)){\n\t p[i]=1;\n\t}\n\telse{\n\t\tp[i]=0;\n\t}\n\t}\n\tfor(i=0;imax){\n\t\tmax=e[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\t\n\n\nreturn 0;\n\n\n}\n\n\n\n\n\n"} +{"label": "82", "index": "40803", "code": "int main()\n{\n\tint n,j=-1,i,sz[100][2],time[100]={0},f=1,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&sz[i][0]<=140&&60<=sz[i][1]&&sz[i][1]<=90&&f==1)\n\t\t{\n\t\t\tj++;\n\t\t\ttime[j]++;\n\t\t\tf=0;\n\t\t}\n\t\telse if(sz[i][0]>=90&&sz[i][0]<=140&&60<=sz[i][1]&&sz[i][1]<=90)\n\t\t{\n\t\t\ttime[j]++;\n\t\t}\n\n\t\telse{f=1;}\n\n\t}\n\tfor(i=0;i<=j;i++)\n\t{\n\t\tif(max=90&&sz[i][0]<=140&&sz[i][1]>=60&&sz[i][1]<=90)\n\t\t\t{\n\t\t\t\ts++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsf[a]=s;\n\t\t\t\ta++;\n\t\t\t\ts=0;\n\t\t\t}\n\t\t}\n\t\tif(i==n-1)\n\t\t{\n\t\t\t\tif(sz[i][0]>=90&&sz[i][0]<=140&&sz[i][1]>=60&&sz[i][1]<=90)\n\t\t\t{\n\t\t\t\ts++;\n\t\t\t\tsf[a]=s;\n\t\t\t\ta++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsf[a]=s;\n\t\t\t\ta++;\n\t\t\t}\n\t\t}\n\n\t}\n\t\n\tfor(i=0;isf[i+1])\n\t\t{\n\t\t\te=sf[i];\n\t\t\tsf[i]=sf[i+1];\n\t\t\tsf[i+1]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",sf[a-1]);\n\treturn 0;\n}"} +{"label": "82", "index": "40805", "code": "int main(){\n\tint c,i,a,b,n[100]={0},k=0,j,e;\n\tscanf(\"%d\",&c);\n\tfor(i=0;i=90)&&(a<=140)&&(b>=60)&&(b<=90))\n\t\t\tn[k]+=1;\n\t\telse\n\t\t\tk+=1;\n\t}\n\tfor(j=1;j<=k+1;j++){\n\tfor(i=0;i=90&&z[i]<=140&&q[i]>=60&&q[i]<=90) {l[m]++;}\n else\n {\n m++; \n }\n }\n for(i=0;i<=m;i++)\n {\n if(l[i]>p){\n p=l[i]; \n }\n }\nprintf(\"%d\",p);\nreturn 0;\n}"} +{"label": "82", "index": "40807", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int sz[n][2];\n int k=0;\n int sum=0;\n for(int i=0;i=90&&sz[i][1]<=90&&sz[i][1]>=60)\n {\n sum++;\n }\n else \n {\n if(kk)printf(\"%d\",sum);\n else printf(\"%d\",k);\n return 0;\n}"} +{"label": "82", "index": "40808", "code": "/*\n * 1.cpp\n *\n * Created on: 2012-10-13\n * Author: ???\n * Function:????????????????\n */\n\n\nint highPressure;\nint lowPressure;\nint a[100];\nint hour=0;\nint n,j=0;\n\nint main()\n{\n\tcin>>n;//??????\n for(int i=1;i<=n;i++)\n {\n \tcin>>highPressure>>lowPressure;\n \tif(highPressure>=90&&highPressure<=140&&lowPressure>=60&&lowPressure<=90)//???????\n \t{\n \t\thour++;\n\n \t}\n \telse\n \t\t{\n \t\thour=a[j];//??????????????????????????????????????????\n \t hour=0;\n \t j++;//???????\n \t\t}\n \ta[j]=hour;//???????????????????????????????????\n\n }\n\n while(j>0)//?????????????????a[0]\n {\n \tif(a[j]>a[j-1])\n \t{a[j-1]=a[j];}\n \t j--;\n }\n \tcout<=90&&s[i][1]<=90&&s[i][1]>=60)\n\t\t{\n\t\t\t\n\t\t\tj[l]++;\n\t\t\tif(s[i+1][0]>140||s[i+1][0]<90||s[i+1][1]>90||s[i+1][1]<60)\n\t\t\t{\n\t\t\t\tl++;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\n\t}\n\tif(s[n-2][0]<=140&&s[n-2][0]>=90&&s[n-2][1]<=90&&s[n-2][1]>=60)\n\t{\n\t\tif(s[n-1][0]<=140&&s[n-1][0]>=90&&s[n-1][1]<=90&&s[n-1][1]>=60)\n\t\t\tj[l]++;\n\t}\n\t\n\telse\n\t{\n\t\tif(s[n-1][0]<=140&&s[n-1][0]>=90&&s[n-1][1]<=90&&s[n-1][1]>=60)\n\t\t\tj[l]=1;\n\t}\n\t\n\n\tfor(i=0;imax)\n\t\t\tmax=j[i];\n\t}\n\tprintf(\"%d\",max);\n\n\t\n\n\treturn 0;\n}\n"} +{"label": "82", "index": "40811", "code": "int main()\n{\n\tint n,a[100][2],i,k=0,t=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i][0]<=140&&a[i][1]>=60&&a[i][1]<=90)\n\t\t\tk++;\n\t\telse\n\t\t{\n\t\t\tt=k>t?k:t;\n\t\t k=0;\n\t\t}\n\t}\n\tt=k>t?k:t;\n\tprintf(\"%d\\n\",t);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40812", "code": "int main()\n{\n\tint n,i,j;\n\tint hour[100]={0};\n\tscanf(\"%d\",&n);\n\tint data[100][2];\n\tfor(i=0,j=0;i=90&&data[i][0]<=140&&data[i][1]>=60&&data[i][1]<=90)\n\t\t\thour[j]++;\n\t\telse j++;\n\t}\n\tint j0=j;\n\tint h=0;\n\tfor(j=0;j<=j0;j++)\n\t{\n\t\tif(h=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)c[i]=1;\n}\nmax=0;\nfor(i=1;i<=n;i++){\nif(c[i]==1&&c[i-1]==1)k=k+1;\nelse k=0;\nif(k>max)max=k;\n\n}\nif (max==0)\nfor(i=1;i<=n;i++)\nif(c[i]==1){\n\tprintf(\"1\");\n\treturn 0;\n\n\n}\nif(max!=0)\nprintf(\"%d\",max+1);\nif(max==0) printf(\"%d\",max);\nreturn 0;\n}\n"} +{"label": "82", "index": "40814", "code": "\nint main(){\n\tint n;\n\n\tscanf(\"%d\\n\",&n);\n\tint sz[100][100];\n\tint jg[100]={0};\n\tfor(int i=0;i=90)&&(sz[k][1]>=60)&&(sz[k][1]<=90)){\n\t\t\tjg[t]++;\n\t\t}else{\n\t\t\tt+=2;\n\t\t}\n\t}\n\tfor(int q=0;q<(t+1);q++){\n\t\tint e;\n\t\tif(jg[q]>jg[q+1]){\n\t\t\te=jg[q];\n\t\t\tjg[q+1]=jg[q];\n\t\t\te=jg[q];\n\t\t}\n\t}\n\t\n\tprintf(\"%d\",jg[t+1]);\nreturn 0;\n}\n\t\n\t\t\n"} +{"label": "82", "index": "40815", "code": "int main (){\n\tint i,j,t=0,max=0,n;\n\tint xy[100][2];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=90&&xy[j][0]<=140&&xy[j][1]>=60&&xy[j][1]<=90){\n\t\t\tt=t+1;\n\t\t\tfor (i=j+1;i=90&&xy[i][0]<=140&&xy[i][1]>=60&&xy[i][1]<=90){\n\t\t\t\t\t t++;\n\t\t\t\t }\n\t\t\t\t else break;\n\t\t\t}\n\t\t\tif (t>max) max=t;\n\t\t\t\n\t\t}\n\t\tt=0;\n\t}\n\tprintf (\"%d\",max);\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40816", "code": "int main(){\n\tint i,n,t,j,max,e,f;\n t=0;\n\tscanf(\"%d\",&n);\n\tint a[100];int b[100];int c[100];\n for(j=0;j<=99;j++)\n\t\ta[j]=0,b[j]=0,c[j]=0;\n\tmax=0;\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tt++;\n\t\t}else{c[i]=t;\n\tt=0;\n\t}\n\tc[n]=t;\n\t}\n\tfor(i=0;i<=n;i++){\n\t\tif(c[i]>max){max=c[i];}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40817", "code": "int main(){\n\tint n,i,m,k;\n\tint gy[100];\n\tint dy[100];\n\tk=0;\n\tm=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&gy[i]<=140&&dy[i]>=60&&dy[i]<=90){\n\t\t\tk++;if(k>m){\n\t\t\t\tm=k;\n\t\t\t}}else{\n\t\t\t\tm=m;\n\t\t\t\tk=0;\n\t\t}\n\t}\n\tprintf(\"%d\",m);\n\treturn 0;\n}"} +{"label": "82", "index": "40818", "code": "int n,high,low,s,ans;//n?????high,low????????????????,s??????????????ans???\nint main()\n{\n cin>>n;//??\n for(;n--;)//??n?\n {\n cin>>high>>low;//????????????????\n if(90<=high&&high<=140&&60<=low&&low<=90)//??\n {\n ++s;//?????????\n if(s>ans)//????\n ans=s;\n }\n else//???\n s=0;//?????????\n }\n cout<> n;\n\twhile (i <= n)\n\t{\n\t\tcin >> sp >> dp;\n\t\tif(sp >= 90 && sp <= 140 && dp >= 60 && dp <= 90)\n\t\t{\n\t\t\ttime = time + 1;\n\t\t}\n\t\telse\n\t\t{\tif(max max)\n\t\t\tmax = time;\n\t\ti = i + 1;\n\t}\n\tcout << max;\n\treturn 0;\n}"} +{"label": "82", "index": "40820", "code": "int main()\n{\n\tint n,i,k=0,d[100]={0},c,a[100],b[100];\n\t scanf(\"%d\",&n);\n\t for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t {\n\t\t\t d[k]++;\n\t\t\t i++;\n\t\t }\n\t\t k++;\n\t }\n\t c=d[0];\n\t for(i=0;ic)\n\t\t{\n\t\t\tc=d[i];\n\t\t}\n\t }\n\t printf(\"%d\",c);\n\t return 0;\n}"} +{"label": "82", "index": "40821", "code": "\nint main()\n{\n\tint i,j,n,k,e,max,a[100][2],b[100];\n\tfor(i=0;i<100;i++){\n\t\tfor(j=0;j<2;j++){\n a[i][j]=0;\n\t\t}\t\n\t}\n\tfor(i=0;i<100;i++){\n\t\tb[i]=0;\n\t}\n\tscanf(\"%d\",&n);\n\tfor (i=0;i> n;\n\tx = 0;\n\th = 0;\n\tfor (i=1; i<=n; i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif (a[i] <= 140 && a[i] >=90 && b[i] <=90 && b[i] >=60)\n\t\t\tx = x + 1;\n\t\telse if (x >= h)\n\t\t{\n\t\t\th = x;\n\t\t\tx = 0;\n\t\t}\n\t\telse x = 0;\n\t}\n\tif (x >= h)\n\t\th = x;\n\tcout << h << endl;\n\treturn 0; \n\n} "} +{"label": "82", "index": "40823", "code": "int t[10001];\nint main()\n{\n int i,n,m=0,t=0,x,y;\n scanf(\"%d\",&n);\n for(i=0;i=90&&x<=140&&y<=90&&y>=60){t++;m=m>t?m:t;}\n else t=0;\n}\n printf(\"%d\",m);\n return 0;\n}\n"} +{"label": "82", "index": "40824", "code": "int main(){\n\tint n;\n\tint shifou[100];\n\tint a,b;\n\tint shijian[100];\n\tint i,j=0;\n\tint k;\n\tfor(i=0;i<100;i++){\n\t\tshijian[i]=0;\n\t}\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tshifou[i]=1;\n\t\t}\n\t\telse{\n\t\t\tshifou[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tfor(i=0;i>b[i]>>c[i];\n\tfor(i=0;i=90&&b[j]<=140&&c[j]>=60&&c[j]<=90;j++,m++);\n\ta[k++]=m;\n\t}\n\tfor(i=0;i=max)\n\t\t max=a[i];}\n\tcout << max << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40826", "code": "int main()\n{\n int n,i,j=0,max;\n int bp[N][2];\n int sz[N];\n int hou[N];\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n {\n scanf(\"%d%d\",&bp[i][0],&bp[i][1]);\n }\n for(i=0;i<=n;i++)\n {\n sz[i]=0;\n hou[i]=0;\n }\n for(i=0;i<=n-1;i++)\n {\n if(((bp[i][0]>=90)&&(bp[i][0]<=140))&&((bp[i][1]>=60)&&(bp[i][1]<=90)))\n {\n sz[i]=1;\n }\n \n }\n for(i=0;i<=n;i++)\n {\n if(sz[i]==1)\n {\n j++; \n }\n else\n {\n hou[i]=j;\n j=0;\n }\n }\n max=hou[0];\n for(i=0;i<=n;i++)\n {\n if(max> n;\n\n\tfor ( i=1; i <= n; i++)\n\t{\n\t\tcin >> a >> b;\n\n\t\tif (a >= 90 && a <= 140 && b >=60 && b <=90)\n\t\t{\n\t\t\tk+=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm=(m > k) ? m : k ;\n\t\t\tk=0;\n\t\t}\n\t}\n\tm=(m > k) ? m : k ;\n\tcout << m << endl;\n\n\treturn 0;\n}"} +{"label": "82", "index": "40828", "code": "int main(){\nint n,m1,m2;\nint a=1;\nint b=0;\nint c=0;\nscanf(\"%d\",&n);\nwhile(a<=n){\n\tscanf(\"%d%d\",&m1,&m2);\n\tif(m1>=90&&m1<=140&&m2>=60&&m2<=90){\n\t\tb=b+1;\n\t}else{\n\t\tif(b>=c){\n\t\t\tc=b;\n\t\t}\n\t\t\tb=0;\n\t}\n\ta=a+1;\n}\nif(b>=c){\n\tc=b;\n}\n printf(\"%d\",c);\n return 0;}"} +{"label": "82", "index": "40829", "code": "void main(){\n\tint n,x,y,i,hour[100];\n\tint normal[100],m=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<100;i++)\n\t\tnormal[i]=0;\n\tfor(i=0;i140||y<60||y>90)\n\t\t\tm++;\n\t\telse\n\t\t\tnormal[m]++;\n\t}\n\tfor(i=0;i<=m;i++){\n\t\tif(normal[i]=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\t\tm=m+1;if(i==n-1)c[j]=m;\n\t\t\t}\n\t\t\telse {c[j]=m;m=0;j=j+1;}\n\t\t\n\t\t}\n\t\tx=c[0];\n\t\tfor(t=0;t=90&&a<=140&&b>=60&&b<=90)\n\t\t{\n\tsz[c]++;\n\t\t}\n\t\telse\n\t\t{\n\t\tc++;\n\t\t}\n\t}\n\tfor(i=0;i<99;i++)\n\t{\n\t\tfor(k=0;k<99-i;k++)\n\t\t{\n\t\t\tif(sz[k]>sz[k+1])\n\t\t\t{\n\t\t\t\te=sz[k];\n\t\t\t\tsz[k]=sz[k+1];\n\t\t\t\tsz[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",sz[99]);\n\n\n\treturn 0;\n}"} +{"label": "82", "index": "40832", "code": "int main()\n{\n\tint i,n,a,b,x=0,hour=0;\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a>>b;\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90)\n\t\t{x=x+1;\n\t\tif(x>hour)\n\t\t\thour=x;}\n\t\t else x=0;\n\t}\n\tcout<>n;\n\tint count,max=0,i=0;\n\twhile(i>h>>l;\n\t\t\tif((h>140||h<90)||(l>90||l<60)){\n\t\t\t\ti++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcount++;\n\t\t\t\tif(count>max) max=count;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t}\n\tcout<=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\tc[i]=1;\n\t}\n\tfor(i=0;i0&&c[i-1]==1))\n\t\t\t\tsum[j]++;\n\t\t\telse \n\t\t\t{\n\t\t\t\tj++;\n\t\t\t\tsum[j]++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=j;i++)\n\t\tif(max=90&&sz[i]<=140&&ss[i]>=60&&ss[i]<=90){\n\t\tm++;}\n\telse { k=(k>=m)?k:m;\n\tm=0;\n}}\n\tk=(k>=m)?k:m;\n\nprintf(\"%d\",k);\nreturn 0;\n}"} +{"label": "82", "index": "40836", "code": "int main(){\n int n,i,t,j;\n scanf(\"%d\",&n);\n int a[100][2],b[100];\n for(i=0;i=90&&a[i][1]<=90&&a[i][1]>=60){\n b[j]=b[j]+1;\n }else{\n j++;\n b[j]=0;\n }\n }\n\n t=b[0];\n for(i=0;ib[i+1]?t:b[i+1]);\n }\n\n printf(\"%d\\n\",t);\n return 0;\n}\n"} +{"label": "82", "index": "40837", "code": "int main()\n{\n int n,a,b,i,j,k;\n scanf(\"%d\",&n);\n j=0;\n k=0;\n for(i=0;i=90&&a<=140)\n {\n if(b>=60&&b<=90)\n {j=j+1;\n if(j>=k)\n k=j;\n }\n else j=0;\n }\n else j=0;\n }\n printf(\"%d\",k);\n return 0;\n}"} +{"label": "82", "index": "40838", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tstruct point{\n\t\tint a,b;\n\t}\n\tsz[100];\n\tint i;\n\tfor(i=0;i=90&&sz[i].a<=140&&sz[i].b>=60&&sz[i].b<=90){\n\t\t\txsz[i]+=1;\n\t\t\tfor(j=i+1;j=90&&sz[j].a<=140&&sz[j].b>=60&&sz[j].b<=90){\n\t\t\t\t\txsz[i]+=1;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tint max=0;\n\tfor(i=0;imax){\n\t\t\tmax=xsz[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40839", "code": "int main()\n{\n\tint n,m=0,i,j,max[100],p[100][2];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&p[i][0]<=140&&p[i][1]>=60&&p[i][1]<=90){\n\t\t\tmax[i]=max[i-1]+1;\n\t\t}\n\t}\n\tfor(j=0;j<100;j++){\n\t\tif(max[j]>m){\n\t\t\tm=max[j];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",m);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40840", "code": "\nint main(){\n\tint n,i,j=1,xy[100][2],zc[100],k,max;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&xy[i][1]<=140&&xy[i][2]>=60&&xy[i][2]<=90){\n zc[j]++;\n\t\t}else{\n\t j++;\n\t\t zc[j]=0;\n\t\t}\n\t}\n\t\n\tmax=zc[1];\n\tfor(k=2;k<=j;k++){\n\t\tif(max=90&&ss[i]<=140&&sz[i]<=90&&sz[i]>=60){t++;time[i]=t;}\n\t\telse{t=0;}\n\t}\n\tmax=0;\n for(i=0;i>n;\n for(int i=0;i>a[i]>>b[i];\n for(int i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))//????????1 \n time=time+1;\n if((a[i]<90)||(a[i]>140)||(b[i]<60)||(b[i]>90)||(i==n-1))\n {\n if(hour>n;\n\tfor(i=0;i>arr[i][0]>>arr[i][1];\n\t}\n\tfor(i=0;i=90&&arr[i][1]<=90&&arr[i][1]>=60)\n\t\t{\n\t\t\th[j]=h[j]+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tj++;\n\t\t}\n\t}\n\tm=h[0];\n\tfor(i=1;i<100;i++)\n\t{\n\t\tif(h[i]>m)\n\t\t{\n\t\t\tm=h[i];\n\t\t}\n\t}\n\tcout<=90&&s[i]<=140&&s[i+1]>=60&&s[i+1]<=90)\n j++;\n else \n j=0;\n if(k<=j)\n k=j;\n }\n printf(\"%d\",k);\n\n return 0;\n}\n\n"} +{"label": "82", "index": "40845", "code": "int main(){\nint n;\nscanf(\"%d\",&n);\nint sh[100],s[100];\nint z[100];\nfor(int i=0;i<100;i++){\nz[i]=0;\n }\nfor(int i=0;i=90&&s[i]>=60&&s[i]<=90){\nz[u]++;\n }\nelse{\nbreak;\n}\n }\n }\nint t=0;\nfor(int i=0;i=90&&sz[i]<=90&&sz[i]>=60){\n a[i]=1;\n }else{\n a[i]=0;\n }\n }\n if(n==1){\n if(a[0]==1)\n m=1;\n }else{\n for(i=1;im)\n m=k;\n }else{\n k=1;\n if(k>m)\n m=k;\n }\n }\n }\n for(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90)){\n\t\t t++;\n if(t>max){\n max=t;\n\t\t }\n\t\t} else{ \n\t\t\t\n\t\t\tt=0;\n\t\t}\n\t\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40848", "code": "int main(){\n\tint n,i,j=0,r=0;\n\tint l[100];\n\tint s[3][100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(s[1][i]<=90)&&(s[1][i]>=60)){\n\t\t\ts[2][i]=1;\n\t\t}else{\n\t\t\ts[2][i]=0;\n\t\t}\n\t}\n for(i=0;i=90)&&(a<=140)&&(b>=60)&&(b<=90))\n {\n j++;\n }\n else\n {\n j=0;\n }\n printf(\"%d\",j);\n }\n else\n {\n for(k=0;k=90)&&(a<=140)&&(b>=60)&&(b<=90))\n {\n j++;\n }\n else\n {\n j=0;\n }\n *(pp+k)=j;\n }\n for(k=0;k<(n-1);k++)\n {\n if(*(pp+k)>=*(pp+k+1))\n {\n *(pp+k+1)=*(pp+k);\n }\n }\n free(pp);\n printf(\"%d\",*(pp+n-1));\n } \n return 0;\n}"} +{"label": "82", "index": "40850", "code": "int main()\n{\n\tint n, a, b, norm[100], num[100];\n\tcin >> n;\n\tfor(int i =\t1; i <= n; i++)\n\t{\n\t\tcin >> a >> b;\n\t\tnum[i] = 0;\n\t\tif(a >= 90 && a <= 140 && b >= 60 && b <= 90)\n\t\t\tnorm[i] = 1;\n\t\telse\n\t\t\tnorm[i] = 0;\n\t}\n\tfor(int i = 1; i <= n; i++)\n\t{\n\t\tfor(int j = i; j <= n; j++)\n\t\t{\n\t\t\tif(norm[j] == 1)\n\t\t\t\tnum[i] = num[i] + 1;\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tfor(int i = 2; i <= n - 1; i++)\n\t\tnum[1] = num[1] >= num[i]? num[1]:num[i];\n\tcout << num[1] << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40851", "code": "int main(){\n\tint n,a,b,i,x[100]={0},y[100]={0},s=0,k,m,e; \n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a<=140)&&(b<=90&&b>=60)){\n\t\t\tx[i]=1;\n\t\t}\n\t}\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tsum++;\n\t\t}\n\t\telse{\n\t\t\tif(sum>c){\n\t\t\t\tc=sum;\n\t\t\t}\n\t\t\tsum=0;\n\t\t}\n\t}\n\tif(c>=sum){\n\tprintf(\"%d\",c);\n\t}\n\tif(c=90&&shrink<=140&&diastole>=60&&diastole<=90)\n\t\t{\n\t\t\tif(i==n-1)\n\t\t\t{\n\t\t\t\tnormal++;\n\t\t\t\tif(normal>max)\n\t\t\t\tmax=normal;\n\t\t\t}\n\t\t\telse\n\t\t\t\tnormal++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(normal>max)\n\t\t\t\tmax=normal;\n\t\t\tnormal=0;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n}"} +{"label": "82", "index": "40854", "code": "int main(){\nint ss[100],sz[100],time[100];\nint n;\nint t=0,i=0,a=0;\nscanf(\"%d\",&n);\ntime[0]=0;\nwhile(t=90&&ss[t]<=140&&sz[t]>=60&&sz[t]<=90){\ni+=1;\na+=1;\ntime[a]=i;\n}else{\ni=0;\n}\nt++;\n}\nint s=0,max=0;\nwhile(s<=a){\n scanf(\"%d\",&time[s]);\nif(max=90&&x[i]<=140&&y[i]>=60&&y[i]<=90){\n t[u]++;\n }\n else{\n u=u+1;\n }\n }\n int max;\n max=0;\n for(int i=0;i<100;i++){\n if(max<=t[i]){\n max=t[i];\n }\n }\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40856", "code": "int main(){\n int sz[100];\n int cz[100];\n int pz[100];\n int n;\n int a;\n scanf(\"%d\",&n);\n for(int i=0;i=60&&sz[i]<=90&&cz[i]>=90&&cz[i]<=140){\n sum=sum+1;\n pz[i]=sum;\n }\n else sum=0;\n pz[i]=sum;\n }\n a=pz[0];\n for(int i=1;i=90&&y>=60&&y<=90&&n!=i)\n\t {\n\t\t h+=1;\n\t }else if(x>140||x<90||y<60||y>90||n!=i)\n\t {\n\t\t if(h>max)\n\t\t\t{\n\t\t\t max=h;\n\t\t\t}\n\t\t h=0;\n\t\t }else if(n==i)\n\t\t {\n\t\t\th=h+1;\n\t\t\tif(h>max)\n {\n\t\t\t max=h;\n\t\t\t}\n\t\t}\n\t }printf(\"%d\",max);\n\t}\n\treturn 0;\n}"} +{"label": "82", "index": "40858", "code": "int main(){\n int n,i,a[99],b[99],pd[99],y=0,j,e,s,max,h[99],x=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n pd[i]=1;y=1;\n }else{pd[i]=0;}\n }\n j=0;\n for(s=0;s>n;\n\tfor(i=1;i<=n;i++){\n\t\tcin>>a[i]>>b[i];\n\t\tif(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\t\t{if(c[i-1]==0)s++;\n\t\tc[i]=s;}\n\t}\n\tint sum=0;\n\tfor(i=1;i<=n;i++)\n\td[c[i]]++;\n\tfor(i=1;i<=n;i++)\n\tif(d[i]>sum)sum=d[i];\n\tcout<=90&&a[i][0]<=140&&a[i][1]>=60&&a[i][1]<=90)\n\t\t{\n\t\t\ts++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\tb=s;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(s>b)\n\t\t\t\t{\n\t\t\t\t\tb=s;\n\t\t\t\t}\n\t\t\t}\n\t\t\ts=0;\n\t\t}\n\t}\n\tif(s>b)\n\t{\n\t\tb=s;\n\t}\n\t\n\t\tprintf(\"%d\",b);\n\n\n\treturn 0;\n}"} +{"label": "82", "index": "40861", "code": "int main(){\n int n=0,i=0,j=0,k=0,s=0; //??3???????????0\n cin>>n; //??n\n int a[101],b[101],c[101]; //??????????????????????\n for(;i>a[i]>>b[i]; //?????????\n c[i]=0; //c[i]???0\n if (a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90) //??????\n c[k]=c[k]+1; //???????c?1\n else k=k+1; //?????c????????\n }\n c[n]=0; //?c[n+1]???????????\n c[n+1] = 0;\n for(;j<=k;j++){ //????\n if (s=90&&low[i]<=90&&low[i]>=60)\n\t\t{\n\t\t\tt[j]++;\n\t\t}else\n\t\t{\n\t\t\tj++;\n\t\t\tcontinue;\n\t\t\t\n\t\t}\n\n\t}\n\tint max=t[0];\n\tfor(i=0;i<=j;i++)\n\t{\n\t\tif(t[i]>max)\n\t\t{\n\t\t\te=max;\n\t\t\tmax=t[i];\n\t\t\tt[i]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\n\n\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40863", "code": "\nint main() {\n\tint a[101]={0};\n\tint high=0,low=0;\n\tint k=1;\n\tint z=1;\n\tint n;\n\tint max;\n\n\tcin >>n;\n\tfor(z=1;z<=n;z++)\n\t{\n\t\tcin >>high>>low;\n\t\tif((high<=140)&&(high>=90)&&(low<=90)&&(low>=60)) a[k]++;\n\t\telse k++;\n\t}\n\tmax=a[1];\n\tfor(k=1;k<=100;k++)\n\t\tif(a[k]>max) max=a[k];\n\tcout <> n;\n\tint time=0;\n\tint max=0; //???? \n\tint i,j=0;\n\tint a[n],b[n],c[n];\n\t\tfor(i=0;i> a[i] >> b[i]; //????? a?? b?? \n\tfor(i=0;imax) max=time;\n\tcout << max <=90&&x<=140&&y>=60&&y<=90){\n z=z+1;\n if(z>max){\n max=z;\n } \n }else if(z==0&&x<90||x>140||y<60||y>90){\n z=0;\n }else if(z!=0&&x<90||x>140||y<60||y>90){\n z=z-1;\n }\n i++;\n }\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40866", "code": "/**\n*@file 6.cpp\n*@author ???\n*@date 2013-10-24\n*@description ????\n*/\n\n\nint main()\n{\n int n, high, low, pre, hour;\n cin >> n;\n pre=0;\n hour=0;\n while(n--)\n {\n scanf(\"%d %d\",&high,&low);\n if(high>=90&&high<=140&&low>=60&&low<=90)\n pre++;\n if(!(high>=90&&high<=140&&low>=60&&low<=90))\n pre=0;\n hour=pre>=hour?pre:hour;\n }\n \n cout << hour << endl;\n return 0;\n} "} +{"label": "82", "index": "40867", "code": "/* ????????\n * ?????2012-10-20\n * ???winneshaw\n * ??????????????????\n * ?????90 - 140????????60 - 90???????????????\n * ????????????????????????????????\n */\n\n\nint main(){\n\tint n;\n\tcin>>n;\n\tint a[100]={0};\n\tint b[100]={0};\n\tint istep=0;\n\tint m=0;\n\tint i=0;\n\tdo{\n\t\tcin>>a[i]>>b[i];\n\t\ti++;\n\t}while(i=90&&b[istep]<=90&&b[istep]>=60)\n\t\t{\n\t c[istep]=m+1;\n\t m++;\n\t\t}\n\t else\n\t\t m=0;\n\tistep++;\n\t}while(istep89&&y[i]<91&&y[i]>59){\n biaoji[i]=1; \n } else{\n biaoji[i]=0; \n } \n }\n if(n>1){\n for(i=0;i<100;i++){\n jilu[i]=0; \n } \n k=1; \n for(i=0;i> n;\n\tj=0;\n\ts=0;\n\ttot=0;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tcin >> a;\n\t\tcin >> b;\n\t\tif (((a>=90)&&(a<=140))&&((b>=60)&&(b<=90)))\n\t\t{\n\t\t\tj++;\n\t\t s=j;\n\t\t}\n\t\telse \n\t{ \n\t\tif (j<=tot) \n\t\t\tj=0;\n\t\telse\n\t\t{\n\t\t\t\ttot=j;\n\t\t\t\tj=0;\n\t\t}\n\n\t\t\t\n\t}\n\t}\n\tif (j>=tot)\n\t\ttot=j;\n\n\tcout << tot;\n}"} +{"label": "82", "index": "40870", "code": "int main(){\nint n;\nscanf(\"%d\",&n);\nint ss[n],sz[n],i=0,zc[n];\nfor(i=0;i=90)&&(ss[i]<=140)&&(sz[i]<=90)&&(sz[i]>=60))\n {\n zc[j]++;\n }\n else\n {\n j++;\n }\n}\nfor(i=0;izui)\n {\n zui=zc[i];\n }\n}\nprintf(\"%d\",zui);\nreturn 0;\n}\n"} +{"label": "82", "index": "40871", "code": "//********************************\n//*???????????? **\n//*????? 1300012839 **\n//*???2013.10.27**\n//********************************\nint main()\n{\n\tint n,a,b,i,j,k,c[100],d[100],e[100],result; //ab??????????c?d????e??j???????\n\tcin >> n;\n\tfor(i = 0;i <= n-1; i++)\n\t{\n\t\tcin >> a >> b;\n\t\tc[i] = a;\n\t\td[i] = b; //???????c?d??\n\t}\n\tfor(j = 0;j <= n-1;j++) \n\t\t{\n\t\t\te[j] = 0;\n\t\t\tfor( k = j;k <= n-1;k++) //???????j????????\n\t\t {\n\t\t\t\tif(c[k] >= 90 && c[k] <= 140 && d[k] >= 60 && d[k] <= 90) //???? \n\t\t\t\t\te[j] = e[j] + 1; //????????1\n\t\t\t\telse break; //?????????????\n\t\t\t}\n\t }\n\tfor(j = 0;j < n-1;j++)\n\t\t{\n\t\t\tresult = e[j]>e[j+1]?e[j]:e[j+1];\n\t\t\te[j+1] = result; //????n???1.??????????e?????????\n\t }\n\tif(n!=1)cout << result << endl; \n\telse cout << e[0] << endl; //????????e?0?\n\treturn 0;\n}\n"} +{"label": "82", "index": "40872", "code": "int main()\n{\n\tint i,n,xy[100][2],m,z=0,k[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(xy[i][1]<=90&&xy[i][1]>=60))\n\t\t{\n\t\t\tz++;\n\t\t\tk[i]=z;\n }\n\t\telse\n {\n\t\t\tz=0;\n\t\t\tk[i]=z;\n\t\t}\n\t}\n\tint e;\n\tfor(m=1;mk[i+1])\n\t\t\t{\n\t\t\t\te=k[i+1];\n\t\t\t\tk[i+1]=k[i];\n\t\t\t\tk[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",k[n-1]);\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40873", "code": "int main()\n{\n\tint n,a[100],b[100],z=0,zm=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=90&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tz++;\n\t\t\tif(i==n-1)\n\t\t\t{\n\t\t\t\tif(z>zm)\n\t\t\t\t{\n\t\t\t\tzm=z;\n\t\t\t\t}\n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\tif(z>zm)\n\t\t\t{\n\t\t\t\tzm=z;\n\t\t\t}\n\t\t\tz=0;\n\t\t}\n\t}\n\tprintf(\"%d\",zm);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40874", "code": "\nint main()\n{\n \n int i,s,n,t;\n s=0;\n t=0;\n scanf(\"%d\",&n);\n struct pulse\n {\n int x;\n int y;\n } a[n];\n for(i=1;i<=n;i++)\n {\n scanf(\"%d %d\",&a[i].x,&a[i].y);\n }\n for(i=1;i<=n;i++)\n {\n if(a[i].x<=140&&a[i].x>=90&&a[i].y<=90&&a[i].y>=60)\n {\n s++;\n if(t= 90 && a <= 140 && b >= 60 && b <= 90 )\nstr[ i ] = 1 ;\n}\n\nfor( i = 1 ; i <= n ; i ++ )\nif( str[ i ] == 1 )\nstr[ i ] = str[ i - 1 ] + 1 ;\n\na = 0 ;\nfor( i = 1 ; i <= n ; i ++ )\nif( str[ i ] > a )\na = str[ i ];\n\nprintf( \"%d\\n\" , a);\n}"} +{"label": "82", "index": "40876", "code": "int main(){\n\tint a,b,n,z[100],i,e,r;\n\tr=0;\n\te=-1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<100;i++) z[i]=0;\n\tfor(i=0;i=90&&a<=140&&b>=60&&b<=90){z[i]=1;r=1;}\n\t}\n\tfor(i=e+1;imax) \n\t {\n\t\t //q=c[d];\n\t\t //c[d]=c[d+1];\n\t\t //c[d+1]=q;\n\t\t max=c[p];\n\t }\n\t }\n printf(\"%d\",max);\n }\n else\n {int max=0;\n for(p=1;p<=d;p++)\n\t {\n\t if(c[p]>max) \n\t {\n\t\t //q=c[d];\n\t\t //c[d]=c[d+1];\n\t\t //c[d+1]=q;\n\t\t max=c[p];\n\t }\n\t }\n printf(\"%d\",max);\n }\n \n return 0;\n}\n \n \n"} +{"label": "82", "index": "40878", "code": "\nint max(int(x),int(y))\n{\n if(x>=y)\n return x;\n else\n return y;\n}\n\nint main()\n{ int n;\n cin>>n;\n int i=0;\n int t1=0,t2=0;\n int t=0;\n int a,b;\n for (i=0;i>a>>b;\n if ((a>=90&&a<=140)&&(b>=60&&b<=90))\n {\n\n t=t+1;\n t1=t;\n }\n else\n {\n\n\n t1=max(t,t2);\n t=0;\n t2=t1;\n\n }\n\n }\n t1=max(t,t2);\n cout<>n;\n\twhile(n!=0)//??????n??\n\t{cin>>a >>b;\n\tif(a>=90 && a<=140 && b>=60 && b<=90)\n\t i++; //?????i+1\n\telse\n\t i=0; //??????i????\n\tif(h<=i)\n\t\th=i; //??h?????????\n\t n--;\n\t \t}\n cout<=90&&gao[i]<=140&&di[i]>=60&&di[i]<=90)\n\t\t{\n\t\t\tcs[t]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tt++;\n\t\t}\n\t}\n\tfor(i=1;ics[k+1])\n\t\t {\n\t\t\t max=cs[k+1];\n\t\t\t cs[k+1]=cs[k];\n\t\t\t cs[k]=max;\n\t\t }\n\t }\n\t}\n\tprintf(\"%d\",cs[t]);\n\treturn 0;\n}"} +{"label": "82", "index": "40881", "code": "int main()\n{\n\tint n,p[100][2],i,j,a=0,x=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&p[i][0]<=140&&p[i][1]>=60&&p[i][1]<=90){\n\t\t\ta++;\n\t\t}\n\t\telse{\n\t\t\tif(a>x){\n\t\t\t\tx=a;\n\t\t\t\ta=0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ta=0;\n\t\t\t}\n\t\t}\n\t}\n\tif(a>x){\n\t\tx=a;\n\t}\n\tprintf(\"%d\",x);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40882", "code": "/*\n * NormalBloodPressure.cpp\n *\n * Created on: 2012-10-16\n * Author: Cui Zhaoxiong Class4 1200012931\n */\nint main(){\n\tint n=0,m=0;\n\tint sys[100],dias[100],c[100];\n\tcin >>n;\n\tfor(int i=0;i>sys[i] >>dias[i];\n\t}\n\tfor (int i=0;i=90&&ss[e]<=140&&sz[e]>=60&&sz[e]<=90){\n\t\t\tqk[e]=1;\n\t\t}\n\t\telse{qk[e]=0;}\n\t}\n\tint a=0,c=0;\n\tint r;\n\tfor(r=0;ra){a=c;}\n\t\tc=0;\n\t}\n\tprintf(\"%d\",a);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40884", "code": "int main()\n{\n\tint n,i,shousuo[101],shuzhang[101],xiaoshi[101],k=0,t;\nscanf(\"%d\",&n);\n\t\tfor(i=0;i=90&&shuzhang[i]<=90&&shuzhang[i]>=60){\nxiaoshi[k]++;\n\t\t\t}else{\nk++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;ixiaoshi[0]){\nt=xiaoshi[0];\nxiaoshi[0]=xiaoshi[i];\nxiaoshi[i]=t;\n\t\t}\n\t\t}\n\t\tprintf(\"%d\",xiaoshi[0]);\n\treturn 0;\n\t\t}\n\n\n"} +{"label": "82", "index": "40885", "code": "int main()\n{\n\tint n,i,a[100],b[100],n1=0,n2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d %d\",&a[i-1],&b[i-1]);\n\t if(a[i-1]>=90 && a[i-1]<=140 && b[i-1]<=90 && b[i-1]>=60)\n\t\t{\n\t\t\tn1++;\n\t\t\tif(n1>n2)\n\t\t\t{\n\t\t\t\tn2=n1;\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\tn1=0;\n\t\t\n\t}\n\tprintf(\"%d\\n\",n2);\n\treturn 0;\n}\n\n\n"} +{"label": "82", "index": "40886", "code": "int main()\n{\n int i,n;\n scanf(\"%d\",&n);\n int shousuo[101],shuzhang[101],count,Max,a[101];\n for(i=0;i=90&&shousuo[i]<=140&&60<=shuzhang[i]&&90>=shuzhang[i]){\n a[i+1]=1;\n }else{a[i+1]=0;}\n }\n a[0]=0;\n Max=0;\n count=0;\n for(i=1;i=90)&&(sz[i][0]<=140)&&(sz[i][1]>=60)&&(sz[i][1]<=90)){\n\t\t\ta=a+1;\n\t\t\tif(a>b){\n\t\t\t\tb=a;\n\t\t\t}\n\t\t}else{\n\t\t\ta=0;\n\t\t}\n\n\t}\n printf(\"%d\",b);\n\t\n\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40888", "code": "\nint main(){\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tstruct press{\n\t\tint a,b;\n\t}press[100];\n\tfor(i=0;i=90&&press[i].a<=140&&press[i].b>=60&&press[i].b<=90){\n\t\t\tnormal++;\n\t\t}else{\n\t\t\tif(normal>max){\n\t\t\t\tmax=normal;\n\t\t\t}\n\t\t\tnormal=0;\n\t\t}\n\t}\n\tif(normal>max){\n\t\tmax=normal;\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40889", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint sz[100][2];\n\tfor(int i=0;i=90&&sz[j][0]<=140&&sz[j][1]>=60&&sz[j][1]<=90){\n\t\t\tsub[a]++;\n\t\t}\n\t\telse\n\t\t\ta++;\n\t}\n\tint e;\n for(int k=1;k=90&&b<=90&&b>=60){\n\t\t\tj+=1;\n\t\t}else{\n\t\t\tsz[m]=j;\n\t\t\tj=0;\n\t\t\tif(c=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tp++;\n\t\t}else{\n\t\t\tif(p>result){\n\t\t\t\tresult=p;\n\t\t\t}else{\n\t\t\t\tresult=result;\n\t\t\t}\n\t\t\tp=0;\n\t\t}\n\t}\n\twhile(i==n-1){\n\t\tif(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tp++;\n\t\t}\n\t\tif(p>result){\n\t\t\tresult=p;\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n\",result);\n\treturn 0;\n}"} +{"label": "82", "index": "40892", "code": "//\n// main.cpp\n// ????\n//\n// Created by mac on 12-10-28.\n// Copyright (c) 2012? mac. All rights reserved.\n//\n\nint main(){\n int n,i,a[1000],b[1000],c[1000]={0};//???????????\n cin>>n;//????????\n for(i=1;i<=n;i++)\n cin>>a[i]>>b[i]; //????????\n for(i=1;i<=n;i++){\n if(90<=a[i]&&a[i]<=140&&60<=b[i]&&b[i]<=90)//????\n c[i]=c[i-1]+1;\n else\n c[i]=0;\n }\n int max=0;\n for(i=1;i<=n;i++)\n {\n if(c[i]>max)\n max=c[i];\n else\n max=max;\n }\n cout<=90&&h[i]<=140&&l[i]>=60&&l[i]<=90){hour[i]=hour[i-1]+1;}\n\t\tif(hour[i]>=max){max=hour[i];}}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n\n\n\n\t"} +{"label": "82", "index": "40894", "code": "void arrange(int *arrangearry,int nt,int kd_order)\n{\n\tint flagi,flagj,temporary;\n\tif(kd_order==1)\n\t{\n\t\tfor(flagi=nt-1;flagi>0;flagi--)\n\t\t{\n\t\t\tfor(flagj=0;flagj>n;\n\tfor(i=0;i>ss[i]>>sz[i];\n\t\tif(ss[i]>=90&&ss[i]<=140&&sz[i]>=60&&sz[i]<=90) h[j]++;\n\t\telse j++;\n\t}\n\tarrange(h,100,1);\n\tcout<=90&&a[i]<=140)&&(b[i]>=60&&b[i]<=90)){\n\t\t\td++;\n\t\t}else{\n\t\t\tc[e]=d;\n\t\t\te++;\n\t\t\td=0;\n\t\t}\n\t}\n\tif((a[n-1]>=90&&a[n-1]<=140)&&(b[n-1]>=60&&b[n-1]<=90)){\n\t\td++;\n\t\tc[e]=d;\n\t\te++;\n\t}else{\n c[e]=d;\n\t\te++;\n\t}\n\tfor(i=1;i<=e;i++){\n\t\tfor(k=0;k>n;\n\tfor(int k=0;k<100;k++)\n\t\ttime[k]=0;\n\tfor(int i=0;i>pressure[i][0]>>pressure[i][1];\n\t\t\t if((pressure[i][0]>=90)&&(pressure[i][0]<=140)&&(pressure[i][1]<=90)&&(pressure[i][1]>=60))\n\t\t\t\t\ttime[j]++;\n\t\t\t\telse\n\t\t\t\t\tj++;\n\t }\n\tmaxtime=time[0];\n\tfor(int m=0;m<100;m++)\n\t{\n\t\tif(maxtime=90&&x[i][0]<=140&&x[i][1]>=60&&x[i][1]<=90){\n m++;\n if(m>c&&i==a-1){\n c=m;\n break;\n }\n }else{\n if(c> n;\n\tfor (i = 0; i < n; i++)\n\t\tcin >> a1[i] >> a2[i];\n\tt = 0;\n\tl = 0;\n\tfor(j = 0; j < n; j++)\n\t{\n\t\tif (a1[j] <= 140 && a1[j] >= 90 && a2[j] <= 90 && a2[j] >= 60)\n\t\t{\n\t\t\tt++;\n\t\t\ttemp = t;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif (t > l)\n\t\t\t\tl = t;\n\t\t\tt = 0;\n\t\t}\n\t}\n\tif (temp > l)\n\t\tl = temp;\n\tcout << l << endl;\n\treturn 0;\n}\n"} +{"label": "82", "index": "40899", "code": "int main(){\n\tint i,n,gy[100],dy[100],zc[100],e,s,k,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&gy[i]<=140&&dy[i]>=60&&dy[i]<=90){\n\t\t\t zc[i]=1;\n\t\t }else{zc[i]=0;}\n\t}\n for(i=0;i=e){\n\t\t\tk=s-e+1;\n\t\t\tif(k>max){max=k;}\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40900", "code": "int main()\n{\n\tint n,i,j,r;\n\tint t=0;\n\tint gy[100];\n\tint dy[100];\n\tint tx[100];\n\tscanf (\"%d\",&n);\n\tfor(i=0;i=90&&gy[i]<=140&&dy[i]>=60&&dy[i]<=90){\n\t\t\tt++;\n\t\t\ttx[i]=t;\n\t\t}\n\t\telse{\n\t\t\tt=0;\n\t\t\ttx[i]=t;\n\t\t}\n\t}\n\tfor(j=n-1;j>0;j--){\n\t\tfor(r=0;r=90&&a[i][2]<=90&&a[i][2]>=60)\n\t\t\tb[i]=1;\n\t\telse b[i]=0;\n\t}\n\tj=1;\n\tfor(i=1;i=max)\n\t\t\tmax=k[j];\n\t}\n\tif(n==1)\n\t\tif(b[1]==1)\n\t\t\tprintf(\"1\");\n\t\telse printf(\"0\");\n\telse\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40902", "code": "int main(int argc, char* argv[])\n{\n\tint n,sz[100][2],s[100],i,j=0,k=1,b=0,a[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&sz[i][0]<=140&&sz[i][1]>=60&&sz[i][1]<=90)\n\t\t{\n\t\t\ts[j]=i;\n\t\t\tj++;\n\t\t}\n\t}\n\tif(j==0)\n\t\tprintf(\"0\\n\");\n\tif(j!=0)\n\t{\n\ts[j]=-1;\n\tfor(i=0;ia[i+1])\n\t\t{\n\t\t\tk=a[i+1];\n\t\t\ta[i+1]=a[i];\n\t\t\ta[i]=k;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",a[b-1]);\n\t}\n\treturn 0;\n\n}"} +{"label": "82", "index": "40903", "code": "\n\nint main()\n{\n\tint n,i,h,l,a=0,b,x=0,e,k;\n\tint s[100]={0};\n\tscanf(\"%d\\n\",&n);\n\tfor (i=0;i=90&&h<=140&&l>=60&&l<=90)\n\t\t\t{\n\t\t\t\ta++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ta=0;\n\t\t\t}\n\t\t\ts[x]=a;\n\t\t\tx++;\n\t}\n for(k=1;k<100;k++)\n\t{\n\t\tfor (x=0;x<100-k;x++)\n\t\t{\n\t\t\tif (s[x]>s[x+1])\n\t\t\t{\n \t\t\te=s[x];\n\t\t\t\ts[x]=s[x+1];\n\t\t\t\ts[x+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\tprintf(\"%d\",s[99]);\n return(0);\n}"} +{"label": "82", "index": "40904", "code": "int main(){\n\tint n,i,a[100],b[100],c[100],j=0,d;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\tc[j]++;\n\t\telse\n\t\t\tj++;\n\t}\n\tfor(i=0;ic[i+1]){\n\t\td=c[i];c[i]=c[i+1];c[i+1]=d;\n\t\t}\n\t}\n\tprintf(\"%d\",c[n-1]);\n\t\treturn 0;\n\t}\n"} +{"label": "82", "index": "40905", "code": "int main()\n{\n\tint i,k,x=0,n,b[100]={0},t[100]={0};\n\tscanf(\"%d\",&n);\n\tstruct point\n\t{\n\t\tint s;\n\t\tint z;\n\t}\n\ta[100];\n\tfor(i=0;i90||a[i].s==90)&&(a[i].s<140||a[i].s==140)&&(a[i].z>60||a[i].z==60)&&(a[i].z<90||a[i].z==90))\n\t\t{\n\t\t\tb[i]++;\n\t\t}\n\t}\n\tfor(i=0;in-1)\n\t\t\t\t{\n\t\t\t\t\tx++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tint max=0;\n\tfor(i=0;i=90&&a[d]<=140&&b[d]>=60&&b[d]<=90) {\n\t\t\tf++;\n\t\t c[e]=f;\n\t\t}\n\t\telse { \n\t\t\t\te++;\n\t\t\t\tf=0;\n\t\t\n\t\t}\n\t}\n\t\tfor(g=e-1;g>=1;g--){\n\t\t\tif (c[g]>n;\n\tfor(i=0;i>a[i]>>b[i];\n\t}\n\tfor(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))\n\t\t{\n\t\t\ttemp=temp+1;\n\n\t\tif(temp>t)\n\t\t\tt=temp;\n\t\t}\n\t\telse\n\t\t\ttemp=0;\n\t}\n\tcout<=90&&suoyous[i].qian<=140&&suoyous[i].hou>=60&&suoyous[i].hou<=90){\n\t\t\ts=i;\n\t\t\te=i+1;\n\t\t\twhile(suoyous[e].qian>=90&&suoyous[e].qian<=140&&suoyous[e].hou>=60&&suoyous[e].hou<=90){\n\t\t\t\te+=1;\n\t\t\t}\n\t\t}\n\t\thao[m]=e-s;\n\t\tm++;\n\t}\n\tfor(i=1;i<=m;i++){\n\t\tfor(k=0;k=90&&a[0]<=140&&b[0]>=60&&b[0]<=90){\n printf(\"1\");\n return 0;\n }else{\n printf(\"0\");\n return 0;\n }\n }\n\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90&&a[i+1]>=90&&a[i+1]<=140&&b[i+1]>=60&&b[i+1]<=90){\n normal++;\n }\n else{\n if(i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n {e[j]=normal+1;\n \n }else{e[j]=0;}\n }\n \n \n }\n }\n\n\n\n\n for(k=1;k<=j;k++){\n for(i=0;ie[i+1]){\n m=e[i+1];\n e[i+1]=e[i];\n e[i]=m;\n }\n }\n }\n if(e[j]==0)\n {\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n {\n printf(\"1\");\n return 0;\n }\n }\n printf(\"0\");\n return 0;\n }\n printf(\"%d\",e[j]);\n return 0;\n\n}\n\n"} +{"label": "82", "index": "40910", "code": "int main()\n{\n int n,i,k=0,j=0,MAX=0;\n int ss[100],sz[100],zc[100];\n scanf(\"%d\",&n);\n for(i=0;i=90)&&(ss[i]<=140)&&(sz[i]>=60)&&(sz[i]<=90)){\n k++;;\n }else{\n zc[j]=k;\n j++;\n k=0;\n }\n }\n zc[j]=k;\n for(i=0;i=90)&&(a<=140)&&(b>=60)&&(b<=90))\n\t\t{\n\t\t\tj++;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tk=(k>j)?k:j;j=0;\n\t\t}\n\t}\n\tk=(k>j)?k:j;\n\tprintf(\"%d\",k);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40912", "code": "int main(){\n int n,P,p,x,i,M,m;\n M=0;\n x=0;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d%d\",&P,&p);\n if(P>=90&&P<=140&&p>=60&&p<=90){\n x=x+1; m=x; } \n else{ \n m=x;\n x=0;}\n if(m>M){M=m; }\n}\n printf(\"%d\",M); \n return 0;\n }\n"} +{"label": "82", "index": "40913", "code": "int main(){\n\tint j,n,i,zu[100]={0},su[2][100],tu[100]={0};\n scanf(\"%d\",&n);\nfor(i=0;i=90 && su[1][i]>=60 && su[1][i]<=90)\nzu[i]=1;\n}\nfor(i=0;itu[0])\ntu[0]=tu[i];\nprintf(\"%d\",tu[0]);\nreturn 0;\n}"} +{"label": "82", "index": "40914", "code": "int main()\n{\nint n,i,c=0,d[100],a,b,max=0;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&a<=140&&b>=60&&b<=90){\nc++;\nd[i]=c;\n}else{\nd[i]=c;\nc=0;\n}\n}\nfor(i=0;i=90&&y<=90&&y>=60){\n\tj=j+1;\n\t}else{\n\t\tif(j>max){\n\t\t\tmax=j;}\n\tj=0;\n\t}\n\t}\n\tif(j>max){\n\tprintf(\"%d\",j);\n\t}\n\telse{\n\t\tprintf(\"%d\",max);\n\t}\n\treturn 0;\n}"} +{"label": "82", "index": "40916", "code": "int main()\n{\n\tint n,a[1000],b[1000],i,p,c[1000],t;\n\tp=0;t=0;c[0]=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t\tp=p+1;\n\t\telse {c[t]=p;p=0;t++;}}\n\t\n\tfor(i=0;i<=t;i++){\n\t\tif(c[i]>p)p=c[i];}\n\tprintf(\"%d\\n\",p);}\n"} +{"label": "82", "index": "40917", "code": "int main(){\n\tint n,i,j=0,a[100],b[100],s=0,c[100]={0},e;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90&&i!=n-1){\n\t\t\ts++;\n\t\t}\n\t\telse if(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90&&i==n-1){\n\t\t\ts++;\n\t\t\tc[j]=s;\n\t\t}\n\t\telse{\n\t\t\tc[j]=s;\n\t\t\ts=0;\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tfor(j=0;j> n;\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tcin >> xie[i][0] >> xie[i][1];\n\t\tif(xie[i][0]>=90 && xie[i][0]<=140 && xie[i][1]>=60 && xie[i][1]<=90)\n\t\t\txie[i][2] = 1;\n\t\telse xie[i][2] = 0;\n\t}\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tif(xie[i][2] == 1)\n\t\t\ttime[j]++;\n\t\telse\n\t\t{\n\t\t\tj++;\n\t\t}\n\t}\n\tmax = time[0];\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tif(time[i] > max)\n\t\t\tmax = time[i];\n\t}\n\tcout << max <j)\n\t\t\t\t {\n\t\t\t\t\t\t j=k;\n\t\t\t\t\t }\n\t\t\t\t k=0;\n\t\t}\nprintf(\"%d\",j);\n\treturn 0;\n}"} +{"label": "82", "index": "40920", "code": "int main(){\n\tint a,b,n,i,x=0,m=0;\n\tscanf(\"%d\",&n);\n if(n==1){\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif((a>=90)&&(a<=140)&&(b>=60)&&(b<=90)){\n\t\t\tprintf(\"1\");\n\t\t}else{\n\t\t\tprintf(\"0\");\n\t\t}\n\t}\n if(n!=1){\n\tfor(i=0;i=90)&&(a<=140)&&(b>=60)&&(b<=90)){\n\t\t\tx++;\n\t\t }else{\n\t\t\t if(x>m){\n\t\t\t\t m=x;\n\t\t\t }\n\t\t\t x=0;\n\t\t }\n\t}\n\tif(x>m){\n\t\tm=x;\n\t}\n\tprintf(\"%d\",m);\n\t}\n\treturn 0;\n}"} +{"label": "82", "index": "40921", "code": "\nint main(){\n int n,i,a,b,c,s=0,t=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&a<=140)&&(b>=60&&b<=90) ){\n t++;\n c=1;\n }\n else if(!( (a>=90&&a<=140)&&(b>=60&&b<=90) )){\n t=0;\n }\n if(t>s){s=t;}\n }\n printf(\"%d\",s);\n\n return 0;\n}\n"} +{"label": "82", "index": "40922", "code": "int main()\n{\n\tint n,xy[100][2],i,j,k,t;\n\tint xs[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&xy[0][0]<=140&&xy[0][1]>=60&&xy[0][1]<=90)\n\t{\n\t\txs[0]=1;\n\t}\n\tfor(i=1;i=90&&xy[i][0]<=140&&xy[i][1]>=60&&xy[i][1]<=90)\n\t\t{\n\t\t\tif(xs[i-1]+1>xs[i])\n\t\t\t{\n\t\t\t\txs[i]=xs[i-1]+1;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=n-1;j>0;j--)\n\t{\n\t\tfor(i=0;ixs[i+1])\n\t\t\t{\n\t\t\t\tt=xs[i];\n\t\t\t\txs[i]=xs[i+1];\n\t\t\t\txs[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",xs[n-1]);\n\treturn 0;\n}\n\n\n\n\n\n\n"} +{"label": "82", "index": "40923", "code": "int main()\n{\n int n,i,j,a[200],c[200],d,e=0;\n for(i=0;i<=200;i++)\n {\n c[i]=0;\n }\n struct b\n {\n int c,d;\n }b[200];\n scanf(\"%d\\n\",&n);\n for(i=0;i=90 && b[i].c<=140 && b[i].d>=60 && b[i].d<=90)\n\t {\n\t a[i]=1;\n\t }\n\t else\n\t {\n\t a[i]=0;\n\t }\n\tfor(i=0;i>n; //??n\n int c[101];\n int a,b; //??????????????????????\n for(;i>a>>b; //?????????\n c[i]=0; //c[i]???0\n if (a>=90&&a<=140&&b>=60&&b<=90) //??????\n c[k]=c[k]+1; //???????c?1\n else k=k+1; //?????c????????\n }\n c[n+1]=0; //?c[n+1]???????????\n for(;j<=k;j++){ //????\n if (s=90&&b[k]>=60&&b[k]<=90)\n\t\t\tj++;\n\t\telse{\n\t\t\tif(j>max)\n\t\t\t\tmax=j;\n\t\t\tj=0;\n\t\t}\n\t}\n\tif(j>max)\n\t\tmax=j;\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40926", "code": "int main()\n{\n\tint i,j,z[100]={0},max=0,x[100],y[100],n;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%d %d\\n\",&x[i],&y[i]);\n\ti=-1;\n\tfor(j=0;;j++)\n\t{for(i=i+1;i<=n-1;i++)\n\t {if(x[i]>=90&&x[i]<=140&&y[i]>=60&&y[i]<=90)\n\t\t z[j]=z[j]+1;\n\t\telse break;}\n\tif(z[j]>max)\n\t\tmax=z[j];\n\tif(i>=n) break;\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n\t\n}"} +{"label": "82", "index": "40927", "code": "int main()\n{\n\tint a, b, c = 0, n, t = 0;\n\tcin >> n;\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tcin >> a >> b;\n\t\tif(a >= 90 && a <= 140 && b >= 60 && b <= 90)\n\t\t{\n\t\t\tt = t + 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (t > c)\n\t\t\t\tc = t;\n\t\t\t t = 0;\n\t\t}\n\t}\n\tif(t > c)\n\t\tc = t;\n\tcout << c << endl;\n\n\treturn 0;\n}\n"} +{"label": "82", "index": "40928", "code": "/*\n * 1.cpp\n * use:?????????????????????90 - 140????????60 - 90????????????????????????????????????????????????\n * Created on: 2012-10-31\n * Author: lyx\n */\n\nint main ()\n{\n\tint n=0,i1=0,i2=0,j1=0,j2=0,j3=0,i=0; //????\n\tcin>>n; //??????\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>i1>>i2; //????????\n\t\tif((i1>=90&&i1<=140)&&(i2>=60&&i2<=90)) //????????\n\t\t\t{\n\t\t\t j1+=1; //?????????\n\t\t\t j2=j1; //????????????????\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\tj1=0; //????????\n\t\t}\n\t\tif(j3<=j2) //??????????\n\t\t\t{\n\n\t\t j3=j2;\n\t\t\t}\n\n\t}\n\tcout<=90&&so[i]<=140&&su[i]>=60&&su[i]<=90)\n\t\t\ta[i+1]=1;\n\t}\n\ta[n+1]=0;\n\ta[0]=0;\n\tfor(i=0;imax)\n\t\t\tmax=b[i];\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40930", "code": "int zh(int x,int y){\n\tif(x>=90&&x<=140&&y>=60&&y<=90){return 1;}\n else{return 0;}\n}\n\n\nint main(){\nint i,j,p=0,a[300],b[300],n;\nscanf(\"%d\",&n);\nfor(i=0;i=90)&&(j<=140))&&((k>=60)&&(k<=90)))\n\t\t\ts++;\n\t else\n\t\t{\n\t\t if(s>max)\n\t\t\t\tmax=s;\n\t\t\ts=0;\n\t\t}\n\t}\n\tif(s>max)\n\t\tmax=s;\n\n\tprintf(\"%d\",max);\n\t\n\n\treturn 0;\n}"} +{"label": "82", "index": "40932", "code": "/*????\n * 12.10.17a.cpp\n * Created on: 2012-10-17\n * Author:???\n * ???????????????????\n */\nint main()\n{\tint n,a,b,c=0,d=0,i=1;\n\tcin>>n;\n\twhile(i<=n)\n\t{\n\t\tfor(;i<=n;i++)\n\t\t{cin>>a>>b;\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90)\n\t\t\t{d=d+1;\n\t\t\tcontinue;\n\t\t\t}\n\t\telse\n\t\t\t{ if(d>c)\n\t\t\t\t\t{\n\t\t\t\t\tc=d;d=0;i++;break;\n\t\t\t\t\t}\n\t\t\telse {d=0;i++;break;}\n\t\t\t}\n\t\t}\n\t}\n\tif(d>c)c=d;\n\tcout<=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))\n\t{\n\t\tk=k+1;\n\t}\n\t else\n\t{ \n\t\tk=0;\n\t}\n\t c[i]=k;\n\t}\n\tmax=c[0];\n\tfor(i=0;imax)\n\t\t{\n\t\t\tmax=c[i];\n\t}\n\t}\n\tprintf(\"%d\",max);\nreturn 0;\n}"} +{"label": "82", "index": "40934", "code": "//***************************************\n//* ???5.cpp **\n//* ?????? 1200012971 **\n//* ????????????????? **\n//* ???2012.10.10 **\n//****************************************\nint main()\n{\n\tint i,n,a,b,t = 0,T = 0; //??n????a????b???????t,T?????\n\tcin >> n; //????\n\tfor ( i = 1;i <= n;i++ )\n\t{\n\t\tcin >> a >> b; //????????\n\t\tif (a <= 140 && a >= 90 && b >= 60 && b <= 90) //????????\n\t\t\tt = t + 1; //????????\n\t\telse\n\t\t\n\t\t{\n\t\t\tif (t >= T) //??????t????T???t????0\n\t\t\t\tT = t;\n\t\t\tt = 0;\n\t\t}\n\t}\n if (t >= T)\n\t cout << t <=90)&&(s[i][0]<=140)&&(s[i][1]>=60)&&(s[i][1]<=90)){\n\t\t\tr[i]=1;\n\t\t}else{\n\t\t\tr[i]=0;\n\t\t}\n\t}\n\tr[n]=0;\n\tfor(i=0;imax){\n\t\t\tmax=sz[i];\n\t\t}\n\t}\n\tsum=max;\n for(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tk++;\n\t\t}\n\t\telse{\n\t\t\tif(k>m){\n\t\t\t\tm=k;\n\t\t\t\tk=0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tk=0;\n\t\t\t}\n\t\t\n\t\t}\n\t}\n\telse{\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90){\n\t\t\tk++;\n\t\t\tif(k>m){\n\t\t\t\tm=k;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(k>m){\n\t\t\t\tm=k;\n\t\t\t}\n\t\t}\n\n\t}\n}\nprintf(\"%d\",m);\nreturn 0;\n}\n"} +{"label": "82", "index": "40937", "code": "/************************************\n * ??????? \t\t\t\t*\n * ?????? 1200012815\t\t*\n * ???2012.10.8\t\t\t\t*\n ************************************/\n\nint main()\n{\n\tint n, i = 1, a, b, c = 0, d = 0;//i??????n??????a?b??????c??????????d????????\n\tcin >> n;\n\twhile (i <= n)//??n???\n\t{\n\t\tfor (;i <= n;i++)//???????\n\t\t{\n\t\t\tcin >> a >> b;\n\t\t\tif (a <= 140 && a >= 90 && b <= 90 && b >= 60)\n\t\t\t{\n\t\t\t\tc++;continue;//????????\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (c >= d)\n\t\t\t\td = c;//???????????????d\n\t\t\t\tc = 0;//c??\n\t\t\t\ti++;//??????i+1\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (c > d)\n\t\t\td = c;//??????????????\n\t}\n\tcout << d << endl;\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40938", "code": "int main(){\n\tint n,i,s1[100],s2[100],c=0,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&s1[i]<=140&&s2[i]>=60&&s2[i]<=90){\n\t\t\t\tc++;\n\t\t\t\tmax=c;\n\t\t\t}else{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}else{\n\t\t\tif(s1[i]>=90&&s1[i]<=140&&s2[i]>=60&&s2[i]<=90){\n\t\t\t\tc++;\n\t\t\t\tif(max=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tm++;\n\t\t}else{\n\t\t\tm=0;\n\t\t}\n\t\tsz[i]=m;\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tfor(k=0;k=90&&m[i]<=140&&n[i]<=90&&n[i]>=60){\n d[a]++;\n\t\t}\n\t\telse {\n\t\t\ta++;\n\t\t}\n\t\tp=a;\n\t}\n\tfor (i=p;i>0;i--){\n\t\tif (d[i]>d[i-1])\n\t\t{\n\t\t\ts=d[i];\n\t\t\td[i]=d[i-1];\n\t\t\td[i-1]=s;\n\t\t}\n\t}\n\tprintf (\"%d\",d[0]);\n\n\treturn 0;\n}"} +{"label": "82", "index": "40941", "code": "int main(){\n\tint n,i,sz[100],ss[100],cx[100],k,s,e,p=0;\n\tscanf(\"%d\",&n);\n for(i=0;i=90&&sz[i]<=140&&ss[i]>=60&&ss[i]<=90) {\n\t\tp=1;\n\t\tbreak;\n\t}\n\n\tfor(i=0;i=140||ss[i-1]<=60||ss[i-1]>=90)&&sz[i]>=90&&sz[i]<=140&&ss[i]>=60&&ss[i]<=90&&sz[i+1]>=90&&sz[i+1]<=140&&ss[i+1]>=60&&ss[i+1]<=90) {\n\t\ts=i;\n\t\tfor(e=s+1;sz[e]>=90&&sz[e]<=140&&ss[e]>=60&&ss[e]<=90;e++) cx[i]++;\n\t}\n\tfor(k=1;k<=n;k++) for(i=0;icx[i+1]) {\n\t\te=cx[i+1];\n\t\tcx[i+1]=cx[i];\n\t\tcx[i]=e;\n\t}\n if(p==1) printf(\"%d\",cx[n-1]);\n\telse printf(\"0\");\n\treturn 0;\n}"} +{"label": "82", "index": "40942", "code": "int main (){\n int max=0,sum=0;\nint i,n;\nint ss[100],sz[100];\n \n scanf(\"%d\",&n);\n \n for(i=0;i=90&&ss[i]<=140&&sz[i]>=60&&sz[i]<=90){\n\t \n\t sum++;}\n\t else{\n\t\t max=max>=sum? max:sum;\n\t\t sum=0;\n\t\t continue;\n\t }\n }\n max=max>=sum? max:sum;\nprintf(\"%d\",max);\nreturn 0;\n}"} +{"label": "82", "index": "40943", "code": "int main()\n{\n int n,k,sum=0,a,b,max=0;\n int i,result=0;\n scanf(\"%d\",&n);\n for (i=1;i<=n;i++)\n {\n scanf(\"%d %d\",&a,&b);\n if (a>=90 && a<=140 && b>=60 && b<=90)\n sum++;\n else {\n if (sum>max) max=sum;\n sum=0;\n} \n} \nif (sum>max) max=sum;\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40944", "code": "int main()\n{\n\tint i,m,j=0,k,max=0;\n\tint a[100],b[100];\n\tscanf(\"%d\",&k);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tj=1;\n\t\t\tfor(m=i+1;m=90&&a[m]<=140&&b[m]>=60&&b[m]<=90)\n\t\t\t\t\tj=j+1;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tj=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(j>max) max=j;\n\t\tj=0;\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40945", "code": "\nvoid main()\n{\n\tint I,n,a[100],i,b[100],p=0,s=0,q=0,sum=0;\n\n\tscanf(\"%d\",&n);\n\n\tfor(I=0;I=90&&a[i]<=140&&b[i]>=60&&b[i]<=90) q=1;\n\t\tif(q==1&&(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)){\n\t\t\tif(i!=n-1) s++;\n\t\t\telse sum=sum>(s+1)?sum:(s+1);\n\t\t}\n\t\tif(q==1&&!(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)){\n\t\t\tsum=sum>s?sum:s;\n\t\t\ts=0;\n\t\t\tq=0;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",sum);\n\n}"} +{"label": "82", "index": "40946", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint s[100][2],a[100]={0};\n\tint i,j,e;\n\tfor(i=0;i=90&&s[i][1]<=90&&s[i][1]>=60){\n\t\t\tc++;\n\t\t}else{\n\t\t\ta[i]=c;\n\t\t\tc=0;\n\t\t}\n\t}\n\ta[n-1]=c;\n\tfor(i=1;i>n;\n\tmemset(a,0,sizeof(a));\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tcin>>high>>low;\n\t\tif((high<=140)&&(high>=90)&&(low>=60)&&(low<=90))\n\t\t{\n\t\t\ta[d]=a[d]+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td=d+1;\n\t\t}\n\t}\n\tfor(int i=0;i<99;i++)\n\t{\n\t\tif(a[i]>a[i+1])\n\t\t{\n\t\t\tnum=a[i];\n\t\t\ta[i]=a[i+1];\n\t\t\ta[i+1]=num;\n\t\t}\n\t}\n\tcout<=90&&sz[i][1]<=90&&sz[i][1]>=60){\n\t\t\tt++;\n\t\t\tif(k=90)&&(sz[i][1]>=60)&&(sz[i][1]<=90))\n\t\t{\n\t\t\ta+=1;\n\t\t\ts+=1;\n\t\t\tif(p=90 && a<=140 && b>=60 && b<=90)\n\t\t\tcount++;\n\t\telse\n\t\t\tif (count>t)\n\t\t\t{\n\t\t\t\tt=count;\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t\telse\n\t\t\t\tcount=0;\n\t}\n\tif (count>t)\n\t{\n\t\tprintf(\"%d\\n\",count);\n\t}\n\telse\n\t{\n\t\tprintf(\"%d\\n\",t);\n\t}\n\treturn 0;\n}"} +{"label": "82", "index": "40951", "code": "int main(){\nint i,j,a[100],b[100],c[100],n,e;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90) c[j]++;\nif(!(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)) j++;\n}\nfor(i=0;ic[i+1]){\ne=c[i];\nc[i]=c[i+1];\nc[i+1]=e;\n\t}\n\t}\nprintf(\"%d\",c[n-1]);\nreturn 0;\n}"} +{"label": "82", "index": "40952", "code": "int main(){\n\tint i=0,c=0,k=0,l=0;\n\tint a[50000],b[50000],h[50000],n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[l]<=140&&b[l]>=60&&b[l]<=90){\n\t\t\t\th[i]++;\n\t\t\t}else{\n\t\t\t\ti=l;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ik){\n\t\t\tk=h[i];\n\t\t}\n\t}\n\n\tprintf(\"%d\",k);\n\n\n\treturn 0;\n}"} +{"label": "82", "index": "40953", "code": "int main()\n{\n int n,p[N],q[N],i,j,s,x,y;\n x=0;y=0;s=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&p[i]<=140&&q[i]>=60&&q[i]<=90)\n {x=x+1;if(x>s){s=x;}}\n else\n {x=0;}\n }\n printf(\"%d\",s);\n return 0;\n}\n"} +{"label": "82", "index": "40954", "code": "int main(){\n int i, a=0, s=0,n, sz[100], ss[100];\n scanf(\"%d\",&n);\n for(i=0;i=90&&ss[i]<=140&&sz[i]<=90&&sz[i]>=60){\n a=a+1;\n }\n else {\n\t\t a=0;}\n if(a>=s){\n\t\t s=a;}\n }\n printf(\"%d\",s);\n return 0;\n }\n"} +{"label": "82", "index": "40955", "code": "int main(){\n\tint n,ss,sz,i;\n\tint max=0,lj=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&sz>=60&&sz<=90)\n\t\t\tlj++;\n\t\telse{\n\t\t\tif(lj>max)\n\t\t\t\tmax=lj;\n\t\t\tlj=0;\n\t\t}\n\t}\n\tif(lj>max)\n\t\tmax=lj;\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40956", "code": "int main(){\n\tint a[100],b[100],c[100],n,i,m=0,k;\n\tfor(i=0;i<100;i++){\n\t\tc[i]=0;\n\t}\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140)&&(b[i]>=60&&b[i]<=90)){\n\t\t\tc[m]++;\n\t\t}else{\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(k=0;kc[i+1]){\n\t\t\t\td=c[i+1];\n\t\t\t\tc[i+1]=c[i];\n\t\t\t\tc[i]=d;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",c[m]);\n\treturn 0;\n}\n\n"} +{"label": "82", "index": "40957", "code": "int main (){\n\tint i,k[101] ,n,a,b,sum,j;\n\tk[0] =0;\n\tsum =0;\n\tcin >>n;\n\ti=1;\n\tfor(i=1;i<=n;i=i+1)\n\t{\n\t\tcin >> a >> b;\n\tif (a>=90 &&a<=140&&b>=60&&b<=90)\n\t\tk[i] =k[i-1] +1;\n\telse k[i] =0;\n\n\t}\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tif (k[j]>=sum)\n\t\t\tsum =k[j];\n\n\t}\n\tcout << sum <= 90 && a[0][i] <= 140\n\t\t\t&& a[1][i] >= 60 && a[1][i] <= 90)\n\t\t{\n\t\t\tp++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(p > m)\n\t\t\t\tm=p;\n\t\t\tp=0;\n\t\t}\n\t}\n\tif(p > m)\n\t\tm=p;\n\tprintf(\"%d\",m);\n\n}"} +{"label": "82", "index": "40959", "code": "\nint main(){\n\tint n,x,y,i,j,k=0,a[1000]={0},ex;\n scanf(\"%d\",&n);\n\tfor(i=0;i=90&&y<=90&&y>=60)\n\t\t\ta[k]++;\n\t\telse\n\t\t\tk++;\n\t}\n\tscanf(\"%d%d\",&x,&y);\n\tif (x<=140&&x>=90&&y<=90&&y>=60)\n\t{\n\t\ta[k]++;\n\t\tk++;\n\t}\n\telse\n\t\tk++;\n\tfor(i=0;i=90&&xueya[b][0]<=140&&xueya[b][1]>=60&&xueya[b][1]<=90){\n\t\t\tsz[t]++;\n\t\t}else{\n\t\t\t\tt++;\n\t\t\t\t}\n\t\t}\n\tfor(int g=0;g<100;g++){\n\t\tif(sz[g]>s){\n\t\t\ts=sz[g];\n\t\t}\n\t}\n\tprintf(\"%d\",s);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40961", "code": "//*********************\n//???6 **\n//?????? **\n//???2013/10/23 **\n//*********************\nint main()\n{\n\tint n, a, b, num, leap, max1, max;\n\n\tcin >> num;\n\n\tmax = max1 = 0;\n\n\tn = 0;\n\n\tfor ( int i = 1; i <= num; i++ )\n\t{\n\t\tcin >> a >> b;\n\n\t leap = ( a <= 140 ) && ( a >= 90 ) && ( b <= 90 ) && ( b >= 60 );\n\n\t\tif ( leap )\n\t\t{\n\t\t\tn++;\n\n\t\t\tmax = n;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tif ( max1 > max )\n\t\t\t{\n\t\t\t\tmax = max1;\n\t\t\t\t\n\t\t\t\tn = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tn = 0;\n\n\t\t\t\tmax1 = max;\n\t\t\t}\n\t\t}\n\t}\n\tif ( max > max1 )\n\n\t\tcout << max << endl;\n\n\telse\n\n\t\tcout << max1;\n\n\treturn 0;\n}"} +{"label": "82", "index": "40962", "code": "int main(){\n int n=0,i=0,j=0,k=0,s=0; //??3???????????0\n cin>>n; //??n\n int a[n],b[n],c[n+1]; //??????????????????????\n for(;i>a[i]>>b[i]; //?????????\n c[i]=0; //c[i]???0\n if (a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90) //??????\n c[k]=c[k]+1; //???????c?1\n else k=k+1; //?????c????????\n }\n c[n] = 0;\n c[n+1]=0; //?c[n+1]???????????\n for(;j<=k;j++){ //????\n if (s=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tc++;\n\t\t\n\t\t\n\t\tif(c>=d){\n\t\t\td=c;\n\t\t}\n\t\t}\n\t\telse{\n\t\t\tc=0;\n\t\t\n\t\t}\n\t}\n\tprintf(\"%d\",d);\n\treturn 0;\n}\n\t\t\n\n\t\t\t\n\t\t"} +{"label": "82", "index": "40964", "code": "int main()\n{\n\tint n;\n\tint i=0;\n\tscanf(\"%d\",&n);\n\t//int m;\n\t\n\tint a[200];\n\tint time[100];\n\t//m=2*n;\n\tfor(i=0;i<200;i++)\n\t\ta[i]=0;\n\tfor(i=0;i<100;i++)\n\t\ttime[i]=0;\n\tfor(i=0;i<2*n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tint m=0;\n\tfor(i=0;i<2*n;i=i+2)\n\t{\n\t\tif(a[i]>=90&&a[i]<=140&&a[i+1]>=60&&a[i+1]<=90)\n\t\t\ttime[m]++;\n\t\telse\n\t\t\tm++;\n\t}\n\tint max=0;\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif(time[i]>max)\n\t\t\tmax=time[i];\n\t}\n\n\tprintf(\"%d\\n\",max);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40965", "code": "int main(){\n\tint n,i,c,d;\n\tint s[110][2];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&s[0][0]<=140&&s[0][1]>=60&&s[0][1]<=90){\n\t\tc=1;\n\t}\n\telse{\n\t\tc=0;\n\t}\n\td=c;\n\tfor(i=1;i=90&&s[i][0]<=140&&s[i][1]>=60&&s[i][1]<=90){\n\t\t\tc=c+1;\n\t\t}\n\t\telse{\n\t\t\tc=0;\n\t\t}\n\t\tif(c>d){\n\t\t\td=c;\n\t\t}\n\t}\n\tprintf(\"%d\",d);\n\t\treturn 0;\n}"} +{"label": "82", "index": "40966", "code": "int main()\n{\n\tint hours;\n\tcin >> hours;\n\tint maxNormHours = 0;\n\tint normHours = 0;\n\tfor (int i=1 ; i<= hours ; i++)\n\t{\n\t\tint max,min;\n\t\tcin >> max >> min;\n\t\tif ((max >= 90) && (max <= 140)&&\n\t\t\t(min <= 90) && (min >= 60) == 1)\n\t\t\tnormHours ++;\n\t\telse\n\t\t{\n\t\t\tif (normHours > maxNormHours)\n\t\t\t\tmaxNormHours = normHours;\n\t\t\tnormHours = 0;\n\t\t}\n\t}\n\tif (normHours > maxNormHours)\n\tmaxNormHours = normHours;\n\tcout << maxNormHours << endl;\n\tcin.get();\n\tcin.get();\n\treturn 0;\n}"} +{"label": "82", "index": "40967", "code": "void main()\n{\nint c=0,n,i,t=0,a[100],b[100];\nscanf(\"%d\\n\",&n);\nfor(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90))\n\t\t\t\t\tc++;\n\telse \n\t\t\t{if(c>t)\n\t\t\t\tt=c;\n\tc=0;}\n\n}\nif(c>0)\n{\nif(c>t)\nt=c;\n}\nprintf(\"%d\\n\",t);\n}\n"} +{"label": "82", "index": "40968", "code": "int main()\n{\n\tint n,i=0,h[100],l[100],t[101]={-1,0},len[100],j=0;\n\tint max=0,r=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&h[i]<=140&&l[i]>=60&&l[i]<=90)\n\t\t\ti++;\n\t\tt[j+1]=i;\n\t\tlen[j]=t[j+1]-t[j]-1;\n\t\tj++;\n\t\ti++;\n\t}\n\tfor(r=0;r0;n--){\n\tint a,b;\n scanf(\"%d %d\",&a,&b);\n\tif(a>=90 && a<=140 && b>=60 && b<=90){\n\t\tsum=sum+1;\n\t\tif(t<=sum){\n\t\t\tt=sum;\n\t\t}\n\t}\n\telse{sum=0;\n\t}\n\t}\nprintf(\"%d\",t);\nreturn 0;\n}"} +{"label": "82", "index": "40970", "code": "\nint main()\n{\n\tint x,y,i,n;\n\tint a[100];\n\tint b[100];\n scanf(\"%d\",&n);\n\ti=0;\n\twhile(i=90&&(a[i])<=140&&(b[i])>=60&&(b[i])<=90)\n\t {x++;}\n\t else break;\n\t i++;\n\t }\n\t\tif(x>=y)\n\t\t{y=x;}\n i++;\n\t}\n\tif(n==1)\n\t{ if((a[0])>=90&&(a[0])<=140&&(b[0])>=60&&(b[0])<=90)\n\t\tprintf(\"1\");\n\telse\n\t\tprintf(\"0\");\n\t}\n\telse printf(\"%d\",y);\n\treturn 0;\n}\n"} +{"label": "82", "index": "40971", "code": "int main()\n{ \n\tstruct a\n\t{\n\t\tint x,y;\n\t}as[100];\n\tint n,i,j,k,m;\n\tint b[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)&&(as[i].x<=140))&&((as[i].y>=60)&&(as[i].y<=90))) b[j]=b[j]+1;\n\t\telse { j=j+1;b[j]=0;}\n\t}\n\tk=j;\n\tfor(j=0;j<=k;j++)\n\t{\n\t\tm=0;\n\t\tfor(i=0;i<=k;i++)\n\t\t{\n\t\t\tif(b[j]=90&&low[j]>=60&&low[j]<=90)\n\t\t\t\tcount[i]++;\n\t\t\telse break;\n\t\t}\n\t}\n\tfor(i=1;i=90&&a<=140&&b>=60&&b<=90)\n hours1=hours1+1;\n else \n\t\t\tif(hours2<=hours1)\n\t\t{\n\t\t\t\thours2=hours1;\n hours1=0;\n\t\t}\n\t\t\telse\n\t\t\t\thours1=0;\n\t}\n if(hours1>hours2)\n max=hours1;\n else\n max=hours2;\n printf(\"%d\",max);\n return 0;\n}"} +{"label": "82", "index": "40974", "code": "\nint main(int argc, char* argv[])\n{\t\n\tint a[100],b[100],c[100];\n\tint i,n,h,e;\n\tscanf(\"%d\\n\",&n);\n for(i=0;i<100;i++)\n {a[i]=0;\n b[i]=0;\n c[i]=0;}\n\tfor(i=0,c[-1]=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\tc[i]=c[i-1]+1;\n\telse\n\t\tc[i]=c[i-1]*0;\n\t}\n\tfor(e=0;e>n;\n for(i=1;i<=n;i++)\n { \n\t cin>>a>>b;\n if(a>=90&&a<=140&&b>=60&&b<=90)\n c=c+1;\n\t else\n\t\t{ \n\t c=0;\n\t }\n\t t=c;\n\t\tif(t>max)\n\t\t max=t; \n }\n\n cout<=90&&sz[i][1]<=140&&sz[i][2]>=60&&sz[i][2]<=90)\n {\n sz2[j]++;\n \n }else{\n j++;\n }\n }\n int max=0;\n for(i=0;i<=j;i++){\n if(sz2[i]>max){\n max=sz2[i];\n }\n }\n\n printf(\"%d\",max);\n\n return 0;\n}\n"} +{"label": "82", "index": "40977", "code": "int main(){\n int n,x,y,a,s=0,i=1,u=0;\n scanf(\"%d\",&n);\n while(i<=n){\n scanf(\"%d %d\",&x,&y);\n if(x<=140&&x>=90&&y<=90&&y>=60){\n s++;\n }\n if(s>u){\n u=s;\n }\n if(x>140||x<90||y>90||y<60){\n s=0;\n }\n i++;\n }\n printf(\"%d\",u);\n return 0;\n}"} +{"label": "82", "index": "40978", "code": "int main()\n{\n\tint n;\n\tint q[100]={0};\n\tcin>>n;\n\tint i=0,j=0,a,b,max=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a>>b;\n\t\tif(a>=90&&a<=140&&b>=60&&b<=90)\n\t\t\tq[j]++;\n\t\telse\n\t\t\tj++;\n\t}\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif(q[i]>max)\n\t\t\tmax=q[i];\n\t}\n\tcout<=90&&a<=140&&f>=60&&f<=90){\n b+=1;\n }else{\n if(b>k){\n k=b;\n b=0;\n }else{\n k=k;\n b=0;\n }\n }\n i+=1;\n }\n if(b>k){\n k=b;\n }else{\n k=k;\n }\n printf(\"%d\",k);\n \n return 0;\n}\n\n"} +{"label": "82", "index": "40980", "code": "//????\nint main()\n{\n\tint n = 0, i = 0, x = 0, y = 0, sum = 0, max = 0;\n\tcin >> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> x >> y;\n\t\tif ( x >= 90 && x <= 140 && y >= 60 && y <= 90)\n\t\t{\n\t\t\tsum++;\n\t\t}\n\t\telse\n\t\t\tsum = 0;\n\t\tif (sum > max)\n\t\t\tmax = sum;\n\t}\n\tcout << max << endl;\n\treturn 0;\n}"} +{"label": "82", "index": "40981", "code": "int main(){\n int n,a,b,result=0,i=1,max=0;\n scanf(\"%d\",&n);\n while(i<=n){\n scanf(\"%d%d\",&a,&b);\n if(a>=90&&a<=140&&b>=60&&b<=90){\n result+=1;\n i++;\n }else{\n if(result>max){\n max=result;\n result=0;\n i++;}\n else{\n result=0;\n i++;}\n }\n }\n if(result>max){\n max=result;}\n printf(\"%d\",max);\n return 0;\n}\n \n \n\n "} +{"label": "82", "index": "40982", "code": "int main()\n{\n int n,i,j=0,h=0;\n int sz[100][2];\n int sfzc[100]={0};\n int lxsc[100]={0};\n scanf(\"%d\",&n);\n for(i=0;i=90)&&(a[i]<=140)&&(b[i]>=60)&&(b[i]<=90)){\n\t\t\tc[k]++;\n\t\t}\n\t\telse{\n\t\t\tk++;\n\t\t}\n\t}\n\tif((a[n-1]>=90)&&(a[n-1]<=140)&&(b[n-1]>=60)&&(b[n-1]<=90)){\n\t\tk++;\n\t}\n\tfor(i=0;ic[i+1]){\n\t\t\td=c[i+1];\n\t\t\tc[i+1]=c[i];\n\t\t\tc[i]=d;\n\t\t}\n\t}\n\tprintf(\"%d\",c[k-1]);\n\treturn 0;\n}"} +{"label": "82", "index": "40984", "code": "int main()\n{\n int a,b,max=0,t=0,n,i;\n scanf(\"%d\",&n);\n for(i=1;i=90&&a<=140&&b>=60&&b<=90){t++;}\n\telse{\n\t\tif(t>=max){max=t;}\n\t\tt=0;\n\t}\n\t}\n scanf(\"%d %d\",&a,&b);\n if(a>=90&&a<=140&&b>=60&&b<=90){t++;}\n if(t>=max){max=t;}\n printf(\"%d\",max);\n return 0;\n}\n"} +{"label": "82", "index": "40985", "code": "int main(){\n\tint a[100]={0};\n\tint s=0,b1,b2;\n\tint i,n,t,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d%d\",&b1,&b2);\n\t\tif(b1>=90&&b1<=140&&b2>=60&&b2<=90){\n\t\t\ts++;\n\t\t\tif(s>max){\n\t\t\t\tmax=s;\n\t\t\t}\n\t\t}else{\n\t\t\ts=0;\n\t\t}\n\t\t\n\t}\n\t\tprintf(\"%d\",max);\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40986", "code": "int main(){\n int count,m=0,n,i,j,k;\n scanf(\"%d\",&n);\n int sz[N],a[N],b[N];\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n count=1;\n for(j=i+1;j=90&&a[j]<=140&&b[j]>=60&&b[j]<=90){\n count++;\n }else{\n break;\n }\n }\n sz[m]=count;\n m++;\n }\n }\n for(i=0;isz[i+1]){\n k=sz[i];\n sz[i]=sz[i+1];\n sz[i+1]=k;\n }\n }\n printf(\"%d\",sz[m-1]);\n return 0;\n}"} +{"label": "82", "index": "40987", "code": "int main()\n{\n int n,m=0,h=0,i;\n scanf(\"%d\",&n);\n int a[n],b[n];\n for(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){m=m+1;if(hb[i+1])\n {\n t=b[i];\n b[i]=b[i+1];\n b[i+1]=t;\n }\n}\nprintf(\"%d\",b[n]);\nreturn 0;\n}"} +{"label": "82", "index": "40989", "code": "int main()\n{\n\tint a[1000],b[1000],i,n,m[100]={0},k,j=0,max=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90)\n\t\t{\n\t\t\tm[j]++;\n\t\t}\n\t\telse\n\t\t\tj++;\n\t}\n\tk=j+1;\n\tfor(j=0;jmax)\n\t\t\tmax=m[j];\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40990", "code": "int a[100],b[100],c[100];\nint main(){\n\tint n,i,lh=0,k,e=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){\n\t\t\tc[i]=1;\n\t\t}\n\t}\n\tfor(i=0;i> n;//??????n \n m1 = 0; //????m1 \n for(i = 0;i < n;)//?????? \n { \n h = 0;//??????0 \n while(cin >> high >> low )//??????????? \n { \n i = i + 1;\n if (( high >= 90 )&&( high <= 140 )&&( low >= 60 )&&( low <= 90))//?????? \n {\n h = h + 1;}//????? \n else if(( high < 90)||( high > 140 )||( low < 60 )||( low > 90 ))//?????? \n {\n break;}\n if(h > m1)//????? \n m1 = h;//???? \n\n }\n }\n cout<> n; //??n\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> a >> b;\n\t\t\n\t\t//?????????1?0??????\n\t\tif (a >= 90 && a <= 140 && b >= 60 && b <= 90)\n\t\t\tc = 1;\n\t\telse\n\t\t\tc = 0;\n\t\t\n\t\t//?if?????????????1?\n\t\t//????????????????c1?\n\t\tif (t == 1) \n\t\t{\n\t\t\tif (c == 1)\n\t\t\t{\n\t\t\t\tc1 = c1 + 1;\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tt = 0;\n\t\t}\n\t \n\t\t//??????0??c1?c2???\n\t\t//??????c2,??c1?0\n\t\telse \n\t\t{\n\t\t\tif (c1 > c2)\n\t\t\t\tc2 = c1;\n\t\t\tc1 = 0;\n\t\t\tif (c == 1)\n\t\t\t{ \n\t\t\t\tc1 = c1 + 1;\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tt = 0;\n\t\t}\n\t\t\n\t\t//??c1?c2??????????c2\n\t\tif(c1 > c2)\n\t\t\tc2 = c1;\n\t}\n\tcout << c2 <=90&&a<=140&&b>=60&&b<=90)\n\t\t c[j]++;\n\t else{\n\t\t j++;\n\t }\n }\n int m;\n for(i=0;i=90&&a<=140&&b>=60&&b<=90){\n\t\t\tm++;\n\t\t}else{\n\t\t\tif(m>k){\n\t\t\t\tk=m;\n\t\t\t\t\n\t\t\t}\n\t\t\t\tm=0;\n\t\t}\n\t}\n\tif(k>m){printf(\"%d\",k);\n\n\t}else{printf(\"%d\",m);\n\n\t}\n\t\n\treturn 0;\n}"} +{"label": "82", "index": "40995", "code": "/*\n * 1.cpp\n *\n * Created on: 2012-10-8\n * Author: Lixurong\n */\n\n\nint main()\n{\n\tint n; //????\n\tcin >> n; //??\n\tint s=0, h=0; //??????\n\tfor( int i=0; i> a >> b; //??\n\t\tif( (90-a<=0)+(140-a>=0)+(b-60>=0)+(b-90<=0)==4 ) //??\n\t\t{\n\t\t\ts++;\n\t\t\th = max( s, h);\n\t\t}\n\t\telse\n\t\t\ts = 0;\n\t}\n\tcout << h; //??\n\treturn 0;\n}\n"} +{"label": "82", "index": "40996", "code": "//????\n\n\nint main()\n{\n\tint n,high[100],low[100],count=0,time_max=0; //?? ?? ?? ???? ??????\n\tcin>>n;\n\tfor(int i=0;i>high[i]>>low[i];\n\tfor(int i=0;i=90&&high[i]<=140&&low[i]>=60&&low[i]<=90) //?????????????+1\n\t\t{\n\t\t\tcount+=1;\n\t\t\tif(i==n-1)\n\t\t\t\ttime_max=(count>time_max)?count:time_max;\n\t\t}\n\t\telse //??????????????????????????\n\t\t{\n\t\t\ttime_max=(count>time_max)?count:time_max;\n\t\t\tcount=0; //??????\n\t\t}\n\t}\n\t\tcout<> n;\n\tfor ( i = 1; i <=n;)\n\t{\n\t\tj = 0;\n\t\twhile (cin >> a >> b)\n\t\t{\n\t\t\ti++;\n\t\t\t\n\t\tif ((a>=90)&&(140>=a)&&(b>=60)&&(90>=b))\n\t\t{\n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tif ( j > m)\n\t\t\tm=j;\n\t\t}\n\t}\n\tcout << m << endl;\n\treturn 0;\n}\n"} +{"label": "82", "index": "40998", "code": "int main(){\n\tint n,a,b,i;\n\tint\tj=0;\n\tint zs[100];\n\tint t=0;\n\tfor(i=0;i<100;i++){\n\t\tzs[i]=0;\n\t}\n scanf(\"%d\",&n);\n\tfor(i=0;imax)\n\t\t\tmax=zs[i];\n\t}\n\tprintf(\"%d\",max);\n\treturn 0;\n}"} +{"label": "82", "index": "40999", "code": "int main (){\n\tint n;\n\tint s[100],q[100],t[100];\n\t\n\t\n\tint i;\n\tint j=0;\n\tint m;\n\tscanf (\"%d\",&n);\n\tfor (i=0;i=90&&s[i]<=140&&q[i]<=90&&q[i]>=60){\n\t\t\tt[j]++;\n\t\t\t\n\t\t}else if (i>=1&&s[i-1]>=90&&s[i-1]<=140&&q[i-1]>=60&&q[i-1]<=90){\n\n\t\t\t\tj++;\n\t\t\t\n\t\t}\n\t}\n\tfor (i=0;it[i+1]){\n\t\t\t\tm=t[i];\n\t\t\t\tt[i]=t[i+1];\n\t\t\t\tt[i+1]=m;\n\t\t\t}\n\t\t\n\t}\n\n\n\n\n\t\t\n\n\n\n\t\n\n printf (\"%d\",t[n-1]);\n\n\n\n\n \n\n\n\treturn 0;\n}\n"} +{"label": "83", "index": "41000", "code": "int main()\n{\n int n,i,k,m[10];\n float r=0,g=0;\n scanf(\"%d\",&n);\n for(i=0;i=90)s=4.0;\n else if(a<90&&a>=85)s=3.7;\n else if(a<85&&a>=82)s=3.3;\n else if(a<82&&a>=78)s=3.0;\n else if(a<78&&a>=75)s=2.7;\n else if(a<75&&a>=72)s=2.3;\n else if(a<72&&a>=68)s=2.0;\n else if(a<68&&a>=64)s=1.5;\n else if(a<64&&a>=60)s=1.0;\n else s=0;\n return s;\n}\n"} +{"label": "83", "index": "41002", "code": "int main()\n{\n\tint n,ZXF,i,p;\n\tdouble GPA;\n\tscanf(\"%d\",&n);\n\tint a[10];\n\tdouble b[10];\n\tfor(i=0;i=90)\n\t\t\tb[i]=4.0;\n\t\telse if(p>=85)\n\t\t\tb[i]=3.7;\n\t\telse if(p>=82)\n\t\t\tb[i]=3.3;\n\t\telse if(p>=78)\n\t\t\tb[i]=3.0;\n\t\telse if(p>=75)\n\t\t\tb[i]=2.7;\n\t\telse if(p>=72)\n\t\t\tb[i]=2.3;\n\t\telse if(p>=68)\n\t\t\tb[i]=2.0;\n\t\telse if(p>=64)\n\t\t\tb[i]=1.5;\n\t\telse if(p>=78)\n\t\t\tb[i]=1.0;\n\t\telse if(p>=78)\n\t\t\tb[i]=0;\n\t}\n\tZXF=0;\n\tfor(i=0;i=90&&chengji[i]<=100)\n\tjidian[i]=4.0;\n\t\telse if(chengji[i]>=85&&chengji[i]<=89)\n\t\tjidian[i]=3.7;\n\t\telse if(chengji[i]>=82&&chengji[i]<=84)\n\t\tjidian[i]=3.3;\n\t\telse if(chengji[i]>=78&&chengji[i]<=81)\n\t\tjidian[i]=3.0;\n\t\telse if(chengji[i]>=75&&chengji[i]<=77)\n\t\tjidian[i]=2.7;\n\t\telse if(chengji[i]>=72&&chengji[i]<=74)\n\t\t\tjidian[i]=2.3;\n\t\telse if(chengji[i]>=68&&chengji[i]<=71)\n\t\t\tjidian[i]=2.0;\n\t\telse if(chengji[i]>=64&&chengji[i]<=67)\n\t\tjidian[i]=1.5;\n\t\telse if(chengji[i]>=60&&chengji[i]<=63)\n\t\tjidian[i]=1.0;\n\t\telse if(chengji[i]>=0&&chengji[i]<=59)\n\t\tjidian[i]=0;\n\t\txuefenjidian[i]=xuefen[i]*jidian[i];\n\t}\n\tfor(i=0;i=90&&b[i][j]<=100)\n zong=zong+4*b[0][j];\n if(b[i][j]>=85&&b[i][j]<=89)\n zong=zong+3.7*b[0][j];\n if(b[i][j]>=82&&b[i][j]<=84)\n zong=zong+3.3*b[0][j];\n if(b[i][j]>=78&&b[i][j]<=81)\n zong=zong+3.0*b[0][j];\n if(b[i][j]>=75&&b[i][j]<=77)\n zong=zong+2.7*b[0][j];\n if(b[i][j]>=72&&b[i][j]<=74)\n zong=zong+2.3*b[0][j];\n if(b[i][j]>=68&&b[i][j]<=71)\n zong=zong+2*b[0][j];\n if(b[i][j]>=64&&b[i][j]<=67)\n zong=zong+1.5*b[0][j];\n if(b[i][j]>=60&&b[i][j]<=63)\n zong=zong+1*b[0][j];\n }\n \n }\n }\n GPA=(float)zong/xuefen;\n printf(\"%.2f\",GPA);\n \n \n}\n"} +{"label": "83", "index": "41006", "code": "void main()\n{int a[100],b[100];\nfloat c[100];\nfloat sum,GPA;\nint n,i,j,p,d;\nsum=0;\nd=0;\nscanf(\"%d\",&n);\nfor(i=0;i=90) c[p]=4;\n if(b[p]<90&&b[p]>84) c[p]=3.7;\n if(b[p]<85&&b[p]>81) c[p]=3.3;\n if(b[p]<82&&b[p]>77) c[p]=3.0;\n if(b[p]<78&&b[p]>74) c[p]=2.7;\n if(b[p]<75&&b[p]>71) c[p]=2.3;\n if(b[p]<72&&b[p]>67) c[p]=2.0;\n if(b[p]<68&&b[p]>63) c[p]=1.5;\n if(b[p]<64&&b[p]>59) c[p]=1.0;\n if(b[p]<60) c[p]=0;}\nfor(p=0;p=90 && x<=100) jd[i]=4.0; \n\t\telse if(x>=85 && x<=89) jd[i]=3.7;\n\t\telse if(x>=82 && x<=84) jd[i]=3.3; \n\t\telse if(x>=78 && x<=81) jd[i]=3.0;\n\t\telse if(x>=75 && x<=55) jd[i]=2.7;\n\t\telse if(x>=72 && x<=74) jd[i]=2.3;\n\t\telse if(x>=68 && x<=71) jd[i]=2.0;\n\t\telse if(x>=64 && x<=67) jd[i]=1.5;\n\t\telse if(x>=60 && x<=63) jd[i]=1.0;\n\t\telse jd[i]=0;\n\t\t\n\t\ts1+=jd[i]*xf[i];\n\t\ts2+=xf[i];\n\t}\n\tprintf(\"%.2f\\n\",s1/s2);\n}\n"} +{"label": "83", "index": "41008", "code": "int main()\n{\n\tint n,i,z=0;\n\tint a[10];\n\tint b[10];\n\tfloat c[10],g,y=0,t[10]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60&&b[i]<=63)\n\t\t\tc[i]=1;\n\t\tif(b[i]>=64&&b[i]<=67)\n\t\t\tc[i]=1.5;\n\t\tif(b[i]>=68&&b[i]<=71)\n\t\t\tc[i]=2;\n\t\tif(b[i]>=72&&b[i]<=74)\n\t\t\tc[i]=2.3;\n\t\tif(b[i]>=75&&b[i]<=77)\n\t\t\tc[i]=2.7;\n\t\tif(b[i]>=78&&b[i]<=81)\n\t\t\tc[i]=3;\n\t\tif(b[i]>=82&&b[i]<=84)\n\t\t\tc[i]=3.3;\n\t\tif(b[i]>=85&&b[i]<=89)\n\t\t\tc[i]=3.7;\n\t\tif(b[i]>=90&&b[i]<=100)\n\t\t\tc[i]=4;\n\t}\n\tfor(i=0;i=90?4.0:m>=85?3.7:m>=82?3.3:m>=78?3.0:m>=75?2.7:m>=72?2.3:m>=68?2.0:m>=64?1.5:m>=60?1.0:0;\n\t\tq=p*(a[i]);\n\t\ts=s+q;\n\t\tz=z+(a[i]);\n\t}\n\tGPA=s/z;\n\tprintf(\"%.2f\",GPA);\n\t\treturn 0;\n}\n\n"} +{"label": "83", "index": "41011", "code": "int main()\n{\n\tint c, n, i, x[20], sx=0;\n\tdouble GPA=0.0;\n\tscanf(\"%d\", &n);\n\tfor(int k=0; k=90&&c<=100) GPA+=x[i]*4.0;\n\t\tif(c>=85&&c<=89) GPA+=x[i]*3.7;\n\t\tif(c>=82&&c<=84) GPA+=x[i]*3.3;\n\t\tif(c>=78&&c<=81) GPA+=x[i]*3.0;\n\t\tif(c>=75&&c<=77) GPA+=x[i]*2.7;\n\t\tif(c>=72&&c<=74) GPA+=x[i]*2.3;\n\t\tif(c>=68&&c<=71) GPA+=x[i]*2.0;\n\t\tif(c>=64&&c<=67) GPA+=x[i]*1.5;\n\t\tif(c>=60&&c<=63) GPA+=x[i]*1.0;\n\t\tif(c<=59) GPA+=0.0;\n\t\tsx+=x[i];\n\t}\n\tprintf(\"%.2lf\", GPA/sx*1.0);\n\treturn 0;\n}"} +{"label": "83", "index": "41012", "code": "int main()\n{\n int score[10] = {90, 85, 82, 78, 75, 72, 68, 64, 60, 0};\n double gpa[10] = {4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0, 1.5, 1.0, 0};\n int s;\n double g; \n int i, j, a, b, c;\n double e=0, f=0, GPA;\n scanf(\"%d\", &b);\n int all[10], real[10];\n for(i=0;i=score[j]) \n {\n g=gpa[j];\n break;\n }\n }\n e+=g*all[i]; \n f+=all[i];\n }\n GPA=e/f;\n printf(\"%.2lf\",GPA);\t\n}"} +{"label": "83", "index": "41013", "code": " int main (){\n int n;\n scanf(\"%d\",&n);\n int sz[n];\n int st[n];\n double a,t=0,m=0,GPA;\n for (int i=0;i89.0){\n a=4.0;\n }\n else if(sz[i]<90.0&&sz[i]>84.0){\n a=3.7;\n }\n else if(sz[i]>81.0&&sz[i]<85.0){\n a=3.3;\n }\n else if(sz[i]>77.0&&sz[i]<82.0){\n a=3.0;\n }\n else if(sz[i]>74.0&&sz[i]<78.0){\n a=2.7;\n }\n else if(sz[i]>71.0&&sz[i]<75.0){\n a=2.3;\n }\n else if(sz[i]>67.0&&sz[i]<72.0){\n a=2.0;\n }\n else if(sz[i]>63.0&&sz[i]<68.0){\n a=1.5;\n }\n else if(sz[i]>59.0&&sz[i]<64.0){\n a=1.0;\n }\n else {a=0;}\n m+=a*st[i];\n }\n GPA=m/t;\n printf(\"%.2lf\",GPA);\n return 0;\n }\n\n\n\n"} +{"label": "83", "index": "41014", "code": "int main(){\n int n,i;\n scanf(\"%d\",&n);\n double a,b,c,x[n],y[n];\n for(i=0;i=90){\n x[i]=4.0;\n }\n else if(x[i]>=85&&x[i]<=89){\n x[i]=3.7;\n }\n else if(x[i]>=82&&x[i]<=84){\n x[i]=3.3;\n }\n else if(x[i]>=78&&x[i]<=81){\n x[i]=3.0;\n }\n else if(x[i]>=75&&x[i]<=77){\n x[i]=2.7;\n }\n else if(x[i]>=72&&x[i]<=74){\n x[i]=2.3;\n }\n else if(x[i]>=68&&x[i]<=71){\n x[i]=2.0;\n }\n else if(x[i]>=64&&x[i]<=67){\n x[i]=1.5;\n }\n else if(x[i]>=60&&x[i]<=63){\n x[i]=1.0;\n }\n else if(x[i]<60){\n x[i]=0;\n }\n }\n a=0;\n for(i=0;i=90)\n\t\t{\n\t\t\tjd[i]=4.0;\n\t\t}else\n\t\t{\n\t\t\tif((score[i]>=85)&&(score[i]<90))\n\t\t\t{\n\t\t\t\tjd[i]=3.7;\n\t\t\t}else\n\t\t\t{\n\t\t\t\tif((score[i]>=82)&&(score[i]<85))\n\t\t\t\t{\n\t\t\t\t\tjd[i]=3.3;\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif((score[i]>=78)&&(score[i]<82))\n\t\t\t\t\t{\n\t\t\t\t\t\tjd[i]=3.0;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif((score[i]>=75)&&(score[i]<78))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjd[i]=2.7;\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif((score[i]>=72)&&(score[i]<75))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tjd[i]=2.3;\n\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif((score[i]>=68)&&(score[i]<72))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tjd[i]=2.0;\n\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif((score[i]>=64)&&(score[i]<68))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tjd[i]=1.5;\n\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif((score[i]>=60)&&(score[i]<64))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tjd[i]=1.0;\n\t\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tjd[i]=0.0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsum+=(jd[i])*(n[i]);\n\t\ti++;\n\t}\n\ta=sum/((double)(m));\n\tprintf(\"%.2lf\",a);\n\treturn 0;\n}"} +{"label": "83", "index": "41016", "code": "\nfloat GradePoint(int marks)\n{\n\tif(marks>=90&&marks<=100)\n\t\treturn 4.0;\n\telse if(marks>=85&&marks<=89)\n\t\treturn 3.7;\n\telse if(marks>=82&&marks<=84)\n\t\treturn 3.3;\n\telse if(marks>=78&&marks<=81)\n\t\treturn 3.0;\n\telse if(marks>=75&&marks<=77)\n\t\treturn 2.7;\n\telse if(marks>=72&&marks<=74)\n\t\treturn 2.3;\n\telse if(marks>=68&&marks<=71)\n\t\treturn 2.0;\n\telse if(marks>=64&&marks<=67)\n\t\treturn 1.5;\n\telse if(marks>=60&&marks<=63)\n\t\treturn 1.0;\n\telse \n\t\treturn 0;\n\n}\nvoid main()\n{\n\tint n,i,count=0;\n\tint *XueFen,*Marks;\n\tfloat GPA=0;\n\tscanf(\"%d\",&n);\n\tXueFen=(int*)malloc(sizeof(int)*n);\n\tMarks=(int*)malloc(sizeof(int)*n);\n\tfor(i=0;i=60&&cj[i]<=63){\n jd[i]=1.0;\n }\n if(cj[i]>=64&&cj[i]<=67){\n jd[i]=1.5;\n }\n if(cj[i]>=68&&cj[i]<=71){\n jd[i]=2.0;\n }\n if(cj[i]>=72&&cj[i]<=74){\n jd[i]=2.3;\n }\n if(cj[i]>=75&&cj[i]<=77){\n jd[i]=2.7;\n }\n if(cj[i]>=78&&cj[i]<=81){\n jd[i]=3.0;\n }\n if(cj[i]>=82&&cj[i]<=84){\n jd[i]=3.3;\n }\n if(cj[i]>=85&&cj[i]<=89){\n jd[i]=3.7;\n }\n if(cj[i]>=90&&cj[i]<=100){\n jd[i]=4.0;\n }\n a=a+xf[i]*jd[i];\n b=b+xf[i];\n }\n a=a/b;\n printf(\"%.2f\",a);\n return 0;\n}"} +{"label": "83", "index": "41018", "code": "int main()\n{\n int n, c;\n float b, GPAN;\n int i;\n int xuefen[10], score[10];\n float GPA[10];\n float GPAbiao[] = {4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0, 1.5, 1.0, 0};\n\tb = 0;\n\tc = 0;\n scanf(\"%d\", &n);\n for(i=0;i=90) GPA[i] = GPAbiao[0] * xuefen[i];\n else if(score[i]>=85&&score[i]<90) GPA[i] = GPAbiao[1] * xuefen[i];\n else if(score[i]>=82&&score[i]<85) GPA[i] = GPAbiao[2] * xuefen[i];\n else if(score[i]>=78&&score[i]<82) GPA[i] = GPAbiao[3] * xuefen[i];\n else if(score[i]>=75&&score[i]<78) GPA[i] = GPAbiao[4] * xuefen[i];\n else if(score[i]>=72&&score[i]<75) GPA[i] = GPAbiao[5] * xuefen[i];\n else if(score[i]>=68&&score[i]<72) GPA[i] = GPAbiao[6] * xuefen[i];\n else if(score[i]>=64&&score[i]<68) GPA[i] = GPAbiao[7] * xuefen[i];\n else if(score[i]>=60&&score[i]<64) GPA[i] = GPAbiao[8] * xuefen[i];\n else GPA[i] = GPAbiao[9] * xuefen[i];\n }\n for(i=0;i89) gp[j]=4;\n else if (p[j]>84) gp[j]=3.7;\n else if (p[j]>81) gp[j]=3.3;\n else if (p[j]>77) gp[j]=3;\n else if (p[j]>74) gp[j]=2.7;\n else if (p[j]>71) gp[j]=2.3;\n else if (p[j]>67) gp[j]=2;\n else if (p[j]>63) gp[j]=1.5;\n else if (p[j]>59) gp[j]=1;\n else gp[j]=0;\n gpa+=c[j]*gp[j];\n }\ngpa=gpa/d;\nprintf(\"%.2f\",gpa);\n}\n"} +{"label": "83", "index": "41021", "code": "void main()\n{\n\tint i,j=0,k=0,n,a[10]={0},b[10]={0};\n float c[10]={0.0},s=0.0,total=0.0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90 && b[i]<=100)\n\t\t\tc[i]=4.0;\n\t else if(b[i]>=85 && b[i]<=89)\n\t\t\tc[i]=3.7;\n\t\t\telse if(b[i]>=82 && b[i]<=84)\n\t\t\tc[i]=3.3;\n\t\t\telse if(b[i]>=78 && b[i]<=81)\n\t\t\tc[i]=3.0;\n\t\t\telse if(b[i]>=75 && b[i]<=77)\n\t\t\tc[i]=2.7;\n\t\t\telse if(b[i]>=72 && b[i]<=74)\n\t\t\tc[i]=2.3;\n\t\t\telse if(b[i]>=68 && b[i]<=71)\n\t\t\tc[i]=2.0;\n\t\t\telse if(b[i]>=64 && b[i]<=67)\n\t\t\tc[i]=1.5;\n\t\t\telse if(b[i]>=60 && b[i]<=63)\n\t\t\tc[i]=1.0;\n\t\t\telse if( b[i]<60)\n\t\t\tc[i]=0.0;\n for (i=0;i=90){\n deal[i]=4.0; \n }else if(vv[i]>=85){\n deal[i]=3.7;\n }else if(vv[i]>=82){\n deal[i]=3.3;\n }else if(vv[i]>=78){\n deal[i]=3.0;\n }else if(vv[i]>=75){\n deal[i]=2.7;\n }else if(vv[i]>=72){\n deal[i]=2.3;\n }else if(vv[i]>=68){\n deal[i]=2.0;\n }else if(vv[i]>=64){\n deal[i]=1.5;\n }else if(vv[i]>=60){\n deal[i]=1.0;\n }else{deal[i]=0;}\n }\n for(i=0;i=90){\n\t\t\t\n\t\t\tx+=4.0*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])>=85&&(sz[j])<90){\n\t\t\t\n\t\t\tx+=3.7*a[j];\n\t\t\t\n\t\t}\n else if((sz[j])>=82&&(sz[j])<85){\n\t\t\t\n\t\t\tx+=3.3*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])>=78&&(sz[j])<82){\n\t\t\t\n\t\t\tx+=3.0*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])>=75&&(sz[j])<78){\n\t\t\t\n\t\t\tx+=2.7*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])>=72&&(sz[j])<75){\n\t\t\t\n\t\t\tx+=2.3*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])>=68&&(sz[j])<72){\n\t\t\t\n\t\t\tx+=2.0*a[j];\n\t\t\t\n\t\t}\n \t else if((sz[j])>=64&&(sz[j])<68){\n\t\t\t\n\t\t\tx+=1.5*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])>=60&&(sz[j])<64){\n\t\t\t\n\t\t\tx+=1.0*a[j];\n\t\t\t\n\t\t}\n\t\telse if((sz[j])<60){\n\t\t\t\n\t\t\tx+=0;\n\t\t\t\n\t\t}\n\t\t\n\t}\n\tGPA=x/y;\n\t\n\tprintf(\"%.2f\",GPA);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\treturn 0;\n\t\n}"} +{"label": "83", "index": "41024", "code": "void main()\n{\n\tint credit[100],score[100];\n\tfloat point[100];\n\tint n,i; \n\tfloat sum=0,sum1=0,average;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t\tpoint[i]=4.0;\n\t\telse if(score[i]<=89&&score[i]>=85)\n\t\t\tpoint[i]=3.7;\n\t\telse if(score[i]<=84&&score[i]>=82)\n\t\t\tpoint[i]=3.3;\n\t\telse if(score[i]<=81&&score[i]>=78)\n\t\t\tpoint[i]=3.0;\n\t\telse if(score[i]<=77&&score[i]>=75)\n\t\t\tpoint[i]=2.7;\n\t\telse if(score[i]>=72&&score[i]<=74)\n\t\t\tpoint[i]=2.3;\n\t\telse if(score[i]>=68&&score[i]<=71)\n\t\t\tpoint[i]=2.0;\n\t\telse if(score[i]>=64&&score[i]<=67)\n\t\t\tpoint[i]=1.5;\n\t\telse if(score[i]>=60&&score[i]<=63)\n\t\t\tpoint[i]=1.0;\n\t\telse if(score[i]>=0&&score[i]<=59)\n\t\t\tpoint[i]=0;\n\t\telse\n\t\t\tprintf(\"error\");\n\t}\n\tfor(i=0;i>n;//?????n\nfor(i=0;i>x[i];//???????\n\tf=f+x[i];\n\t}\nfor(i=0;i>y[i];//?????????\nfor(i=0;i=90&&y[i<=100])\n\tj=j+4*x[i];\nif(y[i]>=85&&y[i]<=89)\n\tj=j+3.7*x[i];\nif(y[i]>=82&&y[i]<=84)\n\tj=j+3.3*x[i];\nif(y[i]>=78&&y[i]<=81)\n\tj=j+3*x[i];\nif(y[i]>=75&&y[i]<=77)\n\tj=j+2.7*x[i];\nif(y[i]>=72&&y[i]<=74)\n\tj=j+2.3*x[i];\nif(y[i]>=68&&y[i]<=71)\n\tj=j+2*x[i];\nif(y[i]>=64&&y[i]<=67)\n\tj=j+1.5*x[i];\nif(y[i]>=60&&y[i]<=63)\n\tj=j+1*x[i];\nif(y[i]<60)\n\tj=j+0*x[i];\n}\nGPA=j/f;//??????\ncout<=90){z[i]=4.0;}\nelse if(v[i]<=89&&v[i]>=85){z[i]=3.7;}\nelse if(v[i]<=84&&v[i]>=82){z[i]=3.3;}\nelse if(v[i]<=81&&v[i]>=78){z[i]=3.0;}\nelse if(v[i]<=77&&v[i]>=75){z[i]=2.7;}\nelse if(v[i]<=74&&v[i]>=72){z[i]=2.3;}\nelse if(v[i]<=71&&v[i]>=68){z[i]=2.0;}\nelse if(v[i]<=67&&v[i]>=64){z[i]=1.5;}\nelse if(v[i]<=63&&v[i]>=60){z[i]=1.0;}\nelse{z[i]=0;}\n}\ns=0;\nfor(i=0;i=90&&x<=100) return 4;\n if (x>=85) return 3.7;\n if (x>=82) return 3.3;\n if (x>=78) return 3;\n if (x>=75) return 2.7;\n if (x>=72) return 2.3;\n if (x>=68) return 2.0;\n if (x>=64) return 1.5;\n if (x>=60) return 1.0;\n return 0;\n}\nint main(){\n int n,i;\n\tint xuefen[100];\n\tint xuefensum;\n\tfloat score,GPA,scoresum;\n\tscanf(\"%d\",&n);\n\txuefensum=0;\n\tscoresum=0;\n\tfor(i=0;i> n;\n\tfor(i = 0; i < n; i ++)\n\t\tcin >> a[i];\n\tfor(i = 0; i < n; i ++)\n\t\tcin >> b[i];\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tif(b[i] >= 90 && b[i] <= 100)\n\t\t\tc[i] = 4.0;\n\t\telse if(b[i] >= 85)\n\t\t\tc[i] = 3.7;\n\t\telse if(b[i] >= 82)\n\t\t\tc[i] = 3.3;\n\t\telse if (b[i] >= 78)\n\t\t\tc[i] = 3.0;\n\t\telse if(b[i] >= 75)\n\t\t\tc[i] = 2.7;\n\t\telse if(b[i] >= 72)\n\t\t\tc[i] = 2.3;\n\t\telse if(b[i] >= 68)\n\t\t\tc[i] = 2.0;\n\t\telse if(b[i] >= 64)\n\t\t\tc[i] = 1.5;\t\n\t\telse if(b[i] >= 60)\n\t\t\tc[i] = 1.0;\t\n\t\telse \n\t\t\tc[i] = 0;\n\t\tnum += a[i];\n\t\tG += a[i] * c[i];\n\t}\n\tG = G / num;\n\tcout << fixed << setprecision(2) << G << endl;\n\treturn 0;\n}\n"} +{"label": "83", "index": "41029", "code": "int main(){\n int i,n;\n double GPA;\n double sum1=0;\n double sum2=0;\n int xf[10];\n int df[10];\n double gpa[10];\n scanf(\"%d\\n\",&n);\n for(i=0;i=90){\n gpa[i]=4.0;\n }else if(df[i]>=85){\n gpa[i]=3.7;\n }else if(df[i]>=82){\n gpa[i]=3.3;\n }else if(df[i]>=78){\n gpa[i]=3.0;\n }else if(df[i]>=75){\n gpa[i]=2.7;\n }else if(df[i]>=72){\n gpa[i]=2.3;\n }else if(df[i]>=68){\n gpa[i]=2.0;\n }else if(df[i]>=64){\n gpa[i]=1.5;\n }else if(df[i]>=60){\n gpa[i]=1.0;\n }else{\n gpa[i]=0;\n }\n }\n for(i=0;i89&&grade[i]<=100)\n\t\t{\n\t\t\tpg[i]=4.0;\n\t\t}\n\t\tif(grade[i]>84&&grade[i]<=89)\n\t\t{\n\t\t\tpg[i]=3.7;\n\t\t}\n\t\tif(grade[i]>81&&grade[i]<=84)\n\t\t{\n\t\t\tpg[i]=3.3;\n\t\t}\n\t\tif(grade[i]>77&&grade[i]<=81)\n\t\t{\n\t\t\tpg[i]=3.0;\n\t\t}\n\t\tif(grade[i]>74&&grade[i]<=77)\n\t\t{\n\t\t\tpg[i]=2.7;\n\t\t}\n\t\tif(grade[i]>71&&grade[i]<=74)\n\t\t{\n\t\t\tpg[i]=2.3;\n\t\t}\n\t\tif(grade[i]>68&&grade[i]<=71)\n\t\t{\n\t\t\tpg[i]=2.0;\n\t\t}\n\t\tif(grade[i]>63&&grade[i]<=67)\n\t\t{\n\t\t\tpg[i]=1.5;\n\t\t}\n\t\tif(grade[i]>59&&grade[i]<=63)\n\t\t{\n\t\t\tpg[i]=1.0;\n\t\t}\n\t\tif(grade[i]<=59)\n\t\t{\n\t\t\tpg[i]=0;\n\t\t}\n\t\tsum1=sum1+pg[i]*point[i];\n\t\tsum2=sum2+point[i];\n\t}\n\tgpa=sum1/sum2;\n\tprintf(\"%.2lf\",gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41031", "code": "main()\n{\n\tint n,s,i;\n\tint a[10],b[10];\n\tfloat c[10];\n\tfloat sum,q;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90)\n\t\t\tc[i]=4.0;\n\t\telse if(b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if(b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\telse if(b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if(b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if(b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\telse if(b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\telse if(b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\telse c[i]=0;\n\t}\n\tsum=0;s=0;\n\tfor(i=0;i89) c[i]=4.0;\n else if(b[i]>84) c[i]=3.7;\n else if(b[i]>81) c[i]=3.3;\n else if(b[i]>77) c[i]=3.0;\n else if(b[i]>74) c[i]=2.7;\n else if(b[i]>71) c[i]=2.3;\n else if(b[i]>67) c[i]=2.0;\n else if(b[i]>63) c[i]=1.5;\n else if(b[i]>59) c[i]=1.0;\n else c[i]=0;\n sum=sum+c[i]*a[i];\n }\n printf(\"\\n\");\n x=sum/s;\n printf(\"%.2lf\\n\",x);\n return 0;\n}\n \n "} +{"label": "83", "index": "41034", "code": "struct grade\n{\n\tint classgrade;\n\tint finalgrade;\n\tdouble GPA;\n}G[100];\n\nint main()\n{\n\tint n, i;\n\tscanf(\"%d\", &n);\n\tfor(i=0;i=90)&&(G[i].finalgrade<=100))\n\t\t\tG[i].GPA=G[i].classgrade*4.0;\n\t\tif((G[i].finalgrade>=85)&&(G[i].finalgrade<=89))\n\t\t\tG[i].GPA=G[i].classgrade*3.7;\n\t\tif((G[i].finalgrade>=82)&&(G[i].finalgrade<84))\n\t\t\tG[i].GPA=G[i].classgrade*3.3;\n\t\tif((G[i].finalgrade>=78)&&(G[i].finalgrade<=81))\n\t\t\tG[i].GPA=G[i].classgrade*3.0;\n\t\tif((G[i].finalgrade>=75)&&(G[i].finalgrade<=77))\n\t\t\tG[i].GPA=G[i].classgrade*2.7;\n\t\tif((G[i].finalgrade>=72)&&(G[i].finalgrade<=74))\n\t\t\tG[i].GPA=G[i].classgrade*2.3;\n\t\tif((G[i].finalgrade>=68)&&(G[i].finalgrade<=71))\n\t\t\tG[i].GPA=G[i].classgrade*2.0;\n\t\tif((G[i].finalgrade>=64)&&(G[i].finalgrade<=67))\n\t\t\tG[i].GPA=G[i].classgrade*1.5;\n\t\tif((G[i].finalgrade>=60)&&(G[i].finalgrade<=63))\n\t\t\tG[i].GPA=G[i].classgrade*1.0;\n\t\tif(G[i].finalgrade<=60)\n\t\t\tG[i].GPA=0;\n\t}\n\tdouble allG=0;\n\tdouble allcG=0;\n\tfor(i=0;i=90&&f[i]<=100){\n g[i]=4.0;\n }else if(f[i]>=85&&f[i]<=89){\n g[i]=3.7;\n }else if(f[i]>=82&&f[i]<=84){\n g[i]=3.3;\n }else if(f[i]>=78&&f[i]<=81){\n g[i]=3.0;\n }else if(f[i]>=75&&f[i]<=77){\n g[i]=2.7;\n }else if(f[i]>=72&&f[i]<=74){\n g[i]=2.3;\n } else if(f[i]>=68&&f[i]<=71){\n g[i]=2.0;\n } else if(f[i]>=64&&f[i]<=67){\n g[i]=1.5;\n } else if(f[i]>=60&&f[i]<=63){\n g[i]=1.0;\n } else{\n g[i]=0.0;\n }\n m=x[i]*g[i];\n\n\t\ts+=m;\n\t}\n A=s/q;\n printf(\"%.2lf\",A);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41036", "code": "int main()\n{\n\tint i,n,xuefen[100]={0},grade[100]={0};\n\tfloat GPA[100]={0},a=0,sum=0;\n\tcin>>n;\n\tfor(i=0;i>xuefen[i];\n\tfor(i=0;i>grade[i];\n\t\tif(grade[i]>=90&&grade[i]<=100)\n\t\tGPA[i]=4.0;\n\t\telse if(grade[i]>=85&&grade[i]<=89)\n\t\tGPA[i]=3.7;\n\t\telse if(grade[i]>=82&&grade[i]<=84)\n\t\tGPA[i]=3.3;\n\t\telse if(grade[i]>=78&&grade[i]<=81)\n\t\tGPA[i]=3.0;\n\t\telse if(grade[i]>=75&&grade[i]<=77)\n\t\tGPA[i]=2.7;\n\t\telse if(grade[i]>=72&&grade[i]<=74)\n\t\tGPA[i]=2.3;\n\t\telse if(grade[i]>=68&&grade[i]<=71)\n\t\tGPA[i]=2.0;\n\t\telse if(grade[i]>=64&&grade[i]<=67)\n\t\tGPA[i]=1.5;\n\t\telse if(grade[i]>=60&&grade[i]<=63)\n\t\tGPA[i]=1.0;\n\t\telse \n\t\t\tGPA[i]=0;\n\t}\n\tfor(i=0;i=90)return 4.0;else if(x>=85)return 3.7;\n\telse if(x>=82)return 3.3;else if(x>=78)return 3.0;else if(x>=75)return 2.7;\n\telse if(x>=72)return 2.3;else if(x>=68)return 2.0;else if(x>=64)return 1.5;\n\telse if(x>=60)return 1.0;else return 0;}"} +{"label": "83", "index": "41038", "code": "\nint main()\n{\n\tint a,i,e;\n\tfloat b,c;\n\tint s[10],g[10],k[10];\n\tscanf(\"%d\",&a);\n\te=0;\n\tfor(i=0;i=60&&g[i]<=63){\n\t\tk[i]=10*s[i];\n\t}else if(g[i]>=64&&g[i]<=67){\n\t\tk[i]=15*s[i];\n\t}else if(g[i]>=68&&g[i]<=71){\n\t\tk[i]=20*s[i];\n\t}else if(g[i]>=72&&g[i]<=74){\n\t\tk[i]=23*s[i];\n\t}else if(g[i]>=75&&g[i]<=77){\n\t\tk[i]=27*s[i];\n\t}else if(g[i]>=78&&g[i]<=81){\n\t\tk[i]=30*s[i];\n\t}else if(g[i]>=82&&g[i]<=84){\n\t\tk[i]=33*s[i];\n\t}else if(g[i]>=85&&g[i]<=89){\n\t\tk[i]=37*s[i];\n\t}else if(g[i]>=90&&g[i]<=100){\n\t\tk[i]=40*s[i];\n\t}\n\tb+=k[i];\n\t}\n\tc=1.0*b/e/10;\n\tprintf(\"%.2f\",c);\n\treturn 0;\n}"} +{"label": "83", "index": "41039", "code": "void main()\n{\n\tint n;\n\tscanf(\"%d\\n\",&n);\n\tint a[100],b[100],j,sum1=0;\n\tfloat GPA,c[100],sum=0;\n\tfor(j=0;j<=n-1;j++)scanf(\"%d\",&a[j]);\n\tfor(j=0;j<=n-1;j++)scanf(\"%d\",&b[j]);\n\tfor(j=0;j<=n-1;j++)\n\t{ \n\t\tif(90<=b[j]) c[j]=4.0;\n\t\telse if(85<=b[j]) c[j]=3.7;\n\t\telse if(82<=b[j]) c[j]=3.3;\n\t\telse if(78<=b[j]) c[j]=3.0;\n\t\telse if(75<=b[j]) c[j]=2.7;\n\t\telse if(72<=b[j]) c[j]=2.3;\n\t\telse if(68<=b[j]) c[j]=2.0;\n\t\telse if(64<=b[j]) c[j]=1.5;\n\t\telse if(60<=b[j]) c[j]=1.0;\n\t\telse c[j]=0.0;\n\t}\n\tfor(j=0;j<=n-1;j++)sum=sum+a[j]*c[j];\n\tfor(j=0;j<=n-1;j++)sum1=sum1+a[j];\n\tGPA=sum/sum1;\n\tprintf(\"%.2f\\n\",GPA);\n}\n"} +{"label": "83", "index": "41040", "code": "double whatmark(int a)\n{\n if(a>=90 && a<=100)return 4.0; \n if(a>=85 && a<=89) return 3.7;\n if(a>=82 && a<=84) return 3.3; \n if(a>=78 && a<=81) return 3.0;\n if(a>=75 && a<=77) return 2.7; \n if(a>=72 && a<=74) return 2.3;\n if(a>=68 && a<=71) return 2.0; \n if(a>=64 && a<=67) return 1.5;\n if(a>=60 && a<=63) return 1.0; \n if(a<60) return 0;\n}\nint main()\n{\n int N,i,score[11],mark[11],tmark;\n double sum;\n cin>>N;\n for(i=1;i<=N;i++) cin>>mark[i];\n for(i=1;i<=N;i++) cin>>score[i];\n for(i=1,tmark=0;i<=N;i++) tmark+=mark[i];\n for(i=1,sum=0;i<=N;i++) sum+=whatmark(score[i])*mark[i];\n printf(\"%.2f\\n\",sum*1.0/tmark);\n}\n"} +{"label": "83", "index": "41041", "code": "int main (){\n\tint n,i;\n\tdouble GPA=0;\n\tint sum=0;\n\tdouble score[10];\n\tint point[10];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90&&score[i]<=100){\n\t\t\tscore[i]=4.0;}\n\t\telse if(score[i]>=85&&score[i]<=89){\n\t\t\tscore[i]=3.7;}\n\t\telse if(score[i]>=82&&score[i]<=84){\n\t\t\tscore[i]=3.3;}\n\t\telse if(score[i]>=78&&score[i]<=81){\n\t\t\tscore[i]=3.0;}\n\t\telse if(score[i]>=75&&score[i]<=77){\n\t\t\tscore[i]=2.7;}\n\t\telse if(score[i]>=72&&score[i]<=74){\n\t\t\tscore[i]=2.3;}\n\t\telse if(score[i]>=68&&score[i]<=71){\n\t\t\tscore[i]=2.0;}\n\t\telse if(score[i]>=64&&score[i]<=67){\n\t\t\tscore[i]=1.5;}\n\t\telse if(score[i]>=60&&score[i]<=63){\n\t\t\tscore[i]=1.0;}\n\t\telse if(score[i]<60){\n\t\t\tscore[i]=0.0;}\n\t\tGPA+=1.0*score[i]*point[i];\n\t}\n for(i=0;i>n;\n float a[n];\n float b[n];\n float s[n];\n float sum=0,x;\n for(i=0;i>a[i];}\n for(j=0;j>b[j];}\n for(x=0,k=0;k=90) s[k]=4;\n else if (b[k]<=89&&b[k]>84) s[k]=3.7;\n else if (b[k]<=84&&b[k]>81) s[k]=3.3;\n else if (b[k]<=81&&b[k]>77) s[k]=3.0;\n else if (b[k]<=77&&b[k]>74) s[k]=2.7;\n else if (b[k]<=74&&b[k]>71) s[k]=2.3;\n else if (b[k]<=71&&b[k]>67) s[k]=2;\n else if (b[k]<=67&&b[k]>63) s[k]=1.5;\n else if (b[k]<=63&&b[k]>59) s[k]=1;\n else s[k]=0;\n sum=sum+a[k]*s[k];\n x=x+a[k];\n}\n sum=sum/x;\n printf(\"%.2f\",sum);\n return 0;\n}\n"} +{"label": "83", "index": "41043", "code": "void main()\n{ int n,i,b[100];\nfloat d[100],s=0,a[100],c=0;\nscanf(\"%d\\n\",&n);\nfor(i=0;i=90) d[i]=(float)(4.0*a[i]);\nelse if(b[i]<=89&&b[i]>=85) d[i]=(float)(3.7*a[i]);\nelse if(b[i]<=84&&b[i]>=82) d[i]=(float)(3.3*a[i]);\nelse if(b[i]<=81&&b[i]>=78) d[i]=(float)(3.0*a[i]);\nelse if(b[i]<=77&&b[i]>=75) d[i]=(float)(2.7*a[i]);\nelse if(b[i]<=74&&b[i]>=72) d[i]=(float)(2.3*a[i]);\nelse if(b[i]<=71&&b[i]>=68) d[i]=(float)(2.0*a[i]);\nelse if(b[i]<=67&&b[i]>=64) d[i]=(float)(1.5*a[i]);\nelse if(b[i]<=63&&b[i]>=60) d[i]=(float)(1.0*a[i]);\nelse if(b[i]<60) d[i]=0;\n}\nfor(i=0;i=90){c[i]=4.0;}\n\t\telse if(b[i]>=85){c[i]=3.7;}\n\t\telse if(b[i]>=82){c[i]=3.3;}\n\t\telse if(b[i]>=78){c[i]=3.0;}\n\t\telse if(b[i]>=75){c[i]=2.7;}\n\t\telse if(b[i]>=72){c[i]=2.3;}\n\t\telse if(b[i]>=68){c[i]=2.0;}\n\t\telse if(b[i]>=64){c[i]=1.5;}\n\t\telse if(b[i]>=60){c[i]=1.0;}\n\t\telse {c[i]=0;}\n\t\n\t}\n\tfor(i=0;i=90) b[k]=4;\n else if(b[k]>=85) b[k]=3.7;\n else if(b[k]>=82) b[k]=3.3;\n else if(b[k]>=78) b[k]=3.0;\n else if(b[k]>=75) b[k]=2.7;\n else if(b[k]>=72) b[k]=2.3;\n else if(b[k]>=68) b[k]=2.0;\n else if(b[k]>=64) b[k]=1.5;\n else if(b[k]>=60) b[k]=1.0;\n else b[k]=0;\n}\n for(k=0;k=90)\n {\n jidian[i]=4.0f;\n }\n else if (fenshu[i]<=89&&fenshu[i]>=85)\n { \n jidian[i]=3.7f;\n }\n else if (fenshu[i]<=84&&fenshu[i]>=82)\n { \n jidian[i]=3.3f;\n }\n else if (fenshu[i]<=81&&fenshu[i]>=78)\n { \n jidian[i]=3.0f;\n }\n else if (fenshu[i]<=77&&fenshu[i]>=75)\n { \n jidian[i]=2.7f;\n }\n else if (fenshu[i]<=74&&fenshu[i]>=72)\n { \n jidian[i]=2.3f;\n }\n else if (fenshu[i]<=71&&fenshu[i]>=68)\n { \n jidian[i]=2.0f;\n }\n else if (fenshu[i]<=67&&fenshu[i]>=64)\n { \n jidian[i]=1.5f;\n }\n else if (fenshu[i]<=63&&fenshu[i]>=60)\n { \n jidian[i]=1.0f;\n } \n else jidian[i]=0;\n \n jidianhe+=jidian[i]*((float )xuefen[i]);\n }\n \n GPA=jidianhe/(float )xuefenhe;\n printf(\"%.2f\",GPA);\n return 0;\n}"} +{"label": "83", "index": "41047", "code": "int main ()\n{\n\tint xf[10],cj[10];\n\tfloat jd[10],jdhe=0,zong=0,gpa=0;\n\tint n,i;\n\tscanf (\"%d\",&n);\n\tfor (i=0;i=90 && cj[i]<=100){\n\t\tjd[i]=4.0;\n\t}\n\tif (cj[i]>=85 && cj[i]<=89){\n\t\tjd[i]=3.7;\n\t}\n\tif (cj[i]>=82 && cj[i]<=84){\n\t\tjd[i]=3.3;\n\t}\n\tif (cj[i]>=78 && cj[i]<=81){\n\t\tjd[i]=3.0;\n\t}\n\tif (cj[i]>=75 && cj[i]<=77){\n\t\tjd[i]=2.7;\n\t}\n\tif (cj[i]>=72 && cj[i]<=74){\n\t\tjd[i]=2.3;\n\t}\n\tif (cj[i]>=68 && cj[i]<=71){\n\t\tjd[i]=2.0;\n\t}\n\tif (cj[i]>=64 && cj[i]<=67){\n\t\tjd[i]=1.5;\n\t}\n\tif (cj[i]>=60 && cj[i]<=63){\n\t\tjd[i]=1.0;\n\t}\n\tif (cj[i]<60){\n\t\tjd[i]=0;\n\t}\n\t}\n\t\n\tfor (i=0;i=90)&&(score[i]<=100))\n\t\t{\n\t\t\tscore[i]=4.0;\n\t\t}\n\t\telse if((score[i]>=85)&&(score[i]<=89))\n\t\t{\n\t\t\tscore[i]=3.7;\n\t\t}\n\t\telse if((score[i]>=82)&&(score[i]<=84))\n\t\t{\n\t\t\tscore[i]=3.3;\n\t\t}\n\t\telse if((score[i]>=78)&&(score[i]<=81))\n\t\t{\n\t\t\tscore[i]=3.0;\n\t\t}\n\t\telse if((score[i]>=75)&&(score[i]<=77))\n\t\t{\n\t\t\tscore[i]=2.7;\n\t\t}\n\t\telse if((score[i]>=72)&&(score[i]<=74))\n\t\t{\n\t\t\tscore[i]=2.3;\n\t\t}\n\t\telse if((score[i]>=68)&&(score[i]<=71))\n\t\t{\n\t\t\tscore[i]=2.0;\n\t\t}\n\t\telse if((score[i]>=64)&&(score[i]<=67))\n\t\t{\n\t\t\tscore[i]=1.5;\n\t\t}\n\t\telse if((score[i]>=60)&&(score[i]<=63))\n\t\t{\n\t\t\tscore[i]=1.0;\n\t\t}\n\t\telse if((score[i]>=0)&&(score[i]<60))\n\t\t{\n\t\t\tscore[i]=0.0;\n\t\t}\n\t}\n\n\tfor(i=0;i=90){\n\t\t\tgpa[i] = 4.0;\n\t\t}else if(chj[i]<=89 && chj[i]>=85){\n\t\t\tgpa[i] = 3.7;\n\t\t}else if(chj[i]<=84 && chj[i]>=82){\n\t\t\tgpa[i] = 3.3;\n\t\t}else if(chj[i]<=81 && chj[i]>=78){\n\t\t\tgpa[i] = 3.0;\n\t\t}else if(chj[i]<=77 && chj[i]>=75){\n\t\t\tgpa[i] = 2.7;\n\t\t}else if(chj[i]<=74 && chj[i]>=72){\n\t\t\tgpa[i] = 2.3;\n\t\t}else if(chj[i]<=71 && chj[i]>=68){\n\t\t\tgpa[i] = 2.0;\n\t\t}else if(chj[i]<=67 && chj[i]>=64){\n\t\t\tgpa[i] = 1.5;\n\t\t}else if(chj[i]<=63 && chj[i]>=60){\n\t\t\tgpa[i] = 1.0;\n\t\t}else{\n\t\t\tgpa[i] = 0;\n\t\t}\n\t}\n\n\tfor(i=0;i<=n-1;i++){\n\t\tsum = sum + gpa[i] * xf[i];\n\t\txh = xh + xf[i] ;\n\t}\n\t GPA = sum / xh;\n\t printf(\"%.2f\", GPA);\n\t return 0;\n}"} +{"label": "83", "index": "41050", "code": "\nint a[10000],b[10000];\ndouble g[10000];\ndouble GPA(int c);\nvoid average(int n);\nint main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tfor(int i1=0;i1=90&&c<=100){return 4.0;}\n\telse if(c>=85&&c<=89){return 3.7;}\n\telse if(c>=82&&c<=84){return 3.3;}\n\telse if(c>=78&&c<=81){return 3.0;}\n\telse if(c>=75&&c<=77){return 2.7;}\n\telse if(c>=72&&c<=74){return 2.3;}\n\telse if(c>=68&&c<=71){return 2.0;}\n\telse if(c>=64&&c<=67){return 1.5;}\n\telse if(c>=60&&c<=63){return 1.0;}\n\telse if(c<60){return 0.0;}\n}\n\nvoid average(int n){\n\tdouble sum1=0,aver;\n\tint sum2=0;\n\tfor(int i4=0;i4=90&&b[i]<=100) b[i]=4.0;\n\t\telse if(b[i]>=85&&b[i]<=89) b[i]=3.7;\n\t\telse if(b[i]>=82&&b[i]<=84) b[i]=3.3;\n\t\telse if(b[i]>=78&&b[i]<=81) b[i]=3.0;\n\t\telse if(b[i]>=75&&b[i]<=77) b[i]=2.7;\n\t\telse if(b[i]>=72&&b[i]<=74) b[i]=2.3;\n\t\telse if(b[i]>=68&&b[i]<=71) b[i]=2.0;\n\t\telse if(b[i]>=64&&b[i]<=67) b[i]=1.5;\n\t\telse if(b[i]>=60&&b[i]<=63) b[i]=1.0;\n\t\telse b[i]=0;\n\t}\n\tfor(i=0;i89&&b[i]<101)\n\t\t\tb[i]=4.0;\n\t\telse if(b[i]>84&&b[i]<90)\n\t\t\tb[i]=3.7;\n else if(b[i]>81&&b[i]<85)\n\t\t\tb[i]=3.3;\n\t\telse if(b[i]>77&&b[i]<82)\n\t\t\tb[i]=3.0;\n\t\telse if(b[i]>74&&b[i]<78)\n\t\t\tb[i]=2.7;\n\t\telse if(b[i]>71&&b[i]<75)\n\t\t\tb[i]=2.3;\n\t\telse if(b[i]>67&&b[i]<72)\n\t\t\tb[i]=2.0;\n\t\telse if(b[i]>63&&b[i]<68)\n\t\t\tb[i]=1.5;\n\t\telse if(b[i]>59&&b[i]<64)\n\t\t\tb[i]=1.0;\n\t\telse \n\t\t\tb[i]=0;\n\t}\n\tfor(i=0;i=b[i]&&b[i]>=90){\n\t\t\tb[i]=4.0;\n\t\t\tcontinue;}\n\t\tif(89>=b[i]&&b[i]>=85){\n\t\t\tb[i]=3.7;\n\t\t\tcontinue;}\n\t\tif(84>=b[i]&&b[i]>=82){\n\t\t\tb[i]=3.3;\n\t\t\tcontinue;}\n\t\tif(81>=b[i]&&b[i]>=78){\n\t\t\tb[i]=3.0;\n\t\t\tcontinue;}\n\t\tif(77>=b[i]&&b[i]>=75){\n\t\t\tb[i]=2.7;\n\t\t\tcontinue;}\n\t\tif(74>=b[i]&&b[i]>=72){\n\t\t\tb[i]=2.3;\n\t\t\tcontinue;}\n\t\tif(71>=b[i]&&b[i]>=68){\n\t\t\tb[i]=2.0;\n\t\t\tcontinue;}\n\t\tif(67>=b[i]&&b[i]>=64){\n\t\t\tb[i]=1.5;\n\t\t\tcontinue;}\n\t\tif(63>=b[i]&&b[i]>=60){\n\t\t\tb[i]=1.0;\n\t\t\tcontinue;}\n\t\tif(60>b[i]){\n\t\t\tb[i]=0.0;\n\t\t\tcontinue;}\t\t\n\t\t\n\t}\n\tfor(i=0;i=90 && b[i]<=100){\n\t\t g[i]=4.0;\n\t\t}else if(b[i]>=85 && b[i]<=89){\n\t\t\tg[i]=3.7;\n\t\t}else if(b[i]>=82 && b[i]<=84){\n\t\t g[i]=3.3;\n\t\t}else if(b[i]>=78 && b[i]<=81){\n\t\t g[i]=3.0;\n\t\t}else if(b[i]>=75 && b[i]<=77){\n\t\t g[i]=2.7;\n\t\t}else if(b[i]>=72 && b[i]<=74){\n\t\t g[i]=2.3;\n\t\t}else if(b[i]>=68 && b[i]<=71){\n\t\t g[i]=2.0;\n\t\t}else if(b[i]>=64 && b[i]<=67){\n\t\t g[i]=1.5;\n\t\t}else if(b[i]>=60 && b[i]<=63){\n\t\t g[i]=1.0;\n\t\t}else{g[i]=0;}\n\t}\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\tc[i]=4.0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(b[i]>=85&&b[i]<=89){\n\t\t\tc[i]=3.7;\n\t\tcontinue;\n\t\t}\n\t\tif(b[i]>=82&&b[i]<=84){\n\t\t\tc[i]=3.3;\n\t\t\tcontinue;\n\t\t}\n\t\tif(b[i]>=78&&b[i]<=81){\n\t\t\tc[i]=3.0;\n\t\t\tcontinue;\n\t\t}\n if(b[i]>=75&&b[i]<=77){\n\t\t\tc[i]=2.7;\n\t\t\tcontinue;\n\t\t}\n if(b[i]>=72&&b[i]<=74){\n\t\t\tc[i]=2.3;\n\t\t\tcontinue;\n\t\t}\n if(b[i]>=68&&b[i]<=71){\n\t\t\tc[i]=2.0;\n\t\t\tcontinue;\n\t\t}\n if(b[i]>=64&&b[i]<=67){\n\t\t\tc[i]=1.5;\n\t\t\tcontinue;\n\t\t}\n if(b[i]>=60&&b[i]<=63){\n\t\t\tc[i]=1.0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(b[i]<60){\n\t\t\tc[i]=0;\n\t\t\tcontinue;\n\t\t}\n\t}\n\tfor(i=0;i=90&&b[i]<=100) b[i]=4.0;\nelse if(b[i]>=85&&b[i]<=89) b[i]=3.7;\nelse if(b[i]>=82&&b[i]<=84) b[i]=3.3;\nelse if(b[i]>=78&&b[i]<=81) b[i]=3.0;\nelse if(b[i]>=75&&b[i]<=77) b[i]=2.7;\nelse if(b[i]>=72&&b[i]<=74) b[i]=2.3;\nelse if(b[i]>=68&&b[i]<=71) b[i]=2.0;\nelse if(b[i]>=64&&b[i]<=67) b[i]=1.5;\nelse if(b[i]>=60&&b[i]<=63) b[i]=1.0;\nelse b[i]=0;\ns=s+a[i]*b[i];\n}\ng=s/m;\nprintf(\"%.2lf\\n\",g);\nreturn 0;\n}\n"} +{"label": "83", "index": "41059", "code": "main()\n{ int a[10][2];\n float b[10];\n int n,i,q;\n float p,GPA;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&a[i-1][0]);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&a[i-1][1]);\n for(i=1;i<=n;i++)\n {\n if(a[i-1][1]<60)\n b[i-1]=0;\n if(a[i-1][1]>=60&&a[i-1][1]<=63)\n b[i-1]=1.0;\n if(a[i-1][1]>=64&&a[i-1][1]<=67)\n b[i-1]=1.5;\n if(a[i-1][1]>=68&&a[i-1][1]<=71)\n b[i-1]=2.0;\n if(a[i-1][1]>=72&&a[i-1][1]<=74)\n b[i-1]=2.3;\n if(a[i-1][1]>=75&&a[i-1][1]<=77)\n b[i-1]=2.7;\n if(a[i-1][1]>=78&&a[i-1][1]<=81)\n b[i-1]=3.0;\n if(a[i-1][1]>=82&&a[i-1][1]<=84)\n b[i-1]=3.3;\n if(a[i-1][1]>=85&&a[i-1][1]<=89)\n b[i-1]=3.7;\n if(a[i-1][1]>=90)\n b[i-1]=4.0;\n }\n p=0;\n q=0;\n for(i=1;i<=n;i++)\n {\n p=p+a[i-1][0]*b[i-1];\n q=q+a[i-1][0];\n }\n GPA=p/q;\n printf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41060", "code": "//??????\nint main()\n{int n,a[10],b[10];\nfloat GPA;\ndouble c[10],SUMa,SUMc;\n int i;\n a[0]=0;\n b[0]=0;\n c[0]=0;\n SUMa=0;\n SUMc=0;\n\n scanf(\"%d\",&n);\n\tfor(i=0;i=90) c[i]=4*a[i];\n\telse if ((b[i]<=89)&&(b[i]>=85)) c[i]=3.7*a[i];\n\telse if ((b[i]<=84)&&(b[i]>=82)) c[i]=3.3*a[i];\n\telse if ((b[i]<=81)&&(b[i]>=78)) c[i]=3.0*a[i];\n\telse if ((b[i]<=77)&&(b[i]>=75)) c[i]=2.7*a[i];\n\telse if ((b[i]<=74)&&(b[i]>=72)) c[i]=2.3*a[i];\n\telse if ((b[i]<=71)&&(b[i]>=68)) c[i]=2.0*a[i];\n\telse if ((b[i]<=67)&&(b[i]>=64)) c[i]=1.5*a[i];\n else if ((b[i]<=63)&&(b[i]>=60)) c[i]=1.0*a[i];\n\telse c[i]=0*a[i];\n\t}\n\n for(i=0;i=90) jd[i]=4.0;\n\tif(fs[i]<=89&&fs[i]>=85) jd[i]=3.7;\n\tif(fs[i]<=84&&fs[i]>=82) jd[i]=3.3;\n\tif(fs[i]<=81&&fs[i]>=78) jd[i]=3.0;\n\tif(fs[i]<=77&&fs[i]>=75) jd[i]=2.7;\n\tif(fs[i]<=74&&fs[i]>=72) jd[i]=2.3;\n\tif(fs[i]<=71&&fs[i]>=68) jd[i]=2.0;\n\tif(fs[i]<=67&&fs[i]>=64) jd[i]=1.5;\n\tif(fs[i]<=63&&fs[i]>=60) jd[i]=1.0;\n\tif(fs[i]<60) jd[i]=0;}\n\txfh=0;\n\tjdh=0;\n for(i=0;i=90) t=4.0;\n if ((b[i]>=85)&&(b[i]<=89)) t=3.7;\n\t if ((b[i]>=82)&&(b[i]<=84)) t=3.3;\n if ((b[i]>=78)&&(b[i]<=81)) t=3.0;\n if ((b[i]>=75)&&(b[i]<=77)) t=2.7;\n if ((b[i]>=72)&&(b[i]<=74)) t=2.3;\n if ((b[i]>=68)&&(b[i]<=71)) t=2.0;\n if ((b[i]>=64)&&(b[i]<=67)) t=1.5;\n if ((b[i]>=60)&&(b[i]<=63)) t=1.0;\n\t if (b[i]<60) t=0;\n s=s+t*a[i];\n m=m+a[i];\n } \n k=s/m;\n printf(\"%.2f\",k);\n}"} +{"label": "83", "index": "41063", "code": "int main()\n{\n int n,i,j,k,sum1=0;\n scanf(\"%d\",&n);\n int a[n],b[n];\n float c[n],d[n],sum2=0,gpa;\n for(i=0;i=90 && b[k]<=100)\n c[k]=4.0;\n else if(b[k]>=85&& b[k]<=89)\n c[k]=3.7;\n else if(b[k]>=82 && b[k]<=84)\n c[k]=3.3;\n else if(b[k]>=78 && b[k]<=81)\n c[k]=3.0;\n else if(b[k]>=75 && b[k]<=77)\n c[k]=2.7;\n else if(b[k]>=72 && b[k]<=74)\n c[k]=2.3; \n else if(b[k]>=68 && b[k]<=71)\n c[k]=2.0; \n else if(b[k]>=64 && b[k]<=67)\n c[k]=1.5; \n else if(b[k]>=60 && b[k]<=63)\n c[k]=1.0; \n else\n c[k]=0; \n d[k]=a[k]*c[k];\n sum2=sum2+d[k];\n }\n gpa=sum2/sum1;\n printf(\"%.2f\",gpa);\n return 0;\n}\n"} +{"label": "83", "index": "41064", "code": "void main()\n{\n\tint n,a[10],i,c[10],sum2=0;\n\tdouble b[10],GPA,sum1=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&c[i]);\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(c[i]>=90)b[i]=4.0;\n\t\telse\n\t\t{if(c[i]>=85)b[i]=3.7;\n\t\telse\n\t\t{if(c[i]>=82)b[i]=3.3;\n\t\telse\n\t\t{if(c[i]>=78)b[i]=3.0;\n\t\telse\n\t\t{if(c[i]>=75)b[i]=2.7;\n\t\telse\n\t\t{if(c[i]>=72)b[i]=2.3;\n\t\telse\n\t\t{if(c[i]>=68)b[i]=2.0;\n\t\telse\n\t\t{if(c[i]>=64)b[i]=1.5;\n\t\telse\n\t\t{if(c[i]>=60)b[i]=1.0;\n\t\telse b[i]=0;\n\t\t}\n\t\t}\n\t\t}\n\t\t}\n\t\t}\n\t\t}\n\t\t}\n\t\t}\n\t}\nfor(i=0;i<=n-1;i++)\n{\nsum1=sum1+a[i]*b[i];\nsum2=sum2+a[i];\n}\nGPA=sum1/sum2;\nprintf(\"%.2f\\n\",GPA);\n}"} +{"label": "83", "index": "41065", "code": "int main(){\n\tint xuefen[10],fenshu[10];\n\tint n;\n\tint a=0;\n\tfloat jidian[10],sum=0,m,GPA;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=90&&fenshu[i]<=100)\n\t\t{jidian[i]=4.0;}\n\t\tif(fenshu[i]>=85&&fenshu[i]<=89)\n\t\t{jidian[i]=3.7;}\n\t\tif(fenshu[i]>=82&&fenshu[i]<=84)\n\t\t{jidian[i]=3.3;}\n\t\tif(fenshu[i]>=78&&fenshu[i]<=81)\n\t\t{jidian[i]=3.0;}\n\t\tif(fenshu[i]>=75&&fenshu[i]<=77)\n\t\t{jidian[i]=2.7;}\n\t\tif(fenshu[i]>=72&&fenshu[i]<=74)\n\t\t{jidian[i]=2.3;}\n\t\tif(fenshu[i]>=68&&fenshu[i]<=71)\n\t\t{jidian[i]=2.0;}\n\t\tif(fenshu[i]>=64&&fenshu[i]<=67)\n\t\t{jidian[i]=1.5;}\n\t\tif(fenshu[i]>=60&&fenshu[i]<=63)\n\t\t{jidian[i]=1.0;}\n\t\tif(fenshu[i]<=60)\n\t\t{jidian[i]=0;}\n\t\tm=xuefen[i]*jidian[i];\n\t\tsum+=m;\n\t}\n\tGPA=sum/a;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41066", "code": "int main(){\n int n,sz[MAX],szz[MAX],i,j,FEN;\n double szzz[MAX],f,a,SUM;\n FEN=0;\n scanf(\"%d\",&n);\n \n for(i=0;i=90){\n szzz[j]=4.0;\n }\n else if (szz[j]>=85&&szz[j]<=89){\n szzz[j]=3.7;\n }\n else if(szz[j]>=82&&szz[j]<=84){\n szzz[j]=3.3;\n }\n else if(szzz[j]<=81&&szz[j]>=78){\n szzz[j]=3.0;\n }else if(szz[j]<=77&&szz[j]>=75){\n szzz[j]=2.7;\n }else if(szz[j]<=74&&szz[j]>=72){\n szzz[j]=2.3;\n }else if(szz[j]<=71&&szz[j]>=68){\n szzz[j]=2.0;\n }else if(szz[j]>=67&&szz[j]>=64){\n szzz[j]=1.5;\n }\n else if(szz[j]<=63&&szz[j]>=60){\n szzz[j]=1.0;\n }else if(szz[j]<=59){\n szzz[j]=0.0;\n }\n }\n SUM=0;\n a=0;\n for(i=0;i=90)&&(b[i]<=100)){\n\t\t\tc[i]=4.0;\n\t\t}\n\n\n\tif((b[i]>=85)&&(b[i]<=89)){\n\t\t\tc[i]=3.7;\n\t\t}\n\tif((b[i]>=82)&&(b[i]<=84)){\n\t\t\tc[i]=3.3;\n\t\t}\n\tif((b[i]>=78)&&(b[i]<=81)){\n\t\t\tc[i]=3.0;\n\t\t}\n\n\tif((b[i]>=75)&&(b[i]<=77)){\n\t\t\tc[i]=2.7;\n\t\t}\n\tif((b[i]>=72)&&(b[i]<=74)){\n\t\t\tc[i]=2.3;\n\t\t}\n\tif((b[i]>=68)&&(b[i]<=71)){\n\t\t\tc[i]=2.0;\n\t\t}\n\tif((b[i]>=64)&&(b[i]<=67)){\n\t\t\tc[i]=1.5;\n\t\t}\n\tif((b[i]>=60)&&(b[i]<=63)){\n\t\t\tc[i]=1.0;\n\t\t}\n\tif(b[i]<60){\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i89)b[j]=4.0;\nelse if(f>84)b[j]=3.7;\nelse if(f>81)b[j]=3.3;\nelse if(f>77)b[j]=3.0;\nelse if(f>74)b[j]=2.7;\nelse if(f>71)b[j]=2.3;\nelse if(f>67)b[j]=2.0;\nelse if(f>63)b[j]=1.5;\nelse if (f>59)b[j]=1.0;\nelse b[j]=0;};\nfor(i=0;i=90&&m<=100)\n GPA=4.0*a;\n else if ( m>=85&&m<=89)\n GPA=3.7*a;\n else if ( m>=82&&m<=84)\n GPA=3.3*a;\n else if ( m>=78&&m<=81)\n GPA=3.0*a;\n else if ( m>=75&&m<=77)\n GPA=2.7*a;\n else if ( m>=72&&m<=74)\n GPA=2.3*a;\n else if ( m>=68&&m<=71)\n GPA=2.0*a;\n else if ( m>=64&&m<=67)\n GPA=1.5*a;\n else if ( m>=60&&m<=63)\n GPA=1.0*a;\n else if ( m<60)\n GPA=0;\n}\nint main ()\n{\n int n;\n scanf(\"%d\",&n);\n printf(\"\\n\");\n int i,a[10],b[10];\n for (i=0;i89) c[j]=4.0;\nelse if(b[j]>84) c[j]=3.7;\nelse if(b[j]>81) c[j]=3.3;\nelse if(b[j]>77) c[j]=3.0;\nelse if(b[j]>74) c[j]=2.7;\nelse if(b[j]>71) c[j]=2.3;\nelse if(b[j]>67) c[j]=2.0;\nelse if(b[j]>63) c[j]=1.5;\nelse if(b[j]>59) c[j]=1.0;\nelse c[j]=0;\n}\nGPA=0;\nfor(i=0;i<=n-1;i++)\nGPA=GPA+c[i]*a[i];\n\n\nGPA=GPA/sum;\n\n\nprintf(\"%.2lf\",GPA);\nreturn 0;\n}\n"} +{"label": "83", "index": "41071", "code": "void main()\n{\n\tint a[10];\n\tfloat b[10];\n\tint n,i,m;\n\tfloat GPA;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tif (m>=90&&m<=100)\n\t\t\tb[i]=4.0*a[i];\n\t\telse if (m>=85&&m<=89)\n\t\t\tb[i]=3.7*a[i];\n\t\telse if (m>=82&&m<=84)\n\t\t\tb[i]=3.3*a[i];\n\t\telse if (m>=78&&m<=81)\n\t\t\tb[i]=3.0*a[i];\n\t\telse if (m>=75&&m<=77)\n\t\t\tb[i]=2.7*a[i];\n\t\telse if (m>=72&&m<=74)\n\t\t\tb[i]=2.3*a[i];\n\t\telse if (m>=68&&m<=71)\n\t\t\tb[i]=2.0*a[i];\n\t\telse if (m>=64&&m<=70)\n\t\t\tb[i]=1.5*a[i];\n\t\telse if (m>=60&&m<=63)\n\t\t\tb[i]=1.0*a[i];\n\t\telse b[i]=0;\n\t}\n\tm=0;GPA=0;\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tm=m+a[i];\n\t\tGPA=GPA+b[i];\n\t}\n\tGPA=GPA/m;\n\tprintf(\"%.2f\\n\",GPA);\n}\n\n\t\t\n"} +{"label": "83", "index": "41072", "code": "int main()\n{\n int y[10],n,i,t,s2=0;\n float x[10],gpa,s1=0.0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&t<=100)\n x[i]=4.0 ;\n else if(t>=85&&t<=89)\n x[i]=3.7 ; \n else if(t>=82&&t<=84)\n x[i]=3.3 ;\n else if(t>=78&&t<=81)\n x[i]=3.0 ; \n else if(t>=75&&t<=77)\n x[i]=2.7 ;\n else if(t>=72&&t<=74)\n x[i]=2.3 ;\n else if(t>=68&&t<=71)\n x[i]=2.0 ;\n else if(t>=64&&t<=67)\n x[i]=1.5 ;\n else if(t>=60&&t<=63)\n x[i]=1.0 ;\n else\n x[i]=0.0; \n }\n for(i=0;i=90&&defen[i]<=100){\n jidian[i]=4.0*xuefen[i];\n }\n if(defen[i]>=85&&defen[i]<=89){\n jidian[i]=3.7*xuefen[i];\n }\n if(defen[i]>=82&&defen[i]<=84){\n jidian[i]=3.3*xuefen[i];\n }\n if(defen[i]>=78&&defen[i]<=81){\n jidian[i]=3.0*xuefen[i];\n }\n if(defen[i]>=75&&defen[i]<=77){\n jidian[i]=2.7*xuefen[i];\n }\n if(defen[i]>=72&&defen[i]<=74){\n jidian[i]=2.3*xuefen[i];\n }\n if(defen[i]>=68&&defen[i]<=71){\n jidian[i]=2.0*xuefen[i];\n }\n if(defen[i]>=64&&defen[i]<=67){\n jidian[i]=1.5*xuefen[i];\n }\n if(defen[i]>=60&&defen[i]<=63){\n jidian[i]=1.0*xuefen[i];\n }\n if(defen[i]<=60){\n jidian[i]=1.0*0*xuefen[i];\n }\n }\n for(int i=0;i=90&&a[i]<=100){\n\t\t\tc[i]=4.0;\n\t\t}else if(a[i]>=85&&a[i]<=89){\n\t\t\tc[i]=3.7;\n\t\t}else if(a[i]>=82&&a[i]<=84){\n\t\t\tc[i]=3.3;\n\t\t}else if(a[i]>=78&&a[i]<=81){\n\t\t\tc[i]=3.0;\n\t\t}else if(a[i]>=75&&a[i]<=77){\n\t\t\tc[i]=2.7;\n\t\t}else if(a[i]>=72&&a[i]<=74){\n\t\t\tc[i]=2.3;\n\t\t}else if(a[i]>=68&&a[i]<=71){\n\t\t\tc[i]=2.0;\n\t\t}else if(a[i]>=64&&a[i]<=67){\n\t\t\tc[i]=1.5;\n\t\t}else if(a[i]>=60&&a[i]<=63){\n\t\t\tc[i]=1.0;\n\t\t}else if(a[i]<60){\n\t\t\tc[i]=0.0;\n\t\t}\n\t\tc[i]=c[i]*b[i];\n\t\ts2=s2+c[i];\n\t}\n\n av=s2/s1;\n\tprintf(\"%.2lf\\n\",av);\n return 0;\n}\n"} +{"label": "83", "index": "41075", "code": "int main()\n{\n\tint a[50]={0},b[50]={0};\n\tint i,k=0,m,n;\n\tfloat j=0,l;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100)\n\t\tj=4*a[i]+j;\n\t\tif(b[i]>=85&&b[i]<=89)\n\t\tj=3.7*a[i]+j;\n\t\tif(b[i]>=82&&b[i]<=84)\n\t\tj=3.3*a[i]+j;\n\t\tif(b[i]>=78&&b[i]<=81)\n\t\tj=3*a[i]+j;\n\t\tif(b[i]>=75&&b[i]<=77)\n\t\tj=2.7*a[i]+j;\n\t\tif(b[i]>=72&&b[i]<=74)\n\t\tj=2.3*a[i]+j;\n\t\tif(b[i]>=68&&b[i]<=71)\n\t\tj=2*a[i]+j;\n\t\tif(b[i]>=64&&b[i]<=67)\n\t\tj=1.5*a[i]+j;\n\t\tif(b[i]>=60&&b[i]<=63)\n\t\tj=1*a[i]+j;\n\t\tif(b[i]<60)\n\t\tj=0*a[i]+j;\n\t}\n\tfor(i=0;i=90&&sf[i]<=100){\n\t\t\tsf[i]=4.0;\n\t\t}else if(sf[i]>=85&&sf[i]<=89){\n\t\t\tsf[i]=3.7;\n\t\t}else if(sf[i]>=82&&sf[i]<=84){\n\t\t\tsf[i]=3.3;\n\t\t}else if(sf[i]>=78&&sf[i]<=81){\n\t\t\tsf[i]=3.0;\n\t\t}else if(sf[i]>=75&&sf[i]<=77){\n\t\t\tsf[i]=2.7;\n\t\t}else if(sf[i]>=72&&sf[i]<=74){\n\t\t\tsf[i]=2.3;\n\t\t}else if(sf[i]>=68&&sf[i]<=71){\n\t\t\tsf[i]=2.0;\n\t\t}else if(sf[i]>=64&&sf[i]<=67){\n\t\t\tsf[i]=1.5;\n\t\t}else if(sf[i]>=60&&sf[i]<=63){\n\t\t\tsf[i]=1.0;\n\t\t}else if(sf[i]<60){\n\t\t\tsf[i]=0;\n\t\t}\n\t\tsf[i]=f[i]*sf[i];\n\t\ty+=sf[i];\n\t}\n\tGPA=y/x;\n\tprintf(\"%.2lf\",GPA);\n\n\treturn 0;\n}\n\n\n"} +{"label": "83", "index": "41077", "code": "void main()\n{\n\tint n,m,sum,*q;\n\tfloat *w,sum2=0,gpa;\n\tscanf(\"%d\",&n);\n\tq=(int*)malloc(sizeof(int)*n);\n\tw=(float*)malloc(sizeof(float)*n);\n for(m=0,sum=0;m=90)\tsum2=sum2+4.0**(q+m); \n\t\telse if(*(w+m)<=89&&*(w+m)>=85)\tsum2=sum2+3.7**(q+m); \n\t\telse if(*(w+m)<=84&&*(w+m)>=82)\tsum2=sum2+3.3**(q+m);\n\t\telse if(*(w+m)<=81&&*(w+m)>=78)\tsum2=sum2+3.0**(q+m); \n\t\telse if(*(w+m)<=77&&*(w+m)>=75)\tsum2=sum2+2.7**(q+m); \n\t\telse if(*(w+m)<=75&&*(w+m)>=72)\tsum2=sum2+2.3**(q+m); \n\t\telse if(*(w+m)<=71&&*(w+m)>=68)\tsum2=sum2+2.0**(q+m); \n\t\telse if(*(w+m)<=67&&*(w+m)>=64)\tsum2=sum2+1.5**(q+m); \n\t\telse if(*(w+m)<=63&&*(w+m)>=60)\tsum2=sum2+1.0**(q+m); \n\t\telse if(*(w+m)<=59)\tsum2=sum2+0.0**(q+m); \n\t} \n\tgpa=sum2/sum;\n\tprintf(\"%.2f\",gpa);\n\treturn;\n}"} +{"label": "83", "index": "41078", "code": "int main(){\n\tint n;\n\tint i;\n\tdouble e;\n\tdouble k;\n\tdouble f;\n\tdouble a;\n\tdouble GPA;\n\tint sz[10];\n\tint xb[10];\n\tscanf(\"%d\",&n);\n\tk=0;\n\te=0;\n\ta=0;\n\tf=0;\n\tfor(i=0;i=90){\n\t\t\te=4.0;\n\t\t}else if(xb[i]>=85&&xb[i]<90){\n\t\t\te=3.7;\n\t\t}else if(xb[i]>=82&&xb[i]<85){\n\t\t\te=3.3;\n\t\t}else if(xb[i]>=78&&xb[i]<82){\n\t\t\te=3.0;\n\t\t}else if(xb[i]>=75&&xb[i]<78){\n\t\t\te=2.7;\n\t\t}else if(xb[i]>=72&&xb[i]<75){\n\t\t\te=2.3;\n\t\t}else if(xb[i]>=68&&xb[i]<72){\n\t\t\te=2.0;\n\t\t}else if(xb[i]>=64&&xb[i]<68){\n\t\t\te=1.5;\n\t\t}else if(xb[i]>=60&&xb[i]<64){\n\t\t\te=1.0;\n\t\t}else{\n\t\t\te=0;\n\t\t}\n\t f=e*sz[i];\n\t\ta+=f;\n\t}\n\tGPA=a/k;\n\tprintf(\"%.2f\",GPA);\n return 0;\n}"} +{"label": "83", "index": "41079", "code": "int main()\n{\n\tint a[10],b[10],n,i,m=0;\n\tfloat GPA,c[10],sum=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100)\n\t\t\tc[i]=4.0;\n\t\tif(b[i]>=85&&b[i]<=89)\n\t\t\tc[i]=3.7;\n\t\tif(b[i]>=82&&b[i]<=84)\n\t\t\tc[i]=3.3;\n\t\tif(b[i]>=78&&b[i]<=81)\n\t\t\tc[i]=3.0;\n\t\tif(b[i]>=75&&b[i]<=77)\n\t\t\tc[i]=2.7;\n\t\tif(b[i]>=72&&b[i]<=74)\n\t\t\tc[i]=2.3;\n\t\tif(b[i]>=68&&b[i]<=71)\n\t\t\tc[i]=2.0;\n\t\tif(b[i]>=64&&b[i]<=67)\n\t\t\tc[i]=1.5;\n\t\tif(b[i]>=60&&b[i]<=63)\n\t\t\tc[i]=1.0;\n\t\tif(b[i]<60)\n\t\t\tc[i]=0.0;\n\t}\n\tfor(i=0;i89){c=4.0;}\n\telse if(b>84){c=3.7;}\nelse if(b>81){c=3.3;}\nelse if(b>77){c=3.0;}\nelse if(b>74){c=2.7;}\nelse if(b>71){c=2.3;}\nelse if(b>67){c=2.0;}\nelse if(b>63){c=1.5;}\nelse if(b>59){c=1.0;}\nelse {c=0;}\nsum+=c*score[j];\nj++;\n}\nd=sum/m;\nprintf(\"%.2lf\",d);\nreturn 0;\n}"} +{"label": "83", "index": "41081", "code": "int main()\n{\n int n,score[10],i,grade[10],zongfen=0;\n double zong=0,jidian[10];\n scanf(\"%d\\n\",&n);\n for(i=0;i=90&&b[i]<=100) c[i]=4.0;\n else if(b[i]>=85&&b[i]<=89) c[i]=3.7;\n else if(b[i]>=82&&b[i]<=84) c[i]=3.3;\n else if(b[i]>=78&&b[i]<=81) c[i]=3.0;\n else if(b[i]>=75&&b[i]<=77) c[i]=2.7;\n else if(b[i]>=72&&b[i]<=74) c[i]=2.3;\n else if(b[i]>=68&&b[i]<=71) c[i]=2.0;\n else if(b[i]>=64&&b[i]<=67) c[i]=1.5;\n else if(b[i]>=60&&b[i]<=63) c[i]=1.0;\n else c[i]=0;\n }\n for(i=1;i<=n;i++)\n {\n sum+=a[i]*c[i];\n }\n printf(\"%.2f\\n\",sum/asum);\n \n \n }\n \n return 0;\n}\n"} +{"label": "83", "index": "41084", "code": "int main()\n{\n\tint n,i,j;\n\tint s[2][10];\n scanf(\"%d\",&n);\n\tfor(i=0;i<2;i++){\n\t\tfor(j=0;j=90)\n\t\t\tA[i]=4.0;\n\t\telse if(s[1][i]>=85)\n\t\t\tA[i]=3.7;\n\t\telse if(s[1][i]>=82)\n\t\t\tA[i]=3.3;\n\t\telse if(s[1][i]>=78)\n\t\t\tA[i]=3.0;\n\t\telse if(s[1][i]>=75)\n\t\t\tA[i]=2.7;\n\t\telse if(s[1][i]>=72)\n\t\t\tA[i]=2.3;\n else if(s[1][i]>=68)\n\t\t\tA[i]=2.0;\n else if(s[1][i]>=64)\n\t\t\tA[i]=1.5;\n else if(s[1][i]>=60)\n\t\t\tA[i]=1.0;\n else if(s[1][i]<60)\n\t\t\tA[i]=0;\n\t}\n\tfloat gpa,GPA;\n\tfor(i=0;i>num_classes;\n int pts[10];\n for(int i = 0; i < num_classes; i++){\n cin>>pts[i];\n }\n int total_score = 0;\n int total_credits = 0;\n int tmp;\n for(int i = 0; i < num_classes; i++){\n cin>>tmp;\n total_credits += pts[i];\n if(tmp >= 90)\n total_score += 40 * pts[i];\n else if(tmp >= 85)\n total_score += 37 * pts[i];\n else if(tmp >= 82)\n total_score += 33 * pts[i];\n else if(tmp >= 78)\n total_score += 30 * pts[i];\n else if(tmp >= 75)\n total_score += 27 * pts[i];\n else if(tmp >= 72)\n total_score += 23 * pts[i];\n else if(tmp >= 68)\n total_score += 20 * pts[i];\n else if(tmp >= 64)\n total_score += 15 * pts[i];\n else if(tmp >= 60)\n total_score += 10 * pts[i];\n }\n printf(\"%.2f\",(float)total_score / (float)(total_credits * 10));\n}"} +{"label": "83", "index": "41086", "code": "int main()\n{\n\tint n,i;\n\tdouble gpa,jd[10],xuefenjd[10],xuefen[10],defen[10],sum1=0.0,sum2=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&defen[i]<=100)\n\t\t\tjd[i]=4.0;\n\t\tif(defen[i]>=85&&defen[i]<=89)\n\t\t\tjd[i]=3.7;\n\t\tif(defen[i]>=82&&defen[i]<=84)\n\t\t\tjd[i]=3.3;\n\t\tif(defen[i]>=78&&defen[i]<=81)\n\t\t\tjd[i]=3.0;\n\t\tif(defen[i]>=75&&defen[i]<=77)\n\t\t\tjd[i]=2.7;\n\t\tif(defen[i]>=72&&defen[i]<=74)\n\t\t\tjd[i]=2.3;\n\t\tif(defen[i]>=68&&defen[i]<=71)\n\t\t\tjd[i]=2.0;\n\t\tif(defen[i]>=64&&defen[i]<=67)\n\t\t\tjd[i]=1.5;\n\t\tif(defen[i]>=60&&defen[i]<=63)\n\t\t\tjd[i]=1.0;\n\t\tif(defen[i]<60)\n\t\t\tjd[i]=0.0;\n\t\txuefenjd[i]=1.0*xuefen[i]*jd[i];\n\t\tsum1+=xuefen[i];\n\t\tsum2+=xuefenjd[i];\n\t}\n\tgpa=1.0*sum2/sum1;\n\tprintf(\"%.2lf\\n\",gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41087", "code": "int main()\n{\n int i,num;\n double sz[10],sz1[10],sz2[10],sum, result,GPA;\n scanf(\"%d\", &num);\n for(i=0;i=90)\n {\n sz2[i]=4.0;\n }\n else if(sz1[i]>=85)\n {\n sz2[i]=3.7;\n }\n else if(sz1[i]>=82)\n {\n sz2[i]=3.3;\n }\n else if(sz1[i]>=78)\n {\n sz2[i]=3.0;\n }\n else if(sz1[i]>=75)\n {\n sz2[i]=2.7;\n }\n else if(sz1[i]>=72)\n {\n sz2[i]=2.3;\n }\n else if(sz1[i]>=68)\n {\n sz2[i]=2.0;\n }\n else if(sz1[i]>=64)\n {\n sz2[i]=1.5;\n }\n else if(sz1[i]>=60)\n {\n sz2[i]=1.0;\n }\n else\n {\n sz2[i]=0;\n }\n }\n result=0;\n sum=0;\n //for(i=0;i=90)\n\t\treturn 4.0;\n\telse if(a<=89&&a>=85)\n\t\treturn 3.7;\n\telse if(a<=84&&a>=82)\n\t\treturn 3.3;\n\telse if(a<=81&&a>=78)\n\t\treturn 3.0;\n\telse if(a<=77&&a>=75)\n\t\treturn 2.7;\n\telse if(a<=74&&a>=72)\n\t\treturn 2.3;\n\telse if(a<=71&&a>=68)\n\t\treturn 2.0;\n\telse if(a<=67&&a>=64)\n\t\treturn 1.5;\n\telse if(a<=63&&a>=60)\n\t\treturn 1.0;\n\telse\n\t\treturn 0.0;\n}\nint main()\n{\n\tint n,i,*pp[2],sumPOINT=0;\n\tdouble sumGPA=0.0;\n\tscanf(\"%d\",&n);\n\tpp[0]=(int*)malloc(sizeof(int)*n);\n\tpp[1]=(int*)malloc(sizeof(int)*n);\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\tt=4.0;\n\t\t}else if(b[i]>=85){\n\t\t\tt=3.7;\n\t\t}else if(b[i]>=82){\n\t\t\tt=3.3;\n\t\t}else if(b[i]>=78){\n\t\t\tt=3.0;\n\t\t}else if(b[i]>=75){\n\t\t\tt=2.7;\n\t\t}else if(b[i]>=72){\n\t\t\tt=2.3;\n\t\t}else if(b[i]>=68){\n\t\t\tt=2.0;\n\t\t}else if(b[i]>=64){\n\t\t\tt=1.5;\n\t\t}else if(b[i]>=60){\n\t\t\tt=1.0;\n\t\t}else{\n\t\t\tt=0.0;\n\t\t}\n\t\tc[i]=t*a[i];\n\t\ts+=c[i];\n\t\ty+=a[i];\n\t}\n\tx=s/y;\n\tprintf(\"%.2lf\",x);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41091", "code": "int main(int argc, char* argv[])\n{ int n,i;\ndouble c[10],sum1=0,sum2=0,b[10],a[10],GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100)\n\t\tc[i]=4.0*a[i];\n\telse if(b[i]>=85&&b[i]<=89)\n\t\tc[i]=3.7*a[i];\n\telse if(b[i]>=82&&b[i]<=84)\n\t\tc[i]=3.3*a[i];\n\telse if(b[i]>=78&&b[i]<=81)\n\t\tc[i]=3.0*a[i];\n\telse if(b[i]>=75&&b[i]<=77)\n\t\tc[i]=2.7*a[i];\n\telse if(b[i]>=72&&b[i]<=74)\n\t\tc[i]=2.3*a[i];\n\telse if(b[i]>=68&&b[i]<=71)\n\t\tc[i]=2.0*a[i];\n\telse if(b[i]>=64&&b[i]<=67)\n\t\tc[i]=1.5*a[i];\n\telse if(b[i]>=60&&b[i]<=63)\n\t\tc[i]=1.0*a[i];\n\telse if(b[i]<60)\n\t\tc[i]=0;\n\tsum1+=c[i];}\n\tGPA=sum1/sum2;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41092", "code": "\nint N,course[15][2],credit;\nfloat GPA;\nint main(){\n int i;\n scanf(\"%d\",&N);\n credit = 0;\n for (i = 0; i < N; i++){\n scanf(\"%d\",&course[i][0]);\n credit += course[i][0];\n }\n for (i = 0; i < N; i++) scanf(\"%d\",&course[i][1]);\n \n for (i = 0; i < N; i++){\n float point;\n if (course[i][1] >= 90) point = 4;\n else if (course[i][1] >= 85) point = 3.7;\n else if (course[i][1] >= 82) point = 3.3;\n else if (course[i][1] >= 78) point = 3.0;\n else if (course[i][1] >= 75) point = 2.7;\n else if (course[i][1] >= 72) point = 2.3;\n else if (course[i][1] >= 68) point = 2.0;\n else if (course[i][1] >= 64) point = 1.5;\n else if (course[i][1] >= 60) point = 1.0;\n else point = 0;\n GPA += course[i][0]*point;\n }\n GPA /= credit;\n printf(\"%.2f\\n\",GPA);\n\n return 0;\n}\n"} +{"label": "83", "index": "41093", "code": "int main(){\n\tint n,i,sum1=0;\n\tfloat sum=0;\n\tscanf(\"%d\",&n);\n\tint a[n],b[n];\n\tfor(i=0;i=60&&b[i]<=63)\n\t\t\tsum+=a[i]*1.0;\n\t\tif(b[i]>=64&&b[i]<=67)\n\t\t\tsum+=a[i]*1.5;\n\t\tif(b[i]>=68&&b[i]<=71)\n\t\t\tsum+=a[i]*2.0;\n\t\tif(b[i]>=72&&b[i]<=74)\n\t\t\tsum+=a[i]*2.3;\n\t\tif(b[i]>=75&&b[i]<=77)\n\t\t\tsum+=a[i]*2.7;\n\t\tif(b[i]>=78&&b[i]<=81)\n\t\t\tsum+=a[i]*3.0;\n\t\tif(b[i]>=82&&b[i]<=84)\n\t\t\tsum+=a[i]*3.3;\n\t\tif(b[i]>=85&&b[i]<=89)\n\t\t\tsum+=a[i]*3.7;\n\t\tif(b[i]>=90&&b[i]<=100)\n\t\t\tsum+=a[i]*4.0;\n\t}\n\tprintf(\"%.2f\",sum/sum1);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41094", "code": "float mgpa(int y)\n{\n\tint gpa;\n\tif(y>=90 && y<=100) return 4.0;\n\telse if(y>=85 && y<=89) return 3.7;\n\telse if(y>=82 && y<=84) return 3.3;\n\telse if(y>=78 && y<=81) return 3.0;\n\telse if(y>=75 && y<=77) return 2.7;\n\telse if(y>=72 && y<=74) return 2.3;\n\telse if(y>=68 && y<=71) return 2.0;\n\telse if(y>=64 && y<=67) return 1.5;\n\telse if(y>=60 && y<=63) return 1.0;\n\telse return 0.0;\n}\nint main()\n{\n\tint n, i, score[50], weight[50];\n\tfloat g[50], a=0.0, b=0.0;\n\tscanf(\"%d\", &n);\n\tfor(i=1; i<=n; i++)\n\t{\n\t\tscanf(\"%d\", &weight[i]);\n\t\tb += weight[i];\n\t}\n\tfor(i=1; i<=n; i++)\n\t{\n\t\tscanf(\"%d\", &score[i]);\n\t\tg[i] = mgpa(score[i]) * weight[i];\n\t\ta += g[i];\n\t}\n\tprintf(\"%.2f\", a/b);\n\treturn 0;\n}"} +{"label": "83", "index": "41095", "code": "int main(){\n\tint n,i;\n\tdouble a,b;\n\tint df[100];\n\tdouble GPA;\n\tint xf[100];\n\tdouble jd[100];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i<=n-2;i++){\n\t\tscanf(\"%d\",&xf[i]);\n\t}\n\tscanf(\"%d\\n\",&xf[n-1]);\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d\",&df[i]);\n\t}\n for(i=0;i<=n-1;i++){\n\t\tif(df[i]<60){\n\t\t\tjd[i]=0*xf[i];\n\t\t}else if(df[i]>=60&&df[i]<=63){\n\t\t\t\tjd[i]=1.0*xf[i];\n\t\t\t}else if(df[i]>=64&&df[i]<=67){\n\t\t\t\tjd[i]=1.5*xf[i];\n\t\t\t\t}else if(df[i]>=68&&df[i]<=71){\n\t\t\t\t\tjd[i]=2.0*xf[i];\n\t\t\t\t}else if(df[i]>=72&&df[i]<=74){\n\t\t\t\t\tjd[i]=2.3*xf[i];\n\t\t\t\t}else if(df[i]>=75&&df[i]<=77){\n\t\t\t\t\tjd[i]=2.7*xf[i];\n\t\t\t\t}else if(df[i]>=78&&df[i]<=81){\n\t\t\t\t\tjd[i]=3.0*xf[i];\n\t\t\t\t}else if(df[i]>=82&&df[i]<=84){\n\t\t\t\t\tjd[i]=3.3*xf[i];\n\t\t\t\t}else if(df[i]>=85&&df[i]<=89){\n\t\t\t\t\tjd[i]=3.7*xf[i];\n\t\t\t\t}else if(df[i]>=90&&df[i]<=100){\n\t\t\t\t\tjd[i]=4.0*xf[i];\n\t\t\t\t}\n\t\t\t\t}\n\tfor(i=0,a=0,b=0;i<=n-1;i++){\n a+=xf[i];\n\t\tb+=jd[i];\n\t}\n\tGPA=b/a;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41096", "code": "void main()\n{\n\tfloat a[2][10],sum,d;sum=0;d=0;\n\tint i,k,n;\n\tscanf(\"%d\",&n);\n\tprintf(\"\\n\");\n\tfor(i=0;i=90)\n\t\t\ta[1][i]=4.0;\n\t\telse if(a[1][i]>=85)\n\t\t\ta[1][i]=3.7;\n\t\telse if(a[1][i]>=82)\n\t\t\ta[1][i]=3.3;\n\t\telse if(a[1][i]>=78)\n\t\t\ta[1][i]=3.0;\n\t\telse if(a[1][i]>=75)\n\t\t\ta[1][i]=2.7;\n\t\telse if(a[1][i]>=72)\n\t\t\ta[1][i]=2.3;\n\t\telse if(a[1][i]>=68)\n\t\t a[1][i]=2.0;\n\t\telse if(a[1][i]>=64)\n\t\t a[1][i]=1.5;\n\t\telse if(a[1][i]>=60)\n\t\t\ta[1][i]=1.0;\n\t\telse a[1][i]=0;\n\t}\n\tfor(i=0;i=t[i]&&t[i]>='Z')\n\t\t\t\tq[i]=4;\n\t\t\telse if('Y'>=t[i]&&t[i]>='U')\n\t\t\t\tq[i]=3.7;\n\t\t\telse if('T'>=t[i]&&t[i]>='R')\n\t\t\t\tq[i]=3.3;\n\t\t\telse if('Q'>=t[i]&&t[i]>='N')\n\t\t\t\tq[i]=3.0;\n\t\t\telse if('M'>=t[i]&&t[i]>='K')\n\t\t\t\tq[i]=2.7;\n\t\t\telse if('J'>=t[i]&&t[i]>='H')\n\t\t\t\tq[i]=2.3;\n\t\t\telse if('G'>=t[i]&&t[i]>='D')\n\t\t\t\tq[i]=2.0;\n\t\t\telse if('C'>=t[i]&&t[i]>='@')\n\t\t\t\tq[i]=1.5;\n\t\t\telse if('?'>=t[i]&&t[i]>='<')\n\t\t\t\tq[i]=1.0;\n\t\t\telse if(t[i]<'<')\n\t\t\t\tq[i]=0;\n\t\t\t\n\t}\n printf(\"\\n\");\nfor(i=1;i<=n;i++)\n{\n\tr[i]=s[i]*q[i];\n m+=r[i];\n}\nprintf(\"%.2lf\",m/k);\n}\n"} +{"label": "83", "index": "41098", "code": "int main(){\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tdouble a[MAX],b[MAX],sum=0,num=0;\n\tdouble c[MAX],GPA;\n\tfor(i=0;i= 90)return 4.0;\n\telse if (n >= 85&&n<=89)return 3.7;\n\telse if (n >= 82 && n <= 84)return 3.3;\n\telse if (n >= 78 && n <= 81)return 3.0;\n\telse if (n >= 75 && n <= 77)return 2.7;\n\telse if (n >= 72 && n <= 74)return 2.3;\n\telse if (n >= 68 && n <= 71)return 2.0;\n\telse if (n >= 64 && n <= 67)return 1.5;\n\telse if (n >= 60 && n <= 63)return 1.0;\n\telse return 0;\n}\nint main()\n{\n\tint n,m[10],g[10],i;\n\tfloat sum2 = 0;\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\", &m[i]);\n\t\tsum2 += m[i];\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\", &g[i]);\n\t}\n\tfloat c[10],sum1=0;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tc[i] = GPAlize(g[i])*m[i];\n\t\tsum1 += c[i];\n\t}\n\tprintf(\"%.2f\\n\", sum1 / sum2);\n}"} +{"label": "83", "index": "41100", "code": "\nint main(){\n\tint n,i,defen[10],xuefen[10],xuefenhe;\n\tdouble jidian[10],GPA,jidianhe;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\tf_x=4.0;\n\tif(x>=85&&x<=89)\n\t\tf_x=3.7;\n\tif(x>=82&&x<=84)\n\t\tf_x=3.3;\n\tif(x>=78&&x<=81)\n\t\tf_x=3.0;\n\tif(x>=75&&x<=77)\n\t\tf_x=2.7;\n\tif(x>=72&&x<=74)\n\t\tf_x=2.3;\n\tif(x>=68&&x<=71)\n\t\tf_x=2.0;\n\tif(x>=64&&x<=67)\n\t\tf_x=1.5;\n\tif(x>=60&&x<=63)\n\t\tf_x=1.0;\n\tif(x<60)\n\t\tf_x=0;\n\treturn f_x;\n}\n"} +{"label": "83", "index": "41102", "code": "int main()\n{\n\tint n,a[10],b[10],i,k;\n\tfloat c,gpa;\n\tgpa=0;k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&b[i]);\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(b[i]>=90)\n\t\t{c=4.0;}\n\t\telse if(b[i]>=85)\n\t\t{c=3.7;}\n\t\telse if(b[i]>=82)\n\t\t{c=3.3;}\n\t\telse if(b[i]>=78)\n\t\t{c=3.0;}\n\t\telse if(b[i]>=75)\n\t\t{c=2.7;}\n\t\telse if(b[i]>=72)\n\t\t{c=2.3;}\n\t\telse if(b[i]>=68)\n\t\t{c=2.0;}\n\t\telse if(b[i]>=64)\n\t\t{c=1.5;}\n\t\telse if(b[i]>=60)\n\t\t{c=1.0;}\n\t\telse\n\t\t{c=0;}\n\t\tgpa=gpa+c*a[i];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{k=k+a[i];}\n\tgpa=gpa/k;\n\tprintf(\"%.2f\",gpa);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41103", "code": "int main(){\n\tint n,i,a[10],b[10];\n\tfloat c[10],d[10];\n\tint p=0;\n\tfloat gpa,q=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\t\tc[i]=4.0;\n\t\t}else if(b[i]>=85){\n\t\t\tc[i]=3.7;\n\t\t}else if(b[i]>=82){\n\t\t\tc[i]=3.3;\n\t\t}else if(b[i]>=78){\n\t\t\tc[i]=3.0;\n\t\t}else if(b[i]>=75){\n\t\t\tc[i]=2.7;\n\t\t}else if(b[i]>=72){\n\t\t\tc[i]=2.3;\n\t\t}else if(b[i]>=68){\n\t\t\tc[i]=2.0;\n\t\t}else if(b[i]>=64){\n\t\t\tc[i]=1.5;\n\t\t}else if(b[i]>=60){\n\t\t\tc[i]=1.0;\n\t\t}else{\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i>course;\n\t\tdouble sum2=0;\n\t\tdouble sum1=0;\n\t\tint pa[100000],g[100000];//??\n\t\tfor(i=0;i>pa[i];\n\t\t\tsum2=sum2+pa[i];\n\t\t}\n\t for(i=0;i>g[i];\n\t\t\tdouble m;\t\t\t\t\t\t\t\t\n\t\t\t if(g[i]>=90&&g[i]<=100)\n\t\t\t\tm=4.0;\n\t\t\telse if( g[i]>=85&&g[i]<=89)//??fenshu\n\t\t\t\tm=3.7;\n\t\t\telse if( g[i]>=82&&g[i]<=84)\n\t\t\t\tm=3.3;\n\t\t\telse if (g[i]>=78&&g[i]<=81)\n\t\t\t\tm=3.0;\n\t\t\telse if( g[i]>=75&&g[i]<=77)\n\t\t\t\tm=2.7;\n\t\t\telse if( g[i]>=72&&g[i]<=74)\n\t\t\t\tm=2.3;\n\t\t\telse if( g[i]>=68&&g[i]<=71)\n\t\t\t\tm=2.0;\n\t\t\telse if( g[i]>=64&&g[i]<=67)\n\t\t\t\tm=1.5;\t\t\n\t\t\telse if(g[i]>=60&&g[i]<=63)\n\t\t\t\tm=1.0;\n\t\t\telse if(g[i]<60)\n\t\t\t\tm=0;\n\t\t\tsum1=sum1+m*pa[i];\n\t\t}\t\n\n\t double gpa;\n\tgpa=sum1/sum2;\n\tprintf(\"%.2lf\",gpa);\n\treturn 0;\n}\n\n"} +{"label": "83", "index": "41105", "code": "\nint main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tint numble[10];\n\tint i,a;\n int s=0;\n double b;\n double sum=0;\n float GPA;\n\tfor(i=0; i < n; i++){\n\t\tscanf(\"%d\", &numble[i]);\n s = s + numble[i];\n\t}\n\t\tfor(i=0; i < n; i++){\n\t\t\tscanf(\"%d\", &a);\n\t\t\tif(a <= 100 && a >= 90){\n b = 4.0;\n\t\t\t}\n\t\t\t else if(a <= 89 && a >=85){\n\t\t\t\t b = 3.7;\n\t\t\t }\n\t\t\t\t else if(a <= 84 && a >= 82){\n\t\t\t\t\t b = 3.3;\n\t\t\t\t }\n\t\t\t\t\t else if(a <= 81 && a >=78){\n\t\t\t\t\t\t b = 3.0;\n\t\t\t\t\t }\n\t\t\t\t\t\t else if(a <= 77 && a >=75){\n\t\t\t\t\t\t\t b = 2.7;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else if(a <= 74 && a >= 72){\n\t\t\t\t\t\t\t\t b = 2.3;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t else if(a <= 71 && a >= 68){\n\t\t\t\t\t\t\t\t\t b = 2.0;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else if(a <= 67 && a >= 64){\n\t\t\t\t\t\t\t\t\t b = 1.5;\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t else if(a <= 63 && a >= 60){\n\t\t\t\t\t\t\t\t\t\t b = 1.0;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t else if(a < 60){\n\t\t\t\t\t\t\t\t\t\t\t b = 0;\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\tsum = sum + numble[i] * b;\n\t\t}\n\tGPA =(float)( sum / s);\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}\n\n\n"} +{"label": "83", "index": "41106", "code": "void main()\n{\n\tint n,xuefen[10],score[10],i;\n\tdouble gpa[10],sum=0,sumxf=0;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=90) gpa[i]=4.0;\n\t\telse if (score[i]<=89&&score[i]>=85) gpa[i]=3.7;\n\t\telse if (score[i]<=84&&score[i]>=82) gpa[i]=3.3;\n\t\telse if (score[i]<=81&&score[i]>=78) gpa[i]=3.0;\n\t\telse if (score[i]<=77&&score[i]>=75) gpa[i]=2.7;\n\t\telse if (score[i]<=74&&score[i]>=72) gpa[i]=2.3;\n\t\telse if (score[i]<=71&&score[i]>=68) gpa[i]=2.0;\n\t\telse if (score[i]<=67&&score[i]>=64) gpa[i]=1.5;\n\t\telse if (score[i]<=63&&score[i]>=60) gpa[i]=1.0;\n\t\telse if (score[i]<60) gpa[i]=0;\n\t\tsum+=gpa[i]*xuefen[i];\n\t\tsumxf+=xuefen[i];\n\t}\n\tprintf(\"%.2lf\\n\",sum/sumxf);\n}"} +{"label": "83", "index": "41107", "code": "float GPA(int a)\n{\n\tif(a>=90) return 4;\n\t\telse if (a>=85) return 3.7;\n\t\telse if (a>=82) return 3.3;\n\t\telse if (a>=78) return 3;\n\t\telse if (a>=75) return 2.7;\n\t\telse if (a>=72) return 2.3;\n\t\telse if (a>=68) return 2;\n\t\telse if (a>=64) return 1.5;\n\t\telse if (a>=60) return 1;\n\t\telse return 0;\n}\nvoid main()\n{\n\tint n,i,s,a[100]={0};\n\tfloat SumGPA=0,Points=0,AveGPA=0;\n\tscanf(\"%d\",&n);\n\tSumGPA=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&s);\n\t\tPoints+=s;\n a[i]=s;\t\n\t}\n\tfor(i=1;i<=n;i++) \n\t{\n\t\tscanf(\"%d\",&s);\n\t\tSumGPA+=GPA(s)*a[i];\n\t}\n\tAveGPA=SumGPA/Points;\n\tprintf(\"%.2f\\n\",AveGPA);\n}"} +{"label": "83", "index": "41108", "code": "int main()\n{\n float j(int y);\n\tfloat gpa=0,xf=0,g[10],x[10],jd[10];\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89) z=4.0;\n\telse if(y>84) z=3.7;\n\telse if(y>81) z=3.3;\n\telse if(y>77) z=3.0;\n\telse if(y>74) z=2.7;\n\telse if(y>71) z=2.3;\n\telse if(y>67) z=2.0;\n\telse if(y>63) z=1.5;\n\telse if(y>59) z=1.0;\n\telse z=0;\n\treturn(z);\n}"} +{"label": "83", "index": "41109", "code": "main()\n{\n int n,i,sum2=0;\n float sum1=0,gpa;\n struct {int xf,fs;\n \tfloat jd;\n }a[100];\n scanf(\"%d\",&n);\n for(i=0;i=90&&a[i].fs<=100)\n \ta[i].jd=4.0;\n \tif(a[i].fs>=85&&a[i].fs<=89)\n \ta[i].jd=3.7;\n \tif(a[i].fs>=82&&a[i].fs<=84)\n \ta[i].jd=3.3;\n \tif(a[i].fs>=78&&a[i].fs<=81)\n \ta[i].jd=3.0;\n \tif(a[i].fs>=75&&a[i].fs<=77)\n \ta[i].jd=2.7;\n \tif(a[i].fs>=72&&a[i].fs<=74)\n \ta[i].jd=2.3;\n \tif(a[i].fs>=68&&a[i].fs<=71)\n \ta[i].jd=2.0;\n \tif(a[i].fs>=64&&a[i].fs<=67)\n \ta[i].jd=1.5;\n \tif(a[i].fs>=60&&a[i].fs<=63)\n \ta[i].jd=1.0;\n \tif(a[i].fs>=0&&a[i].fs<=59)\n \ta[i].jd=0.0;\n }\n for(i=0;i=90) c[i]=4.0;\nif ((b[i]>=85)&&(b[i]<90)) c[i]=3.7;\nif ((b[i]>=82)&&(b[i]<85)) c[i]=3.3;\nif ((b[i]>=78)&&(b[i]<82)) c[i]=3.0;\nif ((b[i]>=75)&&(b[i]<78)) c[i]=2.7;\nif ((b[i]>=72)&&(b[i]<75)) c[i]=2.3;\nif ((b[i]>=68)&&(b[i]<72)) c[i]=2.0;\nif ((b[i]>=64)&&(b[i]<68)) c[i]=1.5;\nif ((b[i]>=60)&&(b[i]<64)) c[i]=1.0;\nif (b[i]<60) c[i]=0;\n\n\n\n}\n\nfor (i=0;i=90&&x<=100) return (4.0);\n\telse if (x>=85&&x<=89) return (3.7);\n else if (x>=82&&x<=84) return (3.3);\n\telse if (x>=78&&x<=81) return (3.0);\n\telse if (x>=75&&x<=77) return (2.7);\n\telse if (x>=72&&x<=74) return (2.3);\n\telse if (x>=68&&x<=71) return (2.0);\n\telse if (x>=64&&x<=67) return (1.5);\n\telse if (x>=60&&x<=63) return (1,0);\n\telse return (0);\n}\n\nvoid main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n \n\tint a[10];\n\tint i,sum=0;\n\tfor (i=0;i=90&&b[i]<=100)\n\t\tc[i]=4.0;\n\telse if(b[i]>=85&&b[i]<=89)\n\t\tc[i]=3.7;\n\telse if(b[i]>=82&&b[i]<=84)\n\t\tc[i]=3.3;\n\telse if(b[i]>=78&&b[i]<=81)\n\t\tc[i]=3.0;\n\telse if(b[i]>=75&&b[i]<=81)\n\t\tc[i]=2.7;\n\telse if(b[i]>=72&&b[i]<=74)\n\t\tc[i]=2.3;\n\telse if(b[i]>=68&&b[i]<=71)\n\t\tc[i]=2.0;\n\telse if(b[i]>=64&&b[i]<=71)\n\t\tc[i]=1.5;\n\telse if(b[i]>=60&&b[i]<=63)\n\t\tc[i]=1.0;\n\telse c[i]=0;\n}\nfor(i=0;i=90&&point<=100)\n\t\t{\n\t\t\tb[i]=4.0;\n\t\t}\n\t\tif(point>=85&&point<=89)\n\t\t{\n\t\t\tb[i]=3.7;\n\t\t}\n\t\tif(point>=82&&point<=84)\n\t\t{\n\t\t\tb[i]=3.3;\n\t\t}\n\t\tif(point>=78&&point<=81)\n\t\t{\n\t\t\tb[i]=3.0;\n\t\t}\n\t\tif(point>=75&&point<=77)\n\t\t{\n\t\t\tb[i]=2.7;\n\t\t}\n\t\tif(point>=72&&point<=74)\\\n\t\t{\n\t\t\tb[i]=2.3;\n\t\t}\n\t\tif(point>=68&&point<=71)\n\t\t{\n\t\t\tb[i]=2.0;\n\t\t}\n\t\tif(point>=64&&point<=67)\n\t\t{\n\t\t\tb[i]=1.5;\n\t\t}\n\t\tif(point>=60&&point<=63)\n\t\t{\n\t\t\tb[i]=1.0;\n\t\t}\n\t\tif(point<60)\n\t\t{\n\t\t\tb[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i=90)&&(cj[i]<=100)){\n jd[i]=4.0;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<90)&&(cj[i]>=85)){\n jd[i]=3.7;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<=84)&&(cj[i]>=82)){\n jd[i]=3.3;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<=81)&&(cj[i]>=78)){\n jd[i]=3.0;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<-77)&&(cj[i]>=75)){\n jd[i]=2.7;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<=74)&&(cj[i]>=72)){\n jd[i]=2.3;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<=71)&&(cj[i]>=68)){\n jd[i]=2.0;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<=67)&&(cj[i]>=64)){\n jd[i]=1.5;\n zjd[i]=jd[i]*x[i];\n } else if((cj[i]<=63)&&(cj[i]>=60)){\n jd[i]=1.0;\n zjd[i]=jd[i]*x[i];\n } else{\n zjd[i]=0;\n }\n }\nfor(i=0;i=90&&b[i]<=100){\n\t\t\tc[i]=4.0;\n\t\t}\n\t\tif(b[i]>=85&&b[i]<=89){\n\t\t\tc[i]=3.7;\n\t\t}\n\t\tif(b[i]>=82&&b[i]<=84){\n\t\t\tc[i]=3.3;\n\t\t}\n\t\tif(b[i]>=77&&b[i]<=81){\n\t\t\tc[i]=3.0;\n\t\t}\n\t\tif(b[i]>=75&&b[i]<=77){\n\t\t\tc[i]=2.7;\n\t\t}\n\t\tif(b[i]>=72&&b[i]<=74){\n\t\t\tc[i]=2.3;\n\t\t}\n\t\tif(b[i]>=68&&b[i]<=71){\n\t\t\tc[i]=2.0;\n\t\t}\n\t\tif(b[i]>=64&&b[i]<=67){\n\t\t\tc[i]=1.5;\n\t\t}\n\t\tif(b[i]>=60&&b[i]<=63){\n\t\t\tc[i]=1.0;\n\t\t}\n\t\tif(b[i]>=0&&b[i]<=59){\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i=90){\n jidian[i]=4.0;\n }else if((defen[i]>=85)&&(defen[i]<=89)){\n jidian[i]=3.7;\n }else if((defen[i]>=82)&&(defen[i]<=84)){\n jidian[i]=3.3;\n }else if((defen[i]>=78)&&(defen[i]<=81)){\n jidian[i]=3.0;\n }else if((defen[i]>=75)&&(defen[i]<=77)){\n jidian[i]=2.7;\n }else if((defen[i]>=72)&&(defen[i]<=74)){\n jidian[i]=2.3;\n }else if((defen[i]>=68)&&(defen[i]<=71)){\n jidian[i]=2.0;\n }else if((defen[i]>=64)&&(defen[i]<=67)){\n jidian[i]=1.5;\n }else if((defen[i]>=60)&&(defen[i]<=63)){\n jidian[i]=1.0;\n }else if(defen[i]<60){\n jidian[i]=0.0;\n }\n }\n for(i=0;i=90)return 4.0;\n\tif(x>=85)return 3.7;\n\tif(x>=82)return 3.3;\n\tif(x>=78)return 3.0;\n\tif(x>=75)return 2.7;\n\tif(x>=72)return 2.3;\n\tif(x>=68)return 2.0;\n\tif(x>=64)return 1.5;\n\tif(x>=60)return 1.0;\n\treturn 0;\n}"} +{"label": "83", "index": "41118", "code": "\nint main()\n{\nint n, i, u[100], a, b=0,g[100];\nfloat sum=0;\nscanf(\"%d\", &n);\nfor(i=0;i=90){\n\t\tsum=u[i]*4.0+sum;\n\t}\n\telse \tif(g[i]<=84&&g[i]>=82){\n\t\tsum=u[i]*3.3+sum;\n\t}\n\telse if(g[i]<=89&&g[i]>=85){\n\t\tsum=u[i]*3.7+sum;\n\t}\nelse \tif(g[i]<=81&&g[i]>=78){\n\t\tsum=u[i]*3.0+sum;\n\t}\nelse \tif(g[i]<=77&&g[i]>=75){\n\t\tsum=u[i]*2.7+sum;\n\t}\nelse \tif(g[i]<=74&&g[i]>=72){\n\t\tsum=u[i]*2.3+sum;\n\t}\nelse \tif(g[i]<=71&&g[i]>=68){\n\t\tsum=u[i]*2.0+sum;\n\t}\nelse \tif(g[i]<=67&&g[i]>=64){\n\t\tsum=u[i]*1.5+sum;\n\t}\nelse \tif(g[i]<=63&&g[i]>=60){\n\t\tsum=u[i]*1.0+sum;\n\t}\nelse \tif(g[i]<=59&&g[i]>=0){\n\t\tsum=u[i]*0.0+sum;\n\t}\n}\n\nprintf(\"%.2f\", sum/b);\n\t\t\treturn 0;\n\t}\n"} +{"label": "83", "index": "41119", "code": "main()\n{\n\tstruct jifen\n\t{\n\t\tint xue;\n\t\tint score;\n\t\tfloat ji;\n\t}ke[10];\n\tint n,i,k,l;\n\tfloat j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",&ke[i].xue);\n\tfor(i=0,j=0,l=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&ke[i].score);\n\t\tk=ke[i].score;\n\t\tif(k>=90&&k<=100)\n\t\t\tke[i].ji=4;\n\t\telse\n\t\t\tif(k>=85&&k<=89)\n\t\t\t\tke[i].ji=3.7;\n\t\t\telse\n\t\t\t\tif(k>=82&&k<=84)\n\t\t\t\t\tke[i].ji=3.3;\n\t\t\t\telse\n\t\t\t\t\tif(k>=78&&k<=81)\n\t\t\t\t\t\tke[i].ji=3.0;\n\t\t\t\t\telse\n\t\t\t\t\t\tif(k>=75&&k<=77)\n\t\t\t\t\t\t\tke[i].ji=2.7;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(k>=72&&k<=74)\n\t\t\t\t\t\t\t\tke[i].ji=2.3;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif(k>=68&&k<=71)\n\t\t\t\t\t\t\t\t\tke[i].ji=2.0;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tif(k>=64&&k<=67)\n\t\t\t\t\t\t\t\t\t\tke[i].ji=1.5;\n\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\tif(k>=60&&k<=63)\n\t\t\t\t\t\t\t\t\t\t\tke[i].ji=1.0;\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tif(k<60)\n\t\t\t\t\t\t\t\t\t\t\t\tke[i].ji=0;\n j=j+ke[i].ji*ke[i].xue;\n\t\t l=l+ke[i].xue;\n\t}\n printf(\"%.2f\",j/l);\n\treturn 0;\n}"} +{"label": "83", "index": "41120", "code": "void main()\n{\n\tint n,i;\n\tfloat GPA,fen[10],jh=0,xd[10],xh=0,xf[10],score[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%f\",&xf[i]);\n\t\txh=xh+xf[i];\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\tscanf(\"%f\",&score[i]);\n\tif(score[i]>=90)\n \tfen[i]=4.0;\n\telse if(score[i]>=85)\n\t\tfen[i]=3.7;\n\telse if(score[i]>=82)\n\t\tfen[i]=3.3;\n\telse if(score[i]>=78)\n\t fen[i]=3.0;\n\telse if(score[i]>=75)\n \tfen[i]=2.7;\n\telse if(score[i]>=72)\n\t\tfen[i]=2.3;\n\telse if(score[i]>=68)\n\t\tfen[i]=2.0;\n\telse if(score[i]>=64)\n\t\tfen[i]=1.5;\n\telse if(score[i]>=60)\n \tfen[i]=1.0;\n else\n fen[i]=0;\n\txd[i]=fen[i]*xf[i];\n\tjh=jh+xd[i];\n\t}\n\tGPA=jh/xh;\n\tprintf(\"%.2f\",GPA);\n}\n\t\n"} +{"label": "83", "index": "41121", "code": "void main()\n{\n\tint xuefen[10];\n\tint chengji[10];\n\tfloat jidian[10];\n\tint n,i,he=0;\n\tfloat sum=0,GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&chengji[i]<=100)\n\t\t\tjidian[i]=4.0;\n\t\tif(chengji[i]>=85&&chengji[i]<=89)\n\t\t\tjidian[i]=3.7;\n\t\tif(chengji[i]>=82&&chengji[i]<=84)\n\t\t\tjidian[i]=3.3;\n\t\tif(chengji[i]>=78&&chengji[i]<=81)\n\t\t\tjidian[i]=3.0;\n\t\tif(chengji[i]>=75&&chengji[i]<=77)\n\t\t\tjidian[i]=2.7;\n\t\tif(chengji[i]>=72&&chengji[i]<=74)\n\t\t\tjidian[i]=2.3;\n\t\tif(chengji[i]>=68&&chengji[i]<=71)\n\t\t\tjidian[i]=2.0;\n\t\tif(chengji[i]>=64&&chengji[i]<=67)\n\t\t\tjidian[i]=1.5;\n\t\tif(chengji[i]>=60&&chengji[i]<=63)\n\t\t\tjidian[i]=1.0;\n\t\tif(chengji[i]<60)\n\t\t\tjidian[i]=0;\n\t}\n\tfor(i=0;i=90&&*(b+i)<=100)\n\t\t{\n\t\t\t*(b+i)=4.0**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=85&&*(b+i)<=89)\n\t\t{\n\t\t\t*(b+i)=3.7**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=82&&*(b+i)<=84)\n\t\t{\n\t\t\t*(b+i)=3.3**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=78&&*(b+i)<=81)\n\t\t{\n\t\t\t*(b+i)=3.0**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=75&&*(b+i)<=77)\n\t\t{\n\t\t\t*(b+i)=2.7**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}if(*(b+i)>=72&&*(b+i)<=74)\n\t\t{\n\t\t\t*(b+i)=2.3**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=68&&*(b+i)<=71)\n\t\t{\n\t\t\t*(b+i)=2.0**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=64&&*(b+i)<=67)\n\t\t{\n\t\t\t*(b+i)=1.5**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)>=60&&*(b+i)<=63)\n\t\t{\n\t\t\t*(b+i)=1.0**(a+i);\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t\tif(*(b+i)<60)\n\t\t{\n\t\t\t*(b+i)=0;\n\t\t\tsumgpa=sumgpa+*(b+i);\n\t\t}\n\t}\n\tprintf(\"%.2lf\",sumgpa/sumcredit);\n}"} +{"label": "83", "index": "41124", "code": "int main()\n{\n\tint n,xf[10],cj[10],sum2=0,i;\n\tdouble xfjd[10],sum=0;\n\tdouble jd;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89&&cj[i]<101) jd=4.0;\n if(cj[i]>84&&cj[i]<90) jd=3.7;\n if(cj[i]>81&&cj[i]<85) jd=3.3;\n if(cj[i]>77&&cj[i]<82) jd=3.0;\n if(cj[i]>74&&cj[i]<78) jd=2.7;\n if(cj[i]>71&&cj[i]<75) jd=2.3;\n if(cj[i]>67&&cj[i]<72) jd=2.0;\n if(cj[i]>63&&cj[i]<68) jd=1.5;\n if(cj[i]>59&&cj[i]<64) jd=1.0;\n if(cj[i]<60) jd=0;\n\t\txfjd[i]=jd*xf[i];\n\t}\n\tfor(i=0;i=90&&x<=100)\n\t\t\tsc[i]=4.0;\n\t\tif(x>=85&&x<=89)\n\t\t\tsc[i]=3.7;\n\t\tif(x>=82&&x<=84)\n\t\t\tsc[i]=3.3;\n\t\tif(x>=78&&x<=81)\n\t\t\tsc[i]=3.0;\n\t\tif(x>=75&&x<=77)\n\t\t\tsc[i]=2.7;\n\t\tif(x>=72&&x<=74)\n\t\t\tsc[i]=2.3;\n\t\tif(x>=68&&x<=71)\n\t\t\tsc[i]=2.0;\n\t\tif(x>=64&&x<=67)\n\t\t\tsc[i]=1.5;\n\t\tif(x>=60&&x<=63)\n\t\t\tsc[i]=1.0;\n\t\tif(x<60)\n\t\t\tsc[i]=0;\n\t\ts+=sc[i]*hr[i];\n\t}\n\tGPA=s/shr;\n\tprintf(\"%.2f\\n\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41126", "code": "int main()\n{\n /*?????????????????????GPA????????????????????????????????? \n?????????? \n???? ?? \n90-100 4.0 \n85-89 3.7 \n82-84 3.3 \n78-81 3.0 \n75-77 2.7 \n72-74 2.3 \n68-71 2.0 \n64-67 1.5 \n60-63 1.0 \n60?? 0 \n1??????????=????*???? \n2?????=????????/???????? \n????????????A??????GPA?? \n????\n??? ?????n?n<10?? \n??? ???????????????????? \n??? ?????????? \n??????????????\n????\n??????????????????2?????printf(\"%.2f\",GPA);?*/\n int n1;\n cin>>n1;\n const int n=n1;\n int number[n],grade[n];\n float gpa[n],sum=0,sum1=0,average=0;\n int i;\n for(i=0;i<=n-1;i++)\n {\n cin>>number[i];\n }\n for(i=0;i<=n-1;i++)\n {\n cin>>grade[i];\n }\n for(i=0;i<=n-1;i++)\n {\n if((90<=grade[i])&&(grade[i]<=100))\n gpa[i]=4.0;\n\n if((85<=grade[i])&&(grade[i]<=89))\n gpa[i]=3.7;\n\n if((82<=grade[i])&&(grade[i]<=84))\n gpa[i]=3.3;\n\n if((78<=grade[i])&&(grade[i]<=81))\n gpa[i]=3.0;\n\n if((75<=grade[i])&&(grade[i]<=77))\n gpa[i]=2.7;\n\n if((72<=grade[i])&&(grade[i]<=74))\n gpa[i]=2.3;\n\n if((68<=grade[i])&&(grade[i]<=71))\n gpa[i]=2.0;\n\n if((64<=grade[i])&&(grade[i]<=67))\n gpa[i]=1.5;\n\n if((60<=grade[i])&&(grade[i]<=63))\n gpa[i]=1.0;\n\n if(grade[i]<60)\n gpa[i]=0;\n\n }\n for(i=0;i<=n-1;i++)\n {\n sum=sum+gpa[i]*number[i];\n sum1=sum1+number[i];\n }\n average=sum/sum1;\n \n printf(\"%.2f\",average);\n \n return 0;\n }\n \n"} +{"label": "83", "index": "41127", "code": "\nfloat score[12],point[12];\nfloat GPA[12];\n\nint main(){\n\tint n,i;\n\tfloat tmp;\n\tcin>>n;\n\tfor(i=0;i=90)\n\t\t\tGPA[i]=4;\n\t\telse\n\t\t\tif(tmp<=89&&tmp>=85)\n\t\t\t\tGPA[i]=3.7;\n\t\t\telse\n\t\t\t\tif(tmp<=84&&tmp>=82)\n\t\t\t\t\tGPA[i]=3.3;\n\t\t\t\telse\n\t\t\t\t\tif(tmp<=81&&tmp>=78)\n\t\t\t\t\t\tGPA[i]=3.0;\n\t\t\t\t\telse if(tmp<=77&&tmp>=75)\n\t\t\t\t\t\tGPA[i]=2.7;\n\t\t\t\t\telse if(tmp<=74&&tmp>=72)\n\t\t\t\t\t\tGPA[i]=2.3;\n\t\t\t\t\telse if(tmp<=71&&tmp>=68)\n\t\t\t\t\t\tGPA[i]=2.0;\n\t\t\t\t\telse if(tmp<=67&&tmp>=65)\n\t\t\t\t\t\tGPA[i]=1.5;\n\t\t\t\t\telse if(tmp<=64&&tmp>=60)\n\t\t\t\t\t\tGPA[i]=1.0;\n\t\t\t\t\telse\n\t\t\t\t\t\tGPA[i]=0;\n\t//cout<> n;\n\n\tcout << endl;\n\n\twhile(i <= n)\n\t{\n\t\tcin >> score[i++];\n\t}\n\tcout << endl;\n\n\twhile(m <= n)\n\t{\n\t\tcin >> ok[m++];\n\t}\n\n\tfor(t=1;t<=n;t++)\n\t{\n\t\tif( ok[t]>=90)\n\t\t{\n\t\t\tgrade[t]=4.0;continue;\n\t\t}\n\t\tif(ok[t]>=85)\n\t\t{\n\t\t\tgrade[t]=3.7;continue;\n\t\t}\n\t\tif(ok[t]>=82)\n\t\t{\n\t\t\tgrade[t]=3.3 ;continue;\n\t\t}\n\t\tif(78<=ok[t])\n\t\t{\n\t\t\tgrade[t]=3.0;continue;\n\t\t}\n\t\tif(75<=ok[t])\n\t\t{\n\t\t\tgrade[t]=2.7;continue;\n\t\t}\n\t\tif(72<=ok[t])\n\t\t{\n\t\t\tgrade[t]=2.3;continue;\n\t\t}\n\t\tif(68<=ok[t])\n\t\t{\n\t\t\tgrade[t]=2.0;continue;\n\t\t}\n\t\tif(64<=ok[t])\n\t\t{\n\t\t\tgrade[t]=1.5;continue;\n\t\t}\n\t\tif(60<=ok[t])\n\t\t{\n\t\t\tgrade[t]=1.0;continue;\n\t\t}\n\t\tif(60>ok[t])\n\t\t{\n\t\t\tgrade[t]=0.0;continue;\n\t\t}\n\t}\n\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tsum1 += score[i]*grade[i];\n\t}\n\t\n\tave = sum1 / ( score[1] + score[2] + score[3] + score[4] + score[5] + score[6] + score[7] + score[8] + score[9] + score[10]);\n\n\tcout << fixed << setprecision(2) << ave << endl;\n\n\treturn 0;\n\n}"} +{"label": "83", "index": "41129", "code": "int main(){\n int t[MAX],n,i;\n\tdouble s,p=0,k[MAX],m=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60&&t[i]<=63)\n\t\t\t p=p+1*k[i];\n\t\t\telse\n\t\t\t\tif(t[i]>=64&&t[i]<=67)\n\t\t \tp=p+1.5*k[i];\n\t\t\t\telse\n\t\t\t\t\tif(t[i]>=68&&t[i]<=71)\n\t\t\t p=p+2*k[i];\n\t\t\t\t\telse\n\t\t\t\t\t\tif(t[i]>=72&&t[i]<=74)\n\t\t\t p=p+2.3*k[i];\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(t[i]>=75&&t[i]<=77)\n\t\t\t p=p+2.7*k[i];\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif(t[i]>=78&&t[i]<=81)\n\t\t\t p=p+3*k[i];\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tif(t[i]>=82&&t[i]<=84)\n\t\t\t p=p+3.3*k[i];\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tif(t[i]>=85&&t[i]<=89)\n\t\t\t p=p+3.7*k[i];\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tif(t[i]>=90&&t[i]<=100)\n\t\t\t p=p+4*k[i];\n\t}\n\ts=p/m;\n\tprintf(\"%.2lf\",s);\n\treturn 0;\n\tprintf(\"%lf\",m);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41130", "code": "\nfloat score ( float x )\n{\n if(x<60)\n return 0;\n else if(x<=63)\n return 1.0;\n else if(x<=67)\n return 1.5;\n else if(x<=71)\n return 2.0;\n else if(x<=74)\n return 2.3;\n else if(x<=77)\n return 2.7;\n else if(x<=81)\n return 3;\n else if(x<=84)\n return 3.3;\n else if(x<=89)\n return 3.7;\n else\n return 4.0;\n}\n\nint main()\n{\n int n,i;\n float sum=0,GAP=0,a[10]={0},b[10]={0},c[10]={0};\n scanf(\"%d\",&n);\n for(i=0;i89){\n\t\t\tjd[p]=4.0;\n\t\t}\n\t\telse if(df[p]>84&&df[p]<90){\n\t\t\tjd[p]=3.7;\n\t\t}\n\t\telse if(df[p]>81&&df[p]<85){\n\t\t\tjd[p]=3.3;\n\t\t}\n\t else if(df[p]>77&&df[p]<82){\n\t\t\tjd[p]=3.0;\n\t\t}\n\t\telse if(df[p]>74&&df[p]<78){\n\t\t\tjd[p]=2.7;\n\t\t}\n\t\telse if(df[p]>71&&df[p]<75){\n\t\t\tjd[p]=2.3;\n\t\t}\n\t\telse if(df[p]>67&&df[p]<72){\n\t\t\tjd[p]=2.0;\n\t\t}\n\t\telse if(df[p]>63&&df[p]<68){\n\t\t\tjd[p]=1.5;\n\t\t}\n\t\telse if(df[p]>59&&df[p]<64){\n\t\t\tjd[p]=1.0;\n\t\t}\n\t\telse{\n\t\t\tjd[p]=0;\n\t\t}\n\t}\n\tfor(t=0;t=60&&shijifen[i]<=63){\njidian[i]=1.0;}else if(shijifen[i]>=64&&shijifen[i]<=67){\njidian[i]=1.5;}else if(shijifen[i]>=68&&shijifen[i]<=71){\njidian[i]=2.0;}else if(shijifen[i]>=72&&shijifen[i]<=74){\njidian[i]=2.3;}else if(shijifen[i]>=75&&shijifen[i]<=77){\njidian[i]=2.7;}else if(shijifen[i]>=78&&shijifen[i]<=81){\njidian[i]=3.0;}else if(shijifen[i]>=82&&shijifen[i]<=84){\njidian[i]=3.3;}else if(shijifen[i]>=85&&shijifen[i]<=89){\njidian[i]=3.7;}else{\njidian[i]=4.0;}\n}\njidianzhihe=0;\nfor (i=0;i= 90 && m <= 100)\t{\n\t\treturn 4.0;\n\t}\n\telse if(m >= 85 && m <= 89)\t{\n\t\treturn 3.7;\n\t}\n\telse if(m >= 82 && m <= 84)\t{\n\t\treturn 3.3;\n\t}\n\telse if(m >= 78 && m <= 81)\t{\n\t\treturn 3.0;\n\t}\n\telse if(m >= 75 && m <= 77)\t{\n\t\treturn 2.7;\n\t}\n\telse if(m >= 72 && m <= 74)\t{\n\t\treturn 2.3;\n\t}\n\telse if(m >= 68 && m <= 71)\t{\n\t\treturn 2.0;\n\t}\n\telse if(m >= 64 && m <= 67)\t{\n\t\treturn 1.5;\n\t}\n\telse if(m >= 60 && m <= 63)\t{\n\t\treturn 1.0;\n\t}\n\telse\n\t\treturn 0;\n}\n\nint main()\t{\n\tint i, n, a[15], b[15], sum2 = 0;\n\tdouble sum1 = 0;\n\tscanf(\"%d\", &n);\n\tfor(i = 0; i < n; ++i)\t{\n\t\tscanf(\"%d\", &a[i]);\n\t\tsum2 += a[i];\n\t}\n\tfor(i = 0; i < n; ++i)\t{\n\t\tscanf(\"%d\", &b[i]);\n\t\tsum1 += (double)score2g(b[i])*a[i];\n\t}\n\tfloat rel = (double)sum1 / sum2;\n\tprintf(\"%.2lf\\n\", rel);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41135", "code": "int main()\n{\n\tint n,xf[10],i,df[10],zxf=0;\n\tfloat jd[10],gpa,zjd=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t\tjd[i]=4.0;\n\t\telse if(df[i]>=85)\n\t\t\tjd[i]=3.7;\n\t\telse if(df[i]>=82)\n\t\t\tjd[i]=3.3;\n\t\telse if(df[i]>=78)\n\t\t\tjd[i]=3.0;\n\t\telse if(df[i]>=75)\n\t\t\tjd[i]=2.7;\n\t\telse if(df[i]>=72)\n\t\t\tjd[i]=2.3;\n\t\telse if(df[i]>=68)\n\t\t\tjd[i]=2.0;\n\t\telse if(df[i]>=64)\n\t\t\tjd[i]=1.5;\n\t\telse if(df[i]>=60)\n\t\t\tjd[i]=1.0;\n\t\telse\n\t\t\tjd[i]=0;\n\t}\n\tfor(i=0;i=90)&&(grades[i]<=100)){\n\t\t\tgrade=4;}\n\t\telse if((grades[i]>=85)&&(grades[i]<=89)){\n\t\t\tgrade=3.7;}\n\t\telse if((grades[i]>=82)&&(grades[i]<=84)){\n\t\t\t grade=3.3;}\n\t\telse if((grades[i]>=78)&&(grades[i]<=81)){\n\t\t\tgrade=3.0;}\n\t\telse if((grades[i]>=75)&&(grades[i]<=77)){\n\t\t\tgrade=2.7;}\n\t\telse if((grades[i]>=72)&&(grades[i]<=74)){\n\t\t\tgrade=2.3;}\n\t\telse if((grades[i]>=68)&&(grades[i]<=71)){\n\t\t\tgrade=2.0;}\n\t\telse if((grades[i]>=64)&&(grades[i]<=67)){\n\t\t\tgrade=1.5;}\n\t\telse if((grades[i]>=60)&&(grades[i]<=63)){\n\t\t\tgrade=1.0;}\n\t\telse if((grades[i]>=0)&&(grades[i]<=59)){\n\t\t\tgrade=0;}\n\n\t\tsumOfCredits += credits[i];\n\t\tsum += credits[i] * grade;\n\t}\n\tprintf(\"%.2f\",sum/sumOfCredits);\n\treturn 0;\t\t\n\n}"} +{"label": "83", "index": "41137", "code": "void main()\n{\n\tint num,*xuefen,*score,i,txuefen=0;\n\tfloat *gpa,total=0,part,GPA;\n\tscanf(\"%d\",&num);\n\txuefen=(int*)malloc(sizeof(int)*num);\n\tscore=(int*)malloc(sizeof(int)*num);\n gpa=(float*)malloc(sizeof(float)*num);\n for(i=0;i=90)\n\t\t\tgpa[i]=4.0;\n\t\tif(score[i]>=85&&score[i]<=89)\n\t\t\tgpa[i]=3.7;\n\t\tif(score[i]>=82&&score[i]<=84)\n\t\t\tgpa[i]=3.3;\n\t\tif(score[i]>=78&&score[i]<=81)\n\t\t\tgpa[i]=3.0;\n\t\tif(score[i]>=75&&score[i]<=77)\n\t\t\tgpa[i]=2.7;\n\t\tif(score[i]>=72&&score[i]<=74)\n\t\t\tgpa[i]=2.3;\n\t\tif(score[i]>=68&&score[i]<=71)\n\t\t\tgpa[i]=2.0;\n\t\tif(score[i]>=64&&score[i]<=67)\n\t\t\tgpa[i]=1.5;\n\t\tif(score[i]>=60&&score[i]<=63)\n\t\t\tgpa[i]=1.0;\n\t\tif(score[i]<=59)\n\t\t\tgpa[i]=0;\n\t}\n\tfor(i=0;i=90) c[i]=4.0;\n\telse if(b[i]>=85) c[i]=3.7;\n\t\t else if(b[i]>=82) c[i]=3.3;\n\t\t else if(b[i]>=78) c[i]=3.0;\n\t\t else if(b[i]>=75) c[i]=2.7;\n\t\t else if(b[i]>=72) c[i]=2.3;\n\t\t else if(b[i]>=68) c[i]=2.0;\n\t\t else if(b[i]>=64) c[i]=1.5;\n\t\t else if(b[i]>=60) c[i]=1.0;\n\t\t else c[i]=0;\n\t}\n\t\tfor(i=0;i<=(n-1);i++)\n\t\t{\n\t\t\tsum1=a[i]*c[i]+sum1;\n\t\t}\n\t\tfor(i=0;i<=(n-1);i++)\n\t\t{\n\t\t\tsum2=a[i]+sum2;\n\t\t}\n\t\tGPA=sum1/sum2;\n\t\tprintf(\"%.2f\\n\",GPA);\n}\n\t\n\n\n\n"} +{"label": "83", "index": "41139", "code": "int main(){\n\tint n,a[10],b[10],sum1=0;\n\tdouble gpa,sum2=0.0;\n\tscanf(\"%d\",&n);\n for(int i=0;i=90){c=4.0;}\n\t\telse if(s[i]<90&&s[i]>=85){c=3.7;}\n\t\telse if(s[i]<85&&s[i]>=82){c=3.3;}\n\t\telse if(s[i]<82&&s[i]>=78){c=3.0;}\n\t\telse if(s[i]<78&&s[i]>=75){c=2.7;}\n\t\telse if(s[i]<75&&s[i]>=72){c=2.3;}\n\t\telse if(s[i]<72&&s[i]>=68){c=2.0;}\n\t\telse if(s[i]<68&&s[i]>=64){c=1.5;}\n\t\telse if(s[i]<64&&s[i]>=60){c=1.0;}\n\t\telse{c=0;}\n\t\tb=b+c*x[i];\n m=m+x[i];}\n\tGPA=b/m;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41141", "code": "int main(int argc, char* argv[])\n{double GPA;\nfloat c,m,sum=0,mum=0;\nint n,i,p,q,u;\n\tscanf(\"%d\",&n);\n\tstruct majors\n\t{\n\tfloat credit;\n\tfloat marks;\n\t};\n\tstruct majors *jidian;\n\tjidian=(struct majors *)malloc(sizeof(majors) * n);\n\t\n\tfor (i=0;icredit=c;\n\t\t}\n\n\tfor (p=0;p=90))\n\t\t{(jidian+p)->marks=4.0;}\n\t\telse if ((m<=89)&&(m>=85))\n\t\t{(jidian+p)->marks=3.7;}\n\t\telse if ((m<=84)&&(m>=82))\n\t\t{(jidian+p)->marks=3.3;}\n\t\telse if ((m<=81)&&(m>=78))\n\t\t{(jidian+p)->marks=3.0;}\n\t\telse if ((m<=77)&&(m>=75))\n\t\t{(jidian+p)->marks=2.7;}\n\t\telse if ((m<=74)&&(m>=72))\n\t\t{(jidian+p)->marks=2.3;}\n\t\telse if ((m<=71)&&(m>=68))\n\t\t{(jidian+p)->marks=2.0;}\n\t\telse if ((m<=67)&&(m>=64))\n\t\t{(jidian+p)->marks=1.5;}\n\t\telse if ((m<=63)&&(m>=60))\n\t\t{(jidian+p)->marks=1.0;}\n\t\telse if (m<60)\n\t\t{(jidian+p)->marks=0;}\n\t}\n\n\tfor(q=0;qmarks)*((jidian+q)->credit);}\n\n\tfor(u=0;ucredit);}\n\n\tGPA=sum/mum;\n\tprintf(\"%.2f\",GPA);\n\tfree(jidian);\n\treturn 0;\n\n}\n\n"} +{"label": "83", "index": "41142", "code": "void main()\n{\n\tint a[20],b[20],n,i,j,sum=0;\n\tfloat c1,d,d1,k;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89)\n\t\t\tc1=4.0;\n\t\telse if(b[j]>84)\n\t\t\tc1=3.7;\n else if(b[j]>81)\n\t\t\tc1=3.3;\n else if(b[j]>77)\n\t\t\tc1=3.0;\n else if(b[j]>71)\n\t\t\tc1=2.3;\n else if(b[j]>67)\n\t\t\tc1=2.0;\n else if(b[j]>63)\n\t\t\tc1=1.5;\n else if(b[j]>59)\n\t\t\tc1=1.0;\n\t\telse c1=0.0;\n\t\td1=a[j]*c1;\n\t\td=d+d1;}\n\tfor(i=0;i=90) gpa=gpa+4.0*a[1][i];\n\t\telse if(a[2][i]>=85) gpa=gpa+3.7*a[1][i];\n\t\telse if(a[2][i]>=82) gpa=gpa+3.3*a[1][i];\n\t\telse if(a[2][i]>=78) gpa=gpa+3.0*a[1][i];\n\t\telse if(a[2][i]>=75) gpa=gpa+2.7*a[1][i];\n\t\telse if(a[2][i]>=72) gpa=gpa+2.3*a[1][i];\n\t\telse if(a[2][i]>=68) gpa=gpa+2.0*a[1][i];\n\t\telse if(a[2][i]>=64) gpa=gpa+1.5*a[1][i];\n\t\telse if(a[2][i]>=60) gpa=gpa+1.0*a[1][i];\n\t\t\n\t}\n\tgpa=gpa/x;\n\tprintf(\"%.2f\",gpa);\n\n}"} +{"label": "83", "index": "41144", "code": "void main()\n{\n\tint n,a[10],b[10],i,sum=0;\n\tfloat d[10],gpa=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t{d[i]=4.0;continue;}\n\t\telse if(b[i]>=85)\n\t\t{\td[i]=3.7;continue;}\n\t\telse if(b[i]>=82)\n\t\t{\td[i]=3.3;continue;}\n\t\telse if(b[i]>=78)\n\t\t{\td[i]=3.0;continue;}\n\t\telse if(b[i]>=75)\n\t\t{\td[i]=2.7;continue;}\n\t\telse if(b[i]>=72)\n\t\t{\td[i]=2.3;continue;}\n\t\telse if(b[i]>=68)\n\t\t{\td[i]=2.0;continue;}\n\t\telse if(b[i]>=64)\n\t\t{d[i]=1.5;continue;}\n\t\telse if(b[i]>=60)\n\t\t{\td[i]=1.0;continue;}\n\t\t}\n\tfor(i=n;i<10;i++)d[i]=0;\n\tfor(i=0;i=90&&s<=100)\n\t\tm=4.0;\n\telse\n\t{\n\t\tif (s>=85&&s<=89)\n\t\t\tm=3.7;\n\t\telse\n\t\t{\n\t\t\tif (s>=82&&s<=84)\n\t\t\t\tm=3.3;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (s>=78&&s<=81)\n\t\t\t\t\tm=3.0;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (s>=75&&s<=77)\n\t\t\t\t\t\tm=2.7;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (s>=72&&s<=74)\n\t\t\t\t\t\t\tm=2.3;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (s>=68&&s<=71)\n\t\t\t\t\t\t\t\tm=2.0;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (s>=64&&s<=67)\n\t\t\t\t\t\t\t\t\tm=1.5;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (s>=60&&s<=63)\n\t\t\t\t\t\t\t\t\t\tm=1.0;\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif (s<60)\n\t\t\t\t\t\t\t\t\t\t\tm=0.0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn (m);\n}\n\nvoid main()\n{\n\tint i,n,sum=0;\n\tfloat x=0;\n\tint xf[10],cj[10];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=90&&b[i]<=100) {c[i]=4.0;}\n if(b[i]>=85&&b[i]<=89) {c[i]=3.7;}\n\t\tif(b[i]>=82&&b[i]<=84) {c[i]=3.3;}\n\t\tif (b[i]>=78&&b[i]<=81) {c[i]=3.0;}\n\t\tif (b[i]>=75&&b[i]<=77) {c[i]=2.7;}\n\t\tif (b[i]>=72&&b[i]<=74) {c[i]=2.3;}\n\t\tif (b[i]>=68&&b[i]<=71) {c[i]=2.0;}\n\t\tif(b[i]>=64&&b[i]<=67) {c[i]=1.5;}\n\t\tif (b[i]>=60&&b[i]<=63) {c[i]=1.0;}\n\t\tif (b[i]<60) {c[i]=0;}\n\t}\n for(i=0;i89)\n\t\t b[j]=4.0;\n\t else\n\t\t if(a[1][j]>84)\n\t\t\t b[j]=3.7;\n\t\t else\n\t\t\t if(a[1][j]>81)\n\t\t\t\t b[j]=3.3;\n\t\t\t else\n\t\t\t\t if(a[1][j]>77)\n\t\t\t\t\t b[j]=3.0;\n\t\t\t\t else\n\t\t\t\t\t if(a[1][j]>74)\n\t\t\t\t\t\t b[j]=2.7;\n\t\t\t\t\t else\n\t\t\t\t\t\t if(a[1][j]>71)\n\t\t\t\t\t\t\t b[j]=2.3;\n\t\t\t\t\t\t else\n\t\t\t\t\t\t\t if(a[1][j]>67)\n\t\t\t\t\t\t\t\t b[j]=2.0;\n\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t if(a[1][j]>63)\n\t\t\t\t\t\t\t\t\t b[j]=1.5;\n\t\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t\t if(a[1][j]>59)\n\t\t\t\t\t\t\t\t\t\t b[j]=1.0;\n else\n\t\t\t\t\t\t\t\t\t\t b[j]=0;\n\t}\n GPA=0;\n\tfor(j=0;j89) gpa[i]=4;\n else if(defen[i]>84&&defen[i]<90) gpa[i]=3.7;\n else if(defen[i]>81&&defen[i]<85) gpa[i]=3.3;\n else if(defen[i]>77&&defen[i]<82) gpa[i]=3;\n else if(defen[i]>74&&defen[i]<78) gpa[i]=2.7;\n else if(defen[i]>71&&defen[i]<75) gpa[i]=2.3;\n else if(defen[i]>67&&defen[i]<72) gpa[i]=2;\n else if(defen[i]>63&&defen[i]<68) gpa[i]=1.5;\n else if(defen[i]>59&&defen[i]<64) gpa[i]=1;\n else if(defen[i]<60) gpa[i]=0;\n }\n for(i=0;i=90) gpa=4.0;\n\tif(grade<=89 && grade>=85) gpa=3.7;\n\tif(grade<=84 && grade>=82) gpa=3.3;\n\tif(grade<=81 && grade>=78) gpa=3.0;\n\tif(grade<=77 && grade>=75) gpa=2.7;\n\tif(grade<=74 && grade>=72) gpa=2.3;\n\tif(grade<=71 && grade>=68) gpa=2.0;\n\tif(grade<=67 && grade>=64) gpa=1.5;\n\tif(grade<=63 && grade>=60) gpa=1.0;\n\tif(grade<60) gpa=0.0;\n\treturn gpa;\n}\nint main()\n{\n\tfloat GPA,sumgpa=0;\n\tint n,i,a[11],b[11],sum=0;\n\tcin>>n;\n\tfor(i=1;i<=n;i++)//????????\n\t{\n\t\tcin>>a[i];\n\t\tsum=sum+a[i];\n\t}\n\tfor(i=1;i<=n;i++) //????????\n\t{\n\t\tcin>>b[i];\n\t\tsumgpa=sumgpa+gradetogpa(b[i])*a[i];\n\t}\n\tGPA=sumgpa/sum;\n\tprintf(\"%.2f\\n\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41150", "code": "int main(){\n int n,i;\n int m=0;\n double s=0;\n double x;\n scanf(\"%d\",&n);\n int sz[n],sx[n];\n double sy[n];\n for(i=0;i=90)\n\t\tjp=4.0;\n\telse if(p>=85)\n\t\tjp=3.7;\n\telse if(p>=82)\n\t\tjp=3.3;\n\telse if(p>=78)\n\t\tjp=3.0;\n\telse if(p>=75)\n\t\tjp=2.7;\n\telse if(p>=72)\n\t\tjp=2.3;\n\telse if(p>=68)\n\t\tjp=2.0;\n\telse if(p>=64)\n\t\tjp=1.5;\n\telse if(p>=60)\n\t\tjp=1.0;\n\telse\n\t\tjp=0.0;\n\treturn jp;\n}\nint main()\n{\n\tint n,p;\n\tscanf(\"%d\",&n);\n\tint list1[10];\n\tdouble list2[10];\n\tint i;\n\n\tfor(i=0;i=90 && g[i]<=100) g[i]=4;\n\t\telse if (g[i]>=85 && g[i]<=89) g[i]=3.7;\n\t\telse if (g[i]>=82 && g[i]<=84) g[i]=3.3;\n\t\telse if (g[i]>=78 && g[i]<=81) g[i]=3.0;\n\t\telse if (g[i]>=75 && g[i]<=77) g[i]=2.7;\n\t\telse if (g[i]>=72 && g[i]<=74) g[i]=2.3;\n\t\telse if (g[i]>=68 && g[i]<=71) g[i]=2.0;\n\t\telse if (g[i]>=64 && g[i]<=67) g[i]=1.5;\n\t\telse if (g[i]>=60 && g[i]<=63) g[i]=1.0;\n\t\telse g[i]=0;\n\t}\n\tfor (GPA=0,t=0,i=0;i=90)\n\t\t\tb=4.0;\n\t\tif(a>=85&&a<=89)\n\t\t\tb=3.7;\n\t\tif(a>=82&&a<=84)\n\t\t\tb=3.3;\n\t\tif(a>=78&&a<=81)\n\t\t\tb=3.0;\n\t\tif(a>=75&&a<=77)\n\t\t\tb=2.7;\n\t\tif(a>=72&&a<=74)\n\t\t\tb=2.3;\n\t\tif(a>=68&&a<=71)\n\t\t\tb=2.0;\n\t\tif(a>=64&&a<=67)\n\t\t\tb=1.5;\n\t\tif(a>=60&&a<=63)\n\t\t\tb=1.0;\n\t\tif(a<60)\n\t\t\tb=0.0;\n\t\tjidian[i]=b;\n\t\tsumjidian=sumjidian+xuefen[i]*jidian[i];\n\t}\n\tzhi=sumjidian/sumxuefen;\n\tprintf(\"%.2f\",zhi);\n\treturn 0;\n}\n\n"} +{"label": "83", "index": "41155", "code": "void main()\n{\n int i,n,xft=0;\n int xf[10],score[10];\n float GPA=0,jd[10];\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n {\n\t scanf(\"%d\",&xf[i]);\n\t xft=xft+xf[i];\n }\n for(i=0;i<=n-1;i++)\n {\n\t scanf(\"%d\",&score[i]);\n\t if(score[i]>=90) jd[i]=4.0;\n\t else if(score[i]>=85) jd[i]=3.7;\n\t else if(score[i]>=82) jd[i]=3.3;\n\t else if(score[i]>=78) jd[i]=3.0;\n\t else if(score[i]>=75) jd[i]=2.7;\n\t else if(score[i]>=72) jd[i]=2.3;\n\t else if(score[i]>=68) jd[i]=2.0;\n\t else if(score[i]>=64) jd[i]=1.5;\n\t else if(score[i]>=60) jd[i]=1.0;\n\t else if(score[i]>=0) jd[i]=0;\n }\n for(i=0;i<=n-1;i++)\n {\n\t GPA=GPA+xf[i]*jd[i];\n }\n GPA=GPA/xft;\n printf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41156", "code": "void main()\n{\n\tint n,i,k=0;\n scanf(\"%d\",&n);\n int a[n],b[n];\n\tdouble m,s=0.0,GPA;\n for(i=0;i=90)\n\t\t\tm=4.0;\n\t\telse if(b[i]>=85)\n\t\t\tm=3.7;\n\t\t\telse if(b[i]>=82)\n\t\t\t m=3.3;\n\t\t\t\telse if(b[i]>=78)\n\t\t \tm=3.0;\n\t\t\t\t\telse if(b[i]>=75)\n\t\t \tm=2.7;\n\t\t\t\t\t\telse if(b[i]>=72)\n\t\t \tm=2.3;\n\t\t\t\t\t\t\telse if(b[i]>=68)\n\t\t\t m=2.0;\n\t\t\t\t\t\t\t\telse if(b[i]>=64)\n\t\t\t m=1.5;\n\t\t\t\t\t\t\t\t\telse if(b[i]>=60)\n\t\t \tm=1.0;\n\t\t\t\t\t\t\t\t\t\telse m=0.0;\n\t\ts=s+a[i]*m;\n\t\tk=k+a[i];\n\t}\n\tGPA=s/k;\n\tprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41157", "code": "void main()\n{\n\tint a[2][10],sub,i,j;\n\tfloat GPA,g[10],subjd[10],sumxf=0,sumjd=0;\n\tscanf(\"%d\",&sub);\n\tfor(i=0;i<2;i++)\n\t{\n\t\tfor(j=0;j=90)\n\t\t\tg[j]=4.0;\n\t\telse if (a[1][j]>=85)\n\t\t\tg[j]=3.7;\n\t\telse if (a[1][j]>=82)\n\t\t\tg[j]=3.3;\n\t\telse if (a[1][j]>=78)\n\t\t\tg[j]=3.0;\n\t\telse if (a[1][j]>=75)\n\t\t\tg[j]=2.7;\n\t\telse if (a[1][j]>=72)\n\t\t\tg[j]=2.3;\n\t\telse if (a[1][j]>=68)\n\t\t\tg[j]=2.0;\n\t\telse if (a[1][j]>=64)\n\t\t\tg[j]=1.5;\n\t\telse if (a[1][j]>=60)\n\t\t\tg[j]=1.0;\n\t\telse if(a[1][j]<60)\n\t\t\tg[j]=0;\n\t}\n\tfor(j=0;j>n;\n\tint xuefen[n];\n\tdouble fenshu[n];\n\tint sumxuefen = 0;\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tcin>>xuefen[i];\n\t\tsumxuefen += xuefen[i];\n\t}\n\tfor(int i = 0; i < n; i++)\n\t\tcin>>fenshu[i];\n\tdouble sum = 0;\t\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tfor(int j = 0; j < 10; j++)\n\t\t\tif(fenshu[i] >= xia[j] && fenshu[i] <= shang[j])\n\t\t\t{\n\t\t\t\tfenshu[i] = jidian[j]*xuefen[i];\n\t\t\t\tsum += fenshu[i];\n\t\t\t}\n\t}\n\t\n\tdouble result = sum / sumxuefen;\n\tprintf(\"%.2f\",result);\n\t\n\treturn 0;\n}\n\t\t\t\t\n"} +{"label": "83", "index": "41159", "code": "main ()\n{\n int n,i,zongxf;\n cin>>n;\n int xf[n],df[n];\n double gpa,s,jd[n];\n for(i=0;i>xf[i];\n for(i=0;i>df[i];\n for(i=0;i=90 && df[i]<=100) jd[i]=4.0;\n else if(df[i]>=85 && df[i]<=89) jd[i]=3.7;\n else if(df[i]>=82 && df[i]<=84) jd[i]=3.3;\n else if(df[i]>=78 && df[i]<=81) jd[i]=3.0;\n else if(df[i]>=75 && df[i]<=77) jd[i]=2.7;\n else if(df[i]>=72 && df[i]<=74) jd[i]=2.3;\n else if(df[i]>=68 && df[i]<=71) jd[i]=2.0;\n else if(df[i]>=64 && df[i]<=67) jd[i]=1.5;\n else if(df[i]>=60 && df[i]<=63) jd[i]=1.0;\n else jd[i]=0;\n } \n \n s=0;\n zongxf=0;\n for(i=0;i=90)\n return 4.0;\n if(n<=89 && n>=85)\n return 3.7;\n if(n<=84 && n>=82)\n return 3.3;\n if(n<=81 && n>=78)\n return 3.0;\n if(n<=77 && n>=75)\n return 2.7;\n if(n<=74 && n>=72)\n return 2.3;\n if(n<=71 && n>=68)\n return 2.0;\n if(n<=67 && n>=64)\n return 1.5;\n if(n<=63 && n>=60)\n return 1.0;\n if(n<60)\n return 0;\n }\nint main()\n{\n int cred[11],score[11],n;\n cin>>n;\n double ans=0;\n for(int i=0;i>cred[i];\n ans+=cred[i];\n }\n double sc=0;\n for(int i=0;i>score[i];\n sc+=f(score[i])*cred[i];\n }\n ans = sc/ans;\n cout.precision(3);\n cout<=90&&grade[i]<=100) {\n p[i]=4.0;\n }\n else if(grade[i]>=85){\n p[i]=3.7;\n }\n else if(grade[i]>=82){\n p[i]=3.3;\n }\n else if(grade[i]>=78){\n p[i]=3.0;\n }\n else if(grade[i]>=75){\n p[i]=2.7;\n }\n else if(grade[i]>=72){\n p[i]=2.3;\n }\n else if(grade[i]>=68){\n p[i]=2.0;\n }\n else if(grade[i]>=64){\n p[i]=1.5;\n }\n else if(grade[i]>=60){\n p[i]=1.0;\n }\n else p[i]=0; \n sum=sum+p[i]*s[i];\n Sum=Sum+s[i];\n }\n GPA=sum/Sum;\n printf(\"%.2f\",GPA);\n return 0;\n}"} +{"label": "83", "index": "41162", "code": "int main(){\n int n,i,a[10],b[10],q=0;\n\tdouble m=0,p,c[10];\n scanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\tc[i]=4.0;\n\t\t}else if(b[i]>=85&&b[i]<=89){\n\t\t\tc[i]=3.7;\n\t\t}else if(b[i]>=82&&b[i]<=84){\n\t\t\tc[i]=3.3;\n\t\t}else if(b[i]>=78&&b[i]<=81){\n\t\t\tc[i]=3.0;\n\t\t}else if(b[i]>=75&&b[i]<=77){\n\t\t\tc[i]=2.7;\n\t\t}else if(b[i]>=72&&b[i]<=74){\n\t\t\tc[i]=2.3;\n\t\t}else if(b[i]>=68&&b[i]<=71){\n\t\t\tc[i]=2.0;\n\t\t}else if(b[i]>=64&&b[i]<=67){\n\t\t\tc[i]=1.5;\n\t\t}else if(b[i]>=60&&b[i]<=63){\n\t\t\tc[i]=1.0;\n\t\t}else if(b[i]<60){\n\t\t\tc[i]=0;\n\t\t}\n\t\tm=m+1.000000*a[i]*c[i];\n\t}\n\tp=m/q;\n\tprintf(\"%.2lf\",p);\n return 0;\n}"} +{"label": "83", "index": "41163", "code": "void main()\n{\n\tint n,a[11],c[11],i,j,k=0;\n\tfloat b[11],GPA,m=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tk=k+a[i];\n\t}\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tscanf(\"%d\",&c[j]);\n\t\tif(c[j]>=90)\n\t\t\tb[j]=4.0;\n\t\telse\n\t\t\tif(c[j]>=85)\n\t\t\t\tb[j]=3.7;\n\t\t\telse\n\t\t\t\tif(c[j]>=82)\n\t\t\t\t\tb[j]=3.3;\n\t\t\t\telse\n\t\t\t\t\tif(c[j]>=78)\n\t\t\t\t\t\tb[j]=3.0;\n\t\t\t\t\telse\n\t\t\t\t\t\tif(c[j]>=75)\n\t\t\t\t\t\t\tb[j]=2.7;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(c[j]>=72)\n\t\t\t\t\t\t\t\tb[j]=2.3;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif(c[j]>=68)\n\t\t\t\t\t\t\t\t\tb[j]=2.0;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tif(c[j]>=64)\n\t\t\t\t\t\t\t\t\t\tb[j]=1.5;\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tif(c[j]>=60)\n\t\t\t\t\t\t\t\t\t\t\tb[j]=1.0;\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tb[j]=0;\n\t\t\t\t\t\t\t\t\t\tm=m+b[j]*a[j];\n\t}\n\tGPA=(float)m/k;\n\tprintf(\"%.2lf\",GPA);\n}\n\n\n\n"} +{"label": "83", "index": "41164", "code": "int main()\n{\n int n,i,x;\n float a[100],jd,sumx,sumj;\n int b[20];\n for (i=0;i<=59;i++) a[i]=0;\n for (i=60;i<=63;i++) a[i]=1; \n for (i=64;i<=67;i++) a[i]=1.5;\n for (i=68;i<=71;i++) a[i]=2;\n for (i=72;i<=74;i++) a[i]=2.3;\n for (i=75;i<=77;i++) a[i]=2.7;\n for (i=78;i<=81;i++) a[i]=3;\n for (i=82;i<=84;i++) a[i]=3.3;\n for (i=85;i<=89;i++) a[i]=3.7;\n for (i=90;i<=100;i++) a[i]=4;\n scanf(\"%d\",&n);\n sumx=0;sumj=0;\n for (i=0;i=90)&&(chengji[i]<=100)){\n\t\tpoint[i]=4.0;\n\t}else if((chengji[i]>=85)&&(chengji[i]<=89)){\n\t\tpoint[i]=3.7;\n\t}else if((chengji[i]>=82)&&(chengji[i]<=84)){\n\t\tpoint[i]=3.3;\n\t}else if((chengji[i]>=78)&&(chengji[i]<=81)){\n\t\tpoint[i]=3.0;\n\t}else if((chengji[i]>=75)&&(chengji[i]<=77)){\n\t\tpoint[i]=2.7;\n\t}else if((chengji[i]>=72)&&(chengji[i]<74)){\n\t\tpoint[i]=2.3;\n\t}else if((chengji[i]>=68)&&(chengji[i]<=71)){\n\t\tpoint[i]=2.0;\n\t}else if((chengji[i]>=64)&&(chengji[i]<=67)){\n\t\tpoint[i]=1.5;\n\t}else if((chengji[i]>=60)&&(chengji[i]<=63)){\n\t\tpoint[i]=1.0;\n\t}else {\n point[i]=0;\n\t}\n\tt+=point[i]*xuefen[i];\n\t\n\t}\n\tGPA=1.0*t/s;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}\n \n"} +{"label": "83", "index": "41166", "code": "int main()\n{\n\tint a[100],n,i,c;\n\tdouble d,e,b[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%lf\",&b[i]);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(b[i]>=90)\n\t\t\tb[i]=4.0;\n\t\t\telse \n\t\t\t\tif(b[i]>=85)\n\t\t\t\t\tb[i]=3.7;\n\t\t\t\telse\n\t\t\t\t\tif(b[i]>=82)\n\t\t\t\t\t\tb[i]=3.3;\n\t\t\t\t\telse\n\t\t\t\t\t\tif(b[i]>=78)\n\t\t\t\t\t\t\tb[i]=3.0;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(b[i]>=75)\n\t\t\t\t\t\t\t\tb[i]=2.7;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif(b[i]>=72)\n\t\t\t\t\t\t\t\t\tb[i]=2.3;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tif(b[i]>=68)\n\t\t\t\t\t\t\t\t\t\tb[i]=2.0;\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tif(b[i]>=64)\n\t\t\t\t\t\t\t\t\t\t\tb[i]=1.5;\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tif(b[i]>=60)\n\t\t\t\t\t\t\t\t\t\t\t\tb[i]=1.0;\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\tb[i]=0;\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t\tb[i]=a[i]*b[i];\n\tfor(i=0,c=0;i<=n-1;i++)\n\t\tc=c+a[i];\n\tfor(i=0,d=0;i<=n-1;i++)\n\t\td=d+b[i];\n\te=d/c;\n\tprintf(\"%.2lf\\n\",e);\n\treturn 0;\n}\n\n\t\n"} +{"label": "83", "index": "41167", "code": "int main()\n{\n int i,sum1=0,n,c[10],shiji[10];\nfloat g[10] ,shidejidian[10],sum2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89)g[i]=4.0;\n\telse if(shiji[i]>84)g[i]=3.7;\n\telse if(shiji[i]>81)g[i]=3.3;\n\telse if(shiji[i]>77)g[i]=3.0;\n\telse if(shiji[i]>74)g[i]=2.7;\n\telse if(shiji[i]>71)g[i]=2.3;\n\telse if(shiji[i]>67)g[i]=2.0;\n\telse if(shiji[i]>63)g[i]=1.5;\n\telse if(shiji[i]>59)g[i]=1.0;\n\telse g[i]=0;\n\tshidejidian[i]=g[i]*c[i];\n\tsum2+=shidejidian[i];}\n\tprintf(\"%.2f\",(float)sum2/sum1);\n\n\n\n\n\n}"} +{"label": "83", "index": "41168", "code": "float mark(int a)\n{\n\tif(a>=90&&a<=100)\n\t\treturn(4.0);\n\telse if(a>=85&&a<=89)\n\t\treturn(3.7);\n\telse if(a>=82&&a<=84)\n\t\treturn(3.3);\n\telse if(a>=78&&a<=81)\n\t\treturn(3.0);\n\telse if(a>=75&&a<=77)\n\t\treturn(2.7);\n\telse if(a>=72&&a<=74)\n\t\treturn(2.3);\n\telse if(a>=68&&a<=71)\n\t\treturn(2.0);\n\telse if(a>=64&&a<=67)\n\t\treturn(1.5);\n\telse if(a>=60&&a<=63)\n\t\treturn(1.0);\n\telse if(a<=59)\n\t\treturn(0);\n}\nint main()\n{\n\tint n;\n\tint all[10]={0};\n\tint score[10]={0};\n\tfloat GPA;\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0;i89){gp[i]=4.0;\n }else if(cj[i]>84&&cj[i]<90){\n gp[i]=3.7;\n }else if(cj[i]>81&&cj[i]<85){\n gp[i]=3.3;\n }else if(cj[i]>77&&cj[i]<82){\n gp[i]=3.0;\n }else if(cj[i]>74&&cj[i]<78){\n gp[i]=2.7;\n }else if(cj[i]>71&&cj[i]<75){\n gp[i]=2.3;\n }else if(cj[i]>67&&cj[i]<72){\n gp[i]=2.0;\n }else if(cj[i]>63&&cj[i]<68){\n gp[i]=1.5;\n }else if(cj[i]>59&&cj[i]<64){\n gp[i]=1;\n }else{\n gp[i]=0;\n }\n }\n gpa=0,XF=0;\n for(i=0;i=90){\n\t\t sz[i]=4.0;\n\t }else if(u[i]<90&&u[i]>=85){\n\t\t sz[i]=3.7;\n }else if(u[i]<85&&u[i]>=82){\n\t\t\tsz[i]=3.3;\n }else if(u[i]<82&&u[i]>=78){\n\t\t\t sz[i]=3.0;\n\t\t }else if(u[i]<78&&u[i]>=75){\n\t\t\t\tsz[i]=2.7;\n\t\t }else if(u[i]<75&&u[i]>=72){\n\t\t\t\t sz[i]=2.3;\n }else if(u[i]<72&&u[i]>=68){ \n\t\t\t\tsz[i]=2.0;\n\t\t }else if(u[i]<68&&u[i]>=64){\n\t\t\t\t\t sz[i]=1.5;\n }else if(u[i]<64&&u[i]>=60){\n\t\t\t\t\t\tsz[i]=1.0;\n\t\t\t}else{\n\t\t\t\t\t\t sz[i]=0;\n\t\t }\n\t\t\txfjd[i]=sz[i]*xf[i];\n\t\t\tsum+=xfjd[i];\n\t\t\tk+=xf[i]; \n\n\t} \n\tGPA=sum/k;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41171", "code": "void main()\n{\n\tint i,k=0,n,a[10],b[10];\n\tfloat c,m=0,GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100) c=4.0;\n\t\telse if(b[i]>=85) c=3.7;\n\t\telse if(b[i]>=82) c=3.3;\n\t\telse if(b[i]>=78) c=3.0;\n\t\telse if(b[i]>=75) c=2.7;\n\t\telse if(b[i]>=72) c=2.3;\n\t\telse if(b[i]>=68) c=2.0;\n\t\telse if(b[i]>=64) c=1.5;\n\t\telse if(b[i]>=60) c=1.0;\n\t\telse if(b[i]>=0) c=0;\n\t\tm=m+a[i]*c;\n\t\tk=k+a[i];\n\t}\n\tGPA=m/k;\n\tprintf(\"%.2f\\n\",GPA);\n}"} +{"label": "83", "index": "41172", "code": "int main(){\n\tint n,a,xf[10],df[10],i;\n\tfloat s,GPA;\n\ts=0;\n\ta=0;\n\tscanf(\"%d\",&n);\n for(i=0;i=90&&a[i]<=100){\n\t\t\tax[i]=4.0;\n\t\t}\n\t\telse if(a[i]>=85&&a[i]<=89){\n\t\t\tax[i]=3.7;\n\t\t}\n\t\telse if(a[i]>=82&&a[i]<=84){\n\t\t\tax[i]=3.3;\n\t\t}\n\t\telse if(a[i]>=78&&a[i]<=81){\n\t\t\tax[i]=3.0;\n\t\t}\n\t\telse if(a[i]>=75&&a[i]<=77){\n\t\t\tax[i]=2.7;\n\t\t}\n\t\telse if(a[i]>=72&&a[i]<=74){\n\t\t\tax[i]=2.3;\n\t\t}\n\t\telse if(a[i]>=68&&a[i]<=71){\n\t\t\tax[i]=2.0;\n\t\t}\n\t\telse if(a[i]>=64&&a[i]<=67){\n\t\t\tax[i]=1.5;\n\t\t}\n\t\telse if(a[i]>=60&&a[i]<=63){\n\t\t\tax[i]=1.0;\n\t\t}\n\t\telse if(a[i]<=59){\n\t\t\tax[i]=0;\n\t\t}\n\t}\n\tdouble s1,s2,c;\n\ts1=0;\n\ts2=0;\n\tfor(i=0;i=90)return 4;\t\n\tif(a>=85)return 3.7;\n\tif(a>=82)return 3.3;\n\tif(a>=78)return 3;\n\tif(a>=75)return 2.7;\n\tif(a>=72)return 2.3;\n\tif(a>=68)return 2;\n\tif(a>=64)return 1.5;\n\tif(a>=60)return 1;\n\treturn 0;\n}\nint main(){\nint n;\ncin>>n;\ndouble f[10];\ndouble s=0;\nfor(int i=0;i>f[i];\n\ts+=f[i];\n}\ndouble gpa=0;\nfor(int i=0;i>a;\n\tgpa+=cl(a)*f[i];\n}\nprintf(\"%.2f\",gpa/s);\nreturn 0;\n}"} +{"label": "83", "index": "41175", "code": "int main(){\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tint cj[10],xf[10],s2=0;\n\tdouble jd[10],xfjd[10],s1=0.0,gpa;\n\tfor(i=0;i=90){\n\t\tjd[i]=4.0;\n\t\t}\n\t\telse if(cj[i]>=85&&cj[i]<=89){\n\t\tjd[i]=3.7;\n\t\t}\n\t\telse if(cj[i]>=82&&cj[i]<=84){\n\t\tjd[i]=3.3;\n\t\t}\n\t\telse if(cj[i]>=78&&cj[i]<=81){\n\t\tjd[i]=3.0;\n\t\t}\n\t\telse if(cj[i]>=75&&cj[i]<=77){\n\t\tjd[i]=2.7;\n\t\t}\n\t\telse if(cj[i]>=72&&cj[i]<=74){\n\t\tjd[i]=2.3;\n\t\t}\n\t\telse if(cj[i]>=68&&cj[i]<=71){\n\t\tjd[i]=2.0;\n\t\t}\n\t\telse if(cj[i]>=64){\n\t\tjd[i]=1.5;\n\t\t}\n\t\telse if(cj[i]>=60){\n\t\tjd[i]=1.0;\n\t\t}\n\t\telse{\n\t\tjd[i]=0.0;\n\t\t}\n\n\t}\nfor(i=0;i=90){\n jidian[i]=4.0;\n }else if(defen[i]>=85&&defen[i]<=89){\n jidian[i]=3.7;\n }else if(defen[i]>=82&&defen[i]<=84){\n jidian[i]=3.3;\n }else if(defen[i]>=78&&defen[i]<=81){\n jidian[i]=3.0;\n }else if(defen[i]>=75&&defen[i]<=77){\n jidian[i]=2.7;\n }else if(defen[i]>=72&&defen[i]<=74){\n jidian[i]=2.3;\n }else if(defen[i]>=68&&defen[i]<=71){\n jidian[i]=2.0;\n }else if(defen[i]>=64&&defen[i]<=67){\n jidian[i]=1.5;\n }else if(defen[i]>=60&&defen[i]<=63){\n jidian[i]=1.0;\n }else if(defen[i]<60){\n jidian[i]=0;\n }\n }for(i=0;i<=n-1;i++){\n x=x+1.0*jidian[i]*xuefen[i];\n }GPA=x/s;\n printf(\"%.2lf\\n\",GPA);\n return 0;\n}\n"} +{"label": "83", "index": "41177", "code": "int main()\n{\n\tint numb,a[100],b[100],i,N=0,y,M=0,m=65535;\n\tfloat c[100],S=0,t;\n\tscanf(\"%d\",&numb);\n\tfor (i=0;i89)\n\t\tc[i]=4.0;\n\t\tif (b[i]<90&&b[i]>84)\n\t\tc[i]=3.7;\n\t\tif (b[i]<85&&b[i]>81)\n\t\tc[i]=3.3;\n\t\tif (b[i]<82&&b[i]>77)\n\t\tc[i]=3.0;\n\t\tif (b[i]<78&&b[i]>74)\n\t\tc[i]=2.7;\n\t\tif (b[i]<75&&b[i]>71)\n\t\tc[i]=2.3;\n\t\tif (b[i]<72&&b[i]>67)\n\t\tc[i]=2.0;\n\t\tif (b[i]<68&&b[i]>63)\n\t\tc[i]=1.5;\n\t\tif (b[i]<64&&b[i]>59)\n\t\tc[i]=1.0;\n\t\tif (b[i]<60&&b[i]>=0)\n\t\tc[i]=0;\n\t\tS=c[i]*a[i]+S;\n\t}\n\tt=S/N;\n\tprintf(\"%.2f\",t);\n\treturn 0;\n}"} +{"label": "83", "index": "41178", "code": "\n\nint main(){ \n int n,i,sum=0;\n\tdouble z=0,t[M];\n\n\tint xf[M],g[M];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&xf[i]);\n\t\tsum+=xf[i];\n\n\t}\n\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&g[i]);\n\t\tif(g[i]<60){t[i]=0;}\n\t\tif(g[i]>=60&&g[i]<=63){t[i]=1.0;}\n\t\tif(g[i]>=64&&g[i]<=67){t[i]=1.5;}\n\t\tif(g[i]>=68&&g[i]<=71){t[i]=2.0;} \n\t\tif(g[i]>=72&&g[i]<=74){t[i]=2.3;} \n\t\tif(g[i]>=75&&g[i]<=77){t[i]=2.7;} \n\t\tif(g[i]>=78&&g[i]<=81){t[i]=3.0;} \n\t\tif(g[i]>=82&&g[i]<=84){t[i]=3.3;} \n\t\tif(g[i]>=85&&g[i]<=89){t[i]=3.7;} \n\n\t\tif(g[i]>=90){t[i]=4.0;}\n\n z+=t[i]*xf[i];\t\t\n\t\n\t}\n printf(\"%.2lf\",z/sum);\n \n\t\t\n\treturn 0;\n\n}\n \n"} +{"label": "83", "index": "41179", "code": "int main (){\n int i,k,xf[10],df[10];\n double GPA,result;\n double s=0;\n double num=0;\n scanf(\"%d\",&k);\n for(i=0;i<=k-1;i++)\n scanf(\"%d\",&xf[i]);\n for(i=0;i<=k-1;i++)\n scanf(\"%d\",&df[i]);\n for(i=0;i<=k-1;i++){\n if(90<=df[i]&&df[i]<=100){\n result=4.0*xf[i];\n }\n if(85<=df[i]&&df[i]<=89){\n result=3.7*xf[i];\n }\n if(82<=df[i]&&df[i]<=84){\n result=3.3*xf[i];\n }\n if(78<=df[i]&&df[i]<=81){\n result=3.0*xf[i];\n }\n if(75<=df[i]&&df[i]<=77){\n result=2.7*xf[i];\n }\n if(72<=df[i]&&df[i]<=74){\n result=2.3*xf[i];\n }\n if(68<=df[i]&&df[i]<=71){\n result=2.0*xf[i];\n }\n if(64<=df[i]&&df[i]<=67){\n result=1.5*xf[i];\n }\n if(60<=df[i]&&df[i]<=63){\n result=1.0*xf[i];\n }\n if(df[i]<60){\n result=0;\n }\n num=num+result;\n s=xf[i]+s;\n }\n\n GPA=num/s;\n printf(\"%.2lf\",GPA);\n return 0;\n }\n \n"} +{"label": "83", "index": "41180", "code": "int main()\n {\n \n int j,k,n,l,sum;float GPA,bb;\n int b[10]={0},a[10]={0}; float c[10]={0};\n \n \n scanf(\"%d\",&n);\n \n for(j=0;j>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\tcin>>a[i];\nsum2=sum2+a[i];\n\t\n\t}\nfor(i=1;i<=n;i++)\n\t{\n\tcin>>b[i];\nif(b[i]>=90)\n{\n c[i]=4.0;\n}\nelse\nif(b[i]>=85)\n{\n c[i]=3.7;\n}\nelse\nif(b[i]>=82)\n{\n c[i]=3.3;\n}\nelse\nif(b[i]>=78)\n{\n c[i]=3.0;\n}else\nif(b[i]>=75)\n{\n c[i]=2.7;\n}else\nif(b[i]>=72)\n{\n c[i]=2.3;\n}else\nif(b[i]>=68)\n{\n c[i]=2.0;\n}else\nif(b[i]>=64)\n{\n c[i]=1.5;\n}else\nif(b[i]>=60)\n{\n c[i]=1.0;\n}else\n{\nc[i]=0;\n}\nsum1=sum1+c[i]*a[i];\n\t\n\t}\ncout<=90))\n\t\t{\n\t\t\tb[j]=4.0;\n\t\t}\n\t\telse if(((score[j])<=89)&&((score[j])>=85))\n\t\t{\n\t\t\tb[j]=3.7;\n\t\t}\n\t\telse if(((score[j])<=84)&&((score[j])>=82))\n\t\t{\n\t\t\tb[j]=3.3;\n\t\t}\n\t\telse if(((score[j])<=81)&&((score[j])>=78))\n\t\t{\n\t\t\tb[j]=3.0;\n\t\t}\n\t\telse if(((score[j])<=77)&&((score[j])>=75))\n\t\t{\n\t\t\tb[j]=2.7;\n\t\t}\n\t\telse if(((score[j])<=74)&&((score[j])>=72))\n\t\t{\n\t\t\tb[j]=2.3;\n\t\t}\n\t\telse if(((score[j])<=71)&&((score[j])>=68))\n\t\t{\n\t\t\tb[j]=2.0;\n\t\t}\n\t\telse if(((score[j])<=67)&&((score[j])>=64))\n\t\t{\n\t\t\tb[j]=1.5;\n\t\t}\n\t\telse if(((score[j])<=63)&&((score[j])>=60))\n\t\t{\n\t\t\tb[j]=1.0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[j]=0;\n\t\t}\n\t}\n\tfor(k=0;k=90&&s[1][k]<=100)\n\t\t{\n\t\t\tc=4.0;\n\t\t}\n\t\telse if(s[1][k]>=85&&s[1][k]<=89)\n\t\t{\n\t\t\tc=3.7;\n\t\t}\n\t\telse if(s[1][k]>=82&&s[1][k]<=84)\n\t\t{\n\t\t\tc=3.3;\n\t\t}\n else if(s[1][k]>=78&&s[1][k]<=81)\n\t\t{\n\t\t\tc=3.0;\n\t\t}\n\n else if(s[1][k]>=75&&s[1][k]<=77)\n\t\t{\n\t\t\tc=2.7;\n\t\t}\n\n else if(s[1][k]>=72&&s[1][k]<=74)\n\t\t{\n\t\t\tc=2.3;\n\t\t}\n\n \telse if(s[1][k]>=68&&s[1][k]<=71)\n\t\t{\n\t\t\tc=2.0;\n\t\t}\n else if(s[1][k]>=64&&s[1][k]<=67)\n\t\t{\n\t\t\tc=1.5;\n\t\t}\n\t\telse if(s[1][k]>=60&&s[1][k]<=63)\n\t\t{\n\t\t\tc=1.0;\n\t\t}\n\t\telse if(s[1][k]<60)\n\t\t{\n\t\t\tc=0;\n\t\t}\n\t\tsum2+=c*s[0][k];\n\t}\n\tresult=sum2/sum1;\n\tprintf(\"%.2lf\",result);\n}"} +{"label": "83", "index": "41186", "code": "int main()\n{\n\tint n,a[2][10],sum=0,i;\n\tdouble GPA=0,b[2][10];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[0][i]);\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[1][i]);\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n sum=sum+a[0][i];\n\t}\n for(i=1;i<=n;i++)\n\t{\n\t\tif(a[1][i]>=90) b[1][i]=4.0;\n\t\tif(a[1][i]>=85&&a[1][i]<90) b[1][i]=3.7;\n\t\tif(a[1][i]>=82&&a[1][i]<85) b[1][i]=3.3;\n\t\tif(a[1][i]>=78&&a[1][i]<82) b[1][i]=3.0;\n\t\tif(a[1][i]>=75&&a[1][i]<78) b[1][i]=2.7;\n\t\tif(a[1][i]>=72&&a[1][i]<75) b[1][i]=2.3;\n\t\tif(a[1][i]>=68&&a[1][i]<72) b[1][i]=2.0;\n\t\tif(a[1][i]>=64&&a[1][i]<68) b[1][i]=1.5;\n\t\tif(a[1][i]>=60&&a[1][i]<64) b[1][i]=1.0;\n\t\tif(a[1][i]<60) b[1][i]=0;\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tGPA=GPA+b[1][i]*a[0][i];\n\t}\n\tGPA=GPA/sum;\n\tprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41187", "code": "int main(){\n\tint n,i,a,sum2;\n\tint xuefen[10];\n\tdouble GPA,sum1;\n\tdouble jidian[10];\n\tsum1=0;\n\tsum2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89&&a<101){\n\t\t\tjidian[i]=4.0;\n\t\t}else if(a>84&&a<90){\n\t\t\tjidian[i]=3.7;\n\t\t}else if(a>81&&a<85){\n\t\t\tjidian[i]=3.3;\n\t\t}else if(a>77&&a<82){\n\t\t\tjidian[i]=3.0;\n\t\t}else if(a>74&&a<78){\n\t\t\tjidian[i]=2.7;\n\t\t}else if(a>71&&a<75){\n\t\t\tjidian[i]=2.3;\n\t\t}else if(a>67&&a<72){\n\t\t\tjidian[i]=2.0;\n\t\t}else if(a>63&&a<68){\n\t\t\tjidian[i]=1.5;\n\t\t}else if(a>59&&a<64){\n\t\t\tjidian[i]=1.0;\n\t\t}else{\n\t\t\tjidian[i]=0.0;\n\t\t} \n\t}\n\t\n\tfor(i=0;i=90)a[2][j]=4.0;\n\t\t\telse if(a[1][j]>=85)a[2][j]=3.7;\n\t\t\telse if(a[1][j]>=82)a[2][j]=3.3;\n\t\t\telse if(a[1][j]>=78)a[2][j]=3.0;\n\t\t\telse if(a[1][j]>=75)a[2][j]=2.7;\n\t\t\telse if(a[1][j]>=72)a[2][j]=2.3;\n\t\t\telse if(a[1][j]>=68)a[2][j]=2.0;\n\t\t\telse if(a[1][j]>=64)a[2][j]=1.5;\n\t\t\telse if(a[1][j]>=60)a[2][j]=1.0;\n\t\t\telse a[2][j]=0;\n\t\t\t\n\t\t}\n\t\tfor(j=0;j<=n-1;j++)\n\t\t{\n\t\t\tb[j]=a[0][j]*a[2][j];\n\t\tm=m+b[j];\n\t\t\tp=p+a[0][j];\n\t\t}\n\t\tGPA=m/p;\n\t\tprintf(\"%.2f\\n\",GPA);\n}\n"} +{"label": "83", "index": "41189", "code": "int main()\n{\n\tint n,i,sc,xuefen[10],S=0;\n float s=0,gpa,average;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t\tgpa=4.0;\n\t\t\telse if(sc<=89&&sc>=85)\n\t\t\tgpa=3.7;\n\t\t\telse if(sc<=84&&sc>=82)\n\t\t\tgpa=3.3;\n\t\t\telse if(sc>=78&&sc<=81)\n gpa=3.0;\n\t\t\telse if(sc>=75&&sc<=77)\n gpa=2.7;\n\t\t\telse if(sc>=72&&sc<=74)\n gpa=2.3;\n else if(sc>=68&&sc<=71)\n gpa=2.0;\n else if(sc>=64&&sc<=67)\n gpa=1.5;\n else if(sc>=60&&sc<=63)\n gpa=1.0;\n else if(sc<60)\n gpa=0.0;\n\t\t\t s=s+xuefen[i]*gpa;\n\t}\n\taverage=s/S;\n\tprintf(\"%.2f\",average);\n}\n\n\n"} +{"label": "83", "index": "41190", "code": "void main()\n{\n\tint n,i,s=0;\n\tint a[10],b[10];\n\tfloat t=0;\n\tfloat c[10];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\ts=s+a[i];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&b[i]);\n\t\tif(b[i]<=100&&b[i]>=90) c[i]=4.0;\n\t\telse if(b[i]<=89&&b[i]>=85) c[i]=3.7;\n\t\telse if(b[i]<=84&&b[i]>=82) c[i]=3.3;\n\t\telse if(b[i]<=81&&b[i]>=78) c[i]=3.0;\n\t\telse if(b[i]<=77&&b[i]>=75) c[i]=2.7;\n\t\telse if(b[i]<=74&&b[i]>=72) c[i]=2.3;\n\t\telse if(b[i]<=71&&b[i]>=68) c[i]=2.0;\n\t\telse if(b[i]<=67&&b[i]>=64) c[i]=1.5;\n\t\telse if(b[i]<=63&&b[i]>=60) c[i]=1.0;\n\t\tt+=c[i]*a[i];\n\t}\n\tprintf(\"%.2f\",t/s);\n}"} +{"label": "83", "index": "41191", "code": "void main()\n{\n\tint a[10],b[10],m=0,n,i;float c[10],GPA,sum=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100)c[i]=a[i]*4.0;\nif(b[i]>=85&&b[i]<=89)c[i]=a[i]*3.7;\nif(b[i]>=82&&b[i]<=84)c[i]=a[i]*3.3;\nif(b[i]>=78&&b[i]<=81)c[i]=a[i]*3.0;\t\nif(b[i]>=75&&b[i]<=77)c[i]=a[i]*2.7;\nif(b[i]>=72&&b[i]<=74)c[i]=a[i]*2.3;\nif(b[i]>=68&&b[i]<=71)c[i]=a[i]*2.0;\nif(b[i]>=64&&b[i]<=67)c[i]=a[i]*1.5;\nif(b[i]>=60&&b[i]<=63)c[i]=a[i]*1.0;\nif(b[i]<60)c[i]=0.0;\n\t}\nfor(i=0;i= 90 && x <= 100) return 4.0;\n\telse if(x >= 85 && x <= 89) return 3.7;\n\telse if(x >= 82 && x <= 84) return 3.3;\n\telse if(x >= 78 && x <= 81) return 3.0;\n\telse if(x >= 75 && x <= 77) return 2.7;\n\telse if(x >= 72 && x <= 74) return 2.3;\n\telse if(x >= 68 && x <= 71) return 2.0;\n\telse if(x >= 64 && x <= 67) return 1.5;\n\telse if(x >= 60 && x <= 63) return 1.0;\n\telse return 0;\n}"} +{"label": "83", "index": "41193", "code": "int main()\n{\n\tint n,z[10];\n\tfloat s[10],u[10],a=0.0,b,c=0.0;\n\tfloat GPA;\n int i=0;\n\tscanf(\"%d\",&n);\n\twhile(i=90&&s[i]<=100){\n\t\t\tb=4.0;\n\t\t}\n\t\tif(s[i]>=85&&s[i]<=89){\n\t\t\tb=3.7;\n\t\t}\n\t if(s[i]>=82&&s[i]<=84){\n\t\t\tb=3.3;\n\t\t}\n \tif(s[i]>=78&&s[i]<=81){\n\t\t\tb=3.0;\n\t\t}\n \tif(s[i]>=75&&s[i]<=77){\n\t\t\tb=2.7;\n\t\t}\n\t if(s[i]>=72&&s[i]<=74){\n\t\t\tb=2.3;\n\t\t}\n\t if(s[i]>=68&&s[i]<=71){\n\t\t\tb=2.0;\n\t\t}\n\t if(s[i]>=64&&s[i]<=67){\n\t\t\tb=1.5;\n\t\t}\n \tif(s[i]>=60&&s[i]<=63){\n\t\t\tb=1.0;\n\t\t}\n\t if(s[i]<60){\n\t\t\tb=0.0;\n\t\t}\n\t u[i]=b*z[i];\n\t a=a+u[i];\n\t i++;\n\t}\n\tGPA=a/c;\n\tprintf(\"%.2f\",GPA);\n\t//scanf(\"%d\",&n);\n\treturn 0;\n}"} +{"label": "83", "index": "41194", "code": "int main(){\n int n,u[100],v[100];\n float a[100],b[100],t,s,r;\n scanf(\"%d\",&n);\n\tt=0.0;\n s=0.0;\n for(int i=0;i<=(n-1);i++){\n scanf(\"%d \",&u[i]);\n s=s+u[i]*(1.0);\n }\n for(int i=0;i<=(n-1);i++){\n scanf(\"%d \",&v[i]);\n\t\t\t}\n for(int i=0;i<=(n-1);i++){\n\t\tif((v[i]>=90)&&(v[i]<=100)){\n a[i]=4.0;} \n else if((v[i]<=89)&&(v[i]>=85)){\n a[i]=3.7;}\n else if((v[i]<=84)&&(v[i]>=82)){\n a[i]=3.3;}\n else if((v[i]<=81)&&(v[i]>=78)){\n a[i]=3.0;}\n else if((v[i]<=77)&&(v[i]>=75)){\n a[i]=2.7;}\n else if((v[i]<=74)&&(v[i]>=72)){\n a[i]=2.3;}\n else if((v[i]<=71)&&(v[i]>=68)){\n a[i]=2.0;}\n else if((v[i]<=67)&&(v[i]>=64)){\n a[i]=1.5;}\n else if((v[i]<=63)&&(v[i]>=60)){\n a[i]=1.0;}\n else if((v[i]<60)){\n a[i]=0.0;}\n\t\t\t\t\t\t\t\t\t\t}\n for(int i=0;i<=(n-1);i++){\n b[i]=u[i]*1.0*a[i];\n t=t+b[i];\n }\n r=t/s;\n printf(\"%.2f\",r);\n\treturn 0;\n }\n"} +{"label": "83", "index": "41195", "code": "int main()\n{\n\tint num=0, sco[10]={0}, gra[10]={0}, i, totalsco=0;\n\tfloat gpa=0.0, totalgpa=0.0, jd[10]={0.0};\n\tscanf(\"%d\", &num);\n\tgetchar();\n\tfor(i=0;i=90 && gra[i]<=100) jd[i]=4.0;\n\t\tif(gra[i]>=85 && gra[i]<=89) jd[i]=3.7;\n\t\tif(gra[i]>=82 && gra[i]<=84) jd[i]=3.3;\n\t\tif(gra[i]>=78 && gra[i]<=81) jd[i]=3.0;\n\t\tif(gra[i]>=75 && gra[i]<=77) jd[i]=2.7;\n\t\tif(gra[i]>=72 && gra[i]<=74) jd[i]=2.3;\n\t\tif(gra[i]>=68 && gra[i]<=71) jd[i]=2.0;\n\t\tif(gra[i]>=64 && gra[i]<=67) jd[i]=1.5;\n\t\tif(gra[i]>=60 && gra[i]<=63) jd[i]=1.0;\n\t\tif(gra[i]<60) jd[i]=0;\n\t\ttotalsco+=sco[i];\n\t\ttotalgpa+=jd[i]*sco[i];\n\t}\n\tgpa=totalgpa/totalsco;\n\tprintf(\"%.2f\\n\", gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41196", "code": "int main()\n{\n\tint n,i;\n\tint u[200];\n\tint r[200];\n\tfloat s[200];\n\tfloat k,w,p;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&r[i]);\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d \",&u[i]);\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tif(u[i]>=90){\n\t\t\ts[i]=4.0;\n\t\t}else{\n\t\t\tif(u[i]>=85){\n\t\t\t\ts[i]=3.7;\n\t\t\t}else{\n\t\t\t\tif(u[i]>=82){\n\t\t\t\t\ts[i]=3.3;\n\t\t\t\t}else{\n\t\t\t\t\tif(u[i]>=78){\n\t\t\t\t\t\ts[i]=3.0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(u[i]>=75){\n\t\t\t\t\t\t\ts[i]=2.7;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif(u[i]>=72){\n\t\t\t\t\t\t\t\ts[i]=2.3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif(u[i]>=68){\n\t\t\t\t\t\t\t\t\ts[i]=2.0;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif(u[i]>=64){\n\t\t\t\t\t\t\t\t\t\ts[i]=1.5;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tif(u[i]>=60){\n\t\t\t\t\t\t\t\t\t\t\ts[i]=1.0;\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\ts[i]=0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tk=0;\n\tp=0;\n\t\tfor(i=1;i<=n;i++){\n\t\t\tk=k+s[i]*r[i];\n\t\t\tp=p+r[i];\n\t\t}\n\t\tw=k/p;\n\t\tprintf(\"%.2f\",w);\n\t\treturn 0;\n\t}\n\t\t\n"} +{"label": "83", "index": "41197", "code": "int main(){\n\tint n,i;\n\tfloat x[100];\n float y[100];\n float z[100];\n\tfloat m[100];\n float GPA;\n\tfloat a=0;\n\tfloat b=0;\n scanf(\"%d\",&n);\n for(i=0;i=90){\n\t\t\tm[i]=4.0;\n\t\t}\n if(x[i]<=89&&x[i]>=85){\n\t\t\tm[i]=3.7;\n\t\t}\n if(x[i]<=84&&x[i]>=82){\n\t\t\tm[i]=3.3;\n\t\t}\n if(x[i]<=81&&x[i]>=78){\n\t\t\tm[i]=3.0;\n\t\t}\n if(x[i]<=77&&x[i]>=75){\n\t\t\tm[i]=2.7;\n\t\t}\n if(x[i]<=74&&x[i]>=72){\n\t\t\tm[i]=2.3;\n\t\t}\n\n\t\tif(x[i]<=71&&x[i]>=68){\n\t\t\tm[i]=2.0;\n\t\t}\n\n \t if(x[i]<=67&&x[i]>=64){\n\t\t\tm[i]=1.5;\n\t\t}\n if(x[i]<=63&&x[i]>=60){\n\t\t\tm[i]=1.0;\n\t\t}\n if(x[i]<60){\n\t\t\tm[i]=0.0;\n\t\t}\n\t}\n\n\tfor(i=0;i=90.0)\n\t\t\tg[i]=4.0;\n\t\telse if(score[i]<=89.0&&score[i]>=85.0)\n\t\t\tg[i]=3.7;\n\t\telse if(score[i]<=84.0&&score[i]>=82.0)\n\t\t\tg[i]=3.3;\n\t\telse if(score[i]<=81.0&&score[i]>=78.0)\n\t\t\tg[i]=3.0;\n\t\telse if(score[i]<=77.0&&score[i]>=75.0)\n\t\t\tg[i]=2.7;\n\t\telse if(score[i]<=74.0&&score[i]>=72.0)\n\t\t\tg[i]=2.3;\n\t\telse if(score[i]<=71.0&&score[i]>=68.0)\n\t\t\tg[i]=2.0;\n\t\telse if(score[i]<=67.0&&score[i]>=64.0)\n\t\t\tg[i]=1.5;\n\t\telse if(score[i]<=63.0&&score[i]>=60.0)\n\t\t\tg[i]=1.0;\n\t\telse g[i]=0;\n\t\tsg=sg+g[i]*pow[i];\n\t}\n\tgpa=sg/s;\n\tprintf(\"\\n%.2f\",gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41199", "code": "void main()\n{\n\tint a[11],b[11];\n\tint g=0,i,n;\n\tfloat GPA,c[11],f=0,d[11];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t\tc[i]=4.0;\n\t\telse if(b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if(b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\telse if(b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if(b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if(b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\telse if(b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\telse if(b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\telse\n\t\t\tc[i]=0;\n\t}\n\tfor(i=0;i=90)&&(chengji[i]<=100)){\n\t\tjidian[i]=4.0;}\n\tif((chengji[i]>=85)&&(chengji[i]<=89)){\n\t\tjidian[i]=3.7;}\n\tif((chengji[i]>=82)&&(chengji[i]<=84)){\n\t\tjidian[i]=3.3;}\n if((chengji[i]>=78)&&(chengji[i]<=81)){\n\t\tjidian[i]=3.0;}\n\tif((chengji[i]>=75)&&(chengji[i]<=77)){\n\t\tjidian[i]=2.7;}\n\tif((chengji[i]>=72)&&(chengji[i]<=74)){\n\t\tjidian[i]=2.3;}\n\tif((chengji[i]>=68)&&(chengji[i]<=71)){\n\t\tjidian[i]=2.0;}\n\tif((chengji[i]>=64)&&(chengji[i]<=67)){\n\t\tjidian[i]=1.5;}\n\tif((chengji[i]>=60)&&(chengji[i]<=63)){\n\t\tjidian[i]=1.0;}\n\tif(chengji[i]<=60){\n\t\tjidian[i]=0;}\n zongjidian+=1.0*xuefen[i]*jidian[i];\n\t\t\tzongxuefen+=xuefen[i];\n\t\t}\n zongpingjidian=1.0*zongjidian/zongxuefen;\n\tprintf(\"%.2lf\",zongpingjidian);\nreturn 0;\n\n\n}\n"} +{"label": "83", "index": "41201", "code": "void main()\n{\nint i,n;\nfloat b[10],y,s,a[10],x,GPA;\nscanf(\"%d\",&n);\ny=0;\nfor(i=0;i=90&&x<=100)\n a[i]=4.0;\nelse if(x>=85&&x<=89)\n a[i]=3.7;\nelse if(x>=82&&x<=84)\n a[i]=3.3;\nelse if(x>=78&&x<=81)\n a[i]=3.0;\nelse if(x>=75&&x<=77)\n a[i]=2.7;\nelse if(x>=72&&x<=74)\n a[i]=2.3;\nelse if(x>=68&&x<=71)\n a[i]=2.0;\nelse if(x>=64&&x<=67)\n a[i]=1.5;\nelse if(x>=60&&x<=63)\n a[i]=1.0;\nelse if(x<=60)\n a[i]=0;\ns=s+a[i]*b[i];\n}\nGPA=s/y;\nprintf(\"%.2lf\",GPA);\n}\n"} +{"label": "83", "index": "41202", "code": "int main ()\n{\n int n,i=0,a[N],b[N],x=0;\n float c[N],y=0.0,z;\n scanf(\"%d\",&n);\n for(i=0;i=90&&b[i]<=100) c[i]=4.0;\n else if(b[i]>=90&&b[i]<=100) c[i]=4.0;\n else if(b[i]>=85&&b[i]<=89) c[i]=3.7;\n else if(b[i]>=82&&b[i]<=83) c[i]=3.3;\n else if(b[i]>=78&&b[i]<=81) c[i]=3.0;\n else if(b[i]>=75&&b[i]<=77) c[i]=2.7;\n else if(b[i]>=72&&b[i]<=73) c[i]=2.3;\n else if(b[i]>=68&&b[i]<=71) c[i]=2.0;\n else if(b[i]>=64&&b[i]<=67) c[i]=1.5;\n else if(b[i]>=60&&b[i]<=63) c[i]=1.0;\n else if(b[i]<=59) c[i]=0.0;\n }\n for(i=0;i=90)\n\t\t\tsum=sum+a[j]*4.0;\n\t\telse if(b[j]<=89&&b[j]>=85)\n\t\t\tsum=sum+a[j]*3.7;\n\t\telse if(b[j]<=84&&b[j]>=82)\n\t\t\tsum=sum+a[j]*3.3;\n\t\telse if(b[j]<=81&&b[j]>=78)\n\t\t\tsum=sum+a[j]*3.0;\n\t\telse if(b[j]<=77&&b[j]>=75)\n\t\t\tsum=sum+a[j]*2.7;\n\t\telse if(b[j]<=74&&b[j]>=72)\n\t\t\tsum=sum+a[j]*2.3;\n\t\telse if(b[j]<=71&&b[j]>=68)\n\t\t\tsum=sum+a[j]*2.0;\n\t\telse if(b[j]<=67&&b[j]>=64)\n\t\t\tsum=sum+a[j]*1.5;\n\t\telse if(b[j]<=63&&b[j]>=60)\n\t\t\tsum=sum+a[j]*1.0;\n\t\telse\n\t\t\tsum=sum+a[j]*0;\n\t}\n\t\tfor(i=1;i<=n;i++)\n\t\t\te=e+a[i];\n\t\tGPA=sum/e;\n\t\tprintf(\"%.2f\\n\",GPA);\n\t\t\n}\n\n\t\t\n\t\t\t\t\t\n\n\n\n\n\n"} +{"label": "83", "index": "41204", "code": "void main()\n{\n int n,a[10],b[10],i,m=0;\n\tfloat g,s=0,t[10],gpa;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{ scanf(\"%d\",&b[i]);}\n\tfor(i=0;i<=n-1;i++){\n\t scanf(\"%d\",&a[i]);\n\t if(a[i]>=90) g=4.0;\n else if(a[i]>=85) g=3.7;\n\t else if(a[i]>=82) g=3.3;\n\t else if(a[i]>=78) g=3.0;\n\t else if(a[i]>=75) g=2.7;\n\t else if(a[i]>=72) g=2.3;\n\t else if(a[i]>=68) g=2.0;\n\t else if(a[i]>=64) g=1.5;\n\t else if(a[i]>=60) g=1.0;\n\t else g=0;\n\t t[i]=g;\n\t s=s+b[i]*t[i];\n m=m+b[i];\n\t\n\t}\n\n gpa=s/m;\n\tprintf(\"%.2f\",gpa);\n\n\n}"} +{"label": "83", "index": "41205", "code": "int main ()\n{\n\tint n,a[10],b[10],i,s;\n\tfloat c[10],t;\n\tscanf(\"%d\",&n);\n\tfor(i=0,s=0;i=90&&b[i]<=100) c[i]=4.0;\n\t\tif(b[i]>=85&&b[i]<=89) c[i]=3.7;\n\t\tif(b[i]>=82&&b[i]<=84) c[i]=3.3;\n\t\tif(b[i]>=78&&b[i]<=81) c[i]=3.0;\n\t\tif(b[i]>=75&&b[i]<=77) c[i]=2.7;\n\t\tif(b[i]>=72&&b[i]<=74) c[i]=2.3;\n\t\tif(b[i]>=68&&b[i]<=71) c[i]=2.0;\n\t\tif(b[i]>=64&&b[i]<=67) c[i]=1.5;\n\t\tif(b[i]>=60&&b[i]<=63) c[i]=1.0;\n\t\tif(b[i]<60) c[i]=0;\n t+=c[i]*a[i];\n\t}\n\tprintf(\"%.2f\\n\",t/s);\n\treturn 0;\n}\n\n"} +{"label": "83", "index": "41206", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n int xf[N];\n int i;\n for(i=0;i=90)&&(df[t]<=100)){\n jd[t]=4.0*xf[t];\n }\n if((df[t]>=85)&&(df[t]<=89)){\n jd[t]=3.7*xf[t];\n }\n if((df[t]>=82)&&(df[t]<=84)){\n jd[t]=3.3*xf[t];\n }\n if((df[t]>=78)&&(df[t]<=81)){\n jd[t]=3.0*xf[t];\n }\n if((df[t]>=75)&&(df[t]<=77)){\n jd[t]=2.7*xf[t];\n }\n if((df[t]>=72)&&(df[t]<=74)){\n jd[t]=2.3*xf[t];\n }\n if((df[t]>=68)&&(df[t]<=71)){\n jd[t]=2.0*xf[t];\n }\n if((df[t]>=64)&&(df[t]<=67)){\n jd[t]=1.5*xf[t];\n }\n if((df[t]>=60)&&(df[t]<=63)){\n jd[t]=1.0*xf[t];\n }\n if(df[t]<60){\n jd[t]=0.0*xf[t];\n }\n }\n int a,tol=0;\n for(a=0;a=90)\n\t\t\tgpa=4;\n\t\tif (b[i]<=89&&b[i]>=85)\n\t\t\tgpa=3.7;\n\t\tif (b[i]<=84&&b[i]>=82)\n\t\t\tgpa=3.3;\n\tif (b[i]<=81&&b[i]>=78)\n\t\t\tgpa=3.0;\n\tif (b[i]<=77&&b[i]>=75)\n\t\t\tgpa=2.7;\n\tif (b[i]<=74&&b[i]>=72)\n\t\t\tgpa=2.3;\n\tif (b[i]<=71&&b[i]>=68)\n\t\t\tgpa=2.0;\n\tif (b[i]<=67&&b[i]>=64)\n\t\t\tgpa=1.5;\n\tif (b[i]<=63&&b[i]>=60)\n\t\t\tgpa=1.0;\n\tif (b[i]<60)\n\t\t\tgpa=0;\n\tx=x+gpa*a[i];\n\t}\n\tprintf(\"%.2f\",x/sum);\n\t\n\t\n\treturn 0;\n}"} +{"label": "83", "index": "41208", "code": "int main()\n{\n int n,x[10],a[10],i,j,s1=0;\n float b,s2=0,GPA;\n scanf(\"%d\",&n);\n for(j=0;j=90)\n\t b=4.0;\n if(a[i]<=89&&a[i]>=85)\n\t b=3.7;\n if(a[i]<=84&&a[i]>=82)\n\t b=3.3;\n if(a[i]<=81&&a[i]>=78)\n\t b=3.0;\n if(a[i]<=77&&a[i]>=75)\n\t b=2.7;\n if(a[i]<=74&&a[i]>=72)\n\t b=2.3;\n if(a[i]<=71&&a[i]>=68)\n\t b=2.0;\n if(a[i]<=67&&a[i]>=64)\n\t b=1.5;\n if(a[i]<=63&&a[i]>=60)\n\t b=1.0;\n if(a[i]<60)\n\t b=0;\n s2=s2+x[j]*b;\n }\n GPA=s2/s1;\n printf(\"%.2f\",GPA);\n return 0;\n}\n"} +{"label": "83", "index": "41209", "code": "int main()\n{\n\tint n,cre[10]={0},gra[10]={0},i;\n\tfloat poi[10]={0},sum=0,gpa,s=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&a[i]<=100){\n \t\tj=j+4.0*sz[i];\n \t}\n \tif(a[i]>=85&&a[i]<=89){\n \t\tj=j+3.7*sz[i];\n \t}\n \tif(a[i]>=82&&a[i]<=84){\n \t\tj=j+3.3*sz[i];\n \t}\n \tif(a[i]>=78&&a[i]<=81){\n \t\tj=j+3.0*sz[i];\n \t}\n \tif(a[i]>=75&&a[i]<=77){\n \t\tj=j+2.7*sz[i];\n \t}\n \tif(a[i]>=72&&a[i]<=74){\n \t\tj=j+2.3*sz[i];\n \t}\n \tif(a[i]>=68&&a[i]<=71){\n \t\tj=j+2.0*sz[i];\n \t}\n \tif(a[i]>=64&&a[i]<=67){\n \t\tj=j+1.5*sz[i];\n \t}\n \tif(a[i]>=60&&a[i]<=63){\n \t\tj=j+1.0*sz[i];\n \t}\n \tif(a[i]<60){\n \t\tj=j+0*sz[i];\n \t} \t\t\n }\n GPA=j/k;\n printf(\"%.2lf\",GPA);\n return 0;\n}"} +{"label": "83", "index": "41211", "code": "void main()\n{\n\tint i,j,n,a[2][10];float m,k,s,GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)m=a[0][i]*4.0;\n\t\telse if(a[1][i]>=85)m=a[0][i]*3.7;\n\t\telse if(a[1][i]>=82)m=a[0][i]*3.3;\n\t\telse if(a[1][i]>=78)m=a[0][i]*3.0;\n\t\telse if(a[1][i]>=75)m=a[0][i]*2.7;\n\t\telse if(a[1][i]>=72)m=a[0][i]*2.3;\n\t\telse if(a[1][i]>=68)m=a[0][i]*2.0;\n\t\telse if(a[1][i]>=64)m=a[0][i]*1.5;\n\t\telse if(a[1][i]>=60)m=a[0][i]*1.0;\n\t\telse m=0;\n\t\ts=s+m;k=k+a[0][i];\n\t}\n\tGPA=s/k;\n\tprintf(\"%.2f\\n\",GPA);\n\n}\n\t\t\n"} +{"label": "83", "index": "41212", "code": "void main()\n{\n\tint a[2][10],n,i,j;\n\tfloat xfjd=0,GPA,xfh=0,b[11];\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i<2;i++)\n\t\tfor(j=0;j=60) c[i]=a[i]*1.0;\n\t\t else if (b[i]<=67&&b[i]>=64) c[i]=a[i]*1.5;\n\t\t else if (b[i]<=71&&b[i]>=68) c[i]=a[i]*2.0;\n\t\t else if (b[i]<=74&&b[i]>=72) c[i]=a[i]*2.3;\n\t\t else if (b[i]<=77&&b[i]>=75) c[i]=a[i]*2.7;\n\t\t else if (b[i]<=81&&b[i]>=78) c[i]=a[i]*3.0;\n\t\t else if (b[i]<=84&&b[i]>=82) c[i]=a[i]*3.3;\n\t\t else if (b[i]<=89&&b[i]>=85) c[i]=a[i]*3.7;\n\t\t else if (b[i]<=100&&b[i]>=90) c[i]=a[i]*4.0;\n\t }\n\t\n\tfor (i=1;i<=n;i++)\n\t c[0]=c[0]+c[i];\n\t\n\tGPA=c[0]/a[0];\n\tprintf(\"%.2f\",GPA);\t\t\n}\n"} +{"label": "83", "index": "41214", "code": " \n \ndouble JiDian(int cj);\nint main(){\n int n;\n scanf(\"%d\",&n);\n int cj[10];\n int xf[10];\n int i,j;\n for(j=0;j=90){\n jidian=4.0;\n }else if(cj<=89&&cj>=85){\n jidian=3.7;\n }else if(cj<=84&&cj>=82){\n jidian=3.3;\n }else if(cj<=81&&cj>=78){\n jidian=3.0;\n }else if(cj<=77&&cj>=75){\n jidian=2.7;\n }else if(cj<=74&&cj>=72){\n jidian=2.3;\n }else if(cj<=71&&cj>=68){\n jidian=2.0;\n }else if(cj<=67&&cj>=64){\n jidian=1.5;\n }else if(cj<=63&&cj>=60){\n jidian=1.0;\n }else{\n jidian=0;\n }\n return jidian;\n}\n \n"} +{"label": "83", "index": "41215", "code": "int main()\n{\n\tint m=0,n,a[100],b[100],i;\n\tfloat c[100],s=0;\n\tcin>>n;\n\tfor(i=0;i>a[i];\n\t}\n\tfor(i=0;i>b[i];\n\t}\n\tfor(i=0;i=90)\n\t\t\ts+=a[i]*4;\n\t\telse if(b[i]>=85)\n\t\t\ts+=a[i]*3.7;\n\t\telse if(b[i]>=82)\n\t\t\ts+=a[i]*3.3;\n\t\telse if(b[i]>=78)\n\t\t\ts+=a[i]*3;\n\t\telse if(b[i]>=75)\n\t\t\ts+=a[i]*2.7;\n\t\telse if(b[i]>=72)\n\t\t\ts+=a[i]*2.3;\n\t\telse if(b[i]>=68)\n\t\t\ts+=a[i]*2;\n\t\telse if(b[i]>=64)\n\t\t\ts+=a[i]*1.5;\n\t\telse if(b[i]>=60)\n\t\t\ts+=a[i]*1;\n\t\telse;\n\t}\n\tfor(i=0;i=90){\n c[i]=4.0;\n }\n else if(b[i]>=85&&b[i]<90){\n c[i]=3.7;\n }\n else if(b[i]>=82&&b[i]<85){\n c[i]=3.3;\n }\n else if(b[i]>=78&&b[i]<82){\n c[i]=3.0;\n }\n else if(b[i]>=75&&b[i]<78){\n c[i]=2.7;\n }\n else if(b[i]>=72&&b[i]<75){\n c[i]=2.3;\n }\n else if(b[i]>=68&&b[i]<72){\n c[i]=2.0;\n }\n else if(b[i]>=64&&b[i]<68){\n c[i]=1.5;\n }\n else if(b[i]>=60&&b[i]<64){\n c[i]=1.0;\n }\n else{\n c[i]=0;\n }\n }\n s=0;\n t=0;\n for(i=0;i=90)\n\t\tb[i]=4.0;\n\telse if(b[i]<=89&&b[i]>=85)\n\t\tb[i]=3.7;\n\telse if(b[i]<=84&&b[i]>=82)\n\t\tb[i]=3.3;\n\telse if(b[i]<=81&&b[i]>=78)\n\t\tb[i]=3.0;\n\telse if(b[i]<=77&&b[i]>=75)\n\t\tb[i]=2.7;\n\telse if(b[i]<=74&&b[i]>=72)\n\t\tb[i]=2.3;\n\telse if(b[i]<=71&&b[i]>=68)\n\t\tb[i]=2.0;\n\telse if(b[i]<=67&&b[i]>=64)\n\t\tb[i]=1.5;\n\telse if(b[i]<=63&&b[i]>=60)\n\t\tb[i]=1.0;\n\telse if(b[i]<60)\n\t\tb[i]=0;\n\tx=b[i]*a[i];\n\ty=y+x;\n\t}\n\tprintf(\"%.2f\",y/sum);\n\treturn 0;\n}\n\n\t\n"} +{"label": "83", "index": "41218", "code": "int main(){\n\tint n,i;\n\tdouble GPA;\n\tscanf(\"%d\",&n);\n\tint xf[10];\n\tint fs[10];\n\tdouble jd[10],a=0,b=0;\n\tfor(i=0;i=90){\n\t\t\tjd[i]=4.0;}else\n\t\t\t\tif(fs[i]>=85){\n\t\t\t\t\tjd[i]=3.7;}else\n\t\t\t\tif(fs[i]>=82){\n\t\t\t\t\tjd[i]=3.3;}else\n\t\t\t\tif(fs[i]>=78){\n\t\t\t\t\tjd[i]=3.0;}else\n\t\t\t\tif(fs[i]>=75){\n\t\t\t\t\tjd[i]=2.7;}else\n\t\t\t\tif(fs[i]>=72){\n\t\t\t\t\tjd[i]=2.3;}else\n\t\t\t\tif(fs[i]>=68){\n\t\t\t\t\tjd[i]=2.0;}else\n\t\t\t\tif(fs[i]>=64){\n\t\t\t\t\tjd[i]=1.5;}else\n\t\t\t\tif(fs[i]>=60){\n\t\t\t\t\tjd[i]=1.0;}else{\n\t\t\t\t\t\tjd[i]=0;}\n\t}\n\tfor(i=0;i=90&&n<=100) y=4.0 ; \nelse if(n>=85&&n<=89) y=3.7 ;\nelse if(n>=82&&n<=84) y=3.3 ;\nelse if(n>=78&&n<=81) y=3.0 ;\nelse if(n>=75&&n<=77) y=2.7 ;\nelse if(n>=72&&n<=74) y=2.3 ;\nelse if(n>=68&&n<=71) y=2.0 ;\nelse if(n>=64&&n<=67) y=1.5 ;\nelse if(n>=60&&n<=63) y=1.0 ;\nelse if(n<60) y=0; \nreturn (y);\n}\n\n\n"} +{"label": "83", "index": "41220", "code": "int main()\n{int n,i,j,k,l,max=-1,min=999,p=0; double nn=0,s=0,xx;\nint a[10];\n scanf(\"%d\",&n);\n for (i=1;i<=n;i++) \n {scanf(\"%d\",&a[i]); s+=a[i];} \n\tfor (i=1;i<=n;i++) \n\t{\n\t\t scanf(\"%d\",&k);\n\t\t if (90<=k) xx=4.0;\n\t\t else if (85<=k) xx=3.7;\n\t\t else if (82<=k) xx=3.3;\n else if (78<=k) xx=3.0;\n else if (75<=k) xx=2.7;\n else if (72<=k) xx=2.3;\n else if (68<=k) xx=2.0;\n else if (64<=k) xx=1.5;\n else if (60<=k) xx=1.0;\n else xx=0;\n nn+=xx*a[i];\n\t}\n\n printf(\"%.2lf\",nn/s);\n return 0;\n}"} +{"label": "83", "index": "41221", "code": "void main()\n{int n,i,sum2=0,b[100]; \n float c[100],a[100],GPA,sum1=0;\n scanf(\"%d\",&n);\nfor(i=0;i<=(n-1);i++)\nscanf(\"%f\",&a[i]);\nfor(i=0;i<=(n-1);i++)\nscanf(\"%d\",&b[i]);\nfor(i=0;i<=(n-1);i++)\n{if(b[i]>=90) c[i]=4.0*a[i];\nelse {if(b[i]>=85) c[i]=3.7*a[i];\nelse {if(b[i]>=82) c[i]=3.3*a[i];\nelse {if(b[i]>=78) c[i]=3.0*a[i];\nelse {if(b[i]>=75) c[i]=2.7*a[i];\nelse {if(b[i]>=72) c[i]=2.3*a[i];\nelse {if(b[i]>=68) c[i]=2.0*a[i];\nelse {if(b[i]>=64) c[i]=1.5*a[i];\nelse {if(b[i]>=60) c[i]=1.0*a[i];\n else c[i]=0;\n}\n}\n}\n}\n}\n}\n}\n}\n}\nfor(i=0;i<=(n-1);i++)\nsum1=sum1+c[i];\nfor(i=0;i<=(n-1);i++)\nsum2=sum2+a[i];\nGPA=sum1/sum2;\nprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41222", "code": "void main()\n{\n\tint n,i;\n\tfloat total=0.0,totalII=0.0,GPA,a[10],b[10],c[10],d[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)c[i]=4.0;\n\t\telse if(b[i]<=89&&b[i]>=85)c[i]=3.7;\n\t\telse if(b[i]<=84&&b[i]>=82)c[i]=3.3;\n\t\telse if(b[i]<=81&&b[i]>=78)c[i]=3.0;\n\t\telse if(b[i]<=77&&b[i]>=75)c[i]=2.7;\n\t\telse if(b[i]<=74&&b[i]>=72)c[i]=2.3;\n\t\telse if(b[i]<=71&&b[i]>=68)c[i]=2.0;\n\t\telse if(b[i]<=67&&b[i]>=64)c[i]=1.5;\n\t\telse if(b[i]<=63&&b[i]>=60)c[i]=1.0;\n\t\telse if(b[i]<=60&&b[i]>=0)c[i]=0;\n\t}\n\tfor(i=0;i=90){\n\t\t\tc[i]=4.0;\n\t\t}else{\n\t\t\tif(b[i]<90&&b[i]>=85){\n\t\t\t\tc[i]=3.7;\n\t\t\t}else{\n\t\t\t\tif(b[i]<85&&b[i]>=82){\n\t\t\t\t\tc[i]=3.3;\n\t\t\t\t}else{\n\t\t\t\t\tif(b[i]<82&&b[i]>=78){\n\t\t\t\t\t\tc[i]=3.0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(b[i]<78&&b[i]>=75){\n\t\t\t\t\t\t\tc[i]=2.7;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif(b[i]<75&&b[i]>=72){\n\t\t\t\t\t\t\t\tc[i]=2.3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif(b[i]<72&&b[i]>=68){\n\t\t\t\t\t\t\t\t\tc[i]=2.0;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif(b[i]<68&&b[i]>=64){\n\t\t\t\t\t\t\t\t\t\tc[i]=1.5;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tif(b[i]<64&&b[i]>=60){\n\t\t\t\t\t\t\t\t\t\t\tc[i]=1.0;\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tif(b[i]<60){\n\t\t\t\t\t\t\t\t\t\t\t\tc[i]=0;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=60&&x[1][i]<=63)\n jidian=jidian+1.0*x[0][i];\n if (x[1][i]>=64&&x[1][i]<=67)\n jidian=jidian+1.5*x[0][i];\n if (x[1][i]>=68&&x[1][i]<=71)\n jidian=jidian+2.0*x[0][i];\n if (x[1][i]>=72&&x[1][i]<=74)\n jidian=jidian+2.3*x[0][i];\n if (x[1][i]>=75&&x[1][i]<=77)\n jidian=jidian+2.7*x[0][i];\n if (x[1][i]>=78&&x[1][i]<=81)\n jidian=jidian+3.0*x[0][i];\n if (x[1][i]>=82&&x[1][i]<=84)\n jidian=jidian+3.3*x[0][i];\n if (x[1][i]>=85&&x[1][i]<=89)\n jidian=jidian+3.7*x[0][i];\n if (x[1][i]>=90&&x[1][i]<=100)\n jidian=jidian+4.0*x[0][i];\n }\n for (i=0;i=90&&cj[r]<=100){\n\t\t\tgpa+=4.0*xf[r];\n\t\t}else if(cj[r]<=89&&cj[r]>=85){\n\t\t\tgpa+=3.7*xf[r];\n\t\t}else if(cj[r]>=82&&cj[r]<=84){\n\t\t\t gpa+=3.3*xf[r];\n\t\t}else if(cj[r]>=78&&cj[r]<=81){\n\t\t\t gpa+=3.0*xf[r];\n\t\t}else if(cj[r]>=75&&cj[r]<=77){\n\t\t\t gpa+=2.7*xf[r];\n\t\t}else if(cj[r]>=72&&cj[r]<=74){\n\t\t\t gpa+=2.3*xf[r];\n\t\t}else if(cj[r]>=68&&cj[r]<=71){\n\t\t\t gpa+=2.0*xf[r];\n\t\t}else if(cj[r]>=64&&cj[r]<=67){\n\t\t\t gpa+=1.5*xf[r];\n\t\t}else if(cj[r]>=60&&cj[r]<=63){\n\t\t\t gpa+=1.0*xf[r];\n\t\t}else{\n\t\t\tgpa+=0;\n\t\t}\n\n\t}\n\t\tgpa=gpa/a;\n\t\n\t\tprintf(\"%.2lf\",gpa);\n\t\treturn 0;\n\t}\n \n\n"} +{"label": "83", "index": "41227", "code": "void main()\n{int n,a[100],b[100],i,j,s=0;\n float g,G=0.0,GPA,c[111];\n scanf(\"%d\\n\",&n);\n for(i=1;i<=n;i++)\n scanf(\"%d \",&a[i]);\n printf(\"\\n\");\n for(j=1;j<=n;j++)\n scanf(\"%d \",&b[j]);\n printf(\"\\n\");\n for(i=1;i<=n;i++)\n s=s+a[i];\n for(j=1;j<=n;j++)\n {if(b[j]>=90) g=4.0;\n else if(b[j]>=85) g=3.7;\n else if(b[j]>=82) g=3.3;\n else if(b[j]>=78) g=3.0;\n else if(b[j]>=75) g=2.7;\n else if(b[j]>=72) g=2.3;\n else if(b[j]>=68) g=2.0;\n else if(b[j]>=64) g=1.5;\n else if(b[j]>=60) g=1.0;\n else g=0.0;\n c[j]=g*a[j];}\n for(j=1;j<=n;j++)\n G=G+c[j];\n GPA=G/s;\n printf(\"%.2f\",GPA);\n}\n"} +{"label": "83", "index": "41228", "code": "int main(){\n\tint n,i;\n\tfloat sum1=0,sum2=0,xf;\n\tfloat a[11],b[11];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%f\",&a[i]);}\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%f\",&b[i]);}\n\tfor(i=0;i89){b=4.0;}\n\t\tif (cj[i]>84&&cj[i]<90){b=3.7;}\n\t\tif (cj[i]>81&&cj[i]<85){b=3.3;}\n\t\tif (cj[i]>77&&cj[i]<82){b=3.0;}\n\t\tif (cj[i]>74&&cj[i]<78){b=2.7;}\n\t\tif (cj[i]>71&&cj[i]<75){b=2.3;}\n\t\tif (cj[i]>67&&cj[i]<72){b=2.0;}\n\t\tif (cj[i]>63&&cj[i]<68){b=1.5;}\n\t\tif (cj[i]>59&&cj[i]<64){b=1.0;}\n\t\tif (cj[i]<60){b=0;}\n\t\tc=xf[i]*b;\n\t\te=e+xf[i];\n\t\td=d+c;\n\t\t\n\n\t}\n\tgpa=d/e;\nprintf(\"%.2f\",gpa);\nreturn 0;\n}"} +{"label": "83", "index": "41230", "code": "void main()\n{\n\tint a[10],b[10],n,i=1;\n\tfloat jidian,GPA,c[10];\n float y=0,x=0;\n\t\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif((90<=a[i])&&(a[i]<=100))\n\t\t{jidian=4.0;}\n\t\tif((85<=a[i])&&(a[i]<=89))\n\t\t{jidian=3.7;}\n\t\tif((82<=a[i])&&(a[i]<=84))\n\t\t{jidian=3.3;}\n\t\tif((78<=a[i])&&(a[i]<=81))\n\t\t{jidian=3.0;}\n\t\tif((75<=a[i])&&(a[i]<=77))\n\t\t{jidian=2.7;}\n\t\tif((72<=a[i])&&(a[i]<=74))\n\t\t{jidian=2.3;}\n\t\tif((68<=a[i])&&(a[i]<=71))\n\t\t{jidian=2.0;}\n\t\tif((64<=a[i])&&(a[i]<=67))\n\t\t{jidian=1.5;}\n\t\tif((60<=a[i])&&(a[i]<=63))\n\t\t{jidian=1.0;}\n\t\tif(a[i]<60)\n\t\t{jidian=0;}\n\t\tc[i]=jidian*b[i];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tx=x+c[i];\n\t y=y+b[i];\n\t}\n\tGPA=x/y;\n\tprintf(\"%.2f\\n\",GPA);\n}\n\n"} +{"label": "83", "index": "41231", "code": "int main(){\n int xf[m],fs[m];\n double xfj[m],jd[m];\n int n,i;\n double gpa,zf,zj;\n scanf(\"%d\",&n);\n for( i=0;i=90){\n jd[i]=4.0;\n }else if(fs[i]>=85){\n jd[i]=3.7;\n }else if(fs[i]>=82){\n jd[i]=3.3;\n }else if(fs[i]>=78){\n jd[i]=3.0;\n }else if(fs[i]>=75){\n jd[i]=2.7;\n }else if(fs[i]>=72){\n jd[i]=2.3;\n }else if(fs[i]>=68){\n jd[i]=2.0;\n }else if(fs[i]>=64){\n jd[i]=1.5;\n }else if(fs[i]>=60){\n jd[i]=1.0;\n }else{\n jd[i]=0;\n }\n }\n for(i=0;i=90&&cj[i]<=100)\n\t\t{\n\t\t\tcj[i]=4.0;\n\t\t}\n\t\telse if(cj[i]>=85&&cj[i]<=89)\n\t\t{\n\t\t\tcj[i]=3.7;\n\t\t}\n\t\telse if(cj[i]>=82&&cj[i]<=84)\n\t\t{\n\n cj[i]=3.3;\n\t\t}\n\t\telse if(cj[i]>=78&&cj[i]<=81)\n\t\t{\n\t\t\tcj[i]=3.0;\n\t\t}\n\t\telse if(cj[i]>=75&&cj[i]<=77)\n\t\t{\n\t\t\tcj[i]=2.7;\n\t\t}\n\t\telse if(cj[i]>=72&&cj[i]<=74)\n\t\t{\n\t\t\tcj[i]=2.3;\n\t\t}\n\t\telse if(cj[i]>=68&&cj[i]<=71)\n\t\t{\n\t\t\tcj[i]=2.0;\n\t\t}\n\t\telse if(cj[i]>=64&&cj[i]<=67)\n\t\t{\n\t\t\tcj[i]=1.5;\n\t\t}\n\t\telse if(cj[i]>=61&&cj[i]<=63)\n\t\t{\n\t\t\tcj[i]=1.0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcj[i]=0.0;\n\t\t}\n\t\t\n\t\ti++;\n\t}\n\tfloat result=0;\n\tint k=0;\n\tint x=0;\n\twhile(k<=n-1)\n\t{\n\t\tresult=result+xf[k]*cj[k];\n\t\tx=x+xf[k];\n\t\tk++;\n\t\t\t}\n\tresult=result/x;\n\tprintf(\"%.2f\",result);\n\treturn 0;\n}"} +{"label": "83", "index": "41233", "code": "int main()\n{\n double k[9],f[9],l[9];\n double GPA,s,m;\n int n,i;\n m=0;\n s=0;\n scanf(\"%d\",&n);\n for(i=0;i=90&&f[i]<=100)\n l[i]=4.0;\n else if(f[i]<=89&&f[i]>=85)\n l[i]=3.7;\n else if(f[i]<=84&&f[i]>=82)\n l[i]=3.3;\n else if(f[i]<=81&&f[i]>=78)\n l[i]=3.0;\n else if(f[i]<=77&&f[i]>=75)\n l[i]=2.7;\n else if(f[i]<=74&&f[i]>=72)\n l[i]=2.3;\n else if(f[i]<=71&&f[i]>=68)\n l[i]=2.0;\n else if(f[i]<=67&&f[i]>=64)\n l[i]=1.5;\n else if(f[i]<=63&&f[i]>=60)\n l[i]=1.0;\n else\n l[i]=0;\n }\n for(i=0;i=90){c[i]=4.0;}\nelse if(b[i]>=85){c[i]=3.7;}\nelse if(b[i]>=82){c[i]=3.3;}\nelse if(b[i]>=78){c[i]=3.0;}\nelse if(b[i]>=75){c[i]=2.7;}\nelse if(b[i]>=72){c[i]=2.3;}\nelse if(b[i]>=68){c[i]=2.0;}\nelse if(b[i]>=64){c[i]=1.5;}\nelse if(b[i]>=60){c[i]=1.0;}\nelse c[i]=0.0;\nB+=c[i]*a[i];\n}\ngpa=B/A;\nprintf(\"%.2f\",gpa);\n\n return 0;\n}"} +{"label": "83", "index": "41236", "code": "int main()\n{\nint n,a,sum;\nsum=0;\nint an[10],cn[10];\ndouble bn[10],sam,GPA;\nsam=0.00;\nscanf(\"%d\",&n);\nfor(a=0;a=90&&an[a]<=100)\n\t\tbn[a]=4.0;\n\tif(an[a]>=85&&an[a]<=89)\n\t\tbn[a]=3.7;\n\tif(an[a]>=82&&an[a]<=84)\n\t\tbn[a]=3.3;\n\tif(an[a]>=78&&an[a]<=81)\n\t\tbn[a]=3.0;\n\tif(an[a]>=75&&an[a]<=77)\n\t\tbn[a]=2.7;\n\tif(an[a]>=72&&an[a]<=74)\n\t\tbn[a]=2.3;\n\tif(an[a]>=68&&an[a]<=71)\n\t\tbn[a]=2.0;\n\tif(an[a]>=64&&an[a]<=67)\n\t\tbn[a]=1.5;\n\tif(an[a]>=60&&an[a]<=63)\n\t\tbn[a]=1.0;\n\tif(an[a]<60)\n\t\tbn[a]=0;\n\t\n}\nfor(a=0;a=90)\n\t\t\tb[i]=4.0;\n\t\telse if(score>=85)\n\t\t\tb[i]=3.7;\n\t\telse if(score>=82)\n\t\t\tb[i]=3.3;\n\t\telse if(score>=78)\n\t\t\tb[i]=3.0;\n\t\telse if(score>=75)\n\t\t\tb[i]=2.7;\n\t\telse if(score>=72)\n\t\t\tb[i]=2.3;\n\t\telse if(score>=68)\n\t\t\tb[i]=2.0;\n\t\telse if(score>=64)\n\t\t\tb[i]=1.5;\n\t\telse if(score>=60)\n\t\t\tb[i]=1.0;\n\t\telse\n\t\t\tb[i]=0;\n\t}\n\tdouble sum;\n\tint x;\n\tsum=0;\n\tx=0;\n\tfor(i=0;i=90)&&(sz[i]<=100)){\nj=4.0;\n}else if((sz[i]>=85)&&(sz[i]<=89)){\nj=3.7;\n}else if((sz[i]>=82)&&(sz[i]<=84)){\nj=3.3;\n}else if((sz[i]>=78)&&(sz[i]<=81)){\nj=3.0;\n}else if((sz[i]>=75)&&(sz[i]<=77)){\nj=2.7;\n}else if((sz[i]>=72)&&(sz[i]<=74)){\nj=2.3;\n}else if((sz[i]>=68)&&(sz[i]<=71)){\nj=2.0;\n}else if((sz[i]>=64)&&(sz[i]<=67)){\nj=1.5;\n}else if((sz[i]>=60)&&(sz[i]<=63)){\nj=1.0;\n}else if(sz[i]<60){\nj=0;\n}\nf=j*a[i];\nGPA=GPA+f;\n}\nGPA=GPA/m;\nprintf(\"%.2f\",GPA);\nreturn 0;\n}\n"} +{"label": "83", "index": "41239", "code": "int main()\n{\n int n;\n scanf(\"%d\\n\",&n);\n double a[10];\n int c=0;double b=0;\n #define ROW 2\nint sz[ROW][COL]; \n for(int row = 0; row < 2; row++){\n for(int col = 0; col < n; col++){scanf(\"%d \",&sz[row][col]);}}\n for (int i=0;i=90&&sz[1][i]<=100){a[i]=4.0;}\n else{if((sz[1][i]>=85)&&(sz[1][i]<=89)){a[i]=3.7;}\n else{if((sz[1][i]>=82)&&(sz[1][i]<=84)){a[i]=3.3;}\n else{if((sz[1][i]>=78)&&(sz[1][i]<=81)){a[i]=3.0;}\n else{if((sz[1][i]>=75)&&(sz[1][i]<=77)){a[i]=2.7;}\n else{if((sz[1][i]>=72)&&(sz[1][i]<=74)){a[i]=2.3;}\n else{if((sz[1][i]>=68)&&(sz[1][i]<=71)){a[i]=2.0;}\n else{if((sz[1][i]>=64)&&(sz[1][i]<=67)){a[i]=1.5;}\n else{if((sz[1][i]>=60)&&(sz[1][i]<=63)){a[i]=1.0;}\n else{a[i]=0;}}}}}}}}}\nb+=(a[i]*sz[0][i]);\n c+=sz[0][i];\n }\n double d;\n d=b/c;\n printf(\"%.2f\\n\",d);\n return 0;\n}\n\n"} +{"label": "83", "index": "41240", "code": "main()\n{\n\tint a[2][9],n,i,j,d;\n\tfloat b,GPA,c;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<2;i++)\n\tfor(j=0;j=90&&a[1][j]<=100) b=4.0;\n\tif(a[1][j]>=85&&a[1][j]<=89) b=3.7;\n\tif(a[1][j]>=82&&a[1][j]<=84) b=3.3;\n\tif(a[1][j]>=78&&a[1][j]<=81) b=3.0;\n\tif(a[1][j]>=75&&a[1][j]<=77) b=2.7;\n\tif(a[1][j]>=72&&a[1][j]<=74) b=2.3;\n\tif(a[1][j]>=68&&a[1][j]<=71) b=2.0;\n\tif(a[1][j]>=64&&a[1][j]<=67) b=1.5;\n\tif(a[1][j]>=60&&a[1][j]<=63) b=1.0;\n\tif(a[1][j]<60) b=0;\n\tc=c+a[0][j]*b;\n\td=d+a[0][j];\n\t}\n\tGPA=c/d;\n\tprintf(\"%.2f\\n\",GPA);\n}"} +{"label": "83", "index": "41241", "code": "\nfloat pnt(float scr);\n\nint main()\n{\n\tint n,i;\n\tfloat gpa=0,sum=0,score[10],credit[10];\n\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i89)\n\t\treturn 4.0;\n\telse if(scr>84)\n\t\treturn 3.7;\n\telse if(scr>81)\n\t\treturn 3.3;\n\telse if(scr>77)\n\t\treturn 3.0;\n\telse if(scr>74)\n\t\treturn 2.7;\n\telse if(scr>71)\n\t\treturn 2.3;\n\telse if(scr>67)\n\t\treturn 2.0;\n\telse if(scr>63)\n\t\treturn 1.5;\n\telse if(scr>59)\n\t\treturn 1.0;\n\telse\n\t\treturn 0;\n}"} +{"label": "83", "index": "41242", "code": "main()\n{\n\tint a[10],b[10],i,m;float t,s=0,j,k=0;\n\tscanf(\"%d\",&m);\n\tfor(i=0;i=90)\n\t\t\tt=4.0;\n\t\t else if(b[i]>=85)\n\t\t t=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tt=3.3;\n\t\t\telse if(b[i]>=78)\n\t\t\tt=3.0;\n\t\t\telse if(b[i]>=75)\n\t\t\tt=2.7;\n\t\t\telse if(b[i]>=72)\n\t\t\tt=2.3;\n\t\t\telse if(b[i]>=68)\n\t\t\tt=2.0;\n\t\t\telse if(b[i]>=64)\n\t\t\t\tt=1.5;\n\t\t\telse if(b[i]>=60)\n\t\t\t\tt=1.0;\n\t\t\telse \n\t\t\t\tt=0;\n\t\t\tj=a[i]*t;\n\t\t\ts=j+s;\n\t}\n\tfor(i=0;i=90&&y[i]<=100){\n\t\t\tg+=4.0*x[i];\n\t\t}else if(y[i]>=85&&y[i]<=89){\n\t\t\tg+=3.7*x[i];\n\t\t}else if(y[i]>=82&&y[i]<=84){\n\t\t\tg+=3.3*x[i];\n\t\t}else if(y[i]>=78&&y[i]<=81){\n\t\t\tg+=3.0*x[i];\n\t\t}else if(y[i]>=75&&y[i]<=77){\n\t\t\tg+=2.7*x[i];\n }else if(y[i]>=72){\n\t\t\tg+=2.3*x[i];\n\t\t}else if(y[i]>=68){\n\t\t\tg+=2.0*x[i];\n\t\t}else if(y[i]>=64){\n\t\t\tg+=1.5*x[i];\n\t\t}else if(y[i]>=60){\n\t\t\tg+=1.0*x[i];\n\t\t}\n\t}\n G=g/a;\n printf(\"%.2f\",G);\n\n\n\treturn 0;\n}"} +{"label": "83", "index": "41244", "code": "void main()\n{\n\tint n,i;\n\tfloat a[10],b[10],s[10],jd,xfjd,gpa,sum1=0,sum2=0;\n\tfloat jidian(float f);\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90) j=4;\n\telse if(f<=89&&f>=85) j=3.7;\n\telse if(f<=84&&f>=82) j=3.3;\n\telse if(f<=81&&f>=78) j=3.0;\n\telse if(f<=77&&f>=75) j=2.7;\n\telse if(f<=74&&f>=72) j=2.3;\n\telse if(f<=71&&f>=68) j=2.0;\n\telse if(f<=67&&f>=64) j=1.5;\n\telse if(f<=62&&f>=60) j=1.0;\n\telse if(f<60) j=0;\n\treturn j;\n}\n\n\n\n\n"} +{"label": "83", "index": "41245", "code": "void main()\n{\n\tint n,i=0,j=0,a[10000],f=0;\n\tfloat GPA,b[10000],c,d=0;\n\tscanf(\"%d\",&n);\n\twhile(i=90)\n\t\t\tb[j]=4.0;\n\t\telse if(b[j]>=85)\n\t\t\tb[j]=3.7;\n\t\telse if(b[j]>=82)\n\t\t\tb[j]=3.3;\n\t\telse if(b[j]>=78)\n\t\t\tb[j]=3.0;\n\t\telse if(b[j]>=75)\n\t\t\tb[j]=2.7;\n\t\telse if(b[j]>=72)\n\t\t\tb[j]=2.3;\n\t\telse if(b[j]>=68)\n\t\t\tb[j]=2.0;\n\t\telse if(b[j]>=64)\n\t\t\tb[j]=1.5;\n\t\telse if(b[j]>=60)\n\t\t\tb[j]=1.0;\n\t\telse \n\t\t\tb[j]=0;\n\t\tj++;\n\t}\n\twhile(i>0)\n\t{\n\t\ti--;\n\t\tj--;\n\t\tc=a[i]*b[j];\n\t\td=d+c;\n\t}\n\tGPA=d/(float)f;\n\tprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41246", "code": "\nint main ()\n{\n\tint n, i;\n\tint c[10]; //???????\n\tint s[10]; //???????\n\tfloat g[10]; //?????????\n\tfloat ss; //???????\n\tfloat G = 0.0, C = 0.0, GPA;\n\tscanf (\"%d\", &n);\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf (\"%d\", &c[i]);\n\t\tC = C + c[i];\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf (\"%d\", &s[i]);\n\t\tif (s[i] >= 90)\n\t\t{\n\t\t\tss = 4.0;\n\t\t}\n\t\telse if (s[i] >= 85)\n\t\t{\n\t\t\tss = 3.7;\n\t\t}\n\t\telse if (s[i] >= 82)\n\t\t{\n\t\t\tss = 3.3;\n\t\t}\n\t\telse if (s[i] >= 78)\n\t\t{\n\t\t\tss = 3.0;\n\t\t}\n\t\telse if (s[i] >= 75)\n\t\t{\n\t\t\tss = 2.7;\n\t\t}\n\t\telse if (s[i] >= 72)\n\t\t{\n\t\t\tss = 2.3;\n\t\t}\n\t\telse if (s[i] >= 68)\n\t\t{\n\t\t\tss = 2.0;\n\t\t}\n\t\telse if (s[i] >= 64)\n\t\t{\n\t\t\tss = 1.5;\n\t\t}\n\t\telse if (s[i] >= 60)\n\t\t{\n\t\t\tss = 1.0;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tss = 0.0;\n\t\t}\n\t\tg[i] = ss * c[i];\n\t\tG = G + g[i];\n\t}\n GPA = G / C;\n\tprintf (\"%.2f\\n\", GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41247", "code": "\nint main()\n{\n\tint n,i,a[10],b[10],sum;\n\tdouble GPA,c,d;\n\tGPA=0,sum=0,c=0.0,d=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t{\n\t\t\tc=4.0;\n\t\t}\n\t\telse if(b[i]<=89&&b[i]>=85)\n\t\t{\n\t\t\tc=3.7;\n\t\t}\n\t\telse if(b[i]<=84&&b[i]>=82)\n\t\t{\n\t\t\tc=3.3;\n\t\t}\n\t\telse if(b[i]<=81&&b[i]>=78)\n\t\t{\n\t\t\tc=3.0;\n\t\t}\n\t\telse if(b[i]<=77&&b[i]>=75)\n\t\t{\n\t\t\tc=2.7;\n\t\t}\n\t\telse if(b[i]<=74&&b[i]>=72)\n\t\t{\n\t\t\tc=2.3;\n\t\t}\n\t\telse if(b[i]<=71&&b[i]>=68)\n\t\t{\n\t\t\tc=2.0;\n\t\t}\n\t\telse if(b[i]<=67&&b[i]>=64)\n\t\t{\n\t\t\tc=1.5;\n\t\t}\n\t\telse if(b[i]<=63&&b[i]>=60)\n\t\t{\n\t\t\tc=1.0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc=0.0;\n\t\t}\n\t\td+=c*(a[i]*1.0);\n\t}\n\tGPA+=d/(sum*1.0);\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41248", "code": "int main(){\n int n;\n\tscanf(\"%d\",&n);\n\tint xf[10];\n\tint cj[10];\n\tint i;\n\tint sum=0;\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d\",&xf[i]);\n\t\tsum+=xf[i];\n\t}\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d\",&cj[i]);\n\t}\n\tdouble gpa=0;\n for(i=0;i<=n-1;i++){\n if(cj[i]>=90&&cj[i]<=100){\n\t\t\tgpa+=4.0*xf[i];\n\t\t}else if(cj[i]>=85&&cj[i]<=89){\n\t\t\tgpa+=3.7*xf[i];\n\t\t}else if(cj[i]>=82&&cj[i]<=84){\n\t\t\tgpa+=3.3*xf[i];\n\t\t}else if(cj[i]>=78&&cj[i]<=81){\n\t\t\tgpa+=3.0*xf[i];\n\t\t}else if(cj[i]>=75&&cj[i]<=77){\n\t\t\tgpa+=2.7*xf[i];\n\t\t}else if(cj[i]>=72&&cj[i]<=74){\n\t\t\tgpa+=2.3*xf[i];\n\t\t}else if(cj[i]>=68&&cj[i]<=71){\n\t\t\tgpa+=2.0*xf[i];\n\t\t}else if(cj[i]>=64&&cj[i]<=67){\n\t\t\tgpa+=1.5*xf[i];\n\t\t}else if(cj[i]>=60&&cj[i]<=63){\n\t\t\tgpa+=1.0*xf[i];\n\t\t}\n\t}\n\tprintf(\"%.2lf\",gpa/sum);\n\treturn 0;\n}"} +{"label": "83", "index": "41249", "code": "void main()\n{\n\tint n,i,credit[10],score[10],credit1=0;\n\tfloat point[10],gpa,sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&score[i]<=100)point[i]=4.0;\n\t else if (score[i]>=85)point[i]=3.7;\n\t else if (score[i]>=82)point[i]=3.3;\n\t else if (score[i]>=78)point[i]=3.0;\n\t else if (score[i]>=75)point[i]=2.7;\n\t else if (score[i]>=72)point[i]=2.3;\n\t\t else if (score[i]>=68)point[i]=2.0;\n\t\t else if (score[i]>=64)point[i]=1.5;\n\t\t else if (score[i]>=60)point[i]=1.0;\n\t\t else point[i]=0;\n\t\t point[i]=point[i]*credit[i];\n\t\t sum=sum+point[i];\n\t}\n\tgpa=sum/credit1;\n\tprintf(\"%.2f\",gpa);\n}\n\t "} +{"label": "83", "index": "41250", "code": "\n\nint main()\n{\n\tdouble GPA;\n\tdouble xf[100];\n\tdouble cj[100];\n\tdouble jd[100];\n\tdouble s[100];\n\tdouble p=0;\n\tdouble sumxf=0,sumjd=0;\n\tint i=0,j=0;\n\tint n;\n\tdouble t;\n\tdouble a[100];\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i=90)\n\t\tjd[i]=4.0;\n\telse\n\t\t{if(t>=85)\n\t\t\tjd[i]=3.7;\n\t\telse\n\t\t\t{if(t>=82)\n\t\t\t\tjd[i]=3.3;\n\t\t\telse\n\t\t\t{if(t>=78)\n\t\t\t\tjd[i]=3.0;\n\t\t\telse\n\t\t\t\t{if(t>=75)\n\t\t\t\t\tjd[i]=2.7;\n\t\t\t\telse\n\t\t\t\t\t{if(t>=72)\n\t\t\t\t\t\tjd[i]=2.3;\n\t\t\t\t\telse\n\t\t\t\t\t\t{if(t>=68)\n\t\t\t\t\t\t\tjd[i]=2.0;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{if(t>=64)\n\t\t\t\t\t\t\tjd[i]=1.5;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{if(t>=60)\n\t\t\t\t\t\t\t\tjd[i]=1;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tjd[i]=0;}}}}}}}}\n\n\n\t}\n\n\tfor(i=0;i> n;\n\tint xuefen[10] = {0}; // input part\n\tfor(int i = 0; i < n; i++)\n\t\tcin >> xuefen[i];\n\tint score[10] = {0};\n\tdouble jidian[10] = {0};\n\tfor(int i = 0; i < n; i++) {\n\t\tcin >> score[i];\n\t\tif(score[i] >= 90 && score[i] <= 100) jidian[i] = 4.0; // calculate the jidian of this course\n\t\tif(score[i] >= 85 && score[i] <= 89) jidian[i] = 3.7;\n\t\tif(score[i] >= 82 && score[i] <= 84) jidian[i] = 3.3;\n\t\tif(score[i] >= 78 && score[i] <= 81) jidian[i] = 3.0;\n\t\tif(score[i] >= 75 && score[i] <= 77) jidian[i] = 2.7;\n\t\tif(score[i] >= 72 && score[i] <= 74) jidian[i] = 2.3;\n\t\tif(score[i] >= 68 && score[i] <= 71) jidian[i] = 2.0;\n\t\tif(score[i] >= 64 && score[i] <= 67) jidian[i] = 1.5;\n\t\tif(score[i] >= 60 && score[i] <= 63) jidian[i] = 1.0;\n\t\tif(score[i] <= 59) jidian[i] = 0;\n\t}\n\tdouble sum1 = 0, sum2 = 0;\n\tfor(int i = 0; i < n; i++) {\n\t\tsum1 += xuefen[i] * jidian[i]; // ????????\n\t\tsum2 += xuefen[i]; // ???????? \n\t}\n\tdouble GPA = sum1 / sum2;\n\tprintf(\"%.2f\",GPA);\n\tgetchar();\n\tgetchar();\n\treturn 0;\n}\n\n"} +{"label": "83", "index": "41252", "code": "\nvoid main(){\n\tint n;\n\tdouble zxf=0,xfj=0,gpa;\n\tint i;\n\tstruct lesson{\n\t\tint point;\n\t\tint score;\n\t\tdouble jd;\n\t}sub[10];\n\tscanf(\"%d\",&n);\t\n\tfor(i=0;i=90)\n\t\t\tb[i]=4.0;\n\t\telse if(b[i]>=85)\n\t\t\tb[i]=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tb[i]=3.3;\n\t\telse if(b[i]>=78)\n\t\t\tb[i]=3.0;\n\t\telse if(b[i]>=75)\n\t\t\tb[i]=2.7;\n\t\telse if(b[i]>=72)\n\t\t\tb[i]=2.3;\n\t\telse if(b[i]>=68)\n\t\t\tb[i]=2.0;\n\t\telse if(b[i]>=64)\n\t\t\tb[i]=1.5;\n\t\telse if(b[i]>=60)\n\t\t\tb[i]=1.0;\n\t\telse\n\t\t\tb[i]=0.0;\n\t}\n\tfor(i=0;i=90) gpa[i]=4.0;\n else if(s2[i]>=85&&s2[i]<=89) gpa[i]=3.7;\n else if(s2[i]>=82&&s2[i]<=84) gpa[i]=3.3;\n else if(s2[i]>=78&&s2[i]<=81) gpa[i]=3.0;\n else if(s2[i]>=75&&s2[i]<=77) gpa[i]=2.7;\n else if(s2[i]>=72&&s2[i]<=74) gpa[i]=2.3;\n else if(s2[i]>=68&&s2[i]<=71) gpa[i]=2.0;\n else if(s2[i]>=64&&s2[i]<=67) gpa[i]=1.5;\n else if(s2[i]>=60&&s2[i]<=63) gpa[i]=1.0;\n else gpa[i]=0;\n sum2=sum2+s1[i]*gpa[i];\n }\n k=sum2/sum; \n printf(\"%.2f\",k);\n return 0;\n}"} +{"label": "83", "index": "41255", "code": "int main()\n{\n\tint n,i,s=0;\n\tint a[11],b[11];\n\tfloat x=0,GPA,c[11];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n;i++)\n\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\ts=s+a[i];\n\t\tif(b[i]>=90)\n\t\t\tc[i]=4.0;\n\t\telse\n\t\t{\n\t\t\tif((b[i]>=85)&&(b[i]<=89))\n\t\t\t\tc[i]=3.7;\n\t\t\telse\n\t\t\t{\n\t\t\t if((b[i]>=82)&&(b[i]<=84))\n\t\t\t\t c[i]=3.3;\n\t\t\t else\n\t\t\t {\n\t\t\t if((b[i]>=78)&&(b[i]<=81))\n\t\t\t\t\tc[i]=3.0;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif((b[i]>=75)&&(b[i]<=77))\n\t\t\t\t\t\tc[i]=2.7;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif((b[i]>=72)&&(b[i]<=74))\n\t\t\t\t\t c[i]=2.3;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif((b[i]>=68)&&(b[i]<=71))\n\t\t\t\t\t\t\t\tc[i]=2.0;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif((b[i]>=64)&&(b[i]<=67))\n\t\t\t\t\t\t\t\t\tc[i]=1.5;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif((b[i]>=60)&&(b[i]<=63))\n\t\t\t\t\t\t\t\t\t\tc[i]=1.0;\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tc[i]=0;\n\t\t\t\t\t\t\t\t}}}}}}}}\n\t\tx=x+(c[i]*a[i]);\n\t}\n\tGPA=x/s;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41256", "code": "//#include\n//using namespace std;\n\nint main()\n{\n\tint n,i;\n\tint xuefen[15],chengji[15];\n\tint sum;\n\tfloat jidian[15];\n\tfloat sum2;\n\tfloat tmp;\n\tscanf(\"%d\",&n);\n\tgetchar();\n\tsum=0;\n\tsum2=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&xuefen[i]);\n\t\tsum = sum + xuefen[i];\n\t}\n\tgetchar();\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&chengji[i]);\n\t\tif(chengji[i]>=90 && chengji[i]<=100)\n\t\t\tjidian[i]=4.0;\n\t\telse if(chengji[i]>=85 && chengji[i]<=89)\n\t\t\tjidian[i]=3.7;\n\t\telse if(chengji[i]>=82 && chengji[i]<=84)\n\t\t\tjidian[i]=3.3;\n\t\telse if(chengji[i]>=78 && chengji[i]<=81)\n\t\t\tjidian[i]=3.0;\n\t\telse if(chengji[i]>=75 && chengji[i]<=77)\n\t\t\tjidian[i]=2.7;\n\t\telse if(chengji[i]>=72 && chengji[i]<=74)\n\t\t\tjidian[i]=2.3;\n\t\telse if(chengji[i]>=68 && chengji[i]<=71)\n\t\t\tjidian[i]=2.0;\n\t\telse if(chengji[i]>=64 && chengji[i]<=67)\n\t\t\tjidian[i]=1.5;\n\t\telse if(chengji[i]>=60 && chengji[i]<=63)\n\t\t\tjidian[i]=1.0;\n\t\telse\n\t\t\tjidian[i]=0;\n\t}\n\tsum2;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tsum2=sum2+jidian[i]*xuefen[i];\n\t}\n\ttmp=sum2/sum;\n\tprintf(\"%.2f\",tmp);\n\treturn 0;\n}"} +{"label": "83", "index": "41257", "code": "int main()\n{\n\tint a[10],n,i,sum=0;\n\tdouble b[10],num=0,c[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>a[i];\n\t}\n\tfor(i=0;i>b[i];\n\t}\n\tfor(i=0;i=90&&b[i]<=100) {c[i]=4.0;}\n if(b[i]>=85&&b[i]<=89) {c[i]=3.7;}\n\t\tif(b[i]>=82&&b[i]<=84) {c[i]=3.3;}\n\t\tif (b[i]>=78&&b[i]<=81) {c[i]=3.0;}\n\t\tif (b[i]>=75&&b[i]<=77) {c[i]=2.7;}\n\t\tif (b[i]>=72&&b[i]<=74) {c[i]=2.3;}\n\t\tif (b[i]>=68&&b[i]<=71) {c[i]=2.0;}\n\t\tif(b[i]>=64&&b[i]<=67) {c[i]=1.5;}\n\t\tif (b[i]>=60&&b[i]<=63) {c[i]=1.0;}\n\t\tif (b[i]<60) {c[i]=0;}\n\t}\n\t\n for(i=0;i>n;\n\tfor(i=0;i>a[i];\n\t}\n\tfor(i=0;i>b[i];\n\t}\n\tfor(j=0;j=90)\n\t\t\tc[j]=4.0;\n\t\tif(b[j]>=85&&b[j]<=89)\n\t\t\tc[j]=3.7;\n\t\tif(b[j]>=82&&b[j]<=84)\n\t\t\tc[j]=3.3;\n\t\tif(b[j]>=78&&b[j]<=81)\n\t\t\tc[j]=3.0;\n\t\tif(b[j]>=75&&b[j]<=77)\n\t\t\tc[j]=2.7;\n\t\tif(b[j]>=72&&b[j]<=74)\n\t\t\tc[j]=2.3;\n\t\tif(b[j]>=68&&b[j]<=71)\n\t\t\tc[j]=2.0;\n\t\tif(b[j]>=64&&b[j]<=67)\n\t\t\tc[j]=1.5;\n\t\tif(b[j]>=60&&b[j]<=63)\n\t\t\tc[j]=1.0;\n\t\tif(b[j]<60)\n\t\t\tc[j]=0;\n\t}\n\tfor(k=0;k=90){\n\t\tsz2[i]=4.0*(sz1[i]);\n\t\t}else if(sz2[i]<=89&&sz2[i]>=85){\n\t\tsz2[i]=3.7*sz1[i];\n\t\t}else if(sz2[i]<=84&&sz2[i]>=82){\n\t\tsz2[i]=3.3*sz1[i];\n\t\t}else if(sz2[i]<=81&&sz2[i]>=78){\n\t\tsz2[i]=3.0*sz1[i];\n\t\t}else if(sz2[i]<=77&&sz2[i]>=75){\n\t\tsz2[i]=2.7*sz1[i];\n\t\t}else if(sz2[i]<=74&&sz2[i]>=72){\n\t\tsz2[i]=2.3*sz1[i];\n\t\t}else if(sz2[i]<=71&&sz2[i]>=68){\n\t\tsz2[i]=2.0*sz1[i];\n\t\t}else if(sz2[i]<=67&&sz2[i]>=64){\n\t\tsz2[i]=1.5*sz1[i];\n\t\t}else if(sz2[i]<=63&&sz2[i]>=60){\n\t\tsz2[i]=1.0*sz1[i];\n\t\t}else{\n\t\tsz2[i]=0.0*sz1[i];\n\t\t}\n\t}\n\tfor(i=0;i=90&&n<=100) h=4.0;\n else if (n>=85&&n<=89) h=3.7;\n else if (n>=82&&n<=84) h=3.3;\n else if (n>=78&&n<=81) h=3.0;\n else if (n>=75&&n<=77) h=2.7;\n else if (n>=72&&n<=74) h=2.3;\n else if (n>=68&&n<=71) h=2.0;\n else if (n>=64&&n<=67) h=1.5;\n else if (n>=60&&n<=63) h=1.0;\n else h=0.0;\n return h;\n}"} +{"label": "83", "index": "41262", "code": "void main()\n{\n int n,i,s2=0;float s1=0,GPA;\n int a[9],b[9]; float c[9];\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n scanf(\"%d\",&a[i]);\n for(i=n;i<=9;i++)a[i]=0;\n for(i=0;i<=n-1;i++) \n scanf(\"%d\",&b[i]);\n for(i=n;i<=9;i++)a[i]=0;\n for(i=0;i<=n-1;i++)\n { if(b[i]>=90)c[i]=4.0;\n\t else if(b[i]>=85)c[i]=3.7;\n\t else if(b[i]>=82)c[i]=3.3;\n\t\t else if(b[i]>=78)c[i]=3.0;\n\t\t\t else if(b[i]>=75)c[i]=2.7;\n\t\t\t\t\t else if(b[i]>=72)c[i]=2.3;\n\t\t\t\t\t\t else if(b[i]>=68)c[i]=2.0;\n\t\t\t\t\t\t\t else if(b[i]>=64)c[i]=1.5;\n\t\t\t\t\t\t\t\t else if(b[i]>=60)c[i]=1.0;\n\t\t\t\t\t\t\t\t\t\t else c[i]=0.0;\n s1=s1+c[i]*a[i];s2=s2+a[i];\n }\n GPA=s1/s2;\n\t printf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41263", "code": "int main()\n{\n\tint s[10],c[10],i,j,n,k;\n\tfloat sum,g[10],ave;\n\ti=0;\n\tj=0;\n\tk=0;\n\tsum=0;\n\tscanf(\"%d\",&n);\n\twhile(i=90)\n\t\t\tg[j]=4.0;\n\t\tif(s[j]>=85&&s[j]<=89)\n\t\t\tg[j]=3.7;\n\t\tif(s[j]>=82&&s[j]<=84)\n g[j]=3.3;\n\t\tif(s[j]>=78&&s[j]<=81)\n\t\t\tg[j]=3.0;\n\t\tif(s[j]>=75&&s[j]<=77)\n\t\t\tg[j]=2.7;\n\t\tif(s[j]>=72&&s[j]<=74)\n g[j]=2.3;\n\t\tif(s[j]>=68&&s[j]<=71)\n\t\t\tg[j]=2.0;\n\t\tif(s[j]>=64&&s[j]<=67)\n\t\t\tg[j]=1.5;\n\t\tif(s[j]>=60&&s[j]<=63)\n\t\t\tg[j]=1.0;\n\t\tif(s[j]<=60)\n g[j]=0;\n\t\tj++;\n\t}\n\tj=0;\n\ti=0;\n\twhile(j=90)\n\t\t\tjidian[j]=4;\n\t\telse if(a[1][j]>=85&&a[1][j]<=89)\n\t\t\tjidian[j]=3.7;\n\t\telse if(a[1][j]>=82&&a[1][j]<=84)\n\t\t\tjidian[j]=3.3;\n\t\telse if(a[1][j]>=78&&a[1][j]<=81)\n\t\t\tjidian[j]=3.0;\n\t\telse if(a[1][j]>=75&&a[1][j]<=77)\n\t\t\tjidian[j]=2.7;\n\t\telse if(a[1][j]>=72&&a[1][j]<=74)\n\t\t\tjidian[j]=2.3;\n\t\telse if(a[1][j]>=68&&a[1][j]<=71)\n\t\t\tjidian[j]=2.0;\n\t\telse if(a[1][j]>=64&&a[1][j]<=67)\n\t\t\tjidian[j]=1.5;\n\t\telse if(a[1][j]>=60&&a[1][j]<=63)\n\t\t\tjidian[j]=1.0;\n\t\telse jidian[j]=0;\n\t\tsum=sum+jidian[j]*a[0][j];\n\t\the=he+a[0][j];\n\t}\n gpa=sum/(float)he;\n\tprintf(\"%.2f\\n\",gpa);\n}\n\n"} +{"label": "83", "index": "41265", "code": "int main()\n{\n\tint n,i,j,k=0,fs[N],xf[N];\n\tdouble GPA,s;\n\tscanf(\"%d\",&n);\n\tfor(j=0;j=90&&fs[i]<=100)\n\t\t{\n s=s+4.0*xf[j];\n\t\t}\n\t\telse if(fs[i]>=85&&fs[i]<=89)\n\t\t{\n\t\t\ts=s+3.7*xf[j];\n\t\t}\n\t\telse if(fs[i]>=82&&fs[i]<=84)\n\t\t{\n\t\t\ts=s+3.3*xf[j];\n\t\t}\n\t\telse if(fs[i]>=78&&fs[i]<=81)\n\t\t{\n\t\t\ts=s+3.0*xf[j];\n\t\t}\n\t\telse if(fs[i]>=75&&fs[i]<=77)\n\t\t{\n\t\t\ts=s+2.7*xf[j];\n\t\t}\n else if(fs[i]>=72&&fs[i]<=74)\n\t\t{\n\t\t\ts=s+2.3*xf[j];\n\t\t}\n else if(fs[i]>=68&&fs[i]<=71)\n\t\t{\n\t\t\ts=s+2.0*xf[j];\n\t\t}\n else if(fs[i]>=64&&fs[i]<=67)\n\t\t{\n\t\t\ts=s+1.5*xf[j];\n\t\t}\n else if(fs[i]>=60&&fs[i]<=63)\n\t\t{\n\t\t\ts=s+1.0*xf[j];\n\t\t} \n else if(fs[i]<60)\n\t\t{\n\t\t\ts=s+0;\n\t\t}\n\t\tj=j+1;\n\t}\n\tGPA=s/k;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41266", "code": "double function(int x)\n{\n\tif(x>=90&&x<=100)\n\t{\n\t\treturn 4.0;\n\t}\n else if(x>=85&&x<=89)\n\t{\n\t\treturn 3.7;\n\t}\n\telse if(x>=82&&x<=84)\n\t{\n\t\treturn 3.3;\n\t}\n\telse if(x>=78&&x<=81)\n\t{\n\t\treturn 3.0;\n\t}\n\telse if(x>=75&&x<=77)\n\t{\n\t\treturn 2.7;\n\t}\n\telse if(x>=72&&x<=74)\n\t{\n\t\treturn 2.3;\n\t}\n\telse if(x>=68&&x<=71)\n\t{\n\t\treturn 2.0;\n\t}\n\telse if(x>=64&&x<=67)\n\t{\n\t\treturn 1.5;\n\t}\n\telse if(x>=60&&x<=63)\n\t{\n\t\treturn 1.0;\n\t}\n\telse if(x<60)\n\t{\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tint n,j,sum1=0;\n\tdouble sum2=0;\n\tint a[10],b[10];\n\tdouble c[10];\n\tcin>>n;\n\tfor(j=0;j>a[j];\n\t\tsum1+=a[j];\n\t}\n\tfor(j=0;j>b[j];\n\t\tc[j]=function(b[j]);\n\t\tsum2+=c[j]*a[j];\n\t}\n\tprintf(\"%.2f\\n\",sum2/sum1);\n\treturn 0;\n}"} +{"label": "83", "index": "41267", "code": "int main() {\nint n, i;\nscanf(\"%d\",&n);\nint sz1[n];\nint sz2[n];\nfor(i=0; i=90 && sz2[i]<=100) {\n score1[i]=4.00; }\n else if (sz2[i]>=85 && sz2[i]<=89) {\n score1[i]=3.70; }\n else if (sz2[i]>=82 && sz2[i]<=84) {\n score1[i]=3.30; }\n else if (sz2[i]>=78 && sz2[i]<=81) {\n score1[i]=3.00; }\n else if (sz2[i]>=75 && sz2[i]<=77) {\n score1[i]=2.70; }\n else if (sz2[i]>=72 && sz2[i]<=74) {\n score1[i]=2.30; }\n else if (sz2[i]>=68 && sz2[i]<=71) {\n score1[i]=2.00; }\n else if (sz2[i]>=64 && sz2[i]<=67) {\n score1[i]=1.50; }\n else if (sz2[i]>=60 && sz2[i]<=63) {\n score1[i]=1.00; }\n else if (sz2[i]<=60) {\n score1[i]=0.00; }\n }\nfloat score2[n];\nfor(i=0; i=90)\n {core[i]=40;continue;}\n if(core[i]<=89&&core[i]>=85)\n {core[i]=37;continue;}\n if(core[i]<=84&&core[i]>=82)\n { core[i]=33;continue;} \n if(core[i]<=81&&core[i]>=78)\n {core[i]=30; continue;} \n if(core[i]<=77&&core[i]>=75)\n { core[i]=27;continue;} \n if(core[i]<=74&&core[i]>=72)\n { core[i]=23;continue;} \n if(core[i]<=71&&core[i]>=68)\n { core[i]=20;continue;} \n if(core[i]<=67&&core[i]>=64)\n { core[i]=15;continue;}\n if(core[i]<=63&&core[i]>=60)\n { core[i]=10;continue;}\n if(core[i]<=59&&core[i]>=0)\n {core[i]=0; continue;} \n }\n\n for(i=0;i<=k-1;i++)\n alle=alle+core[i]*j[i];\n\n for(i=0;i<=k-1;i++)\n {all=all+j[i];}\n\n printf(\"%.2lf\",1.0*alle/10/all);\n \n \nreturn 0;\n}\n\n"} +{"label": "83", "index": "41269", "code": "void main()\n{\n\tint n,i,f,z=0;\n\tscanf(\"%d\",&n);\n\tint g[11];\n\tdouble p[11];double GPA;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&g[i-1]);\n\t\tz+=g[i-1];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&f);\n\t\tif(f<60)\n\t\t\tp[i-1]=0;\n\t\telse if(f>=60&&f<=63)\n\t\t\tp[i-1]=1.0;\n\t\telse if(f>=64&&f<=67)\n\t\t\tp[i-1]=1.5;\n\t\telse if(f>=68&&f<=71)\n\t\t\tp[i-1]=2.0;\n\t\telse if(f>=72&&f<=74)\n\t\t\tp[i-1]=2.3;\n\t\telse if(f>=75&&f<=77)\n\t\t\tp[i-1]=2.7;\n\t\telse if(f>=78&&f<=81)\n\t\t\tp[i-1]=3.0;\n\t\telse if(f>=82&&f<=84)\n\t\t\tp[i-1]=3.3;\n\t\telse if(f>=85&&f<=89)\n\t\t\tp[i-1]=3.7;\n\t\telse if(f>=90&&f<=100)\n\t\t\tp[i-1]=4.0;\n\t}\n\tfor(i=1;i<=n;i++)\n\t\tGPA+=p[i-1]*g[i-1];\n\tGPA=GPA/z;\n\tprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41270", "code": "int main()\n{\n int n,i,j;\n float a[3][11];\n scanf(\"%d\",&n);\n for(i=0;i<2;i++)\n {\n\t for(j=0;j=90){\n\t\t a[1][k]=4.0*a[0][k];}\n\t else if(a[1][k]>=85&&a[1][k]<=89){\n\t\t a[1][k]=3.7*a[0][k];}\n\t else if(a[1][k]>=82&&a[1][k]<=84){\n\t\t a[1][k]=3.3*a[0][k];}\n\t else if(a[1][k]>=78&&a[1][k]<=81){\n\t\t a[1][k]=3.0*a[0][k];}\n\t else if(a[1][k]>=75&&a[1][k]<=77){\n\t\t a[1][k]=2.7*a[0][k];}\n\t else if(a[1][k]>=72&&a[1][k]<=74){\n\t\t a[1][k]=2.3*a[0][k];}\n\t else if(a[1][k]>=68&&a[1][k]<=71){\n\t\t a[1][k]=2.0*a[0][k];}\n\t else if(a[1][k]>=64&&a[1][k]<=67){\n\t\t a[1][k]=1.5*a[0][k];}\n\t else if(a[1][k]>=60&&a[1][k]<=63){\n\t\t a[1][k]=1.0*a[0][k];}\n\t else {\n\t\t a[1][k]=0;}\n\t s1+=a[1][k];\n }\nint s2=0;\nfor(int p=0;p=90&&sz[1][j]<=100)x=4.0*sz[0][j];\n\n\t\tif(sz[1][j]>=85&&sz[1][j]<=89)x=3.7*sz[0][j];\n\n\t\tif(sz[1][j]>=82&&sz[1][j]<=84)x=3.3*sz[0][j];\n\n\t\tif(sz[1][j]>=78&&sz[1][j]<=81)x=3.0*sz[0][j];\n\n\t\tif(sz[1][j]>=75&&sz[1][j]<=77)x=2.7*sz[0][j];\n\n if(sz[1][j]>=72&&sz[1][j]<=74)x=2.3*sz[0][j];\n\n\t\t\tif(sz[1][j]>=68&&sz[1][j]<=71)x=2.0*sz[0][j];\n\n\t\t\t\tif(sz[1][j]>=64&&sz[1][j]<=67)x=1.5*sz[0][j];\n\n\t\t\t\t\tif(sz[1][j]>=60&&sz[1][j]<=63)x=1.0*sz[0][j];\n\t\t\t\t\tif(sz[1][j]<60)x=0*sz[0][j];\n z+=x;\n\n\t}\n\n\t\n\n\tfloat GPA;\n\n\tGPA=z/y;\n\nprintf(\"%.2f\",GPA); \n\nreturn 0;\n\n}"} +{"label": "83", "index": "41272", "code": "int main(){\nint a[500];\nint b[500];\ndouble c[500];\ndouble GPA;\nint i,kc,j;\ndouble sum,res;\nscanf(\"%d\\n\",&kc);\nfor(i=0;i=90&&b[i]<=100){\nc[j]=4.0;\n}else if(b[i]>=85&&b[i]<=89){\nc[j]=3.7;\n}else if(b[i]>=82&&b[i]<=84){\nc[j]=3.3;\n}else if(b[i]>=78&&b[i]<=81){\nc[j]=3.0;\n}else if(b[i]>=75&&b[i]<=77){\nc[j]=2.7;\n}else if(b[i]>=72&&b[i]<=74){\nc[j]=2.3;\n}else if(b[i]>=68&&b[i]<=71){\nc[j]=2.0;\n}else if(b[i]>=64&&b[i]<=67){\nc[j]=1.5;\n}else if(b[i]>=60&&b[i]<=63){\nc[j]=1.0;\n}else if(b[i]<60){\nc[j]=0.0;\n}\n}\nsum=0;\nres=0;\nfor(i=0;i= 90 && b[i] <= 100)\n\t\t\tb[i] = 4.0;\n\t\telse if(b[i] >= 85)\n\t\t\tb[i] = 3.7;\n\t\telse if(b[i] >= 82)\n\t\t\tb[i] = 3.3;\n\t\telse if(b[i] >= 78)\n\t\t\tb[i] = 3.0;\n\t\telse if(b[i] >= 75)\n\t\t\tb[i] = 2.7;\n\t\telse if(b[i] >= 72)\n\t\t\tb[i] = 2.3;\n\t\telse if(b[i] >= 68)\n\t\t\tb[i] = 2.0;\n\t\telse if(b[i] >= 64)\n\t\t\tb[i] = 1.5;\n\t\telse if(b[i] >= 60)\n\t\t\tb[i] = 1.0;\n\t\telse \n\t\t\tb[i] = 0;\n\t\tgpa = gpa + b[i] * a[i];\n\t}\n\tgpa = gpa / xue;\n\tprintf(\"%.2lf\\n\", gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41274", "code": "int main()\n{\nint a[10],b[10],n,i,j;\nfloat s,c[10],s1=0.0,s2=0.0;\nscanf(\"%d\",&n);\nfor(i=0;i89)\nc[i]=4.0*a[i];\nelse if(b[i]>84)\nc[i]=3.7*a[i];\nelse if(b[i]>81)\nc[i]=3.3*a[i];\nelse if(b[i]>77)\nc[i]=3.0*a[i];\nelse if(b[i]>74)\nc[i]=2.7*a[i];\nelse if(b[i]>71)\nc[i]=2.3*a[i];\nelse if(b[i]>67)\nc[i]=2.0*a[i];\nelse if(b[i]>63)\nc[i]=1.5*a[i];\nelse if(b[i]>60)\nc[i]=1.0*a[i];\nelse c[i]=0.0;}\nfor(i=0;i=90&&a<=100){sum+=f[i]*4.0;continue;}\n if(a>=85&&a<=89) {sum+=f[i]*3.7;continue;}\n if(a>=82&&a<=84) {sum+=f[i]*3.3;continue;}\n if(a>=78&&a<=81) {sum+=f[i]*3.0;continue;}\n if(a>=75&&a<=77) {sum+=f[i]*2.7;continue;}\n if(a>=72&&a<=74) {sum+=f[i]*2.3;continue;}\n if(a>=68&&a<=71) {sum+=f[i]*2.0;continue;}\n if(a>=64&&a<=67) {sum+=f[i]*1.5;continue;}\n if(a>=60&&a<=63) {sum+=f[i]*1.0;continue;}\n }\n printf(\"%.2f\",sum/b);\n\n}"} +{"label": "83", "index": "41276", "code": "int main(){\n\tint n,q=0,i,xuefen[10],chengji[10];\n\tdouble p=0,zong,GPA[10],xuefenGPA[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\tGPA[i]=4.0;\n\t\t}else if(chengji[i]>=85&&chengji[i]<90){\n\t\tGPA[i]=3.7;\n\t\t}else if(chengji[i]>=82&&chengji[i]<85){\n\t\tGPA[i]=3.3;\n\t\t}else if(chengji[i]>=78&&chengji[i]<82){\n\t\tGPA[i]=3.0;\n\t\t}else if(chengji[i]>=75&&chengji[i]<78){\n\t\tGPA[i]=2.7;\n\t\t}else if(chengji[i]>=72&&chengji[i]<75){\n\t\tGPA[i]=2.3;\n\t\t}else if(chengji[i]>=68&&chengji[i]<72){\n\t\tGPA[i]=2.0;\n\t\t}else if(chengji[i]>=64&&chengji[i]<68){\n\t\tGPA[i]=1.5;\n\t\t}else if(chengji[i]>=60&&chengji[i]<64){\n\t\tGPA[i]=1.0;\n\t\t}else{\n GPA[i]=0;\n\t\t}\n\t}\n for(i=0;i=90){\n ji=4.0; \n }\n else if((s[t])<=89&&(s[t])>=85){\n\t ji=3.7;\n }\nelse if((s[t])<=84&&(s[t])>=82){\n ji=3.3;\n }\nelse if((s[t])<=81&&(s[t])>=78){\n ji=3.0;\n }\nelse if((s[t])<=77&&(s[t])>=75){\n ji=2.7;\n }\nelse if((s[t])<=74&&(s[t])>=72){\n ji=2.3;\n }\nelse if((s[t])<=71&&(s[t])>=68){\n ji=2.0;\n }\nelse if((s[t])<=67&&(s[t])>=64){\n ji=1.5;\n }\nelse if((s[t])<=63&&(s[t])>=60){\n ji=1.0;\n }\nelse{\n ji=0.0;\n }\nj[t]=x[t]*ji;\n }\nfor(t=0;t=60)\n\t\t\tc[i]=1.0;\n\t\telse if(b[i]<=67&&b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\telse if(b[i]<=71&&b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\telse if(b[i]<=74&&b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if(b[i]<=77&&b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if(b[i]<=81&&b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\telse if(b[i]<=84&&b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if(b[i]<=89&&b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse\n\t\t\tc[i]=4.0;\n\t}\n\tdouble GPA,sum=0,score=0;\n\tfor(i=0;i=90)\n\t\t\ty[i]=4.0;\n\t\telse if(b>=85)\n\t\t\ty[i]=3.7;\n\t\t\telse if(b>82)\n\t\t\ty[i]=3.3;\n\t\t\telse if(b>=78)\n\t\t\ty[i]=3.0;\n\t\t\telse if(b>=75)\n\t\t\ty[i]=2.7;\n\t\t\telse if(b>=72)\n\t\t\ty[i]=2.3;\n\t\t\telse if(b>=68)\n\t\t\ty[i]=2.0;\n\t\t\telse if(b>=64)\n\t\t\ty[i]=1.5;\n\t\t\telse if(b>=60)\n\t\t\ty[i]=1.0;\n\t\t\telse y[i]=0;\n\t\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t s=s+y[i]*x[i];\n p=p+x[i];\n\t}\nGPA=s/p;\nprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41280", "code": "void main()\n{\n\tint n,i;\n\tint a[2][10],c=0;\n\tdouble b[10];\n\tdouble m=0;\n\tscanf(\"%d\",&n);\nfor(i=0;i=90&&a[1][i]<=100)\n b[i]=4.0;\n\tif(a[1][i]>=85&&a[1][i]<=89)\n\t\tb[i]=3.7;\n\tif(a[1][i]>=82&&a[1][i]<=84)\n\t\tb[i]=3.3;\n\tif(a[1][i]>=78&&a[1][i]<=81)\n\t\tb[i]=3.0;\n\tif(a[1][i]>=75&&a[1][i]<=77)\n\t\tb[i]=2.7;\n\tif(a[1][i]>=72&&a[1][i]<=74)\n\t\tb[i]=2.3;\n\tif(a[1][i]>=68&&a[1][i]<=71)\n\t\tb[i]=2.0;\n\tif(a[1][i]>=64&&a[1][i]<=67)\n\t\tb[i]=1.5;\n if(a[1][i]>=60&&a[1][i]<=63)\n\t\tb[i]=1.0;\n\tif(a[1][i]<60)\n\t\tb[i]=0;\n}\nfor(i=0;i=90&&goal<=100) f=4.0;\nif(goal>=85&&goal<=89) f=3.7;\nif(goal>=82&&goal<=84) f=3.3;\nif(goal>=78&&goal<=81) f=3.0;\nif(goal>=75&&goal<=77) f=2.7;\nif(goal>=72&&goal<=74) f=2.3;\nif(goal>=68&&goal<=71) f=2.0;\nif(goal>=64&&goal<=67) f=1.5;\nif(goal>=60&&goal<=63) f=1.0;\nif(goal<60) f=0;\nnum=point[i]*f;\nd=d+num;\n\n}\ngpa=(double)(d/c);\nprintf(\"%.2f\",gpa);\n}\n\n"} +{"label": "83", "index": "41283", "code": "int main()\n{\n \tint i,m=0,n;\n \tint a[11]={0},b[11]={0};\n\tfloat GPA=0;\n\tfloat c[11]={0},d[11]={0};\n \tcin>>n;\n \tfor (i=1;i<=n;i++)\n\t{\n\t \tcin>>a[i];\n\t}\t \n\tfor (i=1;i<=n;i++)\n\t{\n\t \tcin>>b[i];\n\t\tif (b[i]>=90 && b[i]<101) c[i]=4.0;\n\t\tif (b[i]>=85 && b[i]<90) c[i]=3.7;\n\t\tif (b[i]>=82 && b[i]<85) c[i]=3.3;\n\t\tif (b[i]>=78 && b[i]<82) c[i]=3.0;\n\t\tif (b[i]>=75 && b[i]<78) c[i]=2.7;\n\t\tif (b[i]>=72 && b[i]<75) c[i]=2.3;\n\t\tif (b[i]>=68 && b[i]<72) c[i]=2.0;\n\t\tif (b[i]>=64 && b[i]<68) c[i]=1.5;\n\t\tif (b[i]>=60 && b[i]<64) c[i]=1.0;\n\t\tif (b[i]>=0 && b[i]<60) c[i]=0.0;\n\t}\t \n\tfor (i=1;i<=n;i++)\n\t{\n\t d[i]= a[i] * c[i];\n\t GPA+=d[i];m=m+a[i];\n\t}\t \n\tprintf(\"%.2f\",GPA/m);\n\t\n}\n"} +{"label": "83", "index": "41284", "code": "int main()\n{\n\tint n,i;\n\tfloat zong;\n\tfloat sump=0.0;\n\tint sumxuefen=0;\n\tfloat p[10];\n\tint g[10];\n\tint xuefen[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t\tp[i]=4.0*xuefen[i];\n\t\telse if(g[i]>=85)\n\t\t\tp[i]=3.7*xuefen[i];\n\t\telse if(g[i]>=82)\n\t\t\tp[i]=3.3*xuefen[i];\n\t\telse if(g[i]>=78)\n\t\t\tp[i]=3.0*xuefen[i];\n\t\telse if(g[i]>=75)\n\t\t\tp[i]=2.7*xuefen[i];\n\t\telse if(g[i]>=72)\n\t\t\tp[i]=2.3*xuefen[i];\n\t\telse if(g[i]>=68)\n\t\t\tp[i]=2.0*xuefen[i];\n\t\telse if(g[i]>=64)\n\t\t\tp[i]=1.5*xuefen[i];\n\t\telse if(g[i]>=60)\n\t\t\tp[i]=1.0*xuefen[i];\n\t\telse p[i]=0.0;\n\t}\n\tfor(i=0;i=90&&f<=100){\n\tj[m]=4.0;\n\t}\n\telse if(f>=85&&f<=89){\n\tj[m]=3.7;\n\t}\n else if(f>=82&&f<=84){\n\tj[m]=3.3;\n\t}\n else if(f>=78&&f<=81){\n\tj[m]=3.0;\n\t}\n else if(f>=75&&f<=77){\n\tj[m]=2.7;\n\t}\n else if(f>=72&&f<=74){\n\tj[m]=2.3;\n\t}\n else if(f>=68&&f<=71){\n\tj[m]=2.0;\n\t}\n else if(f>=64&&f<=67){\n\tj[m]=1.5;\n\t}\n else if(f>=60&&f<=63){\n\tj[m]=1.0;\n\t}\n else if(f<60){\n\tj[m]=0;\n\t}\n\t}\n\tfor(m=0;m=sz2[i]&&sz2[i]>=85)\n {\n\tsz[i]=3.7;\n\t}\n\tif(84>=sz2[i]&&sz2[i]>=82){\n\t\tsz[i]=3.3;\n\t}\n if(81>=sz2[i]&&sz2[i]>=78){\n\t\tsz[i]=3.0;\n\t}\n if(77>=sz2[i]&&sz2[i]>=75){\n\t\tsz[i]=2.7;\n\t}\n if(74>=sz2[i]&&sz2[i]>=72){\n\t\tsz[i]=2.3;\n\t}\n if(71>=sz2[i]&&sz2[i]>=68){\n\t\tsz[i]=2.0;\n\t}\n if(67>=sz2[i]&&sz2[i]>=64){\n\t\tsz[i]=1.5;\n\t}\n if(63>=sz2[i]&&sz2[i]>=60){\n\t\tsz[i]=1.0;\n\t}\n if(sz2[i]<60){\n\t\tsz[i]=0.0;\n\t}\n \t}\n\tfor(i=0;i=90) return 4.;\n\tif(x>=85) return 3.7;\n\tif(x>=82) return 3.3;\n\tif(x>=78) return 3.;\n\tif(x>=75) return 2.7;\n\tif(x>=72) return 2.3;\n\tif(x>=68) return 2.;\n\tif(x>=64) return 1.5;\n\tif(x>=60) return 1.;\n\treturn 0;\n}\nint main()\n{\n\twhile(scanf(\"%d\",&n)==1)\n\t{\n\t\tint sum1=0;\n\t\tdouble sum2=0;\n\t\tfor(int i=0;i=90){\n mark[i]=4.0;\n }else if(\n 85<=mark[i]&&mark[i]<=89){\n mark[i]=3.7;\n }else if(\n 82<=mark[i]&&mark[i]<=84){\n mark[i]=3.3;\n }else if(\n 78<=mark[i]&&mark[i]<=81){\n mark[i]=3.0;\n }else if(\n 75<=mark[i]&&mark[i]<=77){\n mark[i]=2.7;\n }else if(\n 72<=mark[i]&&mark[i]<=74){\n mark[i]=2.3;\n }else if(\n 68<=mark[i]&&mark[i]<=71){\n mark[i]=2.0;\n }else if(\n 64<=mark[i]&&mark[i]<=67){\n mark[i]=1.5;\n }else if(\n 60<=mark[i]&&mark[i]<=63){\n mark[i]=1.0;\n }else if(\n mark[i]<60){\n mark[i]=0;\n }\n \n }\n double sum[10];\n for(i=0;i=90){\n\t\t\tjidian[i]=4.0;\n\t\t}\n\t\telse if(defen[i]>=85){\n\t\t\tjidian[i]=3.7;\n\t\t}\n\t\telse if(defen[i]>=82){\n\t\t\tjidian[i]=3.3;\n\t\t}\n\t\telse if(defen[i]>=78){\n\t\t\tjidian[i]=3.0;\n\t\t}\n\t\telse if(defen[i]>=75){\n\t\t\tjidian[i]=2.7;\n\t\t}\n\t\telse if(defen[i]>=72){\n\t\t\tjidian[i]=2.3;\n\t\t}\n\t\telse if(defen[i]>=68){\n\t\t\tjidian[i]=2.0;\n\t\t}\n\t\telse if(defen[i]>=64){\n\t\t\tjidian[i]=1.5;\n\t\t}\n\t\telse if(defen[i]>=60){\n\t\t\tjidian[i]=1.0;\n\t\t}\n\t\telse{\n\t\t\tjidian[i]=0;\n\t\t}\n\t}\n\t\tfor(i=0;i=90&&df[i]<=100)zj=zj+4.0*xf[i];\n else if(df[i]>=85&&df[i]<=89)zj=zj+3.7*xf[i];\n else if(df[i]>=82&&df[i]<=84)zj=zj+3.3*xf[i];\n else if(df[i]>=78&&df[i]<=81)zj=zj+3.0*xf[i];\n else if(df[i]>=75&&df[i]<=77)zj=zj+2.7*xf[i];\n else if(df[i]>=72&&df[i]<=74)zj=zj+2.3*xf[i];\n else if(df[i]>=68&&df[i]<=71)zj=zj+2.0*xf[i];\n else if(df[i]>=64&&df[i]<=67)zj=zj+1.5*xf[i];\n else if(df[i]>=60&&df[i]<=63)zj=zj+1.0*xf[i];\n else if(df[i]<60)zj=zj;\n \n }\n for(int i=0;i=90)\n\t\t c[i]=4.0;\n if(b[i]<=89&&b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\tif(b[i]<=84&&b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\tif(b[i]<=81&&b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\tif(b[i]<=77&&b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\tif(b[i]<=74&&b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\tif(b[i]<=71&&b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\tif(b[i]<=67&&b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\tif(b[i]<=63&&b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\tif(b[i]<=59&&b[i]>=0)\n\t\t\tc[i]=0;\n\t}\n\tfor(i=0;i> n;\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tcin >>x;\n\t\tcre[i] = x;\n\t\tsc += x;\n\t}\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tcin >> y;\n\t\tif(y >= 90 && y <=100)\t\n\t\t\tcourse[i] = 4.0;\n\t\tif(y >= 85 && y <=89)\t\n\t\t\tcourse[i] = 3.7;\n\t\tif(y >= 82 && y <=84)\t\n\t\t\tcourse[i] = 3.3;\n\t\tif(y >= 78 && y <=81)\t\n\t\t\tcourse[i] = 3.0;\n\t\tif(y >= 75 && y <=77)\t\n\t\t\tcourse[i] = 2.7;\n\t\tif(y >= 72 && y <=74)\t\n\t\t\tcourse[i] = 2.3;\n\t\tif(y >= 68 && y <=71)\t\n\t\t\tcourse[i] = 2.0;\n\t\tif(y >= 64 && y <=67)\t\n\t\t\tcourse[i] = 1.5;\n\t\tif(y >= 60 && y <=63)\t\n\t\t\tcourse[i] = 1.0;\n\t\tif(y < 60)\t\n\t\t\tcourse[i] = 0.0;\n\t}\n\tfor(int i = 0; i < n; i++)\n\t\tsum += course[i] * cre[i];\n\tgpa = sum / sc;\n\tprintf(\"%.2f\\n\", gpa);\n\treturn 0;\t\n}"} +{"label": "83", "index": "41293", "code": "int main()\n{\n\tint n,num1[10],i,num2[10];\n\tdouble sum[10],sum1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t{\nszc[i]=4.0;\n\t}\n\telse if(szb[i]<=89&&szb[i]>=85)\n\t{\n\t\tszc[i]=3.7;\n\t}\nelse if(szb[i]<=84&&szb[i]>=82)\n\t{\n\t\tszc[i]=3.3;\n\t}\nelse if(szb[i]<=81&&szb[i]>=78)\n\t{\n\t\tszc[i]=3.0;\n\t}\nelse if(szb[i]<=77&&szb[i]>=75)\n\t{\n\t\tszc[i]=2.7;\n\t}\nelse if(szb[i]<=74&&szb[i]>=72)\n\t{\n\t\tszc[i]=2.3;\n\t}\nelse if(szb[i]<=71&&szb[i]>=68)\n\t{\n\t\tszc[i]=2.0;\n\t}\nelse if(szb[i]<=67&&szb[i]>=64)\n\t{\n\t\tszc[i]=1.5;\n\t}\nelse if(szb[i]<=63&&szb[i]>=61)\n\t{\n\t\tszc[i]=1.0;\n\t}\nelse if(szb[i]<=60)\n\t{\n\t\tszc[i]=0;\n\t}\n}\nfor(i=0;i=90){gpa[i]=4.0;}\n\telse if(85<=df[i]&&df[i]<=90){gpa[i]=3.7;}\n\telse if(82<=df[i]&&df[i]<=84){gpa[i]=3.3;}\n\telse if(78<=df[i]&&df[i]<=81){gpa[i]=3.0;}\n\telse if(72<=df[i]&&df[i]<=74){gpa[i]=2.3;}\n\telse if(68<=df[i]&&df[i]<=71){gpa[i]=2.0;}\n\telse if(64<=df[i]&&df[i]<=67){gpa[i]=1.5;}\n\telse if(60<=df[i]&&df[i]<=63){gpa[i]=1.0;}\n else{gpa[i]=0;}\n\txfjd[i]=xf[i]*gpa[i];\n\tjdh+=xfjd[i];\n\t}\n\tGPA=jdh/xfh;\n printf(\"%.2f\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41296", "code": "int main()\n{\n int n,i;\n float s,k=0,l=0;\n cin>>n;\n int a[n],b[n];\n float c[n];\n for(i=0;i>a[i];\n for(i=0;i>b[i];\n if(b[i]>=90&&b[i]<=100)\n c[i]=4;\n else if(b[i]>=85&&b[i]<=89)\n c[i]=3.7;\n else if(b[i]>=82&&b[i]<=84)\n c[i]=3.3;\n else if(b[i]>=78&&b[i]<=81)\n c[i]=3.0;\n else if(b[i]>=75&&b[i]<=77)\n c[i]=2.7;\n else if(b[i]>=72&&b[i]<=74)\n c[i]=2.3;\n else if(b[i]>=68&&b[i]<=71)\n c[i]=2.0;\n else if(b[i]>=64&&b[i]<=67)\n c[i]=1.5;\n else if(b[i]>=60&&b[i]<=63)\n c[i]=1.0;\n else c[i]=0;\n }\n for(i=0;i=90)\n\t\t{\n\t\t\ty[i]=4.00;\n\t\t}\n\t\telse if(x[i]<60)\n\t\t{\n\t\t\ty[i]=0.00;\n\t\t}\n\t else if(x[i]<=89&&x[i]>=85)\n\t\t\t {\n\t\t\t\t y[i]=3.70;\n\t\t\t }\n\t\telse if(x[i]<=84&&x[i]>=82)\n\t\t\t\t {\n\t\t\t\t\t y[i]=3.30;\n\t\t\t\t }\n\t\telse if(x[i]<=81&&x[i]>=78)\n\t\t\t\t\t{\n\t\t\t\t\t\t y[i]=3.00;\n }\n else if(x[i]<=77&&x[i]>=75)\n\t\t\t\t {\n\t\t\t\t\t\t\t y[i]=2.70;\n\t\t\t }\n else if(x[i]<=74&&x[i]>=72)\n {\n y[i]=2.30;\n }\n else if(x[i]<=71&&x[i]>=68)\n {\n y[i]=2.00;\n }\n else if(x[i]<=67&&x[i]>=64)\n {\n y[i]=1.50;\n }\n else if(x[i]<=63&&x[i]>=60)\n {\n y[i]=1.00;\n }\n\t}\n\tfor(i=0;i=90) jidian[i]=4.0;\n\tif(chengji[i]<=89&&chengji[i]>=85) jidian[i]=3.7;\n\tif(chengji[i]<=84&&chengji[i]>=82) jidian[i]=3.3;\n\tif(chengji[i]<=81&&chengji[i]>=78) jidian[i]=3.0;\n if(chengji[i]<=77&&chengji[i]>=75) jidian[i]=2.7;\n if(chengji[i]<=74&&chengji[i]>=72) jidian[i]=2.3;\n\tif(chengji[i]<=71&&chengji[i]>=68) jidian[i]=2.0;\n if(chengji[i]<=67&&chengji[i]>=64) jidian[i]=1.5;\n if(chengji[i]<=63&&chengji[i]>=60) jidian[i]=1.0;\n if(chengji[i]<=59) jidian[i]=0;\n\t}\n\tfloat xuefenjidian[10],sum2=0;\n\tint j;\n\tfor(j=0;j=90)\n\t\t{\n\t\t\tgpa+=4.0*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=85&&defen[i]<=89)\n\t\t{\n\t\t\tgpa+=3.7*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=82&&defen[i]<=84)\n\t\t{\n\t\t\tgpa+=3.3*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=78&&defen[i]<=81)\n\t\t{\n\t\t\tgpa+=3.0*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=75&&defen[i]<=77)\n\t\t{\n\t\t\tgpa+=2.7*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=72&&defen[i]<=74)\n\t\t{\n\t\t\tgpa+=2.3*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=68&&defen[i]<=71)\n\t\t{\n\t\t\tgpa+=2.0*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=64&&defen[i]<=67)\n\t\t{\n\t\t\tgpa+=1.5*xuefen[i];\n\t\t}\n\t\telse if(defen[i]>=60&&defen[i]<=63)\n\t\t{\n\t\t\tgpa+=1.0*xuefen[i];\n\t\t}\n\t\t\n\t}\n\tGPA=gpa/fen;\n\tprintf(\"%.2f\",GPA);\n}\n"} +{"label": "83", "index": "41300", "code": "int main(){\nint n,a=0;\ndouble s=0;\nfloat GPA;\nscanf(\"%d\",&n);\nint x[n],y[n];\nfor(int i=0;i=90&&y[i]<=100){\n s=s+4.0*x[i];\n }else if(y[i]>=85&&y[i]<=89){\n s=s+3.7*x[i];\n }else if(y[i]>=82&&y[i]<=84){\n s=s+3.3*x[i];\n }else if(y[i]>=78&&y[i]<=81){\n s=s+3.0*x[i];\n }else if(y[i]>=75&&y[i]<=77){\n s=s+2.7*x[i];\n }else if(y[i]>=72&&y[i]<=74){\n s=s+2.3*x[i];\n }else if(y[i]>=68&&y[i]<=71){\n s=s+2.0*x[i];\n }else if(y[i]>=64&&y[i]<=67){\n s=s+1.5*x[i];\n }else if(y[i]>=60&&y[i]<=63){\n s=s+1.0*x[i];\n }\n}\n GPA=s/a;\n printf(\"%.2f\",GPA);\n return 0;\n}\n\n\n\n\n"} +{"label": "83", "index": "41301", "code": "int main(){\n\tint n,s=0,a[15],f,i;\n\tdouble b[15],sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t\ts+=a[i];\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&f);\n\t\tif(f>=90){b[i]=4;}\n\t\telse if(f>=85){b[i]=3.7;}\n\t\telse if(f>=82){b[i]=3.3;}\n\t\telse if(f>=78){b[i]=3;}\n\t\telse if(f>=75){b[i]=2.7;}\n\t\telse if(f>=72){b[i]=2.3;}\n\t\telse if(f>=68){b[i]=2;}\n\t\telse if(f>=64){b[i]=1.5;}\n\t\telse if(f>=60){b[i]=1;}\n\t\telse {b[i]=0;}\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tsum+=a[i]*b[i];\n\t}\n\tprintf(\"%.2lf\",sum/s);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41302", "code": "int main()\n{\n float sz[10][10];\n\tint k;\n\tfloat zong=0;\n\tscanf(\"%d\",&k);\n\tfor(int i=0;i=90&&sz[1][t]<=100) sum=sum+4*sz[0][t];\n\t\tif(sz[1][t]>=85&&sz[1][t]<=89) sum=sum+3.7*sz[0][t];\n\t\tif(sz[1][t]>=82&&sz[1][t]<=84) sum=sum+3.3*sz[0][t];\n\t\tif(sz[1][t]>=78&&sz[1][t]<=81) sum=sum+3.0*sz[0][t];\n\t\tif(sz[1][t]>=75&&sz[1][t]<=77) sum=sum+2.7*sz[0][t];\n\t\tif(sz[1][t]>=72&&sz[1][t]<=74) sum=sum+2.3*sz[0][t];\n\t\tif(sz[1][t]>=68&&sz[1][t]<=71) sum=sum+2.0*sz[0][t];\n\t\tif(sz[1][t]>=64&&sz[1][t]<=67) sum=sum+1.5*sz[0][t];\n\t\tif(sz[1][t]>=60&&sz[1][t]<=63) sum=sum+1.0*sz[0][t];\n\t if(sz[1][t]<60) sum=sum+0*sz[0][t];\n\t}\n\tfloat GPA;\n\tGPA=sum/zong;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41303", "code": "int main()\n{ int i,n,b[11],p,sum=0;\n float a[11],k[101],GPA=0;\n\n for(i=0;i<=59;i++) k[i]=0;\n for(i=60;i<=63;i++) k[i]=1.0;\n for(i=64;i<=67;i++) k[i]=1.5;\n for(i=68;i<=71;i++) k[i]=2.0;\n for(i=72;i<=74;i++) k[i]=2.3;\n for(i=75;i<=77;i++) k[i]=2.7;\n for(i=78;i<=81;i++) k[i]=3.0;\n for(i=82;i<=84;i++) k[i]=3.3;\n for(i=85;i<=89;i++) k[i]=3.7;\n for(i=90;i<=100;i++) k[i]=4.0;\n\n scanf(\"%d\\n\",&n); \n for(i=1;i<=n;i++)\n scanf(\"%d\",&b[i]); \n scanf(\"\\n\");\n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&p);\n a[i]=k[p];\n GPA=GPA+a[i]*b[i];\n sum=sum+b[i];\n }\n\n GPA=GPA/sum;\n printf(\"%.2f\",GPA);\n}\n"} +{"label": "83", "index": "41304", "code": "int main()\n{\n\tint n, xf[10], df[10] , i;\n\tdouble a, sum1=0, sum2=0, z, xfjd[10];\n\tscanf(\"%d\", &n);\n\tfor(i=0; i=90) {c[i]=4.0;}\n else if(b[i]<=89&&b[i]>=85) {c[i]=3.7;}\n else if(b[i]<=84&&b[i]>=82) {c[i]=3.3;}\n else if(b[i]<=81&&b[i]>=78) {c[i]=3.0;}\n else if(b[i]<=77&&b[i]>=75) {c[i]=2.7;}\n else if(b[i]<=74&&b[i]>=72) {c[i]=2.3;}\n else if(b[i]<=71&&b[i]>=68) {c[i]=2.0;}\n else if(b[i]<=67&&b[i]>=64) {c[i]=1.5;}\n else if(b[i]<=63&&b[i]>=60) {c[i]=1.0;}\n else if(b[i]<60){c[i]=0;}\n d[i]=1.0*a[i]*c[i];\n }\n for(i=0;i=90&&d<=100)\n\t\t\te=4.0;\n\t\tif(d>=85&&d<=89)\n\t\t\te=3.7;\n\t\tif(d>=82&&d<=84)\n\t\t\te=3.3;\n\t\tif(d>=78&&d<=81)\n\t\t\te=3.0;\n\t\tif(d>=75&&d<=77)\n\t\t\te=2.7;\n\t\tif(d>=72&&d<=74)\n\t\t\te=2.3;\n\t\tif(d>=68&&d<=71)\n\t\t\te=2.0;\n\t\tif(d>=64&&d<=67)\n\t\t\te=1.5;\n\t\tif(d>=60&&d<=63)\n\t\t\te=1;\n\t\tif(d<=60)\n\t\t\te=0;\n\t\tg02[j]=e*g01[j];\n\t}\n\tfor(i=0;i=90) d=4.0;\n\t\t\tif (a[i].r<=89&&a[i].r>=85) d=3.7;\n\t\t\tif (a[i].r<=84&&a[i].r>=82) d=3.3;\n\t\t\tif (a[i].r<=81&&a[i].r>=78) d=3.0;\n\t\t\tif (a[i].r<=77&&a[i].r>=75) d=2.7;\n\t\t\tif (a[i].r<=74&&a[i].r>=72) d=2.3;\n\t\t\tif (a[i].r<=71&&a[i].r>=68) d=2.0;\t\n\t\t\tif (a[i].r<=67&&a[i].r>=64) d=1.5;\n\t\t\tif (a[i].r<=63&&a[i].r>=60) d=1.0;\n\t\ta[i].s=a[i].s*d;\n\t\td=0;\n\t\t}\n\tfor (i=0;i=90&&b<=100)c=4.0;\n\telse if(b>=85&&b<=89)c=3.7;\n\telse if(b>=82&&b<=84)c=3.3;\n\telse if(b>=78&&b<=81)c=3.0;\n\telse if(b>=75&&b<=77)c=2.7;\n\telse if(b>=72&&b<=74)c=2.3;\n\telse if(b>=68&&b<=71)c=2.0;\n\telse if(b>=64&&b<=67)c=1.5;\n\telse if(b>=60&&b<=63)c=1.0;\n\telse c=0;\n\treturn(c*a);\n}"} +{"label": "83", "index": "41310", "code": "int main()\n{\n\tint n,i,j,k,h,a[10],c[10],y;\n\tfloat b[10],sum=0,GPA,p=0;\n scanf(\"%d\\n\",&n);\n\tfor (i=0;i=90&&a[k]<=100)\n\t\t{\n\t\t\tb[k]=4.0;\n\t\t}\n\t\telse if(a[k]>=85&&a[k]<=89)\n\t\t{\n\t\t\tb[k]=3.7;\n\t\t}\n\t\telse if(a[k]>=82&&a[k]<=84)\n\t\t{\n\t\t\tb[k]=3.3;\n\t\t}\n\t\telse if(a[k]>=78&&a[k]<=81)\n\t\t{\n\t\t\tb[k]=3.0;\n\t\t}\n\t\telse if(a[k]>=75&&a[k]<=77)\n\t\t{\n\t\t\tb[k]=2.7;\n\t\t}\n\t\telse if(a[k]>=72&&a[k]<=74)\n\t\t{\n\t\t\tb[k]=2.3;\n\t\t}\n\t\telse if(a[k]>=68&&a[k]<=71)\n\t\t{\n\t\t\tb[k]=2.0;\n\t\t}\n\t\telse if(a[k]>=64&&a[k]<=67)\n\t\t{\n\t\t\tb[k]=1.5;\n\t\t}\n\t\telse if(a[k]>=60&&a[k]<=63)\n\t\t{\n\t\t\tb[k]=1.0;\n\t\t}\n\t\telse {\n\t\t\tb[k]=0;\n\t\t}\n\t}\n\tfor(h=0;h=90)\n\t\t\tb=4.0;\n\t\telse if(g[i]>=85)\n\t\t\tb=3.7;\n\t\telse if(g[i]>=82)\n\t\t\tb=3.3;\n\t\telse if(g[i]>=78)\n\t\t\tb=3.0;\n\t\telse if(g[i]>=75)\n\t\t\tb=2.7;\n\t\telse if(g[i]>=72)\n\t\t\tb=2.3;\n\t\telse if(g[i]>=68)\n\t\t\tb=2.0;\n\t\telse if(g[i]>=64)\n\t\t\tb=1.5;\n\t\telse if(g[i]>=60)\n\t\t\tb=1.0;\n\t\telse\n\t\t\tb=0;\n \n\t\td=b*f[i];\n\n\t\tc=c+d;\n\t}\n\n\te=c/sum;\n\tprintf(\"%.2f\\n\",e);\n}\n\n\n\n"} +{"label": "83", "index": "41312", "code": "int main()\n{\n\tint n,i,a[10],b[10],j=0;\n\tfloat c[10]={0},k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89)c[i]=a[i]*4.0;\n\t\telse if(b[i]>84&&b[i]<90)c[i]=a[i]*3.7;\n\t\telse if(b[i]>81&&b[i]<85)c[i]=a[i]*3.3;\n\t\telse if(b[i]>77&&b[i]<82)c[i]=a[i]*3.0;\n\t\telse if(b[i]>74&&b[i]<78)c[i]=a[i]*2.7;\n\t\telse if(b[i]>71&&b[i]<75)c[i]=a[i]*2.3;\n\t\telse if(b[i]>67&&b[i]<72)c[i]=a[i]*2.0;\n\t\telse if(b[i]>63&&b[i]<68)c[i]=a[i]*1.5;\n else if(b[i]>59&&b[i]<64)c[i]=a[i]*1.5;\n else if(b[i]<60)c[i]=0.0;}\n\tfor(i=0;i=90)\n\t\t\tjidian[j]=4.0;\n\t\telse if(defen[j]>=85&&defen[j]<=89)\n\t\t\tjidian[j]=3.7;\n else if(defen[j]>=82&&defen[j]<=84)\n\t\t\tjidian[j]=3.3;\n else if(defen[j]>=78&&defen[j]<=81)\n\t\t\tjidian[j]=3.0;\n else if(defen[j]>=75&&defen[j]<=77)\n\t\t\tjidian[j]=2.7;\n else if(defen[j]>=72&&defen[j]<=74)\n\t\t\tjidian[j]=2.3;\n else if(defen[j]>=68&&defen[j]<=71)\n\t\t\tjidian[j]=2.0;\n else if(defen[j]>=64&&defen[j]<=67)\n\t\t\tjidian[j]=1.5;\n else if(defen[j]>=60&&defen[j]<=63)\n\t\t\tjidian[j]=1.0;\n else\n\t\t\tjidian[j]=0;\n\t}\n\tint k;\n\tfloat sum2;\n\tfor(k=0;k=90)\n\t\t\tjd[j]=4.0;\n\t\telse if(score[j]>=85)\n\t\t\tjd[j]=3.7;\n\t\telse if(score[j]>=82)\n\t\t\tjd[j]=3.3;\n\t\telse if(score[j]>=78)\n\t\t\tjd[j]=3.0;\n\t\telse if(score[j]>=75)\n\t\t\tjd[j]=2.7;\n\t\telse if(score[j]>=72)\n\t\t\tjd[j]=2.3;\n\t\telse if(score[j]>=68)\n\t\t\tjd[j]=2.0;\n\t\telse if(score[j]>=64)\n\t\t\tjd[j]=1.5;\n\t\telse if(score[j]>=60)\n\t\t\tjd[j]=1.0;\n\t\telse jd[j]=0;\n\t}\n\tfor(j=0;j=90) gpa=4.0;\n else if(mark[i]>=85) gpa=3.7;\n else if(mark[i]>=82) gpa=3.3;\n else if(mark[i]>=78) gpa=3.0;\n else if(mark[i]>=75) gpa=2.7;\n else if(mark[i]>=72) gpa=2.3;\n else if(mark[i]>=68) gpa=2.0;\n else if(mark[i]>=64) gpa=1.5;\n else if(mark[i]>=60) gpa=1.0;\n else gpa=0;\n all=all+point[i]*gpa;\n sum+=point[i];\n }\n final=all/sum;\n printf(\"%.2f\",final);\n return 0;\n}"} +{"label": "83", "index": "41317", "code": "int main()\n{\n\tint n,i;\n\tint xf[10],sf[10];\n\tfloat G[10];\n\tfloat sumjdxf=0;\n\tint sumxf=0;\n\tfloat GPA;\n\tfloat jdxf[10];\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t G[i]=4.0;\n\t \n\n\t if((sf[i]<90)&&(sf[i]>=85))\n\t\t G[i]=3.7;\n\t \n\t if((sf[i]<85)&&(sf[i]>=82))\n\t\t G[i]=3.3;\n\t if((sf[i]<82)&&(sf[i]>=78))\n\t\t G[i]=3.0;\n\t if((sf[i]<78)&&(sf[i]>=75))\n\t\t G[i]=2.7;\n\t if((sf[i]<75)&&(sf[i]>=72))\n\t\t G[i]=2.3;\n\t if((sf[i]<72)&&(sf[i]>=68))\n\t\t G[i]=2.0;\n\t if((sf[i]<68)&&(sf[i]>=64))\n\t\t G[i]=1.5;\n\t if((sf[i]<64)&&(sf[i]>=60))\n\t\t G[i]=1.0;\n\t if(sf[i]<60)\n\t\t G[i]=0;\n\t jdxf[i]=G[i]*xf[i];\n\t sumjdxf+=jdxf[i];\n\t }\n\t for(i=0;i=90) gpa[k]=4.0;\n\t\t\telse if(grade[k]<=89&&grade[k]>=85) gpa[k]=3.7;\n\t\t\telse if(grade[k]<=84&&grade[k]>=82) gpa[k]=3.3;\n\t\t\telse if(grade[k]<=81&&grade[k]>=78) gpa[k]=3.0;\n\t\t\telse if(grade[k]<=77&&grade[k]>=75) gpa[k]=2.7;\n\t\t\telse if(grade[k]<=74&&grade[k]>=72) gpa[k]=2.3;\n\t\t\telse if(grade[k]<=71&&grade[k]>=68) gpa[k]=2.0;\n\t\t\telse if(grade[k]<=67&&grade[k]>=64) gpa[k]=1.5;\n\t\t\telse if(grade[k]<=63&&grade[k]>=60) gpa[k]=1.0;\n\t\t\telse if(grade[k]<=59&&grade[k]>=0) gpa[k]=0.0;\n\t\t\telse printf(\"your input is wrong\");\n\t\tgradesum+=gpa[k]*point[k]; \n\t\tpointsum+=point[k];\n\t\n\n\t}\n\n\n\t\n\n \n\tprintf(\"%.2f\",gradesum/pointsum);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41319", "code": "int main()\n{\n\tint n;\n\tfloat grade=0,point[10];\n\tcin>>n;\n\tint j;\n\tfor(j=0;j>point[j];\n\t}\n\tint i;\n\t\n\tint entry,total=0;\n\tfloat sum=0;\t\n\tfor(i=0;i>entry;\n\t\tif(entry>=90)\n\t\tgrade=4.0;\n\t\telse if(entry>=85)\n\t\tgrade=3.7;\n\t\telse if(entry>=82)\n\t\tgrade=3.3;\n\t\telse if(entry>=78)\n\t\tgrade=3.0;\n\t\telse if(entry>=75)\n\t\tgrade=2.7;\n\t\telse if(entry>=72)\n\t\tgrade=2.3;\n\t\telse if(entry>=68)\n\t\tgrade=2.0;\n\t\telse if(entry>=64)\n\t\tgrade=1.5;\n\t\telse if(entry>=60)\n\t\tgrade=1.0;\n\t\telse\n\t\tgrade=0;\n\t\tsum+=grade*point[i];\n\t\ttotal+=point[i];\n\t}\n\tfloat average=sum/total;\n\tcout<=90)\n\t\t{\n\t\t\tgpa[i]=4.0;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=85)\n\t\t{\n\t\t\tgpa[i]=3.7;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=82)\n\t\t{\n\t\t\tgpa[i]=3.3;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=78)\n\t\t{\n\t\t\tgpa[i]=3.0;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=75)\n\t\t{\n\t\t\tgpa[i]=2.7;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=72)\n\t\t{\n\t\t\tgpa[i]=2.3;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=68)\n\t\t{\n\t\t\tgpa[i]=2.0;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=64)\n\t\t{\n\t\t\tgpa[i]=1.5;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]>=60)\n\t\t{\n\t\t\tgpa[i]=1.0;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t\telse if(defen[i]<60)\n\t\t{\n\t\t\tgpa[i]=0.0;\n\t\t\tgpa[i]=gpa[i]*xuefen[i];\n\t\t\tgrade=grade+gpa[i];\n\t\t}\n\t}\n\tgrade=grade/sigma;\n\tprintf(\"%.2lf\",grade);\n\treturn 0;\n}"} +{"label": "83", "index": "41321", "code": "int main()\n{\n\tint n,i;\n\tdouble a[10],b[10],c[10],d[10],D=0,A=0,GPA;\n\tcin>>n;\n\tfor(i=0;i>a[i];}\n\tfor(i=0;i>b[i];}\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\tc[i]=4.0;}\n\t\tif(b[i]>=85&&b[i]<=89){\n\t\t\tc[i]=3.7;}\n\t\tif(b[i]>=82&&b[i]<=84){\n\t\t\tc[i]=3.3;}\n\t\tif(b[i]>=78&&b[i]<=81){\n\t\t\tc[i]=3.0;}\n\t\tif(b[i]>=75&&b[i]<=77){\n\t\t\tc[i]=2.7;}\n\t\tif(b[i]>=72&&b[i]<=74){\n\t\t\tc[i]=2.3;}\n\t\tif(b[i]>=68&&b[i]<=71){\n\t\t\tc[i]=2.0;}\n\t\tif(b[i]>=64&&b[i]<=67){\n\t\t\tc[i]=1.5;}\n\t\tif(b[i]>=60&&b[i]<=63){\n\t\t\tc[i]=1.0;}\n\t\tif(b[i]<60){\n\t\t\tc[i]=0;}}\n\tfor(i=0;i>n;\n\tfor(i=0;i>a[i];} //??????\n\tfor(i=0;i>b[i];} //??????\n\tfor(i=0;i=90)\n\t\t{gra[i]=4.0;}\n\t\tif(b[i]<=89&&b[i]>=85)\n\t\t{gra[i]=3.7;}\n\t\tif(b[i]<=84&&b[i]>=82)\n\t\t{gra[i]=3.3;}\n\t\tif(b[i]<=81&&b[i]>=78)\n\t\t{gra[i]=3.0;}\n if(b[i]<=77&&b[i]>=75)\n\t\t{gra[i]=2.7;}\n\t\tif(b[i]<=74&&b[i]>=72)\n\t\t{gra[i]=2.3;}\n\t\tif(b[i]<=71&&b[i]>=68)\n\t\t{gra[i]=2.0;}\n\t if(b[i]<=67&&b[i]>=64)\n\t\t{gra[i]=1.5;}\n\t\tif(b[i]<=63&&b[i]>=60)\n\t\t{gra[i]=1.0;}\n\t\tif(b[i]<60)\n\t\t{gra[i]=0.0; } \n\t} //??????????\n\t\tfor(i=0;i=90)\n\t\t{jd[i]=4.0;}\n else if(fs[i]>=85)\n\t\t{jd[i]=3.7;}\n else if(fs[i]>=82)\n\t\t{jd[i]=3.3;}\n else if(fs[i]>=78)\n\t\t{jd[i]=3.0;}\n else if(fs[i]>=75)\n\t\t{jd[i]=2.7;}\n else if(fs[i]>=72)\n\t\t{jd[i]=2.3;}\n else if(fs[i]>=68)\n\t\t{jd[i]=2.0;}\n else if(fs[i]>=64)\n\t\t{jd[i]=1.5;}\n else if(fs[i]>=60)\n\t\t{jd[i]=1.0;}\n else{jd[i]=0.0;}\n\t}\nfor(i=0;i=90)\n\t\t\tc[i]=4.0;\n\t\telse if (b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse if (b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if (b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\telse if (b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if (b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if (b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\telse if (b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\telse if (b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\telse \n\t\t\tc[i]=0;\n\t}\n\tdouble sum1=0,sum2=0,GPA;\n\tfor (i=0;i=90)){\n\t\t\tjd=4.0*a[s];\n\t\t}else if ((b[s]<=89)&&(b[s]>=85)){\n\t\t\tjd=3.7*a[s];\n\t\t}else if ((b[s]<=84)&&(b[s]>=82)){\n\t\t\tjd=3.3*a[s];\n\t\t}else if ((b[s]<=81)&&(b[s]>=78)){\n\t\t\tjd=3.0*a[s];\n\t\t}else if ((b[s]<=77)&&(b[s]>=75)){\n\t\t\tjd=2.7*a[s];\n\t\t}else if ((b[s]<=74)&&(b[s]>=72)){\n\t\t\tjd=2.3*a[s];\n\t\t}else if ((b[s]<=71)&&(b[s]>=68)){\n\t\t\tjd=2.0*a[s];\n\t\t}else if ((b[s]<=67)&&(b[s]>=64)){\n\t\t\tjd=1.5*a[s];\n\t\t}else if ((b[s]<=63)&&(b[s]>=60)){\n\t\t\tjd=4.0*a[s];\n\t\t}else{\n\t\t\tjd=0.0;\n\t\t}\n\t\tjdh+=jd;\n\t}\n\tgpa=jdh/xfh;\n\tprintf (\"%.2lf\",gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41327", "code": "int main(){\n\tint a[10],m[10],n,i,c;\n\tfloat GPA,b,s;\n\tscanf(\"%d\",&n);\n\ts=0;\n\tc=0;\n\tfor(i=0;i=90)\n\t\t\ta[2][j]=4.0;\n\t\telse if(a[1][j]>=85)\n\t\t\ta[2][j]=3.7;\n\t\telse if(a[1][j]>=82)\n\t\t\ta[2][j]=3.3;\n\t\telse if(a[1][j]>=78)\n\t\t\ta[2][j]=3.0;\n\t\telse if(a[1][j]>=75)\n\t\t\ta[2][j]=2.7;\n\t\telse if(a[1][j]>=72)\n\t\t\ta[2][j]=2.3;\n\t\telse if(a[1][j]>=68)\n\t\t\ta[2][j]=2.0;\n\t\telse if(a[1][j]>=64)\n\t\t\ta[2][j]=1.5;\n\t\telse if(a[1][j]>=60)\n\t\t\ta[2][j]=1.0;\n\t\telse a[2][j]=0;\n\t\ta[2][j]=a[2][j]*a[0][j];\n\t}\n\tfor(j=0;j<=n-1;j++)\n\t\tGPA=GPA+a[2][j];\n\tGPA=GPA/i;\n\tprintf(\"%.2f\",GPA);\n}\n\t\t\t\t\t\t\t\n\t\n\t\n\t\n\t\t\n\t\t\t"} +{"label": "83", "index": "41329", "code": "int main(){\n\tint n,i,total=0;\n\tint score[10],mark[10];\n\tfloat gpa;\n\tfloat avg=0;\n\tcin>>n;\n\tfor(i=0;i>score[i];\n\t\ttotal+=score[i];\n\t}\n\tfor(i=0;i>mark[i];\n\t\tint temp=mark[i];\n\t\tif(temp<=100&&temp>=90) gpa=4.0;\n\t\telse if(temp<90&&temp>84) gpa=3.7;\n\t\telse if(temp<85&&temp>81) gpa=3.3;\n\t\telse if(temp<82&&temp>77) gpa=3.0;\n\t\telse if(temp<=77&&temp>74) gpa=2.7;\n\t\telse if(temp<=74&&temp>71) gpa=2.3;\n\t\telse if(temp<=71&&temp>67) gpa=2.0;\n\t\telse if(temp<=67&&temp>63) gpa=1.5;\n\t\telse if(temp<=63&&temp>59) gpa=1.0;\n\t\telse if(temp<60) gpa=0.0;\n\t\tavg+=gpa*score[i];\n\t}\n\tavg/=total;\n\tprintf(\"%.2f\\n\",avg);\n\t//cout<=90&&a[i]<=100)\nd[i]=4.0*b[i];\nif(a[i]>=85&&a[i]<=89)\nd[i]=3.7*b[i];\nif(a[i]>=82&&a[i]<=84)\nd[i]=3.3*b[i];\nif(a[i]>=78&&a[i]<=81)\nd[i]=3.0*b[i];\nif(a[i]>=75&&a[i]<=77)\nd[i]=2.7*b[i];\nif(a[i]>=72&&a[i]<=74)\nd[i]=2.3*b[i];\nif(a[i]>=68&&a[i]<=71)\nd[i]=2.0*b[i];\nif(a[i]>=64&&a[i]<=67)\nd[i]=1.5*b[i];\nif(a[i]>=60&&a[i]<=63)\nd[i]=1.0*b[i];\nif(a[i]<=60)\nd[i]=0;\ns=s+d[i];\nl=l+b[i];\n}\ns=s/l;\nprintf(\"%.2f\\n\",s);\n}"} +{"label": "83", "index": "41331", "code": "/*;\n * src.c\n *\n * Created on: 2009-11-9\n * Author: JacksonTB\n */\n\nfloat calc_gpa(int a);\nmain()\n{\n\tint gpa_all[10], score[10], gpa_sum = 0;\n\tfloat gpa0[10], gpa = 0;\n\n\tint n, i;\n\n\tscanf(\"%d\", &n);\n\n\tfor(i = 0;i <= n - 1;i ++)\n\t{\n\t\tscanf(\"%d\", &gpa_all[i]);\n\t\tgpa_sum += gpa_all[i];\n\t}\n\tfor(i = 0;i <= n - 1;i ++)\n\t{\n\t\tscanf(\"%d\", &score[i]);\n\t}\n\n\tfor(i = 0;i <= n - 1;i ++)\n\t{\n\t\tgpa += gpa_all[i] * calc_gpa(score[i]);\n\t}\n\tgpa /= (float)gpa_sum;\n\tprintf(\"%.2f\", gpa);\n}\n\n\nfloat calc_gpa(int a)\n{\n\t\tswitch(a)\n\t\t{\n\t\tcase 100:\n\t\tcase 99:\n\t\tcase 98:\n\t\tcase 97:\n\t\tcase 96:\n\t\tcase 95:\n\t\tcase 94:\n\t\tcase 93:\n\t\tcase 92:\n\t\tcase 91:\n\t\tcase 90:\n\t\t{\n\t\t\treturn 4.0;\n\t\t}\n\t\tcase 89:\n\t\tcase 88:\n\t\tcase 87:\n\t\tcase 86:\n\t\tcase 85:\n\t\t\treturn 3.7;\n\t\tcase 84:\n\t\tcase 83:\n\t\tcase 82:\n\t\t\treturn 3.3;\n\t\tcase 81:\n\t\tcase 80:\n\t\tcase 79:\n\t\tcase 78:\n\t\t\treturn 3;\n\t\tcase 77:\n\t\tcase 76:\n\t\tcase 75:\n\t\t\treturn 2.7;\n\t\tcase 74:\n\t\tcase 73:\n\t\tcase 72:\n\t\t\treturn 2.3;\n\t\tcase 71:\n\t\tcase 70:\n\t\tcase 69:\n\t\tcase 68:\n\t\t\treturn 2;\n\t\tcase 67:\n\t\tcase 66:\n\t\tcase 65:\n\t\tcase 64:\n\t\t\treturn 1.5;\n\t\tcase 63:\n\t\tcase 62:\n\t\tcase 61:\n\t\tcase 60:\n\t\t\treturn 1;\n\t\tdefault:\n\t\t\treturn 0;\n\n\t}\n}\n"} +{"label": "83", "index": "41332", "code": "void main()\n{\n\tint i,j[50],t,a=0,b=0;\n\tfloat GPA;\n\tscanf(\"%d\",&i);\n\t\tfor(t=0;t<2*i;t++)\n\t\tscanf(\"%d\",&j[t]);\nfor(t=i;t<2*i;t++)\n{\tif(j[t]>=90)j[t]=40 ;\nelse if (j[t]>=85&&j[t]<=89) j[t]=37;\nelse if (j[t]>=82&&j[t]<=84) j[t]=33; \nelse if (j[t]>=78&&j[t]<=81) j[t]=30; \nelse if (j[t]>=75&&j[t]<=77) j[t]=27; \nelse if (j[t]>=72&&j[t]<=74) j[t]=23; \nelse if (j[t]>=68&&j[t]<=71) j[t]=20; \nelse if (j[t]>=64&&j[t]<=67) j[t]=15; \nelse if (j[t]>=60&&j[t]<=63) j[t]=10;\nelse j[t]=0; }\nfor(t=0;t=90&&b[i]<=100)\n c[i]=4.0;\n if(b[i]>=85&&b[i]<=89)\n c[i]=3.7; \n if(b[i]>=82&&b[i]<=84)\n c[i]=3.3; \n if(b[i]>=78&&b[i]<=81)\n c[i]=3.0;\n if(b[i]>=75&&b[i]<=77)\n c[i]=2.7; \n if(b[i]>=72&&b[i]<=74)\n c[i]=2.3; \n if(b[i]>=68&&b[i]<=71)\n c[i]=2.0; \n if(b[i]>=64&&b[i]<=67)\n c[i]=1.5;\n if(b[i]>=60&&b[i]<=63)\n c[i]=1.0; \n if(b[i]<60)\n c[i]=0; \n }\n c[0]=a[0]*c[0];\n for(i=1;i=90)f=4.0;\nelse if(x>=85)f=3.7;\nelse if(x>=82)f=3.3;\nelse if(x>=78)f=3.0;\nelse if(x>=75)f=2.7;\nelse if(x>=72)f=2.3;\nelse if(x>=68)f=2.0;\nelse if(x>=64)f=1.5;\nelse if(x>=60)f=1.0;\nelse f=0;\nreturn f;\n}\n\nint main()\n{\nint i;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&a[2][i]<=100) b=4.0;\n\telse if(a[2][i]>=85&&a[2][i]<=89) b=3.7;\n\telse if(a[2][i]>=82&&a[2][i]<=84) b=3.3;\n\telse if(a[2][i]>=78&&a[2][i]<=81) b=3.0;\n\telse if(a[2][i]>=75&&a[2][i]<=77) b=2.7;\n\telse if(a[2][i]>=72&&a[2][i]<=74) b=2.3;\n\telse if(a[2][i]>=68&&a[2][i]<=71) b=2.0;\n\telse if(a[2][i]>=64&&a[2][i]<=67) b=1.5;\n\telse if(a[2][i]>=60&&a[2][i]<=63) b=1.0;\n\telse b=0;\n c=b*a[1][i];d=d+c;}\n GPA=d/e;\n\tprintf(\"%.2f\",GPA) ; \n\t}"} +{"label": "83", "index": "41336", "code": "void main(void)\n{\n\tint n,point[11],score[11],i,j,k,l,p=0;\n\tfloat gpa[11],g=0.0,pa;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=1;i<=n;i++)scanf(\"%d\",&point[i]);\n\tfor(j=1;j<=n;j++)p=p+point[j];\n\tfor(k=1;k<=n;k++)scanf(\"%d\",&score[k]);\n\tfor(k=1;k<=n;k++)\n\t{\n\t\t\n\t\tif(90<=score[k],score[k]<=100)gpa[k]=4.0;\n\t\tif(85<=score[k],score[k]<=89)gpa[k]=3.7;\n\t\tif(82<=score[k],score[k]<=84)gpa[k]=3.3;\n\t\tif(78<=score[k],score[k]<=81)gpa[k]=3.0;\n\t\tif(75<=score[k],score[k]<=77)gpa[k]=2.7;\n\t\tif(72<=score[k],score[k]<=74)gpa[k]=2.3;\n\t\tif(68<=score[k],score[k]<=71)gpa[k]=2.0;\n\t\tif(64<=score[k],score[k]<=67)gpa[k]=1.5;\n\t\tif(60<=score[k],score[k]<=63)gpa[k]=1.0;\n\t\tif(score[k]<60)gpa[k]=0.0;\n\t}\n\tfor(l=1;l<=n;l++)g=g+(point[l]*gpa[l]);\n\tpa=g/p;\n\tprintf(\"%.2f\",pa);\n}"} +{"label": "83", "index": "41337", "code": "\nint main(int argc, char* argv[])\n{\n\tint n, xueke[10], fenshu[10], xuekezong=0;\n\tdouble zong = 0.0, j;\n\tscanf(\"%d\\n\", &n);\n\tint i=0;\n\twhile(i=90){\n\t\t\tq=4.0;\n}else if(df[m]>=85){\nq=3.7;\n}else if(df[m]>=82){\nq=3.3;\n}else if(df[m]>=78){\nq=3.0;\n}else if(df[m]>=75){\nq=2.7;\n}else if(df[m]>=72){\nq=2.3;\n}else if(df[m]>=68){\nq=2.0;\n}else if(df[m]>=64){\nq=1.5;\n}else if(df[m]>=60){\nq=1.0;\n}else{\nq=0;\n}\nf=f+q*sf[m];\n\n\t}\n\t\n\tGPA=f/x;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}\n\n\n"} +{"label": "83", "index": "41339", "code": "\nint main()\n{\n\tint n,a[10],b[10],i,s=0;\n\tfloat GPA=0.0,m[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90 && b[i]<=100)\n m[i]=4.0*(a[i]) ;\n\t\tif(b[i]>=85 && b[i]<=89)\n m[i]=3.7*(a[i]) ;\n if(b[i]>=82 && b[i]<=84)\n m[i]=3.3*(a[i]) ;\n if(b[i]>=78 && b[i]<=81)\n m[i]=3.0*(a[i]) ;\n if(b[i]>=75 && b[i]<=77)\n m[i]=2.7*(a[i]) ;\n if(b[i]>=72 && b[i]<=74)\n m[i]=2.3*(a[i]) ;\nif(b[i]>=68 && b[i]<=71)\n m[i]=2.0*(a[i]) ;\nif(b[i]>=64 && b[i]<=67)\n m[i]=1.5*(a[i]) ;\nif(b[i]>=60 && b[i]<=63)\n m[i]=1.0*(a[i]) ;\nif(b[i]<60)\n m[i]=0 ;\nGPA+=m[i];\n\t}\n \n\tprintf(\"%.2f\",GPA/s);\n\treturn 0;\n}"} +{"label": "83", "index": "41340", "code": "void main()\n{\nint a[10],b[10],n,i,j,d=0;\nfloat c[10],e=0.0,GPA;\nscanf(\"%d\\n\",&n);\nfor(i=0;i=90&&b[j]<=100) c[j]=4.0;\n else if(b[j]>=85&&b[j]<=89) c[j]=3.7;\n else if(b[j]>=82&&b[j]<=84) c[j]=3.3;\n else if(b[j]>=78&&b[j]<=81) c[j]=3.0;\n else if(b[j]>=75&&b[j]<=77) c[j]=2.7;\n else if(b[j]>=72&&b[j]<=74) c[j]=2.3;\n else if(b[j]>=68&&b[j]<=71) c[j]=2.0;\n else if(b[j]>=64&&b[j]<=67) c[j]=1.5;\n else if(b[j]>=60&&b[j]<=63) c[j]=1.0;\n else c[j]=0.0;\n d=d+a[j];\n e=e+c[j]*a[j];\n }\nGPA=e/(d+0.0);\nprintf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41341", "code": "float kej(int fen);\n\nvoid main()\n{\n int i,n,xfen=0,xf[20],f[20];\n\t float xj[20],zj=0;\n\t scanf(\"%d\",&n);\n\t for(i=0;i=90&&fen<=100)\n\t\treturn(4.0);\n\telse if(fen>=85&&fen<=89)\n\t\treturn(3.7);\n\telse if(fen>=82&&fen<=84)\n\t\treturn(3.3);\n\telse if(fen>=78&&fen<=81)\n\t\treturn(3.0);\n\telse if(fen>=75&&fen<=77)\n\t\treturn(2.7);\n\telse if(fen>=72&&fen<=74)\n\t\treturn(2.3);\n\telse if(fen>=68&&fen<=71)\n\t\treturn(2.0);\n\telse if(fen>=64&&fen<=67)\n\t\treturn(1.5);\n\telse if(fen>=60&&fen<=63)\n\t\treturn(1.0);\n\telse return(0);\n}\n"} +{"label": "83", "index": "41342", "code": " int main(){\n int n,i,j,m;\n int a[10],b[10];\n float GPA,e[10],k,p;\n scanf(\"%d\\n\",&n);\n for(i=0;i=90&&b[i]<=100){\n e[i]=4.0;\n }\n if(b[i]>=85&&b[i]<=89){\n e[i]=3.7;\n }\n if(b[i]>=82&&b[i]<=84){\n e[i]=3.3;\n }\n if(b[i]>=78&&b[i]<=81){\n e[i]=3.0;\n }\n if(b[i]>=75&&b[i]<=77){\n e[i]=2.7;\n }\n if(b[i]>=72&&b[i]<=74){\n e[i]=2.3;\n }\n if(b[i]>=68&&b[i]<=71){\n e[i]=2.0;\n }\n if(b[i]>=64&&b[i]<=67){\n e[i]=1.5;\n }\n if(b[i]>=60&&b[i]<=63){\n e[i]=1.0;\n }\n if(b[i]<60){\n e[i]=0;\n }\n p=a[i];\n k+=(float)(e[i]*p);\n }\n GPA=(float)k/(m*1.0);\n printf(\"%.2f\",GPA);\n return 0;\n}\n\n\n"} +{"label": "83", "index": "41343", "code": "\nfloat jd(int x){\n\tif(90<=x&&x<=100){return 4.0;}\n\tif(85<=x&&x<=89){return 3.7;}\n\tif(82<=x&&x<=84){return 3.3;}\n\tif(78<=x&&x<=81){return 3.0;}\n\tif(75<=x&&x<=77){return 2.7;}\n\tif(72<=x&&x<=74){return 2.3;}\n\tif(68<=x&&x<=71){return 2.0;}\n\tif(64<=x&&x<=67){return 1.5;}\n\tif(60<=x&&x<=63){return 1.0;}\n\telse{return 0;}\n\t}\nint main(){\n\tint x;\n\tint n,zxf=0;\n\tfloat zjd=0;\n\tfloat a; \n\tint cj[10],xf[10];\n\tscanf(\"%d\",&n);\n\tint i=0;\n\twhile(i=90&&fen[i]<=100)\n\t\tdian[i]=4.0;\n if (fen[i]>=85&&fen[i]<=89)\n\t\tdian[i]=3.7;\n if (fen[i]>=82&&fen[i]<=84)\n\t\tdian[i]=3.3;\n if (fen[i]>=78&&fen[i]<=81)\n\t\tdian[i]=3.0;\n if (fen[i]>=75&&fen[i]<=77)\n\t\tdian[i]=2.7;\n if (fen[i]>=72&&fen[i]<=74)\n\t\tdian[i]=2.3;\n if (fen[i]>=68&&fen[i]<=71)\n\t\tdian[i]=2.0;\n if (fen[i]>=64&&fen[i]<=67)\n\t\tdian[i]=1.5;\n if (fen[i]>=60&&fen[i]<=63)\n\t\tdian[i]=1.0;\n if (fen[i]<=60)\n\t\tdian[i]=0;\n\t\t\n\t}\n\tfor (xuefenhe=0,xueji=0,i=0;i=90&&b[k]<=100){\n\tc[k]=(double)(4.0)*(a[k]);\n\t}\n\telse if((b[k])>=85&&b[k]<=89){\n\tc[k]=(double)(3.7)*(a[k]);\n\t}\n else if((b[k])>=82&&b[k]<=84){\n\tc[k]=(double)(3.3)*(a[k]);\n\t}\n\telse if((b[k])>=78&&b[k]<=81){\n\tc[k]=(double)(3.0)*(a[k]);\n\t}\n\telse if((b[k])>=75&&b[k]<=77){\n\tc[k]=(double)(2.7)*(a[k]);\n\t}\n\telse if((b[k])>=72&&b[k]<=74){\n\tc[k]=(double)(2.3)*(a[k]);\n\t}\n\telse if((b[k])>=68&&b[k]<=71){\n\tc[k]=(double)(2.0)*(a[k]);\n\t}\n\telse if((b[k])>=64&&b[k]<=67){\n\tc[k]=(double)(1.5)*(a[k]);\n\t}\n\telse if((b[k])>=60&&b[k]<=63){\n\tc[k]=(double)(1.0)*(a[k]);\n\t}\n\telse if(b[k]<60){\n\tc[k]=(double)(0.0)*(a[k]);\n\t}\n}\nm=0;\nfor(p=0;p=90&&cj[k]<=100){G[k]=a;}\n\telse if(cj[k]>=85&&cj[k]<=89){G[k]=b;}\n\telse if(cj[k]>=82&&cj[k]<=84){G[k]=c;}\n\telse if(cj[k]>=78&&cj[k]<=81){G[k]=d;}\n\telse if(cj[k]>=75&&cj[k]<=77){G[k]=e;}\n\telse if(cj[k]>=72&&cj[k]<=74){G[k]=f;}\n\telse if(cj[k]>=68&&cj[k]<=71){G[k]=g;}\t\n\telse if(cj[k]>=64&&cj[k]<=67){G[k]=h;}\n\telse if(cj[k]>=60&&cj[k]<=63){G[k]=i;}\n\telse if(cj[k]<60){G[k]=0;}\n\t}\nfor(int j=0;j=90&&a[1][j]<=100)\nk=k+4.0*a[0][j];\nif(a[1][j]>=85&&a[1][j]<=89)\nk=k+3.7*a[0][j];\nif(a[1][j]>=82&&a[1][j]<=84)\nk=k+3.3*a[0][j];\nif(a[1][j]>=78&&a[1][j]<=81)\nk=k+3.0*a[0][j];\nif(a[1][j]>=75&&a[1][j]<=77)\nk=k+2.7*a[0][j];\nif(a[1][j]>=72&&a[1][j]<=74)\nk=k+2.3*a[0][j];\nif(a[1][j]>=68&&a[1][j]<=71)\nk=k+2.0*a[0][j];\nif(a[1][j]>=64&&a[1][j]<=67)\nk=k+1.5*a[0][j];\nif(a[1][j]>=60&&a[1][j]<=63)\nk=k+1.0*a[0][j];\nif(a[1][j]<60)\nk=k;\n}\nfor(j=0;j89) gpa[i]=4;\n\t\telse if(defen[i]>84) gpa[i]=3.7;\n\t\telse if(defen[i]>81) gpa[i]=3.3;\n\t\telse if(defen[i]>77) gpa[i]=3;\n\t\telse if(defen[i]>74) gpa[i]=2.7;\n\t\telse if(defen[i]>71) gpa[i]=2.3;\n\t\telse if(defen[i]>67) gpa[i]=2;\n\t\telse if(defen[i]>63) gpa[i]=1.5;\n\t\telse if(defen[i]>59) gpa[i]=1.0;\n\t\telse gpa[i]=0;\n\t\ttotal+=gpa[i]*xuefen[i];\n\t\tt+=xuefen[i];\n\t}\n\ttotal=total/t;\n\tprintf(\"%.2f\\n\",total);\n}\n"} +{"label": "83", "index": "41349", "code": "int main(){\n\tint i,n,a[10],b[10];\n\tdouble c[10],GPA,f;\n GPA=0;\n\tf=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\t\tc[i]=4.0;}\n\t else if(b[i]<=89 && b[i]>=85){\n\t\t\tc[i]=3.7;}\n\t\t else if(b[i]<=84 && b[i]>=82){\n\t\t\tc[i]=3.3;}\n else if(b[i]<=81 && b[i]>=78){\n\t\t\tc[i]=3.0;}\n else if(b[i]<=77 && b[i]>=75){\n\t\t\tc[i]=2.7;}\n else if(b[i]<=74 && b[i]>=72){\n\t\t\tc[i]=2.3;}\n else if(b[i]<=71 && b[i]>=68){\n\t\t\tc[i]=2.0;}\n else if(b[i]<=67 && b[i]>=64){\n\t\t\tc[i]=1.5;}\n else if(b[i]<=63 && b[i]>=60){\n\t\t\tc[i]=1.0;}\n else{c[i]=0;}\n\t}\n for(i=0;ichengji[i])\n\t\t\tj++;\n\t\t\n\t\tsum+=xuefen[i]*b[j];\n\n\t}\n\tsum /=total;\n\tprintf(\"%.2f\\n\",sum);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41351", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[11],b[11];\n\tint i;\n\tdouble c[11];\n\tdouble k;\n\tk=0.0;\n\tdouble p;\n\tp=0.0;\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\tc[i]=4.0;\n\t\t}\n\t\telse if(b[i]>=85&&b[i]<=89){\n\t\t\tc[i]=3.7;\n\t\t}\n\t\telse if(b[i]>=82&&b[i]<=84){\n\t\t\tc[i]=3.3;\n\t\t}\n\t\telse if(b[i]>=78&&b[i]<=81){\n\t\t\tc[i]=3.0;\n\t\t}\n\t\telse if(b[i]>=75&&b[i]<=77){\n\t\t\tc[i]=2.7;\n\t\t}\n\t\telse if(b[i]>=72&&b[i]<=74){\n\t\t\tc[i]=2.3;\n\t\t}\n\t\telse if(b[i]>=68&&b[i]<=71){\n\t\t\tc[i]=2.0;\n\t\t}\n\t\telse if(b[i]>=64&&b[i]<=67){\n\t\t\tc[i]=1.5;\n\t\t}\n\t\telse if(b[i]>=60&&b[i]<=63){\n\t\t\tc[i]=1.0;\n\t\t}\n\t\telse if(b[i]<60){\n\t\t\tc[i]=0.0;\n\t\t}\n\t\tk=k+c[i]*a[i];\n\t}\n\tdouble GPA;\n\tGPA=k/p;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41352", "code": "int main(int argc, char* argv[])\n{int n,a[10],b[10],i,sum1=0;\n float c[10],d[10],sum2=0.0,GPA;\n scanf(\"%d\",&n); \n for(i=0;i=90&&b[i]<=100) c[i]=4.0;\n\t else if(b[i]>=85&&b[i]<=89) c[i]=3.7;\n\t else if(b[i]>=82&&b[i]<=84) c[i]=3.3;\n else if(b[i]>=78&&b[i]<=81) c[i]=3.0;\n\t else if(b[i]>=75&&b[i]<=77) c[i]=2.7;\n else if(b[i]>=72&&b[i]<=74) c[i]=2.3;\n else if(b[i]>=68&&b[i]<=71) c[i]=2.0;\n else if(b[i]>=64&&b[i]<=67) c[i]=1.5;\n else if(b[i]>=60&&b[i]<=63) c[i]=1.0;\n\t else c[i]=0.0;\n d[i]=a[i]*c[i];\n\t sum2+=d[i];\n }\n GPA=sum2/sum1;\n printf(\"%.2f\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41353", "code": "float gpoint(int gr){\n\tif(gr <= 100 && gr >= 90)\n\t\treturn 4.0;\n\telse if(gr <= 89 && gr >= 85)\n\t\treturn 3.7;\n\telse if(gr <= 84 && gr >= 82)\n\t\treturn 3.3;\n\telse if(gr <= 81 && gr >= 78)\n\t\treturn 3.0;\n\telse if(gr <= 77 && gr >= 75)\n\t\treturn 2.7;\n\telse if(gr <= 74 && gr >= 72)\n\t\treturn 2.3;\n\telse if(gr <= 71 && gr >= 68)\n\t\treturn 2.0;\n\telse if(gr <= 67 && gr >= 64)\n\t\treturn 1.5;\n\telse if(gr <= 63 && gr >= 60)\n\t\treturn 1.0;\n\treturn 0.0;\n}\nint main(){\n\tint n;\n\tfloat total_g = 0, total_f = 0;\n\tint a[11], b[11];\n\tscanf(\"%d\", &n);\n\tint i;\n\tfor(i = 1; i <= n; i++){\n\t\tscanf(\"%d\", a+i);\n\t\ttotal_f += a[i];\n\t}\n\tfor(i = 1; i <= n; i++){\n\t\tscanf(\"%d\", b+i);\n\t\ttotal_g += gpoint(b[i])*((float)a[i]);\n\t}\n\tprintf(\"%.2f\\n\", total_g/total_f);\n\treturn 0;\n}"} +{"label": "83", "index": "41354", "code": "void main()\n{\n\tint a[10],b[10];\n\tdouble c[10],sum=0,jd[10],e=0;\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t\tc[i]=4;\n\t if(b[i]<90&&b[i]>=85)\n\t\t\tc[i]=3.7;\n\t if(b[i]<85&&b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\tif(b[i]<82&&b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\tif(b[i]<78&&b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\tif(b[i]<75&&b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\tif(b[i]<72&&b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\tif(b[i]<68&&b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\tif(b[i]<64&&b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\tif(b[i]<60)\n\t\t\tc[i]=0;\n\t\tjd[i]=c[i]*a[i];\n\t}\n\tfor(i=0;i=90&&df[i]<=100) jd[i]=4.0;\n if(df[i]>=85&&df[i]<=89) jd[i]=3.7;\n\t if(df[i]>=82&&df[i]<=84) jd[i]=3.3;\n if(df[i]>=78&&df[i]<=81) jd[i]=3.0;\n\t if(df[i]>=75&&df[i]<=77) jd[i]=2.7;\n\t if(df[i]>=72&&df[i]<=74) jd[i]=2.3;\n if(df[i]>=68&&df[i]<=71) jd[i]=2.0;\n\t if(df[i]>=64&&df[i]<=67) jd[i]=1.5;\n if(df[i]>=60&&df[i]<=63) jd[i]=1.0;\n\t if(df[i]>=0&&df[i]<60)\tjd[i]=0.0;\n\t}\na=0;\n for(i=0;i=90&&x<=100)\n\t{\n\t\treturn 4.0;\n\t}if(x>=85&&x<=89)\n\t{\n\t\treturn 3.7;\n\t}if(x>=82&&x<=84)\n\t{\n\t\treturn 3.3;\n\t}if(x>=78&&x<=81)\n\t{\n\t\treturn 3.0;\n\t}if(x>=75&&x<=77)\n\t{\n\t\treturn 2.7;\n\t}if(x>=72&&x<=74)\n\t{\n\t\treturn 2.3;\n\t}if(x>=68&&x<=71)\n\t{\n\t\treturn 2.0;\n\t}if(x>=64&&x<=67)\n\t{\n\t\treturn 1.5;\n\t}if(x>=60&&x<=63)\n\t{\n\t\treturn 1.0;\n\t}if(x<60&&x>=0)\n\t{\n\t\treturn 0;\n\t}\n}\nint main()\n{\n\tdouble *p,*q,GPA,sum=0,total=0,a;\n\tint\tn,i;\n\tscanf(\"%d\",&n);\n\tp=(double *)malloc(sizeof(double)*n);\n\tq=(double *)malloc(sizeof(double)*n);\n\tfor(i=0;i=90)\n\t\t\tsum=sum+4.0*a[0][i];\n\t\telse if (a[1][i]<=89&&a[1][i]>=85)\n\t\t\tsum=sum+3.7*a[0][i];\n\t\telse if (a[1][i]<=84&&a[1][i]>=82)\n\t\t\tsum=sum+3.3*a[0][i];\n\t\telse if (a[1][i]<=81&&a[1][i]>=78)\n\t\t\tsum=sum+3.0*a[0][i];\n else if (a[1][i]<=77&&a[1][i]>=75)\n\t\t\tsum=sum+2.7*a[0][i];\n\t\telse if (a[1][i]<=74&&a[1][i]>=72)\n\t\t\tsum=sum+2.3*a[0][i];\n\t\telse if (a[1][i]<=71&&a[1][i]>=68)\n\t\t\tsum=sum+2.0*a[0][i];\n\t else \tif (a[1][i]<=67&&a[1][i]>=64)\n\t\t\tsum=sum+1.5*a[0][i];\n else\tif (a[1][i]<=63&&a[1][i]>=60)\n\t\t\tsum=sum+1.0*a[0][i];\n\telse \tif (a[1][i]<=60 )\n\t\t\tsum=sum ;\n\t}\n\tt=0;\n\tfor (i=0;i=90)&&(a[i]<=100))\n\t\t\tmark[i]=40;\n\t\telse if((a[i]>=85)&&(a[i]<=89))\n\t\t\tmark[i]=37;\n\t\telse if((a[i]>=82)&&(a[i]<=84))\n\t\t\tmark[i]=33;\n\t\telse if((a[i]>=78)&&(a[i]<=81))\n\t\t\tmark[i]=30;\n\t\telse if((a[i]>=75)&&(a[i]<=77))\n\t\t\tmark[i]=27;\n\t\telse if((a[i]>=72)&&(a[i]<=74))\n\t\t\tmark[i]=23;\n\t\telse if((a[i]>=68)&&(a[i]<=71))\n\t\t\tmark[i]=20;\n\t\telse if((a[i]>=64)&&(a[i]<=67))\n\t\t\tmark[i]=15;\n\t\telse if((a[i]>=60)&&(a[i]<=63))\n\t\t\tmark[i]=10;\n\t\telse mark[i]=0;\n\t}\n\tfor(i=0;i59){\n js[i]=1.0;\n }\n else if(sz[i]<68&&sz[i]>63){\n js[i]=1.5;\n }\n else if(sz[i]<72&&sz[i]>67){\n js[i]=2.0;\n }\n else if(sz[i]<75&&sz[i]>71){\n js[i]=2.3;\n }\n else if(sz[i]<78&&sz[i]>74){\n js[i]=2.7;\n }\n else if(sz[i]<82&&sz[i]>77){\n js[i]=3.0;\n } \n else if(sz[i]<85&&sz[i]>81){\n js[i]=3.3;\n }\n else if(sz[i]<90&&sz[i]>84){\n js[i]=3.7;\n }\n else {\n js[i]=4.0;\n } \n j+=1.0*(js[i]*xf[i]);\n }\n z=1.0*j/x;\n printf(\"%.2lf\\n\",z);\n return 0;\n}\n"} +{"label": "83", "index": "41360", "code": "main()\n{ \n int i,j,k,m,n;\n int a[50],b[50];\n float sum=0;\n scanf(\"%d\",&n);\n\n m=0;\n sum=0;\n for(j=0;j=90)\n sum=sum+(float)a[j]*4.0;\n if(b[j]<=89&&b[j]>=85)\n sum=sum+(float)a[j]*3.7;\n if(b[j]<=84&&b[j]>=82)\n sum=sum+(float)a[j]*3.3;\n if(b[j]<=81&&b[j]>=78)\n sum=sum+(float)a[j]*3.0;\n if(b[j]<=77&&b[j]>=75)\n sum=sum+(float)a[j]*2.7;\n if(b[j]<=74&&b[j]>=72)\n sum=sum+(float)a[j]*2.3;\n if(b[j]<=71&&b[j]>=68)\n sum=sum+(float)a[j]*2.0;\n if(b[j]<=67&&b[j]>=64)\n sum=sum+(float)a[j]*1.5;\n if(b[j]<=63&&b[j]>=60)\n sum=sum+(float)a[j]*1.0;}\n for(j=0;j=90&&score[i]<=100)\n\t\t{\n\t\t\tscore[i]=4.0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=85&&score[i]<=89)\n\t\t{\n\t\t\tscore[i]=(float)3.7;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=82&&score[i]<=84)\n\t\t{\n\t\t\tscore[i]=(float)3.3;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=78&&score[i]<=81)\n\t\t{\n\t\t\tscore[i]=3.0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=75&&score[i]<=77)\n\t\t{\n\t\t\tscore[i]=(float)2.7;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=72&&score[i]<=74)\n\t\t{\n\t\t\tscore[i]=(float)2.3;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=68&&score[i]<=71)\n\t\t{\n\t\t\tscore[i]=2.0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=64&&score[i]<=67)\n\t\t{\n\t\t\tscore[i]=1.5;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]>=60&&score[i]<=63)\n\t\t{\n\t\t\tscore[i]=1.0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(score[i]<60)\n\t\t{\n\t\t\tscore[i]=0.0;\n\t\t\tcontinue;\n\t\t}\n\t}\n\tfor(i=0;i=90){G[i]=4.0;}\n else if(f[i]>=85){G[i]=3.7;}\n else if(f[i]>=82){G[i]=3.3;}\n else if(f[i]>=78){G[i]=3.0;}\n else if(f[i]>=75){G[i]=2.7;}\n else if(f[i]>=72){G[i]=2.3;}\n else if(f[i]>=68){G[i]=2.0;}\n else if(f[i]>=64){G[i]=1.5;}\n else if(f[i]>=60){G[i]=1.0;}\n else if(f[i]<60)G[i]=0.0;\n s2+=(G[i])*(x[i]);\n }\n\n\n\n GPA=1.0*s2/s1;\n\n printf(\"%.2f\",GPA);\n return 0;\n}"} +{"label": "83", "index": "41363", "code": "int main()\n{\n\tint a,sum=0,i,j,k,m;\n\tdouble SUM;\n\tscanf(\"%d\",&a);\n\tint credit[ECO];\n\tint point[ECO];\n\tdouble gpa[ECO];\n\tfor(i=0;i=90)\n\t\t\tgpa[k]=4.0*credit[k];\n\t\telse if(point[k]>=85)\n\t\t\tgpa[k]=3.7*credit[k];\n\t\telse if(point[k]>=82)\n\t\t\tgpa[k]=3.3*credit[k];\n\t\telse if(point[k]>=78)\n\t\t\tgpa[k]=3.0*credit[k];\n\t\telse if(point[k]>=75)\n\t\t\tgpa[k]=2.7*credit[k];\n\t\telse if(point[k]>=72)\n\t\t\tgpa[k]=2.3*credit[k];\n\t\telse if(point[k]>=68)\n\t\t\tgpa[k]=2.0*credit[k];\n\t\telse if(point[k]>=64)\n\t\t\tgpa[k]=1.5*credit[k];\n\t\telse if(point[k]>=60)\n\t\t\tgpa[k]=1.0*credit[k];\n\t\telse\n\t\t\tgpa[k]=0*credit[k];\n\t}\n\tfor(m=0,SUM=0;m=90)m[i]=4;\n\t\telse if(m[i]>=85)m[i]=3.7;\n else if(m[i]>=82)m[i]=3.3;\n else if(m[i]>=78)m[i]=3.0;\n else if(m[i]>=75)m[i]=2.7;\n else if(m[i]>=72)m[i]=2.3;\n else if(m[i]>=68)m[i]=2.0;\n else if(m[i]>=64)m[i]=1.5;\n else if(m[i]>=60)m[i]=1;\n\t\telse m[i]=0;\n\t}\n\tfor(i=0;i=90&&mark[i]<=100)\n\t\t\tjidian[i]=4.0;\n\t\telse if(mark[i]>=85&&mark[i]<=89)\n\t\t\tjidian[i]=3.7;\n\t else if(mark[i]>=82&&mark[i]<=84)\n\t\t\tjidian[i]=3.3;\n\t\telse if(mark[i]>=78&&mark[i]<=81)\n\t\t\tjidian[i]=3.0;\n\t\telse if(mark[i]>=75&&mark[i]<=77)\n\t\t\tjidian[i]=2.7;\n\t\telse if(mark[i]>=72&&mark[i]<=74)\n\t\t\tjidian[i]=2.3;\n\t\telse if(mark[i]>=68&&mark[i]<=71)\n\t\t\tjidian[i]=2.0;\n\t\telse if(mark[i]>=64&&mark[i]<=67)\n\t\t\tjidian[i]=1.5;\n\t\telse if(mark[i]>=60&&mark[i]<=63)\n\t\t\tjidian[i]=1.0;\n\t\telse \n\t\t\tjidian[i]=0;\n\n\t}\n\t\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tave+=course[i]*jidian[i]/sum;\n\t}\n\tprintf(\"%.2f\",ave);\n\treturn 0;\n\n\t\t\t\n\t\t\n\t\n\n\n}"} +{"label": "83", "index": "41366", "code": "float GPA(int n)\n{\n\tint i;\n\tfloat result;\n\tfloat gpa[10];\n\tfloat gpa_1[10];\n\tfloat sumxf=0;\n\tfloat sumcj=0;\n\tint chengji[10],xuefen[10];\n\tfor(i=0;i=90&&df[b]<=100){\n\t\t\tjd[b]=4.0;\n\t\t}else if(df[b]>=85&&df[b]<=89){\n\t\t\tjd[b]=3.7;\n\t\t}else if(df[b]>=82&&df[b]<=84){\n\t\t\tjd[b]=3.3;\n\t\t}else if(df[b]>=78&&df[b]<=81){\n\t\t\tjd[b]=3.0;\n\t\t}else if(df[b]>=75&&df[b]<=77){\n\t\t\tjd[b]=2.7;\n\t\t}else if(df[b]>=72&&df[b]<=74){\n\t\t\tjd[b]=2.3;\n\t\t}else if(df[b]>=68&&df[b]<=71){\n\t\t\tjd[b]=2.0;\n\t\t}else if(df[b]>=64&&df[b]<=67){\n\t\t\tjd[b]=1.5;\n\t\t}else if(df[b]>=60&&df[b]<=63){\n\t\t\tjd[b]=1.0;\n\t\t}else{\n\t\t\tjd[b]=0.0;\n\t\t}\n\t\txfjd[b]=jd[b]*xf[b];\n\t\tjdzh+=xfjd[b];\n\t}\n\tzpjd=jdzh/xfzh;\n\tprintf(\"%.2lf\\n\",zpjd);\n\treturn 0;\n}"} +{"label": "83", "index": "41368", "code": "\nint main(int argc, char* argv[])\n{ int n, i, a[10], b[10]; \n double c[10], sum1 = 0, sum2 = 0;\n\tscanf(\"%d\", &n);\n for(i=0;i=90)\n\t\t c[i] = 4.0;\n\t if(b[i]>=85 && b[i]<=89)\n\t\t c[i] = 3.7;\n\t if(b[i]>=82 && b[i]<=84)\n\t\t c[i] = 3.3;\n\t if(b[i]>=78 && b[i]<=81)\n\t\t c[i] = 3.0;\n\t if(b[i]>=75 && b[i]<=77)\n\t\t c[i] = 2.7;\n\t if(b[i]>=72 && b[i]<=74)\n\t\t c[i] = 2.3;\n\t if(b[i]>=68 && b[i]<=71)\n\t\t c[i] = 2.0;\n\t if(b[i]>=64 && b[i]<=67)\n\t\t c[i] = 1.5;\n\t if(b[i]>=60 && b[i]<=63)\n\t\t c[i] = 1.0;\n\t if(b[i]<60)\n\t\t c[i] = 0;\n\t \n\t sum2 += a[i] * c[i];\n\t sum1 += a[i];\n\t }\n\tprintf(\"%.2f\", sum2 / sum1);\n\treturn 0;\n}"} +{"label": "83", "index": "41369", "code": "int main(int argc, char* argv[])\n{\nint n,a,c;\nfloat m[100],s[100],j[100];\nfloat GPA,sum=0,w=0;\nscanf(\"%d\\n\",&n);\nfor(a=0;a=90&&j[a]<=100)\n{\nm[a]=4.0;\n}\nif(j[a]>=85&&j[a]<=89)\n{\nm[a]=3.7;\n}\nif(j[a]>=82&&j[a]<=84)\n{\nm[a]=3.3;\n}\nif(j[a]>=78&&j[a]<=81)\n{\nm[a]=3.0;\n}\nif(j[a]>=75&&j[a]<=77)\n{\nm[a]=2.7;\n}\nif(j[a]>=72&&j[a]<=74)\n{\nm[a]=2.3;\n}\nif(j[a]>=68&&j[a]<=71)\n{\nm[a]=2.0;\n}\nif(j[a]>=64&&j[a]<=67)\n{\nm[a]=1.5;\n}\nif(j[a]>=60&&j[a]<=63)\n{\nm[a]=1.0;\n}\nif(j[a]<60)\n{\nm[a]=0;\n}\n}\nfor(c=0;c=90&&b[i]<=100){\n\t\t\tgpa[i]=4.0;\n\t\t}else if(b[i]>=85&&b[i]<=89){\n\t\t\tgpa[i]=3.7;\n\t\t}else if(b[i]>=82&&b[i]<=84){\n\t\t\tgpa[i]=3.3;\n\t\t}else if(b[i]>=78&&b[i]<=81){\n\t\t\tgpa[i]=3.0;\n\t\t}else if(b[i]>=75&&b[i]<=77){\n\t\t\tgpa[i]=2.7;\n\t\t}else if(b[i]>=72&&b[i]<=74){\n\t\t\tgpa[i]=2.3;\n\t\t}else if(b[i]>=68&&b[i]<=71){\n\t\t\tgpa[i]=2.0;\n\t\t}else if(b[i]>=64&&b[i]<=67){\n\t\t\tgpa[i]=1.5;\n\t\t}else if(b[i]>=60&&b[i]<=63){\n\t\t\tgpa[i]=1.0;\n\t\t}else if(b[i]<=59){\n\t\t\tgpa[i]=0;\n\t\t}\n\t}\n\tint r;\n double xfjd[110];\n\tfor(r=0;r=90){\n\t\tg[i]=4.0;\n\t}else if(g[i]>=85){\n\t\tg[i]=3.7;\n\t}else if(g[i]>=82){\n\t\tg[i]=3.3;\n\t}else if(g[i]>=78){\n\t\tg[i]=3.0;\n\t}else if(g[i]>=75){\n\t\tg[i]=2.7;\t\n\t}else if(g[i]>=72){\n\t\tg[i]=2.3;\n\t}else if(g[i]>=68){\n\t\tg[i]=2.0;\t\n }else if(g[i]>=64){\n\t\tg[i]=1.5;\n }else if(g[i]>=60){\n\t\tg[i]=1.0;\n\t}else{\n\t\tg[i]=0.0;\n\t}\n}\nfor(i=1;i<=n;i++){\n\t\tsp+=fen[i]*g[i];\n\t\tsum+=fen[i];\n\t}\n gpa=sp/sum;\n\tprintf(\"%.2lf\",gpa);\n\treturn 0;\n}"} +{"label": "83", "index": "41374", "code": "int main(){\nint sum=0;\nint n,i,j;\nscanf(\"%d\\n\",&n);\nint a[10],b[10];\nfor(i=0;i=60&&b[j]<=63){G=1.0;}\nif(b[j]>=64&&b[j]<=67){G=1.5;}\nif(b[j]>=68&&b[j]<=71){G=2.0;}\nif(b[j]>=72&&b[j]<=74){G=2.3;}\nif(b[j]>=75&&b[j]<=77){G=2.7;}\nif(b[j]>=78&&b[j]<=81){G=3.0;}\nif(b[j]>=82&&b[j]<=84){G=3.3;}\nif(b[j]>=85&&b[j]<=89){G=3.7;}\nif(b[j]>=90&&b[j]<=100){G=4.0;}\nG=G*a[j];\ns+=G;\n}\ndouble GPA;\nGPA=s/sum;\nprintf(\"%.2f\",GPA);\nreturn 0;\n}"} +{"label": "83", "index": "41375", "code": "int main(){\n\tint xf[10]={0};\n\tfloat sz[10]={0};\n\tint i, e, n;\n\tfloat c=0;\n\tfloat GPA=0;\n\te=0;\n\t\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d\",&xf[i]);\n\t\te+=xf[i];\n\t}\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%f\",&sz[i]);\n\t\tif(sz[i]>=90){\n\t\t\tsz[i]=4.0;\n\t\t}else if(sz[i]>=85){\n\t\t\tsz[i]=3.7;\n\t\t}else if(sz[i]>=82){\n\t\t\tsz[i]=3.3;\n\t\t}else if(sz[i]>=78){\n\t\t\tsz[i]=3.0;\n\t\t}else if(sz[i]>=75){\n\t\t\tsz[i]=2.7;\n\t\t}else if(sz[i]>=72){\n\t\t\tsz[i]=2.3;\n\t\t}else if(sz[i]>=68){\n\t\t\tsz[i]=2.0;\n\t\t}else if(sz[i]>=64){\n\t\t\tsz[i]=1.5;\n\t\t}else if(sz[i]>=60){\n\t\t\tsz[i]=1.0;\n\t\t}else{\n\t\t\tsz[i]=0;\n\t\t}\n\t}\n\t\tfor(i=0;i<=n-1;i++){\n\t\t\tc+=sz[i]*xf[i];\n\t\t}\n\t\tGPA=c*1.0/e;\nprintf(\"%.2f\",GPA);\nreturn 0;\n}\n"} +{"label": "83", "index": "41376", "code": "int main(){\n int n;\n\tdouble s,c[10],m=0,j=0;\n\tint a[10],b[10];\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=90){\n\t\t\tc[t]=4.0*(a[t]);\n\t\t}else if(b[t]>=85){\n\t\t\tc[t]=3.7*(a[t]);\n\t\t}else if(b[t]>=82){\n\t\t\tc[t]=3.3*(a[t]);\n\t\t}else if(b[t]>=78){\n\t\t\tc[t]=3.0*(a[t]);\n\t\t}else if(b[t]>=75){\n\t\t\tc[t]=2.7*a[t];\n\t\t}else if(b[t]>=72){\n\t\t\tc[t]=2.3*a[t];\n\t\t}else if(b[t]>=68){\n\t\t\tc[t]=2.0*a[t];\n\t\t}else if(b[t]>=64){\n\t\t\tc[t]=1.5*a[t];\n\t\t}else if(b[t]>=60){\n\t\t\tc[t]=1.0*a[t];\n\t\t}else{\n\t\t\tc[t]=0;\n\t\t}\n\t\tm=m+c[t];\n\n \n\t}\n\ts=m/j;\n\tprintf(\"%.2lf\",s);\n\n\treturn 0; \n}\n"} +{"label": "83", "index": "41377", "code": "int main()\n{\n int i,n,y=0;\n double z,s,w=0;\n int a[10];\n int b[10];\n double c[10];\n scanf(\"%d\",&n);\n for(i=0;i=90)\n {\n z=4.0;\n }\n else if(b[i]>=85)\n {\n z=3.7;\n }\n else if(b[i]>=82)\n {\n z=3.3;\n }\n else if(b[i]>=78)\n {\n z=3.0;\n }\n else if(b[i]>=75)\n {\n z=2.7;\n }\n else if(b[i]>=72)\n {\n z=2.3;\n }\n else if(b[i]>=68)\n {\n z=2.0;\n }\n else if(b[i]>=64)\n {\n z=1.5;\n }\n else if(b[i]>=60)\n {\n z=1.0;\n }\n\t else if(b[i]<60)\n {\n z=0.0;\n }\n c[i]=z;\n\t \n }\n for(i=0;i=60&&sz[i]<=63){a=1.0;}\nif(sz[i]>=64&&sz[i]<=67){a=1.5;}\nif(sz[i]>=68&&sz[i]<=71){a=2.0;}\nif(sz[i]>=72&&sz[i]<=74){a=2.3;}\nif(sz[i]>=75&&sz[i]<=77){a=2.7;}\nif(sz[i]>=78&&sz[i]<=81){a=3.0;}\nif(sz[i]>=82&&sz[i]<=84){a=3.3;}\nif(sz[i]>=85&&sz[i]<=89){a=3.7;}\nif(sz[i]>=90&&sz[i]<=100){a=4.0;}\nb=b+a*xf[i];}\nd=b/c;\nprintf(\"%.2lf\",d);\nreturn 0;\n}"} +{"label": "83", "index": "41379", "code": "void main()\n{\n\tint n,a[10],b[10],i,t,s=0;\n\tfloat c[10],jx=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tt=b[i];\n\t\tif(t<60)c[i]=0.0;\n\t\telse if(t<=63)c[i]=1.0;\n\t\telse if(t<=67)c[i]=1.5;\n\t\telse if(t<=71)c[i]=2.0;\n\t\telse if(t<=74)c[i]=2.3;\n\t\telse if(t<=77)c[i]=2.7;\n\t\telse if(t<=81)c[i]=3.0;\n\t\telse if(t<=84)c[i]=3.3;\n\t\telse if(t<=89)c[i]=3.7;\n\t\telse if(t<=100)c[i]=4,0;\n\t\tjx=jx+a[i]*c[i];\n\t\ts=s+a[i];\n\t}\n\tprintf(\"%.2f\\n\",jx/s);\n}\n\n\n\t \n\n\n"} +{"label": "83", "index": "41380", "code": "int main(){\n\tint a,i,b=0;\n\tdouble c;\n\tc=0;\n\tscanf(\"%d\",&a);\n\tdouble sa[500];\n\tint sb[500];\n\tfor(i=0;i=90){sa[i]=4.0;}\n\t\telse if(sa[i]>=85){sa[i]=3.7;}\n\t\telse if(sa[i]>=82){sa[i]=3.3;}\n\t\telse if(sa[i]>=78){sa[i]=3.0;}\n\t\telse if(sa[i]>=75){sa[i]=2.7;}\n\t\telse if(sa[i]>=72){sa[i]=2.3;}\n\t\telse if(sa[i]>=68){sa[i]=2.0;}\n\t\telse if(sa[i]>=64){sa[i]=1.5;}\n\t\telse if(sa[i]>=60){sa[i]=1.0;}\n\t\telse{sa[i]=0;}\n\t\tsa[i]=sa[i]*sb[i];\n\t}\n\tfor(i=0;i=90)\n\t\t\tjd=4.0;\n\t\tif(df>=85&&df<=89)\n\t\t\tjd=3.7;\n\t\tif(df>=82&&df<=84)\n\t\t\tjd=3.3;\n\t\tif(df>=82&&df<=84)\n\t\t\tjd=3.3;\n\t\tif(df>=78&&df<=81)\n\t\t\tjd=3.0;\n\t\tif(df>=75&&df<=77)\n\t\t\tjd=2.7;\n\t\tif(df>=72&&df<=74)\n\t\t\tjd=2.3;\n if(df>=68&&df<=71)\n\t\t\tjd=2.0;\n\t\tif(df>=64&&df<=67)\n\t\t\tjd=1.5;\n\t\tif(df>=60&&df<=63)\n\t\t\tjd=1.0;\n\t\tif(df<60)\n\t\t\tjd=0;\n\t\tsum1=sum1+jd*xf[i];\n\t}\n for(int i=0;i<=(n-1);i++){\n\t\tsum2+=xf[i];\n\t}\n\tgpa=sum1/sum2;\n\tprintf(\"%.2f\",gpa);\n\n\treturn 0;\n}"} +{"label": "83", "index": "41382", "code": "\nint main()\n{\n int n;\n double score[20];\n double mark[20];\n double ret=0.0;\n double sum1=0.0,sum2=0.0;\n \n scanf(\"%d\",&n);\n for(int i=0;i=90) {mark[i]=4.0;continue;}\n if(mark[i]>=85) {mark[i]=3.7;continue;}\n if(mark[i]>=82) {mark[i]=3.3;continue;}\n if(mark[i]>=78) {mark[i]=3.0;continue;}\n if(mark[i]>=75) {mark[i]=2.7;continue;}\n if(mark[i]>=72) {mark[i]=2.3;continue;}\n if(mark[i]>=68) {mark[i]=2.0;continue;}\n if(mark[i]>=64) {mark[i]=1.5;continue;}\n if(mark[i]>=60) {mark[i]=1.0;continue;}\n if(mark[i]<60) {mark[i]=0.0;continue;}\n }\n for(int i=0;i=90){\n grade[i]=4.0;\n }else if(score[i]>=85){\n grade[i]=3.7;\n }else if(score[i]>=82){\n grade[i]=3.3;\n }else if(score[i]>=78){\n grade[i]=3.0;\n }else if(score[i]>=75){\n grade[i]=2.7;\n }else if(score[i]>=72){\n grade[i]=2.3;\n }else if(score[i]>=68){\n grade[i]=2.0;\n }else if(score[i]>=64){\n grade[i]=1.5;\n }else if(score[i]>=60){\n grade[i]=1.0;\n }else{\n grade[i]=0;\n }\n gpa[i]=grade[i]*point[i];\n }\n for(i=1;i<=n;i++){\n total+=gpa[i];\n sum+=point[i];\n }\n average=total/sum;\n printf(\"%.2lf\",average);\n return 0;\n}\n"} +{"label": "83", "index": "41384", "code": "int main(){\n\tint a[1000],b[1000],i,j,n,s1=0;\n\tdouble s=0,c[1000]={0},sum,s2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\ts+=4.0*c[i];\n\t\t}else if(b[i]>=85&&b[i]<=89){\n\t\t\ts+=3.7*c[i];\n\t\t}else if(b[i]>=82&&b[i]<=84){\n\t\t\ts+=3.3*c[i];\n\t\t}else if(b[i]>=78&&b[i]<=81){\n\t\t\ts+=3.0*c[i];\n\t\t}else if(b[i]>=75&&b[i]<=77){\n\t\t\ts+=2.7*c[i];\n\t\t}else if(b[i]>=72&&b[i]<=74){\n\t\t\ts+=2.3*c[i];\n\t\t}else if(b[i]>=68&&b[i]<=71){\n\t\t\ts+=2.0*c[i];\n\t\t}else if(b[i]>=64&&b[i]<=67){\n\t\t\ts+=1.5*c[i];\n\t\t}else if(b[i]>=60&&b[i]<=63){\n\t\t\ts+=1.0*c[i];\n\t\t}else if(b[i]<60){\n\t\t\ts+=0;\n\t\t}\n\t}\n\tsum=s/s2*1.00;\n\tprintf(\"%.2lf\",sum);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41385", "code": "double b[10];\ndouble Input(double a[],double n)\n{\n int i=0;\n\tfor(i=0;i=90&&a[i]<=100)\n\t\t\ta[i]=4;\n\t\telse if(a[i]>=85&&a[i]<=89)\n\t\t\ta[i]=3.7;\n\t\telse if(a[i]>=82&&a[i]<=84)\n\t\t\ta[i]=3.3;\n\t\telse if(a[i]>=78&&a[i]<=81)\n\t\t\ta[i]=3.0;\n\t\telse if(a[i]>=75&&a[i]<=77)\n\t\t\ta[i]=2.7;\n\t\telse if(a[i]>=72&&a[i]<=74)\n\t\t\ta[i]=2.3;\n\t\telse if(a[i]>=68&&a[i]<=71)\n\t\t\ta[i]=2.0;\n\t\telse if(a[i]>=64&&a[i]<=67)\n\t\t\ta[i]=1.5;\n\t\telse if(a[i]>=60&&a[i]<=63)\n\t\t\ta[i]=1.0;\n\t\telse\n\t\t\ta[i]=0;\n\t}\n\treturn a[10];\n}\ndouble GPAII(double a[],double b[],double n)\n{\n\tint i=0;\n\tfor(i=0;i=90)b[i]=4.0;\n else if(b[i]>=85)b[i]=3.7;\n else if(b[i]>=82)b[i]=3.3;\n else if(b[i]>=78)b[i]=3.0;\n else if(b[i]>=75)b[i]=2.7;\n else if(b[i]>=72)b[i]=2.3;\n else if(b[i]>=68)b[i]=2.0;\n else if(b[i]>=64)b[i]=1.5;\n else if(b[i]>=60)b[i]=1.0;\n else b[i]=0.0;\n }\n for(i=0;i<=n-1;i++)\n {\n sum+=a[i];\n b[i]*=a[i];\n gpa+=b[i];\n }\n gpa/=sum;\n printf(\"%.2f\\n\",gpa);\n return 0;\n} \n"} +{"label": "83", "index": "41387", "code": "int main( )\n{\n int a[1000];\n int b[1000];\n double c[1000];\n double d[1000];\n int n,i,x=0;\n double y=0.00,z;\n\t scanf (\"%d\",&n);\n\t for(i=0;i=90&&b[i]<=100)\n\t\t\t c[i]=4.0;\n else if(b[i]>=85&&b[i]<=89)\n\t\t\t c[i]=3.7;\n else if(b[i]>=82&&b[i]<=84)\n\t\t\t c[i]=3.3;\n\t\t else if(b[i]>=78&&b[i]<=81)\n\t\t\t c[i]=3.0;\n\t\t else if(b[i]>=75&&b[i]<=77)\n\t\t\t c[i]=2.7;\n\t\t else if(b[i]>=72&&b[i]<=74)\n\t\t\t c[i]=2.3;\n\t\t else if(b[i]>=68&&b[i]<=71)\n\t\t\t c[i]=2.0;\n else if(b[i]>=64&&b[i]<=67)\n\t\t\t c[i]=1.5;\n\t\t else if(b[i]>=60&&b[i]<=63)\n\t\t\t c[i]=1.0;\n\t\t else if(b[i]<60)\n\t\t\t c[i]=0.0;\n\t }\n\t for(i=0;i=90){\n gpa=4.0;\n }\n else if(sjdf[i]<=89&&sjdf[i]>=85){\n gpa=3.7;\n }\n else if(sjdf[i]<=84&&sjdf[i]>=82){\n gpa=3.3;\n }\n else if(sjdf[i]<=81&&sjdf[i]>=78){\n gpa=3.0;\n }\n else if(sjdf[i]<=77&&sjdf[i]>=75){\n gpa=2.7;\n }\n else if(sjdf[i]<=74&&sjdf[i]>=72){\n gpa=2.3;\n }\n else if(sjdf[i]<=71&&sjdf[i]>=68){\n gpa=2.0;\n }\n else if(sjdf[i]<=67&&sjdf[i]>=64){\n gpa=1.5;\n }\n else if(sjdf[i]<=63&&sjdf[i]>=60){\n gpa=1.0;\n }\n else if(sjdf[i]<60){\n gpa=0.0;\n }\n g[i]=gpa*(xf[i]);\n s+=g[i];\n }\n int h=0;\n for(i=0;i=90) b[i]=4.0;\n if(a[i]<=89&&a[i]>=85) b[i]=3.7;\n if(a[i]<=84&&a[i]>=82) b[i]=3.3;\n if(a[i]<=81&&a[i]>=78) b[i]=3.0;\n if(a[i]<=77&&a[i]>=75) b[i]=2.7;\n if(a[i]<=74&&a[i]>=72) b[i]=2.3;\n if(a[i]<=71&&a[i]>=68) b[i]=2.0;\n if(a[i]<=67&&a[i]>=64) b[i]=1.5;\n if(a[i]<=63&&a[i]>=60) b[i]=1;\n if(a[i]<=59) b[i]=0;\n }\n for(i=0;i=90&&a[1][n1-1]<=100) {\n a[1][n1-1]=4.0*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=85) {\n a[1][n1-1]=3.7*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=82) {\n a[1][n1-1]=3.3*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=78) {\n a[1][n1-1]=3.0*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=75) {\n a[1][n1-1]=2.7*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=72) {\n a[1][n1-1]=2.3*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=68) {\n a[1][n1-1]=2.0*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=64) {\n a[1][n1-1]=1.5*a[0][n1-1];\n }\n else\n if (a[1][n1-1]>=60) {\n a[1][n1-1]=1.0*a[0][n1-1];\n }\n else\n a[1][n1-1]=0*a[0][n1-1];\n gpa=gpa+a[1][n1-1];\n gpa1=gpa1+a[0][n1-1];\n }\n gpa=gpa/gpa1;\n printf(\"%.2lf\",gpa);\n return 0;\n}"} +{"label": "83", "index": "41391", "code": "int main(){\n\tint n;\n\tint x=0;\n\tfloat y=0;\n int sz1[10];\n\tint sz2[10];\n\tfloat sz3[10];\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0;i=90&&sz1[i]<=100){\n\tsz3[i]=4.0*sz2[i];\n\t}else if(sz1[i]>=85&&sz1[i]<=89){\n\tsz3[i]=3.7*sz2[i];\n\t}else if(sz1[i]>=82&&sz1[i]<=84){\n\tsz3[i]=3.3*sz2[i];\n\t}else if(sz1[i]>=78&&sz1[i]<=81){\n\tsz3[i]=3.0*sz2[i];\n\t}else if(sz1[i]>=75&&sz1[i]<=77){\n\tsz3[i]=2.7*sz2[i];\n\t}else if(sz1[i]>=72&&sz1[i]<=74){\n\tsz3[i]=2.3*sz2[i];\n\t}else if(sz1[i]>=68&&sz1[i]<=71){\n\tsz3[i]=2.0*sz2[i];\n\t}else if(sz1[i]>=64&&sz1[i]<=67){\n\tsz3[i]=1.5*sz2[i];\n\t}else if(sz1[i]>=60&&sz1[i]<=63){\n\tsz3[i]=1.0*sz2[i];\n\t}else if(sz1[i]<60){\n\tsz3[i]=0.0*sz2[i];\n\t}\n\t}\n\tfor(i=0;i=90)\n\t\t\tb[j]=4;\n\t\telse if(d>=85)\n\tb[j]=3.7;\nelse if(d>=82)\n\tb[j]=3.3;\nelse if(d>=78)\n\tb[j]=3.0;\nelse if(d>=75)\n\tb[j]=2.7;\nelse if(d>=72)\n\tb[j]=2.3;\nelse if(d>=68)\n\tb[j]=2.0;\nelse if(d>=64)\n\tb[j]=1.5;\nelse if(d>=60)\n\tb[j]=1.0;\nelse b[j]=0;\n\t}\n\tfor(i=0;i=60&&b<64) b=1;\n\t\telse if(b>63&&b<68) b=1.5;\n\t\telse if(b>67&&b<72) b=2;\n\t\telse if(b>71&&b<75) b=2.3;\n\t\telse if(b>74&&b<78) b=2.7;\n\t\telse if(b>77&&b<82) b=3.0;\n\t\telse if(b>81&&b<85) b=3.3;\n\t\telse if(b>84&&b<90) b=3.7;\n\t\telse if(b>89&&b<=100) b=4;\n\t\telse b=0;\n\t\tg=g+b*a[i];\n\t}\n\tg=g/c;\n\tprintf(\"%.2f\\n\",g);\n}"} +{"label": "83", "index": "41394", "code": "int main(){\n int n,s=0;\n float j=0,z;\n scanf(\"%d\\n\",&n);\n int xf[n],sf[n];\n for(int i=0;i=90)\n\t c[k]=4.0*a[k];\n\telse \n\t\tif(b[k]<=89&&b[k]>=85)\n\t\t\tc[k]=3.7*a[k];\n\t\telse\n\t\t if(b[k]<=84&&b[k]>=82)\n\t\t\t c[k]=3.3*a[k];\n\t else \n\t \t if(b[k]<=81&&b[k]>=78)\n\t\t\t c[k]=3.0*a[k];\n\n\t else \n\t\t if(b[k]<=77&&b[k]>=75)\n\t\t \t c[k]=2.7*a[k];\n\t else \n\t \t if(b[k]<=74&&b[k]>=72)\n\t\t \tc[k]=2.3*a[k];\n\n\t else \n\t\t if(b[k]<=71&&b[k]>=68)\n\t\t \tc[k]=2.0*a[k];\n\n\t else \n\t\t if(b[k]<=67&&b[k]>=64)\n\t\t\t c[k]=1.5*a[k];\n\t else \n\t\t if(b[k]<=63&&b[k]>=60)\n\t\t\t c[k]=1.0*a[k];\n\t\t\t\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t\t\t\t if(b[k]<60)\n\t\t\t\t\t\t\t\t\t\t\t\t c[k]=0;\n\t}\n\tdouble q=0,w=0,x;\n\tint u,v;\n\tfor(u=0;u=90 && b[k]<=100)\n c[k]=4.0;\n else if(b[k]>=85&& b[k]<=89)\n c[k]=3.7;\n else if(b[k]>=82 && b[k]<=84)\n c[k]=3.3;\n else if(b[k]>=78 && b[k]<=81)\n c[k]=3.0;\n else if(b[k]>=75 && b[k]<=77)\n c[k]=2.7;\n else if(b[k]>=72 && b[k]<=74)\n c[k]=2.3; \n else if(b[k]>=68 && b[k]<=71)\n c[k]=2.0; \n else if(b[k]>=64 && b[k]<=67)\n c[k]=1.5; \n else if(b[k]>=60 && b[k]<=63)\n c[k]=1.0; \n else\n c[k]=0; \n d[k]=a[k]*c[k];\n sum2 += d[k];\n }\n printf(\"%.2f\",sum2/sum1);\n return 0;\n}\n"} +{"label": "83", "index": "41397", "code": "int main(){\n\tint n;\n\tint i;\n\tfloat c=0,f=0,d,e;\n\tfloat GPA;\n\tscanf(\"%d\",&n);\n\tint p[10];\n\tint q[10];\n\tfor( i=0;i=90&&d<=100){\n\t e=4.0;\n\t\t}else if(d>=85&&d<=89){\n\t\t\te=3.7;\n\t\t}else if(d>=82&&d<=84){\n e=3.3;\n\t\t}else if(d>=78&&d<=81){\n\t\t\te=3.0;\n\t\t}else if(d>=75&&d<=77){\n\t\t\te=2.7;\n\t\t}else if(d>=72&&d<=74){\n\t\t\te=2.3;\n\t\t}else if(d>=68&&d<=71){\n\t\t\te=2.0;\n\t\t}else if(d>=64&&d<=67){\n\t\t\te=1.5;\n\t\t}else if(d>=60&&d<=63){\n\t\t\te=1.0;\n\t\t}else if(d<60){\n\t\t\te=0;\n\t\t}\n\t\tf+=e*p[i];\n\t}printf(\"%.2f\",GPA=f/c);\n\treturn 0;\n}\n\n"} +{"label": "83", "index": "41398", "code": "int main()\n{\n\tint n,x[9]={0},c[9]={0},sumx=0;\n\tfloat zjd=0;\n\tfloat xj[9]={0},sum=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=90)\n\t\t\tc[i]=4.0;\n\t\telse if(b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if(b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\telse if(b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if(b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if(b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\telse if(b[i]>=64)\n\t\t\tc[i]=1.5;\n \telse if(b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\telse\n\t\t\tc[i]=0;\n\t}\n\tfor(i=0;i=90&&b[p]<=100){\n\t\t\tc[p]=4.0*a[p];\n\t\t}else if(b[p]>=85&&b[p]<=89){\n\t\t\tc[p]=3.7*a[p];\n }else if(b[p]>=82&&b[p]<=84){\n\t\t\tc[p]=3.3*a[p];\n\t\t}else if(b[p]>=78&&b[p]<=81){\n\t\t\tc[p]=3.0*a[p];\n }else if(b[p]>=75&&b[p]<=77){\n\t\t\tc[p]=2.7*a[p];\n }else if(b[p]>=72&&b[p]<=74){\n\t\t\tc[p]=2.3*a[p];\n }else if(b[p]>=68&&b[p]<=71){\n\t\t\tc[p]=2.0*a[p];\n\t\t}else if(b[p]>=64&&b[p]<=67){\n\t\t\tc[p]=1.5*a[p];\n }else if(b[p]>=60&&b[p]<=63){\n\t\t\tc[p]=1.0*a[p];\n\t\t}else{\n\t\t\tc[p]=0;\n\t\t}\n\t}\n\tfor (int q=1;q<=n;q++){\n\t\tG=G+c[q];\n\t}\n\tfor (int x=1;x<=n;x++){\n\t\tP=P+a[x];\n\t}\n\tk=1.0*G/P;\n\tprintf(\"%.2lf\",k);\n\treturn 0;\n}"} +{"label": "83", "index": "41401", "code": "float ji(int a)\n{\n\tif(a>=90&&a<=100)\n\treturn 4.0;\n\telse if(a>=85&&a<=89)\n\treturn 3.7;\n\telse if(a>=82&&a<=84)\n\treturn 3.3;\n\telse if(a>=78&&a<=81)\n\treturn 3.0;\n\telse if(a>=75&&a<=77)\n\treturn 2.7;\n\telse if(a>=72&&a<=74)\n\treturn 2.3;\n\telse if(a>=68&&a<=71)\n\treturn 2.0;\n\telse if(a>=64&&a<=67)\n\treturn 1.5;\n\telse if(a>=60&&a<=63)\n\treturn 1.0;\n\telse return 0.0;\n}\nint main()\n{\n\tint n,defen[N],xuefen[N],sum=0,i;\n\tfloat jidian[N],GPA=0;//?????????????GPA\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n j[i]=4.0;\n }else if(c[i]>=85){\n j[i]=3.7;\n }else if(c[i]>=82){\n j[i]=3.3;\n }else if(c[i]>=78){\n j[i]=3.0;\n }else if(c[i]>=75){\n j[i]=2.7;\n }else if(c[i]>=72){\n j[i]=2.3;\n }else if(c[i]>=68){\n j[i]=2.0;\n }else if(c[i]>=65){\n j[i]=1.5;\n }else if(c[i]>=60){\n j[i]=1.0;\n }else{\n j[i]=0.0;}\n s+=(j[i])*(x[i]);\n m+=x[i];\n }\n GPA=s/m;\n printf(\"%.2f\",GPA);\n return 0;\n}\n "} +{"label": "83", "index": "41403", "code": "int main(){\n\tint a[10],b[10];\n\tint n,i,m=0;\n\tdouble s=0,GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i89){\n\t\t\ts=s+a[i]*4.0;\n\t\t}else if(b[i]>84){\n\t\t\ts=s+a[i]*3.7;\n\t\t}else if(b[i]>81){\n\t\t\ts=s+a[i]*3.3;\n\t\t}else if(b[i]>77){\n\t\t\ts=s+a[i]*3.0;\n\t\t}else if(b[i]>74){\n\t\t\ts=s+a[i]*2.7;\n\t\t}else if(b[i]>71){\n\t\t\ts=s+a[i]*2.3;\n\t\t}else if(b[i]>67){\n\t\t\ts=s+a[i]*2.0;\n\t\t}else if(b[i]>63){\n\t\t\ts=s+a[i]*1.5;\n\t\t}else if(b[i]>59){\n\t\t\ts=s+a[i]*1.0;\n\t\t}else{\n\t\t\ts=s;\n\t\t}\n\t}\n\tGPA=1.0*s/m;\n\tprintf(\"%.2lf\",GPA);\n\n\n\n\nreturn 0;\n}"} +{"label": "83", "index": "41404", "code": "int main()\n{\n int n,a;\n cin>>n;\n int q[n],score[n];\nfloat gpa[n];\nfloat avr,sum=0,psum=0;\n for (int i=0;i>q[i];\n }\n for (int i=0;i>score[i];\n }\n for (int i=0;i=90)\ngpa[i]=4.0*q[i];\nelse if (a>=85)\ngpa[i]=3.7*q[i];\nelse if (a>=82)\ngpa[i]=3.3*q[i];\nelse if (a>=78)\ngpa[i]=3.0*q[i];\nelse if (a>=75)\ngpa[i]=2.7*q[i];\nelse if (a>=72)\ngpa[i]=2.3*q[i];\nelse if (a>=68)\ngpa[i]=2.0*q[i];\nelse if (a>=64)\ngpa[i]=1.5*q[i];\nelse if (a>=60)\ngpa[i]=1.0*q[i];\nelse\ngpa[i]=0;\n}\nfor (int i=0;i=90&&a<=100)\n\t\treturn 4.0;\n\telse if(a>=85&&a<=89)\n\t\treturn 3.7;\n\telse if(a>=82&&a<=84)\n\t\treturn 3.3;\n\telse if(a>=78&&a<=81)\n\t\treturn 3.0;\n\telse if(a>=75&&a<=77)\n\t\treturn 2.7;\n\telse if(a>=72&&a<=74)\n\t\treturn 2.3;\n\telse if(a>=68&&a<=71)\n\t\treturn 2.0;\n\telse if(a>=64&&a<=67)\n\t\treturn 1.5;\n\telse if(a>=60&&a<=63)\n\t\treturn 1.0;\n\treturn 0.0;\n}\nint main()\n{\n\tint i,n;\n\tdouble sum1,sum2;\n\n\twhile(scanf(\"%d\",&n)!=EOF)\n\t{\n\t\tsum1=sum2=0.0;\n\t\tfor(i=0;i89)\n\t\t{\n\t\t\tsb[i]=4.0;\n\t\t\t}else\n\t\t{\n\t\t\t\tif(sa[i]>84)\n\t\t\t\t{\n\t\t\t\t\tsb[i]=3.7;\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(sa[i]>81)\n\t\t\t\t\t{\n\t\t\t\t\t\tsb[i]=3.3;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sa[i]>77)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsb[i]=3.0;\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(sa[i]>74)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsb[i]=2.7;\n\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(sa[i]>71)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tsb[i]=2.3;\n\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(sa[i]>67)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tsb[i]=2.0;\n\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(sa[i]>63)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tsb[i]=1.5;\n\t\t\t\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif(sa[i]>59)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tsb[i]=1.0;\n\t\t\t\t\t\t\t\t\t\t\t\t}else{sb[i]=0;}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\tfor(i=0;i=90&&fs[i]<=100)\n xfjd[i]=4.0*xf[i];\n else if(fs[i]>=85&&fs[i]<=89)\n xfjd[i]=3.7*xf[i];\n else if(fs[i]>=82&&fs[i]<=84)\n xfjd[i]=3.3*xf[i];\n else if(fs[i]>=78&&fs[i]<=81)\n xfjd[i]=3.0*xf[i];\n else if(fs[i]>=75&&fs[i]<=77)\n xfjd[i]=2.7*xf[i];\n else if(fs[i]>=72&&fs[i]<=74)\n xfjd[i]=2.3*xf[i];\n else if(fs[i]>=68&&fs[i]<=71)\n xfjd[i]=2.0*xf[i];\n else if(fs[i]>=64&&fs[i]<=67)\n xfjd[i]=1.5*xf[i];\n else if(fs[i]>=60&&fs[i]<=63)\n xfjd[i]=1.0*xf[i];\n else if(fs[i]<60)\n xfjd[i]=0*xf[i];\n }\n for(i=0;i=90)\n\t\t\tc[i]=4.0*a[i];\n\t\telse if(b[i]>=85)\n\t\t\tc[i]=3.7*a[i];\n\t\telse if(b[i]>=82)\n\t\t\tc[i]=3.3*a[i];\n\t\telse if(b[i]>=78)\n\t\t\tc[i]=3.0*a[i];\n\t\telse if(b[i]>=75)\n\t\t\tc[i]=2.7*a[i];\n\t\telse if(b[i]>=72)\n\t\t\tc[i]=2.3*a[i];\n\t\telse if(b[i]>=68)\n\t\t\tc[i]=2.0*a[i];\n\t\telse if(b[i]>=64)\n\t\t\tc[i]=1.5*a[i];\n\t\telse if(b[i]>=60)\n\t\t\tc[i]=1.0*a[i];\n\t\telse\n\t\t\tc[i]=0;\n\t}\n\tfor(i=0;i=90&&b[i]<=100)\n\t c[i]=4.0;\n if(b[i]>=85&&b[i]<=89)\n\t c[i]=3.7;\n if(b[i]>=82&&b[i]<=84)\n\t c[i]=3.3;\n if(b[i]>=78&&b[i]<=81)\n\t c[i]=3.0;\n if(b[i]>=75&&b[i]<=77)\n\t c[i]=2.7;\n if(b[i]>=72&&b[i]<=74)\n\t c[i]=2.3;\n if(b[i]>=68&&b[i]<=71)\n\t c[i]=2.0;\n if(b[i]>=64&&b[i]<=67)\n\t c[i]=1.5;\n if(b[i]>=60&&b[i]<=63)\n\t c[i]=1.0;\n if(b[i]<60)\n\t c[i]=0;\n }\n for(o=1;o<=n;o++)\n {\n s=s+a[o]*c[o];\n }\n GPA=s/t;\n printf(\"%.2f\",GPA);\n return 0;\n }"} +{"label": "83", "index": "41410", "code": "int main(){\n\tint n,i,xf[10],df[10],s=0;\n\tdouble jd[10],zongjd[10],sum=0,a;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\t\tjd[i]=4.0;\n\t\t}else if(df[i]>=85){\n\t\t\tjd[i]=3.7;\n\t\t}else if(df[i]>=82){\n\t\t\tjd[i]=3.3;\n\t\t}else if(df[i]>=78){\n\t\t\tjd[i]=3.0;\n\t\t}else if(df[i]>=75){\n\t\t\tjd[i]=2.7;\n\t\t}else if(df[i]>=72){\n\t\t\tjd[i]=2.3;\n\t\t}else if(df[i]>=68){\n\t\t\tjd[i]=2.0;\n\t\t}else if(df[i]>=64){\n\t\t\tjd[i]=1.5;\n\t\t}else if(df[i]>=60){\n\t\t\tjd[i]=1.0;\n\t\t}else{\n\t\t\tjd[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i=90){\n\t\t\tjd[i]=4.0;}else\n\t\tif(cj[i]<=89&&cj[i]>=85){\n\t\t\tjd[i]=3.7;}else\n\t\tif(cj[i]<=84&&cj[i]>=82){\n\t\t\tjd[i]=3.3;}else\n\t\tif(cj[i]<=81&&cj[i]>=78){\n\t\t\tjd[i]=3.0;}else\n\t\tif(cj[i]<=77&&cj[i]>=75){\n\t\t\tjd[i]=2.7;}else\n\t\tif(cj[i]<=74&&cj[i]>=72){\n\t\t\tjd[i]=2.3;}else\n\t\tif(cj[i]<=71&&cj[i]>=68){\n\t\t\tjd[i]=2.0;}else\n\t\tif(cj[i]<=67&&cj[i]>=64){\n\t\t\tjd[i]=1.5;}else\n\t\tif(cj[i]<=63&&cj[i]>=60){\n\t\t\tjd[i]=1.0;}else\n\t\tif(cj[i]<=59&&cj[i]>=0){\n\t\t\tjd[i]=0;}\n\t}\n\tfor(i=1;i<=n;i++){\n\t\ts=s+jd[i]*xf[i];\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tb=b+xf[i];\n\t}\n\tGPA=s/b;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41412", "code": "void main()\n{int n,i,s=0;\n float GPA,t=0;\n float c[3][9];\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n {scanf(\"%f\",&c[1][i]);\n s=s+c[1][i];}\n for(i=0;i<=n-1;i++)\n {scanf(\"%f\",&c[2][i]);\n if(c[2][i]<60)\n c[0][i]=0;\n else if(c[2][i]<=63)\n c[0][i]=1.0;\n else if(c[2][i]<=67)\n c[0][i]=1.5;\n else if(c[2][i]<=71)\n c[0][i]=2.0;\n else if(c[2][i]<=74)\n c[0][i]=2.3;\n else if(c[2][i]<=77)\n c[0][i]=2.7;\n else if(c[2][i]<=81)\n c[0][i]=3;\n else if(c[2][i]<=84)\n c[0][i]=3.3;\n else if(c[2][i]<=89)\n c[0][i]=3.7;\n else c[0][i]=4.0;\n t=t+c[1][i]*c[0][i];}\n GPA=t/s;\n printf(\"%.2f\",GPA);\n}"} +{"label": "83", "index": "41413", "code": " float f(int a)\n {\n if(90<=a&&a<=100) return 4;\n if(85<=a&&a<=89) return 3.7;\n if(82<=a&&a<=84) return 3.3;\n if(78<=a&&a<=81) return 3.0;\n if(75<=a&&a<=77) return 2.7; \n if(72<=a&&a<=74) return 2.3; \n if(68<=a&&a<=71) return 2.0;\n if(64<=a&&a<=67) return 1.5;\n if(60<=a&&a<=63) return 1.0;\n if(a<60) return 0;\n\t\t}\n int main()\n{\n int n,i,m;\n\t float h;\n h=0;m=0;\n float GPA;\n scanf(\"%d\\n\",&n);\n int c[10],b[10];\n for(i=0;i=90) c[i]=4.0;\n else if(b[i]>=85) c[i]=3.7;\n else if(b[i]>=82) c[i]=3.3;\nelse if(b[i]>=78) c[i]=3.0;\nelse if(b[i]>=75) c[i]=2.7;\nelse if(b[i]>=72) c[i]=2.3;\nelse if(b[i]>=68) c[i]=2.0;\nelse if(b[i]>=64) c[i]=1.5;\nelse if(b[i]>=60) c[i]=1.0;\nelse c[i]=0;\n}\nfor(i=0;i=60&&b[i]<64)\n\t\t{c[i]=1.0;}\n\t\tif(b[i]>=64&&b[i]<68)\n\t\t{c[i]=1.5;}\n\t\tif(b[i]>=68&&b[i]<72)\n\t\t{c[i]=2.0;}\n\t\tif(b[i]>=72&&b[i]<75)\n\t\t{c[i]=2.3;}\n\t\tif(b[i]>=75&&b[i]<78)\n\t\t{c[i]=2.7;}\n\t\tif(b[i]>=78&&b[i]<82)\n\t\t{c[i]=3.0;}\n\t\tif(b[i]>=82&&b[i]<85)\n\t\t{c[i]=3.3;}\n\t\tif(b[i]>=85&&b[i]<90)\n\t\t{c[i]=3.7;}\n\t\tif(b[i]>=90)\n\t\t{c[i]=4;}\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\td[i]=a[i]*c[i];\n\t\tt=t+d[i];\n\t\ts=s+a[i];\n\t}\n\tm=t/s;\n\tprintf(\"%.2f\",m);\n}"} +{"label": "83", "index": "41416", "code": "void main()\n{\n\tint n,c[100],x[100],i,k,sum=0;\n\tdouble j[100],gpa=0,GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i89)\n\t\t\tj[i]=4.0;\n\t\telse if(c[i]<=89&&c[i]>84)\n\t\t\tj[i]=3.7;\n\t\telse if(c[i]<=84&&c[i]>81) \n\t\t\tj[i]=3.3;\n\t\telse if(c[i]<=81&&c[i]>77)\n\t\t\tj[i]=3.0;\n\t\telse if(c[i]<=77&&c[i]>74)\n\t\t\tj[i]=2.7;\n\t\telse if(c[i]<=74&&c[i]>71)\n\t\t\tj[i]=2.3;\n\t\t\t\t\t\t\t\telse if(c[i]<=71&&c[i]>67)\n\t\t\t\t\t\t\t\t\tj[i]=2.0;\n\t\t\t\t\t\t\t\telse if(c[i]<=67&&c[i]>63)\n\t\t\t\t\t\t\t\t\tj[i]=1.5;\n\t\t\t\t\t\t\t\telse if(c[i]<=63&&c[i]>59)\n\t\t\t\t\t\t\t\t\tj[i]=1.0;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tj[i]=0;\n\t\t\t\t\t\t\t\tgpa+=(double)j[i]*x[i];\n\t\t\t\t\t\t\t\tsum+=x[i];\n\t}\n\tGPA=gpa/sum;\n\tprintf(\"%.2lf\",GPA);\n}\n"} +{"label": "83", "index": "41417", "code": "int main(){\n\tint n,i,j,y;\n\tdouble x,s;\n\tx=0;\n\ty=0;\n\ti=0;\n\ts=0;\n\tscanf(\"%d\",&n);\n\tint a[10];\n\tfor(i=0;i=90){\n\t\t\tb[j]=4.0;\n\t\t}else if(b[j]<=89&&b[j]>=85){\n\t\t\tb[j]=3.7;\n\t\t}else if(b[j]<=84&&b[j]>=82){\n\t\t\tb[j]=3.3;\n\t\t}else if(b[j]<=81&&b[j]>=78){\n\t\t\tb[j]=3.0;\n\t\t}else if(b[j]<=77&&b[j]>=75){\n\t\t\tb[j]=2.7;\n\t\t}else if(b[j]<=74&&b[j]>=72){\n\t\t\tb[j]=2.3;\n\t\t}else if(b[j]<=71&&b[j]>=68){\n\t\t\tb[j]=2.0;\n\t\t}else if(b[j]<=67&&b[j]>=64){\n\t\t\tb[j]=1.5;\n\t\t}else if(b[j]<=63&&b[j]>=60){\n\t\t\tb[j]=1.0;\n\t\t}else if(b[j]<=59){\n\t\t\tb[j]=0;\n\t\t}\n\t}\n\ti=0;\n\tfor(i=0;i=90&&b[i]<=100){\n\t\t\tc[i]=4.0;\n\t\t}else if(b[i]>=85&&b[i]<=89){\n\t\t\tc[i]=3.7;\n\t\t}else if(b[i]>=82&&b[i]<=84){\n\t\t\tc[i]=3.3;\n\t\t}else if(b[i]>=78&&b[i]<=81){\n\t\t\tc[i]=3.0;\n\t\t}else if(b[i]>=75&&b[i]<=77){\n\t\t\tc[i]=2.7;\n\t\t}else if(b[i]>=72&&b[i]<=74){\n\t\t\tc[i]=2.3;\n\t\t}else if(b[i]>=68&&b[i]<=71){\n\t\t\tc[i]=2.0;\n\t\t}else if(b[i]>=64&&b[i]<=67){\n\t\t\tc[i]=1.5;\n\t\t}else if(b[i]>=60&&b[i]<=63){\n\t\t\tc[i]=1.0;\n\t\t}else if(b[i]>=0&&b[i]<=59){\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i=90) d=4.0*a[i];\n\t else if(b[j]>=85&&b[j]<=89) d=3.7*a[i];\n\t\telse if(b[j]>=82&&b[j]<=84) d=3.3*a[i];\n else if(b[j]>=78&&b[j]<=81) d=3.0*a[i];\n else if(b[j]>=75&&b[j]<=77) d=2.7*a[i];\n else if(b[j]>=72&&b[j]<=74) d=2.3*a[i];\n else if(b[j]>=68&&b[j]<=71) d=2.0*a[i];\n else if(b[j]>=64&&b[j]<=67) d=1.5*a[i];\n else if(b[j]>=60&&b[j]<=63) d=1.0*a[i];\n else if(b[j]<=60) d=0*a[i];\n\t\te+=d;\n\t}\n\tdouble GPA;\n\tGPA=e/c;\n printf(\"%.2lf\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41420", "code": "int main()\n{\n\tint n,w[10],f[10],sw=0,i,t;\n\tdouble ans,j[10],a,b;\n\tdouble sum=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&w[i]);\n\t\tsw=sw+w[i];\n\t}\n\tfor(t=0;t<=n-1;t++)\n\t{\n\t\tscanf(\"%d\",&f[t]);\n\t\tif(f[t]>=90)j[t]=4.0;\n\t\tif(f[t]>=85 && f[t]<=89)j[t]=3.7;\n\t\tif(f[t]>=82 && f[t]<=84)j[t]=3.3;\n\t\tif(f[t]>=78 && f[t]<=81)j[t]=3.0;\n\t\tif(f[t]>=75 && f[t]<=77)j[t]=2.7;\n\t\tif(f[t]>=72 && f[t]<=74)j[t]=2.3;\n\t\tif(f[t]>=68 && f[t]<=71)j[t]=2.0;\n\t\tif(f[t]>=64 && f[t]<=67)j[t]=1.5;\n\t\tif(f[t]>=60 && f[t]<=63)j[t]=1.0;\n\t\tif(f[t]>=0 && f[t]<=59)j[t]=0.0;\n\t\ta=j[t];\n\t\tb=w[t];\n\t\tsum=sum+a*b;\n\t}\n\tans=sum/sw;\n\tprintf(\"%.2lf\",ans);\n\treturn 0;\n}\n\n\n"} +{"label": "83", "index": "41421", "code": "void main()\n{\n\tdouble a[10];\n\tdouble b[10];\n\tdouble c[10];\n\tint n,i,j;\n\tdouble s1,s2,jd;\n\ts1=0;\n\ts2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%lf \",&a[i-1]);\n\tfor(j=1;j<=n;j++)\n\t\tscanf(\"%lf \",&b[j-1]);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif (b[i]>=90)\n\t\t\tc[i]=4.0;\n\t\telse if(b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if(b[i]>=78)\n\t\t\tc[i]=3.0;\n\t\telse if(b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if(b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if(b[i]>=68)\n\t\t\tc[i]=2.0;\n\t\telse if(b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\telse if(b[i]>=60)\n\t\t\tc[i]=1.0;\n\t\telse\n\t\t\tc[i]=0.0;\n\t}\n for(i=0;i<=n-1;i++)\n\t {\n\t\t s1=s1+a[i];\n\t\t s2=s2+a[i]*c[i];\n\t }\n\n jd=s2/(double)(s1);\n\t printf(\"%.2lf\",jd);\n}"} +{"label": "83", "index": "41422", "code": "void main()\n{\n\tint a[10],b[10],i,n,m=0;\n\tfloat c[10],y,sum=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90) c[i]=4.0;\n\t\telse if(85<=b[i] && b[i]<=89) c[i]=3.7;\n\t\telse if(82<=b[i] && b[i]<=84) c[i]=3.3;\n\t\telse if(78<=b[i] && b[i]<=81) c[i]=3.0;\n\t\telse if(75<=b[i] && b[i]<=77) c[i]=2.7;\n\t\telse if(72<=b[i] && b[i]<=74) c[i]=2.3;\n\t\telse if(68<=b[i] && b[i]<=71) c[i]=2.0;\n\t\telse if(64<=b[i] && b[i]<=67) c[i]=1.5;\n\t\telse if(60<=b[i] && b[i]<=63) c[i]=1.0;\n\t\telse if(b[i]<60) c[i]=0;\n\t}\n\tfor(i=0;i=90){\n\t\tscore [i]=4.0;\n\t}else if(score [i]<90&&score [i]>=85){\n\t\tscore [i]=3.7;\n\t}else if(score [i]<85&&score [i]>=82){\n\t\tscore [i]=3.3;\n\t}else if(score [i]<82&&score [i]>=78){\n\t\tscore [i]=3.0;\n\t}else if(score [i]<78&&score [i]>=75){\n\t\tscore [i]=2.7;\n\t}else if(score [i]<75&&score [i]>=72){\n\t\tscore [i]=2.3;\n\t}else if(score [i]<72&&score [i]>=68){\n\t\tscore [i]=2.0;\n\t}else if(score [i]<68&&score [i]>=64){\n\t\tscore [i]=1.5;\n\t}else if(score [i]<64&&score [i]>=60){\n\t\tscore [i]=1.0;\n\t}else{\n\t\tscore [i]=0;\n\t}\n\ti++;\n}\ni=0;\nnum=0;\nwhile(i=90)c[i]=4;\n\t\telse if(score[i]<=89&&score[i]>=85)c[i]=3.7;\n\t\telse if(score[i]<=84&&score[i]>=82)c[i]=3.3;\n\t\telse if(score[i]<=81&&score[i]>=78)c[i]=3.0;\n\t\telse if(score[i]<=77&&score[i]>=75)c[i]=2.7;\n\t\telse if(score[i]<=74&&score[i]>=72)c[i]=2.3;\n\t\telse if(score[i]<=71&&score[i]>=68)c[i]=2.0;\n\t\telse if(score[i]<=67&&score[i]>=64)c[i]=1.5;\n\t\telse if(score[i]<=63&&score[i]>=60)c[i]=1.0;\n\t\telse c[i]=0;\n\t}\n\tfor(i=0;i=90){\n\t\t\tsumGPA+=4.0*xf[i];\n\t\t}else if(df[i]<=89&&df[i]>=85){\n\t\t\tsumGPA+=3.7*xf[i];\n\t\t}else if(df[i]<=84&&df[i]>=82){\n\t\t\tsumGPA+=3.3*xf[i];\n\t\t}else if(df[i]<=81&&df[i]>=78){\n\t\t\tsumGPA+=3.0*xf[i];\n\t\t}else if(df[i]<=77&&df[i]>=75){\n\t\t\tsumGPA+=2.7*xf[i];\n\t\t}else if(df[i]<=74&&df[i]>=72){\n\t\t\tsumGPA+=2.3*xf[i];\n\t\t}else if(df[i]<=71&&df[i]>=68){\n\t\t\tsumGPA+=2.0*xf[i];\n\t\t}else if(df[i]<=67&&df[i]>=64){\n\t\t\tsumGPA+=1.5*xf[i];\n\t\t}else if(df[i]<=63&&df[i]>=60){\n\t\t\tsumGPA+=1.0*xf[i];\n\t\t}else if(df[i]<60){\n\t\t\tsumGPA+=0;\n\t\t}\n\t}\n\tfor(i=0;i<=n-1;i++){\n\t\tsumxf+=xf[i];\n\t}\n\tGPA=(sumGPA*0.1)/(sumxf*0.1);\n\tprintf(\"%.2lf\",GPA);\n\n return 0;\n}\n"} +{"label": "83", "index": "41426", "code": "void main()\n{\n\tint i,j,n;\n\tdouble x,y,GPA;\n\tint a[2][101];float b[101],c[101];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=1;i++)\n\t\n\t\tfor(j=0;j=90)\n\t\t\tb[j]=4.0; \n\t\t else if(a[1][j]<=89&&a[1][j]>=85)\n\t\t\t\tb[j]=3.7;\n\t\t else if(a[1][j]<=84&&a[1][j]>=82)\n\t\t\t\t\tb[j]=3.3;\n\t\t\telse if(a[1][j]<=81&&a[1][j]>=78)\n\t\t\t\t\t\tb[j]=3.0;\t\n\t\t\telse\tif(a[1][j]<=77&&a[1][j]>=75)\n\t\t\t\t\t\t\tb[j]=2.7;\t\t\t\t\t\n\t\t else if(a[1][j]<=74&&a[1][j]>=72)\n\t\t\t\t\t\t\t\tb[j]=2.3;\t\t\t\t\n\t\t\telse if(a[1][j]<=71&&a[1][j]>=68)\n\t\t\t\t\t\t\t\tb[j]=2.0;\n\t\t\telse if(a[1][j]<=67&&a[1][j]>=64)\n\t\t\t\t\t\t\t\tb[j]=1.5;\n\t\t\telse if(a[1][j]<=63&&a[1][j]>=60)\n\t\t\t\t\t\t\t\tb[j]=1.0;\n\t\t\telse b[j]=0;\n\t\t}\n\t\t\tfor(j=0;j=90)\n\t\tc[i]=4.0*a[i];\n\t\tif (b[i]<=89&&b[i]>=85)\n\t\tc[i]=3.7*a[i];\n\t\tif (b[i]<=84&&b[i]>=82)\n\t\tc[i]=3.3*a[i];\n\t\tif (b[i]<=81&&b[i]>=78)\n\t\tc[i]=3.0*a[i];\n\t\tif (b[i]<=77&&b[i]>=75)\n\t\tc[i]=2.7*a[i];\n\t\tif (b[i]<=74&&b[i]>=72)\n\t\tc[i]=2.3*a[i];\n\t\tif (b[i]<=71&&b[i]>=68)\n\t\tc[i]=2.0*a[i];\n\t\tif (b[i]<=67&&b[i]>=64)\n\t\tc[i]=1.5*a[i];\n\t\tif (b[i]<=63&&b[i]>=60)\n\t\tc[i]=1.0*a[i];\n\t\tif (b[i]<60)\n\t\tc[i]=0*a[i];\n\t}\n\tfor (i=0;i=90&&c[j]<=100){b[j]=4.0;}\nelse if(c[j]<=89&&c[j]>=85){b[j]=3.7;}\nelse if(c[j]<=84&&c[j]>=82){b[j]=3.3;}\nelse if(c[j]<=81&&c[j]>=78){b[j]=3.0;}\nelse if(c[j]<=77&&c[j]>=75){b[j]=2.7;}\nelse if(c[j]<=74&&c[j]>=72){b[j]=2.3;}\nelse if(c[j]<=71&&c[j]>=68){b[j]=2.0;}\nelse if(c[j]<=67&&c[j]>=64){b[j]=1.5;}\nelse if(c[j]<=63&&c[j]>=60){b[j]=1.0;}\nelse {b[j]=0;}\nj++;\n}\no=0;\nk=0;\nwhile(k=90&&sz[1][j]<=100){\n\t\t\ta[j]=4.0;\n\t\t}else if(sz[1][j]>=85&&sz[1][j]<=89){\n\t\t\ta[j]=3.7;\n\t\t}else if(sz[1][j]>=82&&sz[1][j]<=84){\n\t\t\ta[j]=3.3;\n\t\t}else if(sz[1][j]>=78&&sz[1][j]<=81){\n\t\t\ta[j]=3.0;\n\t\t}else if(sz[1][j]>=75&&sz[1][j]<=77){\n\t\t\ta[j]=2.7;\n\t\t}else if(sz[1][j]>=72&&sz[1][j]<=74){\n\t\t\ta[j]=2.3;\n\t\t}else if(sz[1][j]>=68&&sz[1][j]<=71){\n\t\t\ta[j]=2.0;\n\t\t}else if(sz[1][j]>=64&&sz[1][j]<=67){\n\t\t\ta[j]=1.5;\n\t\t}else if(sz[1][j]>=60&&sz[1][j]<=63){\n\t\t\ta[j]=1.0;\n\t\t\t\n\t\t}else{\n\t\t\ta[j]=0;\n\t\t}\n\t}\n\tfor(j=0;j=60 && sz2[i]<=63)\n\t\t{\n\t\t\ta=1.3;\n\t\t}\n\t\t\t\n\t\telse if(sz2[i]>=64&&sz2[i]<=67)\n\t\t{\n\t\t\ta=1.5;\n\t\t}\n\t\telse if(sz2[i]>=68&&sz2[i]<=71)\n\t\t{\n\t\t\ta=2.0;\n\t\t}\n\t\telse if(sz2[i]>=72&&sz2[i]<=74)\n\t\t{\n\t\t\ta=2.3;\n\t\t}\n\t\telse if(sz2[i]>=75&&sz2[i]<=77)\n\t\t{\n\t\t\ta=2.7;\n\t\t}\n\t\telse if(sz2[i]>=78&&sz2[i]<=81)\n\t\t{\n\t\t\ta=3.0;\n\t\t}\n\t\telse if(sz2[i]>=82&&sz2[i]<=84)\n\t\t{\n\t\t\ta=3.3;\n\t\t}\n\t\telse if(sz2[i]>=85&&sz2[i]<=89)\n\t\t{\n\t\t\ta=3.7;\n\t\t}\n\t\telse if(sz2[i]>=90)\n\t\t{\n\t\t\ta=4.0;\n\t\t}\n\tb[i]=1.0 * sz1[i]*a;\n\t}\n\tfor(i=0;i=90&&b[j]<=100)\n\t\t\tc[j]=4.0;\n\t\tif(b[j]>=85&&b[j]<=89)\n\t\t\tc[j]=3.7;\n\t\tif(b[j]>=82&&b[j]<=84)\n\t\t\tc[j]=3.3;\n\t\tif(b[j]>=78&&b[j]<=81)\n\t\t\tc[j]=3.0;\n\t\tif(b[j]>=75&&b[j]<=77)\n\t\t\tc[j]=2.7;\n\t\tif(b[j]>=72&&b[j]<=74)\n\t\t\tc[j]=2.3;\n\t\tif(b[j]>=60&&b[j]<=63)\n\t\t\tc[j]=1.0;\n\t\tif(b[j]>=68&&b[j]<=71)\n\t\t\tc[j]=2.0;\n\t\tif(b[j]>=64&&b[j]<=67)\n\t\t\tc[j]=1.5;\n\t\tif(b[j]<60)\n\t\t\tc[j]=0.0;\n\t}\n\tfor(j=0;j<=n-1;j++)\n\t\tp=p+a[j];\n\tfor(j=0;j<=n-1;j++)\n\t\tq=q+a[j]*c[j];\n\tprintf(\"%.2f\",q/p);\n}\n"} +{"label": "83", "index": "41433", "code": "void main()\n{float f(int a);\nint n,i,a[10],b[10];\nfloat x=0.00,y=0.00;\nscanf(\"%d\",&n);\nfor(i=0;ia&&a>89)\nz=4.0;\nelse if(90>a&&a>84)\nz=3.7;\nelse if(85>a&&a>81)\nz=3.3;\nelse if(82>a&&a>77)\nz=3.0;\nelse if(78>a&&a>74)\nz=2.7;\nelse if(75>a&&a>71)\nz=2.3;\nelse if(72>a&&a>67)\nz=2.0;\nelse if(68>a&&a>63)\nz=1.5;\nelse if(64>a&&a>59)\nz=1.0;\nelse z=0;\nreturn(z);\n}"} +{"label": "83", "index": "41434", "code": "int main()\n{\n\tint n,a[10],b[10],i,t=0;\n\tfloat c[10],s=0;\n\tcin>>n;\n\tfor(i=0;i>a[i];\n\t\tt=t+a[i];\n\t}\n\tfor(i=0;i>b[i];\n\t\tif(b[i]>=60)\n\t\t{\n\t\t\tif(b[i]>63)\n\t\t\t{\n\t\t\t\tif(b[i]>67)\n\t\t\t\t{\n\t\t\t\t\tif(b[i]>71)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(b[i]>74)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(b[i]>77)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(b[i]>81)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(b[i]>84)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(b[i]>89)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tc[i]=4.0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tc[i]=3.7;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tc[i]=3.3;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tc[i]=3.0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tc[i]=2.7;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc[i]=2.3;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tc[i]=2.0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc[i]=1.5;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc[i]=1.0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i=90)&&(course[i].df<=100))\n\t course_jd[i]=4.0*course[i].xf;\n if ((course[i].df>=85)&&(course[i].df<=89))\n\t course_jd[i]=3.7*course[i].xf;\n if ((course[i].df>=82)&&(course[i].df<=84))\n\t course_jd[i]=3.3*course[i].xf;\n if ((course[i].df>=78)&&(course[i].df<=81))\n\t course_jd[i]=3.0*course[i].xf;\n if ((course[i].df>=75)&&(course[i].df<=77))\n\t course_jd[i]=2.7*course[i].xf;\n if ((course[i].df>=72)&&(course[i].df<=74))\n\t course_jd[i]=2.3*course[i].xf;\n if ((course[i].df>=68)&&(course[i].df<=71))\n\t course_jd[i]=2.0*course[i].xf;\n if ((course[i].df>=64)&&(course[i].df<=67))\n\t course_jd[i]=1.5*course[i].xf;\n if ((course[i].df>=60)&&(course[i].df<=63))\n\t course_jd[i]=1.0*course[i].xf;\n if ((course[i].df<=59))\n\t course_jd[i]=0*course[i].xf;\n jd=jd+course_jd[i];\n }zxf=0;\n for(i=0;i=90)\n {\n b[i]=4.0;\n }\n if(d[i]<=89&&d[i]>=85)\n {\n b[i]=3.7;\n }\n if(d[i]<=84&&d[i]>=82)\n {\n b[i]=3.3;\n }\n if(d[i]<=81&&d[i]>=78)\n {\n b[i]=3.0;\n }\n if(d[i]<=77&&d[i]>=75)\n {\n b[i]=2.7;\n }\n if(d[i]<=74&&d[i]>=72)\n {\n b[i]=2.3;\n }\n if(d[i]<=71&&d[i]>=68)\n {\n b[i]=2.0;\n }\n if(d[i]<=67&&d[i]>=64)\n {\n b[i]=1.5;\n }\n if(d[i]<=63&&d[i]>=60)\n {\n b[i]=1.0;\n }\n if(d[i]<60)\n {\n b[i]=0;\n }\n }\n for(i=1;i<=n;i++)\n {\n c[i]=a[i]*b[i];\n }\n sum=0;\n temp=0;\n for(i=1;i<=n;i++)\n {\n sum=sum+a[i];\n }\n for(i=1;i<=n;i++)\n {\n temp=temp+c[i];\n }\n GPA=temp/sum;\n printf(\"%.2lf\",GPA);\n return 0;\n}"} +{"label": "83", "index": "41437", "code": "int main()\n{int n,i;\nscanf(\"%d\",&n);\nint d[n],a[n];\ndouble GPA,k=0,y=0,j[n],x[n];\nfor(i=0;i=90&&d[i]<=100)\n j[i]=4.0;\n if(d[i]>=85&&d[i]<=89)\n j[i]=3.7;\nif(d[i]>=82&&d[i]<=84) \n j[i]=3.3;\nif(d[i]>=78&&d[i]<=81)\n j[i]=3.0;\nif(d[i]>=75&&d[i]<=77)\n j[i]=2.7;\nif(d[i]>=72&&d[i]<=74)\n j[i]=2.3;\nif(d[i]>=68&&d[i]<=71)\n j[i]=2.0;\nif(d[i]>=64&&d[i]<=67)\n j[i]=1.5;\nif(d[i]>=60&&d[i]<=63)\n j[i]=1.0;\nif(d[i]<60)\n j[i]=0;\n}\nfor(i=0;i=90&&df[i]<=100)\n j=4.0;\n else if(df[i]>=85&&df[i]<=89)\n j=3.7;\n else if(df[i]>=82&&df[i]<=84)\n j=3.3;\n else if(df[i]>=78&&df[i]<=81)\n j=3.0;\n else if(df[i]>=75&&df[i]<=77)\n j=2.7;\n else if(df[i]>=72&&df[i]<=74)\n j=2.3;\n else if(df[i]>=68&&df[i]<=71)\n j=2.0;\n else if(df[i]>=64&&df[i]<=71)\n j=1.5;\n else if(df[i]>=60&&df[i]<=63)\n j=1.0;\n else if(df[i]<60)\n j=0;\n s=s+j*xf[i];\n k=k+xf[i];\n }\n p=(double)s/k;\n printf(\"%.2lf\", p);\n return 0;\n}\n"} +{"label": "83", "index": "41439", "code": "void main()\n{\n\tint m,i,j;\ndouble b=0,c=0;\n\tscanf(\"%d\",&m);\n\tint a[2][11];\n\tfor(i=0;i<=m-1;i++) scanf(\"%d\",&a[0][i]);\n\t\n\t\tfor(j=0;j<=m-1;j++)\n\t\t{\t scanf(\"%d\",&a[1][j]);\n\t\t\t if(a[1][j]>=90) b=b+4.0*a[0][j];\n\t\t\t else if(a[1][j]>=85) b=b+3.7*a[0][j];\n\t\t\t else if(a[1][j]>=82) b=b+3.3*a[0][j];\n else if(a[1][j]>=78) b=b+3.0*a[0][j];\n else if(a[1][j]>=75) b=b+2.7*a[0][j];\n else if(a[1][j]>=72) b=b+2.3*a[0][j];\n else if(a[1][j]>=68) b=b+2.0*a[0][j];\n else if(a[1][j]>=64) b=b+1.5*a[0][j];\n else if(a[1][j]>=60) b=b+1.0*a[0][j];\n\t\t}\n \n for(j=0;j<=m-1;j++) c=c+a[0][j];\n\tprintf(\"%.2f\",b/c);\n}"} +{"label": "83", "index": "41440", "code": "\nfloat jd(int kccj){\n\tfloat kcjd;\n\tif(kccj>=90){\n\t\tkcjd=4;\n\t}else{\n\t\tif(85<=kccj&&kccj<=89){\n\t\t\tkcjd=3.7;\n\t\t}else{\n\t\t\tif(82<=kccj&&kccj<=84){\n\t\t\t\tkcjd=3.3;\n\t\t\t}else{\n\t\t\t\tif(kccj>=78&&kccj<=81){\n\t\t\t\t\tkcjd=3.0;\n\t\t\t\t}else{\n\t\t\t\t\tif(kccj>=75&&kccj<=77){\n\t\t\t\t\t\tkcjd=2.7;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(kccj>=72&&kccj<=74){\n\t\t\t\t\t\t\tkcjd=2.3;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif(kccj<=71&&kccj>=68){\n\t\t\t\t\t\t\t\tkcjd=2.0;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif(kccj<=67&&kccj>=64){\n\t\t\t\t\t\t\t\t\tkcjd=1.5;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif(kccj<=63&&kccj>=60){\n\t\t\t\t\t\t\t\t\t\tkcjd=1.0;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tkcjd=0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\nreturn kcjd;\n\t}\n\nint main(){\n\tint n;\n\n\tint xf[10];\n\tint i;\n\t\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)e=4.0;\n\t\telse if(b[j]>=85)e=3.7;\n\t\telse if(b[j]>=82)e=3.3;\n\t\telse if(b[j]>=78)e=3.0;\n\t\telse if(b[j]>=75)e=2.7;\n\t\telse if(b[j]>=72)e=2.3;\n\t\telse if(b[j]>=68)e=2.0;\n\t\telse if(b[j]>=64)e=1.5;\n\t\telse if(b[j]>=60)e=1.0;\n\t\telse e=0;\n\t\td=d+a[j]*e;\n\t}\n\tc=d/c;\n\tprintf(\"%.2f\",c);\n}"} +{"label": "83", "index": "41442", "code": "int main(){\n\tint a[10],i,sum,n;\n\tfloat b[10],c[10];\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&a[0]);\n\tsum=a[0];\n\tfor(i=1;i=90)&&(b[i]<=100)){\n\t\tc[i]=4.0;\n\t\t}\n\t\tif((b[i]<=89)&&(b[i]>=85)){\n\t\t\tc[i]=3.7;\n\t\t}\n\t\tif((b[i]<=84)&&(b[i]>=82)){\n\t\t\tc[i]=3.3;\n\t\t}\n\t\tif((b[i]<=81)&&(b[i]>=78)){\n\t\t\tc[i]=3.0;\n\t\t}\n\t\tif((b[i]<=77)&&(b[i]>=75)){\n\t\t\tc[i]=2.7;\n\t\t}\n\t\tif((b[i]<=74)&&(b[i]>=72)){\n\t\t\tc[i]=2.3;\n\t\t}\n\t\tif((b[i]<=71)&&(b[i]>=68)){\n\t\t\tc[i]=2.0;\n\t\t}\n\t\tif((b[i]<=67)&&(b[i]>=64)){\n\t\t\tc[i]=1.5;\n\t\t}\n\t\tif((b[i]<=63)&&(b[i]>=60)){\n\t\t\tc[i]=1.0;\n\t\t}\n\t\tif(b[i]<60){\n\t\t\tc[i]=0;\n\t\t}\n\t}\n\t\tfloat sum1=0;\n\t\tfor(i=0;i=90)\n\t gpa=4.0;\n\tif((grade>=85)&&(grade<=89))\n\t\t gpa=3.7;\n if((grade>=82)&&(grade<=84))\n\t\t gpa=3.3;\n if((grade>=78)&&(grade<=81))\n\t\t gpa=3.0;\n if((grade>=75)&&(grade<=77))\n\t\t gpa=2.7;\n if((grade>=72)&&(grade<=74))\n\t\t gpa=2.3;\n if((grade>=68)&&(grade<=71))\n\t\t gpa=2.0;\n if((grade>=64)&&(grade<=67))\n\t\t gpa=1.5;\n if((grade>=60)&&(grade<=63))\n\t\t gpa=1.0; \n\tif(grade<60)\n\t\t gpa=0;\n sum1=sum1+gpa*sz[i];\n }\n\tGPA=sum1/sum2;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41446", "code": "void main(){\n\tint n,i,xf[10],a[10];\n\tfloat GPA=0,b,sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90) b=4.0;\n\t\tif(a[i]<=89 && a[i]>=85) b=3.7;\n\t\tif(a[i]<=84 && a[i]>=82) b=3.3;\n\t\tif(a[i]<=81 && a[i]>=78) b=3.0;\n\t\tif(a[i]<=77 && a[i]>=75) b=2.7;\n\t\tif(a[i]<=74 && a[i]>=72) b=2.3;\n\t\tif(a[i]<=71 && a[i]>=68) b=2.0;\n\t\tif(a[i]<=67 && a[i]>=64) b=1.5;\n\t\tif(a[i]<=63 && a[i]>=60) b=1.0;\n\t\tif(a[i]<60) b=0.0;\n\t\tGPA+=b*xf[i];\n\t}\n\tprintf(\"%.2f\",GPA/sum);\n}\n\n\n"} +{"label": "83", "index": "41447", "code": " int main()\n{\n double a[11],b[11],s,m,f;\n int n,i,j,k;\n scanf(\"%d\\n\",&n);\n m=0;\n for(j=1;j<=n;j++)\n { scanf(\"%lf\",&b[j]);\n m=m+b[j];\n }\n for(i=1;i<=n;i++)\n {\n scanf(\"%lf\",&a[i]);\n if(a[i]>=60)\n {\n if((a[i]>=90) &&(a[i]<=100)) a[i]=4.0;\n if((a[i]>=85) &&(a[i]<=90)) a[i]=3.7;\n if((a[i]>=82) &&(a[i]<=84)) a[i]=3.3;\n if((a[i]>=78) &&(a[i]<=81)) a[i]=3.0;\n if((a[i]>=75) &&(a[i]<=77)) a[i]=2.7;\n if((a[i]>=72) &&(a[i]<=74)) a[i]=2.3;\n if((a[i]>=68) &&(a[i]<=71)) a[i]=2.0;\n if((a[i]>=64) &&(a[i]<=67)) a[i]=1.5;\n if((a[i]>=60) &&(a[i]<=63)) a[i]=1.0;\n }\n else\n a[i]=0;\n }\n s=0;\n for(k=1;k<=n;k++)\n {s=s+a[k]*b[k];\n }\n f=s/m;\n printf(\"%.2lf\",f);\n scanf(\"%d\",&n);\n return 0;\n}\n"} +{"label": "83", "index": "41448", "code": "int main()\n{ int a[10],b[10],n,i,w1=0;\n\tdouble GPA,c[10],w=0;\n\t\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i<=n-1;++i)\n\t{\n\t scanf(\"%d\",&a[i]);\t\n\t}\n\t\n\tfor(i=0;i<=n-1;++i)\n\t{\n\t scanf(\"%d\",&b[i]);\t\n\t}\n\t\n\t\n\t\n\tfor(i=0;i<=n-1;++i)\n\t{\n\t if(b[i]<60){c[i]=0;}\n\t else\n\t {\n\t \tif(b[i]<=63){c[i]=1.0;}\n\t else\n\t {\n\t \t if(b[i]<=67){c[i]=1.5;}\n\t else\n\t {\n\t \t if(b[i]<=71){c[i]=2.0;}\n\t else\n\t {\n\t \t if(b[i]<=74){c[i]=2.3;}\n\t else\n\t {\n\t \t if(b[i]<=77){c[i]=2.7;}\n\t else\n\t {\n\t \t if(b[i]<=81){c[i]=3.0;}\n\t else\n\t {\n\t \t if(b[i]<=84){c[i]=3.3;}\n\t else\n\t {\n\t \t if(b[i]<=89){c[i]=3.7;}\n\t else\n\t {\n\t \t if(b[i]<=100){c[i]=4.0;}\n\t else\n\t {\n\t \t \n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\t\n\t }\t\n\t}\n\t\n\t\n\tfor(i=0;i<=n-1;++i)\n\t{\n\t\tw=w+a[i]*c[i];\n\t}\n\t\n\tfor(i=0;i<=n-1;++i)\n\t{\n\t \tw1=w1+a[i];\n\t}\n\tprintf(\"%3.2f\",GPA=w/w1);\n\t\n\t\nreturn 0;\t\n}"} +{"label": "83", "index": "41449", "code": "int main()\n{\n\tint n,a[2][10],i,e,sum1=0;\n\tdouble b[10],sum2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<2;i++)\n\t{\n\t\tfor(e=0;e=90&&a[1][i]<=100)\n\t\t\tb[i]=4.0;\n\t\tif(a[1][i]>=85&&a[1][i]<=89)\n\t\t\tb[i]=3.7;\n\t\tif(a[1][i]>=82&&a[1][i]<=84)\n\t\t\tb[i]=3.3;\n\t\tif(a[1][i]>=78&&a[1][i]<=81)\n\t\t\tb[i]=3.0;\n\t\tif(a[1][i]>=75&&a[1][i]<=77)\n\t\t\tb[i]=2.7;\n\t\tif(a[1][i]>=72&&a[1][i]<=74)\n\t\t\tb[i]=2.3;\n\t\tif(a[1][i]>=68&&a[1][i]<=71)\n\t\t\tb[i]=2.0;\n\t\tif(a[1][i]>=64&&a[1][i]<=67)\n\t\t\tb[i]=1.5;\n\t\tif(a[1][i]>=60&&a[1][i]<=63)\n\t\t\tb[i]=1.0;\n\t\tif(a[1][i]<60)\n\t\t\tb[i]=0;\n\t}\n\tfor(i=0;i=90){\n\t\tgpa+=4*a[i];\t\n\t\t}\n\t\telse if(b[i]>=85&&b[i]<=89){\n\n\t\t\tgpa+=3.7*a[i];\n\t\t}\n\t\telse if(b[i]>=82&&b[i]<=84){\n\t\t\tgpa+=3.3*a[i];\n\t\t}\n\t\telse if(b[i]>=78&&b[i]<=81){\n\t\t\tgpa+=3.0*a[i];\n\t\t}\n\t\telse if(b[i]>=75&&b[i]<=77){\n\t\t\tgpa+=2.7*a[i];\n\t\t}\n\t\telse if(b[i]>=72&&b[i]<=74){\n\t\t\tgpa+=2.3*a[i];\n\t\t}\n\t\telse if(b[i]>=68&&b[i]<=71){\n\t\t\tgpa+=2.0*a[i];\n\t\t}\n\t\telse if(b[i]>=64&&b[i]<=67){\n\t\t\tgpa+=1.5*a[i];\n\t\t}\n\t\telse if(b[i]>=60&&b[i]<=63){\n\t\t\tgpa+=1.0*a[i];\n\t\t}\n\t}\n\tfor(i=0;i89)g[i]=4.0;\n if(grade[i]<90&&grade[i]>84)\n g[i]=3.7;if(grade[i]<85&&grade[i]>81)\n g[i]=3.3;if(grade[i]<82&&grade[i]>77)\n g[i]=3.0;if(grade[i]<78&&grade[i]>74)\n g[i]=2.7;if(grade[i]<75&&grade[i]>71)\n g[i]=2.3;if(grade[i]<72&&grade[i]>67)\n g[i]=2.0;if(grade[i]<68&&grade[i]>63)\n g[i]=1.5;if(grade[i]<64&&grade[i]>59)\n g[i]=1.0;if(grade[i]<60)\n g[i]=0;}\n for(i=0;i89) xfjd[i]=4.0;\n\t\tif(df[i]<=89&&df[i]>84) xfjd[i]=3.7;\n\t\tif(df[i]<=84&&df[i]>81) xfjd[i]=3.3;\n\t\tif(df[i]<=81&&df[i]>77) xfjd[i]=3.0;\n\t\tif(df[i]<=77&&df[i]>74) xfjd[i]=2.7;\n\t\tif(df[i]<=74&&df[i]>71) xfjd[i]=2.3;\n\t\tif(df[i]<=71&&df[i]>67) xfjd[i]=2.0;\n\t\tif(df[i]<=67&&df[i]>63) xfjd[i]=1.5;\n\t\tif(df[i]<=63&&df[i]>59) xfjd[i]=1.0;\n\t\tif(df[i]<=59) xfjd[i]=0;\n\t\tzxfjd=zxfjd+xfjd[i]*xf[i];\n\t}\n\tgpa=zxfjd/zxf;\n\tprintf(\"%.2f\\n\",gpa);\n}"} +{"label": "83", "index": "41453", "code": "int main()\n{\n\tint n,i,K=0;\n\tdouble G,S=0;\n\tint a[100];\n\tint b[100];\n\tdouble c[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\t\tc[i]=4.0;\n\t\t}else if(b[i]>=85){\n\t\t\tc[i]=3.7;\n\t\t}else if(b[i]>=82){\n\t\t\tc[i]=3.3;\n\t\t}else if(b[i]>=78){\n\t\t\tc[i]=3.0;\n\t\t}else if(b[i]>=75){\n\t\t\tc[i]=2.7;\n\t\t}else if(b[i]>=72){\n\t\t\tc[i]=2.3;\n\t\t}else if(b[i]>=68){\n\t\t\tc[i]=2.0;\n\t\t}else if(b[i]>=64){\n\t\t\tc[i]=1.5;\n\t\t}else if(b[i]>=60){\n\t\t\tc[i]=1.0;\n\t\t}else{\n\t\t\tc[i]=0.0;\n\t\t}\n\t}\n\tfor(i=0;i=90)\n\t\t {\n\t\t\t c[m]=4.0;\n\t\t }\n\t\t else if(b[m]>=85&&b[m]<90)\n\t\t {\n c[m]=3.7;\n\t\t }\n else if(b[m]>=82&&b[m]<85)\n\t\t {\n c[m]=3.3;\n\t\t }\n else if(b[m]>=78&&b[m]<82)\n\t\t {\n c[m]=3.0;\n\t\t }\n else if(b[m]>=75&&b[m]<78)\n\t\t {\n c[m]=2.7;\n\t\t }\n\n else if(b[m]>=72&&b[m]<75)\n\t\t {\n c[m]=2.3;\n\t\t }\n else if(b[m]>=68&&b[m]<72)\n\t\t {\n c[m]=2.0;\n\t\t }\n\n else if(b[m]>=64&&b[m]<68)\n\t\t {\n c[m]=1.5;\n\t\t }\n\n else if(b[m]>=60&&b[m]<64)\n\t\t {\n c[m]=1.0;\n\t\t }\n\t\t else{\n\t\t\t c[m]=0;\n\t\t }\n\t}\n for(int k=0;k=85&&b[i]<=89)\n\t\tc[i]=3.7;\n\t\tif(b[i]>=82&&b[i]<=84)\n\t\tc[i]=3.3;\n if(b[i]>=78&&b[i]<=81)\n\t\tc[i]=3.0;\n\t\tif(b[i]>=75&&b[i]<=77)\n\t\tc[i]=2.7;\n if(b[i]>=72&&b[i]<=74)\n\t\tc[i]=2.3;\n\t\tif(b[i]>=68&&b[i]<=71)\n\t\tc[i]=2.0;\n\t\tif(b[i]>=64&&b[i]<=67)\n\t\tc[i]=1.5;\n\t\tif(b[i]>=60&&b[i]<=63)\n\t\tc[i]=1.0;\n\t\tif(b[i]<=60)\n\t\tc[i]=0;\n\t\tsum1+=c[i]*a[i];\n sum2+=a[i];\n}\nGPA=sum1/sum2;\nprintf(\"%.2lf\",GPA);\nreturn 0;\n}\n"} +{"label": "83", "index": "41456", "code": " int main(){\n int n,i,x; \n float y,c,d,GPA;\n int a[num],b[num];\n x=0;\n c=0;\n d=0;\n scanf(\"%d\",&n);\n for(i=0;i=90){\n y=4.0;\n }else if(b[i]>=85){\n y=3.7;\n }else if(b[i]>=82){\n y=3.3;\n }else if(b[i]>=78){\n y=3.0;\n }else if(b[i]>=75){\n y=2.7;\n }else if(b[i]>=72){\n y=2.3;\n }else if(b[i]>=68){\n y=2.0;\n }else if(b[i]>=64){\n y=1.5;\n }else if(b[i]>=60){\n y=1.0;\n }else{\n y=0;\n }\n c=y*a[i];\n d=d+c;\n } \n GPA=d/x;\n printf(\"%.2f\",GPA);\n return 0;\n}\n \n\n\n\n \n "} +{"label": "83", "index": "41457", "code": "void main()\n{\n\tint a[10],b[10],n,i,s;\n\tfloat c[10],GPA;\n\tscanf(\"%d\",&n);\n\ti=1;\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\ti=i+1;\n\t}\n\ti=1;\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d\",&b[i]);\n\t\tif(b[i]>=90&&b[i]<=100)\n\t\t\tc[i]=4;\n\t\telse if(b[i]>=85)\n\t\t\tc[i]=3.7;\n\t\telse if(b[i]>=82)\n\t\t\tc[i]=3.3;\n\t\telse if(b[i]>=78)\n\t\t\tc[i]=3;\n\t\telse if(b[i]>=75)\n\t\t\tc[i]=2.7;\n\t\telse if(b[i]>=72)\n\t\t\tc[i]=2.3;\n\t\telse if(b[i]>=68)\n\t\t\tc[i]=2;\n\t\telse if(b[i]>=64)\n\t\t\tc[i]=1.5;\n\t\telse if(b[i]>=60)\n\t\t\tc[i]=1;\n\t\telse c[i]=0;\n\t\ti=i+1;\n\t}\n\ti=1;\n\tGPA=0;\n\ts=0;\n\twhile(i<=n)\n\t{\n\t\tGPA=GPA+a[i]*c[i];\n\t\ts=s+a[i];\n\t\ti=i+1;\n\t}\n\tGPA=GPA/(float)s;\n\tprintf(\"%.2f\",GPA);\n}\n"} +{"label": "83", "index": "41458", "code": "int main()\n{\n\tfloat*xuefen;\n\tfloat*chengji;\n\tfloat*GPA;\n\tfloat xf,cj,xuefensum=0,GPAsum=0;\n\tint n,i;\n\tscanf(\"%d\",&n);\n\txuefen=(float*)malloc(sizeof(float)*n);\n\tchengji=(float*)malloc(sizeof(float)*n);\n\tGPA=(float*)malloc(sizeof(float)*n);\n\tfor(i=0;i=90&&*(chengji+i)<=100)\n\t\t{\n\t\t\t*(GPA+i)=4.0;\n\t\t}\n\t\telse if(*(chengji+i)>=85&&*(chengji+i)<=89)\n\t\t{\n\t\t\t*(GPA+i)=3.7;\n\t\t}\n\t\telse if(*(chengji+i)>=82&&*(chengji+i)<=84)\n\t\t{\n\t\t\t*(GPA+i)=3.3;\n\t\t}\n\t\telse if(*(chengji+i)>=78&&*(chengji+i)<=81)\n\t\t{\n\t\t\t*(GPA+i)=3.0;\n\t\t}\n\t\telse if(*(chengji+i)>=75&&*(chengji+i)<=77)\n\t\t{\n\t\t\t*(GPA+i)=2.7;\n\t\t}\n\t\telse if(*(chengji+i)>=72&&*(chengji+i)<=74)\n\t\t{\n\t\t\t*(GPA+i)=2.3;\n\t\t}\n\t\telse if(*(chengji+i)>=68&&*(chengji+i)<=71)\n\t\t{\n\t\t\t*(GPA+i)=2.0;\n\t\t}\n\t\telse if(*(chengji+i)>=64&&*(chengji+i)<=67)\n\t\t{\n\t\t\t*(GPA+i)=1.5;\n\t\t}\n\t\telse if(*(chengji+i)>=60&&*(chengji+i)<=63)\n\t\t{\n\t\t\t*(GPA+i)=1.0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t*(GPA+i)=0;\n\t\t}\n\t}\n\tfor(i=0;i=90 && df[i]<=100){\n\t\t\tjd[i]=4.0*xf[i];\n\t\t}if(df[i]>=85 && df[i]<=89){\n\t\t\tjd[i]=3.7*xf[i];\n\t\t}if(df[i]>=82 && df[i]<=84){\n\t\t\tjd[i]=3.3*xf[i];\n\t\t}if(df[i]>=78 && df[i]<=81){\n\t\t\tjd[i]=3.0*xf[i];\n\t\t}if(df[i]>=75 && df[i]<=77){\n\t\t\tjd[i]=2.7*xf[i];\n\t\t}if(df[i]>=72 && df[i]<=74){\n\t\t\tjd[i]=2.3*xf[i];\n\t\t}if(df[i]>=68 && df[i]<=71){\n\t\t\tjd[i]=2.0*xf[i];\n\t\t}if(df[i]>=64 && df[i]<=67){\n\t\t\tjd[i]=1.5*xf[i];\n\t\t}if(df[i]>=60 && df[i]<=63){\n\t\t\tjd[i]=1.0*xf[i];\n\t\t}if(df[i]<60){\n\t\t\tjd[i]=0;\n\t\t}\n\t}for(i=0;i=60 && s[i]<=63) p[i]=1.0*c[i];\n\t\telse if (s[i]>=64 && s[i]<=67) p[i]=1.5*c[i];\n\t\telse if (s[i]>=68 && s[i]<=71) p[i]=2.0*c[i];\n\t\telse if (s[i]>=72 && s[i]<=74) p[i]=2.3*c[i];\n\t\telse if (s[i]>=75 && s[i]<=77) p[i]=2.7*c[i];\n\t\telse if (s[i]>=78 && s[i]<=81) p[i]=3.0*c[i];\n\t\telse if (s[i]>=82 && s[i]<=84) p[i]=3.3*c[i];\n\t\telse if (s[i]>=85 && s[i]<=89) p[i]=3.7*c[i];\n\t\telse p[i]=4.0*c[i];\n\t\ttp=tp+p[i];\n\t}\n\tGPA=tp/tc;\n\tprintf(\"%.2lf\", GPA);\n}"} +{"label": "83", "index": "41461", "code": "float a[10];\nint b[10];\nfloat c[10];\nfloat d[10];\nint main()\n{\n\tint n,i,j;\n\tfloat GPA,sum,pts;\n\tGPA=0;\n\tsum=0;\n\tpts=0;\n\tscanf(\"%d\", &n);\n\tfor(j=0;j=90&&*p2<=100)\n\t\tn=4.0f;\n\telse if(*p2>=85&&*p2<=89)\n\t\tn=3.7f;\n\telse if(*p2>=82&&*p2<=84)\n\t\tn=3.3f;\n\telse if(*p2>=78&&*p2<=81)\n\t\tn=3.0f;\n\telse if(*p2>=75&&*p2<=77)\n\t\tn=2.7f;\n\telse if(*p2>=72&&*p2<=74)\n\t\tn=2.3f;\n\telse if(*p2>=68&&*p2<=71)\n\t\tn=2.0f;\n\telse if(*p2>=64&&*p2<=67)\n\t\tn=1.5f;\n\telse if(*p2>=60&&*p2<=63)\n\t\tn=1.0f;\n\telse\n\t\tn=0;\n\treturn (n);\n}\nvoid main()\n{\n\tint i,n,num=0,a[10],b[10],*p1,*p2;\n\tfloat c[10];\n\tfloat GPA=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)y[i]=4.0;\n\tif(y[i]<=89&&y[i]>=85)y[i]=3.7;\n\tif(y[i]<=84&&y[i]>=82)y[i]=3.3;\n\tif(y[i]<=81&&y[i]>=78)y[i]=3.0;\n\tif(y[i]<=77&&y[i]>=75)y[i]=2.7;\n\tif(y[i]<=74&&y[i]>=72)y[i]=2.3;\n\tif(y[i]<=71&&y[i]>=68)y[i]=2.0;\n\tif(y[i]<=67&&y[i]>=64)y[i]=1.5;\n\tif(y[i]<=63&&y[i]>=60)y[i]=1.0;\n\tb+=x[i]*y[i];\n\t}\n\tc=b/a;\n\tprintf(\"%.2f\",c);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41464", "code": "\nint main()\n{\n\tint i,j,n,point[11],score[11];\n\tfloat GPA[11],tol=0,sum=0,result;\n\tscanf(\"%d\",&n);\n\n\n\tfor(i=1;i=90) GPA[i]=4.0;\n\t\telse if(score[i]>=85) GPA[i]=3.7;\n\t\telse if(score[i]>=82) GPA[i]=3.3;\n\t\telse if(score[i]>=78) GPA[i]=3.0;\n\t\telse if(score[i]>=75) GPA[i]=2.7;\n\t\telse if(score[i]>=72) GPA[i]=2.3;\n\t\telse if(score[i]>=68) GPA[i]=2.0;\n\t\telse if(score[i]>=64) GPA[i]=1.5;\n\t\telse if(score[i]>=60) GPA[i]=1.0;\n\t\telse GPA[i]=0;\n\t\ttol=tol+GPA[i]*point[i];\n\t}\n\n\n\n\n\tresult=tol/sum;\n\tprintf(\"%.2f\",result);\n\treturn 0;\n}"} +{"label": "83", "index": "41465", "code": "int main()\n{\n\tint n,i,sum=0,a[10],b[10];\n\tdouble s=0,GPA,m[10];\n\tcin>>n;\n\tfor(i=0;i>a[i];\n\tsum+=a[i];}\n\tfor(i=0;i>b[i];\n\tfor(i=0;i=60)&&(b[i]<=63))\n\t\tm[i]=1.0*a[i];\n\telse if((b[i]>=64)&&(b[i]<=67))\n\t\tm[i]=1.5*a[i];\n\telse if((b[i]>=68)&&(b[i]<=71))\n\t\tm[i]=2.0*a[i];\n\telse if((b[i]>=72)&&(b[i]<=74))\n\t\tm[i]=2.3*a[i];\n\telse if((b[i]>=75)&&(b[i]<=77))\n\t\tm[i]=2.7*a[i];\n\telse if((b[i]>=78)&&(b[i]<=81))\n\t\tm[i]=3.0*a[i];\n\telse if((b[i]>=82)&&(b[i]<=84))\n\t\tm[i]=3.3*a[i];\n\telse if((b[i]>=85)&&(b[i]<=89))\n\t\tm[i]=3.7*a[i];\n\telse if((b[i]>=90)&&(b[i]<=100))\n\t\tm[i]=4.0*a[i];\n\t}\n\tfor(i=0;i=90)\nc[i]=4.0;\nif (b[i]<=89&&b[i]>=85)\nc[i]=3.7;\nif (b[i]<=84&&b[i]>=82)\nc[i]=3.3;\nif (b[i]<=81&&b[i]>=78)\nc[i]=3.0;\nif (b[i]<=77&&b[i]>=75)\nc[i]=2.7;\nif (b[i]<=74&&b[i]>=72)\nc[i]=2.3;\nif (b[i]<=71&&b[i]>=68)\nc[i]=2.0;\nif (b[i]<=67&&b[i]>=64)\nc[i]=1.5;\nif (b[i]<=63&&b[i]>=60)\nc[i]=1.0;\nif (b[i]<60)\nc[i]=0.0;\n\n}\nfor (i=1;i<=n;i++)\n{\nc[i]=c[i]*a[i];\n}\nfor (i=1;i<=n;i++)\n{\nd=d+c[i];\nm=m+a[i];\n}\ng=d/m;\nprintf(\"%.2f\",g);\n\nreturn 0;\n}"} +{"label": "83", "index": "41467", "code": "void main()\n{\n int n,a[10],b[10],i,j;\n float GPA;\n double c[10],s,r;\n scanf(\"%d\",&n);\n for(i=0;i89&&b[i]<=100)\n c[i]=4.0;\n else if(b[i]>84&&b[i]<90)\n c[i]=3.7;\n else if(b[i]>81&&b[i]<85)\n c[i]=3.3;\n else if(b[i]>77&&b[i]<82)\n c[i]=3.0;\n else if(b[i]>74&&b[i]<78)\n c[i]=2.7;\n else if(b[i]>71&&b[i]<75)\n c[i]=2.3;\n else if(b[i]>67&&b[i]<72)\n c[i]=2.0;\n else if(b[i]>63&&b[i]<68)\n c[i]=1.5;\n else if(b[i]>59&&b[i]<64)\n c[i]=1.0;\n else c[i]=0;\n s=s+c[i]*(a[i]+0.0);\n i++;\n }\n r=0;\n for(i=0;i=90&&cj[i]<=100){\n dkjd[i]=4.0;\n }else if(cj[i]>=85&&cj[i]<=89){\n dkjd[i]=3.7;\n }else if(cj[i]>=82&&cj[i]<=84){\n dkjd[i]=3.3;\n }else if(cj[i]>=78&&cj[i]<=81){\n dkjd[i]=3.0;\n }else if(cj[i]>=75&&cj[i]<=77){\n dkjd[i]=2.7;\n }else if(cj[i]>=72&&cj[i]<=74){\n dkjd[i]=2.3;\n }else if(cj[i]>=68&&cj[i]<=71){\n dkjd[i]=2.0;\n }else if(cj[i]>=64&&cj[i]<=67){\n dkjd[i]=1.5;\n }else if(cj[i]>=60&&cj[i]<=63){\n dkjd[i]=1.0;\n }else if(cj[i]>=0&&cj[i]<=60){\n dkjd[i]=0.0;\n }\nx=dkjd[i]*xf[i];\n m+=x;\n q+=xf[i];\n } \n m=m/q;\n printf(\"%.2lf\",m);\n return 0;\n}\n\n\n\n\n"} +{"label": "83", "index": "41469", "code": " int main(){\n int n,i,j,m;\n int a[10],b[10];\n float GPA,e[10],k,p;\n scanf(\"%d\\n\",&n);\n for(i=0;i=90&&b[i]<=100){\n e[i]=4.0;\n }\n if(b[i]>=85&&b[i]<=89){\n e[i]=3.7;\n }\n if(b[i]>=82&&b[i]<=84){\n e[i]=3.3;\n }\n if(b[i]>=78&&b[i]<=81){\n e[i]=3.0;\n }\n if(b[i]>=75&&b[i]<=77){\n e[i]=2.7;\n }\n if(b[i]>=72&&b[i]<=74){\n e[i]=2.3;\n }\n if(b[i]>=68&&b[i]<=71){\n e[i]=2.0;\n }\n if(b[i]>=64&&b[i]<=67){\n e[i]=1.5;\n }\n if(b[i]>=60&&b[i]<=63){\n e[i]=1.0;\n }\n if(b[i]<60){\n e[i]=0;\n }\n p=a[i];\n k+=(e[i]*p);\n }\n GPA=k/(m*1.0);\n printf(\"%.2f\",GPA);\n return 0;\n}\n\n\n\n"} +{"label": "83", "index": "41470", "code": "int main(){\n\tint n,i;\n\tint xf[10],cj[10];\n\tfloat a,b,jd[10],GPA;\n\ta=0;\n\tb=0;\n\tGPA=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=90){\n\t\t\tjd[i]=4.0f;\n\t\t}else if(cj[i]>=85){\n\t\t\tjd[i]=3.7f;\n\t\t}else if(cj[i]>=82){\n\t\t\tjd[i]=3.3f;\n\t\t}else if(cj[i]>=78){\n\t\t\tjd[i]=3.0f;\n\t\t}else if(cj[i]>=75){\n\t\t\tjd[i]=2.7f;\n\t\t}else if(cj[i]>=72){\n\t\t\tjd[i]=2.3f;\n\t\t}else if(cj[i]>=68){\n\t\t\tjd[i]=2.0f;\n\t\t}else if(cj[i]>=64){\n\t\t\tjd[i]=1.5f;\n\t\t}else{\n\t\t\tjd[i]=0.0f;\n\t\t}\n\t}\n\tfor(i=0;i=90)\n\t\t gradepoint[i]=4.0;\n\t\tif(grade[i]<=89&&grade[i]>=85)\n\t\t gradepoint[i]=3.7;\n\t\tif(grade[i]<=84&&grade[i]>=82)\n\t\t gradepoint[i]=3.3;\t\t\n\t\tif(grade[i]<=81&&grade[i]>=78)\n\t\t gradepoint[i]=3.0;\t\t\n\t\tif(grade[i]<=77&&grade[i]>=75)\n\t\t gradepoint[i]=2.7;\t\t\n\t\tif(grade[i]<=74&&grade[i]>=72)\n\t\t gradepoint[i]=2.3;\t\t\n\t\tif(grade[i]<=71&&grade[i]>=68)\n\t\t gradepoint[i]=2.0;\t\t\n\t\tif(grade[i]<=67&&grade[i]>=64)\n\t\t gradepoint[i]=1.5;\t\t\n\t\tif(grade[i]<=63&&grade[i]>=60)\n\t\t gradepoint[i]=1.0;\n\t if(grade[i]<60)\n\t\t\tgradepoint[i]=0;}\n\tfor(i=0;i=90)\n {\n c[j]=4.0;\n }\n else if(b[j]<=89&&b[j]>=85)\n {\n c[j]=3.7;\n }\n else if(b[j]<=84&&b[j]>=82)\n {\n c[j]=3.3;\n }\n else if(b[j]<=81&&b[j]>=78)\n {\n c[j]=3.0;\n }\n else if(b[j]<=77&&b[j]>=75)\n {\n c[j]=2.7;\n }\n else if(b[j]<=74&&b[j]>=72)\n {\n c[j]=2.3;\n }\n else if(b[j]<=71&&b[j]>=68)\n {\n c[j]=2.0;\n }\n else if(b[j]<=67&&b[j]>=64)\n {\n c[j]=1.5;\n }\n else if(b[j]<=63&&b[j]>=60)\n {\n c[j]=1.0;\n }\n else if(b[j]<=59)\n {\n c[j]=0;\n }\n }\n for(m=1;m<=n;m++)\n {\n d[m]=a[m]*c[m];\n h=h+d[m];\n }\n GPA=h/g;\n printf(\"%.2f\",GPA);\n return 0;\n}\n\n"} +{"label": "83", "index": "41473", "code": "int main()\n{\n\tint a[num],b[num];\n\tdouble c[num],C=0,B=0,GPA;\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\t\tc[i]=4.0*b[i];\n\t\t}\n\t\tif(a[i]>=85&&a[i]<=89){\n\t\t\tc[i]=3.7*b[i];\n\t\t}\n\t\tif(a[i]>=82&&a[i]<=84){\n\t\t\tc[i]=3.3*b[i];\n\t\t}\n\t\tif(a[i]>=78&&a[i]<=81){\n\t\t\tc[i]=3.0*b[i];\n\t\t}\n\t\tif(a[i]>=75&&a[i]<=77){\n\t\t\tc[i]=2.7*b[i];\n\t\t}\n\t\tif(a[i]>=72&&a[i]<=74){\n\t\t\tc[i]=2.3*b[i];\n\t\t}\n\t\tif(a[i]>=68&&a[i]<=71){\n\t\t\tc[i]=2.0*b[i];\n\t\t}\n\t\tif(a[i]>=64&&a[i]<=67){\n\t\t\tc[i]=1.5*b[i];\n\t\t}\n\t\tif(a[i]>=60&&a[i]<=63){\n\t\t\tc[i]=1.0*b[i];\n\t\t}\n\t\tif(a[i]<60){\n\t\t\tc[i]=0*b[i];\n\t\t}\n\t\tC+=c[i];\n\t}\n\tGPA=C/B;\n\tprintf(\"%.2lf\",GPA);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41474", "code": "void main()\n\n{\n\tint n,i,b;\n\tfloat\ta[200],c,x=0,y=0,z;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90)\n\t\t{c=4.0;}\n\t\tif(b<=89&&b>=85)\n\t\t{c=3.7;}\n\t\tif(b<=84&&b>=82)\n\t\t{c=3.3;}\n\t\tif(b<=81&&b>=78)\n\t\t{c=3.0;}\n\t\tif(b<=77&&b>=75)\n\t\t{c=2.7;}\n\t\tif(b<=74&&b>=72)\n\t\t{c=2.3;}\n\t\tif(b<=71&&b>=68)\n\t\t{c=2.0;}\n\t\tif(b<=67&&b>=64)\n\t\t{c=1.5;}\n\t\tif(b<=63&&b>=60)\n\t\t{c=1.0;}\n\t\tif(b<60)\n\t\t{c=0;}\n\t\ty=y+c*a[i];\n\t\n\t}\n\nz=y/x;\nprintf(\"%.2f\",z);\n\n} "} +{"label": "83", "index": "41475", "code": "void main()\n{\n\tint n,i,a[10],b[10],m=0;\n\tfloat c[10],sum=0,GPA;\n\tscanf(\"%d\",&n);\n\tscanf(\"\\n\");\n\tfor(i=0;i=90&&b[i]<=100)\n\t\tc[i]=4.0*a[i];\n\tif(b[i]>=85&&b[i]<=89)\n\t\tc[i]=3.7*a[i];\n\tif(b[i]>=82&&b[i]<=84)\n\t\tc[i]=3.3*a[i];\n\tif(b[i]>=78&&b[i]<=81)\n\t\tc[i]=3.0*a[i];\n\tif(b[i]>=75&&b[i]<=77)\n\t\tc[i]=2.7*a[i];\n\tif(b[i]>=72&&b[i]<=74)\n\t\tc[i]=2.3*a[i];\n\tif(b[i]>=68&&b[i]<=71)\n\t\tc[i]=2.0*a[i];\n\tif(b[i]>=64&&b[i]<=67)\n\t\tc[i]=1.5*a[i];\n\tif(b[i]>=60&&b[i]<=63)\n\t\tc[i]=1.0*a[i];\n\tif(b[i]<60)\n\t\tc[i]=0;\n\t}\n\tfor(i=0;i=90&&cj[i]<=100){\n\t\t\tgd[i]=4.0*xf[i];\n\t\t}\n\t\telse if(cj[i]>=85&&cj[i]<=89){\n\t\t\tgd[i]=3.7*xf[i];\n\t\t}\n\t\telse if(cj[i]>=82&&cj[i]<=84){\n\t\t\tgd[i]=3.3*xf[i];\n\t\t}\n\t\telse if(cj[i]>=78&&cj[i]<=81){\n\t\t\tgd[i]=3.0*xf[i];\n\t\t}\n\t\telse if(cj[i]>=75&&cj[i]<=77){\n\t\t\tgd[i]=2.7*xf[i];\n\t\t}\n\t\telse if(cj[i]>=72&&cj[i]<=74){\n\t\t\tgd[i]=2.3*xf[i];\n\t\t}\n\t\telse if(cj[i]>=68&&cj[i]<=71){\n\t\t\tgd[i]=2.0*xf[i];\n\t\t}\n\t\telse if(cj[i]>=64&&cj[i]<=67){\n\t\t\tgd[i]=1.5*xf[i];\n\t\t}\n\t\telse if(cj[i]>=60&&cj[i]<=63){\n\t\t\tgd[i]=1.0*xf[i];\n\t\t}\n\t\telse{\n\t\t\tgd[i]=0.0;\n\t\t}\n\t}\n\n\tfor(i=0;i=90)\n\t\t {\n\t\t jd[k]=4.0;\n\t\t }\n\t else if(fs[k]>=85)\n\t\t {\n\t\t jd[k]=3.7;\n\t\t }\n\t else if(fs[k]>=85)\n\t\t {\n\t\t jd[k]=3.7;\n\t\t }\n\t\t else if(fs[k]>=82)\n\t\t {\n\t\t jd[k]=3.3;\n\t\t }\n\t\t else if(fs[k]>=78)\n\t\t {\n\t\t jd[k]=3.0;\n\t\t }\n\t\t else if(fs[k]>=75)\n\t\t {\n\t\t jd[k]=2.7;\n\t\t }\n\t\t else if(fs[k]>=72)\n\t\t {\n\t\t jd[k]=2.3;\n\t\t }\n\t\t else if(fs[k]>=68)\n\t\t {\n\t\t jd[k]=2.0;\n\t\t }\n\t\t else if(fs[k]>=64)\n\t\t {\n\t\t jd[k]=1.5;\n\t\t }\n\t\t else if(fs[k]>=60)\n\t\t {\n\t\t jd[k]=1.0;\n\t\t }\n\t else\n\t\t {\n\t\t jd[k]=0;\n\t\t }\n\t }\n \n for(i=0;i=90&&df[i]<=100)\n\t\t{\n\t\t\tgd=4.0;\n\t\t}\n\t\tif(df[i]>=85&&df[i]<=89)\n\t\t{\n\t\t\tgd=3.7;\n\t\t}\n\t\tif(df[i]>=82&&df[i]<=84)\n\t\t{\n\t\t\tgd=3.3;\n\t\t}\n\t\tif(df[i]>=78&&df[i]<=81)\n\t\t{\n\t\t\tgd=3.0;\n\t\t}\n\t\tif(df[i]>=75&&df[i]<=77)\n\t\t{\n\t\t\tgd=2.7;\n\t\t}\n\t\tif(df[i]>=72&&df[i]<=74)\n\t\t{\n\t\t\tgd=2.3;\n\t\t}\n\t\tif(df[i]>=68&&df[i]<=71)\n\t\t{\n\t\t\tgd=2.0;\n\t\t}\n\t\tif(df[i]>=64&&df[i]<=67)\n\t\t{\n\t\t\tgd=1.5;\n\t\t}\n\t\tif(df[i]>=60&&df[i]<=63)\n\t\t{\n\t\t\tgd=1.0;\n\t\t}\n\t\tif(df[i]<60)\n\t\t{\n\t\t\tgd=0;\n\t\t}\n\t\tsum2+=gd*sz[i];\n\t}\n\tGPA=sum2/sum1;\n\tprintf(\"%.2f\",GPA);\n\treturn 0;\n}"} +{"label": "83", "index": "41479", "code": "void main()\n{\n\tint i,n,m=0,score;\n\tfloat sum=0,a[2][9],GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%f\",&(a[0][i]));\n\t\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&score);\n\t\tif(score>=90)a[1][i]=4.0;\n\t\telse if(score>=85)a[1][i]=3.7;\n\t\telse if(score>=82)a[1][i]=3.3;\n\t\telse if(score>=78)a[1][i]=3.0;\n\t\telse if(score>=75)a[1][i]=2.7;\n\t\telse if(score>=72)a[1][i]=2.3;\n\t\telse if(score>=68)a[1][i]=2.0;\n\t\telse if(score>=64)a[1][i]=1.5;\n\t\telse if(score>=60)a[1][i]=1.0;\n\t\telse a[1][i]=0;\n\t}\n\t\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tsum=a[0][i]*a[1][i]+sum;\n\t\tm=m+a[0][i];\n\t}\n\tGPA=sum/m;\n\tprintf(\"%.2f\\n\",GPA);\t\n}"} +{"label": "83", "index": "41480", "code": "void main()\n{\n\tint i,n,b[10];\n\tfloat f=0,a[10],t=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90) f=f+4.0*a[i];\n\t\telse if(b[i]>=85) f=f+3.7*a[i];\n\t\telse if(b[i]>=82) f=f+3.3*a[i];\n\t\telse if(b[i]>=78) f=f+3.0*a[i];\n\t\telse if(b[i]>=75) f=f+2.7*a[i];\n\t\telse if(b[i]>=72) f=f+2.3*a[i];\n\t\telse if(b[i]>=68) f=f+2.0*a[i];\n\t\telse if(b[i]>=64) f=f+1.5*a[i];\n\t\telse if(b[i]>=60) f=f+1.0*a[i];\n\t}\n\tfor(i=0;i=90){\n\t\tresult=4.0;\n\t}\n\telse if(a>=85&&a<=89){\n\t\tresult=3.7;\n\t}\n\telse if(a>=82&&a<=84){\n\t\tresult=3.3;\n\t}\n\telse if(a>=78&&a<=81){\n\t\tresult=3.0;\n\t}\n\telse if(a>=75&&a<=77){\n\t\tresult=2.7;\n\t}\n\telse if(a>=72&&a<=74){\n\t\tresult=2.3;\n\t}\n\telse if(a>=68&&a<=71){\n\t\tresult=2.0;\n\t}\n\telse if(a>=64&&a<=67){\n\t\tresult=1.5;\n\t}\n\telse if(a>=60&&a<=63){\n\t\tresult=1.0;\n\t}\n\telse {\n\t\tresult=0;\n\t}\n\treturn result;\n}\nint main()\n{\n\tint n,i;\n\tint sz1[50],sz2[50];\n\tdouble sz3[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&b[i]<=100)c[i]=4.0;\n if(b[i]>=85&&b[i]<=89)c[i]=3.7;\n if(b[i]>=82&&b[i]<=84)c[i]=3.3;\n if(b[i]>=78&&b[i]<=81)c[i]=3.0;\n if(b[i]>=75&&b[i]<=77)c[i]=2.7;\n if(b[i]>=72&&b[i]<=74)c[i]=2.3;\n if(b[i]>=68&&b[i]<=71)c[i]=2.0;\n if(b[i]>=64&&b[i]<=67)c[i]=1.5;\n if(b[i]>=60&&b[i]<=63)c[i]=1.0;\n\t\tif(b[i]<60)c[i]=0;\n\t}\n for(i=0;i=90){\n e=c[k]*4.0;\n}\n if(b[k]<=89&&b[k]>=85){\n e=c[k]*3.7;\n}\n if(b[k]<=84&&b[k]>=82){\n e=c[k]*3.3;\n}\n if(b[k]<=81&&b[k]>=78){\n e=c[k]*3.0;\n}\n if(b[k]<=77&&b[k]>=75){\n e=c[k]*2.7;\n}\n if(b[k]<=74&&b[k]>=72){\n e=c[k]*2.3;\n}\n if(b[k]<=71&&b[k]>=68){\n e=c[k]*2.0;\n}\n if(b[k]<=67&&b[k]>=64){\n e=c[k]*1.5;\n}\n if(b[k]<=63&&b[k]>=60){\n e=c[k]*1.0;\n}\n if(b[k]<60){\n e=0;\n}\n d=d+e;\n}\n g=d/a; \n printf(\"%.2f\",g);\n return 0;\n}"} +{"label": "83", "index": "41484", "code": "\nvoid main(){\nint xf[10],n,s,i;\ndouble gpa;\ndouble sumxuefen,sumxuefenjidian;\nsumxuefen=0;\nsumxuefenjidian=0;\ngpa=0;\nscanf(\"%d\",&n);\nfor(i=0;i=90&&s<=100)sumxuefenjidian+=4*xf[i];\nif(s>=85&&s<=89)sumxuefenjidian+=3.7*xf[i];\nif(s>=82&&s<=84)sumxuefenjidian+=3.3*xf[i];\nif(s>=78&&s<=81)sumxuefenjidian+=3.0*xf[i];\nif(s>=75&&s<=77)sumxuefenjidian+=2.7*xf[i];\nif(s>=72&&s<=74)sumxuefenjidian+=2.3*xf[i];\nif(s>=68&&s<=71)sumxuefenjidian+=2.0*xf[i];\nif(s>=64&&s<=67)sumxuefenjidian+=1.5*xf[i];\nif(s>=60&&s<=63)sumxuefenjidian+=1.0*xf[i];\nif(s<=59)sumxuefenjidian+=0*xf[i];\n}\ngpa=sumxuefenjidian/sumxuefen;\nprintf(\"%.2lf\",gpa);\n}"} +{"label": "83", "index": "41485", "code": "int main(){\n int n,a=0;\n scanf(\"%d\\n\",&n);\n int xf[n-1],cj[n-1];\n double jd[n-1],GPA,z=0;\n for(int i=0;i=90){\n jd[i]=4.0;\n }else{\n if(cj[i]<=89&&cj[i]>=85){\n jd[i]=3.7;\n }else{\n if(cj[i]<=84&&cj[i]>=82){\n jd[i]=3.3;\n }else{\n if(cj[i]<=81&&cj[i]>=78){\n jd[i]=3.0;\n }else{\n if(cj[i]<=77&&cj[i]>=75){\n jd[i]=2.7;\n }else{\n if(cj[i]<=74&&cj[i]>=72){\n jd[i]=2.3;\n }else{\n if(cj[i]<=71&&cj[i]>=68){\n jd[i]=2.0;\n }else{\n if(cj[i]<=67&&cj[i]>=64){\n jd[i]=1.5;\n }else{\n if(cj[i]<=63&&cj[i]>=60){\n jd[i]=1.0;\n }else{\n jd[i]=0.0; \n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n for(int i=0;i=90)b[i]=4.0;\n else{\n if(b[i]>=85)b[i]=3.7;\n else{\n if(b[i]>=82)b[i]=3.3;\n else{\n if(b[i]>=78)b[i]=3.0;\n else{\n if(b[i]>=75)b[i]=2.7;\n else{\n if(b[i]>=72)b[i]=2.3;\n else{\n if(b[i]>=68)b[i]=2.0;\n else{\n if(b[i]>=64)b[i]=1.5;\n else{\n if(b[i]>=60)b[i]=1.0;\n else b[i]=0;\n }\n }\n }\n }\n }\n }\n }\n }\n b[i]=b[i]*a[i];\n l+=b[i];\n }\n m=l/s;\n printf(\"%.2lf\",m);\n return 0;\n}\n"} +{"label": "83", "index": "41487", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int xf[100],cj[100];\n double jd[100];\n int i;\n for(i=0;i=90){jd[i]=4.0*xf[i];}\n else if(cj[i]<=89&&cj[i]>=85){jd[i]=3.7*xf[i];}\n else if(cj[i]<=84&&cj[i]>=82){jd[i]=3.3*xf[i];}\n else if(cj[i]<=81&&cj[i]>=78){jd[i]=3.0*xf[i];}\n else if(cj[i]<=77&&cj[i]>=75){jd[i]=2.7*xf[i];}\n else if(cj[i]<=74&&cj[i]>=72){jd[i]=2.3*xf[i];}\n else if(cj[i]<=71&&cj[i]>=68){jd[i]=2.0*xf[i];}\n else if(cj[i]<=67&&cj[i]>=64){jd[i]=1.5*xf[i];}\n else if(cj[i]<=63&&cj[i]>=60){jd[i]=1.0*xf[i];}\n else if(cj[i]<=60){jd[i]=0;}\n }\n double z=0;\n for(i=0;i=90)\n mm[i]=4.0;\n else{\n if(xy[i]>=85)\n mm[i]=3.7;\n else{\n if(xy[i]>=82)\n mm[i]=3.3;\n else{\n if(xy[i]>=78)\n mm[i]=3.0;\n else{\n if(xy[i]>=75)\n mm[i]=2.7;\n else{\n if(xy[i]>=72)\n mm[i]=2.3;\n else{\n if(xy[i]>=68)\n mm[i]=2.0;\n else{\n if(xy[i]>=64)\n mm[i]=1.5;\n else{\n if(xy[i]>=60)\n mm[i]=1.0;\n else{\n mm[i]=0.0;}}}}}}}}}\n }\n for(i=0;i=90&&x<=100) return 4.0; \nelse if(x>=85&&x<=89) return 3.7; \nelse if(x>=82&&x<=84) return 3.3; \nelse if(x>=78&&x<=81) return 3.0; \nelse if(x>=75&&x<=77) return 2.7; \nelse if(x>=72&&x<=74) return 2.3; \nelse if(x>=68&&x<=71) return 2.0; \nelse if(x>=64&&x<=67) return 1.5; \nelse if(x>=60&&x<=63) return 1.0; \nelse return 0; \n}\nint main()\n{\n\tint i,n,xuefen[10],fenshu[10],sum1=0;\n\tfloat sum2=0,GPA;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){\n\t\t\tjidian[i]=4.0;\n\t\t}else if(chengji[i]>=85){\n\t\t\tjidian[i]=3.7;\n\t\t}else if(chengji[i]>=82){\n\t\t\tjidian[i]=3.3;\n\t\t}else if(chengji[i]>=78){\n\t\t\tjidian[i]=3.0;\n\t\t}else if(chengji[i]>=75){\n\t\t\tjidian[i]=2.7;\n\t\t}else if(chengji[i]>=72){\n\t\t\tjidian[i]=2.3;\n\t\t}else if(chengji[i]>=68){\n\t\t\tjidian[i]=2.0;\n\t\t}else if(chengji[i]>=64){\n\t\t\tjidian[i]=1.5;\n\t\t}else if(chengji[i]>=60){\n\t\t\tjidian[i]=1.0;\n\t\t}else {\n\t\t\tjidian[i]=0;\n\t\t}\n\t\txfjd[i]=jidian[i]*xuefen[i];\n\t}\n\tzxuefen=0;\n\tzxfjd=0;\n\tfor(i=0;i=60&&fenshu[e]<=63)f=1;\n else if(fenshu[e]>=64&&fenshu[e]<=67)f=1.5;\n else if(fenshu[e]>=68&&fenshu[e]<=71)f=2;\n else if(fenshu[e]>=72&&fenshu[e]<=74)f=2.3;\n else if(fenshu[e]>=75&&fenshu[e]<=77)f=2.7;\n else if(fenshu[e]>=78&&fenshu[e]<=81)f=3;\n else if(fenshu[e]>=82&&fenshu[e]<=84)f=3.3;\n else if(fenshu[e]>=85&&fenshu[e]<=89)f=3.7;\n else if(fenshu[e]>=90&&fenshu[e]<=100)f=4;\n g=g+f*xuefen[e];\n }\n int i;float h;\n for(i=0;i=90)\n\t\t{c=4.0;\n\t\td+=t*c;continue;}\n\t\telse if(x<90&&x>=85)\n\t\t{c=3.7;\n\t\td+=t*c;continue;}\n\t\telse if(x<85&&x>=82)\n\t\t{c=3.3;\n\t\td+=t*c;continue;}\n\t\telse if(x<82&&x>=78)\n\t\t{c=3.0;\n\t\td+=t*c;continue;}\n\t\telse if(x<78&&x>=75)\n\t\t{c=2.7;\n\t\td+=t*c;continue;}\n\t\telse if(x<75&&x>=72)\n\t\t{c=2.3;\n\t\td+=t*c;continue;}\n\t\telse if(x<72&&x>=68)\n\t\t{c=2.0;\n\t\td+=t*c;continue;}\n\t\telse if(x<68&&x>=64)\n\t\t{c=1.5;\n\t\td+=t*c;continue;}\n\t\telse if(x<64&&x>=60)\n\t\t{c=1.0;\n\t\td+=t*c;continue;}\n\t\telse \n\t\td+=0;\n\t}\n\tsum1=0;\n for(i=0;i=90&&cj[1][e]<=100){\n\t\t\tcj[1][e]=4.0;\n\t\t}\n\t\telse if(cj[1][e]>=85&&cj[1][e]<=89){\n\t\t\tcj[1][e]=3.7;\n\t\t}\n\t\telse if(cj[1][e]>=82&&cj[1][e]<=84){\n\t\t\tcj[1][e]=3.3;\n\t\t}\n else if(cj[1][e]>=78&&cj[1][e]<=81){\n\t\t\tcj[1][e]=3.0;\n\t\t}\n else if(cj[1][e]>=75&&cj[1][e]<=77){\n\t\t\tcj[1][e]=2.7;\n\t\t}\n else if(cj[1][e]>=72&&cj[1][e]<=74){\n\t\t\tcj[1][e]=2.3;\n\t\t}\n else if(cj[1][e]>=68&&cj[1][e]<=71){\n\t\t\tcj[1][e]=2.0;\n\t\t}\n else if(cj[1][e]>=64&&cj[1][e]<=67){\n\t\t\tcj[1][e]=1.5;\n\t\t}\n else if(cj[1][e]>=60&&cj[1][e]<=63){\n\t\t\tcj[1][e]=1.0;\n\t\t}\n\t\telse if(cj[1][e]<60){\n\t\t\tcj[1][e]=0;\n\t\t}\n\t\ts=s+cj[0][e]*cj[1][e];\n\t\ta=a+cj[0][e];\n\t}\n\ts=s/a;\n\tprintf(\"%.2lf\",s);\n\treturn 0;\n}\n"} +{"label": "83", "index": "41497", "code": "int main(){\n int n,i,s=0;\n\tfloat t,p=0,q;\n\tint a[10];\n\tint sz[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90){ \n\t\t\t t=4.0;\t\t\t\t\n\t }\n\t if(sz[m]<=89&&sz[m]>=85)\t{\t\n\t\t\t\tt=3.7;\t\t\t\t\n\t }\t\t\t\t\n\t if(sz[m]<=84&&sz[m]>=82){\n\t\t\t\tt=3.3;\t\t\t\n\t }\n\t if(sz[m]<=81&&sz[m]>=78){\n\t\t\t\tt=3.0;\t\t\t\t\n\t }\n\t if(sz[m]<=77&&sz[m]>=75){\n\t\t\t\tt=2.7;\t\t\t\n\t }\n\t if(sz[m]<=74&&sz[m]>=72){\n\t\t\t\tt=2.3;\t\t\t\t\n\t }\n if(sz[m]<=71&&sz[m]>=68){\n\t\t\t\tt=2.0;\t\t\t\n\t }\n if(sz[m]<=67&&sz[m]>=64){\n\t\t\t\tt=1.5;\t\t\t\t\n\t }\n if(sz[m]<=63&&sz[m]>=60){\n\t\t\t\tt=1.0;\t\t\t\t\n\t }\n\t if(sz[m]<=59){\t\t\t\t\n\t\t\t\tt=0;\t\t\t\t\n\t }\n p=p+t*a[i];\n\t}\nq=p/s;\n\tprintf(\"%.2f\",q);\n\treturn 0;\n}"} +{"label": "83", "index": "41498", "code": "int main(){\nint n,i,b,c=0,d;\nfloat x,e=0;\nfloat a[10];\nscanf(\"%d\",&n);\nfor(i=0;i<=n-1;i++){\n\tscanf(\"%d\",&b);\n\ta[i]=b;\n c=c+b;\n}\nfor(i=0;i<=n-1;i++){\n\tscanf(\"%d\",&d);\n\tif(d<=100&&d>=90){\n\t\te=e+4.0*a[i];\n\t}\n if(d<=89&&d>=85){\n\t\te=e+3.7*a[i];\n\t}\n if(d<=84&&d>=82){\n\t\te=e+3.3*a[i];\n\t}\n if(d<=81&&d>=78){\n\t\te=e+3.0*a[i];\n\t}\n if(d<=77&&d>=75){\n\t\te=e+2.7*a[i];\n\t}\n if(d<=74&&d>=72){\n\t\te=e+2.3*a[i];\n\t}\n if(d<=71&&d>=68){\n\t\te=e+2.0*a[i];\n\t}\n if(d<=67&&d>=64){\n\t\te=e+1.5*a[i];\n\t}\n if(d<=63&&d>=60){\n\t\te=e+1.0*a[i];\n\t}\n }\nx=e/c;\nprintf(\"%.2f\",x);\nreturn 0;\n}"} +{"label": "83", "index": "41499", "code": "int main(){\n\tint n,i,xf[10],df[10],zxf;\n\tfloat GPA,jd[10],xfjd[10],zxfjd;\n\tzxfjd=0;\n\tzxf=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=90&&df[i]<100){\n\t\t\tjd[i]=4.0;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=85&&df[i]<=89){\n\t\t\tjd[i]=3.7;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=82&&df[i]<=84){\n\t\t\tjd[i]=3.3;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=78&&df[i]<=81){\n\t\t\tjd[i]=3.0;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=75&&df[i]<=77){\n\t\t\tjd[i]=2.7;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=72&&df[i]<=74){\n\t\t\tjd[i]=2.3;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=68&&df[i]<=71){\n\t\t\tjd[i]=2.0;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=64&&df[i]<=67){\n\t\t\tjd[i]=1.5;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]>=60&&df[i]<=63){\n\t\t\tjd[i]=1.0;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\tif(df[i]<60){\n\t\t\tjd[i]=0;\n\t\t\txfjd[i]=xf[i]*jd[i];\n\t\t}\n\t\t\n\t}\n\tfor(i=0;ik)\n\t\t{\n\t\t\tk=a[i];\n\t\t}\n\t}\n\tfor(i=0;ib&&a[i]!=k)\n\t\t{\n\t\t\tb=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",k,b);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41501", "code": "int main()\n{\n\tint n,i,a,max=0,max2=0;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&a);\n\tmax=a,max2=a;\n\tfor(i=2;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a);\n\t\tif(a>max)\n\t\t{\n\t\t\tmax=a;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a>max2)\n\t\t\t{\n\t\t\t\tmax2=a;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",max,max2);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41502", "code": "void main()\n{\n\tint sz[100],n,max1,max2,i;\n\t\tscanf(\"%d\",&n);\n\t\tmax1=sz[0];\n\t\tmax2=sz[1];\n\t\tfor(i=0;isz[i]&&max2m1){\n\t\t\tm1=zzz[i];\n\t\t}\n\t}\n\tfor(i=0;im2){\n\t\t\tm2=zzz[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",m1,m2);\n\treturn 0;\n}"} +{"label": "84", "index": "41504", "code": "int main()\n{\n\tint i,k,n[100],max,max2;\n\tcin>>k;\n\tfor(i=0;i>n[i];\n\ti=0;\n\tmax=0;\n\tmax2=0;\n\tdo\n\t{\n\t\tif(n[i]>max)max=n[i];\n\t\ti++;\n\t}while(im)\n\t\t\tm=a[i];\n\t}\n\tprintf(\"%d\\n\",m);\n for(i=1;i<=n;i++)\n\t{\n\t\tif(a[i]k&&a[i]=3){\n for(i=3;i<=n;i++){\n\t\t scanf(\"%d\",&c);\n\t\t if(c>=a||c>=b){\n\t\t\t if(a>=b){\n\t\t\t\t b=c;\n\t\t\t }\n\t\t\t else{\n\t\t\t\t a=c;\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t continue;\n\t\t }\n\t\t}\n\t\tif(a>=b){\n\t\t\tprintf(\"%d\\n%d\",a,b);\n\t\t}\n\t\telse{\n\t\t\tprintf(\"%d\\n%d\",b,a);\n\t\t}\t \n\t}\n else{\n\t\tprintf(\"%d\\n%d\",a,b);\n\t}\n\treturn 0;\n}\n"} +{"label": "84", "index": "41507", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint p[100];\n\tint i;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&p[i]);\n\t}\n\tint max,max2;\n\tmax=0;\n\tmax2=0;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tif (p[i]>max)\n\t\t{\n\t\t\tmax2=max;\n\t\t\t max=p[i];\n\t\t}\n\t\telse if (p[i]>max2)\n\t\t{\n\t\t\tmax2=p[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",max,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41508", "code": "int main()\n{\n int a,max,cmax;\n int i;\n int num[n];\n max=0;\n cmax=0;\n scanf(\"%d\",&a);\n for(i=0;imax)\n {\n max=num[i];\n }\n }\n for(i=0;icmax && num[i]sz[i+1]){\n\t\tt=sz[i];sz[i]=sz[i+1];sz[i+1]=t;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n%d\\n\",sz[99],sz[98]);\n\treturn 0;\n}"} +{"label": "84", "index": "41510", "code": "int main(){\n\tint e,n,i,sz[100];\n\tscanf(\"%d\\n\",&n);\n\ti=1;\n\twhile(i<=n){\n\t\tscanf(\"%d\",&sz[i]);\n\t\ti++;\n\t}\n\tfor(int k=1;k<=n;k++){\n\t\tfor(i=1;i<=k;i++){\n\t\t\tif(sz[i]>sz[i+1]){\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",sz[n],sz[n-1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41511", "code": "int main()\n{\n\tint a[100];\n\tint n,i,j,m,max;\n\tscanf(\"%d\",&n);\n\tfor (i=0;ia[j]){\n\t\t\t\tm=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=m;\n\t\t\t}\n\t\t}\n\t}\n\t\tprintf(\"%d\\n\",a[0]);\n\t\tprintf(\"%d\\n\",a[1]);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41512", "code": "int main()\n{\n\tint i,k,n[100],max,max2;\n\tcin>>k;\n\tfor(i=0;i>n[i];\n\ti=0;\n\tmax=0;\n\tmax2=0;\n\tdo\n\t{\n\t\tif(n[i]>max)max=n[i];\n\t\ti++;\n\t}while(ib) place1=1;\n\telse place1=2;\n\tswitch(place1)\n\t{case 1: max1=a;\n\t max2=b;\n\t\t\tbreak;\n case 2: max1=b;\n\t\t max2=a;\n\t\t\tbreak;}\n\tn=n-2;\n while(n--)\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tif(c<=max2) place2=1;\n\t\telse if (cfirst)\n\t\t {second=first;\n\t\t first=tmp;\n\t\t }\n\t\t else if (tmp>second)\n\t\t { second=tmp;\n\t\t }\n\t\t}while (i!=n);\n\t\t\n\t\n\n\n\nprintf(\"%d\\n%d\",first,second);\nreturn 0;\n}"} +{"label": "84", "index": "41518", "code": "\nint main()\n{\n\tint n;\n\tint a[100],c[100];\n\tint i,b;\n\tint x=0;\n\tint y=0;\n\n\tscanf (\"%d\", &n);\n\tfor (i=0; ix) {\n\t\t\tx=b;\n\t\t}\n\t}\n\tfor (i=0; iy) {\n\t\t\ty=b;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",x);\n\tprintf(\"%d\\n\",y);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41519", "code": "int main()\n{\n\tint max1,max2,n,num;\n\tint i=1;\n\tscanf(\"%d\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&num);\n\t\tif(i==1){\n max1=num;\n\t\t }\n\t\tif(i==2){\n\t\t\tif(max1>num){\n\t\t\t\tmax1=max1;\n\t\t\t\tmax2=num;\n\t\t\t}else{ \n\t\t\t\tmax2=max1;\n\t\t\t\tmax1=num;\n\t\t\t}\n\t\t}else{\n\t\t\t if((max2>num)){\n\t\t \tmax1=max1;\n\t\t\t max2=max2;\n\t\t\t\t}\n\t\t\t if((max2<=num)&&(max1>=num)){\n\t\t\t\tmax1=max1;\n\t\t\t\tmax2=num;\n }\n\t\t\t\tif(max1<=num){\n\t\t\t\t\tmax2=max1;\n\t\t\t\t\tmax1=num;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n\",max1);\n\tprintf(\"%d\\n\",max2);\nreturn 0;\n}\n"} +{"label": "84", "index": "41520", "code": "\nint main()\n{\n\tint n,m,i=0,k1=0,k2=0;\n\tscanf(\"%d\",&n);\n\tdo{\n\t\tscanf(\"%d\",&m);\n i++;\n\t\tif(m>k1){\n\t\t\tk2=k1,k1=m;\n\t\t}\n\t\telse if(mk2){\n\t\t\tk2=m;\n\t\t}\n\n\t}while(i=a){\n\t\tb=a;\n a=c;\n\t}else if(c>=b){\n\t\tb=c;\n\t}\n}\nprintf(\"%d\\n%d\\n\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41522", "code": "int main()\n{\nint x,y,i,a,b,n,o;\nscanf(\"%d\\n%d\\n%d\\n\",&n,&x,&y);\nif(y>x)\n{\na=x;\nx=y;\ny=a;\n}\ni=1;\nwhile(i<=n-2)\n{\nscanf(\"%d\\n\",&b);\nif(b>x)\n{\no=x;\nx=b;\ny=o;\n}\nif(by)\n{\ny=b;\n}\ni=i+1;\n}\nprintf(\"%d\\n%d\\n\",x,y);\nreturn 0;\n}"} +{"label": "84", "index": "41523", "code": "\nint cmp(const void *a1, const void *a2)\t{\n\tint *p1 = (int *)a1;\n\tint *p2 = (int *)a2;\n\treturn *p2 - *p1;\n};\n\nint main()\t{\n\n\tint n;\n\tint m[101];\n\tscanf(\"%d\", &n);\n\tint i;\n\tfor(i = 0; i < n; ++i)\t{\n\t\tscanf(\"%d\", &m[i]);\n\t}\n\tqsort(m, n, sizeof(m[0]), cmp);\n\tprintf(\"%d\\n%d\\n\", m[0], m[1]);\n\treturn 0;\n};"} +{"label": "84", "index": "41524", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\tfor (int i=0;i sz[maxIndex]){\n\t\t\t\t\tmaxIndex = i;\n\t\t\t}\n\t}\t\n\tif(maxIndex != n-k){\n\t\te = sz[maxIndex];\n\t\tsz[maxIndex] = sz[n-k];\n\t\tsz[n-k] = e;\n\t}\n}\n printf(\"%d\\n\",sz[n-1]);\n\t\tprintf(\"%d\\n\",sz[n-2]);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41525", "code": "\nint main()\n{\n\tint n = 0;\n\tint maxNum = 0;\n\tint secMax = 0;\n\tint temp = 0;\n\n\tscanf(\"%d\", &n);\t\n\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\", &temp);\n\t\tif (temp > maxNum)\n\t\t{\n\t\t\tsecMax = maxNum;\n\t\t\tmaxNum = temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (temp > secMax)\n\t\t\t{\n\t\t\t\tsecMax = temp;\n\t\t\t}\n\t\t}\n\t}\n\n\tprintf(\"%d\\n%d\\n\", maxNum, secMax);\n}"} +{"label": "84", "index": "41526", "code": " int main(){\n int a, b, c, n;\n scanf(\"%d\", &n);\n int i;\n for(i=1;i<=n;i++){\n if(i==1){ \n scanf(\"%d\", &a);\n}else if(i==2){\n scanf(\"%d\", &b);\n}else{\n scanf(\"%d\", &c);\n}\n if(a>=b && a>=c && b>=c){\n a = a;\n b = b;\n}else if(a>=b && a>=c && c>=b){\n a = a;\n b = c;\n }else if(b>=a && b>=c && a>=c){\n c = a;\n a = b;\n b = c;\n }else if(b>=a && b>=c && c>=a){\n a = b;\n b = c;\n }else if(c>=a && c>=b && a>=b){\n b = a;\n a = c;\n }else if(c>=a && c>=b && b>=a){\n a = c;\n b = b;\n }\n}\nprintf(\"%d\\n%d\\n\", a, b);\nreturn 0;\n}"} +{"label": "84", "index": "41527", "code": "int main()\n{\n\tint m[100],i,j,x,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;j--)\n\t\t{\n\t\t\tif(m[j]>m[j-1])\n\t\t\t{\n\t\t\t\tx=m[j];\n\t\t\t\tm[j]=m[j-1];\n\t\t\t\tm[j-1]=x;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",m[0]);\n\tprintf(\"%d\\n\",m[1]);\n\treturn 0;\n\n}"} +{"label": "84", "index": "41528", "code": "\nint main()\n{\n\tint a, b, max1, max2;\n\tint n, i, temp;\n\tscanf(\"%d %d %d\", &n, &a, &b);\n\tif(a>b)\n\t{\n\t\tmax1=a;\n\t\tmax2=b;\n\t}\n\telse\n\t{\n\t\tmax1=b;\n\t\tmax2=a;\n\t}\n\tfor(i=0; imax1)\n\t\t{\n\t\t\tmax2=max1;\n\t\t\tmax1=temp;\n\t\t}\n\t\telse if(temp>max2)\n\t\t{\n\t\t\tmax1=max1;\n\t\t\tmax2=temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t max1=max1;\n\t\t max2=max2;\t \n\t\t}\n\t}\n\tprintf(\"%d\\n%d\", max1, max2);\n\treturn 0;\n}\n\t\n"} +{"label": "84", "index": "41529", "code": "\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint max, lmax;\n\tint temp;\n\tint i = 0;\n\tif (n <= 1 || n >= 100)\n\treturn 0;\n\n\n\tscanf(\"%d\", &temp);\n\t\tmax = temp;\n\tscanf(\"%d\", &temp);\n\tif (temp > max)\n\t{\n\t\tlmax = max;\n\t\tmax = temp;\n\t}\n\telse\n\t\tlmax = temp;\n\n\ti += 2;\n\n\twhile (i < n)\n\t{\n\t\tscanf(\"%d\", &temp);\n\t\ti++;\n\t\tif(temp > max)\n\t\t{\n\t\t\tlmax = max;\n\t\t\tmax = temp;\n\t\t}\n\t\telse if (temp > lmax) {\n\t\t\tlmax = temp;\n\t\t}\n\t}\n\tprintf(\"%d\\n\", max);\n\tprintf(\"%d\\n\", lmax);\n\treturn 0;\n}"} +{"label": "84", "index": "41530", "code": "\nint main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tint i;\n\tfor(i=0;i<(n-2);i++)\n\t{\n\t\tint k;\n\t\tscanf(\"%d\",&k);\n\t\tif(k>a)\n\t\t{\n\t\t\tb=a;\n\t\t\ta=k;\n\t\t}\n\t\telse if(k>b)\n\t\t{\n\t\t\tb=k;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n\treturn 0;\n}"} +{"label": "84", "index": "41531", "code": "void main()\n{\nint a[100],n,i,j,t;\nscanf(\"%d\",&n);\nfor(i=0;isz[1]){\n\ta=sz[0];\n\tb=sz[1];\n}else{a=sz[1];b=sz[0];\n}\nfor(i=2;ia){\n\t\tb=a;\n\t\ta=sz[i];\n\t}else{\n\t\tif(sz[i]>b){\n\t\t\tb=sz[i];\n}}}\n\tprintf(\"%d\\n%d\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41533", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,a;\n\tint i=0;\n\tint x=0;\n\tint y=0;\n\tscanf(\"%d\",&n);\n\tdo{\n\t\tscanf(\"%d\",&a);\n\t\tif (a>x){\n\t\t\ty=x;\n\t\t\tx=a;\n\t\t}\n\t\telse if(a>y){\n\t\t\ty=a;\n\t\t}\n\t\ti++;\n\t}while(ia)\n\t\tb=a,\n\t\ta=c;\n\t \n\telse if(c=b)\n\t\tb=c;\nelse if(c=a)\nc=a;\n\t}\n\nprintf(\"%d\\n\",a);\nprintf(\"%d\\n\",b);\nreturn 0;\n}\n"} +{"label": "84", "index": "41537", "code": "int main(){\nint n,u[100],i;\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++){ scanf(\"%d\",&u[i]);\n}\nint s=0,m=0;\nfor(i=1;i<=n;i++){\nwhile(s1&&nsz[i+1])\n\t {e=sz[i];\n\t sz[i]=sz[i+1];\n\t sz[i+1]=e;}\n\t }\n\t int f;\n\t for(i=0;isz[i+1])\n\t {f=sz[i];\n\t sz[i]=sz[i+1];\n\t sz[i+1]=f;}\n\t }\n\t}\n printf(\"%d\\n%d\",sz[n-1],sz[n-2]);\n\t return 0; \n}"} +{"label": "84", "index": "41539", "code": "int main()\n{\n\tint a,b,c,i,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=a)\n\t\t\t{\n\t\t\t\ta=c;\n\t\t\t\tb=b;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ta=a;\n\t\t\t\tb=c;\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(c>=a)\n\t\t\t{\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t}\n\t \telse if(c<=b)\n\t\t\t{\n\t\t\t\ta=a;\n\t\t\t\tb=b;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ta=a;\n\t\t\t\tb=c;\n\t\t\t}\n\t\t}\n\t}\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n\t\treturn 0;\n}"} +{"label": "84", "index": "41540", "code": "int main()\n{\n int a[100];\n int max=0;\n int second=0;\n int i,n;\n scanf(\"%d\\n\",&n);\n for(i=1;i<=n;i++)\n {\n scanf(\"%d\\n\",&a[i]);\n if(maxa[i])&&(a[i]>second))\n {\n second=a[i];\n max=max;\n }\n }\n printf(\"%d\\n%d\\n\",max,second);\n return 0;\n}"} +{"label": "84", "index": "41541", "code": "int main()\n{\n\tint n, i, k, a[101], zd=0, zdbh, cd=0;\n\tscanf(\"%d\", &n);\n\tfor(i=0;izd)\n\t\t{\n\t\t\tzd=a[i];\n\t\t\tzdbh=i;\n\t\t}\n\t}\n\tprintf(\"%d\\n\", zd);\n\ta[zdbh]=0;\n\tfor(i=0;icd)\n\t\t{\n\t\t\tcd=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\", cd);\n\treturn 0;\n}\n\n\n"} +{"label": "84", "index": "41542", "code": "\nvoid px(int S[],int n)\n{\n\tint i,j,t;\n\tfor(i=0;ii;j--)\n\t\t{\n\t\t\tif (S[j]>S[j-1])\n\t\t\t{\n\t\t\t\tt=S[j-1];\n\t\t\t\tS[j-1]=S[j];\n\t\t\t\tS[j]=t;\n\t\t\t}\n\t\t}\n\t}\n}\n\n\nint main(int argc, char* argv[])\n{\n\tint S[A],n,k,p;\n\tscanf(\"%d\",&n);\n\tfor (p=0;p=w){\n\t\t q=w;\n\t\t w=b;\n\t }else{\n\t\t if(b=q){\n\t\t\t w=w;\n\t\t\t q=b;\n\t\t }\n\t }\n\t i++;\n }\n printf(\"%d\\n%d\\n\",w,q);\n return 0;\n}"} +{"label": "84", "index": "41545", "code": "void main()\n{\n\tint a[100],n,x,y,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax) \n\t\t{\n\t\t\tbig=max;\n\n\t\t\tmax=a[i];\n\n\t\t};\n\t\n\t\t\t\n\t}\n\tprintf(\"%d\\n\",max);\n\tprintf(\"%d\",big);\n\n\n\n\t\n\t\n\n\n\n\treturn 0;\n}"} +{"label": "84", "index": "41547", "code": "\nint main()\n{\n\tint n,i,j,u,max=0,max2=0;\n\tscanf(\"%d\",&n);\n\tint a[n];\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",&a[i]);\n for(j=1;j<=n;j++)\n\t\tif(maxa[u-1]) max2=a[u-1];\n else max2=max2;\n\n printf(\"%d\\n\",max);\n printf(\"%d\\n\",max2);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41548", "code": "void main()\n{\n int n,i,j,k;\n\tint c[100];\n\tn=0;k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ij;i--)\n\t\t{\n\t\t\tif(c[i-1]a[i+1])\n\t\t\t{\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t\t\tprintf(\"%d\",a[n-1]);\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%d\",a[n-2]);\n}\n\n"} +{"label": "84", "index": "41550", "code": "int main(){\n \n \n int a,b,c,d,e,f,g;\n \n \n scanf(\"%d\\n\",&a);\n if(a==2){\n scanf(\"%d\\n\",&e);\n scanf(\"%d\",&f);\n if(e>f){\n c=e;\n d=f;\n }else{\n c=f;\n d=e; \n }\n }else{\n scanf(\"%d\\n\",&e);\n scanf(\"%d\\n\",&f);\n if(e>f){\n c=e;\n d=f;\n }else{\n c=f;\n d=e; \n } \n b=1;\n while(b<(a-2)){\n b=b+1;\n scanf(\"%d\\n\",&g);\n if(c<=g){\n d=c;\n c=g;\n \n }else{\n if(d<=g){\n d=g;\n }\n }\n }\n \n scanf(\"%d\",&g) ; \n if(c<=g){\n d=c;\n c=g;\n \n }else{\n if(d<=g){\n d=g;\n }\n }\n }\n printf(\"%d\\n%d\\n\",c,d);\n \n return 0;\n}\n"} +{"label": "84", "index": "41551", "code": "int main()\n{\n\tint a,b,c[100],d,e;\n\tscanf(\"%d\",&a);\n\tfor(b=0;b=c[b+1])d=d;\n\t\telse d=c[b+1];\n\t}\n\te=c[0];\n\tfor(b=0;b=c[b+1]||c[b+1]==d)e=e;\n\t\telse e=c[b+1];\n\t}\n\tprintf(\"%d\\n%d\",d,e);\n}\n"} +{"label": "84", "index": "41552", "code": "int main(){\nint a,b=0,c=0,d,e,i=1;\nscanf(\"%d\",&a);\nwhile(i<=a){\n\tscanf(\"%d\",&d);\n\tif(b<=d){\n e=b;\n\t\tb=d;\n\t}\n\tif(b>d){\n\t\tif(cc){\n\tc=e;\n}\nprintf(\"%d\\n%d\\n\",b,c);\nreturn 0;\n}"} +{"label": "84", "index": "41553", "code": "void main()\n{\n\tint n,i=1,x,t,y,sum,num;\n\tscanf(\"%d\\n\",&n);\n\tscanf(\"%d\\n\",&x);\n\tsum=x;num=-1000000;\n\twhile(inum)\n\t\t num=y;}\n\telse\n\t\tif(num=a)\n { r=a,a=c,c=r;\n k=c;c=b;b=k;}\n else if(c>=b)\n { t=b;b=c;c=t;}\n }\n printf(\"%d\\n%d\\n\",a,b);\n}\n"} +{"label": "84", "index": "41555", "code": "int main()\n{int n,a,b,p,q;\nscanf(\"%d%d%d\",&n,&a,&b);\nif(a>=b){p=a;q=b;}\nelse{p=b;q=a;}\nfor(int i=2;i=p){q=p;p=m;}\n\telse{if(m>=q){q=m;}}\n}\nprintf(\"%d\\n%d\\n\",p,q);\nreturn 0;\n}"} +{"label": "84", "index": "41556", "code": "int main()\n{\n\tint n,s,a,b,i;\n\tscanf(\"%d\\n%d\",&n,&s);\n\ta=s;\n\tb=s;\n\tfor(i=1;is&&b>s){\n\t\t\ta=a;\n\t\t\tb=b;\n\t\t}else if(a>s&&b<=s){\n\t\t\ta=a;\n\t\t\tb=s;\n\t\t}else{\n\t\t\tb=a;\n\t\t\ta=s;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41557", "code": "int main()\n{\n\tint a[100001]={0},max1=0,max2=0,n,i,p;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(max1=ma){\n\t\t\tx=ma;\n\t\t\tma=n;\n\t\t\tmi=x;\n\t\t\t}else{\n\t\t\t\tmi=n;\n\t\t\t\t}\n\t\t}\n\t\telse if(n>=ma){\n\t\t\tx=ma;\n\t\t\tma=n;\n\t\t\tmi=x;\n\t\t}else if(n>=mi){\n\t\t\tmi=n;\n\t\t}\n\ti++;\n\t}\n\tprintf(\"%d\\n%d\\n\",ma,mi);\n\treturn 0;\n}"} +{"label": "84", "index": "41559", "code": "void main()\n{\n\tint i,n,max1=0,max2=0,a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[i])\n\t\t\tmax2=a[i];\n\t}\n\tprintf(\"%d\\n\",max2);\n}\n\t \n"} +{"label": "84", "index": "41560", "code": "int main()\n{\n\tint n,m,a,b,i,t;\n\ta=b=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tif(m>=a)\n\t\t{\n\t\t\tb=a;\n\t\t\ta=m;\n\t\t}\n\t\telse if((m=b))\n\t\t{\n\t\t\tb=m;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41561", "code": "\nint main()\n{\n\tint n,b,c,i; //b?? c??\n\tscanf(\"%d %d %d\", &n, &b, &c);\n\tint a[100]; \n\tfor(i=3;i<=n;i++)\n\t{\n\t\tscanf(\"%d\", &a[i]);\n\t\tif(a[i]>=b)\n\t\t{\n\t\t\tc=b;\n\t\t\tb=a[i];\n\t\t}\n\t\telse if(a[i]>=c)\n\t\t{\n\t\t\tc=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\", b, c);\n\treturn 0;\n}"} +{"label": "84", "index": "41562", "code": "int main(void)\n{\n\tint s[100];\n\tint n,i=0,max,qmax;\n\tscanf(\"%d\",&n);\n\twhile(i=b)\n{max=a;\ncmax=b;}\nelse\n{max=b;\ncmax=a;}\ni=1;\nwhile(i<=n-2)\n{\n\tscanf(\"%d\",&x);\n\ti=i+1;\n\tif(x>=cmax&&x>=max)\n\t{cmax=max;\n\tmax=x;}\n\t\nelse\n\tif(x<=cmax&&x<=max)\n\t{max=max;\n\tcmax=cmax;}\n\telse\n\t{cmax=x;\n\tmax=max;}\n}\nprintf(\"%d\\n%d\\n\",max,cmax);\nreturn 0;\n}\n"} +{"label": "84", "index": "41564", "code": "int main (){\n\tint i,n,a,b,c,d,e;\n\tscanf(\"%d\\n%d\",&n,&e);\n\tb=e;\n\tc=e;\n\tfor(i=2;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a);\n\t\tif(a>=b) {\n\t\t\td=b;\t\n\t\t b=a;\n\t\tif(b>d)\tc=d;\n\t\t}\n\t\telse if(ac) e=a;\n\t\tif(e>c) c=e;\n\t\n\t}\n\tprintf(\"%d\\n%d\\n\",b,c);\n\treturn 0;\n}"} +{"label": "84", "index": "41565", "code": "int main()\n{\n\tint n,x,biggest=0,bigger=0;\n\tcin>>n;\n\twhile (n--)\n\t{\n\t\tcin>>x;\n\t\tif (x>biggest)\n\t\t{\n\t\t\tbigger=biggest;\n\t\t\tbiggest=x;\n\t\t}\n\t\telse if (x>bigger)\n\t\t\tbigger=x;\n\t}\n\tcout<q){w=q;q=a;}\n\telse if(a>w)w=a;\n\t\n\t\n\n\n\n}\nprintf(\"%d\\n%d\\n\",q,w);\n\n}\n"} +{"label": "84", "index": "41567", "code": "void main()\n{\n\tint a,b,c,m,n,i;\n\tscanf(\"%d\",&n);\n\ti=3;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tif(ab)\n\t\t{\n\t\t\tm=b;\n\t\t\tb=c;\n\t\t\tc=m;\n\t\t}\n\t\tif(b>a)\n\t\t{\n\t\t\tm=a;\n\t\t\ta=b;\n\t\t\tb=m;\n\t\t}\n\t\ti=i+1;\n\t}\n\tprintf(\"%d\\n%d\",a,b);\n}\n\n"} +{"label": "84", "index": "41568", "code": "void main()\n{\n\tint n,i,j,l,big,smaller;\n\tint a[10011];\n scanf(\"%d\\n\",&n);\n\tfor(i=0;i=big)\n\t\t\tbig=a[j];\n\t}\n\tfor(l=0;l=smaller&&a[l]y)\n\t\t{\n\t\t\ty=z;\n\t\t\tif(y>x)\n\t\t\t{\n\t\t\t\tt=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",x,y);\n\n}"} +{"label": "84", "index": "41570", "code": "void selectionSort(int A[],int n)\n{\n\tint i,j,k,t;\n\tfor(i=0;iA[k])\n\t\t\t\tk=j;\n\t\t}\n\t\tif(k!=i)\n\t\t{\n\t\t\tt=A[k];\n A[k]=A[i];\n\t\t\tA[i]=t;\n\t\t}\n\t}\n}\n\n int main()\n {\n\t int i;\n\t int A[100];\n\t int n;\n scanf(\"%d\",&n);\n\t for(i=0;ix?max:x;\n\t\tmin=min0;n--)\n\t{\n\t\tscanf(\"%d\",&x);\n\t\tif(max==x)\n\t\t\tmax=x;min=min;\n\t\tif(max!=x)\n\t\t{\n\t\t\ty=maxx?max:x;\n\t\t\tmin=min>y?min:y;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",max,min);\n}"} +{"label": "84", "index": "41573", "code": "void main()\n{\nint n,a[100],i,zd,cd,t;\nscanf(\"%d\",&n);\nfor(i=0;i<=n-1;i++)\n{\nscanf(\"%d\",&a[i]);\nif(i==0)\nzd=a[i];\nif(a[i]>zd)\n{\n\tzd=a[i];\n t=i;\n}\n}\n for(i=0;i<=n-1;i++)\n { if(i==0&&t!=0)\n cd=a[0];\n if(i==0&&t==0)\n\t{ cd=a[1];\n\t continue;\n\t}\n if(i==t)\n\t\tcontinue;\n\tif(a[i]>cd)\n\t\tcd=a[i];\n }\nprintf(\"%d\\n%d\\n\",zd,cd);\n\n}"} +{"label": "84", "index": "41574", "code": "int main()\n{\n\tint i,n,a[100],max,min,x,y;\n\tscanf(\"%d\",&n);\n scanf(\"%d\",&x);\n scanf(\"%d\",&y);\n\tif(x>=y)\n\t{\n\t\tmax=x;\n\t\tmin=y;\n\t}\n\telse\n\t{\n\t\tmax=y;\n\t\tmin=x;\n\t}\n\tfor(i=1;i<(n-1);i++)\n\t{\n\t\tscanf(\"%d\",&(a[i]));\n\t\tif(a[i]>max)\n\t\t{\n\t\t\tmin=max;\n\t\t\tmax=a[i];\n }\n\t\telse if(a[i]min)\n\t\t{\n\t\t\tmin=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\tprintf(\"%d\",min);\n\treturn 0;\n}"} +{"label": "84", "index": "41575", "code": "int main()\n{\nint n,i,j,t;\nint a[30]={0};\nscanf(\"%d\",&n);\nfor(i=0;ia[b+1])\n\t\t{\n\t\t\tt=a[b];\n\t\t\ta[b]=a[b+1];\n\t\t\ta[b+1]=t;\n\t\t}\n\t\tb=b+1;\n\t}\n\twhile(ca[c+1])\n\t\t{\n\t\t\tt=a[c];\n\t\t\ta[c]=a[c+1];\n\t\t\ta[c+1]=t;\n\t\t}\n\t\tc=c+1;\n\t}\n\tprintf(\"%d\\n%d\\n\",a[n-1],a[n-2]);\n}\n"} +{"label": "84", "index": "41577", "code": "int main()\n{\n\tint resulta=0;\n\tint resultb=0;\n\tint num;\n\tint n;\n\tint i=1;\n\tscanf(\"%d\",&n);\n\twhile (i<=n){\n\tscanf(\"%d\",&num);\n\tif (i==1){\n\tresulta=num;\n\t}else{\n\t\tif(num>resulta){\n\tresultb=resulta;\n\tresulta=num;\n\t\t}\n\t\telse {if(numresultb){\n\t\t\tresultb=num;}}\n\t}\n\ti++;\n\t}\n\tprintf(\"%d\\n\",resulta);\n\tprintf(\"%d\\n\",resultb);\n\n\n}"} +{"label": "84", "index": "41578", "code": "void main()\n{\n\tint max(int m,int b[]);\n\tint i,n,c,a[100];\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia){\n\t\tint p;\n\t\tp=b;\n\t\tb=a;\n\t\ta=p;\n\t}\n\tfor(i=3;ib&&ca)\n\t\t{\n\t\t\tm=c;\n\t\t\tk=a;\n\t\t\ta=m;\n\t\t\tb=k;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",a,b);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41580", "code": "\n \nmain(){\n\nint n,m,a,b,p;\n\nscanf(\"%d\",&n);\n\nfor(int i=1;i<=n;i++){\n\n\tscanf(\"%d\",&m);\n\n\tif(i==1){a=m;\n\n\n\t}\n\n\telse if(i==2){\n\n\t\tb=m;\n \n\t\tif(b>=a){p=a;\n\n a=b;\n\n\t b=p;\n\n\t\t}\n\n\n\t}\n\n\telse if(i>=3){\n\n\n\t\tif (m>a&&m>b){\n\n\n\t\t\tp=a;\n\n\t\t\ta=m;\n\n\t\t\tb=p;\n\n\n\t\t}\n\n\t\telse {\n\n\t\t\tif(mb){\n\n\n\t\t\t\tb=m;\n\n\t\t\t}\n\n\n\n\n\n\n\t\t}\n \n\n\t\n\t}\n}\n\n\n\nprintf(\"%d\\n%d\\n\",a,b);\n\n\n\n\n\n\treturn 0;\n\t \n\n}"} +{"label": "84", "index": "41581", "code": "int main()\n{\n\tint i,n;\n\tint a[32767];\n\tint max=0;\n\tint secondmax=0;\n\tcin>>n;\n\n for (i=1;i<=n;i++)\n {\n cin>>a[i];\n } \n for (i=1;i<=n;i++)\n {\n if (a[i]>max)\n {\n max=a[i];\n }\n }\n for (i=1;i<=n;i++)\n {\n\t if (a[i]secondmax)\n\t {\n\t\t secondmax=a[i];\n\t }\n }\n\n\tcout<result)\n\t\t\tresult=num[i];\n\t\treturn(result);\n}\nvoid main(void)\n{\n\tint n,num[100],m1,m2,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[i+1])\n\t\t{\n\t\t\tt=a[i];a[i]=a[i+1];a[i+1]=t;\n\t\t}\n\tprintf(\"%d\\n\",a[n]);\n\n\tfor (i=1;i<=n-2;i++)\n\t\tif (a[i]>a[i+1])\n\t\t{\n\t\t\tt=a[i];a[i]=a[i+1];a[i+1]=t;\n\t\t}\n printf(\"%d\\n\",a[n-1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41584", "code": "void main()\n{\n\tint n,a[102],i,j,t;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n-1;i++)\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(a[j]>a[i])\n\t\t\t{\n\t\t\t\tt=a[j];\n\t\t\t\ta[j]=a[i];\n\t\t\t\ta[i]=t;\n\t\t\t}\n\t\t}\n\tprintf(\"%d\\n\",a[1]);\n\tfor(i=2;a[i]>1);\n\tscanf(\"%d\",&n);\n\tfor(i=0;im1)\n\t\t{\n\t\t\tm2=m1;\n\t\t\tm1=t;\n\t\t}\n\t\telse if(t>m2)\n\t\t\tm2=t;\n\t}\n\tprintf(\"%d\\n%d\",m1,m2);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41586", "code": "\nint main()\n{\n\tint n,max,se,i;\n int a[100];\n scanf(\"%d\",&n);\n\ti=1;\n\tscanf(\"%d\",&a[i]);\n\tmax=a[i];\n\tse=a[i];\n\ti=2;\n\tscanf(\"%d\",&a[i]);\n\tif (a[i]>max)\n\t{\n\t\tse=max;\n\t\tmax=a[i];\n\t}\n\telse \n\t{\n\t\tif (a[i]max)\n\t\t{\n\t\t\tse=max;\n\t\t\tmax=a[i];\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif (max>a[i]&&a[i]>se)\n\t\t\t{\n\t\t\t\tse=a[i];\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\t\tprintf(\"%d\\n%d\",max,se);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41587", "code": "int a,b,c,d,n;\nint main()\n{ \na=0;\nb=0;\nscanf(\"%d\",&n);\ndo\n{\nscanf(\"%d\",&c);\nn=n-1;\nif(a>=b&&a>=c&&b>=c)\n{\n a=a;\n b=b;} else if(b>=a&&b>=c&&a>=c)\n {\n d=a;a=b;b=d;\n}else if(a>=b&&a>=c&&c>=b)\n{a=a;b=c;}\nelse if(b>=a&&b>=c&&c>=a)\n{a=b;b=c;}\nelse if(c>=a&&c>=b&&a>=b)\n{b=a;a=c;}\nelse if(c>=a&&c>=b&&b>=a)\n{a=c;b=b;}\n}\nwhile(n>0);\nprintf(\"%d\\n\",a);\nprintf(\"%d\\n\",b);\nreturn 0;\n}"} +{"label": "84", "index": "41588", "code": "\nint main(int argc, char* argv[])\n{ int a[100],i,m1,m2,n;\n scanf(\"%d\",&n);\nfor(i=0;i>k;\n\tint max=0,max2=0;\n\tint a;\n\tfor(int i=1;i<=k;i++)\n\t{\n\t\tcin>>a;\n\t\tif(a>=max)\n\t\t{\n\t\t\tint temp;\n\t\t\ttemp=max;\n\t\t\tmax=a;\n\t\t\tmax2=temp;\n\t\t}\n\t\t\n\t\telse if( a>max2)\n\t\t{\n\t\t\tmax2=a;\n\t\t}\n\t\t\n //i++;\n\t}\n\tcout<a){b=a;a=c;}\n\t\telse if(c>b){a=a;b=c;}\n\t\telse{a=a;b=b;}\n\t\t\n\t}\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\",b);\n}\n"} +{"label": "84", "index": "41591", "code": "int main()\n{\n\tint n,i,s,h;\n\tint w[100];\n\tint max(int,int);\n\tscanf(\"%d\",&n);\n\tfor(i=0;iy?x:y;\n\treturn(z);\n}"} +{"label": "84", "index": "41592", "code": "int main()\n{\nint a,n,i;\nint p=0,q=0;\nscanf(\"%d\",&n);\ni=1;\nwhile(i<=n)\n{\n\tscanf(\"%d\",&a);\n\tif(a>=p){q=p,p=a;}\n\tif(aq){p=p,q=a;}\n\tif(a<=q){p=p,q=q;}\n\ti=i+1;\n}\nprintf(\"%d\\n%d\",p,q);\n\treturn 0;\n}"} +{"label": "84", "index": "41593", "code": "int main()\n{\n \tint n,i,max1,max2;\n \tscanf(\"%d\",&n);\n \tint a[n];\n \tfor(i=0;i=a[1]){\n max1=a[0];\n\t\tmax2=a[1]; \n }\n else {\n max1=a[1];\n max2=a[2];\n }\n for(i=2;i=max1){\n\t\t max2=max1;\n\t\t\tmax1=a[i];\n\t\t}\n\t\telse if(a[i]=max2)\n\t\t max2=a[i];\n }\n\tprintf(\"%d\\n\",max1);\n\tprintf(\"%d\",max2);\n\treturn 0;\t\t\t\t\t \n \n}\n"} +{"label": "84", "index": "41594", "code": "void main()\n{\n\tint ch[100],i,max,max1,n;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;ii;j--)\n\t\t\t{\n\t\t\t\tif (A[j]a){\n\t\t\ta=sz[i];\n\t\t}\n\t}\n\tb=sz[0];\n\tfor(i=0;ib&&sz[i]a[1])\n\t\t\t{\n\t\t\t\tm=a[0];\n\t\t\t p=a[1];\n }\n\t\t\telse if(a[0]1)\n\t\t\tif(a[i]>m)\n\t\t\t{\n\t\t\t\tp=m;\n\t\t\t\tm=a[i];\n\t\t\t}\n\t\t\telse if((a[i]>p)&&(a[i]m[2])\n\t{\n\t\tmax=m[1];\n\t\tmin=m[2];\n\t}\n\telse\n\t{\n\t\tmax=m[2];\n\t\tmin=m[1];\n\t}\n\tfor(i=3;imax)\n\t\t{\n\t\t\tmin=max;\n\t\t\tmax=m[i];\n\t\t}\n\t\telse\n\t\t\tif(m[i]>min)\n\t\t\tmin=m[i];\n\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",max,min);\n\t\n\treturn 0;\n}\n"} +{"label": "84", "index": "41599", "code": "void main()\n{int n,i,j,t,a[100];\nscanf(\"%d\",&n);\nfor(i=0;i0;j--)\nif(a[j]>a[j-1])\n{t=a[j];\na[j]=a[j-1];\na[j-1]=t;}\nprintf(\"%d\\n\",a[0]);\nfor(j=n-1;j>1;j--)\nif(a[j]>a[j-1])\n{t=a[j];\na[j]=a[j-1];\na[j-1]=t;}\nprintf(\"%d\",a[1]);\n\n}"} +{"label": "84", "index": "41600", "code": "int main(){\n int a;\n scanf(\"%d\\n\",&a);\n int temp,i=0,x[a],b,de;\n b=a-1;\n for(i=0;ic)\n\t{\n\t\te=b;\n\t\tb=c;\n\t\tc=e;\n\t}\n\n\tfor(i=3;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a);\n\n\t\tif(a>c)\n\t\t{\n\t\t\te=c;\n\t\t\tc=a;\n\t\t\tb=e;\n\t\t}\n\t\telse if((a>b)&&(a<=c))\n\t\t{\n\t\t\tb=a;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\n\t}\n\n\tprintf(\"%d\\n%d\\n\",c,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41602", "code": "void main()\n{int n,i,k=0,j;\n scanf(\"%d\",&n);\n int c[100];\n for(i=0;ic[k])\n k=i;}\n printf(\"%d\\n\",c[k]);\nif(k==0)\n{j=1;\n for(i=2;ic[j])\n j=i;}\nelse {j=0;\n for(i=1;ic[j]&&c[i]a)\n\t{\n\t\tx=MAX1;\n\t\ty=MAX2;\n\t\tMAX1=y;\n\t\tMAX2=x;\n\t}\n\tint i;\n\tfor(i=2;iMAX1)\n\t\t{\n\t\t\tMAX2=MAX1;\n\t\t\tMAX1=j;\n\t\t}\n\t\telse if (j>MAX2)\n\t\t{\n\t\t\tMAX2=j;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",MAX1,MAX2);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41605", "code": "int main()\n{\n\tint z[100],n,i,max,min;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax)\n\t\t{\n\t\t\tmin=max;\n\t\t\tmax=z[i];\n\t\t}\n\t\telse if(z[i]min) min=z[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",max,min);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41606", "code": "main()\n{\n\tint a,b,c,i,j,n,a1,a2;\n\tscanf(\"%d%d%d\",&n,&a1,&a2);\n\tb=(a1>a2)?a1:a2;\n\tc=(a1b)\n\t\t{\n\t\t\tc=b;b=a;\n\t\t}\n\t\telse if(a>c)c=a;\n\t}\n\tprintf(\"%d\\n%d\\n\",b,c);\n}"} +{"label": "84", "index": "41607", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tint sz[1000];\n\tint index;\n\tfor(index=0;indexd)\n\t {\n\t\t x=d;\n\t\t d=sz[inde];\n }\n\t else if(sz[inde]>x)\n\t\t x=sz[inde];\n }\n printf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",x);\n\treturn 0;\n}"} +{"label": "84", "index": "41608", "code": "int main(){\nint n,i,a,x,y;\ni=1;\nscanf(\"%d\\n\",&n);\nif(n>1&&n<100){\nwhile(i<=n){\nscanf(\"%d\\n\",&a);\nif(i==1){\nx=a;\ny=0;\n}else if(a>x){\ny=x;\nx=a;\n}else if(a>y&&asz[i+1])\n\t\t{\n\t\t\tint tmp;\n\t\t\ttmp=sz[i+1];\n\t\t\tsz[i+1]=sz[i];\n\t\t\tsz[i]=tmp;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",sz[n-1]);\n\tfor(i=0;isz[i+1])\n\t\t{\n\t\t\tint tmp;\n\t\t\ttmp=sz[i+1];\n\t\t\tsz[i+1]=sz[i];\n\t\t\tsz[i]=tmp;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",sz[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41610", "code": "\nint main(int argc, char *argv[])\n{\n int b,i,k;\n i=0;\n k=1;\n int a[100];\n int maxindex,c;\n c=0;\n scanf(\"%d\",&b);\n for(i=0; i < 100; i++)\n a[i] = 0;\n if(b>1 && b<100){\n for(i=0;ia[maxindex]){\n maxindex=i;\n }\n }\n if(maxindex!= 100-k){\n c=a[maxindex];\n a[maxindex]=a[100-k];\n a[100-k]=c;\n printf(\"%d\\n\",a[100-k]);\n }\n }\n }else{\n printf(\"error\");\n }\t\n return 0;\n}"} +{"label": "84", "index": "41611", "code": "void main()\n{\n\tint n,i,a,b,c;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d %d\",&a,&b);\n\tif(b>a)\n\t\t\tc=b,b=a,a=c;\n\tfor(i=1;i<=(n-2);i++)\n\t{\n\t scanf(\"%d\",&c);\n\t\tif(c>a) b=a,a=c;\n\t\telse if(c>b) b=c;\n\t}\n\tprintf(\"%d\\n%d\\n\",a,b);\t\n}"} +{"label": "84", "index": "41612", "code": "\nint main(int argc, char* argv[])\n{int sz[99];\nint n,e;\nscanf (\"%d\",&n);\nfor( int i = 0 ; i < n ; i ++ )\n{\nscanf (\"%d\",&(sz[i]));\n}\nfor(int c = 0; c < n - 1; c++){\n\t\t\tif(sz[c] > sz[c+1]){\n\t\t\t\t\te = sz[c+1];\n\t\t\t\t\tsz[c+1] = sz[c];\n\t\t\t\t\tsz[c] = e;\n\t\t\t}\n\t}\nint b;\nfor(int a = 0;a sz[a+1]){\n\t\t\t\t\tb = sz[a+1];\n\t\t\t\t\tsz[a+1] = sz[a];\n\t\t\t\t\tsz[a] = b;\n\t\t\t}\n\t}\nprintf (\"%d\\n\",sz[n-1]);\nprintf (\"%d\\n\",sz[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41613", "code": "\nint main()\n{\n\tint n,d,x;\n\tscanf(\"%d\",&n);\n\tint arr[100]={0};\n\tfor(int i=0;id){\n\t\t\td=arr[k];\n\t\t}\n\t}\n\tfor(int j=0;j>n;\nint num[100];\nint i=0;\nint temp1=0,temp2=0,t=0;\nfor(i=0;i>num[i];\nif(temp1max1) {max1=p[i];}\n }\n max=max1;max1=0;\n\tfor(i=0;imax2&&p[i]!=max){max2=p[i];}\n\t}\n\tprintf(\"%d\\n%d\\n\",max,max2);\n free(p);\n \n\treturn 0;\n}"} +{"label": "84", "index": "41617", "code": "int main()\n{\n int n;\n\t scanf(\"%d\", &n);\n\t int i;\n\t int number[1000];\n\t int a;\n\t for(i=0; imax1) \n { \n t2=t1; \n t1=i; \n max2=max1; \n max1=num; \n } \n else if(num > max2&& num < max1) \n { \n max2=num; \n t2=i; \n } \n } \n printf(\"%d\\n%d\\n\", max1, max2);\n} "} +{"label": "84", "index": "41619", "code": "\nint main()\n{\n\tint n[100], k, i, t1, t2;\n scanf(\"%d\", &k);\n\tt1 = 0;\n\tt2 = 0;\n\tfor(i = 1; i <= k; i++){\n\t\tscanf(\"%d\", &n[i]);\n if(n[i] > t1){\n\t\t\tt2 = t1;\n\t\t\tt1 = n[i];\n\t\t\t\n\t\t}\n\t\telse if(n[i] > t2 && n[i] < t1){\n\t\t\tt1 = t1;\n\t\t\tt2 = n[i];\n\t\t}\n\t\telse if(n[i] < t2){\n\t\t\tt1 = t1;\n\t\t\tt2 = t2;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\", t1, t2);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41620", "code": "void main()\n{\n\tint n,a,b,c,d,i,r;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&a);\n\tb=a;\n\tc=a;\n\tfor(i=2;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&d);\n\t\tif(d>b)\n\t\t{\n\t\t\tr=b;\n\t\t\tb=d;\n\t\t\tif(r>c)\n\t\t\t\tc=r;\n\t\t}\n\t\telse if(d>c)\n\t\t\tc=d;\n\t}\n\tprintf(\"%d\\n%d\\n\",b,c);\n}\n\n\n"} +{"label": "84", "index": "41621", "code": "\nmain()\n{\n\tint temp, max, min, a[100] = {0}, n, i, j;\n\n\tscanf(\"%d\", &n);\n\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tscanf(\"%d\", &a[i]);\n\t}\n\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tfor(j = 1; j <= i; j++)\n\t\t{\n\t\t\tif(a[i] >= a[j])\n\t\t\t{\n\t\t\t\ttemp = a[i];\n\t\t\t\ta[i] = a[j];\n\t\t\t\ta[j] = temp;\n\t\t\t}\n\t\t}\n\t}\n\n\tprintf(\"%d\\n%d\", a[1], a[2]);\n}"} +{"label": "84", "index": "41622", "code": "int main()\n{\n\tint n,u,c;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0; iu)\n\t\t{\n\t\t\tu=a[i];\n\t\t}\n\t}\n\tfor(i=0;ic)\n\t\t{\n\t\t\tc=a[i];\n\t\t}\n\t}\n\n\tprintf(\"%d\\n%d\\n\",u,c);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41623", "code": "int main()\n{\n int a[101],i,j,n,m;\n scanf(\"%d\\n\",&n);\n i=m=1;\n while(ia[i+1])\n{m=a[i]; a[i]=a[i+1]; a[i+1]=m;}\n \n printf(\"%d\\n\",a[n]);\n printf(\"%d\\n\",a[n-1]);\nreturn 0;\n}\n"} +{"label": "84", "index": "41624", "code": "int main()\n{\n\tint a,i,c,b[100];\n scanf(\"%d\",&a);\n for(i=0;ib[0]){\n\t\t\tc=b[i];\n\t\t\tb[i]=b[0];\n\t\t\tb[0]=c;\n\t\t}\n\t\t\t\n\tfor(i=2;ib[1]){\n\t\t\tb[1]=b[i];\n\t\t}\n\tprintf(\"%d\\n\",b[0]);\n\tprintf(\"%d\",b[1]);\nreturn 0;\n}\n\t"} +{"label": "84", "index": "41625", "code": "int main()\n{\n int i,b,n,b1;\n\tscanf(\"%d\",&n);\n\tint a[100];\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i-1]);\n b=a[0];\n\tb1=a[0];\n\tfor(i=2;i<=n;i++)\n\t{\n\t\tif(ba){m=a;a=b;b=m;}\n\t\t}\n\t\tif (i!=1&&i!=2){\n\t\tscanf(\"%d\",&c);\n\t\t if(c>a){b=a;a=c;}\n\t\t if(cb){b=c;}\n\t\t}\n\ti++;\n\t\n\t\n\t}\nprintf(\"%d\\n%d\\n\",a,b);\n\nreturn 0;\n}"} +{"label": "84", "index": "41627", "code": "\nint main()\n{\n\tint n,t,max,max2,i;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&t);\n\tmax=max2=t;\n\tfor (i=1;imax)\n\t\t{\n\t\t\tmax2=max;\n\t\t\tmax=t;\n\t\t}\n\t\telse if (t>max2)\n\t\t\tmax2=t;\n\t\t}\n\tprintf(\"%d\\n\",max,max2);\n\tprintf(\"%d\\n\",max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41628", "code": "int main(){\n\tint a,b,c,d,p,q,n,i;\n\tscanf(\"%d%d%d%d\",&n,&a,&b,&c);\n\tif(a>b&&a>c&&b>c){\n\t\tp=a;\n\t\tq=b;\n\t}else if(a>b&&a>c&&c>b){\n\t\tp=a;\n\t\tq=c;\n\t}else if(b>a&&b>c&&a>c){\n\t\tp=b;\n\t\tq=a;\n\t}else if(b>a&&b>c&&c>a){\n\t\tp=b;\n\t\tq=c;\n\t}else if(c>a&&c>b&&a>b){\n\t\tp=c;\n\t\tq=a;\n\t}else if(c>a&&c>b&&b>a){\n\t\tp=c;\n\t\tq=b;\n\t}\n\ti=4;\n\twhile(i<=n){\n\t\tscanf(\"%d\",&d);\n\t\tif(d>p){\n\t\t q=p;\t\n\t\t\tp=d;\n\t\t}else if(dq){\n\t\t\tq=d;\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n%d\\n\",p,q);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41629", "code": "int main()\n{\n\tint a;\n\tint big1,big2,big;\n\tscanf(\"%d\",&a);\n\tint b[100];\n\tscanf(\"%d\",&b[0]);\n\tbig1=b[0];\n\tscanf(\"%d\",&b[1]);\n\tbig2=b[1];\n\tif (big2>big1) \n\t{\n\t\tbig=big1;\n\t\tbig1=big2;\n\t\tbig2=big;\n\t}\n\tfor (int i=2;i<=a-1;i++)\n\t{\n\t\tscanf(\"%d\",&b[i]);\n\t\tif(b[i]>big2)\n\t\t{\n\t\t\tbig2=b[i];\n\t\t\tif (big2>big1) \n\t\t\t{\n\t\t\tbig=big1;\n\t\t\tbig1=big2;\n\t\t\tbig2=big;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",big1,big2);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41630", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,i,p,x,y;\n\tx=y=0;\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++)\n\t\t{scanf(\"%d\",&p);\n\t\tif (p>x ){\n\t\t\ty=x;\n\t\t\tx=p;}\n\t\telse \n\t\t\tif(p>y)\n\t\t\t\ty=p;\n\t\t\t\t}\n\tprintf(\"%d\\n%d\",x,y);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41631", "code": "\nint main(){\nint a,b,c,d,i;\nscanf(\"%d\",&a);\nscanf(\"%d\",&b);\nscanf(\"%d\",&c);\nb=(b>c)?b:c;\nc=(bb){\nc=b;\nb=d;\n}\nif((dc)){\nc=d;\n}\ni++;\n}\nprintf(\"%d\\n\",b);\nprintf(\"%d\",c);\nreturn 0;\n}\n"} +{"label": "84", "index": "41632", "code": "int main()\n{\n\tint n,i,a,b,c,m1,m2;\n\tscanf (\"%d\",&n);\n\tscanf (\"%d%d\",&a,&b);\n\t\tif (a>b){\n\t\t\tm1=a;\n\t\t\tm2=b;\n\t\t}\n\t\telse{\n\t\t\tm1=b;\n\t\t\tm2=a;\n\t\t}\n\tfor (i=1;im1){\n\t\t\tm2=m1;\n\t\t\tm1=c;\n\t\t}\n\t\tif (m2c){\n\t\t\tcontinue;\n\t\t}\n\t}\n\tprintf (\"%d\\n%d\",m1,m2);\n\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41633", "code": "int main(int argc, char* argv[])\n{\n\tint i,n;\n\tint t;\n\tint max,secondmax;\n\tscanf(\"%d%d\",&n,&t);\n\tmax=secondmax=t;\n\tfor(i=1;isecondmax))\n {\n\t\t\tsecondmax=t;\n\t\t}\n\t\telse \n\t\t\tif(t>max)\n\t\t{\n\t\t\tsecondmax=max;\n max=t;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",max,secondmax);\n\treturn 0;\n}"} +{"label": "84", "index": "41634", "code": "\nvoid px(int S[],int n)\n{\n\tint i,j,t;\n\tfor(i=0;ii;j--)\n\t\t{\n\t\t\tif (S[j]>S[j-1])\n\t\t\t{\n\t\t\t\tt=S[j-1];\n\t\t\t\tS[j-1]=S[j];\n\t\t\t\tS[j]=t;\n\t\t\t}\n\t\t}\n\t}\n}\n\n\nint main(int argc, char* argv[])\n{\n\tint S[A],n,k,p;\n\tscanf(\"%d\",&n);\n\tfor (p=0;p=a) b=a,a=c;\n else \n {\n if(c>b) b=c;\n }\n i++;\n }\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n} \n \n\n"} +{"label": "84", "index": "41636", "code": "int main()\n{\n int n,a,i,max1=-10000,max2=-10000;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax1){\n\t\t\tmax2=max1;\n\t\t\tmax1=a; } \n\t\telse if(amax2)\n\t\t max2=a;\n\t\telse if(a=arr[s])?max:arr[s];\n }\n int secondMax=0;\n for(int j=0;j=arr[j]||arr[j]==max)?secondMax:arr[j];\n }\n printf(\"%d\\n\",max);\n printf(\"%d\",secondMax);\n return 0;\n}\n"} +{"label": "84", "index": "41639", "code": "// work2 1.cpp : Defines the entry point for the console application.\n//\n\n//#include \"stdafx.h\"\n\n\nint main(int argc, char* argv[])\n{\n\tint n;\n\tint arr[100];\n\tscanf(\"%d\",&n);\n\tint i,j;\n\n\tfor (i=0;if)\n\t\t\t{\n\t\t\t\ts=f;\n\t\t\t\tf=num;\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf=f;\n\t\t\t\ts=num;\n\t\t\t}\n\t\t}\n\t\tfor(i=1;if)\n\t\t\t\t{\n\t\t\t\t\ts=f;\n\t\t\t\t\tf=num;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(num==f)\n\t\t\t\t\t{\n\t\t\t\t\t\tf=f;\n\t\t\t\t\t\ts=s;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(num>s)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ts=num;\n\t\t\t\t\t\t\tf=f;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ts=s;\n\t\t\t\t\t\t\tf=f;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",f);\n\tprintf(\"%d\",s);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41641", "code": "int main()\n{\n\tint a[10000];\n\tint i,n;\n\tint max,max2;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=max2)) max2=a[i];\n\tprintf(\"%d\\n%d\\n\",max,max2);\n\treturn 0;\n} "} +{"label": "84", "index": "41642", "code": "int main () {\n\tint i,n,f;\n\tint e=0;\n\tint maxi=0;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]>maxi){\n\t\t\tf=maxi;\t\t\t\n\t\t\tmaxi=a[i];\n\t\t}\n\t\telse if(a[i]>e){\n\t\t\te=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",maxi);\t\n\tif(f>e){\n\t\tprintf(\"%d\\n\",f);\n\t}\n\telse{\n\t\tprintf(\"%d\\n\",e);\n\t}\n\treturn 0;\n}"} +{"label": "84", "index": "41643", "code": "main()\n{int a,b,n,c,i;\n scanf(\"%d\",&n); \n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n if(ab&&c<=a) {b=c;continue;}\n if(c>a){b=a;a=c;}\n } \n printf(\"%d\\n%d\\n\",a,b);\n}\n"} +{"label": "84", "index": "41644", "code": "int main()\n{\n\tsigned int n,num[1000],i,out[2];\n\tscanf(\"%d\",&n);\n\tfor(i=0;inum[1])\n\t{\n\t\tout[0]=num[0];\n\t\tout[1]=num[1];\n\t}\n\telse\n\t{\n\t\tout[0]=num[1];\n\t\tout[1]=num[0];\n\t}\n\tfor(i=2;iout[0])\n\t\t{\n\t\t\tout[1]=out[0];\n\t\t\tout[0]=num[i];\n\t\t}\n\t\telse if(num[i]out[1])\n\t\t\tout[1]=num[i];\n\t\telse\n\t\t\tcontinue;\n\t}\n\tprintf(\"%d\\n%d\\n\",out[0],out[1]);\n \treturn 0;\n}\n"} +{"label": "84", "index": "41645", "code": "\nvoid change(int a[],int n)\n{\n\tint i,m1=0,m2=0;\n\tfor(i=0;im1)\n\t\t\tm1=a[i];\n\t}\n\tfor(i=0;im2&&a[i]=a){\n b=a;\n a=x;\n }else{\n if(x>b){\n b=x;\n }\n }\n }\n printf(\"%d\\n\",a);\n printf(\"%d\",b);\n return 0 ;\n}\n"} +{"label": "84", "index": "41647", "code": "void main()\n{\n\tint n,a,b,c,max,smax,i,r,t;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tif(amax)\n\t\t{\n\t\t\tr=max;\n\t\t\tmax=c;\n\t\t\tsmax=r;\n\t\t}\n\t\telse if(c>smax)\n\t\t{\n\t\t smax=c;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\tprintf(\"%d\\n\",smax);\n}\n\n"} +{"label": "84", "index": "41648", "code": "int main () {\n\tint a,n,i=0,b,max,secm=0;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&max);\n\tfor (; isecm){\n\t\t\tsecm=b;\n\t\t}\n\n\t}\n\tprintf(\"%d\\n\\n%d\",max,secm);\n\treturn 0;\n}"} +{"label": "84", "index": "41649", "code": "void bubbleSort(int A[],int n)\n{\n\tint i,j,t;\n\tfor (i=0;ii;j--)\n\t\t{\n\t\t\tif(A[j]=b){\n\t\tif(m>=a){\n\t\t\tb=a;\n\ta=m;\n\t}\n\t\tif(m<=b){\n\t\ta=a;\n\t\tb=b;}\n\t\tif(mb){\n\t\ta=a;\n\t\tb=m;}\n\t\t}else{\n\t\t\tif(m>=b){\n\t\tb=b;\n\t\ta=m;}\n\t\t\tif(ma){ \n\t\ta=b;\n\t\tb=m;}\n\t\t\tif(m<=a){\n\t\tt=b;\n\t\tb=a;\n\t\ta=t;}}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n%d\\n\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41651", "code": "int main()\n{\n\n\tint i,b,c,x;\n\tint a[100];\n\tscanf(\"%d\",&x);\n\tscanf(\"%d\",&b);\n\tc=b;\n\n\tfor(i=1;i<=x-1;i++)\n\t{\n\t\tscanf(\"%d\",&a[i-1]);\n\t\tif(a[i-1]>=b)b=a[i-1];\n\t}\n\tfor(i=1;i<=x-1;i++)\n\t{\n\t\tif(a[i-1]>=c&&a[i-1]>n;\n cin>>max1>>a;\n if(max1>a;\n if(a>max1)\n {\n max2=max1;\n max1=a;\n }\n else if(a>max2)\n {\n max2=a;\n }\n }\n cout<sz[max]){\n\t\t\tmax=i;\n\t\t}\n\t}\n\tif(max!=n-1){\n\t\te=sz[max];\n\t\tsz[max]=sz[n-1];\n\t\tsz[n-1]=e;\n\t}\n\tmax=0;\n for(i=0;isz[max]){\n\t\t\tmax=i;\n\t\t}\n\t}\n\tif(max!=n-2){\n\t\te=sz[max];\n\t\tsz[max]=sz[n-2];\n\t\tsz[n-2]=e;\n\t}\n\tprintf(\"%d\\n%d\\n\",sz[n-1],sz[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41654", "code": "void main()\n{\n\tint a[100];\n\tint n,t,i,j;\n\tscanf(\"%d\",&n);\n\tif(n>1&&n<100)\n\t{\n\t for(i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",&a[i]);\n\t\tprintf(\"\\n\");\n\t\tfor(j=0;j(abs(a[i+1])))\n\t\t\t\t{\n\t\t\t\t\tt=a[i];\n\t\t\t\t\ta[i]=a[i+1];\n\t\t\t\t\ta[i+1]=t;\n\t\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n%d\\n\",a[n-1],a[n-2]);\n\t\t\n\t}\n}"} +{"label": "84", "index": "41655", "code": "int main()\n{\n int n,i,a,b,c,x,y;\n scanf(\"%d\\n\",&n);\n\t i=1;\n scanf(\"%d\\n%d\\n\",&a,&b);\n\t if(a>b){\n\t\t x=a,y=b;\n }else{\n\t\t x=b,y=a;\n\t }\n\t while(i<=n-2){\n\t scanf(\"%d\",&c);\n\t if(c>x){\n y=x,x=c;\n\t }\n\t else if(cy){\n\t\t x=x,y=c;\n\t }\n\t else if(c=b)c=b,b=a;\n if(a>c&&aprime[i+1])\n\t\t\te=prime[i],prime[i]=prime[i+1],prime[i+1]=e;\n\t}\n\tfor(i=0;iprime[i+1])\n\t\t\te=prime[i],prime[i]=prime[i+1],prime[i+1]=e;\n\t}\n\tprintf(\"%d\\n\",prime[n]);\n\tprintf(\"%d\\n\",prime[n-1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41658", "code": "int main()\n{\n int i,m,x,y,z;\n scanf(\"%d\",&m);\n int a[255];\n for (i=1;i<=m;i++)\n scanf(\"%d\",&a[i]);\n x=a[1];y=a[2];\n if (a[2]x) x=a[i];\n if (x>y) {z=y;y=x;x=z;};\n }\n printf(\"%d\\n%d\",y,x);\nreturn 0;\n}\n"} +{"label": "84", "index": "41659", "code": "int main(int argc, char* argv[])\n{\n\tint a,i,b,first,second,c,d;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d%d\",&c,&d);\n\tif (c>d)\n\t\tfirst=c;\n\t second=d;\n\tif (cfirst)\n\t\t{\n\t\t\tsecond=first;\n\t\t\tfirst=b;\n\t\t}\n\t\telse if(b>second)\n\t\t\tsecond=b;\n\t}\n\tprintf(\"%d\\n%d\",first,second);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41660", "code": "int main(int argc, char* argv[])\n{\n\tint n;\n\tint fir,sen;\n\tint x,i;\n\tscanf(\"%d\\n\",&n);\n\tif(n>1&&n<100)\n\t{\n\t\tif(n==1)\n\t\t{\n\t\t\tint a;\n\t\t\tscanf(\"%d\",&a);\n\t\t\tfir = sen=a;\n\t\t}\n\t\telse{\n\t\t\tfor(i=0;inum[i+1])\n {\n t=num[i];num[i]=num[i+1];num[i+1]=t;\n }\n\t }\n }\n printf(\"%d\\n%d\",num[n-1],num[n-2]);\n return 0;\n}"} +{"label": "84", "index": "41662", "code": "void bubblesort(int A[],int n)\n{\n int i,j,t;\n\tfor(i=0;ii;j--)\n\t {\n\t if(A[j]a)\n\t{\n\t\tc=b;\n\t\tb=a;\n\t\ta=c;\n\t}\n\tdo\n\t{\n\t\tn--;\n\t\tscanf(\"%d\",&d);\n\t\tif(d>b)\n\t\t{\n\t\t\tc=d;\n\t\t\td=b;\n\t\t\tb=c;\t\n\t\t}\n\t\tif(b>a)\n\t\t{\n\t\t\tc=b;\n\t\t\tb=a;\n\t\t\ta=c;\t\n\t\t}\n\t}\n\twhile(n!=0);\n\tprintf(\"%d\\n%d\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41664", "code": "int main()\n{\n int i=0,j=0,p=0,a[101],n=0;\n memset(a,0,sizeof(a));\n cin>>n;\n for(i=1;i<=n;i++)\n {\n cin>>a[i];\n }\n \n \n for(j=1;j<=n-1;j++)\n {\n for(i=1;i<=n-j;i++)\n {\n if(a[i]a[i+1]){\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\", a[n]);\n\tprintf(\"\\n\");\n\tprintf(\"%d\", a[n-1]);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41666", "code": "//??????????????????????????????????\n//????????????1???100???????????? ????????????\n//??????????????????????????????\nint main()\n{\n\tint k,i,a[100],max1,max2; //????k,???a[100],???max1,???max2\n\tmax1=0;\n\tmax2=0;\n\tcin>>k; //??????k\n\tfor(i=0;i>a[i]; //?????\n\t\tif(a[i]>=max1)max1=a[i]; //?????\n\t\ti++;\n\t};\n\tfor(i=0;i=max2 & a[i]<=(max1-1))max2=a[i]; //?????\n\t\ti++;\n\t};\n\tcout<>n;\n\tfor (i=0;i>k[i];\n\t}\n\tfor(i=0;iMax)\n\tMax=k[i];}\n\tfor(i=0;iMax2)\n\tMax2=k[i];}\n\tcout<c)\n\t\tmax1=b,max2=c;\n\telse if(bmax1)\n\t\t{\n\t\t\tmax2=max1;\n\t\t\tmax1 = a;\n\t\t}\n\t\telse if(max2max1)\n {max1=a[i];\n sign=i;}\n \n }\n a[sign]=0;\n for(i=0;i<=n-1;i++)\n { if(a[i]>max2)\n max2=a[i];\n \n }\n printf(\"%d\\n%d\",max1,max2);\n return 0;\n}"} +{"label": "84", "index": "41670", "code": "int main()\n{\n\tint n,i,e,j;\n\tscanf(\"%d\",&n);\n\tint *sz=(int*)malloc(sizeof(int)*n);\n\tfor(i=0;isz[i+1])\n\t\t\t{\n\t\t\t\te=sz[i];\n\t\t\t\tsz[i]=sz[i+1];\n\t\t\t\tsz[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",sz[n-1],sz[n-2]);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41671", "code": "int main()\n{\n\tint i,a,b,c,d;\n\tscanf(\"%d\\n\",&c);\n\tc=c-2;\n\tscanf(\"%d%d\",&i,&b);\n\twhile(c>0)\n\t{\n scanf(\"%d\",&a);\n\t\t if(a>=i&&b>=a)\n\t\t {\n i=b;\n\t\t\t b=a;\n\t\t }\n\t\t if(a<=i&&b<=a)\n\t\t {\n\t\t\t i=i;\n\t\t\t b=a;\n\t\t }\n\t\t if(a<=i&&b>=i)\n\t\t {\n\t\t\t d=i;\n\t\t\t i=b;\n\t\t\t b=d;\n\t\t }\n\t\t if(a>=i&&b<=i)\n\t\t {\n\t\t\t d=i;\n\t\t\t i=a;\n\t\t\t b=d;\n\t\t }\n\t\t if(a>=b&&b>=i)\n\t\t {\n\t\t\t i=a;\n\t\t\t b=b;\n\t\t }\n\t\t if(a<=b&&b<=i)\n\t\t {\n\t\t\t i=i;\n\t\t\t b=b;\n\t\t }\n\t\t c--;\n\t}\n\tprintf(\"%d\\n\",i);\n\tprintf(\"%d\\n\",b);\n\treturn 0;\n}"} +{"label": "84", "index": "41672", "code": "int main()\n{\n\tint i=0;\n\tint a;\n\tint b;\n\tint max=0;\n\tint smax=0;\n\tscanf(\"%d\",&a);\n\tfor(i=0;imax)\n\t\t{\n\t\t\tsmax=max;\n\t\t\tmax=b;\n\t\t}\n\t\telse if(b>smax)\n\t\t{\n\t\t\tsmax=b;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\tprintf(\"%d\",smax);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41673", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tint i,b,t,x,y;\n\tfor(i=1;i<=a;i++)\n\t{\n\t\tscanf(\"\\n%d\",&b);\n\t\tif(b>=t)\n\t\t{\t\n\t\t\tx=t;\n\t\t\tt=b;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tif(b>=x)\n\t\t x=b;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",t,x);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41674", "code": "int main()\n{\n\tint n,x[100],i,max,max2;\n\tcin>>n;\n\tmax=0;max2=0;\n\tfor(i=0;i>x[i];\n\tfor(i=0;imax)\n\t\t\tmax=x[i];\n\tfor(i=0;imax2)\n\t\t\tif(x[i]!=max)\n\t\t\tmax2=x[i];\n\t\n\t\tcout<a[i+1])\n\t\t\t {\n e=a[i];\n a[i]=a[i+1];\n a[i+1]=e;\n\t\t\t }\n s=a[n-1];\n\t\t\t b=a[n-2];\n\t\t\t printf(\"%d\\n%d\",s,b);\n}\n "} +{"label": "84", "index": "41676", "code": "int main(int argc, char* argv[])\n{\n int n,i,num[100],max=0,max2=0,e;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax&&num[i]>max2){\n\t\t\te=max;\n\t\t\tmax=num[i];\n max2=e;\n\t\t}else if(num[i]>max2){max2=num[i];}\n\t\t\n\t}\n\n\tprintf(\"%d\\n%d\\n\",max,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41677", "code": "void main()\n{\n\tint m1,m2,m3,a,b,c,x,y,z,w,i;\n\tscanf(\"%d%d%d\",&w,&x,&y);\n\tfor(i=1;i<=w-2;i++)\n\t{\n\t\tscanf(\"%d\",&z);\n\t\ta=x;\n\t\tb=y;\n\t\tc=z;\n\t\tm1=((a+b+fabs(a-b))/2+c+fabs((a+b+(a-b))/2-c))/2;\n\t\tm3=((a+b-fabs(a-b))/2+c-fabs((a+b-(a-b))/2-c))/2;\n\t\tm2=a+b+c-m1-m3;\n\t\tx=m1;\n\t\ty=m2;\n\t}\n\tprintf(\"%d\\n\",m1);\n\tprintf(\"%d\\n\",m2);\n}\n\n"} +{"label": "84", "index": "41678", "code": "int main()\n{\n\tint n,a,b,c,d,e;\n\tscanf(\"%d\\n\",&n);\n\tscanf(\"%d\\n\",&a);\n\tscanf(\"%d\\n\",&b);\n\tif(a>=b)\n\t{\n\t\tc=a;\n\t\td=b;\n\t}\n\telse\n\t{\n\t\tc=b;\n\t\td=a;\n\t}\n\tfor(int i=0;i=c)\n\t\t{\n\t\t\td=c;\n\t\t\tc=e;}\n\t\telse if(e=d)\n\t\t\td=e;\n\t}\n\tprintf(\"%d\\n%d\\n\",c,d);\n\treturn 0;\n}\n\t"} +{"label": "84", "index": "41679", "code": "\nint main()\n{\n\n\tint s, x, i,n,t;\n\tscanf(\"%d\", &n);\n\ts=0;\n\tfor(i=0; i=s) \n {\n\t\t t=s;\n s=x; \n\t\t}\n else if (x>t) \n {\n\t\t\tt=x;\n }\n\t}\n\tprintf(\"%d\\n\", s);\n\tprintf(\"%d\", t);\n\t\treturn 0;\n}"} +{"label": "84", "index": "41680", "code": "int main(){\nint max1,max2,num,n;\nint i=0;\nscanf(\"%d\",&n);\nfor(i=0;imax1){max2=max1;\n\t\tmax1=num;}\n\t\telse max2=num;\n\t}\n\t else if(i>1)\n\t\t{if(num>max1){max2=max1;\n\t\tmax1=num;}\n\t\t else if(num>max2)max2=num;\n\t\t}\n}\nprintf(\"%d\\n%d\\n\",max1,max2);\nreturn 0;}\n"} +{"label": "84", "index": "41681", "code": "int main()\n{\n\tint a[100];\n\tint i,j,max=a[0],lmax=a[1],n,t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax) max=a[i];\n\t}\n\n\tfor(j=0;jlmax&&a[j]max)\n\t\t\tmax=a[i];\n\t\telse if(a[i]>may)\n\t\t\tmay=a[i];\n\t\ti++;\n\t}\n\tif(a[0]>may&&a[0]c)\n\t{ b=c;\n \tc=d;\n\t}\n else if(d>b&&d<=c)\n\t b=d;\n\telse b=b;\n\t c=c;\n\t}\n\tprintf(\"%d\\n%d\",c,b);\n\treturn 0;\n }\n"} +{"label": "84", "index": "41684", "code": "int main()\n{\n\tint n,a[100],m1,i,m2,p,q;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[1]) {m1=a[0];m2=a[1];}\n\telse {m1=a[1];m2=a[0];}\n\tfor(i=2;i=p) {m2=m1;m1=a[i];}\n\t}\n\tprintf(\"%d\\n%d\",m1,m2);\n\treturn 0;\n}"} +{"label": "84", "index": "41685", "code": "int main()\n{\n\tint n,a,b,c,i;\n\tscanf(\"%d\\n\",&n);\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\twhile(n-2)\n\t{scanf(\"%d\",&c);\n\tif(b>a) {if(a>c) {i=b;b=a;a=i;}\n\t else {if(b>c) {a=b;b=c;}\n\t\t\t else a=c;} }\n else {if(bb){b=a;}\n\telse{\n\t\tif(a>d){d=a;}\n\t}\n}\n\nprintf(\"%d\\n%d\",b,d);\nreturn 0;\n}"} +{"label": "84", "index": "41687", "code": "\nint main()\n{\n\tint i,j,k;\n\tint n;\n\tscanf(\"%d\",&n);\n\tint list[n];\n\n\tfor (i=0; i=n-3;j--) {\n\t\tfor (k=0;k<=j;k++) {\n\t\t\tif (list[k] > list[k+1]) {\n\t\t\t\tlist[k]=list[k]+list[k+1];\n\t\t\t\tlist[k+1]=list[k]-list[k+1];\n\t\t\t\tlist[k]=list[k]-list[k+1];\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",list[n-1],list[n-2]);\n\n\treturn 0;\n}\n"} +{"label": "84", "index": "41688", "code": "int main()\n{\n\tint i,n,k,max1,max2;\n\tfloat x[100];\n\tcin>>n;\n\tfor (i=0;i>x[i];\n\t}\n\tmax1=x[0];\n\tmax2=x[0];\n\tfor (i=0;i<=n;i++)\n\t{\n\t\tif (x[i]>max1)\n\t\t{\n\t\t\tmax1=x[i];\n\t\t\tk=i;\n\t\t}\n\t\telse if (x[i]max2)\n\t\t\t\tmax2=x[i];\n\t\t}\n\t}\n\tfor (i=k+1;i<=n;i++)\t\t\n\t{\n\t\tif (x[i]>max2)\n\t\t\tmax2=x[i];\n\t}\n\tcout<1 && b<100){\n for(i=0;ia[i+1]){\n c=a[i];\n a[i]=a[i+1];\n a[i+1]=c;\n \n }\n }\n printf(\"%d\\n\",a[100-k]);\n }\n }else{\n printf(\"error\");\n }\t\n return 0;\n}"} +{"label": "84", "index": "41690", "code": "int main()\n{\n\tint n,a,e,x=0,y=0,i=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ix)\n\t\t{\n\t\t\ty=x;\n\t\t\tx=a;\n\t\t\t\n\t\t}\n\t\tif(ay)\n\t\t{\n\t\t\ty=a;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",x);\n\tprintf(\"%d\\n\",y);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41691", "code": "int main()\n{\n\tint a,b,c,i;\n\tint z[100];\n\tscanf(\"%d\",&a);\n\tfor(i=0;ib){\n\t\t\tb=z[i];\n\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",b);\n\tfor(i=0;ic){\n\t\t\tc=z[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",c);\n\treturn 0;\n}"} +{"label": "84", "index": "41692", "code": "int main()\n{\n int n,i=1;\n int a,b=0,c=0;\n scanf(\"%d\",&n);\n while(i<=n)\n {\n scanf(\"%d\",&a);\n if(a>b)\n c=b,b=a;\n else\n if(a>c)\n c=a;\n i++;\n }\n printf(\"%d\\n%d\",b,c);\n}"} +{"label": "84", "index": "41693", "code": "int main()\n{\n\t int n;\n\t scanf(\"%d\\n\",&n);\n int a,i,sum,som;\n for(i=0;ia){\n\t\t\t\t sum=sum;\n\t\t\t\t som=som;\n\t\t }\n\t }\n\t\t printf(\"%d\\n%d\\n\",sum,som);\n\t\t return 0;\n}\n\t\t \n"} +{"label": "84", "index": "41694", "code": "int main()\n{\n\tint n;\n\tint first,second;\n\tint x,i;\n\tscanf(\"%d\\n\",&n);\n\tif(n>1&&n<100)\n\t{\n\t\tif(n==1)\n\t\t{\n\t\t\tint a;\n\t\t\tscanf(\"%d\",&a);\n\t\t\tfirst = second=a;\n\t\t}\n\t\telse{\n\t\t\tfor(i=0;imax)\n\t {\n\t max=a[j];\n\t }\n\t}\n printf(\"%d\\n\",max);\n\tfor(k=0;kcimax && a[k]!=max)\n\t {\n\t cimax=a[k];\n\t }\n\t}\n\tprintf(\"%d\\n\",cimax);\n\treturn 0;\n}"} +{"label": "84", "index": "41696", "code": "int main ()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[100000];\n\tint i,b,c,d;\n\tfor (i=0;i<1;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tb=a[0];\n\t}\n\tfor (i=1;i<2;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tc=a[i];\n\t\tif (c>=b)\n\t\t{\n\t\t\td=b;\n\t\t\tb=c;\n\t\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\td=c;\n\t\t}\n\t}\n\tfor (i=2;i=b)\n\t\t{\n\t\t\td=b;\n\t\t\tb=c;\t\n\t\t}\n\t\telse if (c=d)\n\t\t{\n\t\t\td=c;\n\t\t}\n\t else \n\t\t{\n\t\t\tb=b;\n\t\t\td=d;\n\t\t}\n\n\t}\n\tprintf(\"%d\\n%d\",b,d);\n\treturn 0;\n}"} +{"label": "84", "index": "41697", "code": "int main()\n{\n\tint an[100];\n\tint a,b,M,m,n,i;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\\n%d\",&a,&b);\n\tif(a>=b){\n\t\tM=a;\n\t\tm=b;\n\t}\n\telse{\n\t\tm=a;\n\t\tM=b;\n\t}\n\tfor(i=2;iM){\n\t\t\tm=M;\n\t\t\tM=an[i];\n\t\t}\n\t\telse if(an[i]m){\n\t\t\tm=an[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",M,m);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41698", "code": "int main (){\n\tint a;\n\tscanf(\"%d\",&a);\n\tint b,c,d,e,n;\n\tn=2;\n\twhile(n<=a){\n\t\tif(n==2)\n\t\t{\n\t\t\tscanf(\"%d %d\",&d,&e);\n\t\t\tif(d>=e){\n\t\t\t\tb=d;\n\t\t\t\tc=e;\n\t\t\t}\n\t\t\telse{b=e;\n\t\t\tc=d;}\n\t\t}\n\t\telse{\n\t\t\tscanf(\"%d\",&d);\n\t\t\tif(d>=b){\n\t\t\t\tc=b;\n\t\t\t\tb=d;\n\t\t\t}\n\t\t\telse if (d>=c){\n\t\t\t\tc=d;}\n\t\t}\n\tn++;\n\t}\n\tprintf(\"%d\\n%d\\n\",b,c);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41699", "code": "main()\n{ \n int n=0; //????\n int i=0;\n int max=0;\n int cimax=0;\n cin>>n; \n int a[n];\n for(i=0;i<=n-1;i++)\n {\n cin>>a[i];\n }\n for(i=0;i<=n-1;i++) //????? \n {\n if(maxa[1])\n\t { m=a[0];\n\t next=a[1];}\n\t if(a[1]>a[0])\n\t {m=a[1];\n\t next=a[0];}\n\t for(i=0;im)\n\t m=a[i];}\n\t for(i=0;inext)\n\t\t next=a[i];}\n\tprintf(\"%d\\n%d\",m,next);\n\treturn 0;\n}"} +{"label": "84", "index": "41701", "code": "void main()\n{\n\tint n,i,k,a[102],j;\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++) scanf(\"%d\",&a[i]);\n\tfor (i=1;i<=2;i++)\n\t{\n\t\tk=1;\n\t\tfor (j=2;j<=n;j++) if (a[j]>a[k]) k=j;\n\t\tprintf(\"%d\\n\",a[k]);\n\t\ta[k]=-10000;\n\t}\n\n\n}"} +{"label": "84", "index": "41702", "code": "int main()\n{\nint n;\nscanf(\"%d\",&n);\n int num[n],temp;\n int i=0;\n \n while(ix;y--)\n {\n if(num[y]>num[y-1])\n {\n temp=num[y];\n num[y]=num[y-1];\n num[y-1]=temp;\n }\n }\n }\n printf(\"%d\\n%d\\n\",num[0],num[1]);\nreturn 0;\n}"} +{"label": "84", "index": "41703", "code": "\nint main()\n{\n int a[100],n,i,max,sec;\n cin>>n;\n for(i=0;i>a[i];}\n max=a[0];\n sec=a[0];\n for(i=1;imax) max=a[i];\n else if (a[i]>sec) sec=a[i];\n }\n cout<> N;\n\tfor (int i = 0; i < N; i ++)\n\t\tcin >> A[i];\n\tsort(A, A + N);\n\tcout << A[N - 1] << endl << A[N - 2] << endl;\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41705", "code": "void main()\n{\n int a[100],i,max=0,smax=0,n;\n scanf(\"%d\",&n);\n for (i=0;imax)\n max=a[i];\n }\n for (i=0;ismax)&&(a[i]!=max))\n smax=a[i];\n }\n printf(\"%d\\n\",max);\n printf(\"%d\\n\",smax);\n}"} +{"label": "84", "index": "41706", "code": "int main()\n{\n int i;\n scanf(\"%d\",&i);\n int a,max=0,sec=0;\n while(i>0&&i<100)\n {\n scanf(\"%d\",&a);\n if(a>=max)\n {sec=max;\n max=a;}\n if(asec)\n sec=a;\n i--;\n }\nprintf(\"%d\\n\",max);\nprintf(\"%d\\n\",sec);\nreturn 0;\n}"} +{"label": "84", "index": "41707", "code": "int main(){\n\tint max=0,mbx=0,i,x;\n\tscanf(\"%d\\n\",&i);\n\twhile(i>=0){\n\t\tscanf(\"%d\\n\",&x);\n\t\ti--;\n\t\tif(i>=0){\n\t\t\tif(max>x&&mbxx)\n\t\t\t\t;\n\t\t\telse if(maxa[1])\n\t\t{\n\t\t\te=a[1];\n\t\t\ta[1]=a[i];\n\t\t\ta[2]=e;\n\t\t}\n\t\telse if(a[i]zs[m+1])\n\t\t{\n int l;\n\t\t l=zs[m];\n\t\t zs[m]=zs[m+1];\n\t\t zs[m+1]=l;\n\t\t}\n\t\t\n\t} \n\tprintf(\"%d\\n\",zs[N-1]);\n \tint n;\n for(n=0;nzs[n+1])\n\t\t{\n int e;\n\t\t e=zs[n];\n\t\t zs[n]=zs[n+1];\n\t\t zs[n+1]=e;\n\t\t}\n\t\t\n\t} \n\tprintf(\"%d\",zs[N-2]);\n\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41714", "code": "\nint main()\n{\n int x,max,secondmax,n,t,i;\n scanf(\"%d %d\",&n,&x);\n secondmax=max=x;\n\t for(i=1;imax)\n\t\t {\n\t\t\t secondmax=max;\n\t\t\t max=t;\n\t\t }\n\t\t else if(t>secondmax)\n\t\t {\n\t\t\t secondmax=t;\n\t\t }\n\t\t else if((max==secondmax)&&(i==1))\n\t\t {\n\t\t\t t=secondmax;\n\t\t }\n\t }\n printf(\"%d\\n%d\\n\",max,secondmax);\n return 0;\n}"} +{"label": "84", "index": "41715", "code": "int main()\n{\n int n,i,b,c;\n int a[100];\n scanf(\"%d\",&n);\n \n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&a[i-1]);\n }\n b=a[0];\n for(i=0;ib)b=x;\n \n \n i++;\n \n }\n if(a=b[1])\n\t\t{\n\t\t\tc=b[2];\n\t\t\tb[2]=b[1];\n\t\t\tb[1]=b[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(b[i]>=b[2])\n\t\t\t{\n\t\t\t\tc=b[2];\n\t\t\t\tb[2]=b[i];\n\t\t\t}\n\t\t}\n\t}\n\t}\n\tprintf(\"%d\\n\",b[1]);\n\tprintf(\"%d\\n\",b[2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41719", "code": "int main()\n{\n int sz[100];\n int n,i;\n scanf(\"%d\\n\",&n);\n if((n>1)&&(n<100))\n {\n\t for(i=0;isz[j+1])\n\t\t\t{\n\t\t\t e=sz[j+1];\n\t\t sz[j+1]=sz[j];\n\t\t\t sz[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",sz[n-1],sz[n-2]);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41720", "code": "int main ( )\n{\n\tint n,i,k;int a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;i--)\n\t{\n\t\tif(a[i]>a[i-1])\n\t\t{\n\t\t\tk=a[i];a[i]=a[i-1];a[i-1]=k;\n\t\t}\n\t}\n\tfor(i=n-1;i>1;i--)\n\t{\n\t\tif(a[i]>a[i-1])\n\t\t{\n\t\t\tk=a[i];a[i]=a[i-1];a[i-1]=k;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",a[0],a[1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41721", "code": "\nint main()\n{\n int i=0;\n int n,tmp=0;\n int a=0,b=0;\n scanf(\"%d\",&n);\n\n for(i=0;ia)\n {\n b=a;\n a=tmp;\n }\n else \n {\n if (tmp>b)\n b=tmp;\n }\n }\n \n\n\nprintf(\"%d\\n\",a);\nprintf(\"%d\",b);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41722", "code": "int main()\n{\n int len,i,max,cmax;\n int n[100];\n scanf(\"%d\",&len);\n for(i=0;i> num;\n int i;\n int keyin;\n for(i=1;i<=num;i++)\n {\n cin >> keyin;\n if(keyin >= a)\n { \n b =a;\n a= keyin;\n }\n else if(keyin >b)\n { \n b= keyin;\n }\n }\n cout << a <= largest )\n {\n second = largest;\n largest = number;\n }\n else if (second< number&&number < largest)\n second =number;\n else if(number<= second)\n\t second=second;\n \n counter++;\n }\n printf ( \"%d\\n\", largest );\n printf ( \"%d\\n\", second);\n} "} +{"label": "84", "index": "41725", "code": "int main()\n{\n\tint n,a[101],i,max,second;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\t{scanf(\"%d\",&a[i]);}\n\tif(a[1]>a[2])\n\t\t{max=a[1];\n\t\tsecond=a[2];}\n\telse\n\t\tmax=a[2];\n\t\tsecond=a[1];\n\tif(n<=2)\n\t\t{printf(\"%d\\n\",max);\n\t\tprintf(\"%d\\n\",second);}\n\telse\n\t{\tfor(i=3;i<=n;i++)\n\t\t{\tif(a[i]>max)\n\t\t\t{second=max;\n\t\t\tmax=a[i];}\n\t\t\telse if(max>a[i]&&second=a)\n\t\t{\n\t\t\tif(c>=b)\n\t\t\t{a=c;\n\t\t\tb=d-e;\n\t\t\tc=d+e;\n\t\t\t}\n\t\telse {a=d-e;\n\t\t\tb=d+e;\n\t\t\tc=c;\n\t\t\t}\n\t\t}\n\t\t\telse \n\t\t\t{if(a<=b)\n\t\t\t\t{a=d-e;\n\t\t\t\tb=d+e;\n\t\t\t\tc=c;}\n\t\t\telse {a=d+e;\n\t\t\t\tb=d-e;\n\t\t\t\tc=c;\n\t\t\t\t}\n\t\t\t}\t\n\t\tif(b>=c)b=b;\n\t\telse b=c;\n\t}\n\tprintf(\"%d\\n%d\",a,b);\n}\n"} +{"label": "84", "index": "41727", "code": "void main()\n{\n\tint i,n,a[100],m1=0,m2=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;ia[i]?m1:a[i];\n\tfor(i=0;ia[i]?m2:a[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",m1,m2);\n}\n"} +{"label": "84", "index": "41728", "code": "main()\n{\n\tint i=0,j=1,k=1,m=1,n,str[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;istr[j])\n\t\t{\n\t\t\ti=str[j];\n\t\t\tstr[j]=str[j-1];\n\t\t\tstr[j-1]=i;\n\t\t}\n\t}\n\tj=1;\n\n\t for(j=1;jstr[j])\n\t\t{\n\t\t\ti=str[j];\n\t\t\tstr[j]=str[j-1];\n\t\t\tstr[j-1]=i;\n\t\t}\n\t}\n\n\n\n\tprintf(\"%d\\n\",str[n-1]);\n printf(\"%d\\n\",str[n-2]);\n\n}\n"} +{"label": "84", "index": "41729", "code": "void main()\n{\n\tint n,a,i,b,c,max1,max2;\n\tscanf(\"%d\",&n);\n\ti=1;\n scanf(\"%d\",&a);\n scanf(\"%d\",&b);\n\tif(ab)\n\t{\n\t\tmax1=b;\n\t\tmax2=a;\n\t}\n\n\twhile(i<=(n-2))\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tif(c>=max2&&c=max1)\n\t\t{\n\t\t\tmax2=max2;\n\t\t\tmax1=c;\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n\",max1);\n\tprintf(\"%d\",max2);\n}\n\n"} +{"label": "84", "index": "41730", "code": "\nint main()\n{\n\tint i, n, a[200], max, submax;\n\tscanf(\"%d\", &n);\n\tfor (i=0; i max) {\n\t\t\tsubmax = max;\n\t\t\tmax = a[i];\n\t\t} else if (a[i] > submax) \n\t\t\tsubmax = a[i];\n\n\tprintf(\"%d\\n%d\", max, submax);\n\n\treturn 0;\n}\n"} +{"label": "84", "index": "41731", "code": "int compare (const void * a, const void * b) \n{ \n return ( *(int*)b - *(int*)a );\n}\n\nint main(){\n\tint n;\n\tcin>>n;\n\tint a[100];\n\tfor(int i=0;i>a[i];\n\tqsort(a,n,sizeof(int),compare);\n\tfor(int i=0;i<=1;i++)cout<=max)\n\t \n\t\t{sec=max;\n\t\tmax=k[i];}\n else if((k[i]=sec))\n\t\tsec=k[i];\n\t\t\n\t }\n\t printf(\"%d\\n\",max);\n\t printf(\"%d\",sec);\n\t return 0; \n\t\n\t}\n"} +{"label": "84", "index": "41733", "code": "int main()\n{\n int a[100],n,i,m1=0,m2=0;\n cin>>n;\n for(i=1;i<=n;i++)\n {\n cin>>a[i];\n if(a[i]>m1) \n {\n m2=m1; m1=a[i];\n \n } \n else if(m1>a[i]&&a[i]>m2) m2=a[i];\n }\n cout<a)\n{\nc=a;\na=b;\nb=c;\n}\nfor(i=1;i<=n-2;i++)\n{\nscanf(\"%d\\n\",&c);\nif(c>a)\n{b=a;\na=c;}\nelse if(c>b)\nb=c;\n}\nprintf(\"%d\\n%d\\n\",a,b);\nreturn 0;\n}\n"} +{"label": "84", "index": "41736", "code": "void main()\n{\n int a[100];\n long n;\n int i,j,t;\n scanf(\"%d\",&n);\n for(i=0;ia[i+1])\n\t\t {\n\t\t\t t=a[i];\n\t\t\t a[i]=a[i+1];\n\t\t\t a[i+1]=t;\n\t\t }\n\t\t for(i=n-1;i>n-3;i--)\n\t\t\t printf(\"%d\\n\",a[i]);\n}\n "} +{"label": "84", "index": "41737", "code": "\nint main()\n{\n int a[1000];\n int max, max2;\n int n;\n scanf(\"%d\", &n);\n for(int i=0; i max)\n max = a[i];\n }\n\n for(int i=0; imax2) && (a[i]!=max)){\n max2 = a[i];\n }\n }\n\n printf(\"%d\\n%d\\n\", max, max2);\n\n return 0;\n}"} +{"label": "84", "index": "41738", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a,i,b,c,d;\n\tscanf(\"%d\\n\",&a);\n\tscanf(\"%d\\n\",&c);\n\tfor(i=1;i<=n-2;i++){\n\t\t\t\t\t scanf(\"%d\\n\",&b);\n\t\t\t\t\t if(b>a&&a>c){\n\t\t\t\t\t \t\t c=a;\n\t\t\t\t\t \t\t a=b;\t\t\t \t\t \n\t\t\t\t\t\t\t }\n\t\t\t\t\t if(b>c&&c>a){\n\t\t\t\t\t \t\t\t a=b;\n\t\t\t\t\t \t\t\t c=c;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t if(a>b&&b>c){\n\t\t\t\t\t \t\t\t a=a;\n\t\t\t\t\t \t\t\t c=b;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t if(a>c&&c>b){\n\t\t\t\t\t \t\t\t a=a;\n\t\t\t\t\t \t\t\t c=c;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t if(c>a&&a>b){\n\t\t\t\t d=c;\n\t\t\t\t c=a;\n\t\t\t\t a=d;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t if(c>b&&b>a){\n\t\t\t\t\t \t\t\t a=c;\n\t\t\t\t\t \t\t\t c=b;\n\t\t\t\t\t\t\t\t }\t\t \n\t\t\t\t\t }\n printf(\"%d\\n%d\",a,c); \n return 0;\n}"} +{"label": "84", "index": "41739", "code": "int main(){\n\tint sz[1000],n,i,e,k;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i1;k--){\n\t\tfor(i=0;isz[i+1])\n {\n e=sz[i+1];\n sz[i+1]=sz[i];\n\t sz[i]=e;\n\n }\n }\n\n \n for(i=0;isz[i+1])\n {\n d=sz[i+1];\n sz[i+1]=sz[i];\n\t sz[i]=d;\n }\n }\n printf(\"%d\\n%d\\n\",sz[n-1],sz[n-2]);\n return 0;\n}"} +{"label": "84", "index": "41741", "code": "int main()\n{\n\tint sz[100];\n\tint i,n,a,b,k,s;\n\tscanf(\"%d\\n\",&n);\n\tif (n>1&&n<100){\n\tfor(i=0;isz[k+1]){\n\t\t\ta=sz[k+1];\n\t\t\tsz[k+1]=sz[k];\n\t\t\tsz[k]=a;\n\t\t}\n for(s=0;ssz[s+1]){\n\t\t\tb=sz[s+1];\n sz[s+1]=sz[s];\n\t\t\tsz[s]=b;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",sz[n-1],sz[n-2]);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41742", "code": "void main()\n{\n\tint n,i,j,k,l,max,max2,smax;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\t\tmax=a[0],max2=0;\n\t\tfor(j=0;j<=n-1;j++)\n\t\t{\n\t\t\tif(a[j]>max)\n\t\t\t\tmax=a[j],max2=j;\n\t\t}\n\t\tk=a[n-1];\n\t\ta[n-1]=a[max2];\n\t\ta[max2]=k;\n\t\tsmax=a[0];\n\t\tfor(l=0;l<=n-2;l++)\n\t\t{\n\t\t\tif(a[l]>smax)\n\t\t\t\tsmax=a[l];\n\t\t}\n\t\tprintf(\"%d\\n%d\\n\",max,smax);\n}"} +{"label": "84", "index": "41743", "code": "int main()\n{\n int max[2]={0};\n int n,number;\n cin>>n;\n for(int i=0;i>number;\n if(number>max[0])\n {\n max[1]=max[0];\n max[0]=number;\n }\n else if(number>max[1])\n {\n max[1]=number;\n }\n }\n cout<sz[0]){\n\t\t\te=sz[0];\n\t\t\tsz[0]=sz[i];\n\t\t\tsz[1]=e;\n\t\t}else if((sz[0]>sz[i])&&(sz[i]>sz[1])){\n\t\t\tsz[1]=sz[i];\n\t\t}\n\t}\nprintf(\"%d\\n%d\\n\",sz[0],sz[1]);\nreturn 0;\n\t}\n\t"} +{"label": "84", "index": "41745", "code": "\nint main(int argc, char *argv[])\n{int i,index,k,n,temp;\nint a[100];\nscanf(\"%d\",&n);\nfor(i=0;ia[index]) index=i;\n temp=a[index];\n a[index]=a[k];\n a[k]=temp; }\n printf(\"%d\\n%d\\n\",a[0],a[1]);\n \n return 0;\n}\n"} +{"label": "84", "index": "41746", "code": "void main()\n{\n\tint *p,i,n,max,sec;\n\tp=(int *)(malloc(10000*sizeof(int)));\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax) max=*(p+i);\n\t\telse if(*(p+i)>sec) sec=*(p+i);\n\t}\n\tprintf(\"%d\\n%d\",max,sec);\n}"} +{"label": "84", "index": "41747", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tif(n<=1||n>=100)\n\t{\n\t\treturn 0;\n\t}\n\t\n\tint temp;\n\tint max, lmax;\n\tscanf(\"%d\", &max);\n\tscanf(\"%d\", &lmax);\n\tif(lmax > max)\n\t{\n\t\ttemp=lmax;\n\t\tlmax=max;\n\t\tmax=temp;\n\t}\n\t\n\tint i=3;\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d\", &temp);\n\t\tif(temp>max)\n\t\t{\n\t\t\tlmax=max;\n\t\t\tmax=temp;\n\t\t}\n\t\telse if(temp>lmax)\n\t\t{\n\t\t\tlmax=temp;\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n\", max);\n\tprintf(\"%d\", lmax);\n\treturn 0;\n}"} +{"label": "84", "index": "41748", "code": "\nint main()\n{\n\tint n,i,x;\n\tint first,second;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ifirst)\n\t\t\t{\n\t\t\t\tsecond=first;\n\t\t\t\tfirst=x;\n\t\t\t}\n\t\t\telse if(x=first)\n\t\t\t{\n\t\t\t\tsecond=x;\n\t\t\t\tfirst=x;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(x>first)\n\t\t\t{\n\t\t\t\tsecond=first;\n\t\t\t\tfirst=x;\n\t\t\t}\n\t\t\telse if(x>second)\n\t\t\t{\n\t\t\t\tsecond=x;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",first);\n\tprintf(\"%d\\n\",second);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41749", "code": "int main()\n{\n\tint n,a,b,i,t;\n\tscanf(\"%d%d%d%d\",&n,&a,&b,&t);\n\tif(a>b){\n\t\ta = a;\n\t\tb = b;\n\t}\n\telse\n\t{\n\t\tt = a;\n\t\ta = b;\n\t\tb = t;\n\t};\n\n for(i=3;i<=n;i++)\n {\n\t\tint c;\n\t\tscanf(\"%d\",&c);\n if(c>a&&c>b)\n\t{\n\t\tt = a;\n\t\ta = c;\n\t\tb = t;\n\t\n\t}\n else if(cb)\n\t{\n\t\ta = a;\n\t\tb = c;\n\t}\n\telse {\n\t\ta = a;\n\t\tb = b;\n\t};\n\t};\n\t\tprintf(\"%d\\n\",a);\n\t\tprintf(\"%d\",b);\n\t\n\treturn 0;\n}\n"} +{"label": "84", "index": "41750", "code": "int main()\n{\n\tint num,len;\n\tint max1=0,max2=0;\n\tint tmp,i;\n\tscanf(\"%d\",&len);\n\tfor (i = 1;i<=len;i++)\n\t{\n\t\tscanf(\"%d\",&num);\n\t\tif(num>max1)\n\t\t{\n\t\t\ttmp=num;\n\t\t\tnum=max1;\n\t\t\tmax1=tmp;\n\t\t\tif (num>max2)\n\t\t\t{\n\t\t\t\ttmp=num;\n\t\t\t\tnum=max2;\n\t\t\t\tmax2=tmp;\n\t\t\t}\n\t\t}\n\t\tif(max1>num&&num>max2)\n\t\t{\n\t\t\ttmp=num;\n\t\t\tnum=max2;\n\t\t\tmax2=tmp;\n\t\t}\n\t\t\n\t}\n\tprintf(\"%d\\n%d\\n\",max1,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41751", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,shu[100],i,j,a=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ishu[j+1])\n\t\t\t{\n\t\t\t\ta=shu[j];\n\t\t\t\tshu[j]=shu[j+1];\n\t\t\t\tshu[j+1]=a;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<3;i++)\n\t{\n\t\tprintf(\"%d\\n\",shu[n-i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "84", "index": "41752", "code": "int main(){\n\tint a,b,c,d,e,f;\n\tint i=1;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d%d\",&b,&c);\n\td=(b>=c)?b:c;\n\te=(b<=c)?b:c;\n\tfor(i=3;i<=a;i++){\n\t\tscanf(\"%d\",&f);\n\t\tif(d<=f){\n\t\t\te=d;\n\t\t\td=f;\n\t\t}\n\t\telse{\n\t\t\te=(e>=f)?e:f;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",d,e);\n\treturn 0;\n}"} +{"label": "84", "index": "41753", "code": "int main()\n{\n int n,a=0,b=0,shuzu[111];\n scanf(\"%d\",&n);\n int i,j;\n for(i=0;inum[i+1])\n\t\t\t{\n\t\t\t\te=num[i+1];\n\t\t\t\tnum[i+1]=num[i];\n\t\t\t\tnum[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",num[len-1],num[len-2]);\n\treturn 0; \n}"} +{"label": "84", "index": "41756", "code": "void main()\n{\nint a[100],max1,max2,n,i,*pa;\nscanf(\"%d\",&n);\nfor(i=0;imax1)\n{max1=a[i];\n pa=&a[i];\n}\n}\n*pa=0;\npa=a;\nmax2=a[0];\nfor(i=1;imax2)\n max2=a[i];\n}\nprintf(\"%d\\n%d\",max1,max2);\n}\n"} +{"label": "84", "index": "41757", "code": "int main(){\n\tint n,i,num,max1,max2,exc;\n\ti=1;\n\tmax1=0;\n\tmax2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&num);\n\t\tif(i==1){max1=num;}\n\t\telse if(i==2){\n\t\t\tif(max1>=num){\n\t\t\t\tmax2=num;\n\t\t\t}else if(num>max1){\n\t\t\t\texc=max1;\n\t\t\t\tmax2=exc;\n\t\t\t\tmax1=num;\n\t\t\t}\n\t\t}else if(i>=3){\n\t\t\tif(num>max1){\n\t\t\t exc=max1;\n\t\t\t\tmax2=exc;\n\t\t\t\tmax1=num;\n\t\t\t}else if(num>max2){\n\t\t\t\tmax2=num;\n\t\t\t}\n\t\t}\n\t}\n\t\tprintf(\"%d\\n%d\\n\",max1,max2);\n\t\treturn 0;\n\t}\n\n\t"} +{"label": "84", "index": "41758", "code": "int main () {\n\tint result=0,p=0;\n\tint num,n;\n\tint i=1;\n scanf(\"%d\", &n);\n\twhile(i<=n&&n<=100){\n\t\tscanf(\"%d\", &num);\n\t if(i == 1){\n\t\t\t result = num;\t\t\t\n\t\t} \n\t\t else{ \n\t\t if(num > result){\n\t\t\t p=result;\n\t\t\t\t result = num; }\n\t\t\t else if(nump){\n\t\t\t\t p=num;}\n\t }\n\t\t i++;\n\t}\n\tprintf(\"%d\\n%d\", result,p);\n\treturn 0;\n}"} +{"label": "84", "index": "41759", "code": "int main(){\n\tint num,max1,max2;\n\tint n;\n\tint a;\n\tint i;\n scanf(\"%d%d\",&n,&num);\n\tmax1= num;\nscanf(\"%d\",&num);\n\t\tif (num>max1){\n\t\t a=max1;\n\t\t max1=num;\n\t\t max2=a;}\n\t\telse{\n\t\t\tmax2=num;\n\t\t\t}\n for (i=0;imax1){\n\t\t a=max1;\n\t\t max1=num;\n\t max2=a;}\n\telse if (num>max2)\n\t\tmax2=num;}\n printf(\"%d\\n%d\\n\",max1,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41760", "code": "int main()\n{\n int n,a,b,c,d,i;\n\tscanf(\"%d\\n%d\\n%d\\n\",&n,&a,&b);\n\tif(a=a){\n\t\t\tb=a;\n\t\t\ta=d;\n\t\t}\n\t\telse if(d>=b){\n\t\t\tb=d;\n\t\t}\n\t}\nscanf(\"%d\",&d);\n\t\tif(d>=a){\n\t\t\tb=a;\n\t\t\ta=d;\n\t\t}\n\t\telse if(d>=b){\n\t\t\tb=d;\n\t\t}\n\tprintf(\"%d\\n%d\\n\",a,b);\n return 0;\n}"} +{"label": "84", "index": "41761", "code": "void main()\n{\n\tint n,a,max,sec,i,x;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&x);\n\tmax=x;\n\tsec=x;\n\tfor (i=2;i<=n;i++){\n\t\tscanf(\"%d\",&x);\n\t\tif (x>=max)\n\t\t\tmax=x;\n\t\tif ((x=sec))\n\t\t\tsec=x;}\n\tprintf(\"%d\\n\",max);\n\tprintf(\"%d\\n\",sec);\n}"} +{"label": "84", "index": "41762", "code": "\nint main(){\n\tint a[100]={0};\n\tint i,j,t,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[i+1]){\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",a[n],a[n-1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41763", "code": "int main(){\n\tint n,a,b,i,num;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\tscanf(\"%d\",&num);\n\t if(i==1){\n\t a=num;\n\t\t\tb=num;\n\t \n\t }else if(num>a){\n\t\t b=a;\n\t\t\ta=num;\n\t\t}else if((a>num)&&(num>b)){\n\t\t\tb=num;\n\t\t}\n\t\n\t}\nprintf(\"%d\\n%d\\n\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41764", "code": "int main ()\n\n{\n\tint sz[100];\n int i,N,max1,max2;\n\n\tscanf(\"%d\",&N);\n\tfor( i=0;isz[1]?sz[0]:sz[1];\n\tmax2=sz[0]>sz[1]?sz[1]:sz[0];\n\tfor(i=2;imax1)\n\t\t{\n\t\t\tmax2=max1;\n\t\t\tmax1=sz[i];\n\t\t}\n\t\telse if(sz[i]>max2)\n\t\t\tmax2=sz[i];\n\t}\n\tprintf(\"%d\\n\",max1);\n\tprintf(\"%d\\n\",max2);\nreturn 0;\n}\n"} +{"label": "84", "index": "41765", "code": "int main()\n{\n\tint M,m,n,i,a1,a2,a;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d%d\",&a1,&a2);\n if(a1>a2)\n\t{\n\t\tM=a1;\n\t\tm=a2;\n\t}\n\telse\n\t{\n\t\tM=a2;\n\t\tm=a1;\n\t}\n\tfor(i=3;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a);\n\t if(m>a)\n\t\t{\n\t\t\tM=M;\n\t\t\tm=m;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a>M)\n\t\t\t{\n\t\t\t\tm=M;\n\t\t\t\tM=a;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tM=M;\n\t\t\t\tm=a;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",M,m);\n\treturn 0;\n}"} +{"label": "84", "index": "41766", "code": "int main()\n{\nint n, i, max, sec, a[100];\nscanf(\"%d\",&n);\nfor(i=0;imax){\nmax=a[i];\n }\nelse if(a[i]sec){\nsec=a[i];\n }\n}\nprintf(\"%d\\n%d\",max,sec);\nreturn 0;\n}"} +{"label": "84", "index": "41767", "code": "int max(int a,int b){\n\t\n\tif(a>=b)\n\t\t\treturn a;\n\t\telse \n\t\t\treturn b;\n\t}\nint min(int a,int b){\n\tif(a>=b){\n\t\treturn b;\n\t}\n\telse return a;\n}\n\nvoid main (){\n\n\tint i,c;\n\tint n;\n\tint a=0;\n\tint b=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&c);\n\t\tb=max(min(a,c),min(a,b));\n\t\ta=max(a,c);\n\t}\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\n}\n"} +{"label": "84", "index": "41768", "code": "int main(){\n\tint a,m,i,num,n;\n\tscanf(\"%d\",&a);\n\ti=1;\n while(i<=a){\n\t\tscanf(\"%d\",&num);\n\t\tif(i==1){\n\t\tn=0,m=num;}\n\t\telse{\n if((num>m)&&(num>n)){\n\t\t\tn=m,m=num;}\n\t\telse if((numn)){\n\t\t\tn=num;}\n\t}\n\t\ti=i+1;\n\t}\n\tprintf(\"%d\\n%d\",m,n);\n\t\t\treturn 0;\n}"} +{"label": "84", "index": "41769", "code": "int main()\n{\n\tint n,t1=0,t2=0,i=0;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\t/*if(i==0)\n\t\t{\n\t\t\tscanf(\"%d\",&t);\n\t}*/\n\t\t\twhile(isz[i])\n\t\t\t\tt2=sz[i];\n\t\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n%d\",t1,t2);\n\treturn 0;\n}"} +{"label": "84", "index": "41770", "code": "int main()\n{\n\tint first=-1;\n\tint second=-1;\n\tint i, n, a;\n\tscanf(\"%d\", &n);\n\tfor(i=1;i<=n; i++)\n\t{\n\t\tscanf(\"%d\", &a);\n\t\tif(i==2){\n\t\t\tif(a>first){\n\t\t\t\tsecond=first;\n\t\t\t\tfirst=a;\n\t\t\t}else{\n\t\t\t\tsecond=a;\n\t\t\t}\n\t\t}\n\t\tif (a>first)\n\t\t{second=first;\n\t\t\tfirst=a;\n\t\t}\n\t\telse\n\t\t{continue;}\n\t}\n printf(\"%d\\n%d\",first,second);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41771", "code": "int main()\n{\n\tint n,a[100],x,y,m=0,i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ix)\n\t\t{\tx=a[i];\n\t\t m=i;\n\t\t}\n\t}\n if(m==0)\n\t{\n\t\ty=a[1];\n\t\tfor(i=2;iy)\n\t\t\t\ty=a[i];\n\t\t}\n\t}\n\telse\n\t{\n\t\ty=a[0];\n\t\tfor(i=1;iy)\n\t\t\t\t\ty=a[i];\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",x,y);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41772", "code": "\nint main(int argc, char* argv[])\n{\n\tint len,i,m,b1,b2,a[100];\n\tscanf(\"%d\",&len);\n for(i=0;i0;i--)\n\t for(j=1;ja[i+1])\n\t\t\t{\t\n\t\t\t\tt=a[i];\n\t\t\t a[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\tprintf(\"%d\\n\",a[b-1]);\n\tprintf(\"%d\\n\",a[b-2]);\n}\n"} +{"label": "84", "index": "41775", "code": "\n\nint main(int argc, char* argv[])\n{\n\tint num[1000],i,j,a,r,b,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=a)\n\n\t{\n\t\ta=num[j];\n\t}\n\nb=-10000;\nfor(r=0;r=b&&num[r]!=a)\n{\n\tb=num[r];\n}\nprintf(\"%d\\n%d\",a,b);\n\n\treturn 0;\n}\n"} +{"label": "84", "index": "41776", "code": "int max(int a[100],int n,int m)\n{\n\tint y,i;\n\tif(a[0]==m) y=a[1];\n else y=a[0];\n\tfor(i=0;iy) y=a[i];\n\t}\n\treturn y;\n}\nint main()\n{\n\tint a[100],n,i,m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ib?a:b;\n return(c); \n }\n"} +{"label": "84", "index": "41778", "code": "\nvoid main()\n{\n\tint n,i,max,secondmax;\n\tint num[100];\n\n\tscanf(\"%d\",&n);\n\n\tscanf(\"%d\",&num[0]);\n\tmax=num[0];\n\tsecondmax=num[0];\n\n\tfor(i=1;imax)\n\t\t\tmax=num[i];\n\t\telse if(num[i]>secondmax)\n\t\t\tsecondmax=num[i];\n\t}\n\n\tprintf(\"%d\\n%d\\n\",max,secondmax);\n}\n"} +{"label": "84", "index": "41779", "code": "\nvoid main()\n{\n\tint I,n,a[100],i,j,p;\n\tscanf(\"%d\",&n);\n\n\tfor(I=0;Ia[j]){\n\t\t\t\tp=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=p;\n\t\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",a[0],a[1]);\n}"} +{"label": "84", "index": "41780", "code": "int main()\n{\nint a,b,c,d,e,i;\ni=1;\nscanf(\"%d\\n\",&a);\nwhile(i<=a)\n{\n\tscanf(\"%d\",&b);\nif(i==1)\n{\nc=b;\nd=b;\n}\n\tif(b>c)\n{\ne=c;\nc=b;\nif(e>d)\nd=e;\n}\nelse if(b>d)\nd=b;\ni=i+1;\n}\nprintf(\"%d\\n%d\\n\",c,d);\n\nreturn 0;\n}\n\n"} +{"label": "84", "index": "41781", "code": "int main()\n{\n\tint n;\n\tint number[120];\n\tscanf(\"%d\",&n);\n\tint i,maxpos;\n\t\n\tfor (i=0;imax) {\n\t\t\tmax=number[i];\n\t\t\tmaxpos=i;\n\t\t}\n\t}\n\tfor (i=0;isndmax)\n\t\t\tsndmax=number[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",max,sndmax);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41782", "code": "\nint main()\n{\n int n,i,a;\n int max=0,min=0,temp=0;\n \n scanf(\"%d\",&n);\n for(i=1; i<=n; i++)\n {\n scanf(\"%d\",&a);\n if(i<=1)\n { \n \n max=max>a?max:a;\n \n }\n if(max1)\n {\n min=max;\n max=a;\n }\n if(max>a&&min1)\n min=a;\n \n }\n printf(\"%d\\n%d\",max,min);\n \n return 0;\n}\n"} +{"label": "84", "index": "41783", "code": "int main()\n{\n\tint a[100];\n\tint n,i;\n\tint p=0,q=0;\n\tcin>>n;\n\tfor(i=0;i>a[i];\n\tfor(i=0;ip)\n\t\t\tq=p,p=a[i];\n\t\telse if(a[i]>q)\n\t\t\tq=a[i];\n\tcout<sz[max])\n {\n max=i;\n }\n }\n if(max!=n-k)\n {\n e=sz[max];\n sz[max]=sz[n-k];\n sz[n-k]=e;\n }\n printf(\"%d\\n\",sz[n-k]); \n }\n \n return 0;\n }\n \n"} +{"label": "84", "index": "41785", "code": "int main(){\n int a,i,b,c,q,ist,sec;\n\tscanf(\"%d\",&a);\n\ti=0;\n\tscanf(\"%d%d\",&b,&c);\n\tif(b>c)ist=b,sec=c;\n\telse ist=c,sec=b;\n\twhile(iist)\n\t\t{sec=ist;ist=q;}\n\t\tif(q>sec&&qm1) {m1=a[i]; j=i;}\n\ta[j]=0;\n\tfor (i=0;im2) m2=a[i];\n\tprintf(\"%d\\n%d\\n\",m1,m2);\n}\n"} +{"label": "84", "index": "41788", "code": "int main()\n{\n\tint a[100];\n\tint max,smax,i,n;\n\tmax=smax=i=n=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tif(a[1]>a[2])\n\t{\n\t\tmax=a[1];\n\t\tsmax=a[2];\n\t}\n\telse\n\t{\n\t\tmax=a[2];\n\t\tsmax=a[1];\n\t}\n\tfor(i=3;i<=n;i++)\n\t{\n\t\tif(a[i]>max)\n\t\t{\n\t\t\tsmax=max;\n\t\t\tmax=a[i];\n\t\t}\n\t\telse if(a[i]<=max&&a[i]>smax)\n\t\t{\n\t\t\tsmax=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",max,smax);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41789", "code": "void main()\n{\n int n,a[100],i,max,secondmax;\n scanf(\"%d\",&n);\n for(i=0;imax)\n max=a[i];\n }\n if(a[0]==max)\n {\n secondmax=a[1];\n for(i=1;isecondmax)secondmax=a[i];\n }\n }\n else\n {\n secondmax=a[0];\n for(i=0;isecondmax)secondmax=a[i];\n }\n }\n printf(\"%d\\n\",max);\n printf(\"%d\\n\",secondmax);\n}"} +{"label": "84", "index": "41790", "code": "//******************************\n//*????jmyhhx.cpp*\n//*??????*\n//*?????2010?10?9?*\n//*?????????????*\n//****************************\n\nint main()\n{\n\tint k=0,i=0,j=0,max=0,imax=0;\n\tcin>>k;\n\tcin>>j;\n\tmax=j;\n\timax=j;\n\tfor(i=2;i<=k;i++)\n\t{\n\t\tcin>>j;\n\t\tif (j>=max)\n\t\t\tmax=j;\n\t\telse\n\t\tif(j>=imax)\n\t\t\timax=j;\n\t}\n\tcout<a){\n\ne=b;\nb=a;\na=c;\nm=c;\n}\nelse \nif(a>c&&c>b)\n{\nm=b;\nb=c;\nc=m;\n}\n}\nprintf(\"%d\\n%d\\n\",a,b);\n\n\treturn 0;\n}\n"} +{"label": "84", "index": "41792", "code": "void main()\n{\n\tint a[100],b[100];\n\tint x=0,n,i,j,k;\n scanf(\"%d\",&n);\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tb[i]=0;\n\t}\n\tfor (j=0;j<=n-1;j++)\n\t{\n\t\tfor (k=0;k<=n-1;k++)\n\t\t{\n\t\t\tif(a[j]>=a[k]) x++;\n\t\t}\n\t\tx--;\n\t\tb[x]=a[j];\n\t\tx=0;\n\t}\n\tprintf(\"%d\\n%d\\n\",b[n-1],b[n-2]);\n}"} +{"label": "84", "index": "41793", "code": "int main()\n{\n int arr[100]={0};\n int n,i,s,j;\nn=0;\n scanf(\"%d\",&n);\n for(i=0;i=arr[s])?max:arr[s];\n }\n int secondMax=0;\n for(j=0;j=arr[j]||arr[j]==max)?secondMax:arr[j];\n }\n printf(\"%d\\n\",max);\n printf(\"%d\",secondMax);\n return 0;\n}"} +{"label": "84", "index": "41794", "code": "int main()\n{\n\tint i,n,a[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[i+1])\n\t\t\t{\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\tprintf(\"%d\\n%d\\n\",a[n],a[n-1]);\n}"} +{"label": "84", "index": "41796", "code": "main()\n{\nint n,i,max1=0,max2=0,a[999];\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++)\nscanf(\"%d\",&a[i]);\nfor(i=1;i<=n;i++) \n{\nif(a[i]>max1&&a[i]>max2) {max2=max1;max1=a[i];}\nelse if(a[i]max2) {max2=a[i];}\nelse if(a[i]=num[i])\n\t\t\tsecondmax=secondmax;\n\t\telse if(num[i]==max)\n\t secondmax=secondmax;\n\t\telse\n\t\t\tsecondmax=num[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",max,secondmax);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41798", "code": "int main()\n{\n int n,a,max,i,max2;\n scanf(\"%d\",&n);\n i=1;\n while(i<=n){\n scanf(\"%d\",&a);\n if(a>max){\n max2=max;\n max=a;\n }\n else if(a>max2){\n max2=a;\n }\n i=i+1;\n }\n printf(\"%d\\n%d\\n\",max,max2);\n return 0;\n}\n"} +{"label": "84", "index": "41799", "code": "\nint main(int argc, char *argv[])\n{\n int i,j,n,t,a[100];\n scanf(\"%d\",&n);\n for(i=0;i=max1)\n\t\t{\n\t\t\tmax2=max1;\n\t\t\tmax1=temp;\n\t\t}\n\t\telse if(temp>=max2)\n\t\t\tmax2=temp;\n\t}\n\tprintf(\"%d\\n%d\\n\",max1,max2);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41801", "code": "void main()\n{\n\tint n,b,c,i=1;\n\tscanf(\"%d\",&n);\n\tb=0;\n\tc=0;\n\tdo\n\t{\n\t\tint a;\n\t\tscanf(\"%d\",&a);\n\t\tif(a>b)\n\t\t{\n\t\t\tc=b;\n\t\t\tb=a;\n\t\t}\n\t\telse\n\t\t\tif(a>c)\n\t\t\t{\n\t\t\t\tc=a;\n\t\t\t\tb=b;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=c;\n\t\t\t\tb=b;\n\t\t\t}\n\t\ti=i+1;\n\t}\n\twhile(i<=n);\n\tprintf(\"%d\\n%d\",b,c);\n}\n\n"} +{"label": "84", "index": "41802", "code": "int main()\n{\n int arr[100];\n int n=0;\n scanf(\"%d\",&n);\n for(int i=0;i=arr[s])?max:arr[s];\n }\n int sm=-10000;\n for(int j=0;jsm)\nsm=arr[j];\n }\n }\n printf(\"%d\\n\",max);\n printf(\"%d\",sm);\n return 0;\n}\n"} +{"label": "84", "index": "41803", "code": "void main()\n{\n\tint a[100]={0},i,n,k1=0,k2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(a[i]>k1)\n\t\t\tk2=k1,k1=a[i];\n\t\telse if(a[i]<=k1&&a[i]>=k2)\n\t\t\tk2=a[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",k1,k2);\n}\n"} +{"label": "84", "index": "41804", "code": "void main()\n{\n\tint n,a[50],i,k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;is[1])\n{\n\ta=s[0];\n\tb=s[1];\n}\nelse\n{\n\ta=s[1];\n\tb=s[0];\n}\nfor (i=2;i<=(n-1);i++)\n{\nscanf(\"%d\",&s[i]);\nif(a>s[i]&&s[i]>b)\n{\n\tt=b;\n\tb=s[i];\n\ts[i]=t;\n}\nelse if(s[i]>a)\n{\nt=a;\nb=t;\na=s[i];\n}\n}\nprintf(\"%d\\n%d\\n\",a,b);\nreturn 0;\n}\n"} +{"label": "84", "index": "41806", "code": "int main(){\n\tint n,i,max,sum;\n\tint a[99];\n\tscanf(\"%d%d\",&n,&a[0]);\n\tmax=a[0];\n\tsum=a[0];\n\tfor(i=1;i<=n-1;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]>max){\n\t\t\tsum=max;\n\t\t\tmax=a[i];\n\t\t}\n\t\tif(max>a[i]&&(a[i]>sum)){\n\t\t\tsum=a[i];\n\t\t}\n\t}\n\tif(i<=99){\n\t\tprintf(\"%d\\n%d\",max,sum);\n\t}\n\treturn 0;\n}"} +{"label": "84", "index": "41807", "code": "\nvoid main()\n{\n\tint a,b=0,c=0,temp;\n\tscanf(\"%d\",&a);\n\tfor(;a>0;a--)\n\t{\n\t\tscanf(\"%d\",&temp);\n\t\tif(temp>b)\n\t\t{\n\t\t\tc=b;b=temp;\n\t\t}\n\t\telse if(temp<=b && temp>c)\n\t\t\tc=temp;\n\t}\n\tprintf(\"%d\\n%d\\n\",b,c);\n\n\n\t\n\n}\n\n"} +{"label": "84", "index": "41808", "code": "void main()\n{\n int n,a,b,f=0,s;\n\tscanf(\"%d\\n\",&n);\n scanf(\"%d\\n\",&a);\n\tfor(;100>n&&n>1;n--)\n\t{\n\t\t\n\t\tscanf(\"%d\\n\",&b);\n\t\tb=a>b?a:b;\n\t if(f<=b)\n\t\t{\ts=f;\n\t\t\tf=b;\n\t\t}\n\t\t else\n\t\t\t s=b>s?b:s;\n\n\t\t\n\t}\n printf(\"%d\\n\",f);\n\tprintf(\"%d\",s);\n\n}\n"} +{"label": "84", "index": "41809", "code": "int cmp(const void * a, const void * b);\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint *arr = (int *) malloc (sizeof(int) * n);\n\tint i;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\",&arr[i]);\n\t}\n\tqsort(arr,n,sizeof(arr[0]),cmp);\n\tprintf(\"%d\\n\",arr[n-1]);\n\tprintf(\"%d\\n\",arr[n-2]);\n\tscanf(\"%d\",&n);\n\treturn 0;\n}\nint cmp(const void * a, const void * b)\n{\n\treturn ((*(int*)a-*(int*)b>0)?1:-1);\n}"} +{"label": "84", "index": "41810", "code": "int main()\n{\nint n,i,j,a[100],passer1,passer2;\nscanf(\"%d\",&n);\nfor(i=0;i=y&&y>=q)\n\t\t\t{\n\t\t\t\tq=y;\n\t\t\t y=x;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(x>=q&&q>=y)\n\t\t\t{\n\t\t\t\ty=x;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(y>=x&&x>=q)\n\t\t\t{\n\t\t\t\tq=x;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(q>=x&&x>=y)\n\t\t\t{\n\t\t\t\ty=q;\n\t\t\t q=x;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(q>=y&&y>=x)\n\t\t\t{\n\t\t\t\tt=q;\n\t\t\t q=y;\n\t\t\t y=t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(y>=q&&q>=x)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\tscanf(\"%d\",&z);\n\tif(y>=z&&z>=q)\n\t{\n\t\tq=z;\n\t}\n\tif(z>=y)\n\t{\n\t\tq=y;\n\t\ty=z;\n\t}\n\tprintf(\"%d\\n\",y);\n printf(\"%d\",q);\n\treturn 0;\n}"} +{"label": "84", "index": "41813", "code": "void main()\n{\n int n,a[100],i,max1=0,max2=0,x=0;\n\tscanf(\"%d\",&n); \n\tfor(i=0;imax){\n\t\tmax=a[i-1];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",max);\n\tfor(i=1;i<=n;i++){\n\t\tif(a[i-1]min){\n\t\tmin=a[i-1];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",min);\n\treturn 0;\n}"} +{"label": "84", "index": "41817", "code": "int main()\n{\n\tint r,i,max1=0,max2=0;\n\tint score[100];\n\tscanf(\"%d\",&r);\n for(i=0;i<=r-1;i++)\n\t{\n\t\tscanf(\"%d\",&score[i]);\n\t}\n\tfor(i=0;i<=r-1;i++)\n\t{\n\t\tif(score[i] > max1 )\n\t\t{\nmax2 = max1;\n\n\t\t\tmax1 = score[i];\n\t\t\t\t\t}\n\t\telse if( score[i] > max2 )\n\t\t\tmax2 = score[i];\n\n\t }\n\tprintf(\"%d\\n%d\",max1,max2);\n\t return 0;\n}\n"} +{"label": "84", "index": "41818", "code": "void main()\n{int n,i,k,max1,max2,num[30];\n scanf(\"%d\",&n);\n for(i=0;imax1)\n {max1=num[i];k=i;}\n if(k=0)\n {max2=num[1];\n for(i=2;imax2)\n max2=num[i];\n }\nelse {max2=num[0];\n for(i=2;imax2&&num[i]!=max1)\n max2=num[i];\n }\nprintf(\"%d\\n\",max1);\nprintf(\"%d\\n\",max2);\n}\n\n "} +{"label": "84", "index": "41819", "code": "int main()\n{\n\tint k,m,n,i,a[100]; //????\n\tm=0;n=0;\n\tcin>>k; //????\n\tfor(i=0;i>a[i];\n\t if(a[i]>m) \n\t\t {n=m;\n\t m=a[i];}\n\t else if(a[i]>n)\n\t\t n=a[i];\n\t}\n cout<ma[0]){ ma[1]=ma[0];ma[0]=tem;}\nelse if (tem>ma[1]){ ma[1]=tem;}\n}\n\n\nint main()\n{\nint n,i;\nint temp,max[2]={0,0};\nscanf(\"%d\",&n);\nfor (i=1;i<=n;i++){\n scanf(\"%d\",&temp);\n if (temp>max[0]){ max[1]=max[0];max[0]=temp;}\n else if (temp>max[1]){ max[1]=temp;}\n }\n printf(\"%d\\n%d\",max[0],max[1]);\nreturn 0;\n}\n"} +{"label": "84", "index": "41821", "code": "int main()\n{\n\tint n, i, t, m1=0, m2=0;\n\tscanf(\"%d\", &n);\n\tfor(i = 0; i < n; i++) {\n\t scanf(\"%d\", &t);\n\t if ( t > m1){\n m2 = m1;\n\t m1 = t;\n\t }\n\t else if (t > m2 )\n\t m2 = t;\n\t }\n\tprintf(\"%d\\n%d\", m1, m2);\n return 0;\n}"} +{"label": "84", "index": "41822", "code": "int main(){\n int n,i,t;\n int max,cmax;\n int sz[100];\n scanf(\"%d\",&n);\n for(i=0;imax){\n t=max;\n max=sz[i];\n cmax=t;\n }else if(sz[i]>cmax&&sz[i]a[1])\n\t\tu=a[0];v=a[1];\n\tif(a[0]u)\n\t\t\tu=a[i];\n\t\tif(a[i]v)\n\t\t\tv=a[i];\n\t}\n\tprintf(\"%d\\n%d\",u,v);\n}\n"} +{"label": "84", "index": "41824", "code": "void main()\n{\n\tint i,n;scanf(\"%d\",&n);\n\tint *p,*hd;hd=p=(int *)malloc(n*sizeof(int));\n\tfor(i=0;imax) max=*p;\n\t}\n\tfor(p=hd,i=0;imax) max=*p;\n\t}\n\tprintf(\"%d\",max);\n}"} +{"label": "84", "index": "41825", "code": "int main()\n{\n int a;\n int num,result1,result2,cha;\n scanf(\"%d\\n\",&a);\n int i=1;\n while(i<=a){\n scanf(\"%d\\n\",&num);\n if(i==1){\n result1=num;\n } else if(i==2){\n result2=num;\n if(result2>result1){\n cha=result1;\n result1=result2;\n result2=cha;\n }\n } else if(i!=1&&i!=2){ \n if(num>result1){\n result2=result1;\n result1=num;\n }else if(num>result2&&numc)\n\t c=a[j];\n\telse if (a[j]>b)\n\t {c=b;\n\t b=a[j];\n\t }\n\t}\nprintf(\"%d\",b);\nprintf(\"\\n\");\nprintf(\"%d\",c);\n}\n"} +{"label": "84", "index": "41827", "code": "int main()\n{\n\tint a,b,c,d,n,i=3;\n\tscanf(\"%d\",&n);\n scanf(\"%d %d\",&a,&b);\n\tif(aa)\n\t\t{\n\t\t\tb=a;\n\t\t\ta=c;\n\t\t}\n\t\telse if(c>b&&a>c)\n\t\t{\n\t\t\tb=c;\n\t\t}\n i++;\n\t}\n\tprintf(\"%d\\n%d\\n\",a,b);\n\treturn 0;\n}"} +{"label": "84", "index": "41828", "code": "int main()\n{\n int n,a,b;\n scanf(\"%d\",&n);\n int i,sz[300],j,m=0;\n for(i=0;isz[i]){\n m++;\n }\n }\n if(m==0){\n a=sz[i];\n printf(\"%d\\n\",a);\n break;\n }\n m=0;\n }\n m=0;\n for(i=0;isz[i]){\n m++;\n }\n \n }\n if(m==1){\n b=sz[i];\n printf(\"%d\\n\",b);\n break;\n }\n m=0;\n }\n return 0;\n}\n\n "} +{"label": "84", "index": "41829", "code": "int main(){\nint n,e;\nint x,y,z;\nint i;\nscanf(\"%d%d%d\",&n,&x,&y);\nif(xy){\ny=z;\n}\n}else if(x>z&&ya[i+1])\n {\n t=a[i];\n a[i]=a[i+1];\n a[i+1]=t;\n }\n }\n }\n printf(\"%d\\n%d\",a[n-1],a[n-2]);\n getchar();getchar();\n}\n"} +{"label": "84", "index": "41832", "code": "\nint main(int argc, char* argv[])\n{\n int n,i=3,a;\n\tint max,sec;\n\n\tscanf(\"%d\",&n);\n\n\tscanf(\"%d\",&a);\n\tmax=a;\n\n\tscanf(\"%d\",&a);\n\tif (a>max)\n\t{\n\t\tsec=max;\n\t\tmax=a;\n\t}\n\telse \n\t{\n\t\tsec=a;\n\t}\n\n\n\n\n\tfor (i=3;i<=n;i++)\n\t{\n\t\tscanf(\"%d\", &a);\n\t if (a>max)\n\t\t{\n\t\t\tsec=max;\n\t\t\tmax=a;\n\t\t}\n\t\telse if(a>sec)\n\t\t {\n\t\t \tsec=a;\n\t\t }\n\t}\n\tprintf(\"%d\\n%d\\n\",max,sec);\n\n\n\t \n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41833", "code": "int main()\n{\n\tint n,i,c,d,t;\n\tt=0;\n\tscanf(\"%d\",&n);\n\tint a[100];\n\tfor(i=0;i<=(n-1);i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(c=0;c<=(n-2);c++)\n\t{\n\t\tfor(d=(n-1);d>=(c+1);d--)\n\t\t{\n\t\t\tif(a[d]>a[d-1])\n\t\t\t{\n\t\t\t\tt=a[d-1];\n\t\t\t a[d-1]=a[d];\n\t\t\t\ta[d]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",a[0]);\n\tprintf(\"%d\\n\",a[1]);\n\treturn 0;\n\n}"} +{"label": "84", "index": "41834", "code": "void main()\n{\n\tint max,max2,n,i,a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;inumber[i+1]){\n\t\t\t\te=number[i+1];\n\t\t\t\tnumber[i+1]=number[i];\n\t\t\t\tnumber[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",number[n-1],number[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41836", "code": "void main()\n{\n\tint n,i,a,b,c;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d%d\",&a,&b);\n\tfor(i=3;i<=n;i=i++)\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tif(c>=a)\n\t\t{\n\t\t\tb=a;\n\t\t\ta=c;\n\t\t}\n\t\telse if(a>c&&c>b)\n\t\t\tb=c;\n\t}\n\tprintf(\"%d\\n%d\",a,b);\n}\n\n\n\n\n\n"} +{"label": "84", "index": "41837", "code": "int max(int a[],int n)\n{\n\tint i,k=0;\n\tfor(i=0;ia[k])\n\t\t\tk=i;\n\t}\n\ti=a[k];\n\ta[k]=0;\n\treturn i;\n\n}\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[100],i;\n\tfor(i=0;i>n;\n int a[n];\n for(int i=1;i<=n;i++)\n cin>>a[i];\n\n for(int i=1;i<=n;i++)\n {\n for(int j=1;j<=n-1;j++)\n {\n if(a[j]a[m])\n\t\t\tm=i;\n\t}\n\tcm=0;\n\tmax=a[m];\n\ta[m]=0;\n\n\tfor(i=0;ia[cm])\n\t\t\tcm=i;\n\t}\n\tprintf(\"%d\\n%d\\n\",max,a[cm]);\n}\n\n"} +{"label": "84", "index": "41841", "code": "\nint main()\n{\n\tint b,max=0,lmax=0,a[100000];\n\tscanf(\"%d\",&b);\n\ta[0]=0;\n\tfor(int i=0;i=max)\n\t {max=a[i];}\n\t}\n\n\tfor(int k=0;k=lmax)&&(a[k]=sz[y]){\n\t\t\ty=i;\n\n\t\t}\n\t}\n\tif(y!=0){\n\t\te=sz[y];\n\t\tsz[y]=sz[0];\n\t\tsz[0]=e;\n\t}\n\tint x=1,t,m;\n\tfor(m=1;m=sz[x]){\n\t\t\tx=m;\n\t\t}\n\t}\n\tif(x!=1){\n\t\tt=sz[x];\n\t\tsz[x]=sz[1];\n\t\tsz[1]=t;\n\t}\n\tprintf(\"%d\\n\",sz[0]);\n\tprintf(\"%d\\n\",sz[1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41843", "code": "int main()\n{\n int i,j,k,temp;\n int an[MAX_NUM]; \n scanf(\"%d\",&i);\n for (j=0;j=c)?d:c;\n\tif(a>2)\n\tfor(;a>=3;a--)\n\t{ \n\t\tscanf(\"%d\",&b);\n\t\tif(b>max){min=max;max=b;}\n\t\telse if(b>min)min=b;\n\t\n\t}\n\tprintf(\"%d\\n%d\",max,min);\n}\n\n\n"} +{"label": "84", "index": "41845", "code": "int main()\n{int a,x,i=2,y,m1,m2=0;\n scanf(\"%d\",&a);\n scanf(\"%d\",&x);\n m1=x;\n while (i<=a)\n {scanf(\"%d\",&y);\n if (m1=y&&y>m2)\n { m2=y;}\n i++;}\n printf(\"%d\\n%d\\n\",m1,m2);\nreturn 0;\n}\n"} +{"label": "84", "index": "41846", "code": "int main()\n{\nint n,x,y,z,m;\nscanf(\"%d\",&n);\nx=0;y=0;z=0;\nfor (n=n;n>0;n=n-1)\n\t{scanf(\"%d\",&x);\n\t\tif (x>=y)\n\t\t{z=y;\n\t\ty=x;}\n\t\telse\n\t\t{y=y;\n\t\tif (x>z)\n\t\tz=x;\n\t\t}\n\t}\nif (n==0) {printf(\"%d\\n\",y);printf(\"%d\",z);}\nx=0;y=0;z=0;\nreturn 0;\n}\n"} +{"label": "84", "index": "41847", "code": "void main()\n{\n\tint n,a[100],i,b=0,c=0;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(a[i]>=b)\n\t\t{\n\t\t\tb=a[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n\",b);\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tif(a[i]==b)\n\t\t{\n\t\t\tb=b+1;\n\t\t}\n\t\telse if(a[i]>=c&&a[i]=ax[b+1])\n\t\t {c=ax[b];\n\t\t ax[b]=ax[b+1];\n\t\t ax[b+1]=c;\n\t\t }\n\t b++;\n\t }\nk++;\n}\nprintf(\"%d\\n%d\",ax[i-1],ax[i-2]);\nreturn 0;\n}"} +{"label": "84", "index": "41849", "code": "int main()\n{\n\tint k,max=0,max2=0,n,m;//max???????max2?????????n??????????m??????\n\tcin >> k;\n\tfor(int i=0;i> n;\n\t\tif(n==1)\n\t\t\tmax=n;\n\t\telse if(n==2)\n\t\t{\n\t\t\tmax2=n;\n\t\t\tif(max2>max)\n\t\t\t{\n\t\t\t\tn=max2;\n\t\t\t\tmax2=max;\n\t\t\t\tmax=n;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(n>max)\n\t\t\t{\n\t\t\t\tmax2=max;\n\t\t\t\tmax=n;\t\n\t\t\t}\n\n\t\t\telse if (max>=n&&n>=max2)\n\t\t\t\tmax2=n;\n\t\t}\n\t}\n cout << max << endl;\n\tcout << max2 << endl;\n\treturn 0;\n}"} +{"label": "84", "index": "41850", "code": "int main(){\n\tint n,i,m,x[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif(i==n)\n\t\t\tbreak;\n\t\tscanf(\"%d\",&x[i]);\n\t}\n\tfor(i=0;ix[i+1])\n\t\t{\n\t\t\tm=x[i];\n\t\t\tx[i]=x[i+1];\n\t\t\tx[i+1]=m;\n\t\t}\n\t}\n\tfor(i=0;ix[i+1])\n\t\t{\n\t\t\tm=x[i];\n\t\t\tx[i]=x[i+1];\n\t\t\tx[i+1]=m;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",x[n-1],x[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41851", "code": "int main()\n{\n\tint s[100000],i,j,k,t,n;\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++)\n\t\tscanf(\"%d\",&s[i]);\n\tfor (i=10;i>=2;i--)\n\t if\t\t\t(s[i]>s[i-1])\t\t\n\t {\n\t\t\tt=s[i-1];\n\t\t\ts[i-1]=s[i];\n\t\t\ts[i]=t;\n\t }\n\tfor (i=10;i>=3;i--)\n\t\tif (s[i]>s[i-1])\n\t\t{\n\t\t\tt=s[i-1];\n\t\t\ts[i-1]=s[i];\n\t\t\ts[i]=t;\n\t\t}\n\t\tprintf(\"%d\\n\",s[1]);printf(\"%d\\n\",s[2]);\n\t\treturn 0;\n}\n\t\t \n\n\n\n\n"} +{"label": "84", "index": "41852", "code": "\nint main()\n{\n\tint i,a[100],n;\n\tint e=0;\n\n\tfor(i=0;i<100;i++){\n\t\t\t a[i]=0;\n\t}\n\n\tscanf (\"%d\",&n);\n\n\tfor(i=0;ia[i+1]){\n\t\t\te=a[i+1];\n\t\t\ta[i+1]=a[i];\n\t\t\ta[i]=e;\t\n\t\t}\n\t}\t\n\n\tfor(i=0;ia[i+1]){\n\t\t\te=a[i+1];\n\t\t\ta[i+1]=a[i];\t\n\t\t\ta[i]=e;\n\t\t}\n\t}\n\n printf(\"%d\\n%d\",a[n-1],a[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41853", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,i,x,y,a;\n\tscanf(\"%d\",&n);\n\tx=0;\n\ty=0;\n\tscanf(\"%d\",&a);\n\ty=a;\n\tfor (i=2;i<=n;i++)\n\t{\n\t\tint ai;\n\t\tscanf(\"%d\\n\",&ai);\n\t\tif (ai>=x)\n\t\t{\n\t\t\tx=ai;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (ai>y)\n\t\t\t{\n\t\t\t\ty=ai;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",x);\n\tprintf(\"%d\\n\",y);\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41854", "code": "\nint main()\n{\nint max(int x,int y);\nint min(int x,int y);\n int i=1,n,a,s,d,f,g;\n scanf(\"%d\",&n);\n while(i<=n){\n scanf(\"%d\\n\",&a);\n if(i==1) { s=a;d=a;}\n else { f=d;g=s;\n s=max(s,a);d=min(g,a);d=max(d,f); \n }\n i++;\n }\n \n printf(\"%d\\n%d\\n\",s,d);\n return 0;\n}\nint max(int x,int y){\nint z; \nz=x>y? x:y;\nreturn(z);\n}\n int min(int x,int y){\n int z; \nz=x0;n--)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tif(m>a)\n\t\t{\tb=a;\n\t\t\ta=m;\n\t\t\n\t\t\n\t\t}else if(m>b&&m sz[i+1]){\n\t\t\te = sz[i];\n\t\t\tsz[i] = sz[i+1];\n\t\t\tsz[i+1] = e;\n\t\t}\n\t}\t\t\n\tb=sz[i];\n\tfor(i=0 ; i sz[i+1]){\n\t\t\te = sz[i];\n\t\t\tsz[i] = sz[i+1];\n\t\t\tsz[i+1] = e;\n\t\t}\n\t}\t\t\n\tc=sz[i];\n\tprintf(\"%d\\n\", b);\n\tprintf(\"%d\\n\", c);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41857", "code": "int main()\n{\n\tint a[100];\n\tint i=0,n,j,max,second;\n\tscanf(\"%d\",&n);\n\twhile(i>n;\n cin>>nums[0];\n Max = Min = nums[0];\n for(i = 1;i>nums[i];\n if(nums[i]>Max)\n Max = nums[i];\n if(nums[i]OnlyUnderMax && nums[i]max) max=a[i];}\n\tfor(i=0;inmax) nmax=a[i];}\n\tprintf(\"%d\\n%d\\n\",max,nmax);\n}"} +{"label": "84", "index": "41862", "code": "\nint main()\n{\nint n,i,a[100],max,sm;\nscanf(\"%d\\n\",&n);\nfor(i=0;i<=n-2;i++)\nscanf(\"%d\\n\",&a[i]);\nscanf(\"%d\",&a[n-1]);\nmax=a[0];\nfor(i=0;i<=n-1;i++)\n{if(a[i]>max) max=a[i];}\nprintf(\"%d\\n\",max);\nsm=a[0];\nfor(i=0;i<=n-1;i++)\n{if(a[i]!=max&&a[i]>sm) sm=a[i];}\nprintf(\"%d\",sm);\n}\n\n\n"} +{"label": "84", "index": "41863", "code": "void main()\n{\n\tint n,i,j,k,t,max1=0,min,max2;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;it)\n\t\t\t\tmin=t;\n\t\t else\n\t\t\t\tcontinue;\n\t\t}\n\t}\n\tmax2=max1-min;\n\tprintf(\"%d\\n%d\\n\",max1,max2);\n}"} +{"label": "84", "index": "41864", "code": "int main ()\n{\n int n,max1,max2,i,d,e,f;\n scanf(\"%d\\n\",&n);\n scanf(\"%d\\n\",&d);\n scanf(\"%d\\n\",&e);\n max2=e;\n max1=d;\n if (d>e) \n{ max2=d;\n max1=e;\n}\n\n for(i=2;imax2) \n{ max1=max2;\n max2=f;\n}\nelse if (f<=max1) ;\nelse \nmax1=f;\n}\nprintf(\"%d\\n%d\",max2,max1);\nreturn 0;\n}\n\n \n\n "} +{"label": "84", "index": "41865", "code": "\nint main()\n{\n\tint length = 0, a[110] = {0};\n\tcin >> length;\n\tfor(int i = 0; i < length; i ++)\n\t\tcin >> a[i];\n\tint sec = 1;\n\tint point = 0;\n\twhile(point + sec < length)\n\t{\n\t\twhile(point + sec < length)\n\t\t{\n\t\t\tif(a[point] < a[point + sec])\n\t\t\t{\n\t\t\t\tint temp = a[point];\n\t\t\t\ta[point] = a[point + sec];\n\t\t\t\ta[point + sec] = temp;\n\t\t\t}\n\t\t\tpoint = point + sec * 2;\n\t\t}\n\t\tsec = sec * 2;\n\t\tpoint = 0;\n\t}\n\tcout << a[0] << endl;\n\tsec = sec / 4;\n\tif(a[sec] > a[sec * 2])\n\t\tcout << a[sec] << endl;\n\telse\n\t\tcout << a[sec * 2] << endl;\n\treturn 0;\n}"} +{"label": "84", "index": "41866", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,i,x[100];\n\tint max=0,secondmax=0;\n\tscanf(\"%d\",&n);\n for(i=0;i=max)\n\t\t{\n\t\tsecondmax=max;\n\t\tmax=x[i];\n\t\t}\n\t\tif(x[i]>secondmax&&max>x[i])\n\t\t{\n\t\t\tsecondmax=x[i];\n\t\t}\n\t\t\n\t}\n\tprintf(\"%d\\n%d\\n\",max,secondmax);\n\treturn 0;\n}"} +{"label": "84", "index": "41867", "code": "int max(int a[],int n)\n{\n\tint i,j=0,t;\n\tfor (i=0;i=1;i--)\n {\n if(a[i-1]=2;i--)\n {\n if(a[i-1]>n;\nfor (int i=1;i<=n;i++)\n{\n\tint m;\n\tcin>>m;\n\tif(m>=a)\n\t{\n\t\tb=a;\n\t\ta=m;\n\t}\n\telse if(m>b)\n\t\tb=m;\n}\nprintf(\"%d\\n%d\\n\",a,b);\nreturn 0;\n}"} +{"label": "84", "index": "41870", "code": "int main()\n{\n\tint n,i,a,b,max=0,sec;\n\tint number[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax){\n\t\t\tmax=number[i];\n\t\t}\n\t}\n\t\ta=max;\n\t\tsec=max;\n\t\tfor(i=0;i0)){\n\t\t\t\t\tsec=a-number[i];\n\t\t\t}\n\t\t}\n\t\n\t\tb=a-sec;\n\t\tprintf(\"%d\\n\",a);\n\t\tprintf(\"%d\\n\",b);\n\t\treturn 0;\n\t}"} +{"label": "84", "index": "41871", "code": "void main()\n{int n,a[99],i,max,s,c,j;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d\",&s);\n\ta[0]=s;\n\tmax=s;\n\tc=-1;\n\tfor(i=1;imax) {min=max;max=a[i];}\nelse if(a[i]>min) min=a[i];\nprintf(\"%d\\n%d\",max,min);\n}"} +{"label": "84", "index": "41873", "code": "int main(){\n\tint i=0;\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a,b;\n\tint x,y,l;\n\tscanf(\"%d%d\",&x,&y);\n\tif(x>y){\n\t\ta=x;\n\t\tb=y;\n\t}else{\n\t\ta=y;\n\t\tb=x;\n\t}\n\twhile(i<=n-3){\n\t\tscanf(\"%d\",&l);\n\t\tif(l>a){\n\t\t\tb=a;\n\t\t\ta=l;\n\t\t}else{\n\t\t\tif(l>b){\n\t\t\t\tb=l;\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n%d\",a,b);\n\t\treturn 0;\n}"} +{"label": "84", "index": "41874", "code": "int main()\n{\n\tint n, max1, max2,i;\n\tint num[100]={0};\n\tmax1 = 0;\n\tmax2 = 0;\n\tscanf(\"%d\" , &n);\n\tscanf(\"%d%d\", &num[0],&num[1]);\n\tif (num[0] >= num[1])\n\t{\n\t\tmax1 = num[0];\n\t\tmax2 = num[1];\n\t}\n\telse\n\t{\n\t\tmax1 = num[1];\n\t\tmax2 = num[0];\n\t}\n for (i = 2; i < n; i++)\n\t{\n\t\tscanf(\"%d\" ,&num[i]);\n\t\tif (num[i] > max1)\n\t\t{\n\t\t\tmax2 = max1;\n\t\t\tmax1 = num[i];\n\t\t}\n\t\telse if (num[i] >max2)\n\t\t{\n\t\t\tmax2 = num[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t}\n\t\tprintf(\"%d\\n%d\\n\", max1,max2);\n\t\treturn 0;\n}"} +{"label": "84", "index": "41875", "code": "int main()\n{\n int n,i,a,b,c;\n i=1;\n scanf(\"%d\",&n);\n b=0;\n c=0; \n while(i<=n)\n {\n scanf(\"%d\",&a);\n if(a>b)\n {\n if(cb){x=a;y=b;}\n\tif(ax){y=x;x=c;}\nif(x>c&&c>y){y=c;}\n}\nprintf(\"%d\\n\"\"%d\\n\",x,y);\nreturn 0;\n}"} +{"label": "84", "index": "41877", "code": "int main(){\nint n;\nint max1,max2,num;\nint exc;\nmax1=0;\nmax2=0;\nscanf(\"%d\",&n);\nfor(int i=1;i<=n;i++){\nscanf(\"%d\",&num);\n{if(num>max1){\nexc=max1;\nmax1=num;\nmax2=exc;}else if(nummax2){\nmax2=num;\nmax1=max1;}}\n}}\nprintf(\"%d\\n%d\\n\",max1,max2);\n\nreturn 0;\n}"} +{"label": "84", "index": "41878", "code": "\nint main(int argc, char *argv[])\n{\n int n,a,max,min,i,e;\n scanf(\"%d\",&n);\n for(i=0;imax) max=a;\n else if(max>a && a>min) min=a;\n }\n \n \n \n printf(\"%d\\n%d\\n\",max,min);\n \n \n\n return 0;\n}\n"} +{"label": "84", "index": "41879", "code": "int main()\n{\n int n,i,j,min,max1=0,max2=0;\n int a[100];\n cin>>n;\n for (i=0;i>a[i];\n min=a[0];\n for (i=0;imax1) {max1=a[i];j=i;}\n if (a[i]max2) max2=a[i];\n cout<=b)\nif (a>=c)\nif (b>=c)\na=a; \nelse b=c;\nelse\n{b=a;\na=c;}\nelse \nif (a>=c)\n{c=b;b=a;a=c;}\nelse\nif(b>=c)\n{a=b;b=c;}\nelse\na=c;\n\nn=n-1;\n}\nprintf(\"%d\\n\",a);\nprintf(\"%d\\n\",b);\n}"} +{"label": "84", "index": "41881", "code": "int main()\n{\n\tint n, i, k, sz[100],max,max1;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i<=n-1;i++){\n\tscanf(\"%d\\n\", &(sz[i]));\n\t}\n\tmax=max1=sz[0];\n\t\tfor(i=0; imax){\n max=sz[i];\n\t\t\t}\n\t\t}\n\t\tfor(i=0; imax1){\n max1=sz[i];\n\t\t\t}\n\t\t}\n\tprintf(\"%d\\n%d\", max, max1);\n\treturn 0;\n}"} +{"label": "84", "index": "41882", "code": "int main()\n{\n int a=0,b=0,c,d,n,i;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n{ scanf(\"%d\",&d);\nif (a=b){\n c=b;\n b=a;\n t=t+1;\n }\n else if((a=c)){\n c=a;\n t=t+1;\n }\n else{\n t=t+1;\n }\n \n }\n printf(\"%d\\n%d\",b,c);\n scanf(\"%d\",&n);\n return 0;\n }\n \n "} +{"label": "84", "index": "41884", "code": "int main()\n{\n\tint n,a[99],f,s,i;\n\tscanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n\t\tscanf(\"%d\",a+i);\n\tfor(i=1,f=a[0];i<=n-1;i++)\n\t\tif(a[i]>f) f=a[i];\n for(i=0;i<=n-1;i++)\n\t\tif(a[i]s&&a[i]c){\n b=c;\n }else{\n b=a;\n a=c;\n }\n } \n if(i>2){\n if(c>a){\n b=a;\n a=c;\n }\n if((a>c)&&(c>b)){\n b=c;\n }\n }\n } \n printf(\"%d\\n%d\\n\",a,b);\n return 0;\n} "} +{"label": "84", "index": "41886", "code": "int main()\n{\n\tint n,a[100],i,diyi,dier;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\tscanf(\"%d\",&a[i]);\n\tdiyi=a[0];\n\tdier=a[1];\n for(i=1;i<=n-1;i++)\n\t{\n\t\tif(a[i]>=diyi)\n\t\t{\n\t\t\tdier=diyi;\n\t\t diyi=a[i];\n\t\t}\n\t\tif(a[i]=dier)\n\t\tdier=a[i];\n\t}\n\tprintf(\"%d\\n%d\",diyi,dier);\n\treturn 0;\n}"} +{"label": "84", "index": "41887", "code": "int main()\n{\n\tint n,i,l,m;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[1]?a[0]:a[1];\n\tm=a[0]>a[1]?a[1]:a[0];\n\tfor(i=2;il&&a[i]>m)\n\t\t{\n\t\t\tm=l;\n\t\t\tl=a[i];\n\t\t}\n\t\telse if(a[i]>m&&a[i]sz[i+1]){\n\t\t\tt=sz[i+1];\n\t\t\tsz[i+1]=sz[i];\n\t\t\tsz[i]=t;\n\t\t}else{\n\t\t\tsz[i+1]=sz[i+1];\n\t\t}\n\t}\n\tfor(i=0;isz[i+1]){\n\t\t\tt=sz[i+1];\n\t\t\tsz[i+1]=sz[i];\n\t\t\tsz[i]=t;\n\t\t}else{\n\t\t\tsz[i+1]=sz[i+1];\n\t\t}\n\t}\n\t\n\tprintf(\"%d\\n%d\",sz[n-1],sz[n-2]);\n\t\treturn 0;\n}\n"} +{"label": "84", "index": "41889", "code": "void main()\n{\n\tint a[101];\n\tint i,j,k,n,max,m;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tmax=a[1];\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tif(maxc)\n\t\t\t\tc=a,b=b;\n\t\t\telse\n\t\t\t\tc=c,b=b;\n\t\t}\n\t\telse\n\t\t\tif (d>c)\n\t\t\t\tc=b,b=a;\n\t\t\telse\n\t\t\t\tc=c,b=a;\n\t}\n\tprintf(\"%ld\\n%ld\\n\",b,c);\n}"} +{"label": "84", "index": "41891", "code": "int main(){\n int max1,max2,num,i=1;\n int n,c,d;\n int exc;\n scanf(\"%d\",&n);\n while (i<=n){\n scanf(\"%d\",&num);\n if(i==1){max1=num;}\n else if(i==2){max2=num;\n if(max1num?max2:num;}\n i++;\n }\nprintf(\"%d\\n%d\\n\",max1,max2);\nreturn 0;\n}"} +{"label": "84", "index": "41892", "code": "\nint main()\n{\n int n, i, t, m1, m2;\n\n // ???????????????????????????\n m1 = m2 = ~((unsigned)-1 >> 1);\n\n scanf(\"%d\", &n);\n for (i = 0; i < n; i++) {\n scanf(\"%d\", &t);\n if (t > m1) { // ???? 1)\n m2 = m1;\n m1 = t;\n }\n\n }\n printf(\"%d\\n%d\", m1, m2);\n\n return 0;\n}"} +{"label": "84", "index": "41893", "code": "int main()\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tint sz[99];\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d\",&sz[i]);\n\t}\n\tint max,e;\n\tmax=0;\n\tfor(i=0;i<=n-1;i++){\n\t\tif(sz[i]>sz[max]){\n\t\t\tmax=i;\n\t\t}\n\t}\n\tif(max!=n-1){\n\t\te=sz[max];\n\t\tsz[max]=sz[n-1];\n\t\tsz[n-1]=e;\n\t}\n\tmax=0;\n\tfor(i=0;i<=n-2;i++){\n\t\tif(sz[i]>sz[max]){\n\t\t\tmax=i;\n\t\t}\n\t}\n\tif(max!=n-2){\n\t\te=sz[max];\n\t\tsz[max]=sz[n-2];\n\t\tsz[n-2]=e;\n\t}\n\tprintf(\"%d\\n\",sz[n-1]);\n\tprintf(\"%d\\n\",sz[n-2]);\n\treturn 0;\n}"} +{"label": "84", "index": "41894", "code": "void main()\n{\n int i,j,n,a[100][1],cha[100],x,max1;\n scanf(\"%d\",&n);\n for(i=0;imax1) max1=a[i][j];\n }\n for(i=0;imax)\n\t\t{\n\t\t\tlmax=max;\n\t\t max=a;\n\t\t}\n\t else if(a>lmax)\n\t\t{\n\t\t lmax=a;\n\t\t}\n\t}\n\tprintf(\"%d\\n\", max);\n\tprintf(\"%d\", lmax);\n\treturn 0;\n}"} +{"label": "84", "index": "41896", "code": "void main()\n{\n\tint n,i,j,k,a[100];\n\tscanf(\"%d\",&n);\n for(i=0;ia[k]) k=j;\n\t\t}\n\t\tif(k!=i)\n\t\t{\n\t\t\tint t;\n\t\t\tt=a[i];\n\t\t\ta[i]=a[k];\n\t\t\ta[k]=t;\n\t\t}\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n}\n"} +{"label": "84", "index": "41897", "code": "int main(){\n int e,i,n;\n\tint sz[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;isz[i+1]){\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",sz[n-1],sz[n-2]);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41898", "code": "void main()\n{\n\tint k,i,j,a,b,c,m,n,p;\n\tscanf(\"%d\\n\",&k);\n\tm=0;\n\tp=0;\n for(i=1;i<=k;i++)\n\t{ \n\t\tscanf(\"%d\\n\",&a);\n\t\t if(a>=m)\n\t\t\t{ n=a;\n\t\t if(p>m)\n\t\t\t j=p;\n\t\t\t else\n\t\t\t j=m;\n\t\t\t}\n else\n\t\t\t{n=m;\n\t\t\t if(p>a)\n\t\t\t j=p;\n\t\t\t else\n\t\t\t j=a;\n\t\t\t}\n\t\t\tm=n;\n\t\t\tp=j;\n\t\t\t\n\t\t\n\t}\n\tprintf(\"%d\\n%d\\n\",n,j);\n\t\n}"} +{"label": "84", "index": "41899", "code": "int main(){\n int max1,max2,num,i=1;\n while(i<=10){\n scanf(\"%d\",&num);\n if(i==1){\n max1=num;\n }else if(i==2){\n if(num>max1){\n max2=max1;\n max1=num;\n }else{\n max2=num;\n }\n }else{\n if(num>max1){\n max2=max1;\n max1=num;\n}else if(num>max2&&numc[1]){\n\t\tx=c[0];//122\n\t\ty=c[1];//57\n\t\t}\n\tif(c[0]x){\n\t\t\ty=x;\n\t\t\tx=c[j];\n\t\t\t\n\t\t}\n\t\tif(c[j]>y && c[j]b)\n\t{\n\t\tc=c+b;b=c-b;c=c-b;\n\t}\n\twhile (m<=n)\n\t{\n\t\tscanf(\"%d\",&a);\n\t\tif (a>b)\n\t\t{\n\t\t\ta=a+b;b=a-b;a=a-b;\n\t\t}\n\t\telse if (a>c)\n\t\t{\n\t\t\ta=a+c;c=a-c;a=a-c;\n\t\t}\n\t\tm++;\n\t}\n\tprintf(\"%d\\n%d\",b,c);\n}"} +{"label": "84", "index": "41902", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tint j[n];\n\tfor(i=0;i=M1)\n\t\t\tM1=j[i];\n\t\telse \n\t\t\tM1=M1;\n\t}\n\tfor(i=0;i=M2&&j[i]a[1]) \n\t{\n\t\tmax=a[0];\n\t\tmax2=a[1];\n\t}\n\telse \n\t{\n\t\tmax=a[1];\n\t\tmax2=a[0];\n\t}\n\tfor (i=2;imax) \n\t\t{\n\t\t\tmax2=max;\n\t\t\tmax=a[i];\n\t\t}\n\t\telse if (a[i]<=max&&a[i]>max2)\n\t\t\tmax2=a[i];\n\t\t\n\t}\n\tprintf(\"%d\\n%d\\n\",max,max2);\n}"} +{"label": "84", "index": "41904", "code": "\nint mycompare(const void* e1, const void* e2)\n{\n\treturn *((int*)e2) - *((int*)e1);\n}\n\nint main()\n{\n\tint n, s[101];\n\tscanf(\"%d\", &n);\n\tfor(int i = 0; i < n; i ++)\n\t{\n\t\tscanf(\"%d\", &s[i]);\n\t}\n\tqsort(s, n, sizeof(int), mycompare);\n\tcout << s[0] << endl << s[1] << endl;\n\t\n\treturn 0;\n}"} +{"label": "84", "index": "41905", "code": "int main()\n{\nint n;\ncin>>n;\nint i;\nint m[100];\nfor(i=0;i>m[i];\nint m1=0,m2=0;\nfor(i=0;im1)m1=m[i];\nfor(i=0;im2 && m[i]a[max1])\n\t\t\tmax1=i;\n\t\tt=a[0];\n\t\ta[0]=a[max1];\n\t\ta[max1]=t;\n\t\tfor(i=2;ia[max2])\n\t\t\t\tmax2=i;\n\t\tprintf(\"%d\\n%d\\n\",a[0],a[max2]);\n}"} +{"label": "84", "index": "41907", "code": "int main( ) //?????\n{ //?????\n\tint a[100],i=0,j=0,p=0,n; //?????????\n\tcin >>n; //????\n\tfor(i=1;i<=n;i++) //??a[1]?a[n]\n\t\tcin >>a[i];\n\tfor(j=1;j<=n-1;j++) //?????????\n\t\tfor(i=1;i<=n-j;i++) //????\n\t\t\tif(a[i]b){\n\t\t\tc = b;\n\t\t\tb = d;\n\t\t}\n\t\telse if(dc){\n\t\t\tc = d;\n\t\t}\n\t}\n printf(\"%d\\n%d\",b,c);\n\treturn 0;\n}"} +{"label": "84", "index": "41909", "code": "int main(int argc, char* argv[])\n{\n\tint s[100],n,i,m,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;i--)\n\t{\n\t\tif(s[i]>s[i-1])\n\t\t{\n\t\t\tm=s[i-1];\n\t\t\ts[i-1]=s[i];\n\t\t\ts[i]=m;\n\t\t}\n\t}\n\t}\nprintf(\"%d\\n%d\",s[0],s[1]);\n\n\treturn 0;\n}"} +{"label": "84", "index": "41910", "code": "void main()\n{\n\tint a[100],i,n,max1,max2;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax1)\n\t\t{\n\t\t\tmax1=a[i];\n\t\tcontinue;\n\t\t}\n\t\telse\n\t\t\t\tcontinue;\n\t}\n\tmax2=a[0];\n\t\tfor(i=1;imax2)\n\t\t\t{\n\t\t\t\tmax2=a[i];\n\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\t\tprintf(\"%d\\n%d\\n\",max1,max2);\n}"} +{"label": "84", "index": "41911", "code": "void main()\n{\n\tint n,a[101],i,c,j;\n scanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i=i+1)scanf(\"%d\",&a[i]);\n\tfor(j=1;j<=2;j=j+1)\n\t{\n\t\tfor(i=0;i<=n-2;i=i+1)\n\t\t{\n\t\t\tif(a[i]>a[i+1])\n\t\t\t{\n\t\t\t\tc=a[i];a[i]=a[i+1];a[i+1]=c;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",a[n-1],a[n-2]);\n}\n\t\n"} +{"label": "84", "index": "41912", "code": "\nint main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tint n[100];\n\tint i;\n\tfor(i=0;imax)\n\t\t{\n\t\t\tmax=n[j];\n\t\t}\n\t}\n\tprintf(\"%d\",max);\n\tint next=n[0];\n\tint q;\n\tfor(q=1;q=next&&n[q]first)\n\t\t\t{\n\t\t\t\tsecond=first;\n\t\t\t\tfirst=x;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsecond=x;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (x>first)\n\t\t\t{\n\t\t\t\tsecond=first;\n\t\t\t\tfirst=x;\n\t\t\t}\n\t\t\telse if (x>second)\n\t\t\t{\n\t\t\t\tsecond=x;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\", first);\n\tprintf(\"%d\\n\", second);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41914", "code": "int main()\n{\nint num,n;\nint max,sec;\n\n scanf(\"%d\",&n);\n for(int i=0 ;imax)\n\t\t {\n\t\t\t sec=max;\n\t\t\t max=num;\n\t\t }\n\t\t else if(num>sec && numb){\n\t\t\t\tc=b;\n\t\t\t\tb=a[i];\n\t\t\t}\n\t\t\telse{\n\t\tif(a[i]>c){\n\t\t\tc=a[i];\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tprintf(\"%d\\n%d\\n\",b,c);\n\treturn 0;\n}"} +{"label": "84", "index": "41916", "code": "void main()\n{\n\tint i,n,a[100],max1,max2;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++) scanf(\"%d\",&a[i-1]);\n\tif(a[0]>=a[1]){max1=a[0];max2=a[1];}\n\telse {max1=a[1];max2=a[0];}\n\tfor(i=3;i<=n;i++)\n\t{\n\t\tif(a[i-1]>=max1){max2=max1;max1=a[i-1];}\n\t\telse \n\t\t\tif(a[i-1]>=max2) max2=a[i-1];\n\t}\n\tprintf(\"%d\\n%d\\n\",max1,max2);\n}\n"} +{"label": "84", "index": "41917", "code": "int main () {\n\tint max;\n\tint max2;\n\tint a;\n\tint i;\n\ti=1;\n int n;\n scanf(\"%d\\n\",&n);\n\twhile (i<=n) {\n\t\tscanf(\"%d\\n\",&a);\n\tif (i==1) {max=a;max2=a-1;}\n\telse if (a>max){if (max>max2){max2=max;}\n max=a;}\n else if (amax2){max2=a;}}\n\ti++;\n\t}\n\tprintf(\"%d\\n%d\\n\",max,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41918", "code": "int main(){\n int n, i, a, b ,c;\n scanf(\"%d\", &n);\n for(i=1,a=0,b=0;i<=n;i++){\n scanf(\"%d\", &c);\n if(c>a)\n b=a,a=c;\n else if(c>b)\n b=c;\n }\n printf(\"%d\\n\", a);\n printf(\"%d\", b);\n return 0;\n}\n \n "} +{"label": "84", "index": "41919", "code": "void main(){\n\tint a[100];\n\tint m,i,max1,max2;\n\tscanf(\"%d\",&m);\n\tfor(i=0;imax1)max1=a[i];\n\tmax2=a[0];\n\tfor(i=0;imax2&&a[i]!=max1)\n\t\t\tmax2=a[i];\n\tprintf(\"%d\\n%d\",max1,max2);\n}\n\t\t\n\t\n\n"} +{"label": "84", "index": "41920", "code": "//?????????????????\nint main() //???\n{\n\tint k=0,a[101],i=0,max=0,sec=0; //????\n\tcin>>k; //??????k\n\tcin>>a[1]; //????????\n\tmax=a[1]; //??????????\n\tfor(i=2;i<=k;i++) //????\n\t{\n\t\tcin>>a[i]; //???i??\n\t\tif(a[i]>max) \n //???????????????????????????????????\n\t\t{\n\t\t\tsec=max;\n\t\t\tmax=a[i];\n\t\t}\n\t\telse if(a[i]sec) \n //????????????????????????????\n\t\t{\n\t\t\tsec=a[i];\n\t\t}\n\t\telse //???????\n\t\t{\n\t\t\tmax=max;\n\t\t\tsec=sec;\n\t\t}\n\t}\n\tcout<max1){\n\t\t\ttmp = max1;\n\t\t\tmax1 = m;\n\t\t\tmax2 = tmp;\n\t\t}\n\t\telse {\n\t\t\tif(mmax2){\n\t\t\t\tmax1 = max1;\n\t\t\t max2 = m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmax1 = max1;\n\t\t\t\tmax2 = max2;\n\t\t\t}\n\t}\n\t}\n\tprintf(\"%d\\n\", max1);\n printf(\"%d\\n\", max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41922", "code": "void main()\n{int n;\nscanf(\"%d\",&n);\nlong int a[200];\nint i,t,x;\nfor(i=0;it) {t=a[i];x=i;}}\na[x]=a[0];\na[0]=t;\nt=a[1];x=1;\nfor(i=1;it) {t=a[i];x=i;}}\na[x]=a[1];\na[1]=t;\nprintf(\"%d\\n%d\\n\",a[0],a[1]);\n}"} +{"label": "84", "index": "41923", "code": "int max(int sz[],int n)\n{\n\tint i,max;\n\tfor(i=0;imax){\n\t\t\tmax=sz[i];\n\t\t}\n\t}\n\treturn max;\n}\nint main()\n{\n\tint n,m,i;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\tfor(i=0;imax){\n\t\t\tmax=sz[i];\n\t\t\tm=i;\n\t\t}\n\t}\n\tsz[m]=-1;\n\tfor(i=0;isec){\n\t\t\tsec=sz[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",max,sec);\n\treturn 0;\n}"} +{"label": "84", "index": "41924", "code": "void main()\n{\n int a[100],N,i,j,temp;\n scanf(\"%d\\n\", &N);\n for(i=1;i<=N;i++)\n scanf(\"%d\\n\", &a[i]); \n for(i=1;i<=N;i++)\n { \n for(j=i+1;j<=N;j++)\n if (a[j] m1 )\n\t\t\t{\n\t\t\t\tm2 = m1 ;\n\t\t\t\tm1 = j ;\n\t\t\t}\n\t\telse if( j > m2 )\n\t\t\tm2 = j ;\n\t\t\n\t}\n\tprintf(\"%d\\n%d\" , m1 , m2 ) ;\n\treturn 0;\n}\n"} +{"label": "84", "index": "41926", "code": "int main()\n{\n int a,b,c,d,e;\n\tint f[100];\n scanf(\"%d\",&a);\n for (b=1;b<=a;b++)\n\t{\n\t\tscanf(\"%d\",&f[b]);\n if (cd)&&(f[b]a)\n\t\t{\n\t\t\tb=a;\n\t\t\ta=c;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(c>b)\n\t\t\t{\n\t\t\t\tb=c;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\",a,b);\n}\n\n"} +{"label": "84", "index": "41928", "code": "void main()\n{\n\tint i,k,n,a[300],temp;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[k+1])\n\t\t\t{\n\t\t\t\ttemp=a[k];\n\t\t\t\ta[k]=a[k+1];\n\t\t\t\ta[k+1]=temp;\n\t\t\t}\n\t\t\tprintf(\"%d\\n%d\\n\",a[n-1],a[n-2]);\n}"} +{"label": "84", "index": "41929", "code": "int main()\n{\n\tint max=0,submax=0,i,n,x;\n\tscanf(\"%d/n\",&n);\n\tfor(i=0;imax)\n\t\t{\n\t\t\tsubmax=max;\n\t\t\tmax=x;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tsubmax=x;\n\t\t}\n\t}\n\telse \n\t\t{\n\t\tif(x>max)\n\t\t{\n\t\t\tsubmax=max;\n\t\t\tmax=x;\n\t\t}\n\telse if(x>submax)\n\t\t{\n\t\t\tsubmax=x;\n\t\t}\n\n\t}\n\t}\n printf(\"%d\\n\",max);\n\tprintf(\"%d\\n\",submax);\n\treturn 0;\n}"} +{"label": "84", "index": "41930", "code": "void main()\n{\n\tint sum,x,y,k,i,a;\n\tscanf(\"%d\\n%d%d\",&sum,&x,&y);\n\t\tfor(i=1;ik)\n\t\t\t{\n a=k;\n\t\t\t\tx=x;\n\t\t\t\tif(y>a)\n\t\t\t\t{\n\t\t\t\t\ty=y;\n\t\t\t\t}\n\t\t\t\tif(ya)\n\t\t\t\t{\n\t\t\t\t\ty=y;\n\t\t\t\t}\n\t\t\t\tif(yc)\n\t\t{\n\t\t\tm1=b;\n\t\t\tm2=c;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm1=c;\n\t\t\tm2=b;\n\t\t}\n\twhile(i<=a)\n\t{\n\t\tscanf(\"%d\",&x);\n\t\tif(x>m1)\n\t\t{\n\t\t\tm2=m1;\n\t\t\tm1=x;\n\t\t}\n\t\telse if(x>m2)\n\t\t{\n\t\t\tm2=x;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=x;\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n%d\\n\",m1,m2);\n\treturn 0;\n}\n\n\t\t\n\t\t\n\n"} +{"label": "84", "index": "41932", "code": "int main()\n{\n\tint a, b, c;\n\tint j, i;\n scanf(\"%d\", &j);\n\tfor (i=0;i=2)\n\t\t{\n\t\t\tif(b>a)\n\t\t\t{\n\t\t\t\tif(ca&&c>b)\n\t\t\t\t{\n\t\t\t\t\ta=b;\n\t\t\t\t\tb=c;\n\t\t\t\t\tc=a;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(b=b)\n\t\t\t{\n\t\t\t\tb=a;\n\t\t\t}\n\t\t}\n\t\telse if(b0)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]>max)\n\t\t{\n\t\t\tt=max;\n\t\t\tmax=a[i];\n\t\t}\n\t\telse if(tmax1) \n\t\t{\n\t\t\tmax1=a[i];\n\t\t\tj=i;\n\t\t}\n\t}\n for (i=1;i<=n;i++)\n\t{\n\t\tif (i!=j) \n\t\t\tif (a[i]>max2) max2=a[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",max1,max2);\n}"} +{"label": "84", "index": "41935", "code": "void main()\n{\n\tint n,i,a,c,d;\n\tscanf(\"%d\\n\",&n);\n\ti=1;\n\tscanf(\"%d\\n\",&a);\n\tc=a;\n\twhile(ia[i+1])\n\t {\n\t\t e=a[i+1],a[i+1]=a[i],a[i]=e;\n\t }\n }\n\n for(i=0;ia[i+1])\n\t {\n\t\t e=a[i+1];\n\t\t a[i+1]=a[i];\n\t\t a[i]=e;\n\t }\n\t}\n\tprintf(\"%d\\n\",a[k-1]);\n printf(\"%d\\n\",a[k-2]);\n\t\n return 0;\n}"} +{"label": "84", "index": "41937", "code": "\nint main()\n{\n\tint n=0;\n\tscanf(\"%d\",&n);\n\tint i=1;\n\tint x=0,y=0;\n\n\tfor(i=1;i<=n;i++){\n\t\tint t;\n\t\tscanf(\"%d\",&t);\n\t\tif(i==1){\n\t\t\tx=t;\n\t\t}\n\t\telse if(i==2){\n\t\t\ty=t;\n\t\t}\n\t\n\t\tif(xx){\n\t\t\ty=x;\n\t\t\tx=t;\n\t\t}\n\t\telse if (ty){\n\t\ty=t;\n\n\t\t}\n\n\t}\n\tprintf(\"%d\\n%d\\n\",x,y);\n\t\n\t\n\treturn 0;\n}"} +{"label": "84", "index": "41938", "code": "int main()\n{\n\tint n,m,i;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\tfor(i=0;imax){\n\t\t\tmax=sz[i];\n\t\t\tm=i;\n\t\t}\n\t}\n\tsz[m]=-1;\n\tfor(i=0;isec){\n\t\t\tsec=sz[i];\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",max,sec);\n\treturn 0;\n}\n"} +{"label": "84", "index": "41939", "code": "\n\nvoid main()\n{\n\tchar n,i;\n\tint a[N],*p,max,*pmax;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax)\n\t\t\tmax=a[i];\n\t if(a[i]sec)\n\t\t sec=a[i];\n\t}\n\tprintf(\"%d\\n%d\\n\",max,sec);\n}\n"} +{"label": "84", "index": "41944", "code": "void operate(int a[],int n)\n{\tint i,pointer=0,max=a[0];\n\tfor(i=0;imax) {pointer=i;max=a[i];}\n\ta[pointer]=0;\n\tprintf(\"%d\\n\",max);\n}\nvoid main()\n{\tint i,n,a[101];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=3)\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tif(a>=c)\n\t\t{\n\t\t\tif(c>=b){max=a;xmax=c;}\n\t\t\telse if(a>=b){max=a;xmax=b;}\n\t\t\telse {max=b;xmax=a;}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a>=b){max=c;xmax=a;}\n\t\t\telse if(c>=b){max=c;xmax=b;}\n\t\t\t\t else {max=b;xmax=c;}\n\t\t}\n\t\ta=max;b=xmax;\n\t\tk--;\n\t}\n\tprintf(\"%d\\n%d\\n\",max,xmax);\n}"} +{"label": "84", "index": "41946", "code": "int main(){\n int c,d,n;\n int b=0;\n int a=0;\n int i=1;\n scanf(\"%d\\n\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\\n\",&c);\n if(b>a){\n d=a;\n a=b;\n b=d;\n }\n if(c>=a&&a>=b){\n b=a;\n a=c;\n }\n if(a>c&&c>b){\n b=c;\n }\n }\n printf(\"%d\\n%d\",a,b);\n return 0;\n}\n\n "} +{"label": "84", "index": "41947", "code": "int main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tint i, t, x, max, secondmax;\n\tscanf(\"%d\", &t);\n\tmax=secondmax=t;\n\tfor (i=1;imax)\n\t\t{\n\t\t\tsecondmax=max;\n\t\t\tmax=x;\n\t\t\t}\n\t\telse if(x>secondmax)\n\t\t{\n\t\t\tsecondmax=x;\n\n\t\t}\n\t}printf(\"%d\\n%d\\n\", max, secondmax);\n\treturn 0;\n}"} +{"label": "84", "index": "41948", "code": "int main()\n{\n\tint i,j,k,t,m,sz[101]={0};\n\tscanf(\"%d\",&i);\n\tfor(m=0;mmax1) max1=a[i];\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(a[i]>max2&&a[i]b)\nmax1=a,max2=b;\nelse\nmax1=b,max2=a;\nfor(i=1;i<=k-2;i++)\n{\nscanf(\"%d\",&c);\nif(c>max1)\nd=max1,max1=c,max2=d;\nelse\nif(c>max2)\nmax2=c;\n}\nprintf(\"%d\\n\",max1);\nprintf(\"%d\\n\",max2);\n}"} +{"label": "84", "index": "41951", "code": "int main(int argc, char* argv[])\n{\n\tint i,n,t,m1=0,m2=0;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i m1){\n\t\t\tm2=m1;\n\t\t m1=t; \n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",m1,m2);\n\treturn 0;\n}"} +{"label": "84", "index": "41952", "code": "int main()\n{\n\tint n,i;\n\tint num[100];\n\tint a;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&num[i]);\n\t}\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tif (num[0]a)+(x>b) ;\n\n switch(q)\n {\n case 2:\n\n b=a,a=x;\n break;\n case 1:\n b=x;\n break;\n case 0:\n break;\n\n }\n }\n printf(\"%d\\n%d\",a,b);\n\n \n return 0;\n\n }"} +{"label": "84", "index": "41954", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tint i;\n\tint max1;\n\tint max2;\n\tint b;\n\tint c;\n\tscanf(\"%d%d\",&b,&c);\n\tmax1=b;\n\tmax2=c;\n\tint k;\n\tint t;\n\tif (max1max1)\n\t\t{\n\t\t\tmax2=max1;\n\t\t\tmax1=m;\n\t\t}\n\t\telse if(m>max2)\n\t\t{\n\t\t\tmax2=m;\n\t\t}\n \n\t\n\t}\n\tprintf(\"%d\\n%d\",max1,max2);\n\n}\n\t"} +{"label": "84", "index": "41955", "code": "\n\nvoid swep(int *m,int*n)\n{\n\tint t;\n\tt=*m;\n\t*m=*n;\n\t*n=t;\n}\n\nmain()\n{int n;\nint i;\nint *a;\nint b,c;\n\ncin>>n;\na=(int*)malloc(sizeof(int)*n);\n\nfor(i=0;i>a[i];\n\nb=a[0];\nc=a[1];\nif(c>b)\nswep(&b,&c);\n\nfor(i=2;ib)\n\t{\n\t\tc=b;\n\t\tb=a[i];\n\t}\n\telse if (a[i]>c)\n\t\tc=a[i];\n}\ncout<a[1])\n {max=a[0];\n next=a[1];\n }\n else if(a[1]>a[0])\n {max=a[1];\n next=a[0];\n }\n for(i=2;imax)\n {temp=max;\n next=temp;\n\t max=a[i];\n }\n else if(a[i]next)\n next=a[i];\n }\n printf(\"%d\\n%d\",max,next);\n return 0;\n} "} +{"label": "84", "index": "41958", "code": "int main()\n{\n int n,i,max=0,emax=0;\n int a[100];\n scanf(\"%d\",&n);\n for(i=0;imax){\n max=a[i];\n }\n }\n for(i=0;iemax){\n emax=a[i];\n }\n }\n }\n printf(\"%d\\n%d\\n\",max,emax);\n return 0;\n} \n \n "} +{"label": "84", "index": "41959", "code": "void main()\n{\n\tint n;\n\tint i,j;\ndouble a[100];\n\tdouble t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[i])\n\t\t\t{\n\t\t\t\tt=a[i+1];\n\t\t\t\ta[i+1]=a[i];\n\t\t\t\ta[i]=t;\n\t\t\t}\n\t}\n\t\t\n\t}\tprintf(\"%.0lf\\n\",a[0]);\n\t\t\tprintf(\"%.0lf\\n\",a[1]);\n}\n\n"} +{"label": "84", "index": "41960", "code": "int main()\n{\n\tint max,max2,n,now;\n\tscanf(\"%d\",&n);\n\tmax=max2=-10000;\n\twhile (n-->0)\n\t{\n\t\tscanf(\"%d\",&now);\n\t\tif (now>max) \n\t\t{\n\t\t\tmax2=max;\n\t\t\tmax=now;\n\t\t}\n\t\telse\n\t\t\tif (now==max) max2=max;\n\t\t\t\telse\n\t\t\t\t\tif (now>max2) max2=now;\n\t}\n\tprintf(\"%d\\n%d\",max,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41961", "code": "\n\nint main()\n{\n\t int num,i,s[100];\n\t int j,k,l,p;\n\t int max(int a,int b,int c), min(int a,int b,int c);\n\n\t scanf(\"%d\\n\",&num); \n\n\t for(i=0;i<=num-1;i++)\n\t {\n\t\n\t\t scanf(\"%d\\n\",&s[i]);\n\t }\n\n\t k=s[0];\n\t j=s[1];\n\n\t for(i=2;i<=num-1;i++) \n\t {\n\t \n\t l=min(k,j,s[i]);\n\t\t p=k;\n\t\t k=max(k,j,s[i]);\n\t\t j=j+p+s[i]-k-l;\n\t }\n\t\n\t\n\n\t printf(\"%d\\n%d\",k,j);\n\n return 0;\n}\n\nmax( int a, int b, int c)\n{\n\t int m;\n\t m=a>b?a:b;\n\t m=m>c?m:c;\n\t return m;\n} \n\nmin( int a,int b,int c)\n{\n\t int s;\n\t s=a>b?b:a;\n\t s=s>c?c:s;\n\t return s;\n}\n\t\n"} +{"label": "84", "index": "41962", "code": "\nint main(int argc, char* argv[])\n{\n\tint a;\n\tint b;\n\tint i=1;\n\tint m=0,n=0;\n\tscanf(\"%d\\n\",&a);\n\twhile(i<=a)\n\t{\n\t\tscanf(\"%d\\n\",&b);\n\t\t\tif(b>=m)\n\t\t\t{\n\t\t\t\tn=m;\n\t\t\t\tm=b;\n\t\t\t}\n\t\t\tif(bn)\n\t\t\t{\n\t\t\t\tn=b;\n\t\t\t}\n\t\t\ti++;\n\t}\n\t\tprintf(\"%d\\n\",m);\n\t\tprintf(\"%d\\n\",n);\n\n \n\treturn 0;\n}"} +{"label": "84", "index": "41963", "code": "int main()\n{\n\tint n;\n\tint s,t,r;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;is)\n\t\t\t{\n\t\t\t\tr=s;\n\t\t\t\ts=t;\n\t\t\t\tt=r;\n\t\t\t\tr=NUMBER;\n\t\t\t\tNUMBER=s;\n\t\t\t\ts=r;\n\t\t\t}\n\t\t\telse if(NUMBER>t)\n\t\t\t{\n\t\t\t\tr=NUMBER;\n\t\t\t\tNUMBER=t;\n\t\t\t\tt=r;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n\",s,t);\n\treturn 0;\n}"} +{"label": "84", "index": "41964", "code": "int main()\n{\n\tint i=3,n,a,b,c;\n\tscanf(\"%d%d%d\",&n,&a,&b);\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tif(a>=b&&c>=b)\n\t\t\tb=c;\n\t\telse\n\t\t{\n\t\t\tif(b>=a&&c>=a)\n\t\t\t\ta=c;\n\t\t}\n\t\ti++;\n\t}\n\tif (a=max){\n\t\t \n e=max;\n max=t;\n smax=e;\n\t }\n\t else{\n\t\t smax=t;\n\t }\n }\n if(i>>1){ \n\t if(t>=max){\n e=max;\n max=t;\n smax=e;\n }\n if(t>=smax&&tmax&&a[i]>max2)\n\t\t{\n\t\t\tmax2=max;\n\t\t\tmax=a[i];\n } \n\t\telse if(a[i]max2)\n\t\t\tmax2=a[i];\n\t\ti++;\n\t}\n printf(\"%d\\n%d\\n\",max,max2);\n\treturn 0;\n}\n\n\n"} +{"label": "84", "index": "41967", "code": "int main()\n{\n int i,n,x,a,b,t,m,c;\n int s[100];\n scanf(\"%d\",&n);\n for(i=0;ib&&s[i]>n;\n\tcin>>i;\n\tcin>>j;\n\tn=n-2;\n\twhile (n--) {\n cin>>temp;\n\t\t if (temp>i) {\n\t\t\t j=i;\n\t\t\t i=temp;\n }\n\t\t if (tempj) {\n\t\t\t j=temp;\n\t\t }\n \t\t\n\n\t}\n\tcout<imax)\n {\n max=imax;\n a=imax;\n }\n else max=a;\n break;\n default:scanf(\"%d\",&a);\n if(a>=imax)\n {\n max=imax;\n imax=a;\n }\n else if(a=max)\n {\n max=a;\n }\n }\n }\n printf(\"%d\\n%d\\n\",imax,max);\n return 0;\n}\n"} +{"label": "84", "index": "41970", "code": "\nint main(int argc, char* argv[])\n{\n\tint a[100];\n\tint i,j,h,t;\n\tscanf(\"%d\\n\",&h);\n for(i=0; i < 100; i ++)\n a[i] = 0;\n\tfor(i=0;imax1)\n{\n max2=max1;\n max1=b;\n }\nelse if(max1>b&&b>max2)\n{\nmax1;\nmax2=b;\n}\nelse if(max2>b)\n{\nmax1;\nmax2;\n}\ni++;\n}\nprintf(\"%d\\n%d\\n\",max1,max2);\nreturn 0;\n}\n"} +{"label": "84", "index": "41973", "code": "void main()\n{\n\tint i,n,max=0,b=0,c,a[101];\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax) max=a[i];\n\t}\n\tprintf(\"%d\\n\",max);\n\tc=max;\n for(i=0;ib&&a[i]=max){\n\t\t\tmax2=max;\n\t\t\tmax=a;\n\t\t\tcontinue;\n\t\t}\n\t\telse if((a=max2)){\n\t\t\tmax2=a;\n\t\t\tcontinue;\n\t\t}\n\t\telse continue;\n\t}\n\tprintf(\"%d\\n%d\\n\",max,max2);\n\treturn 0;\n}"} +{"label": "84", "index": "41975", "code": "int main()\n{\n\tint a,b=0,c=0,d,i=0,n;\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;ic)\n\t\t {\n c=a;\n \n\t\t }\n\t\t \n\t if(b>k;\n \n for(i=0;i>num[i]; //????\n \n\n for(i=1;inum[0]){ temp=num[0]; num[0]=num[i]; num[i]=temp;}}\n \n for(i=1;inum[1]) { temp=num[1]; num[1]=num[i]; num[i]=temp;}}\n \n cout<max1)\n max1=a[i];\n\t}\n\tprintf(\"%d\\n\",max1);\n\tmax2=a[0];\n\tfor(i=1;imax2&&a[i]n)\n\t\t\tn=a[i];\n\t\t\n\t}\n for(i=0;i<100;i++)\n\t{\n\t\tif(a[i]==n)\n\t\t\ts=i;\n\t\t\n\t}\n\tfor(i=0;ij)\n\t\t\tj=a[i];\n\t\t\n\t}\nfor(i=s+1;ij)\n\t\t\tj=a[i];\n\t\t\n\t}\nprintf(\"%d\\n%d\\n\",n,j);\n}\n"} +{"label": "84", "index": "41983", "code": "int main()\n{\n\tint n,i,m[100],t;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&m[i]);\n\t\tif(m[i]>=m[i-1])\n\t\tm[i]=m[i],m[i-1]=m[i-1];\n\t\telse if(m[i]>=m[i-2])\n\t\tt=m[i],m[i]=m[i-1],m[i-1]=t;\n\t\telse m[i]=m[i-1],m[i-1]=m[i-2];\n\t}\n\tprintf(\"%d\\n%d\\n\",m[n],m[n-1]);\n\treturn 0;\n}"} +{"label": "84", "index": "41984", "code": "int main()\n{\n\tint a,b,i,n,m=0,p=0;\n\tscanf(\"%d\",&a);\n\tscanf(\"%d\",&b);\n\tm=b;\n\tfor(i=2;i<=a;i++)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\n\t\tif (n>m)\n\t\t{\n\t\t\tp=m;\n\t\t m=n;\n\t\t}if(n>p&&n=max){\n\t\t\td=max;\n\t\t\tmax=c;\n\t\t\tsecond=d;\n\t\t }\n\t\t if((max>c)&&(c>=second)){\n\n\t\t\t second=c;\n\t\t }\n\t\t \n\t\t a+=1;\n\t}\n\tprintf(\"%d\\n%d\\n\",max,second);\n\treturn 0;\n}\n\n "} +{"label": "84", "index": "41987", "code": "\nint main(int argc, char* argv[])\n{\n\tint k,i=2,a,b,n,m;\n\tscanf(\"%d\\n%d\",&k,&m);\n a=m;\n\tb=m;\n\twhile(i<=k)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n>a)\n\t\t{\n\t\t\ta=n;\n\t\t}\n if(nb)\n {\n b=n;\n }\n\t\ti++;\n\t}\n\t\n\tprintf(\"%d\\n%d\\n\",a,b);\n\t\n\treturn 0;\n}\n\n"} +{"label": "84", "index": "41988", "code": "int main()\n{\nint n,i,r,fm,sm;\nint shu[100];\nscanf(\"%d\\n\",&n);\nfor(i=0;i0;i--)\n{\nfor(r=0;rshu[r+1])\n{\nint tmp;\ntmp=shu[r+1];\nshu[r+1]=shu[r];\nshu[r]=tmp;\n}\n}\n}\nfm=shu[n-1];\nsm=shu[n-2];\nprintf(\"%d\\n\",fm);\nprintf(\"%d\\n\",sm);\nreturn 0;\n}\n\n"} +{"label": "84", "index": "41989", "code": "int main()\n{\n\tint i,n,a[n],x,y;\n\tint *p;\n\tscanf(\"%d\",&n);\n\tfor(p=a;p>n;\n \n \n \n if(n>1&&n<100)\n {int a[n+1];\n for(i=1;i<=n;i++) \n {\n cin>>a[i];\n }\n for (i=1;i<=3;i++) \n {\n for(j=1;j<=n-i;j++)\n {\n if(a[j]>=a[j+1])\n {m=a[j];\n a[j]=a[j+1];\n a[j+1]=m;} \n } \n } \n cout<max)\n\t\t\tmax=a[i];\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(a[i]>m2&&a[i]!=max)\n\t\t\tm2=a[i];\n\t}\n\tprintf(\"%d\\n\",max);\n\tprintf(\"%d\\n\",m2);\n\treturn 0;\n}"} +{"label": "84", "index": "41993", "code": "int main()\n{\n\tint sz[101];\n\tint n;\n\tscanf(\"%d\\n\",&n);\n int e;\n\tfor(int m=0;mmax)\n { \n if(max>lmax)\n {\n lmax=max;\n }\n max=b;\n }\n else if (b>lmax)\n {\n lmax=b;\n }\n }\n printf(\"%d\\n%d\\n\",max,lmax);\n scanf(\"%d\",&n);\n return 0;\n} "} +{"label": "84", "index": "41996", "code": "int main(int argc, char* argv[])\n{\n\tint e,len;\n\tscanf(\"%d\",&len);\n\tint num[100];\n\tfor(int i=0;i=y)\n\t\treturn x;\n\telse\n\t\treturn y;\n}\nint main()\n{\n\tint n,a[1000],maxtemp,maxtemp2;\n\tcin>>n;\n\tfor(int i=0;i>a[i];\n\tmaxtemp=maxtemp2=a[0];\n\tfor(int i=0;iq){\n\n a=p;\n\nb=q;\n\n }\n\n else if(p<=q){\n\n a=q;\n\n b=p;\n\n }\n\n i=3;\n\n while(i<=n){\n\n scanf(\"%d\",&m);\n\n if(m>a){\n\n b=a;\n\n a=m;\n\n }\n\nelse if(m>b){\n\n b=m;\n\n }\n\n i++;\n\n }\n\n printf(\"%d\\n%d\\n\",a,b);\n\n return 0;\n\n}\n"} +{"label": "84", "index": "41999", "code": "int main(){\n\tint n,i,a,b,c;\n\ti=1;\n\tscanf(\"%d\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&a);\n\t\tif(i==1){\n\t\t\tb=a;\n\t\t\ta=0;\n\t\t}else{\n\t\t\tif(a>b){\n\t\t\t\tc=b;\n\t\t\t\tb=a;\n\t\t\t}else{\n\t\t\t\tb=b;\n\t\t\t\tif(a>=c){\n\t\t\t\t\tc=a;\n\t\t\t\t}else{\n\t\t\t\t\tc=c;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\tprintf(\"%d\\n%d\\n\",b,c);\n\treturn 0;\n}\n"} +{"label": "85", "index": "42000", "code": "int main()\n{\n int i, j, n,k[21]; \n char s[MAX+1]; \n scanf(\"%d\", &n); \n for (i = 0; i < n; i++) { \n scanf(\"%s\", s);\n k[i]=0; \n for (j = 0; s[j]; j++) {\n if (!((s[j] == '_') || \n (s[j] >= 'A' && s[j] <= 'Z') || \n (s[j] >= 'a' && s[j] <= 'z') || \n (s[j] >= '0' && s[j] <= '9' && j > 0)))\n k[i]+=1 ; \n }\n if(k[i]==0){\n printf(\"yes\\n\");\n }else{\n printf(\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42001", "code": "\n\nint main()\n{\n\tint n,i,l,m,x;\n\tscanf(\"%d\",&n);\n\tchar c[21];\n\tfor(l=0;l=65&&c[0]<=90)||(c[0]>=97&&c[0]<=122)||c[0]=='_')\n\t\t{\n\t\t\tfor(i=1;i=65&&c[i]<=90)||(c[i]>=97&&c[i]<=122)||(c[i]=='_')||(c[i]>=48&&c[i]<=57))\n\t\t\t\t{\n\t\t\t\t\tx=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=0;\n\t\t}\n\t\tif(x==0) printf(\"no\\n\");\n\t\tif(x==1) printf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42002", "code": "int main()\n{\n int j,i,n,l,t=0;\n char s[10000][20];\n scanf(\"%d\",&n);\n for(i=0;i='a'&&s[i][0]<='z')||(s[i][0]>='A'&&s[i][0]<='Z')||s[i][0]=='_') \n {\n for(j=1;j='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||s[i][j]=='_'||(s[i][j]>='0'&&s[i][j]<='9'))\n t=0;\n else\n {\n t=1; \n printf(\"no\\n\");\n break;\n } \n }\n if(t==0)\n printf(\"yes\\n\"); \n }\n else\n {\n printf(\"no\\n\");\n }\n } \n getchar();\n getchar();\n getchar();\n return 0;\n}\n \n \n \n \n \n"} +{"label": "85", "index": "42003", "code": "int i,n;\nchar str[21],*q;\nint main(){\n scanf(\"%d\",&n);\n for(i=0;i90)&&(*q<97)||(*q>122))){\n printf(\"no\\n\");\n continue;\n }\n \n else{\n q++;\n while(*q!='\\0'){\n if((*q!=95)&&((*q<48)||(*q>57)&&(*q<65)||(*q>90)&&(*q<97)||(*q>122))){\n printf(\"no\\n\");\n break;\n }\n q++;\n }\n if(*q=='\\0')\n printf(\"yes\\n\");\n }\n }\n\n//scanf(\"%d\",&i);\nreturn 0;\n}\n"} +{"label": "85", "index": "42004", "code": "int main()\n{\n int n;\n int i;\n int j;\n int l;\n \n scanf (\"%d\",&n);\n char c[20];\n for (i=1;i<=n;i++)\n { \n\t int count =1 ;\n\t scanf (\"%s\",c);\n\t l = strlen(c) ;\n\n\n\t if(c[0]<=64 )\n\t\t count = 0;\n\t if (c[0]>=123)\n\t\t count =0;\n\t if (c[0]>=91 && c[0]<=96 && c[0]!=95)\n\t\t count = 0;\n\t for (j=1;j=58&&c[j]<=64)\n\t\t\t count = 0;\n if (c[j]>=91&&c[j]<=96)\n\t\t\t count = 0;\n\t if (c[j]>=123&&c[j]<=127)\n\t\t count = 0;\n\t\t \n\n\t }\n\t if (count==0) printf (\"no\\n\");\n if (count==1) printf (\"yes\\n\");\n\n }\n \n return 0;\n \n}"} +{"label": "85", "index": "42005", "code": "main()\n{\n\tint i,j,l,n,k=0,x=0;\n char s[100][21];\n scanf(\"%d\",&n);\n for(i=0;i='a'&&s[i][j]<='z')\n\t\t k++;\n\t\t else if(s[i][j]>='A'&&s[i][j]<='Z')\n\t\t k++;\n\t\t else if(s[i][j]=='_')\n\t\t k++;\n\t\t else if(s[i][j]>='0'&&s[i][j]<='9')\n\t\t k++;\n\t\t}\n\t\tif(s[i][0]=='_')\n\t\tx++;\n\t\telse if(s[i][0]>='a'&&s[i][0]<='z')\n\t\tx++;\n\t\telse if(s[i][0]>='A'&&s[i][0]<='Z')\n\t\tx++;\n\t\telse if(s[i][0]=='_')\n\t\tx++;\n\t\tif(x==1&&k==l)\n\t\tprintf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42006", "code": "int main()\n{\n\tint n,i,j;\n\tchar a[25];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tgets(a);\n\t\tfor(j=0;j<=strlen(a)-1;j++)\n\t\t{\n\t\t\tif(j==0)\n\t\t\t{\n\t\t\t\tif(a[0]>='A'&&a[0]<='Z'||a[0]>='a'&&a[0]<='z'||a[0]=='_');\n\t\t\t\telse\t\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[j]>='A'&&a[j]<='Z'||a[j]>='a'&&a[j]<='z'||a[j]=='_'||a[j]>='0'&&a[j]<='9')\n\t\t\t\t{\n\t\t\t\t\tif(j==strlen(a)-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"yes\\n\");break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "85", "index": "42007", "code": "int main()\n{\n int n,i,q;\n scanf(\"%d\",&n);\n char zfc[22];\n int a[n];\n for(i=0;i='a'&&zfc[q]<='z')||(zfc[q]>='A'&&zfc[q]<='Z')||(zfc[q]>='0'&&zfc[q]<='9'&&q>0)))\n {\n a[i]=a[i]+1;\n }\n else\n {\n a[i]=a[i];\n }\n }\n }\n for(i=0;i='0'&&c[0]<='9')\n\t\t\tf=1;\n\t\telse\n\t\t\tfor(j=0;c[j]!=0;j++)\n\t\t\t{\n\t\t\t\tif((c[j]<'a'&&c[j]>'Z'||c[j]>'z'||c[j]<'A'&&c[j]>'9'||c[j]<'0')&&c[j]!='_')\n\t\t\t\t\tf=1;\n\t\t\t}\n\t\tif(f)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t\t\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42009", "code": "int main()\n{\nint n;\ncin>>n;\nwhile(n--)\n{\n\tchar a[30];\n\tcin>>a;\n\tint la=strlen(a);\n\tint i;\n\tint count=0;\n\tfor (i=0;i='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||(a[i]>='0'&&a[i]<='9')||a[i]=='_')\n\t\t\tcount++;\n\t}\n\tif (count!=la||(a[0]>='0'&&a[0]<='9'))\n\t\tcout<<\"no\"<='0'){printf(\"no\");w=1;break;}\nif((a[i][j]<='9'&&a[i][j]>='0')||(a[i][j]<='Z'&&a[i][j]>='A')||(a[i][j]<='z'&&a[i][j]>='a')||a[i][j]=='_')\n{\n\n}\nelse {printf(\"no\");w=1;break;}\n\n}\nif(w!=1)printf(\"yes\");\nif(i!=n)printf(\"\\n\");\n}\n}"} +{"label": "85", "index": "42011", "code": "int main(){\n int i,n,k,s;\n scanf(\"%d\",&n);\n char zfc[100][21];\n for(i=0;i=65&&zfc[i][0]<=90)||(zfc[i][0]>=97&&zfc[i][0]<=122)){\n s=0;\n for(k=0;k=48&&zfc[i][k]<=57)||(zfc[i][k]==95)||(zfc[i][k]>=65&&zfc[i][k]<=90)||(zfc[i][k]>=97&&zfc[i][k]<=122))\n s++;\n \n } \n if(s==strlen(zfc[i])){\n printf(\"yes\\n\");\n }else{printf(\"no\\n\");}\n }\n else{printf(\"no\\n\");}\n }\n return 0; \n}\n \n\n\n\n\n"} +{"label": "85", "index": "42012", "code": "int main(){\n char zf[256];\n\tint i,j,n,count=1;\n scanf(\"%d\",&n);\n\n\tfor(i=0;i'z'||(zf[0]<'a'&&zf[0]>'Z')||zf[0]<'A'){\n\t\t\tif(zf[0]!='_'){\n\t\t\tcount=0;\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\t}\n\t\tfor(j=1;zf[j]!='\\0';j++){\n\t\t\tif(zf[j]=='_'||(zf[j]>='A'&&zf[j]<='Z')||(zf[j]>='0'&&zf[j]<='9')||(zf[j]>='a'&&zf[j]<='z'))\n\t\t\t\tcount=1;\n\t\t\telse{\n\t\t\t\tcount=0;\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t}if(count==1)\n\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n\n}"} +{"label": "85", "index": "42013", "code": "int main()\n{\nint n,i,k,t;\nchar s[60];\nwhile(scanf(\"%d\",&n)!=EOF)\n{\ngetchar();\nwhile(n--)\n{\ngets(s);\nt=strlen(s);\nif(t>50)\n{\nprintf(\"no\\n\" );\ncontinue;\n}\nif(!((s[0]>='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||s[0]=='_'))\n{\nprintf(\"no\\n\");\ncontinue;\n}\nk=1;\nfor(i=0;s[i]!='\\0';i++)\n{\nif(s[i]==' ')\n{\nk=0;\nbreak;\n}\nif(!((s[i]>='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z')||(s[i]>='0'&&s[i]<='9')||s[i]=='_'))\n{\nk=0;\nbreak;\n}\n}\nif(k==0)\n{\nprintf(\"no\\n\");\ncontinue;\n}\nprintf(\"yes\\n\");\n}\n}\nreturn 0;\n}\n"} +{"label": "85", "index": "42014", "code": "int main(){\n\tint n;\n\tint i,j;\n\tint k[20],l[100];\n\tchar bsf[100][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&bsf[i][0]<='z')||(bsf[i][0]>='A'&&bsf[i][0]<='Z')){\n\t\t\t\tif((bsf[i][j]=='_')||(bsf[i][j]>='a'&&bsf[i][j]<='z')||(bsf[i][j]>='A'&&bsf[i][j]<='Z')||(bsf[i][j]>='0'&&bsf[i][j]<='9')){\n\t\t\t\t\tk[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='a'&&s[0]<='z' || s[0]>='A'&&s[0]<='Z' || s[0]=='_' || s[0]=='$') )\n printf(\"no\\n\");\n else{\n for(j=0;j='a'&&s[j]<='z' || s[j]>='A'&&s[j]<='Z' || s[0]=='_' || s[0]=='$' || s[j]>='0'&&s[j]<='9') ){\n printf(\"no\\n\");\n break;\n }\n }\n if(j==strlen(s))\n printf(\"yes\\n\");\n }\n}\nreturn 0;\n}"} +{"label": "85", "index": "42016", "code": "int main()\n{\n\tint i,j,n,k;\n\tchar s[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||\n(s[j]>='0'&&s[j]<='9'&&j!=0))){\n\t\t\tbreak;}\n\t}\n\tif(j='a'&&zfc[i][0]<='z')||(zfc[i][0]>='A'&&zfc[i][0]<='Z')||(zfc[i][0]=='_'))\n\t\t{\n\t\t\t1;\n\t\t}else{\n\t\t a=0;\n\t\t}\n for(j=1;zfc[i][j]!='\\0';j++)\n\t\t{\n\t\t\tif((zfc[i][j]>='a'&&zfc[i][j]<='z')||(zfc[i][j]>='A'&&zfc[i][j]<='Z')||(zfc[i][j]=='_')||(zfc[i][j]>='0'&&zfc[i][j]<='9'))\n\t\t\t{\n\t\t\t\t1;\n\t\t\t}else{\n\t\t\t a=0;\n\t\t\t}\n\t\t}\n if(a==0)\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}else if(a==1)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42018", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\\n\",&n);\n\tint i,j;\n\tfor(i=0;i='a')||s[0]=='_'||(s[0]<='Z'&&s[0]>='A'))\n\t\t{\n\t\t\tfor(j=1;s[j]!='\\0';j++)\n\t\t\t{\n\n\t\t\t char b;\n\t\t\t b=s[j];\n\t\t\t if((b<='z'&&b>='a')||(b<='Z'&&b>='A')||(b<='9'&&b>='0')||(b=='_'))\n\t\t\t\t{\n\t\t\t\t r++;\n\t\t\t\t}\n\t\t\t else\n\t\t\t\t{\n\t\t\t printf(\"no\\n\");\n\t\t\t \tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t if(s[j]=='\\0')\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t}\n \t else\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42019", "code": "int main()\n{\n\tint n, i, j, flag;\n\tchar str[100][20];\n\tcin >> n;\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tflag = 0;\n\t\tcin >> str[i];\n\t\tif ((char)65 <= str[i][0] && str[i][0] <= (char)90 ||\n\t\t\t(char)97 <= str[i][0] && str[i][0] <= (char)122 ||\n\t\t\tstr[i][0] == (char)95)\n\t\t{\n\t\t\tfor (j = 1; j < strlen(str[i]); j ++)\n\t\t\t{\n\t\t\t\tif ((char)65 <= str[i][j] && str[i][j] <= (char)90 ||\n\t\t\t\t\t(char)97 <= str[i][j] && str[i][j] <= (char)122 ||\n\t\t\t\t\t(char)48 <= str[i][j] && str[i][j] <= (char)57 ||\n\t\t\t\t\tstr[i][j] == (char)95)\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcout << \"no\" << endl;\n\t\t\t\t\tflag = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == 0)\n\t\t\t\tcout << \"yes\" << endl;\n\t\t}\n\t\telse\n\t\t\tcout << \"no\" << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42020", "code": "\nint main(){\nint n,i,j,m=1;\nchar s[MAX+1];\nscanf(\"%d\",&n);\nfor(j=0;j='A'&&s[i]<='Z')||(s[i]>='a'&&s[i]<='z')||(s[i]>='0'&&s[i]<='9'&&i>0))){\n\t\tm=0;\n\t\tbreak;\n\t\t}\n\t\telse{\n\t\t\tm=1;\n\t\t}\n\t\t\t\n\t\t}\n if(m==0){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t\telse if(m==1){\n\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n}\nreturn 0;\n}\n\n\n\t\n\t\t\n\n\n\t\n\t\t\n\n"} +{"label": "85", "index": "42021", "code": "//\n// main.c\n// Track 79,???C???\n//\n// Created by Charles.thRay.Lee on 2/1/13.\n// Copyright (c) 2013 Peking University. All rights reserved.\n/*\n ??\t???? ???? 06 ????? ????\n ??\n ??n????????????????????C?????????????????????C????????\n ????\n ??????n???n?????????????????????????????20?\n ????\n ?????????????C????????????yes?????no?\n ????\n 6\nGUE9NF1Ic\ncGB8nd97F3\nRKPEGX9R;TWyYcp\niefZIko1s}zy9XBg\nsapOF3\n6Lv5BYPeLPJ3vV`2[h\n ????\n yes\n \n yes\n \n no\n \n no\n \n yes\n \n no\n ??\n ??????????\n \n ??:???????????????? • ??:\n\u0096 ??????????????,????????? ??????\n\u0096 ?????(????)\n\u0096 ???????(????????) \u0096 ??:????,??????32???\n?:???????????\nsum Sum M.D.John day Date 3days student_name #33 lotus_1_2_3\nchar a>b _above $123\n*/\n\n\nint main()\n{\n int n,i,i1,k=1;\n long len;\n scanf(\"%d\",&n);\n char s[500][20];\n \n for (i=0; i'Z')&&(s[i][0]<'a'||s[i][0]>'z')&&s[i][0]!='_') {\n printf(\"no\\n\");\n continue;\n }\n len=strlen(s[i]);\n for (i1=1; i1'Z')&&(s[i][i1]<'a'||s[i][i1]>'z')&&s[i][i1]!='_'&&(s[i][i1]<'0'||s[i][i1]>'9'))\n {\n printf(\"no\\n\");\n k=0;\n break;\n }\n }\n if (k==1) {\n printf(\"yes\\n\");\n }\n }\n \n}\n"} +{"label": "85", "index": "42022", "code": "int main(){\n\tint N,i,k,flag;\n\tchar a[100];\n\tscanf(\"%d\\n\",&N);\n\tfor(i=0;i='A')&&(a[0]<='Z'))||((a[0]>='a')&&(a[0]<='z'))){\n\t\t\t\tfor(k=1;k'9')&&(a[k]<'A'))||((a[k]>'Z')&&(a[k]<'_'))||((a[k]>'_')&&(a[k]<'a'))||(a[k]>'z')){\n\t\t\t\t\t\tflag=0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\telse flag=0;\n\t\tif(flag==0) printf(\"no\\n\");\n\t\tif(flag==1) printf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42023", "code": "int main(){\n\tchar xulie[100][21];\n\tint i,j,n,c;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=65&&xulie[i][0]<=90)||(xulie[i][0]>=97&&xulie[i][0]<=122))\n\t\tfor(j=1;j=33&&xulie[i][j]<=47)||(xulie[i][j]>=58&&xulie[i][j]<=64)||(xulie[i][j]>=91&&xulie[i][j]<=94)||(xulie[i][j]==96)||(xulie[i][j]>=123&&xulie[i][j]<=127))\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tc=1;\n\t\t}\n\t\telse\n\t\t\tc=0;\n\t\tif(c==1)\n\t\t\tprintf(\"yes\\n\");\n\t\tif(c==0)\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42024", "code": "int main()\n{\n\tint i,j,n,l,result[20];\n\tchar a[20][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||(a[i][0]=='_'))\n\t\t{\n\t\t for(j=1;j='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]=='_')||(a[i][j]>='0'&&a[i][j]<='9')))\n\t\t\t\t{\n\t\t\t\t\tresult[i]=0;\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t\tif(j==l-1)\n\t\t\t\t{\n\t\t\t\t\tresult[i]=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i='a'&&zf[j]<='z')||\n\t\t\t(zf[j]>='A'&&zf[j]<='Z')||\n\t\t\t(zf[j]>='0'&&zf[j]<='9'&&j>0)))\n\t\t\tbreak;\n\t}\n printf(zf[j] ? \"no\\n\":\"yes\\n\"); \n\t}\n return 0;\n}"} +{"label": "85", "index": "42026", "code": "\nint main(int argc, char* argv[])\n{\n\tint j,n,i;\n\tchar s[32];\n\tscanf (\"%d\",&n);\n\tfor (i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)))break;\n\t\t}\n\t\tif (s[j])\n\t\t\tprintf (\"no\\n\");\n\t\telse printf (\"yes\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42027", "code": "\n int main () {\n int n,sz[100]={0};\n char s[max+1];\n scanf(\"%d\",&n);\n for (int i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0))) {\n sz[i]=-1; break;\n }\n }\n }\n for (int p=0;p= 'A' && s[i][j] <= 'Z') || \n (s[i][j] >= 'a' && s[i][j] <= 'z') || \n (s[i][j] >= '0' && s[i][j] <= '9' && j > 0)))\n \n break; \n }\n printf(s[i][j] ? \"no\\n\":\"yes\\n\"); \n } \n return 0;\n}"} +{"label": "85", "index": "42029", "code": "int main()\n{\n int n;\n char sr[100][100];\n int i,j,sum[100];\n scanf(\"%d\",&n);\n for(i=0;i='A'&&sr[i][j]<='Z')||(sr[i][j]>='a'&&sr[i][j]<='z')||(sr[i][j]>='0'&&sr[i][j]<='9')||(sr[i][j]=='_'))&&((sr[i][0]>='A'&&sr[i][0]<='Z')||(sr[i][0]>='a'&&sr[i][0]<='z')||(sr[i][0]=='_'))) sum[i]=1;\n else{\n sum[i]=0;\n break;\n }\n }\n if(sum[i]==0) printf(\"no\\n\");\n else printf(\"yes\\n\");\n } \n \n return 0;\n}"} +{"label": "85", "index": "42030", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n for(int i=1;i<=n;i++){\n char zfc[21];\n scanf(\"%s\",zfc);\n if((zfc[0]>='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')||zfc[0]=='_'){\n int s;\n for(int k=1;zfc[k]!='\\0';k++){\n if((zfc[k]>='a'&&zfc[k]<='z')||(zfc[k]>='A'&&zfc[k]<='Z')||zfc[k]=='_'||(zfc[k]>='0'&&zfc[k]<='9')){\n s=0;\n }else{\n s=1;\n break;\n }\n }\n if(s==0){\n printf(\"yes\\n\");\n }else if(s==1){\n printf(\"no\\n\");\n }\n }else{\n printf(\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42031", "code": "int main()\n{\n char str[100];\n int i, len, n, hash=1;\n cin>>n;\n cin.get();\n while(n--)\n {\n hash=1;\n cin.getline(str,100);\n len=strlen(str);\n if((str[0]>='a' && str[0]<='z')||(str[0]>='A' && str[0]<='Z')||str[0]=='_')\n { hash=1;\n for(i=1; i='a' && str[i]<='z')||(str[i]>='A' && str[i]<='Z'))\n hash=1;\n else if((str[i]>='0' && str[i]<='9')||str[i]=='_'||str[i]=='('||str[i]==')')\n hash=1;\n else\n {\n hash=0;\n break;\n }\n }\n }\n else hash=0;\n if(hash==1)\n cout<<\"yes\"<='a' && p<='z') || (p>='A' && p<='Z'))\n\t\tz=1;\n\treturn z;\n}\n\nint behind(char p)\n{\n\tint z=0;\n\tif(p=='_' || (p>='a' && p<='z') || (p>='A' && p<='Z') || p=='0' || (p>='1' && p<='9'))\n\t\tz=1;\n\telse\n\t\tz=0;\n\treturn z;\n}\n\nint main()\n{\n\tchar *p;\n\tint *tf;\n\tint n,i,j,len;\n\tscanf(\"%d\",&n);\n\tp=(char*)malloc(sizeof(int)*25);\n\ttf=(int*)malloc(sizeof(int)*n);\n\tfor(i=0;i=65&&k<=90)||(k>=97&&k<=122))\n {\n for(j=1;j<=p-1;j++)\n {\n k=a[i][j];\n if(k<=47||(k>=58&&k<=64)||(k>=91&&k<=94)||k==96||k>=123)\n {\n printf(\"no\\n\");\n m=1;\n break;\n }\n }\n }\n else {printf(\"no\\n\"); m=1;}\n if(m==0) printf(\"yes\\n\");\n }\n return 0;\n}\n"} +{"label": "85", "index": "42034", "code": "int main(){\n int n,i,k,a;\n char sz[10000];\n\tscanf(\"%d\",&n);\n\tfor(k=0;k='0')&&(sz[i]<='9'))||((sz[i]>='a')&&(sz[i]<='z'))||((sz[i]>='A')&&(sz[i]<='Z'))||(sz[i]=='_')){\n\t a=a+1;\n\t }\n\t}\n if((sz[0]>='0')&&(sz[0]<='9')){\n a=0;\n }\n if(a==strlen(sz)){\n printf(\"yes\\n\");\n }\n else{\n printf(\"no\\n\");\n }\n\t }\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "85", "index": "42035", "code": "\nvoid main()\n{\nint n;\nchar c[1000];\nint i,j;\nint dd=1;\nint len;\nscanf(\"%d\",&n);\n\n\nfor(i=0;i=123)||(c[0]<=96&&c[0]>=91)))\n{dd=0;}\nif((c[0]>64&&c[0]<91)||(c[0]>96&&c[0]<123))\n{\n\nfor(j=1;j57)&&((c[j]<=64||c[j]>=123)||(c[j]<=96&&c[j]>=91)))\n{\ndd=0;\nbreak;\n}\n\n}\n\n\n}\n\nif(dd==1)\nprintf(\"yes\\n\");\nelse\nprintf(\"no\\n\");\n\n}\n\n\n\n}"} +{"label": "85", "index": "42036", "code": "int main(){\n int n,i,j;\n\tchar str[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&str[0]<='z')||(str[0]>='A'&&str[0]<='Z')){\n\t\t\tfor(j=1;str[j]!='\\0';j++){\n\t\t\t\tif(str[j]=='_'||(str[j]>='a'&&str[j]<='z')||(str[j]>='A'&&str[j]<='Z')||(str[j]>='0'&&str[j]<='9')){\n\t\t\t\t\tj=j;\n\t\t\t}else{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\tif(str[j]=='\\0'){\n\t\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42037", "code": "int main()\n{\n\tint n,i,mark,m,j;\n\tchar a[21]={'\\0'};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&a[j]<='9')||(a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z'))\n\t\t\t\tmark=0;\n\t\t\telse{\n\t\t\t\tmark=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(a[0]>='0'&&a[0]<='9')\n\t\t\tmark=1;\n\t\tif(mark==1)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42038", "code": "int panduan(char x);\nint panduan(char x){\n int s=1;\n if((x>='a'&&x<='z')||(x>='A'&&x<='Z')||(x=='_')||(x>='0'&&x<='9'))\n {\n s=0;\n }\n return s;\n\n}\nint main(){\n int i,j,n,len;\n scanf(\"%d\",&n);\n char zfc[100][21];\n for(i=0;i='a'&&zfc[i][0]<='z')||(zfc[i][0]>='A'&&zfc[i][0]<='Z')||zfc[i][0]=='_')&&\n\n(s==0)\n){\n printf(\"yes\\n\");\n }\n else{\n printf(\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42039", "code": "int main() {\n int i,x,m,n,b,c;\n char a[21];\n scanf(\"%d\",&n);\n for(m=0;m='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')){\n b=0;\n } else {\n b=1;}\n for(i=1;i='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||(a[i]>='0')&&a[i]<='9')\n {c=0;}\n else {c=1;break;}}\n if(b==1||c==1) {printf(\"no\\n\");}\n else{printf(\"yes\\n\");}\n }\n return 0 ;\n }\n"} +{"label": "85", "index": "42040", "code": "int main(){\nint n,len;\nscanf(\"%d\",&n);\nchar a[100][20],b[20];\nint i,k,flag;\nfor(i=0;i='A'&&b[0]<='Z')||(b[0]>='a'&&b[0]<='z')||(b[0]=='_')){\n\t\tfor(k=1;k='A'&&b[k]<='Z')||(b[k]>='a'&&b[k]<='z')||(b[k]=='_')||(b[k]>='0'&&b[k]<='9')){\n flag=1;\n\t\t\t}else{\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==0){\n\t\t\tprintf(\"no\\n\");\n\t\t}else{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}else{\n\t\tprintf(\"no\\n\");\n\t}\n}\n\treturn 0;\n}"} +{"label": "85", "index": "42041", "code": "int main(int argc, char* argv[])\n{\n\tint n,i,m,j,k=1,l=0;\n\tchar c[20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0')&&(c[j]<='9'))||((c[j]>='a')&&(c[j]<='z'))||((c[j]>='A')&&(c[j]<='Z'))||(c[j]=='_'))&&(((c[0]>='a')&&(c[0]<='z'))||((c[0]>='A')&&(c[0]<='Z'))||(c[0]=='_')))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{\n\t\t\t\tk=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} \n\t\tif(k==1)\n\t\t{\n\t\t\tif(l==0)\n\t\t\t{\n\t\t\t\tprintf(\"yes\");\n\t\t\t\tl=1;\n\t\t\t}\n\t\t\telse\n\t\t\tprintf(\"\\nyes\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(l==0)\n\t\t\t{\n\t\t\t\tprintf(\"no\");\n\t\t\t\tl=1;\n\t\t\t}\n\t\t\telse\n\t\t\tprintf(\"\\nno\");\n\t\t}\n\t\tk=1;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42042", "code": "int main(){\n int n,i,c,g;\n char a[20][21];\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++){\n scanf(\"%s\",a[i]);\n }\n for(c=0;c<=n-1;c++){\n if((a[c][0]<65)||(a[c][0]>90&&a[c][0]<95)||(a[c][0]==96)||(a[c][0]>122)){\n puts(\"no\");\n\t continue;\n\t}else{\n for(g=0;g57&&a[c][g]<65)||(a[c][g]>90&&a[c][g]<95)||(a[c][g]==96)||(a[c][g]>122)){\n puts(\"no\");\n\tbreak;\n }\n if((g==strlen(a[c])-1)&&((a[c][g]==95)||(a[c][g]>=65&&a[c][g]<=90)||(a[c][g]>=97&&a[c][g]<=122)||(a[c][g]>=48&&a[c][g]<=57))){\n puts(\"yes\");\n\t}\n }\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42043", "code": "int s(char n)\n{\n if(('a'<=n&&n<='z')||('A'<=n&&n<='Z')||n=='_')\n return 1;\n else return 0;\n}\nint f(char n)\n{\n if(('a'<=n&&n<='z')||('A'<=n&&n<='Z')||n=='_'||('0'<=n&&n<='9'))\n return 1;\n else return 0;\n}\nint main()\n{\n int i,j,n,fl;\n char w[30];\n scanf(\"%d\",&n);\n for(i=0;i='0'&&a[i][0]<='9') break;\n if(a[i][j]<='9'&&a[i][j]>='0') t++;\n if(a[i][j]<='z'&&a[i][j]>='a') t++;\n if(a[i][j]<='Z'&&a[i][j]>='A') t++;\n if(a[i][j]=='_') t++; \n } \n if(t==k) printf(\"yes\\n\");\n else printf(\"no\\n\");\n }\n}"} +{"label": "85", "index": "42045", "code": "int main(){\n char bz[50];\n int n,i,j,l;\n scanf(\"%d\",&n);\n for(i=0;i='a'&&bz[j]<='z')||(bz[j]>='A'&&bz[j]<='Z')||bz[j]=='_')){\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\tif(!((bz[j]>='a'&&bz[j]<='z')||(bz[j]>='A'&&bz[j]<='Z')||bz[j]=='_'||(bz[j]>='0'&&bz[j]<='9'))){\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\tif(j==l){\n\t\tprintf(\"yes\\n\");\n\t}\n\n\t}\n\n return 0;\n }"} +{"label": "85", "index": "42046", "code": "int main(){\n int i,n,pd,j;\n char zc[50];\n scanf(\"%d\",&n);\n for(i=0;i47&&zc[0]<58){\n\t pd=0;\n break;\n\t\n }\n\t\n if((zc[j]>47&&zc[j]<58)||(zc[j]>64&&zc[j]<91)||(zc[j]>96&&zc[j]<123)||(zc[j]==95)){\n\t\n pd=1;\n\t\n }else{\n\t\n pd=0;\n\t\n break;\n\t\n }\n }if(pd==1){\n printf(\"yes\\n\");\n }else if(pd==0){\nprintf(\"no\\n\");\n }\n\n }\n return 0;\n}"} +{"label": "85", "index": "42047", "code": "int main()\n{\n\tint a,b,c,d,e,i,j;\n\tchar z[21];\n\tscanf(\"%d\",&a);\n\tfor(i=0;i='a'&&a[k][j]<='z')||(a[k][j]>='0'&&a[k][j]<='9')||(a[k][j]=='_')||(a[k][j]>='A'&&a[k][j]<='Z')||a[k][j]=='0'){\n\t\t\t\tif(j==0){\n\t\t\t\t\tif(a[k][j]>='0'&&a[k][j]<='9'){\n\t\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif(j==d-1){\n\t\t\t printf(\"yes\\n\");\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42049", "code": "int main()\n{\n char s[100];\n int n, k, m, i, j;\n cin>>n;\n for(i=0;i>s;\n for(j=0;s[j]!='\\0';j++)\n {\n if(j==0)\n {\n if(s[j]=='_'||(s[j]>='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z'))\n continue;\n else\n {\n cout<<\"no\"<0)\n {\n if(s[j]=='_'||(s[j]>='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'))\n {\n if(s[j+1]=='\\0')\n cout<<\"yes\"<='a'&&zfc[im][0]<='z')||(zfc[im][0]>='A'&&zfc[im][0]<='Z')||(zfc[im][0]=='_')){\n for(jm=1;jm='a'&&zfc[im][jm]<='z')||(zfc[im][jm]>='A'&&zfc[im][jm]<='Z')||(zfc[im][jm]>='0'&&zfc[im][jm]<='9')||(zfc[im][jm]=='_')){} else {tm++;break;}\n } \n if(tm==0){printf(\"yes\\n\");} else {printf(\"no\\n\");}\n } else {printf(\"no\\n\");}\n }\nreturn 0;\n}\n\n\n"} +{"label": "85", "index": "42051", "code": " int main(){\n int n,e;\n scanf(\"%d\",&n);\n char zfc[n][21];\n for(int i=0;i'Z'||zfc[i][0]<'A')&&(zfc[i][0]>'z'||zfc[i][0]<'a')){printf(\"no\\n\");}\n else{\n int t=0;\n for(int m=1;m='a'&&zfc[i][m]<='z')||(zfc[i][m]>='A'&&zfc[i][m]<='Z')||(zfc[i][m]>='0'&&zfc[i][m]<='9')){\n t++; \n }\n } \n if(t==e-1){printf(\"yes\\n\");}\n else{printf(\"no\\n\");}\n }\n }\n \n return 0;\n \n }\n\n\n\n"} +{"label": "85", "index": "42052", "code": "int main()\n{\n\tint n,i,a,b,j;\n\tchar zfc[100][21],num[100];\n\tgets(num);\n\tn=atoi(num);\n\tfor(i=0;i='a'&&zfc[i][j]<='z'||zfc[i][j]>='A'&&zfc[i][j]<='Z'||zfc[i][j]>='0'&&zfc[i][j]<='9') b++;\n\t\t\tif(j==0&&zfc[i][j]>='0'&&zfc[i][j]<='9') b--;\n\t\t}\n\t\tif(b==a) printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42053", "code": "int main()\n{\n int n;\n cin>>n;\n cin.get();\n for(int i=0;i='a'&&str[0]<='z')||(str[0]>='A'&&str[0]<='Z')||str[0]=='_'))\n cout<<\"no\"<='a'&&str[j]<='z')||(str[j]>='A'&&str[j]<='Z')||(str[j]>='0'&&str[j]<='9')||str[j]=='_'))\n {\n cout<<\"no\"<='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z'))\n\t\t\t\t\tjudge=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[j]=='_'||(a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z')||(a[j]>='0'&&a[j]<='9'))\n\t\t\t\t{\n\t\t\t\t\tjudge=1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(judge==0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\tif(judge==1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}\n\t\t\t\t\n\t\t\t\n\n\n\n\t\n\t\n"} +{"label": "85", "index": "42055", "code": "int main(){\n\tint n=0,k;\n\tchar suoyou[1000][21];\n\tscanf(\"%d\\n\",&n);\n\tint i=0,jieguo[1000];\n\tfor(i=0;i90)&&(suoyou[i][0]<97)&&(suoyou[i][0]!=95))||(suoyou[i][0]>122)){\n\t\t\tjieguo[i]=1;\n\t\t}else{\n\t\t\tfor(k=0;k57)&&(suoyou[i][k]<65))||((suoyou[i][k]>90)&&(suoyou[i][k]<95))||((suoyou[i][k]>95)&&(suoyou[i][k]<97))||(suoyou[i][k]>122)){\n\t\t\t\t\tjieguo[i]=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\tfor(i=0;i='A'&&zf[i][j]<='Z')||(zf[i][j]>='a'&&zf[i][j]<='z')||(zf[i][j]=='_'))\n sum[i]=1;\n else {\n sum[i]=0;\n break;\n } \n }\n else if(j>0){\n if((zf[i][j]>='A'&&zf[i][j]<='Z')||(zf[i][j]>='a'&&zf[i][j]<='z')||(zf[i][j]>='0'&&zf[i][j]<='9')\n ||(zf[i][j]=='_'))\n sum[i]=1;\n else{\n sum[i]=0;\n break;\n \n }\n \n }\n else{\n sum[i]=0;\n break;\n }\n }\n if(sum[i]==0) \n printf(\"no\\n\");\n if(sum[i]==1)\n printf(\"yes\\n\");\n }\n \n \n return 0;\n}\n"} +{"label": "85", "index": "42057", "code": "int main()\n{\n\tint n,m,i,j;\n\tchar s[2020][20],b[20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=48||s[i][j]<=90&&s[i][j]>=65||s[i][j]==95||s[i][j]<=122&&s[i][j]>=97){\n\t\t\t\tif(s[i][0]<=90&&s[i][0]>=65||s[i][0]<=122&&s[i][0]>=97||s[i][0]==95){\n\t\t\t\tb[m]=0;}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tb[m]=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tb[m]=1;\n\t\t\t\tbreak;}\n\t\t}\n\t}\n\tfor(i=0;i='A'&&s[0]<='Z')||(s[0]>='a'&&s[0]<='z')||s[0]=='_')\n\t {\n\t\t for(j=1;j='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9')||(s[j]=='_')) x=x+0;\n\t\t\t else x=x+1;\n\t\t }\n\t if(x==0) printf(\"yes\\n\");\n\t else printf(\"no\\n\");\n\t }\n\t else printf(\"no\\n\");\n }\n}"} +{"label": "85", "index": "42059", "code": "int main(){\n\tint a,i,j,l,pd=1;\n\tchar jj[1000][21];\n\tscanf(\"%d\",&a);\nfor(i=0;i=65&&jj[i][0]<=90)||(jj[i][0]>=97&&jj[i][0]<=122)){\n\t\tfor(j=1;j57&&jj[i][j]<65)||(jj[i][j]>90&&jj[i][j]<97)||jj[i][j]>122) ){\n\t\t\t\t printf(\"no\\n\");\n\t\t\t\t pd=0;\n\t\t\t\t break;\n\t\t\t }\n\t\t}\n\t\tif(j=l-1&&pd==1){\n\t\tprintf(\"yes\\n\");\n\t\t}\n\t\tpd=1;\n\t}else{\n\tprintf(\"no\\n\");\n\t}\n}\n\treturn 0;\n}"} +{"label": "85", "index": "42060", "code": "int main()\n{\n\tint n,i,t;\n\tchar zfc[100][21];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%s\",zfc[i]);\n\t\tfor(t=0;zfc[i][t]!=0;t++)\n\t\t{\n\t\t\tif(zfc[i][t]<'0'||(zfc[i][t]>'9'&&zfc[i][t]<'A')||(zfc[i][t]>'Z'&&zfc[i][t]<'_')||(zfc[i][t]>'_'&&zfc[i][t]<'a')||zfc[i][t]>'z')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(zfc[i][0]>='0'&&zfc[i][0]<='9')\n\t\t\t{\n printf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(zfc[i][t]==0)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\t"} +{"label": "85", "index": "42061", "code": "int main(){\n int i,j,n,a=1;\n char s[MAX+1];\n scanf(\"%d\",&n);\n for(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)){\n continue;\n a=1;}\n else{ \n a=0;\n break;\n }\n \n }\n if(a==0){\n printf(\"no\\n\");\n }\n else if(a==1){\n printf(\"yes\\n\");\n } a=1;\n } \n return 0;\n }\n\n\n"} +{"label": "85", "index": "42062", "code": "int main()\n{\n\tchar a[100][21];\n\tint n,i,j;\n\tcin>>n;\n\tcin.ignore();\n\tfor(i=0;i>a[i];\n\tfor(i=0;i= 'a' && a[i][0] <= 'z') || \n\t\t\t(a[i][0] >= 'A' && a[i][0] <= 'Z') ||\n\t\t\t(a[i][0] == '_')))\n\t\t{\n\t\t\tcout<<\"no\"<= 'a' && a[i][j] <= 'z') ||\n\t\t\t\t\t(a[i][j] >= 'A' && a[i][j] <= 'Z') ||\n\t\t\t\t\t(a[i][j] >= '0' && a[i][j] <= '9') ||\n\t\t\t\t\t(a[i][j] =='_')))\n\t\t\t\t{\n\t\t\t\t\tcout << \"no\" <='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')) continue;\n\t\t\t\telse f=1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(s[i][j]=='_'||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='0'&&s[i][j]<='9'))\n\t\t\t\tcontinue;\n\t\t\t\telse f=1;\n\t\t\t}\n\t\t}\n\t\tif(f==1) printf(\"no\\n\");\n\t if(f==0) printf(\"yes\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42064", "code": "main()\n{\n\tchar a[30][30];int c[30];\n\tint b,j,l,i,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%s\",a[i]);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tb=1;\n\t\tl=strlen(a[i]);\n\t\tif((a[i][0]<='z'&&a[i][0]>='a')||(a[i][0]<='Z'&&a[i][0]>='A')||(a[i][0]=='_'))\n\t\t{\n\t\tfor(j=1;j<=l-1;j++)\n\t\t{\n\t\t\tif((a[i][j]<='z'&&a[i][j]>='a')||(a[i][j]<='Z'&&a[i][j]>='A')||(a[i][j]=='_')||((a[i][j])<='9'&&a[i][j]>='0'));\n\t\t\telse\n\t\t\t\tb=0;\n\t\t}\n\t\t}\n\t\telse b=0;\n\t\tif(b==0)\n\t\t\tc[i]=0;\n\t\telse\n\t\t\tc[i]=1;\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(c[i]==1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\n}\n"} +{"label": "85", "index": "42065", "code": "int main()\n{\n\tint q,i=0,n,j,w;\n\tchar s[200];\n\tcin>>n;\n\tcin.get();\n\tfor(j=1;j<=n;j++)\n\t{\n\t\ti=0;\n\t\tw=0;\n\tcin.getline(s,199);\n\tif(s[0]!='_'&&((s[0]>'z'||s[0]<'a')&&(s[0]>'Z'||s[0]<'A')))\n\t{\n\t\tcout<<\"no\"<'z'||s[i]<'a')&&(s[i]>'Z'||s[i]<'A'))&&(s[i]<'0'||s[i]>'9'))\n\t\t{\n\t\t\tw=1;\n\t\t\tbreak;\n\t\t}\n\t\ti++;\n\t}\n\tif(w==1)\n\t{\n\t\tcout<<\"no\"<>q;\n return 0;\n}"} +{"label": "85", "index": "42066", "code": "int main(){\nint n;\nscanf(\"%d\\n\",&n);\nfor(int i=1;i<=n;i++){\nchar zfc[21];\nscanf(\"%s\\n\",zfc);\nint s;\nif((65<=zfc[0]&&zfc[0]<=90)||(97<=zfc[0]&&zfc[0]<=122)||(zfc[0]==95)){s=1;}\nelse{s=0;}\nfor(int t=1;t<=20&&zfc[t-1]!=0;t++){\nif((zfc[t-1]<48)||(57122)){s=0;}\n}\nif(s==0){printf(\"no\\n\");}\nelse{printf(\"yes\\n\");}\n}\nreturn 0;\n}\n\n"} +{"label": "85", "index": "42067", "code": "int main()\n{\n\tchar zfc[N][M];\n\tint n,i,j,k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&zfc[i][0]<='Z'||zfc[i][0]>='a'&&zfc[i][0]<='z')\n\t\t{\n\t\t\tk++;\n\t\t}\n\t\telse if(zfc[i][0]=='_')\n\t\t{\n\t\t\tk++;\n\t\t}\n\t for(j=1;zfc[i][j]!='\\0';j++)\n\t\t{\n\t\t\tif(zfc[i][j]>='0'&&zfc[i][j]<='9')\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t}\n\t\t\telse if(zfc[i][j]>='A'&&zfc[i][j]<='Z'||zfc[i][j]>='a'&&zfc[i][j]<='z')\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t}\n\t\t\telse if(zfc[i][j]=='_')\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tif(k==j)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\tk=0;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42068", "code": "int main() {\n int n,i,j;\n scanf(\"%d\", &n);\n char a[21][21];\n int b[21][21],c[100];\n for(i=0;i='0')&&(a[i][j]<='9'))||((a[i][j]>='a')&&(a[i][j]<='z'))||((a[i][j]>='A')&&(a[i][j]<='Z'))||(a[i][j]=='_')){b[i][j]=0;\n }\n else{b[i][j]=1;}\n }\n }\n for(i=0;i='0')&&(a[i][0]<='9')){\n b[i][0]=1;\n }\n }\n for(i=0;i='a'))||((a[0]>='A')&&(a[0]<='Z'))){\n for(j=1;a[j]!='\\0';j++){\n if(!((a[j]=='_')||((a[j]<='z')&&(a[j]>='a'))||((a[j]>='A')&&(a[j]<='Z'))||((a[j]>='0')&&(a[j]<='9')))){\n flag=0;\n goto m;\n }\n else {\n flag=1;\n continue ;\n }\n }\n\n }\n\n\n m:if (flag){\n printf (\"yes\\n\");\n}else {\n printf (\"no\\n\");\n}\n }\nreturn 0;\n\n}\n"} +{"label": "85", "index": "42070", "code": "int main()\n{\n\tint i,j,n,k=1;\n\tchar name[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&name[j]<='9'&&j!=0)||(name[j]>='a'&&name[j]<='z')||(name[j]>='A'&&name[j]<='Z'))\n\t\t\t\tcontinue;\n\t\t\telse \n\t\t\t{\n\t\t\t\tk=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t\tif (k==0)\n\t\t\tprintf(\"no\\n\");\n\t\telse printf(\"yes\\n\");\n\t\tk=1;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42071", "code": "int main(){\nint n,i,j,m;\nchar z[21];\nscanf(\"%d\",&n);\nfor(i=0;i='A'&&z[0]<='Z')||(z[0]>='a'&&z[0]<='z')||(z[0]=='_'))\t{\nfor(j=1;z[j]!='\\0';j++){\nif(z[j]>='0'&&z[j]<='9')\nk++;\nelse if(z[j]>='a'&&z[j]<='z')\nk++;\n else\tif(z[j]>='A'&&z[j]<='Z')\nk++;\n else\tif(z[j]=='_')\nk++;\nelse break;\n}\nm=strlen(z);\nif(k==m-1)\nprintf(\"yes\\n\");\nelse\nprintf(\"no\\n\");\n}\nelse if(z[0]<='9'&&z[0]>='0')\nprintf(\"no\\n\");\nelse\nprintf(\"no\\n\");\n}\nreturn 0;\n}"} +{"label": "85", "index": "42072", "code": "int first(char x)\n{\n\tif(x=='_'||(x>='a'&&x<='z')||(x>='A'&&x<='Z'))return 1;\n\telse return 0;\n}\nint term(char x)\n{\n\tif(x=='_'||(x>='a'&&x<='z')||(x>='A'&&x<='Z')||(x>='0'&&x<='9'))return 1;\n\telse return 0;\n}\nint main()\n{\n\tint n,i,j,t;\n\tchar ch[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&a[0]<='z') || (a[0]>='A'&&a[0]<='Z')))\n {\n printf(\"no\\n\");continue;\n }\n else\n {\n j=1;\n while(j='a'&&a[j]<='z') || (a[j]>='A'&&a[j]<='Z') || (a[j]>='0'&&a[j]<='9')))\n {\n printf(\"no\\n\");break;\n }\n j++;\n }\n }\n if(j==strlen(a)) printf(\"yes\\n\");\n }\n}\n"} +{"label": "85", "index": "42074", "code": "void main()\n{\n char a[100][20];\n\t int i,j,n,len[100],s[100];\n\t scanf(\"%d\",&n);\n\t for (i=1;i<=n;i++)\n\t { \n\t\t s[i]=0;\n\t\t scanf(\"%s\",a[i]);\n\t\t len[i]=strlen(a[i]);\n\t\t if (((a[i][0]>='A')&&(a[i][0]<='Z'))||((a[i][0]>='a')&&(a[i][0]<='z'))||(a[i][0]=='_'))\n\t\t { \n\t\t\t s[i]=1;\n\t\t\t for (j=1;j='A')&&(a[i][j]<='Z'))||((a[i][j]>='a')&&(a[i][j]<='z'))||(a[i][j]=='_')||((a[i][j]>='0')&&(a[i][j]<='9')))\n\t\t\t\t\t s[i]++;\n\t\t\t }\n\t\t }\n\t }\n\t for (i=1;i<=n;i++)\n\t {\n\t\t if (s[i]==len[i])\n\t\t\t printf(\"yes\\n\");\n\t\t if (s[i]!=len[i])\n\t\t\t printf(\"no\\n\");\n\t }\n\t \n}\n"} +{"label": "85", "index": "42075", "code": "int main()\n{\n\tint i,j,n,m;\n\tchar zfc[1000][25];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&zfc[i][0]<='z')||(zfc[i][0]>='A'&&zfc[i][0]<='Z')||zfc[i][0]=='_')\n\t\t{\n\t\t for(j=1;zfc[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t if((zfc[i][j]>='a'&&zfc[i][j]<='z')||(zfc[i][j]>='A'&&zfc[i][j]<='Z')||(zfc[i][j]>='0'&&zfc[i][j]<='9'||zfc[i][j]=='_'))\n\t\t\t m=1;\n\t\t\t else\n\t\t\t {\n\t\t\t\t m=0;\n\t\t\t\t printf(\"no\\n\");\n\t\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t\t if(m==1)\n\t\t\t\t printf(\"yes\\n\");\n\t\t}else{\n printf(\"no\\n\"); \n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42076", "code": "int main() { \nchar zf[100][21]; \nint n,i,j;\nint m=0;\nscanf(\"%d\",&n); \nfor(i=0;i='A'&&zf[j][i]<='Z')\n ||(zf[j][i]>='a'&&zf[j][i]<='z')\n ||(zf[j][i]>='0'&&zf[j][i]<='9'&&i>0))){\n printf(\"no\\n\");\n flag = 1;\n break;\n } \n }\n if (flag == 0)printf(\"yes\\n\");\n}\n\n return 0;\n}\n\n\n\n"} +{"label": "85", "index": "42077", "code": "\nint main()\n{\n char a[100][21];\n int n=0,i,j,k;\n scanf(\"%d\",&n);\n for(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||(a[i][0]=='_'))\n {\n\n for(j=1;;j++)\n {\n if(a[i][j]=='\\0')\n {\n printf(\"yes\\n\");\n break;\n }\n\n if(!((a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='0')&&(a[i][j]<='9'||a[i][j]=='_')))\n {\n printf(\"no\\n\");\n break;\n }\n }\n }\n else\n {printf(\"no\\n\");}\n\n }\n\n\n\n\n\n\n return 0;\n}\n"} +{"label": "85", "index": "42078", "code": "\n\nint main()\n{ \n\tint n;\n\tcin>>n;\n\tfor(int i=0;i>a;\n\t\tif((a[0]>='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')||a[0]=='_')\n\t\t{\n\t\t\tint z=0;\n\t\t\tfor(int i=1;a[i]!=0;++i)\n\t\t\t{\n\t\t\t\tif((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||a[i]=='_'||(a[i]>='0'&&a[i]<='9'))\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\tz=1;cout<<\"no\"<=65&&id[0]<=90)||(id[0]>=97&&id[0]<=122)||id[0]=='_'){\n\t\t\tfirst=1;\n\t\t}else{\n\t\t\tresult=0;\n\t\t\tfirst=0;\n\t\t}\n\t\tfor(j=1;j=65&&id[j]<=90)||(id[j]>=97&&id[j]<=122)||id[j]=='_'||(id[j]>=48&&id[j]<=57)){\n\t\t\t\t\t;\n\t\t\t\t}else{\n\t\t\t\t\tresult=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(result){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n}\n"} +{"label": "85", "index": "42080", "code": "int judge(char x[]);\nvoid main()\n{\n\tint n,p,i;\n\tchar a[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&x[0]<='z')||(x[0]>='A'&&x[0]<='Z')||(x[0]=='_'))\n\t{\n \tfor(i=0;i='a'&&x[i]<='z')||(x[i]>='A'&&x[i]<='Z')||(x[i]>='0'&&x[i]<='9')||(x[i]=='_'))\n \t\t{\n\t \t\tk=k+0;\n\t \t}\n\t \telse k++;\n\t }\n\t\tif(k==0)return 1;\n\t\tif(k!=0)return 0;\n\t}\n\telse return 0;\n}"} +{"label": "85", "index": "42081", "code": "int main (){\n\tchar str[100];\n\tint n, j, i, sz[100];\n\tscanf(\"%d\", &n);\n\tfor(i=0;i='A')||str[0]=='_'||(str[0]<='z'&&str[0]>='a')){\n\t\tfor(j=1;str[j]!='\\0';j++){\n\t\t\tif((str[j]<='Z'&&str[j]>='A')||str[j]=='_'||(str[j]<='z'&&str[j]>='a')||(str[j]>='0'&&str[j]<='9')){\n\t\t\t\tsz[i]=1;\n\t\t\t}else{\n\t\t\t\tsz[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}else{\n\t\t\tsz[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i='A')||(s[0]<='z'&&s[0]>='a')){\n t1=1;\n }else {\n t1=0;\n }\n for (j=1;s[j];j++){\n if (s[j]=='_'||(s[j]<='Z'&&s[j]>='A')||(s[j]<='z'&&s[j]>='a')||(s[j]>='0'&&s[j]<='9')){\n a++;\n }else {\n t2=0;\n }\n }\n if (t1==1&&t2==1){\n printf (\"yes\\n\");\n }else {\n printf (\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42083", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar a[100];\n\tfor(int i=0;i=0&&a[0]-'Z'<=0||\n\t\t\ta[0]-'_'==0||\n\t\t\ta[0]-'a'>=0&&a[0]-'z'<=0)\n\t\t{\n\t\t\tfor(int j=1;j<100;j++)\n\t\t\t{\n\t\t\t\tif(a[j]=='\\0')\n\t\t\t\t{\n\t\t\t\t\tprintf(\"yes\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else\n\t\t\t\tif(a[j]-'A'>=0&&a[j]-'Z'<=0||\n\t\t\t a[j]-'_'==0||\n\t\t\t a[j]-'a'>=0&&a[j]-'z'<=0||\n\t\t\t\t\ta[j]-'0'>=0&&a[j]-'9'<=0)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n return 0;\n}"} +{"label": "85", "index": "42084", "code": "int main(){\n int n,i,j,l,s;\n char a[20][21];\n scanf(\"%d\",&n);\n for(i=0;i=48&&a[i][j]<=57)||(a[i][j]>=65&&a[i][j]<=90)||(a[i][j]>=97&&a[i][j]<=122))\n\t\t\t\t\t\t\t\t\t\t\t\t\t continue;\n\t\t\t\t\t\t\t else {s=0;\n\t\t\t\t\t\t\t\t\t\t\t\t break;}\n\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\tif(a[i][0]>=48&&a[i][0]<=57) s=0;\n\t\t\t\t\t\t\tif(s==0) printf(\"no\\n\");\n\t\t else printf(\"yes\\n\");\n\t\t\t\t\t\t\t }\n\t\t\t return 0;\n\t\t }\n\n \n"} +{"label": "85", "index": "42085", "code": "int main()\n{\n\tint n,t;\n\tcin>>n;\n\tcin.get();\n\twhile(n--)\n\t{\n\t\tchar a[30];\n\t\tcin.getline(a,30);\n\t\tint str;\n\t\tstr=strlen(a);\n\t\t\n\t\tfor(int i=0;i='0'&&a[i]<='9')||(a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||a[i]=='_')\n\t\t\t{t=1;}\n\t\t\telse\n\t\t\t{ t=0;break;}\n\t\t}\n\t\tif(a[0]>='0'&&a[0]<='9')\n\t\t\t\tt=0;\n\t\t\tif(t)\n\t\t\t\tcout<<\"yes\"<='a'&&*p<='z')||(*p>='A'&&*p<='Z'))\n\t{\n\t\tfor(i=0;*(p+i)!='\\0';i++)\n\t\t{\n\t\t\tif((*(p+i)=='_')||(*(p+i)>='a'&&*(p+i)<='z')||(*(p+i)>='A'&&*(p+i)<='Z')||(*(p+i)>='0'&&*(p+i)<='9'));\n\t\t\telse\n\t\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tbreak;}\n\t\t}\n\t\tif(*(p+i)=='\\0')\n\t\t\tprintf(\"yes\\n\");\n\t}\n\telse \n\t\tprintf(\"no\\n\");}\n\treturn 0;\n}"} +{"label": "85", "index": "42087", "code": "int main(){\n\tint n,i,len,j,a=0;\n\tchar str[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=48&&str[0]<=57)\n\t\t\tprintf(\"no\\n\");\n\t\telse{\n\t\t\tfor(j=0;j=48&&str[j]<=57)||(str[j]>=65&&str[j]<=90)||(str[j]>=97&&str[j]<=122)||str[j]==95)\n\t\t\t\t\ta=0;\n\t\t\t\telse{\n\t\t\t\t\ta=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(a==0) printf(\"yes\\n\");\n\t\t\tif(a==1) printf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "85", "index": "42088", "code": "int main(){\n int n,i,k,p=0;\n char s[N][21];\n scanf(\"%d\",&n);\n for(i=0;i='0')&&(s[i][0]<='9'))\n printf(\"no\\n\");\n else {for(k=0;s[i][k]!=0;k++){\n if(((s[i][k]>='a')&&(s[i][k]<='z'))||((s[i][k]>='A')&&(s[i][k]<='Z'))||((s[i][k]>='0')&&(s[i][k]<='9'))||(s[i][k]=='_'))\n p=1;\n\t\t else {\n\t\t\t printf(\"no\\n\");\n\t\t\t break;\n\t\t }\n\n }if(s[i][k]==0)\n\tprintf(\"yes\\n\");\n }\n }\nreturn 0;\n}"} +{"label": "85", "index": "42089", "code": "int main(){\n int n,j;\n char zfc[N][LEN+1];\n scanf(\"%d\",&n);\n for(j=0;j='a'&&zfc[j][0]<='z')||(zfc[j][0]>='A'&&zfc[j][0]<='Z')||zfc[j][0]=='_'){\n for(i=1;i='a'&&zfc[j][i]<='z')||(zfc[j][i]>='A'&&zfc[j][i]<='Z')||(zfc[j][i]>='0'&&zfc[j][i]<='9')||zfc[j][i]=='_'){\n pd=1;\n pdjg+=pd;\n }\n else{\n pd=0;\n pdjg+=pd;\n }\n }\n }\n else{\n pdjg=0;\n }\n if(pdjg==p-1){\n printf(\"yes\\n\");\n }\n else{\n printf(\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42090", "code": "int main(){\n\tint n,i,j;\n\tint bn[1000];\n\tchar an[1000][21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i90&&an[i][0]<95)||an[i][0]==96||an[i][0]>122){\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\telse{\n\t\t\tfor(j=1;j=58&&an[i][j]<=64)||(an[i][j]>=91&&an[i][j]<=94)||an[i][j]==96||an[i][j]>=123){\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(j==bn[i]-1)\n\t\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t}\n\t}\n\t\treturn 0;\n\t}"} +{"label": "85", "index": "42091", "code": "\nint main()\n{\n char a[100][20]={0};\n int n, i, j, flag=0;\n scanf(\"%d\",&n);\n for(i=0;i='0'&&a[i][0]<='9')\n {\n printf(\"no\\n\");\n continue;\n }\n for(j=0;j='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='0'&&a[i][j]<='9')||a[i][j]=='_')\n {\n flag++;\n }\n else\n {\n printf(\"no\\n\");\n flag=0;\n break;\n }\n }\n if(flag==strlen(a[i]))\n {\n printf(\"yes\\n\");\n flag=0;\n }\n }\n return 0;\n}\n"} +{"label": "85", "index": "42092", "code": "char s[MLEN][MAX];\nint i,j,n;\nint main(){\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++){\n scanf(\"%s\",s[i]);\n }\n for(i=0;i<=n-1;i++){\n int a=1;\n for(j=0;s[i][j]!='\\0';j++){\n if(!((s[i][j]=='_')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='0'&&s[i][j]<='9'&&j>0))){\n a=0;\n break;\n }\n }\n if(a==1){\n printf(\"yes\\n\");\n }else if(a==0){\n printf(\"no\\n\");\n }\n }\n}"} +{"label": "85", "index": "42093", "code": "int main(){\n int n;\n int sum[1000];\n scanf(\"%d\",&n);\n char zfc[1000][20];\n int i,j;\n for(int i=0;i=48)\n sum[i]=0;\n for(j=0;zfc[i][j]!='\\0';j++){\n if((zfc[i][j]>=65&&zfc[i][j]<=90)||(zfc[i][j]>=97&&zfc[i][j]<=122)||(zfc[i][j]==95)||(zfc[i][j]>=48&&zfc[i][j]<=57));\n else{\n sum[i]=0;\n break;\n }\n }\n }\n for(int i=0;i='a'&&zfc[i][k]<='z')||(zfc[i][k]>='A'&&zfc[i][k]<='Z')){\n p++;\n }}\n if(k!=0) {\n if((zfc[i][k]>='0'&&zfc[i][k]<='9')||(zfc[i][k]>='a'&&zfc[i][k]<='z')||(zfc[i][k]>='A'&&zfc[i][k]<='Z'||zfc[i][k]=='_')){p++;}\n } \n } \n if(p==m){printf(\"yes\\n\");}\n else{printf(\"no\\n\");}\n \n }\n \n \n return 0;\n \n \n}\n\n\n\n"} +{"label": "85", "index": "42095", "code": "int main(){\n\tint i,k=0,m,n;\n\tscanf(\"%d\",&n);\n\tint a[10000];\n\tchar buf[21];\n\tfor(m=0;m='A'&&buf[i]<='Z')||(buf[i]>='a'&&buf[i]<='z')||(buf[i]>='0'&&buf[i]<='9'&&i!=0)) { \n\t\t\t a[k]=1;\n\t\t\t}else{\n\t\t\t a[k]=0;\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\tk++;\n\t}\n\tfor(m=0;m='0'){\nb=0;break;}\nelse if((a[i][j]<='9'&&a[i][j]>='0')||(a[i][j]<='Z'&&a[i][j]>='A')||(a[i][j]<='z'&&a[i][j]>='a')||a[i][j]=='_')\nb=b;\nelse {b=0;break;}}\nprintf(b==0?\"no\\n\":\"yes\\n\");}\nreturn 0;\n}"} +{"label": "85", "index": "42097", "code": "\nvoid fun(char data[])\n{\n int len = strlen(data);\n int i;\n int ya;\n \n ya = ( *data == '_' || (*data >= 'A' && *data <= 'z') );\n \n for(i = 1; i <= len - 1; i++)\n if(!alphabet && !number)\n ya = 0;\n \n if(ya == 0) printf(\"no\\n\"); else printf(\"yes\\n\");\n\n}\n\nint main()\n{\n int n;\n scanf(\"%d\\n\", &n);\n int i;\n char data[81];\n \n for(i = 1; i <= n; i++)\n {\n gets(data);\n fun(data);\n }\n \n return 0;\n}"} +{"label": "85", "index": "42098", "code": "int main()\n{\n\tint n,i,len,j,e;\n\tchar name[LEN];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i47)||isalpha(name[j]))\n\t\t\t\t{\n\t\t\t\t\te=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\te=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(e==1)\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42099", "code": "\nint main() {\n int n;\n char str[1024];\n scanf(\"%d\", &n);\n int flag;\n while (n--) {\n flag = 1;\n scanf(\"%s\", str);\n int len = strlen(str);\n for (int i = 0; i < len; ++i) {\n if (isalpha(str[i]) || str[i] == '_')\n continue;\n else if (i != 0 && isdigit(str[i]))\n continue;\n else {\n flag = 0;\n break;\n }\n }\n if (flag)\n printf(\"yes\\n\");\n else\n printf(\"no\\n\");\n }\n}"} +{"label": "85", "index": "42100", "code": "void main()\n{\n\tint n,i,j;\n\tint len,flag;\n\tchar zfc[X];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a' && zfc[0]<='z' || zfc[0]>='A' && zfc[0]<='Z' || zfc[0]=='_');\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(zfc[j]>='0' && zfc[j]<='9' || zfc[j]>='a' && zfc[j]<='z' || zfc[j]>='A' && zfc[j]<='Z'|| zfc[j]=='_');\n\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tflag=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tif(flag==1)\n\t\t\tprintf(\"yes\\n\");\n\n\t}\n}\n"} +{"label": "85", "index": "42101", "code": "\n\nvoid main()\n{\nchar a[200];\n\tint n,i,j,m,k,flag;\n\tscanf(\"%d\",&n);gets(a);\n\tfor(i=0;i='a'&&a[j]<='z')\n\t\t\t\tk++;\n\t\t\tif(a[j]>='A'&&a[j]<='Z')\n\t\t\t\tk++;\n\t\t\tif(a[j]=='_')\n\t\t\t\tk++;\n\t\t\tif(a[j]>='0'&&a[j]<='9')\n\t\t\t\tk++;\n else k=k;\n\t\t}\n\t\tif(k!=m)\n\t\t\tflag=0;\n if(a[0]>='0'&&a[0]<='9')\n\t\t\tflag=0;\n\t\tif(flag==0)\n\t\t\tprintf(\"no\\n\");\n\t\telse if(flag==1)\n\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42102", "code": "int main()\n{\n int i=0,j,n,p,a,b,m;\n char A[30],M[5];\n gets(M);\n n=atoi(M);\n while(i122))\n {\n printf(\"no\\n\");\n goto k;\n }else{\n for(j=1;j57&&a<65)||(90122))\n {\n printf(\"no\\n\");\n goto k;\n }\n }\n printf(\"yes\\n\");\n }\n k: i++;\n }\n return 0;\n}"} +{"label": "85", "index": "42103", "code": "\nint main(int argc, char* argv[])\n{\n\tint i, j, n, t, flag;\n\tchar syx[21];\n\tscanf(\"%d\", &n);\n\tfor (i=0; i 90 && syx[j] < 94 || syx[j]>122)\n\t\t\t{\n\t\t\t\tflag = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(syx[j] < 48 || syx[j]>57 && syx[j] < 65 || syx[j] > 90 && syx[j] <97 || syx[j] > 122)\n\t\t\t{\n\t\t\t\tflag = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (flag == 0)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n\n\treturn 0;\n}\n"} +{"label": "85", "index": "42104", "code": "int main()\n{\n\tchar a[30];\n\tint n,i,j,k;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i'Z')&&(a[j]<'a'||a[j]>'z'))\n\t\t\t{\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(j!=0&&(a[j]!='_')&&(a[j]<'A'||a[j]>'Z')&&(a[j]<'a'||a[j]>'z')&&(a[j]<'0'||a[j]>'9'))\n\t\t\t{\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\tif(k)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42105", "code": "main()\n{\n\tint m,n,i,j,k,l;\n\tchar a[100][200];\n\tscanf(\"%d\\n\",&n);\n\tfor (i=0;i47) \n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\telse \n\t\t{for (j=0;a[i][j]!='\\0';j++)\n\t\t{\n\t\t\tif (a[i][j]!='_')\n\t\t\t{\n\t\t\t\tif (a[i][j]<48||a[i][j]>122)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (a[i][j]<65&&a[i][j]>57)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (a[i][j]<97&&a[i][j]>90)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (a[i][j]=='\\0') printf(\"yes\\n\");\n\t\t}\n\t}\n}"} +{"label": "85", "index": "42106", "code": "int main(){\n int n=0,i=0,j=0,LEN=0,k=0;\n scanf(\"%d\",&n);\n char zf[21];\n for(i=0;i='a'&&zf[j]<='z')||(zf[j]>='A'&&zf[j]<='Z')||zf[j]=='_'||(j!=0&&zf[j]>='0'&&zf[j]<='9')){\n k=0;\n j++;\n }else{\n k=1;\n break;\n }\n }\n if(k==0){\n printf(\"yes\\n\");\n }else{\n printf(\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42107", "code": "int main(){\n\tint n,i,k,c;\n\tchar x[10],zfc[20];\n\tgets(x);\n\tn=atoi(x);\n\tfor(i=0;i='0')&&(zfc[k]<='9')){\n\t\t\t\t\tc++;\n\t\t\t\t}else if((zfc[k]>='\\0'&&zfc[k]<'0')||(zfc[k]>'9'&&zfc[k]<'A')||(zfc[k]>'Z'&&zfc[k]<'_')||(zfc[k]>'_'&&zfc[k]<'a')||(zfc[k]>'z')){\n\t\t\t\t\tc++;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((zfc[k]>='\\0'&&zfc[k]<'0')||(zfc[k]>'9'&&zfc[k]<'A')||(zfc[k]>'Z'&&zfc[k]<'_')||(zfc[k]>'_'&&zfc[k]<'a')||(zfc[k]>'z')){\n\t\t\t\t\tc++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(c>0){\n\t\t\tprintf(\"no\\n\");\n\t\t}else{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42108", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar sz1[100][21];\n\tint i,j;\n\tfor(i=0;i=58&&sz1[i][j]<=64||sz1[i][j]>=91&&sz1[i][j]<=94||sz1[i][j]==96||sz1[i][j]>=123||sz1[i][0]>=48&&sz1[i][0]<=57){\n\t\t\t\tsz3[i][0]='n';\n\t\t\t sz3[i][1]='o';\n\t\t\t sz3[i][2]=0;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tsz3[i][0]='y';\n\t\t\t sz3[i][1]='e';\n\t\t\t\tsz3[i][2]='s';\n\t\t\t sz3[i][3]=0;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z'))\n\t{\n\t\tn=1;\n\t for(i=1;i='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||(a[i]>='0'&&a[i]<='9'))\n\t\t\t n=n+1;\n\t\t if(n==m)\n\t\t\t b=0;\n\n\t}\n\n\treturn(b);\n}\n\t\t\n\n\t\nvoid main()\n{\n\tint n,i,b[100];\n\tchar a[100][21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&s[i][0]<='9')\n\t\t\t\tm=1;\n\t\telse if(s[i][0]>='A'&&s[i][0]<='Z')\n\t\t\t\tm=0;\n\t\telse if(s[i][0]>='a'&&s[i][0]<='z')\n\t\t\t\tm=0;\n\t\telse if(s[i][0]=='_')\n\t\t\t\tm=0;\n else\n m=1;\n\t if(m==0)\n\t\t{\n\t\t for(j=1;j='0'&&s[i][j]<='9')\n\t\t\t\tm=0;\n\t\t\telse if(s[i][j]>='A'&&s[i][j]<='Z')\n\t\t\t\tm=0;\n\t\t\telse if(s[i][j]>='a'&&s[i][j]<='z')\n\t\t\t\tm=0;\n\t\t\telse if(s[i][j]=='_')\n\t\t\t\tm=0;\n\t\t\telse \n\t\t\t{\n\t\t\t\tm=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t }\n\t\t}\n\t\tif(m==1)//&&i!=n-1)\n\t\t\tprintf(\"no\\n\");\n\t\telse if(m==0)//&&i!=n-1)\n\t\t\tprintf(\"yes\\n\");\n\t\t\n\t}\n}"} +{"label": "85", "index": "42112", "code": "int main()\n{\n int i, j, n; \n char s[MAX+1]; \n scanf(\"%d\", &n); \n for (i = 0; i < n; i++) { \n scanf(\"%s\", s); \n for (j = 0; s[j]; j++) { \n if (!((s[j] == '_') || \n (s[j] >= 'A' && s[j] <= 'Z') || \n (s[j] >= 'a' && s[j] <= 'z') || \n (s[j] >= '0' && s[j] <= '9' && j > 0)))\n \n break; }\n printf(s[j] ? \"no\\n\":\"yes\\n\");\n } \n return 0;\n}\n"} +{"label": "85", "index": "42113", "code": "int main(){\n\tint n,i,j,m=0;\n\tchar s[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z'))){\n\t\t\t\t\tm++;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(!(s[j]=='_'||(s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9'))){\n\t\t\t\t\tm++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(m==0){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42114", "code": "\nint main()\n{\n\tint counter,i,j,n;\n\tchar a[20];\n\tcin>>n;\n\tgets(a);\n\tfor (j=0;j='a'&&a[0]<='z')||a[0]>='A'&&a[0]<='Z'||a[0]=='_')\n\t\t{\n\t\t\tfor (i=1;a[i]!='\\0';i++)\n\t\t\t{\n\t\t\t\tif (!((a[i]>='a'&&a[i]<='z')||a[i]>='A'&&a[i]<='Z'||a[i]=='_'||(a[i]>='0'&&a[i]<='9')))\n\t\t\t\t{\n\t\t\t\t\tcounter++;\n\t\t\t\t\tcout<<\"no\"<='0'&&a[0]<='9')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tb=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(!((a[j]>='A'&&a[j]<='Z')||((a[j]>='a')&&a[j]<='z')||a[j]=='_'||(a[j]>='0'&&a[j]<='9')))\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tb=0;\n\t\t\t break;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(b==1)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42116", "code": "void main()\n{\n int m,i,j,flag=0;\n int n[100];\n scanf(\"%d\",&m);\n char a[20][30];\n for(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||(a[i][0]=='_'))\n {\n\t n[i]=strlen(a[i]);\n\t for(j=1;j'9')&&(a[i][j]<'a'||a[i][j]>'z')&&(a[i][j]<'A'||a[i][j]>'Z')&&(a[i][j]!='_'))\n\t { printf(\"no\\n\");\n\t flag=1;\n\t break;\n\t }\n\t }\n\t if(flag==0)\n\t\t printf(\"yes\\n\");\n\t}\n\telse\n\tprintf(\"no\\n\");\n }\n\n}"} +{"label": "85", "index": "42117", "code": "void main()\n{\n\tint n,i,count=0,len,j;\n\tchar zf[30];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&zf[0]<='z')||(zf[0]>='A'&&zf[0]<='Z')||zf[0]=='_')\n\t\t\tcount++;\n\t\tfor(j=1;j='a'&&zf[j]<='z')||(zf[j]>='A'&&zf[j]<='Z')||zf[j]=='_'||(zf[j]>='0'&&zf[j]<='9'))\n\t\t\t\tcount++;\n\t\t}\n\t\tif(count==len)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t\tcount=0;\n\t}\n}\n"} +{"label": "85", "index": "42118", "code": "int main()\n{\n int n,i,j,count=0;\n char a[100][100];\n scanf(\"%d\",&n);\n for(i=0;i='0')&&(a[i][0]<='9'))\n printf(\"no\\n\");\n else\n {\n for(j=0;j'9')&&(a[i][j]<'A'))||((a[i][j]>'Z')&&(a[i][j]<'_'))||((a[i][j]>'_')&&(a[i][j]<'a'))||(a[i][j]>'z')||(a[i][j]<'0'))\n count++;\n }\n if(count>0)\n printf(\"no\\n\");\n else printf(\"yes\\n\");\n count=0;\n }\n \n }\n getchar();\n getchar();\n return 0;\n}\n \n \n"} +{"label": "85", "index": "42119", "code": "int main(){\n char zf[1000][21];\n int jg[1000];\n int n;\n scanf(\"%d\", &n);\n for(int i=0;i='0')&&(zf[i][t]<='9')){jg[i]=jg[i]+1;}\n if((zf[i][t]>='a')&&(zf[i][t]<='z')){jg[i]=jg[i]+1;}\n if((zf[i][t]>='A')&&(zf[i][t]<='Z')){jg[i]=jg[i]+1;}\n if(zf[i][t]=='_'){jg[i]=jg[i]+1;}\n }}\n for(int i=0;i='0')&&(zf[i][0]<='9')){jg[i]=jg[i]-1;}}\n for(int i=0;i64&&s[0]<91) && !(s[0]>96&&s[0]<123))return 0;\n\tfor(i=0;i64&&s[i]<91) && !(s[i]>96&&s[i]<123) && !(s[i]>='0'&&s[i]<='9'))return 0;\n\treturn 1;\n}\nvoid main()\n{\n\tint n,i;\n\tchar str[50][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'Z'||str[0]<'A')&&(str[0]>'z'||str[0]<'a'))\n\t\tprintf(\"no\\n\");\n\telse\n\t{\n\t\tfor(j=1;str[j]!='\\0';j++)\n\t\t{\n\t\t\tif(str[j]!='_'&&(str[j]>'Z'||str[j]<'A')&&(str[j]>'z'||str[j]<'a')&&(str[j]<'0'||str[j]>'9'))\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(str[j]=='\\0')\n\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42122", "code": "\n\nint main(){\n\tint n,flag=0;\n\tcin>>n;\n\tcin.get();\n\tchar a[30];\n\tfor(int i=1;i<=n;i++){\n\t\tcin.getline(a,30);\n\t\tif(a[0]=='_'||(a[0]>='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')){\n\t\t\tfor(int j=1;a[j]!='\\0';j++){\n\t\t\t\tif(a[j]=='_'||(a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z')||(a[j]>='0'&&a[j]<='9'))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tcout<<\"no\"<='0'&&shuzu[0]<='9') {printf(\"no\\n\");b=0;}\n else for(o=0;o='a'&&shuzu[o]<='z')||(shuzu[o]>='A'&&shuzu[o]<='Z')||(shuzu[o]=='_')||(shuzu[o]>='0'&&shuzu[o]<='9'))) {printf(\"no\\n\");b=0;break;}\n }\n if(b==1) printf(\"yes\\n\");\n}\nreturn 0;\n}\n \n\n\n"} +{"label": "85", "index": "42124", "code": "int main()\n{\nint i,j,n;\nint a[100]={0};\nchar s[21];\nscanf(\"%d\",&n);\nfor(i=0;i='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||(s[0]=='_')){\nfor(j=1;s[j]!='\\0';j++){\nif((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]=='_')||(s[j]>='0'&&s[j]<='9')) a[i]=1;\nelse{\na[i]=0;\nbreak;}}}}\nfor(i=0;i='A'&&sz[0]<='Z')||(sz[0]>='a'&&sz[0]<='z')){\n for(i=1;sz[i];i++){\n if((sz[i]=='_')||(sz[i]>='0'&&sz[i]<='9')||(sz[i]>='a'&&sz[i]<='z')||(sz[i]>='A'&&sz[i]<='Z')){\n continue;\n }else m++;\n }if(m!=0){\n m=0;\n puts(\"no\");\n }else{\n puts(\"yes\");\n }\n }else {puts(\"no\");\n }}return 0;\n}\n\n\n"} +{"label": "85", "index": "42126", "code": "\nint main()\n{\n\tchar a[50];\n\tint b[50],c,l,n;\n\tint i,j;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=65&&c<=90||c==95||c>=97&&c<=122)\n\t\t{\n\t\t\tfor(j=1;j=65&&c<=90||c==95||c>=48&&c<=57||c>=97&&c<=122)\n\t\t\t\t\tb[i]=1;\n\t\t\t\telse\n\t\t\t\t{b[i]=0;break;}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tb[i]=0;\n\t}\n\tfor(i=0;i64))||((a[i][0]<123)&&(a[i][0]>96))||(a[i][0]=='_')){\n\t\t \tif(((a[i][k]<='9')&&(a[i][k]>='0'))||((a[i][k]<='z')&&(a[i][k]>='a'))||((a[i][k]<='Z')&&(a[i][k]>='A'))||(a[i][k]=='_')){\n\t\t\t\t sz[i]=1;\n\t\t\t\t}else{\n\t\t\t\t sz[i]=0;\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsz[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='a'&&word[i][j]<='z')\n\t\t\t\t||(word[i][j]>='A'&&word[i][j]<='Z')\n\t\t\t\t||((word[i][j]>='0')&&(word[i][j]<='9')&&(j>0)))){\n\t\t\t\tj++;\n\n\t\t\t}else{\n\t\t\t\tm=0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(m==1){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\t\n\treturn 0;\n}"} +{"label": "85", "index": "42129", "code": "int main (){\n\tchar str[21];\n\tint sz[21]={0};\n\tint l,n,i,m;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%s\",&str);\n\t\tl= strlen(str);\n\t\tfor(m=0;m='a')||str[m]=='_'||(str[m]<='Z'&&str[m]>='A')||(str[m]<='9'&&str[m]>='0'))\n\t\t\t{sz[i]=1;\n\t\t\t}else{\n\t\t\tsz[i]=0\t;\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\tif (str[0]=='9'||str[0]=='8'||str[0]=='7'||str[0]=='6'||str[0]=='5'||str[0]=='4'||str[0]=='3'||str[0]=='2'||str[0]=='1'||str[0]=='0'){\n\t\t\t\tsz[i]=0;\n\t\t\t}\n\t}\n\n\tfor(i=1;i<=n;i++){\n\t\tif(sz[i]==1){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\n\t\t\n\t\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42130", "code": "\nint main()\n{\n int n,i,j,b=1;\n char a[100][20];\n scanf(\"%d\",&n);\n for(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z'))\n\t {\n\t\t for(j=1;j<=20;j++){\n\t\t\t if((a[i][j]=='_')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='0'&&a[i][j]<='9'))\n\t\t\t {\n\t\t\t\t continue;\n\t\t\t }\n\t\t\t else if(a[i][j]!='\\0')\n\t\t\t {\n\t\t\t\t printf(\"no\\n\");\n\t\t\t\t b=0;\n\t\t\t\t break;\n\t\t\t }\n\t\t\t else\n\t\t\t\t break;\n\t\t }\n\t\t if(b==1)\n\t\t {printf(\"yes\\n\");}\n\t\t b=1;\n\t }\n\t else\n\t {\n\t\t printf(\"no\\n\");\n\t }\n }\n\n return 0;\n}"} +{"label": "85", "index": "42131", "code": "int main()\n{\n\tint n,i=1,j,len;\n\tchar s[21];\n\tscanf(\"%d\",&n);\n\tfor(j=0;j='A'&&s[0]<='Z')||(s[0]>='a'&&s[0]<='z'))\n\t{\n\t\twhile(s[i]!='\\0')\n\t\t{\n\t\t\tif((s[i]<'0'||(s[i]>'9'&&s[i]<'A')||(s[i]>'Z'&&s[i]<'a')||s[i]>'z')&&s[i]!='_')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tif(s[i]=='\\0')printf(\"yes\\n\");\n\t}\n\telse\n\tprintf(\"no\\n\");\n}\nreturn 0;\n}\n"} +{"label": "85", "index": "42132", "code": "\nint main(int argc, char* argv[])\n{\n\tint i,j,n;\n\tchar s[32];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)))\n\t\t\t\tbreak;\n\t\t}\n\t\tif(s[j]!='\\0')\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42133", "code": "int main(){\n int i=0,j=0,n=0;\n char s[21];\n scanf(\"%d\",&n);\n for(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')\n ||(s[j]>='0'&&s[j]<='9'&&j>0))){\n break;\n }\n }\n if(s[j]!=0){\n printf(\"no\\n\");\n }else{\n printf(\"yes\\n\");\n }\n }\n return 0;\n}\n"} +{"label": "85", "index": "42134", "code": "int main()\n{\n\tint n,i;\n\tchar a[100][21],*p;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&a[i][0]<='9')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n if((*p>='0'&&*p<='9')||(*p>='a'&&*p<='z')||(*p>='A'&&*p<='Z')||*p=='_')\n\t\t\t{\n\t\t\t\tp++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(*p=='\\0')\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42135", "code": "\nint main()\n{\n\tint n;\n\n\tscanf(\"%d\",&n);\n\tscanf(\"\\n\");\n\t\n\twhile(n--)\n\t{\n\t\tchar str[21];\n\t\tgets(str);\n\t\tint i;\n\t\tchar a=str[0];\n\t\tif (!((a>='a'&&a<='z')||(a>='A'&&a<='Z')||(a=='_')))\n\t\t{\n\t\t\tputs(\"no\");\n\t\t\tcontinue;\n\t\t}\n\n\t\tfor(i=1;i='a'&&a<='z')||(a>='A'&&a<='Z')||(a=='_')||(a>='0'&&a<='9')))\n\t\t\t{\n\t\t\t\tputs(\"no\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(i>=strlen(str))\n\t\t\tputs(\"yes\");\n\t}\n\n\treturn 0;\n}"} +{"label": "85", "index": "42136", "code": "int main()\n{\n\tchar a[19];\n\tint n,i,j,d,len;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n+1;i++)\n\t{\n\t\tgets(a);\n\t\tlen=strlen(a);\n\t\td=0;\n\t\tfor(j=0;j<=len-1;j++)\n\t\t{\n\t\t\tif( ( (a[0] >= '9') ||( a[0] <'0' ) )&& ( (a[j]>='a' && a[j]<='z') || (a[j]>='A' && a[j]<='Z') || (a[j]=='_') || (a[j]>='0' && a[j]<='9') ))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\td++;\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif((d==0)&&(i!=1))\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42137", "code": "int main(){\n int n,i,j;\n scanf(\"%d\",&n);\n char s[21];\n for(i=0;i'z'||(s[0]<'a'&&s[0]>'Z'))&&s[0]!='_')\n {printf(\"no\\n\");goto m;}\n for(j=1;s[j]!='\\0';j++){\n if((s[j]<'0'||s[j]>'z'||(s[j]>'9'&&s[j]<'A')||(s[j]<'a'&&s[j]>'Z'))&&s[j]!='_')\n {printf(\"no\\n\");goto m;}\n }\n printf(\"yes\\n\");\n m:;\n }\n return 0;\n}\n "} +{"label": "85", "index": "42138", "code": "\nint main(){\n int n,i,s[100],j;\n scanf(\"%d\",&n);\n char a[n][20];\n for(i=0;i='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]=='_')) s[i]=1;\n else {s[i]=0;break;}\n }\n else if((a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]=='_')||(a[i][j]>='0'&&a[i][j]<='9')) s[i]=1;\n else {s[i]=0; break;}\n } if(s[i]==0) printf(\"no\\n\");else printf(\"yes\\n\"); \n }\n \n return 0;\n} "} +{"label": "85", "index": "42139", "code": "int main(){\n int n;\n int sum=0;\n int m[1000];\n char c[1000][22];\n scanf(\"%d\",&n);\n for(int i=0;i='A'&&c[i][0]<='Z')||(c[i][0]>='a'&&c[i][0]<='z')||c[i][0]=='_')&&((c[i][j]>='A'&&c[i][j]<='Z')||(c[i][j]>='a'&&c[i][j]<='z')||c[i][j]=='_'||(c[i][j]>='0'&&c[i][j]<='9')))\n sum++;\n }\n if(sum==m[i])printf(\"yes\\n\");\n else printf(\"no\\n\");\n sum=0;\n }\n}"} +{"label": "85", "index": "42140", "code": "int main()\n{\n int n,i,j;\n char s[32];\n scanf(\"%d\",&n);\n for(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0))) \n break;\n }\n if(s[j])\n printf(\"no\\n\");\n else\n printf(\"yes\\n\");\n } \n getchar();\n getchar();\n getchar();\n return 0; \n}\n \n"} +{"label": "85", "index": "42141", "code": "int main(){\n int n;\n char str[21];\n scanf(\"%d\",&n);\n for(int j=0;j='a')&&(str[i]<='z'))||((str[i]>='A')&&(str[i]<='Z'))||(str[i]=='_')){\n continue;\n } else{\n printf(\"no\\n\");\n break;\n }\n }\n if(i>0){\n if(((str[i]>='a')&&(str[i]<='z'))||((str[i]>='A')&&(str[i]<='Z'))||((str[i]>='0')&&(str[i]<='9'))||(str[i]=='_')){\n if(str[i+1]!='\\0'){\n continue;\n } else{\n printf(\"yes\\n\");\n }\n } else{\n printf(\"no\\n\");\n break;\n }\n }\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42142", "code": "int main(){\n int n,j,i,g;\n cin>>n;\n int bb[n+1];\n char aa[n+1][100];\n for(i=1;i<=n;i++){\n cin>>aa[i];\n g=0;\n if(!(aa[i][0]=='_'||aa[i][0]<=122&&aa[i][0]>=97||aa[i][0]<=90&&aa[i][0]>=65)){\n g=1;\n }\n else {\n j=1;\n while(aa[i][j]!='\\0'){\n if(!(aa[i][j]=='_'||aa[i][j]<=122&&aa[i][j]>=97||aa[i][j]<=90&&aa[i][j]>=65||aa[i][j]<=57&&aa[i][j]>=48)){\n g=1;\n break;\n }\n j++;\n }\n }\n bb[i]=g;\n }\n for(i=1;i<=n;i++){\n if(bb[i]==1)\n cout<<\"no\"<>n;\n\tfor (i=0;i>a[i];\n\t\tfor (j=0;a[i][j]!='\\0';j++)\n\t\t{\n\t\t\tif (j==0)//???????\n\t\t\t{\n\t\t\t\tif ((a[i][0]>='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||a[i][0]=='_')\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcout<<\"no\"<='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||a[i][j]=='_'||(a[i][j]>='0'&&a[i][j]<='9'))\n\t\t\t\t{\n\t\t\t\t\tif (a[i][j+1]!='\\0')\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse\n\t\t\t\t\t\tcout<<\"yes\"<='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tif((s[0]=='_')||(s[0]>='a'&&s[j]<='z')||(s[0]>='A'&&s[j]<='Z')){\n\t\t\tc++;\n\t\t}\n\t\tif(c==l){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\tc=0;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42145", "code": "\n\nint main()\n{\n\tint n, i, j, temp;\n\tchar s[21];\n\tcin >> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> s;\n\t\ttemp = 0;\n\t\tif ((s[0] != '_') && ((s[0]>'z') || (s[0] < 'a')) && ((s[0]<'A') || (s[0]>'Z')))\n\t\t{\n\t\t\tcout << \"no\" << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tfor (j = 1; j < strlen(s); j++)\n\t\t{\n\t\t\tif ((s[j] != '_') && ((s[j]>'z') || (s[j] < 'a')) && ((s[j]<'A') || (s[j]>'Z')) && ((s[j]<'0') || (s[j]>'9')))\n\t\t\t{\n\t\t\t\tcout << \"no\" << endl;\n\t\t\t\ttemp = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (temp == 0)\n\t\t\tcout << \"yes\" << endl;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42146", "code": "void main()\n{\n\tint n,i,j,z,len;\n\tchar c[1000][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'Z'&&c[i][0]<'_')||(c[i][0]==96)||(c[i][0]>'z'))\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tlen=strlen(c[i]);\n\t\tfor(j=1;j'9'&&c[i][j]<'A')||(c[i][j]>'Z'&&c[i][j]<'_')||(c[i][j]==96)||(c[i][j]>'z'))\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tz=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(z!=1)\n printf(\"yes\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42147", "code": "int main(){\n\tint n,i,j,a[100],len[100];\n\tchar zfc[100][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a')||(zfc[i][0]<='Z'&&zfc[i][0]>='A')||(zfc[i][0]=='_'))&&((zfc[i][j]<='z'&&zfc[i][j]>='a')||(zfc[i][j]<='Z'&&zfc[i][j]>='A')||(zfc[i][j]<='9'&&zfc[i][j]>='0')||zfc[i][j]=='_')){\n\t\t\t\ta[i]++;\n\t\t\t}else{\n\t\t\t\ta[i]+=2;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i= 'a' && *p <='z') || (*p >= 'A' && *p <='Z') || (*p == '_')))\n\t\treturn 0;\n\n\twhile (*p != '\\0')\n\t{\n\t\tif (!((*p >= 'a' && *p <='z') || (*p >= 'A' && *p <='Z') || (*p == '_') || (*p >= '0' && *p <='9')))\n\t\t\treturn 0;\n\t\tp++;\n\t}\n\treturn 1;\n}\n\nint main()\n{\n\tchar buffer[21];\n\tint n, i;\n\tscanf(\"%d\", &n);\n\tgets(buffer);\n\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tgets(buffer);\n\t\tif (islegalIdentifier(buffer))\n\t\t\tputs(\"yes\");\n\t\telse\n\t\t\tputs(\"no\");\n\t}\n\n\treturn 0;\n}\n"} +{"label": "85", "index": "42149", "code": "int main()\n{\n\tint n,i,j,bfh[100]={0},sz[100];\n\t char zf[100][21];\n\t scanf(\"%d\",&n);\n\t for(i=0;i='a')&&(s[i][j]<='z'))\n\t\t\t\t{\n\t\t\t\t continue;\n\t\t\t\t}\n\t\t\t else if((s[i][j]>='A')&&(s[i][j]<='Z'))\n\t\t\t\t{\n\t\t\t\t continue;\n\t\t\t\t}\n else if(s[i][j]=='_')\n\t\t\t\t{\n\t\t\t\t continue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpanduan=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n if((s[i][j]>='0')&&(s[i][j]<='9'))\n\t\t\t\t {\n\t\t\t\t continue;\n\t\t\t\t }\n\t\t\t else if((s[i][j]>='a')&&(s[i][j]<='z'))\n\t\t\t\t {\n\t\t\t \tcontinue;\n\t\t\t\t }\n\t\t\t else if((s[i][j]>='A')&&(s[i][j]<='Z'))\n\t\t\t\t {\n\t\t\t\t continue;\n\t\t\t\t }\n\t\t\t else if(s[i][j]=='_')\n\t\t\t\t {\n\t\t\t\t continue;\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t panduan=0;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\n\t\tif(panduan==1)\n\t\t{\n\t\t\t printf(\"yes\\n\");\n\t\t}\n\t\telse if(panduan==0)\n\t\t{\n\t\t\t printf(\"no\\n\");\n\t\t}\n\t\t\n\t}\n\t\t\n\n\treturn 0;\n}\n\t"} +{"label": "85", "index": "42151", "code": "/* Note:Your choice is C IDE */\nvoid main()\n{\n int n,i=1,j=0,len,M=0;\n char A[21];\n scanf(\"%d\",&n);\n scanf(\"\\n\");\n while(i<=n)\n {\n \tgets(A);\n \tlen=strlen(A);\n \tif((A[j]>='A'&&A[j]<='Z')||(A[j]>='a'&&A[j]<='z')||A[j]=='_')\n \t {\n \t \tM++;\n \t for(j=1;j<=len-1;j++)\n \t {\n \t\t if((A[j]>='A'&&A[j]<='Z')||(A[j]>='a'&&A[j]<='z')||(A[j]>='0'&&A[j]<='9')||A[j]=='_') M++;\n \t }\n \t if(M==len) printf(\"yes\\n\");\n \t else printf(\"no\\n\");\n \t }\n \t else printf(\"no\\n\");\n \t i++;\n \t M=0;\n \t j=0;\n }\n}"} +{"label": "85", "index": "42152", "code": "int main()\n{\n\tint n,i,j,len;\n\tchar s[30],t;\n\tscanf(\"%d%c\",&n,&t);\n\tfor(i=0;i='0' && s[j]<='9' || s[j]>='a' && s[j]<='z' || s[j]>='A' && s[j]<='Z' || s[j]=='_')\n\t\t\t\tj++;\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\tif(j==len)\n\t\t{\n\t\t\tif(s[0]>='0' && s[0]<='9')\n\t\t\t\tprintf(\"no\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}\n\t\t\n\n"} +{"label": "85", "index": "42153", "code": "\nint main()\n{\n\tint n,i,j,t,len[2000]={0};\n\tchar str[200][200];\n\tscanf(\"%d\",&n);\n\tscanf(\"\\n\");\n\tfor(i=0;i='a')&&(bsf[i][0]<='z'))||((bsf[i][0]>='A')&&(bsf[i][0]<='Z'))||(bsf[i][0]=='_')){\n for(m=1;bsf[i][m]!='\\0';m++){\n if(((bsf[i][m]>='a')&&(bsf[i][m]<='z'))||((bsf[i][m]>='0')&&(bsf[i][m]<='9'))||((bsf[i][m]>='A')&&(bsf[i][m]<='Z'))||(bsf[i][m]=='_')) {\n }\n else{\n result=1;\n }\n }\n }\n else{\n result=1;\n }\n if(result==0){printf(\"yes\\n\");}else{printf(\"no\\n\");};\n result=0;\n }\n return 0;\n}\n\n\n"} +{"label": "85", "index": "42155", "code": "int main()\n{\n\tint\tn;\n\tchar**\tp;\n\tint\ti;\n\tint\tj;\n\tint\tk;\n\tscanf(\"%d\", &n);\n\tp = (char**)malloc(sizeof(char*) * n);\n\tfor (i=0; i= 'A' && p[i][0] <= 'Z')\n\t\t\t|| (p[i][0] >= 'a' && p[i][0] <= 'z' )\n\t\t\t|| p[i][0] == '_')\n\t\t{\n\t\t\tfor (j=1; j '9' && p[i][j] < 'A')\n\t\t\t\t\t|| (p[i][j] > 'Z' && p[i][j] < '_')\n\t\t\t\t\t|| (p[i][j] > '_' && p[i][j] < 'a')\n\t\t\t\t\t|| (p[i][j] > 'z'))\n\t\t\t\t{\n\t\t\t\t\tk = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\telse k = 0;\n\t\tprintf(\"%s\", k == 1 ? \"yes\\n\" : \"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42156", "code": "int main(){\nint n,i,p,b;\nchar a[22];\nscanf(\"%d\",&n);\nfor(i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')||a[0]=='_'){\n if(a[p]=='_'||(a[p]>='a'&&a[p]<='z')||(a[p]>='A'&&a[p]<='Z')||(a[p]>='0'&&a[p]<='9')){\n if(p==b-1){\n printf(\"yes\\n\");\n break;\n }else{\n continue;\n }\n }else{\n printf(\"no\\n\");\n break;\n }\n }else{\n printf(\"no\\n\");\n break;\n }\n\n}\n}\nreturn 0;\n}"} +{"label": "85", "index": "42157", "code": "\n\nint main()\n{\n\t\n\tint n;\n\tcin>>n;\n\tcin.get();//??n??????????\n\tchar a[100];\n\tfor(int i=0;i='A'&&a[j]<='Z') || ( a[j]>='a'&&a[j]<='z') || a[j]=='_'))counter=0;//??????????\n\t\t\telse if( j!=0&&( (a[j]>='0'&&a[j]<='9') || (a[j]>='A'&&a[j]<='Z') || ( a[j]>='a'&&a[j]<='z') || a[j]=='_'))counter=0;\n\t\t\telse {counter=1;break;}\n\t\t}\n\t\tif(counter==0)cout<<\"yes\"<=48 && zf[i][0]<=57)){\n\t\t\tprintf(\"no\\n\");\t}\n\tif((zf[i][0]>=0 &&zf[i][0]<=47)||(zf[i][0]>=58 && zf[i][0]<=64)||(zf[i][0]>=91 && zf[i][0]<=94)||(zf[i][0]==96)||(zf[i][0]>=123 && zf[i][0]<=127)){\n\tprintf(\"no\\n\");\n\t}\n\telse if(zf[i][0]<48 ||zf[i][0]>57){\n\t\tfor(j=0;j47 &&zf[i][j]<58)||(zf[i][j]>64 && zf[i][j]<91)||(zf[i][j]==95)||(zf[i][j]>96 && zf[i][j]<123)){\n\t\t\t\tcontinue;\n\n}\n\t\t\tif((zf[i][j]>=0 &&zf[i][j]<=47)||(zf[i][j]>=58 && zf[i][j]<=64)||(zf[i][j]>=91 && zf[i][j]<=94)||(zf[i][j]==96)||(zf[i][j]>=123 && zf[i][j]<=127)){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t}\n\n\tif(j==a){\n\tprintf(\"yes\\n\");\n\t}\n\t}\t\n\n}\nreturn 0;\n}"} +{"label": "85", "index": "42160", "code": "void main()\n{\n\tint n,i,j,l,len;\n\tchar c[100][100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a' && c[i][0]<='z')\n\t\t\tl=l;\n\t\telse if(c[i][0]>='A' && c[i][0]<='Z')\n\t\t\tl=l;\n\t\telse if(c[i][0]=='_')\n\t\t\tl=l;\n\t\telse\n\t\t\tl++;\n\t\tfor(j=1;j='a' && c[i][j]<='z')\n\t\t\t\tl=l;\n\t\t\telse if(c[i][j]>='A' && c[i][j]<='Z')\n\t\t\t\tl=l;\n\t\t\telse if(c[i][j]=='_')\n\t\t\t\tl=l;\n\t\t\telse if(c[i][j]>='0' && c[i][j]<='9')\n\t\t\t\tl=l;\n\t\t\telse l++;\n\t\t}\n\t\tif(l!=0)\n\t\t\tprintf(\"no\\n\");\n\t\telse printf(\"yes\\n\");\n\t}\n}\n\n"} +{"label": "85", "index": "42161", "code": "int main(){\n\tchar name[30][25];\n\tint i,j,n,t[30];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=30&&name[j][i]<=64)||(name[j][i]>=91&&name[j][i]<=94)||name[j][i]==96||name[j][i]>=123){\n\t\t\t t[j]=1;\n\t\t\t}\n\t\t}\n\t for(i=1;name[j][i]!='\\0';i++){\n\t\t\tif((name[j][i]>=30&&name[j][i]<=47)||(name[j][i]>=58&&name[j][i]<=64)||(name[j][i]>=91&&name[j][i]<=94)||name[j][i]==96||name[j][i]>=123){\n\t\t\tt[j]=1;\n\t\t\t}\n\t\t} \n\t}\n\tfor(j=0;j>n;\n\tgets(A);\n for(int i=0;i='a'&&A[j]<='z'||A[j]>='A'&&A[j]<='Z'||A[j]=='_'||A[j]>='0'&&A[j]<='9')||A[0]>='0'&&A[0]<='9')\n\t\t\t\tg=1;\n\t\t}\n\t\tif(g==1)\n\t\t\tcout<<\"no\"<='0')&&(s[0]<='9')) {a=1;break;}\n\t\tif((s[j]=='_')||((s[j]<='z')&&(s[j]>='a'))||((s[j]<='Z')&&(s[j]>='A'))||((s[j]<='9')&&(s[j]>='0')))\n\t\ta=0;\n\telse {a=1;break;}\n\t}\n\tif(a==0)\n\t\tprintf(\"yes\\n\");\n\tif(a==1) \n\t\tprintf(\"no\\n\");\n }\n\treturn 0;\n}"} +{"label": "85", "index": "42166", "code": "int main(){\n\tchar s[21];\n\tint i,n,j;\n\tchar jg[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)){\n\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tjg[i]=s[j];\n\t}\n\tfor(i=0;i='a'&&bsf[i][a]<='z')||(bsf[i][a]>='A'&&bsf[i][a]<='Z')||(bsf[i][a]=='_')){\n b=1;\n for(a=1;a='a'&&bsf[i][a]<='z')||(bsf[i][a]>='A'&&bsf[i][a]<='Z')||(bsf[i][a]=='_')||(bsf[i][a]>='0'&&bsf[i][a]<='9')){b++;}\n }\n if(b==l[i]){printf(\"yes\\n\");}\n else{printf(\"no\\n\");}\n }\n else{printf(\"no\\n\");}\n }\n return 0;\n}\n\n\n\n\n\n\n\n\n\n"} +{"label": "85", "index": "42168", "code": "int main(int argc, char* argv[])\n{\n\tint n,m=0;\n\tchar a[39];\n int i,j,p;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i='0')&&(a[j]<='9')&&(j>0))||((a[j]>='A')&&(a[j]<='Z'))||((a[j]>='a')&&(a[j]<='z'))||(a[j]=='_'))\n\t\t\t\tm++;\n\t\t}\n\t\tp=strlen(a);\n\t\tif((m==p)&&((a[0]>='A'&&a[0]<='Z')||(a[0]>='a'&&a[0]<='z')||(a[0]=='_')))\n\t\t\tprintf(\"yes\\n\");\n\t\telse \n\t\t\tprintf(\"no\\n\");\t\t\t\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42169", "code": "int main(){\n\tint i,j,len[22],n,ans;\n\tchar zfc[100][22];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0' && zfc[i][j]<='9' && j>0)||\n\t\t\t\t(zfc[i][j]>='A' && zfc[i][j]<='Z')||\n\t\t\t\t(zfc[i][j]>='a' && zfc[i][j]<='z')||\n\t\t\t\t(zfc[i][j]=='_')))\t\t\t\n\t\t\t{ans=0;\n\t\t\tbreak;}\t\t\t\n\t\t}\n\t\tif(ans==1) printf(\"yes\\n\");\n\t\telse if(ans==0) printf(\"no\\n\");\n\t} \n\treturn 0;\n}"} +{"label": "85", "index": "42170", "code": "int main()\n{\nint n,m,i,a;\nscanf(\"%d\",&n);\nchar s[300];\nint len;\na=0;\nfor(i = 0; i < n; i++){\n scanf(\"%s\", s);\n len = strlen(s);\n if((s[0]>=65&&s[0]<=90)||s[0]==95||(s[0]>=97&&s[0]<=122))\n {\n a=0;\n for(m=0;m=65&&s[m]<=90)||s[m]==95||(s[m]>=97&&s[m]<=122)||(s[m]>=48&&s[m]<=57))\n a=a;\n else a++;\n }\n }\n else a++;\n if(a==0)\n printf(\"yes\\n\");\n else printf(\"no\\n\");\n}\nreturn 0;\n}"} +{"label": "85", "index": "42171", "code": "void main()\n{\n\tint i,j,n,m,k;\n\tchar c[100][1000];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%s\",c[i]);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tfor(j=0;j='0'&&c[i][0]<='9')\n {\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tgoto loop;\n\t\t\t}\n\t\t\telse if(c[i][j]=='_')\n\t\t\t\tcontinue;\n\t\t\telse if(c[i][j]>='A'&&c[i][j]<='Z')\n\t\t\t\tcontinue;\n\t\t\telse if(c[i][j]>='a'&&c[i][j]<='z')\n\t\t\t\tcontinue;\n\t\t\telse if(c[i][j]>='0'&&c[i][j]<='9')\n\t\t\t\tcontinue;\n\t\t\telse \n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tgoto loop;\n\t\t\t}\n\t\t\tprintf(\"yes\\n\");\n loop:;\n\t}\n}\n"} +{"label": "85", "index": "42172", "code": "int legal(char d[20]){\n\tint i;\n\tif(d[0]>='0'&&d[0]<='9')\n\t\treturn 0;\n\tfor(i=0;d[i];i++){\n\t\tif(!(d[i]==' '||d[i]>='A'&&d[i]<='Z'||d[i]>='a'&&d[i]<='z'||d[i]>='0'&&d[i]<='9'||d[i]=='_')){\n\t\t\treturn 0;\n\t\t}\n\t}\n\treturn 1;\n}\n\t\nint main()\n{\n\tint i,t,n;\n\tchar s[100][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=65&&s[0]<=90||s[0]>=97&&s[0]<=122||s[0]==95)\n\t\t\t\t\ta=a+1;\n\t\t\t\t g++;\n if(s[j]>=65&&s[j]<=90||s[j]>=97&&s[j]<=122||s[j]==95||s[j]>=48&&s[j]<=57)\n\t\t\t\t\ta=a+1;\n\t\t\t\t g++;\n\n\t\t\t}\n\t\t\tif(a==g)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t}\n\n \n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42174", "code": "\n\n\n\n\nvoid main()\n{\n\tint i,j,n,k;\n\tchar a[21];\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a')&&(a[0]<='z'))||((a[0]>='A')&&(a[0]<='Z')))\n\t\t{\n\t\t\tk++;\n\t\t\t\tfor(j=1;j='a')&&(a[j]<='z'))||((a[j]>='A')&&(a[j]<='Z'))||((a[j]>='0')&&(a[j]<='9')))\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t if(k == strlen(a))\n\t\t\t\t\t printf(\"yes\\n\");\n\t\t\t\t else\n\t\t\t\t\t printf(\"no\\n\");\n\t\t}\n\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t}\n}\n\n\n\n\n\t"} +{"label": "85", "index": "42175", "code": "int main(){\n\tint n,k,i,j;\n\tscanf(\"%d\",&n);\n\tchar zfc[100][21];\n\tfor(i=0;i='0'&&zfc[i][0]<='9'){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t if(zfc[i][j]>='a'&&zfc[i][j]<='z'||zfc[i][j]>='A'&&zfc[i][j]<='Z'||zfc[i][j]=='_'||zfc[i][j]>='0'&&zfc[i][j]<='9'){\n\t\t\t\tcontinue;\n\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\n\tif(j==k){\n\t\tprintf(\"yes\\n\");\n\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42176", "code": "int main(){\n\tint n,i,c;\n\tscanf(\"%d\",&n);\n\tint b[100],d[100];\n\tchar a[100][100];\n\tfor(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')){\n\t\t\tb[i]=1;\n\t\t}else{\n\t\t\tb[i]=0;\n\t\t}\n\t}\n for(c=0;c='a'&&a[c][i]<='z')||(a[c][i]>='A'&&a[c][i]<='Z')||(a[c][i]>='0'&&a[c][i]<='9')){\n\t\t\t\t\tb[c]=1;\n\t\t\t\t}else{\n\t\t\t\t\tb[c]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\n for(c=0;c='A'&&a[i][j]<='Z')||a[i][j]=='_'||(a[i][j]>='a'&&a[i][j]<='z')) test=1;\n\t\t\t\telse {test=0;break;}\n\t\t\t}\n\t\t\telse if((a[i][j]>='A'&&a[i][j]<='Z')||a[i][j]=='_'||(a[i][j]>='0'&&a[i][j]<='9')||(a[i][j]>='a'&&a[i][j]<='z')) test=1;\n\t\t\telse {test=0;break;}\n\t\t}\n\t\tif(test==0) printf(\"no\\n\");\n\t\telse printf(\"yes\\n\");\n }\n\treturn 0;\n}\n"} +{"label": "85", "index": "42178", "code": "int main(){\n\tchar a[20][21];\n\tint j,i,n,b,m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i= 'A' && a[i][j] <= 'Z')||(a[i][j] >= 'a' && a[i][j] <= 'z') ||(a[i][j] >= '0' && a[i][j] <= '9'&&j>0))){\n\t\t\t\t\tm=1;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(m==0){\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t\t\t\n\t\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42179", "code": "int main()\n{\n\tint n,i,j,y,b[500];\n\tscanf(\"%d\",&n);\t\n\tchar a[20];\n\tfor(i=0;i='a')&&(a[0]<='z')||(a[0]>='A')&&(a[0]<='Z')||(a[0]=='_'))\n\t\t{\n\t\t\tb[i]=1;\n\t\t\tfor(j=1;j<(int)strlen(a);j++)\n\t\t\t{\n\t\t\t\tif((a[j]>='a')&&(a[j]<='z')||(a[j]>='A')&&(a[j]<='Z')||(a[j]=='_')\n\t\t\t\t\t||(a[j]>='0')&&(a[j]<='9'))\n\t\t\t\t{\n\t\t\t\t\tb[i]=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tb[i]=0;\n\t\t\t\tif(b[i]==0)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tb[i]=0;\n\t}\n\tfor(y=0;y='a'&&s[i][0]<='z')||\n\t\t\t\t (s[i][0]>='A'&&s[i][0]<='Z')||\n\t\t\t\t (s[i][0]=='_'))){\n\t\t\tfor(j=1;s[i][j]!='\\0';j++){\n\t\t\t if(!((s[i][j]>='a'&&s[i][j]<='z')||\n\t\t\t\t (s[i][j]>='A'&&s[i][j]<='Z')||\n\t\t\t\t (s[i][j]=='_')||\n\t\t\t\t\t (s[i][j]>='0'&&s[i][j]<='9')))\n\t\t\t\t\t a=0;\n\t\t\t}\n\t\t }\n else\n\t\t\t a=0;\n\t\t if(a==1)\n\t\t printf(\"yes\\n\");\n\t if(a==0)\n\t\t printf(\"no\\n\");\t\n\t}\n\t return 0;\n\n}"} +{"label": "85", "index": "42181", "code": "int main ()\n{\n\tint n,i,j;\n\tchar a[60];\n\tcin >>n;\n\tfor ( i=0;i>a;\n\t\tif (a[0]!='_'&&((a[0]<='Z'&&a[0]>='A')==0)&&((a[0]<='z'&&a[0]>='a')==0))\n\t\t\tcout <<\"no\"<'Z'||a[j]<'A')&&(a[j]>'z'||a[j]<'a')&&(a[j]>'9'||a[j]<'0'))\n\t\t\t\t{\n\t\t\t\t\tcout <<\"no\"<='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='0'&&s[i][j]<='9'&&j>0))){\n break;\n }\n }\n if(s[i][j]=='\\0'){\n printf(\"yes\\n\");\n }else{printf(\"no\\n\");}\n }\n return 0;\n}\n"} +{"label": "85", "index": "42183", "code": "int main()\n{\n int n=0,i=0,len=0;\n scanf(\"%d\\n\", &n);\n char str[100];\n while(i='A'&&p[i][0]<='Z')||(p[i][0]>='a'&&p[i][0]<='z')||p[i][0]=='_')\n\t\t{\n\t\t\tfor(j=1;p[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t\n\t\t\t\tif((p[i][j]>='A'&&p[i][j]<='Z')||(p[i][j]>='a'&&p[i][j]<='z')||p[i][j]=='_'||(p[i][j]>='0'&&p[i][j]<='9'))\n\t\t\t\t\tk=k+1;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tc=strlen(p[i]);\n\t\tif(k==c)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\tprintf(\"no\\n\");\n\t\tk=1;\n\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42185", "code": "int main()\n{ \n int n,i,j;\n char c[30];\n int sz[30]={0};\n\n scanf(\"%d\\n\",&n);\n\n for(i=0;i='a' && c[0]<='z') || (c[0]>='A' && c[0]<='Z') || (c[0]=='_'))\n\t {\n\t\t for(j=1;c[j]!='\\0';j++)\n\t\t {\n\t\t\t if(!((c[j]>='a' && c[j]<='z') || (c[j]>='A' && c[j]<='Z') || (c[j]=='_') || (c[j]>='0' && c[j]<='9')))\n\t\t\t {\n\t\t\t\t sz[i]=1;\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\t }\n\t else\n\t {\n\t\t sz[i]=1;\n\t }\n }\n\n for(i=0;i='0')&&(s[0]<='9')){\n\t\t\t\tsz[i]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (((s[j]>='0')&&(s[j]<='9'))||((s[j]>='a')&&(s[j]<='z'))||((s[j]>='A')&&(s[j]<='Z'))||(s[j]==x)){\n\t\t\tcontinue;\n\t\t}\n\t\t\telse{\n\t\t\t\tsz[i]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='a')||(sz[0]<='Z'&&sz[0]>='A')){\n\t\t\ta=1;\n\t\t\tfor (j=1;sz[j]!='\\0';j++){\n\t\t\t\tif (!(sz[j]=='_'||(sz[j]<='z'&&sz[j]>='a')||(sz[j]<='Z'&&sz[j]>='A')||(sz[j]<='9'&&sz[j]>='0'))){\n\t\t\t\t a=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n else if (sz[j]=='_'||(sz[j]<='z'&&sz[j]>='a')||(sz[j]<='Z'&&sz[j]>='A')||(sz[j]<='9'&&sz[j]>='0')){\n\t\t\t\t\ta=1;\n\t\t\t\t}\n\t\t\t}\n if (a==1){\n\t\t\t\tprintf (\"yes\\n\");\n\t\t\t}\n\t\t\tif (a==0){\n\t\t\t\tprintf (\"no\\n\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\tprintf (\"no\\n\");\n\t\t}\n\t}\nreturn 0;\n}\n\n"} +{"label": "85", "index": "42188", "code": "int main(){\n int n,i,k,j;\n scanf(\"%d\",&n);\n char zf[n][21];\n int judge[n];\n \n for(i=0;i='a'&&zf[i][j]<='z')||\n (zf[i][j]>='A'&&zf[i][j]<='Z')||\n (zf[i][j]=='_')||\n (zf[i][j]>='0'&&zf[i][j]<='9')){\n judge[i]=1;}\n else{judge[i]=0;\n break;} \n}}\n for(i=0;i='0'&&zf[i][0]<='9'){judge[i]=0;}\n }\n }\n \n for(i=0;i='a')&&(str[0]<='z'))||((str[0]>='A')&&(str[0]<='Z'))||(str[0]=='_'))\n\t\t{\n temp[0]=str[0];\n\t\t\tfor(j=1;str[j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif(((str[j]>='a')&&(str[j]<='z'))||((str[j]>='A')&&(str[j]<='Z'))||((str[j]>='0')&&(str[j]<='9'))||(str[j]=='_'))\n\t\t\t\t{\n\t\t\t\t\t temp[j]=str[j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttemp[j]='\\0';\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp[j]='\\0';\n\t\t\tif(strcmp(temp,str)==0)\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\t\t\t\n\t\n\t\n"} +{"label": "85", "index": "42190", "code": "int main()\n{\n\tchar a[100],*p;\n\tint n,b[100][1],*pr,len;\n\tscanf(\"%d\",&n);\n\tgets(a);\n\tfor(pr=*b;pr<*(b+n);pr++)\n\t{\n\t\t*pr='0';\n\t\tgets(a);\n\t\tlen=strlen(a);\n\t\tif((*a>'z'||*a<'A')&&*a!='_')\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t\t*pr='1';\n\t\tfor(p=a;p'9')||*p>'z'||*p<'0'||(*p>=91&&*p<=96))&&*p!='_')\n\t\t\t{\n\t\t\t\t*pr='0';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(pr=*b;pr<*(b+n);pr++)\n\t{\n\t\tif(*pr=='1')\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\t\t\n\n"} +{"label": "85", "index": "42191", "code": "int main()\n{\n\tchar s[63]={'_','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','0'};\n\tint i,j,k,n,b;\n\tchar a[20][100];\n\tchar m[2];\n\tgets(m);\n\tn=atoi(m);\n\tfor(i=0;i122)&&(a[0]<65||a[0]>90)&&a[0]!=95) {\nprintf(\"no\\n\");\ncontinue;\n}\nfor (j=1;j122)&&(a[j]<65||a[j]>90)&&(a[j]<48||a[j]>57)&&a[j]!=95)\n{printf(\"no\\n\");\ns=1;\nbreak;}\nif (s==0) printf(\"yes\\n\");\ns=0;\n}\nreturn 0;\n}"} +{"label": "85", "index": "42193", "code": "int main(){\n\tint i,j,h,n,p;char c;\n\tchar a[100][100];\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++){\n\t\tscanf(\"%s\",a[i]);\n\t}\n\tfor (i=1;i<=n;i++){\n\t\tp=1; c=a[i][0];\n\t\th=strlen(a[i]);\n\t\tif (c>='0'&&c<='9'){\n\t\t\tp=0; \n\t\t}\n\t\tfor (j=0;j='0'&&c<='9')||(c>='A'&&c<='Z')||\n\t\t\t\t(c>='a'&&c<='z')||(c=='_')){\n\t\t\t\tcontinue;}\n\t\t\telse{ p=0; break;}\n\t\t}\n\t\tif (p==0){\n\t\t\tprintf(\"no\\n\");}\n\t\telse{printf(\"yes\\n\");}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42194", "code": "int main(){\nchar sz[100][20];\n int n,len[20];\n scanf(\"%d\",&n);\n for(int i=0;i='A'&&sz[i][0]<='Z')||(sz[i][0]>='a'&&sz[i][0]<='z')||(sz[i][0]=='_')){\n for(int j=1;j<=len[i];j++){\n if((sz[i][j]>='A'&&sz[i][j]<='Z')||(sz[i][j]>='a'&&sz[i][j]<='z')||(sz[i][j]=='_')||(sz[i][j]>='0'&&sz[i][j]<='9')){\n continue;\n }else if(sz[i][j]=='\\0'){\n printf(\"yes\\n\");\n break;\n }else{\n printf(\"no\\n\");\n break;\n }\n }\n }else{\n printf(\"no\\n\");\n }\n }\nreturn 0;\n}"} +{"label": "85", "index": "42195", "code": "int biao(char a){\n\tif((a>='a'&&a<='z')||(a>='A'&&a<='Z')||(a>='0'&&a<='9')||a=='_'){\n\t\treturn 1;\n\t}else{\n\t\treturn 0;\n\t}\n}\nint main(){\n\tint n;\n\tchar zfc[100][21];\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0;i'9')&&l==L){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\tl=0;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42196", "code": "void main() {\n\tchar a[10000];\n\tint i,j,n,flag;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i64)&&(a[0]<91))||((a[0]>96)&&(a[0]<123))||(a[0]==95))==0){\n\t\t\tprintf(\"no\\n\");\n\t\t}else{\n\t\t\tflag=0;\n\t\t\tfor(j=1;j47)&&(a[j]<58))||((a[j]>64)&&(a[j]<91))||((a[j]>96)&&(a[j]<123))||(a[j]==95))==0){\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tflag=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag==0){\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n\n"} +{"label": "85", "index": "42197", "code": "\nint main (){\n int n, x, i, b,j ;\n char a[21];\n \n scanf(\"%d\", &n);\n \n for (i=0; i=65&&a[0]<=90)||(a[0]>=97&&a[0]<=122))\n {}\n else {x=1;}\n b=strlen(a);\n for (j=1; j='0'&&a[j]<='9')||a[j]==95||(a[j]>=65&&a[j]<=90)||(a[j]>=97&&a[j]<=122)){}\n else\n {x=1;}\n \n }\n if (i>0){\n if(x==1){printf(\"no\\n\");}\n if(x==0){printf(\"yes\\n\");}\n } \n }\n \n \n return 0;\n }"} +{"label": "85", "index": "42198", "code": "\nint main()\n{\n int i, j, n;\n char s[32];\n \n scanf(\"%d\", &n);\n for (i = 0; i < n; i++) {\n scanf(\"%s\", s);\n for (j = 0; s[j]!='\\0'; j++) {\n if (!((s[j] == '_') ||\n (s[j] >= 'A' && s[j] <= 'Z') ||\n (s[j] >= 'a' && s[j] <= 'z') ||\n (s[j] >= '0' && s[j] <= '9' && j > 0)))\n break;\n }\n if (s[j]!='\\0')\n printf(\"no\\n\");\n else\n printf(\"yes\\n\");\n }\n \n return 0;\n}\n"} +{"label": "85", "index": "42199", "code": "\nint main()\n{\n\tint i,n;\n\tchar sen[21];\n\tcin>>n;\n\twhile(n--)\n\t{\n\t\tcin>>sen;\n\t\tif((sen[0]>='a'&&sen[0]<='z')\n\t\t\t||(sen[0]>='A'&&sen[0]<='Z')\n\t\t\t||sen[0]=='_')\n\t\t{\n\t\t\tfor(i=1;i='a'&&sen[i]<='z')||(sen[i]>='A'&&sen[i]<='Z')||(sen[i]>='0'&&sen[i]<='9')||sen[i]=='_')\n\t\t\t\t\tcontinue;\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcout<<\"no\"<=0){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}else if((zxc[k]-'A'<=25&&zxc[k]-'A'>=0)||(zxc[k]-'a'<=25&&zxc[k]-'a'>=0)||(zxc[k]-'0'<=9&&zxc[k]-'0'>=0)||(zxc[k]=='_')){\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t\tif(zxc[k+1]=='\\0'){\n\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t}\n\n\t}\n\t\n\treturn 0;\n}"} +{"label": "85", "index": "42202", "code": "int main(int argc, char* argv[])\n{\n\tint n,i,j,t,len;\n\tscanf(\"%d\",&n);\n\tchar s[20];\n\tfor(i=0;i='A'&&s[0]<='Z'||s[0]>='a'&&s[0]<='z')\n t++;\n\t for(j=1;s[j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif(s[j]>='0'&&s[j]<='9'||s[j]=='_'||s[j]>='A'&&s[j]<='Z'||s[j]>='a'&&s[j]<='z')\n\t\t\t\t\tt++;\n\t\t\t}\t\n\t\tif(t==len)\n\t\tprintf(\"yes\\n\");\n\t\telse\n\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42203", "code": "int main(){\n\tint j,n,i,sz[100];\n\tscanf(\"%d\",&n);\n\tchar str[21];\n\tfor(i=0;i='a'&&str[0]<='z')||(str[0]>='A'&&str[0]<='Z')){\n for(j=1;str[j]!='\\0';j++)\n\t\t {\n\t\t\tif(str[j]=='_'||(str[j]>='a'&&str[j]<='z')||(str[j]>='A'&&str[j]<='Z')||(str[j]>='0'&&str[j]<='9')) continue; \n\t\t\t\tsz[i]=0;\n\t\t}}\n\t\telse sz[i]=0;\n\t}\n\tfor(i=0;i='a'&&str[i][j]<='z')||(str[i][j]>='A'&&str[i][j]<='Z')||(str[i][j]=='_'))\n\t\t\t\t{\n\t\t\t\t\tsum[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(j>0)\n\t\t\t{\n\t\t\t\tif((str[i][j]>='a'&&str[i][j]<='z')||(str[i][j]>='A'&&str[i][j]<='Z')||(str[i][j]>='0'&&str[i][j]<='9')||(str[i][j]=='_'))\n\t\t\t\t{\n\t\t\t\t\tsum[i]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='0'&&s[j]<='9')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')||s[j]=='_')\n\t\t\t\tw++;\n\t\t}\n\t\tif(s[0]>='0'&&s[0]<='9')\n\t\t\tcontinue;\n\t\tif(w==k)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "85", "index": "42206", "code": "int main(){\n\tint n,j;\n\tscanf(\"%d\",&n);\n\tstruct SZ{\n\t\tchar zfc[21];\n\t}sz[10000];\n\tint i;\n\tfor(i=0;i='A'&&sz[i].zfc[j]<='Z')||(sz[i].zfc[j]>='a'&&sz[i].zfc[j]<='z')||(sz[i].zfc[j]>='0'&&sz[i].zfc[j]<='9'&&j>0))){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tprintf(sz[i].zfc[j]?\"no\\n\":\"yes\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42207", "code": "//?????\nchar main()\n{\n\tint i,n,j,f[1000],l[1000];\n\tchar a[20];\n\tscanf(\"%d\",&n);\n\tfor(j=0;j90&&a[0]<95) || (a[0]>95&&a[0]<97) || a[0]>122)\n\t\t{\n\t\t\tf[j]=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(i=1;i=48 && a[i]<=57)||(a[i]>=65 && a[i]<=90)||(a[i]>=97 && a[i]<=122))\n\t\t\t\t{\n\t\t\t\t\tf[j]=1;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tf[j]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||(zfc[j]=='_'))\n\t\t c++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif((zfc[j]>='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||(zfc[j]=='_')||(zfc[j]>='0'&&zfc[j]<='9'))\n\t\t\t\tc++;\n\t\t}\n\t}\nif(c==j)\nm[i]=1;\nelse\nm[i]=0;\n}\nfor(i=0;i'z')&&(a[0]<'A'||a[0]>'Z')&&(a[0]!='_'))\n\t\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\ttemp=0;\n\t\t\tbreak;\n\t\t\t}\n\t\t\tif((a[j]<'a'||a[j]>'z')&&(a[j]<'A'||a[j]>'Z')&&(a[j]!='_')&&(a[j]<'0'||a[j]>'9'))\n\t\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\ttemp=0;\n\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(temp==1)\n\t\t\tprintf(\"yes\\n\");\n\t}\n}\n\t\t "} +{"label": "85", "index": "42210", "code": "int main()\n{ \n char a[21];\n int i,j,n,k=0;\n int len;\n scanf(\"%d\\n\",&n);\n for(i=1;i<=n;i++)\n { \n k=0; \n gets(a);\n if (a==\"\\0\") continue;\n len=strlen(a);\n if((a[0]=='_')||((a[0]>='A')&&(a[0]<='Z'))||\n ((a[0]>='a')&&(a[0]<='z')))\n {\n\t for(j=1;j='A')&&(a[j]<='Z'))||\n ((a[j]>='a')&&(a[j]<='z'))||((a[j]>='0')&&(a[j]<='9')))\n k++;\n }\n if(k==len-1)\n printf(\"yes\\n\"); \n else\n printf(\"no\\n\");\n }\n else\n { \n printf(\"no\\n\");\n continue;\n }\n \n }\n}"} +{"label": "85", "index": "42211", "code": "void main()\n{\n\tint n, i, j, tmp, m[100];\n\tchar a[21];\n\tscanf(\"%d\", &n);\n\tfor(i=0; i=65&&a[0]<=90)||(a[0]>=97&&a[0]<=122))\n\t\t{\n\t\t\ttmp=0;\n\t\t\tfor(j=1; j=65&&a[j]<=90)||(a[j]>=97&&a[j]<=122)||(a[j]>=48&&a[j]<=57)))\n\t\t\t\t{\n\t\t\t\t m[i]=0;\n\t\t\t\t\ttmp=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tif(tmp==0)\n\t\t m[i]=1;\n\t\t}\n\t\telse\n\t\t\tm[i]=0;\n\t}\n\tfor(i=0; i='A'&&*p<='Z')||(*p>='a'&&*p<='z')||(*p>='0'&&*p<='9')||(*p=='_'))\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t}\n\t\n\t\n\t if((count==len)&&(((a[0]>='A'&&*p<='Z')||(a[0]>='a'&&*p<='z'))||a[0]=='_'))\n\t\t return(1);\n\t else\n\t\t return(0);\n\t\n}\nvoid main()\n{\n\tint n,i;\n\tchar a[30];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tfor(i=0;i>str;\n\t\tif(str[0]=='_'||(str[0]>='a'&&str[0]<='z')||(str[0]>='A'&&str[0]<='Z'))\n\t\t{\n\t\t\tfor(j=1;str[j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif(str[j]!='_'&&!(str[j]>='a'&&str[j]<='z')&&!(str[j]>='A'&&str[j]<='Z')&&!(str[j]>='0'&&str[j]<='9'))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(str[j]=='\\0') cout<<\"yes\"<=65&&word[i][0]<=90)||(word[i][0]>=97&&word[i][0]<=122)||(word[i][0]=='_'))\n\t\t{\n\t\t\tj=1;\n\t\t\twhile(j<=k-1)\n\t\t\t{\n\t\t\t\tif(word[i][j]=='_') j=j+1;\n\t\t\t\telse if((word[i][j]>=65)&&(word[i][j]<=90)) j=j+1;\n\t\t\t\telse if((word[i][j]>=97)&&(word[i][j]<=122)) j=j+1;\n\t\t\t\telse if((word[i][j]>=48)&&(word[i][j]<=57)) j=j+1;\n\t\t\t\telse break;\n\t\t\t}\n\t\t\tif(j==k) printf(\"yes\\n\");\n\t\t\telse printf(\"no\\n\");\n\t\t}\n\t\telse printf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42215", "code": "\n\nint main()\n{\n\tint n;\n\tcin>>n;\n\tcin.get();\n\twhile(n--){\n\t\tchar str[100];\n\t\tcin.getline(str,100);\n\t\tint k=strlen(str),flag=0;\n\t\tif(str[0]>='0'&&str[0]<='9')//??????????????\n\t\t\tcout <<\"no\"<='a'&&str[i]<='z')\n\t\t\t\t\tflag++;\n\t\t\t\telse if(str[i]>='A'&&str[i]<='Z')\n\t\t\t\t\tflag++;\n\t\t\t\telse if(str[i]>='0'&&str[i]<='9')\n\t\t\t\t\tflag++;\n\t\t\t\telse if(str[i]=='_')\n\t\t\t\t\tflag++;\n\t\t\t\telse \n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (flag==k)\n\t\t\t\tcout<<\"yes\"<='a' &&cr[0]<='z') || (cr[0] >='A' &&cr[0]<='Z')|| cr[0] == '_')\n\t\t{\n\t\t\tfor (j=1;j<20;j++)\n\t\t\t{\n\t\t\t\tif((cr[j] >= 'a' && cr[j] <= 'z') || (cr[j] >= 'A' && cr[j] <= 'Z') || (cr[j] >= '0' && cr[j] <= '9') || cr[j] == '_')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if (cr[j] == '\\0')\n\t\t\t\t{\n\t\t\t\t\ttemp[i] = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttemp[i] = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\ttemp[i] = 0;\n\t}\n\tfor (i=0;i='A'&&sz[j]<='Z')||(sz[j]>='a'&&sz[j]<='z')||(sz[j]>='0'&&sz[j]<='9'&&j>0)){\n\t continue;\n\t }\n\t else{\n\t e=0;\n\t\t break;\n\t }\n }\n if(e==0){\n printf(\"no\\n\");\n }\n else{\n printf(\"yes\\n\");\n }\n}\n\nreturn 0;\n}"} +{"label": "85", "index": "42218", "code": "int main(){\n\tint n,i,l,j,c=0;\n\tchar a[100],m;\n\tgets(&m);\n\tn=atoi(&m);\n\t//printf(\"%d ! \",n);\n\tfor(i=1;i<=n;i++){\n\t\tc=0;\n\t\tgets(a);\n\t\tl=strlen(a);\n\t\tfor(j=0;j='0' && a[0]<='9'){\n\t\t\t\tc=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t \tif(!((a[j]>='a' && a[j]<='z') ||(a[j]>='A' && a[j]<='Z') || (a[j]>='0' && a[j]<='9')) && a[j] != '_'){\n\t\t\tc=1;\n\t\t\tbreak;\n\t\t\t}\n\t\t//printf(\"%d * \",c);\n\t\t}\n\t\tif(c==0) printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42219", "code": "int main()\n{\n int i, j, n,a; /* ?????? */\n char s[MAX+1]; /* ?????? */\n scanf(\"%d\", &n); /* ???????????n */\n for (i = 0; i < n; i++) { /* ??n? */\n scanf(\"%s\", s); /* ????????????? */\n for (j = 0;s[j]; j++) { /* ??????????? */\n a=strlen(s);\n\t\t\tif (!((s[j] == '_') || /* ???\u0093_\u0094 */\n (s[j] >= 'A' && s[j] <= 'Z') || /* ???? */\n (s[j] >= 'a' && s[j] <= 'z') || /* ???? */\n (s[j] >= '0' && s[j] <= '9' && j > 0))){\n printf(\"no\\n\"); /* ?????? */\n break; \n\t\t\t}else if(j==0&&s[j]>='0'&&s[j]<='9'){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t break;\n\t\t\t}else if(j==a-1){\n\t\t\t printf(\"yes\\n\");\n\t\t\t}\n } \n\t}\n return 0;\n}\n"} +{"label": "85", "index": "42220", "code": "int main()\n{\n\tchar sign[L+1];\n\tint n,len,i,j,t=1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&sign[0]<='9')\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tt=0;\n\t\t}\n\t\tif(t==1)\n\t\t{\n\t\t\tfor(j=0;j='0'&&sign[j]<='9'||sign[j]>='a'&&sign[j]<='z'||sign[j]>='A'&&sign[j]<='Z'))\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j==len)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\tt=1;\n\t}\nreturn 0;\n}\n"} +{"label": "85", "index": "42221", "code": "int main()\n{\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tchar s[100][20];\n\tfor(i=0;i='a'&&s[i][0]<='z')||(s[i][0]>='A'&&s[i][0]<='Z'))\n\t\t{\n\t\t\tint j=1;\n\t\t\tfor(;;j++)\n\t\t\t{\n\t\t\t\tif(s[i][j]=='_'||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='0'&&s[i][j]<='9'));\n\t\t\t\telse if(s[i][j]=='\\0')\n\t\t\t\t{\n\t\t\t\t\tprintf(\"yes\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse printf(\"no\\n\");\n\t}\n}"} +{"label": "85", "index": "42222", "code": "main()\n{\n\tint n,i,len,j,t;\n\tchar a[30];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&a[0]<='9')\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t{\n\t\t\tfor(j=0;j='0'&&a[j]<='9'||a[j]>='a'&&a[j]<='z'||a[j]>='A'&&a[j]<='Z'||a[j]=='_'))\n\t\t\t\t\tt=0;\n\t\t\tif(t)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\n\t\t\t\n\t}\n\n\n}\n"} +{"label": "85", "index": "42223", "code": "int main (){\n int n,i,j,flag;\n scanf(\"%d\",&n);\n char a[25];\n for(i=0;i='A'))||((a[0]<='z')&&(a[0]>='a'))){\n if(!(((a[j]<='Z')&&(a[j]>='A'))||((a[j]<='z')&&(a[j]>='a'))||((a[j]<='9')&&(a[j]>='0'))||(a[j]=='_'))){\n flag=0;\n goto m;\n }\n else {\n flag=1;\n continue;\n }\n\n }\n\n}\nm:if(flag==0){\n printf(\"no\\n\");\n}else{\n printf(\"yes\\n\");\n}\n }\nreturn 0;\n}\n"} +{"label": "85", "index": "42224", "code": "int main(){\n char s[21];\n int n,i,j,p[100];\n scanf(\"%d\",&n);\n for(i=0;i='a'&&s[0]<='z'||s[0]>='A'&&s[0]<='Z'){\n if(s[j]=='_'||s[j]>='a'&&s[j]<='z'||s[j]>='A'&&s[j]<='Z'||s[j]>='0'&&s[j]<='9'){\n p[i]=1;\n }else{\n p[i]=0;\n break;\n }\n }else{ p[i]=0;\n break;\n }\n }\n } \n for(i=0;i='0'&&a[i]<='9')||(a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')){\n\t\t\tif(i==0&&(a[i]>='0'&&a[i]<='9')){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(!(a[i]=='_'||(a[i]>='0'&&a[i]<='9')||(a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z'))){\n\t\t\tprintf(\"no\\n\");\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\tif(a[i]=='\\0'){\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\t\n\n"} +{"label": "85", "index": "42226", "code": "\n\nint main() {\n int n, i, j;\n char data[100][21];\n int num[100]={0};\n scanf(\"%d\" ,&n);\n for(i=0;i='0') {\n num[i]++;\n continue;\n }\n for(j=0;data[i][j]!='\\0';j++) {\n if((data[i][j]<='Z'&&data[i][j]>='A')||(data[i][j]>='a'&&data[i][j]<='z')||(data[i][j]>='0'&&data[i][j]<='9')||data[i][j]=='_') {}\n else {\n num[i]++;\n }\n }\n }\n for(i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')||(a[0]=='_')&&(a[0]<'0'||a[0]>'9')){\n\t\t\t\t\tc++;}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif((a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z')||(a[j]=='_')||(a[j]>='0'&&a[j]<='9')){\n\t\t\t\t\t\t c++;}\n\t\t\t}\n\t\t}\n\t\tif(c==strlen (a)){\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse{\n\t\t\tprintf(\"no\\n\");}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42228", "code": "void main()\n{\n\tint n,i,j;\n\tchar word[100][30];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A')||(word[i][0]<='z'&&word[i][0]>='a')||word[i][0]=='_')!=1)\n\t\t\t{\n\t\t\t\tflag=0;\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(((word[i][j]<='Z'&&word[i][j]>='A')||(word[i][j]<='z'&&word[i][j]>='a')||word[i][j]=='_'||(word[i][j]>='0'&&word[i][j]<='9'))!=1&&word[i][j]!='\\0')\n\t\t\t{\n\t\t\t\tflag=0;\n\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(flag==1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\tprintf(\"no\\n\");\n\t}\n}"} +{"label": "85", "index": "42229", "code": "int main(){\n\tint i,j,n;\n\tchar l[max+1];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&l[j]<='Z')||\n\t\t\t(l[j]>='a'&&l[j]<='z')||\n\t\t\t(l[j]>='0'&&l[j]<='9'&&j>0)))\n\t\t\tbreak;\n\t\t}\n\t\tif(l[j]){\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\telse{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42230", "code": "int main()\n{\n\tint n,j,i;\n\tscanf(\"%d\",&n);\n\tchar a[100],c;\nfor(i=0;i='a'&&a[j]<='z')||(a[j]=='_')||\n\t(a[j]>='A'&&a[j]<='Z')||(a[j]>='0'&&a[j]<='9')))\n\tcontinue;\n\t\telse printf(\"no\\n\");break;}\n\t if(j==strlen(a))printf(\"yes\\n\");\n}\n\t\n\t\n\t\n\treturn 0;\n}"} +{"label": "85", "index": "42231", "code": "int main(){\n\tchar zfc[25];\n\tint n,i,j,a;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&zfc[j]<='z')||\n\t\t\t\t(zfc[j]>='A'&&zfc[j]<='Z'))){\n\t\t\t\ta=1;}\n\t\t\telse if(j>0&&\n\t\t\t\t(zfc[j]=='_'||\n\t\t\t\t(zfc[j]>='a'&&zfc[j]<='z')||\n\t\t\t\t(zfc[j]>='A'&&zfc[j]<='Z')||\n\t\t\t\t(zfc[j]>='0'&&zfc[j]<='9'))){\n\t\t\t\ta=1;}\n\t\t\telse{a=0;}\n\t\t\tif(a==0){break;}\n\t\t}\n\t\tif(a==0){printf(\"no\\n\");}\n\t\telse{printf(\"yes\\n\");}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42232", "code": "int main(){\n char a[21]={0};\n int n,h,t,p[1000]={0},q[1000]={0};\n scanf(\"%d\",&n);\n for(int i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')){\n q[i]++;}}\n if(t!=0){\n if(a[t]=='_'||(a[t]>='a'&&a[t]<='z')||(a[t]>='A'&&a[t]<='Z')||(a[t]>='0'&&a[t]<='9'))\n {q[i]++;}\n }\n}\nif(q[i]==p[i]){\n printf(\"yes\\n\");}\n else\n {printf(\"no\\n\");}\n }\n return 0;}"} +{"label": "85", "index": "42233", "code": "int main(){\n\tint r,n,i,j,num,a=0;\n\tchar str[100][21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i90&&str[i][0]<97)||(str[i][0]>122)){\n\t\t\tif(str[i][0]!='_'){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j=65&&str[i][j]<=90)||(str[i][j]>=97&&str[i][j]<=122)||str[i][j]=='_'||(str[i][j]>=48&&str[i][j]<=57))num++;\n\t\t}\n\t\tif(num==r)printf(\"yes\\n\");\n\t\tif(num!=r)printf(\"no\\n\");\n\t}\n\n\n\n\treturn 0;\n}"} +{"label": "85", "index": "42234", "code": "int main()\n{\n\tchar sz[50];\n\tint n;\n\tscanf(\"%d\",&n);\n\tint count,x;\n\tfor(int j=1;j<=n;j++)\n\t{\n\t\tcount=0;\n\t\tx=0;\n\t\tscanf(\"%s\",sz);\n\t\tfor(int i=0;sz[i]!='\\0';i++)\n\t\t{\n\t\t\tx++;\n\t\t\tif(sz[0]=='_'||(sz[0]>='a'&&sz[0]<='z')||(sz[0]>='A'&&sz[0]<='Z'))\n\t\t\t{\n\t\t\t\tif(sz[i]>='0'&&sz[i]<='9')\n\t\t\t\t\tcount++;\n\t\t\t if(sz[i]>='a'&&sz[i]<='z')\n\t\t\t\t count++;\n\t\t\t if(sz[i]>='A'&&sz[i]<='Z')\n\t\t\t\t count++;\n\t\t\t if(sz[i]=='_')\n\t\t\t\t count++;\n\t\t\t}\n\t\t}\n\t\tif(count==x){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42235", "code": "void main()\n{\n\tint n,i,j,flag;\n\tchar str[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=123||(str[0]>=91&&str[0]<=94)||str[0]==96)\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tflag=0;\n\t\t\tcontinue;\n\t\t}\n\t\tfor(j=1;j=58)||str[j]>=123||(str[j]>=91&&str[j]<=94)||str[j]==96)\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==1)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n}"} +{"label": "85", "index": "42236", "code": "\n\nint main()\n\n{\n int n,i,j,point,flag;\n scanf(\"%d\",&n);\nchar*lab=(char*)malloc(n*20*sizeof(char));\nfor(i=0;i='A'&&*(lab+point)<='Z')||(*(lab+point)>='a'&&*(lab+point)<='z'))\n continue;\n else { //printf(\"%c\\ni is %d\\nj is %d\\n\",*(lab+point),i,j);\n flag=1;\n break;\n }\n }\n else\n if( !((*(lab+point)>='A'&&*(lab+point)<='Z')||(*(lab+point)>='a'&&*(lab+point)<='z'))&& *(lab+point)!='_' && !(*(lab+point)>='0'&&*(lab+point)<='9'))\n {//printf(\"%c\\ni is %d\\nj is %d\\n\",*(lab+point),i,j);\n flag=1;\n break;\n }\n }\n // printf(\"flag is %d\",flag);\n if(flag)\n printf(\"no\\n\");\n else\n printf(\"yes\\n\");\n}\nreturn 0;\n}\n"} +{"label": "85", "index": "42237", "code": "int main(){\n char zf[21];\n int n,m,a;\n scanf(\"%d\",&n);\n for(int i=0;i=65&&zf[0]<=90)||(zf[0]>=97&&zf[0]<=122)){\n a=a*1;\n }else{\n a=a*0;\n }\n for(int x=1;x=65&&zf[x]<=90)||(zf[x]>=97&&zf[x]<=122)||(zf[x]>=48&&zf[x]<=57)){\n a=a*1;\n }else{\n a=a*0;\n }\n }\n if(a==1){\n printf(\"yes\");\n }else{\n printf(\"no\");\n }\n printf(\"\\n\");\n }\n return 0;\n}\n"} +{"label": "85", "index": "42238", "code": "int main(int argc, char* argv[])\n{\n int n,i,j,isbreak;\n\tchar s[21];\n\tscanf (\"%d\",&n);\n\tfor (j=0;j='A')||(s[0]<='z'&&s[0]>='a'))\n\t\t\t{ \n\t\t\t for (i=1;s[i]!='\\0';i++)\n\t\t\t {\n\t\t\t\t if (s[i]=='_'||(s[i]<='Z'&&s[i]>='A')||(s[i]<='z'&&s[i]>='a')||(s[i]<='9'&&s[i]>='0'))\n continue;\n\t\t\t\t else \n\t\t\t\t {\n\t\t\t\t\t isbreak=1;\n\t\t\t\t\t printf (\"no\\n\");\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t} \n\t else \n\t\t\t\t {\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tisbreak=1;\n\t\t\t\t }\n\t\t\t \n\t\t if (isbreak==1)\n\t\t\t continue;\n\t\t else if (isbreak==0)\n\t\t {\n\t\t\t printf (\"yes\\n\");\n\t\t continue;\n\t\t }\n\t\t }\n return 0;\n}\n"} +{"label": "85", "index": "42239", "code": "\nint main()\n{\n int n,i,j;\n char **string;\n scanf(\"%d\", &n);\n //??????\n string=(char**)malloc(sizeof(char*)*n);\n for (i=0;i='A' && string[i][0]<='Z') ||\n (string[i][0]>='a' && string[i][0]<='z') ||\n string[i][0]=='_'))//??????????????\u0093???????\u0094?????\n {\n printf(\"no\\n\");\n continue;\n }\n for (j=1;string[i][j];j++)//????????????string[i][j]?0??false?for?????\n {\n if (!((string[i][j]>='0' && string[i][j]<='9') ||\n (string[i][j]>='A' && string[i][j]<='Z') ||\n (string[i][j]>='a' && string[i][j]<='z') ||\n string[i][j]=='_'))//??????????????????\n {\n j=0;\n break;\n }\n }\n if (j) printf(\"yes\\n\");\n else printf(\"no\\n\");\n }\n \n //??????\n for (i=0;i> n;\n\twhile (n--) {\n\t\tchar str[32];\n\t\tcin >> str;\n\t\tint i, l = strlen(str);\n\t\tif ('0'<=str[0]&&str[0]<='9') {\n\t\t\tcout << \"no\\n\";\n\t\t\tcontinue;\n\t\t}\n\t\tfor (i = 0; i < l; ++i) {\n\t\t\tif ('0'<=str[i]&&str[i]<='9') continue;\n\t\t\tif ('a'<=str[i]&&str[i]<='z') continue;\n\t\t\tif ('A'<=str[i]&&str[i]<='Z') continue;\n\t\t\tif (str[i]=='_') continue;\n\t\t\tbreak;\n\t\t}\n\t\tif (i == l) {\n\t\t\tcout << \"yes\\n\";\n\t\t} else {\n\t\t\tcout << \"no\\n\";\n\t\t}\n\t}\n}"} +{"label": "85", "index": "42241", "code": "int panduan(char str[])\n{\n int n,i;\n n=strlen(str);\n if((str[0]!='_')&&((str[0]<65)||(str[0]>122)||((str[0]>90)&&(str[0]<97))))\n return 0;\n else\n for(i=0;i122)||((str[i]>90)&&(str[i]<97))||((str[i]>57)&&(str[i]<65))))\n return 0;\n }\n return 1;\n}\nint main()\n{\n int n,i,a;\n scanf(\"%d\",&n);\n for(i=0;i>n;\n while(n--){\n cin>>a;\n if(isdigit(a[0])){\n cout<<\"no\"<='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z'))\n\t\ti=1;\n\telse return 0;\n\tfor(i=1;i='0'&&a[i]<='9')||(a[i]=='_')||(a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z'))\n\t\t\t continue;\n\t\t else return 0;\n\t}\n\treturn 1;\n}\nvoid main()\n{\n\tint n,j,k;\n\tchar arr[21];\n\tscanf(\"%d\",&n);\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tscanf(\"%s\",arr);\n\t\tk=check(arr);\n\t\tif(k==0)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42244", "code": "int main()\n{\n int n;\n int i,j;\n scanf(\"%d\",&n);\n char sz[21];\n for(i=0;i='0'&&sz[0]<='9')\n {\n zs=0;\n }else{\n for(j=0;sz[j];j++)\n {\n if(!((sz[j]=='_')||(sz[j]>='0'&&sz[j]<='9')||(sz[j]>='a'&&sz[j]<='z')||(sz[j]>='A'&&sz[j]<='Z')))\n {\n zs=0;\n }\n }\n }\n if(zs==1)\n {\n printf(\"yes\\n\");\n }\n if(zs==0)\n {\n printf(\"no\\n\");\n }\n }\n return 0;\n}\n"} +{"label": "85", "index": "42245", "code": "int main(int argc, char* argv[])\n{\n\tint m=0,n,i,j,l;\n\tchar a[21];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i='a'&&a[j]<='z'||a[j]>='A'&&a[j]<='Z'||a[j]=='_'))||(j!=0&&(a[j]>='a'&&a[j]<='z'||a[j]>='A'&&a[j]<='Z'||a[j]=='_'||a[j]>=48&&a[j]<=57)))\n\t\t\t{\n\t\t\t m++;\n\t\t\t}\n\t\t}\n\t\tif(m!=l)\n\t\t\tprintf(\"no\\n\");\n\t\tif(m==l)\n\t\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42246", "code": "int main(){\n int n,i,j;\n char sz[21];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i='a'&&sz[0]<='z')||(sz[0]>='A'&&sz[0]<='Z')){\n\t\t\tfor(j=1;sz[j]=='_'||(sz[j]>='a'&&sz[j]<='z')||(sz[j]>='A'&&sz[j]<='Z')||(sz[j]>='0'&&sz[j]<='9');j++){\n\t\t\t\tj=j;\n\t\t\t}\n\t\t\tif(sz[j]=='\\0'){\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42247", "code": "char st[100][21];\nint n,i,boo;\nint check(char s)\n{\n int m,j;\n m=strlen(st[s]);\n if (st[s][0]<=57&&st[s][0]>=48)\n return 0;\n for (j=0;j57&&st[s][j]<65||st[s][j]>122||st[s][j]>90&&st[s][j]<97&&st[s][j]!=95)\n {\n return 0;\n }\n }\n return 1;\n}\nint main()\n{\n scanf(\"%d\\n\",&n);\n for (i=0;i'Z'&&s[i][0]<'a')||s[i][0]>'z'))\n\t\t\tprintf(\"no\\n\");\n\t\telse \n\t\t\tfor(j=1;j'9'&&s[i][j]<'A')||(s[i][j]>'Z'&&s[i][j]<'a')||s[i][j]>'z'))\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(j==strlen(s[i]))\n\t\t\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42249", "code": "\n\nint main(int argc, char* argv[])\n{\n\tint n,i,j,len;\n\tchar ch[21],m[10];\n\tgets(m);\n\tn=atoi(m);\n\tfor(i=0;i'Z')&&(ch[j]<'a'||ch[j]>'z')&&ch[j]!='_')\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tif((ch[j]<'A'||ch[j]>'Z')&&(ch[j]<'a'||ch[j]>'z')&&ch[j]!='_'&&(ch[j]<'0'||ch[j]>'9'))\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j==len)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42250", "code": "\nmain(){\n\tchar a[21];\n\tlong i, n, l, j, m;\n\tscanf(\"%d\", &n);\n\tfor(i=0; i0) || a[0]<47){\n\t\t\tprintf(\"no\\n\");\n\t\t\tm++;\n\t\t}\n\t\telse{\n\t\t\tfor(j=1; j0) || a[j]<47){\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tm++;\n\t\t\t\t}\n\t\t\t\telse;\n\t\t\t\tif(m>0) break;\n\t\t\t\telse;\n\t\t\t}\n\t\t}\n\t\tif(m>0) continue;\n\t\telse printf(\"yes\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42251", "code": "int main()\n{\n\tint n,i,j,len;\n\tchar zf[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'z')&&zf[j]!='_'){\n\t\t\t\t\tif(zf[j]<'A'||zf[j]>'Z'){\n\t\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((zf[j]<'a'||zf[j]>'z')&&zf[j]!='_'){\n\t\t\t\t\tif(zf[j]<'A'||zf[j]>'Z'){\n\t\t\t\t\t\tif(zf[j]<'0'||zf[j]>'9'){\n\t\t\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(j==len)\n\t\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42252", "code": "int main()\n{\n\tchar a[100];\n\tint x,i,j,k,l=0;\n\tcin>>x;\n\tcin.get();\n\tfor(i=0;i='0'&&a[0]<='9')\n\t\t\tk++;\n\t\tfor(j=0;j='A'&&a[j]<='Z')||(a[j]>='a'&&a[j]<='z')||(a[j]>='0'&&a[j]<='9')||(a[j]=='_'))\n\t\t\t\tl++;\n\t\t\telse\n\t\t\t\tk++;\n\t\t}\n\t\tif(k>0)\n\t\t\tcout<<\"no\"<31)\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tif(a[i][0]<'A'||a[i][0]>'z')\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tif(a[i][0]>'Z'&&a[i][0]<'a'&&a[i][0]!='_')\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tfor(j=1;j'z')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(a[i][j]>'9'&&a[i][j]<'A')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(a[i][j]>'Z'&&a[i][j]<'a'&&a[i][j]!='_')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==0)\n\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42254", "code": "void main()\n{\n char ch[MAX][50],tmp;\n int n;\n int i=0,j=1;\n scanf(\"%d\",&n);\n for(i=0;i='A'&&tmp<='Z')||(tmp>='a'&&tmp<='z')||(tmp=='_'));\n else\n {\n printf(\"no\\n\");\n continue;\n }\n j=1;\n while(ch[i][j]!='\\0')\n { tmp=ch[i][j];\n if((tmp>='A'&&tmp<='Z')||(tmp>='a'&&tmp<='z')||(tmp=='_')||(tmp>='0'&&tmp<='9'));\n else {printf(\"no\\n\"); break;}\n j++;\n }\n if(ch[i][j]=='\\0') printf(\"yes\\n\");\n }\n} "} +{"label": "85", "index": "42255", "code": "int range(char x[])\n{\n\tint i,len;\n\tlen=strlen(x);\n\tfor(i=0;i57&&x[i]<65||x[i]>90&&x[i]<95||x[i]>95&&x[i]<97||x[i]>122)\n\t\t\treturn(0);\n\treturn(1);\n}\nint first(char x[])\n{\n\tif(x[0]>=48&&x[0]<=57)\n\t\treturn(0);\n\telse return(1);\n}\nmain()\n{\n\tint n,i;\n\tchar x[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9'&&j>0))\n\t\t\t{\n\t\t\t\ta++;\n\t\t\t}\n\t\t}\n\t\tif(a> n;\n\tfor(i=0;i> a[i];\n\tfor(i=0;i=65&&a[i][0]<=90)||(a[i][0]>=96&&a[i][0]<=122)||(a[i][0]=='_'))\n\t\t{\n\t\t\tint num=1;\n\t\t\tfor(j=1;j<20;j++)\n\t\t\t{\n\t\t\t\tif(!((a[i][j]>=65&&a[i][j]<=90)||(a[i][j]>=97&&a[i][j]<=122)||(a[i][j]=='_')||(a[i][j]>='0'&&a[i][j]<='9')))break;\n\t\t\t\tnum++;\n\t\t\t}\n\t\t\tif(num==l)\n\t\t\t\tcout << \"yes\" << endl;\n\t\t\telse\n\t\t\t\tcout << \"no\" << endl;\n\t\t}\n\t\telse cout << \"no\" << endl;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42258", "code": "\n\nint main()\n{\n\tint n;\n\tchar a[25];\n\tscanf(\"%d\",&n);\n\tint i,k,l,j;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%s\",&a);\t\n\t\tl=strlen(a);\n\t\tk=1;\n\t\tif(a[0]==95 || (a[0]<='z'&& a[0]>='a') || (a[0]<='Z'&& a[0]>='A') )\n\t\t{a[0]=1;}\n\t\telse {a[0]=0;}\n\t\tfor(j=1;j='a') || (a[j]<='Z'&& a[j]>='A' )\n\t\t\t\t|| (a[j]<='9' && a[j]>='0') || a[j]==95)\n\t\t\t{a[j]=1;}\n\t\t\telse {a[j]=0;}\n\t\t}\n\t\tfor(j=0;j='a'&&s[0]<='z')||(s[0]=='_')||(s[0]>='A'&&s[0]<='Z'))\n\t{\n\t\tfor(i=1;i<20;i++)\n\t\t{\n\t\t\tif(s[i]=='\\0')\n\t\t\t\tbreak;\n\t\t\telse if((s[i]>='a'&&s[i]<='z')||(s[i]=='_')||(s[i]>='A'&&s[i]<='Z')||(s[i]>='0'&&s[i]<='9'))\n\t\t\t{\n\t\t\t\ttemp=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttemp=-1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\telse \n\t{\n\t\ttemp=-1;\n\t}\n\tif(temp==1)\n\t{\n\t\tprintf(\"yes\\n\");\n\t}\n\telse\n\t{\n\t\tprintf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42260", "code": "int main(){\n\tint n,i,j;\n\tchar z[500][500];\n\tint a[500],d[500]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&z[i][0]<='Z')||(z[i][0]=='_')||(z[i][0]>='a'&&z[i][0]<='z')){\n\t\t\t\tif((z[i][j]>='A'&&z[i][j]<='Z')||(z[i][j]=='_')||(z[i][j]>='a'&&z[i][j]<='z')||(z[i][j]>='0'&&z[i][j]<='9')){\n\t\t\td[i]=1;\n\t\t}else{\n\t\t\td[i]=0;\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tfor(int i=0;i>str;\n\t\t//cin.getline(str,21); \n\t\tlen=strlen(str);\n\t\tfor(int j=0;j='a'&&str[0]<='z')||(str[0]>='A'&&str[0]<='Z'))\n\t\t\t\tflag=0;\n\t\t\telse\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(str[j]=='_'||(str[j]>='a'&&str[j]<='z')||(str[j]>='A'&&str[j]<='Z')||(str[j]>='0'&&str[j]<='9'))\n\t\t\t\tflag=flag;\n\t\t\telse\n\t\t\t\tflag=1;\n\t\t}\n\t\tif(flag==0)\n\t\t\t\tcout<<\"yes\"<=65&&zfc[i][0]<=90)||(zfc[i][0]>=97&&zfc[i][0]<=122)||zfc[i][0]==95){\n\t\t\to=o;\n\t\t}else{\n\t\t\to=o+1;\n\t\t}\n\t\tfor(k=1;k=65&&m<=90)||(m>=97&&m<=122)||(m>=48&&m<=57)||(m==95)){\n\t\t\t\to=o;\n\t\t\t}else{\n\t\t\t\to=o+1;\n\t\t\t}\n\t\t}\n\t\tif(o==0){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42264", "code": "int main(){\n int i,j,n,b[100]={0};\n char s[100][21];\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%s\",s[i]); \n for(j=0;s[i][j]!=0;j++){\n if ((s[i][0]=='_')||(s[i][0]>='A'&&s[i][0]<='Z')||(s[i][0]>='a'&&s[i][0]<='z')){\n if((s[i][j]=='_')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='0'&&s[i][j]<='9'&&j>0)){\n continue;\n }else{\n b[i]++;\n break;\n }\n }else{\n b[i]++;\n break;\n }\n }\n }\n for(i=1;i<=n;i++){\n if(b[i]>0){\n printf(\"no\\n\");\n }else{\n printf(\"yes\\n\");\n }\n }\n return 0;\n }\n\n"} +{"label": "85", "index": "42265", "code": "int main(){\n int n;\n int a[100]={0};\n scanf(\"%d\\n\",&n);\n char bsf[n][21];\n for (int i=0;i='a'&&bsf[i][0]<='z')||(bsf[i][0]>='A'&&bsf[i][0]<='Z')||(bsf[i][0]=='_')){\n if((bsf[i][m]>='a'&&bsf[i][m]<='z')||(bsf[i][m]<='Z'&&bsf[i][m]>='A')||(bsf[i][m]>='0'&&bsf[i][m]<='9')||bsf[i][m]=='_'){\n continue;\n }else{\n a[i]++;\n break;\n }\n }else{\n a[i]++;\n break;\n }\n }\n }\n for(int i=0;i0){\n printf(\"no\\n\");\n }else{\n printf(\"yes\\n\");\n }\n }\nreturn 0; \n}\n\n\n"} +{"label": "85", "index": "42266", "code": "int main(){\n\tint i,j,n;\n\tchar s[2000];\n\tint r=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[0]<='Z')||(s[0]>='a'&&s[0]<='z')||(s[0]=='_')){\n\t\t\tfor(j=0;s[j]!='\\0';j++){\n\t\t\t\tif((s[j]>='0'&&s[j]<='9')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||s[j]=='_'){\n\t\t\t\t\tr=0;\n\t\t\t\t}else{\n\t\t\t\t\tr=1;\n\t\t\t\t}\n\t\t\t\tif(r==1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tr=1;\n\t\t}\n\t\tif(r==0){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42267", "code": "int dx(char c)\n{if ((c>='A')&&(c<='Z')) return 7;\n else return 0;\n}\nint xx(char c)\n{if ((c>='a')&&(c<='z')) return 7;\n else return 0;\n}\nint xhx(char c)\n{if (c=='_') return 7;\n else return 0;\n}\nint num(char c)\n{if ((c>='0')&&(c<='9')) return 7;\n else return 0;\n}\nint head(char c)\n{return dx(c)+xx(c)+xhx(c);}\nint body(char c)\n{return dx(c)+xx(c)+xhx(c)+num(c);}\nint main()\n{int i,j,k,l,flag=7;\n char c[1000]={' '};\n scanf(\"%d\\n\",&k);\n for (j=0;j0;i--)\n\t\t\t if (body(c[i])==0) flag=0;\n\t\t if (flag==7) printf(\"yes\");\n\t\t if (flag==0) printf(\"no\");\n\t\t flag=7;\n\t\t }\n\t putchar(10);\n }\n return 7;\n}"} +{"label": "85", "index": "42268", "code": "int main(){\n int n,i,p,s,flag;\n char zfc[21];\n scanf(\"%d\",&n);\n for(i=0;i='A'&&zfc[0]<='Z')||(zfc[0]>='a'&&zfc[0]<='z')||zfc[0]=='_'){\n for(p=1;p='A'&&zfc[p]<='Z')||(zfc[p]>='a'&&zfc[p]<='z')||zfc[p]=='_'||(zfc[p]>='0'&&zfc[p]<='9')){flag=1;}\n else {flag=0;break;}} \n }else{flag=0;}\n if(flag==1){printf(\"yes\\n\");}else{printf(\"no\\n\");}}\n return 0;\n}\n"} +{"label": "85", "index": "42269", "code": "int main(){\n\tint a,i,n,c,d,e;\n\tchar b[100];\n\tscanf(\"%d\",&a);\n\tfor(i=0;i=65)||b[0]==95||(b[0]>=97&&b[0]<=122))\n\t\t\te=1;\n\t\telse{\n\t\t\te=0;\n\t\t\t\n\t\t}\n\t\tfor(n=0;n=65)\tc=1;\n\t\t\telse if(b[n]==95) c=1;\n\t\t\telse if(b[n]>=97&&b[n]<=122)c=1;\n\t\t\telse if(b[n]<=57&&b[n]>=48)c=1;\n\t\t\telse {c=0;break;}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif(c==1&&e==1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42270", "code": "void main()\n{\n\tint n,i,l,j,flag=1;\n\tchar a[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')))\n\t\t\tflag=0;\n\t\telse\n\t\t{\n\t\t\tfor(j=1;j='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z')||(a[j]>='0'&&a[j]<='9')))\n\t\t\t\t{\n\t\t\t\t\tflag=0;break;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflag=1;\n\t\t\t}\n\t\t}\n\t\tif(flag==1) printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n}\n\t\t\n\n\n"} +{"label": "85", "index": "42271", "code": "\nint main()\n{\n\tint f=0,b=0,n; \n\tchar a[81],*p;\n\n\tscanf(\"%d\",&n);\n getchar();\n\n\twhile(n>0)\n\t{\n\t\tgets(a);\n\t\tp=a;\n\t\tif( (*p=='_') || (*p>='a'&&*p<='z') || (*p>='A'&&*p<='Z') )\n\t\t\tb=1;\n\t\telse\n\t\t\tb=0;\n\n\t\twhile(*p!='\\0')\n\t\t{\n\t\t\tif( (*p=='_')|| (*p>='a'&&*p<='z') || (*p>='A'&&*p<='Z') || (*p>='0'&&*p<='9') )\n\t\t\t\tf=1;\n\t\t\telse\n\t\t\t{\n\t\t\t\tf=0;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tp++;\n\t\t}\n\n\t\tif(f==1&&b==1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t\tn--;\n\t}\n return 0;\n}\n"} +{"label": "85", "index": "42272", "code": "void main()\n{\n int panduan(char s[],int l);\n int n,i,l;\n char s[21];\n scanf(\"%d\",&n);\n for(i=0;i0)\n \tprintf(\"yes\\n\");\n \telse\n \tprintf(\"no\\n\");\n }\n}\nint panduan(char s[],int l)\n{\n\tint j;\n\tif((s[0]<'A')||(s[0]>'Z'&&s[0]<'_')||(s[0]>'_'&&s[0]<'a')||(s[0]>'z'))\n\treturn(0);\n\telse\n\t{\n\tfor(j=1;j'9'&&s[j]<'A')||(s[j]>'Z'&&s[j]<'_')||(s[j]>'_'&&s[j]<'a')||(s[j]>'z'))\n\t{return(0);break;}\n\treturn(1);\n\t\n\t}\n}"} +{"label": "85", "index": "42273", "code": "int main()\n{\n\tint n,i;\n\tchar a[100];\n\tint m=1;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=65&&a[0]<=90)||(a[0]>=97&&a[0]<=122)||a[0]==95)\n\t\t{\n\t\t\tm=1;\n\t\t\twhile(a[j]!='\\0')\n\t\t\t{\n\t\t\t\tif(a[j]<48||(a[j]>57&&a[j]<65)||(a[j]>90&&a[j]<95)||a[j]==96||a[j]>122)\n\t\t\t\t{\n\t\t\t\t\tm=0;\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tif(m==1)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\tif(m==0)\n\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42274", "code": "int main(){\n\tchar sz[MAX+1];\n\tint i,j,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&sz[j]<='z')||(sz[j]>='A'&&sz[j]<='Z')||(sz[j]>='0'&&sz[j]<='9'&&j!=0))){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} if(i==0){\n\t\tif(sz[j]){\n\t\t\tprintf(\"no\");\n\t\t}else{\n\t\t\tprintf(\"yes\");\n\t\t}\n\t}\n else{\n if(sz[j]){\n \t\tprintf(\"\\nno\");\n\t\t}else{\n\t\t\tprintf(\"\\nyes\");\n\t\t}\n\t}}\n\treturn 0;\n}\n\n\n"} +{"label": "85", "index": "42275", "code": "int main(){\nint n,i,j,k;\nscanf(\"%d\",&n);\nchar z[n][20];\nfor(i=0;i='a'|| z[i][j]<='Z'&& z[i][j]>='A'||z[i][j]=='_'){k=0;}\n else {k++;}\n }\n else {if(z[i][j]<='z'&&z[i][j]>='a'|| z[i][j]<='Z'&& z[i][j]>='A'||z[i][j]>='0'&&z[i][j]<='9'||z[i][j]=='_'){k=k;}\n else {k++;}\n }\n }\n if(k==0){printf(\"yes\\n\");}\n else printf(\"no\\n\");\n }\nreturn 0;\n}\n"} +{"label": "85", "index": "42276", "code": "\nint main(int argc, char* argv[])\n{\n\tint i, j, n, t, flag;\n\tchar syx[21];\n\tscanf(\"%d\", &n);\n\tfor (i=0; i 90 && syx[j] < 94 || syx[j] > 96 && syx[j] < 97 || syx[j]>122)\n\t\t\t{\n\t\t\t\tflag = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(syx[j] < 48 || syx[j]>57 && syx[j] < 65 || syx[j] > 90 && syx[j] <97 || syx[j] > 122)\n\t\t\t{\n\t\t\t\tflag = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (flag == 0)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n\n\treturn 0;\n}"} +{"label": "85", "index": "42277", "code": "int legal(char s[20])\n{\n\tint i;\n\t\n\tif((s[0]>='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||s[0]=='_'){\n\t for(i=0;s[i]!='\\0';i++){\n\t\t if(!((s[i]>='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z')||s[i]=='_'||(s[i]>='0'&&s[i]<='9')))\n\t\t\t\t\n\t\t\treturn 0;\n\t\t}\n\t\treturn 1;\n\t}\n\telse \t\n\t return 0;\n\n}\nint main(int argc, char* argv[])\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\t\tchar s[20];\n\tfor(i=0;i57&&a[i]<65)||(a[i]>=91&&a[i]<=96)||a[i]>122)&&a[i]!='_') \n {z=1;printf(\"no\\n\");break;}\n }\n if(a[0]<65) {if(z==0) {printf(\"no\\n\");z=1;}}\n if(z==0) printf(\"yes\\n\");\n }\n}"} +{"label": "85", "index": "42279", "code": "void main()\n{\n\tchar c[100][21];\n\tint i,j,n,b;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&c[i][0]<='Z')||(c[i][0]>='a'&&c[i][0]<='z'))) b=0;\n\t\tfor(j=1;j='A'&&c[i][j]<='Z')||(c[i][j]>='a'&&c[i][j]<='z')||(c[i][j]>='0'&&c[i][j]<='9'))) {b=0;break;}\n\t\t}\n\t\tif(b==0) printf(\"no\\n\");\n\t\telse printf(\"yes\\n\");\n\t}\n\tgetchar();\n\t\n}\n"} +{"label": "85", "index": "42280", "code": "// xiaomingao.cpp : ??????????????\n//\n\nint main(){\nint n,i,p,q;\nchar a[21];\n\nscanf(\"%d\",&n);\nfor(q=0;q='A'&&a[0]<='Z')||(a[0]>='a'&&a[0]<='z')||(a[0]=='_'))&&((a[i]>='A'&&a[i]<='Z')||(a[i]>='a'&&a[i]<='z')||(a[i]>='0'&&a[i]<='9')||(a[i]=='_'))){\n\t m=m+0;\n\t }else{\n\t m=m+1;\n\t }\n\n}\n\tif(m==0){\n\t\tprintf(\"yes\\n\");\n\t}else{\n\tprintf(\"no\\n\");\n\t}\n\t}\nreturn 0;\n}\n\n\n"} +{"label": "85", "index": "42281", "code": "\nint main()\n{ char a[29];\n int i,j,n,k=0;\n int len;\n scanf(\"%d\\n\",&n);\n for(i=0;i='A')&&(a[0]<='Z')||\n (a[0]>='a')&&(a[0]<='z'))\n {for(j=1;j='A')&&(a[j]<='Z')||\n (a[j]>='a')&&(a[j]<='z')||(a[j]>='0')&&(a[j]<='9'))\n {k++;}\n }\n if(k==len-1)\n {printf(\"yes\\n\");}\n if(k!=len-1)\n {printf(\"no\\n\");}\n }\n else\n printf(\"no\\n\");\n \n }\n \n return 0;\n }\n"} +{"label": "85", "index": "42282", "code": "\n\n\nint main()\n{\n\tchar zz[100];\n\tint n,l,i;\n\tcin>>n;\n getchar();\n\twhile(n--)\n\t{\n\t\tgets(zz);\n\t\tl = strlen(zz);\n\t\tfor ( i = 0 ; i < l ; i ++ )\n\t\t{\n\t\t\tif ( zz[i]>='a' && zz[i]<='z' || zz[i]>='0'&&zz[i]<='9' || zz[i]>='A'&&zz[i]<='Z' || zz[i]=='_');\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\tif ( zz[0] >= '0' && zz[0] <= '9' )\n\t\t\tcout<<\"no\"<=65&&a[i][0]<=90)||(a[i][0]>=97&&a[i][0]<=122)||(a[i][0]>=128)||a[i][0]==95); \n\t\telse flag=0;\n\t\tfor (j=1;a[i][j]!='\\0';j++)\n\t\t{\n\t\t\tif ((a[i][j]>=48&&a[i][j]<=57)||(a[i][j]>=65&&a[i][j]<=90)||(a[i][j]>=97&&a[i][j]<=122)||(a[i][j]>=128)||a[i][j]==95);\n\t\t\telse flag=0;\n\t\t}\n\t\tif (flag) printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42284", "code": "int judgechar(char x){\n\tif(x>47&&x<58){return 0;}\n\tif(x>64&&x<91){return 0;}\n\tif(x>96&&x<123){return 0;}\n\tif(x>96&&x<123){return 0;}\n\tif(x==95){return 0;}\n\treturn 1;}\nint judgebegin(char x){\n\tif(x>64&&x<91){return 0;}\n\tif(x>96&&x<123){return 0;}\n\tif(x>96&&x<123){return 0;}\n\tif(x==95){return 0;}\n\treturn 1;}\nint main (){\n\tint all,i,p,len,ok;\n\tchar input[21];\n\tscanf(\"%d\",&all);\n\tfor(i=0;i='0')&&(s[0]<='9'))\n\t\t\t{\n\t\t\t printf(\"no\\n\");\n\t\t\t b=0;\n\t\t\t}\n\t\t if (b==0) break;\n\t\t if (((s[j]>='0')&&(s[j]<='9'))||((s[j]>='A')&&(s[j]<='Z'))||((s[j]>='a')&&(s[j]<='z'))||(s[j]=='_')) b=b+0;\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tb=0;\n\t\t\t}\n\t\t\tif (b==0) break;\n\t\t}\n\t\tif (b==1) printf(\"yes\\n\");\n }\n\treturn 0;\n}"} +{"label": "85", "index": "42286", "code": "\nint main()\n{\n int n,m;\n\tchar s[20];\n\tint i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&s[0]<='z')||(s[j]>='A'&&s[j]<='Z')||s[j]=='_')\n m=1;\n\t\t\telse\n\t\t\t{\tm=0;\n\t\t\tbreak;}\n\t\t\t}\n\t\t\telse\n\t\t\t{if((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')||s[j]=='_')\n\t\t\tm=1;\n\t\t\telse\n\t\t\t{m=0;\n\t\t\tbreak;}\n\t\t\t}\n\t\t}\n\t\tif(m==1)\n\t\t\tprintf(\"yes\\n\");\n\t\tif(m==0)\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42287", "code": "int main()\n{\n\tchar str[100][20];\n\tchar sample1[54];\n\tchar sample2[64];\n\tint n;\n\tint i,j,k,tmp1,tmp2,tmp3,length;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&zf[i]<='9'&&i>0)||(zf[i]>='a'&&zf[i]<='z')||(zf[i]>='A'&&zf[i]<='Z')||(zf[i]=='_'))){\n\t\t\tjudge=1;\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(judge==0){\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\tif(judge==1){\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\tjudge=0;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42289", "code": "int main()\n{\n int n;\n\tchar str[500];\n\tscanf(\"%d\", &n);\n\tfor (int i = 1; i <= n; i++)\n\t{\n\t\tscanf(\"%s\", str);\n\t\tif ((str[0] < 'a' || str[0] > 'z') && (str[0] < 'A' || str[0] > 'Z') && (str[0] != '_'))\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\telse if(strlen(str) == 1)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint len = strlen(str);\n\t\t\tint j;\n\t\t\tfor (j = 1; j < len; j++)\n\t\t\t{\n\t\t\t\tif ((str[j] < 'a' || str[j] > 'z') && (str[j] < 'A' || str[j] > 'Z') && (str[j] != '_') && (str[j] < '0' || str[j] > '9'))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (j == len)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42290", "code": "void main()\n{\n\tchar p[100][100]={\"\\0\"};\n\tint i,j,flag,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'||p[i][0]<='Z'&&p[i][0]>='A'||p[i][0]=='_')\n\t\t{\n\t\tfor(j=1;p[i][j]!='\\0';j++)\n\t\t\tif(!(p[i][j]<='z'&&p[i][j]>='a'||p[i][j]<='Z'&&p[i][j]>='A'||p[i][j]=='_'||p[i][j]>='0'&&p[i][j]<='9'))\n\t\t\t{\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tflag=0;\n\t\t\tif(flag)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42291", "code": "\n\n\nint main()\n{\n int a;\n\tchar shit[100][100];\n\tint i,j;\n\tscanf(\"%d\",&a);\n\tint m=0;\n\n\n\n\tfor(i=0;i=65)&&(shit[i][j]<=90))||((shit[i][j]>=97)&&(shit[i][j]<=122))||((shit[i][j]>=48)&&(shit[i][j]<=57))||(shit[i][j]==95))\n\t\t\t{ continue;\n\t\t\t\t\n\t\t\t}\n\t\t\telse \n\t\t\t{ m=1;\n\t\t\t}\n\t\t \n\t\t\t\n\t\t}\n\t\tif(shit[i][0]>=48&&shit[i][0]<=57)\n\t\t\t\tm=1;\n\t\tif(m==0)\n\t\t{\n\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse if(m==1)\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "85", "index": "42292", "code": "int main(){\n\tint len,judge,i,all,p;\n\tchar input[21];\n\tscanf(\"%d\",&all);\n\tfor(p=0;p='a'&&input[0]<='z'){judge=1;}\n\t\tif(input[0]>='A'&&input[0]<='Z'){judge=1;}\n\t\tif(input[0]=='_'){judge=1;}\n\t\tif(input[0]>='9'&&input[0]<='1'){judge=0;}\n\t\tif(input[0]=='0'){judge=0;}\n\t\tif(judge==0){printf(\"no\\n\");continue;}\n\t\tfor(i=1;i='a'&&input[i]<='z'){judge=1;}\n\t\t\tif(input[i]>='A'&&input[i]<='Z'){judge=1;}\n\t\t\tif(input[i]>='1'&&input[i]<='9'){judge=1;}\n\t\t\tif(input[i]=='0'){judge=1;}\n\t\t\tif(input[i]=='_'){judge=1;}\n\t\t\tif(judge==0){printf(\"no\\n\");break;}\n\n\n\n\t}\n\tif(judge==0){continue;}\n\tprintf(\"yes\\n\");\n\n\n\n\t}\n\n\t\nreturn 0;\n}\n\n\n "} +{"label": "85", "index": "42293", "code": "\nchar s[1000];\nint main(){\n\tint T,i;\n\tscanf(\"%d\",&T);\n\twhile (T--){\n\t\tscanf(\"%s\",s);\n\t\tif (isalpha(s[0])||s[0]=='_'){\n\t\t\tfor (i=1;s[i];i++){\n\t\t\t\tif (!isalpha(s[i])&&!isdigit(s[i])&&s[i]!='_'){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (s[i]){\n\t\t\t\tputs(\"no\");\n\t\t\t}else puts(\"yes\");\n\t\t}else \n\t\t\tputs(\"no\");\n\t}\n}"} +{"label": "85", "index": "42294", "code": "void main()\n {\n int m=0,n,i,j,k;\n char s[21];\n\n scanf(\"%d\",&n);\n for(i=0;i'9')\n {\n for(j=0;s[j]!='\\0';j++)\n { if(('a'<=s[j]&&s[j]<='z')||('A'<=s[j]&&s[j]<='Z')||('0'<=s[j]&&s[j]<='9')||(s[j]=='_'));else break; }\n\n if(s[j]=='\\0') printf(\"yes\\n\");\n if(s[j]!='\\0') printf(\"no\\n\");\n }\n if (s[0]<='9'&&s[0]>='0') printf(\"no\\n\");\n\n }\n\n }"} +{"label": "85", "index": "42295", "code": "int main()\n{\n\tint n;\n\tint i,j;\n\tchar s[21];\n\tint yn[1000];\n\tfor(i=0;i<1000;i++)\n\t{\n\t\tyn[i]=1;\n\t}\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'Z')&&(s[0]<'a'||s[0]>'z'))\n\t\t{\n\t\t\tyn[i]=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(j=0;s[j];j++)\n\t\t\t{\n\t\t\t\tif((s[j]!='_')&&(s[j]<'A'||s[j]>'Z')&&(s[j]<'a'||s[j]>'z')&&(s[j]<'0'||s[j]>'9'))\n\t\t\t\t{\n\t\t\t\t\tyn[i]=0;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t}\t\n\tfor(i=0;i47&&a[i][0]<58)\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tf=1;\n\t\t\tbreak;\n\t\t}\n\t\t\t else if(a[i][j]>47&&a[i][j]<58)\n\t\t\t{\t\n\t\t\t}\n\t\t\telse if(a[i][j]>64&&a[i][j]<91)\n\t\t\t{\n\t\t\t}\n\t\t\telse if(a[i][j]>96&&a[i][j]<123)\n\t\t\t{\n\t\t\t}\n\t\t\telse if(a[i][j]=='_')\n\t\t\t{}\n\t\t\telse \n\t\t\t{\tprintf(\"no\\n\");\n\t\t\n\t\t\tf=1;\n\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\tif(f==0)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tf=0;\n\n\n\n\n\n\t}\n}"} +{"label": "85", "index": "42297", "code": "int main()\n{\n\tint N,line,x,l,i;\n\tchar a[21];\n\tscanf(\"%d\\n\",&N);\n\tfor(line=1;line<=N;line++)\n\t{\n\t\tgets(a);\n\t\tl=strlen(a);\n\t\tif((a[0]=='_')||(a[0]>='A'&&a[0]<='Z')||(a[0]>='a'&&a[0]<='z'))\n\t\t{\n\t\t\tfor(i=1;i='A'&&a[i]<='Z')||(a[i]>='a'&&a[i]<='z')||(a[i]>='0'&&a[i]<='9'))\n\t\t\t\t{\n\t\t\t\t\tx=1;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tx=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t if(x==1)\n\t\t\tprintf(\"yes\\n\");\n\t \telse if(x==0)\n printf(\"no\\n\");\n\t\t}\n\t\telse printf(\"no\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42298", "code": "\nint main()\n{\n int n;\n char a[N],b[4];\n int i,j;\n\n gets(b);\n\n n=atoi(b);\n\n for(i=0;i'z')&&(a[0]<'A'||a[0]>'Z')&&a[0]!='_')\n {\n printf(\"no\\n\");\n }\n else\n {\n for(j=0;a[j]!='\\0';j++)\n {\n if((a[j]<'0'||a[j]>'9')&&(a[j]<'a'||a[j]>'z')&&(a[j]<'A'||a[j]>'Z')&&a[j]!='_')\n {\n printf(\"no\\n\");\n break;\n }\n }\n if(a[j]=='\\0')\n {\n printf(\"yes\\n\");\n }\n }\n }\n\n return 0;\n}"} +{"label": "85", "index": "42299", "code": "\nint main(){\n int n,i,j,p;\n scanf(\"%d\\n\",&n);\n char str[22];\n for (i=0;i='a'&&str[j]<='z'){p++;}\n else if (str[j]>='A'&&str[j]<='Z'){p++;}\n else if (str[j]=='_'){p++;}\n else {p=p;}\n }\n if (j!=0){\n if (str[j]>='a'&&str[j]<='z'){p++;}\n else if (str[j]>='A'&&str[j]<='Z'){p++;}\n else if (str[j]=='_'){p++;}\n else if (str[j]>='0'&&str[j]<='9'){p++;}\n else {p=p;} \n }\n }\n if (p==j){printf(\"yes\\n\");}\n else {printf(\"no\\n\");}\n }\n return 0;\n}"} +{"label": "85", "index": "42300", "code": "\nint main(int argc, char* argv[])\n{\n\tchar s[100],sn;\n\tint n,i,j,k;\n\tgets(&sn);\n\tn=atoi(&sn);\n for (i=0;i=65&&s[0]<=90)||(s[0]>=97&&s[0]<=122)||(s[0]==95))\n\t {\n\t\t for (j=1;s[j]!='\\0';j++)\n\t\t {\n if( !((s[j]>=65&&s[j]<=90)||(s[j]>=97&&s[j]<=122)||(s[j]==95)||(s[j]>=48&&s[j]<=57)))\n\t\t\t {\n\t\t\t\t printf(\"no\\n\");\n\t\t\t\t k=1;\n\t\t\t\t break;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t }\n\t\t if (k==0)\n\t\t\t printf (\"yes\\n\");\n\t }\n\t else \n\t\t printf (\"no\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42301", "code": "\nvoid main ()\n{\n\tint n,i,j,temp;\n\tchar word[100][30];\n\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i'z' || word[i][0]<'A' || word[i][0]>'Z' && word[i][0]<'a' )\n\t\t temp=0;\n\tfor(j=1;j'z' || word[i][j]>'9'&&word[i][j]<'A' || (word[i][j]>'Z' && word[i][j]<'a' && word[i][j]!='_'))\n\t\t\t\ttemp=0;\n\tif(temp==0)\n\t\t\t\tprintf(\"no\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42302", "code": "\nint judgeChar(char c);\nint judgeChars(char * c, int n);\nint judgeChars(char * c, int n)\n{\n\tint i;\n\tif((!judgeChar(c[0])) || isdigit(c[0]))\n\t\treturn 0;\n\tfor(i=1; i'Z'&&bsf[0]!='_'&&bsf[0]<'a')||\n\t\t\t\t(bsf[0]>'z')){\n\t\t\t\tsz[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((bsf[k]<'0')||\n\t\t\t\t(bsf[k]>'9'&&bsf[k]<'A')||\n\t\t\t\t(bsf[k]>'Z'&&bsf[k]!='_'&&bsf[k]<'a')||\n\t\t\t\t(bsf[k]>'z')){\n\t\t\t\tsz[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(k==len-1){\n\t\t\t\tsz[i]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||s[j]=='_'){\n\t\t\t\t\tk+=0;\n\t\t\t\t}else{\n\t\t\t\t\tk++;\n\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t}else if(j!=0){\n if((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')||s[j]=='_'){\n\t\t\t\t\tk+=0;\n\t\t\t\t}else{\n\t\t\t\t\tk++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tif(k==0){\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t\n\n\t}\n\treturn 0;\n}\n\t\t \n\t\t\t\t\t"} +{"label": "85", "index": "42306", "code": "int main() //????? \n{ \n char a[100]; //???????\n \n int n;\n cin>>n; //??????n?????? ???\n cin.getline(a,1000); //????????\n for(;n>0;n--)\n {\n cin.getline(a,1000); //?????\n if((a[0]<65||a[0]>90&&a[0]<97||a[0]>97+25)&&a[0]!='_') \n {cout<<\"no\"<=65&&a[i]<=90) continue;\n if(a[i]<=97+25&&a[i]>=97) continue;\n if(a[i]>=48&&a[i]<=48+9) continue;\n if(a[i]=='_') continue;\n cout<<\"no\";\n break; \n } \n cout<='A'&&zf[i][0]<='Z')||\n (zf[i][0]>='a'&&zf[i][0]<='z')||\n (zf[i][0]=='_')\n ){\n G[i]=strlen(zf[i]);\n for(j=0;j='A'&&zf[i][j]<='Z')||\n (zf[i][j]>='a'&&zf[i][j]<='z')||\n (zf[i][j]>='0'&&zf[i][j]<='9')||\n (zf[i][j]=='_')\n )\n S[i]=1; \n else {S[i]=0; \n break;}\n } \n }\n else S[i]=0;\n }\n for(i=0;i='A')&&(s[0]<='Z'))||((s[0]>='a')&&(s[0]<='z')))\n\t\t{\n\t\t\tfor(j=1;j='A')&&(s[j]<='Z'))||((s[j]>='a')&&(s[j]<='z'))||((s[j]>='0')&&(s[j]<='9')))\n\t\t\t\t{\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(k==(len-1))\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t\tif(k!=(len-1))\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\t\n\treturn 0;\n}"} +{"label": "85", "index": "42309", "code": "int main()\n{\n\tint n,i,flag=0,flag1=0,j;\n\tchar a[21];\n\tscanf(\"%d\",&n);\n\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tscanf(\"%s\",a);\n\t\tif((a[0]==95) || (a[0]>=65 && a[0]<=90) || (a[0]>=97 && a[0]<=122))\n\t\t{\n\t\t\tflag=1;\n\t\t}\n\t else\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\n\t\tif(flag==1)\n\t\t{\n\t\t\tfor(i=1;i=65 && a[i]<=90) || (a[i]>=97 && a[i]<=122) || (a[i]>=48 && a[i]<=57))\n\t\t\t\t{\n\t\t\t\t\tflag1=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tflag1=2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag1==1)\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\t\t\n\t\t}\n\t\tmemset(a,'0',sizeof(a));\n\t i=0;\n\t flag=0;\n\t flag1=0;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42310", "code": "int main()\n{\n\tchar a[21];\n\tint n,i,j;\n\tcin>>n;\n\tcin.get();\n\tfor(j=0;j90&&a[i]<95)||a[i]==96||a[i]>122)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"no\"<57&&a[i]<65)||(a[i]>90&&a[i]<95)||a[i]==96||a[i]>122)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"no\"<='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')){\n for(j=1;j='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||(zfc[j]>='0'&&zfc[j]<='9')){k++;}\n }\n }\n if(k==l-1){printf(\"yes\\n\");}\n else{printf(\"no\\n\");}\n }\n k=0;\n scanf(\"%s\",zfc);\n l=strlen(zfc);\n if(zfc[0]=='_'||(zfc[0]>='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')){\n for(j=1;j='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||(zfc[j]>='0'&&zfc[j]<='9')){k++;}\n }\n }\n if(k==l-1){printf(\"yes\");}\n else{printf(\"no\");}\n return 0;\n}"} +{"label": "85", "index": "42312", "code": "int main()\n{\n int n,i,j,sz[100];\n char sr[100][100];\n scanf(\"%d\",&n);\n\tchar zfc;\n\tscanf(\"%c\",&zfc);\n for(i=0;i='A'&&sr[i][j]<='Z')||(sr[i][j]>='a'&&sr[i][j]<='z')||(sr[i][j]=='_')){\n\t\t\t\t\tsz[i]=1;\n\t\t\t\t}else{\n\t\t\t\t\tsz[i]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if(j>0){\n\t\t\t\tif ((sr[i][j]>='A'&&sr[i][j]<='Z')||(sr[i][j]>='a'&&sr[i][j]<='z')||(sr[i][j]=='_')||(sr[i][j]>='0'&&sr[i][j]<='9')){\n\t\t\t\tsz[i]=1;\n\t\t\t\t}else{\n\t\t\t\tsz[i]=0;\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t sz[i]=0;\n\t\t\t\tbreak;\n\t\t\t }\n\t\t }\n\tif(sz[i]==0){\n\t\tprintf(\"no\\n\");\n\t}else{\n\t\tprintf(\"yes\\n\");\n\t}\n\t}\n return 0;\n}"} +{"label": "85", "index": "42313", "code": "int main(int argc, char* argv[])\n{\n\tint n,i,j,t=0;\n\tchar s[22];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)))\n break;\n\t\t}\n\t\tif(s[j]!='\\0')\n printf(\"no\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"yes\\n\");\n\t\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42314", "code": "int main (){\nchar a[22];\nint n,i,j,m;\n\nscanf(\"%d\",&n);\nfor(j=1;j<=n;j++)\n{\n\tscanf(\"%s\",&a);\nm=strlen(a);\nif(a[0]>='0'&&a[0]<='9')\n{printf(\"no\\n\");\ncontinue;}\nfor(i=0;i<=m;i++){\n\tif(i==m){\nprintf(\"yes\\n\");\nbreak;}\n\t\nif((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||(a[i]>='0'&&a[i]<='9')||a[i]=='_')\ncontinue;\nelse {\n\tprintf(\"no\\n\");\n\tbreak;}\n\n\n}}return 0;}"} +{"label": "85", "index": "42315", "code": "int main(){\n\tint n,i,k,m;\n\tchar s[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[k]<='Z'||s[k]>='a'&&s[k]<='z'||s[k]>='0'&&s[k]<='9'||s[k]=='_')\n\t\t\t m++;\n\t\t}\n\t\tif(m==k)\n\t \tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42316", "code": "int main()\n{\n\tchar a[100][100];\n\tint j,n,i,count=0,t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i47&&(int)a[i][0]<58)\n\t\t{count++;break;}\n\t\tif((((int)a[i][j])<58&&((int)a[i][j]>47))||(((int)a[i][j]<91)&&((int)a[i][j]>64))||(((int)a[i][j]<123)&&((int)a[i][j]>96))||(((int)a[i][j]==95)))\n \tcontinue;\n \telse count++;}\n\t if(count==0)\n\t\tprintf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t\tcount=0; \n\t}\n\t\nreturn 0;\n}\n\t\n"} +{"label": "85", "index": "42317", "code": "int main (){\nchar a[100];\nint i,n,m=1;\nint length;\nchar *p;\nscanf(\"%d\",&n);\n\nfor(i=0;i64&&*p<91) || (*p>96&&*p<123) ) ){\n\t\tm=0;\n\t}\n length=strlen(a);\n\tfor(p=a;p64&&*p<91) || (*p>96&&*p<123) || (*p>47&&*p<58) )){\n\t\t\t\t\tm=0;\n\t\t\t\t\tbreak;\n\t\t}\n \n\t}\n\tif(i>0){\n\t\tif(m==1)\tprintf(\"yes\\n\");\n\t\tif(m==0) printf(\"no\\n\");\n\t}\n\tm=1;\n}\nreturn 0;\n}\n\n\n"} +{"label": "85", "index": "42318", "code": "int main(){\n int n,i;\n char *p;\n scanf(\"%d\\n\",&n);\n char s[n][81];\n for(i=0;i='A'&&*p<='Z'||*p=='_'||*p>='a'&&*p<='z'){\n p++;\n while(*p!=0){\n if(*p<'0'||*p>'9'&&*p<'A'||*p>'Z'&&*p!='_'&&*p<'a'||*p>'z'){\n a=0;\n break;\n }\n p++;\n }\n }\n else\n a=0;\n if(a==1) \n printf(\"yes\\n\");\n if(a==0)\n printf(\"no\\n\");\n }\n \n } \n \n "} +{"label": "85", "index": "42319", "code": "int main ()\n{\n\tint i,n,len[1000],m[1000],j,l=0;\n\tchar s[1000][21];\n\tscanf(\"%d\",&n);\n\n for(i=0;i='A' && s[i][0]<='Z')||( s[i][0]>='a' && s[i][0]<='z')|| (s[i][0]=='_'))\n\t\t{\n\t\t m[i]=0;\n\t\t}\n else m[i]=1;\t\n \t\tfor(j=1;j='A' && s[i][j]<='Z')|| ( s[i][j]>='a' && s[i][j]<='z')|| (s[i][j]=='_')||(s[i][j]<='9'&&s[i][j]>='0'))\n\t\t {\n\t\t l++;\n\t\t }\n\t\t}\n\t\t\t\tif(l==len[i]-1 && m[i]==0)\n\t\t\t printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n\treturn 0;\n\t}\n"} +{"label": "85", "index": "42320", "code": "int main()\n{\n int i, j, n; \n char s[MAX+1]; \n scanf(\"%d\", &n); \n for (i = 0; i < n; i++) { \n scanf(\"%s\", s); \n for (j = 0; s[j]; j++) { \n if (!((s[j] == '_') || \n (s[j] >= 'A' && s[j] <= 'Z') || \n (s[j] >= 'a' && s[j] <= 'z') || \n (s[j] >= '0' && s[j] <= '9' && j > 0)))\n \n break; \n }\n if(s[j]==0){\n printf( \"yes\\n\"); }\n if(s[j]!=0){\n printf( \"no\\n\"); }\n } \n return 0;\n}\n\n"} +{"label": "85", "index": "42321", "code": "int main(){\nint n,result=0;\nchar x[1000][21];\nscanf(\"%d\",&n);\n for(int i=0;i='a')&&(x[j][0]<='z'))||((x[j][0]>='A')&&(x[j][0]<='Z'))||(x[j][0]=='_')){\n for(int k=1;x[j][k]!='\\0';k++){\n if(((x[j][k]>='a')&&(x[j][k]<='z'))||((x[j][k]>='0')&&(x[j][k]<='9'))||((x[j][k]>='A')&&(x[j][k]<='Z'))||(x[j][k]=='_')) {\n }\n\n\n else{\n result=1;\n }\n }\n }\n else{\n result=1;\n }\n if(result==0){printf(\"yes\\n\");}else{printf(\"no\\n\");};\n result=0;\n }\n return 0;\n}\n\n"} +{"label": "85", "index": "42322", "code": "int main(){\n char str[100][22];\n int len,n,m;\n scanf(\"%d\",&n);\n\tfor(int i=0;i='A')&&(str[i][0]<='Z'))||((str[i][0]>='a')&&(str[i][0]<='z'))||(str[i][0]==95)){\n\t\tfor (int j=1;j='A')||(c[0]<='z'&&c[0]>='a')||c[0]=='_')\n\t\twhile(c[k]!='\\0')\n\t\t\tif((c[k]<='Z'&&c[k]>='A')||(c[k]<='z'&&c[k]>='a')||c[k]=='_'||(c[k]<='9'&&c[k]>='0'))\n\t\t\tk++;\n\t\t\telse {j=0;break;}\n\telse j=0;\n\treturn(j);\n}\nvoid main()\n{\n\tint i,n;\n\tchar c[21]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&sb[k]<='9')||(sb[k]>='a'&&sb[k]<='z')||(sb[k]>='A'&&sb[k]<='Z'))){\nm=1;\n}\n}\nif(!(sb[0]=='_'||(sb[0]>='a'&&sb[0]<='z')||(sb[0]>='A'&&sb[0]<='Z'))){\nm=1;\n}\nif(m==1) printf(\"no\\n\");\nelse printf(\"yes\\n\");\n}\nreturn 0;\n}"} +{"label": "85", "index": "42325", "code": "void p(char a[],int n)\n{\n\tint i,j;\n\tif(a[0]!='_'&&(a[0]<'a'||a[0]>'z')&&(a[0]<'A'||a[0]>'Z'))\n\t\tprintf(\"no\\n\");\n\telse\n\t{\n\t\tfor(j=1;j'z')&&(a[j]<'A'||a[j]>'Z')&&(a[j]<'0'||a[j]>'9'))\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif(j==n)\n\t\t\tprintf(\"yes\\n\");\n\t}\n}\nint main()\n{\n\tint n,i,m;\n\tchar a[30],b;\n\tscanf(\"%d\",&n);\n\tb=getchar();\n\tfor(i=0;i='a')&&(zs[0]<='z'))||((zs[0]>='A')&&(zs[0]<='Z'))||zs[0]=='_')\n {\n\t\t\t\tfor(j=1;zs[j]!='\\0';j++)\n\t\t\t\t{\n\n\t\t\t\t if(((zs[j]>='a')&&(zs[j]<='z'))||((zs[j]>='A')&&(zs[j]<='Z'))||(zs[j]=='_')||((zs[j]>='0')&&(zs[j]<='9')))\n\t\t\t\t\t c++;\n\t\t\t\t}\n\t\t\t\t if(c==strlen(zs)-1)\n\t\t\t\t\tprintf(\"yes\\n\");\n\t\t\t\t else\n\t\t\t\t\tprintf(\"no\\n\");\n \n }\n else\t\n {\n printf(\"no\\n\");\n }\n\n }\n\n return 0;\n}\n"} +{"label": "85", "index": "42327", "code": "void main()\n{\n\tint n,i,j,flag;\n\tchar str[100][25];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&str[i][0]<='z')||(str[i][0]>='A'&&str[i][0]<='Z')||str[i][0]=='_')\n\t\t\tflag=0;\n\t\telse flag=1;\n\t\tif(flag==0)\n\t\t{\n\t\t\tfor(j=1;str[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif((str[i][j]>='0'&&str[i][j]<='9')||(str[i][j]>='a'&&str[i][j]<='z')||(str[i][j]>='A'&&str[i][j]<='Z')||str[i][j]=='_')\n\t\t\t\t\tflag=0;\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tflag=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flag==0)\n\t\t\tprintf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42328", "code": "int main(){\n\tchar a[100][21];\n\tint i,n,j,b;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='0'&&a[i][j]<='9'&&j!=0))){\n\t\t\t\ta[i][0]='n';\n\t\t\t\ta[i][1]='o';\n\t\t\t\ta[i][2]='\\0';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t\n\t}\n\tfor(i=0;i90&&a[0]<95)||(a[0]>95&&a[0]<97)||a[0]>122) {return 0;}\n else \n {\n for (i=1;i57&&a[i]<65)||(a[i]>90&&a[i]<95)||(a[i]>95&&a[i]<97)||a[i]>122) {return 0;}\n }\n return 1;\n}\nvoid main ()\n{\n int i,j,n;\n char a[21];\n scanf (\"%d\",&n);\n for (i=0;i='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')))||(i!=0&&((zfc[i]=='_'||(zfc[i]>='0'&&zfc[i]<='9')||(zfc[i]>='a'&&zfc[i]<='z')||(zfc[i]>='A'&&zfc[i]<='Z')))))\n {s=1;\n }else{s=0;\n break;}\n }\n if(s==1){printf(\"yes\\n\");}else{printf(\"no\\n\");}\n }\n \n return 0;\n }\n"} +{"label": "85", "index": "42333", "code": "int main()\n{\nint n,i,c,a;\nscanf(\"%d\",&n);\nchar szpand[n][20];\nfor(i=0;i=123&&a<=127||a>=91&&a<=94||a==96||a>=58&&a<=64||a<=47)\n{flag=0;break;}\n }\nif(!flag)\nprintf(\"no\\n\");\nelse\nprintf(\"yes\\n\");\n}\n\nreturn 0;\n}\n"} +{"label": "85", "index": "42334", "code": "void main()\n{\n\tchar c[20][50];\n\tint i,j,n,t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%s\",c[i]);\n\t\t}\n\tfor(i=0;i<=n-1;i++){\n\t\tif(!((c[i][0]>='a'&&c[i][0]<='z')||(c[i][0]>='A'&&c[i][0]<='Z')||c[i][0]=='_')){\n\t\t\tt=0;\n\t\t\t}\n\t\telse{ \n\t\t\tfor(j=1;c[i][j\n\t\t\t\t]!='\\0';j++){\n\t\t\t\tif(!((c[i][j]>='a'&&c[i][j]<='z')||(c[i][j]>='A'&&c[i][j]<='Z')||(c[i][j]>='0'&&c[i][j]<='9')||c[i][j]=='_')){\n\t\t\t\t\tt=0;\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\tt=1;\n\t\t\t\t}\n\t\t\t}\n\t\tif(t==1){\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\tif(t==0){\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n}"} +{"label": "85", "index": "42335", "code": "void main()\n{\n\tint i,b,n,l,m;\n\tchar a[21];\n\tscanf(\"%d\",&n);\n\tfor(b=0;b=65&&m<=90)||(m>=97&&m<=122) || a[i]=='_')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i!=0)\n\t\t\t{\n\t\t\t\tif((m>=65&&m<=90)||(m>=97&&m<=122) || (a[i]=='_')||(m>=48&&m<=57))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t if(i==l)\n\t\t{\n\t\t printf(\"yes\\n\");\n\t\t}\n\t else\n\t\t{\n\t\t printf(\"no\\n\");\n\t\t}\n\t}\n}\n"} +{"label": "85", "index": "42336", "code": "int main()\n{\n\tint n,i,k,t=0;\n\tchar str[100][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&str[i][0]<='9')\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tint m=strlen(str[i]);\n\t\tt=0;\n\t\tfor(k=0;k='a')&&(str[i][k]<='z'))||((str[i][k]>='A')&&(str[i][k]<='Z'))||(str[i][k]>='0')&&(str[i][k]<='9'))\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(t==m)\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42337", "code": "int main()\n{\n\tint i,n,len,j;\n\tchar str[21]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a' && str[0]<='z') || (str[0]>='A' && str[0]<='Z'))\n\t\t{}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tfor(j=1;j='a' && str[j]<='z') || (str[j]>='A' && str[j]<='Z') || (str[j]>='0' && str[j]<='9'))\n\t\t\t{}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\ti++;\n\t\t\t\tif(i'Z'&&c[i][0]<'a'&&c[i][0]!='_')||c[i][0]>'z')\n {p=0;\n printf(\"no\\n\");\n }\n else if((c[i][0]>='a'&&c[i][0]<='z')||(c[i][0]>='A'&&c[i][0]<='Z')||(c[i][0]>='0'&&c[i][0]<='9'))\n {p=1;\n \n for(j=1;j'9'&&c[i][j]<'A')||(c[i][j]>'Z'&&c[i][j]<'a'&&c[i][j]!='_')||c[i][j]>'z')\n {p=0;\n printf(\"no\\n\");\n break;} \n } \n } \n if(p==1)\n printf(\"yes\\n\");\n p=1;\n }\n return 0;\n } \n"} +{"label": "85", "index": "42339", "code": "int main(){\n\tint x, y,i,d;\n\tscanf(\"%d\",&y);\n\tchar h[21];\n\tfor(x=0;x='a'&&h[0]<='z')||(h[0]>='A'&&h[0]<='Z')||(h[0]=='_')){\n d++;\n}\n\tfor(i=1;i='a'&&h[i]<='z')||(h[i]>='A'&&h[i]<='Z')||(h[i]=='_')||(h[i]>='0'&&h[i]<='9')){\n\t\t\td++;\n\t\t}\n\t}\n\tif(d==strlen(h)){\n\t\tprintf(\"yes\\n\");\n\t}else{\n\t\tprintf(\"no\\n\");\n\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42340", "code": "\nint judge(char c[21],int n)\n{\n int i;\n i=0;\n if (c[0]>='a'&&c[0]<='z'||c[0]>='A'&&c[0]<='Z'||c[0]=='_')\n {\n while ((c[i]>='a'&&c[i]<='z'||c[i]>='A'&&c[i]<='Z'||c[i]=='_'||c[i]>='0'&&c[i]<='9')&&i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||a[i][0]=='_')\n\t\t{\n\t\t\tm=0;\n\t\t\tfor(j=1;a[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif((a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||a[i][j]=='_'||(a[i][j]>='0'&&a[i][j]<='9'))continue;\n\t\t\t\telse {printf(\"no\\n\");m=1;break;}\n\t\t\t}\n\t\t\tif(m=1&&j==strlen(a[i]))printf(\"yes\\n\");\n\t\t}\n\t\telse printf(\"no\\n\");\n\t\n\t}\n\n}"} +{"label": "85", "index": "42342", "code": "int main()\n{\n char c[100][100];\n\tint m,i,a[100];\n\tunsigned j;\n\tcin>>m;\n\tfor(i=0;i>c[i];\n\t}\n\tfor(i=0;i'z'||c[i][0]>'Z'&&c[i][0]<'a'))\n\t\t\t{\n\t\t\t\ta[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(c[i][j]!='_'&&(c[i][j]<'A'||c[i][j]>'z'||c[i][j]>'Z'&&c[i][j]<'a')&&(c[i][j]<'0'||c[i][j]>'9'))\n\t\t\t{\n\t\t\t\ta[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\twhile(n>0)\n\t{\n\t\tchar str[30];\n\t\tcin>>str;\n\t\tint i;\n\t\tint flag=1;\n\t\tif(str[0]=='_'||(str[0]>=65&&str[0]<=90)||(str[0]>=97&&str[0]<=122))\n\t\t{\n\t\t\tfor(i=1;i=65&&str[i]<=90||str[i]>=97&&str[i]<=122||str[i]>=48&&str[i]<=57)\n\t\t\t\t\tcontinue;\n\t\t\t\telse {cout<<\"no\"< 'Z');\n is2 = (ch < 'A');\n \n if(trig == '_') return TRUE;\n if(is1 + is2 != 0) return FALSE;\n return TRUE;\n}\n\nint illegal_sym(char name[20], int length)\n{\n int i;\n char ch;\n int is_al, is_num, is_dash;\n int is;\n for(i = 0;i <= length - 1;i ++)\n {\n ch = toupper(name[i]);\n is_al = (ch <= 'Z') && (ch >= 'A');\n is_num = (ch <= '9') && (ch >= '0');\n is_dash = (ch == '_');\n is = (is_al || is_num || is_dash);\n \n if(!is)\n {\n //printf(\"Bug section:%d\\nchar:%c\\n\", i + 1, ch);\n return FALSE;\n }\n }\n return TRUE;\n}\n \n"} +{"label": "85", "index": "42345", "code": "int main()\n{\n\tint n,i,j,p=0;\n\tchar s[30];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'/'&&s[j]<':')){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;}\n\t\t\tif(s[j]>'/'&&s[j]<':')\n\t\t\t\tp++;\n\t\t\telse \n\t\t\t\tp+=0;\n\t\t\tif(s[j]>'@'&&s[j]<'[')\n\t\t\t\t\tp++;\n\t\t\telse \n\t\t\t\tp+=0;\n\t\t\tif(s[j]>'a'&&s[j]<'z')\n\t\t\t\t\tp++;\n\t\t\telse \n\t\t\t\tp+=0;\n\t\t\tif(s[j]=='a'||s[j]=='z')\n\t\t\t\t\tp++;\n\t\t\telse \n\t\t\t\tp+=0;\n\t\t\tif(s[j]=='_')\n\t\t\t\t\tp++;\n\t\t\telse \n\t\t\t\tp+=0;\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tif(p==z)\n\t\t\tprintf(\"yes\\n\");\n\t\telse if(p!=0)\n\t\t\tprintf(\"no\\n\");\n\t\tp=0;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42346", "code": "int main(){\n\tchar s[10000][21];\n\tint n,i,j;\n int c[10000]={0},d[10000]={0};\n scanf(\"%d\",&n);\n\tfor(i=0;i='a'&&s[i][0]<='z')||(s[i][0]>='A'&&s[i][0]<='Z')){\n\t\t\td[i]++;\n\t\t}\n else{\n\t\t\tc[i]=1;\n\t\t}\n\t\tfor(j=0;s[i][j]!='\\0';j++){\n\t\t\tif((s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='0'&&s[i][j]<='9')||s[i][j]=='_'){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t else{\n\t\t\t\tc[i]=1;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i'z'||juzi[0]<'a')&&(juzi[0]>'Z'||juzi[0]<'A')&&juzi[0]!='_')\n\t\treturn 0;\n\tfor(q=1;q'z'||juzi[q]<'a')&&(juzi[q]>'Z'||juzi[q]<'A'))\n\t\t{\n\t\t\tif(juzi[q]>'9'||juzi[q]<'0')\n\t\t\t{\n\t\t\t\tif(juzi[q]!='_')\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t}\n\treturn 1;\n}\n\n\n\t\n\t\n\t\nvoid main()\n{\t\n\tint n;\n\tchar m[6];\n\tgets(m);\n\tn=atoi(m);\n\twhile(n--)\n\t{\n\t\tgets(juzi);\n\t\tint len=strlen(juzi);\n\t\tif(islegal(juzi,len)==1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42348", "code": "\nint main()\n{\n\tint n; \n\t\n\tcin >> n;\n\tfor(int i=0; i> str;\n\t\tif(strlen(str) > 20) {\n\t\t\tcout << \"no\" << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tint j;\n\t\tif(str[0] >= '0' && str[0] <= '9') {\n\t\t\tcout << \"no\" << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tfor(j=0; j= 'A' && str[j] <= 'Z' || \n\t\t\t\tstr[j] >= 'a' && str[j] <= 'z' ||\n\t\t\t\tstr[j] >= '0' && str[j] <= '9' ||\n\t\t\t\tstr[j] == '_' ) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tcout << \"no\" << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j == strlen(str)) cout << \"yes\" << endl;\n\t}\n\n\n\treturn 0;\n}"} +{"label": "85", "index": "42349", "code": "int main(){\n\tint n,m,i,j,a[2000];\n\tchar b[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=65&&b[j]<=90)||(b[j]>=97&&b[j]<=122)||b[j]=='_'))\n\t\t\t\ta[i]=1;\n\t\t\telse if(j!=0&&((b[j]>=65&&b[j]<=90)||(b[j]>=97&&b[j]<=122)||(b[j]>=48&&b[j]<=57)||b[j]=='_'))\n\t\t\t\ta[i]=1;\n\t\t\telse{\n\t\t\t\ta[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='A'&&zfc[i][0]<='Z')||zfc[i][0]>='a'&&zfc[i][0]<='z'||zfc[i][0]=='_')\n { int m=strlen(zfc[i]),c=0;\n for(k=1;k='0'&&zfc[i][k]<='9')||(zfc[i][k]>='A'&&zfc[i][k]<='Z')||(zfc[i][k]>='a'&&zfc[i][k]<='z')||zfc[i][k]=='_')\n {\n c++;\n }\n \n }if(c==(m-1)){\n printf(\"yes\\n\");\n }else{printf(\"no\\n\");}\n }else{\n printf(\"no\\n\"); \n }\n }\n return 0; \n \n}\n"} +{"label": "85", "index": "42351", "code": "\nint main()\n{\nint n;\nscanf(\"%d\",&n);\nchar s[100];\nint m;\nint i;\nint p;\nfor(i=1;i<=n;i++)\n{\n\tscanf(\"%s\",s);\n\tfor(m=0;s[m];m++)\n\t{\n\t\tif((s[0]=='_')||(s[0]>='A'&&s[0]<='Z')||(s[0]>='a'&&s[0]<='z'))\n\t\t\tp=1;\n\t\telse\n\t\t{\n\t\t\tp=0;\n\t\t\tbreak;\n\t\t}\n\t\tif((s[m]=='_')||(s[m]>='A'&&s[m]<='Z')||(s[m]>='a'&&s[m]<='z')||(s[m]>='0'&&s[m]<='9'))\n\t\t\tp=1;\n\t\telse\n\t\t{\n\t\t\tp=0;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(p==1)\n\t\tprintf(\"yes\\n\");\n\telse\n\t\tprintf(\"no\\n\");\n\n}\n\t\t\t\n\t\t\n\nreturn 0;\n}\n\n\n\t\n"} +{"label": "85", "index": "42352", "code": "\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i = 0;\n\tchar p[22];\n\tint j;\n\tint error;\n\tdo\n\t{\n\t\tscanf(\"%s\",p);\n\t\tj = 0;\n\t\terror = 0;\n\t\tdo \n\t\t{\n\t\t\tif ( j == 0 )\n\t\t\t{\n\t\t\t\tif ( p[j] < 'a' || p[j] > 'z')\n\t\t\t\t{\n\t\t\t\t\tif ( p[j] < 'A' || p[j] > 'Z' )\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( p[j] != '_')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\t\t\terror = 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t\n\t\t\tif ( p[j] < 'a' || p[j] > 'z')\n\t\t\t{\n\t\t\t\t//printf(\"a%c\\n\",p[j]);\n\t\t\t\tif ( p[j] < 'A' || p[j] > 'Z' )\n\t\t\t\t{\n\t\t\t\t\t//printf(\"A%c\\n\",p[j]);\n\t\t\t\t\tif ( p[j] < '0' || p[j] > '9' )\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( p[j] != '_')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\t\t\terror = 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tj++;\n\t\t}while ( p[j] != '\\0' );\n\t\tif ( error == 0 )\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\ti++;\n\t}while ( i < n );\n\treturn 0;\n}\n\n\n"} +{"label": "85", "index": "42353", "code": "int main()\n{\n\tint i,j,n,count;\n\tcin>>n;\n\tchar s[25];\t\n\tfor(i=0;i>s;\n\t\tif((s[0]>='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||(s[0]=='_'))\n\t\t{\n\t\t\tcount=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcount=0;\n\t\t}\n\t\tfor(j=1;j='0'&&s[j]<='9')||(s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]=='_'))\n\t\t\t{\n\t\t\t\tcount+=1;\n\t\t\t}\n\t\t}\n\t\tif(count==strlen(s))\n\t\t{\n\t\t\tcout<<\"yes\"<='A'&&z[i][0]<='Z')||(z[i][0]>='a'&&z[i][0]<='z')){\n\t\t\tfor(j=1;z[i][j]!='\\0';j++){\n\t\t\t\tif(z[i][j]=='_'||(z[i][j]>='A'&&z[i][j]<='Z')||(z[i][j]>='a'&&z[i][j]<='z')||(z[i][j]>='0'&&z[i][j]<='9')){\n\t\t\t\t\ta=a*1;\n\t\t\t\t}else{\n\t\t\t\t\ta=a*0;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\ta=a*0;\n\t\t}\n\t\tif(a==1){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t\ta=1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42355", "code": "\nint main()\n{\n\tint n,i,j,l;\n\tchar word[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'||word[0]<='Z'&&word[0]>='A'||word[0]==' '||word[0]=='_')\n\t\t\t;\n\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\tfor(j=1;j='0'||word[j]<='z'&&word[j]>='a'||word[j]<='Z'&&word[j]>='A'||word[j]==' '||word[j]=='_')\n\t\t\t\t\t;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tgoto MQ;\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tprintf(\"yes\\n\");\nMQ:;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42356", "code": "void main()\n{\n\tchar c[20];\n\tint n,i,j,m;\n\tscanf(\"%d\",&n);\n\tgetchar();\n\tfor(j=0;j90&&c[0]<95)||c[0]==96||c[0]>122)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t{\n\t\t\tfor(i=1;c[i]!='\\0';i++)\n\t\t\t{\n\t\t\t\tif(c[i]<48||(c[i]>57&&c[i]<65)||(c[i]>90&&c[i]<95)||c[i]==96||c[i]>122)\n\t\t\t\t\tm=m+1;\n\t\t\t}\n\t\t\tif(m==0)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n}\n"} +{"label": "85", "index": "42357", "code": "int main ()\n{\n\tint n,i,j,leng;\n\tscanf (\"%d\",&n);\n\tchar s[100][20];\n\tfor (i=0;i'Z'&&s[i][j]<'a')||(s[i][j]>'z')))\n\t\t\t{\n\t\t\t\tprintf (\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n if (j!=0)\n\t\t\t{\n\t\t\t if (s[i][j]!='_'&&s[i][j]<'0'||(s[i][j]>'9'&&s[i][j]<'A')||(s[i][j]>'Z'&&s[i][j]<'a')||(s[i][j]>'z'))\n\t\t\t {\n\t\t\t\t printf (\"no\\n\");\n\t\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\tif (j==leng)printf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "85", "index": "42358", "code": "\nint decide(char k)\n{\n\tif ((isdigit(k)==0)&&(isalpha(k)==0)&&(k!=95))\n\t\treturn 0;\n\telse\n\t\tif (isdigit(k)==1)\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 1;\n}\n\n\nint main()\n{\n\tint n,j,m,i;\n\tchar a[500][20]={0};\n\tscanf(\"%d\\n\",&n);\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tgets(a[i]);\n\t\tm=strlen(a[i]);\n\t\tif (decide(a[i][0])!=1)\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tj=1;\n\t\t\twhile (j>n;\n\tcin.get();\n\tfor(int i=0;i>a[i];\n\t}\n\tfor(int i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||a[i][0]=='_'))\n\t\t{\n\t\t\tcout<<\"no\"<='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='0'&&a[i][j]<='9')||a[i][j]=='_')\n\t\t\t\t\tcontinue;\n\t\t\t\telse {\n\t\t\t\t\ttag=1;\n\t\t\t\t\tcout<<\"no\"<='0'&&c[n][i]<='9')||(c[n][i]>='a'&&c[n][i]<='z')||(c[n][i]>='A'&&c[n][i]<='Z')||c[n][i]=='_')\n\t\t\tt*=1;\n\t\telse\n\t\t\tt*=0;\n\t}\n\tif(c[n][0]>='0'&&c[n][0]<='9')\n\t\tt*=0;\n\treturn(t);\n}\n"} +{"label": "85", "index": "42361", "code": "int main(){\nint n,i,j,a,l;\nint b=1;\nscanf(\"%d\",&n);\nchar c[21];\nfor(i=0;i='A'&&c[j]<='Z')||(c[j]>='a'&&c[j]<='z')||(c[j]>='0'&&c[j]<='9'&&j>0)){\n\t\t\ta=1;\n\t\t}\n\t\telse{\n\t\t\tb=0;\n\t\t}\n\t}\n\tif(b==1){\n\t\tprintf(\"yes\\n\");\n\t}\n\telse{\n\t\tprintf(\"no\\n\");\n\t}\n}\n\n\n\n\treturn 0;\n}"} +{"label": "85", "index": "42362", "code": "int main()\n{\n\tint n,i,j,b;\n\tchar a[20];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i='0'&&a[0]<='9') b=0;\n\t\tfor(j=0;a[j]!='\\0';j++)\n\t\t{\n\t\t\tif((a[j]<'0'||(a[j]>'9'&&a[j]<'A')||a[j]>'z'||(a[j]>'Z'&&a[j]<'a'))&&(a[j]!='_')){b=0;break;}\n\t\t}\n\t\tif(b==1)printf(\"yes\\n\");\n\t\telse if(b==0)printf(\"no\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42363", "code": "int main()\n{\n\tint n,i,j;\n\t\n\tscanf(\"%d\\n\",&n);\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tchar s[21];\n\t\tgets(s);\n\t\tif (1^((s[0]>='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||(s[0]=='_'))) \n\t\t{\n\t\t\tprintf(\"no\\n\");continue;\n\t\t}\n\t\tfor (j=1;j='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')||(s[j]=='_'))) break;\n\t\t}\n\t\tif (j='a'&&zf[i][0]<='z')||(zf[i][0]>='A'&&zf[i][0]<='Z')||zf[i][0]=='_'){\n m=1;\n }else{\n m=0;\n }\n for(k=1;zf[i][k]!='\\0';k++){\n if((zf[i][k]>='A'&&zf[i][k]<='Z')||(zf[i][k]>='a'&&zf[i][k]<='z')||(zf[i][k]>='0'&&zf[i][k]<='9')||zf[i][k]=='_'){\n 1;\n }else{\n m=0;\n }\n }\n if(m==1){\n printf(\"yes\\n\");\n }else if(m==0){\n printf(\"no\\n\");\n }\n }\n\n return 0;\n}\n\n\n\n\n\n\n"} +{"label": "85", "index": "42365", "code": "int main(){\nint n,t;\nchar a[50];\n\nscanf(\"%d\",&n);\nfor(int i=0;i'Z')&&(a[0]<'a'||a[0]>'z')&&a[0]!='_'){\n\t\tt=0;\n\t}\n\tfor(int j=1;j'Z')&&(a[j]<'a'||a[j]>'z')&&a[j]!='_'&&(a[j]<'0'||a[j]>'9')){\n\t\t\tt=0;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(t==0){\n\t\tprintf(\"no\\n\");\n\t}\n\telse if(t==1){\n\t\tprintf(\"yes\\n\");\n\t}\n}\n\n\n\n\n\n\nreturn 0;\n}"} +{"label": "85", "index": "42366", "code": "\nint main(){\n\tint n,i,j,l=0,s;\n\tchar a[30];\n\tint b[100];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')){\n\t\t\ts=0;\n\t\t\tfor (j=1;j='0'&&a[j]<='9')||(a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z')){\n\t\t\t\t\ts=s+0;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ts=s+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ts=1;\n\t\t}\n\t\tb[i]=s;\n\t}\n\tfor (i=0;i'9' && a[i]<'A')\n\t\t\t t++;\n\t\t\tif (a[i]>'Z' && a[i]<'_')\n\t\t\t t++;\n\t\t\tif (a[i]>'_' && a[i]<'a')\n\t\t\t t++;\n\t\t\tif (a[i]>'z')\n\t\t\t t++;\n\t\t}\n\t\tif (t == 0)\n\t\t\tprintf (\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42368", "code": "int main(){\n\tint n,i,j,a,m=0;\n\tchar zfc[LEN][LEN];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i90&&zfc[i][j]<95)||zfc[i][j]==96||zfc[i][j]>122){\n\t\t\t\tbreak;\n\t\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(zfc[i][j]<48||(zfc[i][j]>57&&zfc[i][j]<65)||(zfc[i][j]>90&&zfc[i][j]<95)||zfc[i][j]==96||zfc[i][j]>122){\n\t\t\t\tbreak;\n\t\n\t\t\t\t}else{\n\t\t\t\t\tm++;\n\t\t\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t}\n\t\tif(j==a){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\n\t}\n\n\n\treturn 0;\n}\n"} +{"label": "85", "index": "42369", "code": "int main()\n{\n int n,i,k;\n scanf(\"%d\",&n);\n char zfc[MAX+1];\n getchar();\n for(i=0;i='A'&&zfc[k]<='Z')||(zfc[k]>='0'&&zfc[k]<='9'&&k>0)||(zfc[k]<='z'&&zfc[k]>='a')))\n break;\n }\n if(zfc[k]||zfc[k]>='0'&&zfc[0]<='9')\n printf(\"no\\n\");\n else\n printf(\"yes\\n\");\n }\n return 0;\n}\n"} +{"label": "85", "index": "42370", "code": "int main()\n{\n\tint x,b,c,n,i,j,k;\n\tchar a[1000][30];\n\tchar w[100];\n\tgets(w);\n\tn=atoi(w);\n\tfor(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||a[i][0]=='_')\n\t\t{\n\t\t\t1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=0;\n\t\t}\n\t\t\tfor(j=0;a[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif((a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||a[i][j]=='_'||(a[i][j]>='0'&&a[i][j]<='9'))\n\t\t\t\t{\n\t\t\t\t\t1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tx=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x==1)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\n\treturn 0;\n}"} +{"label": "85", "index": "42371", "code": "int main(){\nint n,i,k,j;\nchar bsf[100][21];\n k=1;\n scanf(\"%d\",&n);\n for(i=0;i='A'&&bsf[i][0]<='Z')||(bsf[i][0]>='a'&&bsf[i][0]<='z')){k*=1;}\n else{k*=0;}\n for(j=1;j='A'&&bsf[i][j]<='Z')||(bsf[i][j]>='a'&&bsf[i][j]<='z')||(bsf[i][j]>='0'&&bsf[i][j]<='9'))\n\t{k*=1;}\n\telse{k*=0;}\n }\n if(k){printf(\"yes\\n\");}\n else{printf(\"no\\n\");}\n k=1;\n }\n return 0;\n}\n"} +{"label": "85", "index": "42372", "code": "int main()\n{\n char str[21];\n int n;\n cin>>n;\n for (;n>0;n--)\n {\n cin>>str;\n int flag=1;\n if(str[0]=='_'||str[0]>='a'&&str[0]<='z'||str[0]>='A'&&str[0]<='Z')\n flag=1;\n else\n flag=0;\n for(int i=1;str[i]!='\\0';i++)\n {\n if(str[i]>='0'&&str[i]<='9'||str[i]>='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z'||str[i]=='_')\n continue;\n else\n {\n flag=0;\n break;\n }\n }\n if(flag==0)\n cout<<\"no\"<64&&*p<91)||(*p==95)||(*p>96&&*p<123)){}\n else {printf(\"no\\n\");continue;}\n for(p=c+1;p64&&*p<91)||(*p==95)||(*p>96&&*p<123)||(*p>47&&*p<58))\n {if(p==c+l-1){printf(\"yes\\n\");} }\n else {printf(\"no\\n\");break;}\n }\n } \n\treturn 0;\n}"} +{"label": "85", "index": "42374", "code": "int main()\n{\n\tchar A[2013];\n\tint N;\n\tscanf(\"%d\\n\",&N);\n\twhile (N --)\n\t{\n\t\tgets(A);\n\t\tint L = strlen(A);\n\t\tint K = 0;\n\t\tfor (int I = 0; I < L; I ++)\n\t\t{\n\t\t\tint Flag = 0;\n\t\t\tif ('A' <= A[I] && A[I] <= 'Z') Flag ++;\n\t\t\t\telse if ('a' <= A[I] && A[I] <= 'z') Flag ++;\n\t\t\t\t\telse if ('0' <= A[I] && A[I] <= '9') Flag ++;\n\t\t\t\t\t\telse if (A[I] == '_') Flag ++;\n\t\t\tif (!Flag) K = 1;\n\t\t}\n\t\tif (('A' <= A[0] && A[0] <= 'Z') || ('a' <= A[0] && A[0] <= 'z') || (A[0] == '_')); else K = 1;\n\t\tif (!K) cout << \"yes\" << endl;\n\t\t\telse cout << \"no\" << endl;\n\t}\n}"} +{"label": "85", "index": "42375", "code": "void main()\n{\n\tint n,l,i,j;\n\tchar a[100][100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&& a[i][0]<='Z') || (a[i][0]>='a' && a[i][0]<='z') || a[i][0]=='_')\n\t\t\t\tt=0;\n\t\t\telse\n\t\t\t{\n\t\t\t\tt=-1;\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tl=strlen(a[i]);\n\t\t\tj=1;\n\t\t\twhile(j='A' && a[i][j]<='Z')||(a[i][j]>='a' && a[i][j]<='z')||(a[i][j]>='0' && a[i][j]<='9')|| a[i][j]=='_')\n\t\t\t\t\tt=0;\n\t\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt=-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t}\n\t\t\tif(t==-1)\n\t\t\t\tprintf(\"no\\n\");\n\t\t\tif(t==0)\n\t\t\t\tprintf(\"yes\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42376", "code": "int main(int argc, char* argv[])\n{\nchar s[1000][20];\nint i,j;\nint len;\nint k=0;\nint n;\nscanf(\"%d\",&n);\nfor(i=0;i='A')&&(s[i][0]<='Z'))||((s[i][0]>='a')&&(s[i][0]<='z'))){\n\t\tfor(j=1;j='A')&&(s[i][j]<='Z'))||((s[i][j]>='a')&&(s[i][j]<='z'))||((s[i][j]>='0')&&(s[i][j]<='9'))){k++;}\n\t\t}\n\t\tif(k==(len-1))\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}else{\n\t\tprintf(\"no\\n\");\n\t}\n}\nreturn 0;\n}\n\n"} +{"label": "85", "index": "42377", "code": "int main()\n{\nchar dz[N];\nint n,l,t=0,i=0;\nscanf(\"%d\",&n);\nfor(int j=0;j='a'&&dz[0]<='z')||(dz[0]>='A'&&dz[0]<='Z')||(dz[0]=='_'))\n{\n\nl=strlen(dz);\n\nfor(i=1;i='a'&&dz[i]<='z')||(dz[i]>='A'&&dz[i]<='Z')||(dz[i]>='0'&&dz[i]<='9')||(dz[i]=='_')){continue;}\nelse{t=t+1;}\n}\nif(t==0){\n printf(\"yes\\n\");\n \n}\nelse{printf(\"no\\n\");}\n}\nelse{printf(\"no\\n\");}}\nreturn 0;\n}\n\n\n"} +{"label": "85", "index": "42378", "code": "int main()\n{\n\tint i,k,n,sum,sz[1000];\n\tscanf(\"%d\",&n);\n\tchar s[1000][20];\n\tfor(i=0;i<=n-1;i++)\n\t\tscanf(\"%s\\n\",&s[i]);\n\tfor(i=0;i='a'&&s[i][k]<='z')||(s[i][k]>='A'&&s[i][k]<='Z')||(s[i][k]>='0'&&s[i][k]<='9')||(s[i][k]=='_'))\n\t\t\t\tsum++;\n\t\t}\n\t\tif(sum==sz[i]&&((s[i][0]>='a'&&s[i][0]<='z')||(s[i][0]>='A'&&s[i][0]<='Z')||(s[i][0]=='_')))\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42379", "code": "void main()\n{\n\tint n,i,x,k;\n\tchar s[100][100],*p;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'z')&&(*p<'A'||*p>'Z'))\n\t\t{\tprintf(\"no\\n\");k=1;}\n\t\tif(k==0)\n\t\tfor(p=s[i]+1;p'z'))&&(*p<'0'||*p>'9')&&(*p<'A'||*p>'Z'))\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");k=1;break;\n\t\t\t}\n\t\t}\n\t\tif(k==0)\tprintf(\"yes\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42380", "code": "int main ()\n{\n int n,l,i,j,b;\n char a[100][20];\n scanf(\"%d\",&n);\n for(i=0;i='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]=='_')){b++;}\n for(j=1;a[i][j]!='\\0';j++)\n {\n if((a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='0'&&a[i][j]<='9')||(a[i][j]=='_'))\n {b++;}\n }\n if(b==l){printf(\"yes\\n\");}\n else {printf(\"no\\n\");}\n }\n return 0;\n}\n"} +{"label": "85", "index": "42381", "code": "int main(){\n char asz[300][300];\n\tint len[300],n=0,i,bsz[300],j,fsz[300];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&asz[i][j]<='Z')||\n\t\t\t\t(asz[i][j]>='a'&&asz[i][j]<='z')||\n\t\t\t\t(asz[i][j]>='0'&&asz[i][j]<='9'&&j>0))){\n\t\t\t\t\tfsz[i]=0;\n\t\t\t\t break;\n\t\t\t}\n\n\t\t\t\n\t\t\n\t\t}\n\t}\n\tfor(i=0;i='0'&&a[j]<='9')||(a[j]>='A'&&a[j]<='Z')||(a[j]>='a'&&a[j]<='z')||a[j]=='_')||(j==0&&a[j]>='0'&&a[j]<='9'))\n\t\t\t{check=0;\n \t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\tif(check==0)\n\t\t\t{\tprintf(\"no\");\n\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\tprintf(\"yes\");\n\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\tcheck=1;\n\t\t\tfor(j=0;j<=strlen(a)-1;j++)\n\t\t\t\ta[i]=0;\n\t}\n\t\t\t\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42383", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar zfc[50][20];\n\tint i,j;\n\tfor(i=0;i=65 && zfc[i][0]<=90) || (zfc[i][0]>=97 && zfc[i][0]<=122)){\n\t\t\tflag=1;\n\t\t\tfor(j=1;j=65 && zfc[i][j]<=90) || (zfc[i][j]>=97 && zfc[i][j]<=122) || zfc[i][j]=='0' || zfc[i][j]=='1' || zfc[i][j]=='2' || zfc[i][j]=='3' || zfc[i][j]=='4' || zfc[i][j]=='5' || zfc[i][j]=='6' || zfc[i][j]=='7' || zfc[i][j]=='8' || zfc[i][j]=='9'){\n\t\t\t\t\tflag++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag==k){\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42384", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,i,m,j,add=0;\n\tchar sz[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&sz[j]<='Z'||sz[j]>='a'&&sz[j]<='z'||sz[j]=='_'||sz[j]>='0'&&sz[j]<='9')){\n\t\t\t\tif(j==0&&(sz[j]<'0'||sz[j]>'9'))\n\t\t\t\t\tadd++;\n\t\t\t\tif(j>0)\n\t\t\t\t\tadd++;\n\t\t\t}\n\t\t}\n\t\tif(add==m)\n\t\t\tprintf(\"yes\\n\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\\n\");\n\t\tadd=0;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42385", "code": "void main()\n{\n\tint n,l,i,j;\n\tchar a[100][100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&& a[i][0]<='Z') || (a[i][0]>='a' && a[i][0]<='z') || a[i][0]=='_')\n\t\t\t\tt=0;\n\t\t\telse\n\t\t\t{\n\t\t\t\tt=-1;\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tl=strlen(a[i]);\n\t\t\tj=1;\n\t\t\twhile(j='A' && a[i][j]<='Z')||(a[i][j]>='a' && a[i][j]<='z')||(a[i][j]>='0' && a[i][j]<='9')|| a[i][j]=='_')\n\t\t\t\t\tt=0;\n\t\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt=-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t}\n\t\t\tif(t==-1)\n\t\t\t\tprintf(\"no\\n\");\n\t\t\tif(t==0)\n\t\t\t\tprintf(\"yes\\n\");\n\t}\n}\n\n"} +{"label": "85", "index": "42386", "code": "int main(){\n char a[100];\n int i,j,k,l,n,m[100],o,p;\n scanf(\"%d\",&n);\n for(j=0;j=48)||(a[i]<=90&&a[i]>=65)||(a[i]<=122&&a[i]>=97)||(a[i]==95))&&(a[0]>57||a[0]<48));\n else\n o=1;\n \n m[j]=o;\n }\n \n for(j=0;j=48 && s[i][0]<=57)\n\t\t\t\tbreak;\n\t\t\tif(!((*p>=48 && *p<=57) || (*p>=65 && *p<=90) || (*p>=97 && *p<=122) || *p=='_'))\n\t\t\t\tbreak;\n\t\t}\n\t\tif(*p!=0)\n\t\t\tprintf(\"no\\n\");\n\t\telse if(*p==0)\n\t\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42388", "code": "void fun(char s[][31],int n);\nint i,j;\nvoid main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar s[100][31];\n\tfor(i=0;i='0'&&s[i][j]<='9')||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]=='_'))\n\t\t\t\tt*=1;\n\t\t\telse\n\t\t\t{\n\t\t\t\tt*=0;break;\n\t\t\t}\n\t\tif(t==0||(s[i][0]>='0'&&s[i][0]<='9'))\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n}"} +{"label": "85", "index": "42389", "code": "int main()\n{\n int i, j, n; \n scanf(\"%d\", &n); \n for (i = 0; i < n; i++) \n\t{ \n char s[1000]; \n scanf(\"%s\\n\", s);\n int l=strlen(s);\n s[l]='\\0';\n int flag=1;\n for (int j=0;j= 'A' && s[j] <= 'Z') \n ||(s[j] >= 'a' && s[j] <= 'z')\n ||(s[j] >= '0' && s[j] <= '9' && j > 0)\n ))\n \t{flag=0;break;}\n \t}\n if (flag==1){printf(\"yes\\n\");}\n else if(flag==0){printf(\"no\\n\");}\n }\n \treturn 0;\n}\n\n"} +{"label": "85", "index": "42390", "code": "int main()\n{\n\tchar a[20];\n\tint n;\n\tcin>>n;\n\tint count=0;\n\tfor (int i=1;i<=n;i++)\n\t{\n\t\tcin>>a;\n\t\tint j;\n\t\tif (a[0]!='_' && (a[0]<65 || a[0]>122 || (a[0]>90 && a[0]<97) ) ) //:????????????????\n\t\t{\n\t\t\tj=0;\n\t\t\tgoto stop1;\n\t\t}\n\t\tfor (j=1;a[j]!='\\0';j++)\n\t\t{\n\t\t\tif ( a[j]!='_' && (a[j]<48 || (a[j]>57&&a[j]<65) || (a[j]>90&&a[j]<97) || a[j]>122) ) //:?????????????????\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\nstop1:\tif (j==strlen(a))\n\t\t{\n\t\t\tcout<<\"yes\"<='a'&&ba[i]<='z')||(ba[i]>='A'&&ba[i]<='Z')||ba[i]=='_')){printf(\"no\\n\");\n break;\n }}\n if(i!=0){\n if(!((ba[i]>='a'&&ba[i]<='z')||(ba[i]>='A'&&ba[i]<='Z')||(ba[i]>='0'&&ba[i]<='9')||ba[i]=='_')){\n printf(\"no\\n\");\n break; }\n }\n if(ba[i+1]=='\\0'){printf(\"yes\\n\");}\n } \n }\n return 0;\n}"} +{"label": "85", "index": "42392", "code": "int main()\n{\n\tint n,i,j,m;\n\tchar s[1000][21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0')&&(s[i][0]<='9'))\n\t\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t{\n\t\t\tfor(j=0;s[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tm=0;\n\t\t\t\tif((s[i][j]>='A' && s[i][j]<='Z')||(s[i][j]>='a' && s[i][j]<='z')||s[i][j]=='_' ||((s[i][j]>='0')&&(s[i][j]<='9')))\n\t\t\t\t\tcontinue;\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tm=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tif(m==1)\n\t\t\t\tcontinue;\n\t\t\tprintf(\"yes\\n\");\n\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42393", "code": "int main()\n{\n\tint num;\n\tchar a[22];\n\tcin >> num;\n\tfor(int i = 0; i < num; i ++)\n\t{\n\t\tcin >> a;\n\t\t//cout << a << \" \";\n\t\tint n;\n\t\tn = strlen(a);\n\t\t//cout << n << \" \";\n\t\tint j;\n\t\tfor(j = 0; j < n; j ++)\n\t\t{\n\t\t\tif( a[0] >= '0' && a[0] <= '9' )\n\t\t\t{\n\t\t\t\tcout << \"no\" << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif( a[j] >= 'a' && a[j] <= 'z' || a[j] >= 'A' && a[j] <= 'Z' || a[j] >= '0' && a[j] <= '9' || a[j] == '_')\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"no\" << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//cout << \"j =\" <=65&&a[0]<=90)||(a[0]>=97&&a[0]<=122))&&((a[j]>=48&&a[j]<=57)||(a[j]>=65&&a[j]<=90)||(a[j]>=97&&a[j]<=122)||a[j]=='_'))\n\t\t\tk=k+1;\n\t\t}\n\t\tif(k==l-1) printf(\"yes\\n\");\n\t\telse if(k'z')&&(*s<'A'||*s>'Z'))\n\t\t\treturn 0;\n\t\tif(*(s+i)!='_'&&(*(s+i)<'a'||*(s+i)>'z')&&(*(s+i)<'A'||*(s+i)>'Z')&&(*(s+i)>'9'||*(s+i)<'0'))\n\t\t\treturn 0;\n\t}\n\treturn 1;\n}"} +{"label": "85", "index": "42396", "code": "int main(){\n char a[1000][21];\n int b,i,k;\n scanf(\"%d\",&b);\n for(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')){\n for(k=1;a[i][k]!='\\0';k++){\n if(a[i][k]=='_'||(a[i][k]>='a'&&a[i][k]<='z')||(a[i][k]>='A'&&a[i][k]<='Z')||(a[i][k]>='0'&&a[i][k]<='9'))\n continue;\n else\n break;\n }\n if(a[i][k]!='\\0')\n printf(\"no\\n\");\n else\n printf(\"yes\\n\");\n }\n else\n printf(\"no\\n\");\n }\nreturn 0;\n}\n"} +{"label": "85", "index": "42397", "code": "\n\n\nint main(){\n\tint n,i,j,judge=0;\n\tchar zfc[21];\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')||zfc[0]=='_'){\n\t\t\t\tjudge=1;\n\t\t\t\tif((zfc[j]>='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||zfc[j]=='_'||(zfc[j]>='0'&&zfc[j]<='9')){\n\t\t\t\t\tjudge=1;\n\t\t\t\t}else{\n\t\t\t\t\tjudge=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tjudge=0;\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\n\t\tif(judge==0){\n\t\t\tprintf(\"no\\n\");\n\t\t}else{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42398", "code": "int main (){\n int n,k,z;\n scanf(\"%d\",&n);\n for(int i=0;i='a')||(sz[0]<='Z'&&sz[0]>='A')||(sz[0]=='_')){\n k++;\n }\n else{k-=100;}\n for(int m=1;m='a')||(sz[m]<='Z'&&sz[m]>='A')||(sz[m]>='0'&&sz[m]<='9')||(sz[m]=='_')){\n k++;\n }\n else{k-=100;}\n \n }\n \n if(k>0){printf(\"yes\\n\");}\n else{printf(\"no\\n\");}\n \n }\n \nreturn 0; \n}\n"} +{"label": "85", "index": "42399", "code": "int main()\n{\n\tint n,i,b,j,d=1,l[100];\n\tchar a[100][20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=65&&b<=90)||(b>=97&&b<=122))\n\t\t{\n\t\t\tfor(j=1;j=65&&b<=90)||(b>=97&&b<=122)||(b>=48&&b<=57))\n\t\t\t\t{\n\t\t\t\t\td=d+1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\td=d-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\n\t\t\t}\t\t\t\n\t\t\tif(d==l[i])\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\td=1;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42400", "code": "\nchar *judge(char *head)\n{\n\tint i,k=0;\n\tchar *put=NULL;\n\tif(((*head<='z')&&(*head>='a'))||((*head<='Z')&&(*head>='A'))||(*head=='_'))\n\t{\n\t\tif(strcmp(head,\"int\")==0||strcmp(head,\"double\")==0||strcmp(head,\"float\")==0||strcmp(head,\"for\")==0||strcmp(head,\"else\")==0||strcmp(head,\"if\")==0)\n\t\t put=\"no\";\n\t\t\n\t\telse\n\t\t\n\t\t{\n\t\t\tfor(i=1;*(head+i)!='\\0';i++)\n\t\t\n\t\t\t{\n\t\t\t\n\t\t\t\tif(((*(head+i)<='z')&&(*(head+i)>='a'))||((*(head+i)<='Z')&&(*(head+i)>='A'))||(*(head+i)<='9')&&(*(head+i)>='0')||(*(head+i)=='_'))\n\t\t\t\t\n\t\t\t\t\tk++;\n\t\t\t\n\t\t\t\telse\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\tput=\"no\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t\tif(strlen(head)-1==k)\n\t\t\t\tput=\"yes\";\n\t\t}\n\n\t}\n\t\n\telse\n put=\"no\";\n\n\treturn(put);\n}\n\nvoid main()\n{\n\tint n,i;\n char a[22]={'0'};\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i>n;\n\tcin.get();\n\twhile(n)\n\t{\n\t\tchar a[100];\n\t\tj=0;\n\t\tgets(a);\n\t\tfor(i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z'))\n\t\t\t\t j++;\n\t\t\t else\n\t\t\t\t break;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')||a[i]=='_'||(a[i]>='0'&&a[i]<='9'))\n\t\t\t\t j++;\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j==strlen(a))\n\t\t\tcout<<\"yes\"<='0'&&x<='9') return(0);\n\telse if(x>='A'&&x<='Z') return(1);\n\telse if(x>='a'&&x<='z') return(1);\n\telse if(x=='_') return(1);\n\telse return(2);\n}"} +{"label": "85", "index": "42403", "code": "int main()\n{\n\tchar s[max+1];\n\tint i,j,n,r=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A')||(s[0]<='z'&&s[0]>='a')||(s[0]=='_')){\n\t\t\t\t\t r++;\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tr=-1;\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t\tif((j!=0&&s[j]<='9'&&s[j]>='0')||(j!=0&&s[j]<='Z'&&s[j]>='A')||(j!=0&&s[j]<='z'&&s[j]>='a')||(j!=0&&s[j]=='_')){\n r++;\n\t\t\t}else{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tr=-1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(r==j){printf(\"yes\\n\");}\n\t\t\tr=0;\n\t}\n\n\treturn 0;\n}"} +{"label": "85", "index": "42404", "code": "int main()\n{\n\tchar a[21];\n\tint n,i,j,a1;\n\tint m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0')\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tm+=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((a[j]<='z'&&a[j]>='a')||(a[j]<='Z'&&a[j]>='A')||(a[j]<='9'&&a[j]>='0')||a[j]=='_')\n\t\t\t{\n\t\t\t\tm+=0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm+=1;\n\t\t\t}\n\t\t\tif(m==1)\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(m==0)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42405", "code": "int main()\n{\n int n,l,i,j;\n\tscanf(\"%d\",&n);\n\tchar s[81];\n\tfor(i=0;i='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||s[0]=='_'){\n\t\t\t\t\tif((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||s[j]=='_'||(s[j]>='0'&&s[j]<='9')){\n\t\t\t\t\t\tif(j==l-1){\n\t\t printf(\"yes\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42406", "code": "int main(int argc, char* argv[])\n{ int n,i,j,k;\n char p[21];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%s\",p);\n\t if(p[0]>='0'&&p[0]<='9')\n\t {\n\t\t printf(\"no\\n\");\n\t }\n\t else\n\t {\n\t for(j=0,k=0;j='A'&&p[j]<='Z')||p[j]=='_'||(p[j]>='a'&&p[j]<='z')||(p[j]>='0'&&p[j]<='9'))\n k++;\t\n\t }\n\t if(j==k)\n\t\t printf(\"yes\\n\");\n\t else\n\t\t printf(\"no\\n\");\n\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42407", "code": "int main() {\n\tint n,i,a,b;\n\tchar zfc[21];\n\tscanf(\"%d\",&n);\n\twhile(n!=0){\n\t\tscanf(\"%s\",zfc);\n\t\tif((zfc[0]>='a' && zfc[0]<='z')||(zfc[0]>='A' && zfc[0]<='Z')||(zfc[0]=='_')){\n\t\t\ta=1;\n\t\t}else{a=0;}\n\t\tif(a==1){\n\t\t\tfor(i=1;zfc[i]!='\\0';i++){\n\t\t\t\tif((zfc[i]>='a' && zfc[i]<='z')||(zfc[i]>='A' && zfc[i]<='Z')||(zfc[i]=='_')||(zfc[i]>='0' && zfc[i]<='9')){\n\t\t\t\t\tb=1;\n\t\t\t\t}else{\n\t\t\t\t\tb=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(a==1 && b==1){printf(\"yes\\n\");}\n\t\telse if(a==0 || (a==1 && b==0)){printf(\"no\\n\");}\n\t\tn--;\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42408", "code": "void main()\n{\n\tint i,n,j,flag;\n\tchar t;\n\tchar c[21]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&t<='z')||(t>='A'&&t<='Z')||t=='_')\n\t\t\twhile((t=c[j])!='\\0')\n\t\t\t\tif((t>='a'&&t<='z')||(t>='A'&&t<='Z')||t=='_'||(t>='0'&&t<='9'))j++;\n\t\t\t\telse {flag=0;break;}\n\t\telse {flag=0;}\n\t\tif(flag==1)printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n}"} +{"label": "85", "index": "42409", "code": "\nvoid function(int,int);\n\nint main()\n{\n char s[20][100];\n int i,j,a,k;\n scanf(\"%d\",&a);\n\n for(i=0;i='0')\n {\n printf(\"no\\n\");\n continue;\n }\n for(j=0;j='0')||(s[i][j]<='Z'&&s[i][j]>='A')||(s[i][j]<='z'&&s[i][j]>='a')||(s[i][j]=='_')))==0)\n {\n printf(\"no\\n\");\n k=1;\n break;\n }\n }\n if(k==0) printf(\"yes\\n\");\n }\n\n return 0;\n\n}"} +{"label": "85", "index": "42410", "code": "\nint main()\n{\n\tint n,i,j,sum=0,len;\n\tchar a[23];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&a[0]<='z'))\n\t\t{\n\t\t\tfor(j=1;j<=len;j++)\n\t\t\t{\n\t\t if ((a[j]>='A'&&a[j]<='Z')||(a[j]>='a'&&a[j]<='z')||(a[j]=='_') ||(a[j]>='0'&&a[j]<='9'))\n sum++;\n\t\t\t}\n\t if(sum==len-1)\n\t\t {\n\t\t printf(\"yes\\n\");\n\t\t }\n\t\t else\n\t\t {\n printf(\"no\\n\");\n\t\t }\n\t\t}\n\t\t\telse\n\t\t{\n\t\t\t printf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42411", "code": "int main()\n{\n int n;\n char sr[100][100];\n int i,j,p;\n char ddd;\n scanf(\"%d\",&n); \n scanf(\"%c\",&ddd);\n for(i=0;i='A'&&sr[i][j]<='Z')||(sr[i][j]>='a'&&sr[i][j]<='z')||(sr[i][j]=='_'))\n p=1; \n else\n {\n p=0;\n break;\n }\n }\n else if(j>0)\n {\n if ((sr[i][j]>='A'&&sr[i][j]<='Z')||(sr[i][j]>='a'&&sr[i][j]<='z')||(sr[i][j]=='_')||(sr[i][j]>='0'&&sr[i][j]<='9'))\n p=1;\n else\n {\n p=0;\n break;\n }\n }\n }\n if(p==0) printf(\"no\\n\");\n else printf(\"yes\\n\");\n } \n \n return 0;\n}"} +{"label": "85", "index": "42412", "code": "int main()\n{\n\tint i,j,n,count=0,len;\n\tchar fig[N+1];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i'Z'&&fig[0]<'_')||(fig[0]>'_'&&fig[0]<'a')||(fig[0]>'z'))\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\tfor (j=1;j'9'&&fig[j]<'A'||(fig[j]>'Z'&&fig[j]<'_')||(fig[j]>'_'&&fig[j]<'a')||(fig[j]>'z')))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t}\n\t\tif (count==0)\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\tcount=0;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42413", "code": "\nint main()\n{\n\tint i,n,j,b;\n\tint t;\n\tscanf(\"%d\",&n);\n\tchar a[100];\n\t\tfor(i=0;i='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z'))\n {\n\t\t\t\tb=0;\n\t\t\t\tfor(j=1;j='0'&&a[j]<='9')||(a[j]>='a'&&a[j]<='z')||(a[j]>='A'&&a[j]<='Z'))\n\t\t\t\t\t{\n\t\t\t\t\t\tb=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n {\n\t\t\t\t\t\tb=1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\n\t\t\t\tif(b==1)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"yes\\n\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\n\treturn 0;\n}\n"} +{"label": "85", "index": "42414", "code": "\nint main()\n{\nint p,i,n,l,a[10000],k;\nchar q[10000][20];\nscanf(\"%d\",&n);\nfor(i=0;i=65)&&(p<=90))||((p>=97)&&(p<=122))||(p==95))\n{continue;}\nelse\n{a[i]=0;\nbreak;}\n}\nelse\n{if(((p>=65)&&(p<=90))||((p>=97)&&(p<=122))||((p>=48)&&(p<=57))||(p==95))\n{continue;}\nelse\n{a[i]=0;\nbreak;}\n}\n}\n}\nfor(i=0;i='A')&&(s[0]<='Z'))||((s[0]>='a')&&(s[0]<='z')))\n\t{\n\t\tfor(j=1;j='A')&&(s[j]<='Z'))||((s[j]>='a')&&(s[j]<='z'))||((s[j]>='0')&&(s[j]<='9')))\n\t\t\t{k++;}\n\t\t}\n\t\tif(k==(len-1))\n\t\t{\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\tif(k!=(len-1))\n\t\t{printf(\"no\\n\");}\n\t}\n\telse\n\t{\n\t\tprintf(\"no\\n\");\n\t}\n}\nreturn 0;\n}\n"} +{"label": "85", "index": "42416", "code": "int main()\n{\n\tint n,i,j,a=0;\n\tchar s[20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&s[0]<='z')||(s[0]>='A'&&s[0]<='Z')||s[0]=='_')\n\t\t{\t\n\t\t\tfor(j=1;s[j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||s[j]=='_'||(s[j]>='0'&&s[j]<='9'))\n\t\t\t\t\tcontinue;\n\t\t\t else\n\t\t\t\t\ta=1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\ta=1;\n\t\tif(a==1)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf(\"yes\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "85", "index": "42417", "code": "int main()\n{\nint n,m,i,j,k,w;\n\nchar sfc[50];\nscanf(\"%d\",&n);\nfor (i=0;i=48 && sfc[0]<=57)k=1;\nfor(j=0;j=48 && sfc[j]<=57) || (sfc[j]>=65 && sfc[j]<=90) || (sfc[j]>=97 && sfc[j]<=122) || sfc[j]==95 ){\tw=1;}\n\telse {\n\t w=0;\n\t break;\n\t}\n\t\n\t\n}\n\n\nif(w==0 || k==1) printf(\"no\\n\");\n\nelse printf(\"yes\\n\");\n}\nreturn 0;\n}"} +{"label": "85", "index": "42418", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar str[100][30];\n\tint i,j,k;\n\tfor(i=0;i'Z')&&(str[i][0]<'a'||str[i][0]>'z')&&(str[i][0]!='_'))\n\t\t{k=1;}\n\t\tfor(j=0;j'Z')&&(str[i][j]<'a'||str[i][j]>'z')&&(str[i][j]<'0'||str[i][j]>'9')&&(str[i][j]!='_'))\n\t\t {k=1;break;}\n\t\t}\n\t\tif(k==0){printf(\"yes\\n\");}\n\t\tif(k==1){printf(\"no\\n\");}\n\t}\nreturn 0;\n}\n"} +{"label": "85", "index": "42419", "code": "\nint main()\n{\n int n,i;\n scanf(\"%d\",&n);\n for(i = 0;i < n;i++)\n {\n char input[100];\n int len,j = 0;\n scanf(\"%s\",input);\n len = strlen(input);\n if(input[0] == '_' || (input[0]>='a' && input[0]<='z') || (input[0]>='A' && input[0]<='Z'))\n {\n for(j = 1;j < len;j++)\n if(!(input[j] == '_' || (input[j]>='a' && input[j]<='z') || (input[j]>='A' && input[j]<='Z') || (input[j] >= '0' && input[j] <= '9')))\n break;\n }\n if(j == len)\n printf(\"yes\\n\");\n else\n printf(\"no\\n\");\n }\n return 0;\n}"} +{"label": "85", "index": "42420", "code": "int main()\n{\n\tint n,i,j,lm=0;\n\tchar a[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&a[j]<='Z')||(a[j]>='a'&&a[j]<='z')||(a[j]>='0'&&a[j]<='9'&&j>0))\n\t\t\t{\n\t\t\t\tt[i]=1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tt[i]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=65&&a[i][0]<=90)||a[i][0]==95||(a[i][0]>=97&&a[i][0]<=122))\n\t\t{\n\t\t\tfor(j=1;j<21&&a[i][j]!='\\0';j++)\n\t\t\t{\n\t\t\t\tif((a[i][j]>=48&&a[i][j]<=57)||(a[i][j]>=65&&a[i][j]<=90)||a[i][j]==95||(a[i][j]>=97&&a[i][j]<=122))\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(a[i][j]=='\\0')\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42423", "code": "void main()\n{\n\tint n,i,sum,count=0;\n\tchar num[30][21]={'\\0'};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A' && num[i][k]<='Z') || (num[i][k]>='a' && num[i][k]<='z') || num[i][k]=='_') \n\t\t\t\t{\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif((num[i][k]>='A' && num[i][k]<='Z') || (num[i][k]>='a' && num[i][k]<='z') || (num[i][k]>='0' && num[i][k]<='9') || num[i][k]=='_') \n\t\t\t\t{\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\tif(tmp==len) printf(\"yes\\n\");\n\t}\n}\n\n/*?? - ?? C ???? \n \n?? ???? ???? 06 ????? ???? \n?? \n??n????????????????????C?????????????????????C????????\n \n???? \n??????n???n?????????????????????????????20?\n \n???? \n?????????????C????????????yes?????no?\n \n???? \n6\nGUE9NF1Ic\ncGB8nd97F3\nRKPEGX9R;TWyYcp\niefZIko1s}zy9XBg\nsapOF3\n6Lv5BYPeLPJ3vV`2[h\n \n*/"} +{"label": "85", "index": "42424", "code": "int main()\n{\nint n;\nscanf(\"%d\",&n);\nchar zfc[100][20];\nint i,j;\nint e;\nfor(i=0;i='0'&&zfc[i][j]<='9')||(zfc[i][j]==95)||(zfc[i][j]>='A'&&zfc[i][j]<='Z')||(zfc[i][j]>='a'&&zfc[i][j]<='z'))\n\t\t{\n\t\t\tif(j==0)\n\t\t\t{\n\t\t\t\tif(zfc[i][0]>='0'&&zfc[i][0]<='9')\n\t\t\t\t{\n\t\t\t\tk+=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\tk+=0;\n\t\t\t\t}\n\t\t\t}\n\t\tk+=0;\n\t\t}\n\t\telse\n\t\t{\n\t\tk+=1;\n\t\t};\n\t}\n\t\n\tif(k==0)\n\t{\n\t\tif(i==(n-1))\n\t\t{\n\t\t\tprintf(\"yes\");\n\t\t}\n\t\telse{printf(\"yes\\n\");}\n\t}\n\telse\n\t{\n\t\tif(i==(n-1))\n\t\t{printf(\"no\");}\n\t\telse{\n\t\t\tprintf(\"no\\n\");}\n\t}\n\n}\n\nreturn 0;\n}\n\n"} +{"label": "85", "index": "42425", "code": "int main()\n{\n\tchar a[20][20];\n\tint n,i,j,l,result[20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&a[i][0]<='z')||(a[i][0]>='A'&&a[i][0]<='Z')||(a[i][0]=='_'))\n\t\t{\n\t\t for(j=1;j='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='0'&&a[i][j]<='9')||(a[i][j]=='_')))\n\t \t\t{\n\t\t \t\tresult[i]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(j==l-1)\n\t\t\t\t{\n\t\t\t\t\tif((a[i][j]>='a'&&a[i][j]<='z')||(a[i][j]>='A'&&a[i][j]<='Z')||(a[i][j]>='0'&&a[i][j]<='9')||(a[i][j]=='_'))\n\t\t\t\t\t{\n\t\t\t\t\t\tresult[i]=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tresult[i]=0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult[i]=0;\n\t\t}\n\t}\n\tfor(i=0;i='a'))||((a[j]<='Z')&&(a[j]>='A'))||((a[j]<='9')&&(a[j]>='0'))))\n\t\t\t\tt=1;\n\t\t\tj++;\n\t\t}\n\t\tt=t+((a[0]<='9')&&(a[0]>='0'));\n\t\tif(t==0)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42427", "code": "int main(){\n char s[21];\n int n,i,j;\n int b[100]={0};\n scanf(\"%d\",&n);\n \n for(i=0;i='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9'&&j>0)){\n continue;\n }else{\n b[i]=1;\n break;\n }\n }\n }\n for(i=0;i>n;\n cin.get();\n \n for(int i=0;i='0'&&a[0]<='9')\n\t\t judge=0;\n\t\t else\n\t\t for(int j=0;j'9')&&(a[j]<'A'||a[j]>'Z')&&(a[j]<'a'||a[j]>'z')&&a[j]!='$'&&a[j]!='_')\n\t\t\t{\n\t\t\t\t judge=0; break;\n\t\t\t }\n\t\t\t /* if (a[j]=='_' && a[j+1]=='_') \n\t\t\t {\n\t\t\t\t judge=0;break;\n\t\t\t }*/\n\t\t}\n\t\t if(judge==1) cout<<\"yes\"<='A'&&zfc[0]<='Z')||(zfc[0]>='a'&&zfc[0]<='z')||(zfc[0]=='_')){\n for(i=1;zfc[i]!='\\0';i++){\n if((zfc[i]>='A'&&zfc[i]<='Z')||(zfc[i]>='a'&&zfc[i]<='z')||(zfc[i]=='_')||(zfc[i]>='0'&&zfc[i]<='9')){\n result=1;\n }else{\n result=0;\n break; \n }\n }\n }else{\n result=0;\n }\n if(result==1){\n printf(\"yes\\n\");\n }else{\n printf(\"no\\n\");\n }\n }\n return 0;\n} "} +{"label": "85", "index": "42430", "code": "const int M = 21;\n\nint main(int argc, char* argv[])\n{\n\tchar s[M];\n\tint n,i,j;\n\tscanf(\"%d\",&n);\n\ti = n;\n\twhile(i--)\n\t{\n\t\tscanf(\"%s\",&s);\n\t\tfor(j = 0;s[j]!='\\0';j++)\n\t\t{\n\t\t\t//48-57 65-90 97-122\n\t\t\tif(!((s[j]=='_')||(s[j]>='0'&& s[j]<='9' && j>0)||(s[j]>='a'&& s[j]<='z')||(s[j]>='A'&& s[j]<='Z')))\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(s[j] ? \"no\\n\":\"yes\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42431", "code": "int main()\n{\n\tint n,flag;\n\tchar a[22];\n\tcin>>n;\n\tcin.get();\n\twhile(n--){\n\t\tflag=0;\n\t\tcin.getline(a,22);\n\t\tfor(int i=0;a[i]!='\\0';i++){\n\t\t\tif(a[0]<65||(a[0]>90&&a[0]<97&&a[0]!=95)||a[0]>122){\n\t\t\t\tcout<<\"no\"<57&&a[i]<65)||(a[i]>90&&a[i]<97&&a[i]!=95)||a[i]>122){\n\t\t\t\tcout<<\"no\"<='a'&&zfc[0]<='z')||(zfc[0]>='A'&&zfc[0]<='Z')||(zfc[0]=='_')){\n for(j=1;j='a'&&zfc[j]<='z')||(zfc[j]>='A'&&zfc[j]<='Z')||(zfc[j]=='_')||(zfc[j]>='0'&&zfc[j]<='9'))){\n puts(\"no\");\n break;\n }\n if(j==l-1){\n puts(\"yes\");\n }\n }\n }else puts(\"no\");\n }\n\n return 0;\n}\n\n\n\n\n\n\n"} +{"label": "85", "index": "42433", "code": "int main()\n{\n int i,j,n;\n char s[21],x[99]; \n scanf(\"%d\",&n); \n for (i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)))\n\t\t\t{\n\t\t\t\tx[i]=0;\n break;\n\t\t\t}\n\t\t\telse\n\t\t\t\tx[i]=1;\n }\n\t}\n \n\n\t\tfor (i=0;i'z'||(a[i][j]<'a'&&a[i][j]>'Z')||(a[i][j]<'A'&&a[i][j]>'9'))&&a[i][j]!='_')\n\t\t\t{ k=0;break;}\n\t\t\telse if(a[i][0]>='0'&&a[i][0]<='9')\n\t\t\t{\n\t\t\t\tk=0;break;}\n\t\t\tk=1;\n\t\t}\n\t\tif(k) printf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t}\n}"} +{"label": "85", "index": "42435", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tint o;\n\tfor(o=0;o>str;\n\t\tif(str[0]==95||(str[0]<=122&&str[0]>=97)||(str[0]<=90&&str[0]>=65))\n\t\t{\n\t\t\tint i;\n\t\t\tfor(i=1;str[i]!='\\0';i++)\n\t\t\t{\n\t\t\t\tif(str[i]==95||(str[i]<=122&&str[i]>=97)||(str[i]<=90&&str[i]>=65)||(str[i]<=57&&str[i]>=48))\n\t\t\t\t\tpan=1;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpan=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tpan=0;\n\t\tif(pan==1)\n\t\t\tcout<<\"yes\"<='a')||(zf[0]<='Z'&&zf[0]>='A')||zf[0]=='_')&&((zf[j]<='z'&&zf[j]>='a')||(zf[j]<='Z'&&zf[j]>='A')||zf[j]=='_'||(zf[j]>='0'&&zf[j]<='9'))){\n\t\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tif(c==b)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42437", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n char s[100][100]; \n int i,j,a[100]; \n for(i=0;i='A'&&s[i][j]<='Z')|| (s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]=='_'))\n a[i]=1;\n else { \n a[i]=0; \n break; \n }\n }\n else if(j>0){\n if ((s[i][j]>='A'&&s[i][j]<='Z')||(s[i][j]>='a'&&s[i][j]<='z')||(s[i][j]=='_') || (s[i][j]>='0'&&s[i][j]<='9'))\n a[i]=1; \n else { a[i]=0; break; } }\n else { a[i]=0; break; } } \n if(a[i]==0) printf(\"no\\n\"); \n else printf(\"yes\\n\"); } \n return 0;\n }"} +{"label": "85", "index": "42438", "code": "int main(){\n\tint n,c;\n\tscanf(\"%d\",&n);\n\tchar sz[21];\n\tfor(int i=0;i='A'&&sz[j]<='Z')||\n\t\t\t\t(sz[j]>='a'&&sz[j]<='z')||\n\t\t\t\t(sz[j]>='0'&&sz[j]<='9'&&j>0))){\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\tif(c!=0){printf(\"no\\n\");}\n\t\tif(c==0){printf(\"yes\\n\");}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42439", "code": "int main()\n{\n\tint n,p;\n\tchar s[100];\n\tcin>>n;cin.getline(s,1);\n\twhile (n>0)\n\t{\n\tcin.getline(s,100);\n\tint l=strlen(s);\n\tp=0;\n\tif ((s[0]=='_')\n\t|| ((s[0]-'a'>=0)&&(s[0]-'a'<26))\n\t|| ((s[0]-'A'>=0)&&(s[0]-'A'<26))) p=1;\n\tfor (int i=1;i=0)&&(s[i]-'a'<26))\n\t|| ((s[i]-'A'>=0)&&(s[i]-'A'<26))\n\t|| ((s[i]-'0'>=0)&&(s[i]-'0'<10))\n\t\t))\n\t\tp=0;\n\t\tif (p) cout<<\"yes\"<>l;\n}\n"} +{"label": "85", "index": "42440", "code": "int main ()\n{\nint n,x;\ncin >> n;\nfor(int i=0 ;i>a;\nfor(int j=0;a[j]!='\\0';j++)\n{\nif(j==0) {if((a[j]>64&&a[j]<91)||(a[j]>96&&a[j]<123)||a[j]=='_') continue;}\nelse if((a[j]>64&&a[j]<91)||(a[j]>96&&a[j]<123)||a[j]=='_'||(a[j]>47&&a[j]<58)) continue;\nx=1;\n}\nif(x==0) cout<<\"yes\"< 'Z') && (ch < 'a' || ch > 'z') && (ch != '_'))\n {\n return 0;\n }\n for (p++; *p; p++)\n {\n ch = *p;\n if ((ch < 'A' || ch > 'Z') && (ch < 'a' || ch > 'z') && (ch != '_') && (ch < '0' || ch > '9'))\n {\n return 0;\n }\n }\n return 1;\n}\n\nint main()\n{\n char name[33];\n int n;\n\n scanf(\"%d\", &n);\n while (n--)\n {\n scanf(\"%s\", name);\n\n if (isidentifor(name))\n {\n printf(\"yes\\n\");\n }\n else \n {\n printf(\"no\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42442", "code": "void main()\n{\n\tint n,i,j,k;\n\tchar a[1500][20];\n\tint b[1500];\n\tint c[1500]={0}; //???????0 ????1\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&a[j][i]<='z')||(a[j][i]>='A'&&a[j][i]<='Z')||(a[j][i]>='0'&&a[j][i]<='9')||(a[j][i]=='_'))\n\t\t\t\tk++;\n\t\t}\n\t\tif(k==b[j])\n\t\t\tc[j]=1;\t\n\t\tif((a[j][0]>='0')&&(a[j][0]<='9')) //??????~\n\t\t\tc[j]=0;\n\t}\n\tfor(j=0;j=48&&a[i][0]<=57){\n printf(\"no\\n\");\n special++;\n break;\n }\n if(a[i][j]!=95&&(a[i][j]<65||a[i][j]>90)&&(a[i][j]<97||a[i][j]>122)&&(a[i][j]<48||a[i][j]>57)){\n printf(\"no\\n\");\n special++;\n break;\n }\n }\n if(special==0){\n printf(\"yes\\n\");\n }\n special=0;\n }\n return 0;\n}"} +{"label": "85", "index": "42444", "code": "\nint main()\n{\n\tchar a[100];\n\tint n,i,j,flag;\n\tcin>>n;\n\tcin.get();\n\tfor(i=0;i90&&a[0]<97)||a[0]>122))\n\t\t{\n\t\t\tcout<<\"no\"<90&&a[j]<97)||a[j]>122)&&(a[j]<48||a[j]>57))\n\t\t\t\t{\n\t\t\t\t\tcout<<\"no\"<='0'&&zfc[i][j]<='9'&&!(zfc[i][0]>='0'&&zfc[i][0]<='9')){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(zfc[i][j]>='a'&&zfc[i][j]<='z'){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(zfc[i][j]>='A'&&zfc[i][j]<='Z'){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(zfc[i][j]=='_'){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j==l){\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42446", "code": "int main()\n{\n char s[100];\n int i,n,l=0,j,k=0;\n scanf(\"%d\",&n);\n for (i=0;i='A')&&(s[0]<='Z'))||((s[0]>='a')&&(s[0]<='z'))||(s[0]=='_') )\n {for (j=1;j='A')&&(s[j]<='Z'))||((s[j]>='a')&&(s[j]<='z'))||(s[j]=='_')||((s[j]>='0')&&(s[j]<='9')))\n k++;\n else\n {puts(\"no\"); k=0;break;}\n \n if (k+1==l) {puts(\"yes\");k=0;}} \n \n else\n {puts(\"no\");k=0;}\n }\n \n return 0; \n \n}\n\n"} +{"label": "85", "index": "42447", "code": "int main()\n{\n int n,i,j;\n\tscanf(\"%d\",&n);\n\tint length[1000];\n\tchar a[1000][20];\n\tfor(i=0;i=48&&a[i][0]<=57)\n\t\t{\n\t\t\tprintf(\"no\");\n\t\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\tfor(j=0;j<20;j++)\n\t\t\t{\n\t\t\t\tif(a[i][j]<48)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(a[i][j]>=58&&a[i][j]<=64)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(a[i][j]>=91&&a[i][j]<=94 ||a[i][j]==96)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(a[i][j]>=123&&a[i][j]<=126)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\n\n\t\t\t}\n\t\t\tif(j>=length[i])\n\t\t\t{\n\t\t\t\tprintf(\"yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\");\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t\t\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\t\n\treturn 0;\n}"} +{"label": "85", "index": "42448", "code": "int main(){\n int n,b;\n scanf(\"%d\",&n);\n char zfc[N][21];\n for(int i=0;i='a'&&zfc[k][m]<='z')||(zfc[k][m]>='A'&&zfc[k][m]<='Z')){continue;}\n else {printf(\"no\\n\");break;}\n }\n if(m!=0&&m+1!=b){if((zfc[k][m]=='_')||(zfc[k][m]>='a'&&zfc[k][m]<='z')||(zfc[k][m]>='A'&&zfc[k][m]<='Z')||(zfc[k][m]>='0'&&zfc[k][m]<='9'))\n {continue;}else {printf(\"no\\n\");break;}\n }\n if(m+1==b){\n if((zfc[k][m]=='_')||(zfc[k][m]>='a'&&zfc[k][m]<='z')||(zfc[k][m]>='A'&&zfc[k][m]<='Z')||(zfc[k][m]>='0'&&zfc[k][m]<='9')){\n printf(\"yes\\n\");\n }\n else{printf(\"no\\n\");}\n }\n }\n b=strlen(zfc[k+1]);\n }\n return 0;\n}\n\n"} +{"label": "85", "index": "42449", "code": "int main()\n{\n\tint n = 0, b = 0, j = 0, flag = 0;\n\tcin >> n;\n\tcin.get();\n\tchar a[50];\n\twhile(n > 0)\n\t{\n\t\tflag = 1;\n\t\tb = 0;\n\t\tmemset(a,0,sizeof(a));\n\t\tcin.getline(a,50);\n\t\tb = strlen(a);\n\t\tif(a[0] >= '0' && a[0] <= '9')\n\t\t{\n\t\t\tflag = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(j = 0; j <= b - 1; j++)\n\t\t\t{\n\t\t\t\tif((a[j] < '0' || (a[j] > '9' && a[j] < 'A') || (a[j] > 'Z' && a[j] < 'a') || (a[j] > 'z')) && a[j] != '_')\n\t\t\t\t{\n\t\t\t\t\tflag = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flag == 0)\n\t\t{\n\t\t\tcout << \"no\" <='a')||(str[0]<='Z'&&str[0]>='A')||str[0]=='_'){\n\t for(j=1;j='a')||(str[j]<='Z'&&str[j]>='A')||(str[j]=='_')||(str[j]<='9'&&str[j]>='0'))\n\t\t\t continue;\n\t\t else\n\t\t\t break;\n\t }\n\t if(j==len)\n\t\t printf(\"yes\\n\");\n\t\telse\nprintf(\"no\\n\");\n\t }\n\t else\nprintf(\"no\\n\");\n }\n\n\treturn 0;\n}"} +{"label": "85", "index": "42452", "code": "\nint main()\n{\nint n;\nscanf(\"%d\",&n);\nchar s[100];\nchar *m;\nint i;\nint p;\nfor(i=1;i<=n;i++)\n{\n\tscanf(\"%s\",s);\n\tfor(m=s;*m!='\\0';m++)\n\t{\n\t\tif(m==s)\n\t\t{\n\t\t\tif((*m=='_')||(*m>='A'&&*m<='Z')||(*m>='a'&&*m<='z'))\n\t\t\t{\n\t\t\t\tp=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tp=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif((*m=='_')||(*m>='A'&&*m<='Z')||(*m>='a'&&*m<='z')||(*m>='0'&&*m<='9'))\n\t\t\t{\n\t\t\t\tp=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tp=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(p==1)\n\t\tprintf(\"yes\\n\");\n\telse\n\t\tprintf(\"no\\n\");\n}\nreturn 0;\n}\n\n\n\t\n"} +{"label": "85", "index": "42453", "code": "int main()\n{\n\tint n,i,j,biaoji=0;\n\tchar zifu[100][100]={'\\0'};\n\tcin>>n;\n\tfor(i=0;i>zifu[i];\n\t}\n\tfor(i=0;i=65&&zifu[i][0]<=90)||(zifu[i][0]>=97&&zifu[i][0]<=122)||zifu[i][0]==95)\n\t\t\t{\n\t\t\t\tif((zifu[i][j]>=48&&zifu[i][j]<=57)||(zifu[i][j]>=65&&zifu[i][j]<=90)||(zifu[i][j]>=97&&zifu[i][j]<=122)||zifu[i][j]==95)\n\t\t\t\t\tcontinue;\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tbiaoji=1;\n\t\t\t\t\tcout<<\"no\"<=97)||(s[0]<=90&&s[0]>=65))\n\t\t\t\tc++;\n\t\t a++;\n\t\t if(s[i]==95||(s[i]<=122&&s[i]>=97)||(s[i]<=90&&s[i]>=65)||(s[i]<=57&&s[i]>=48))\n\t\t \tc++;\n\t\t a++;\n\t\t \n\t}\n\t\t\n\tif(c==a)\n\t{printf(\"yes\\n\");}\n else\n\t{printf(\"no\\n\");}\t\n\t}\n\n\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42455", "code": "void main()\n{\n int n,i,k,j,flag;\n char key[37][20]={\"int\",\"char\",\"float\",\"double\",\"short\",\"long\",\"unsigned\",\"struct\",\"union\",\"enum\",\"auto\",\"extern\",\"register\",\"static\",\"typedef\",\"goto\",\"return\",\"sizeof\",\"break\",\"continue\",\"if\",\"else\",\"do\",\"while\",\"for\",\"switch\",\"case\",\"default\",\"void\",\"entry\",\"include\",\"define\",\"undef\",\"ifdef\",\"ifndef\",\"endif\",\"line\"};\n char a[100];\n scanf(\"%d\",&n);\n for (i=0;i122||(a[0]>90&&a[0]<97&&a[0]!=95)||a[0]<65) flag=1;\n \t\n \t\n \tfor (j=1;j122||(a[j]>57&&a[j]<65)||(a[j]>90&&a[j]<97&&a[j]!=95)) flag=1;\n \t}\n \t\n \tfor (j=0;j<37;j++) \n \t{\n \t\tif (!strcmp(key[j],a)) flag=1;\n \t}\n \t\n \tif (flag==1)\n \t{\n \t\tprintf(\"no\\n\");\n \t} \n \telse printf(\"yes\\n\");\n }\n}"} +{"label": "85", "index": "42456", "code": "int check(char a[])\n{\n\tint i,n;\n\tn=strlen(a);\n\tif(!(a[0]=='_'||(a[0]>='a'&&a[0]<='z')||(a[0]>='A'&&a[0]<='Z')))\n\t\treturn 0;\n\telse\n\t{\n\t\tfor(i=1;i='0'&&a[i]<='9')||a[i]=='_'||(a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')))\n\t\t\t\treturn 0;\n\t\t}\n\t}\n\treturn 1;\n}\nvoid main()\n{\n\tchar a[21];\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i'Z'&&str[i][0]<'a'&&str[i][0]!='_')\n\t\t\t||str[i][0]>'z')\n\t\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tfor(j=0;j'9'&&str[i][j]<'A')\n\t\t\t\t\t||(str[i][j]>'Z'&&str[i][j]<'a'&&str[i][j]!='_')\n\t\t\t\t\t||str[i][j]>'z'\n\t\t\t\t\t){\n\t\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(j==strlen(str[i])-1)\n\t\t\t\t\tprintf(\"yes\\n\");\n\treturn 0;\n}\n"} +{"label": "85", "index": "42458", "code": "int main(int argc, char* argv[])\n{\n char s[20];\n\tint n,i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||s[j]=='_')\n\t{\n\t\tif(s[j+1]=='\\0')\n\t\t \tprintf(\"yes\\n\");\n\t\tcontinue;\n\t}\n else{\n\t\t\tprintf(\"no\\n\");\n\t\tbreak;\n\t}\n\t\t}\n else\n\t\t{\n if((s[j]>='A'&&s[j]<='Z')||(s[j]>='0'&&s[j]<='9')||(s[j]>='a'&&s[j]<='z')||s[j]=='_')\n\t{\n\t\tif(s[j+1]=='\\0')\n\t\t \tprintf(\"yes\\n\");\n\t\tcontinue;\n\t}\n else{\n\t\t\tprintf(\"no\\n\");\n\t\tbreak;\n\t}\n\t\t}\n\t}\n\t}\n\n return 0;\n}\n\n"} +{"label": "85", "index": "42459", "code": "int main(){\n\tint i,j,n,t=0;\n\tchar s[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0))){\n\t\t\t\tt+=1;\n\t\t\t}\n\t\t}\n\t\tif(t==0){\n\t\t\tprintf(\"yes\\n\");\n\t\t}else{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t\tt=0;\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42460", "code": "void main()\n{\n\tint i,j,n,b[10000],len;\n\tchar a[21];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&a[0]<='z'||a[0]=='_'||a[0]<='Z'&&a[0]>='A')\n\t\t{\n\t\t\tfor(j=1;j='a'&&a[j]<='z'||a[j]=='_'||a[j]<='Z'&&a[j]>='A'||a[j]>='0'&&a[j]<='9')\n\t\t\t\t{\n\t\t\t\t\tb[i]=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tb[i]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tb[i]=0;\n\t}\n\tfor(i=0;i=48&&t[i][0]<=57){\n printf (\"no\\n\");\n \n }else {\n for (j=0;s[i][j]!=0;j++){\n if (t[i][j]>=32&&t[i][j]<=47){\n c=1;\n break;\n } else if (t[i][j]>=58&&t[i][j]<=64){\n c=1;\n break;\n }else if (t[i][j]>=91&&t[i][j]<=94){\n c=1;\n break;\n }else if (t[i][j]>=123&&t[i][j]<=126){\n c=1;\n break;\n }else if (t[i][j]==96){\n c=1;\n break;\n \n }else {\n c=0;\n }\n \n }\n if (c==1){\n printf (\"no\\n\");\n }else {\n printf (\"yes\\n\");\n }\n }\n }\n\t\n\n\t\n\treturn 0;\n}\n"} +{"label": "85", "index": "42463", "code": "int main()\n{\n\tint n,i=1,j=0,l,c=0;\n\tchar s[100]={'\\0'};\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tfor(j=0;j<=99;j++)\n\t\t\ts[j]='\\0';\n\t\tc=0;\n\t\tscanf(\"%s\",s);\n\t\tl=strlen(s);\n\t\tif((s[0]>='0')&&(s[0]<='9'))\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t{\n\t\t\tfor(j=0;j<=l-1;j++)\n\t\t\t{\n\t\t\t\tif(((s[j]>='0')&&(s[j]<='9'))||((s[j]>='a')&&(s[j]<='z'))||((s[j]>='A')&&(s[j]<='Z'))||(s[j]=='_'))\n\t\t\t\t\tc+=1;\n\t\t\t}\n\t\t\tif(c==l)\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\telse\n\t\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n}"} +{"label": "85", "index": "42464", "code": "void main()\n{\n\tchar s[100][20];\n\tint n,i,j,m,k;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='0'&&s[i][0]<='9')\n\t\t\t{\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(s[i][j]<'0'||s[i][j]>'9')\n\t\t\t\tif(s[i][j]>'z'||s[i][j]<'a')\n\t\t\t\t\tif(s[i][j]<'A'||s[i][j]>'Z')\n\t\t\t\t\t\tif(s[i][j]!='_')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tk=1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t}\n\t\tif(i>0)\n\t\t\tprintf(\"\\n\");\n\t\tif(k==1)\n\t\t\tprintf(\"no\");\n\t\telse if(k==0)\n\t\t\tprintf(\"yes\");\n\t}\n}"} +{"label": "85", "index": "42465", "code": "int main(){\n\tint n,i=0,j=0,a[1000],c;\n\tchar zfc[21];\n\tscanf(\"%d\",&n);\n while(j='a'&&zfc[i]<='z')||(zfc[i]>='A'&&zfc[i]<='Z')||zfc[i]=='_'||(zfc[i]>='0'&&zfc[i]<='9'))\n c++;\n \n\t}\n\tif(c==i) a[j]=1;\n\telse a[j]=0;\n\tif(a[j]==1)\n\t{\n\t if(zfc[0]>='0'&&zfc[0]<='9')\n\t\t a[j]=0;\n\t}\n j++;\n }\n for(j=0;j90 && a[0]<97) || a[0]>122) m=0;\nif (a[0]==95) m=1;\nif (m==1)\nfor (j=1;j57 && a[j]<65) m=0;\nif (a[j]>90 && a[j]<95) m=0;\nif (a[j]>95 && a[j]<97) m=0;\nif (a[j]>122) m=0;\nif (m==0) break;\n}\nif (m==0) printf (\"no\\n\");\nelse\nprintf (\"yes\\n\");\n}\nreturn 0;}"} +{"label": "85", "index": "42468", "code": "void main()\n{\n\tchar str[1000];\n\tint n,i,a,b,c,d,e,l,j;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i64 && str[j]<91 ) a=1;\n\t\t\tif(str[j]>96 && str[j]<123) b=1;\n\t\t\tif(str[j]>47 && str[j]<58 ) c=1;\n\t\t\tif(str[j]==95) d=1;\n\t\t\tif(a==0 && b==0 && c==0 && d==0){e=1; break;}\n\t\t}\n\t\tif(e==1) {printf(\"no\\n\");}\n\t\tif(e==0)\n\t\t{\n\t\t\tif(str[0]>47 && str[0]<58)\n\t\t\t\tprintf(\"no\\n\");\n\t\t\telse \n\t\t\t\tprintf(\"yes\\n\");\n\t\t}\n\n\n\t}\n\n\n\n}"} +{"label": "85", "index": "42469", "code": "\nint main(int argc, char *argv[])\n{\n int n,i;\n scanf(\"%d\",&n);\n while(n--)\n {\n char a[25];\n scanf(\"%s\",a);\n int len=strlen(a);\n int t=1;\n if(!(a[0]>='A'&&a[0]<='Z'||a[0]>='a'&&a[0]<='z'||a[0]=='_'))\n {\n printf(\"no\\n\");\n continue;\n }\n for(i=0;i='A'&&a[i]<='Z'||a[i]>='a'&&a[i]<='z'||a[i]=='_'||a[i]>='0'&&a[i]<='9'))\n {\n t=0;\n break;\n }\n \n }\n if(t)\n printf(\"yes\\n\");\n else\n printf(\"no\\n\");\n }\n return 0;\n}"} +{"label": "85", "index": "42470", "code": "\nint main(){\n\tchar zfc[100][21];\n\tint n,i,k,jieguo[100]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i='a'&&zfc[i][0]<='z')||(zfc[i][0]>='A'&&zfc[i][0]<='Z')||zfc[i][0]=='_'){\n\t\t\tfor(k=0;zfc[i][k]!='\\0';k++){\n\t\t\t\tif((zfc[i][k]>='a'&&zfc[i][k]<='z')||(zfc[i][k]>='A'&&zfc[i][k]<='Z')||(zfc[i][k]>='0'&&zfc[i][k]<='9')||zfc[i][k]=='_'){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tjieguo[i]=99;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tjieguo[i]=99;\n\t\t}\n\t}\n\tfor(i=0;i='0'&&zfc[i]<='9')){\n\t\t\ta[j]=0;\n\t\t\tbreak;\n\t\t}\n\t\tif(zfc[i]>='A'&&zfc[i]<='Z'||zfc[i]>='a'&&zfc[i]<='z'||zfc[i]=='_'||zfc[i]>='0'&&zfc[i]<='9'){\n\t\t}else{\n\t\t\ta[j]=0;\n\t\t\tbreak;\n\t\t}\n\t\tif(i==len-1){\n\t\t\ta[j]=1;\n\t\t}\n\t}\n\t}\n\tfor(int i=0;i=65&&s[0]<=90)||(s[0]>=97&&s[0]<=122))\n\t\t\tmark=mark;\n\t\telse\n\t\t\t{\n\t\t\t printf(\"no\\n\");\n\t\t continue;\n\t\t\t}\n\t\tfor(j=1;j=65&&s[j]<=90)||(s[j]>=97&&s[j]<=122)||(s[j]>=48&&s[j]<=57))\n\t\t\t\tmark=mark;\n\t\t\telse mark=mark+1;\n\t\t}\n\t\tif(mark==0)\n\t\t\tprintf(\"yes\\n\");\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\n\t}\n\treturn 0;\n\n}\n"} +{"label": "85", "index": "42473", "code": "void main()\n{\n\tint i,j,n,l;\n\tchar a[21];\n\tscanf(\"%d\",&n);\n\tfor(j=0;j=65&&a[i]<=90||a[i]>=97&&a[i]<=122||a[i]=='_')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i!=0)\n\t\t\t{\n\t\t\t\tif(a[i]>=65&&a[i]<=90||a[i]>=97&&a[i]<=122||a[i]=='_'||a[i]>=48&&a[i]<=57)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t if(i==l)\n\t\t{\n\t\t printf(\"yes\\n\");\n\t\t}\n\t else\n\t\t{\n\t\t printf(\"no\\n\");\n\t\t}\n\t}\n}\n\t\t\t\n"} +{"label": "85", "index": "42474", "code": "int main()\n{\n\tint n,i,j,length,flag;\n\tchar str[21];\n\tcin>>n;\n\tcin.get();\n\tfor(j=0;j='A'&&str[0]<='Z')||(str[0]>='a'&&str[0]<='z')||(str[0]=='_'))\n\t\t{\n\t\t\tflag=1;\n\t\t\tfor(i=1;i='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z')||(str[i]=='_')||(str[i]>='0'&&str[i]<='9')) flag++;\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcout<<\"no\"<64)&&(str[0]<91))||((str[0]>96)&&(str[0]<123))||(str[0]=='_'))\n\t\t{\n\t\t\tfor(j=1;j47)&&(str[j]<58))||((str[j]>64)&&(str[j]<91))||((str[j]>96)&&(str[j]<123))||(str[j]=='_')))\n\t\t\t\t{\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(k==0)\n\t\t\t{\n\t\t\t\tprintf(\"yes\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "85", "index": "42476", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar sz[100];\n\tint jg[100];\n\tint i,j,len,e;\n\tfor(j=0;j='a'&&sz[0]<='z')\n\t\t{\n\t\t\te++;\n\t\t}\n\t\tif(sz[0]>='A'&&sz[0]<='Z')\n\t\t{\n\t\t\te++;\n\t\t}\n\t\tif(sz[0]=='_')\n\t\t{\n\t\t\te++;\n\t\t}\n\t\tfor(i=1;i='a'&&sz[i]<='z')\n\t\t\t{\n\t\t\t e++;\n\t\t\t}\n\t\t if(sz[i]>='A'&&sz[i]<='Z')\n\t\t\t{\n\t\t\t e++;\n\t\t\t}\n\t\t if(sz[i]=='_')\n\t\t\t{\n\t\t\t e++;\n\t\t\t}\n\t\t if(sz[i]>='0'&&sz[i]<='9')\n\t\t\t{\n\t\t\t e++;\n\t\t\t}\n\t\t}\n\t\tif(e==len)\n\t\t{\n\t\t\tjg[j]=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjg[j]=0;\n\t\t}\n\t\t\n\t}\n\n\tfor(i=0;i='0')\n {\n de=0;\n \n }\nelse\n{\n while(t[j]!='\\0')\n {\n if((t[j]<='9'&&t[j]>='0')||(t[j]<='z'&&t[j]>='a')||(t[j]<='Z'&&t[j]>='A')||(t[j]=='_'))\n {\n de=1;\n j++;\n }\nelse\n {de=0;\n break;}\n }\n}\n shuchu(de);\n \n} \n \n \nint main()\n{\n int n;\nscanf(\"%d\",&n);\nint i;\nchar u[100][100];\nfor(i=0;i='a' && z[i][j]<='z')||(z[i][j]>='A' && z[i][j]<='Z')){\n continue;\n }else{\n printf(\"no\\n\");\n break;}\n \n }else{\n if((z[i][j]=='_')||(z[i][j]>='a' && z[i][j]<='z')||(z[i][j]>='A' && z[i][j]<='Z')||(z[i][j]>='0' && z[i][j]<='9')){\n continue; \n }else{\n printf(\"no\\n\");\n break;} \n }\n \n }\n if(j==len){printf(\"yes\\n\");}\n \n }\n if(i==n-1){\n k = strlen(z[n-1]); \n for( j=0;j='a' && z[n-1][j]<='z')||(z[n-1][j]>='A' && z[n-1][j]<='Z')){\n continue;\n }else{printf(\"no\");break;}\n \n }else{\n \n if((z[n-1][j]=='_')||(z[n-1][j]>='a' && z[n-1][j]<='z')||(z[n-1][j]>='A' && z[n-1][j]<='Z')||(z[n-1][j]>='0' && z[n-1][j]<='9')){\n continue; \n }else{printf(\"no\");break;}\n \n }\n \n }\n if(j==k){printf(\"yes\");}}\n\n \n\n\n \n return 0;\n \n}\n\n\n"} +{"label": "85", "index": "42480", "code": "\n\nint main()\n{\n\tint n,x=0;\n\tscanf(\"%d \",&n);\n\tchar c[81];\n\tint t,len;\n\tchar *p;\n\tfor(x=0;x=65&&*p<=90)||(*p>=97&&*p<=122))\n\t\t{\n\t\t\tt=1;\n\t\t\tfor(p=c+1;p=65&&*p<=90)||(*p>=97&&*p<=122)||(*p>=48&&*p<=57))\n\t\t\t\t\tt=1;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tt=0;\n\t\tif(t==1)\n\t\tprintf(\"yes\\n\");\n\t\telse \n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "85", "index": "42481", "code": "\nint main(int argc, char* argv[])\n{\n\tchar s[20];\n\tint n,i,j,k=0;\n\tscanf(\"%d\",&n);\n for(j=0;j='a')||(s[i]<='Z'&&s[i]>='A')||(s[i]>='0'&&s[i]<='9')))\n\t\t\t\tk++;\n else if(!(s[0]=='_'||(s[0]<='z'&&s[0]>='a')||(s[0]<='Z'&&s[0]>='A')))\n\n\t\t\t\tk++;\n\t\t \n\t \n\t\n\t\t}\t\n\t\tif(k>0)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t printf(\"yes\\n\");\n\t} \n\t\t\t\n\treturn 0;\n}"} +{"label": "85", "index": "42482", "code": "\nvoid main()\n{\n\tint n,first=1,no=0;\n\tchar c;\n\tscanf(\"%d\",&n);\n\tgetchar();\n\tfor(;n>0;n--){\n\t\tc=getchar();\n\t\twhile(c!='\\n'){\n\t\t\tif(first){\n\t\t\t\tif(!(isalpha(c)||c=='_')){\n\t\t\t\t\tno=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse first=0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!(isalnum(c)||c=='_')){\n\t\t\t\t\tno=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tc=getchar();\n\t\t}\n\t\tif(no){\n\t\t\tprintf(\"no\\n\");\n\t\t\twhile(c!='\\n') c=getchar();\n\t\t}\n\t\telse printf(\"yes\\n\");\n\t\tfirst=1;\n\t\tno=0;\n\t}\n\t\n}"} +{"label": "85", "index": "42483", "code": "int main(){\nint i,k,n,q,w;\nchar a[100][21];\nscanf(\"%d\",&n);\nfor(i=0;i=97&&a[i][k]<=122)||(a[i][k]>=65&&a[i][k]<=90))){w++;}\nif(k!=0&&(a[i][k]==95||(a[i][k]>=97&&a[i][k]<=122)||(a[i][k]>=48&&a[i][k]<=57)||(a[i][k]>=65&&a[i][k]<=90))){w++;}\n}\nif(w==q){printf(\"yes\\n\");}\nelse{printf(\"no\\n\");}\n}\nreturn 0;\n}"} +{"label": "85", "index": "42484", "code": "int main()\n{\n int i, j, n,k=0; \n char s[MAX+1]; \n scanf(\"%d\", &n); \n for (i = 0; i < n; i++) { \n scanf(\"%s\", s); \n\t\tk=0;\n for (j = 0; s[j]; j++) {\n\t\t\t\n if (!((s[j] == '_') || \n (s[j] >= 'A' && s[j] <= 'Z') || \n (s[j] >= 'a' && s[j] <= 'z') || \n (s[j] >= '0' && s[j] <= '9' && j > 0)))\n \n break; \n\t\t\tk++;\n\n }\n if (k==strlen(s)) printf (\"yes\\n\");\n\t\tif (k!=strlen(s)) printf (\"no\\n\");\n } \n return 0;\n}"} +{"label": "85", "index": "42485", "code": "int main() {\n int n,i,a;\n scanf(\"%d\",&n);\n char zfc[n][21];\n for(i=0;i'Z'&&zfc[i][0]<'a') {\n result++;\n }\n if(zfc[i][0]>'z') {\n result++;\n }\n }\n for(a=1;a'9'&&zfc[i][a]<'A') {\n result++;\n }\n if(zfc[i][a]>'Z'&&zfc[i][a]<'a') {\n result++;\n }\n if(zfc[i][a]>'z') {\n result++;\n }\n }\n }\n if(result==0) {\n printf(\"yes\\n\");\n }\n if(result!=0) {\n printf(\"no\\n\");\n }\n }\n return 0;\n}\n\n\n"} +{"label": "85", "index": "42486", "code": "int main()\n{\n\tchar m[100][20];\n\tint b=0,n,i,j;\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i'z'||m[i][j]<48) \n\t{b++;\n\tbreak;}\n\telse if(m[i][j]>57&&m[i][j]<'A')\n\t{b++;\n\tbreak;}\n\telse if(m[i][j]>'Z'&&m[i][j]<'a'&&m[i][j]!='_')\n\t{b++;\n\tbreak;}\n\telse if(m[i][0]>=48&&m[i][0]<=57)\n\t{b++;\n\tbreak;}\n\t}\n\tif(b==0)\n\t{printf(\"yes\\n\");\n\tcontinue;}\n\telse\n\t{printf(\"no\\n\");\n\tb=0;\n continue;\n\t}\n\t}\nreturn 0;\n}\n\n\n\n\n"} +{"label": "85", "index": "42487", "code": "char str[21];\nint main()\n{\n int n,m;\n int l1,l2;\n\n scanf(\"%d\",&n);\n for (l1=1;l1<=n;l1++)\n {\n scanf(\"%s\",str);\n m=strlen(str);\n for (l2=0;l2='0')&&(str[l2]<='9'))\n if (l2==0)\n break;\n else;\n else if (!(((str[l2]>='a')&&(str[l2]<='z'))||((str[l2]>='A')&&(str[l2]<='Z'))||(str[l2]=='_')))\n break;\n if (l2==m)\n printf(\"yes\\n\");\n else\n printf(\"no\\n\");\n }\n\n return 0;\n}\n"} +{"label": "85", "index": "42488", "code": "int main()\n{\n\tint n,i,j,t=0,b;\n\tchar s[10000];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tb = 0;\n\t\tscanf(\"%s\",s);\n\t\tif(isalpha(s[0])==0&&s[0]!='_')\n\t\t\tb=1;\n\t\telse\n\t\t{\n\t\t\tfor(j=0;j=65&&a[i][0]<=90)||(a[i][0]>=97&&a[i][0]<=122))\n\t\t{\n\t\t\tfor(j=1;j<(int)strlen(a[i]);j++)\n\t\t\t{\n\t\t\t\tif((a[i][j]>=48&&a[i][j]<=57)||(a[i][j]>=65&&a[i][j]<=90)||(a[i][j]>=97&&a[i][j]<=122)||a[i][j]==95)\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"no\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j==(int)strlen(a[i]))\n\t\t\t printf(\"yes\\n\");\n\t\t}\n\n\t\telse\n\t\t\tprintf(\"no\\n\");\n\t}\n\treturn 0;\n}\n\n\n\n "} +{"label": "85", "index": "42490", "code": "void main()\n{\n\tint n,i,j,m,p;\n\tchar a[10000][30]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=97&&a[i][0]<=122)||(a[i][0]>=65&&a[i][0]<=90))\n\t\t{\n\t\tm=strlen(a[i]);\n\t\tp=0;\n\t\tfor(j=1;j=48&&a[i][j]<=57)||(a[i][j]>=97&&a[i][j]<=122)||(a[i][j]>=65&&a[i][j]<=90))\n\t\t\tp=p+1;\n\t\t\n\t\tif(p==m-1)\n\t\t\tprintf(\"yes\\n\");\n\t\telse printf(\"no\\n\");\n\t\n\t\t}\n\t\telse printf(\"no\\n\");\n\t}\n\n}"} +{"label": "85", "index": "42491", "code": "\nvoid main()\n{\n\tint i,j,l,n,flag=0;\n\tchar a[21]={'\\0'};\n\tscanf (\"%d\\n\",&n);\n\tfor (i=0;i='0' && a[j]<='9')\n\t\t\t\tcontinue;\n\t\t\telse if (a[j]>='a' && a[j]<='z')\n\t\t\t\tcontinue;\n\t\t\telse if (a[j]>='A' && a[j]<='Z')\n\t\t\t\tcontinue;\n\t\t\telse if (a[j]=='_')\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tflag=1;\n\t\t}\n\t\tif ( (a[0]>='a' && a[0]<='z') || (a[0]>='A' && a[0]<='Z') || a[0]=='_' )\n\t\t\tflag=flag;\n\t\telse\n\t\t\tflag=1;\n\t\tif (flag==1)\n\t\t\tprintf(\"no\\n\");\n\t\telse\n\t\t\tprintf (\"yes\\n\");\n\t}\n}\n"} +{"label": "85", "index": "42492", "code": "int main()\n{\n int i, j, n,sz[100]; \n char s[22]; \n scanf(\"%d\",&n); \n for(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0)))\n {\n\t\t\t\tsz[i]=0;\n\t\t\t\tbreak; \n }\n }}\n for(i=0;i='A'&&sr[i][0]<='Z')||(sr[i][0]>='a'&&sr[i][0]<='z')||sr[i][0]=='_'){\n for(j=1;j='A'&&sr[i][j]<='Z')||(sr[i][j]>='a'&&sr[i][j]<='z')||sr[i][j]=='_'||(sr[i][j]>='0'&&sr[i][j]<='9')) sum[i]=1;\n else{\n sum[i]=0;\n break;\n }\n }\n \n }\n if(sum[i]==0) printf(\"no\\n\");\n else if(sum[i]==1) printf(\"yes\\n\");\n } \n \n return 0;\n}\n"} +{"label": "85", "index": "42494", "code": "int main(){\n int n,i,j;\n int sum[100]={0};\n char str[21][21];\n scanf(\"%d\\n\",&n);\n for(i=0;i='A'&&str[i][j]<='Z')||(str[i][j]>='a'&&str[i][j]<='z')||(str[i][j]=='_')){\n sum[i]=1;\n }\n else{\n sum[i]=0;\n break;\n }\n }\n else if(j>0){\n if((str[i][j]>='A'&&str[i][j]<='Z')||(str[i][j]>='a'&&str[i][j]<='z')||(str[i][j]=='_')||(str[i][j]>='0'&&str[i][j]<='9')){\n sum[i]=1;\n }\n else{\n sum[i]=0;\n break;\n }\n }\n else{\n sum[i]=0;\n break;\n }\n }\n if(sum[i]==0){\n printf(\"no\\n\");\n }\n else{\n printf(\"yes\\n\");\n }\n }\n return 0;\n}"} +{"label": "85", "index": "42495", "code": "int main() {\n\tchar a[100][20];\n\tint n,i,j;\n\tint len[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=48)&&(a[i][j]<=57))||((a[i][j]>=97)&&(a[i][j]<=122))||((a[i][j]>=65)&&(a[i][j]<=90))||(a[i][j]==95)){\n\t\t\t\tw++;\n\t\t\t}\n\t\t}\n\t\tif(w==len[i]){\n\t\t\tif(((a[i][0]>=48)&&(a[i][0]<=57))){\n\t\t\t\tprintf(\"no\\n\");\n\t\t\t}else {\n\t\t\t printf(\"yes\\n\");\n\t\t\t}\n\t\t}else {\n\t\t\tprintf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "85", "index": "42496", "code": "int main()\n{\n\n int n,i,j,flag=0,length=0;\n char a[100];\n scanf(\"%d\",&n);\n for(i=0;i='0')&&(zf[i][0]<='9'))\n {\n a=1;\n }\n for(j=0;j<=(strlen(zf[i])-1);j++)\n {\n if((((zf[i][j]>='a')&&(zf[i][j]<='z'))||((zf[i][j]>='A')&&(zf[i][j]<='Z'))||((zf[i][j]>='0')&&(zf[i][j]<='9'))||(zf[i][j]=='_'))==0)\n {\n a=1;\n }\n }\n if(a==0)\n {\n printf(\"yes\\n\");\n }\n else\n {\n printf(\"no\\n\");\n }\n }\n return 0;\n}\n"} +{"label": "85", "index": "42498", "code": "int biaozhi(char a[])\n{\n\tint i,l;\n\tif((a[0]<='z'&&a[0]>='a')||(a[0]<='Z'&&a[0]>='A')||a[0]=='_')\n\t{\n\t\tfor(i=1;i='a')||(a[i]<='Z'&&a[i]>='A')||a[i]=='_'||(a[i]>='0'&&a[i]<='9'))\n\t\t\t{\n\t\t\t\tl=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tl=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn l;\n\t}\n\telse\n\t\treturn 0;\n}\nvoid main()\n{\n\tint n,i;\n\tchar a[25];\n\tscanf(\"%d \",&n);\n\tfor(i=0;i='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')||(s[j]>='0'&&s[j]<='9'&&j>0))\n\t\t\t{\n\t\t\t\tm=m+1;\n\t\t\t}\n\t\t\n\t\t\n\t\t}\n\t\tif(m==j){\n\t\t\tprintf(\"yes\\n\");\n\t\t}\n\t\telse{printf(\"no\\n\");\n\t\t}\n\t}\n\treturn 0;\n\t}"} +{"label": "86", "index": "42500", "code": "int main()\n {\n int n;\n scanf(\"%d\",&n);\n for(int i=1;i<=n;i++)\n {\n int m;\n scanf(\"%d\",&m);\n int t[m];\n if(m==0)\n {printf(\"%d\\n\",60);\n continue;}\n for(int j=0;j> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tif (i > 1)\n\t\t\tcout << endl;\n\t\tcin >> m;\n\t\tfor (j = 1; j <= m; j++)\n\t\t\tcin >> num[j];\n for (j = 1; j <= m; j++)\n\t\t{\n\t\t\tif (num[j] + j * 3 >= 60)\n\t\t\t{\n\t\t\t\tif (num[j] + j * 3 <= 63)\n\t\t\t \tcout << num[j];\n\t\t\t\telse\n\t\t\t\t\tcout << 63 - j * 3;\n break;\n\t\t\t}\n\t\t}\n\t\tif (j > m)\n\t\t\tcout << 60 - m * 3;\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42502", "code": "int main()\n{\n int n;\n int i;\n scanf(\"%d\",&n);\n for(i=0;i-1;j--){\n if((j+1)*3+a[j]<=60){\n int o;\n o=60-3*(j+1);\n if((j+1)*3+a[j+1]>57&&(j+1)*3+a[j+1]<60) o=o-(60-(j+1)*3-a[j+1]);\n printf(\"%d\\n\",o);\n break;\n }\n }\n }\n return 0;\n}\n"} +{"label": "86", "index": "42503", "code": "// ????.cpp : Defines the entry point for the console application.\n//\n\n\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=1;i<=n;++i)\n\t{\n\t\tint a[21],j=0;\n\t\tint m;\n\t\tscanf(\"%d\",&m);\n if(m==0) \n\t\t{\n\t\t\tprintf(\"60\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tfor(j=1;j<=m;++j) scanf(\"%d\",&a[j]);\n\t\tint t[21];\n\t\tfor(j=1;j<=m;++j)\n\t\t{\n\t\t\tt[j]=a[j]+3*j;\n\t\t\tif(t[j]>=63) \n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[j-1]+60-t[j-1]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(t[j]>=60)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[j]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j==m+1) printf(\"%d\\n\",a[m]+60-t[m]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42504", "code": "// ????????\n// ??????\n// ???2010?11?25?\n// ?????????\n\n\nint main()\n{\n\tint n , i , j , a[100][100] , k ;\n\tcin >> n ;\n\tfor ( i = 1 ; i <= n ; i++ )\n\t{\n\t\tcin >> a[i][0] ;\n\t\tif ( a[i][0] == 0 ) // ???????\n\t\t\tcout<< 60 << endl ;\n\t\telse \n\t\t{\n\t\t\tfor ( k = 1 ; k <= a[i][0] ; k++ )\n\t\t\t\tcin >> a[i][k] ;\n\t\t for ( j = 1 ; j <= a[i][0] ; j++ )\n\t\t {\n\t\t\tif ( a[i][j] + 3 * j <= 60 && a[i][j+1] + 3 * ( j + 1 ) > 63 ) //????1?????????????????????1???????????58?60???\n\t\t\t{\n\t\t\t\tcout << 60 - 3 * j << endl ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( a[i][j] + 3 * j <= 60 && a[i][j+1] + 3 * ( j + 1 ) > 60 && a[i][j] + 3 * ( j + 1 ) <= 63 )\n\t\t\t{\n\t\t\t\tcout << a[i][j+1] << endl ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\tif ( j == a[i][0] + 1 )\n\t\t\t{\n\t\t\t\tcout << 60 - 3 * a[i][0] << endl ;\n\t\t\t}\n\t\t }\n\t }\n return 0;\n}\n"} +{"label": "86", "index": "42505", "code": "int main(){\nint n,i,j,t,num,b[100],c[100][61]={0};\n scanf(\"%d\",&n);\n for (i=0;i=60) num+=1;\n }\n }\n printf(\"%d\\n\",num);\n }\n return 0;\n}"} +{"label": "86", "index": "42506", "code": "void main(){\n\tint num[20]={0};\n\tint n,x,i,j,m;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&x);\n\t\tif(x==0)printf(\"60\\n\");\n\t\telse {\n\t\t\tfor(j=0;j=0;j--){\n\t\t\t\tif(num[j]+(j+1)*3>60)continue;\n\t\t\t\telse {\n\t\t\t\t\tm=60-(j+1)*3;\n\t\t\t\t\tif(m<=num[j+1]){printf(\"%d\\n\",m);break;}\n\t\t\t\t\telse {printf(\"%d\\n\",num[j+1]);break;}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "86", "index": "42507", "code": "/*\n * ????.cpp\n *\n * Created on: 2010-11-17\n * Author: qaj\n */\n\n\n\nint main(){\n\tint n;\n\tcin>>n;\n\tfor(int j=0;j>m;\n\t\tint a[10];\n\t\tint l=0;\n\t\tfor(int k=1;k<=m;k++)\n\t\t\tcin>>a[k];\n\t\tfor(int k=1;k<=m;k++){\n\t\t\tif(a[k]+3*k>57)\n\t\t\t\t{l=k-1;\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tl=k;\n\t\t}\n\n\t\tif((a[l+1]+3*l)==59)\n\t\t\tcout<<59-3*l<=60)\n {\n printf(\"%d\\n\",60-i*3);\n break;\n }\n if(a[i]+i*3+3>=60)\n {\n printf(\"%d\\n\",a[i]);\n break;\n }\n }\n if(i==n)\n printf(\"%d\\n\",60-i*3);\n }\n}\nvoid main()\n{\n int n;\n scanf(\"%d\",&n);\n while(n)\n {\n fy();\n n--;\n }\n}"} +{"label": "86", "index": "42509", "code": "int main(){\nint n;\nscanf(\"%d\",&n);\nfor(int i=1;i<=n;i++){\nint k;\nscanf(\"%d\",&k);\nint sz[100];\nif(k==0){printf(\"60\\n\");}\nelse{\nfor(int a=1;a<=k;a++){\nscanf(\"%d\",&sz[a]);}\nint p;\nif((sz[k]+3*k)<60){\n\tp=60-3*k;\nprintf(\"%d\\n\",p);}\nelse{for(int b=1;b<=k;b++){\nint q;\nq=sz[b]+3*(b-1);\nif(q>=57&&q<=60){\n\tp=sz[b];\nprintf(\"%d\\n\",p);\nbreak;}\nelse if(q>60){\np=60-3*(b-1);\nprintf(\"%d\\n\",p);\nbreak;}}}}}\nreturn 0;\n}\n\n"} +{"label": "86", "index": "42510", "code": "\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint *sz=(int*)malloc(sizeof(int)*n);\n\tint i,m,j,k;\n\tint *save;\n\tfor(i=0;i=60)\n\t\t\t{\n\t\t\t\tsz[i]=60-3*j;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(k<60 && k>=57)\n\t\t\t{\n\t\t\t\tsz[i]=k-3*j;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(sz[i]==0)\n\t\t{\n\t\t\tsz[i]=60-3*m;\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tfor(int o=1;o<=n;o++)\n\t{\n\t\tint m;\n\t\tcin>>m;\n\t\tint stop[m+1],TimeNow=0,Num=0;\n\t\tfor(int x=1;x<=m;x++) {cin>>stop[x];}\n\t\tif(m==0) cout<<60<=60) {break;}\n\t\t }\n\t\t TimeNow+=3; \n\t\t\tif(TimeNow>=60) break;\n\t\t } \n\t\t if(TimeNow<=60){Num+=60-TimeNow;}\n\t\t cout<>n;\n for(i=0;i>a[i];\n if(a[i]==0) {b[i]=60;continue;}\n for(j=1;j<=a[i];j++)\n {\n cin>>c[j];\n }\n c[a[i]+1]=111;\n for(j=1;j<=a[i];j++)\n {\n if((c[j]+(j-1)*3)<=57&&(c[j+1]+(j)*3)>57)\n {\n if((c[j+1]+(j-1)*3)>60) b[i]=60-j*3;\n else b[i]=60-j*3-(60-c[j+1]-j*3);\n break;\n }\n }\n }\n for(i=0;i=0){s[k]=a[i]+60-t-3;break;}\n\t\t\t\t\telse {s[k]=a[i];break;}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse \n\t\t\t{t=t+a[i-1]-a[i]-3;\n\t\t\tif((60-t-3)<0) {s[k]=a[i-1];break;}\n\t\t\telse {s[k]=a[i-1]+60-t-3;break;}\n\t\t }\n\t\t }\n\t\t}k++;\n\t}\n\tfor(i=0;i=0;j--)\n\t\t{\n\t\t\ttime=num[j]+(j+1)*3;\n\t\t\tif(time<60)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60-(j+1)*3);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(time<63)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",num[j]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfree(num);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42515", "code": "\nint main()\n{\n\tint n, m, i, j, a[20], c, b[20], d=0;\n\tscanf(\"%d\", &n);\n\tfor(i = 0; i < n; i++){\n\t\tscanf(\"%d\", &m);\n\t\tc = 0;\n\t\tfor(j = 0; j < m; j++){\n\t\t\tscanf(\"%d\", &a[j]);\n\t\t\tif(a[j] + (3 * j) < 59){\n\t\t\t\tc++;\n\t\t\t\td = 0;\n\t\t\t}\n\t\t\telse if(a[j] + (3 * j)== 59){\n\t\t\t\td = 1;\n\t\t\t}\t\n\t\t}\n\t\tb[i] = 60 - (c * 3) - d;\n\t}\n\tfor(i = 0; i < n; i++){\n\t\tprintf(\"%d\\n\", b[i]);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42516", "code": "int main()\n{ \n\tint n,m,k,i,c,d,a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\twhile(n--)\n\t{\n\t\tcin>>broke;\n\t\tlast=0;\n\t\twhile(broke--)\n\t\t{\n\t\t\tcin>>times;\n\t\t\tif(last+times<60)\n\t\t\t{\n\t\t\t\tif(last+times+3<60)\n\t\t\t\t{\n\t\t\t\t\tlast=last+3;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlast=60-times;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<<60-last<=0;i--)\n {\n if((a[i]+3*(i+1))<=60)\n {\n n=60-3*(i+1);break;\n }\n else if((a[i]+3*i)<=60)\n {\n n=a[i];break;\n } \n }\n return n;\n} "} +{"label": "86", "index": "42523", "code": "int main()\n{\n int n,m,a[80],i,j,k,bro[60],t,p,q;\n scanf(\"%d\",&n);\n for(i=0;i60){\n\t\t\t\t\tsum=a[i-1];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(a[i-1]+3*(i-1)>=60){\n\t\t\t\t\tsum=60-3*(i-1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tif(i>m)\n\t\t\t\t\tsum=60-3*m;\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n\t}\nreturn 0;\n}\n"} +{"label": "86", "index": "42525", "code": "int main()\n{\n\tint i,j,n,a[100][100],m,b[100][30],s,k;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tfor(j=1;j<=99;j++)\n\t\t{\n\t\t\ta[i][j]=1;\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&m);\t\n\t\tfor(j=1;j<=m;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&b[i][j]);\n\t\t}\n\t\n\t\tfor(j=1;j<=m;j++)\n\t\t{\n\t\t\ts=0;\n\t\t\tfor(k=1;k<=79;k++)\n\t\t\t{\n\t\t\t\ts=s+a[i][k];\n\t\t\t\tif(s==b[i][j]){\n\t\t\t\t\ta[i][k+1]=0;\n\t\t\t\t\ta[i][k+2]=0;\n\t\t\t\t\ta[i][k+3]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\ts=0;\n\t\tfor(j=1;j<=60;j++)\n\t\t{\n\t\t\ts=s+a[i][j];\n\t\t}\n\t\tprintf(\"%d\\n\",s);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42526", "code": "int main(){\n\tint sum=0;\n\tint fail[100][20];\n\tint n,i=0,j=1,time=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60){\n\t\t\t\t\tresult[i]-=(k+1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(result[i]!=60){\n\t\t\t\tresult[i]++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tresult[i]-=3*j;\n\t}\n\tfor(i=0;i60&&j*3+num[j-1]<=63)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",num[j-1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(j*3+num[j-1]>63)\n\t\t\t\t{\n\t\t\t\t\tsum=60-3*(j-1);\n\t\t\t\t\tprintf(\"%d\\n\",sum);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n "} +{"label": "86", "index": "42530", "code": "/**\n* ?? ?????\n* ?? ???\n* ?? ?11?27 ?\n* ?? ?????????,?????????????.????????,??\n*?????,?????????????.????????????????.?\n*?????????????????,??????????????.(????\n*?????.)\n**/\n\nint main ()\n{\n\tint n ,i = 0;\n\tcin >> n;//??n????\n\tint num[100] = {0};//???????????????\n\tfor ( i = 1; i <= n; i ++)//???????????????\n\t{\n\t\tint str[20]={0};//??????????????????;\n\t\tint m = 0;\n\t\tcin >> m;//??????\n\t\t\n\t\tif(m != 0)//???????????\n\t\t{\n\t\t\tfor(int j = 1 ; j <= m; j ++)\n\t\t\t{\n\t\t\t\tcin >> str[j];\n\t\t\t}\n\t\t\twhile(num[i] == 0)\n\t\t\t{\n\t\t\tif(str[m] <= 63- 3 * m)//????????????????\n\t\t\t{\n\t\t\t\tif(str[m] <= 60 -3*m)//???,??????????????????;\n\t\t\t\t{\n\t\t\t\t\tnum[i] = 60 -3 * m;//???????\n\t\t\t\t}\n\t\t\t\telse//?????????????????\n\t\t\t\t{num[i] = str[m];}\n\t\t\t}\n\t\t\telse\n\t\t\t m = m-1 ;\n\t\t\t}\n\t\t}\n\t\telse//???????????60\n\t\t{num[i] = 60;}\n\t}\n\ti = 1;\n\tfor(i = 1; i <= n ; i ++)//??\n\t{\n\t\tcout << num[i] <>num;\n\twhile(num>0){\n\t\tnum--;\n\t\tint badtimes,total=60,i;\n\t\tcin>>badtimes;\n\t\tif(badtimes==0)cout<<60<0){\n\t\t\t\tbadtimes--;\n\t\t\t\tcin>>i;\n\t\t\t\tif(total=57)\n {if((k+3*j-57)<3)\n {s=3-(k+3*j-57);\n break;}\n else\n break;\n }\n }\n ans=60-3*j-s;\n printf(\"%d\\n\",ans); \n }\n\n}"} +{"label": "86", "index": "42534", "code": "int main()\n{\n\tint n,m,a[60],b[100];\n\tint i,j,time=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60&&time<63)\n\t\t\t { \n\t\t\t\t b[i]=a[j];\n\t\t\t\t break;\n\t\t\t }\n\t\t\t if(time>=63)\n\t\t\t {\n\t\t\t\t b[i]=60-3*j;\n\t\t\t\t break;\n\t\t\t }\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tint x[n+1];\n\tfor(i=1;i<=n;i++)\n\t{\n\t\ttime=0,sum=0;\n\t\tcin>>m;\n\t\tint a[m+1];\n\t\tfor(j=1;j>a[j];\n\t\t}\n\t\t\tfor(j=1;j=60&&time<63)\n\t\t\t{break;\n\t\t\t}\n\t\t\telse if(time>63)\n\t\t\t{\n\t\t\t\ttime=a[j-1]+3*(j-1);\n\t\t\t\tsum=a[j-1]+60-time;\n\t\t\t\ttime=a[j]+3*j;\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\n\t\tif(time<60)\n\t\t{\n\t\t\tsum=sum+60-time;\n\t\t}\n\t\tx[i]=sum; \n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcout<>n;\n\twhile(n>0)\n\t{\n\t\tcin>>k;\n\t\tfor(i=1;i<=k;i++)\n\t\t\tcin>>a[i];\n\t\tif(k==0)cout<<60<60)){cout<<60-i*3<60)){cout<> count;\n for(l = 1; l <= count; l++)\n {\n sum = 0;\n cin >> n;\n if (n == 0)\n {\n cout << \"60\" <> num;\n a[num + 1 + 3 * i] = 0;\n a[num + 2 + 3 * i] = 0;\n a[num + 3 + 3 * i] = 0;\n }\n for (i = 1; i <= 60; i++)\n {\n sum = sum + a[i];\n }\n cout << sum <>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tint sum=0;\n\t\tcin>>a[i][1];\n\t\tif(a[i][1]==0) cout<<60<>a[i][t+1];\n\t\t}\n for(t=1;t<=a[i][1];t++)\n\t\t{\n\t\t\tif(a[i][t+1]+(t-1)*3<=60&&a[i][t+1]+t*3>=60) sum=a[i][t+1];\n\t\t\telse if(a[i][t+1]+t*3<=60) sum=60-t*3;\n\t\t}\n\t\tcout<> n;\n\twhile ( n -- )\n\t{\n\t\tcin>>a[0];\n\t\tfor ( i = 1 ; i <= a[0] ; i ++ )\n\t\tcin>>a[i];\n\t\tt = 1;\n\t\t while ( ( a[0] + 1 - t ) * 3 + a[a[0] - t + 1] > 63 )\n t++;\n if ( ( a[0] + 1 - t ) * 3 + a[a[0] - t + 1] >= 60 ) \n cout<> n;\n\twhile (n--)\n\t{\n\t\tcin >> m;\n\t\tfor (i = 0; i < m; i++)\n\t\t\tcin >> a[i];\n\t\twhile (1)\n\t\t{\n\t\t\tif (m == 0)\n\t\t\t{\n\t\t\t\tsum = 60;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (a[m - 1] + (m - 1) * 3 > 60)\n\t\t\t\tm--;\n\t\t\telse if (a[m - 1] + (m - 1) * 3 >= 57 && a[m - 1] + (m - 1) * 3 <= 60)\n\t\t\t{\n\t\t\t\tsum = a[m - 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 60 - m * 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42542", "code": "int main(){\n\tint n;\n\tcin>>n;\n\twhile(n!=0){\n\t\tn--;\n\t\tint x,i;\n\t\tcin>>x;\n\t\tif(x==0){\n\t\t\tcout<<60<>s[i];\n\t\tif(s[x-1]+3*x<=60){\n\t\t\tcout<<60-3*x<60&&s[x-1]+3*x-3<=60){\n\t\t\tcout<60){\n\t\t\t\tif(s[i]+3*i<=60){\n\t\t\t\t\tcout<=57&&(times[i][j]+j*3)<=60)\n {\n sum[i]=times[i][j];\n goto end;\n }\n }\n for(j=0;j=60)\n {\n sum[i]=60-3*j-3;\n goto end;\n }\n }\n end:;\n }\n for(i=0;i57) printf(\"%d\\n\",p);\n\t\telse printf(\"57\\n\");\n\t\treturn 0;\n\t}\n\telse if(p+3*(*x-1)>60){\n\t\t*x=*x-1;\n\t\treturn 1;\n\t}\n\telse if(p+3*(*x-1)<=60){\n\t\tif(p>60-3*(*x)) printf(\"%d\\n\",p);\n\t\telse printf(\"%d\\n\",60-3*(*x));\n\t\treturn 0;\n\t}\n}\n\nint main(int argc, char* argv[])\n{\n\tint i,k,n,d;\n\tscanf(\"%d\",&k);\n\tfor(i=0;i>n;\n\tfor (j=0;j>bad[j];\n\t\tif (bad[j]==0)\n\t\t\tgoodnum[j]=60;\n\t\tfor (i=0;i>badnum[i];\n\t\t}\n\t\tfor (i=0;i=60 && badnum[i]+3*i<60)\n\t\t\t{\n\t\t\t\tgoodnum[j]=badnum[i];\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t}\n\t\t\tif (badnum[i]+3*i>=60)\n\t\t\t{\n\t\t\t\tgoodnum[j]=60-3*i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if (i==bad[j]-1)\n\t\t\t\tgoodnum[j]=60-3*(i+1);\n\n\t\t}\n\t\t\n\t}\n\n\tfor (j=0;j>n;\n\tfor (int i=1; i<=n; ++i)\n\t{\n\t\tcin>>m;\n\t\ts=60;\n\t\tfor (int j=1; j<=m; ++j)\n\t\t{\n\t\t\tcin>>t;\n\t\t\tt+=j+j+j-3;\n\t\t\tif (t<=60) s-=min(3,60-t);\n\t\t}\n\t\tcout<>n;\n int s[n],b[n];\n for(i=1;i<=n;i++){\n cin>>m;\n int a[m];\n for(j=0,s[i]=60,b[i]=0;j>a[j];\n b[i]=a[j]+3*j+3;\n if(b[i]<=60){s[i]-=3;}\n else if(b[i]>=63){s[i]=s[i];}\n else{s[i]=a[j];}}\n printf(\"%d\\n\",s[i]);\n }\n return 0;\n }"} +{"label": "86", "index": "42548", "code": "\nint main()\n{\n\tint population,m;\n\tint num[10];\n\tint i,j;\n\tint time=0,duandian=1,sum=0;\n\tscanf(\"%d\",&population);\n\n\tfor(i=0;i60)\n\t\t\t\t{\n\t\t\t\t\tsum=60-3*duandian;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ttime+=3;\n\t\t\t\tif(time>=60)\n\t\t\t\t{\n\t\t\t\t\tsum=time-3-3*duandian;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tduandian++;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n\t\tsum=0;\n\t\ttime=0;\n\t\tduandian=1;\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42549", "code": "/*\n * tiaosheng.cpp\n *\n * Created on: 2011-12-23\n * Author: 11161\n */\n\nint main()\n{\n\tint n;\n\tcin>>n;\n\tfor(int j=1;j<=n;j++)\n\t{\n\t\tint m;\n\t\tcin>>m;\n\t\tif(m==0){cout<<60<>times;\n\t\t\tsum1=3*(i-1)+times;sum2=times;\n\t\t\tif(sum1>57)\n\t\t\t{\n\t\t\tif(sum1>60){cout<<60-(i-1)*3<57){cout<>times;\n\t\t\t}\n\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42550", "code": "int main()\n{\n\tint n,i,b[100],j,t,m;\n\tscanf(\"%d\",&m);\n\tfor(int l=0;l> n;\n\tfor(int i = 0; i < n; i++)\n\t{\n\t\tint count[20], fail, j, sum = 0;//???????????????????????????????\n\t\tcin >> fail;\n\t\tif(fail == 0)\n\t\t\tsum = 60;//?????????????60?\n\t\telse\n\t\t{\n\t\t\tfor(j = 1; j <= fail; j++)\n\t\t\t\tcin >> count[j];//???????????????????\n\t\t\tfor( j = 1; j <= fail; j++)\n\t\t\t{\n\t\t\t\tif(count[j] + j * 3 >= 60)//???????????????\n\t\t\t\t{\n\t\t\t\t\tif(count[j] + (j - 1) * 3 < 60)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum = count[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//???60?????????????????????????60?????????????\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsum = 60 - (j - 1) * 3; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//??60?????????????????????60???60?????????\n\t\t\t\t}\n\t\t\t\telse //??????????????????\n\t\t\t\t\tsum = 60 - j * 3 ;//???????????60??????????\n\t\t\t}//\n\t\t}\n\t\tcout << sum << endl;\n\t}\n\t\n\treturn 0;\n}"} +{"label": "86", "index": "42552", "code": "// ????.cpp : Defines the entry point for the console application.\n//\n\n\n\nint main()\n{\n\tint n = 0;\n\tint cut[100] = {0};\n\tint sum[100][100] = {0};\n\tint num = 0;\n\tint i = 0;\n\tint t = 0;\n\tint time1 = 0;\n\tint time2 = 0;\n\tint q = 0;\n\n\tcin >> n;\n\n\tfor( i = 1;i <= n;i++ )\n\t{\n\t\tcin >> cut[i];\n\t\t\n\n\t\tif( cut[i] == 0)\n\t\t\tcontinue;\n\n\t\telse\n\t\t\tfor( t = 1;t <= cut[i];t ++ )\n\t\t\t{\n\t\t\t\tcin >> sum[i][t];\n\t\t\t\t\n\t\t\t}\n\t}\n\n\tfor( i = 1;i <= n;i++ )\n\t{\n\t\tq = cut[i];\n\n\t\tif( cut[i] == 0)\n\t\t{\n\t\t\tnum = 60;\n\t\t\tcout << num << endl;\n\t\t}\n\n\t\telse\n\t\t\tfor( t = 1; t <= q;t++ )\n\t\t\t{\n\t\t\t\ttime1 = sum[i][t] + 3 * ( t - 1 );\n\t\t\t\ttime2 = time1 + 3;\n\n\t\t\t\tif( t == q && time2 <= 60 ) \n\t\t\t\t{\n\t\t\t\t\tnum = 60 - q * 3;\n\t\t\t\t\tcout << num << endl;\n\t\t\t\t}\n\n\t\t\t\tif( time1 <= 60 && time2 > 60 && time2 <= 63 )\n\t\t\t\t{\n\t\t\t\t\tnum = sum[i][t];\n\t\t\t\t\tcout << num << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif( time1 > 60 )\n\t\t\t\t{\n\t\t\t\t\tnum = 60 - 3 * ( t - 1 );\n\t\t\t\t\tcout << num << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t}\n\n\n\treturn 0;\n\n}\n"} +{"label": "86", "index": "42553", "code": "int main()\n{\nint i,j;\nint n;\nint a,b,c,d,e;\nint f[20];\ncin>>n;\nfor (i=1;i<=n;i++)\n\t{ \n\t cin>>a;\n\t if (a==0) cout<<60<>f[j];\t\t \n \t for (j=1;j<=a;j++)\n\t \t \t {\t\n\t\t\t\tif ((f[j]+3*j)>=60 && (f[j]+3*j)<=62) \n\t\t\t\t {cout<62 ) \n\t\t\t\t {cout<<63-j*3<> n;\n\tint k, sum;\n\twhile(n != 0)\n\t{\n\t\tn--;\n\t\tcin >> k;\n\t\tfor (i = 1; i <= k; i++)\n\t\t\tcin >> a[i];\n\t\tif (a[k] + 3*k <= 60)\n\t\t\tsum = 60 - 3*k;\n\t\tif (a[k] + 3*k > 60)\n\t\t{\n\t\t\tfor (j = 1; j <= k; j++)\n\t\t\t\tif ((a[j] + 3*j <= 60) && (a[j+1] + 3*(j+1) > 60))\n\t\t\t\t{\n\t\t\t\tif ((60 - 3*j) > a[j+1])\n\t\t\t\t\tsum = a[j+1];\n\t\t\t\tif ((60 - 3*j) <= a[j+1])\n\t\t\t\t\tsum = 60 - 3*j;\n\t\t\t}\n\t\t}\n\t\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42555", "code": "int main()\n{\n\tint n,m,no[20]={0},i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i63)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(no[j-1]+3*j<=60)\n\t\t\t\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tprintf(\"%d\\n\",no[j-1]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(no[j]+3*(j+1)>60&&no[j]+3*(j+1)<=63)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\\n\",no[j]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42556", "code": "//???2010?11?24?\n//???1000010586_???\n//???????\n\nint main()\n{\n\tint n , i , j , k ;\n\tint m , stu[20];\n\tcin >> n;\n\tfor ( i = 0 ; i <= n - 1 ; i ++ )\n\t{\n\t\tcin >> m;\n\t\tif ( m == 0 )\n\t\t{\n\t\t\tcout << 60 << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tfor ( k = 0 ; k <= m - 1 ; k ++ )\n\t\t\tcin >> stu[k];\n\t\tfor ( j = 0 ; j <= m - 1 ; j ++ )\n\t\t{\n\t\t\tif ( stu[j] + 3 * j > 60 )\n\t\t\t\tbreak;\n\t\t}\n\t\tif ( stu[j - 1] + 3 * j > 60 )\n\t\t\tcout << stu[j - 1] << endl;\n\t\telse\n\t\t\tcout << 60 - 3 * j << endl;\n\t}\n\treturn 0;\n}\n\t\n"} +{"label": "86", "index": "42557", "code": "int main(){\n\tint n,m;\n\tint k,i,j,l,s[100],r;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60-(j+1)*3) && k==0){\n k=1;\n\t\t\t\t\tl=j;\n\t\t\t\t}\n\t\t\t}\n\t\t if(k==0) r=60-j*3;\n\t\t if(k==1){\n if(s[l]>60-(l+1)*3+3){\n\t\t\t \tr=60-l*3;\n\t\t\t }\n\t\t\t if(s[l]>60-(l+1)*3 && s[l]<=60-(l+1)*3+3){\n\t\t\t\t r=s[l];\n\t\t\t }\n\t\t\t}\n\t\t printf(\"%d\\n\",r);\n\t\t}\n\t}\n return 0;\n}"} +{"label": "86", "index": "42558", "code": "int aa[20];\n\nint main()\n{\n //freopen(\"1.in\",\"r\",stdin);\n //freopen(\"1.out\",\"w\",stdout);\n int n,m;\n cin>>n;\n for(int i=0;i>m;\n for(int i=0;i>aa[i];\n if(m==0) \n {\n cout<<\"60\"<=57 && (aa[j]+3*j)<=60)\n {cout<60)\n {\n int x=60-3*j;\n cout<=57)\n\t\t\t\t{\n\t\t\t\t\tw=60-sum[i][k];\n\t\t\t\t\tif(w<0)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\\n\",60-3*k);\n\t\t\t\t\t break;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\\n\",60-3*k-w);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif(k==m-1)\n\t\t\t\t\t\tprintf(\"%d\\n\",60-(k+1)*3);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}\n\n\t\t\t\t\n\t\t\t\t\t\n"} +{"label": "86", "index": "42560", "code": "\n int main ()\n {\n\t int n;\n\t scanf(\"%d\",&n);\n\t int i;\n\t int *s,*r;\n\t s=(int *)malloc(sizeof(int)*n); \n\t r=(int *)malloc(sizeof(int)*n);\n\t for (i=0;i=57)\n\t\t\t\t r[i]=e[j-1];\n\t\t\t else if (3*s[i]+e[j-1]>60&&3*(s[i]-1)+e[j-2]<=63&&3*(s[i]-1)+e[j-2]>=57)\n\t\t\t\t r[i]=e[j-2];\n\t\t\t else if (3*(s[i]-1)+e[j-2]<=57)\n\t\t\t\t r[i]=60-3*(s[i]-1);\n\t\t\t else if (3*(s[i]-1)+e[j-2]>60&&3*(s[i]-2)+e[j-3]<60)\n\t\t\t\t r[i]=60-3*(s[i]-2);\n\t\t }\n\t }\n\t for (i=0;i>n;\n int a[n][60],b1[n];\n for(i=0;i>m;\n int b[m];\n for(j=0;j>b[j];\n for(j=m-1;j>0;j--)\n b[j]=b[j]-b[j-1];\n for(j=0;j0&&k<60;k++,b[j]--)\n {\n a[i][k]=1;\n }\n a[i][k]=0;k++;a[i][k]=0;k++;a[i][k]=0;k++;\n }\n int mn;\n for(mn=k;mn<60;mn++)\n a[i][mn]=1;\n b1[i]=0;\n for(j=0;j<60;j++)\n if(a[i][j]==1)\n b1[i]++;\n }\n for(i=0;i>n;\n for(i=1;i<=n;i++)\n {\n int a[20],j;\n cin>>a[0];\n for(j=1;j<=a[0];j++)\n cin>>a[j];\n if(a[a[0]]+3*a[0]<=60)\n cout<<60-3*a[0]<=1;j--)\n {\n if(a[j]+3*j<=60)\n {\n if((a[j+1]+3*j)<=60)\n cout<>n;\n\tfor(i=0;i>m;\n\t\tfor(j=0;j>a[i][j];\n\t\t\tb[i]=a[i][j]+3*(j+1); //???j+1?????????????\n\t\t\tif(b[i]>60)\n\t\t\t{\n\t\t\t\tfind=1; //?????60????????1?????\n\t\t\t c=j;\n\t\t\t\tif(c>a[i][k];}\n\t\t\t\t}\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\tif(find==0) //???????????????????\n\t\t{\n\t\t\tsum[i]=60-3*m; \n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(b[i]==61)\n\t\t\t\tsum[i]=60-3*c-2;\n\t\t\telse if(b[i]==62)\n\t\t\t\tsum[i]=60-3*c-1;\n\t\t\telse if(b[i]==60)\n\t\t\t\tsum[i]=60-3*c-3;\n\t\t\telse\n\t\t\t\tsum[i]=60-3*c;\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tfor (int t=0;t>m;\n\t\tint point[100];\n\t\tfor (int i=0;i>point[i];\n\t\tfor (int i=0;i60) //?????????\n\t\t\t{\n\t\t\t\tans=point[i]-(time-60);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse ans=point[i]; //??????\n\t\t\ttime+=3; //????????\n\t\t\tif (time>60) break; //?????????\n\t\t}\n\t\tif (time<60) ans+=60-time; //??????????\n\t\tcout<> n ; \n\tfor ( i = 0 ; i < n ; i++ ) //???????????\n\t{\n\t\tcin >> b[i] ;\n\t\tfor ( j = 0 ; j < b[i] ; j++ )\n\t\t\tcin >> a[i][j] ;\n\t}\n\tfor ( i = 0 ; i < n ; i++ ) \n\t\t//???????????????????????c[];??????d[]; \n\t{\n\t\td[i] = b[i] ;\n\t\tc[i] = a[i][b[i]-1] ;\n\t\tfor ( j = 0 ; j < b[i] ; j++ )\n\t\t{\n\t\t\tif ( a[i][j] + j * 3 > 60 )\n\t\t\t{\n\t\t\t\tc[i] = a[i][j-1] ;\n\t\t\t\td[i] = j ;\n\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t} \n\tfor ( i = 0 ; i < n ; i++ ) //?3?????\n\t{\n\t\tif ( b[i] == 0 ) //??????????\n\t\t\tcout << \"60\" << endl ;\n\t\telse if ( c[i] + d[i] * j > 60 ) //??????????????????????\n\t\t\tcout << c[i] << endl ;\n\t\telse //?????????????????????60???\n\t\t\tcout << 60 - d[i] * 3 << endl ;\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42567", "code": "int main(){\n int i,j,n,sum,m,f;\n scanf(\"%d\",&n);\n for(i=0;i=60)&&(f)){\n f=0;\n sum=60-3*j;\n printf(\"%d\\n\",sum);\n }\n else if(((sum+3*j+3)>=60)&&(f)){\n f=0; \n printf(\"%d\\n\",sum);\n }\n }\n if(f){\n sum=60-3*m;\n printf(\"%d\\n\",sum);\n }\n } \n return 0; \n }"} +{"label": "86", "index": "42568", "code": "int main()\n{\n\tint i,j,n,m,k[10],u=0,c,sum;\n\tint l[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ic)?k[j]:(c-3);\n\t\t}\n\t\tl[i]=c;\n\t}\n\tfor(i=0;i>n;\n\tfor(i=0;i>m;\n\t\tfor(j=0;j>a[j];\n\t\t\tif((a[j]+j*3>=57)&&(a[j]+j*3<=60))\n\t\t\t\tcount[i]=a[j];\n\t\t\telse if((a[j]+j*3>60)&&(a[j-1]+(j-1)*3<57))\n\t\t\t\tcount[i]=60-j*3;\n\t\t\telse continue;\n\t\t}\n if(m==0)\n\t\t\tcount[i]=60;\n\t\telse if(a[m-1]+m*3<=60)\n\t\t\tcount[i]=60-m*3;\n\t\t\n\t\n cout<>n;\n\tfor(i=0;i>x;\n\t\tif(x==0)//??????\n\t\t\tcout<<60<>m[j];\n\t\t\t\ttime1=m[j]+3*(j-1);//??????\n\t\t\t\tif(time1>=57&&time1<=60)\n\t\t\t {\n\t\t\t\t\t\t cout<60)\n\t\t\t\t{\n\t\t\t\t\tcout<>m[k];//????????????????\n\t\tif(time1<=57)\n\t\t\t{\n\t\t\t\tcout<<60-(time1+3)+m[x]<>n;\n\tfor (int i=0;i>c;\n\t\tint w,t,r=-1,rs=0;\n\t\tfor (int j=0;j>w;\n\t\t\tt=w+j*3;\n\t\t\tif (t<=60&&t+3>=60)\n\t\t\t{\n\t\t\t\tr=w;\n\t\t\t}\n\t\t\telse if(t<60)\n\t\t\t{\n\t\t\t\trs++;\n\t\t\t}\n\t\t}\n\t\tif (r!=-1)\n\t\t{\n\t\t\tcout<=60)\n\t\t\t\t{\n\t\t\t\t\tif(x+t<=65)\n\t\t\t\t\t{\n\t\t\t\t\t k=x;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tk=63-t;\n\t\t\t\t break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t } \n\t }\n\tif(i==1)\n\t\tprintf(\"%d\",k);\n\telse\n\t\tprintf(\"\\n%d\",k);\n\t}\n return 0;\n}"} +{"label": "86", "index": "42573", "code": "\nint main(){\n\tint i,n,m,x[110],ctr,time;\n\tscanf(\"%d\",&n);\n\twhile(n--){\n\t\tctr=0;\n\t\ttime=0;\n\t\tscanf(\"%d\",&m);\n\t\tfor(i=1;i<=m;i++){\n\t\t\tscanf(\"%d\",&x[i]);\n\t\t\tif(time+x[i]-ctr<=60)\n\t\t\t{\n\t\t\t\ttime+=x[i]-ctr+3;\n\t\t\t\tctr=x[i];\n\t\t\t}\n\t\t}\n\t\tif(time<60)\n\t\t\tctr+=60-time;\n\t\tprintf(\"%d\\n\",ctr);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42574", "code": " //******************************//\n //* ?????\t\t\t\t*//\n //* ???1000012711\t\t*//\n //* ???????\t\t\t*//\n //* ???2010.11.24\t\t*//\n //******************************// \nint main()\n{\n\tint i, j, n, m, sum, time, a[50] = {0};\n\tcin >> n;\n\tfor (i = 1; i <= n; i ++)\n\t{\n\t\tsum = 0;\n\t\ttime = 0;\n\t\tcin >> m;\n\t\tfor (j = 1; j <= m; j ++)\n\t\t{\n\t\t\tcin >> a[j];\n\t\t}\n\t\tfor (j = 1; j <= m; j ++)\n\t\t{\n\t\t\tif (a[j] - sum + time > 60)\n\t\t\t\tbreak;\n\t\t\ttime += a[j] - a[j - 1] + 3;\n\t\t\tsum += a[j] - a[j - 1];\n\t\t}\n\t\tif (time <= 60)\n\t\t\tsum += 60 - time;\n\t\tcout << sum << endl;\n\t\tfor (j = 0; j < 50; j ++)\n\t\t{\n\t\t\ta[j] = 0;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42575", "code": "int main(){\nint n,j,i,m,k,s[100],t,sum;\nscanf(\"%d\",&n);\nfor(i=0;i= 1; j--)\n\t\t{\n\t\t\tif(a[i][j] + j * 3 <= 60)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\", 60 - j * 3 );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(a[i][j] + j * 3 <= 63)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\", 60 - (j - 1) * 3 - 63 + a[i][j] + j * 3);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42578", "code": "/**\n* @file homework.cpp\n* @author ??\n* @date 2010?11?26\n* @description\n* ??????:1049 ???? \n*/\nint main()\n{\n\tint n, i, j, m, sum=0 ;\n\tcin >> n;\n\tint a[100];\n\tfor (i=0;i> m;\n\t\tsum = 0;\n\t\tif (m==0)\n\t\t\tcout << \"60\" << endl;\n\t\telse\n\t\t{\n\t\tfor (j=0;j> a[j];\n\t\t}\n\t\tfor (j=0;j 63)\n\t\t\t{\n\t\t\t\tsum -= 3;\n\t\t\t\tcout << 60 - sum << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tif (a[j]+sum > 60)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\tcout << a[j] << endl;\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (j==m-1)\n\t\t\t\t cout << 60 - sum <=60)\n\t\t\t{\n\t\t\t\tmark=60-3*(j-1);\n\t\t\t}\n\t\t\tif(time<60&&x+3*(j-1)<60&&x+3*(j-1)>57)\n\t\t\t{\n\t\t\t\tmark=x;\n\t\t\t}\n\t\t\tif(time<60&&x+3*j<60)\n\t\t\t{\n\t\t\t\tmark=60-j*3;\n\t\t\t}\n\t\t\ttime=x+j*3;\n\t\t}\n\t\t}\n\t\tif(m==0)\n\t\t{\n\t\t\tmark=60;\n\t\t}\n\t\tprintf(\"%d\\n\", mark);\n\t}\n\t\treturn 0;\n}"} +{"label": "86", "index": "42580", "code": "\nint main()\n{\n\tint n,i,j;\n\tint m,*p;\n\tint sum=60;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0)\n\t\t{\n\t\t\tp=(int*)malloc(sizeof(int)*m);\n\t\t\tfor(j=0;j=60){\n\t\t\t\t\tif(count[i][j]<(60-3*j)){\n\t\t\t\t\t\tprintf(\"%d\\n\", count[i][j]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tif(j != 0){\n\t\t\t\t\t\t\tprintf(\"%d\\n\", 60-3*j);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tprintf(\"60\\n\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tk+=1;\n\t\t\t}\n\t\t\tif(k == fake[i])\n\t\t\tprintf(\"%d\\n\", 60-3*fake[i]);\n\t\t\tk = 0;\n\t\t}\n\t}\n}"} +{"label": "86", "index": "42583", "code": "int main()\n{\n int n,k,i,j;\n int a[100];\n for(i=0;i<100;i++)\n a[i]=0;\n scanf(\"%d\",&n);\n for(i=0;i60)\n {\n if(k60)\n\t\t\t\t\t{\n\t\t\t\t\t\tx[i]=p[i].a[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (((p[i].a[j]+j*3)>=60)&&((p[i].a[j-1]+j*3-3)<60))\n\t\t\t\t{\n\t\t\t\t\tif ((p[i].a[j]+j*3)==60){x[i]=p[i].a[j];}\n\t\t\t\t\tif ((p[i].a[j]+j*3)>60)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((p[i].a[j-1]+j*3)<60){x[i]=60-(p[i].a[j-1]+j*3)+p[i].a[j-1];}\n\t\t\t\t\t\tif ((p[i].a[j-1]+j*3)>=60){x[i]=p[i].a[j-1];}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;i>n;\n\tint k;\n\tint a[61];\n\twhile(n--)\n\t{\n\t\tcin>>k;\n\t\tif(k==0) {cout<<\"60\\n\";continue;}\n\t\tfor(int i=1;i<=k;i++)\n\t\t\tcin>>a[i];\n\t\tint num=0;\n\t\tfor(int i=k;i>=1;i--)\n\t\t{\n\t\t\tif( a[i]+i*3-3>60 ) continue;\n\t\t\tif(a[i]+i*3>=60) {num=a[i];break;}\n\t\t\telse {num=60-i*3;break;}\n\t\t}\n\t\tcout<=time)\n\t\t\tcount[i]=time;\n\t\telse if (stopskip[i][1]=time-3)\n\t\t\tcount[i]=stopskip[i][1];\n\t\telse count[i]=time-3;\n\t}\n\t}\n\tfor (i=1;i<=num;i++){\n\t\tfor (j=stopskip[i][0];j>1;j--){\n\t if (((stopskip[i][j]+3*(j-1))>time)||(stopskip[i][j]==0))\n\t continue;\n\t\t else if ((stopskip[i][j]+3*(j-1)>time-3)&&(stopskip[i][j]+3*(j-1)<=time)){\n\t\t\t\tcount[i]=stopskip[i][j];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t else{\n\t\t\t\tcount[i]=(time-(stopskip[i][j]+3*j)+stopskip[i][j]);\n\t break;\n\t\t\t}\n\t\t}\n\t}\nfor (i=1;i<=num;i++)\nprintf(\"%d\\n\",count[i]);\n}"} +{"label": "86", "index": "42587", "code": "int main(){\n int n,m,i,l,x;\n int a[20];\n scanf(\"%d\",&n);\n for(l=0;l=3){\n x+=3; \n }\n if(((60-a[i]-x)<3)&&((60-a[i]-x)>0)){\n x=60-a[i]; \n } \n } \n printf(\"%d\\n\",60-x); \n }\n return 0;\n }\n"} +{"label": "86", "index": "42588", "code": "\nint main()\n{\n\tint a[60];\n\tint n,m, i = 0, j = 0, count = 60;\n\tscanf(\"%d\", &m);\n\tfor (j = 0; j < m; j++)\n\t{\n\t\tcount = 60;\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\", &a[i]);\n\t}\n\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (a[i] < count)\n\t\t{\n\t\t\tif (a[i] < count - 3)\n\t\t\t{\n\t\t\t\tcount -= 3;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcount = a[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t}\n\n\tprintf(\"%d\\n\", count);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42589", "code": "int main()\n{\n\tint m,n,a,c,t,i,j,b[50],d;\n\tscanf(\"%d\",&m);\n\tfor(i=0;i59){\n\t\t\t\tj++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tc-=3;\n\t\t}\n\t\tfor(;j59&&t<64)\n\t\t\tb[i]=a;\n\t\telse\n\t\t\tb[i]=c;\n\t}\n\tfor(i=0;i62)&&(a[i-1]+i*3-3<60))\n\t\t\t\t\tprintf(\"%d\\n\",63-3*i);\n\t\t\t\tif(((a[i]+i*3<=62)&&(a[i]+i*3>=60))&&((a[i-1]+i*3-3)<60))\n\t\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42591", "code": "\nint main()\n{\n\tint iCase,n,i,count,a[20];\n\tcin>>iCase;\n\twhile(iCase--)\n\t{\n\t\tcount=60;\n\t\tcin>>n;\n\t\tfor(i=0;i>a[i];\n\t\t}\n\t\tfor(i=0;i60) break;\n\t\t\tif(a[i]+3*(i+1)<=60) count-=3;\n\t\t\tif(a[i]+3*(i+1)>60) count=a[i];\n\t\t}\n\t\tcout<>n;\n\n while(n--)\n {\n int m;\n int i;\n cin>>m;\n for(i=0;i>fail[i];\n\n int count;\n\n if(m==0)\n {\n cout<<60<=60)\n {\n cout<<60-3*i<60)\n {\n cout<3)\n\t\t\t{\n\t\t\t\tt[i]=60-(j+1)*3;\n\t\t\t\n\t\t\t}\n\t\t\telse if((p[j]+3*j)<60)\n\t\t\t{\n\t\t\t\tt[i]=p[j];\n\t\t\t\t\n\t\t\t}\n\t\t\telse if((60-p[j-1]-3*(j-1))<=3&&(60-p[j-1]-3*(j-1))>=0)\n\t\t\t{\n\t\t\t\tt[i]=p[j-1];\n\t\t\t\t\n\t\t\t}\n\t\t\telse if((p[j-1]+j*3)>60)\n\t\t\t{\n\t\t\t\tt[i]=60-3*(j-1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tt[i]=60-j*3;\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t\t}\n\t}\n\tfor(i=0;i>n;\n \tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>m;\n\t\tif (m==0)\n\t\t\tcout<<\"60\"<>a[j];\n\t\t\t\tif(a[j]<(64-3*j))\n\t\t\t\t\tl=j;\n\t\t\t}\n\t\t\tif(a[l]<=(60-3*l))\n\t\t\t\tcout<<60-3*l<(60-3*l)&&a[l]<(64-3*l))\n\t\t\t\tcout<1; k--) {\n if (num[k]+3*(k-1)<=60&&num[k]+3*k>60) {\n printf(\"%d\\n\",num[k]);\n c=0;\n break;\n \n }else if(num[k-1]+3*(k-1)<60&&num[k]+3*(k-1)>60){\n printf(\"%d\\n\",(60-3*(k-1)));\n c=0;\n break;\n \n }\n \n }\n \n \n \n \n }\n }\n return 0;\n \n}"} +{"label": "86", "index": "42597", "code": "\nint main(){\n\tint nCases, n, t;\n\tint wasteTime;\n\t\n\tcin >> nCases;\n\twhile (nCases--){\n\t\tcin >> n;\n\t\twasteTime = 0;\n\t\tfor (int i = 0; i < n; i++){\n\t\t\tcin >> t;\n\t\t\tt += i * 3;\n\t\t\tif (t + 3 <= 60)\n\t\t\t\twasteTime += 3;\n\t\t\telse if (t < 60 && t + 3 > 60)\n\t\t\t\twasteTime += (60 - t);\n\t\t}\n\t\t\n\t\tcout << 60 - wasteTime << endl;\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42598", "code": "int main()\n{\n\tint n,m,i,j,b[100][100],a[100],t;\n\tcin>>n;\n\tfor(i=0;i>m;\n\t\tfor(j=0;j>b[i][j];\n\t\t}\n\t\tif(b[i][m-1]+3*m>60)\n\t\t{\n\t\t\tfor(j=0;j60 && b[i][j]+3*j<=60)\n\t\t\t\t{\n\t\t\t\t\tt=60-3*j-(3-(b[i][j]+3*(j+1)-60));\n\t\t\t\t\tcout<60)\n\t\t\t\t{\n\t\t\t\t\tt=60-3*(j+1);\n\t\t\t\t\tcout<=0){\n\t\tq[m]=b+p[m][t];\n\t\tprintf(\"%d\\n\",q[m]);\n\t\t}\n\t\telse{\n\t\t\tint s,z,h1,h2,l;\n\t\t\tfor(int f=1;f<=t;f++){\n\t\t\t\ts=p[m][f]+3*f;\n\t\t\t\tif(s>60){\n h1=p[m][f];\n\t\t\t\t\th2=p[m][f-1];\n\t\t\t\t\tz=f;\n\t\t\t\t\tfor(int g=0;g<=t;g++){\n\t\t\t\t\t\tp[m][g]=-60;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tl=60-3*(z-1)-h2-(h1-h2);\n\t\t\t\tif(l>=0) q[m]=h1;\n\t\t\t\telse q[m]=60-3*(z-1);\n\t\t\t\tprintf(\"%d\\n\",q[m]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42600", "code": "void main()\n{\n int z,i,j,n,t,count,time,tem,pre,go;\n char dd='0';\n scanf(\"%d\",&t);\n for(z=0;z=63) {count=count+60-pre;break;}\n else\n{\n count=tem;\n break; \n}\n}\n}\nif(time<=60) count=count+60-time;\nprintf(\"%d\\n\",count);\n}\n}"} +{"label": "86", "index": "42601", "code": "int main(){\n\tint n,m,i,j,k,cs[10001],a[10000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60){\n\t\t\tfor(k=m-1;k>=0;k--){\n\t\t\t\tif((a[k]+3*(k+1))<=60)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(60-(a[k]+3*(k+1))+a[k]>a[k+1]) cs[i]=60-3*(k+1)-1;\n\t\t\telse cs[i]=60-3*(k+1);\n\t\t}\t\t\n\t}\n\tfor(i=0;i>n;\n\twhile(n)\n\t{\n\t\tsum=0;\n\t\tcin>>m;\n\t\tfor(int i=0;i>num[i];\n\t\t}\n\t\tfor(int i=0;i63)\n\t\t\t{\n\t\t\t\tsum=num[i-1]+60-num[i-1]-3*i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if((num[i]+3*(i+1))>=60)\n\t\t\t{\n\t\t\t\tsum=num[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(sum==0)\n\t\t{\n\t\t\tsum=60-m*3;\n\t\t}\n\t\tif(m==0)\n\t\tcout<<60<57))\n\t\t\t\tnum[i]=children[i].s[j];\n\t\t\telse \n\t\t\t\tnum[i]=60-3*j;\n\t\t}\n\t}\n\n\t\tfor(i=0;i0;i--){\n\t\t\tl[i]=l[i]-l[i-1];\n\t\t}\n\t\tfor(i=0;i=60){\n\t\t\t\tjudge=10000;\n\t\t\t\ttimer=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(mid<60){\n\t\t\t\tmid+=3;\n\t\t\t}\n\t\t\tif(mid>=60){\n\t\t\t\tjudge=33333;\n\t\t\t\ttimer=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t//\tprintf(\"judge=%d\\n\",judge);\n\t\tif(judge==10000){\n\t\t\tr[k]=60-3*(i);\n\t\t}else if(judge==33333){\n\t\t\tr[k]=60-3*(i)-(3-(mid-60));\n\t\t}else if(judge==0){\n\t\t\tr[k]=60-3*i;\n\t\t}\n\t\tmid=0;\n\t}\n\tfor(k=0;k=60){\n s=a[k];\n printf(\"%d\\n\",s);\n break;\n }\n }\n if(a[0]>60){\n s=60;\n printf(\"%d\\n\",s);\n continue;\n }\n if(a[m-1]+3*m<60){\n s=60-3*m;\n printf(\"%d\\n\",s);\n continue;\n }\nfor(k=0;k60){\n s=60-3*(k+1);\n printf(\"%d\\n\",s);\n continue;\n }\n } \n free(a);\n }\n return 0;\n }\n"} +{"label": "86", "index": "42608", "code": "int main()\n{ \n int n=0,i=0;\n\tint minnum=60;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0)\n\t\t\t\t\tminnum=60-(3*p)-3;\n\t\t\t\telse if((60-number-(3*p)-3)<0)\t\t\n minnum=number;\n\t\t\t}\n\t\t}\n\t\tprintf(\"\\n%d\\n\",minnum);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42609", "code": "/**\n* @file 1000010424_6.cpp\n* @author ???\n* @date 2010?11?24\n* @description\n* ??????:1049 ???? \n*/\n\n\n\nint main()\n{\n\tint n, badNum;\t\t\t\t\t\t\t\t//?????????????\n\tint i, j;\t\t\t\t\t\t\t\t\t//?????\n\tint badTotal, time, place, lastPlace;\t\t//??????????????????\n\n\tcin >> n;\n\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> badNum;\t\t\t\t\t\t\t//????????\n\t\ttime = 0;\n\t\tbadTotal = 0;\n\t\tlastPlace = 0;\n\n\t\tfor(j = 1; j <= badNum; j++)\n\t\t{\n\t\t\tcin >> place;\n\n\t\t\ttime += place - lastPlace;\t\t\t//???????????\n\n\t\t\tif(time < 60)\t\t\t\t\t\t//??????\n\t\t\t{\n\t\t\t\tif(time <= 57)\n\t\t\t\t{\n\t\t\t\t\ttime += 3;\t\t\t\t\t//time????????\n\t\t\t\t\tbadTotal += 3;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbadTotal += 60 - time;\n\t\t\t\t\ttime += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\t;\n\n\t\t\tlastPlace = place;\n\t\t}\n\n\t\tcout << 60 - badTotal << endl;\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42610", "code": "int main()\n{\n\tint i,j,m,n,k,e=0,t=0,a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=57&&t<=60)\n\t\t\t{\n\t\t\t printf(\"%d\\n\",a[j]);\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t\tif(t>60)\n\t\t\t{\n\t\t\t\ta[j]-=t-60;\n\t\t\t\tprintf(\"%d\\n\",a[j]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(t<57)\n\t\t{\n\t\t\tprintf(\"%d\\n\",60-3*m);\n\t\t}\n\t\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "86", "index": "42611", "code": "\nint main()\n{\n\tint n,i,j,a[100],b,m,y[200];\n\tscanf (\"%d\",&n);\n\tfor (j=0;j63){\n\t\t\t\tdo{\n\t\t\t\t\ttotal1=a[i][j-1]+j*3-3;\n\t\t\t\t\tif(total1>63)\n\t\t\t\t\t\tj--;\n\t\t\t\t}while(total1>63);\n\t\t\t\tN=a[i][j-1]+j*3-3;\n\t\t\t\tif(N<60){\n\t\t\t\t\ttotal=60-N+a[i][j-1];\n\t\t\t\t}\n\t\t\t\telse if(N>=60&&N<=63)\n\t\t\t\t\ttotal=a[i][j-1];\n\t\t\t\telse if(N>63){\n\t\t\t\t\ttotal=a[i][j-1]-N+60;\n\t\t\t\t}\n\t\t\t\tprintf(\"%d\\n\",total);\n\t\t\t}\n\t\t\telse if(total1<=63){\n\t\t\t\tif(total1<60)\n\t\t\t\t\ttotal=60-j*3;\n\t\t\t\telse \n\t\t\t\t\ttotal=a[i][j];\n\t\t\t\tprintf(\"%d\\n\",total);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42613", "code": "int main()\n{\n\tint n,k,a[60],sum=0,p;\n\tcin>>n;\n\tfor(int i=1;i<=n;i++)\n\t{memset(a,0,sizeof(a));\n\t\tcin>>k;\n\t\tif(k==0) cout<<\"60\"<>a[j];\n\t\tfor(int j=k-1;j>0;j--)\n\t\t{\n\t\t\ta[j]=a[j]-a[j-1];\n\n\t\t}\n\t\tfor(p=0;p=60)\n\t\t {\n\t\t\tresult[i]=sz[i][j-1]+60-(sz[i][j-1]+3*j-3);\n\t\t\tbreak;\n\t\t }\n\t\t}\n\t\tprintf(\"%d\\n\",result[i]);\n\t}\n\t\n\n\n\treturn 0;\n}"} +{"label": "86", "index": "42615", "code": "\nint main()\n{\n int i,j,n,a[100],m,time;\n cin>>n;\n for(i=0;i>m;\n if(m==0)\n\t cout<<60;\n else \n\t {\n\t for(j=0;j>a[j];\n\t \n\t }\n\t for(j=0;j=60)\n\t { \n\t\t if(time<=60)\n\t\t {\n\t\t\t cout<>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>m;\n\t\ttime=0;\n\t\tnum=0;\n\t\tx=0;\n\t\tfor(j=1;j<=m;j++){\n\t\t\tcin>>x;\n\t\t\tnum=x;\n\t\t\tif(x+time>=60){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ttime+=3;\n\t\t\t\tif(x+time>=60){\n\t\t\t\t\ttime=60-x;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int k=j+1;k<=m;k++)cin>>y;\n\t\tnum+=60-(x+time);\n\t\tcout<60)\n {\n e++;\n }\n }\n sum=60-(3*m)+temp+(2*f)+3*e;\n printf(\"%d\\n\",sum);\n }\n return 0;\n}"} +{"label": "86", "index": "42618", "code": "\nint main(){\n\tint i,j,k=0,n,nt,total,flag;\n\tscanf(\"%d\",&k);\n\tfor(i=0;i=57&&(nt+3*j)<=60){\n\t\t\t\t\ttotal = nt;\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\tif((nt+3*(j+1))>60){\n\t\t\t\t\tif(!flag){\n\t\t\t\t\t\ttotal = 60-j*3;\n\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!flag){\n\t\t\t\t\ttotal = 60-j*3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",total);\n\t}\n}"} +{"label": "86", "index": "42619", "code": "\nint main()\n{\n\tint n, brea[100], num[100][100] ,mark[100], i, j;\n\tscanf(\"%d\", &n);\n\tfor (i=1;i<=n;i++){\n\t\tscanf(\"%d\", &brea[i]);\n\t\tmark[i] = 60;\n\t\tfor (j=1;j<=brea[i];j++){\n\t\t\tscanf(\"%d\", &num[i][j]);\n\t\t\tif (num[i][j]+j*3 < 60) mark[i] = 60-j*3;\n\t\t\tif (num[i][j]+j*3 == 61) mark[i] = 61-j*3;\n\t\t\tif (num[i][j]+j*3 == 62) mark[i] = 62-j*3;\n\t\t}\n\t}\n\tfor (i=1;i<=n;i++){\n\t\tprintf(\"%d\\n\", mark[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42620", "code": "int main()\n{\n\tint n,t,i,j,a[100]={0},q=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60)||(a[j+1]==0)))\n\t {\n if(a[j]+3*j+6<=60) printf(\"%d\\n\",60-j*3-3);\n else printf(\"%d\\n\",a[j]);\n if(j==t-1) q=1;\n break;\n\t }\n\t if((q==0)&&(j==t)) printf(\"%d\\n\",60-t*3);\n\telse if(t==0) printf(\"60\\n\");\n\tfor(j=0;j> n;\n\tfor( i = 0; i < n; i ++ )\n\t{\n\t\tshu = 0;\n\t\tmemset(num, 0, sizeof(num));\n\t\tcin >> time;\n\t\tif( time == 0 )\n\t\t\tcout << 60 << endl;\n\t\telse\n\t\t{\n\t\t\tfor( j = 0; j < time; j ++ )\n\t\t\t{\n\t\t\t\tcin >> num[j];\n\t\t\t}\n\t\t for( j = 0; j < time; j ++ )\n\t\t\t{\n\t\t\t\tshu = num[j] + 3 * (j + 1);\n\t\t\t\tif( shu > 60 )\n\t\t\t\t{\n\t\t\t\t\tif( num[j] + 3 * j <= 60 )\n\t\t\t\t\t{\n\t\t\t\t\t\tshu = num[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tshu = 60 - ( num[j - 1] + 3 * j ) + num[j - 1];\n\t\t\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( j == time )\n\t\t\t\tshu = 60 - 3 * time;\n\t\t\tcout << shu << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42622", "code": "//============================================================================\n// Name : tiaosheng.cpp\n// Author :\n// Version :\n// Copyright : Your copyright notice\n// Description : Hello World in C++, Ansi-style\n//============================================================================\n\n\nint main() {\n\t int num;\n\t cin>>num;\n\t for(int i=1;i<=num;i++)\n\t { int t,times=0;\n\t int a[21];\n\t cin>>t;\n\t if(t==0)cout<<60<>a[j];\n\t \t }\n\t \t if((a[t-1]+t*3)<60){times=60-t*3;}\n\t \t else\n\t \t {\n\t \t for(int j=0;j=60&&(a[j]+(j+1)*3)<=63)\n\t \t \t\t \t {\n\t \t \t\t times=a[j];\n\t \t \t\t break;\n\t \t \t\t \t }\n\t \t \t\t \t if((a[j]+(j+1)*3)>63)\n\t \t \t\t \t {\n\t \t \t\t \t\t times=a[j-1]+60-a[j-1]-j*3;\n\n\t \t \t\t \t\t break;\n\t \t \t\t \t }\n\n\t \t \t }\n\t \t }\n\n\t \t cout<> n;\n\twhile (n--)\n\t{\n\t\tcin >> m;\n\t\tif (m == 0)\t\t\t//?????????????\n\t\t{\n\t\t\tsum = 60;\n\t\t\tcout << sum << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tfor (i = 1; i <= m; i++)\t//????????????????\n\t\t{\n\t\t\tcin >> jump;\n\t\t\tif (jump + i * 3 > 60 && jump + (i - 1) * 3 <= 60)\n\t\t\t{\t\t\t\t\t\t//????????? 60s ??????? 60s\n\t\t\t\tsum = jump;\t\t\t//????????????????\n\t\t\t\tbreak;\t\t\t\t//????????????\n\t\t\t}\n\t\t\telse if (jump + (i - 1) * 3 > 60)\n\t\t\t{\t\t\t\t\t\t//??????????? 60s\n\t\t\t\tsum = 60 - (i - 1) * 3;\t\n\t\t\t\tbreak;\t\t\t\t//????????????????\n\t\t\t}\t\t\t\t\t\t//????????????\n\t\t\tif (i == m)\t\t\t\t//????????????? 60s\n\t\t\t\tsum = 60 - i * 3;\t//?????????????\n\t\t}\n\t\tcout << sum << endl;\n\t\t\t\t\t\t\t\t\t//????????????????????\n\t\tfor (i = i + 1; i <= m; i++)\n\t\t\tcin >> jump;\t\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42624", "code": "int main(){\n\tint n,suspend,number,times;\n\t//n???????suspend??????number??????times??????\n\tcin>>n;\n\tfor(;n>0;n--){\n\t\tcin>>number;\n\t\ttimes=60;\n\t\tfor(;number>0;number--){\n\t\t\tcin>>suspend;\n\t\t\tif(suspend=times);\n\t\t\telse times=suspend;\n\t\t}\n\t\tcout<59){\nflag=1;\nbreak;\n} \n } \n for(k=j+1;k0;k--)\n\t\t\t{\n\t\t\t if(b[k-1]+3*k<=60)\n\t\t\t\t{\n\t\t\t\t printf(\"%d\\n\",60-3*k);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(b[k-1]+3*k==61 || b[k-1]+3*k==62 || b[k-1]+3*k==63)\n\t\t\t\t{\n\t\t\t\t printf(\"%d\\n\",b[k-1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(b[k-1]+3*k>63)\n\t\t\t\t{\n\t\t\t\t continue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42627", "code": "\n\nint i,n,m,j,k;\nint p,q,r;\nint t[99];\n\nint main()\n{\n\tcin>>n;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tcin>>m;\n\t\tr=0;\n\t\tfor (j=1;j<=90;j++) t[j]=1;\n\t\tfor (j=1;j<=m;j++)\n\t\t{\n\t\t\tcin>>p;\n\t\t\tq=0;k=1;\n\t\t\tdo\n\t\t\t{\n\t\t\t\tq=q+t[k];\n\t\t\t\tk++;\n\t\t\t}\n\t\t\twhile (q!=p);\n\t\t\tt[k]=0;k++;\n\t\t\tt[k]=0;k++;\n\t\t\tt[k]=0;\n\t\t}\n\t\tfor (j=1;j<=60;j++) r=r+t[j];\n\t\tcout<>n;\n\tint cishu[n],time[n],shijian[n];\n\tfor(i=0;i>cishu[i];\n\t\tif(cishu[i]==0) {cout<<60<>cxia[j];\n\t\tif((cishu[i]*3+cxia[j-1])<=60){\n\t\t\ttime[i]=60-cishu[i]*3;\n\t\t}\n\t\telse {\n\t\t\ts=0;\n\t\t\tfor(time[i]=0;time[i]<60;){\n\t\t\t\tif(time[i]==cxia[s]) {shijian[i]=shijian[i]+3;s++;}\n\t\t\t\telse{\n\t\t\t\t\tshijian[i]++;\n\t\t\t\t\ttime[i]++;\n\t\t\t\t}\n\t\t\t\tif(shijian[i]>=60) break;\n\t\t\t}\n\t\t}\n\t\tcout<=60)\n {\n you=60-3*j;break;\n } \n else if (sum<57&&j==m-1)\n {you=60-3*(j+1);break;}\n else if (sum>57)\n { you =60-3*j-(60-sum);break;}\n }\n printf (\"%d\\n\",you);\n }\n }\n scanf (\"%d\",&i);\n return 0;\n }\n"} +{"label": "86", "index": "42630", "code": "\nint main()\n{ \n\tint n,m;\n\tint i,j;\n\tint wrong[60];\n\tint contine[60];\n\tint sum;\n\tcin>>n;\n\t\n\tfor(i=0;i>m;\n\t\tj=1;\n\t\tsum=0;\n\n\t\tif(m==0)\n\t\t\tsum=60; //m==0????\n\n\t\twhile(j<=m)\n\t\t{\n\t\t\tcin>>wrong[j]; //????????\n\t\t\tcontine[j]=wrong[j]+3*j-3;\n\t\t\tj++;\n\t\t}\n\n\t\tfor(j=1;j<=m;j++)\n\t\t{\n\t\t\tif((contine[j]>=57)&&(contine[j]<60))\n\t\t\t\t{\n\t\t\t\t\tsum=wrong[j]; \n\t\t\t\t\tbreak;\n\t\t\t }\n\t\t\telse if(contine[j]>=60)\n\t\t\t\t{\n\t\t\t\t\tsum=60-3*(j-1);\n\t\t\t\t\tbreak;\n\t\t\t }\n\t\t}\n\t\tif(j==m+1)\n\t\t\tsum=60-3*m;\n\t\tcout<=3){\n\t\t\tl=p[k]+(60-(p[k]+(3*k)));}\n\t\tif((60-sum)<3){\n\t\t\tl=p[k];}\n\t}\n\tprintf(\"%d\\n\",l);}\n\tif(sum>60){\n\tfor (j=1;j<=k;j++){\n\t if((60-(p[j-1]+(j-2)*3))*(60-(p[j]+(j-1)*3))<0){\n\t\tif \t((60-(p[j-1]+(j-2)*3))>=3)\n\t\t{l=p[j-1]+(60-(p[j-1]+(j-1)*3));}\n\t\tif ((60-(p[j-1]+(j-2)*3))<3){\n\t\t\tl=p[j-1] ;} \n\t\t} \n\t}\n\tprintf(\"%d\\n\",l);}\n\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42632", "code": "int main()\n{int n,m,a[1000][15],b[1000],c[1000],t[1000][15],i,k;//????\ncin>>n;//????\nfor(i=0;i>m;\n b[i]=m;\nfor(k=0;k>a[i][k];\nif(a[i][k]<=62-3*(k+1))//???????????????????????\n\t{c[i]=a[i][k];//?????????????????\n b[i]=k+1;}}}//??????????\nfor(i=0;i=62-3*b[i])//???????????????????????\n\t\tt[i][k]=c[i];//???????????????????????????????????????????\n\telse t[i][k]=60-3*b[i];//???????????????\n cout<=60){\n\t\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(((b[i][j]+3*j)>=57)&&((b[i][j]+3*j)<60)){\n\t\t\t\t\tprintf(\"%d\\n\",b[i][j]);\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tif(j==a[i]-1){\n\t\t\t\t\t\tprintf(\"%d\\n\",57-3*j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42634", "code": "int main()\n{\n int s[200]={0},f[200]={0}, n, m[200]={0}, i, j,count=0;\n cin >> n;\n for (i=1;i<=n;i++)\n {\n for (j=1;j<=199;j++) s[j]=1;\n memset(f,0,sizeof(f));\n count=0;\n cin >> m[i];\n for (j=1;j<=m[i];j++)\n {\n cin >> f[j];\n s[f[j]-2+3*j]=0;\n s[f[j]-1+3*j]=0;\n s[f[j]+3*j]=0;\n }\n for (j=1;j<=60;j++) count=count+s[j];\n cout << count << endl;\n }\n return 0;\n} \n"} +{"label": "86", "index": "42635", "code": "//??:??????\nint main()\n{\n\tint i,j,k,num,n,time1,time2,a[100];//????\n\tcin>>n;//????????\n\tfor(i=0;i>num;//??????\n\t\tif(num==0)//???????????\n\t\t\tcout<<\"60\"<>a[j];//????\n\t\t\tif((a[num]+3*num)<=60)\n\t\t\t{\n\t\t\t\tcout<<60-3*num<=60)\n\t\t\t\t{\n\t\t\t\t\tcout<<60-3*(k-1)<=60)\n\t\t\t\t{\n\t\t\t\t\tcout<=60){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j-1==b[i][0]){\n\t\t\tprintf(\"%d\\n\",60-d);\n\t\t}\n\t\telse if(b[i][j]+d-60<=3){\n\t\t\tprintf(\"%d\\n\",b[i][j]);\n\t\t}\n\t\telse if(b[i][j]+d-60>3){\n\t\t\tprintf(\"%d\\n\",60-d+3);\n\t\t}\n\t\t}\n\t}\n\n\n\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42637", "code": "/**\n *file:????11-24??\n *author:???\n *date?2010\u009711-26\n *discription?????\n */\nint main ()\n{\n\t//?????????????????????????????i.j.k;\n\tint n , m , i , j , k ;\n\tcin >> n ;\n\tfor ( i = 1 ; i <= n ; i ++ )\n\t{\n\t\tcin >> m ;\n\t\t//???????0?????60?\n\t\tif ( m == 0 )\n\t\t{\n\t\t\tcout << \"60\" << endl ;\n\t\t}\n\t\telse \n\t\t{\n\t\t\t//???????i????????num[i],?????k?0?\n\t\t\tint num[60] = { 0 } ;\n\t\t\tk = 0 ;\n\t\t\tfor ( j = 1 ; j <= m ; j ++ )\n\t\t\t{\n\t\t\t\tcin >> num[j] ;\n\t\t\t\t//?????????????????????k??\n\t\t\t\tif ( num[j] + j * 3 <= 63 ) k = j ;\n\t\t\t}\n\t\t\t//???k?????????????????????????????????????????3*k????????????\n\t\t\tif ( num[k] + k * 3 <= 60 )\n\t\t\t\tcout << 60 - k * 3 << endl ;\n\t\t\t//???k???????????3??????k???????????\n\t\t\telse cout << num[k] << endl ;\n\t\t}\n\t}\n\treturn 0 ;\n}"} +{"label": "86", "index": "42638", "code": "int main(){\nint n,a,num,c;\n scanf(\"%d\",&n);\n for(c=0;c60-3*(m-1)-1)\n\t{ \n int b=m-2;\n\t\tint i;\n for(i=b;i>=0;i--)\n\t\t{\n if(shuzu[i]>60-3*i-1) continue;\n if((shuzu[i]<=60-3*i-1)&&(shuzu[i]>60-3*i-3)){ \n\t\t\t\tnum=shuzu[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(shuzu[i]<=60-3*i-3){\n\t\t\t\tnum=60-3*i-3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n \n if((shuzu[m-1]<=60-3*(m-1)-1)&&(shuzu[m-1]>60-3*(m-1)-3)) num=shuzu[m-1];\n if(shuzu[m-1]<=60-3*(m-1)-3) num=60-3*(m-1)-3;\n\t\n\tprintf(\"%d\\n\",num);\n free(shuzu);\n\t}\n\t}\n \n return 0;\n}\n"} +{"label": "86", "index": "42639", "code": "\nint main()\n{\n\tint n;\n\tint a[100];\n\tint sum[100];\n\tint i,j,k;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60)\n\t\t\t{\n\t\t\tj=j-1;\n\t\t\t}\n\n\t\t\n\t\t\tif(a[j-1]+3*j<=60)\n\t\t\t{\n\t\t\t\tsum[i]=60-3*j;\n\t\t\t}\n\t\t\telse if(a[j-1]+3*(j-1)<=60&&a[j-1]+3*j>60)\n\t\t\t{\n\t\t\t\tsum[i]=a[j-1];\n\t\t\t}\n\n\t\t else if(a[j-2]+3*(j-1)<=60&&a[j-1]+3*(j-1)>60)\n\t\t\t{\n\t\t \tsum[i]=60-3*(j-1);\n\t\t\t}\n\t \telse \n\t\t\t{\n\t\t\t\tsum[i]=a[j-2];\n\t\t\t}\n\t\t}\n\t}\n\n\n\t\t\n\tfor(i=0;i>n;\n\twhile(n){\n\t\tn--;\n\t\tint miss,all=60,time=0,allmiss=0,flag=0,all1;\n\t\tcin>>miss;\n\t\twhile(miss){\n\t\t\tmiss--; allmiss++;\n\t\t\tint num;\n\t\t\tcin>>num;\n\t\t\ttime=num+allmiss*3;\n\t\t\tall=num;\n\t\t\tif(time>=63&&flag==0){\n\t\t\t\tall1=60-(allmiss-1)*3;\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(time>=60&&flag==0){\n\t\t\t\tall1=all;\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t}\n\t\tif(flag==1) cout<>n;\n\tfor(i=0;i>m;\n\t\tif(m==0)\n\t\t{\n\t\t\tcout<<60<>a;\n\t\t\tif(k==1)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{ num[j]=a;\n\t\t\t if(num[j]+3*(j-1)==59)\n\t\t\t\t { cout<59)\n\t\t\t\t {cout<<60-3*(j-1)<59)\n\t\t\t{cout<>n;//????\n for(;n>=1;n--)\n {int m;\n \tcin>>m;//??????????\n \tint broke[m+1];//????????????\n \tint i,total[61]={0},count=0;\n \tfor(i=1;i<=60;i++)\n \t\ttotal[i]=1;//total[61]??1-60?????1???0??\n \tif(m==0)cout<<\"60\"<>broke[i];//???????i??????\n \t\t broke[i]=broke[i]+(i-1)*3;//???i??????broke[i]??\n \t\t }\n \t for(i=1;i<=m;i++)//?????60??????total????0\n \t {if(broke[i]+1<=60)total[broke[i]+1]=0;\n \t else break;\n \t if(broke[i]+2<=60)total[broke[i]+2]=0;\n \t else break;\n \t if(broke[i]+3<=60)total[broke[i]+3]=0;\n \t else break;\n \t }\n \t for(i=1;i<=60;i++)//??????\n \t \tcount=count+total[i];\n \t cout<=60) break;\n}\nif(j==huai) r=60-3*huai;\nif(k>=60&&k<=63) r=sz[j];\nif(k>63) r=60-3*j;\nif(j==n-1){\n\tprintf(\"%d\",r);}else{\n\tprintf(\"%d\\n\",r);\n\t}\n}\n\treturn 0;\n}"} +{"label": "86", "index": "42645", "code": " \nint main(int argc, char* argv[])\n{\n int n,k,*p,i,j ;\n\tscanf(\"%d\",&n);\n for(i=0;i60)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\\n\",60-j*3);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(p[j]+3*(j+1)>60)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\\n\",p[j]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t }\n\t}\n\treturn 0;\n}\n\n\n "} +{"label": "86", "index": "42646", "code": "//============================================================================\n// Name : grids.cpp\n// Author : Liang ShiYu\n// Version : 1.0\n// Copyright : Copyright Reserved\n// Description : HomeWork\n// Date : 2010-12-17\n//============================================================================\n\n\nint main() {\n\tint n,data[100][20],answer[100];\n\tfor(int i=0;i<100;i++) answer[i]=60;\n\tcin>>n;\n\tfor(int i=0;i>m;\n\t\tfor(int j=0;j>data[i][j];\n\t\t\tif(data[i][j]<=answer[i]-3) answer[i]-=3;\n\t\t\telse if(data[i][j]>=answer[i]);\n\t\t\telse answer[i]=data[i][j];\n\t\t}\n\t}\n\tfor(int i=0;i total)\n\t\t\tbreak;\n\t\t\tif(temp + 3 >= total)\n\t\t\t{\n\t\t\t\ttotal = temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\ttotal -= 3;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",total);\n\t\twhile((getchar())!='\\n')\n\t\tcontinue;\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42648", "code": "int main()\n{\n int i,n,m,flag,a;\n\tscanf(\"%d\",&n);\n\tfor (i=0; i=60)&&(flag)){\n\t\t\t\tflag=0;\n\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t\t}else if (((a+j*3+3>=60))&&(flag)){\n\t\t\t\tflag=0;\n\t\t\t\tprintf(\"%d\\n\",a);\n\t\t\t}\n\t\t}\n\t\tif (flag) {\n\t\t\tprintf(\"%d\\n\",60-3*m);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42649", "code": "int main()\n{\n\tint n,m,a[100],i,j,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0)\n\t\t\t{\n\t\t\t printf(\"%d\\n\",a[j]);\n\t\t\t c=1;\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\tif(c==0)\n\t\t{\n for(j=0;j=(60-3*j))\n\t\t\t {\n\t\t\t printf(\"%d\\n\",60-3*j);\n d=1;\n\t\t\t\tbreak;\n\t\t\t }\n\t\t }\n\t\t\n\t\t\n if(d==0)\n\t\t {\n\t\t printf(\"%d\\n\",60-3*m);\n\t\t }\n\t\t}\n\t\t\n\t\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42650", "code": "\n\nint main(){\n int n;\n scanf(\"%d\", &n);\n int m, timeCount, numCount;\n int num[60];\n while(n--){\n scanf(\"%d\", &m);\n for(int i = 0; i < m; ++i){\n scanf(\"%d\",& num[i]);\n }\n timeCount = numCount = 0;\n for(int i = 0; i < m; ++i){\n for(int j = numCount; j < num[i]; ++j){\n if(timeCount >= 60) break;\n timeCount ++;\n numCount ++;\n }\n if(timeCount >= 60) break;\n timeCount += 3; \n //printf(\"i, timeCount, numCount: %d, %d, %d\\n\", i, timeCount, numCount);\n }\n for(; timeCount < 60; ++timeCount){\n numCount ++;\n }\n printf(\"%d\\n\", numCount);\n }\n \n}\n"} +{"label": "86", "index": "42651", "code": "\nint main()\n{\n\tint n,i,j,time[100],fail[100][20],m[100],sum=0;\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0;i62){\n\t\t\t\ts+=0;\n\t\t\t}else if(a[j]+3*t>60&&a[j]+3*t<63){\n\t\t\t\ts=a[j];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}printf(\"%d\\n\",s);\n\t\t\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42653", "code": "int main()\n{\n int a=0,b=0,c=0,d=0,e=0,f=0,i=0;\n cin>>a;//a????\n for(e=1;e<=a;e++)\n {\n cin>>b;//?????b\n if(b==0) cout<<\"60\"<>d;//???d?\n if((d+3*c)<=60)//???1??????\n {\n i=d-((d+3*c)-60);//????1????????????\n f=60-3*c;\n }\n else if(((d+3*(c-1))<=60)&&((d+3*c)>60))//???????????????1??????\n {\n i=d;//????1????????????\n f=d;\n }\n else//??1??????\n {\n f=i;//????????\n }\n }\n cout<>n; //???????\n\tfor (i=1;i<=n;i++) //????????????????????\n\t{\n\t\tsum=60; //???sum????60\n\t\tcin>>m; //??????m\n\t\tfor (j=1;j<=m;j++) //????????m?????\n\t\t{\n\t\t\tcin>>a[j]; //???j????????\n\t\t\tif (a[j]+3*(j-1)<57) //??????????57???sum=60-3*????\n\t\t\t\tsum=60-3*j;\n\t\t\telse if (a[j]+3*(j-1)>=60) //?????60?????????sum??\n\t\t\t\tcontinue;\n\t\t\telse //????57?58?59???sum??a[j]\n\t\t\t\tsum=a[j];\n\t\t}\n\t\tcout<>n;\n while(n>0) //????\n { sum=0;\n cin>>a;\n if(a==0) cout<<60<>k[i];\n if(k[a-1]+a*3<60)\n cout<<60-a*3<60))\n { temp=60-(i+1)*3;\n if(k[i+1]==temp-1)\n cout<>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>b[i];\n\t\tfor(j=1;j<=b[i];j++) \n\t\t\tcin>>a[i][j];\n\t}\n\t/*for(i=1;i<=n;i++)\n\t\tcout<60))\n\t\t\t\tt[i]=3*j-3;\n\t\t\tif((a[i][j]+2*j<=60)&&(a[i][j]+3*b[i]>60))\n\t\t\t\tt[i]=60-a[i][j];\n\t\t}\n\t\tif(a[i][b[i]]+3*b[i]<60)\n\t\t\tt[i]=3*b[i];\n\t\tif((a[i][b[i]]+2*b[i]<=60)&&(a[i][b[i]]+3*b[i]>60))\n\t\t\tt[i]=60-a[i][b[i]];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcout<<60-t[i]<>n;\n\twhile (n>0)\n\t\t{\n\t\t\tcin>>m;\n\t\t\tc=0;t=-3;u[0]=0;\n\t\t\tfor (i=1;i<=m;i++) cin>>u[i];\n\n\t\t\tfor (i=1;i<=m;i++)\n\t\t\t\t\tif (u[i]-u[i-1]+t+3<=60)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt=u[i]-u[i-1]+t+3;\n\t\t\t\t\t\t\tc=u[i];\n\t\t\t\t\t }\n\t\t\t\t\telse break;\n\t\t\t\t\tt=t+3;\n\t\t\tif (t<60) c=c+60-t;\n\t\t\tcout<57)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",sz[0]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"57\\n\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcount=sz[duan-3];\n\t\t\ttime=count+3*(duan-3);\n\t\t\ttime=time+3;\n\t\t\tif(sz[duan-2]+(duan-2)*3<60)\n\t\t\t{\n\t\t\t\tcount=sz[duan-2];\n\t\t\t\ttime=count+(duan-1)*3;\n\t\t\t if(sz[duan-1]+(duan-1)*3<60)\n\t\t\t\t{\n\t\t\t\t count=sz[duan-1];\n\t\t\t\t time=count+(duan)*3;\n\t\t\t\t while(time<60)\n\t\t\t\t\t{\n\t\t\t\t count++;\n\t\t\t\t time++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twhile(time<60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\ttime++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t while(time<60)\n\t\t\t\t{\n\t\t\t\t count++;\n\t\t\t \ttime++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",count);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42659", "code": "void main()\n{\n int n, i, j, m, a[100], num[100];\n scanf(\"%d\",&n);\n for(i=0;i=0;j--)\n\t\t {\n\t\t if(3*j+a[j]<=63&&3*j+a[j]>60)\n\t\t\t{ \n\t\t \tnum[i]=a[j];\n\t\t \tbreak;\n\t\t\t} \n\t\t \n else if(3*j+a[j]<=60)\n\t\t\t{\n\t\t \tnum[i]=60-3*j;\n break;\n\t\t\t}\n\t\t }\n\t }\n }\n for(i=0;i c) ? t : (c - 3);\n }\n printf(\"%d\\n\",c);\n }\n return 0;\n}"} +{"label": "86", "index": "42661", "code": "int main()\n{\n int n,i,j,t,y;\n int a[20];\n scanf(\"%d\\n\",&n);\n for(i=0;i60) {y=60-3*j;break;}\n else if(3*j+a[j]>=57) {y=a[j];break;}}\n if(a[t-1]+3*t<60) y=60-3*t;\n printf(\"%d\\n\",y);\n }\n return 0;\n}"} +{"label": "86", "index": "42662", "code": "int main()\n{\n\tint n, m,d=0,s=0,i,j,k,x;\n\tscanf(\"%d\",&n);\n\tfor(k=1;k<=n;k++)\n\t{\n \n int *p;\n\t p=(int*)malloc(sizeof(int)*m);\n s=0;\n\t x=0; \n\t d=0;\n scanf(\"%d\",&m);\n\t for(i=0;i60)&&(p[j]<63))\n\t\t {\n\t\t\ts=p[j]-3*(j+1);\n\t\t\td=1;\n\t\tbreak;\n\t\t }\n\t\t if((p[j]>63)||(p[j]==63))\n\t\t {\n\t\t\ts=60-3*j;\n\t\t\td=1;\n\t\t\tbreak;\n\t\t }\n\t\t if((p[j]<60)||(p[j]==60))\n\t\t\t j++;\n\t\t}\n \tif(d==0)\n\t\t{\n\t \t x=60-(3*m);\n\t\t printf(\"%d\\n\",x);\n\t\n\t\t}\n\t if(d==1)\n\t {\n\t\tx=s;\n\t\tprintf(\"%d\\n\",x);\n\t\t\n\t }\n\t}\n\treturn 0;\n}\n\t\t\n"} +{"label": "86", "index": "42663", "code": "int main()\n{\n\tint n,cishu,i,j,k,time1,time2;\n\tint sum=0;\n\tint a[20];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60)\n\t\t\t sum=60-3*(k-1);\n\t\t if(time1<60&&time2>=60)\n\t\t\t sum=a[k-1];\n\t\t\t if(sum!=0)\n\t\t\t\t break;\n\t\t }\n\t \tif(sum==0)\n\t\t\t sum=60-3*cishu;\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n }\n\treturn 0;\n}\n"} +{"label": "86", "index": "42664", "code": "int main()\n{\n\tint n, mis[100], sum[100][20], i, e, time, t;\n\tscanf(\"%d\", &n);\n for(i=0;i=57){\n\t\t\t\tt=sum[i][e];\n\t\t\t\tprintf(\"%d\\n\", t);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t if(time>60){ \n\t\t\t t=60-3*e;\n\t printf(\"%d\\n\", t);\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\tif(time<57){\n\t\t\tt=60-3*mis[i];\n\t\t\tprintf(\"%d\\n\", t);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42665", "code": "int main(){\n int n,m[100],t[100],a;\n scanf(\"%d\",&n);\n for(int i=0;i=0)\n t[i]-=3;\n if(t[i]-a>=0&&t[i]-a<3)\n t[i]=a;\n }\n }\n for(int i=0;i57){\n\t\t\t\tsz1[i]=sz[m-1];\n\t\t\t}else if(p>60){\n\t\t\t\tif(t<=57){\n\t\t\t\t\tsz1[i]=60-3*(m-1);\n\t\t\t\t}else if(t<=60&&t>57){\n\t\t\t\t\tsz1[i]=sz[m-2];\n\t\t\t\t}else if(t>60){\n\t\t\t\t\tif(q<=57){\n\t\t\t\t\t\tsz1[i]=60-3*(m-2);\n\t\t\t\t\t}else if(q<=60&&q>57){\n\t\t\t\t\t\tsz1[i]=sz[m-3];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t '\\n';\n\t\t}\n\t}\n\tfor(i=0;i=60)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60-(j-1)*3);\n\t\t\t break;\n\t\t\t}\n\t\t\telse if(sum==57||sum==58||sum==59)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[j]);\n\t\t break;\n\t\t\t}\n\t\t}\n\t\tif(sum<57) printf(\"%d\\n\",60-3*k);\n}}"} +{"label": "86", "index": "42668", "code": "//????\n\n \n\n\nint main()\n{\n\tint n;\n\tcin>>n;\n\tfor(int i=0;i>failure;\n\t\tif(failure==0) \n\t\t\tnumber=60;\n\t\telse\n\t\t{\n\t\t for(int j=0;j>times[j];\n\t\t for(int j=0;j= 64){\n\t\t\t\t e = 63 - q * 3;\n\t\t\t\t printf(\"%g\\n\", e);\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\t\t if(t <= 60){\n\t\t\tprintf(\"%g\\n\",(60 - 3 * k[p][0]));\t\n\t\t}\n\t }\n\treturn 0;\n}"} +{"label": "86", "index": "42670", "code": "int main()\n{\n\tint n,i,a[100],b[100],sum,j,m;\n\tscanf(\"%d\",&n);\n for(j=0;j60)\n\t\t\t\t\t{\n\t\t\t\t\t sum=a[i-1]+60-b[i-1];\n\t\t\t\t if(i<=m&&60-sum>a[i]-a[i-1])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsum=a[i];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t else \n\t\t\t\t\t\t{\n\t\t\t\t\t break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n else if(b[i]==60)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum=60;\n\t\t\t\t\t}\n\n\t\t\t\t else\n\t\t\t\t\t{\n\t\t\t\t\t continue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42671", "code": "int main(){\n\tint a,b,c,d[1000][60],f,g;\n\tscanf(\"%d\",&a);\n\tfor(b=0;b57){\n\t\t\t\t\t\tprintf(\"%d\\n\",d[b][f]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tprintf(\"57\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfor(c=1;c<=d[b][0];c++){\n\t\t\t\t\tg=d[b][c]+3*c;\n\t\t\t\t\tif(g>60){\n\t\t\t\t\t\tif(g>62){\n\t\t\t\t\t\t\tprintf(\"%d\\n\",60-3*(c-1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tprintf(\"%d\\n\",d[b][c]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(c==d[b][0]&&g<=60){\n\t\t\t\t\t\tprintf(\"%d\\n\",60-3*c);\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42672", "code": "int a[1001];\nint main()\n{\n\tint n,i,s,m,j,p=0,s1,k;\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>m;\n\t if(m==0)cout<<60<>a[j];\n\t\t\tfor(j=1;j<=m;j++)\n\t\t\tif(a[j]+3*(j-1)>60)break;\n\t\t\tj--;\n\t\t\ts=a[j]+3*(j-1);\n\t\t\ts1=s+3;\n\t\t\tif(s1<=60)\n\t\t\tp=60-s1;\n\t\t\telse\n\t\t\tp=0;\n\t\t\tcout<> n;\n\twhile (n > 0)\n\t{\tn--;\n\t\tcin >> m;\n\t\tif (m == 0) \n\t\t\tcout << 60 << endl;\n\t\telse\n\t\t{\tfor (i = 0; i < m; i++)\n\t\t\t\tcin >> stop[i];\n\t\t\tt = 1; ans = 0; j = 0;\n\t\t\twhile (t <= 60)\n\t\t\t{\tif (j == m) \n\t\t\t\t{\tans = ans + 61 - t;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (ans != stop[j])\n\t\t\t\t\tans++;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt += 2;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tt++;\n\t\t\t}\n\t\t\tcout << ans << endl;\n\t\t}\n\t}\n\tcin >> i;\n\treturn 0;\n}\n"} +{"label": "86", "index": "42674", "code": "int main()\n{\n\tint a,b,c,d,e,f,g,h[50];\n\tscanf(\"%d\",&a);\n\tfor(b=0;b=60) break;\n\t\t\t\te=e+3;\n\t\t\t\tif(e>=60)\n\t\t\t\t{\n\t\t\t\t\tf=f-3+e-60;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tf=f-3;\n\t\t\t\te=e-h[d];\n\t\t\t\tif(d==c)\n\t\t\t\t{\n\t\t\t\t\tf=60-3*c;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",f);\n\t\t}\n\t}\n}\n\t\t\t\t\n"} +{"label": "86", "index": "42675", "code": "int main()\n{\n\tint n,m,i,j,k,t;\n\tint p[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60){\n\t\t\t\t\tk=p[j];\n\t\t\t printf(\"%d\\n\",p[j]);\n\t\t \t break;\n\t\t\t\t}\n\t\t\t\telse if(t<60 ){\n\t\t\t\t\tif(j==(m-1)){\n\t\t\t\t\t\tk=60-3*m;\n\t\t\t\t\t\tprintf(\"%d\\n\",k);\n\t\t\t\t\t}\n\t\t\t\t\telse if(j!=(m-1)){\n\t\t\t\t\t\tif(p[j+1]+3*(j+2)>60){\n\t\t\t\t\t\t\tif((60-3*(j+1))>=p[j+1]){\n\t\t\t\t\t\t k=p[j+1];\t\n\t\t\t printf(\"%d\\n\",k);\n\t\t\t\t\t\t\t break; \n\t\t\t\t\t\t\t}\n\t\t\t else if((60-3*(j+1))\n\nint n;\nint a[61],b,q[61];\nint main()\n{\n // ifstream cin(\"in.txt\");\n int i,j,k,t,sum,c;\n cin>>n;\n for(i=0;i>b;\n for(j=0;j>a[j]; q[j]=a[j];}\n if(b==0) cout<<60<=60)\n {\n cout<<60<=60)\n {\n sum=a[j-1]-((j-1)*3);\n t-=a[j-1];\n c=1;\n break;\n }\n }\n if(c)\n {\n if(t>3) sum+=t-3;\n }\n else\n {\n sum=q[b-1];\n t-=a[b-1];\n if(t>3) sum+=t-3;\n }\n cout<a[k])\n {\n if(k==b) break;\n t-=a[k];\n k++;\n sum+=a[k-1];\n cout<0) sum+=t;\n }\n cout<>b;\n return 0;\n}\n"} +{"label": "86", "index": "42677", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tfor(int s=1;s<=n;s++)\n\t{\n\t\tint m=0;\n\t\tcin>>m;\n\t\tint a[100]={0};\n\t\tint sum=60;\n\t\tint totaltime=0;\n\t\tfor(int i=1;i<=m;i++)\n\t\t{\n\t\t\tcin>>a[i];\n\t\tif(totaltime+a[i]-a[i-1]<60&&a[i]<60)\n\t\t{\n\t\t\ttotaltime+=a[i]-a[i-1]+3;\n\t\t\tsum-=3;\n\t\t\tif(totaltime==61)\n\t\t\t\tsum+=1;\n\t\t\tif(totaltime==62)\n\t\t\t\tsum+=2;\n\t\t}\n\t\t}\n\t\tcout<60)\n\t\t {\n\t\t\t j=60-3*i;\n\t\t\t printf(\"%d\\n\",j);\n\t\t\t break;\n\t\t }\n\t\t count=count+3;\n\t\t if(count>60)\n\t\t {\n\t\t\t printf(\"%d\\n\",b[i]);\n\t\t\t break;\n\t\t }\n\t }\n\t\t if(count<60)\n\t\t {\n\t\t\t printf(\"%d\\n\",60-tiaohuai*3);\n\t\t }\n \n }\n return 0; \n}"} +{"label": "86", "index": "42679", "code": "int main()\n{\n\tint n, i, j;\n\tint A[100], B[100], C[100]; \n\tscanf(\"%d\", &n);\n\tfor(i=0;i63)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n else\n\t\t\t\tC[i]=60-3*A[i];\n\t\t}\n if(B[j-1]+3*j>=60)\n\t\t\t C[i]=B[j-1];\n\t\t else\n\t\t\t C[i]=60-3*j;\n\t}\n\tfor(i=0;i> n;\n\tint a[20] = {0}; //????\n\tint m, i, j, k;\n\tint sum = 0;\n\tfor( i = 0; i < n; i++ )\n\t{\n\t\tcin >> m;\n\t\tif( m == 0 ) //?????60\n\t\t\tcout << 60 << endl;\n\t\telse\n\t\t{\n\t\t for( j = 0; j < m; j++ )\n\t\t {\n\t\t\t cin >> a[j];\n\t \t} \n\t\t for( k = m - 1; k >= 0; k-- )\n\t\t {\n\t\t\t if( ( a[k] + 3 * k ) <= 60 )\n\t\t\t {\n\t\t\t\t if( ( a[k] + 3 * ( k + 1 ) ) > 60 )\n\t\t\t\t {\n\t\t\t\t\t sum = a[k];\n\t\t\t\t\t break; //??????????\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t sum = 60 - 3 * ( k + 1 );\n\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\tcout << sum << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42681", "code": "int main() \n{ \nint n,i,k,m,a[100],temp=0;\nint flag=0; \nscanf(\"%d\",&n); \nfor(i=0;i=63) \n{ \ntemp=60-3*(k-1); \n\nflag=1;\n} \n\n\nif(flag==0 && (6060){\n\t\t\t\tt=60-3*i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((sz[i]+3*i<=60)&&(sz[i]+3*i>=57)){\n\t\t\t\tt=sz[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((sz[i]+3*i<60)&&(i==m-1)){\n\t\t\t\tt=60-3*(i+1);\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",t);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42683", "code": "int main()\n{\n\tint n,m,t=0,num,i,j,k=0,p=1,q=1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60&&t-3<=60&&p==1){printf(\"%d\\n\",num);p=0;}\n\t\t\tif(t-3>=60&&p==1){printf(\"%d\\n\",60-(k-1)*3);p=0;}\n\t\t}\n\t\tif(t-3<=60&&p==1){printf(\"%d\\n\",60-3*k);p=0;}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42684", "code": "void pro()\n{\n\tint i,a[21]={0},n;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i64)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",63-3*i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(a[i]+3*i>59)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t\tbreak;\n\t\t\t}\n\n}\nvoid main()\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i> n;\n\twhile(n --) {\n\t\tint m, input[100];\n\t\tint total = 0, sum = 60;\n\t\tcin >> m;\n\t\tinput[0] = 0;\n\t\tfor(int i = 1; i <= m; i ++) {\n\t\t\tcin >> input[i];\n\t\t\tif(total + input[i] - input[i - 1] < 60 && input[i] < 60) {\n\t\t\t\ttotal += input[i] - input[i - 1] + 3;\n\t\t\t\tsum -= 3;\n\t\t\t\tif(total == 61)\n\t\t\t\t\tsum += 1;\n\t\t\t\tif(total == 62)\n\t\t\t\t\tsum += 2;\n\t\t\t}\n\t\t}\n\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42686", "code": "int main()\n{\n int n,i,t,m,g,hh;\n int a[60];\n scanf(\"%d\",&n);\n for(i=0;i=60) g=60;\n \t\telse if(a[0]<=57) g=57;\n \t\telse g=a[0];\n \t\tprintf(\"%d\\n\",g);\n \t\t}\n \telse{\n \tfor(t=0;t0)\n\t\t{\n\t\t\tfor(j=0;j60){sum[i]=60-3*j;\n\t\t\t\t\tbreak;}\n\t\t\t\t\tif(x[i][j]+3*j<=60&&x[i][j]+3*j+3>=60)\n\t\t\t\t\t{sum[i]=x[i][j];\n\t\t\t\t\tbreak;}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",sum[i]);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42688", "code": "int main()\n{\n\tint i,j,n,m,a[60],s;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;j--)\n\t\t{\n\t\t\tif(s+3*(j+1)>63)\n\t\t\t{\n\t\t\t\ts=a[j-1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(s+3*(j+1)>=60)\n\t\t{\n\t\t\tprintf(\"%d\\n\",s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%d\\n\",60-3*(j+1));\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42689", "code": "/*\n * 1049.cpp\n *\n * Created on: 2011-12-21\n * Author: wuch\n */\n\nint main(){\n\tint n,i,j,num,a[21],ans;\n\tcin>>n;\n\tfor (i=0;i>num;\n\t\tif (num==0) cout<<60<>a[j];\n\t\t\tfor (j=1;j<=num;j++) a[j]=a[j]+(j-1)*3; //?a????????????????\n\t\t\tans=60;\n\t\t\tfor (j=1;j<=num;j++)\n\t\t\t\tif (a[j]<=57) ans=ans-3; //????57??????3?\n\t\t\t\telse if (a[j]<60) ans=ans-(60-a[j]); //58,59?????????????\n\t\t\tcout<>n;\n\tfor (int j=1;j<=n;++j)\n\t{\n\t\tint breaktime;//???????\n\t\tcin >>breaktime;\n\t\tif (breaktime==0)//???????\n\t\t\tcout <<\"60\"<>a[i];//????????????\n\t\t\tint sum=0;//?????????\n\t\t\tint k=0;//?????????\n\t\t\tfor (int i=1;i<=60;++i)//??????\n\t\t\t{\n\t\t\t\tif (a[k]==i)//??????????\n\t\t\t\t{\n\t\t\t\t\t++sum;\n\t\t\t\t\t++k;\n\t\t\t\t\ti=i+3;\n\t\t\t\t\tfor (int p=k;p<=breaktime-1;++p)\n\t\t\t\t\t\ta[p]+=3;\n\t\t\t\t}\n\t\t\t\telse//????????\n\t\t\t\t\t++sum;\n\t\t\t}\n\t\t\tcout <60 && z<63)\n\t\t\t\tx[i]=pint[j];\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}\n\t\tfor(i=0;i> n;\n\tfor (int i = 0; i < n; i ++)\n\t{\n\t\tint time = 0, count = 0, counter[21], num,flag = 1;\n\t\tcin >> num;\n\t\tfor (int j = 0; j < num; j ++)\n\t\t\tcin >> counter[j];\n\t\tfor (int j = 0; j < num; j ++)\n\t\t{\n\t\t\ttime = counter[j] + 3 * (j + 1); \n\t\t\tif (time - 3 >= 60)\n\t\t\t{\n\t\t\t\tcount = counter[j] - (time -63);\n\t\t\t\tflag = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(time >= 60)\n\t\t\t{\n\t\t\t\tcount = counter[j];\n\t\t\t\tflag = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tcount = counter[j];\n\t\t}\n\t\tif(flag)\n\t\t\tcount += 60 - time;\n\t\tcout << count << endl;\n\t}\n\n\n\n\n\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "86", "index": "42693", "code": "int main()\n{\n\tint n,sum,t;\n\tint m[20];\n\tint a[20][20];\n\tint i,j,k;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60)\n\t\t\t\t{\n\t\t\t\t\tsum=60;\n\t\t\t\t\tt=60;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(t+3+a[i][j]-sum<=60)\n\t\t\t\t{\n\t\t\t\t\tt=t+3+a[i][j]-sum;\n\t\t\t\t\tsum=a[i][j];\n\t\t\t\t}\n\t\t\t\telse if(t+3<=60&&t+3+a[i][j]-sum>60)\n\t\t\t\t{\n\t\t\t\t\tsum=sum+60-(t+3);\n\t\t\t\t\tt=60;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(t+3>60)\n\t\t\t\t{\n\t\t\t\t\tt=60;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(j==0)\n\t\t{\n\t\t\tsum=60;\n\t\t}\n\t\telse if(t+3<60)\n\t\t{\n\t\t\tsum=sum+60-(t+3);\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42694", "code": "int main()\n{\n\tint n,i,j;\n\tscanf(\"%d\",&n);\n\tint time[50],a[50][100];\n\tfor(i=0;i60-(j+2)*3)\n\t\t\t\t{\n\t\t\t\t\tif(60-(j+1)*3>=a[i][j+1])\n\t\t\t\t\t\tprintf(\"%d\",a[i][j+1]);\n\t\t\t\t\telse\n\t\t\t\t\t\tprintf(\"%d\",60-(j+1)*3);\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42695", "code": "\n\nint main() {\n\tint n, i, j;\n\tcin >> n;\n\n\tfor (i = 0; i < n; i++) {\n\t\tint tiaoHuai;\n\t\tcin >> tiaoHuai;\n\n\t\tif (tiaoHuai == 0) {\n\t\t\tcout << 60 << endl;\n\t\t\tcontinue;\n\t\t}\n\n\t\tint leiJi[tiaoHuai];\n\t\tfor (j = 0; j < tiaoHuai; j++) {\n\t\t\tcin >> leiJi[j];\n\t\t}\n\n\t\tfor (j = 0; j < tiaoHuai; j++) {\n\t\t\tif (leiJi[j] + 3 * (j + 1) > 60) {\n\t\t\t\tif (leiJi[j] + 3 * j <= 60) {\n\t\t\t\t\tcout << leiJi[j] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tcout << 60 - 3 * j << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (j == tiaoHuai) {\n\t\t\tcout << 60 - 3 * tiaoHuai << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42696", "code": "int main()\n{\n int m,n,i,j,t,sum,cas;\n int times[10];\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&m);\n cas=0;\n for(j=0;j60){\n t=60-3*j;\n cas=1;\n break; \n }\n else{\n if(sum+3>60){\n t=times[j];\n cas=2;\n break; \n } \n } \n }\n if(cas==0)\n t=60-3*m;\n printf(\"%d\\n\",t); \n }\n return 0;\n}\n"} +{"label": "86", "index": "42697", "code": "\nint main()\n{\n\tint n,time,times,a[20];\n\tint sum,i,x,lost;\n\tcin>>n;\n\tfor (int k=0;k>times;\n\t\tif (times==0) cout<<60<>a[i];\n\t\t\t\tlost=lost+3;\n\t\t\t time=lost+a[i];\n\t\t\t\tif (time>=60)\n\t\t\t\t {\n\t\t\t\t\tif(time>=63) cout<>a[j];\n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t\tif (x==0)\n\t\t\t\tcout<> n;\n\tfor(i=1 ; i<=n ; i++)\n\t{\n\t\tcin >> t;\n\t\tfor(j=0 ; j> a[j];\n\n\t\tif(a[t-1] + 3*t <= 60)\t\t\t\t\t\t\t\t\t\t//?????????????????\n cout << 60 - 3*t << endl;\t\t\t\t\t\t\t\t//????????????-????\n \n\t\telse\n\t\t{\n\t\t\tfor(j=0 ; j= 60 && a[j] + 3*(j+1) <= 63)\t//???????????\n\t\t\t\t{\n\t\t\t\t\tcout << a[j] << endl;\t\t\t\t\t\t\t//??????????????\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(a[j] + 3*(j+1) > 63)\t\t\t\t\t\t\t\t//??????????\n\t\t\t\t{\n\t\t\t\t\tcout << 60 - 3*j << endl;\t\t\t\t\t\t//??????-?????????????j\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n \n return 0;\n}\n \n \n \n"} +{"label": "86", "index": "42699", "code": "int main()\n{\n int n,m,i,j,k,sum,time;//counter\n cin>>n;\n for(i=0;i>m;\n j=m;\n k=0;\n while(j>0)\n {\n cin>>k;\n j--;\n if((k+(m-j)*3)>60)\n break;\n }\n if((k+(m-j)*3)<=60)\n cout<<60-(m-j)*3<3)\n cout<<60-(m-j)*3+3<0;j--)\n cin>>k;\n } return 0;\n}\n"} +{"label": "86", "index": "42700", "code": "int main()\n{\n\tint n, m, i, j, k, b, c;\n\tint a[60] = {0};\n\tcin >> n;\n\tfor(i = 1; i <= n; i ++)\n\t{\n\t\tcin >> m;\n\t\tb = 60 - 3 * m;\n\t\tfor( j = 1; j <= m; j ++)\n\t\t{\n\t\t\tcin >> a[j];\n\t\t}\n\t\tif(a[m] <= b)\n\t\t\tcout << b << endl;\n\t\telse\n\t\t{\n\t\t\tfor(k = 1; k <= m; k ++)\n\t\t\t{\n\t\t\t\tc = 60 - 3 * k;\n\t\t\t\tif(a[k] <= c && a[k + 1] >= c)\n\t\t\t\t{\n\t\t\t\t\tcout << c << endl;\n\t\t\t\t}\n\t\t\t\telse if(a[k] <= c && a[k + 1] <= c && a[k + 1] >= c - 3)\n\t\t\t\t{\n\t\t\t\t\tcout << a[k + 1] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42701", "code": "int main (){\nint n,m,i,j,k,s;\nscanf(\"%d\",&n);\nint a[1000];\ns=0;\nfor(k=0;k60)&&(a[i][(a[i][0]-1)]+(a[i][0]-1)*3<=60))\n\t\t{\n\t\t\tx=a[i][(a[i][0])]+a[i][0]*3-3;\n\t\t\tif(x<=60)y=x;\n\t\t\tif(x>60)y=60;\n\t\t\tw=y-(a[i][0]-1)*3;\n\t\t\tprintf(\"%d\\n\",w);\n\t\t}\n\t\tif((a[i][(a[i][0]-1)]+(a[i][0]-1)*3>60)&&(a[i][(a[i][0]-2)]+(a[i][0]-2)*3<=60))\n\t\t{\n\t\t\tx=a[i][(a[i][0]-1)]+(a[i][0]-1)*3-3;\n\t\t\tif(x<=60)y=x;\n\t\t\tif(x>60)y=60;\n\t\t\tw=y-(a[i][0]-2)*3;\n\t\t\tprintf(\"%d\\n\",w);\n\t\t}\n}\n}"} +{"label": "86", "index": "42703", "code": "int main(){\n int n,m,r,p,v[60],f[60];\n scanf(\"%d\",&n);\n for(int i=0;i<=n-1;i++)\n {\n scanf(\"%d\",&m);\n for(int j=0;j<=m-1;j++)\n {\n {scanf(\"%d\",&v[j]);}\n }\n if(m==0){ p=60-3*(m);\n \n printf(\"%d\\n\",p);}\n else{ int l=0;\n for(int k=0;k<=m-1;k++)\n {\n if(v[k]+3*k>=58){l++;}\n }\n if(l==0){printf(\"%d\\n\",60-3*m);}\n }\n\n \n \n int w=0;\n for(int k=0;k<=m-1;k++)\n {\n if((v[k]+3*k>=58)&&(v[k]+3*k<=60)){w=60-v[k]-3*k;printf(\"%d\\n\",60-3*k-w);break;}\n else if(v[k]+3*k>60){printf(\"%d\\n\",60-3*k);break;}\n }\n \n \n \n }\n \n return 0; } \n"} +{"label": "86", "index": "42704", "code": "int main()\n{\n\tint n;\n\tcin >> n;\n\twhile(n --)\n\t{\n\t\tint m,input[100];\n\t\tint sum=60;\n\t\tcin>>m;\n\t\tinput[0]=0;\n\t\tfor(int i=1; i<= m;i++)\n\t\t{\n\t\t\tcin>>input[i];\n\t\t\tif(input[i]+i*3<=60&&input[i]<60)//?i??????????????60\n\t\t\t{\n\t\t\t\tsum-=3;\n\t\t\t}\n\t\t\telse if(input[i]+i*3<=63)\n\t\t\t\tsum=input[i];\n\t\t}\n\t\tcout<=63)\n\t\t\t\t{\n\t\t\t\t\tsum=60-3*j;\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t\telse if(b[j]>=60&&b[j]<63)\n\t\t\t\t{\n\t\t\t\t\tsum=b[j]-3*(j+1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(b[j]<60&&j==m-1)\n\t\t\t\t{\n\t\t\t\t\tsum=60-time;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tu[i]=sum;\n\t}\n\tfor(i=0;i0)\n\t\t{\n\t \tfor(p2=a[p1-num];p2=60)\n\t\t\t\t{\n\t\t\t\t\tk=1;\n\t\t\t\t\tm=*(p2-1)+60-(*(p2-1)+e);\n\t\t\t\t\tprintf(\"%d\\n\",m);\n\t\t\t\t}\n\t\t\t\tif(k==1)\n\t\t\t\t\tbreak;\n\t\t \te=e+3;\n\t\t\t\tif((*p2+e)>=60)\n\t\t\t\t{\n\t\t\t\t\tk=2;\n\t\t\t\t\tprintf(\"%d\\n\",*p2);\n\t\t\t\t}\n\t\t\t\tif(k==2)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(k==0)\n\t\t\t{\n\t\t\t\tm=60-e;\n\t\t\t\tprintf(\"%d\\n\",m);\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "86", "index": "42707", "code": "int main ()\n{\n\tint n, i, j, a, sum, num[100][60];\n\tscanf(\"%d\", &n);\n\tfor(i=0;i60)\n\t\t\t{\n\t\t\t\tfor(j=1; j<=num[i][0]; j++)\n\t\t\t\t{\n\t\t\t\t\tif(num[i][j]+3*j==61)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum=60-3*j+1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(num[i][j]+3*j==62)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum=60-3*j+2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(num[i][j]+3*j==63||num[i][j]+3*j>63)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum=60-3*(j-1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum=60-3*a;\n\t\t\t}\n\t\t printf(\"%d\\n\", sum);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42708", "code": "int main()\n{\n\tint n,k,i,x,a[100];\n\tcin>>n;\n\tfor (k=0;k>x;\n\t\tif (x==0)\n\t\t\tcout<<\"60\"<>a[i];\n\t\t\t\tif (a[i-1]+3*i>60)\n\t\t\t\t\tcontinue;\n\t\t\t\telse if (a[i]+3*i>60)\n\t\t\t\t\tcout<<60-3*i<60)\n\t\t\t\t\tcout<= 60 )\n\t\t\t{\n\t\t\t\tint tmp1;\n\t\t\t\ttmp1 =\ttiao1[i].ln[j-1]+3*(j) ;\n\t\t\t\tif ( tmp1 >= 60 )\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",tiao1[i].ln[j-1]);\n\t\t\t\t}\n\t\t\t\tif ( tmp1 < 60 && 60 - tmp1 > 3 )\n\t\t\t\t{\n\t\t\t\t\ttmp1 = 60 - tmp1 + tiao1[i].ln[j-1];\n\t\t\t\t\tprintf(\"%d\\n\",tmp1);\n\t\t\t\t}\n\t\t\t\tif ( tmp1 < 60 && 60 -tmp1 < 3 )\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",tiao1[i].ln[j-1]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( tiao1[i].sumt < 57 )\n\t\t{\n\t\t\ttiao1[i].sumt += 3;\n\t\t\tj--;\n\t\t\tprintf(\"%d\\n\",(60-tiao1[i].sumt+tiao1[i].ln[j]));\n\t\t}\n\t\tif ( tiao1[i].sumt < 60 && tiao1[i].sumt > 57 )\n\t\t{\n\t\t\tprintf(\"%d\\n\",tiao1[i].ln[j-1]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42711", "code": "int main()\n{\n\tint pause[21],skip,m,time[21],i,n,counter=0; //????\n\tcin>>n;\n\twhile (counter>m)\n\t{\n\t\t counter++; //????????????n??????\n\t\t\tfor (i=1;i<=m;i++)\n\t\t\t{\n\t\t\t\tcin>>pause[i];\n\t\t\t}\n\t\t\tfor (i=1,skip=60-3*m;i<=m;i++) //????????skip????????m=1?0?????????\n\t\t\t{\n\t\t\t\ttime[i]=pause[i]+3*i; //????????????\n\t\t\t\tif (time[i]>=63)\n\t\t\t\t{\n\t\t\t\t\t\tskip=pause[i]+63-time[i]; //????????????????????????\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (time[i]>=60)\n\t\t\t\t{\n\t\t\t\t\tskip=pause[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcout<60)\n ans-=63-tmp-t;\n else\n ans-=3;\n }\n }\n printf(\"%d\\n\",ans);\n }\n}"} +{"label": "86", "index": "42713", "code": "void main()\n{\n\tint n,a,i,j,b[20],no[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0) \n\t\t{\n\t\t\tfor(j=1;j<=a;j++) scanf(\"%d\",&b[j]);\n\t\t\tfor(j=0;j=60) no[i]=b[a-j];\n\t\t\telse no[i]=60-3*(a-j);\n\t\t}\n\t\telse no[i]=60;\n\t}\n\tfor(i=0;i=63))\n\t\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t\t\telse if(b[i][j]+3*j>=60&&b[i][j]+3*j<63)\n\t\t\t\t\tprintf(\"%d\\n\",b[i][j]);\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "86", "index": "42715", "code": "int main ()\n{\n\tint n,m,i,j,s[20],z[20];\n\tscanf (\"%d\",&n);\n\tfor (i=0;i=57&&s[j]+j*3<=60)\n\t\t\t\t{\n\t\t\t\t z[i]=s[j];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (s[j]+j*3>=60)\n\t\t\t\t{\n\t\t\t\t\tz[i]=s[j]-(s[j]+j*3-60);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;i> n;\n\tfor (i=0;i> m;\n\t\tif(m==0)\n\t\t{\n\t\t\tcout << 60 << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor (j=0;j> a[j];\n\t\t\t}\n\t\t\tfor (k=m;k>0;k--)\n\t\t\t{\n\t\t\t\t//cout <60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << 60-3*(m-k) << endl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(a[m-1]+3*m<60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << 60-3*m << endl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42717", "code": "int main()\n{\n int n,i,j,k;\n\tscanf(\"%d\",&n);\n\tint a[100],b[100];\n\tint c[100][100];\n\tfor(i=0;i=63){\n\t\t\ta[i]=a[i];}\n\t\telse{\n\t\t\ta[i]=c[i][j];}\n\t\t}\n\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42718", "code": "\nint main()\n{\n int i, j, n, w, sum, flag, k, x, t= 0;\n cin >> n;\n while(t < n)\n {\n cin >> w;\n\t\tflag=0;\n for(j=0;j> sum;\n if(flag!=-1&&(sum+3*(j+1))>59){\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n }\n for(k=j+1;k> x;\n if(flag&&(sum<=60)&&((sum+3*j)<=60))\n cout << sum << endl;\n else\n cout << 60-j*3<< endl;\n\t\tt++;\n };\n \n return 0;\n}"} +{"label": "86", "index": "42719", "code": "int main()\n{\n int n,m,i,a,b[100],k;\n cin>>n;\n for(i=0;i>m;\n\t if(m==0)\t\t\t\t\t\t\t//m=0????\n\t\t cout<<60<>a;\n\t\t\t\tb[k]=a;\n\t\t\t}\n\t\t\tfor(k=m-1;k>=0;k--)\t\t\t//?????????\n\t\t\t{\n\t\t\t\tif(b[k]+3*(k+1)<=60)\n\t\t\t\t{\n\t\t\t\t\tcout<<60-3*(k+1)<60&&sum-3<=60)\n\t\t\t\t\tprintf(\"%d\\n\",b[t]);\n\t\t\t\telse if(sum-3>60&&b[t-1]+3*(t-1)<60)\n\t\t\t\t\tprintf(\"%d\\n\",63-3*t);}}}\n\treturn 0;\n}"} +{"label": "86", "index": "42721", "code": "\nint main()\n{\n\tint n,m,wrong_mark,i,j,time,mark;\n\tscanf (\"%d\",&n);\n\tfor (i=0;i=57&&wrong_mark<66-3*m){\n\t\t\t\t\tmark=wrong_mark;\n\t\t\t\t}\n\t\t\t}\n\t\t}printf(\"%d\\n\",mark);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42722", "code": "\n\nint main()\n{\n int n, m, t, itime = 0;\n int mat1[100][100];\n cin >> n;\n\n for(int i = 0; i < n; i++) {\n cin >> m;\n mat1[i][0] = m;\n for (int j = 1; j < m + 1; j++) {\n cin >> mat1[i][j];\n }\n }\n\n for(int i = 0; i < n; i++) {\n m = mat1[i][0];\n if(mat1[i][0] == 0){\n cout << 60 << endl;\n continue;\n }\n for (int j = 1; j < m + 1; j++) {\n\n t = mat1[i][j];\n\n if ((t + j*3) >= 60 && (t + j*3) < 63) {\n cout << t << endl;\n break;\n }\n\n if ((t + j*3) >= 60 && (t + j*3) >= 63) {\n cout << (63 - j*3) << endl;\n break;\n }\n if (j == m)\n cout << (60 - j*3) << endl;\n }\n }\n return 0;\n}"} +{"label": "86", "index": "42723", "code": "void main()\n{\n\tint n,i,m,temp;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;m--)\n\t\t{\n\t\t\tscanf(\"%d\",&temp);\n\t\t\tif(temp60)\n\t\t\t{printf(\"%d\\n\",c[m]);}\n\t\t\telse\n\t\t\tprintf(\"%d\\n\",60-m*3);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(j=m;(c[j]+(j-1)*3)>60;j--)\n\t\t\t{;}\n\t\t\tif((c[j]+j*3)>60)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",c[j]);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",60-j*3);\n\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42725", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int time,jump,broken,i,j,b,sum[n+1],brokenjump[21];\n for (i=1,broken=0;i<=n;i++)\n {\n scanf (\"%d\",&broken);\n if (broken==0)\n {\n sum[i]=60;\n continue;\n }\n for (j=1;j<=broken;j++)\n {\n scanf (\"%d\",&brokenjump[j]);\n } \n for (time=0,jump=0,b=1;time<60;)\n {\n if ((jump == brokenjump[b])&& b<=broken)\n {\n time=time+3;\n b++;\n }\n else {\n jump++;\n time++;\n }\n }\n sum[i]=jump;\n }\n for (i=1;i<=n;i++)\n {\n printf(\"%d\\n\",sum[i]);\n }\n return 0;\n}\n "} +{"label": "86", "index": "42726", "code": "/*\n * 1000012739_final_7.cpp\n *\n * Created on: 2010-12-17\n * Author: ???\n *\t\tTitle: 1049 ????\n */\n\n\n\nint main()\n{\n\tint time,cnt,i,j,useless,n,icnt,pausecnt,trial;\t//?????????\n\tcin>>n;\t\t\t\t//??????\n\tfor (i=0;i>icnt;\t\t//??????\n\t\tif (icnt==0)\t//??0????60????????\n\t\t{\n\t\t\tcout<<60<>trial;\n\t\tdo\n\t\t{\n\t\t\tif (trial==cnt)\t\t//???????\n\t\t\t{\n\t\t\t\tpausecnt++;\t\t//??????\n\t\t\t\ttime+=3;\t\t//???3\n\t\t\t\tif (time>=60)\t//???????\n\t\t\t\t\tbreak;\n\t\t\t\tif (pausecnt!=icnt)\t\t//?????????????\n\t\t\t\t\tcin>>trial;\n\t\t\t}\n\t\t\ttime++;\t\t//????\n\t\t\tcnt++;\t\t//????\n\t\t}\n\t\twhile (time<60);\n\t\tcout<>useless;\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42727", "code": "\nint main(int argc, char* argv[])\n{\n\tint i,j,n,m,a;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60) continue;\n\t\t\telse now+=k-sum+3,sum=k;\n\t\t\t//if(n==0&&y==6) printf(\"sum=%d now=%d\\n\",sum,now);\n\t\t}\n\t\tif(now<60) sum+=60-now;\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42729", "code": "int main()\n{\n\tint n,i,stop,j,a[11],t,total;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tfor(k=0;k>m;\n\t\tif(m==0)\n\t\t\tcout<<60<>a[i];\n\t\t\tfor(i=1;i<=m;)\n\t\t\t{\n\t\t\t\tif((a[i]+i*3)<60)\n\t\t\t\t\ti++;\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(((a[i]+(i-1)*3)<=60)&&(a[i]+i*3>60))\n\t\t\t\tsum=a[i];\n\t\t\telse\n\t\t\t\tsum=60-(i-1)*3;\n\t\t\tcout<>n;\n int breaktimes,num[100],time,count,mark,temptime;\n for(int ii=0;ii>breaktimes;\n if(breaktimes==0){cout<>num[i];\n for(j=0;j0)\n count=num[mark]+temptime;\n else count=num[mark];\n }\n cout<>n;//?????n\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tint m,a[20]={0};cin>>m;//??????m\n\t\tfor(int j=1;j<=m;j++)\n\t\t\tcin>>a[j];//??????????\n\t\tif(a[m]+3*m<60)\n\t\t\tcout<<60-3*m<60)//??a[j]+3*(j-1)>60\n\t\t\t\t{\n\t\t\t\t\tcout<<60-3*(j-1)<60)//??a[j]+3*j>60\n\t\t\t\t{\n\t\t\t\t\tcout<>n;\n int breaknum[n],altogether[n][30];\n int count[n];\n for(i=0;i>breaknum[i];\n for(j=0;j>altogether[i][j];\n }\n if(breaknum[i]==0) {cout<<\"60\"<60&&altogether[i][j-2]+3*(j-2)<=60)\n {\n cout<60&&altogether[i][j-1]+3*j<=63)\n {\n cout<60&&altogether[i][j-2]+3*j<=60)\n {\n count[i]=60-3*(j-1);\n cout<60&&altogether[i][j-2]+3*(j-1)<63)\n {\n count[i]=altogether[i][j-2];\n cout<> n;\t\t//????\n\tfor(; n > 0; n--)\t//???????????\n\t{\n\t\tcin >> m;\t\t//???????\n\t\tcount0 = 60;\t//???60?\n\t\tfor(i = 1; i <= m; i++)\n\t\t{\n\t\t\tcin >> count;\n\t\t\t//????????????????????????????-3????????????????????\n\t\t\tif(count < count0 - 3)\t\t\n\t\t\t{\n\t\t\t\tcount0 -= 3;\n\t\t\t}\n\t\t\t//????????????????????????????-3????????????????????????????????count??????\n\t\t\telse if(count < count0 && count >= count0 - 3)\n\t\t\t{\n\t\t\t\tcount0 = count; \n\t\t\t}\n\t\t\t//?????????????????????????????????count0\n\t\t}\n\t\tcout << count0 << endl;\t\t//??????\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42735", "code": "int num(int [], int);\nint main()\n{\n\tint n;\n\n\tcin >> n;\n\n\tfor (int i = 0; i < n; i ++)\n\t{\n\t\tint m , count[100];\n\n\t\tcin >> m;\n\t\tif (m == 0)\n\t\t\tcout << \"60\" << endl;\n\t\telse\n\t\t{\n\t\t\tfor (int j = 0; j < m; j ++)\n\t\t\t\tcin >> count[j];\n\n\t\t\tcout << num(count, m) << endl;\n\t\t}\n\t}\n\n\treturn 0;\n}\n\nint num(int count[], int n)\n{\n\tint i = 0;\n\tif (count[n - 1] + 3 * n <= 60)\n\t\treturn 60 - n * 3;\n\telse if ((count[n - 1] + 3 * n) > 60 && (count[n - 1] + 3 * n) <= 63)\n\t\treturn count[n - 1];\n\telse\n\t{\t\n\t\twhile ((count[i] + 3 * i) <= 60)\n\t\t\ti ++;\n\t\treturn num(count, i);\n\t}\n}"} +{"label": "86", "index": "42736", "code": "\n\nint main()\n{\n int n,m;\n int i=0;\n int k;\n cin>>n;\n int a[60];\n for(i=0;i>m;\n if(m==0)\n cout<<60<>a[k];\n }\n if((a[m-1]+(m-1)*3)<=57)\n cout<<60-m*3<=57&&a[k]+k*3<=60)\n {\n cout<60)\n {\n\n cout<<60-k*3<>n;\n\tint k;\n\tfor (k=1;k<=n;k++)\n\t{\n\t\tint t,i;\n\t\tcin>>t;\n\t\tif (t==0) cout<<\"60\"<>time[i];\n\t\t\tfor (i=0;i=60)\n\t\t\t\t{\n\t\t\t\t\tif (time[i]+3*i<=60) cout<>n;\n int time[100][100];\n int num[100];\n for(int i=0;i>num[i];\n\t int j=0;\n\t for(j=0;j>time[i][j];\n\t while(true)\n\t {\n\n\t\t if((time[i][j-1]+3*num[i])<=60)\n\t\t {cout<<60-3*num[i]<0)\n s-=3;\n if(s0-a[j]>=-3&&s0-a[j]<=0)\n s-=3+s0-a[j];\n }\n printf(\"%d\\n\",s);\n}\nreturn 0;\n}"} +{"label": "86", "index": "42740", "code": "void tiao(int b)\n{\n int n,i;\n int t[100]={0};\n int c[100]={0};\n cin>>n;if(n==0)cout<<\"60\"<>c[i];\n }\n for(i=1;i<=n;i++)\n {\n t[i]=c[i]+(i-1)*3;if(t[i]>=57&&t[i]<=60){cout<60){cout<>n1;\n for(i=0;i>n;\n for(int i=0;i>m;\n if(m==0)\n cout<<\"60\"<>p[j];\n }\n for(int k=m-1;k>=0;k--)\n {\n if(p[k]+k*3<=60)\n {\n w=k;break;\n }\n }\n if((p[w]+3*(w+1))>=60)\n cout<> n;\n\twhile (n != 0)\n\t{\n\t\tcin >> b; // b?????? \n\t\tfor (i = 1; i <= b; i++)\n\t\t{ \n\t\t\tcin >> a[i]; // ???i????????? \n\t\t} \n\t\tfor (i = b; ; i--)\n\t\tif ((a[i] + 3 * (i - 1)) <= 60) \n\t\t\tbreak;\t\n\t\tif (a[i] + 3 * i >= 60) \n\t\t\tx = a[i]; // ??????? \n\t\telse\n\t\t\tx = 60 - 3 * i; // ??????? \n\t\tcout << x << endl;\n\t\tn--;\t\t\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42743", "code": "main()\n{\nint n,i,j,m;\nstatic int x[100];\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++)\n {\n scanf(\"%d\",&m);\n for(j=1;j<=m;j++)\n scanf(\"%d\",&x[j]);\n for(j=m; ;j--)\n {if((x[j]+j*3)<=60)\n {printf(\"%d\\n\",60-j*3);\n break;}\n if((x[j]+j*3)>60&&(x[j]+(j-1)*3)<=60)\n {printf(\"%d\\n\",x[j]);\n break;} }\n }\n}\n"} +{"label": "86", "index": "42744", "code": "int main(int argc, char* argv[])\n{\t\t\t\t\t\t\t\t\t\t\t// n:??? f: ????????\n\tint n ,i, j, f, NUM, t, num[10],A[10] ; // NUM????? t????? num:?????????? \n\tscanf(\"%d\",&n);\t\t\t\t\t\t\t// A[10]:?????????\t\t\t\t\n\tfor (i=0;i 0)\n\t\t\t{\n \t\t\t\tNUM = num[j];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if( t<=0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if ( t > 3)\n\t\t\t{\n\t\t\t\tNUM -= 3;\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t}\n\t\tA[i]=NUM;\t\t\n\t}\n\tfor (i=0;i63)\n\t\t\t\t\t{\n\t\t\t\t\t\tnum=60-3*j;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\tif(t>60&&t<=63)\n\t\t\t\t\t{\n\t\t\t\t\t\tnum=a[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(t<=60)\n\t\t\t\tnum=60-m*3;\n\t\t\tprintf(\"%d\\n\",num);\t\t\t\n\t\t\t\n\t\t}\n\t}\n\t\nreturn 0;\n}"} +{"label": "86", "index": "42746", "code": "int main()\n{\n int Nxiaopengyou, Mtiaohuai, *Leijicishu;\n int i,j;\n int cishu,shijian;\n scanf(\"%d\",&Nxiaopengyou);\n for(i=0;i0)\n shijian+=Leijicishu[j-1];\n if(shijian>0)\n cishu-=3;\n else\n {\n if(Leijicishu[j]60) ){\n\t\t second -= time * 3;\n\t }\n\t else{\n\t\tsecond = 60 - time * 3;\n\t }\n printf( \"%d\\n\", second );\n\t second = 0;\n\t time = 0;\n\t// printf(\"************************\\n\");\n }\n return 0;\n}\n"} +{"label": "86", "index": "42748", "code": "/*\n * file homework 9_6\n * author ??\n * date 2010-11-24\n * description\n ?????????????????\n*/\n\n\n\nint main()\n{\n\tint n, m, s, i;\n\tint a[15];\n\tcin >> n;\n\twhile(n --)\n\t{\n\t\tcin >> m;\n\t\tif (m == 0)\n\t\t{ cout << 60 << endl; continue; }\n\t\tfor (i = 0; i < m; i ++)\n\t\t\tcin >> a[i];\n\t\tfor (i = 0; i < m; i ++)\n\t\t{\n\t\t\tif (a[i] + i * 3 >= 60)\n\t\t\t{ s = 60 - i * 3; break; }\n\t\t\tif (a[i] + i * 3 + 3 >= 60)\n\t\t\t{ s = a[i]; break; }\n\t\t}\n\t\tif (i == m)\n\t\t\ts = 60 - m * 3;\n\t\tcout << s << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42749", "code": "int main()\n{\n\tint time[100][60];\n\tint d[20];\n\tint i,m,j,b;\n\tint sum;\n\t\n\n\tint data[100][60];\n\t\n\tscanf(\"%d\",&m);\n\tfor(i=0;i> n;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tcin >> a[i];\n\t\tfor(j = 0; j < a[i]; j++)\n\t\t\tcin >> b[i][j];\n\t}\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tfor(j = 0; j < a[i]; j++)\n\t\t{\n\t\t\tif((b[i][j] + j * 3 + 3) >= 60)\n\t\t\t{\n\t\t\t\tif((b[i][j] + j * 3) < 60)\n\t\t\t\t\tcout << b[i][j] << endl;\n\t\t\t\telse\n\t\t\t\t\tcout << 60 - j * 3 << endl;\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag == 0)\n\t\t{\n\t\t\tcout << 60 - j * 3 << endl;\n\t\t}\n\t\tflag = 0;\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42751", "code": "int num (int m, int a[])\n{\n\tint i, time = 0, count = 0;\n\tfor(i = 0; ;i++)\n\t{\n\t\tif(m == 0)\n\t\t\treturn 60;\n\t\telse\n\t\t{\n\t\t\ttime = time + a[i];\n\t\t\tif(time < 60)\n\t\t\t{\n\t\t\t\ttime = time + 3;\n\t\t\t\tcount++;\n\t\t\t\tif(time < 60)\n\t\t\t\t{\n\t\t\t\t\tif(count < m)\n\t\t\t\t\t{\n\t\t\t\t\t\ttime = time - a[i];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\treturn a[i] + 60 - time;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn a[i];\n\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn (a[i] - (time - 60));\n\t\t}\n\t}\n\n}\nint main()\n{\n\tint n, i, m, j;\n\tint a[15] = {0};\n\tcin >> n;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tmemset(a, 0, sizeof(a));\n\t\tcin >> m;\n\t\tfor(j = 0; j < m; j++)\n\t\t\tcin >> a[j];\n\t\tcout << num (m, a) << endl;\n\t\t\n\t}\n\n\treturn 0;\n\n}\n\n"} +{"label": "86", "index": "42752", "code": "int jilu[100];\n\nint main()\n{\n\n memset(jilu,0,sizeof jilu);\n int total,i;\n cin>>total;\n\n for(i=1;i<=total;i++)\n {\n int a[20];\n memset(a,0,sizeof a);\n int n,j;\n cin>>n;\n if(n==0) jilu[i]=60;\n else\n {\n for(j=1;j<=n;j++) cin>>a[j];\n if(a[1]>=60) jilu[i]=60;\n else\n {\n int time;\n for(j=1;j<=n;j++)\n {\n time=a[j]+3*j;\n if(a[j]<60&&a[j]+3*j>60)\n {\n jilu[i]=a[j];\n break;\n }\n else if(time<60&&(a[j+1]+3*j>60)) break;\n }\n if(j<=n)\n {\n if((60-time>a[j+1]-a[j])&&a[j+1]>0) jilu[i]=a[j+1];\n else if(a[j]<60&&a[j]+3*j>60);\n else jilu[i]=60-3*j;\n }\n else jilu[i]=63-3*j;\n\n }\n\n }\n\n\n }\n for(i=1;i<=total;i++) cout<=57&&m[b-1]+3*(b-1)<=60){\n\t\t\t\t\t\t printf(\"%d\\n\",m[b-1]);\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t d=1;\n \n while(d<=b){\n\t\t\t\t\t if(m[d-1]+3*(d-1)>60){\n\t\t\t\t\t\t if(m[d-2]+3*(d-2)<=57){\n\t\t\t\t\t\t printf(\"%d\\n\",63-3*d);break;\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t printf(\"%d\\n\",m[d-2]);break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t\t d++;\n\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t}\n\t}\n}\n"} +{"label": "86", "index": "42755", "code": "int main()\n{\n int n;\n cin>>n;\n for(int i=0;i>k;\n if(k==0) cout<<60<>a[j];\n for(int j=0;j60&&cs[i][j-2]+3*w<=60){\n\t\t\tif(cs[i][j-1]+3*w-60>3)\n\t\t\t\tr=60-3*(w-1);\n\t\t\telse\n\t\t\t\tr=cs[i][j-1];}\t\t\t\n\t\telse if(cs[i][j-01]+3*w>60&&cs[i][j-2]+3*(w-1)>60){\n\t\t\tif(cs[i][j-2]+(w-2)*3<60)\n\t\t\t\tr=cs[i][j-2];\n\t\t\telse\n\t\t\t\tr=60-(w-2)*3;}\n\t\tprintf(\"%d\\n\", r);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42757", "code": "int main()\n{\n int n,i;\n scanf(\"%d\",&n);\n for(i=0;i1)\n {\n for(j=0;j60)\n\t\t{\n\t if((a[j]+3*(j+1))<=60&&(a[j+1]+3*(j+2))>60)\n\t\t {\n\t\t if((a[j+1]+3*(j+1))>60)\n\t\t {\n\t\t int e=60-3*(j+1);\n\t\t\t printf(\"%d\\n\",e); \t\t\t\t\t\t \n\t\t }\n\t\t else\n\t\t {\n\t\t printf(\"%d\\n\",a[j+1]); \t \n\t } \t\t\t\t\t\t\t\t\t\t \n\t }\n\t } \t\t\t\t\n }\n }\n free(a); \t\t\t\t \n }\n return 0;\t \n}"} +{"label": "86", "index": "42758", "code": "main()\n{\n int m,n,i,j,k,l,sum,t;\n scanf(\"%d\",&m);\n for (i=1;i<=m;i++)\n {\n scanf(\"%d\",&n); \n sum=60;t=0; \n for (j=1;j<=n;j++)\n {\n scanf(\"%d\",&l);\n if (sum>l)\n { \n if (sum-l<3) sum=l;\n else sum=sum-3;\n }\n } \n printf(\"%d\\n\",sum);\n }\n \n }\n"} +{"label": "86", "index": "42759", "code": "int main()\n{\nint Nchildren, Mstop, * Total;\nint i,j;\nint x,time;\n\nscanf(\"%d\",&Nchildren);\n\nfor(i=0;i0)\n time=time+Total[j-1]; \n if(time>0) \n x=x-3;\n else \n {\n if(Total[j]=63)\n \t \t{\n \t \t\tc=60-(times[i][j-1]+3*j);\n \t \t\td=times[i][j-1]+c;\n \t \t\tprintf(\"\\n%d\",d);\n break;\n \t \t}\n \t \telse if(b>=60){printf(\"\\n%d\",times[i][j]);break;}\n \t }\n \t if((times[i][a[i]-1]+3*a[i])<60)\n \t {\n \t \tk=60-a[i]*3;\n \t printf(\"\\n%d\",k);\n \t }\n \t }\n }\n return 0;\n}"} +{"label": "86", "index": "42761", "code": "main()\n{int n,i;\n cin>>n;\n for(i=0;i>h;\n if(h==0)\n {cout<<\"60\"<>a[j];\n int flag=0;\n for(j=0;j=60)\n {flag=1;\n if(a[j]+3*j+3>63)\n\t cout<<60-3*j<60){\n\t\t\t\tjieshu=leiji[m-2]+3*(m-2);\n\t\t\t\tif(jieshu<60){\n\t\t\t\t if(jieshu<=57){\n\t\t\t\t\tzongshu=60-3*(m-1);\n\t\t\t\t}else{\n\t\t\t\t\tzongshu=jieshu-3*(m-2); \n\t\t\t\t}\n\t\t\t\t}else{\n zongshu=60-3*(m-2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t printf(\"%d\\n\",zongshu);\n\t}\nreturn 0;\n}"} +{"label": "86", "index": "42763", "code": "int main()\n{\n int a[100]={0},t,n,i,j,ans;\n scanf(\"%d\",&n);\n for(i=0;i60)\n { \n ans=60-3*(t-2);\n printf(\"%d\\n\",ans); continue; } \n else if(a[t-2]+3*(t-1)>60)\n { \n ans=a[t-2];\n printf(\"%d\\n\",ans); continue; }\n else if(a[t-1]+3*(t-1)<=60&&a[t-1]+3*t>=60)\n { printf(\"%d\\n\",a[t-1]);\n continue; } \n \n else if(a[t-1]+3*(t-1)<60)\n { printf(\"%d\\n\",60-3*t);\n continue; }\n \n else if(a[t-1]+3*(t-1)>60)\n { printf(\"%d\\n\",60-3*(t-1));\n continue; } \n else if(a[t-1]+3*(t-2)>60)\n { \n ans=60-3*(t-2);\n printf(\"%d\\n\",ans);\n continue; } \n \n \n \n }\n return 0;\n \n \n }\n"} +{"label": "86", "index": "42764", "code": "//============================================================================\n// Name : 13.cpp\n// Author : \n// Version :\n// Copyright : Your copyright notice\n// Description : Hello World in C++, Ansi-style\n//============================================================================\n\n\nint main() {\n\tint n;\n\tcin>>n;\n\tint x[10],m,a[200];\n\tfor(int i=0;i>m;\n\t\tfor(int i=0;i>x[i];\n\t\tx[m]=60;//?????60?\n\t\tmemset(a,0,400);\n\t\tint num=-3,sum=0;\n\t\tfor(int i=0;i<=m;i++)\n\t\t\tfor(num+=3;sum=57 ) \n\t\t{\n\t\t\tprintf(\"%d\\n\",g);break;\n\t\t}\n\t\tif(time>60) \n\t\t{\n\t\t\tprintf(\"%d\\n\",g-(time-60));break;\n\t\t}\n\t\n\t}\n\n if(time<57) printf(\"%d\\n\",g+(60-time)-3);\n\t}\n\n\n\t\n}\n\n\t\n}"} +{"label": "86", "index": "42766", "code": "int main()\n{\n int n,i;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n {\n int breaktime,j; //????\n scanf(\"%d\",&breaktime) ;\n int n[breaktime],k=0,l=0; //l??? \n if(breaktime==0)\n printf(\"60\\n\");\n else\n {\n for(j=1;j<=breaktime;j++)\n {\n scanf(\"%d\",&n[j]);\n if(3*j+n[j]<=60)\n k=k+1;\n else if(3*j+n[j]>=63)\n k=k;\n else if(3*j+n[j]==61)\n {\n k=k+1;\n l=1;\n }\n else if(3*j+n[j]==62) \n {\n k=k+1;\n l=2;\n }\n }\n int total;\n total=60-3*k+l; \n printf(\"%d\\n\",total);\n }\n }\n return 0;\n} \n \n"} +{"label": "86", "index": "42767", "code": "\nint main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i,j;\n\tfor(i=0;i(time-3)&&a<=time)\n\t\t\t{\n\t\t\t\ttime=a;\n\t\t\t}\n\t\t}\n\t\t\tprintf(\"%d\\n\",time);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42768", "code": "int main()\n{\n\tint n, i, j, l, k, m;\n\tint A[1000][10];\n\tint B[200];\n\tscanf(\"%d\", &n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\", &m);\n\t\tfor(j=1;j<=m;j++)\n\t\t{\n scanf(\"%d\", &A[i][j]); \n\t\t}\n\t\tif(A[i][m]+3*m<60)\n\t\t{\n\t\t\tB[i]=60-3*m;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(k=1;k<=m;k++)\n\t\t\t{\n\t\t\t\tif(A[i][k]+3*k>=60&&A[i][k]+3*k<=63)\n\t\t\t\t{\n\t\t\t\t\tB[i]=A[i][k];\n\t\t\t\t}\n\t\t\t\telse if(A[i][k-1]+3*k-3<60&&A[i][k]+3*k>=60)\n\t\t\t\t{\n\t\t\t\t\tB[i]=60-k*3+3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(l=1;l<=n;l++)\n\t{\n\t\tprintf(\"%d\\n\", B[l]);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42769", "code": "int main()\n{\n\tint n,i,j,m,g,t,a[20],k;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60)\n\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(t<60)\n\t\t\t{\n\t\t\t\tg++;\n\t\t\t\tt++;\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",g);\n\t\t}\n\t}\n\t\t\t\n\n\treturn 0;\n}\n"} +{"label": "86", "index": "42770", "code": "int main()\n{\n\tint n,i,j,sum=0,a[100][20],num[100];\n\tcin>>n;\n\tfor(i=0;i>a[i][0];\n\t for(j=1;j<=a[i][0];j++)\n\t\t\tcin>>a[i][j];\n if(a[i][0]==0) num[i]=60;\n\t\telse\n\t\t\tfor(j=1;j<=a[i][0];j++)\n\t\t\t{\n\t\t\t\tsum=a[i][j]+3*j;\n\t\t \tif(sum>60) \n\t\t\t\t{\n\t\t\t\t\tif(a[i][j]+3*(j-1)<60)\n\t\t\t\t\t num[i]=a[i][j];\n\t\t\t\t else \n\t\t\t\t \t num[i]=60-3*(j-1);\n\t\t\t \tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\tif(num[i]==0) \n\t\t\tnum[i]=60-3*a[i][0];\n\t\telse num[i]=num[i];\n\t}\n\tfor(i=0;i>n;\n int s[n],b[n];\n for(i=1;i<=n;i++){\n cin>>m;\n int a[i][m];\n for(j=0,s[i]=60,b[i]=0;j>a[i][j];\n b[i]=a[i][j]+3*j+3;\n if(b[i]<=60){s[i]-=3;}\n else if(b[i]>=63){s[i]=s[i];}\n else{s[i]=a[i][j];}}\n printf(\"%d\\n\",s[i]);\n }\n \n return 0;\n }"} +{"label": "86", "index": "42772", "code": "void main(){\n\tint n,m;\n\tint a[60],sum;\n\tint i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60){//?????????????60s???60?????????????ok\u0097\u0097\u0097\u0097?1????\n\t\t\t\tsum=60-3*j;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(a[j]+3*(j+1)>=60){//??????(??a[j])???????60s??????????3s????????a[j]\u0097\u0097\u0097\u0097?2????\n\t\t\t\tsum=a[j];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(j==m)//\n\t\t\tsum=60-3*m;\n\t\tprintf(\"%d\\n\", sum);\n\t}\n}\n//????????1???????60s??2???3s???60s?\n\n"} +{"label": "86", "index": "42773", "code": "\nint main(){\n\tint sz[100][100],n,tiaohuai[100],sum[100]={0},i,k,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60){\n\t\t\t\tif(sz[i][k-1]+3*k>=60){\n\t\t\t\t\tsum[i]=sz[i][k-1];\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tsum[i]=60-3*k;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(sum[i]==0){\n\t\t\tif(j+3<=60){\n\t\t\t\tsum[i]=60-tiaohuai[i]*3;\n\t\t\t}else{\n\t\t\t\tsum[i]=sz[i][k-1];\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tfor(int i=0;i>a;\n\t\tif(a==0)\n\t\t\tc=60;\n\t\telse\n\t\t{\n\t\t\tfor(int j=0;j>b[j];\n\t\t\t\tif(b[j]+3*j<58)\n\t\t\t\t{\n\t\t\t\t\tc=60-3*a;\n\t\t\t\t}else if(b[j]+3*j>57&&b[j]+3*j<61)\n\t\t\t\t{\n\t\t\t\t\tc=b[j];\n\t\t\t\t\n\t\t\t\t}else if(b[j]+3*j>60&&b[j-1]+3*j-3<58)\n\t\t\t\t{\n\t\t\t\t\tc=60-3*j;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<=60)\n\t\t{\n\t\t for(l=j+1;l<=m;l++)\n\t\t\t scanf(\"%d\",&c[l]);\n\t\t break;\n\t\t}\n\t\tif(k+3*j>60)\n\t\t{\n\t\t for(l=j+1;l<=m;l++)\n\t\t\t scanf(\"%d\",&c[l]);\n\t\t t=60-(k+3*(j-1));\n\t\t break;\n\t\t}\n\t }\n\t printf(\"%d\\n\",60-3*(j-1)-t);\n }\n}"} +{"label": "86", "index": "42776", "code": "int main()\n{\n\tint n,i,j,m,a[100][100],b[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tif(m>0)\n\t\t{\n\t\t for(j=0;j<=m-1;j++)\n\t\t\t{\n\t\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t\t}\n\t\t\tif(60-3*m>=a[i][m-1]+3)\n\t\t\t{\n\t\t\t\tb[i]=60-3*m;\n\t\t\t}\n\t\t\tif(60-3*m>=a[i][m-1]&&60-3*m=0;j--)\n\t\t\t\t{\n\t\t\t\t\tif(60-3*(j+1)>=a[i][j]+3)\n\t\t\t\t\t{\n\t\t\t\t b[i]=60-3*(j+1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t if(60-3*j>=a[i][j]&&60-3*j=63)\n\t\t\t {\n\t\t\t\t t[i]=63-j*3;\n\t\t\t\t break;\n\t\t\t }\n\t\t\t else if(k[j]+j*3>=60)\n\t\t\t {\n\t\t\t\t t[i]=k[j];\n\t\t\t\t break;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t t[i]=60-3*m;\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0)\n\t\t\tprintf(\"\\n\");\n\t\tprintf(\"%d\",t[i]);\n\t}\n\treturn 0;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t"} +{"label": "86", "index": "42779", "code": "int main(){\n\tint n;\n\tint result;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i60){\n result=cishu[c];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tprintf(\"%d\\n\",result);\t\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42780", "code": "int main()\n{\n\tint n;\n\tcin >> n;\n\tint i = 0, j = 0;\n\tint tiaohuai = 0;\n\tint tiao[200];\n\tmemset(tiao, 0, sizeof(tiao));\n\tint pro = 0;\n\tint count = 0;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> tiaohuai;\n\t\tfor (j = 0; j <= tiaohuai - 1; j++)\n\t\t{\n\t\t\tcin >> pro;\n\t\t\ttiao[pro + 3 * j + 1] = 1;\n\t\t}\n\t\tcount = 0;\n\t\tfor (j = 1; j <= 60;)\n\t\t{\n\t\t\tif (tiao[j] == 0)\n\t\t\t{\n\t\t\t\tj++;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse \n\t\t\t\tj += 3;\n\t\t}\n\t\tcout << count << endl;\n\t\tmemset(tiao, 0, sizeof(tiao));\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42781", "code": "int main() { \n\tint t,n,m,k,c;\n\tcin >> t;\n\twhile(t--) {\n\t\tcin >> n;\n\t\tc = 0;\n\t\twhile(n--) {\n\t\t\tcin >> k;\n\t\t\tif(c + k < 60)\n\t\t\t\tif(c + k + 3 < 60)\n\t\t\t\t\tc += 3;\n\t\t\t\telse c = 60-k;\n\t\t}\n\t\tcout << 60 - c << endl << endl;\n\t}\n\treturn 0; \n}"} +{"label": "86", "index": "42782", "code": "int main ()\n{\n\tint n,m,i,j,a[100][100]={0},b[100]={0};\n\tint T;\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>m;\n\t\tfor(j=1;j<=m;j++)\n\t\t\tcin>>a[i][j];\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tT=0;\n\t\tj=1;\n\t\twhile(a[i][j]!=0)\n\t\t\t{\n\t\t\t\tif((a[i][j]-a[i][j-1]+T)<=60)\n\t\tif((a[i][j]-a[i][j-1]+T+3)<=60)\n\t\t{\n\t\t\tT=T+a[i][j]-a[i][j-1]+3;\n\t\t\tj++;\n\t\t}\n\t\telse break;\n\t\t\telse break;\n\t\t}\n\t\tif(a[i][j]!=0&&(a[i][j]-a[i][j-1]+T)<=60) b[i]=a[i][j];\n\t\telse b[i]=a[i][j-1]+60-T;\n\t}\n\tfor(i=1;i<=n;i++)\n\t\tcout<=60) break;\n }\n printf(\"%d\\n\",s);\n s=0;time=0;\n}\nscanf(\"%d\",&n);\nreturn 0;\n}\n"} +{"label": "86", "index": "42785", "code": "//**********************************************************************************************\n//?????????? *\n//????:10.21 * \n//???:wayne???????????????????????????????????????? *\n//**********************************************************************************************\nint main()\n{\n\tint n,a[1000][61],i,j,b[1000]; //?b[]???????????\n\tcin>>n; //??n????????\n\tcout<>b[i]; \n\t\tif (b[i]==0) //??????????????\n\t\t\tcout<<60<>a[i][j]; //???????????\n\t cout<=1;j--) //??????????\n\t\t\tif (a[i][j]+j*3<=60) \n\t\t\t{cout<<60-j*3<> NumberOfChildren;\n\tfor (i = 0; i < NumberOfChildren; i++)\n\t{\n\t\t//???????\n\t\tcin >> Time;\n\t\tmemset(Jump, 0, sizeof(Jump));\n\t\t//?????????????\n\t\tfor (j = 1; j <= Time; j++)\n\t\t\tcin >> Jump[j];\n\t\t//?????????\n\t\tfor (j--; ; j--)\n\t\t{\n\t\t\t//?????\n\t\t\tSumOfTime = 3 * j + Jump[j];\n\t\t\t//??60?\n\t\t\tif (SumOfTime <= 60)\n\t\t\t{\n\t\t\t\tcout << (Jump[j] + 60 - SumOfTime) << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//?????????57-60?\n\t\t\telse if (SumOfTime <= 63)\n\t\t\t{\n\t\t\t\tcout << Jump[j] << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42787", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int time,jump,broken,i,j,b,sum[101],brokenjump[21];\n for (i=1,broken=0;i<=n;i++)\n {\n scanf (\"%d\",&broken);\n if (broken==0)\n {\n sum[i]=60;\n continue;\n }\n for (j=1;j<=broken;j++)\n {\n scanf (\"%d\",&brokenjump[j]);\n } \n for (time=0,jump=0,b=1;time<60;)\n {\n if ((jump == brokenjump[b])&& b<=broken)\n {\n time=time+3;\n b++;\n }\n else {\n jump++;\n time++;\n }\n }\n sum[i]=jump;\n }\n for (i=1;i<=n;i++)\n {\n printf(\"%d\\n\",sum[i]);\n }\n return 0;\n}\n "} +{"label": "86", "index": "42788", "code": "int main()\n{\n\tint sum[21];\n\tint n,cishu,standred;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i-1 && standred<4 ){\n\t\t \tprintf(\"%d\\n\",sum[t]);\n\t\t break;\n\t\t }\n\t\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42789", "code": "// ????.cpp : ??????????????\n//\n\n\n\nint main()\n{\n\tint n,i;\n\tint m,j,a[100],s;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60&&a[m-1]+3*(m-1)<=60)\n\t\t {\n\t\t s=a[m-1];\n\t\t printf(\"%d\",s);\n\t\t }\n\t\t else if(a[m-1]+3*(m-1)>60&&a[m-2]+3*(m-1)<=60)\n\t\t {\n\t\t\t s=60-3*(m-1);\n\t\t\t printf(\"%d\",s);\n\t\t }\n\t\t else if(a[m-2]+3*(m-1)>60&&a[m-2]+3*(m-2)<=60)\n\t\t {\n\t\t printf(\"%d\",a[m-2]);\n\t\t }\n\t\t else if(a[m-2]+3*(m-2)>60&&a[m-3]+3*(m-2)<=60)\n\t\t {\n\t\t s=60-3*(m-2);\n\t\t printf(\"%d\",s);\n\t\t }\n\t }\n\t printf(\"\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42790", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tint m;\n\tint a[21];\n\ta[0]=0;//????????0?\n\tint i;\n\tint times;\n\twhile(n--){\n\t\tcin>>m;\n\t\tfor(i=1;i<=m;i++)cin>>a[i];\n\t\ta[m+1]=70;//?????????????????\n\t\tfor(i=0;i<=m+1;i++){\n\t\t\tif(a[i]+i*3>=60)//??????i???\n\t\t\t{\n\t\t\t\tbreak;//??a[m+1]=70???????break\n\t\t\t}\n\t\t}//?i-1?????????\n\t\ti--;\n\t\ttimes=60-i*3;\n\t\tif(times<=a[i+1]);\n\t\telse times=a[i+1];\n\t\tcout<=0;j--)\n\t\t\t{\n\t\t\t\tif((p[j]+3*(j+1))>63)\n\t\t\t\t\tcontinue;\n\t\t\t\telse if((p[j]+3*(j+1))<60)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",60-3*(j+1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",p[j]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tfree(p);\n\t\t}\n\t\t\n\t}\n\n\n\n\t\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42792", "code": "int main() \n{ \nint n,m,c;\n\nscanf(\"%d\",&n);\nwhile(n--)\n{\nscanf(\"%d\",&m);\nint*shuzu=(int*)malloc(sizeof(int)*m);\nc=0;\nfor(int i=0;i>n;\n\tfor (int i=0;i>m;\n\t\tint time=60;\n\t\tint temp;\n\t\tfor (int i=0;i>temp;\n\t\t\tif (time-3>=temp)\n\t\t\t\ttime-=3;\n\t\t\telse if (time-3temp) time=temp;\n\t\t}\n\t\tcout<>n;\n\tfor(k=0;k>bre;\n\t\ttimes=0;\n\t\tbPoint=0;\n\t\ttime=0;\n\t\tfor(i=0;i>bPoint;\n\t\t\tif(bPoint+3*i<=60){\n\t\t\t\ttime=bPoint+3*(i+1);\n\t\t\t\ttimes=bPoint;\n\t\t\t}\n\t\t}\n\t\tif(time<=60){\n\t\t\ttimes+=60-time;\n\t\t}\n\t\tcout<=57)\n\t\t\t\t\tbreak;\n\t\t\t}\t\n if(time>=57 && time<=60)\n\t\t\t{\n\t\t\t printf(\"%d\\n\",count);\n\t\t\t}\n\t\t\telse if(time>60)\n\t\t\t{\n count=count-(time-60);\n\t\t\t\tprintf(\"%d\\n\",count);\n\t\t\t}\n\t\t\telse if(time<57)\n\t\t\t{\n\t\t\t\tcount=count+57-time;\n\t\t\t\tprintf(\"%d\\n\",count);\n\t\t\t}\n\t\t}\n\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42796", "code": "//**********************************************************\n//* ? ? ?: ????.cpp *\n//* ? ?: ? ? *\n//* ? ? ? ?: 2010?10?12? *\n//**********************************************************\nint main()\n{\n\tint n=0,i=0,j=0,a[100][100];\n\t\tcin>>n;\n\tfor(i=0;i>a[i][j];\n\t}\n\tfor(i=0;i=1;j--)\n\t\t{\n\t\t\tif(a[i][0]==0)\n\t\t\t{\n\t\t\t\tcout<<60<=60)&&a[i][j+1]!=0)\n\t\t\t\t{\n\t\t\t\t cout<<60-j*3<>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a;\n\t\tif(a==0)\n\t\t\tcout<<60<>m[b];\n\n\t\t\tfor(b=0;b=60 ) \n\t\t\t\t{\tcout<60))\n\n\t\t\t\t{ if((m[b+1]+(b+1)*3)<=60)\n\t\t\t\t{ cout<> n;\n const int kMaxSeconds = 60;\n \n\tfor (int i = 0; i < n; ++i)\n {\n int interuptCount;\t\t\t\t// ?????? \n int interuptNum;\t\t\t\t// ???????????\n cin >> interuptCount;\n \n\t\t// lostNum: ???????????\n int lostNum = 0;\n for (int j = 0; j < interuptCount; ++j)\n {\n cin >> interuptNum; // ??????????????0???? = ??????? + ????????\n int sec = interuptNum + lostNum;\n // ???????????\n // ??????60???????\n // ??????60?\n \n\t\t\tif (sec < kMaxSeconds)\n if ((kMaxSeconds - sec) > 3)\n\t\t\t\t\tlostNum += 3;\n\t\t\t\telse\n\t\t\t\t\tlostNum += kMaxSeconds - sec;\n }\n cout << kMaxSeconds - lostNum << endl;\n }\n\t return 0;\n}"} +{"label": "86", "index": "42799", "code": "int main (){\n\tint n,m,sum,t,shen,d;\n\tint ci[100];\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i63){\n\t\t\t\tshen=60-3*b;\n\t\t\t\tprintf(\"%d\\n\",shen);\n\t\t\t\tbreak;\n\t\t\t}else if(b==m-1&&t<=60){\n\t\t\t\tshen=60-3*sum;\n\t\t\t\tprintf(\"%d\\n\",shen);\n\t\t\t}else if(t>60&&t<=63){\n\t\t\t\td=t-60;\n\t\t\t\tshen=60-3*sum+d;\n printf(\"%d\\n\",shen);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42800", "code": "int main()\n{\n int n,i,j;\n scanf(\"%d\", &n);\n int a[21],b[100];\n for(i=0;i 1)\n time += 3;\n if (time >= MIN)\n break;\n time = 3 * (k - 1) + a[k];\n if (time >= MIN)\n {\n sum = MIN - 3 * (k -1);\n break;\n }\n sum = a[k];\n }\n b[i] = sum; \n }\n for (int i = 0; i < n; i++)\n printf(\"%d\\n\", b[i]);\n}\n"} +{"label": "86", "index": "42801", "code": "int main()\n{\n\tint n,i,a[100],b[100],j,t,m;\n\tscanf(\"%d\",&m);\n\tfor(int l=0;l>n;\n for (int j=1;j<=n;j++)\n {\n int m;\n int ans=60;\n int a[30];\n cin >>m;\n for (int i=1;i<=m;i++)\n cin >>a[i];\n for (int i=1;i<=m;i++)\n {\n if (a[i]+3*(i-1)>=60)\n break;\n if (a[i]+3*i>=60)\n {\n ans=a[i];\n break;\n }\n ans=ans-3;\n }\n cout <>n;\n\tfor(i=1;i<=n;i++){\n\t\tcin>>m;\n\t\tfor(j=1;j<=m;j++){\n\t\t\tcin>>a;\n\t\t\tif(a+s<=57) {s=s+3;num=num-3;}\n\t\t\tif(a+s==58||a+s==59||a+s==60) num=a;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcout<= 60)\n\t\t{\n\t\tf =a[j];\n\t \n\t\t} continue;\n\t\tif(e>60)\n {\n\t\tf=60-3*j;\n\t\tcontinue;\n\t\t}\t\n\n\n\t\t\t\n\t\t}\n\t\tprintf(\"%d\\n\",f);\n\t\t\t\n\n\t\t\n\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "86", "index": "42805", "code": "\nint main()\n{\n int n,m,s,p,i,j,c;\n scanf(\"%d\",&n);\n for(c=1;c<=n;c++)\n {\n s=0; \n scanf(\"%d\",&m);\n for(i=0;i<=m;i++)\n {\n if(m==0) p=60;\n else if(i==0&&m!=0) continue;\n if(i>0) scanf(\"%d\",&p); \n if(3*(i-1)+s<60&&i60&&i==m)\n {\n if(3*i+s<=60)s=60-3*(i-1);\n else s=60-3*(i-1)-(3-(3*i+s-60));\n } \n } \n }\n printf(\"%d\",s);\n if(c> n ;\n\n\tfor( i = 1 ; i <= n ; i ++ )\n\t{\n\t\tmemset( jump , 0 , sizeof( jump ) ) ;\n\n\t\tcin >> m ;\n\n\t\tif( m == 0 )\n\t\t\tcout << 60 << endl ;\n\t\telse\n\t\t{\n\t\t\tfor( j = 0 ; j < m ; j ++ )\n\t\t\t\tcin >> jump[ j ] ;\n\n\t\t\tif( 3 * m + jump[ m - 1 ] <= 60 )\n\t\t\t\tcout << 60 - 3 * m << endl;\n\t\t\telse\n\t\t\t{\n\t\t\t\tj = 0 ;\n\t\t\t\t\n\t\t\t\tfor( j = 0 ; 3 * ( j + 1 ) + jump[ j ] <= 60 ; j ++ ) ;\n\t\t\t\t\n\t\t\t//\tcout << \"j=\" << j << endl ;\n\n\t\t\t\tif( 3 * ( j + 1 ) + jump[ j ] > 63 )\n\t\t\t\t\tcout << 60 - 3 * j << endl ;\n\t\t\t\telse\n\t\t\t\t\tcout << jump[ j ] << endl ;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0 ;\n}"} +{"label": "86", "index": "42808", "code": "int main(){\n int n,i,m,j,x=60;\n scanf(\"%d\",&n);\n for(i=0;i=x){printf(\"%d\\n\",x);break;}\n if(p[j]=x-3){printf(\"%d\\n\",p[j]);break;}\n if(p[j]0)\n\t{\n\t\tscanf(\"%d\",&t);\n\t\tif (t==0)\n\t\t{\n\t\t\tprintf(\"60\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tsum=0;\n\t\tp=0;\n\t\tfor (i=0;i=60&&p==0)\n\t\t\t\tif (sum<=63&&p==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",tem);\n\t\t\t\t\tp=1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",60-i*3);\n\t\t\t\t\tp=1;\n\t\t\t\t}\n\t\t}\n\t\tif (p==0) \n\t\t\tif (tem+t*3>=60)\n printf(\"%d\\n\",tem);\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",60-3*t);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42810", "code": "int main()\n{\n int x,a[100],b[100][100],i,j,m[100];\n cin>>x;\n for(i=0;i>a[i];\n\t for(j=0;j>b[i][j];\n }\n for(i=0;i60)\n\t\t\t{\n\t\t\t\tt=60-j*3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts=s+3;\n\t\t\tif(s>60)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(s<60)\n\t\t{\n\t\t\tt=t+60-s;\n\t\t}\n\t\tprintf(\"%d\\n\",t);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42812", "code": "/*\n * ????.cpp\n *\n * Created on: 2011-12-24\n * Author: Administrator\n */\n\nint main()\n{\n\tint n,i,m,num[60]={0};\n\tcin>>n;\n\twhile(n>0){\n\t\tn--;\n\t\tcin>>m;\n\t\tfor(i=0;i<=m;i++)num[i]=60;\n\t\tfor(i=0;i>num[i];\n\n\t\t}\n\t\tfor(i=0;i60)num[m]=57-3*i;\n\t\t\telse if((num[i]+3*i)<57&&(num[i+1]+3*i+3)<=60&&(num[i+1]+3*i+3)>=57)num[m]=num[i+1];\n\t\t}\n\n\t\tcout<= (result - 3) && num[j] < result){\n\t\t\t\tresult = num[j];\n\t\t\t}\n\t\t}\n\t\tcs[i] = result;\n\t\tresult = 60;\n\t}\n\tfor(i = 0; i < n; i++){\n\t\tprintf(\"%d\\n\", cs[i]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42814", "code": "int main()\n{\n\tint n,m;\n\tint a[10000];\n\tint i,j,k,cs[10000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60)\n\t\t{\n\t\t\tfor(k=m-1;k>=0;k--)\n\t\t\t{\n\t\t\t\tif((a[k]+3*(k+1))<=60)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(60-(a[k]+3*(k+1))+a[k]>a[k+1])\n\t\t\t\tcs[i]=60-3*(k+1)-1;\n\t\t\telse cs[i]=60-3*(k+1);\n\n\t\t}\n\t\t\t\n\t}\n\tfor(i=0;i>n;\n\twhile(n!=0)\n\t{\n\t\tn--;\n\t\tint time=0,num=0,count=0;\n\t\tcin>>t;\n\n\t\tif(t==0)\n\t\t\tcout<<60<>a[i];\n\t\t\t//cout<<\"t=\"<=60)\n\t\t\t\t{\n\t\t\t\t\t//cout<<\"********\"<<\"a[i]=\"<=60)\n\t\t\t\t\t{\n\t\t\t\t\t\tnum=a[i-1]+60-time;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnum=a[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t\ttime=a[i]+3*count;\n\t\t\t\t//cout<<\"time=\"<0)\n\t{\n\t\tn--;\n\t\tscanf(\"%d\",&k);\n\t\tfor(i=0;i>num;\n\twhile(num){\n\tint fail;\n\tcin>>fail;\n\tif (fail==0) cout<<\"60\"<>n[i];\n\tint t=0;\n\tfor(int i=0;it&&t>60){\n\t\t\tcout<=63){\n\t\t\tcout<<60-3*i<>n;\n\tfor(i=0;i>m;\n\t\tfor(j=0;j>k[j];\n\t\t}\n\t\tif(m==0)\n\t\t\ttt=60;\n\t\telse if(k[j-1]+3*j<=60)\n\t\t{\n\t\ttt=60-j*3;\t\n\t\t}\n\t\telse if(k[0]>=60)\n\t\t\ttt=60;\n\t\telse\n\t\t{\n\t\t\tfor(j=0;j=60 && k[j]+3*j<=60)\n\t\t\t\t{\n\t\t\t\t\ttt=k[j];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(k[j]+3*(j+1)<60 && k[j+1]+3*(j+1)>60)\n\t\t\t\t{\n\t\t\t\t\ttt=60-3*(j+1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<=0)\n\t\t\t{printf(\"%d\\n\",sz[j]);\n\t\t\tbreak;}\n\t\t\tif(sum>63)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t if((sz[m-1]+3*m)<60)\n\t\t{printf(\"%d\\n\",60-3*m);}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42822", "code": "/*????:????\n *??:???\n *??:2010/11/26\n *??:1000010449\n */\nint main()\n{\n\tint n, i, j, count, x[20];\n\n\tcin >> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> count;\n\t\tif (count == 0)\n\t\t\tcout << 60 << endl;\n\t\telse\n\t\t{\n\t\t\tx[0] = 0;\n\t\t\tfor (j = 0; j < count; j++)\n\t\t\t\tcin >> x[j];\n\t\t\n\t\t\tfor (j = 0; j < count; j++)\n\t\t\t{\n\t\t\t\tif (x[j] + 3 * j > 60)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj--;\n\n\t\t\tif (60 - x[j] - 3 * (j + 1) <= 0)\n\t\t\t\tcout << x[j] << endl;\n\t\t\telse\n\t\t\t\tcout << 60 - 3 * (j + 1) << endl;\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42823", "code": "int main()\n{\n\tint n,i,j,m,t[10],s,k=60;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0)\n\t\t{\n\t\t\tfor(j=0;j>n;\n int aa[n+100][60],bb[n+100];\n for(i=1;i<=n;i++){\n cin>>aa[i][0];\n if(aa[i][0]==0)\n bb[i]=60;\n else{\n for(j=1;j<=aa[i][0];j++)\n cin>>aa[i][j];\n j--;\n if(aa[i][j]+3*j<60)\n bb[i]=60-j*3;\n else{ \n for(j=1;j<=aa[i][0];j++){\n if(aa[i][j]+3*j>63){\n bb[i]=63-j*3;\n break;\n }\n if(aa[i][j]+3*j>=60&&aa[i][j]+3*j<=63)\n { bb[i]=aa[i][j];\n break;\n }\n }\n }\n }\n }\n for(i=1;i<=n;i++)\n cout<=0&&sum==61;k--){\n if(60<(k*3+(b[k-1]))&&(k*3+(b[k-1]))<+63){\n sum=b[k-1];\n }\n else if((k*3+(b[k-1]))<=60){\n sum=60-k*3;\n }\n }\n n[i]=sum;\n free(b);\n printf(\"\\n\");\n }\n }\n int c;\n for(c=0;c> n;\n\tfor(i=0;i> a[0];\n\t\tfor(j=1;j<=a[0];j++)\n\t\t\tcin >> a[j];\n\t\tif(a[0]==0)\n\t\t\tcout << 60 << endl;\n\t\telse\n\t\t{\n\t\t\tfor(j=1;j<=a[0];j++)\n\t\t\t\tif(a[j]+3*j>=60 && a[j]+3*j<=63)\n\t\t\t\t{cout << a[j] << endl;break;}\n\t\t\t\telse\n\t\t\t\t\tif(a[j]+3*j>63)\n\t\t\t\t\t{cout << 63-3*j << endl;break;}\n\t\t\tif(j==a[0]+1)\n\t\t\t\tcout << 60-3*a[0] << endl;\t\t\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42828", "code": "int main()\n{ \nint m,n,i,j,k,p,a[240],b[240],sum[100];\ncin>>n;\nfor(i=0;i<100;i++)\n{sum[i]=0;\n}\n for(k=0;k>m;\n\t for(i=0;i>b[i];\n\t\t\tp=b[i];\n\t\t\ta[p-1]=1;\n\t}\n\tfor(i=0;i<237;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{\n\t\t\tfor(j=237;j>=i+3;j--)\n\t\t\t{\n\t\t\t\ta[j]=a[j-3],a[j+1]=a[j-2],a[j+2]=a[j-1];\n\t\t\t}\n\t\t\ta[i+1]=1,a[i+2]=1,a[i+3]=1,a[i]=0;\n\t\t\ti=i+3;\n\t\t}\n\t}\n\tfor(i=0;i<60;i++)\n\t{\n\t\tsum[k]=sum[k]+a[i];\n\t}\n\tsum[k]=60-sum[k];\n\t\n }\n cout<>num;\n while(num>0){\n \tcin>>m;\n \tif(m==0) cout<<60<>j[i];\n \t\tfor(i=0;i60){\n \t\t\t\tcout<<60<60){//??????????60,????????\n \t\t\t\tcout<60){//????????????????\n \t\t\t\t\tn=n+(60-t);\n \t\t\t\t\tcout<>n;\n\tint sum[n];\n\tfor(int i=0;i>m;\n\t\tif(m==0){\n\t\t\tsum[i]=60;\n\t\t\tcontinue;\n\t\t}\n\t\tint a[m];\n\t\tfor(int j=0;j>a[j];\n\t\tfor(int j=0;j=60){\n\t\t\t\tsum[i]=a[j];break;}\n\t\t\telse if(a[j]+3*j<=60&&a[j]+3*(j+1)<60&&j==m-1){\n\t\t\t\tsum[i]=60-3*(j+1);break;}\n\t\t\telse if(a[j]+3*j>60){\n\t\t\t\tsum[i]=60-3*j;break;}\n\n\t\t}\n\t}\n\tfor(int i=0;i>n;\n for(i=0;i>m;\n\t if(m==0) {b[i]=60;continue;}\n\t\tfor(j=0;j>a[j];}\n\t\tif(a[m-1]<=(60-m*3))\n\t\t {b[i]=(60-m*3);}\n\t\telse \n\t\t\t{ {for(k=m-1;;k--)\n\t\t\t if(a[k]+(k+1)*3<=60) break;}\n\t\t c=60-((k+1)*3);\n\t\t\t if(c<=a[k+1]) b[i]=c;\n\t\t\t else b[i]=a[k+1];}\n\t }\n\t for(i=0;i> n;\t\t\t\t\t\t\t\t\t\t\t//???????????????n\n\tfor ( i = 0; i < n; i ++ )\n\t{\n\t\tcin >> m[i];\t\t\t\t\t\t\t\t\t//?????????i+1??????????\n\t\tfor ( j = 0; j < m[i]; j ++ )\n\t\t{\n\t\t\tcin >> times[i][j];\t\t\t\t\t\t\t//???????????????????????????\n\t\t}\n\t}\n\tfor ( i = 0; i < n; i ++ )\n\t{\n\t\tif ( m[i] == 0 )\n\t\t\tcout << \"60\" << endl;\t\t\t\t\t\t//????????????,??????60\n\t\telse\n\t\t{\n\t\t\tfor ( j = m[i] - 1; j >= 0; j -- )\n\t\t\t{\n\t\t\t\tif (( times[i][j] + 3 * j >= 57 ) && ( times[i][j] + 3 * j <= 60 ))\n\t\t\t\t{\n\t\t\t\t\tcout << times[i][j] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t/*????j+1??????????,??????,????????????????57?(?????????????),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t??????????.*/\n\t\t\t\telse if ( times[i][j] + 3 * j < 57 )\n\t\t\t\t{\n\t\t\t\t\tamount = 60 - 3 * ( j + 1 );\n\t\t\t\t\tcout << amount << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t/*???????????????57?,????????????????,?????????????????????\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t??????????*/\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42833", "code": "\nint main()\n{ int n,i,k,a,time,all,ans,alltime;\n scanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&a);\n\t\talltime=60; ans=0; time=0;\n\t\tfor(k=1;k<=a;k++){\n\t\t\tscanf(\"%d\",&all);\n if(all+k*3<=60){ time=all+k*3;\n\t\t\t ans=all;\n\t\t\t}\n\t\t\tif(all+k*3==61) alltime=alltime-2;\n if(all+k*3==62) alltime=alltime-1;\n\t\t}\n\t\tans=ans+(alltime-time);\n\t\tprintf(\"%d\\n\",ans);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42834", "code": "int main()\n{\n\tint n,m;\n\tcin>>n;\n\tint i,j,l,s;\n\tint a[70];\n\twhile(n--)\n\t{\n\t\tmemset(a,0,sizeof(a));a[0]=100;\n\t\tm=0;s=0;j=0;\n\t\tcin>>l;\n\t\tfor(i=0;i>a[i];\n\t\twhile(m<60)\n\t\t{\n\t\t\tif(s==a[j])\n\t\t\t{\n\t\t\t\tm=m+3;j=j+1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ts=s+1;m=m+1;\n\t\t\t}\n\t\t}\n\t\tcout<>n;\n\t for(i=0;i>a[i];\n\t\t if(a[i]>0)\n\t\t{\n\t\t for(j=1;j<=a[i];j++)\n\t\t {\n\t\t\t cin>>b[j];\n\t\t\t\t if(b[j]+j*3<=60)\n\t\t\t\t { sum=60-3*j; }\n\t\t\t\t if(b[j]+j*3<=63&&b[j]+j*3>60)\n\t\t\t\t { sum=b[j]; }\n\t\t\t }\n\t\t }\n\t\t if(a[i]==0)\n\t\t {\n\t\t\t sum=60;\n\t\t }\n\t\t cout<=0;j--)\n\t\t\t{\n\t\t\t\tif(x[j]==0) continue;\n\t\t\t\tif(x[j]+3*(20-j)>=60) continue;\n\t\t\t\tif(x[j]+3*(20-j)<60) \n\t\t\t\t{\n\t\t\t\t\ttmpb=57-(x[j]+3*(20-j));\n\t\t\t\t\ttmpb+=x[j];\n\t\t\t\t\tprintf(\"%d\\n\",tmpb);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42837", "code": "/*\n * review_7.cpp\n *\n * Created on: 2010-12-27\n * Author: ???\n * ??? ????\n */\n\n\n\nint main(){\n\tint n,m,i,j,a[50];\n\tcin>>n;\n\tfor(i=0;i>m;\n\t\tif(m==0){ //????????????60\n\t\t\tcout<<60<>a[j];\n\t\tfor(j=0;j60)\n\t\t\t\t\tif(a[j]+3*(j+1)>=60)\n\t\t\t\t\t\tcout<>n;\n for(int k=0;k>m; //???????\n for(int i=1;i<=m;i++) //???????????\n cin>>a[i];\n temp=a[m]+3*m; //?????? \n if(temp<=60) //????60???\n {\n number=60-3*m;\n cout<60&&temp<=63) //????60?63?\n cout<60&&temp<=63)\n {\n cout<>n;\n int a[n+1];\n for(i=1;i<=n;i++)\n {\n cin>>m;;\n c=0;\n for(b=1;b<=m;b++)\n {\n cin>>k;\n if(c+k<60)\n if(c+k+3<60)\n c=c+3;\n else \n c=60-k;\n }\n a[i]=(60-c);\n }\n for(i=1;i<=n;i++)\n {\n cout<0;j--)\n\t\t\t{\n\t\t\t\tint time=stop[j]+3*j;\n\t\t\t\tint time1=stop[j]+3*j-3;\n\t\t\t\tif(time1<=60&&time>=60)\n\t\t\t\t\tprintf(\"%d\\n\",stop[j]);\n\t\t\t\telse if(time<60)\n\t\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t\t\tif(time1<=60&&time>=60)\n\t\t\t\t\tbreak;\n\t\t\t\telse if(time<60)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42841", "code": "/* ????\n?????? 2010.11.24 */\n\nint main()\n{\n\tint n, count2, count1, i, j;\n\tint stop[30] = {0};\n\tint num[3000][30] = {0};\n\tcin >> n;\n\tcount2 =0;\n\twhile(count2 < n)//count2?????????????\n\t{\n\t\tcin >> stop[count2];\n\t\tcount1 = 0;//count1?????????????\n\t\twhile(count1 < stop[count2])\n\t\t{\n\t\t\tcin >> num[count2][count1];\n\t\t\tcount1 ++;\n\t\t}\n\t\tcount2 ++;\n\t}\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tfor(j = 0; j < stop[i]; j ++)\n\t\t\tif(num[i][j] + 3 * (j + 1) > 60)\n\t\t\t\tbreak;//????????\n\t\tif(j == stop[i])\n\t\t\tcout << 60 - 3 * stop[i];//?????????????\n\t\telse\n\t\t{\n\t\t\tif(num[i][j] + 3 * (j+1) > 63)\n\t\t\t\tcout << 60 - 3 * j;\n\t\t\telse//??????????????\n\t\t\t\tcout << num[i][j];//??????????\n\t\t}\n\t\tcout << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42842", "code": "int main()\n{\n\tint a[100];\n\tint n,num,i,j,t;\n\tcin>>n;\n\tfor(j=0,i=0;j>a[i];i++;\n\t }while(cin.get()!='\\n');\n\t\tt=i-1;\n\t\tif(a[t]+a[0]*3>=60)\n\t\t{\n\t\t\tfor(i=1;i<=t;i++)\n\t\t\t{\n\t\t\t\tif(a[i]+3*i>=60) break;\n\t\t }\n\t\t\tt=i;\n\t\t\tif(a[i]+3*i-3<=60) num=a[i];\n\t\t\telse {num=a[i]+3*i-3-60;num=a[i]-num;}\n\t\t}\n\t\telse num=60-3*a[0];\n\t\tcout<=0;i--){\n\t\tif(a[i]+3*(i+1)<60)\n\t\t\treturn (60-3*(i+1));\n\t\telse if(a[i]+3*i<=60&&a[i]+3*i>=57)\n\t\t\treturn a[i];\n\t\telse\n\t\t\tcontinue;\n\t}\n}\n\n"} +{"label": "86", "index": "42844", "code": "int main()\n{\n int n,i,j,m;\n int a[100],b[100];\n scanf(\"%d\",&n);\n\n for(i=1;i<=n;i++)\n{\n\n scanf(\"%d\",&m);\n if(m==0)\n { printf(\"6\");\n continue;}\n else\n\n for(j=0;j0)\n {\n\t break;\n }\n }\n\n if((60-a[j]-3*j)<4)\n {\n b[i-1]=a[j];\n }\n else\n {\n b[i-1]=57-3*j;\n }\n\n}\t\n for(i=1;i<=n;i++)\n {\n printf(\"%d\\n\",b[i-1]);\n }\nreturn 0;\n}"} +{"label": "86", "index": "42845", "code": "int main(){\n\tint n,i,j,m,s,t[60];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;j--)\n {\n if(total[j]+j*3<=60)\n {\n all = 60 - (j+1)*3;\n if(all> n;\n\tfor(i = 1; i <= n; i++)\t\t\t\t//??n???\n\t{\n\t\tint j, wrong, w[20];\t\t\t//j?????wrong?????????????w????????????????\n\t\tcin >> wrong;\n\t\tfor(j = 0; j < wrong; j++)\n\t\t\tcin >> w[j];\n\t\tif(wrong == 0)\t\t\t\t\t//????????60\n\t\t\tcout << 60 << endl;\n\t\telse\t\t\t\t\t\t\t//??????????????????60s?\n\t\t{\n\t\t\t//?????????????????60s\n\t\t\tif(w[wrong - 1] + 3 * wrong <= 60)\n\t\t\t\t//??60-??????????\n\t\t\t\tcout << 60 - 3 * wrong << endl;\n\t\t\telse\n\t\t\t{\n\t\t\t\t//??????????\n\t\t\t\tfor(k = wrong - 2; k >= 0; k--)\n\t\t\t\t{\n\t\t\t\t\t//w[k]?????????3*(k+1)??????????????????????60????????60s??\n\t\t\t\t\tif((w[k] + 3 * (k + 1) <= 60 ) && (w[k + 1] - w[k] >= 60 - w[k] - 3 * (k + 1))) \n\t\t\t\t\t{\n\t\t\t\t\t\tcout << 60 - 3 * (k + 1) << endl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//????????60s?????????60s??\n\t\t\t\t\telse if((w[k] + 3 * (k + 1) <= 60 ) && (w[k + 1] - w[k] < 60 - w[k] - 3 * (k + 1)))\n\t\t\t\t\t{\n\t\t\t\t\t\t//??????????????\n\t\t\t\t\t\tcout << w[k + 1] << endl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n\n\n"} +{"label": "86", "index": "42848", "code": "\nint main()\n{\n int n, i;\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tint j, t = 0, sum = 0, m, a = 0, b, flag = 1;\n\t\tscanf(\"%d\", &m);\n\t\tfor (j = 0; j < m; j++)\n\t\t{\n\t\t\tb = a;\n\t\t\tscanf(\"%d\", &a);\n\t\t\tif (flag == 0)\n\t\t\t\tcontinue;\n\t\t\tt += a - b;\n\t\t\tif (t <= 60)\n\t\t\t\tsum += a - b;\n\t\t\telse\n\t\t\t{\n\t\t\t\tt += b - a;\n\t\t\t\tsum += 60 - t;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\t\tt += 3;\n\t\t\tif (t >= 60 && flag == 1)\n\t\t\t\tflag = 0;\n\t\t}\n\t\tif (t < 60 && flag == 1)\n\t\t\tsum += 60 - t;\n\t\tprintf(\"%d\\n\", sum);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42849", "code": "int main()\n{\n\tint i,j,k,s,m,n,a[100],b[100][100],c;\n\tcin>>m;\n\tfor(i=0;i>a[i]; //?????????\n\t\tif(a[i]==0)\n\t {\tcout<<60<>b[i][j];\n\t\tif(b[i][a[i]-1]+3*(a[i])>=63)\n\t\t\t{\n\t\t\t\tfor(j=a[i]-2;j>0;j--)\n\t\t\t\t\t{\n\t\t\t\t if(b[i][j]+(j+1)*3<=60)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t c=60-(j+1)*3;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t if(b[i][j]+j*3<=60)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc=b[i][j];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t } //???????60?????????????\n\t\t }\n\t\telse \n\t\t{\n\t\t\tif(b[i][a[i]-1]+3*(a[i])>=60)\n\t\t\tc=b[i][a[i]-1];\n\t\t\telse\n\t\t\t\tc=60-3*a[i]; //??????????\n\t\t}\n\t\t\n\t\tcout<=(sum-3)&&b<=sum)\n\t\t\t{\n\t\t\t\tsum=b;\n\t\t\t}\n\t\t}\n\t\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n\n}\n\n\n"} +{"label": "86", "index": "42851", "code": "int main()\n{\n\tint m=0,n,a[100][101],b[100],i,j,k;\n\tscanf(\"%d\",&n);\n\tfor(j=0;j60){\n\t\t\tb[j]=60;\n\t\t\tcontinue;\n\t\t}\n\t\tfor(i=0;i63;i--,k++);\n\t\tif(a[j][i]<64&&a[j][i]>60)\n\t\t\tb[j]=a[j][i]-(i+1)*3;\n\t\telse \n\t\t\tb[j]=60-3*(m-k);\n\t}\n\tfor(i=0;i> n;\n for(i = 1;i<=n;i++)\n\t{\n\t\tcin >> count;\n\t\tif(count == 0)cout << \"60\" << endl;\n\t\telse\n\t\t{\n\t\t\tfor(j = 1; j <= count; j++)\n\t\t\t{\n\t\t\t\tcin >> a[j];\n\t\t\t}\n\t\t\t\n\t\t\tj = 1;\n\t\t\twhile(a[j] + 3 * ( j - 1 ) <= 57 && j <= count)\n\t\t\t{\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t\n\t\t\tif( a[j] + 3 * (j-1) == 58 || a[j] + 3 * (j - 1) == 59 || a[j] + 3 * (j -1 ) == 60)cout << a[j] << endl;\n\t\t else cout << 60 - 3 * ( j - 1) << endl;\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "86", "index": "42853", "code": "\nint main()\n{\n\tint n;\n\tcin>>n;\n\tfor(int i=0;i>m;\n\t\tif(m==0)\n\t\t{cout<<60<>cmc1;\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcin>>cmc;\n\t\t\tif(time+cmc>=60&&q!=1)\n\t\t\t{\n\t\t\t\tcmc=60-time;\n\t\t\t\tq=1;\n\t\t\t}\n\t\t\telse if(time+cmc>=57&&q!=1)\n\t\t\t{\n\t\t\t\tq=1;\n\t\t\t}\n\t\t\tif(q==1)continue;\n\t\t\ttime=time+3;\n\t\t}\n\t\tif(q==0)cmc=60-time;\n\t\tcout<> n;\n\tfor ( i = 0; i < n; i ++ )\n\t{\n\t\tcin >> m;\n\t\tif ( m == 0 )\n\t\t\tcout << 60 << endl;\n\t\tfor ( j = 0; j < m; j ++ )\n\t\t\tcin >> count[j];\n\t\tfor ( j = m - 1; j >= 0; j -- )\n\t\t{\n\t\t\tif ( count[j] + 3 * ( j + 1) <= 60 ) //?60s????\n\t\t\t{ \n\t\t\t\tcout << 60 - 3 * ( j + 1) << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse \n\t\t\t\tif ( count[j] + 3 * ( j + 1 )<= 63 ) //?60s???3s?\n\t\t\t\t{\n\t\t\t\t\tcout << count[j] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42855", "code": "int main()\n{\n int n,m,a[10]={0},i,j,k,count=0;\n scanf(\"%d\",&n);\n for(i=0;i=57) && (a[j]+3*j<60))\n count=a[j];\n printf(\"%d\\n\",count);\n }\n }\n return 0;\n} \n "} +{"label": "86", "index": "42856", "code": "\n\nint main()\n{\n\tint a[70],b[70],c[70],i,j,k,l,m,n,times,sum;\n\tcin>>n;\n\tfor(i=0;i>times;//times??????//\n\t\tfor(j=0;j>b[j];\n\t\tfor(j=1,m=1,k=0;j<=60;j++,m++)//j???????m????????//\n\t\t{\n\t\t\ta[j]=1;//??????????????????1.??????0//\n\t\t\tif(m==b[k])\n\t\t\t\tk++,j=j+3;//????????+3???k+1??????????????b???//\n\t\t}\n\t\tfor(j=1,sum=0;j<=60;j++)\n\t\t\tif(a[j]==1)\n\t\t\t\tsum++;//?????\u0093?\u0094???????????????//\n\t\tc[i]=sum;\n\t}\n\tfor(i=0;i= 57 && now + temp * 3 < 60 && spe == 0) spe = 60 - now - temp * 3;\n\t\t\t\n\t\t}\n\t\tprintf(\"%d\\n\",60 - temp * 3 - spe);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42858", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint sz[100][21];\n\tint i,t;\n\tfor(i=0;i60&&time<=63){\n\t\t\t\t printf(\"%d\\n\",sz[i][t]);\n\t\t\t\t break;\n\t\t\t } \n\t\t\t if(time>63){\n\t\t\t\t time=sz[i][t]-time+3+60;\n\t\t\t\t printf(\"%d\\n\",time);\n\t\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t} \n\t}\n\treturn 0;\n}\n\n\n\n\t\t "} +{"label": "86", "index": "42859", "code": "int main ()\n{\n\tint N,i,j;\n\tint n,t,p,c;\n\tscanf (\"%d\",&N);\n\tfor (i=0;i63) c = c - (t-63);\n\t\telse if (t<60) c = c + 60 - t;\n\t\tprintf (\"%d\\n\",c);\n\t}\n\t\n\n\treturn 0;\n}\n"} +{"label": "86", "index": "42860", "code": "int main()\n{\n\tint i,j,k,n,m,a[100],result[100],sum;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tif(m==0) result[i-1]=60;\n\t\telse if (m!=0)\n\t\t{\n\t\t\tfor(j=1;j<=m;j++)\n\t\t\t{\n\t\t\t\tscanf(\"%d\",&a[j-1]);\n\t\t\t}\n\t\t\t\n\t\t\tfor(k=m;k>=1;k--)\n\t\t\t{\n\t\t\t\tsum=a[k-1]+k*3;\n\t\t\t\t\n\t\t\t\tif(sum<=60) \n\t\t\t\t{\n\t\t\t\t\t \n\t\t\t\t\t if(k+1<=m&&60-sum>a[k]-a[k-1])\n\t\t\t\t\t {result[i-1]=a[k];\n\t\t\t\t\t break;}\n\t\t\t\t\t else {result[i-1]=60-sum+a[k-1];break;}\n\t\t\t\t \n\t\t\t\t}\n\t\t\t\telse if (sum>60) continue;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tprintf(\"%d\\n\",result[i-1]);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42861", "code": "int main()\n{\n\tint n, i, a[100], time[100], j, m;\n\tcin >> n;\n\tfor(i=0;i> m;\n\t\tif(m==0)\n\t\t\tcout << \"60\" << endl;\n\t\telse\n\t\t{\n\t\t\tfor(j=0;j> a[j];\n\t\t\t\ttime[j] = a[j] + 3 * j;\n\t\t\t}\n\t\t\tfor(j=m-1;j>=0;j--)\n\t\t\t{\n\t\t\t\tif(time[j]<=57)\n\t\t\t\t{\n\t\t\t\t\tcout << a[j] + 57 - time[j] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif(time[j]<=60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << a[j] << endl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42862", "code": "int main()\n{\n int a[100][100]={0};\n int m;\n cin>>m;\n for (int i=1;i<=m;i++)\n {\n int n;\n cin>>n;\n if (n==0)\n cout<<60<>a[i][j];\n }\n\n\n for (int i=1;i<=m;i++)\n {\n for (int j=1;j<99;j++)\n {\n\n if ((a[i][j]+3*j)<=60)\n {\n\n if (a[i][j+1]!=0&&(a[i][j+1]+3*(j+1))>60)\n {\n if (a[i][j+1]<=(60-3*j))\n cout<(60-3*j))\n cout<<60-3*j<60)){\n num+=(60-3*j);}}\n for(j=1;j<=m;j++){\n if(((s[j-1]+3*(j-1))<60)&&((s[j-1]+3*j)>60)){\n num+=(s[j-1]);}}\n if((s[m-1]+3*m)<=60){\n num+=(60-3*m);}\n if((s[m-1]+3*(m-1))==60){\n num+=s[m-1];}\n printf(\"%d\\n\",num);}}\n return 0;\n}\n"} +{"label": "86", "index": "42865", "code": "int main()\n{\tint m,n,k,i,j,time,sum;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60&&(k-sum>=60-time)) \n continue;\n \telse if(time>60)\n \t\tcontinue;\n \telse\n \t\tsum=k;\n \ttime=k+3*j;\n \t}\n \tif(time<60)\n sum+=60-time;\n printf(\"%d\\n\",sum);\n }\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42866", "code": "int main()\n{\n\tint n,m,i,sz[20]={0};\n\tscanf(\"%d\",&n);\n\twhile (n>0)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tif(m==0)\n\t\t{\n\t\t\tprintf(\"%d\\n\",60);\n\t\t}\n\t\telse\n\t\t{\n\t\tfor(i=0;i=0;i--)\n\t\t{\n\t\t\tif(sz[i]+3*i>60)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(sz[i]+3*i<57)\n\t\t\t\t{ \n\t\t \t\tprintf(\"%d\\n\",57-3*i);\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t \telse\n\t\t\t\t{\n\t\t\t \tprintf(\"%d\\n\",sz[i]);\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t}\n\t\tn--;\n\t\t}\n\t\treturn 0;\n\t}\n"} +{"label": "86", "index": "42867", "code": "// PG 1049\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i,j,m;\n\tfor (i=1; i<=n; i++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tint stop[20],skip; \n if (m==0) skip=60;\n\t\tfor (j=0; j=0; j--)\n\t\t\tif (stop[j]+3*(j+1)<=60)\n\t\t\t{\n\t\t\t\tskip=60-3*(j+1);\n\t\t\t\tbreak;\n\t\t\t}else if (stop[j]+3*j<=60)\n\t\t\t{\n\t\t\t\tskip=stop[j];\n\t\t\t\tbreak;\n\t\t\t}\n\t\tprintf(\"%d\\n\",skip);\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42868", "code": "int main()\n{\n\tint n, i,j,t1,t2,k,m,s[20],a=60;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i1){scanf(\"%d\",&m1);k--;}\n\t\tscanf(\"%d\",&k);\n\t\twhile(k>0)\n\t\t{\n\t\t\tm1=m2;\n\t\t\tscanf(\"%d\",&m2);\n\t\t\tm1=m2-m1;\n\t\t\twhile(i60) {break;break;}\n\t\t\t\ts++;\n\t\t\t\t}\n\t\t\t\ti=0;\n\t\t\tt+=3;\n\t\t\t\tif(t>60) break;\n\t\t\tk--;\n\t\t\t}\n\t\t\tif(t<60) s+=60-t;\n\t\tprintf(\"%d\\n\",s);\n\n\t}\n\t\nint main()\n\t{\n\t\tint p;\n\t\tscanf(\"%d\",&p);\n\t\twhile(p>0)\n\t\t{\n\t\t\tcount();\n\t\t\tp--;\n\t\t\t}\n\t\treturn 0;\n\t\t}\n"} +{"label": "86", "index": "42870", "code": "int main()\n{\n\tint n,m[100],sum[100]={0},a[60];\n\tint i,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;j--)\n\t\t\t{\n\t\t\t\tif(60-a[j]>=(j+1)*3)\n\t\t\t\t{\n\t\t\t\t\tsum[i]=60-(j+1)*3;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tj--;\n\t\t\t\t\tif(60-a[j]>=(j+1)*3)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum[i]=60-(j+1)*3;\n\t\t\t\t\t\tif(sum[i]>a[j+1])\n\t\t\t\t\t\t sum[i]=a[j+1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsum[i]=a[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(m[4]==6)\n\t\tsum[4]=48;\n\tfor(i=0;i>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tint m,j,a1,a2,k;\n\t\tcin>>m;\n\t\tfor(j=1;j<=m;j++)\n\t\t\tcin>>a[j];\n\t\tif(a[m]+3*(m-1)<=57)\n\t\t{\n\t\t\ta1=60-3*m;\n\t\t\tcout<60)\n\t\t{\n\t\t\tfor(k=m-1;k>=1;k--)\n\t\t\t{\n\t\t\t\tif(a[k]+3*(k-1)<=57)\n\t\t\t\t{\n\t\t\t\t\ta2=60-3*k;\n\t\t\t\t\tcout<60)\n\t\t{\n\t\t\tm--;\n\t\t\tj=m-1;\n\t\t}\n\t\tif((a[m-1]+3*m)<60)\n\t\t{\n\t\t\tcount=60-3*m;\n\t\t}\n\t\telse count=a[m-1];\n\t\tprintf(\"%d\\n\",count);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42873", "code": "/*????*/\n\n\n\nint main()\n{\n\tint n,j,i,m,all=0,a[1000];\n\tcin>>n;\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tcin>>m;\n\t\tif(m==0)cout<<\"60\"<>a[i];\n\t\t\tfor(i=1;i<=m;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(a[i]+3*i-3<=60)all=a[i];/*??i?????????????1?????????all?*/\n\t\t\t\tif((a[i]+3*i-3>60)&&(all+3*i-3<=60))/*????????????????????????????*/\n\t\t\t\t{\n\t\t\t\t\tall=63-3*i;break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(all+3*m<=60)cout<<(60-3*m)<=60)&&(k<=63))\n\n {\n\n a[i]=sz[i][l];\n\n break;\n\n }\n\n else if(k>63)\n\n {\n\n a[i]=60-3*(l-1);\n\n break;\n\n }\n \n }\n\n }\n\nfor(i=0;i= 60)\n { k = 60-3*(j-1);\n break;}\n else if((num[j]+3*j )>= 60)\n {k = num[j];\n break;}\n else \n k = 60-3*j;\n \n }\n printf(\"%d\\n\", k);\n } \n }\n return 0;\n}\n\n"} +{"label": "86", "index": "42876", "code": "\nint main()\n{\n\tint n,p,i,j,temp[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;j--)\n\t\t\t {\n\t\t if(temp[j]+3*j>63)\n\t\t\t continue;\n\t\t \n\t\t else if(temp[j]+3*j<=60)\n\t\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60-3*j);\n\t\t break;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t { printf(\"%d\\n\",temp[j]);\n\t\t\t break;\n\t\t\t\t}\n\t\t\t } \n\t\t\n\t\t }\n\t\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42877", "code": "int main()\n{\n\tint n;\n\tint rope[Number_children][Number];\n\tint i,j,sum,time,tmp;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60))\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60);\n\t\t\t\ttmp=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsum=rope[i][j];\n\t\t\ttime=rope[i][j]+3*j;\n\t\t}\n\t\tif(tmp==0)\n\t\t\tcontinue;\n\t\telse\n\t\t{\n\t\tif(time<60)\n\t\t{\n\t\t\tsum=sum+60-time;\n\t\t\tprintf(\"%d\\n\",sum);\n\t\t\tcontinue;\n\t\t}\n\t\tif(time>63)\n\t\t{\n\t\tsum=60-(j-2)*3;\n\t\tprintf(\"%d\\n\",sum);\n\t\tcontinue;\n\t\t}\n\t\tsum=60-(j-2)*3-(3-(time-60));\n\t\tprintf(\"%d\\n\",sum);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42878", "code": "\nint main(){\n int n,i,j,t,num;\n int br[100];\n int count[100][61]={0};\n scanf(\"%d\",&n);\n for (i=0;i=60) break;\n };\n }\n printf(\"%d\\n\",num);\n }\n return 0;\n}\n\n"} +{"label": "86", "index": "42879", "code": "/**\n * ??? ???\n * ??? 1000012844\n * ??? ????\n **/\n\n\nint timesPerMin( int *, int );\n\nint main()\n{\n\tint i, j, n;\n\tint failedTimes[ 100 ];\n\tint num[ 100 ][ 100 ] = { 0 };\n\n\tcin >> n;\n\n\tfor ( i = 0; i < n; i++ )\n\t{\n\t\tcin >> failedTimes[ i ];\n\t\tfor ( j = 0; j < failedTimes[ i ]; j++ )\n\t\t{\n\t\t\tcin >> num[ i ][ j ];\n\t\t}\n\t}\n\n\tfor ( i = 0; i < n; i++ )\n\t{\n\t\t\tcout << timesPerMin( num[ i ], failedTimes[ i ] ) << endl;\n\t}\n\n\treturn 0;\n}\n\nint timesPerMin( int num[], int failed )\n{\n\tint i = 0;\n\n\tfor ( i = 0; ;i++ )\n\t{\n\t\tif ( num[ i ] == 0 )\n\t\t{\n\t\t\tnum[ i ] = 60;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tfor ( i = 0; ;i++ )\n\t{\n\t\tif ( ( num[ i ] + i * 3 <= 60 ) &&\n\t\t\t( num[ i ] + i * 3 + 3 > 60 ) )\n\t\t{\n\t\t\treturn num[ i ];\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( num[ i ] + i * 3 + 3 <= 60 &&\n\t\t\t\t i * 3 + 3 + num[ i + 1 ] > 60 )\n\t\t\t{\n\t\t\t\treturn 60 - i * 3 - 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}"} +{"label": "86", "index": "42880", "code": "int main()\n{\n\tint i,j,k,l,m,n,c,d,e,f;\n\tint a,b,g[60];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n; \n\tfor(i=1;i<=n;i++)\n\t{ \n\t\tcin>>m[i];\n\t\tif(m[i]==0) //???????????????60?\n\t\t count[i]=60;\n\t\tint per[20]={0}; //??????????\n\t\tfor(j=1;j<=m[i];j++) \n\t\t cin>>per[j];\n\t\tfor(j=1;j<=m[i];j++)\n\t\t{\n\t\t\tcount[i]=per[j]; //????????\n\t\t\ttime1[i]=count[i]+3*j; //time1?????????????????\n\t\t\ttime2[i]=time1[i]-3; //time2??????????????\n\t\t\t/* ???????????????60??????*/\n\t\t\tif(time1[i]>=60&&time2[i]<60) //????????????????\n\t\t\t{\n\t\t\t\tcount[i]=per[j]; //??????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(time2[i]>=60) //??????????????\n\t\t\t{\n\t\t\t\tcount[i]=60-3*(j-1); //???????????????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t/*?????????????????60??????*/\n\t\t\tcount[i]=60-3*j; \n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t\tcout<>n;/*????n???? \n????,?????????????m,??m??????????????*/\nwhile(n>0)\n{cin>>m;\ns=0;\nfor(i=0;i<100;i++)\n\ta[i]=0;\nif(m==0)\n\ts=0;\nelse\n{for(i=0;i>j;\na[j+1+3*i]=1;\na[j+2+3*i]=1;\na[j+3+3*i]=1;\n\t}\nfor(i=1;i<=60;i++)\n\ts=s+a[i];\n}\ncout<<60-s<=60){break;}\n\t\t}\n\t\tif(time<=60)printf(\"%d\\n\",60-3*m);\n\t\tif(time>60)\n\t\t{\n\t\t\tif( p < ( 60-3*(j-2) ) )printf(\"%d\\n\",p);\n\t\t\tif( p >= ( 60-3*(j-2) ) )printf(\"%d\\n\",60-3*(j-1));\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42884", "code": "\nint main()\n{\n\tint stu_num,stop_num,i,j;\n\tint stop[100][100]={0},sum[100]={0},time[100][100]={0}; \n\tscanf(\"%d\",&stu_num);\n\tfor(i=1;i<=stu_num;i++)\n\t{\n\t\tscanf(\"%d\",&stop_num);\n\t\tif(stop_num==0)\n\t\t{\n\t\t\tsum[i]=60;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(j=1;j<=stop_num;j++)\n\t\t\t{\n\t\t\t\tscanf(\"%d\",&stop[i][j]);\n\t\t\t}\n\t\t\tfor(j=stop_num;j>=1;j--)\n\t\t\t{\n\t\t\t\ttime[i][j]=stop[i][j]+(j-1)*3;\n\t\t\t\tif(time[i][j]>60)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(time[i][j]<=57)\n\t\t\t\t{\n\t\t\t\t\tsum[i]=60-3*j;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsum[i]=time[i][j]-3*(j-1);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=stu_num;i++)\n\t{\n\t\tprintf(\"%d\\n\",sum[i]);\n\t}\n\treturn 0;\n}\n\t"} +{"label": "86", "index": "42885", "code": "main()\n{\n int i,j,k,n;\n scanf(\"%d\",&n);\n int **pp;\n pp=(int **)malloc(n*sizeof(int *));\n for(i=0;i>n;\n\tint result[300];\n\n\tfor(int i=0;i>s[k];\n\t\t\tk+=1;\n\t\t}\n\t\twhile(cin.get()!='\\n');\n\t\t\n\t\tfor(int j=1;j<=s[0];j++){\n\t\t\tint sup=60-3*times-s[j];\n\t\t\tif(sup>0){\n\t\t\t\ttimes+=1;\n\t\t\t\tif(sup<3){\n\t\t\t\t\tsum-=sup;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsum-=3;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tresult[i]=sum;\n\n\t}\n\n\tfor(int i=0;i>n;\n\tconst int n1=n;\n\tint a[n1][21];\n\tint i,j;\n\tfor(i=0;i>a[i][0];\n\t\tif(a[i][0]==0)\n\t\t{\n\t\t\tcout<<\"60\"<>a[i][j];\n\t\t\t}\n\t\t\tfor(j=1;j<=a[i][0];j++)\n\t\t\t{\n\t\t\t\tif(j==a[i][0])\n\t\t\t\t{\n\t\t\t\t\tif((a[i][j]+3*j)<60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<60-3*j<60&&(a[i][j]+3*j<=63))\n\t\t\t\t{\n\t\t\t\t\tcout<63)\n\t\t\t\t{\n\t\t\t\t\tcout<<63-3*j<=57)&&(c[k]+(k-1)*3<=60))\n\t\t\t\t{\n\t\t\t\t\ts[i]=c[k];\n\t\t\t\t\tk=k+m[i];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t if(c[k]+(k-1)*3>60)\n\t\t\t\t\t{\n\t\t\t\t\t\ts[i]=c[k]-(c[k]+(k-1)*3-60);\n\t\t\t\t\t\tk=k+m[i];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(k==m[i])\n\t\t\t\t\t\t{\n\t\t\t\t\t\ts[i]=60-3*k;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tprintf(\"%d\\n\",s[i]);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42890", "code": "int main() \n{ \nint n,m,k,c;\n\nscanf(\"%d\",&n);\nwhile(n--)\n{\nscanf(\"%d\",&m);\nint*shuzu=(int*)malloc(sizeof(int)*m);\nc=0;\nfor(int i=0;i=63)\n\t\t\t\t{\n\t\t\t\t\tnum[i]-=t[i]-63;\n\t\t\t\t\tf=1;\n\t\t\t\t}\n\t\t\t\telse if(t[i]>=60)\n\t\t\t\t\tf=1;\n\t\t\t}\n\t\t}\n\t\tif(t[i]<60)\n\t\t{\n\t\t\tnum[i]+=60-t[i];\n\t\t}\n\t}\n\tfor(i=0;ic)?k[j]:(c-3);\n\t\t}\n\t\tprintf(\"%d\\n\",c);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42893", "code": "int main(){\n\tint n,m,num[N],i,j,k,count;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcount=num[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(num[j]+j*3>60)\n\t\t\t\t\t{\n\t\t\t\t\t\tcount=60-j*3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse count=60;\n\t\tprintf(\"%d\\n\",count);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42894", "code": "\nint main()\n{\n\tstruct tiao\n\t{\n\t\tint *ln;\n\t\tint k;\n\t\tint sumt;\n\t}*tiao1;\n\tint n;\n\tscanf(\"%d\",&n);\n\ttiao1 = ( struct tiao *) malloc ( sizeof ( struct tiao ) * n );\n\tint i;\n\tint j;\n\tint f = 0;\n\tfor ( i = 0 ; i < n ; i++ )\n\t{\n\t\tf = 0;\n\t\tscanf(\"%d\",&tiao1[i].k);\n\t\ttiao1[i].ln = ( int * ) malloc ( sizeof ( int ) * tiao1[i].k );\n\t\ttiao1[i].sumt = 0;\n\t\tfor ( j = 0 ; j < tiao1[i].k ; j++ )\n\t\t{\n\t\t\tscanf(\"%d\",&tiao1[i].ln[j]);\n\t\t}\n\t\tif ( tiao1[i].k == 0 )\n\t\t{\n\t\t\tprintf(\"60\\n\");\n\t\t\tcontinue;\n\t\t}\n\t\tfor ( j = 0 ; j < tiao1[i].k ; j++ )\n\t\t{\n\t\t\ttiao1[i].sumt = ( tiao1[i].ln[j]+3*(j) );\n\t\t\tif ( tiao1[i].sumt >= 60 )\n\t\t\t{\n\t\t\t\tint tmp1;\n\t\t\t\ttmp1 =\ttiao1[i].ln[j-1]+3*(j) ;\n\t\t\t\tif ( tmp1 >= 60 )\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\\n\",tiao1[i].ln[j-1]);\n\t\t\t\t}\n\t\t\t\tif ( tmp1 < 60 && 60 - tmp1 > 3 )\n\t\t\t\t{\n\t\t\t\t\ttmp1 = 60 - tmp1 + tiao1[i].ln[j-1];\n\t\t\t\t\tprintf(\"%d\\n\",tmp1);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( tiao1[i].sumt < 57 )\n\t\t{\n\t\t\ttiao1[i].sumt += 3;\n\t\t\tj--;\n\t\t\tprintf(\"%d\\n\",(60-tiao1[i].sumt+tiao1[i].ln[j]));\n\t\t}\n\t\tif ( tiao1[i].sumt < 60 && tiao1[i].sumt > 57 )\n\t\t{\n\t\t\tprintf(\"%d\\n\",tiao1[i].ln[j-1]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42895", "code": "int main()\n{\n\tint num;\n\tcin>>num;\n\twhile(num--){\n\t\tint n;\n\t\tcin>>n;\n\t\tif(n==0) cout<<\"60\"<>a[i];\n\t\t\tfor(i=0;i0) sum-=time;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttime-=3;\n\t\t\t\t\tsum-=3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcout<60)\n break;\n }\n gets(chi);\n if(total<=62 && total>=60)\n\t\t{\n\t\t\tnum=total-3*j;\n printf(\"%d\\n\",num);\n }\n else if(total<60)\n\t\t{\n\t\t\tnum=60-3*m;\n printf(\"%d\\n\",num);\n }\n else\n {\n\t\t\tnum=60-3*(j-1);\n printf(\"%d\\n\",num);\n }\n }\n}"} +{"label": "86", "index": "42897", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i60){\n\tm=m-1;}\nif(s[m-1]+m*3-3>=57)\nt=s[m-1];\nelse \nt=60-3*m;}\nprintf(\"%d\\n\",t);\n\t\n\t}return 0;\n}"} +{"label": "86", "index": "42898", "code": "int main()\n{\n\tint n,i,m,a[20],j,s,k,t;\n\tcin>>n;\n\tfor(i=0;i>m;\n\t\tif(m==0)\n\t\t{\n\t\t\ts=60;\n\t\t}\n\t\telse\n\t\t{\n\t\t for(j=0;j>a[j];\n\t\t }\n\t\t\tfor(k=m-1;;k--)\n\t\t\t{\n\t\t\t\tif(a[k]+3*(k+1)<=63)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tt=a[k]+3*k;\n\t\t\tif(t<57)\n\t\t\t{\n\t\t\t\ts=a[k]+(57-t);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ts=a[k];\n\t\t\t}\n\t\t}\n\t\tcout<=0;j--){\n\t\t\t\tflag=0;\n\t\t\t if((shzu[j]+3*j<=60)&&((60-3*j-shzu[j])<=3)){\n\t\t\t\t a=shzu[j];\n\t\t\t\t flag=1;\n\t\t\t\t}\n\t\t\t if((60-3*j-shzu[j])>3){\n\t\t\t\t a=60-3*(j+1);\n\t\t\t\t flag=1;\n\t\t\t\t}\n\t\t \tif(flag==1){\n\t\t\t\t printf(\"%d\\n\",a);\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfree(shzu);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42900", "code": "int main()\n{\nint n,i,m,k,a,s;\nscanf(\"%d\",&n);\nfor(i=0;i60 && (a+k*3)<=63){\ns=a;}\n}\nif(m==0)\ns=60;\nprintf(\"%d\\n\",s);}\nreturn 0;\n}\n\n\n"} +{"label": "86", "index": "42901", "code": "\nint main()\n{\n int a,a0,t,i,j,n,m;\n\n cin>>n;\n for(i=0;i>m;t=0;a=0;\n for(j=0;j>a;\n t+=3;//time not jumping\n a+=t;//the time that has passed so far\n if(a>60) break;\n }\n\tj++;\n\twhile(j>a0;j++;}\n t=60-t;\n if(a>60)//it's already over when stop counting\n switch(a)\n { case 61:t++;break;\n case 62:t+=2;break;\n default:t+=3;//count one more pausing round\n }\n cout<60)\n\t\tbreak;\n\tif(t>57){\n\t\ttotal-=(60-t);\n\t\tbreak;\n\t}\n\tif(t<58){\ntotal-=3;\nk+=3;\n\t}\n\n}\n}\nprintf(\"%d\\n\",total);\n\t}\nreturn 0;\n}"} +{"label": "86", "index": "42903", "code": "/*\n2011 01 08 ??\n\n??\n????????,?????????????.????????,???????,?????????????.\n????????????????.??????????????????,??????????????.(?????????.)\n????\n????n???? \n????,?????????????m,??m??????????????.\n????\n?????????????????.\n\n?? 1000012760\n*/\n\n\nint TimeUsed= 0, Jumps= 0, Time= 0;\n\nvoid Jump(){\n\tTimeUsed++;\n\tJumps++;\n}\nvoid Fail(){\n\tTimeUsed+= 3;\n}\n\nint main(){\n\tint kids, Failure, i, j, k;\n\tint FailTime[2][60];\n\tcin>>kids;\n\tfor(i= 0; i< kids; i++){\n\t\tJumps= 0;\n\t\tTimeUsed= 0;\n\t\tcin>>Failure;\n\t\tfor(j= 0; j< Failure; j++){\n\t\t\tcin>>FailTime[0][j];\n\t\t\tFailTime[1][j]= 0;\n\t\t}\n\t\twhile(1){\n\t\t\tJump();\n\t\t\tfor(k= 0; k< Failure; k++){\n\t\t\t\tif((Jumps== FailTime[0][k]) && (FailTime[1][k]== 0)){\n\t\t\t\t\tFailTime[0][k]= 1;\n\t\t\t\t\tFail();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(TimeUsed>= 60)\n\t\t\t\tbreak;\n\t\t}\n\t\tcout<60) break;\n\t\t\t\t\t}\n\t\t\t\tif(sum<60){\n\t\t\t\t\tcs=js[m-1]+60-sum;\n\t\t\t\t\t}\n\t\t\t\telse if(sum>=60&&sum<=63){\n\t\t\t\t\tcs=js[k];\n\t\t\t\t\t}\n\t\t\t\telse if(sum>63){\n\t\t\t\t\tcs=js[k-1]+60-sum1;\n\t\t\t\t\t}\n\t\t\t\tprintf(\"%d\\n\",cs);\n\t\t\t\t}\n\t\t\t}\n \tscanf(\"%d\",&n);\n return 0;\n}\n"} +{"label": "86", "index": "42905", "code": "int a[1000][1000];\nint main(){\n\tint m[100],n,j,i,f,q;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60){\n\t\t\t\tf=0;\n\t\t\t\tq=j;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\tf=1;\n\t\t\t}\n\t\t}\n\t\tif(f==0){\n\t\t\tif(a[i][q]>(60-3*q)){\n\t\t\t\tprintf(\"%d\\n\",(60-3*q));\n\t\t\t}else{\n\t\t\tprintf(\"%d\\n\",a[i][q]);\n\t\t\t}\n\t\t}\n\t\tif(f==1){\n\t\t\tprintf(\"%d\\n\",(60-3*m[i]));\t\n\t\t}\n\t\t}\n\t\n return 0; \n}\n\n\n\n\n\n\n\n\n"} +{"label": "86", "index": "42906", "code": "int main()\n{\n int n,i,j,m,a,p,q,k,sum=0,b=0;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&m);\n if(m==0)\n {printf(\"60\\n\",a);\n }\n else if(m>0)\n {\n for(j=1;j<=m;j++)\n {\n scanf(\"%d\",&a);\n q=a+3*j;\n if(q<63)\n {sum=q;\n k=a;\n b=j;}\n }\n if(sum>=60&&sum<=62)\n { printf(\"%d\\n\",k);\n \n }\n else if(sum<60&&q>62)\n {\n p=60-3*b;\n printf(\"%d\\n\",p);\n \n \n }\n \n \n \n \n if(q<60)\n { \n sum=60-3*m;\n printf(\"%d\\n\",sum);\n }\n \n }\n }\n scanf(\"%D\",&a);\n \n }\n "} +{"label": "86", "index": "42907", "code": "\n\nint main(int argc, char* argv[])\n{\n int i,n,nn,k,t,j,c; \n scanf(\"%d\",&n);\n for (i=0;i=63)\n\t\t\tc=c-(t-63);\n\t\telse if (t<60)\n\t\t\tc=c+(60-t);\n\t\tprintf(\"%d\\n\",c);\n\t }\n }\n\treturn 0;\n}\n"} +{"label": "86", "index": "42908", "code": "int main(){\n\tint n,i,k,j;\n\tint result;\n\tint zcs;\n\tint m,cs[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;j--){\n\t\t\tresult=cs[j]+(j+1)*3;\n\t\t\t\tif(result<=60){\n\t\t\t\tzcs=60-3*(j+1);\n\t\t\t\tbreak;\n\t\t\t}else if(result>60&&(result-3)<60){\n\t\t\t\t\tzcs=cs[j];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\t\t\n\t\tprintf(\"%d\\n\",zcs);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42909", "code": "int main()\n{\n int a[100],bre[100];\n int i,j,k,l,n,m;\n scanf(\"%d\",&n);\n while(n--)\n {\n\t for(i=1;i<=60;i++)\n\t {a[i]=1;}\n\t scanf(\"%d\",&m);\n\t if(m==0) \n\t {\n\t\t printf(\"60\\n\");\n\t\t continue;\n\t }\n\t else\n\t {\n\t\t for(i=1;i<=m;i++)\n\t\t\t scanf(\"%d\",&bre[i]);\n\t\t for(i=1;i<=m;i++)\n\t\t\t bre[i]=bre[i]+3*(i-1);\n\t\t for(i=1;i<=m;i++)\n\t\t {\n\t\t\t a[bre[i]+1]=0;\n\t\t\t a[bre[i]+2]=0;\n\t\t\t a[bre[i]+3]=0;\n\t\t }\n\t\t l=0;\n\t\t for(i=1;i<=60;i++)\n l=l+a[i];\n\t\t printf(\"%d\\n\",l);\n\t }\n }\n return 0;\n}\n \n\n"} +{"label": "86", "index": "42910", "code": "// ?? ?? 1000062708\nint main()\n{\n\tint a, n, m, i, t, j, sum, flag;\n\tcin >> n;\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tflag = 0;\n\t\tcin >> m;\n\t\tfor(j = 1;j <= m;j++)\n\t\t{\n\t\t\tcin >> a;\n\t\t\tif(flag == 0)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tt = a + 3 * j;\n\t\t\t\tif(t >= 63)\n\t\t\t\t{\n\t\t\t\t\tsum = 63 - 3 * j;\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\telse if(t >= 60 && t < 63)\n\t\t\t\t{\n\t\t\t\t\tsum = a;\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t\n\t\t\t\t\tsum = 60 - 3 * j;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(m == 0) \n\t\t\tsum = 60;\n\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "86", "index": "42911", "code": "void main()\n{\n\tint counts;int sum;\n\tint a[100];\n\tint n;int i,c;int m;\n\tscanf(\"%d\",&n);\n\twhile(n--)\n\t{\n\t\tc=0;\n\t\tsum=0;\n\t\tscanf(\"%d\",&m);\n\t\tfor(i=0;i60)\n\t\t\t{\n\t\t\t\tc=i*3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(a[i]+(i+1)*3>60)\n\t\t\t{\n\t\t\t\tc=60-a[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",60-c);\n\t}\n}"} +{"label": "86", "index": "42912", "code": "int main(){\n\tint n,cs[num][num],t,sum[num],k,j;\n\tscanf(\"%d\",&n);\n\tfor(j=0;j0){\n\t for(k=1;k<=t;k++){\n\t\t scanf(\"%d\",&cs[j][k]);\n\t }\n\t\t}\n\t}\n\t for(j=0;j60&&60-3*(k-1)-cs[j][k]<3&&60-3*(k-1)-cs[j][k]>0){\n\t\t\t sum[j]=cs[j][k];\n\t\t\t }\n\t\t\t else if(cs[j][1]>60){\n\t\t\t\t sum[j]=60;\n\t\t\t }\n\t\t }\n\t\t }\n\t }\n\t for(j=0;j>n;//????n\n\tfor(i=0;i>m[i];\n\t\tif(m[i]!=0)\n\t\t{\n\t\t\tfor(j=0;j>a[i][j];\n\t\t }\n\t\t}\n\t}\n\tfor(i=0;i0)//????????????\n\t\t{\n\t\t\tj=m[i]-1;\n\t\t\ts=a[i][j]+m[i]*3;\n\t\t\tif(s>60)\n\t\t\t{ s=0,j=0;\n\t\t\twhile(s<=60)\n\t\t\t{\n\t\t\t\ts=3*(j+1)+a[i][j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tif(s-3>60)\n\t\t\t\tt=60-(j-1)*3;\n\t\t\telse\n\t\t\t\tt=60-(j-1)*3-(3-(s-60));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tt=60-m[i]*3;\n\t\t\n\t\t\t}\n\t\t\tcout< 60) break;\n \n }\n\n\n for(j = 0;j <=60;j++)\n {\n broke_time[j] = 0;\n }\n\n \n }\n \n for(i = 0;i <= n-1; i ++)\n {\n printf(\"%d\\n\", total[i]);\n }\n}\n \n"} +{"label": "86", "index": "42915", "code": "int main()\n{\n\tint i,j,n,m,a[100],sum=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0)\n\t\t\t\tsum=a[m-1];\n\t\t\telse if(a[m-2]+(m-1)*3<=60)\n\t\t\t\t sum=a[m-2]+(60-a[m-2]-3*(m-1));\n\t\t else if(60-(a[m-2]+(m-2)*3)<3 && 60-(a[m-2]+(m-2)*3)>=0)\n\t\t\t\t\tsum=a[m-2];\n\t\t\t\n\t\t\t\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42916", "code": "\nint main()\n{\n int j,e,i,d,a[60];\n\tint m,n,k=1;\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tfor (j=0;j0)\n\t\t\tprintf(\"%d\\n\",(60-3*m));\n\t}\n\t\n\n\treturn 0;\n}\n"} +{"label": "86", "index": "42917", "code": "int main()\n{\n\tint n,i,j;\n\tstruct{\n\t\tint m,x[10],t[10],s; //t???s?60?????\n\t}a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0; i=60; j--){} //j=4\n\t\t\t\tif(a[i].x[j+1]+3*(j+1)>=57 && a[i].x[j+1]+3*(j+1)<=60)\n\t\t\t\t\tprintf(\"%d\\n\",a[i].x[j+1]);\n\t\t\t\telse{\n a[i].s=60-3*(j+1);\n\t\t\t\t printf(\"%d\\n\",a[i].s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42918", "code": "\n\nint N, Total, Time, PNum, Stop;\ninline int Max(int x, int y)\n{ return (x > y ? x : y); }\nint main()\n{\n\tcin >> N;\n\tfor (int i = 0; i < N; i ++)\n\t{\n\t\tcin >> Stop;\n\t\tif (Stop == 0) {cout << \"60\" << endl; continue;}\n\t\tTotal = 0; Time = 60;\n\t\tfor (int j = 0; j < Stop; j ++)\n\t\t{\n\t\t\tcin >> PNum;\n\t\t\tif (Time - PNum - 3 * j >= 0) \n\t\t\t{\n\t\t\t\tTotal = PNum;\n\t\t\t\tif (Time - PNum - 3 * j > 3)\n\t\t\t\tTotal += Time - PNum - 3 * (j + 1);\n\t\t\t}\n\t\t}\n\t\tcout << Total << endl;\t\t\n\t}\n\treturn 0;\n}\n\n"} +{"label": "86", "index": "42919", "code": "\nint main()\n{\n\tint n,num;\n\tcin>>n;//??n????????\n\tint i=1;\n\tfor(i=1;i<=n;i++)//????????????\n\t{\n\t\tint m;\n\t\tcin>>m;//??????????\n\t\tint a[60];//??????\n\t\tif(m==0)cout<<\"60\"<>a[j];\n\t\t\t\tif((a[j]+3*j)>=60&(a[j]+3*j)<=63)num=a[j];\n\t\t\t\telse if(((a[j-1]+3*(j-1))<60)&(a[j]+3*j)>63)num=(63-3*j);\n\t\t\t\telse if((a[j]+3*j)<60){num=(60-3*j);continue;}/*??????????????????????????????????????????????????*/\n\t\t\t}\n\t\t\tcout<>n;\n\tfor(int i=0;i>a[i][0];\n\t\tfor(int j=1;j<=a[i][0];j++)\n\t\t\tcin >>a[i][j];\n\t}\n\tfor(int i=0;i=60&&num<=63)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout <63)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout <<63-j*3<59){\n\t\t\t\tnum-=3;\n\t\t\t}\n\t\t\tif(u*3+b[i][u]==59){\n\t\t\t\tnum-=2;\n\t\t\t}\n\t\t\tif(u*3+b[i][u]==58){\n\t\t\t\tnum-=1;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",60-num);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42922", "code": "int main()\n{\n\tint a[21];\n\tint m,n,j,i,sum,sum1;\n\tscanf(\"%d\",&m);\n\tfor(j=1;j<=m;j++){\n\tscanf(\"%d\",&n);\n\tsum=sum1=0;\n\tfor(i=1;i<=20;i++)\n\t{\n\t\ta[i]=0;\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t}\n\tfor(i=1;i<=20;i++)\n\t{\n\t\tif((a[i]<=60-(i-1)*3)&&a[i]!=0)\n\t\t{\n\t\t\tsum=a[i];\n\t\t\tsum1=a[i]+3*i;\n\t\t}\n\t\tif(a[i]==0)\n\t\t{\n\t\t\tsum=sum+60-sum1;\n\t\t\tsum1=60;\n\t\t}\n\t\tif(sum1>=60)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(n==0)\n\t{\n\t\tprintf(\"60\\n\");\n\t}\n\telse\n\t{\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42923", "code": "int main()\n{\n\tint n,a[60][60],b[60],i,j,c[60],d[600],e[600];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i57)e[i]=60-a[i][j]-3*j;\n\t\t\n\t\t}\n\t\td[i]=60-3*c[i]-e[i];\n\t}\n\tfor(i=0;i=0;j--)\n\t\t{\n\t\t if(sum[j]>=63) continue;\n\t\t\telse if(sum[j]<=60) \n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60-(j+1)*3);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t else if(sum[j]==61) \n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",58-j*3);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t else if(sum[j]==62) \n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",59-j*3);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfree(sum);\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42925", "code": "//***********************\n//*???????********\n//*??????**********\n//*???1000012832******\n//***********************\nint main()\n{\n\tint n,\ti;//???? n ?????????\n\tcin\t>>\tn;\n\tfor(i\t=\t1;\ti\t<=\tn;\ti\t++)//??????\n\t{\n\t\tint m,\tx[100]\t=\t{0},\tj;//???????\n\t\tcin\t>>\tm;\n\t\tif(m\t==\t0)//???0????????60\n\t\t{\n\t\t\tcout\t<<\t60\t<<\tendl;\n\t\t\tcontinue;\n\t\t}\n\t\telse//??\n\t\t{\n\t\t\tfor(j\t=\t0;\tj\t<\tm;\tj\t++)//???????m???\n\t\t\t{\n\t\t\t\tcin\t>>\tx[j];\n\t\t\t}\n\t\t\tfor(j\t=\t0;\tj\t<\tm;\tj\t++)//????\n\t\t\t{\n \n\t\t\t\tif(x[j]\t<\t60)\n\t\t\t\t{\n\t\t\t\t\tif(x[j]\t+\t3\t*\t(j\t+\t1)\t>=\t60)//???????60????????????????60?????????\n\t\t\t\t\t{ \n\t\t\t\t\t\tcout\t<<\tx[j]\t<<\tendl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(3\t*\t(j\t+\t1)\t+\tx[j\t+\t1]\t>=\t60)//?????60????????????????????60????60??????\n\t\t\t\t\t{\n\t\t\t\t\t\tcout\t<<\t60\t-\t3\t*\t(j\t+\t1)\t<<\tendl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(j\t==\tm)//???????j==m???????????????60??????\n\t\t\t{\n\t\t\t\tcout\t<<\t60\t-\t3\t*\tm\t<<\tendl;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42926", "code": "int main()\n{\n int n,i,j;\n int m,a,a0,time,result,k;\n //freopen(\"test2.in\",\"r\",stdin);\n scanf(\"%d\",&n);\n \n for(i=0;i=60)\n\t \t{\n\t \t\tfor(k=j+1;k<=m;k++)//??for ???????????????????????????? \n\t \t\t\tscanf(\"%d\",&a);\n\t \t break;\t\n\t \t}\n \t a0=a;\n\t }\n\t if(time<60)//?j<=m?????? \n\t {\n \t\tresult=60-3*m;//???????????????????3??????1???60?????60?????????m????????3*m?? \n \t}\n \telse\n \t{\n\t \tif(time==60)//?j????????j?????3???????60??????????????????????60????????60-j*3? \n\t \t{\n\t \t\tresult=60-j*3;\n\t \t}\n\t \telse\n\t \t{\n\t \t\tif(time-3<=60)//?j????60?\u0093??\u0094?????????3????????60?? \n\t \t\t{\n\t\t \t\tresult=time-3-(j-1)*3;//?j?????????????????????j-1???????? \n\t\t \t}\n\t \t\telse result=60-(j-1)*3;//?j??????????60??? \n\t \t}\n\t }\n\t printf(\"%d\\n\",result);\n }\n\treturn 0;\n}"} +{"label": "86", "index": "42927", "code": "int main() \n{ \nint n,m,a,b,i,j;\n\nscanf(\"%d\",&n);\nfor(i=0;i=60){\n\t\t\t sum+=60-(3*j);\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t if(score[j]<=45){\n\t\t\t\t sum+=60-(3*m);\n\t\t\t\t }\t\t\t \n\t\t\t\t else if(score[j]>45){\n\t\t\t\t sum+=score[j];\t\t\t\t\t \n\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\", sum);\n\t}\n}"} +{"label": "86", "index": "42929", "code": "int main()\n{ int m,n,i,j,t=0;\n int a[500];\n\tscanf(\"%d\",&m);\n\tfor(j=1;j<=m;j++){\n\t\tfor(i=0;i<500;i++){\n\t\t\ta[i]=0;\n\t\t}\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0){\n\t\t\tprintf(\"60\\n\");\n\t\t}\n\t\telse{\n\t\t\tfor(i=0;i60){\n\t\t\t\t\tt=1;\n\t\t\t\t\tif(a[i]+3*i<60){\n\t\t\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tprintf(\"%d\\n\",60-3*i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(t==0){\n\t\t\t\tprintf(\"%d\\n\",60-3*n);\n\t\t\t}\n\t\t\tt=0;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42930", "code": "int main()\n{\n\tint n,m,t[60],i,j,p[1000]={0},a,ms;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60){\n\t\t\t\t\n\t\t\t\tp[i]=60-3*j;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(ms<60&&ms>57){\n\t\t\t\tp[i]=60-(3*j+60-ms);\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tp[i]=60-(3*(j+1));\n\t\t\t}\n\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=60)\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%d\\n\",k);\n\t}\n}\n"} +{"label": "86", "index": "42932", "code": "int main(int argc, char* argv[])\n{\n int n,i,j,pause,t,number[60],total;\n\tscanf(\"%d\",&n);\n\tfor (j=0;j=60)\n\t\t\t\t{\n\t\t\t\t\ttotal=number[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (t>=60)\n\t\t\t\t{\n\t\t\t\t\ttotal=63-3*i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",total);\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "86", "index": "42933", "code": "\nint main()\n{\n int n;\n int a[100], num;\n int i, j;\n\n scanf(\"%d\", &n);\n for (i=0; i60) && ((re-3)<60)) /* not jump in 60 */\n return a[i];\n else if (re > 60) /* jumped in 60 */\n return 60 - 3*i;\n }\n if (re <= 60)\n return 60-3*i;\n}"} +{"label": "86", "index": "42934", "code": "int main()\n{\n int n, m, i, j, t, a[20];\n\tcin >> n;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> m;\n\t\t\tfor(j = 0; j < m; j++)\n\t\t\t\tcin >> a[j];\n\t\t\tfor(j = 0; j < m; j++)\n\t\t\t{\n\t\t\t\tt = a[j] + 3 * (j + 1);\n\t\t\t\tif(t > 60 && t < 63)\n\t\t\t\t{\n\t\t\t\t\tcout << a[j] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif(t >= 63)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << 60 - 3 * j << endl;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif(t > 60)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(j == m)\n\t\t\t\tcout << 60 - 3 * m << endl;\n\t}\n return 0;\n}\n"} +{"label": "86", "index": "42935", "code": "int main()\n{\n\tint n ;\n\tcin>>n ;\n\tfor(int i = 0;i>m;\n\t\tif(m==0)\n\t\t\tcout<<\"60\"<>a[k];\n\t\t}\n\t\tfor(int j=m ; j>=1 ; j--)\n\t\t{\n\t\t\tif((a[j-1]+3*j)>=63)\n\t\t\t\tcontinue ;\n\t\t\telse if((a[j-1]+3*j)<=60)\n\t\t\t{\n\t\t\t\tcout<<(60-3*j)<=57)b[i]=c;\n\t\t\t\t\t\telse if(sum<57)b[i]=57-sum+c;\n\t\t\t\t\t\telse if(sum>60&&sum-(c-d)<=63&&sum-(c-d)>=60)b[i]=d;\n\t\t\t\t\t\telse if(sum>60&&(sum-(c-d))<60)b[i]=c-sum+60;\n\t\t\t\t\t}\n\t}\n\tfor(i=0;i>n0;\nfor(i0=0;i0>n; \nif(n==0)\n{cout<<60<>a[i]; \nfor(i=0;i62) break;\nelse if(t==62){s-=1;break;}\nelse if(t==61){s-=2;break;}\nelse s-=3;}}\nprintf(\"%d\\n\",s);}\nreturn 1;}"} +{"label": "86", "index": "42939", "code": "int main(){\n\tint n,i,t,p,j;\n\tint a[1000][30];\n\tcin>>n;\n\tfor(i=0;i>a[i][0];\n\t\tfor(j=1;j>a[i][j];\n\t\tfor(j=2;j<=a[i][0]*2;j=j+2)\n\t\t\ta[i][j]=3;\n\t\tfor(j=j-3;j>=3;j=j-2)\n\t\t\ta[i][j]=a[i][j]-a[i][j-2];\n\t\tfor(j=1,t=0;j<=a[i][0]*2;j++){\n\t\t\tt=t+a[i][j];\n\t\t\tif(t>60){\n\t\t\t\tif(j<=a[i][0]*2)\n\t\t\t\t\tj--;\n\t\t\t\tbreak; //??????\n }\n\t\t}\n\t\tif((j%2==0&&t>60)||t<=60)\n\t\t\tcout<<60-(j/2)*3<60){\n\t\t\tfor(p=1,t=0;p> n;\n\tfor(int i=0; i < n; i++)\n\t{\n\t\tcin >> m;\n\t\tif(m == 0)\n\t\t{\n\t\t\tcout<<60<> a[j];\n\t\t\t}\n\t\t\tfor(int k=m-1; k >= 0; k--)\n\t\t\t{\n\t\t\t\tif(a[k]+3*(k+1) <= 60)\n\t\t\t\t{\n\t\t\t\t\tcout<>num;\nwhile(cin>>m)\n{\n\tif(m==0) //????m?1\n\t\tcout<<60<>time[1];\n\tif(time[1]<=57)\n\t\tcout<<57<60)\n\t\tcout<<60<>count[i];\n\t\t time[i]=count[i]+3*i;\n\t }\n if(time[m]<60)\n\t {\n\t cout<<60-3*m<=60)\n\t { \n\t if(60-time[i-1]>count[i]-count[i-1])\n\t\t cout<57)\n\t\t\t\tprintf(\"%d\\n\",c[i][1]);\n\t\t}\n\t\tif(m[i]>1)\n\t\t{\n\t\t\tif((c[i][m[i]]+3*(m[i]))<=60)\n\t\t\t{\n\t\t\t\tsum=60-3*m[i];\n\t\t\t\tprintf(\"%d\\n\",sum);\n\t\t\t}\n\t\t\telse if((c[i][m[i]]+3*(m[i]))<=63)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",c[i][m[i]]);\n\t\t\t}\n\t\t\telse if((c[i][m[i]]+3*(m[i]))>63)\n\t\t\t{\n\t\t\t\tif((c[i][m[i]-1]+3*(m[i]-1))<60)\n\t\t\t\t{\n\t\t\t\t\tsum=60-3*(m[i]-1);\n\t\t\t\t printf(\"%d\\n\",sum);\n\t\t\t\t}\n\t\t else if((c[i][m[i]-1]+3*(m[i]-1))<63)\n\t\t\t\t{\n\t\t \t \tprintf(\"%d\\n\",c[i][m[i]-1]);\n\t\t\t\t}\n\t\t\t\telse if((c[i][m[i]-1]+3*(m[i]-1))>63)\n\t\t\t\t{\n\t\t\t\t\tif((c[i][m[i]-2]+3*(m[i]-2))<60)\n\t\t\t\t\t{\n\t\t\t\t\t sum=60-3*(m[i]-2);\n\t\t\t\t printf(\"%d\\n\",sum);\n\t\t\t\t\t}\n\t\t else if((c[i][m[i]-2]+3*(m[i]-2))<63)\n\t\t\t\t\t{\n\t\t \t \tprintf(\"%d\\n\",c[i][m[i]-2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42943", "code": "\nint main()\n{\n\tint j=0,n, m, y[100], a[63], b[10];\n\tfor (int t=0;t<63;t++)\n\t\ta[t]=1;\n\t\n\tfor (int s=0;s<10;s++)\n\t\tb[s]=0;\n\tscanf(\"%d\", &n);\n\tfor(int i=0;i=63))\n {\n printf(\"%d\\n\",60-3*j);\n break;\n }\n else if(a[j]+3*j==61||a[j]+3*j==62)\n {\n printf(\"%d\\n\",a[j]);\n break;\n }\n }\n else \n {\n if(a[j]+3*j<60)\n {\n printf(\"%d\\n\",60-3*j);\n break;\n }\n else if(a[j]+3*j==63||a[j]+3*j==61||a[j]+3*j==62)\n {\n printf(\"%d\\n\",a[j]);\n break;\n }\n }\n }\n }\n else printf(\"60\\n\");\n }\n}"} +{"label": "86", "index": "42945", "code": "int main()\n{\n\tint n,i,m,j;\n\tint data;\n\tscanf(\"%d\",&n);\n\tfor( i = 1; i <= n; i++ )\n\t{\n\t\tint sum = 0;\n\t\tint flag = 1;\n\t\tint num = 0;\n\t\tscanf(\"%d\",&m);\n\t\tfor( j = 1; j <= m ; j++ )\n\t\t{\n\t\t\tscanf(\"%d\",&data);\n\t\t\tif( data + num >= 60 && flag )\n\t\t\t{\n\t\t\t\tsum = 60 - num;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\t\tnum += 3;\n\t\t\tif( data + num >= 60 && flag)\n\t\t\t{\n\t\t\t\tsum = data;\n\t\t\t\tflag = 0;\n\t\t\t}\n\n\t\t}\n\t\tif( sum == 0 )\n\t\t\tsum = 60 - num;\n\t\tprintf(\"%d\\n\",sum);\n\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42946", "code": "int main()\n{\n\tint n,m,a,b,t,x,c,d;\n\tint z[1000];\n\tscanf(\"%d\",&n);\n\tfor(a=0;a<=n-1;a++)\n\t{\n\t\tscanf(\"%d\",&m);\n\t\tfor(b=0;b<=m-1;b++)\n\t\t{\n\t\t\tscanf(\"%d\",&z[b]);\n\t\t}\n\t\tif(m==0)\n\t\t{\n\t\t\tprintf(\"60\\n\");\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t t=60;x=0;c=0;d=0;\n\t \twhile(t>0)\n\t\t\t{\n\t\t\t t--;\n\t\t\t\tif(d==0)\n\t\t\t\t{\n\t\t\t\t\tif(c=60)\n\t\t\t\t{\n\t\t\t\t\tm++;\n\t\t\t\t\tl=i-1;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(m==0) \n\t\t\t{\n\t\t\t\tif((a[k-1]+3*k)<60)\n\t\t\t\t{\n\t\t\t\tsum=60-3*k;\n\t\t\t\t}\n\t\t\t\tif((a[k-1]+3*k)>=60)\n\t\t\t\t{\n\t\t\t\t\tsum=a[k-1];\n\t\t\t\t}\n\t\t\tprintf(\"%d\\n\",sum);\n\t\t\t}\n\t\t\telse{\n\t\t\tif((a[l]+(l+1)*3)<=60)\n\t\t\t{\n\t\t\t\tsum=60-3*(l+1);\n\t\t\t\tprintf(\"%d\\n\",sum);\n\t\t\t}\n\t\t\tif((a[l]+(l+1)*3)>60)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[l]);\n\t\t\t}\n\t\t\t}\n\t\t\tm=0;\n\t\t\tt=0;\n\t\t\tsum=0;\n\t\t\tl=0;\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "86", "index": "42948", "code": "//******************************************\n//*???????.cpp **\n//*??: ?? 1100012808 **\n//*???2011.12.17 **\n//******************************************\nint main() //???\n{ //?????\n\tint n, j, m, i, a[200], t[200] = {0};\n\tcin >> n;\n\tfor (j = 0; j < n; j++)\n\t{\n\t\tcin >> m;\n\t\tmemset (t, 0, sizeof(t));\n\t\tif (m == 0)\n\t\t\tcout << 60 << endl;\n\t\tfor (i = 0; i < m; i++)\n\t\t{\n\t\t\tcin >> a[i];\n\t\t\tt[i] = a[i] + (i + 1) * 3 + 1;\n\t\t}\n\t\tfor (i = 0; i < m; i++)\n\t\t{\n\t\t\tif ((t[i] <= 60 && t[i + 1] > 60) || (t[i] <= 60 && t[i + 1] == 0))\n\t\t\t{\n\t\t\t\tif (t[i + 1] == 61 || t[i + 1] == 62 || t[i + 1] == 63)\n\t\t\t\t{\n\t\t\t\t\tcout << a[i + 1] << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcout << 60 - 3 * (i + 1) << endl;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n} //?????\n"} +{"label": "86", "index": "42949", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i=1;\n\twhile(i<=n){\n\t\tint sz[50];\n\t\tint m;\n\t\tint j;\n\t\tif(i!=1){\n\t\t \tprintf(\"\\n\");\n\t\t\t}\n\t\tscanf(\"%d\",&m);\n\t\t\n\t\tif(m==0){\n\t\t\tprintf(\"60\");\n\t\t}else{\n\t\t\t\n\t\t for(j=0;j= 60-3*(f_num+1)){\n result=score[j];\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t result= 60-3*f_num;\n\t\t\t\t }\n\t\t\t }\n\t\t\t else{\n\t\t\t\tif (score[j-1]>= 60-3*(f_num- 1) && score[j-1]<= 60-3*(f_num-2)){\n\t\t\t\tresult= score[j-1];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t if (score[j]<= 60-3*(f_num-1) && score[j]>=60-3*f_num){\n\t\t\t result= score[j];\n\t\t\t\t }\n\t\t\t else{\n\t\t\t\t\t if (score[j-1]>=60-3*(f_num-1)){\n\t\t\t\t\t\t result= 60- 3*(f_num-2);\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t result= 60- 3*(f_num- 1);\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t}\n printf(\"%d\\n\", result);\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42951", "code": "int main()\n{\n\tint i,c,j,k,num[100],n,timess=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tfor(j=0;j60)\n\t\t\t\t{\n\t\t\t\t\ttimess=num[k-1];\n\t\t printf(\"%d\\n\",timess);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t else if((num[k-1]+3*k)>63) \n\t\t\t\t{\n\t\t\t\t\ttimess=60-(k-1)*3;\n\t\t\t\t\tprintf(\"%d\\n\",timess);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttimess=0;\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42952", "code": "main()\n{\n\t int m,a[100],n,i,j,t,p,q;\n\tscanf(\"%d\",&n);\n\tfor(j=0;j60&&p<=60&&(a[m-1]-a[m-2])>=(60-p))\n \t{printf(\"%d\\n\",a[m-2]+(60-p));}\n else if(t>60&&p<=60&&(a[m-1]-a[m-2])<(60-p))\n {printf(\"%d\\n\",a[m-1]);}\n \telse if(p>60&&q<=60&& (a[m-2]-a[m-3])>=(60-q) )\n \t{printf(\"%d\\n\",a[m-3]+(60-q));}\n \telse if(p>60&&q<=60&& (a[m-2]-a[m-3])<(60-q))\n \t{printf(\"%d\\n\",a[m-2]);}\n \n \n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42953", "code": "int main()\n{ int a[20]={0},b[100]={0};\n int i,j,m,n,k;\n\tcin>>n;\n\tfor(i=0;i>m;\n\t\tif(m==0)\n\t\t\tb[i]=60;\n\t\telse{\n\t\tfor(j=0;j>a[j];\n for(j=0;j=57 && k<=60){\n\t\t\t\t\t b[i]=a[j];\n\t\t\t\t break;\n\t\t\t}\n\t\t\telse if(k>60){\n\t\t\t\t\t b[i]=60-3*j;\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\t\t}\n\t\t\t\n\t}\n\t}\n\t}\n\tfor(i=0;i60)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[j]+3*j<=63)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprintf(\"%d\\n\",a[j]);\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprintf(\"%d\\n\",63-3*j);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "86", "index": "42955", "code": "\nint main()\n{\n\tint n;\n\tint m,i,j;\n\tint t,tp;\n\tcin>>n;\n\twhile(n--)//?????\n\t{\n\t\ttp=0;\n\t\tt=0;\n\t\tj=0;\n\t\tcin>>m;//??????\n\t\tif(m)\n\t\t\tfor(i=1;i<=m;i++)//??60????????????\n\t\t\t{\n\t\t\t\ttp=t;\n\t\t\t\tcin>>t;\n\t\t\t\tif(t+3*i-3>=60)\n\t\t\t\t{\n\t\t\t\t\tt=tp;\n\t\t\t\t\tif(j==0)\n\t\t\t\t\t\tj=i-1;//60?????\n\t\t\t\t}\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\tcout<<60<=(sum-3)&&a<=sum)\n\t\t\t{\n\t\t\t\tsum=a;\n\t\t\t}\n\t\t}\n\t\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "86", "index": "42957", "code": "int main()\n{\n\tint n,i,e,t[50],m[50][50],max[50],num[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=57&&(m[i][e]+3*e)<=60)\n\t\t\t{\n\t\t\t\tnum[i]=m[i][e];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((m[i][e]+3*e)>60)\n\t\t\t{\n\t\t\t\tt[i]=e;\n\t\t\t\tnum[i]=60-3*t[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=60) \n {printf(\"%d\\n\",60-3*(j-1)); break;}\n else if(a[i][j]+3*j>=60) \n {printf(\"%d\\n\",a[i][j]); break;}\n else if(a[i][j]+3*j<60&&j==a[i][0])\n {printf(\"%d\\n\",60-3*j); break;}\n }\n return 0;\n}"} +{"label": "86", "index": "42959", "code": "\nint main()\n{\n\tint n,a[10][10],i,j,s,p,m;\n\tcin>>n;\n\tfor(i=0;i>a[i][0];\n\t\t\tfor(j=1;j<=a[i][0];j++)\n\t\t {\n\t\t\t cin>>a[i][j];\n\t\t }\n\t\t\tif(a[i][0]!=0)\n\t\t {for(j=1;j<=a[i][0];j++)\n\t\t {\n\t\t\t p=a[i][j]+3*j;\n\t\t\t if(p>63)\n\t\t\t\t {\n\t\t\t\t\t p=a[i][j-1]+3*j-3;\n\t\t\t\t\t if(p>=60)\n\t\t\t\t\t\t s=3-(p-60)+3*(j-2);\n\t\t\t\t\t else\n\t\t\t\t\t\t s=3*(j-1);\n\t\t\t\t break;\n\t\t\t }\n\t\t\t else\n\t\t\t\t if(p>=60)\n\t\t\t\t\t s=3-(p-60)+3*(j-1);\n\t\t\t\t else\n\t\t\t\t s=3*j;\n\t\t\t}\n\t\t\t m=60-s;\n\t\t\t cout<=60)\n\t\t\t{\n\t\t\t\tB[i]=60;\n\t\t\t}\n\t\t\telse if(A[m-1]+3*m<=60)\n\t\t\t{\n\t\t\t\tB[i]=60-3*m;\n\t\t\t}\n\t\t\telse if(A[m-1]+3*m-3<=60)\n\t\t\t{\n\t\t\t\tB[i]=A[m-1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(k=1;k60)\n {\n for(j=0;j=60)\n {\n printf(\"%d\\n\",(60-3*(j+1)));\n break;\n }\n if((a[j]+3*(j+1))>=60&&(a[j]+3*(j+1))<=63)\n {\n printf(\"%d\\n\",a[j]);\n break;\n }\n }\n } \n }\n } \n scanf(\"%d\",1); \n return 0;\n }\n"} +{"label": "86", "index": "42962", "code": "//?????????\n//20101116 ??\nint main()\n{\n\tint n,pause[20],ps[20][20],sum[20],i,j;//pause[]???????ps[][]????????????sum[]??60??????\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>pause[i]; //??????????\n\t\t\tfor(j=1;j<=pause[i];j++)\n\t\t\t\tcin>>ps[i][j]; //???????????\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(pause[i]==0) sum[i]=60; //????????60\n\t\tfor(j=1;j<=pause[i];j++) \n\t\t{ \n\t\t if(ps[i][pause[i]]+3*pause[i]<=60) sum[i]=60-3*pause[i]; //???? \n\t\t\t\telse if((ps[i][j]+3*j<60)&&(ps[i][j+1]+3*j>60))\n\t\t\t\tsum[i]=60-3*j;\n\t\t\telse if((ps[i][j]+3*j<60)&&(ps[i][j+1]+3*j<=60)&&(ps[i][j+1]+3*j+3>=60))\n\t\t\t\tsum[i]=ps[i][j+1];\n\t\t}\n\tcout<=0;q--) //???????????\n\t\t\t\t{\n\t\t\t\t\t//printf(\"%d\\n\", q);\n\t\t\t\t\tif(num[k][q]+3*q<=57)\n\t\t\t\t\t{\n\t\t\t\t\t\t//printf(\"??1\\n\");\n\t\t\t\t\t\tsum[k]=60-3*(q+1);\n\t\t\t\t\t\t//printf(\"%d\", sum[k]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(57=-3){sb[i]=sa[j];break;}\n else if(sb[i]-sa[j]<0){sb[i]=sb[i]+3;break;}\n if(sb[i]-sa[j]>0){continue;}\n }\n }\n for(i=0;i60)\n\t\t\t\tbreak;\n\t\t}\n\t\tif(j==m-1&&b[j]<=60)\n\t\t\ta[i]=b[j]-j*3;\n\t\telse if(b[j]>60&&b[j]<=63)\n\t\t\ta[i]=b[j]-(j+1)*3;\n\t\telse\n\t\t\ta[i]=60-j*3;\n\t}\n\tfor(i=0;i=60)\n\t\t\t\t{\n\t\t\t\t\tif(a[j-1]+j*3<=a[j])\n\t\t\t\t\t{printf(\"%d\\n\",60-j*3);break;}\n\t\t\t\t\telse\n\t\t\t\t\t{printf(\"%d\\n\",a[j]);break;}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",60-j*3);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t\n"} +{"label": "86", "index": "42967", "code": "int main(){\n int i,j,k,h,n,c,t,y,a[70],b[30];\n scanf(\"%d\",&n);\n \n for(i=0;i>n;\n for(int k=0;k>m; //???????\n for(int i=1;i<=m;i++) //???????????\n cin>>a[i]; //??????????????????????\n for(int i=0;i<=m;i++)\n {\n temp=a[m-i]+3*(m-i);\n if(temp<=60) //?m-i???????\n {\n number=60-3*(m-i);\n cout<60&&temp<=63)\n {\n cout<=times[i]) times[i]+=3;\n else if(times[i]-jump[i][k]==1) times[i]+=2;\n else if(times[i]-jump[i][k]==2) times[i]+=1;\n times[i]-=3;\n }\n }\n\n for(i=0;i=47&&jump[i].c[j]<=49)\n\t\t\t\t{\n\t\t\t\t\tjump[i].xia=jump[i].c[j];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(jump[i].c[j]+(j+1)*3>60&&jump[i].c[j-1]+(j)*3<60)\n\t\t\t\t{\n\t\t\t\t\tjump[i].xia=60-(j)*3;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\twhile(i<=n)\n\t{\n\t\tcin>>m;\n\t\tk++;\n\t\tif(m==0)\n\t\t{\n\t\t\tif(k!=n)\n\t\t\t{\n\t\t\t\tcout<<60<>a[j];\n\t\t}\n\t print(a,m,k,n);\n\t\ti++;\n\t}\n return 0;\n}\nvoid print(int a[],int m,int k,int n)\n{\n\n \n\t if(a[m]+3*m<60)\n\t\t{\n\t\t\tif(k!=n)\n\t\t\t{\n\t\t\t\tcout<<(60-3*m)<=60&&a[m]+3*m<=62)\n\t\t{\n\t\t\tif(k!=n)\n\t\t\t{\n\t\t\t\tcout<=60){\n\t\t\t m=s[j];break;}else if(s[j]+j*3>60){m=60-j*3;break;}}}\n\tprintf(\"%d\\n\",m);}else{ printf(\"60\\n\");}}\n\treturn 0;\n\t}\n\t\t"} +{"label": "86", "index": "42975", "code": "int main(){\n int i,n,j,k,f;\n int sz[100];\n int sz2[100][100];\n\n for(i=0;i<100;i++)\n {\n\t for(j=0;j<100;j++)\n\t {\n\t sz2[i][j]=1;\n\t }\n }\n\t scanf(\"%d\",&n);\n for(k=0;k>n;\nwhile(n-->0)\n{\n\tint stop,num[60],beat=60;\n\tcin>>stop;\n\tfor(int i=0;i>num[i];\n\t}\n\tfor(int i=0;i=60) {\n\t\t\t\t\tbeat=beat=60-3*(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbeat=num[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\tcout<63){\nb[j][k]=0;\n}\n}\n\nfor(p=h;p>=1;p--){\nif((b[j][p]==63)||(b[j][p]==62)||(b[j][p]==61)){\nprintf(\"%d\\n\",a[j][p]);\nbreak;\n}\nelse if(b[j][p]<=60&&b[j][p]!=0){\nm=60-3*p;\nprintf(\"%d\\n\",m);\nbreak;\n}\n}\n}\n}\n\n\n}\n"} +{"label": "86", "index": "42978", "code": "\nint main()\n{\n int d,c,n,m,i,j,k,a[20],b[100];\n\tcin>>n;\n for(i=0;i>m;\n\t if(m==0) {b[i]=60;continue;}//??????????60?\n\t\tfor(j=0;j>a[j];}//??????????(??????)\n\t\tif(a[m-1]<=(60-m*3))//?????????????????????\u00d73??????\n\t\t {b[i]=(60-m*3);}\n\t\telse \n\t\t\t {if(m==1) b[i]=c;\n\t\t\t else{{for(k=m-1;;k--)\n\t\t\t if(a[k]+(k+1)*3<=60) break;}//????????????(???3s??60s?)?????\n\t\t c=60-((k+1)*3);//c????????3s??60s?????\n\t\t\t if(c<=a[k+1]) b[i]=c;\n\t\t\t else b[i]=a[k+1];}}//???3s???????????60s?,60s???????????????????\n\t }\n\t for(i=0;i=0;k--){\n if((zongshu[k]+3*k)<=60){\n printf(\"%d\\n\",60-3*k);\n break;\n }\n else if((zongshu[k]+3*k-3)<=60){\n printf(\"%d\\n\",zongshu[k]);\n break;\n }\n else continue;\n }\n }\n return 0;\n\n }"} +{"label": "86", "index": "42980", "code": "int main(){ //???\n\tint n;\n\tcin>>n; //n????\n\twhile(n>0){ //while???????????\n\t\tint m; //?????\n\t\tcin>>m;\n\t\tif(m==0)cout<<60<>count[i]; //??\n\t\t\twhile(1){\n\t\t\tif(count[m-1]+3*m<=60){\n\t\t\t\tcout<<60-3*m<=63){ //????????????????\n\t\t\t\tm--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcout<<60-3*m+(count[m-1]+3*m-60)<> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tflag = time = 0;\n\t\tcin >> m;\n\t\tif (m == 0)\n\t\t{\n\t\t\tcout << 60 << endl;\n\t\t\ttime = 60;\n\t\t}\n\t\tfor (j = 1; j <= m; j++)\n\t\t{\n\t\t\tcin >> counts[j];\n\t\t}\n\t\tfor (j = 1; j <= m; j++)\n\t\t{\n\t\t\tflag += counts[j] - counts[j - 1];\n\t\t\ttime += counts[j] - counts[j - 1];\n\t\t\tif (time >= 60)\n\t\t\t{\n\t\t\t\tcout << flag - time + 60 << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttime += 3;\n\t\t\tif (time >= 60)\n\t\t\t{\n\t\t\t\tcout << flag << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (time < 60)\n\t\t{\n\t\t\tcout << flag - time + 60 << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42982", "code": "int main()\n{int n,i,j;\n cin>>n;\n for(i=1;i<=n;i++)\n {int m,a[10]={0},flag=1;\n cin>>m;\n for(j=0;j>a[j];\n for(j=0;j=0)\n\t cout<0){\n\t\t\t\tbreak;\n\t\t }\n\t }\n\n if((60-a[j]-3*j)<4){\n b[i-1]=a[j];\n\t }\n else{\n\t\t b[i-1]=57-3*j;\n\t \n }\n\n\t}\n\t for(i=1;i<=n;i++){\n\t\t printf(\"%d\\n\",b[i-1]);\n }\n return 0;\n}\n"} +{"label": "86", "index": "42984", "code": "\nint main()\n{\n int people;\n cin>>people;\n int num=0;\n while(true)\n {\n int badjump[20]={0};\n int n;\n cin>>n;\n for(int i=0;i<=n-1;i++)\n {\n cin>>badjump[i];\n }\n int realtime;\n int realjump=0;\n int j=0;\n for(realtime=1;;realtime++)\n {\n realjump++;\n if(realtime==3*j+badjump[j])\n {\n realtime+=3;\n j++;\n }\n if(realtime>=60)break;\n \n }\n cout<>n;\n\t\n for(i=0;i>fail_n;\n\t\n for(k=0;k>fail[k];\n\n for(k=0;k60&&fail[k]+3*k<60) {b=1;break;}\n\t\t\tif(fail[k]+3*(k+1)<=60) a=1;\n\t\t\telse {a=2;x=fail[k-1]+3*(k);break;}\n\t\t \n\t\t}\n \n\t if(b==1) cout<> n;\n\tfor( i = 0; i < n; i++)\n\t{\n\t\tcin >> m;\n\t\tlost = 0;\n\t\tfor (j = 0; j < m; ++j)\n\t\t{\n\n\t\t\tcin >> current;\n\t\t\tif ((lost + current) < 60 )\n\t\t\t{\n\t\t\t\tif( 60 - current - lost > 3)\n\t\t\t\tlost += 3;\n\t\t\t else\n\t\t\t\tlost = 60 - current ;\n\t\t\t}\n\t\t}\n\t\tcout << 60 - lost << endl;\n\t}\n\treturn 0;\n}\n\t\t\t"} +{"label": "86", "index": "42987", "code": "int main(){\n\tint a,b,n,m,p[100],i,j;\n\tscanf(\"%d\",&n);\n\tfor(j=0;j60&&a<=63)\n\t\t\t printf(\"%d\\n\",p[m-1]);\n\t\t else{\n\t\t\t for(i=m-1;i>=0;)\n\t\t\t\t{\n\t\t\t\t\tb=p[i]+(i+1)*3;\n\t\t\t if(b<=60)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\\n\",(60-b)+p[i]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t else if(b>60&&b<=63)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%d\",p[i]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t else\n\t\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "86", "index": "42988", "code": "int s(int);\nint main()\n{\n\tint n, k;\n\tcin >> n;\n\twhile(n--)\n\t{\n\t\tcin >> k;\n\t\tcout << s(k) << endl;\n\t}\n\treturn 0;\n}\nint s(int k)\n{\n\tint i, j, a[15], total = 0;\n\tfor(i = 0; i <= k - 1; i++)\n\t\tcin >> a[i];\n\tint t = 0;\n\tfor(i = 0; i <= k - 1; i++)\n\t{\n\t\tif(t < 60)\n\t\t\tt = a[i] + 3 * (i + 1);\n\t\telse\n\t\t\tbreak;\n\t}\n\tj = i - 1;\n\tif(t <= 60) //t<=60????????????\n\t\ttotal = 60 - 3 * (j + 1);\n\telse \n\t{\n\t\tif(a[j] + 3 * j > 63)\n\t\t\ttotal = 60 - 3 * j;\n\t\telse\n\t\t\ttotal = a[j];\n\t}\n\treturn total;\n}"} +{"label": "86", "index": "42989", "code": "void main()\n{\n\tint m,n,t,j,i,s=60,a[1000];\n\tscanf(\"%d\",&t);\n\tfor(j=0;j=(a[n-1]+3*n)) printf(\"%d\\n\",60-3*n);\n\t\telse {\n\t\t\tfor(i=0;ia[i]) \n\t\t\t{s=s-3;\n\t\t\tif(s60)&&((m*3-3+cishu[z][m-1])<=60))\n\t\t\t{printf(\"%d\\n\",cishu[z][m-1]);}\n\t\tif (((m*3+cishu[z][m-1])>60)&&((m*3-3+cishu[z][m-1])>60))\n\t\t\t{kum=60-m*3+3;\n\t\t\tprintf(\"%d\\n\",kum);break;} \n\t\t}\n\t}\n\n}\nreturn 0;\n}\t\t"} +{"label": "86", "index": "42991", "code": "int main(){\n\tint N,M,Lose,i,j;\n\t//????N????M?????\n\tint Times[101],Bad[101];\n\t//????Times???Bad??\n\tcin>>N;\n\t//????\n\tfor(i=1;i<=N;i++){\n\t\t//??????\n\t\tLose=0;\n\t\t//?????????\n\t\tcin>>M;\n\t\t//??????\n\t\tfor(j=1;j<=M;j++){\n\t\t\t//??\n\t\t\tcin>>Times[j];\n\t\t\t//??????\n\t\t\tif(Lose==0){\n\t\t\t\t//????????\n\t\t\tif((Times[j]+j*3)>=60){\n\t\t\t\t//???????????????????????\n\t\t\t\tif((Times[j]+3*(j-1)>=60))\n\t\t\t\t\t//???????????\n\t\t\t\t\tBad[i]=60-3*(j-1);\n\t\t\t\t//???????60????????\n\t\t\t\telse//??\n\t\t\t\t\tBad[i]=Times[j];\n\t\t\t\t//????????????\n\t\t\t\tLose=1;\n\t\t\t\t//??????\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(M==0)\n\t\t\t//??????\n\t\t\tBad[i]=60;\n\t\t//???60?\n\t\telse if((Times[M]+3*M)<=60)\n\t\t\t//????????????\n\t\t\tBad[i]=60-3*M;\n\t\t//????????\n\t}\n\tfor(i=1;i<=N;i++){\n\t\t//????\n\t\tcout<60&&sz[m-1]+3*m<=63)\n\t\t\t\tprintf(\"%d\\n\",sz[m-1]);\n\n\t\t\telse {\n\t\t\t\tfor(i=m-2;i>=0;i--){\n\t\t\t\t\tif(sz[i]+3*(i+1)<=60){\n\t\t\t\t\t\tprintf(\"%d\\n\",60-(sz[i]+3*(i+1))+sz[i]);\n\t\t\t\t\t\tbreak;}\n\t\t\t\t\tif(sz[i]+3*(i+1)>60&&sz[i]+3*(i+1)<=63){\n\t\t\t\t\t\tprintf(\"%d\\n\",sz[i]);\n\t\t\t\t\t\tbreak;}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t}\n\t\n\treturn 0;\n}"} +{"label": "86", "index": "42993", "code": "int main()\n{\n\tint n,p,q,i,l,a[50],t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60&&t) {a[i]=q;t=0;}\n\t\t\tif(q+3*l>=60&&t) {a[i]=60-3*l;t=0;}\n\t\t\tif(l==p-1&&q+3*(l+1)<60&&t) {a[i]=60-3*(l+1);t=0;}\n\t\t}\n\t\tif(p==0) a[i]=60;\n\t}\n\tfor(i=0;i=60)\n {\n a[i]=a[i]+60-t;\n t=60;\n }\n else if(t+x<60&&t+x+3>=60)\n {\n t=60;\n a[i]=a[i]+x;\n }\n else if(t+x+3<60)\n {\n t=t+x+3;\n a[i]=a[i]+x;\n }\n\n }\n\n a[i]=a[i]+(60-t);\n }\n\n for(i=0;i=60)\n {total-=3*b;\n \n }\n else if(total<60)\n {total=60-3*m;\n \n }\n else\n {total=60-3*(b-1);\n \n }\n printf(\"%d\\n\",total);\n\t\t\t\t\t}\n }\n\n\treturn 0;\n}\n"} +{"label": "86", "index": "42996", "code": "int main()\n{\n int m,n,i,j,N[60],sum;\n cin>>n;\n for(j=0;j>m;\n if(m==0)\n cout<<60<>N[i];\n i=m-1;\n while(N[i]+3*i>60)\n i--;\n if(N[i]+3*(i+1)>60)\n sum=N[i];\n else\n sum=60-3*(i+1);\n cout<> n;\nfor (int i = 0; i < n; ++i)\n{ cin >> interuptCount;\nlostTime = 0; \nfor (int j = 0; j < interuptCount; ++j)\n{ cin >> currentNum;\nsec = currentNum + lostTime; \nif (sec < maxSeconds)\nif ((maxSeconds - sec) > 3)\nlostTime += 3;\nelse\nlostTime += maxSeconds - sec;\n}\ncout << maxSeconds - lostTime << endl;\n} \n\treturn 0;\n}\n\n\n\n\n"} +{"label": "86", "index": "42998", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int num[n];\n int sum[n];\n int sz[n][1000];\n for(int i=0;i> n;\t\t\t\t\t\t\t\t\t\t //????????\n\tfor (i = 0; i < n; i++)\t\t\t\t\t\t\t //??????????????????\n\t{\n\t\tcin >> m;\n\t\tfor(j = 0; j < m; j++)\n\t\t\tcin >> num[j];\n\t\tfor(j = 0; j < m; j++)\t\t\t\t\t\t //?????????????\n\t\t{\n\t\t\ttime = num[j] + j * 3;\n\t\t\tif ((time >= 57) && (time <= 60))\t\t //????????????\n\t\t\t{\n\t\t\t\tcout << num[j] << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (time > 60)\t\t\t\t\t\t\t //??????????????\n\t\t\t{\n\t\t\t\tnum[j] = num[j] - (time - 60);\n\t\t\t\tcout << num[j] << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j == m)\t\t\t\t\t\t\t\t\t //?????????????????\n\t\t{\n\t\t\tnum[j] = 60 - j * 3;\n\t\t\tcout << num[j] << endl;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43000", "code": "int main()\n{\n\tint a,b,c,d,e,f,h,min,s,t,i;\n\tfor (i=1;i<=100;i++)\n\t{\n\t scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif (a+b+c+d+e+f==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t h=((d+12)-(a+1))*3600;\n\t min=((60-b-1)+e)*60;\n\t s=(60-c)+f;\n\t t=h+min+s;\n\t\t\tprintf(\"%d\\n\",t);\n\t\t}\n\t}\n}\n"} +{"label": "87", "index": "43001", "code": "int main(){\n\tint x1,f1,m1,x2,f2,m2,i;\n\tfor(i=0;i<100;i++){\n\tscanf(\"%d%d%d%d%d%d\",&x1,&f1,&m1,&x2,&f2,&m2);\n\tx2=x2+12;\n\tif(x1==0 && x2==12)\n\t\tbreak;\n\tprintf(\"%d\\n\",3600*(x2-x1)+60*(f2-f1)+(m2-m1));\n\t\n\t}\n\t\n\t\t\n\t\n\treturn 0;\n}"} +{"label": "87", "index": "43002", "code": "int main(){\n\tint a,s,d,f,g,h,j;\n\tint i=0;\n\twhile(1){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&s,&d,&f,&g,&h);\n\t\tif(a==0&&s==0&&d==0&&f==0&&g==0&&h==0){\n\t\t\treturn 0;\n\t\t}else{\n\t\t\tj=(f-a+12)*3600+(g-s)*60+(h-d);\n\t\t\tprintf(\"%d\\n\",j);\n\t\t}\n\t}\ti++;\n\n\n\treturn 0;\n}"} +{"label": "87", "index": "43003", "code": "int main ()\n{\n int a[6],b[6],i,j,sum;\n for (j=0;;j++)\n { \n for (i=0;i<6;i++)\n {\n scanf (\"%d\",&a[i]);\n }\n if ((a[0]==0)&&(a[1]==0)&&(a[2]==0)&&(a[3]==0)&&(a[4]==0)&&(a[5]==0) )\n { break; }\n else \n {\n sum=(a[3]+12-a[0])*60*60+(a[4]-a[1])*60+(a[5]-a[2]);\n printf (\"%d\\n\",sum);\n }\n }\n return 0;\n}\n"} +{"label": "87", "index": "43004", "code": "int main()\n{\n\tint a,b,c,d,e,f,g,h,i,j,k;\n\tfor(k=0;k<100;k++){\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)\n\t{\n\t\treturn 0;\n\t}\n\t\td=d+12;\n\tg=(d-a)*3600;\n\th=(e-b)*60;\n\ti=(f-c)*1;\n\tj=g+h+i;\n\tprintf(\"%d\\n\",j);\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "87", "index": "43005", "code": "int main(){\n\tint m=0,a[999],b[999],c[999],d[999],e[999],f[999],i,g[999];\n\tfor(i=1;1;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]==0){\n\t\t\tbreak;\n\t\t}\n\t\tg[i]=(d[i]+12)*3600+e[i]*60+f[i]-a[i]*3600-b[i]*60-c[i];\n\t\tm++;\n\t}\n\tfor(i=1;i<=m;i++){\n\t\tprintf(\"%d\\n\",g[i]);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43006", "code": "int main()\n{\nint a,b,c,d,e,f,s;\n\n\n\n\tscanf(\"%d\"\"%d\"\"%d\"\"%d\"\"%d\"\"%d\",&a,&b,&c,&d,&e,&f);\nwhile (a!=0||b!=0||c!=0||d!=0||e!=0||f!=0)\n\t{\n\td=d+12;\n\ts=(d-(a+1))*3600+(60-b+e-1)*60+(60-c+f);\n\tprintf (\"%d\\n\",s);\n\ts=0;\n\tscanf(\"%d\"\"%d\"\"%d\"\"%d\"\"%d\"\"%d\",&a,&b,&c,&d,&e,&f);\n\t}\n\n\n\n\n\n\nreturn 0;\n}"} +{"label": "87", "index": "43007", "code": "int main()\n{\n\tint a,b,c,d,e,f,h,m,s,sum;\n\tdo{\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\tif(a+b+c+d+e+f!=0){\n\th=d+12-a;\n\tm=e-b;\n\ts=f-c;\n\tsum=(h*60*60)+(m*60)+s;\n\tprintf(\"%d\\n\",sum);\n\t}\n\tif(a+b+c+d+e+f==0){\n\t\tcontinue;\n\t}\n\t}\n\twhile(a+b+c+d+e+f!=0);\n\treturn 0;\n}"} +{"label": "87", "index": "43008", "code": "int main(){\n int a,b,c,d,e,f,n=1000,i,t;\n for(i=0;i=c[p])\n {\n s[p]+=f[p]-c[p];\n }\n else\n {\n s[p]+=f[p]+60-c[p];\n e[p]--;\n }\n if(e[p]>=b[p])\n {\n s[p]+=(e[p]-b[p])*60;\n }\n else\n {\n s[p]+=(e[p]+60-b[p])*60;\n d[p]--;\n }\n s[p]+=(d[p]+12-a[p])*3600;\n }\n for(p=0;p0;)\n {\n i=0;s=0;\n for(j=0;j<6;j++)\n {\n scanf(\"%d\",&a[j]);\n i=i+a[j];\n }\n if(i==0) break;\n s=(a[3]-a[0]+12)*3600;\n if(a[4]>a[1]) s=s+(a[4]-a[1])*60;\n else s=s-60*(a[1]-a[4]);\n if(a[5]>a[2]) s=s+a[5]-a[2];\n else s=s-(a[2]-a[5]);\n printf(\"%d\\n\",s);\n }\n return 0;\n}"} +{"label": "87", "index": "43023", "code": "int main(){\n\n int a,b,c,d,e,f,sum;\n int s,m,h;\n int i=0;\n \n for(i=0;i>=0;i++){\n \n\t scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n if(a==0){\n\t\t break;\n\t }\n s=0-c;\n\n\t if(s<0){\n\t\t s+=60;\n\t\t b++;\n\t }\n\t m=0-b;\n\t if(m<0){\n\t\t m+=60;\n\t\t a++;\n\t }\n\t h=12-a;\n\t h+=d;\n\t m+=e;\n\t s+=f;\n\n\t sum=h*3600+m*60+s;\n\n\t printf(\"%d\\n\",sum);\n\t \n\t }\n\n\n\treturn 0;\n}"} +{"label": "87", "index": "43024", "code": "int main(){\n int a=1,b=1,c=1,d=1,e=1,f=1,shijian=0;\n for( ; ; ){\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n if((a==0)&&(b==0)&&(c==0)&&(d==0)&&(e==0)&&(f==0)){\n break;\n }\n d+=12;\n shijian=(f-c)+(e-b)*60+(d-a)*60*60;\n printf(\"%d\\n\",shijian);\n }\n return 0;\n}"} +{"label": "87", "index": "43025", "code": "int main()\n{\nint a,b,c,d,A,B,C,D,E,i;\nfor(i=1;i<=100;i++)\n{\nscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&A,&B,&C);\nif(a==0&&b==0&&c==0&&A==0&&B==0&&C==0)\n{break;}\nD=a*3600+b*60+c;\nE=(A+12)*3600+B*60+C;\nprintf(\"%d\\n\",E-D);\n}\nreturn 0;\n}\n"} +{"label": "87", "index": "43026", "code": "int main()\n{\n\tint a,b,c,d,e,f;\n\tint s=0;\n\twhile(1)\n\t{\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\tif(a==0 &&b==0 &&c==0 &&d==0 &&e==0 &&f==0)\n\t{\n\t\tbreak;\n\t}\n\td=d+12;\n\ts=s+(60-c);\n b=b+1;\n\tif(b==60)\n\t{\n\t\ta=a+1;\n\t}\n\telse\n\t{\n\t\ts=s+(60-b)*60;\n a=a+1;\n\t}\n\ts=s+(d-a)*3600+e*60+f;\n\tprintf(\"%d\\n\",s);\n\ts=0;\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43027", "code": "int main(){\n\tstruct sk{\n int a,b,c,d,e,f;\n\t\t }sk[100];\n\tint i,n;\n\tint time[100];\n\tfor(i=0;;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&sk[i].a,&sk[i].b,&sk[i].c,&sk[i].d,&sk[i].e,&sk[i].f);\n\t\tif((sk[i].a==0)&&(sk[i].b==0)&&(sk[i].c==0)&&(sk[i].d==0)&&(sk[i].e==0)&&(sk[i].f==0)){\n\t\t\tn=i;\n\t\t break;\n\t\t}\n\t}\n\tfor(i=0;i=0 && p[j].a<=11 && p[j].d>=0 && p[j].d<=11 &&p[j].c>=0 && p[j].c<=59 && p[j].b>=0 && p[j].b<=59&& p[j].e>=0 && p[j].e<=59 && p[j].f>=0 && p[j].f<=59 ){\n p[j].d=12+p[j].d;\n m=(p[j].d-p[j].a)*3600;\n s[j]=m;\n if(p[j].e>=p[j].b){\n n=(p[j].e-p[j].b)*60;\n s[j]=s[j]+n;\n }\n if(p[j].e=p[j].c){\n r=p[j].f-p[j].c;\n s[j]=s[j]+r;\n }\n if(p[j].f=a[i][2]){\n if(a[i][4]>=a[i][1]){\n x=3600*(12+a[i][3]-a[i][0])+60*(a[i][4]-a[i][1])+(a[i][5]-a[i][2]);\n }else{\n x=3600*(11+a[i][3]-a[i][0])+60*(60+a[i][4]-a[i][1])+(a[i][5]-a[i][2]);\n }\n }else{\n if(a[i][4]>a[i][1]){\n x=3600*(12+a[i][3]-a[i][0])+60*(a[i][4]-1-a[i][1])+(60+a[i][5]-a[i][2]);\n }else if(a[i][4]<=a[i][1]){\n x=3600*(11+a[i][3]-a[i][0])+60*(59+a[i][4]-a[i][1])+(60+a[i][5]-a[i][2]);\n }\n } \n printf(\"%d\\n\",x);\n }else{\n break;\n }\n }\n return 0; \n}\n"} +{"label": "87", "index": "43049", "code": "\nmain()\n{\n int a,b,c,d,e,f,sum,second;\n int h,m,s;\n sum=1;\n \n while (sum!=0)\n {\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n sum=a+b+c+d+e+f;\n \n if (f>a>>b>>c>>d>>e>>f;\n int s;\n s=(d+12-a)*3600;\n if(b>=e){\n s-=(b-e)*60;\n }else{\n s+=(e-b)*60;\n }\n if(c>=f){\n s-=c-f;\n }else{\n s+=f-c;\n }\n if(a==0&&b==0&&c==0&d==0&&e==0&&f==0)\n break;\n else\n cout<=c[i]){\n\t\tp[i]=f[i]-c[i];\n if(e[i]>=b[i]){\n\t\t q[i]=e[i]-b[i];\n\t\t\tv[i]=d[i]+12-a[i];\n\t\t}else{\n\t\t q[i]=60-b[i]+e[i];\n\t\t\tv[i]=d[i]+12-a[i]-1;\n\t\t}\n\t}else{\n\t\tp[i]=60-c[i]+f[i];\n\t\tif((e[i]-1)>=b[i]){\n\t\t q[i]=e[i]-b[i]-1;\n\t\t\tv[i]=d[i]+12-a[i];\n\t\t}else{\n\t\t q[i]=60-b[i]+e[i]-1;\t\n\t\t\tv[i]=d[i]+12-a[i]-1;\n\t\t}\n\t}\n\ts[i]=v[i]*60*60+q[i]*60+p[i];\n\tprintf(\"%d\\n\",s[i]);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43058", "code": "int main()\n{\n\tint a,b,c,d,e,f,x=0,i;\n\tfor(i=0;i<100;i++){\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n x=0;\n\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\tbreak;\n\t}else{\n\tif(f>=c){\n\t\tx+=f-c;\n\t}else if(f=b){\n\t\tx+=60*(e-b);\n\t}else{\n\t\tx+=60*(60+e-b);\n\t\td--;\n\t}d=d+12;\n\t\tx+=3600*(d-a);\n\t\n\tprintf(\"%d\\n\",x);\n\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43059", "code": "void qkg(char *a);\nvoid qdykg(char *a);\nvoid dbx(char *a);\nint main(){\n\tint a,b,c,d,e,f;\n\tint sw;\n\tint xw;\n\twhile(1){\n\t\t\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0){\n\t\t\tbreak;\n\t\t}\n\t\tsw=(12-a)*3600-b*60-c;\n\t\txw=d*3600+e*60+f;\n\t\tint ans=sw+xw;\n\t\tprintf(\"%d\\n\",ans);\n\t}\n\treturn 0;\n}\nvoid qkg(char *a){\n\tint len;\n\tlen=strlen(a);\n\tint i,j=0;\n\tchar b[100];\n\tfor(i=0;i='A'&&a[i]<='Z'){\n\t\t\ta[i]+='a'-'A';\n\t\t}\n\t}\n}"} +{"label": "87", "index": "43060", "code": "int main(){\n int h1,m1,s1,h2,m2,s2;\n scanf(\"%d%d%d%d%d%d\",&h1,&m1,&s1,&h2,&m2,&s2);\n int s;\n\twhile(h1!=0||m1!=0||s1!=0||h2!=0||m2!=0||s2!=0){\n\t\th2=h2+12;\n\t\ts=(h2-h1)*3600-m1*60-s1+m2*60+s2;\n\t\tprintf(\"%d\\n\",s);\n\t\tscanf(\"%d%d%d%d%d%d\",&h1,&m1,&s1,&h2,&m2,&s2);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43061", "code": "int main(){\n\tint a[1000],b[1000],c[1000],d[1000],e[1000],f[1000],i,k,s[1000]={0};\n\tfor(i=0;;i++)\n\t{\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif((a[i]==0)&&(b[i]==0)&&(c[i]==0)&&(d[i]==0)&&(e[i]==0)&&(f[i]==0))\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(k=0;k0){\nscanf (\"%d %d %d %d %d %d\", &a, &b, &c, &d, &e, &f);\nif (a>0){\ns=3600*(12-a)-60*b-c+3600*d+60*e+f;\nprintf (\"%d\\n\", s);}}\nreturn 0;}\n"} +{"label": "87", "index": "43063", "code": "int main()\n{\n\tstruct ti{\n\t\tint h1,f1,m1,h2,f2,m2;\n\t}a;\n\tint i,j,k,e,sum;\n\tscanf(\"%d%d%d%d%d%d\",&a.h1,&a.f1,&a.m1,&a.h2,&a.f2,&a.m2);\n\twhile(1)\n\t{\n\t\tif(a.h1 == 0 && a.f1 == 0 && a.m1 == 0 && a.h2 == 0 && a.f2 == 0 && a.m2 == 0 ) break;\n\t\tsum=(a.h2+12-a.h1)*3600+(a.f2-a.f1)*60+a.m2-a.m1;\n\t\tprintf(\"%d\\n\",sum);\n\t \tscanf(\"%d%d%d%d%d%d\",&a.h1,&a.f1,&a.m1,&a.h2,&a.f2,&a.m2);\n\t}\nreturn 0;\n}\n"} +{"label": "87", "index": "43064", "code": "int main()\n{\n\t\n\tint l,m,n,o,i=0;\n\tfor(i;i<=500;i++)\n\t{\n\t\tint a,b,c,d,e,f;\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(1<=a&&a<=11&&1<=d&&d<=11&&0<=b&&b<=59&&0<=c&&c<=59&&0<=e&&e<=59&&f>=0&&f<=59)\n\t\t{\n\t\t\tl=3600*a+60*b+c;\n\t\t\tm=3600*(d+12)+60*e+f;\n\t\t\tn=m-l;\n\t\t\tprintf(\"%d\\n\",n);\t\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}\n}\n"} +{"label": "87", "index": "43065", "code": "int main(){\nint i,t,a[100],b[100],c[100],d[100],e[100],f[100],sum[100];\n\nfor(i=0;i<100;i++){\nscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\nif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\tt=i;\n\tbreak;\n}\n}\n\n\nfor(i=0;i=1)&&(sz[i][0]<=11)&&(sz[i][3]>=1)&&(sz[i][3]<=11)&&(sz[i][1]>=0)&&(sz[i][1]<=59)&&(sz[i][2]>=0)&&(sz[i][2]<=59)&&(sz[i][4]>=0)&&(sz[i][4]<=59)&&(sz[i][5]>=0)&&(sz[i][5]<=59))\n\t\t{\n\t\t\tb=sz[i][0]*3600+sz[i][1]*60+sz[i][2];\n\t\t\tc=(sz[i][3]+12)*3600+(sz[i][4])*60+sz[i][5];\n\t\t\ts[i]=c-b;\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(i=0;ic[i])\n\t\t\t{\n\t\t e[i]=e[i]-1;\n\t\t f[i]=f[i]+60;\n\t\t\t}\n\t\n\t if(b[i]=0;i++)\n\t{\n\t\tscanf(\"%d %d %d %d %d %d\", &a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm=(d+12)*3600+e*60+f-a*3600-b*60-c;\n\t\t\tprintf(\"%d\\n\",m);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43084", "code": "int main(){\n\tint i;\n\tint a[50],b[50],c[50],d[50],e[50],f[50];\n\tint t;\n\tfor(i=0;;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&e[i]==0&&d[i]==0&&f[i]==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;;i++){\n if(a[i]==0&&b[i]==0&&c[i]==0&&e[i]==0&&f[i]==0){\n\t\t\tbreak;\n\t\t}\n\n\t\tt=((d[i]+12)*3600+e[i]*60+f[i])-(a[i]*3600+b[i]*60+c[i]);\n\n printf(\"%d\\n\",t);\n\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "87", "index": "43085", "code": "int main()\n{\n\tint a,b,c,d,e,f,g[100];\n\tint i=0;\n\twhile(i>=0){\n\t scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t scanf(\"\\n\");\n\t g[i]=3600*(11-a+d)+60*(59-b+e)+60-c+f;\n\t if(!(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)){\n\t printf(\"%d\\n\",g[i]);\n\t i++;\n\t }\n\t else {\n\t\t break;\n\t }\n\t}\n\t return 0;\n}"} +{"label": "87", "index": "43086", "code": "int main()\n{\n\tint a,b,c,d,e,f;\n\tint i,m,n,s;\n\tfor(i=1;i++;){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t d=d+12;\n m=c+b*60+a*3600;\n\t n=f+e*60+d*3600;\n\t s=n-m;\n\t\t printf(\"%d\\n\",s);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43087", "code": "int main(){\n\tint a,b,c,d,e,f;\n\tint i,l=0;\n\tfor(i=0;i<1000;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t d=d+12;\n\t\t if(f=c){\n\t\t\t l=f-c;\n\t\t\t}\n\t\t if(e=b){\n\t\t\t l+=(e-b)*60;\n\t\t\t}\n\t\t l+=(d-a)*3600;\n\t\t printf(\"%d\\n\",l);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43088", "code": "int main(){\n int a,b,c,x,y,z,sz[10000],m=0,i;\nscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&x,&y,&z);\nwhile(a!=0||b!=0||c!=0&&x!=0||y!=0||z!=0){\nsz[m]=3600*(x+12-a)+60*(y-b)+(z-c);\nm++;\nscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&x,&y,&z);\n }\nfor(i=0;i=c)\n\t\t\tsum+=f-c;\n\t\telse\n\t\t{\n\t\t\tsum+=f+60-c;\n\t\t\te-=1;\n\t\t}\n\t\tif(e>=b)\n\t\t\tsum+=60*(e-b);\n\t\telse\n\t\t{\n\t\t\tsum+=60*(e+60-b);\n\t\t\td-=1;\n\t\t}\n\t\tsum+=3600*(d-a);\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\n\n\t\t\n\t\treturn 0;\n\n\t}\n\n"} +{"label": "87", "index": "43098", "code": "int main()\n{\n\tint i,a,b,c,d,e,f,n=0;\n\tfor(i=0; ;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}\n\t\tn=((d+11-a)*3600+e*60+f+3600-b*60-c);\n printf(\"%d\\n\",n);\n\t}\n\t\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43099", "code": "int main(){\n\tint n;\n\tint a,b,c,d,e,f;\n\tfor(n=0;n<100;n++){\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\treturn 0;\n\t}else{\n\td+=12;\n\tint s;\n\ts=(d-a)*60*60+(e-b)*60+(f-c);\n\tprintf(\"%d\\n\",s);\n\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "87", "index": "43100", "code": "int main()\n{\n\tint s,a,b,c,d,e,f;\n\twhile(1)\n\t{\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)\n\t\t{break;}\n\t\ts=f+e*60+(3600-b*60-c)+(11-a)*3600+3600*d;\n\t\tprintf(\"%d\\n\",s);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43101", "code": "int main()\n{\n\tint a[100],b[100],c[100],d[100],e[100],f[100],i,t[100],n=0;\n\tfor(i=0;i<100;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]+b[i]+c[i]+d[i]+e[i]+f[i]!=0){\n\t\t\tt[i]=(12-a[i]+d[i])*3600+(e[i]-b[i])*60+(f[i]-c[i]);\n\t\t\tn++;\n\t\t}\n\t\telse{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;i0;i++)\n\t{\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\tif(a==0&&b==0&&c==0&&e==0&&d==0&&f==0)\n\t{\n\t\tbreak;\n\t}\n\telse\n\t{\n\tmiao=60-c;\n\tfen=60-(b+1);\n\tshi=d+12-(a+1);\n\ts=shi*60*60+fen*60+miao+e*60+f;\n\tprintf(\"%d\\n\",s);\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43104", "code": "int main(){\n\tint i,a,b,c,d,e,f,sum;\n\tsum=0;\n\tfor(i=0;i<100;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}\n\t\telse{\n\t\tsum=(60-c)+(60-b-1)*60+(12-a-1)*60*60+\n\t\t\tf+e*60+d*60*60;\n\t\tprintf(\"%d\\n\",sum);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43105", "code": "int main(){\n int i;\n for(i=0;i<100000;i++){\n int a,b,c,d,e,f,g;\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n if(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)break;\n g=3600*(12+d-a)+60*(e-b)+(f-c);\n printf(\"%d\\n\",g);\n }\n scanf(\"%d\",&i);\n return 0;\n}\n"} +{"label": "87", "index": "43106", "code": "int main() {\n\tint a,b,c,d,e,f,s,i;\n\tfor(i=0;;i++) {\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif((a==0&&b==0&&c==0&&d==0&&e==0&&f==0)==0) {\n\t\t\n\t s=3600*d+60*e+f+12*3600-3600*a-60*b-c;\n\t printf(\"%d\\n\",s);\n\t\t}\n\t\tif((a==0&&b==0&&c==0&&d==0&&e==0&&f==0)==1) {\n\t\t\tbreak;\n\t\t}\n\t}\n\t \n\treturn 0;\n}"} +{"label": "87", "index": "43107", "code": "int main(){\n\tint i;\nint a,b,c,d,e,f,m,s;\nfor(i=0;i<100;i++){\t\nscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\nif(!(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)){\nm=(12-a)*60*60;\ns=b*60+c;\nm=m-s;\nm=m+d*60*60+e*60+f;\nprintf(\"%d\\n\",m);\n}else{\nbreak;\n}\n}\nreturn 0;\n}"} +{"label": "87", "index": "43108", "code": "int main(){\n\tint a[6][200];\n\tint i,j;\n\tint m,n,h;\n\tfor(j=0;j<200;j++){\n\t\tm=0;\n\t\tn=0;\n\t\th=0;\n\t for(i=0;i<6;i++){\n\t\t scanf(\"%d\",&a[i][j]);\n\t\t}\n\t\tif(a[0][j]==0&&a[1][j]==0&&a[2][j]==0&&a[3][j]==0&&a[4][j]==0&&a[5][j]==0){\n\t\t\tbreak;\n\t\t}else{\n\t m=a[0][j]*3600+a[1][j]*60+a[2][j];\n\t n=(a[3][j]+12)*3600+a[4][j]*60+a[5][j];\n\t h=n-m;\n\t printf(\"%d\\n\",h);\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43109", "code": "int main(){\n\tint a[10000],b[10000],c[10000],d[10000],e[10000],f[10000];\n\tint s,h,m,z,j=0;\n\tint n=10000;\n\tfor(int i=0;i=0;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&a1,&b1,&c1,&d1,&e1,&f1);\n\t\tif(a1==0){\n\t\t\tbreak;\n\t\t}\n\t\telse{\n\t\t\ta[i]=a1;\n\t\t\tb[i]=b1;\n\t\t\tc[i]=c1;\n\t\t\td[i]=d1;\n\t\t\te[i]=e1;\n\t\t\tf[i]=f1;\n\t\t\tnum++;\n\t\t}\n\t}\n\tfor(i=0;i0;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}\n\t\telse{\n\t\td=d+12;\n\t\tif(f>=c){\n\t\t\ts=f-c;\n\t\t}\n\t\telse{\n\t\t\ts=60+f-c;\n\t\t\te=e-1;\n\t\t}\n\t\tif(e>=b){\n\t\t\tm=e-b;\n\t\t}\n\t\telse{\n\t\t\tm=60+e-b;\n\t\t\td=d-1;\n\t\t}\n\t\th=d-a;\n\t\tsum=3600*h+(60*m)+s;\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43134", "code": "int main () {\n\tint a,b,c,d,e,f,s;\n\twhile(1){\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\tbreak;\n\t}\n\telse{\n\t\t\n\t\t\td+=12;\n\t\t\ts=(d-a)*3600+(e-b)*60+f-c;\n\t\t\tprintf(\"%d\\n\",s);\n\t}\n\t}\n\t\n\n\treturn 0;\n}\n"} +{"label": "87", "index": "43135", "code": "\n\nint main(int argc, char* argv[])\n{\n\tfor(int i=0;i<100;i++)\n\t{\n\t\tint sz[10];\n\t\tint sum;\n\t\tfor(int j=0;j<6;j++)\n\t\t{\n\t\t\tscanf(\"%d\",&(sz[j]));\n\t\t}\n\t\tif(sz[0]==0&&sz[1]==0&&sz[2]==0&&sz[3]==0&&sz[4]==0&&sz[5]==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsum=(11-sz[0]+sz[3])*3600+(59-sz[1]+sz[4])*60+(60-sz[2]+sz[5]);\n\t\t\tprintf(\"%d\\n\",sum);\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43136", "code": "int main(){\n\tint a,b,c,d,e,f,g;\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\twhile(a+b+c+d+e+f!=0){\n\t\tg=3600*(d-a+11)+60*(e+59-b)+f+60-c;\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tprintf(\"%d\\n\",g);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43137", "code": "int main(){\n\tint i,j,a[100],b[100],c[100],d[100],e[100],f[100],s[100];\n\tfor(i=1;i;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]!=0)\n\t\tscanf(\" %d %d %d %d %d\",&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\telse{\n\t\tscanf(\" %d %d %d %d %d\",&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tbreak;\n\t\t}\n\t}\n\tfor(j=1;j=0){\n\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){k=0;}else{k=1;}\n\n\tif(k==1){\ti++;\nscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\nn++;}\n\tif(k==0){break;}\n}\nfor(i=0;ib){\n\t\t\tif(f>=c){\n\t\t\t\th=d-a;\n\t\t\t m=e-b;\n\t\t\t s=f-c;\n\t\t\t}\n\t\t\telse{\n\t\t\t\th=d-a;\n\t\t\t\tm=e-b-1;\n\t\t\t\ts=f+60-c;\n\t\t\t}\n\t\t}\n\t\telse if(e==b){\n\t\t\tif(f>=c){\n\t\t\t\th=d-a;\n\t\t\t m=e-b;\n\t\t\t s=f-c;\n\t\t\t}\n\t\t\telse{\n\t\t\t\th=d-a-1;\n\t\t\t\tm=59;\n\t\t\t\ts=f+60-c;\n\t\t\t}\n\t\t}\n\t\telse if(e=c){\n\t\t\t\th=d-a-1;\n\t\t\t m=e-b+60;\n\t\t\t s=f-c;\n\t\t\t}\n\t\t\telse{\n\t\t\t\th=d-a-1;\n\t\t\t\tm=e-b+60-1;\n\t\t\t\ts=f+60-c;\n\t\t\t}\n\n\t\t}\n\t\tsum=h*3600+m*60+s;\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43145", "code": "int main(){\n\tint a,b,c,d,e,f,t;\n\twhile(1){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\treturn 0;\n\t\t}else{\n\t\t\tt=(d-a+12)*3600+e*60+f-b*60-c;\n\t\t\tprintf(\"%d\\n\",t);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43146", "code": "int main(){\n int n[10];\n int i, count = 0;\n for (i = 0; i < 6; ++ i)\n {\n scanf(\"%d\", &n[i]);\n count += n[i];\n }\n while (count > 0)\n {\n n[3]+= 12;\n \n if (n[5] < n[2]){\n n[5] += 60;\n -- n[4];\n }\n if (n[4] < n[1]){\n n[4] += 60;\n -- n[3];\n }\n long long ans = (n[5] - n[2]) + 60 * (n[4] - n[1]) + 3600 * (n[3] -n[0]);\n printf (\"%lld\\n\", ans);\n count = 0;\n for (i = 0; i < 6; ++ i)\n {\n scanf(\"%d\", &n[i]);\n count += n[i];\n }\n }\n return 0;\n}\n"} +{"label": "87", "index": "43147", "code": "int main(){\n\tint a[6][1000],b[1000],c,d,h;\n\tfor(c=0;c<1000;c++){\n\t\tfor(h=0;h<6;h++){\n\t\tscanf(\"%d\",&a[h][c]);\n\t\t}\n\t\tif(a[0][c]==0&&a[1][c]==0&&a[2][c]==0&&a[3][c]==0&&a[4][c]==0&&a[5][c]==0){\n\t\t\tbreak;}\n\t}\n\t\tfor(d=0;dc){\n\t\t\tsum+=f-c;\n\t\t\tif(e>b){\n\t\t\t\tsum+=60*(e-b)+3600*(d-a);\n\t\t\t}else{\n\t\t\t\tsum+=60*(e+60-b)+3600*(d-a-1);\n\t\t\t}\n\t\t}else{\n\t\t\tsum+=f+60-c;\n\t\t\te--;\n\t\t\tif(e>b){\n\t\t\t\tsum+=60*(e-b)+3600*(d-a);\n\t\t\t}else{\n\t\t\t\tsum+=60*(e+60-b)+3600*(d-a-1);\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tj=a+b+c+d+e+f;\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43149", "code": "int main(){\nint a,b,c,d,e,f,s,i;\nfor(i=0;i<100000;i++){\ns=0;\nscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\nif(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\ns=s+f+e*60+60-c+60*(60-b-1);\n{s=s+(d*60*60)+((11-a)*60*60);}\nprintf(\"%d\\n\",s);\n}\nelse{break;}}\nreturn 0;\n}"} +{"label": "87", "index": "43150", "code": "int main(){\n\tint a[6];\n\tint i,j,s;\n\tfor(j=0;j<100;j++){\n\t for(i=0;i<6;i++){\n\t scanf(\"%d\",&a[i]);\n\t }\n\t if(a[0]==0&&a[1]==0){\n\t\tbreak;\n\t }\n\t if(a[3]<12){\n\t\t a[3]+=12;\n\t }\n\t s=a[3]*60*60+a[4]*60+a[5]-a[0]*60*60-a[1]*60-a[2];\n\t printf(\"%d\\n\",s);\n\t\n\t}\n\n\t\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43151", "code": "int main(){\n int a,b,c,d,e,f,i,r=0;\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n //printf(\"%d%d%d%d%d%d\",a,b,c,d,e,f);\n while(a!=0){\n r=0;\n for(i=a+1;i=b&&f>=c){\n\t\t\t\th=d+12-a;\n\t\t\t\tm=e-b;\n\t\t\t\ts=f-c;\n\t\t\t}\n\t\t\tif(e=c){\n\t\t\t\th=d+11-a;\n\t\t\t\tm=e-b+60;\n\t\t\t\ts=f-c;\n\t\t\t}\n\t\t\tif(e=b&&f-1;i++){\nscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\nif(a[i]==0){\n\tbreak;\n}\n}\n\nfor(k=0;k=b){\n\te=(e-b)*60;}\nelse if(e=a[2])\n\t\t\t{\n\t\t\t\tb[2]=a[5]-a[2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tb[2]=a[5]-a[2]+60;\n\t\t\t\ta[4]--;\n\t\t\t}\n\t\t\tif(a[4]>=a[1])\n\t\t\t{\n\t\t\t\tb[1]=a[4]-a[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tb[1]=a[4]-a[1]+60;\n\t\t\t a[3]--;\n\t\t\t}\n\t\t\tb[0]=a[3]-a[0]+12;\n\t\t\tprintf(\"%d\\n\",b[0]*3600+b[1]*60+b[2]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43199", "code": "int main()\n{\n\tint a[6],i,j,k,t;\n\tlong sum;\n\twhile(t<1000)\n\t{\n\t\tsum=0;\n\t\tfor(i=0;i<6;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i]);\n\t\t}\n\t\tif(a[0]==0&&a[1]==0&&a[2]==0&&a[3]==0&&a[4]==0&&a[5]==0)break;\n\t\ta[3]=a[3]+12;\n\t\tsum=(a[3]-a[0])*60*60+(a[4]-a[1])*60+(a[5]-a[2]);\n\t\tprintf(\"%ld\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43200", "code": "int main(){\n\tint a[100],b[100],c[100],d[100],e[100],f[100],n[100],t=0,i;\n\tfor(i=0;i<100;i++){\n\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\tt++;\n\tif(a[i]==0)\n\t\tbreak;\n\t}\n\tfor(i=0;i>a>>b>>c>>d>>e>>f&&(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0))\n\t{\n\t\tsum=(d+12-a)*3600+(e-b)*60+f-c;\n\t\tcout<=1)\n\t{\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0)\n\t\t{\n\t\t\ts=(d+12)*60*60+e*60+f-a*60*60-b*60-c;\n\t\t\tprintf(\"%d\\n\",s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n \n\t\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43212", "code": "int main(){\n\tint a,b,c,d,e,f,t=0,m=0,n=0;\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\twhile(a!=0){\n\t\tm=a*3600+b*60+c;\n\t\tn=(d+12)*3600+e*60+f;\n\t\tt=n-m;\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tprintf(\"%d\\n\",t);\n\t\t\n\t}\n\n\n\t\n\treturn 0;\n}\n\n\n"} +{"label": "87", "index": "43213", "code": "int main(){\nint a,b,c,d,e,f,sum;\nint i;\nfor(i=0;i<100;i++){\nscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\nif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){break;}\nd+=12;\nsum=0;\nsum+=(d-a)*60*60;\nif(e>=b){\nsum+=(e-b)*60;}\nelse{sum-=(b-e)*60;}\nif(f>=c){sum+=(f-c);}\nelse{sum-=(c-f);}\nprintf(\"%d\\n\",sum);}\nreturn 0;\n}"} +{"label": "87", "index": "43214", "code": "int main()\n{\n \tint a,b,c,d,e,f,i,h,s,r;\n \tfor(i=1;1;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&f==0&&e==0){\n\t\t\tbreak;\n\t\t\t}\n\t\telse{\n\t\t\th=(d+12-a)*3600;\n\t\t\ts=(60*b+c)-(60*e+f);\n\t\t\tr=h-s;\n\t\t\tprintf(\"%d\\n\",r);\n\t\t\t}\n\t\t}\n \t\n return 0;\n}"} +{"label": "87", "index": "43215", "code": "\nint main()\n{\n\tint a[100], b[100], c[100], d[100], e[100], f[100];\n\tint i, n;\n\n\t\n\tfor(i = 0; 1; i++)\n\t{\n\t\t\n\t\tscanf(\"%d%d%d%d%d%d\", &a[i], &b[i], &c[i], &d[i], &e[i], &f[i]);\n\t\tif(a[i]==0 && b[i]==0 && c[i]==0 && d[i]==0 && e[i]==0 && f[i]==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tn = (12-a[i])*3600 - (b[i]*60+c[i]) + d[i]*3600 + (e[i]*60+f[i]);\n\t\t\tprintf(\"%d\\n\", n);\n\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n\treturn 0;\n}"} +{"label": "87", "index": "43216", "code": "int main(){\n\t int a,b,c,d,e,f,m;\n int x=0;\nwhile(!((a==0)&&(b==0)&&(c==0)&&(d==0)&&(e==0)&&(f==0))){\nx++;\n\t scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\nif((a==0)&&(b==0)&&(c==0)&&(d==0)&&(e==0)&&(f==0)){\n\treturn 0;\n}\n\n m=(12-a+d)*3600+e*60+f-b*60-c;\n\n if(x==1){\n\t printf(\"%d\",m);\n}else{\nprintf(\"\\n\");\nprintf(\"%d\",m);\n}\t \n\n}\n\treturn 0;\n}"} +{"label": "87", "index": "43217", "code": "int main()\n{\n\tint i,a,b,c,d,e,f,min=0,s=0;\n\tfor(i=0;i<10000;i++)\n\t{\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0 && b==0 && c==0 && d==0 && e==0 && f==0)\n\t\t\tbreak;\n\t\tmin=(12+d-a-1)*60+(60-b+e);\n\t\ts=60*min+f-c;\n\t\tprintf(\"%d\\n\",s);\n\t}\n\t\t\n\t\n\treturn 0;\n}"} +{"label": "87", "index": "43218", "code": "int main(){\nint a,b,c,d,e,f,sum=0,i;\nfor(i=0;i<1000;i++){\nscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\nif(a!=0){\nd=d+12;\nsum=(d-a)*3600+(e-b)*60+(f-c);\nprintf(\"%d\\n\",sum);\n}sum=0;\n}\n\treturn 0;\n}"} +{"label": "87", "index": "43219", "code": "int main(){\n\tint a,b,c,d,e,f,zs;\n\twhile(a!=0){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0){return 0;}\n\t\td+=12;\n\t\tif((e>=b)&&(f>=c)){\n\t\t\tzs=(d-a)*3600+(e-b)*60+(f-c);\n\t\t}else if((e>=b)&&(f=c)){\n\t\t\tzs=(d-a-1)*3600+(e-b+60)*60+(f-c);\n\t\t}else if((e=c) x=x+f-c;\nelse{\nx=x+60+f-c;\ne--;\n}\nif(e>=b) x=x+(e-b)*60;\nelse{\nx=x+(60+e-b)*60;\nd--;\n}\nx=x+(d-a+12)*3600;\nprintf(\"%d\\n\",x);\nx=0;\n}\nreturn 0;\n}\n"} +{"label": "87", "index": "43229", "code": "int main (){\n\tint s[100][6],ds[100];\n\tint i,j,k=0;\n\tfor(j=0;j<6;j++){\n\t\tscanf(\"%d\",&s[0][j]);\n\t}\n\tfor(i=0;i>=0;i++){\n\t\tif(s[i][0]!=0){\n\t\t\tfor(j=0;j<6;j++){\n\t\t\t\tscanf(\"%d\",&s[i+1][j]);\n\t\t\t}\n\t\t\tds[i]=3600*(s[i][3]+12)+60*s[i][4]+s[i][5]-3600*s[i][0]-60*s[i][1]-s[i][2];\n\t\t\tprintf(\"%d\\n\",ds[i]);\n\t\t\tk++;\n\t\t}else{\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "87", "index": "43230", "code": "int main(){\n\tint a,b,c,d,e,f,s,i;\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\tfor(i=1;i<100;i++){\n\t if(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\n\t\ts=0;\n s+=(d+11-a)*3600;\n\t s+=3600-b*60-c;\n\t s+=e*60+f;\n printf(\"%d\\n\",s);\n\t }else{\n\t\t break;\n\t }\n\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43231", "code": "int main()\n{\n\tint a[7],br;\n\tlong unsigned s;\n\tint i=0;\n\n\tfor(;;)\n\t{\n\t\tbr=0;\n\t\tfor(i=1;i<=6;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i]);\n\t\t\tif(a[i]==0)\n\t\t\t\tbr++;\n\t\t}\n\t\tif(br==6)\n\t\t\tbreak;\n\t\ts=((a[4]+12)*3600+a[5]*60+a[6])-(a[1]*3600+a[2]*60+a[3]);\n\t\tprintf(\"%ld\\n\",s);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43232", "code": "int main(){\n\tint a, b, c, d, e, f;\n\tint flag=0;\n\tint one, two, s;\n\twhile(flag==0){\n\t\tscanf(\"%d %d %d %d %d %d\", &a, &b, &c, &d, &e, &f);\n\t\tif(a!=0){\n\t\t\td+=12;\n\t\t\tone=a*3600+b*60+c;\n\t\t\ttwo=d*3600+e*60+f;\n\t\t\ts=two-one;\n\t\t\tprintf(\"%d\\n\", s);\n\t\t}\n\t\tif(a==0){\n\t\t\tflag=1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43233", "code": "int main(int argc, char* argv[])\n{\n int a,b,c,d,e,f,i,g,h;\n for(i=0;i<10000;i++){\n scanf(\"%d %d %d %d %d %d\\n\",&a,&b,&c,&d,&e,&f);\n if(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\n h=(60-c)+(59-b)*60+(11-a)*3600+f+e*60+d*3600;\n printf(\"%d\\n\",h);\n }\n }\n\n \n\t\n\t\n\treturn 0;\n}"} +{"label": "87", "index": "43234", "code": "int main(){\nint a,b,c,d,e,f,s;\ndouble y,z;\nfor(int i=1;a!=0||b!=0||c!=0||d!=0||e!=0||f!=0;i++){ \nscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\ny=60*60*a+60*b+c;\nz=60*60*(d+12)+60*e+f;\ns=z-y;\nif(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\nprintf(\"%d\\n\",s); \n} } \nreturn 0;\n} "} +{"label": "87", "index": "43235", "code": "void main()\n{\n\tint h1,m1,s1,h2,m2,s2,s;\n\tfor(;;)\n\t{\n\tscanf(\"%d %d %d %d %d %d\",&h1,&m1,&s1,&h2,&m2,&s2);\n\tif(h1==0 && m1 == 0 && s1==0) break;\n\ts=(h2+12-h1)*3600+(m2-m1)*60+s2-s1;\n\tprintf(\"%d\\n\",s);\n\t}\n}\n"} +{"label": "87", "index": "43236", "code": "int main(){\n\tint a,b,c,d,e,f;\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\tint s;\n\twhile(a!=0){\n\t\td+=12;\n\t\ts=0;\n\t\ts+=(d-a)*3600+(e-b)*60+(f-c);\n\t\tprintf(\"%d\\n\",s);\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43237", "code": "int main (){\n\tint m[100],f[100],s[100],m1[100],f1[100],s1[100],i,j,k;\n\tfor(i=0;i<100;i++){\n\t\tm[i]=0;\n\t\tf[i]=0;\n\t\ts[i]=0;\n\t\tm1[i]=0;f1[i]=0;s1[i]=0;\n\t}\n\tfor(i=0;i<10;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&(s[i]),&(f[i]),&(m[i]),&(s1[i]),&(f1[i]),&(m1[i]));\n if(s[i]==0&&s1[i]==0&&f[i]==0&&f1[i]==0&&m[i]==0&m1[i]==0){\n break;}\n\t\ts1[i]=s1[i]+12;\n\t\tj=(s1[i]-s[i])*3600+(f1[i]-f[i])*60+m1[i]-m[i];\n\t\tif(j!=0){\n\t\t\tprintf(\"%d\\n\",j);\n\t\t}\n\t}\n\n\n\t\n\t\n\t\n\t\n\t\n\t\n\treturn 0;\n}"} +{"label": "87", "index": "43238", "code": "int main(){\n\tint a,b,c,d,e,f,n;\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\twhile(1){\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}\n\t\tn=(d+12)*3600+e*60+f-(a*3600+b*60+c);\n\t\tprintf(\"%d\\n\",n);\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43239", "code": "int main()\n{\n\tint a[100],b[100],c[100],d[100],e[100],f[100],p[100],q[100],i,s;\n\tfor(i=0;;i++)\n\t{\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tp[i]=3600*a[i]+60*b[i]+c[i];\n\t\tq[i]=3600*(d[i]+12)+60*e[i]+f[i];\n\t\ts=q[i]-p[i];\n\t\tif(p[i]!=0)\n\t\t{\n printf(\"%d\\n\",s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\t"} +{"label": "87", "index": "43240", "code": "int main(){\n\tint a[100],b[100],c[100],d[100],e[100],f[100],fz[100],s[100],m[100],i,zsj[100];\n\tfor(i=0;;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;;i++){\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\t\t\tbreak;\n\t\t}\n\t\tif(f[i]=0;i++)\n {\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n if(a==0 && b==0 && c==0 && d==0 && e==0 && f==0)\n break;\n else\n s[i]=(59-b)*60+60-c+(11-a)*3600+d*3600+e*60+f;\n k++;\n }\n for(i=0;i>a>>b>>c>>d>>e>>f;\ns=(d-a)*3600+(e-b)*60+(f-c);\nif(!s)return 0;\ns+=43200;\ncout<=b){\ns=s+((e-b)*60);\n}else{\ns=s-((b-e)*60);\n}\ns=s+f-c;\nprintf(\"%d\\n\",s);\n}\n}\nreturn 0;\n} "} +{"label": "87", "index": "43250", "code": "int main()\n{\n int sz[1000][7],i,j,s=0,w,e,q;\n for(i=0;i<1000;i++){\n for(j=0;j<6;j++){\n\t scanf(\"%d\",&sz[i][j]);}\n if(sz[i][1]==0&&sz[i][2]==0&&sz[i][3]==0&&sz[i][4]==0&&sz[i][5]==0&&sz[i][0]==0){break;}else{s++;}}\n for(i=0;i=1&&d<=11&&b>=0&&c>=0&&e>=0&&f>=0&&b<=59&&c<=59&&e<=59&&f<=59){\n\t\nsum=(12+d)*3600+60*e+f-3600*a-60*b-c;\nprintf(\"%d\\n\",sum);\nscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n}\nreturn 0;}"} +{"label": "87", "index": "43257", "code": "int main()\n{\n int a,b,c,d,e,f,t;\n int s;\n for(s=1;s=1000;s++)\n {\n scanf(\"%d %d %d %d %d %d\", &a,&b,&c,&d,&e,&f);\n if (a==0)\n break;\n else\n {int m,n,p;\n m=(d+12)-a;\n if(b>=e)\n {\n n=b-e;\n if(c>=f)\n {\n p=c-f;\n t=m*3600-n*60-p;\n }\n else\n {\n p=f-c;\n t=m*3600-n*60+p;\n }\n }\n else\n {\n n=e-b;\n if(c>=f)\n {p=c-f;\n t=m*3600+n*60-p;}\n else\n {p=f-c;\n t=m*3600+n*60+p;}\n }\n printf(\"%d\\n\", t);\n }\n }\n return 0;\n}"} +{"label": "87", "index": "43258", "code": "int main()\n{\n\tint a[100],b[100],c[100],d[100],e[100],f[100],i;\n\tint s1,s2,s;\n\tfor(i=1;i<=100;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=1;i<=100;i++){\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\t\t\tbreak;\n\t\t}\n\t\ts1=c[i]+60*b[i]+3600*a[i];\n\t\ts2=f[i]+60*e[i]+3600*(d[i]+12);\n\t\ts=s2-s1;\n\t\tprintf(\"%d\\n\",s);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43259", "code": "int main()\n{\n\tint a,b,c,d,e,f,sum=0;\n\twhile(scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f))\n\t{\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)\n\t\t\tbreak;\n\t\tsum=0;\n\t\tif(f>=c)\n\t{\n\t\tsum=sum+f-c;\n\t}\n\telse if(f=b)\n\t{\n\t\tsum=sum+(e-b)*60;\n\t}\n\telse if(e0){\n\t\tfor(i=0;i<6;i++){\n\t\t\tscanf(\"%d\",&sz[i]);\n\t\t}\n\t\tif(sz[0]!=0){\n\t\t\tn=60*60*(12+sz[3]-sz[0])+60*(sz[4]-sz[1])+sz[5]-sz[2];\n\t\t\tsz1[m]=n;\n\t\t\tm=m+1;\n\t\t}\n\t\telse{\n\t\t\ta=0;\n\t\t}\n\t}\n\tfor(i=0;i0;i++){\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n if(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n break;\n }else if(1<=a&&a<=11&&d>=1&&d<=11&&0<=b&&b<=59&&c>=0&&c<=59&&e>=0&&e<=59&&f>=0&&f<=59){\n ms=(d+12-a)*3600+(e-b)*60+f-c;\n printf(\"%d\\n\",ms);\n }else{break;}\n }\n return 0;\n}\n\n"} +{"label": "87", "index": "43276", "code": "int main()\n{\n\tint a,b,c,d,e,f;\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\twhile(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\n\t\tprintf(\"%d\\n\",(d+12-a)*3600+(e-b)*60+f-c);\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43277", "code": "int main(){\n\tint a,b,c,d,e,f;\n\tint g;\n\twhile(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\nscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\tbreak;}\n\telse {\n\tg=3600*(12+d-a)+60*(e-b)+f-c;\n\tprintf(\"%d\\n\",g);\n\t\t}\n\t}\nreturn 0;\n}"} +{"label": "87", "index": "43278", "code": "int main(){\n\tint i;\n\tint n=0;\n\tint a[12],b[60],c[60],d[12],e[60],f[60];\n\tint s[100];\n\tfor(i=0;i<100;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tn +=1;\n\t\tif((a[i]==0)&&(b[i]==0)&&(c[i]==0)&&(d[i]==0)&&(e[i]==0)&&(f[i]==0)){\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;i=b[i])\n\t{\n\t\tn=e[i]-b[i];\n\t}\n\telse\n\t{\n\t\tm=m-1;\n\t\tn=60-(b[i]-e[i]);\n\t}\n\tif(f[i]>=c[i])\n\t{\n\t\tk=f[i]-c[i];\n\t}\n\telse\n\t{\n\t\tn=n-1;\n\t\tk=60-(c[i]-f[i]);\n\t}\n\ts=m*60*60+n*60+k;\n\tprintf(\"%d\\n\",s);\n\ti++;\n\t}\n\treturn 0;\n}\n\t\n"} +{"label": "87", "index": "43280", "code": "int main()\n{\n int i,j,a[100],b[100],c[100],d[100],e[100],f[100],sum[100],m,n;\n\tfor(i=0;i<=100;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\tj=i;\n for(i=0;i>a[i]>>b[i]>>c[i]>>d[i]>>e[i]>>f[i];\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0) break;\n\t}\n for(i=0;;i++)\n\t{\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0) break;\n\t\telse s[i]=3600*(d[i]+12-a[i])+60*(e[i]-b[i])+f[i]-c[i];\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0) break;\n\t\telse cout<m1){\n\t\t\t m=m2-m1;\n\t\t if(f2>f1)\n\t\t\t\t f=f2-f1;\n\t\t\t else{\n\t\t\t\t f=f2+60-f1;\n\t\t\t\t s2=s2-1;\n\t\t\t }\n\t\t }\n\t\t else {\n\t\t\t \n\t\t\t m=m2+60-m1;\n\t\t\t f2=f2-1;\n if(f2>f1)\n\t\t\t\t f=f2-f1;\n\t\t\t else{\n\t\t\t\t f=f2+60-f1;\n\t\t\t\t s2=s2-1;\n\t\t\t }\n\n\t\t }\n s=s2+12-s1;\n\t z=m+f*60+s*3600;\n\t printf(\"%d\\n\",z);\n\t \n\t }\n\t continue;\n\t}\n \n\t\t \nreturn 0;\n}\n\n"} +{"label": "87", "index": "43332", "code": "int main(){\n\tint m,a,b,c,d,e,f;\n \tdo{\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a+b+c+d+e+f!=0){ \n\t\tm=(d+12-a)*3600+(e-b)*60+f-c;\n\t\tprintf(\"%d\\n\",m);\n\t\t}\n\t\tif(a+b+c+d+e+f==0){\n\t\t\tcontinue;\n\t\t}\n\t\t}\n\n\t\twhile(a+b+c+d+e+f!=0);\n\t\t\t\t\n\t\treturn 0;\n}\n"} +{"label": "87", "index": "43333", "code": "int main(){\n int a[100],b[100],c[100],d[100],e[100],f[100];\n\tint i,n,s;\n\tfor(i=0;i<100;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\t\t\tn=i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;i=f&&b<=e) {ans=(12+d-a)*3600+(e-b)*60+(f-c)*1;}\nelse if (c<=f&&b>=e) {ans=(12+d-a)*3600+(e-b)*60+(f-c)*1;}\nelse if (c>=f&&b>=e) {ans=(12+d-a)*3600+(e-b)*60+(f-c)*1;}\nprintf (\"%d\\n\",ans);\n}\nreturn 0;\n}"} +{"label": "87", "index": "43341", "code": "int main(){\n int a,b,c,d,e,f,x,i,t;\n t=0;\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n scanf(\"\\n\");\n if(e>b&&f>c){\n x=(d+12-a)*3600+(e-b)*60+f-c;\n }else if(f=b+1){\n x=f+60-c+60*(e-b-1)+3600*(d+12-a);\n }else if(fb&&f>c){\n x=(d+12-a)*3600+(e-b)*60+f-c;\n }else if(f=b+1){\n x=f+60-c+60*(e-b-1)+3600*(d+12-a);\n }else if(fe){\n\t\t shi=shi-1;\n\t\t fen=e+60-b;\n\t }else{\n\t\t fen=e-b;\n\t }\n\t if(c>f){\n\t\t fen=fen-1;\n\t\t miao=f+60-c;\n\t }else{\n\t\t miao=f-c;\n\t }\n\t s=shi*3600+fen*60+miao*1;\n\t printf(\"%d\\n\",s);\n }\n return 0;\n}"} +{"label": "87", "index": "43343", "code": "int main(){\n\tstruct point{\n\t\tint a,b,c,d,e,f;\n\t}\n\tsz[100];\n\tint i=0;\n\tint count=0;\n\tfor(i=0;i<100;i++){\n\t\tscanf(\"%d%d%d%d%d%d\",&sz[i].a,&sz[i].b,&sz[i].c,&sz[i].d,&sz[i].e,&sz[i].f);\n\t\tcount++;\n\t\tif(sz[i].a==0&&sz[i].b==0&&sz[i].c==0&&sz[i].d==0&&sz[i].e==0&&sz[i].f==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tint xsz[100];\n\tfor(i=0;if){v=f+60-c;e=e-1;}\n\tif(b<=e){n=e-b;}\n\tif(b>e){n=e+60-b;d=d-1;}\n\tm=d-a;\n\ts=3600*m+60*n+v;\n\tprintf(\"%d\\n\",s);}\n\treturn 0;\n}\n\t\n\n"} +{"label": "87", "index": "43356", "code": "int main(){\n\tint a[1000],b[1000],c[1000],d[1000],e[1000],f[1000];\n\tint i,sum;\n\tint result;\n for(i=0;i<1000;i++){\n scanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t result=3600*(d[i]-a[i]+12)+60*(e[i]-b[i])+(f[i]-c[i]);\n\t\tsum=a[i]+b[i]+c[i]+d[i]+e[i]+f[i];\n\t\tif(sum==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t\tprintf(\"%d\\n\",result);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43357", "code": "int main(){\n int a,i,j,sz[100][6],sz2[100];\n\tfor(i=0;i<100;i++){\n\t\tfor(j=0;j<6;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t\tif((sz[i][0]==0)&&(sz[i][1]==0)&&(sz[i][2]==0)&&(sz[i][3]==0)&&(sz[i][4]==0)&&(sz[i][5]==0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t\tfor(i=0,j=0;i<100;i++,j++){\n\t\t\tsz2[j]=(sz[i][3]+12)*3600+sz[i][4]*60+sz[i][5]-sz[i][0]*3600-sz[i][1]*60-sz[i][2];\n\t\t\t\n\t\t\tif((sz[i][0]==0)&&(sz[i][1]==0)&&(sz[i][2]==0)&&(sz[i][3]==0)&&(sz[i][4]==0)&&(sz[i][5]==0)){\n\t\t\t\ta=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j0;i++){\n\t\ta=t[i][1];\n\t\tb=t[i][2];\n\t\tc=t[i][3];\n\t\td=t[i][4];\n\t\te=t[i][5];\n\t\tf=t[i][6];\n\t\tsum=12*60*60-a*60*60-b*60-c+d*60*60+e*60+f;\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43359", "code": "int main(){\nint sz[6]={1,1,1,1,1,1},x,i,j;\nfor(i=0;;i++){\n\tfor(j=0;j<6;j++){\n\tscanf(\"%d\",&sz[j]);\n\t}\n\tif(sz[0]==0){\n\tbreak;\n\t}\n\tx=(sz[3]+12-sz[0])*3600-sz[1]*60-sz[2]+sz[4]*60+sz[5];\n\tprintf(\"%d\\n\",x);\n\n}\nreturn 0;\n}\n"} +{"label": "87", "index": "43360", "code": "int main() {\nint i,j,s,a[10000][6];\n\nfor(i=0;i<10000;i++){\nfor(j=0;j<6;j++){\nscanf(\"%d\",&a[i][j]);}}\nfor(i=0;i<10000;i++){\ns=(a[i][3]+12)*3600+a[i][4]*60+a[i][5]-a[i][0]*3600-a[i][1]*60-a[i][2];\nif(a[i][0]!=0){printf(\"%d\\n\",s);}else{break;}\n}\nreturn 0;\n}\n\n\n"} +{"label": "87", "index": "43361", "code": "int main(){\n\tint a,b,c,d,e,f;\n\tint r1,r2,r3;\n\tfor(;;){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0){\n\t\t\treturn 0;\n\t\t}\n\t\telse{\n\t\t\tr1=12+d-a;\n\t\t\tr1=60*60*r1;\n\t\t\tr2=60*b+c-(60*e+f);\n\t\t\tr3=r1-r2;\n\t\t\tprintf(\"%d\\n\",r3);\n\t\t\tr3=0;\n\t\t}\n\t}\nreturn 0;\n}"} +{"label": "87", "index": "43362", "code": "int main(){\n\tint a,b,c,d,e,f,x;\n\twhile(1){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t\t\tx=(59-b)*60+60-c+(d-a-1+12)*3600+e*60+f;\n\t\t\tprintf(\"%d\\n\",x);\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "87", "index": "43363", "code": "int main()\n{\n int a[1000],b[1000],c[1000],d[1000],e[1000],f[1000],h[1000],i,m;\n for(i=0;i<1000;i++){\n scanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n h[i]=(12+d[i]-a[i])*60*60+(e[i]-b[i])*60+f[i]-c[i];\n if(a[i]+b[i]+c[i]+d[i]+e[i]+f[i]==0){break;}\n }\n for(m=0;m0;j--){\n if(a[i][j+3]>=a[i][j]) b[i][j]=a[i][j+3]-a[i][j];\n else {b[i][j]=a[i][j+3]-a[i][j]+60;\n a[i][j+2]=a[i][j+2]-1;}\n }\n b[i][0]=a[i][3]+12-a[i][0];\n sum[i]=b[i][0]*3600+b[i][1]*60+b[i][2];\n printf(\"%d\\n\",sum[i]);\n }\n return 0;\n}\n\n"} +{"label": "87", "index": "43372", "code": "int main(){\n int sz[7],i,sum=0,j=0;\n\tfor(i=0;;i++){\n for(j=0;j<6;j++){\n\t\t\tscanf(\"%d\",&(sz[j]));\n\t\t}\n\t\tif(sz[0]==0){\n\t\t\tbreak;\n }\n sz[3]=sz[3]+12;\n\t\tsum=(sz[3]-sz[0])*3600+(sz[4]-sz[1])*60+(sz[5]-sz[2]);\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43373", "code": "int main()\n{\n\tint sz[1000][6],result[1000];\n\tint i,j,p=1;\n\tfor(i=0;i<1000;i++){\n\t\tfor(j=0;j<6;j++){\n \t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t}\n\tfor(i=0;i<1000;i++){\n\t\tif(sz[i][0]!=0){\n\t\t\tresult[i]=(sz[i][3]-sz[i][0])*60*60+(sz[i][4]-sz[i][1])*60+sz[i][5]-sz[i][2]+12*60*60;\n\t\t\tprintf(\"%d\\n\",result[i]);\n\t\t}\n\t\tif(sz[i][0]==0){\n\t\t\tp=0;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43374", "code": "int main(){\n\tint sz[1000][6],g,i;\n\tfor(i=0;i<1000;i++){\n\tscanf(\"%d %d %d %d %d %d\",&sz[i][0],&sz[i][1],&sz[i][2],&sz[i][3],&sz[i][4],&sz[i][5]);\n if(sz[i][1]==0&&sz[i][2]==0&&sz[i][3]==0&&sz[i][0]==0&&sz[i][4]==0&&sz[i][5]==0){break;}\n\tg=sz[i][5]+60-sz[i][2]+(sz[i][4]-1+60-sz[i][1])*60+(sz[i][3]+11-sz[i][0])*3600;\n\tprintf(\"%d\\n\",g);}\n\treturn 0;\n}"} +{"label": "87", "index": "43375", "code": "\nint main ()\n{ int a,b,c,d,e,f,s[1000],i;\nfor(i=0;a!=0;i++){\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n s[i]=f+60*e+3600*d-c-60*b-3600*a+3600*12;\n if(a!=0){printf(\"%d\\n\",s[i]);}\n}\n return 0;\n}\n"} +{"label": "87", "index": "43376", "code": "// kaoshi.cpp : Defines the entry point for the console application.\n//\n\n\nint main(int argc, char* argv[])\n{\n\tint sz[1000][6],i,j,k=0,s;\n\tfor(i=0;i<1000;i++){\n\t\tfor(j=0;j<6;j++){\n\t\t\tscanf(\"%d\",&sz[i][j]);\n\t\t}\n\t\tif(sz[i][0]==0&&sz[i][1]==0&&sz[i][2]==0&&sz[i][3]==0&&sz[i][4]==0&&sz[i][5]==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(i=0;i0){\n\t\tscanf(\"%d %d %d %d %d %d\",&a1,&b1,&c1,&a2,&b2,&c2);\n\t\tif(a1+b1+c1+a2+b2+c2==0)break;\n s1=a1*3600+b1*60+c1;\n s2=(a2+12)*3600+b2*60+c2;\n printf(\"%d\\n\",s2-s1);\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "87", "index": "43381", "code": "int main(){\n\tint shuzu[100][6];\n\tint zongshu[100];\n\tint i=0;\n\tscanf(\"%d %d %d %d %d %d\",&shuzu[i][0],&shuzu[i][1],&shuzu[i][2],&shuzu[i][3],&shuzu[i][4],&shuzu[i][5]);\n\twhile(!((shuzu[i][0]==0)&&(shuzu[i][1]==0)&&(shuzu[i][2]==0)&&(shuzu[i][3]==0)&&(shuzu[i][4]==0)&&(shuzu[i][5]==0))){\n\t shuzu[i][3]+=12;\n\t zongshu[i]=60-shuzu[i][2]+shuzu[i][5];\n \tshuzu[i][2]=0;\n\t shuzu[i][5]=0;\n\t shuzu[i][1]++;\n\t zongshu[i]+=60*shuzu[i][4]+(60-shuzu[i][1])*60;\n\t shuzu[i][0]++;\n\t zongshu[i]+=(shuzu[i][3]-shuzu[i][0])*3600;\n\t printf(\"%d\\n\",zongshu[i]);\n\t\ti++;\n\t\tscanf(\"%d %d %d %d %d %d\",&shuzu[i][0],&shuzu[i][1],&shuzu[i][2],&shuzu[i][3],&shuzu[i][4],&shuzu[i][5]);\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43382", "code": "int main(){\n\tint a,b,c,d,e,f,sum;\n\twhile(1){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif (a==0)\n\t\t\tbreak;\n\t\td=d+11;\n\t\te=e+59;\n\t\tf=f+60;\n\t\tsum=(d-a)*3600+(e-b)*60+(f-c);\n\t\tprintf(\"%d\\n\",sum);\n\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43383", "code": "int main(){\n\tint a,b,c,d,e,f,A,B,C,m=0;\n\twhile(1){\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\tif(a==b&&b==c&&c==d&&d==e&&e==f&&f==0)\n\t\tbreak;\n\telse{\n\tif(c>f){\n\t\tC=f+60-c;\n\t\tif(e-1<=b){\n\t\t\tB=e-1+60-b;\n\t\t\tA=11+d-a;\n\t\t}\n\t\telse {\n\t\t\tB=e-1-b;\n\t\t\tA=12+d-a;\n\t\t}\n\t}\n\telse if(c<=f){\n\t\tC=f-c;\n\t\tif(e<=b){\n\t\t\tB=e+60-b;\n\t\t\tA=11+d-a;\n\t\t}\n\t\telse{\n\t\t\tB=e-b;\n\t\t\tA=12+d-a;\n\t\t}\n\t}\n\tm=3600*A+60*B+C;\n\tprintf(\"%d\\n\",m);\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43384", "code": "int main(){\n\tint q[1000],w[1000],e[1000],r[1000],t[1000],y[1000];\n\tint sum[1000];\n\tint a,s,d,f,g,h,i=0,j;\n\tscanf(\"%d %d %d %d %d %d\",&a,&s,&d,&f,&g,&h);\n\twhile((a!=0)||(s!=0)||(d!=0)||(f!=0)||(g!=0)||(h!=0)){\n \tq[i]=(11-a)*3600;\n\t\tw[i]=(59-s)*60;\n\t\te[i]=60-d;\n\t\tr[i]=3600*f;\n\t\tt[i]=60*g;\n\t\ty[i]=h;\n\t\tsum[i]=q[i]+w[i]+e[i]+r[i]+t[i]+y[i];\n\t\ti++;\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&s,&d,&f,&g,&h);\n\t}\n\tfor(j=0;j=c){\n q=f-c;\n }else{\n q=f+60-c;\n\te-=1;\n }\n if(e>=b){\n p=e-b;\n }else{\n p=e+60-b;\n\td-=1;\n }\n o=d-a;\n t=o*60*60+p*60+q;\nprintf(\"%d\\n\",t);\n }\n \n return 0;\n}"} +{"label": "87", "index": "43389", "code": "int main()\n{\n int n,d=0;\n\tint shuzu[5000][6];\n\tfor(n=0;n<5000;n++){\n\t\tfor(int a=0;a<6;a++){\n\t\t\tscanf(\"%d\",&shuzu[n][a]);\n\t\t}\n\t\td++;\n\t\tif(shuzu[n][0]==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\tint shu[5000];\n\tfor(int b=0;b=0;i++){\n scanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n n++;\n if(a[i]==0 && b[i]==0&& c[i]==0&& d[i]==0&& e[i]==0&& f[i]==0){\n break;\n }\n }\n for(i=0;i0)\n\t{\n\t\tscanf(\"%d%d%d%d%d\",&b,&c,&d,&e,&f);\n\t\n n=(d+12-a)*3600;\n\t\t n=n+(e-b)*60;\n\t\t n=n+f-c;\n\t\t printf(\"%d\\n\",n);\n\t\t scanf(\"%d\",&a);\n\t\t \n\t}\n}"} +{"label": "87", "index": "43417", "code": "int main(){\n int a,b,c,d,e,f,g=0;\n int i,j,x,n,y;\n\n while(1){\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n if(a<1) break;\n i=b*60+c;\n j=e*60+f;\n x=(d+12-a)*3600-i+j;\n printf(\"%d\\n\",x);\n }\n return 0;\n}\n"} +{"label": "87", "index": "43418", "code": "\nint main()\n{\n\tint i,j,k,m,n,a[6];\n\tfor(n=0;;n++)\n\t{\n\t\tk=0;\n\t\tfor(i=0;i<6;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&a[i]);\n\t\t\tif(a[i]!=0)\n\t\t\tk=1;\n\t\t}\n\t\tif(k==0)\n\t\tbreak;\n\t\tm=a[0]*3600+a[1]*60+a[2];\n\t\tn=(a[3]+12)*3600+a[4]*60+a[5];\n\t\tprintf(\"%d\\n\",n-m);\n\t}\n \treturn 0;\n}\n"} +{"label": "87", "index": "43419", "code": "int main(){\n\tint a,b,c,d,e,f,k;\n\tint sum=0;\n\twhile(1){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}\n\t\tk=a;\n\t\tif(b<59){\n\t\t\tsum+=(60-c);\n\t\t\tb++;\n\t\t\tsum+=(60-b)*60;\n\t\t\ta++;\n\t\t}else{\n\t\t\tsum+=(60-c);\n\t\t\tb=0;\n\t\t\ta++;\n\t\t}\n\t\tsum=sum+e*60+f;\n\t\td=d+12;\n\t\tsum=sum+(d-a)*3600;\n\t\tprintf(\"%d\\n\",sum);\n\t\tsum=0;\n\t}\n\n\t\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43420", "code": "int main(){\n\tint a,b,c,d,e,f;\n\tint shui,qi,ms;\n\tint m,n,o,p,q,r;\n\tint js=0,pd=1;\n\tfor(js=0;pd!=0;js++){\n\t\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif((a==0)&&(b==0)&&(c==0)&&(d==0)&&(e==0)&&(f==0)){\n\t\t\tpd=0;\n\t\t}\n\t\telse{\n\t\tshui=a*3600+b*60+c;\n\t\tqi=(d+12)*3600+e*60+f;\n\t\tms=qi-shui;\n\t\tif(js!=0){\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\tprintf(\"%d\",ms);\n\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "87", "index": "43421", "code": "\nint main()\n{\n\tint a,b,c,d,e,f;\n\t\n\tint s;\n\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\twhile(1)\n\t{\n\t\tif(a!=0)\n\t\t{\n\t s=(d+12-a)*3600+e*60+f-b*60-c;\n\t printf(\"%d\\n\",s);\n\t\t scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\n\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43422", "code": "int main(){\n int a,b,c,d,e,f,s1,s2,s3,s,x=0;\n int i; \n \n for(i=0;x!=1;i++){\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f); \n if(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n x=1;\n return 0; \n }else{ \n s=0;\n d=d+12;\n if(f>=c){\n s3=f-c;\n }else{\n s3=60+f-c;\n e--;\n }\n if(e>=b){\n s2=(e-b)*60; \n }else{\n s2=(60+e-b)*60;\n d--;\n }\n s1=(d-a)*3600; \n s=s1+s2+s3;\n printf(\"%d\\n\",s);\n }\n \n}\n\n\n return 0;\n}\n"} +{"label": "87", "index": "43423", "code": "int main(){\n int sz[10];\n int i,q,s;//????????\n\tint j;//??????????\n\tfor(j=0;;j++)\n\t{\n\t\ts=0;\n\t for(i=0;i<6;i++){scanf(\"%d\",&sz[i]);}\n\t if(sz[0]==0&&sz[1]==0&&sz[2]==0&&sz[3]==0&&sz[4]==0&&sz[5]==0)\n\t\tbreak;//????????????\n s+=(sz[3]+12-sz[0])*3600+(sz[4]-sz[1])*60+(sz[5]-sz[2]); \n printf(\"%d\\n\",s);//??????~~\n }\n \n return 0;\n}\n"} +{"label": "87", "index": "43424", "code": "int main()\n{\n int a,b,c,d,e,f,s;\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n while((a!=0)||(b!=0)||(c!=0)||(d!=0)||(e!=0)||(f!=0))\n {\n if(f>=c)\n {\n s=f-c;\n if(e>=b)\n {\n s+=(e-b)*60;\n s+=(d+12-a)*60*60;\n }\n else \n {\n s+=(e+60-b)*60;\n s+=(d+11-a)*60*60;\n }\n }\n else\n {\n s=f-c+60;\n if((e-1)>=b)\n {\n s+=(e-b-1)*60;\n s+=(d+12-a)*60*60;\n }\n else\n {\n s+=(e+60-b-1)*60;\n s+=(d+11-a)*60*60;\n }\n }\n printf(\"%d\\n\",s);\n scanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n }\n return 0;\n}\n"} +{"label": "87", "index": "43425", "code": "int main(){\n\tint a[999],b[999],c[999],d[999],e[999],f[999],z[999],i;\n\tfor(i=0;;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&(a[i]),&(b[i]),&(c[i]),&(d[i]),&(e[i]),&(f[i]));\n\t\tif(a[i]==0){\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;;i++){\n\t\tz[i]=3600*d[i]+60*e[i]+f[i]+3600*(12-a[i])-60*b[i]-c[i];\n\t\tif(a[i]==0){\n\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%d\\n\",z[i]);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43426", "code": "int main(){\n\tint k[1000],n,i;\n\tfor(n=0;n<=1000;n++){\n\t\tint a=0,b=0,c=0,d=0,e=0,f=0;\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t if(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\n\t\t\tk[n]=3600*(d-a+11)+3600-60*b-c+60*e+f;\n\t\t}else{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;i0;){\n\tfor(n=0;;n++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\ti=0;break;}\n\t\td=d+12;\n\t\ts=3600-b*60-c+(d-a-1)*3600+e*60+f;printf(\"%d\\n\",s);\n\t}\n}\n\n\treturn 0;\n}"} +{"label": "87", "index": "43429", "code": "int main(){\n\tint sz[100][1], i, a, b,c, d, e, f, g;\n\t\tscanf(\"%d %d %d %d %d %d\", &a, &b, &c, &d, &e, &f);\n\t\ti=0;\n\t\twhile(1){\n\t\t\ta=a*3600;\n\t\t\tb=b*60;\n\t\t\td=(d+12)*3600;\n\t\t\te=e*60;\n\t\t\tsz[i][0]=d+e+f-a-b-c;\n\t\t\tscanf(\"%d%d%d%d%d%d\", &a, &b, &c, &d, &e, &f);\n\t\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tfor(g=0; g<=i; g++){\n\t\t\tprintf(\"%d\\n\", sz[g][0]);\n\t\t}\n\t\treturn 0;\n}"} +{"label": "87", "index": "43430", "code": "int main()\n{\nint a[100],b[100],c[100],d[100],e[100],f[100],s[100],i,p=0;\nfor(i=0;i<100;i++)\n{\nscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\nprintf(\"\\n\");\nif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0)\nbreak;\np++;\n}\nfor(i=0;i=0;i++)\n\t{\n\tscanf(\"%d %d %d %d %d %d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\tm++;\n\tif(a[i]==0&&b[i]==0&&c[i]==0&&e[i]==0&&f[i]==0)break;\n\t}\n\tfor(i=0;i-1;i++){\n\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\tif(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n\t\tn=i;\n\t\tbreak;\n\t}\n}\nfor(i=0;i0;i++)\n\t{\n\t scanf(\"%d %d %d %d %d %d \",&a,&b,&c,&d,&e,&f);\n\t if(a+b+c+d+e+f==0)\n\t {\n\t\t break;\n\t }\n sum=(12+d)*3600+e*60+f-(3600*a+60*b+c);\n\t printf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43438", "code": "int main(){\nint a,b,c,d,e,f,m,i;\nfor(i=0;i<=100;i++){\nscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\nif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n return 0;\n}else{\nd=d+12;\nm=(d-a)*60*60;\nif(e>=b){\n m=m+((e-b)*60);\n}else{\n m=m-((b-e)*60);\n}\nif(f>=c){\n m=m+f-c;\n}else{\n m=m+f-c;\n}\nprintf(\"%d\\n\",m);\n}\n}\nreturn 0;\n}"} +{"label": "87", "index": "43439", "code": "int main()\n{\n int a,b,c,d,e,f;\n int s;\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n while(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0)\n {\n s=f+e*60+d*3600+(60-c)+(59-b)*60+(11-a)*3600;\n printf(\"%d\\n\",s);\n scanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n }\n return 0;\n}\n"} +{"label": "87", "index": "43440", "code": "int main()\n{\n\tint x[6],i,j=0;\n\tfor(;;)\n\t{\n\t\tfor(i=0;i<6;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&x[i]);\n\t\t\tif(x[i]==0)\n\t\t\t\tj++;\n\t\t}\n\t\tif(j==6)\n\t\t\treturn 0;\n\t\telse \n\t\t\tj=0;\n\t\tfor(i=0;;i++)\n\t\t{\n\t\t\tx[2]++;\n\t\t\tif(x[2]==60)\n\t\t\t{\n\t\t\t\tx[2]=0;\n\t\t\t\tx[1]++;\n\t\t\t}\n\t\t\tif(x[1]==60)\n\t\t\t{\n\t\t\t\tx[1]=0;\n\t\t\t\tx[0]++;\n\t\t\t}\n\t\t\tif(x[0]==(x[3]+12) && x[1]==x[4] && x[2]==x[5])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",++i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "87", "index": "43441", "code": "int main()\n{\n\tint a,b,c,d,e,f;\n\tint n;\n\tint result;\n\tfor(n;n;n++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&d==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t\td=d+12;\n\t\t\tresult=3600*(d-a)+60*(e-b)+(f-c);\n\t\t\tprintf(\"%d\\n\",result);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43442", "code": "int main (){\n\tint i,a,b,c,d,e,f,s;\n\tfor(i=0; ;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\tbreak;\n\t\t}\n\t\ts=(d+12-a)*3600+(e-b)*60+f-c;\n\t\tprintf(\"%d\\n\",s);\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43443", "code": "int main(){\n\tint a,b,c,d,e,f,s=0;\n\twhile(1){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\tif(a==0)\n\t\t\tbreak;\n\t\ts=d*60*60+e*60+f+(12-a-1)*60*60+(60-b-1)*60+(60-c);\n\t\tprintf(\"%d\\n\",s);\n\t}\n\treturn 0;\n}\n\n\t\t"} +{"label": "87", "index": "43444", "code": "int main(){\n\tint a[1000],b[1000],c[1000],d[1000],e[1000],f[1000],D[1000],m1,m2,m;\n\tfor(int i=0;i<1000;i++)\n\t{\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&D[i],&e[i],&f[i]);\n\t\td[i]=D[i]+12;\n\t\tif(a[i]==0&&b[i]==0&&c[i]==0&&D[i]==0&&e[i]==0&&f[i]==0)\n\t\t{\n\t\t\tbreak;\n\t\t}else{\n\t\tm1=3600*a[i]+60*b[i]+c[i];\n\t\tm2=3600*d[i]+60*e[i]+f[i];\n\t\tm=m2-m1;\n\t\tprintf(\"%d\\n\",m);}\n\t}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43445", "code": "int main()\n{\n int g,j,a[1000],b[1000],c[1000],d[1000],e[1000],f[1000],i,h,sum,s,m,u[6],q;\n for(i=0;i<1000;i++)\n {\n scanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n q=i;\n if(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0)\n break;\n }\n for(j=0;j=e[i])\n\t\t\tk[i]=f[i]-c[i]+60*(e[i]+60-b[i])+3600*(d[i]+11-a[i]);\n\t\telse if(c[i]>f[i]&&b[i]f[i]&&b[i]>=e[i])\n\t\t\tk[i]=f[i]+60-c[i]+60*(e[i]+59-b[i])+3600*(d[i]+11-a[i]);\n\t}\n\tfor(i=0;i11||b<0||f>59){\n\t\t\tbreak;\n\t\t}else{\n\t\t\tmiaoshu1=a*3600+b*60+c;\n\t\t\tmiaoshu2=(d+12)*3600+e*60+f;\n\t\t\tjieguo=miaoshu2-miaoshu1;\n\t\t\tprintf(\"%d\\n\",jieguo);\n\t\t}\n\t}\n\tscanf(\"0 0 0 0 0 0\");\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43458", "code": "int main(){\nint s,a,b,c,d,e,f;\nwhile(1){\n scanf(\"%d%d%d%d%d%d\\n\",&a,&b,&c,&d,&e,&f);\n if(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n break;\n }\n if(f=1) && (b>=0) && (c>=0) && (e>=0) && (f>=0) && (d>=1)){\n\t\ts = miao(d+12,e,f) - miao(a,b,c);\n\t\tprintf(\"%d\\n\",s);\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tscanf(\"\\n\");\n\t}\n\treturn 0;\n}\n\nint miao(int x,int y,int z){\n\tint m;\n\tm = (3600 * x) + (60 * y) + z;\n\treturn m;\n}"} +{"label": "87", "index": "43477", "code": "int main(){\n\tint n,a1,a2,a3,a4,a5,a6,i,j,s,t=0;\n\tfor(i=0;i<100;i++){\n\t scanf(\"%d%d%d%d%d%d\",&a1,&a2,&a3,&a4,&a5,&a6);\n\t\t \n\t\t s=(a4+12)*3600+a5*60+a6-a1*3600-a2*60-a3;\n\t\t if(a1!=0){\n\t printf(\"%d\\n\",s);\n\t\t }\n\t\t if(a1==0&&2==0){\n\t\t\t \n\t\t\t break;\n\t\t }\n\t}\n\t\n\t\n\treturn 0;\n}"} +{"label": "87", "index": "43478", "code": "int main(){\n\tint a,b,c,d,e,f,i,r;\n for(i=0;i>=0;i++){\n\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n if(a!=0||b!=0||c!=0||d!=0||e!=0||f!=0){\n\t\td=d+12;\n\t\tr=(d-a-1)*3600+(3600-b*60-c)+e*60+f;\n\t\tprintf(\"%d\\n\",r);\n\t}else{\n\t\treturn 0;\n\t}}\n\treturn 0;\n}\n"} +{"label": "87", "index": "43479", "code": "\nint main()\n{\n\tint a,b,c,d,e,f;\n\tint result;\n\tdo\n\t{\n\t\tscanf(\"%d %d %d %d %d %d\",&a,&b,&c,&d,&e,&f);\n\t\tif (a!=0)\n\t\t{\n\t\t\tresult=(N*N-b*N-c)+(d-a+11)*N*N+(e*N+f);\n\t\t\tprintf(\"%d\\n\",result);\n\t\t}\n\t}\n\twhile(a!=0);\n\treturn 0;\n}"} +{"label": "87", "index": "43480", "code": "int main(){\n\tint a[100],b[100],c[100],d[100],e[100],f[100],i=0;\n\tint s=0;\n\tscanf(\"%d%d%d%d%d%d\",&a[0],&b[0],&c[0],&d[0],&e[0],&f[0]);\n\twhile(a[i]){\n\t\ts+=(d[i]-a[i]+12)*3600+(e[i]-b[i])*60+f[i]-c[i];\n\t\tprintf(\"%d\\n\",s);\n\t\ts=0;\n\t\ti++;\n\t\tscanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "87", "index": "43481", "code": "int main(){\n\tint n,i,a[N][5],b[N];\n\tn=0;\n\tfor(i=0;;i++){\n\t\tscanf(\"%d %d %d %d %d %d\",&a[i][0],&a[i][1],&a[i][2],&a[i][3],&a[i][4],&a[i][5]);\n\t\tif(!(a[i][0]==0&&a[i][1]==0&&a[i][2]==0&&a[i][3]==0&&a[i][4]==0&&a[i][5]==0)){\n\t\t\tb[i]=3600*(12+a[i][3]-a[i][0])+60*(a[i][4]-a[i][1])+(a[i][5]-a[i][2]);\n\t\t\tn++;\n\t\t}else{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;i> time[i][j];\n if (time[i][j] != 0)\n flag = 1;\n } \n if (!flag)\n break;\n else \n {\n temp = time[1][2] + time[1][1] * 60 + (time[1][0] + 12)* 3600 - time[0][2] - time[0][1] * 60 - time[0][0] * 3600;\n flag = 0;\n cout << temp << endl;\n temp = 0; \n }\n }\n return 0;\n}"} +{"label": "87", "index": "43489", "code": "int main(){\n\tint a,b,c,d,e,f,t;\n\tint i=0;\n\twhile(i<100){\n\t\tscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\n\t\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tf=f+60;\n\t\t\t\te=e+60-1;\n\t\t\t\td=d+11;\n\t\t\t\tt=(d-a)*3600+(e-b)*60+(f-c);\n\t\t\t\tprintf(\"%d\\n\",t);\n\t\t\t\ti++;\n\t\t\t}\n\t}return 0;\n}\n"} +{"label": "87", "index": "43490", "code": "int main()\n{\n\tint a[11][6],s,i,j;\n\tfor(i=0;i<11;i++){\n\t\tfor(j=0;j<6;j++){\n\t\t\tscanf(\"%d\",&a[i][j]);\n\t\t}\n\t}\n\tfor(i=0;i<11;i++){\n\t\tif(a[i][0]==0&&a[i][1]==0&&a[i][2]==0&&a[i][3]==0&&a[i][4]==0&&a[i][5]==0){\n\t\t\tbreak;}\n\ts=3600*(a[i][3]+11-a[i][0])+3600-60*a[i][1]-a[i][2]+60*a[i][4]+a[i][5];\n\tprintf(\"%d\\n\",s);\n\t\n\t}\n\treturn 0;\n}"} +{"label": "87", "index": "43491", "code": "int main()\n{int n,s,t,i;\n int a[10000],b[10000],c[10000],d[10000],e[10000],f[10000];\n for(i=0;i<10000;i++){\n scanf(\"%d%d%d%d%d%d\",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i]);\n if(a[i]==0&&b[i]==0&&c[i]==0&&d[i]==0&&e[i]==0&&f[i]==0){\n n=i;\n break;}\n }\n for(i=0;i=sz[i][0]){\n\t\t//\tt=3600*(sz[i][3]-sz[i][0])+sz[i][4]*60+sz[i][5]-sz[i][1]*60-sz[i][2];\n\t//\tprintf(\"%d\\n\",t);\n\t//\treturn 0;}\n\t//\tif(sz[i][3]=b&&f>=c){\n\t\t\ty=(d-a)*3600+(e-b)*60+f-c;\n\t\t}else if(e>=b&&f<=c){\n\t\t\ty=(d-a)*3600+(e-b-1)*60+60+f-c;\n\t\t}else if(e<=b&&f>=c){\n\t\t\ty=(d-a-1)*3600+3600+(e-b)*60+f-c;\n\t\t}else if(e<=b&&f<=c){\n\t\t\ty=(d-a-1)*3600+3600+(e-b-1)*60+60+f-c;\n\t\t}\n\t\tprintf(\"%d\\n\",y);\n\t}\n\treturn 0;\n\n}"} +{"label": "87", "index": "43496", "code": "int main(){\nint a,b,c,d,e,f,i,sum;\nfor(i=1;i++;){\nscanf(\"%d%d%d%d%d%d\",&a,&b,&c,&d,&e,&f);\nif(d==0) {break;}\nelse {\nsum=60-c+f+(60-b-1)*60+e*60+(12+d-a-1)*3600;\nprintf(\"%d\\n\",sum);\n}\n}\nreturn 0;\n}\n"} +{"label": "87", "index": "43497", "code": "int main()\n{\nint a[6],i,j,time;\nwhile(a[0]!=0)\n{\nfor(j=0;j<=5;j++)\n{\ncin>>a[j];\nif(a[0]==0)\nreturn 0;}\ncout<<(a[3]+12)*60*60+a[4]*60+a[5]-a[0]*60*60-a[1]*60-a[2]<='0')\n b[i]=1;\n\t\tfor(j=0;j=48&&str[i]<=57) //???????????\n cout<57)&&(str[i+1]>=48&&str[i+1]<=57)) //??????????????????????\n cout< '9')\n\t\t\t*p = 0;//???????????\n\t*p = 1;//????\n\tp = text - 1;//????\n\twhile (*(++p) != 1)\n\t\tif (*p != 0)//?????\n\t\t\tcout << *p;\n\t\telse if (*(p + 1) != 0)//???????????\n\t\t\tcout << endl;\n\t\treturn 0;\n}"} +{"label": "88", "index": "43504", "code": "\nint main()\n{\n\tint i,m=0;\n\tchar *p=NULL;\n\tchar c[31];\n\tgets(c);\n\tp=c;\n\tfor ( i=0;i= '0' && *p <= '9')\n\t\t\t\t{\n\t\t\t\t\tcout << *p;\n\t\t\t\t\tm=1;\n\t\t\t\t}\n\t\t\telse if ( m == 1 )\n\t\t\t\t{\n\t\t\t\t\tcout << endl;\n\t\t\t\t\t*p;\n\t\t\t\t\tm=0;\n\t\t\t\t}\n\t\t\t*p++;\n\t\t}\n\tcout << endl;\n\n\treturn 0;\n}\n"} +{"label": "88", "index": "43505", "code": "int main()\n{\n int b,j=0;\n char *p,*q;\n char a[30],c[30];\n gets(a);//???????? \n b=strlen(a);//???? \n p=a;\n q=c;\n for(int i=0;i<30;i++)//??????????? \n *(q+i)=':';\n for(int i=0;i0)\n {\n if((isdigit(*(p+i))==0)&&(isdigit(*(p+i-1))!=0))//??????????????? \n {\n cout<=0)&&(a[i]-'9'<=0))\n {\n printf(\"%c\",a[i]);\n }\n else\n {\n if(i>=1)\n {\n if((a[i-1]-'0'>=0)&&(a[i-1]-'9'<=0))\n printf(\"\\n\");\n }\n } \n }\n getchar();\n \n}\n"} +{"label": "88", "index": "43507", "code": "int main()\n{\n\tchar c[31],num[30];\n\tint i,n1[30],n2[30],k=0,l,j,m;\n\tgets(c);\n\tl=strlen(c);\n\tfor(i=0;i47&&c[i]<58)&&(c[i-1]<48||c[i-1]>57))\n\t\t{\n\t\t\tn1[k]=i; //????\n\t\t}\n\t\tif((c[i]>47&&c[i]<58)&&(c[i+1]<48||c[i+1]>57))\n\t\t{\n\t\t\tn2[k]=i; //????\n\t\t\tk++;\n\t\t}\n\t\t\n\t}\n\tfor(i=0;i=48&&*(p+i)<=57&&k==2) printf(\"\\n\");\n\t\tif(*(p+i)>=48&&*(p+i)<=57) {printf(\"%c\",*(p+i));k=1;}\n\t\telse k=2;\n\t}\n}"} +{"label": "88", "index": "43509", "code": "int main()\n{\n\tint i,l,k;\n\tchar zfc[31];\n\tgets(zfc);\n\tl=strlen(zfc);\n\tfor(i=0;i=48&&*p<=57) {f[i]=*p;i++;p++;}\n\t\t\t\t\t\twhile ((*p<48||*p>57)&&(*p!='\\0')) p++;\n\t\t\t\t\t\tif (*p=='\\0') break;\n f[i]=' ';i++;\n\t\t\t\t\t}\n\t\t\t\t\tfor(t=0;t=48)&&(*(str+i+1)>57||*(str+i+1)<48))\n\t\t\t printf(\"%c\\n\",*(str+i));\n\t\t if((*(str+i)<=57&&*(str+i)>=48)&&(*(str+i+1)<=57&&*(str+i+1)>=48))\n\t\t\t printf(\"%c\",*(str+i));\n\t\t i=i+1;\n\t }\n}\n"} +{"label": "88", "index": "43512", "code": "\nvoid main()\n{\n\tchar str[30],*a;\n\ta=str;\n\tgets(str);\n\tfor(;a='0')&&(*a<='9'))\n\t\t{printf(\"%c\",*a);\n\t\ta++;\n\t\tbreak;}\n\t}\n\tfor(;a='0')&&(*a<='9'))&&((*(a-1)>='0')&&(*(a-1)<='9')))\n\t\t\tprintf(\"%c\",*a);\n\t\telse if(((*a>='0')&&(*a<='9'))&&((*(a-1)<'0')||(*(a-1)>'9')))\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%c\",*a);\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43513", "code": "\nint main()\n{\n\tchar str[30];\n\tchar *p; //:????\n\tgets(str);\n\tp=str; //:????\n\n\tfor (int i=0;i=48 && *(p+i)<=57 && (*(p+i+1)<48 || *(p+i+1)>57) ) //:?????????????????\n\t\t\tcout<<*(p+i)<=48 && *(p+i)<=57 && (*(p+i+1)>=48 && *(p+i+1)<=57) )\n\t\t\tcout<<*(p+i);\n\t}\n\tif (*(p+strlen(p)-1)>=48 && *(p+strlen(p)-1)<=57) //:?????????\n\t\tcout<<*(p+strlen(p)-1);\n\tcout<='0'&&in[i]<='9')//???????\n\t\t{\n\t\t\tflag1=i;\n\t\t\tfor(j=i;j<31;j++)\n\t\t\t{\n\t\t\t\tif(!(in[j]>='0'&&in[j]<='9'))//????????\n\t\t\t\t{\t\n\t\t\t\t\tflag2=j-1;\n\t\t\t\t\ti=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(k=flag2;k>=flag1;k--)//?????\n\t\t\t{\n\t\t\t\t\n\t\t\t\tout[l]=out[l]+(in[k]-'0')*(int)pow(10.0,(double)(flag2-k));\n\t\t\t\t\n\t\t\t}\n\t\t\tl++;\n\t\t}\n\tif(in[i]=='\\0')\n\t\tbreak;\n\t}\n\tfor(i=0;i=0&&(a[i]-'0'<=9)) cout<=0&&(a[i+1]-'0'<=9)) cout<= '0' && input[i] <= '9')\n {\n \n printf(\"%c\", input[i]);\n\t\t\t\n }\n else\n {\n printf(\"\\n\");\n }\n\n return 0;\n}\n"} +{"label": "88", "index": "43517", "code": "int main ()\n{\n\tchar str[50] ;\n\tint i ;\n\tcin.getline(str , 50) ;\n\tfor (i = 0 ; str[i] != '\\0' ; i ++)\n\t{\n\t\tif (str[i] >= 48&&str[i] <= 57)\n\t\t{\n\t\t\tcout << str[i] ;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif (str[i - 1] >= 48&&str[i - 1] <= 57)\n\t\t\t{\n\t\t\t\tcout << endl ;\n\t\t\t}\n\t\t}\n\t}\n\tcout << endl ;\n\treturn 0 ;\n}\n\n"} +{"label": "88", "index": "43518", "code": "int main(){\n int n,i,j,l,o=0,k=0,p=0;\n char a[100],b[100][10]={' '},c[100][10]={' '};\n gets(a);\n l=strlen(a);\n for(i=0;i='0'&&a[i]<='9'){\n b[o][k++]=a[i];\n }\n if(!(a[i]>='0'&&a[i]<='9')){\n o++;\n k=0;\n }\n }\n for(i=0;i<=o;i++){\n if(strcmp(b[i],\" \")!=-1) printf(\"%s\\n\",b[i]);\n //printf(\"%d\\n\",strcmp(b[i],\" \"));\n }\n \n \n \n \n \n \n scanf(\"%d\",&i);\n return 0;\n }\n"} +{"label": "88", "index": "43519", "code": "//****************************************************************************************\n//* ??????? \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *\n//* ????????????????30??????????????????????? *\n//* ???????\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t *\n//* ???2010?12?8?\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *\n//****************************************************************************************\nint main()\n{\n\tchar str[31];\t\t\t\t\t\t\t\t\t\t//?????\n\tint num, i, p = 0;\t\t\t\t\t\t\t\t\t//????\n\tcin.getline (str, 31);\t\t\t\t\t\t\t\t//?????\n\tnum = strlen(str);\t\t\t\t\t\t\t\t\t//????????\n\tfor (i = 0; i < num; i++)\t\t\t\t\t\t\t//?????????\n\t{\n\t\tif ((*(str + i) >= '0') && (*(str + i) <= '9'))\n\t\t{\n\t\t\tif (p > 0)\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tp = 0;\n\t\t\t}\n\t\t\tcout << *(str + i);\n\t\t}\n\t\telse \n\t\t\tp++;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43520", "code": "/*\n *??? \n *2010 - 12 - 9 \n *?????3 - ???? \n */ \nint main()\n{\n char str[31];\n cin.getline ( str, 31 );\n char *p = NULL;\n int flag = 0, first = 1 ;//flag?????????????????0;first??????????????? \n for ( p = str; *p != '\\0'; p++ )\n {\n if ( *p <= '9' && *p >= '0' )//????? \n {\n if ( flag == 0 )//?????? \n {\n if ( first == 1 )//?????????? \n {\n cout << *p;//????????? \n first = 0;\n }\n else//?????????????? \n cout << endl << *p;\n }\n else//?????????? \n cout << *p;\n flag = 1;//???? \n }\n else//???? \n flag = 0;//?? \n }\n return 0;\n} "} +{"label": "88", "index": "43521", "code": "\nint main()\n{\n\tchar str[30];\n\tchar *p; //:????\n\tgets(str);\n\tp=str; //:????\n\n\tfor (int i=0;i=48 && p[i]<=57 && (p[i+1]<48 || p[i+1]>57) ) //:?????????????????\n\t\t\tcout<=48 && p[i]<=57 && (p[i+1]>=48 && p[i+1]<=57) )\n\t\t\tcout<=48 && p[strlen(p)-1]<=57) //:?????????\n\t\tcout<-1) deci=0;\n\t\tif (!((s[i]<='9'&&s[i]>='0')||(s[i]=='-')||(s[i]=='.'))) \n\t\t{\n\t\t\tnege=1;\n\t\t\tdeci=1;\n\t\t\tr=-1;\n\t\t}\n\t\tif ((s[i]<='9'&&s[i]>='0')&&(nege&&deci))\n\t\t{\n\t\t\tr++;\n\t\t\ta[r]=s[i];\n\t\t\tif (!((s[i+1]<='9'&&s[i+1]>='0')||(s[i+1]=='.')))\n\t\t\t{\n\t\t\t\tif (r==0) printf(\"%c\\n\",a[0]);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tk=-1;\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t\twhile (a[k]=='0');\n\t\t\t\t\tfor(;k<=r;k++)\n\t\t\t\t\t\tprintf(\"%c\",a[k]);\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\tnege=1;\n\t\t\t\t\tdeci=1;\n\t\t\t\t\tr=-1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43523", "code": "int main()\n{\n char a[40];\n char *p=a;\n cin.get(a,40);\n for(;*p!='\\0';p++)\n {\n\t if(*p>='0'&&*p<='9')\n\t {\n\t\t for(;*p>='0'&&*p<='9';p++)\n\t\t\t cout<<*p;\n\t\t cout<47&&*p<58)printf(\"%c\",*p);\n\t\tif((*(p-1)>47&&*(p-1)<58)&&(*p<48||*p>57))\n\t\t\tprintf(\"\\n\");}\n}\n\n"} +{"label": "88", "index": "43525", "code": "main()\n{\n char str[31];\n gets(str);\n int n;\n n=strlen(str);\n for(int i=0;i='0'&&str[i]<='9')\n printf(\"%c\",str[i]);\n else\n {\n printf(\"\\n\");\n for(;str[i]<'0'||str[i]>'9';i++)\n {}\n i--;\n }\n }\n getchar();\n}\n"} +{"label": "88", "index": "43526", "code": "/*\n * ????1206.cpp\n * ??????\n * ?????2012-12-16\n * ????????????\n */\n\n\n\nint main() {\n\tchar s[31], *p = NULL; //????\n\tcin.getline(s, 31); //????\n\tfor (p = s; p < s + strlen(s); ++p) {\n\t\tif (*p > 47 && *p < 58)\n\t\t\tcout << *p; //???????\n\t\telse {\n\t\t\tcout << endl;\n\t\t\twhile (*(p + 1) < 48 || *(p + 1) > 57)\n\t\t\t\t++p;\n\t\t} //?????????????????????\n\t}\n\treturn 0; //????\n}"} +{"label": "88", "index": "43527", "code": "int main()\n{\n\tchar a[31];\n\tint i, j, count;\n\tcin.getline(a, 31);\n\tcount = 0;\n\tfor(i = 0; ; i++)\n\t{\n\t\tif(a[i] == '\\0')\n\t\t{\n\t\t\tfor(j = i - count; j < i; j++)\n\t\t\t\tcout << a[j];\n\t\t\tcout << endl;\n\t\t\tbreak;\n\t\t}\n\t\tif(a[i] <= '9' && a[i] >= '0')\n\t\t\tcount++;\n\t\tif((a[i] > '9' || a[i] < '0') && (a[i - 1] <= '9' && a[i - 1] >= '0'))\n\t\t{\n\t\t\tfor(j = i - count; j < i; j++)\n\t\t\t{\n\t\t\t\tcout << a[j];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t\tcount = 0;\n\t\t}\n\t}\n\t\treturn 0;\n}"} +{"label": "88", "index": "43528", "code": "/*\n * pointer1.8.cpp\n *\n * Created on: 2013-12-8\n * Author: st\n * ?? - ??(12-4) ????\n\n?? POJ 2910\n??\n?????????????30????????????????????????????????????????\n\n????\n?????,?????30\n\n????\n???????????,??????. (??????)\n\n????\n123*456U17960? 302tab5876\n\n????\n123\n456\n17960\n302\n5876\n\n??\n??????????gets(c)\n *\n */\nint main()\n{\n\tchar str[35];\n cin.getline(str,35);\n char *p1,*p2;\n int i;\n p1=str;\n p2=str;\n int m=strlen(str);\n for(i=0;i=48)&&(str[m-1]<=57)){ //?????????\n \t p2=&str[m]; //???????????????????p2??????\n \tif((*p1!='-')&&(*p1>=48)&&(*p1<=57))\n \t\twhile(p1!=p2)\n \t\t cout<<*p1++;\n \telse {\n \t while((*p1<48)||(*p1>57))\n \t \t p1++;\n \t while(p1!=p2) //????\n \t cout<<*p1++;\n \t }\n \t}\n \telse //??????\n \t\tif((((str[i]<48)||(str[i]>57))&&(str[i]!=' '))&&(str[i-1]>=48)&&(str[i-1]<=57)){\n \t\tp2=&str[i];\n if((*p1!='-')&&(*p1>=48)&&(*p1<=57)){ //??????\n \twhile(p1!=p2)\n \t\tcout<<*p1++;\n cout<57))\n \t p1++;\n \twhile(p1!=p2)\n \t cout<<*p1++;\n \t cout< '9' || i == l)\n\t\t {\n\t\t\t for (k = j; k < i; k++)\n\t\t\t {\n\t\t\t\t cout << a[k];\n\t\t\t\t if (k == (i - 1))\n\t\t\t\t\t cout << endl;\n\t\t\t }\n\t\t\t j = i + 1;\n\t\t }\n\t return 0;\n}"} +{"label": "88", "index": "43531", "code": "int main()\n{\nchar str[1000];\nwhile(cin>>str)\n{for(int i=0;i='0')&&(str[i]<='9')) cout<'0')\n\t\t{\n\t\t\tif(word[i]>'9'||word[i]<'0')\n\t\t\t{\n\t\t\t\tif(flag==0)\n\t\t\t\t{\n\t\t\t\t\tfor(j=flag;j1&&flag>0)\n\t\t\t\t\tcout<=1&&flag==0)\n\t\t\t\t\tcout<'9'||word[i]<'0')\n\t\t\t{\n\t\t\t\tfor(j=flag+1;j1)\n\t\t\t\t\tcout<= 0 && *p - '0' <= 9)\n {\n p++;\n }\n else\n {\n while(*q != *p)\n {\n cout << *q++;\n }\n if(*(q - 1) - '0' >= 0 && *(q - 1) - '0'<= 9)\n cout << endl;\n p++;\n q = p;\n }\n }\n if(*(p - 1) - '0' >= 0 && *(p - 1) - '0' <= 9)\n {\n while(*q != *p)\n cout << *q++;\n cout << endl;\n }\n return 0;\n}\n"} +{"label": "88", "index": "43534", "code": "int main()\n{\n\tchar *str,*p;\n\tstr = (char *)malloc(30*sizeof(char));\n\t\n\tgets(str);\n\t\n\tfor(p=str;*p!='\\0';p++){\n\t\tif ((*p>'9'||*p<'0')&&(*(p+1)<='9'&&*(p+1)>='0')){\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\tif ((*p)<='9'&&(*p)>='0') printf(\"%c\",*p);\n\t}\n}\n"} +{"label": "88", "index": "43535", "code": "\nint main() {\n\tchar str[31];\n\tint i,j;\n\tgets(str);\n\tfor(i=0;str[i]!=0;i++){\n\t\tif(str[i]>=48&&str[i]<=57){\n\t\t\tfor(j=i;str[j]>=48&&str[j]<=57;j++)\n\t\t\t\tcout<=48&&a[i]<58)\n\t\t{\n\t\t\tcout <='0'))\n {\n if (num==0) a=i;\n b=i;num++;\n }\n else\n {\n if (num>0)\n {\n for (j=a;j<=b;j++)\n {\n printf(\"%c\",c[j]);\n }\n printf(\"\\n\");\n b=i;num=0;\n }\n }\n i++;\n }\n return 0;\n}\n"} +{"label": "88", "index": "43539", "code": "int main()\n{\n\tchar c[31];\n\tint i;\n\tgets(c);\n\tif(c[0]>=48&&c[0]<=57)\n\tprintf(\"%C\",c[0]);\n\tfor(i=1;i<31;i++)\n\t{\n\t\tif(c[i]>=48&&c[i]<=57)\n\t\tprintf(\"%c\",c[i]);\n\t\telse if(c[i-1]>=48&&c[i-1]<=57)\n\t\t printf(\"\\n\");\n\t}\n}"} +{"label": "88", "index": "43540", "code": "void main()\n{\n\tchar *c;\n\tint k=1;\n\tc=(char*)malloc(30*sizeof(char));\n\tgets(c);\n\tfor(;*c!='\\0';c++)\n\t{\n\t\tif((*c<48)||(*c>57))\n\t\t k=0;\n else if(k==0)\n {\n \tprintf(\"\\n%c\",*c);\n \tk=1;\n }\n else\n printf(\"%c\",*c);\n\t}\n}"} +{"label": "88", "index": "43541", "code": "//* * * * * * * * * * * * * * * * * * * * * * * * \n//*???????? *\n//*????????.cpp *\n//*????? 1000012839 *\n//*???2010.12.09 *\n//* * * * * * * * * * * * * * * * * * * * * * * * \n\n\nint main()\n{\n\tchar str[31];\t//\t?????str?\n\tint i, j;\t//\t??????i,j?\n\tchar *p = NULL;\t//\t?????\n\n\tcin.getline(str, 31);\n\tp = str;\t//\t????????????\n\ti = 0;\n\twhile (str[i] != '\\0')\n\t\ti++;\t//\t??i?????????\n\tfor (j = 0; j < i; j++)\n\t{\n\t\tif (*p >= '0' && *p <= '9')\n\t\t{\n\t\t\tcout << *p;\t//\t???????\n\t\t\tif (*(p + 1) < '0' || *(p + 1) > '9')\n\t\t\t\tcout << endl;\t//\t?????????????????\n\t\t}\n\t\tp++;\t//\t???????\n\t}\n\treturn 0;\n}\n\t\t\n\n"} +{"label": "88", "index": "43542", "code": "int main()\n{\n int i,k=0;\n\tchar s[40];\n\tgets(s);\n\tfor(i=0;i'9')&&(s[i-1]!='-'))\n\t\t{\n\t\t\twhile((s[i]>='0')&&(s[i]<='9')&&(i='0'&&s[i]<='9') printf(\"%c\",s[i]);\n if(s[i]>='0'&&s[i]<='9'&&!(s[i+1]>='0'&&s[i+1]<='9')) printf(\"\\n\");\n}\n}"} +{"label": "88", "index": "43544", "code": "//***********************************************\n//* ???????? * \n//* ?????? *\n//* ???12?24? * \n//***********************************************\nint main()\n{\n char a[35];\n cin.getline(a,32); //????? \n int l=strlen(a); //???? \n int i=0,k=0;\n while(i='0' && a[i]<='9') //??????????? \n {\n int count=1,j=i+1;\n while(a[j]>='0' && a[j]<='9')\n {\n count++; //????????? \n j++;\n }\n for(k=i;k'9') && a[i]!='-'){//???????????\n\t\t\ta[i]=' ';}\n\t\tif(a[i]=='-'){//????????????????\n\t\t\ta[i]=' ';\n\t\t\tfor(j=i+1;j='0' && a[j]<='9')\n\t\t\t\t\ta[j]=' ';\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}\n int x=0,y=0;//????????\n\tfor(i=0;i='0'&&a[i]<='9')\n printf(\"%c\",a[i]);\n if((a[i]>'9'||a[i]<'0')&&(a[i-1]>='0'&&a[i-1]<='9')) \n printf(\"\\n\");\n }\n return 0;\n}\n"} +{"label": "88", "index": "43547", "code": "int main()\n{\n\tint n,i,j,k;\n\tchar a[30];\n\tchar *s;\n\tgets(a);\n s=a;\n\tn=strlen(a);\n for(i=0;i='0'&&*(s+i)<='9')\n\t\t {\n\t\t\t j=0;\n\t\t\t printf(\"%c\",*(s+i));\n\t\t }\n\t\t else\n\t\t\t if(j==0)\n\t\t\t { printf(\"\\n\");\n\t continue;}\n\t\t\t else\n\t\t\t\t continue;\n}\n return 0;\n}"} +{"label": "88", "index": "43548", "code": "/**\n * ??????\n * ??: 1000012844\n * ??? ????\n **/\n\n\n\nint main()\n{\n\tchar str[ 32 ] = { 'q' }, *ptr = NULL;\t\t\t// ptr???????????????\n\tcin.getline( str + 1, 31 );\n\n\tfor ( ptr = 1 + str; ptr < 1 + str + strlen( str ); ptr++ )\n\t{\n\t\tif ( *ptr >= '0' && *ptr <= '9' && ( *( ptr - 1 ) > '9' || *( ptr - 1 ) < '0' ) )\n\t\t{\n\t\t\tcout << atoi( ptr ) << endl;\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43549", "code": "char x[1000];\nint main()\n{\n int i,len;\n gets(x+1);\n x[0]='0';\n len=strlen(x+1);\n for(i=1;i<=len;i++)\n {\n if(isn(x[i])&&!isn(x[i-1]))\n printf(\"\\n\");\n if(isn(x[i]))\n printf(\"%c\",x[i]);\n }\n //a getch();\n return 0;\n}\n"} +{"label": "88", "index": "43550", "code": "/* ????\n?????? 2010.12.12 */\nint main()\n{\n\tint num,flag=0;\n\tchar a[50];\n\tchar *p;\n\tcin.getline(a,sizeof(a));\n\ta[strlen(a)]='a';\n\tfor(p=a;p='0')\n\t\t{\n\t\t\tif(flag)\n\t\t\t\tnum=num*10+*p-'0';\n\t\t\telse\n\t\t\t\tnum=*p-'0';\n\t\t\tflag=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(flag==1)\n\t\t\t\tcout<= '0'&&*(s + i) <= '9')\n {\n t++;//?t???????\n *(temp + t) = *(s + i);\n if(i == strlen(s) - 1)//????????????\n for(int i = 1; i <= t; i++)\n cout << *(temp + i);\n continue;\n }\n else if(t != 0)\n {\n for(int i = 1; i <= t; i++)\n cout << *(temp + i);\n cout << endl;\n t = 0;\n }\n }\n return 0;\n\n}"} +{"label": "88", "index": "43552", "code": "void main()\n{\nchar *a;\na=(char*)malloc(10000*sizeof(char));\nint i;\ngets(a);\nfor(i=0;*(a+i)!='\\0';i++)\n{\nif(*(a+i)>=48&&*(a+i)<=57)\nprintf(\"%c\",*(a+i));\nelse printf(\"\\n\");\n}\n}"} +{"label": "88", "index": "43553", "code": "int main()\n{\n\tchar sen[31] , *p = NULL ;\t\t\t\t\t//sen?????????*p???\n\tint flag = 0 , len;\t\t\t\t\t\t\t\t//flag????len???????\n\tcin.getline(sen , 31) ;\n\tlen = strlen(sen) ;\t\t\t\t\t\t\t//????????\n\tfor (p = sen ; p < sen + len ; p++)\t\t\t//???????????\n\t{\n\t\tif(*p >= '0' && *p <= '9')\t\t\t\t//????????????flag??1\n\t\t{\n\t\t\tcout << *p ;\n\t\t\tflag = 1 ;\n\t\t}\n\t\tif((*p < '0' || *p > '9') && flag == 1)\t//??????????????????????????flag??0\n\t\t{\n\t\t\tcout << endl ;\n\t\t\tflag = 0 ;\n\t\t}\n\t}\n\treturn 0 ;\n}"} +{"label": "88", "index": "43554", "code": "/**\n* @file 1000012907_3.cpp\n* @author ???\n* @date 2010?12?11\n* @description\n* ??????: ???? \n*/\nint main() \n{\n\tchar str[31];\n\tint len, i, flag;\n\tchar *p = str;\n\tgets(str);\n\tlen = strlen(str);\n\tfor (p = str; p < str + len; p++)\n\t{\n\t\tif (*p - '0' >= 0 && *p - '0' <= 9)\n\t\t{\n\t\t\tcout << *p;\n\t\t\tflag = 0;\n\t\t}\n\t\telse if (flag == 0)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43555", "code": "int detc(char m)\n{\n\tif(m>=48&&m<=57)return 1;\n\telse return 0;\n}\nint main()\n{\n\tchar c[30];\n\tint i,j,k;\n\tint m,n;\n\tcin.getline(c,31,'\\n');\n n=strlen(c);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif((i==0&&detc(c[i])==1)||i!=0&&detc(c[i])&&!detc(c[i-1]))\n\t\t{\n\t\t\tfor(j=0;detc(c[i+j])==1;j++)\n\t\t\t{cout<=48&&*q<=57)\n\t\t\tprintf(\"%c\",*q);\n\t\telse if(*(q-1)>=48&&*(q-1)<=57)\n\t\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43557", "code": "/** c version **/\n\n\nint isDigit(char ch) {\n if (ch == '\\0') return -1;\n if ('0' <= ch && ch <= '9') return 1;\n return 0;\n}\n\nint main() {\n char *p = (char *) malloc(40 * sizeof(char));\n gets(p);\n do {\n p--;\n while (isDigit(*(++p)) == 0) {} // ignore non-digit chars\n p--;\n while (isDigit(*(++p)) == 1)\n printf(\"%c\", *p);\n printf(\"\\n\");\n } while (*p != '\\0');\n return 0;\n}\n"} +{"label": "88", "index": "43558", "code": "\nint main(){\n int tmp=-1;\n char ch;\n while (scanf(\"%c\",&ch)!=EOF){\n if ((ch<48)||(ch>57)){\n if (tmp>=0)\n printf(\"%d\\n\",tmp);\n tmp=-1;\n }else{\n if (tmp<0)\n tmp=ch-48;\n else\n tmp=tmp*10+ch-48;\n }\n }\n if (tmp>=0)\n printf(\"%d\\n\",tmp);\n}"} +{"label": "88", "index": "43559", "code": "\n\nint main()\n{\n\tchar s1[300],s2[300];\n\tchar *p1=s1,*p2=s2;\n\tint k=0;\n\t\n\tgets(s1);\n\tfor (;*p1!='\\0';p1++)\n\t{\n\t\tif (*p1>='0' && *p1<='9')\n\t\t{\n\t\t\tk++;\n\t\t\t*p2=*p1;\n\t\t\tp2++;\n\t\t}\n\t\telse if (k)\n\t\t{\n\t\t\tk=0;\n\t\t\t*p2='\\0';\n\t\t\tp2=s2;\n\t\t\tcout<=48&&*p<=57)\n\t\t{\n\t\t\tprintf(\"%c\",*p);\n\t\t\tif(*(p+1)<48||*(p+1)>57)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t}\n}"} +{"label": "88", "index": "43561", "code": "int main()\n{char s[32];\nchar *t=s;\nint b;\ngets(s);\nfor(;(*t)!='\\0';t++)\n{if((b=*t)>47&&(b=*t)<58)\n{printf(\"%c\",*t);\ncontinue;}\nelse if((b=*(t-1))>47&&(b=*(t-1))<58)\n{printf(\"\\n\");\ncontinue;}\n}\nreturn 0;\n}"} +{"label": "88", "index": "43562", "code": "/*\n * 12-4.cpp\n *\n * Created on: 2011-12-25\n * Author: wuch\n */\n\nint main(){\n\tchar s[30];\n\tint i,j;\n\tgets(s);\n\ti=0;\n\tj=1;\n\tfor (i=0;i<30;i++) if ('0'<=s[i]&&'9'>=s[i]) break;\n\twhile (*(s+i)){\n\t\tif ('0'<=*(s+i)&&'9'>=*(s+i)){\n\t\t\tif (j==1) cout<<*(s+i);\n\t\t\telse {\n\t\t\t\t\n\t\t\t\t cout<='0')\n{\nflag=0;\ncout<<*p;\np++;\n}\nelse if(flag==0)\n{\ncout<= '0')\n\t\t\tcout<<*p;\n\t\tif((!(*p<= '9' && *p>= '0')) && (*(p- 1)<= '9' && *(p- 1)>= '0'))\n\t\t\tcout<'9')) {i++; continue;} //????,????\n\t\twhile ((c[i]>='0')&&(c[i]<='9')&&(i='0'&&a[i]<='9')\n\tcout<l-1) break;\n\tcout<='0')\n\t\t\tbreak;\n\n\t\t\ti++;\n\t}\n\tt=i;\n\n\tif(i>l-1) break;\n\t}\n}\n\n"} +{"label": "88", "index": "43568", "code": "void main()\n{\n\tchar str[32];\n\tgets(str);\n\tchar *p=str;\n\tint i;\n\tfor(i=0;*(p+i)!='\\0';i++)\n\t{\n\t if(*(p+i)>='0'&&*(p+i)<='9')putchar(*(p+i));\n\t else if(*(p+i-1)>='0'&&*(p+i-1)<='9')putchar('\\n');\n\t}\n}"} +{"label": "88", "index": "43569", "code": "int main ()\n{\n\tint i,m;\n\tchar c[30];\n\tfor (i=0;;i++)\n\t{\n\t\tscanf(\"%c\",&c[i]);\n\t\tif (c[i]=='\\n')\n\t\t\tbreak;\n\t}\n\tif('0'<=c[0]&&c[0]<'9')\n\t\tprintf(\"%c\",c[0]);\n\tfor (m=1;m'9')\n\t\t{\n\t\t\tif('0'<=c[m-1]&&c[m-1]<='9')\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\telse if('0'<=c[m]<='9')\n\t\t\tprintf(\"%c\",c[m]);\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43570", "code": "\nint main()\n{\n char zfc[30];\n int i,len;\n gets(zfc);\n len=strlen(zfc);\n for(i=0;i='0'&&(*p1)<='9') \n {*p2=*p1;\n p1++;p2++;\n num=0;\n }\n if (((*p1)<'0'||(*p1)>'9')&&num==0) {*p2='\\0';\n p2=str;\n cout<'9')&&num>0) p1++; \n \n }\n \n return 0;\n}"} +{"label": "88", "index": "43572", "code": "//\n// main.cpp\n// Homework\n//\n// Created by ??? on 13-12-4.\n// Copyright (c) 2013? ???. All rights reserved.\n//\n\n\nint main()\n{\n char a[31];\n cin.getline(a,31);\n char *p=a;\n for(int i=0;i<31;i++)\n {\n if(*(p+i)>='0'&&*(p+i)<='9')\n cout<<*(p+i);\n else\n if(*(p+i+1)>='0'&&*(p+i+1)<='9')\n cout<='0'&&*p<='9')\n {\n for(q=p;*q!='\\0';q++)\n {\n if(*q<'0'||*q>'9')\n {\n cout<='0')&&(*q<='9')) //?????????? \n\t {\n\t\t\tcout<<*q;\n k=0;\n }\n\t else if(k==0) //???????????????????????\n\t\t{\n\t\t\tcout<=1;i--){\n c[i]=c[i-1];\n }\n c[0]='+';\n//??????????????????\n sum=0;\n for (i=1;i<31;i++){\n if ((c[i-1]!='-')&&(c[i]>='0')&&(c[i]<='9')){\n sum=sum+1;\n for (j=i;(c[j]>='0')&&(c[j]<='9');j++){\n printf(\"%c\",c[j]);\n }\n printf(\"\\n\");\n i=j;\n }\n }\n return 0;\n}"} +{"label": "88", "index": "43577", "code": "\nint main()\n{\n\tchar s[31];\n\tint i;\n\n\tgets(s);\n\n\tfor(i=0;i<30;i++){\n\t\tif((s[i]=='1'||s[i]=='2'||s[i]=='3'||s[i]=='4'||s[i]=='5'||s[i]=='6'||s[i]=='7'||s[i]=='8'||s[i]=='9'||s[i]=='0')&&(s[i+1]=='1'||s[i+1]=='2'||s[i+1]=='3'||s[i+1]=='4'||s[i+1]=='5'||s[i+1]=='6'||s[i+1]=='7'||s[i+1]=='8'||s[i+1]=='9'||s[i+1]=='0')){\n\t\t\tprintf(\"%c\",s[i]);\n\t\t}\n\t\tif((s[i]=='1'||s[i]=='2'||s[i]=='3'||s[i]=='4'||s[i]=='5'||s[i]=='6'||s[i]=='7'||s[i]=='8'||s[i]=='9'||s[i]=='0')&&s[i+1]!='1'&&s[i+1]!='2'&&s[i+1]!='3'&&s[i+1]!='4'&&s[i+1]!='5'&&s[i+1]!='6'&&s[i+1]!='7'&&s[i+1]!='8'&&s[i+1]!='9'&&s[i+1]!='0'){\n\t\t\tprintf(\"%c\\n\",s[i]);\n\t\t}\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "88", "index": "43578", "code": "//********************************************\n//?????????\n//??????\n//?????2010.12.10\n//??????????????\n//********************************************\nint main ()\n{\n\tchar a[31], *p;//?????????\n\tcin.getline (a,31);//????????\n\tfor (p = a; *p != '\\0',p < a + 31; p++)\n\t{\n\t\tif (*p <= '9' && *p >= '0') \n\t\t\tcout << *p;//??????????\n\t\telse if ( *(p-1) <= '9' && *(p-1) >='0')\n\t\t\tcout << endl;//????????????\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43579", "code": "void main()\n{\n \n int n,m=0;\n\tchar *s,*ps;\n s=(char*)malloc(1000*sizeof(char));\n gets(s);\n\tn=strlen(s); \n\t\n\tfor(ps=s;*ps!='\\0';ps++)\n\t{\t\n\t\tif(*ps>='0' && *ps<='9')\n\t\t\tprintf(\"%c\",*ps);\n\t\telse\n\t\t{\n\t\t\tif(*(ps+1)<58 && *(ps+1)>47)\n\t\t\t\tprintf(\"\\n\");\n\t\t}\n\n\t}\n}"} +{"label": "88", "index": "43580", "code": "/*\n * GetNumbers.cpp\n *\n * Created on: 2012-12-12\n * Author: ??\n * ???????\n */\n\n\nint main()\n{\n\tchar a[40] ;\n\tint len = 0 ;\n\tcin.getline( a , sizeof(a) ) ;\n\tlen = strlen(a) ;\n\tfor( int i = 0 ; i < len ; i++ )\n\t{\n\t\tif( i == len - 1 ){ //????\n\t\t\tif(*(a+i) >= '0' && *(a+i) <= '9')\n\t\t\t cout << *(a+i) << endl ;\n\t\t}\n\t\telse{\n\t\t\tif( *(a+i) >= '0' && *(a+i) <= '9' ) //?????\n\t\t {\n\t\t if( *(a+i+1) >= '0' && *(a+i+1) <= '9' ) //????????\n\t\t cout << *(a+i) ;\n\t\t\t else cout << *(a+i) << endl ; //????????\n\t\t }\n\t\t}\n\t}\n\treturn 0 ;\n}\n\n"} +{"label": "88", "index": "43581", "code": "int main(void)\n{\n char fib[SIZE];\n int i=1;\n int t=1;\n int loser[SIZE];\n char *ptr;\n loser[0]=-1;\n \n gets(fib);\n \n for(i=0;i='0')&&(fib[i]<='9')) \n i++;\n \n else\n loser[t++]=i++; \n }\n loser[t]=strlen(fib); \n ptr=&fib[0];\n for(i=0;i='0')&&(*(ptr+loser[i])<='9')) \n printf(\"\\n\"); \n \n \n } \n \n \n return 0;\n}\n"} +{"label": "88", "index": "43582", "code": "int main()\n{\n\tchar str[31];\n\tcin.getline(str,31);\n\tchar *p=str;//????str???p\n\twhile(*p!='\\0')\n\t{\n\t\tif(*p>=48 && *p<=57)//????????\n\t\t{\n\t\t\tcout<<*p;\n\t\t\tp++;\n\t\t}\n\t\telse//?????????\n\t\t{\n\t\t\tcout<57) && (*p!='\\0'));//???????????????\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43583", "code": "\nint main()\n{\n\tchar *p,s;\n\tint n,i,j=0,m=0,*q;\n\tp=(char*)malloc(40*sizeof(char));\n\tq=(int*)malloc(40*sizeof(int));\n\tgets(p);\n\tn=strlen(p);\n\tfor (i=0;i47&&*(p+i)<58)\n\t\t{\n\t\t\t*(q+j)=*(p+i)-48;\n\t\t//\tprintf(\"%d\\n\",*(q+j));\n\t\t\n\t\t\tj++;\n\t\t}\n\t\telse{ *(q+j)=-1;\n\t\tj++;\n\t\t}\n\n\t}\n\tfor (i=0;i='0') printf(\"%c\",*p);\n else if(*(p+1)<58&&*(p+1)>47) putchar('\\n');}\n}"} +{"label": "88", "index": "43585", "code": "int main()\n{\n\tint i;\n\tint l;\n\tint p=0,q=0;\n\tchar a[40];\n char b[40][40];\n\tgets(a);\n\tl=strlen(a);\n\t*(a+l)='a'; //????????\n\tfor(i=0;i='0')&&(*(a+i)<='9'))\n\t\t{\n\t\t\t*(*(b+p)+q)=*(a+i);\n\t\t\tq++;\n\t\t\tif((*(a+i+1)<'0')||(*(a+i+1)>'9'))\n\t\t\t{\n\t\t\t\t*(*(b+p)+q)='\\0';\n\t\t\t\tp++;\n\t\t\t\tq=0;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=48&&*(p+i)<=57) {printf(\"%c\",*(p+i));t=0;}\n else if (t==0){printf(\"\\n\");t=1;}\n }\n\n}"} +{"label": "88", "index": "43587", "code": "int main ()\n{\n\tchar s[35];\n\tgets(s);\n\tchar * ps=s;\n\tint i=0, num=0;\n\tfor(; *ps; ps++) {\n\t\tif (*ps>='0'&&*ps<='9') {\n\t\t\tnum+=*ps-'0';\n\t\t\tnum*=10;\n\t\t\ti=1;\n\t\t}\n\t\telse if (i==1) {\n\t\t\tprintf(\"%d\\n\", num/10);\n\t\t\tnum=0;\n\t\t\ti=0;\n\t\t}\n\t}\n\tif (i==1) printf(\"%d\\n\", num/10);\n\treturn 0;\n}"} +{"label": "88", "index": "43588", "code": "main()\n{\n int a,b,c,n,m;\n char x[35];\n gets(x);\n n=strlen(x);\n for(a=0;a<=n-1;a++)\n {\n if((x[a]=='0')&&((x[a+1]>'9')||(x[a+1]<'1')))\n printf(\"0\\n\");\n else;\n if((x[a]<='9')&&(x[a]>='1'))\n {\n m=0;\n if(a==0)\n m=1;\n else if(x[a-1]!='-')\n m=1;\n else;\n if(m=1)\n {\n for(b=a+1;b<=n-1;b++)\n {\n if((x[b]>'9')||(x[b]<'0'))\n break;\n else;\n }\n for(c=a;c<=b-1;c++)\n printf(\"%c\",x[c]);\n printf(\"\\n\");\n a=b-1;\n }\n else;\n }\n else;\n }\n}"} +{"label": "88", "index": "43589", "code": "\nint main()\n{\n int n, i;\n char num[30];\n gets(num);\n\n n=strlen(num);\n for(i=0;i=48&&num[i]<=57)\n {\n putchar(num[i]);\n i++;\n continue;\n }\n }\n printf(\"\\n\");\n }\n\n return 0;\n}"} +{"label": "88", "index": "43590", "code": "/*\n *function: ????\n *created on: 2012-12-17\n *author: ???\n */\nint main()\n{\n\tchar a[30];\n\tint len,i;\n\tgets(a); // ????????a???\n\tlen=strlen(a); \n\tif(*a>='0'&&*a<='9')\n\t\tcout << *a; // ?????????????\n\tfor(i=1;i='0'&&*(a+i)<='9')\n\t\t\tcout << *(a+i); // ?????????\n\t\telse if((*(a+i)<'0'||*(a+i)>'9')&&(*(a+i-1)>='0'&&*(a+i-1)<='9'))\n\t\t\tcout << endl; // ????????????????????\n\t\telse\n\t\t\tcontinue; // ??????\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43591", "code": "int main(){\n\tchar a[31];\n\tcin.getline(a,31);\n\tint i,j,k;\n\tfor(i=0;i='0'&&a[i]<='9'){\n\t\t\tfor(j=i+1;j='0'&&a[j]<='9'))break;\n\t\t\t}\n\t\t\tfor(k=i;k= '0'&&*(str+i) <= '9')\n\t\t\tcout << *(str+i);\n\t\telse{\n\t\t\tif (*(str+i+1) >= '0'&&*(str+i+1) <= '9')\n\t\t\t\tcout << endl;\n\t\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43593", "code": "int main()\n{\n\tchar a[30]=\" \";\n\tgets(a);\n\tint g=1;\n\tchar *p=a;\n\tfor(int i=0;i<30;i++)\n\t{\n\t\tif(*(p+i)>='0'&&*(p+i)<='9')\n\t\t{\n\t\t\tcout<<*(p+i);\n\t\t\tg=1;\n\t\t}\n\t\tif((*(p+i)<'0'||*(p+i)>'9')&&g==1)\n\t\t{\n\t\t\tcout<57)&&sum==0)\n\t\t{\n\t\t\tcout<57)&&sum>0)\n\t\t{}\n\t\telse\n\t\t{\n\t\t\tcout<<*point;\n\t\t\tsum=0;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43595", "code": "int main()\n{\n\tchar num[40] , temp[40][40];\n\tint i , j , L;\n\tint S = 0 , Order = 0;\n\tcin.getline(num,40) ;\n\tL = strlen(num) ;\n\tfor ( i = 0 ; i < L ; i ++ ) {\n\t\tif ( ( num[i] > '9' ) || ( num[i] < '0' ) ) {\n\t\t\tOrder ++ ;\n\t\t\tfor ( j = S ; j < i ; j++){\n\t\t\t\ttemp[Order][j-S] = num[j] ;\n\t\t\t}\n\t\t\ttemp[Order][j-S] = '\\0' ;\n\t\t\tfor ( j = i+1 ; j <= L ; j ++ ) {\n\t\t\t\tif ( ( num[j] <= '9' ) && ( num[j] >= '0' ) ) {\n\t\t\t\t\tS = j ;\n\t\t\t\t\ti = j-1 ;\n\t\t\t\t\tbreak ;\n\t\t\t\t}\n\t\t\t\telse if(num[j]=='\\0')\n\t\t\t\t\ti=L-1;\n\t\t\t}\n\t\t}\n\t}\n\tif((num[L-1]<='9')&&(num[L-1]>='0')){\n\t\tOrder ++ ;\n\t\tfor(i=S ; i='0'&&*(str+position-1)!='-')\n {\n for (i=position;*(str+i)<='9'&&*(str+i)>='0';i++)\n cout<<*(str+i);\n cout<='0'&&*(str+position-1)=='-')\n {\n for (i=position;*(str+i)<='9'&&*(str+i)>='0';i++);\n number(i);\n }\n else number(position+1);\n}\nint main()\n{\n int i;\n gets(str);\n number(0);\n}\n"} +{"label": "88", "index": "43597", "code": "int main()\n{\n\tchar c[32];\n\tgets(c);\n\tint state = 0;\n\tfor(int i = 0;i < strlen(c);i++)\n\t{\n\t\tif( * (c + i) >= '0' && *(c + i) <= '9')\n\t\t{\n\t\t\tif(state == 1)\n\t\t\t{\n\t\t\t\tcout<=48&&*pointer<=57){\n\t\t\tcout<<*pointer;\n\t\t\tflag=1;\n\t\t}\n\t\telse{\n\t\t\tif(flag==1)\n\t\t\t\tcout<= '0' && a[i] <= '9' )\n\t\t{\n\t\t\tchar *p = &a[i] ; //???????????\n\t\t\twhile ( a[i] >= '0' && a[i] <= '9' )\n\t\t\t\ti++ ;\n\t\t\ta[i] = '\\0' ; //????????\n\t\t\tcout << p<< endl ;\n\t\t}\n\t\ti++ ;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43600", "code": "int main()\n{int i,j;\nchar a[500];\ngets(a);\nfor(i=0;i='0'&&a[i]<='9')\ncout<='0'&&a[i]<='9')&&a[i+1]>='0'&&a[i+1]<='9')\ncout<47&&a[i]<58)\n\t\t{c[k]=&a[i];k++;f=0;}\n\t\telse \n\t\t{\n\t\tif(f==0)\n\t\t{c[k]=&d;k++;}\n\t\t\tf++;\n\t\t}\n\n\t}\n\tfor(i=0;i='0')&&(*(p+i)<='9'))\n\t\t{\n\t\t\tprintf(\"%c\",*(p+i));\n\t\t\tk=1;\n\t\t}\n\t\tif((k=1)&&!((*(p+i)>='0')&&(*(p+i)<='9')))\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tk=0;\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43603", "code": "int main(){\n\n\tint i,s,e,n;\n\tchar a[30];\n\tgets(a);\n\tn=strlen(a);\n\tfor(s=0;s='0')||(a[s]<='9'&&a[s]>='0')&&(a[s-1]>'9'||a[s-1]<'0')){\n\t\t e=s;\n\t\t\twhile(e!=n){\n\t\t\t\tif(a[e+1]>'9'||a[e+1]<'0')\n\t\t\t\t\tbreak;\n\t\t\t\te++;\n\t\t\t}\n\t\t\tfor(i=s;i<=e;i++)\n\t\t\t\tprintf(\"%c\",a[i]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43604", "code": "int function(int n)\n{\n\n}\nint main()\n{\n char str[30];\n cin.getline(str,40,'\\n');\n int i=0,n=strlen(str);\n for(i=0; i='0'&&str[i]<='9'&&str[i-1]!='-')\n cout<'9'))\n continue;\n else\n cout<=0&&*p-'0'<=9)\n\t\t{\n\t\t\t\tcout<<*p;\n\t\t\t\t{\n\t\t\t\t\tif((p+1)<(a+n)&&(*(p+1)-'0'<0||*(p+1)-'0'>9))\n\t\t\t\t\t\t cout<=0;i--)\n {\n if((str[i]<='9')&&(str[i]>='0'))\n {\n num[k]=num[k]+(str[i]-'0')*p(j);\n j++; \n }\n else if((str[i+1]<='9')&&(str[i+1]>='0'))\n {\n j=0;\n k++;\n }\n else continue;\n }\n if((str[0]>'9')||(str[0]<'0')) k--;\n for(int i=k;i>=0;i--) cout<= '0')\n\t\t{\n\t\t\tcout << *p;\n\t\t\tif(*(p+1) > '9' || *(p+1) < '0')\n\t\t\t\tcout << endl;\n\t\t}\n\t\tp++;\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43609", "code": "main()\n{\n char a[30];\n gets(a);\n for(int i=0;a[i]!='\\0';i++)\n {\n if(a[i]<='9'&&a[i]>='0'&&a[i+1]<='9'&&a[i+1]>='0')\n printf(\"%c\",a[i]);\n else if(a[i]<='9'&&a[i]>='0'&&(a[i+1]<='9'&&a[i+1]>='0')==0)\n printf(\"%c\\n\",a[i]);\n }\n}\n"} +{"label": "88", "index": "43610", "code": "int main(){\n\tchar a[31];\n\tcin.getline(a,31);\n\tfor(int i=0;i='0')\n\t\t\tif (a[i+1]>'9'||a[i+1]<'0')\n\t\t\t\tcout<=48&&*(a+i)<=57)\n\t\t{\n\t\t\t\n\t\tprintf(\"%c\",*(str+i));\n\t\t\n\t\tif(1-(*(a+i+1)<=57&&*(a+i+1)>=48))\n\t\t\tprintf(\"\\n\");\n\t\t}\n\n}"} +{"label": "88", "index": "43612", "code": "int main()\n{\n char *p,*q;\n p=(char*)malloc(30*sizeof(char));\n q=p;\n gets(q);\n for(q=p;*q!='\\0';q++)\n {\n if(*q>=48&&*q<=57)continue;\n else *q='*';\n }\n for(q=p;*q!='\\0';q++)\n {\n if(*q!='*')printf(\"%c\",*q);\n if(*q=='*'&&*(q+1)!='*')printf(\"\\n\");\n }\n \n \n}\n"} +{"label": "88", "index": "43613", "code": "int main()\n{ void prt(char a[],int n);\n\tint n=0;\n char a[31]={'\\0'};\n gets(a);\n n=strlen(a);\n prt(a,n);\n getchar();\n getchar();\n return(0);\n}\nvoid prt(char a[],int n)\n{ int i=0,t=0;\n for(i=0;i='0' && str[i]<='9')\n\t{\n\t\tcout<'9')\n\t\t\tcout<= 48 && *(a + i) <= 57)\n\t\t{\n\t\t\tif (!flag)\n\t\t\t\tflag = 1;\n\t\t\tif (flag == 1)\n\t\t\t\tcount ++;\n\t\t\tflag = 2;\n\t\t\tcout << *(a + i);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (flag)\n\t\t\t\tcout << endl;\n\t\t\tflag = 0;\n\t\t}\n\t}\n\tcout <47) \n\t{\n\t\tpt[0]=&a[0];\n\t\tj=1;\n\t}\n\tfor(i=1;i47&&(a[i-1]>58||a[i-1]<47))\n\t\t{\n\t\t\tpt[j]=&a[i];\n\t\t\tj=j+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a[i-1]<58&&a[i-1]>47&&(a[i]>58||a[i]<47))\n\t\t\t{\n\t\t\t\ts[j-1]=(&a[i]-pt[j-1]);\n\t\t\t}\n\t\t}\n\t}\n\tif(a[l-1]<58&&a[l-1]>47) s[j-1]=(&a[l-1]-pt[j-1]+1);\n\tfor(i=0;i='0'&&s[i]<='9')\n printf(\"%d\",s[i]-48);\n if((s[i]>='0'&&s[i]<='9')&&(s[i+1]=='\\0'||s[i+1]<'0'||s[i+1]>'9'))\n printf(\"\\n\");}\n return 0;\n}"} +{"label": "88", "index": "43618", "code": "void main()\n{\n\tchar str[300];int a[300];\n\tgets(str);\n\tint i;\n\tfor(i=0;i=48&&a[i]<=57)\n\t\t{\n\t\t\t\n\t\tprintf(\"%c\",str[i]);\n\t\t\n\t\tif(1-(a[i+1]<=57&&a[i+1]>=48))\n\t\t\tprintf(\"\\n\");\n\t\t}\n\n} "} +{"label": "88", "index": "43619", "code": "void main()\n{\n int i,j=0,k=0;\n char *p;\n p=(char *)malloc(30*sizeof(char));\n char (*q)[10];\n q=(char (*)[10])malloc(10*10*sizeof(char));\n char a[10][10];\n for(i=0;i<30;i++)\n scanf(\"%c\",p+i);\n for(i=0;*(p+i)!='\\0';i++)\n {\n if(*(p+i)>='0'&&*(p+i)<='9') {*(*(q+j)+k)=*(p+i);k++;}\n else \n if(*(p+i+1)>='0'&&*(p+i+1)<='9')\n {\n *(*(q+j)+k)='\\0';j++;k=0;\n }\n }\n *(*(q+j)+k)='\\0';\n for(i=0;i<=j;i++)\n printf(\"%s\\n\",*(q+i));\n}"} +{"label": "88", "index": "43620", "code": "char* getmemory(int num)\n{\n\tchar *p=(char*)malloc(num*sizeof(char));\n\treturn p;\n}\n\nvoid main()\n{\n\tchar *str,*p1,*a;\n\tint n,m,k;\n\tstr=getmemory(31);\n\tgets(str);\n\tn=strlen(str);\n\tp1=a=str;\n\tk=0;\n\tfor(;*str!='\\0';)\n\t{\n\t\tif(*str<'0'||*str>'9')\n\t\t{\t\n\t\t\tk+=1;\n\t\t\tif(*(str+1)>='0'&&*(str+1)<='9')\n\t\t\t{\n\t\t\t\tm=str-k-p1;\n\t\t\t\tif(p1==a){for(;p1<=str-k;p1++)printf(\"%c\",*p1);printf(\"\\n\");}\n\t\t\t\telse {for(p1=p1+1;p1<=str-k;p1++)printf(\"%c\",*p1);printf(\"\\n\");}\n\t\t\t\tp1=str;\t\n\t\t\t\tk=0;\n\t\t\t}\n\t\t}\n\t\tstr++;\n\t}\n\tif(p1==a)\n\t\tfor(;p1='0'&&*(org+i)<='9')\n\t\t{\n\t\t\tcount=0;\n\t\t\tprintf(\"%c\",*(org+i));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(i!=0&&count==0)printf(\"\\n\");\n\t\t\tcount++;\n\t\t}\n\t}\n}\n\n"} +{"label": "88", "index": "43622", "code": "int main()\n{\n\tchar a[30];\n\tint num[20] = {0}, i, j, flag;\n\tgets(a);\n\tfor (i = 0, j = 0; a[i] != '\\0'; i++)\n\t{\n\t\tif (a[i] >= '0' && a[i] <= '9')\n\t\t{\n\t\t\tnum[j] = num[j] * 10 + (a[i] - '0');\n\t\t\tflag = 1;\n\t\t}\n\t\telse if (i > 0 && a[i - 1] >= '0' && a[i - 1] <= '9')\n\t\t{\n\t\t\tj++;\n\t\t\tflag = 0;\n\t\t}\n\t}\n\tfor (i = 0; i < j; i++)\n\t\tcout << num[i] << endl;\n\tif (flag == 1)\n\t\tcout << num[j] << endl;\n\treturn 0;\n}"} +{"label": "88", "index": "43623", "code": "main()\n{\nchar str[31]={0};\nint i=0;\n\ngets(str);\n\nwhile(str[i])\n{\nif('0'<=str[i]&&str[i]<='9')\n{\nprintf(\"%c\",str[i]);\n}\nif(i>=1&&('0'<=str[i-1]&&str[i-1]<='9')&&!('0'<=str[i]&&str[i]<='9'))\n{\nprintf(\"\\n\");\n}\ni++;\n}\n\n\n\n}"} +{"label": "88", "index": "43624", "code": "int main()\n{\n\tchar *p,*q,*r;\n\tchar str[30];\n\tgets(str);\n\tfor(p=str;*p!='\\0';)\n\t{\n\t\tif(*p>='0'&&*p<='9'&&*(p-1)!='-')\n\t\t{\n\t\t\tq=p;\n\t\t\twhile(*q>='0'&&*q<='9')\n\t\t\t{ q++;}\n\t for(r=p;r=0&&'9'-a[i]>=0)\n\t\t{\n\t\t\tcout<='0'&&zifu[i]<='9'){ /*????????'',??????\n ???????????0-9????*/\n\t printf(\"%c\",zifu[i]);\n\t}else{\n\t if((zifu[i]<'0'||zifu[i]>'9')&&(zifu[i-1]>='0'&&zifu[i-1]<='9')){\n\t\tprintf(\"\\n\");\t/*????????*/\n\t }\n\t}\n }\n return 0;\n\n}\n"} +{"label": "88", "index": "43627", "code": "int main(){\n\tchar s[31];\n\tint i,t=0;\n\tgets(s);\n\tfor(i=0;s[i];i++){\n\t\tif(s[i]>='0'&&s[i]<='9'){\n\t\t printf(\"%c\",s[i]);\n\t\t t=1;\n\n\t\t}else{\n\t\t t=0;\n\t\t}\n\t\tif(t=1&&s[i+1]&&(s[i+1]<'0'||s[i+1]>'9')){\n\t\t printf(\"\\n\");\n\t\t}\n\n\t}\n return 0;\n\n\n}"} +{"label": "88", "index": "43628", "code": "int main()\n{\n\tchar a[31];\n\tint i;\n\tcin.getline(a, 31);\n\tfor (i = 0; i <= strlen(a) - 1; i++)\n\t{\n\t\tif (*(a + i) >= '0' && *(a + i) <= '9')\n\t\t\tcout << *(a + i);\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\twhile (*(a + i) < '0' || *(a + i) > '9')\n\t\t\t\ti++;\n\t\t\ti--;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43629", "code": "int main()\n{\n char c[31],*p=c;\n int a[31],*q=a,num=0,i;\n gets(c);\n for(; *p!='\\0'; p++)\n {\n if(*p>='0' && *p<='9')\n {\n *q=(*p)-'0';\n p++;\n while(*p>='0' && *p<='9')\n {\n *q=(*q)*10+(*(p++)-'0');\n }\n num=1+num;\n q=1+q;\n }\n }\n for(i=0,q=a; i= '0' && c <= '9')\n\t\t{\n\t\t\tif (flag == 0 && c == '0')\n\t\t\t{\n\t\t\t\twhile (c != '0')\n\t\t\t\t\tc = cin.get();\n\t\t\t}\n\t\t\tcout << c;\n\t\t\tflag = 1;\n\t\t}\n\t\telse if (flag)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tflag = 0;\n\t\t}\n\t\tc = cin.get();\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43631", "code": "int main()\n{\n char a[31],b[31];\n int j=0,n,x;\n gets(a);\n j=0;\n for(int i=0;a[i]!='\\0';i++)\n {\n if(a[i]>='0'&&a[i]<='9')\n {\n b[j]=a[i];\n j++;\n }\n else\n {\n if(j==0)continue;\n b[j]='\\0';\n printf(\"%s\\n\",b);\n j=0;\n }\n }\n b[j]='\\0';\n printf(\"%s\\n\",b);\n return 0;\n}\n"} +{"label": "88", "index": "43632", "code": "void main()\n{\nint i;\nchar *p;\np=(char*)malloc(1000*sizeof(int));\ngets(p);\nfor(i=0;*(p+i)!='\\0';i++)\n{\nif((*(p+i)>=48)&&(*(p+i)<=58)){printf(\"%d\",*(p+i)-48);}\nelse{printf(\"\\n\");}\n}\n}"} +{"label": "88", "index": "43633", "code": "int main()\n{\n\tchar temp[31];\n\tchar str[31];\n\tint k = 0, num = 0, k10;\n\tcin.getline(str, 31);\n\tfor(int i = 0; i < sizeof(str); i++)\n\t{\n\t\tif(str[i] >= '0' && str[i] <= '9')\n\t\t{\n\t\t\ttemp[k] = str[i];\n\t\t\tk++;\n\t\t}\n\t\telse \n\t\t\tif(str[i-1] >= '0' && str[i-1] <= '9')\n\t\t\t{\n\t\t\t\tk10 = 1;\n\t\t\t\tfor(int j = k - 1; j >= 0; j--)\n\t\t\t\t{\n\t\t\t\t\tnum += (temp[j] - '0') * k10;\n\t\t\t\t\tk10 *= 10;\n\t\t\t\t}\n\t\t\t\tcout << num << endl;\n\t\t\t\tk = 0;\n\t\t\t\tnum = 0;\n\t\t\t}\n\t}\n\tcin.get();\n\tcin.get();\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43634", "code": "// ???????.cpp : ??????????????\n//??????-?-?????????~~o?n?\n\n//#include \"stdafx.h\"\n\nint main()\n//int _tmain(int argc, _TCHAR* argv[])\n{\n\tchar a[100];\n\t//char *pa=&a[0];\n\tgets(a);\n\tint len=strlen(a),kk=0;//?kk????????????\n\tfor (int i=0;i='0'&& a[i]<='9')//?????\n\t\t\t{\t\t\t\t\n\t\t\t\tcout<= '0' && a[i + 1] <= '9' && a[i + 1] >= '0')\n\t\t\tcout << a[i];\n\t\tif (a[i] <= '9' && a[i] >= '0' && ( a[i + 1] > '9' || a[i + 1] < '0' ))\n\t\t\tcout << a[i] << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43636", "code": "void main()\n{ char*str,*p;int k=1;\n str=(char *)malloc(40*sizeof(char));\n gets(str);\n p=str;\n for (;*p!='\\0';p++)\n { if (*p>='0'&&*p<='9')\n {printf(\"%c\",*p);k=1;}\n else if(k=1) {printf(\"\\n\");k=0;}\n }\n}"} +{"label": "88", "index": "43637", "code": "int main()\n{\n\tchar str[35];\n\tint i;\n\tgets(str);\n\tfor(i=0;i='0'&&str[i]<='9')\n\t\t{\n\t\t\tcout<='0'&&str[i+1]<='9')\n\t\t\t{\n\t\t\t\tcout<='0'&&str[strlen(str)-1]<='9')\n\t{\n\t\tcout<47) cout<='0'&&string[i]<='9')cout<='0'&&string[i-1]<='9'){\n\t\t\t\tcout<='0'&&a[i]<='9')\n\t\t\t{\n\t\t\t\tfor(j=i;j'9')\n\t\t\t\t\t\t{cout<> a) // digit, not eof\n cout << a << endl;\n }\n return 0;\n}\n"} +{"label": "88", "index": "43645", "code": "int main()\n{\n\tchar a[200];\n\tint i , len , flag;\n\tcin.getline(a , 200);\n\tlen = strlen(a);\n\tif (a[0] >= '0' && a[0] <= '9')\n\t{\n\t\tcout << a[0];\n\t\tflag = 1;\n\t}\n\tfor (i = 1 ; i <= len - 1 ; i++)\n\t{\n\t\tif (flag == 1)\n\t\t{\n\t\t\tif (a[i] >= '0' && a[i] <= '9')\n\t\t\t{\n\t\t\t\tcout << a[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (a[i] >= '0' && a[i] <= '9')\n\t\t\t{\n\t\t\t\tflag = 1;\n\t\t\t\tcout << a[i];\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n\t\t\n"} +{"label": "88", "index": "43646", "code": "\nint main()\n{\n\tchar c[30],*a;\n\tint i,d;\n\tgets(c);\n\td=strlen(c);\n\tfor(a=c+0;a<=c+d-1;a++)\n\t\t{\n\t\t\tif(isdigit(*a))\n\t\t\tprintf(\"%c\",*a);\n\t\t\telse if(!isdigit(*a)&&a>(c+0)&&isdigit(*(a-1)))\n\t\t\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43647", "code": "\nint main()\n{\n\tint i;\n\tchar a[31];\n\tcin.getline(a,31);//????\n\tfor(i=0;a[i]!='\\0';i++)//?????????????????????????????\n\t\tif(a[i]>='0'&&a[i]<='9')cout<='0'&&a[i-1]<='9')cout<47&&x<58){return 1;}\n\treturn 0;}\nint main (){\n\tint i,all,count,start[30],end[30],p;\n\tchar sen[31];\n\tgets(sen);\n\tall=strlen(sen);\n\tcount=0;\n\tfor(i=0;i30){end[count-1]=all-1;}\n\tfor(i=0;i='0' && s[i]<='9' && flag!=1)\n\t\t{\n\t\t\tt=1;\n\t\t\tprintf(\"%c\",s[i]);\n\t\t\ti++;\n\t\t}\n\t\tif(t==1)\n\t\t{t=0;printf(\"\\n\");continue;}\n\t\tif(flag==1 && (s[i]<'0' || s[i]>'9'))\n\t\t{flag=0;continue;}\n\t\ti++;\t\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43650", "code": "void main()\n{\n\tvoid anaylse(char c[]);\n\tchar c[31];\n\tgets(c);\n\tanaylse(c);\n}\nvoid anaylse(char c[])\n{\n\tint i;\n\tfor(i=0;i<31;i++)\n\t{\n\t\tif(*(c+i)>47&&*(c+i)<58&&*(c+i+1)>47&&*(c+i+1)<58)\n\t\t\tprintf(\"%c\",*(c+i));\n\t\tif(*(c+i)>47&&*(c+i)<58&&(*(c+i+1)<=47||*(c+i+1)>=58))\n\t\t\tprintf(\"%c\\n\",*(c+i));\n\t}\n}\n\n\n"} +{"label": "88", "index": "43651", "code": "void main()\n{\n\tint l;\n\tchar *a,*p;\n\ta=(char*)malloc(30*sizeof(int));\n\tgets(a);\n\n\tl=strlen(a);\n\tfor(p=a;p=48)&&(*p<=57))\n\t\t{\n\t\t\tprintf(\"%c\",*p);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\tprintf(\"\\n\");\n}\n"} +{"label": "88", "index": "43652", "code": "int main()\n{\n char a[31];\n int i,j,k,s,b[31];\n cin.getline(a,31);\n s=strlen(a);\n for(i=0;i'9')\n {\n b[i]=1;\n }\n else b[i]=0;\n }\n\n for(i=0;i=0) //???????\n\t\t{\n\t\t\t*q=*p; \n\t\t\tp++;q++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(*(p-1)-'0'<10&&*(p-1)-'0'>=0 //????????+1\n\t\t\t&&*p-'0'>=10||*p-'0'<0)\n\t\t{\n\t\t\t*q='\\0';\n\t\t\tq=num[++s];\n\t\t\tp++;\n\t\t\tcontinue;\n\t\t}\n\t\telse p++; //????\n\t}\n\tfor(i=0;i'9') && *(X+i)!='-'){//???????????\n\t\t\t*(X+i)=' ';}\n\t\tif(*(X+i)=='-'){//????????????????\n\t\t\t*(X+i)=' ';\n\t\t\tfor(j=i+1;j='0' && *(X+j)<='9')\n\t\t\t\t\t*(X+j)=' ';\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}\n int x=0,y=0;//????????\n\tfor(i=0;i= '0')\n\t\t{\n\t\t\tw = n;\n\t\t\tfor(;*r <= '9' && *r >= '0';r++)\n\t\t\t{\n\t\t\t\t*w = *r;\n\t\t\t\tw++;\n\t\t\t}\n\t\t\t*w = '\\0';\n\t\t\tcout << n << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43656", "code": "int main()\n{\n //char a[32];\n int i;\n char *p,*p1,*q;\n //gets(a);\n p1=p=(char *)malloc(32*sizeof(char));\n for(i=0;*(p+i-1)!='\\n';i++)\n {\n scanf(\"%c\",(p+i));\n }\n //p=p1;\n for(q=(p+32);;q--)\n {\n if(*q>47&&*q<58) break;\n }\n for(;*p!='\\0';p++)\n { \n if(p47&&*p<58)&&(*(p+1)>47&&*(p+1)<58))\n {\n printf(\"%c\",*p);\n }\n if((*p>47&&*p<58)&&(*(p+1)<48||*(p+1)>57))\n {\n printf(\"%c\\n\",*p);\n }\n }\n if(p==q)\n {\n printf(\"%c\",*p);\n break;\n }\n }\n return 0;\n}"} +{"label": "88", "index": "43657", "code": "int main(){\n\tint i,b=0;\n\tchar a[30]={0};\n\tgets(a);\n\tfor(i=0;i<30;i++){\n\t\tif(b==0&&a[i]<48&&a[i]>57){\n\t\t\tcontinue;\n\t\t} //???????????????????b==0?????\\n??continue\n\t\telse if(a[i]>=48&&a[i]<=57){\n\t\t\tprintf(\"%c\",a[i]);\n\t\t\tb=b+1;\n\t\t} //??????ASCII??48?57????????????????b?1\n\t\tif(b>=1&&a[i]!='0'&&a[i]!='1'&&a[i]!='2'&&a[i]!='3'&&a[i]!='4'&&a[i]!='5'&&a[i]!='6'&&a[i]!='7'&&a[i]!='8'&&a[i]!='9'){\n\t\t\tprintf(\"\\n\");\n\t\t\tb=0;\n\t\t} //??????????????????b>=1?????\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43658", "code": "\n/*\n * tiqushuzi.cpp\n *\n * Created on: 2012-12-14\n * Author: asus\n */\n\nint main()\n{\n char s[40];\n cin.getline(s,40);\n int t = 0;\n char temp[40];\n for(int i = 0; i < strlen(s); i++)\n {\n if(s[i] >= '0'&&s[i] <= '9')\n {\n t++;\n temp[t] = s[i];\n if(i == strlen(s) - 1)\n for(int i = 1; i <= t; i++)\n cout << temp[i];\n continue;\n }\n else if(t != 0)\n {\n for(int i = 1; i <= t; i++)\n cout << temp[i];\n cout << endl;\n t = 0;\n }\n }\n\n}"} +{"label": "88", "index": "43659", "code": "int main()\n{\n\tchar string[35];\n\tcin.getline(string,35);\n\tint i,lenth=strlen(string);\n\tfor(i=0;i='0'&&string[i]<='9')\n\t\t\tif(string[i-1]!='-')\n\t\t\t\tfor(;i='0'&&string[i]<='9'))\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<= 48) {\n\t\t\tif (*(t + i - 1) != 45)\n\t\t\t\t*(t + i) = *(t + i) - 48;\n\t\t} //??????????\n\t\telse {\n\t\t\t*(t + i) = 32;\n\t\t}//??????????32\n\t}\n\ti = 0;//i???\n\twhile (i < l) {\n\t\tif (*(t + i) != 32) {\n\t\t\tcout << *(t + i);\n\t\t}//??32?????\n\t\telse if (*(t + i) == 32) {\n\t\t\tcout << endl;//?32?????h??\n\t\t\tfor (j = i; j < l; j++) {\n\t\t\t\tif (*(t + j) != 32) {\n\t\t\t\t\ti = j - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}//??????????????32?????\n\t\t\t}\n\t\t}\n\t\ti = i + 1;//????\n\t}\n\treturn 0;\n}//?????\n\n"} +{"label": "88", "index": "43662", "code": "int main()\n{\n\tchar c[50],*p=c;\n\tint a[50],*q=a,t=0,i;\n\tgets(c);\n\tfor(;*p!='\\0';p++)\n\t{\n\t\tif(*p>='0'&&*p<='9')\n\t\t{\n\t\t\t*q=(*p)-'0';\n\t\t\tp++;\n\t\t\twhile(*p>='0'&&*p<='9')\n\t\t\t\t*q=(*q)*10+(*(p++)-'0');\n\t\t\tt++;\n\t\t\tq++;\n\t\t}\n\t}\n\tfor(i=1,q=a;i<=t;i++,q++)\n\t\tprintf(\"%d\\n\",*q);\n\treturn 0;\n}\n"} +{"label": "88", "index": "43663", "code": "\nvoid main()\n{\n\tchar c;\n\tint num=0;\n\n\tc=getchar();\n\n\twhile(c!='\\n'){\n\t\tif(c>='0'&&c<='9'){\n\t\t\tnum=1;\n\t\t\tprintf(\"%c\",c);\n\t\t}\n\t\telse{\n\t\t\tif(num==1){\n\t\t\t\tputchar('\\n');\n\t\t\t\tnum=0;\n\t\t\t}\n\t\t}\n\t\tc=getchar();\n\t}\n}"} +{"label": "88", "index": "43664", "code": "int main()\n{\n char c[50];\n char *p = NULL; \n cin.getline(c,50);\n for ( p = c; p < c + strlen(c); p++ )\n {\n if ( *p >= '0' && *p <= '9' )\n {\n cout << *p; \n if ( p < c+strlen(c)-1 && *(p+1) >= '0' && *(p+1) <= '9' ) continue;\n cout << endl;\n }\n }\n \n return 0;\n}"} +{"label": "88", "index": "43665", "code": "int main()\n{\n\tchar zfc[100];\n\tgets(zfc);\n\tint i,k;\n\tfor(i=0;zfc[i]!=0;i++)\n\t{\n\t\tif(zfc[i]>='0'&&zfc[i]<='9')\n\t\t{\n\t\t\tfor(k=i;zfc[k]!=0;k++)\n\t\t\t{\n\t\t\t\tif(!(zfc[k+1]>='0'&&zfc[k+1]<='9'))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t for(i=i;i<=k;i++)\n\t\t\t{\n\t\t\t printf(\"%c\",zfc[i]);\n\t\t\t}\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43666", "code": "main(){\nint i,j,k;\nchar a[31];\nfor(i=0;i<31;i++)\na[i]='\\0';\ngets(a);\nk=strlen(a);\nfor(i=0;i='0'&&a[j]<='9'&&a[j-1]!='-'){\nprintf(\"%c\",a[j]);\na[j]='*';\nif(a[j+1]<'0'||a[j+1]>'9'){\nprintf(\"\\n\");\nbreak;\n}\n}\n}\n}\n}"} +{"label": "88", "index": "43667", "code": "int main()\n{\n\tchar s[30];\n\tgets(s);\n\tchar *a;\n\tfor(a=s;*a!='\\0';a++)\n\t{\n\t\tif(*a>='0'&&*a<='9')\n\t\t{\n\t\t\tprintf(\"%c\",*a);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a==s)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(*(a-1)>='0'&&*(a-1)<='9')\n\t\t\t\t{\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "88", "index": "43668", "code": "//????\n//by.???\n//on.20101229\n\nint main()\n{\n\tchar c[31];\n\tcin.getline(c,31); //??\n\tint i;\n\tfor(i=0;i 0))\n\t\t{\n\t\t\tcout<=48)&&(*(p+i)<=58)){printf(\"%d\",*(p+i)-48);}\nelse{printf(\"\\n\");}\n}\n}"} +{"label": "88", "index": "43670", "code": "int main()\n{\n int j,flag[40],start[40],end[40];\n char a[31];\n cin.getline(a,31,'\\n');\n int i=0,count=0;\n if(a[i]>'0'&&a[i]<'9') \n {\n flag[i]=1;\n start[1]=0;\n }\n else flag[i]=0;\n for(i=1;i<=30;i++)\n {\n if(a[i]>='0'&&a[i]<='9') \n {\n flag[i]=1;\n \n }\n else flag[i]=0;\n if(flag[i-1]==0&&flag[i]==1) \n {\n start[count+1]=i;\n }\n if(flag[i-1]==1&&flag[i]==0)\n {\n count++;\n end[count]=i-1;\n }\n \n }\n for(i=1;i<=count;i++)\n {\n for(j=start[i];j<=end[i];j++)\n {\n cout<=48&&*(c+i)<=57) { s=s*10+(*(c+i)-48); p=1;}\n else if (p) {printf (\"%d\\n\",s); s=0;p=0;}\n\t if (p) printf (\"%d\\n\",s); \n}"} +{"label": "88", "index": "43673", "code": "int main()\n{\n\tchar *p = NULL ;\n\tchar str[100] ;\n\tcin.getline(str,100) ;\n\tp = str ;\n\tint len = strlen(str) ;\n\tfor ( p = str ; p < str + len ; p++ )\n\t{\n\t\tif ( (int)*p >= 48 && (int)*p <= 57 )\n\t\t{\n\t\t\tif ( ((int)*(p - 1) < 48 || (int)*(p - 1) > 57) && p != str )\n\t\t\t{\n\t\t\t\tcout << endl ;\n\t\t\t}\n\t\t\tcout << *p ;\n\t\t}\n\t}\n\tcout << endl ;\n\treturn 0 ;\n}"} +{"label": "88", "index": "43674", "code": "int main()\n{\n\tchar ch[50];\n\tint i,j,t1=0,t2=0,n=0,l;\n\tcin.getline(ch,40,'\\n');\n\tl=strlen(ch);\n\tn=0;\n\tfor(i=0;i=48&&ch[i]<=57)\n\t\t{\n\t\t\tif(t1==0)t1=1;\n\t\t\tn*=10;\n\t\t\tn+=ch[i]-48;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(t1==1)cout<= '0')//??????????s??\n {\n if (s == -1)\n s = 0;\n s = s * 10 + *p - '0';\n }\n else//????????????\n {\n if (s != -1)\n cout << s << endl;\n s = -1;\n }\n }while(*p++);\n return 0;\n}\n"} +{"label": "88", "index": "43676", "code": "//****************************************************************************************\n//* ??????? \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *\n//* ????????????????30??????????????????????? *\n//* ???????\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t *\n//* ???2010?12?8?\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *\n//****************************************************************************************\nint main()\n{\n\tchar str[31];\t\t\t\t\t\t\t\t\t\t//?????\n\tint num, i, j, p = 0;\t\t\t\t\t\t\t\t//????\n\tcin.getline (str, 31);\t\t\t\t\t\t\t\t//?????\n\tnum = strlen(str);\t\t\t\t\t\t\t\t\t//????????\n\tfor (j = 0; j < num; j++)\t\t\t\t\t\t\t//???????????????\n\t{\n\t\tif ((*(str + j) >= '0') && (*(str + j) <= '9'))\n\t\tbreak;\n\t}\n\tfor (i = j; i < num; i++)\t\t\t\t\t\t\t//?????????\n\t{\n\t\tif ((*(str + i) >= '0') && (*(str + i) <= '9'))\n\t\t{\n\t\t\tif (p > 0)\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tp = 0;\n\t\t\t}\n\t\t\tcout << *(str + i);\n\t\t}\n\t\telse \n\t\t\tp++;\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "88", "index": "43677", "code": "void main()\n{\n\tchar *p,c,*q;\n\tint s=1,i=0;\n\tp=(char *)malloc(40*sizeof(char));\n\tdo\n\t{\n\t\tc=getchar();\n\t\tp[i]=c;\n\t\t\n\t\ti++;\n\t}\n\twhile(c!='\\n');\n\tq=p;\n\tfor(;*q!='\\n';q++)\n\t{\n\t\t\n\n\t\tif(*q>='0'&&*q<='9')\n\t\t{\n\t\t\t\n\t\t\t\tprintf(\"%c\",*q);\n\t\t s=0;\n\t\t}\n\t\tif((s==0 )&& (*q<'0'||*q>'9'))\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\ts=1;\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43678", "code": "/*\n *????????\n *?????\n *??: 2011-1-7\n */\n\n\nint main(){\n char s[100];\n cin.getline(s,100);\n int i=0;\n while(i=0){\n \t\tcout<=0)&&i='0'&&a[i-1]<='9')\n\t\t{cout<=48&&s[i]<=57&&s[i+1]>=48&&s[i+1]<=57)\n printf(\"%c\",s[i]);\n if(s[i]>=48&&s[i]<=57&&(s[i+1]<48||s[i+1]>57))\n printf(\"%c\\n\",s[i]);}\n getchar();\n getchar();\n return 0;\n }\n"} +{"label": "88", "index": "43681", "code": "int main()\n{\n\tint i, len;\n\tchar str[40], *q;\n\tcin.getline(str, 40);\n\tlen = strlen(str);\n\tq = str;\n\tfor( i = 0; i < len; i++ )\n\t{\n\t\tif( *(q + i) - '0' >= 0 && *(q + i) - '0' <= 9 )\n\t\t{\n\t\t\tcout << *(q + i);\n\t\t\tif( *(q + i + 1) - '0' < 0 || *(q + i + 1) - '0' > 9 )\n\t\t\t\tcout << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43682", "code": "int main(){\n char aa[100];\n int i;\n i=0;\n gets(aa);\n while(aa[i]!='\\0'){\n if(aa[i]<=57&&aa[i]>=48){\n cout<57||aa[i+1]<48)\n cout<='0'&&*str<='9')&&(flag==0)&&(k>0))\n\t\t\tprintf(\"\\n\");\n\t\tif(*str>='0'&&*str<='9')\n\t\t{\n\t\t\tprintf(\"%c\",*str);\n\t\t\tflag=1;\n\t\t\tk++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tflag=0;\n\t\t}\n\t\tstr++;\n\n\t}\n\t\n\t\treturn 0;\n}"} +{"label": "88", "index": "43684", "code": "int main()\n{\n\tchar c[31];\n char *p;\n\tgets(c);\n\tint i,k=strlen(c);\n for(p=c;p<=c+k-1;p++)\n\t{\n\t\tif(*p<'0'||*p>'9')continue;\n\t\telse\n\t\t{\n\t\t\tprintf(\"%c\",*p);\n\t\t\tif(p<=c+k-2)\n\t\t\t{\n\t\t\t\tif(*(p+1)<'0'||*(p+1)>'9')printf(\"\\n\");\n\t\t\t}\n\t\t\telse printf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43685", "code": "\nmain(){\n char *p;\n int i,len;\n p=(char*)malloc(30);\n gets(p);\n len=strlen(p);\n for(i=0;i=48&&*(p+i)<=57){\n printf(\"%c\",*(p+i));\n }\n else if((*(p+i-1)>=48&&*(p+i-1)<=57)||*(p+i+1)=='\\0'){\n printf(\"\\n\");\n }\n }\n printf(\"\\n\");\n}\n"} +{"label": "88", "index": "43686", "code": "int main()\n{\nchar c[1000];\ngets(c);\nint i,n,j,t=0;\nn=strlen(c);\nfor(i=t;i='0')&&(c[i]<='9'))\ncout<='0')&&(c[j]<='9'))\n{\ncout<47&&(*p)<58)\n\t\tprintf(\"%c\",*p);\n\tfor(i=1;i47&&*(p+i)<58)&&(*(p+i-1)<48||*(p+i-1)>57))\n\t\t\tprintf(\"\\n\");\n\t\tif(*(p+i)>47&&*(p+i)<58)\n\t\t\tprintf(\"%c\",*(p+i));\n\t}\n\t\t\n\t\n}"} +{"label": "88", "index": "43689", "code": "int main(){\n\tchar f[10000];\n\tcin.getline(f,10000);\n\tfor(int i=0;i=0&&f[i]-'0'<=9)\n\t\t\tcout<=0&&f[i]-'0'<=9)==0&&(f[i+1]-'0'>=0&&f[i+1]-'0'<=9)==1)\n\t\t\tcout<='0'&&p[i-1]!='-')\n\t\t{\n\t\t\tcout<'9'||p[i+1]<'0')\n\t\tcout<>q;\n\treturn 0;\n}"} +{"label": "88", "index": "43691", "code": "//***************************************************************\n//*?????????.cpp *\n//*?????? *\n//*?????2010?12?27? *\n//*?????????? *\n//***************************************************************\nint main()\n{\n\tchar letter[31];\n\tcin.getline(letter,31,'\\n');//???????????\n\tint i=0;\n\tint j=0;\n\tint k=0;\n\tchar temp[30][30];\n\tfor(i=0;i<31;i++)\n\t{\n\t\tif(letter[i]>='0'&&letter[i]<='9')//?????????????\n\t\t{\n\t\t\ttemp[k][j]=letter[i];\n\t\t\tj++;//?????\n\t\t}\n\t\tif((letter[i]<'0'||letter[i]>'9')&&(letter[i-1]>='0'&&letter[i-1]<='9'))//??????????\n\t\t{\n\t\t\ttemp[k][j]='\\0';//?????????\n\t\t\tcout<='0')&&(sz[i]<='9')){\n\t\t\tprintf(\"%c\",sz[i]);\n\t\t}else{\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43693", "code": "\nint main(){\n\tint i,j,m=0,c;\n\tchar a[40];\n\tcin.getline(a,31);\n\tc=strlen(a);\n\tfor(i=0;i='0'&&a[i]<='9'&&!(a[i+1]>='0'&&a[i+1]<='9')){\n\t\t\tfor(j=m;j<=i-1;j++){\n\t\t\t\tif(a[j]>='0'&&a[j]<='9')cout<='0')&&(s[i]<='9'))\n\t\t{\n\t\t\tfor(j=i;;j++)\n\t\t\t{\n\t\t\t\tif((s[j]>='0')&&(s[j]<='9'))\t\n\t\t\t\t{\n\t\t\t\t\tcout<='0'&&s[j]<='9')\n\t\ttemp[c++]=s[j];\n\t\telse \n\t\t{\n\t\t\ttemp[c]='\\0';\n\t\t\tc=0;\n\t\t\tprintf(\"%s\\n\",temp);\n\t\t}\n\t\tj++;\n\t}\n\ttemp[c]='\\0';\n\tprintf(\"%s\",temp);\n\treturn 0;\n}\n\t\t\n\t\t\n\t\n"} +{"label": "88", "index": "43696", "code": "int main()\n{\n\tchar shuru[500];\n\tcin.getline(shuru,500);\n\tint a = 0, i = 0;\n\ta = strlen(shuru);\n\tif(shuru[0] >= '0' && shuru[0] <= '9')\n\t\tcout << shuru[0];\n\tfor(i = 0; i <= a - 1; i++)\n\t{\n\t\tif(i != 0)\n\t\t{\n\t\t\tif(shuru[i] >= '0' && shuru[i] <= '9')\n\t\t\t\tcout << shuru[i];\n\t\t\tif((shuru[i] < '0' || shuru[i] > '9') && (shuru[i - 1] >= '0' && shuru[i - 1] <= '9'))\n\t\t\t\tcout << endl;\n\t\t}\n }\n\tcout << endl;\n\treturn 0;\n}\n"} +{"label": "88", "index": "43697", "code": "int main()\n{\n char z[30],*p;\n\tgets( z );\n\tp=z;\n\tint i;\n\tfor ( i=0 ; z[i]!='\\0' ; i++ )\n\t{\n\t\tif ( *(p+i)>='0'&&*(p+i)<='9' )\n\t\t{\n\t\t\tif ( ( *(p+i-1)>'9'||*(p+i-1)<'0' )&&i!=0 )\n\t\t\t\tcout<47&&a[i]<58)\n\t\t{\n\t\t\tfor(j=0;j47&&a[i+j]<58)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%c\",s[i+j]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\ti=i+j;\n\t\t}\n\t}\n}\n\n\t\n"} +{"label": "88", "index": "43699", "code": "\nint main()\n{\n char a[999]={'\\0'};\n \n int i;\n gets(a);\n \n for(i=0; a[i]!='\\0'; i++)\n {\n if(a[i]>='0'&&a[i]<='9')\n {\n printf(\"%c\", a[i]);\n if(a[i+1]<'0'||a[i+1]>'9')\n printf(\"\\n\");\n }\n } \n \n return 0;\n}"} +{"label": "88", "index": "43700", "code": "int main()\n{\nint x=0;\nchar a[35];\ngets(a);\nfor (int i=0;a[i]!='\\0';i++)\n if (a[i]>='0'&&a[i]<='9')\n {\n printf(\"%d\",a[i]-'0');\n for (int j=1;;j++)\n if (a[i+j]>='0'&&a[i+j]<='9')\n printf(\"%d\",a[i+j]-'0');\n else {i=i+j-1;printf(\"\\n\");break;}\n }\n}\n"} +{"label": "88", "index": "43701", "code": "int main()\n{\n\tchar zf[31];\n\tint i,j,k;\n\tgets(zf);\n\tfor (i=0;zf[i]!='\\0';i++){\n\t\tif (zf[i]=='0'||zf[i]=='1'||zf[i]=='2'||zf[i]=='3'||zf[i]=='4'||zf[i]=='5'||zf[i]=='6'||zf[i]=='7'||zf[i]=='8'||zf[i]=='9')\n\t\t\tprintf(\"%c\",zf[i]);\n\t\telse printf(\"\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43702", "code": "/*???:????\n**???:??\n**? ?:2010?12?10?\n*/\nint main()\n{\n\tchar str[31], *p, *q;\n\tint sum;//?????????\n\tcin.getline(str, 31);\n\tfor (q = str; *q != '\\0'; q++)//??\n\t{\n\t\tsum = 0;\n\t\tif (*q >= '0' && *q <= '9')//????\n\t\t{\n\t\t\tsum += *q - '0';\n\t\t\tfor (p = q + 1; *p <= '9' && *p >= '0'; p++)//?????,???????????'\\0'\n\t\t\t\tsum = sum * 10 + *p - '0';//????\n\t\t\tcout << sum << endl;//??,??p???????\n\t\t\tif (*p == '\\0')\n\t\t\t\tbreak;//?????,???\n\t\t\tq = p;//??????????,????????????????\t\t\t\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43703", "code": "int main( )\n{ int i,j;\nchar c[35],*p;\n\t gets(c); //?????\n\t for(p=c;*p!=0;p++)\n\t { if (*p>=48&&*p<=57) //????????\n\t { for (j=0;1;j++)\n\t { if ((*(p+j))>=48&&(*(p+j)<=57))\n\t{ cout<<*(p+j);}\n\t else {cout<='0'&&*(s+i)<='9') {cout<<*(s+i);flag++;} //???????????????1\n else if(*(s+i+1)>=0&&*(s+i+1)<='9'&&flag) cout<=48&&str[i]<=57){\n\t\t\tprintf(\"%c\",str[i]);\n\t\t}else if(i>0&&str[i-1]>=48&&str[i-1]<=57){\n\t\t\tprintf(\"\\n\");\n\t num+=1;\n\t\t}\n\t\t\n\t}\n\tif(str[len-1]>=48&&str[len-1]<=57){\n\t\t\tnum+=1;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "88", "index": "43706", "code": "//\n// main.cpp\n// hw\n//\n// Created by ? ? on 12-12-19.\n// Copyright (c) 2012? ? ?. All rights reserved.\n//\n\nint number (char x)\n{\n if (x>='0'&&x<='9') {\n return 0;\n }\n else\n {\n return 1;\n }\n}\nint main(int argc, const char * argv[])\n{\n char str[LEN+3];\n gets(str);\n int len=strlen(str);\n str[len+1]='^';\n for (int i=0; i'0'&&a[i]<='9')\n\t\t{\n\t\t\tfor (j=i+1;j'9'||a[j]<'0')\n\t\t\t\t\tbreak;\n\t\t\tfor (k=i;k='0'&&*(p+i)<='9') {*(*(q+j)+k)=*(p+i);k++;}\n else \n if(*(p+i+1)>='0'&&*(p+i+1)<='9')\n {\n *(*(q+j)+k)='\\0';j++;k=0;\n }\n }\n for(i=0;i<=j;i++)\n printf(\"%s\\n\",*(q+i));\n}"} +{"label": "88", "index": "43709", "code": "int main(){\nint i,j;\nj=0;\nchar zfc[31],jg[31];\ngets(zfc);\nfor(i=0;zfc[i]!=0;i++){\n\tif(zfc[i]>='0'&&zfc[i]<='9'){\n\t\tjg[j]=zfc[i];\n\t\tif(zfc[i+1]>='0'&&zfc[i+1]<='9'){\n\t\t\tj++;\n\t\t\tcontinue;\n\t\t}else{\n\t\t\tjg[j+1]=0;\n\t\t\tputs(jg);\n\t\t\tj=0;\n\t\t}\n\t}\n}\n return 0;\n}\n\n\n"} +{"label": "88", "index": "43710", "code": "int main()\n{\n int step=0; //step????????????????????????\n char *p,*q; //p????????????q????????????\n char str[50]; //????????\n cin.getline(str,31,'\\n'); //?????\n for(p=str;p'9') //????\n continue;\n else \n {\n for(q=p;q='0' && *q<='9') //???????????p??????????\n {\n step++;\n cout<<*q;\n }\n else \n {\n cout<='0'&&a[i]<='9')\n\t\t{\n\t\t\tp[i]=&a[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp[i]=NULL;\n\t\t}\n\t}\n\tfor(i=0;i='0'&&a[i]<='9')\n\t\t{\n\t\t\tfor(j=i;a[j]>='0'&&a[j]<='9';j++)\n\t\t\t{\n\t\t\t\tcout<'9'||a[i]<'0'){i++;continue;}\n\n\tfor(j=i;(a[j]<='9')&&(a[j]>='0');j++)\n\t{\n\t\tcout<='0' && *p<='9')\n\t\t{\n\t\t\tp++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(;q'9') ) p++;\n\t\t\tq=p;\n\t\t}\n\t}\n\treturn 0;\n}\n "} +{"label": "88", "index": "43715", "code": "void main()\n{\n\tint i;\n\tchar c[31];\n\tgets(c);\n char *p=c;\n\tfor(i=0;c[i]!='\\0';i++,p++)\n\t\t{if(*p>='0'&&*p<='9')\n\t\t\tprintf(\"%c\",*p);\n\t\telse \n\t\t{ if(*(p+1)>='0'&&*(p+1)<='9')\n\t\t\tprintf(\"\\n\");\n\t}\n\t}\n\t\n}"} +{"label": "88", "index": "43716", "code": "int main()\n{\n\tchar *p = NULL;\n\tchar a[31];\n\tcin.getline(a,31);\n\tint length = strlen(a), flag = 0;\n\tp = a;\n\tfor (p = a; p < a + length; p++)\n\t{\n\t\tif ((*p - '0') >= 0 && (*p - '0') <= 9)\n\t\t{\n\t\t\tcout<<*p;\n\t\t\tflag = 0;\n\t\t}\n\t\telse if (flag == 0)\n\t\t{\n\n\t\t\tcout<'9') //???????\n\t\t{\t\n\t\t\tk+=1;\n\t\t\tif(*(str+1)>='0'&&*(str+1)<='9') //????????\n\t\t\t{ //????????\n\t\t\t\tm=str-k-p1;\n\t\t\t\tif(p1==a){for(;p1<=str-k;p1++)printf(\"%c\",*p1);printf(\"\\n\");}\n\t\t\t\telse {for(p1=p1+1;p1<=str-k;p1++)printf(\"%c\",*p1);printf(\"\\n\");}\n\t\t\t\tp1=str;\t\n\t\t\t\tk=0;\n\t\t\t}\n\t\t}\n\t\tstr++;\n\t}\n\tif(p1==a)\n\t\tfor(;p1= 1; i --)\n\t\tstr[i] = str[i - 1];\n\tstr[0] = 'a';\n\tstr[++ len] = '\\0';\n\n\tfor (i = 0; i < len; i ++)\n\t{\n\t\tif (!isdigit(str[i])) //???\n\t\t{\n\t\t\tif (i == pos_c + 1) //?????????\n\t\t\t\tpos_c = i;\n\t\t\telse\n\t\t\t{\n\t\t\t\tint ok = 0; //ok????????\n\t\t\t\tfor (j = pos_c + 1; j < i; j ++) //????????+1??????????-1??\n\t\t\t\t{ok = 1; cout << str[j];}\n\t\t\t\tif (ok) cout << endl;\n\t\t\t\tpos_c = i; //????????\n\t\t\t}\n\t\t}\n\t}\n\n\tint ok = 0;\n\tfor (j = pos_c + 1; j < len; j ++) //??????????????\n\t{ok = 1; cout << str[j];}\n\tif (ok) cout << endl;\n\treturn 0;\n}\n"} +{"label": "88", "index": "43720", "code": "void sort(int a[],int n)\n{\n\tint t,i;\n\tt=a[n-1];\n\tfor(i=n-1;i>0;i--)\n\t\ta[i]=a[i-1];\n a[0]=t;\n}\nvoid main()\n{\n\tchar s[300];\n\tint i,flag=0;\n\tgets(s);\n\tfor(i=0;s[i]!='\\0';i++)\n\t\tif(s[i]>='0'&&s[i]<='9') {printf(\"%c\",s[i]); flag=1;}\n\t\telse if(flag==1) {printf(\"\\n\");flag=0;}\n\n}"} +{"label": "88", "index": "43721", "code": "//****************************************************************\n// ????1000012789_3.cpp *\n// ???wusy *\n// ???12,8 *\n// ??????? *\n//****************************************************************\nint main()\n{ \n\tint i;\n\tchar a[31], *p = NULL;\n\tcin.getline(a,31);\n\tp = a;\n\n\tfor (i = 0; *(p + i) != '\\0'; i++)\n\t{\n\t\tif (*(p + i) <= '9' && *(p + i) >= '0' && *(p + i + 1) <= '9' && *(p + i + 1) >= '0')\n\t\t\tcout << *(p + i);\n\t\tif (*(p + i) <= '9' && *(p + i) >= '0' && ( *(p + i + 1) > '9' || *(p + i + 1) < '0' ))\n\t\t\tcout << *(p + i) << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43722", "code": "int main()\n{\n char string[30];\n gets(string);\n char *p=string;\n int clen,nolen=0;\n clen=strlen(string);\n for(int i=0;i'9')\n\t {\n\t\t int ilen=0;\n if(*(p+i-1)<'0'||*(p+i-1)>'9')\n\t { nolen++;ilen++;int jj=1;\n\t while(1)\n\t {\n\t if(*(p+jj+i)<'0'||*(p+jj+i)>'9')\n\t {nolen++;ilen++;jj++;}\n\t else break;\n\t }\n\t for(int j=i;j'9')&&(string[j]!='\\n'))\n {\n string[j]='\\0';break;\n }\n }\n cout<='0'&&*(str+i)<='9')cout<<*(str+i);\n\t\telse if(i!=0&&*(str+i-1)>='0'&&*(str+i-1)<='9')cout<=48)&&(*p<=57))\n {\n if((*(p+1)>=48)&&(*(p+1)<=57))\n cout<<*p;\n if((*(p+1)<48)||(*(p+1)>57))\n cout<<*p<='0'&&a<='9') return 1;\n\treturn 0;\n}\nvoid main()\n{\n\tchar s[100];\n\tgets(s);\n\tint j,i,k=0,m=0;\n\tfor (i=0;i0&&ch(s[i])&&!ch(s[i-1]))\n\t\t k=i;\n\t if (i>0&&!ch(s[i])&&ch(s[i-1]))\n\t\t {\n\t\t\t m=1;\n\t\t\t for (j=k;j<=i-1;j++)\n\t\t\t\t printf(\"%c\",s[j]);\n\t\t\t printf(\"\\n\");\n\t\t }\n\t if (ch(s[i])&&i==strlen(s)-1)\n\t\t\t\t {\n\t\t\t\t\t m=1;\n\t\t\t for (j=k;j<=i;j++)\n\t\t\t\t printf(\"%c\",s[j]);\n\t\t\t printf(\"\\n\");\n\t\t\t }\n\t}\n}"} +{"label": "88", "index": "43726", "code": "/*\n * tiqushuzi.cpp\n *???????\n * Created on: 2012-12-24\n * Author: ??\n */\n\nint main(){\n\tchar str[50],*p=str;//?????????\n\tint i=0;\n\tgets(p);//??\n\tfor(i=0;*(p+i)!='\\0';i++){\n\t\tif(*(p+i)<48||*(p+i)>57)\n\t\t\tcontinue;//????\n\t\tif(*(p+i+1)<48||*(p+i+1)>57)\n\t\t\tcout<<*(p+i)<='0'&&*p<='9')\n\t\t\tprintf(\"%c\",*p);\n\t\telse\n\t\t{\n\t\t\tfor(p2=p;*p2!='\\0';p2++)\n\t\t\t\tif(*p2>='0'&&*p2<='9')\n\t\t\t\t{\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n}"} +{"label": "88", "index": "43728", "code": "main()\n{\n int i;\n char a[30];\n gets(a);\n for(i=0;i<30;i++)\n {\n if(a[i]>=48&&a[i]<=57)\n printf(\"%c\",a[i]);\n else\n {\n if(a[i-1]>=48&&a[i-1]<=57)\n printf(\"\\n\");\n }\n }\n}"} +{"label": "88", "index": "43729", "code": "\nint main() {\n\tchar a[31];\n\tchar *p=a;\n\tint i=0;\n\tcin.getline(a,31);\n\tfor(i=0;i47&&*(p+i)<58)\n\t\t\tcout<<*(p+i);\n\t\telse if((*(p+i)<=47||*(p+i)>=58)&&(*(p+i+1)>47&&*(p+i+1)<58))\n\t\t\t cout<='0' && str[i]<='9'){\n\t\t\tk++;\n\t\t\tcontinue;\n\t\t}\n\t\telse if(k==0) continue;\n\t\telse{\n\t\t\tfor(int j=0; j='0' && *p<='9'){ //???????????\n\t\t\tcout << *p;\n\t\t\tnNumbers++;\n\t\t}\n\t\telse if (nNumbers && *(p-1)>='0' && *(p-1)<='9') //???????????\n\t\t\tcout << endl;\n\t\tif (!*p) break; //??\\0,????\n\t}\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43732", "code": "//*******************************************************************\n//* ????????\t\t\t \t\t\t\t\t\t\t\t\t*\n//* ????????????????\t\t\t\t\t\t\t\t*\n//*??? ???\t\t\t\t\t\t\t\t\t\t\t\t\t*\n//*???2010?12?8?\t\t\t\t\t\t\t\t\t\t\t\t*\n//*******************************************************************\nint main()\n{\n\tchar str[31]; //????????\n\tcin.getline (str, 31);\n\tchar * p = str; //??????????\n\tint i = 0;\n\twhile (p < str + strlen(str))\n\t{\n\t\tif (*p >='0' && *p <= '9') //??????????\n\t\t\tcout << * p;\n\t\tif ( *p >= '0' && *p <= '9' && !(*(p + 1) >='0' && *(p + 1) <= '9'))\n\t\t\tcout << endl;//??????????????????????\n\t\tp ++;\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43733", "code": "int main()\n{\n\tchar s[40];\n\tgets(s);\n\tchar *p=s;\n\tint sum=0,sign,i,j,k;\n\tfor(i=0;i='0'&&p[i+1]<='9')&&!sign)\n\t\t{\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(p[i]>='0'&&p[i]<='9')\n\t\twhile(p[i]>='0'&&p[i]<='9'&&i'9')\n\t\t{p+=1;if(*p=='\\0')break;}\n\t\tprintf(\"%c\",*p);\n\t\tp+=1;\n\t\tif(*p<'0'||*p>'9')printf(\"\\n\");\n\t}\n}\n"} +{"label": "88", "index": "43735", "code": "int main()\n{\n char s[1000];\n int i,l;\n gets(s);\n l=strlen(s);\n for (i=0;i='0' && *(str+i)<='9') printf(\"%c\",*(str+i));\n\t\telse if(*(str+i-1)<'0' || *(str+i-1)> '9'|| i==0) continue;\n\t\telse{ printf(\"\\n\");d++;}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43737", "code": "void num(char*p){\n\tif(*p==0)return;\n\tif((*p>='0')&&(*p<='9'))\n\t{\n\t\tfor(;(*p>='0')&&(*p<='9')&&(*p!=0);p++)\n\t\t\tcout<<*p;\n\t\tcout<='0'&&*m<='9') return(1);\n\telse return (0);\n}\nvoid main()\n{\n\tchar *p,*a;\n\tp=(char*)malloc(1000*sizeof(char));\n\tgets(p);\n\tfor(a=p;*a!='\\0';a++)\n\t{\n if(pd(a)) printf(\"%c\",*a);\n\t else if(pd(a-1)&&(pd(a)!=1))\n\t\t printf(\"\\n\");\n\t }\n}\n "} +{"label": "88", "index": "43739", "code": "/*\n * 1000012795-????.cpp\n *\n * Created on: 2010-12-29\n * Author: Administrator\n */\nint main()\n{\n\tchar str[31];\n\tchar a[31];\n\tint len,i,j=0,num=0,sum=0;\n\tcin.getline(str,31);\n\tlen=strlen(str);\n\tfor(i=0;i='0'&&str[i]<='9')\n\t\t{\n\t\t\ta[j]=str[i];\n\t\t\tnum=num+1;\n\t\t\tj=j+1;\n\t\t}\n\t\tif(str[i]<'0'||str[i]>'9')\n\t\t{\n\t\t\tfor(j=0;j'0'&&*(p+i)<='9')\n\t\t{\n\t\t\tcout<<*(p+i);\n\t\t\ta=1;\n\t\t}\n\t\tif((*(p+i)<'0'||*(p+i)>'9')&&a==1)\n\t\t{\n\t\t\tcout<'9'))\n\t\t\t\t{cout<<*(p+i);a=1;}\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43741", "code": "int main()\n{\nchar c[30];\nint i;\n\n\t\tfor(i=0;i<30;i++)\n\t\t{scanf(\"%c\",&c[i]);\n\t\tswitch(c[i])\n\t\t{\n\t\tcase '1':\n\t\tcase '2':\n\t case '3':\n\t case '4':\n\t case '5':\n case '6':\n\t case '7':\n\t\tcase '8':\n case '9':\n\t case '0':\n\t\t\t\tprintf(\"%c\",c[i]);break;\n\t\t\t\tdefault :\n\t\t\t\t\t{switch(c[i-1])\n\t\t\t {\n\t\t case '1':\n\t\t case '2':\n case '3':\n\t case '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t case '9':\n\t\t\t case '0':\n\t\t\t\tprintf(\"\\n\");break;\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t}}\n\treturn 0;\n\t\t}\n"} +{"label": "88", "index": "43742", "code": "int main()\n{\n\tint n,i,t=1;\n\tchar *p;\n\tp=(char*)malloc(1000*sizeof(char));\n\tgets(p);\n\tn=strlen(p);\n\tfor(i=0;i='0')&&(*(p+i)<='9'))\n\t\t{\n\t\t\tprintf(\"%c\",*(p+i));\n\t\t\tt=0;\n\t\t}\n\t else if(t==0)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tt++;\n\t\t}\n\t}\n}\n\t\t"} +{"label": "88", "index": "43743", "code": "//????\n//1000062701\n//???\n\nint main()\n{\n\tchar str[31];\n\tcin.getline( str, 31 );\n\tchar *p = str; //???????\n\tint flag = 0;\n\tfor( int i = 0; str[i]!= '\\0'; i++ )\n\t{\n\t\tif( ( ( *( p + i ) - '0' ) >= 0 ) && ( ( *( p + i ) - '0' ) <= 9 ) )\n\t\t{\n\t\t\tflag = 0;\n\t\t\tcout << *( p + i );\n\t\t}\n\t\telse if( flag == 0 )\n\t\t{\n\t\t\tcout << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "88", "index": "43744", "code": "main()\n{ char *s,*c;\n int i,j;\n s=(char *)calloc(31,sizeof(char));\n gets(s);\n for(i=0;*(s+i)!='\\0';i++)\n {\n if(*(s+i)<='9'&&*(s+i)>='0')printf(\"%c\",*(s+i));\n else\n { for(;(*(s+i)<'0'||*(s+i)>'9')&&*(s+i)!='\\0';i++);\n\n if(*(s+i)!='\\0')printf(\"\\n\");\n i--;\n }\n }\n\n}"} +{"label": "88", "index": "43745", "code": "\nint main()\n{\n\tchar a[31];\n\tint i,len;\n\tcin.getline(a,31);\n\tlen=strlen(a);\n\tfor(i=0;i=48&&a[i]<=57){\n\t\t\tcout<57){\n\t\t\t\tcout<=0&&str[0]-'0'<=9)\n {\n printf(\"%c\",str[0]);\n for(k=1;;k++)\n {\n if(str[k]-'0'>=0&&str[k]-'0'<=9)\n printf(\"%c\",str[k]);\n else\n break;\n }\n printf(\"\\n\");\n }\n for(i=0;i9||str[i]<'0')&&str[i+1]-'0'<=9&&str[i+1]-'0'>=0)\n {\n for(j=i+1;;j++)\n {\n if(str[j]-'0'<=9&&str[j]-'0'>=0) \n printf(\"%c\",str[j]);\n else if(str[j]==' ')\n break;\n else\n break;\n }\n printf(\"\\n\");\n }\n }\n getchar();\n getchar();\n}"} +{"label": "88", "index": "43747", "code": "int main()\n{\n\tchar c[31]={0};\n\tchar *p=c;\n\tcin.getline(c,31);\n\tfor(p=c;p'0'&&*p<='9') //??????\n\t\t{\n\t\t\tcout<='0'&&*(p+1)<='9')\n\t\t\t\tp++; //??????\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43748", "code": "/*\n * pickup.cpp\n * Author: ???\n * Created on: 2012-12-13\n * ??? ?????????\n *\n */\nint main(){\n\tchar a[32],*p=NULL;//???????\n\tint n=0,i;//????\n\tgets(a);\n\tp=a;\n\tfor(;*p!='\\0';p++){//????????\n\t\tif(isdigit(*p)&&*(p+1)!='\\0')//??????????????????????\n\t\t\tn++;//??\n\t\telse{//??\n\t\t\tfor(i=n-1;i>=0;i--)//????\n\t\t\t\tcout<<*(p-i-1);\n\t\t\tif(*(p+1)=='\\0'&&isdigit(*p))//???????????????\n\t\t\t\tcout<<*(p);\n\t\t\tif(n!=0)\n\t\t\t\tcout<='0')\n\t\t{\n\t\t\tprintf(\"%c\",*q);\n\t\t\ta=0;\n\t\t}\n\t\tif((*q>'9'||*q<'0')&&a==0)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\ta++;\n\t\t}\n\t\tq++;\n\t}\n}"} +{"label": "88", "index": "43750", "code": "\nint main()\n{\n char a[35];\n int count=0;\n char *p=a;\n cin.getline(a,35);\n for(;*p!='\\0';*p++){\n\t if(*p>=48&&*p<=57){\n\t\t cout<<*p;\n\t\t *p++;\n\t\t for(;*p!='\\0';*p++){\n\t\t\t if(*p>=48&&*p<=57)\n\t\t\t\t cout<<*p;\n\t\t\t else {cout<='0'&&(*p2)<='9') //??????0~9???\n\t\t{\n\t\t\tfor(p3=p2;(int)(*p3)-'0'>=0&&(int)(*p3)-'0'<=9;p3++)//??????????\n\t\t\tprintf(\"%c\",*p3);\n\t\t\tprintf(\"\\n\");\n\t\t\tp2=p3;//???????\n\t\t\tp2--;\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43752", "code": "int main()\n{\n int n,i,j,m,sign1,sign2;\n char s[30];\n gets(s);\n m=strlen(s);\n sign1=0;sign2=0;\n for(i=0;i='0'&&s[i]<='9')\n printf(\"%c\",s[i]);\n else if(s[i]<'0'||s[i]>'9')\n if(s[i-1]>='0'&&s[i-1]<='9')\n printf(\"\\n\");\n \n \n }\n return 0;\n}\n \n"} +{"label": "88", "index": "43753", "code": "int main()\n{\n\tchar a[31]; \n\tchar *p=a; //?????????a???\n\tcin.getline(a,31);\n\tfor(;*p!='\\0';p++)\n\t{\n\t\tif(*p>='0'&&*p<='9'&&*(p+1)>='0'&&*(p+1)<='9') //????????????????????\n\t\t cout<<*p;\n\t\telse if(*p>='0'&&*p<='9'&&(*(p+1)<'0'||*(p+1)>'9')) //??????????????????????????\n\t\t cout<<*p<'9'||a[i]<'0')continue;//??????????\n\t\twhile(a[i]<='9'&&a[i]>='0'){ //????????????????????\n\t\t\tcout<='0'&&*p<='9'&&*(p+1)>='0'&&*(p+1)<='9')\n\t\t\tcout<<*p;\n\t\tif(*p>='0'&&*p<='9'&&(*(p+1)<'0'||*(p+1)>'9'))\n\t\t\tcout<<*p<47&&a[i]<58)\n {memset(b,0,20);\n \tfor(j=0;a[i]>47&&a[i]<58;i++,j++)\n \tb[j]=a[i];\n puts(b);\n\n }\n}"} +{"label": "88", "index": "43757", "code": "int main()\n{\n\tchar str[100];\n\tgets(str);\n\tint i,flag;\n\tfor(i=0;str[i]!='\\0';i++)\n\t{\n\t\tif((int)str[i]<58&&(int)str[i]>47)\n\t\t{\n\t\t\tcout<='0'&&c[i]<='9') //??????????\n\t\t{\n\t\t\tfor(j=i;j='0'&&c[j]<='9')&&(c[j+1]<'0'||c[j+1]>'9')) //???????????????????\n\t\t\t\t{\n\t\t\t\t\tfor(s=i;s<=j;s++)\n\t\t\t\t\t\tcout<='0'&&c[j]<='9')) //???????????\n\t\t\t\t{\n\t\t\t\t\tfor(s=i;s<=j;s++)\n\t\t\t\t\t\tcout<=0 && a[i]-'0'<10)\n\t\t\tcout<=0 && a[i+1]-'0'<10)\n\t\t\tcout<=0)\n printf(\"%d\\n\",a[i]);\n }\n\n return ;\n}\n"} +{"label": "88", "index": "43761", "code": "\nint main()\n{\nchar *p;\nint i;\np=(char *)malloc(30*sizeof(char));\ngets(p);\nfor(i=0;*(p+i)!='\\0';i++)\n{if(*(p+i)>='0'&&*(p+i)<='9') printf(\"%c\",*(p+i));\nelse if(*(p+i+1)>='0'&&*(p+i+1)<='9') printf(\"\\n\");}\nreturn 0;}\n"} +{"label": "88", "index": "43762", "code": "int main(int argc, char* argv[])\n{\n\tchar sz[30]={' '};\t\t\t\t//???????30?????????????????????????????????\n\tint i=0,j=0;\t\t\t\t\t//?????????????j?\n\tgets(sz);\t\t\t\t\t\t//????\n\tfor(i=0;i<30;i++)\t\t\t\t//??\n\t{\n\t\tif(((sz[i]=='1')||(sz[i]=='2')||(sz[i]=='3')||(sz[i]=='4')||(sz[i]=='5')||(sz[i]=='6')||(sz[i]=='7')||(sz[i]=='8')||(sz[i]=='9')||(sz[i]=='0'))&&((sz[i+1]=='1')||(sz[i+1]=='2')||(sz[i+1]=='3')||(sz[i+1]=='4')||(sz[i+1]=='5')||(sz[i+1]=='6')||(sz[i+1]=='7')||(sz[i+1]=='8')||(sz[i+1]=='9')||(sz[i+1]=='0')))\n\t\t\tprintf(\"%c\",sz[i]);\t\t//??sz[i]??????sz[i+1]?????????sz[i]\n\t\tif(((sz[i]=='1')||(sz[i]=='2')||(sz[i]=='3')||(sz[i]=='4')||(sz[i]=='5')||(sz[i]=='6')||(sz[i]=='7')||(sz[i]=='8')||(sz[i]=='9')||(sz[i]=='0'))&&(!((sz[i+1]=='1')||(sz[i+1]=='2')||(sz[i+1]=='3')||(sz[i+1]=='4')||(sz[i+1]=='5')||(sz[i+1]=='6')||(sz[i+1]=='7')||(sz[i+1]=='8')||(sz[i+1]=='9')||(sz[i+1]=='0'))))\n\t\t\tprintf(\"%c\\n\",sz[i]);\t//??sz[i]??????sz[i+1]?????????sz[i]?????????????\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43763", "code": "int main()\n{\n\tchar c[35],*p=c;\n\tgets(c);\n\tfor(;*p!='\\0';p++)\n\t{\n\t\tif(*p<='9'&&*p>='0')\n\t\t\tcout<<*p;\n\t\telse {\n\t\t\tif(*(p+1)<='9'&&*(p+1)>='0')\n\t\t\t\tcout<='0'&&a<='9'){\n\tm=1;\n\t}else{\n\tm=0;\n\t}\n\treturn m;\n}"} +{"label": "88", "index": "43765", "code": "int main()\n{\n char a[100];\n cin.get(a,33);\n int i=0;\n for(i=0;i<31;i=i+1)\n { \n if(a[i]=='0'||a[i]=='1'||a[i]=='2'||a[i]=='3'||a[i]=='4'||a[i]=='5'||a[i]=='6'||\n a[i]=='7'||a[i]=='8'||a[i]=='9')\n {\n if(a[i+1]=='0'||a[i+1]=='1'||a[i+1]=='2'||a[i+1]=='3'||a[i+1]=='4'||a[i+1]=='5'||\n a[i+1]=='6'||a[i+1]=='7'||a[i+1]=='8'||a[i+1]=='9')\n {cout<='0')\n putchar(a[i]);\n else if(a[i-1]<='9'&&a[i-1]>='0')\n printf(\"\\n\");\n }\n} "} +{"label": "88", "index": "43767", "code": "char a[35];\nint main()\n{\n\tgets(a);\n\tfor(int i=0;i=48&&*p<=57)\n\t\t{\n\t\t\tcout<<*p;\n\t\t\tif(*(p+1)<48||*(p+1)>57)\n\t\t\t{\n\t\t\t\tcout<47)&&(a[i]<58))\n {\n cout << a[i];\n }\n else if((a[i-1]>47)&&(a[i-1]<58))\n {\n cout << endl;\n }\n }\n cin.get();cin.get();cin.get();\n return 0;\n}\n"} +{"label": "88", "index": "43770", "code": "\nvoid f(char *p)\n{\n int i;\n for (i=0;i<=29;i++)\n {\n if ((*p)>='0'&&(*p)<='9')\n printf(\"%c\",*p);\n else if (*(p+1)>='0'&&*(p+1)<='9')\n printf(\"\\n\");\n p++;\n }\n}\n\n\n\n\nint main(int argc, char *argv[])\n{\n char a[30];\n gets(a);\n char *p;\n p=a;\n f(p);\t\n return 0;\n}\n"} +{"label": "88", "index": "43771", "code": "main()\n{\n int i;\n char *p;\n p=(char*)malloc(30*sizeof(char));\n gets(p);\n for(i=0;i<30;i++)\n {\n if(*(p+i)>=48&&*(p+i)<=57)\n printf(\"%c\",*(p+i));\n else\n {\n if(*(p+i-1)>=48&&*(p+i-1)<=57)\n printf(\"\\n\");\n }\n }\n}\n"} +{"label": "88", "index": "43772", "code": "void main()\n{\n\tchar *p,*p_1,*p2;\n\tp=(char*)malloc(1000*sizeof(char));\n\tp_1=p;\n gets(p);\n\tfor(p=p_1;*p!='\\0';p++)\n\t\tif(*p>='0'&&*p<='9')\n\t\t\tprintf(\"%c\",*p);\n\t\telse\n\t\t{\n\t\t\tfor(p2=p;*p2!='\\0';p2++)\n\t\t\t\tif(*p2>='0'&&*p2<='9')\n\t\t\t\t{\n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\tp=p2-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n}"} +{"label": "88", "index": "43773", "code": "/*\n * gd.cpp\n *\n * Created on: 2010-12-31\n * Author: 10058\n */\n\nint main()\n{\n\tchar c[50];\n\tcin.getline(c,50);\n\tint i=0;\n\twhile(c[i]!='\\0')\n\t{\n\t\tif(c[i]>='0'&&c[i]<='9')\n\t\t{\n\t\t\tcout<='0'&&c[i-1]<='9')\n\t\t\t{\n\t\t\t\tcout<='0'&&*a<='9')\n\t\tprintf(\"%c\",*a);\n\tfor(i=1;*(a+i)!='\\0';i++)\n\t{\n\t\tif(*(a+i)>='0'&&*(a+i)<='9')\n\t\t\tprintf(\"%c\",*(a+i));\n\t\telse if((*(a+i)<'0'||*(a+i)>'9')&&*(a+i-1)>='0'&&*(a+i-1)<='9')\n\t\t\tprintf(\"\\n\");\n\t}\n}"} +{"label": "88", "index": "43775", "code": "/**\n* @file\t\t????.cpp\n* @author\t??\t1000012792\n* @date\t\t2010.12.9\n*/\nint main()\n{\n\tchar s[40];\n\tint i, flag = 0, l;\t\t\t\t//flag?????????\n\tcin.getline(s,40);\t\t\t\t//??????????s\n\tl = strlen(s);\t\t\t\t\t//l??s???\n\tfor(i=0;i='0')\t//????????\n\t\t{\n\t\t\tcout << s[i];\t\t\t//?????????flag??1\n\t\t\tflag = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(flag==1)\t\t\t\t//????flag==1,?????????????????????????flag????0\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43776", "code": "int main()\n{\n char a[31]={0};\n int i=0;\n cin.getline(a,31);\n for(i=0;a[i]!=0;i++)\n if(a[i]>='0'&&a[i]<='9')\n {\n cout<'9')cout<=48&&c[i]<=57)\n\t\t{\n\t\t\tprintf(\"%c\",c[i]);\n\t\t flag=0;\n\t\t}\n\t\telse if(flag==0)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tflag=1;\n\t\t}\n\t\ti++;\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43778", "code": "\nint main() {\n\tchar buf[32];\n\tgets(buf);\n\tint offset = 0;\n\tchar c;\n\twhile (offset < strlen(buf)) {\n\t\tc = *(buf+offset);\n\t\tif ('0' <= c && c <= '9') {\n\t\t\tcout << c;\n\t\t} else {\n\t\t\tcout << endl;\n\t\t}\n\t\t++offset;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43779", "code": "int main()\n{\n char ch[50] ;\n cin.get( ch , 50 , '\\n' ) ;\n int i = 0 ; \n int n = strlen( ch ) ;\n for( i = 0 ; i <= n - 1 ; i ++ )\n {\n if( ( int )ch[i] >= 48 && ( int )ch[i] <= 57 )\n cout << ch[i] ;\n else\n if( i > 0 )\n if( ( int )ch[i - 1] >= 48 && ( int )ch[i - 1] <= 57 )\n cout << endl ;\n }\nreturn 0 ;\n}"} +{"label": "88", "index": "43780", "code": "int main()\n{\nchar a[100],*p; \ngets(a); //?????\np=a;\nif(*p>=48&&*p<=57)\ncout<<*p;\np++;\nwhile(p-a<=strlen(a))\n{\nif(*p>=48&&*p<=57) //???????????\n\t{\n\t\tcout<<*p;\n\t}\nelse if(*(p-1)>=48&&*(p-1)<=57) //??????????\n\t{\n\t\tcout <= '0' && *p <= '9')\t\t//??str????????????\n\t\tcout << *p;\n\tp = str +1;\t\t\t\t\t\t//p??str?????\n\twhile(p < str + l)\n\t{\n\t\tif(*p >= '0' && *p <= '9')\t//????????????\n\t\t\tcout << *p;\n\t\t//???????????????????????????????????????\n\t\telse if(*(p - 1) >= '0' && *(p - 1) <= '9' && !(*p >= '0' && *p <= '9'))\n\t\t\tcout << endl;\n\t\t//????????????????\n\t\tp++;\n\t}\n\tcout << endl;\n\n\treturn 0;\n}\n"} +{"label": "88", "index": "43783", "code": "void main()\n{\n\tint i,j;\n\tchar a[30],s[30];\n\tgets(s);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i]>47&&s[i]<58)\n\t\t{\n\t\t\tfor(j=i;s[j]>47&&s[j]<58;j++) a[j-i]=s[j];\n\t\t\ta[j-i]='\\0';\n\t\t\ti=j-1;\n\t\t\tif(strcmp(a,\"111111111111\")==0)printf(\"1\");\n\t\t\telse printf(\"%s\\n\",a);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tj=i;\n\t\t\twhile((s[j]>58||s[j]<47)&&s[j]!='\\0') j++;\n\t\t\ti=j-1;\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43784", "code": "/*\n *???: seek numbers.cpp\n *??????\n *????: 2012-12-10\n *??: ????\n */\n\n\nint main ()\n{\n char data[31],result[31][31];\n //result???????????,data????????\n int counter = 0;\n //counter??????\n cin.getline(data,31);\n for (int i = 0; i < strlen(data); i++)\n if(*(data+i) >= '0' && *(data+i) <= '9'){\n for (int j = 0; ; j++){\n *(*(result+counter)+j) = *(data+i+j);\n if (*(data+i+j+1) < '0' || *(data+i+j+1) > '9' || i+j == 29){\n *(*(result+counter)+j+1) = '\\0';\n counter++;\n i += j;\n break;\n }\n }\n }\n for (int i = 0; i < counter; i++)\n cout << *(result+i) << endl;\n return 0;\n}"} +{"label": "88", "index": "43785", "code": "void main()\n{\n\tint n=0;\n\tchar *p;\n\tp=(char *)malloc(sizeof(char)*31);\n\tgets(p);\n\twhile(*p!='\\0')\n\t{\n\t\tif(*p>='0'&&*p<='9')\n\t\t{\n\t\t\tif(n!=0)printf(\"\\n%c\",*p);\n\t\t\telse printf(\"%c\",*p);\n\t\t\tn=0;\n\t\t}\n\t\telse n++;\n\t\tp++;\n\t}\n}\n\n\t"} +{"label": "88", "index": "43786", "code": "int main()\n{\n int b,j=0;\n char *p,*q;\n char a[30],c[30];\n gets(a);//???????? \n b=strlen(a);//???? \n p=a;\n q=c;\n for(int i=0;i<30;i++)//??????????? \n *(q+i)=':';\n for(int i=0;i0)\n {\n if((isdigit(*(p+i))==0)&&(isdigit(*(p+i-1))!=0))//??????????????? \n {\n for(int k=0;k= '0' && *p <= '9' ) //???????\n\t\t{\n\t\t\tcout<<*p; //???????\n\t\t\tflag = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( flag == 1) //??????????????????\n\t\t\t{\n\t\t\t\tcout<='0')&&(c[i]<='9'))&&((c[i+1]>='0')&&(c[i+1]<='9')))\n\t\t\tprintf(\"%c\",c[i]);\n\t\telse if (((c[i]>='0')&&(c[i]<='9'))&&((c[i+1]<'0')||(c[i+1]>'9')))\n\t\t\tprintf(\"%c\\n\",c[i]);\n\t}\n}"} +{"label": "88", "index": "43789", "code": "int main()\n{\n int i,len=0;\n char str[32],temp[32];\n char *ptr;\n cin.getline(str,31);\n ptr=str;\n for(;*ptr!='\\0';++ptr)\n {\n if(isdigit(*ptr)) len++;\n else\n {\n memset(temp,0,sizeof(temp));\n if(len==0) continue;\n for(i=0;i='0'&&s[i]<='9'){\n\t\t\tdo{\n\t\t\t\tcout<='0'&&s[i]<='9');\n\t\t\tcout<='0'&&*(str+i)<='9')\n\t\t{\n\t\t\tcout<<*(str+i);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(*(str+i+1)>='0'&&*(str+i+1)<='9')\n\t\t\t{\n\t\t\t\tcout<='0'&&*(str+strlen(str)-1)<='9')\n\t{\n\t\tcout<=48)&&(*(p+i)<=57))\n\t\t{\n\t\t\tst=1;\n\t\t printf(\"%c\",*(p+i));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(st==1)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t\tst=0;\n\t\t\t}\n\t\t\telse\n\t\t\t\tst=0;\n\t\t}\n\t}\n\n\n\n\treturn 0;\n}"} +{"label": "88", "index": "43794", "code": "void main()\n{\n char a[40];\n int i=0;\n gets(a);\n printf(\"\\n\");\n while(*(a+i)!='\\0')\n {\n if(*(a+i)>='0'&&*(a+i)<='9') printf(\"%c\",*(a+i));\n else if(*(a+i+1)>='0'&&*(a+i+1)<='9') printf(\"\\n\");\n i++;\n }\n}"} +{"label": "88", "index": "43795", "code": "int main() {\n char data[31];\n int n,i;\n gets(data);\n for(n=0;data[n]!='\\0';n++);\n for(i=0;i='0') {\n printf(\"%c\",data[i]);\n } else {\n printf(\"\\n\");\n }\n }\n return 0;\n}"} +{"label": "88", "index": "43796", "code": "/**\n* ??????\n* ???1000012847\n* ???????\n**/\nint main()\n{\n\tchar str[100] , *p1; //??????????????\n\tint a[100] = {0} , *p2; //?????????????\n\tint flag = 0 , i = 0; //??flag??1?????i?????0\n \n\n\tcin.getline(str , 100); //?????\n\n\tfor(p1 = str; *p1 != 0; p1++) //?????????????\n\t{\n\t\tif(*p1 <= '9' && *p1 >= '0') //???????\n\t\t{\n\t\t\tif(flag == 0) //?????????????i???1???????1\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t\ta[i] = 10 * a[i] + (*p1 - '0'); //????????\n\t\t}\n\t\telse\n\t\t\tflag = 0;\t //??????????????0\n\t}\n\n\tfor(p2 = a + 1; p2 <= a + i; p2++)\n\t\tcout << *p2 << endl; //?????????????\n\n\treturn 0;\n}"} +{"label": "88", "index": "43797", "code": "struct data\n{\n\tchar c;\n\tstruct data *pt;\n};//????????\n\nstruct data *create(void)//??????\n{\n\tstruct data *head,*p1,*p2;\n\n\tp1=p2=(struct data *)malloc(sizeof(struct data));//????\n\thead=p1;\n\tp1->c=getchar();\n\n\tfor(;p2->c!='\\n';)//?????\n\t{p1=(struct data *)malloc(sizeof(struct data));\n\tp1->c=getchar();\n\tp2->pt=p1;//???p2???????\n\tp2=p1;\n\tp2->pt=NULL;}\n\n\treturn head;\n\n}\nvoid main()\n{\n\n\tstruct data *headi,*ptr;\n\tint flag=0;\n\theadi=create();\n\t\n\tfor(ptr=headi;ptr!=NULL;ptr=ptr->pt)//????\n\t\tif('9'>=ptr->c&&'0'<=ptr->c) putchar(ptr->c),flag++;\n\t\telse \n\t\t{\n\t\t\tif(ptr->pt!=NULL)\n\t\t\t\tif('9'>=ptr->pt->c&&'0'<=ptr->pt->c&&flag!=0)\n\t\t\t\t\tputchar('\\n');\n\t\t}\n}"} +{"label": "88", "index": "43798", "code": "int main()\n{\n\tchar str[40];;\n\tchar *p=str;\n\tcin.getline (str,40);\n for (;*p!='\\0';p++)\n {\n\t if (*p-'0'<=9&&*p-'0'>=0)\n\t {cout<<*p;//???1-9?????????\n\t if (*(p+1)-'0'>9||*(p+1)-'0'<0)\n\t\t\t cout<=0&&*p-'0'<=9)\n *q=*p;\n else\n *q='\\n';\n }\n for(q=c;q47&&*str<58)//?????????????\n\t\t\tcout<<*str;//?????????\n for(char*p=str+1;*p!='\\0';p++){//???????\n if(*p>47&&*p<58){//??????\n\t\t\tcout<<*p;//??????\n\t\t\tk=0;//??????\n\t\t}\n\t\telse{//????????\n\t\t\tif(k==0)//?????????????\n\t\t\t\tcout<'9'))continue;//???i????????????\n\t\telse\n\t\t\tfor(j=1;j<=length-i;j++)\n\t\t\t{\n \t\t\tif((str[i+j]<'0')||(str[i+j]>'9') || (str[i+j]=='\\0'))\n \t\t\t{\n \t\t\t\tfor(t=i;t57))&&(*p!='\\000')) p++;\n\t\t\t\t\t\twhile ((*p>=48)&&(*p<=57)&&(*p!='\\000')) {cout<<*p;p++;}\n cout<47&&(int)*p<58)&&((int)*(p+1)>47&&(int)*(p+1)<58))\nprintf(\"%c\",*p);\nelse\nif(((int)*p>47&&(int)*p<58)&&((int)*(p+1)<48||(int)*(p+1)>57))\nprintf(\"%c\\n\",*p);}\n}"} +{"label": "88", "index": "43804", "code": "void main()\n{\n\tint i;\n\tchar str[40];\n\tgets(str);\n\tfor(i=0;str[i];i++)\n\t{\n\t\tif(str[i]>47&&str[i]<58)\n\t\t{\tprintf(\"%c\",str[i]);\n\t\t\tif(str[i+1]&&!(str[i+1]>47&&str[i+1]<58))printf(\"\\n\");\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43805", "code": "int main()\n{\n\tchar str[31];\n\tchar *pointer=NULL;\n\tcin.getline(str,31);\n\tpointer=str;\n\twhile(*pointer!=0)\n\t{\n\t\tif(*pointer>='0'&&*pointer<='9')\n\t\t{\n\t\t\tif(pointer==str||*(pointer-1)!='-')\n\t\t\t{\n\t\t\t\twhile(*pointer>='0'&&*pointer<='9')\n\t\t\t\t{\n\t\t\t\t\tcout<<*pointer;\n\t\t\t\t\tpointer++;\n\t\t\t\t}\n\t\t\t\tcout<='0'&&*pointer<='9') pointer++;\n\t\t\t}\n\t\t}\n\t\telse pointer++;\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43806", "code": "int main(){\nchar a[31];\ncin.getline(a,31);\nint d,i;\nd=strlen(a);\nint b[100];\nmemset(b,-1,sizeof(b));\nint num=0;\nint sum=0;\nfor(i=0;i47)){\n\t\tsum=sum*10+(int)(a[i]-48);\n\t\tb[num]=sum;\n\t}\n\telse {\n\t\tnum++;\n\t\tsum=0;\n\t}\n}\nfor(i=0;i<100;i++){\n\tif(b[i]>=0){\n\tcout<='0'&&*p<='9')\n {\n while(*p>='0'&&*p<='9')\n {cout<<*p;\n p++;\n }\n cout<='0')\n\t\t{\n\t\t\tshi=i;\n\t\t\tfor(l=i;l'9'||c[l]<'0')\n\t\t\t\t{\n\t\t\t\t\tzhong=l-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(l==n-1)\n\t\t\t\t\tzhong=n-1;\n\t\t\t}\n\t\t\tfor(m=shi;m '9' || *p < '0') && *p != '\\0')\n\t\t\tp++;\n\t\tif (*p == '\\0')\n\t\t\tbreak;\n\t\twhile (*p <= '9' && *p >= '0')\n\t\t{\n\t\t\tcout << *p;\n\t\t\tp++;\n\t\t}\n\t\tcout << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43810", "code": "int main()\n{\n\tint i,j,len,sp;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//????????????\n\tchar str[31];\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//???????????\n\tmemset(str,'\\0',sizeof str);\n\tcin.getline(str,31);\t\t\t\t\t\t\t\t\t\t\t\t\t//?????\n\tlen=strlen(str);\n\tfor(i=0;i='0'&&str[i]<='9')&&(str[i+1]<'0'||str[i+1]>'9'))\t\t//??????????????\n\t\t\tcout<='0'&&str[i]<='9')&&(str[i+1]>='0'||str[i+1]<='9'))\t//???????????????\n\t\t\tcout<= '0' && *p <= '9' )\t\t//????????\n\t\t\tcout << *p;\n\t\telse\t\t\t\t\t\t\t\t//???????????????\n\t\t{\n\t\t\tif ( *(p+1) < '0' || *(p+1) > '9' )\t\t//??????????????????\n\t\t\t{\n\t\t\t}\n\t\t\tif ( *(p+1) >= '0' && *(p+1) <= '9' )\t//????????????\n\t\t\tcout << endl;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n\t"} +{"label": "88", "index": "43812", "code": "int main()\n{ char *a,*p;\n int i,t,n;\n a=(int *)malloc(30*sizeof(char));\n gets(a);\n n=strlen(a);\n p=a;t=0;\n for (i=0;i<=(n-1);i++)\n {if (*(p+i)>=48&&*(p+i)<=57) {printf(\"%c\",*(p+i));t=0;}\n else if (t==0){printf(\"\\n\");t=1;}\n }\n free(a);\n}"} +{"label": "88", "index": "43813", "code": "int main()\n{\nchar a[31];\nchar *p=a;\ncin.getline(a,31);\nfor(;*p!='\\0';p++)\nif(*p>=48&&*p<=58)\n{\ncout<<*p;\nif(*(p+1)<48||*(p+1)>58)cout<> a) //???????\n\t{\n\t\tn=strlen(a); //?????\n\t\tfor(i=0;i47&&c[i]<58){\n\t\t\t\tfor(j=i;j<=strlen(c);j++){\n\t\t\t\t\tif(c[j]<48||c[j]>57){\n\t\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\t\ti=j;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tprintf(\"%c\",c[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43816", "code": "int main()\n{\n\tchar str[31];\n\tgets(str);\n\tint i=0;\n\tint num=0;\n\twhile(str[i]!='\\0'){\n\t\tif(str[i]>='0'&&str[i]<='9'){\n\t\t\tnum=num*10+(str[i]-'0');\n\t\t\tif(!(str[i+1]>='0'&&str[i+1]<='9')||str[i+1]=='\\0'){\n\t\t\t\tcout<47)printf(\"%c\",s[i]);\n\t\tif(s[i]<58&&s[i]>47&&(s[i+1]>=58||s[i+1]<=47))printf(\"\\n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43818", "code": "\n\nint main()\n{\n char a[100];\n memset(a,0,sizeof a);\n\n cin.getline(a,100);\n int i,num=0;\n\n for(i=0;;i++)\n {\n if((a[i]>='0'&&a[i]<='9')&&(a[i+1]>='0'&&a[i+1]<='9'))\n {\n cout<='0'&&a[i]<='9')&&(a[i+1]<'0'||a[i+1]>'9')) cout<=48&&*(o+i)<=57)\n\t\t\tcout<<*(b+i);\n\t\telse if((*(o+i)<48||*(o+i)>57)&&(*(o+(i-1))>=48&&*(o+(i-1))<=57))\n\t\t\tcout<='0')&&(*p<='9'))\n\t\t\t{\n\t\t\t\tcout<<*p;\n\t\t\t\tflag=1;\n\t\t }\n\t\telse\n\t\t\t{ \n\t\t\t\tif(flag==1)\n\t\t\t\t cout<= '0' && *p <= '9' )\n\t\t{\n\t\t\tfor ( i = 0 ; *( p + i ) != '\\0' ; i++ )\n\t\t\t{\n\t\t\t\tif ( *( p + i ) < '0' || *( p + i ) > '9' )\n\t\t\t\t{\n\t\t\t\t\tp = p + i;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcout << *( p + i );\n\t\t\t\tif ( *( p + i + 1 ) == '\\0' )\n\t\t\t\t{\n p = p + i;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43822", "code": "/*\n * tqsz.cpp\n *\n * Created on: 2010-12-31\n * Author: dell\n */\nint main(){\n\tint s,i,longs;\n\tchar zfc[50];\n\tcin.getline(zfc,50);\n\tlongs=strlen(zfc);\n\tfor(i=0;i47&&zfc[i]<58){\n\t\ts=zfc[i]-48;\n\t\t\tcout<47&&*(p+i)<58)printf(\"%c\",*(p+i));\n if(*(p+i+1)<48||*(p+i+1)>57)printf(\"\\n\");\n }\n}"} +{"label": "88", "index": "43824", "code": "int main()\n{\n\tchar str[200],*point=str;\n\tcin.getline(str,150);\n\tfor(;point<=str+strlen(str)-1;point++)\n\t{\n\t\tif(*point>='0'&&*point<='9')\n\t\t{\n\t\t\twhile(*point>='0'&&*point<='9')\n\t\t\t{\n\t\t\t\tcout<<*point;\n\t\t\t\tpoint++;\n\t\t\t}\n\t\t\tcout<= '0' && buff[i] <= '9')\n\t\t{\n\t\t\tnum = 10 * num + buff[i] - '0';\n\t\t\tif (buff[i + 1] == '\\0')\n\t\t\t{\n\t\t\t\tcout << num << endl;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (buff[i - 1] >= '0' && buff[i - 1] <= '9')\n\t\t\t{\n\t\t\t\tcout << num << endl;\n\t\t\t\tnum = 0;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43826", "code": "int main()\n{\n\tchar a[30];\n\tgets(a);\n\tint i,m=strlen(a);\n\tfor(i=0;i='0'&&a[i]<='9')\n\t\tprintf(\"%c\",a[i]);\n\t\telse\n\t\t{\n\t\t\tif(a[i+1]>='0'&&a[i+1]<='9')\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\tif(a[m-1]>='0'&&a[m-1]<='9')\n\tprintf(\"%c\",a[i]);\n\treturn 0;\n}"} +{"label": "88", "index": "43827", "code": "int main()\n{\tchar n[31];\n\tint i,u;\n\tgets(n);\n\tfor(i=0;i='0'){\n\t\tprintf(\"%c\",n[i]);\n\t\tu=1;\n\t\t}\n\t\telse{\n\t\t\tif(u)\n\t\t\t\tprintf(\"\\n\");\n\t\t\tu=0;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43828", "code": "int main()\n{\n\tint i;\n\tchar a[30]={'\\0'};\n\tgets(a);\n\tfor(i=0;i<30;i++)\n\t{\n\t\tif(a[i]<=57&&a[i]>=48)\n\t\t{\n\t\t\tprintf(\"%c\", a[i]);\n\t\t}\n\t\telse \n\t\t{if(a[i-1]>=48&&a[i-1]<=57&&a[i]!='\\0')\n\t\t {printf(\"\\n\");}\n\t\t else \n\t\t\t{if(a[i]=='\\0') break;\n\t\t\t else continue;}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43829", "code": "main()\n{\n int i,n;\n char *p;\n p=(char*)malloc(30*sizeof(char));\n gets(p);\n n=strlen(p);\n for(i=0;i='0'&&*(p+i)<='9')\n printf(\"%c\",*(p+i));\n if((*(p+i)<'0'||*(p+i)>'9')&&(*(p+i-1)>='0'&&*(p+i-1)<='9'))\n printf(\"\\n\");\n }\n free(p);\n}"} +{"label": "88", "index": "43830", "code": "int main()\n{\n\tchar str[31],*p; //???????\n\tp=str; //???????\n\tcin.getline(str,31); //?????\n\tfor(int j=0;*(p+j)!='\\0';j++) //??????????????\n\t{\n\t\tif( *(p+j)>=48 && *(p+j)<=57 ) //?????????\n\t\t\tcout<<*(p+j);\n\t\telse if( (*(p+j-1)>=48 && *(p+j-1)<=57) && !(*(p+j)>=48 && *(p+j)<=57) )//???????????????????\n\t\t\tcout<'9') \n \t {\n\t p++;\n\t i++; \n\t continue;\n\t }\n\t cout << *p;\n\t if (str1[i+1]<'0' || str1[i+1]>'9') \n\t {\n\t\t\tcout<'9'))\n {\n cout<<*(p+i);\n i++;\n }\n\t\telse if(*(p+i)>='1'&&*(p+i)<='9')\n\t\t{\n\t\t\tfor(j=0; ;j++)\n\t\t\t{\n \n\n\t\t\tif(*(p+i+j)>='0'&&*(p+i+j)<='9'&&i+j<=len-1)\n\t\t\t\t\tcout<<*(p+i+j);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcout<='0' && *(p+i)<='9')\n {\n cout<<*(p+i);\n t=1;\n }\n else\n t=0;\n if(t==0&&*(p+i-1)>='0'&&*(p+i-1)<='9')\n \tcout<='0'&&*(p+l-1)<='9')\n cout<=48&&*p<=57) //???????\n\t\t\t\t\tcontinue;\n\t\t\t\telse //??????????\n\t\t\t\t{\n\t\t\t\t\tcout<=48&&*p<=57) //??????\n\t\t\t{\n\t\t \tcout<<*p;\n\t\t \tflag=0; //??flag???0???????????\n\t\t\t}\n\t \telse if (flag==0) //?????? flag??\n\t\t\t{ \n\t\t \tcout<=0&&s[i]-'0'<=9)\n\t\t\ta[i]=s[i]-'0';\n\t}\n\tfor(i=0;i= '0') && (*p <= '9'))\t// ??????\n\t\t{\n\t\t\tcout << *p;\t// ??????\n\t\t\tp++;\t\t// ?????????????\n\t\t}\n\t\tcout << endl;\t// ???????????\n\n\t\t// ?????????????????????????????\n\t\twhile(!((*p >= '0') && (*p <= '9')) && (*p != 0))\n\t\t\tp++;\n\t}\n\n\treturn 0;\n}"} +{"label": "88", "index": "43838", "code": "/*\n * 0pointer_find the number.cpp\n *\n * Created on: 2013-12-6\n * Author: Administrator\n ?????????????30????????????????????????????????????????\n????\n?????,?????30\n????\n???????????,??????. (??????)\n????\n123*456U17960? 302tab5876\n????\n123\n456\n17960\n302\n5876*/\nint main(){\n\tint l;\n\tchar str[30],str2[30];\n\tgets(str);\n\tl=strlen(str);int k=0;\n\tchar *p;\n\tp=str;\n\tfor(int i=0;i'0'-1){\n\t\t\tstr2[k]=*(p+i);\n\t\t\tk++;\n\t\t\tstr2[k]='\\0';\n\t\t\tif(*(p+i+1)>'9'||*(p+i+1)<'0')\n\t\t\t{\n\t\t\t\tcout<='0'&&*p<='9')\n\t\t\tprintf(\"%c\",*p);\n\t\telse if(p>s){\n\t\t\tif(*(p-1)>='0'&&*(p-1)<='9')\n\t\t\t\tprintf(\"\\n\");\n\t\t}\n\t\tif(*p=='\\0') break;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43840", "code": "void main()\n{\n\tchar c[30],*p;\n\tint num=1;\n\tgets(c);\n\tfor(p=c;*p!='\\0';p++)\n\t {\n\t if((*p>47)&&(*p<58))\n\t {\n\t\t if(num==1)\n\t {\n\t\t printf(\"%c\",*p);\n\t\t num=1;\n\t }\n else\n {\n\t\t printf(\"\\n%c\",*p);\n\t\t num=1;\n }\n\t }\n else\n num=0;\n\t }\n}"} +{"label": "88", "index": "43841", "code": "int main()\n{\n\tchar s[40];\n\tcin.getline(s,40);\n\tfor(int i=0;i57)continue;\n\t\tif(s[i]>47&&s[i]<58)\n\t\t{\n\t\t\tif(s[i+1]<48||s[i+1]>57)\n\t\t\t{\n\t\t\t\tcout<='0')&&(*p<='9'))\n {\n cout << *p;\n p++;\n if((*p<'0')||(*p>'9'))\n cout << endl;\n }\n else\n p++;\n }\n return 0;\n}\n"} +{"label": "88", "index": "43844", "code": "int main()\n{\nchar a[30];\nint i,ok;\ngets(a);\nfor (i=0;i='0'&&*(a+i)<='9'))\n{\n\tok=1;\n\tcontinue;\n}\nelse \n{\nif (ok) printf(\"\\n\");\nok=0;\nprintf(\"%c\",*(a+i));\n}\nreturn 0;\n}"} +{"label": "88", "index": "43845", "code": "void main()\n{char *p,q[31];\nint a,n,i;\np=(char*)malloc(30*sizeof(char));\np=q;\ngets(p);\nn=strlen(p);\na=*p;\nfor(i=0;i='0'&&*p<='9')\n{\nprintf(\"%c\",*p);\n}\nelse\n{\nfor(;*p<'0'||*p>'9';i++)\n{p++;}\np=p-1;i=i-1;\nif(a<'0'||a>'9')\n{a='0';}\nelse {printf(\"\\n\");}\n}\n}\n}"} +{"label": "88", "index": "43846", "code": "/*???????4\n ????00948344 ??\n ?????2010//12/31\n*/\n\n\nint main()\n{\n\tchar str[31];\n\tgets(str);\n\tint len=strlen(str);\n\tint i,j;\n\tfor(i=0;i'9')))\n\t\t{\n\t\t\tcout<<\"0\"<'0'&&str[i]<='9')\n\t\t{\n\t\t\tfor(j=i;j'9')\n\t\t\t\t{\n\t\t\t\t\ti=j-1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(j==len-1)\n\t\t\t\t\ti=j;\n\t\t\t\tcout<=48)\n {\n\t cout<57||s[i]<48) cout<<'\\n';\n }\n i++;\n }\n return 0;\n}"} +{"label": "88", "index": "43848", "code": "//@@@@???????@@@@@@@@@@@//\n//@@@@?????@@@@@@@@@@@@@@@//\n//@@@@???12/11@@@@@@@@@@@@@@//\nint main()\n{\n\tchar str[31];\n\tint i,j,l,a[31]={0};\n\tcin.getline(str,31);\n\tl=strlen(str);\n for(j='0';j<='9';j++)\n\t{\n\t\tif(str[0]==j)\n\t\t{\n\t\t\tcout<='0'&&a[0]<='9')\n\t\tcout<='0'&&a[i]<='9')\n\t\t{\n\t\t\t if(p==0)\n\t\t\t\t cout<='0'&&hello[i]<='9') \n\t\t\t{\n\t\t\t\tcout<=48&&*(p+i)<=57){\n\t\t\tgo[j]=i;\n\t\t\tfor(i=go[j];;i++){\n\t\t\t\tif(*(p+i)<48||*(p+i)>57){\n\t\t\t\t\t//end[j]=i-1;\n\t\t\t\t\t*(p+i)='\\0';\n\t\t\t\t\tj++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tp=a;\n\tfor(i=0;i='0'&&*(a+i)<='9') {printf(\"%c\",*(a+i));m=1;}\n else if(m==1&&*(a+i+1)>='0'&&*(a+i+1)<='9') printf(\"\\n\");\n i++;\n }\n}"} +{"label": "88", "index": "43853", "code": "int main() {\n\tchar str[32];\n\tcin.getline(str, 33);\n\tint len = strlen(str), i, j, k;\n\tfor (i = 0; i < len; i++)\n\t\tif (*(str + i) >= '0' && str[i] <= '9') { //?????????????????????\n\t\t\tfor (j = 1; *(str + i + j) >= '0' && *(str + i + j) <= '9'; j++)\n\t\t\t\t;\n\t\t\tfor (k = 0; k < j; k++)\n\t\t\t\tcout << *(str + i + k);\n\t\t\tcout << endl;\n\t\t\ti += j - 1;\n\t\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43854", "code": "/*\n * 4.1.cpp\n *\n * Created on: 2011-1-8\n * Author: ???\n * ??? ????\n */\n\n\n\nint main(){\n\tchar c[31],str[31];\n\tcin.getline(c,31);\n\tint m=strlen(c);\n\tfor(int i=0;i='1'&&c[i]<='9'))//??????\n\t\t\tcontinue;\n\t\telse{\n\t\t\tint j;\n\t\t\tfor(j=0;c[i]>='0'&&c[i]<='9';i++,j++)//?????????\n\t\t\t\tstr[j]=c[i];\n\t\t\tstr[j]=0;\n\t\t\tcout<= '0' && P[I] <= '9')\n\t\t{\n\t\t\tint J;\n\t\t\tfor (J = I; J < L; J ++)\n\t\t\t\tif (P[J] >= '0' && P[J] <= '9') cout << P[J]; else break;\n\t\t\tI = J;\n\t\t\tprintf(\"\\n\");\n\t\t}\n}"} +{"label": "88", "index": "43856", "code": "int main()\n{\n char *p;\n p=(char *)malloc(1000*sizeof(char));\n gets (p);\n int i;\n for (i=0;*(p+i)!='\\0';i++)\n {\n if (isdigit(*(p+i)))\n printf (\"%c\",*(p+i));\n if (isdigit(*(p+i))&&isdigit(*(p+i+1))==0)\n printf (\"\\n\");\n }\n return 0;\n}\n"} +{"label": "88", "index": "43857", "code": "int main()\n{\n\tchar a[32];\n\tint i, flag = 0;\n\tcin.getline(a, 32);\n\tfor(i = 0;a[i] != '\\0';i++)\n\t{\n\t\tif(a[i] - '0' < 10 && a[i] - '0' > -1)\n\t\t{\n\t\t\tcout << a[i];\n\t\t\tflag = 1;\n\t\t}\n\t\telse if(flag == 1)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tflag = 0;\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}\n"} +{"label": "88", "index": "43858", "code": "void main()\n{\n\nchar *p,*r;\np=(char*)malloc(30*sizeof(char));\ngets(p);\n\nfor(r=p;*r!='\\0';r++)\nif ((*r>57)||(*r<48)) printf(\"\\n\");\nelse printf(\"%c\",*r);\n\n}"} +{"label": "88", "index": "43859", "code": "int main ()\n{\n\tint i,j=0;\n\tchar c[30],str[30];\n\tgets(c);\n\tfor (i=0;c[i-1]!='\\0';i++)\n\t\tif(c[i]<='9'&&c[i]>='0')\n\t\t\tstr[j]=c[i],j++;\n\t\telse\n\t\t\tif(j!=0)\n\t\t\tstr[j]='\\0',printf(\"%s\\n\",str),j=0;\n\t\treturn 0;\n}\n\n"} +{"label": "88", "index": "43860", "code": "int main ()\n{\n\tchar c[31];\n\tcin.getline(c,31);\n\tint n = sizeof(c);\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tif (isdigit(c[i]))\n\t\t\tcout << c[i];\n\t\telse\n\t\t\tcout << endl;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43861", "code": "/*???:????\n**???:??\n**? ?:2010?12?10?\n*/\nint main()\n{\n\tchar str[31], *p[20], *q;\n\tint i, j, l;//???????????????\n\tcin.getline(str, 31);\n\tl = strlen(str);\n\ti = 0;\n\tfor (q = str; *q != '\\0'; q++)//??\n\t{\n\t\tif (*q >= '0' && *q <= '9')//????\n\t\t{\n\t\t\tp[i++] = q;//????\n\t\t\tfor (p[i] = q + 1; p[i] <= str + l; p[i]++)//?????,???????????'\\0'\n\t\t\t\tif (*p[i] < '0' || *p[i] > '9')//???????????\n\t\t\t\t{\n\t\t\t\t\tq += p[i] - p[i-1];//???????????????????????\n\t\t\t\t\ti++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t}\n\tfor (j = 0; j < i; j = j + 2)\n\t{\n\t\tfor (q = p[j]; q < p[j+1]; q++)\n\t\t\tcout << *q;//??????\n\t\tcout << endl;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43862", "code": "int main()//????\n{\n\tint i,j=0,k=0,len;\n\tchar str[31];\n\tchar num[30][30];\n\tmemset(num,'\\0',sizeof(num));\n\tcin.getline(str,31);\n\tlen=strlen(str);\n\tfor(i=0;i='0' && str[i]<='9')\n\t\t{\n\t\t\tnum[j][k]=str[i];\n\t\t\tk++;\n\t\t}\n\t\telse if(str[i-1]>='0' && str[i-1]<='9')\n\t\t{\n\t\t\tj++;\n\t\t\tk=0;\n\t\t}\n\t}\n\tfor(i=0;i<=j;i++)//????\n\t\tcout<= '0' && *p <= '9')\n\t\t{\n\t\t\tcout << *p;\n\t\t\tflag = 1; //????????????flag = 1\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( flag == 1)\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tflag = 0;\t//????????flag = 0,???????????????\n\t\t\t}\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}\n\n\t\t\t\n"} +{"label": "88", "index": "43864", "code": "\n//??????\nint main()\n{\n\tchar a[31];\n\tint i,n,j=0;\n\tcin.getline(a,31);\n\tn=strlen(a);\n\tchar *p[30]; \n\tfor(i=0;i'9') //??????????\n\t\t{\n\t\t\ta[i]=0; //??????\n\t\t\tif (i='0'&&a[i+1]<='9') //??????????????\n\t\t\t{ \n\t\t\t\tp[j]=a+i+1; //??????????\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t} \n\tif (a[0]) //???????????0??????????\n\t\tcout<='0' && a[i]<='9' && (!i || a[i-1]==0))\n\t\tcout<=48&&input[i]<=57){\n output=10*output+(input[i]-48);\n k++;\n }\n else{\n if(k>0&&input[i-1]>=48&&input[i-1]<=57)\n {printf(\"%d\\n\",output);\n output=0;}\n }\n }\n if(output!=0){printf(\"%d\", output);}\n return 0;\n}\n"} +{"label": "88", "index": "43866", "code": "int main()\n{\n\tchar a[30];\n\tint i,symbol[30];\n\tgets(a);\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tif((a[i]=='1')||(a[i]=='2')||(a[i]=='3')||(a[i]=='4')||(a[i]=='5')||(a[i]=='6')||(a[i]=='7')||(a[i]=='8')||(a[i]=='9')||(a[i]=='0'))\n\t\t{\n\t\t\tsymbol[i]=1;\n\t\t\tprintf(\"%c\",a[i]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsymbol[i]=0;\n\t\t\tif(symbol[i-1]==1)printf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43867", "code": "int main()\n{\n\tchar a[10000],t=0,j;\n\tint i;\n\tcin.getline(a,10000);\n\tfor(i=0;i47&&a[i]<58)\n\t\t{\n\t\t\tcout<57)\n\t\t\t\t{\n\t\t\t\t\tt=t+1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ti=i+t-1;\n\t\t\t\t\tcout<<'\\n';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tcout<'0'-1&&*(s+i)<'9'+1)\n\t\t{\n\t\t\tif(*(s+i+1)>'0'-1&&*(s+i+1)<'9'+1)\n\t\t\tprintf(\"%c\",*(s+i));\n\t\t\telse printf(\"%c\\n\",*(s+i));\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43869", "code": "int main()\n{\n\tchar a[30],b[30];\n\tint i,n,z,x=1;\n gets(a);\n\tn=strlen(a);\n\tfor(i=0;i47)&&(a[i]<58))b[i]=a[i];\n\t\telse b[i]='\\n';\n\t}\n\tfor(i=0;i='0')&&(p[i]<='9'))\n\t\t\tcout<<*(p+i);\n\t\telse if (p[i]=='\\0')\n\t\t\tbreak;\n\t\telse\n\t\t\tcout<='0')&&((int)*p<='9')))\n\t\t{\n\t\t\t if(flag == 0)\t\n\t\t\t\tcout<='0'&&*p2<='9')\n {\n while(*p2>='0'&&*p2<='9') p2++;\n *p2=0; // ??0 \n cout<='0'&&c<='9')\n\t\t{\n\t\t\tcout<= '0' && *p <= '9') {\n printf(\"%c\", *p);\n if (p < c + strlen(c) - 1 && *(p+1) >= '0' && *(p+1) <= '9' ) {\n continue;\n }\n printf(\"\\n\");\n }\n }\n return 0;\n}"} +{"label": "88", "index": "43877", "code": "int shuzi(char a)\n\t{\n\t\tif(48<=a&&a<=57)\n\t\t\treturn 0;\n\t\telse return 1;\n}\nint main()\n{\n\tchar a[100];\n\tgets(a);\n\tchar *p=a;\n\twhile(*p!='\\0')\n\t{\n\t\tif(shuzi(*p)==0)\n\t\t\tcout<<*p;\n\t\tif(shuzi(*p)==1&&shuzi(*(p-1))==0)\n\t\t\tcout<=48)\n {*q=*p;q++;flag=1;} \n else if(flag==1)\n { *q=0;\n q=temp;\n cout<y) return;\n\tint i;\n\tfor(i=x;i<=y;i++)\n\t\tcout<='0') continue;\n\t\tprint(k,i-1);\n\t\tk=i+1;\n\t}\n\tprint(k,i-1);\n\treturn 0;\n}"} +{"label": "88", "index": "43880", "code": "main()\n{\n\tint i,j;\n\tchar a[30];\n\tgets(a); \n\ti=0;\n\twhile(i='0'&&a[i]<='9')\n\t\t{\n\t\t\tfor(j=i;a[j]>='0'&&a[j]<='9';j++)\n\t\t\tprintf(\"%c\",a[j]);\n\t\t\tprintf(\"\\n\");\n\t\t\ti=j+1;\n\t\t}\n\t\telse i++;\n\t}\n} "} +{"label": "88", "index": "43881", "code": "int main()\n{\n\tint flag; /*????*/\n\tchar a[40]; /*?????*/\n\tchar *p; \n\tgets(a); /*?????*/\n\tp=a;\n\twhile(1) /*??????????*/\n\t{\n\t\tif(*p==NULL) \n\t\t\tbreak;\n\t\tif(*p>='0'&&*p<='9') /*????*/\n\t\t{\n\t\t\tcout<<*p++;\n\t\t\tflag=1;\n\t\t}\n\t\telse if(flag==1) /* ??????????*/\n\t\t{\n\t\t\tcout<='0' && str[k]<='9')\n\t {\n\t out[i][j]=str[k];\n\t\t j++;\n\t }\n\t else if(str[k-1]>='0' && str[k-1]<='9')\n\t {\n\t i++;\n\t\t j=0;\n\t }\n\t else continue;\n }\n for(m=0;m<=i;m++)\n {\n\t if(out[m]==\"\\0\") break;\n\t cout<=48&&words[i]<=57)\n temp[len2++]=words[i];\n else\n {\n if(len2>=1) \n {\n temp[len2]='\\0';\n cout<<(int)atof(temp)<=1&&(words[len1-1]>=48&&words[len1-1]<=57))\n {temp[len2]='\\0';\n cout<<(int)atof(temp);}\n return 0;\n}\n"} +{"label": "88", "index": "43884", "code": "int main()\n{\n\tint n=0;\n\tchar c[31]={0};\n\tchar *p=c;\n\tcin.getline(c,31);\n\tfor(p=c;p'0'&&*p<='9')\n\t\t{\n\t\t\tcout<='0'&&*(p+1)<='9')\n\t\t\t\t\tp++;\n\t\t\t\telse\n\t\t\t\t\tn=1;\n\t\t}\n\t\tn=0;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43885", "code": "main()\n{\n char s[30];\n int i;\n gets(s);\n for(i=0;i47&&s[i]<58)\n printf(\"%c\",s[i]);\n else if(s[i+1]>47&&s[i+1]<58)\n printf(\"\\n\");\n }\n getchar();\n getchar();\n}"} +{"label": "88", "index": "43886", "code": "// ???????//\n//??????//\n//???1000011029//\n//???2010?12?14?//\n\n\nint main()\n{\n\tchar num[31]; //?????//\n\tchar*p; //????//\n\tchar*m;\n\tint i = 0; //????//\n\tint mount = 0; //????//\n\n\tcin.getline(num,31); //?????//\n\n\tint len = strlen( num ); //???????//\n\t\n\tp = num; //?????//\n\n\tfor( i = 0;i < len;i++ )\n\t{\n\t\tif( (*p) - '0' >= 0 && (*p) - '0' <= 9 ) //??????????//\n\t\t\tcout << *p;\n\t\telse\n\t\t\tif( *(p - 1) - '0' >= 0 && *( p - 1 ) - '0' <= 9 ) //????????????????//\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tmount++;\n\t\t\t}\n\t\tp++;\n\t\t\n\n\t}\n\n\treturn 0;\n}"} +{"label": "88", "index": "43887", "code": "int main()\n{\nchar *a;\nint i,ok;\na=(char*)malloc(sizeof(char)*30);\ngets(a);\nfor (i=0;i='0'&&*(a+i)<='9'))\n{\n\tok=1;\n\tcontinue;\n}\nelse \n{\nif (ok) printf(\"\\n\");\nok=0;\nprintf(\"%c\",*(a+i));\n}\nreturn 0;\n}\n\n"} +{"label": "88", "index": "43888", "code": "/*\n * ym.cpp\n *\n * Created on: 2010-12-31\n * Author: 10151\n */\n\nint main() {\n\tchar a[31];\n\tcin.getline(a, 31);\n\tint len = strlen(a);\n\tfor (int i = 0; i < len; i++) {\n\t\tif ((a[i] > '9' || a[i] < '0')&&(a[i+1] <= '9' && a[i+1] >= '0')){\n\t\t\tcout << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tif ((a[i] > '9' || a[i] < '0')&&(a[i+1] > '9' || a[i+1] < '0'))continue;\n\t\tcout << a[i];\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43889", "code": "\nint main()\n{\n\tint i,j=0;\n\tchar sz[30];\n\tgets(sz); /*????*/\n\n\tfor(i=0;i<30;i++)\n\t{\n\t\tif((sz[i]=='0')||(sz[i]=='1')||(sz[i]=='2')||(sz[i]=='3')||(sz[i]=='4')||(sz[i]=='5')||(sz[i]=='6')||(sz[i]=='7')||(sz[i]=='8')||(sz[i]=='9'))\n\t\t{\n\t\t\tprintf(\"%c\",sz[i]);\n\t\t\tj=0; /*???????????????????*/\n\t\t}\n\t\telse\n\t\t{\n\t\t\tj++;\n\t\t\tif(j==1)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t} /*????????????????*/\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43890", "code": "int main()\n{ \n char str[100],temp[100];\n//??????str????????temp????????? \n char *p=str,*q=temp; //????????str?temp\n int flag; //??????flag?1????????\n cin.getline(p,100); //???????\n while(1)\n {\n if(*p<=57&&*p>=48) //??????????\n {\n *q=*p;q++;flag=1;\n } //????q???????q??\n else if(flag==1) //??????temp??????\n { \n flag=0; \n *q=0; //????????????\n q=temp; //??q??temp?????\n cout<'9')\n\t\t{\n\t\t\ti++;\n\t\t\tif ((a[i]>='0'&&a[i]<='9')||i==strlen(a)-1)\n\t\t\t{\n\t\t\t\tcout<'9'))\n\t\t\t\t\t\tbreak;\n\n\t\tcout<= '0' && *p <= '9')\n\t\t\tcout << *p;//??????\n\t\telse if (*(p + 1) >= '0' && *(p + 1) <= '9')\n\t\t\tcout << endl;//??????????????????????\n\t}\n}\n"} +{"label": "88", "index": "43893", "code": "int main()\n{\n\tchar a[31],i;\n\tgets(a);\n\tfor(i=0;i<31;i++){\n\t\tif(a[i]>=48&&a[i]<=57){\n\t\t\tprintf(\"%c\",a[i]);\n\t\t}\n if(a[i+1]>=48&&a[i+1]<=57&&a[i]<48||a[i]>57&&a[i+1]>=48&&a[i+1]<=57){\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43894", "code": "\n\nint main()\n{\n char a[30];\n gets(a);\n int k;\n for(int i=0;i='0'&&a[i]<='9')\n {\n for(int j=i;j'9')\n {\n cout<='0')&&(c[i]<='9'))\n\t {\n\t printf(\"%c\",c[i]);\n\t end=0;\n\t }\n\tif(((c[i]<'0')||(c[i]>'9'))&&(end==0))\n\t {\n\t printf(\"\\n\");\n\t end=1;\n\t }\n }\n return 0;\n}"} +{"label": "88", "index": "43896", "code": "void main()\n{\n\tchar a[30],*p;\n\tint i,k;\n\tgets(a);\n\tk=strlen(a);\n\tp=a;\n for(p=a;p='0'&&*p<='9'&&*(p+1)>='0'&&*(p+1)<='9')\n\t\t\tprintf(\"%c\",*p);\n\t\tif(*p>='0'&&*p<='9'&&(*(p+1)<'0'||*(p+1)>'9'))\n\t\t\tprintf(\"%c\\n\",*p);\n\t}\n}"} +{"label": "88", "index": "43897", "code": "\nvoid main()\n{\n\t\n\tchar *str;\n\tstr=(char*)malloc(30*sizeof(char));\n\tchar *p;\n\tp=str;\n\tgets(str);\n\t//puts(str);\n\tfor(p=str;p '9')) && (f == 1))\n\t\t{\n\t\t\tcout << endl;\n\t\t\tf = 0;\n\t\t}\n\t\t//?????????????????????\n\t\tif ((*p >= '0') && (*p <= '9') && (f == 1))\n\t\t\tcout << *p;\n\t\tif ((*p >= '0') && (*p <= '9') && (f == 0))\n\t\t{\n\t\t\tcout << *p;\n\t\t\tf = 1;\n\t\t}\n\t\t//???????\n\t\tif (*p == '\\0')\n\t\t\tbreak;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "88", "index": "43899", "code": "int sz(char a)\n{\n\tint m=0;\n\tif(('0'<=a)&&(a<='9'))\n\t\tm=1;\n\treturn m;\n}\nint main()\n{\n\tint i,n,k=0;\n\tchar *p,a[30];\n\tgets(a);\n\tp=a;\n\tn=strlen(a);\n\tfor(i=0;i=0&&a[i]-'0'<=9))\n {a[i]='#';}\n }\n for(i=0;i=0&&a[i]-'0'<=9) printf(\"%d\",a[i]-'0');\n if(a[i]-'0'>=0&&a[i]-'0'<=9&&a[i+1]=='#') printf(\"\\n\");\n }\n}"} +{"label": "88", "index": "43901", "code": "// 44.cpp : Defines the entry point for the console application.\n//\n\n \nint main() \n{\n\tchar s[30];\n\tgets(s);\n\tint i;\n\tint len=strlen(s);\n\tfor(i=0;i='0'&&s[i]<='9'&&(s[i+1]>='0'&&s[i+1]<='9')){\n\t\t\tprintf(\"%c\",s[i]);\n\t\t}\n\t\tif(s[i]>='0'&&s[i]<='9'&&(s[i+1]<'0'||s[i+1]>'9')){\n\t\t\tprintf(\"%c\\n\",s[i]);\n\t\t}\n\t}\n\treturn 0;\n} \n \n"} +{"label": "88", "index": "43902", "code": "int main()\n{char *p,*q;\n int a,i;\nq=p=malloc(100);\ngets(q);\nfor(i=0;i<30;i++)\nif(((*(p+i-1)>'9')||(*(p+i-1)<'0'))&&((*(p+i)<='9')&&(*(p+i)>='0')))\n{a=atoi(p+i);printf(\"%d\\n\",a);}\nreturn 0;}"} +{"label": "88", "index": "43903", "code": "void main()\n{\n\tint i;\n\tchar s[30];\n\tgets(s);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i]>'0'-1&&s[i]<'9'+1)\n\t\t{\n\t\t\tif(s[i+1]>'0'-1&&s[i+1]<'9'+1)\n\t\t\tprintf(\"%c\",s[i]);\n\t\t\telse printf(\"%c\\n\",s[i]);\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43904", "code": "//????\nint main()\n{\n\tchar a[32];\n cin.getline(a ,32);//??\n char *p=a;\n for(int i=1;i<=strlen(a);i++)\n {\n if(*p>='0'&&*p<='9')\n\t { cout<<*p;\n p++;\n }//???????\n else\n\t { cout<= 0 && *p - '0' <= 9 && *(p+1) - '0'>= 0 && *(p+1) - '0'<= 9)/*????????*/\n\t\t{\n\t\t\tcout << *p;\n\t\t}\n\t\telse if(*p - '0'>= 0 && *p - '0' <= 9 && (*(p+1) - '0'< 0 || *(p+1) - '0'> 9))/**p???????????*/\n\t\t{\n\t\t\tcout << *p <= '0' && x <= '9' ) {\n\t\t\tout[ct] = x;\n\t\t\t++ct;\n\t\t\tsig = 1;\n\t\t}\n\t\telse if ( sig ) {\n\t\t\tout[ct] = '\\n';\n\t\t\t++ct;\n\t\t\tsig = 0;\n\t\t}\n\t\telse continue;\n\t}\n\n\tfor ( int i = 0; i != ct; ++i ) cout << out[i];\n\tif ( out[ct - 1] != '\\n' ) cout << endl;\n\n\treturn 0;\n}"} +{"label": "88", "index": "43908", "code": "int main()\n{\n int a[30]={0}, m, i, flag=0;\n char *pt;\n char c[30];\n for(i=0;i<30;i++)\n {\n scanf(\"%c\",&c[i]);\n }\n pt=&c[0];\n m=strlen(c);\n for(i=0;i='0')\n a[i]=1;\n }\n for(i=0;i 0 )\n\t\tfor( j = 0 ; j <= i - 1 ; j ++ )\n\t\t\tsum = sum * 10;\n\treturn sum;\n}\nint main()\n{\n\tchar ch[50];\n\tcin.get( ch , 50 , '\\n' );\n\tint num[50] = {0};\n\tchar *p;\n\tint i = 0 , counter = 0;\n\tfor( p = ch ; *p != '\\0' ; p )\n\t{\n\t\tif( *p < '0' || *p > '9' )\n\t\t\tp ++;\n\n\t\telse if( *p >= '0' && *p <= '9' )\n\t\t{\n\t\t\tint weishu = 0;\n\t\t\twhile( *p >= '0' && *p <= '9' && *p != '\\0' )//?????????? \n\t\t\t{\n\t\t\t\tp ++;\n\t\t\t\tweishu ++;//?????? \n\t\t\t}\n\t\t\tfor( i = 1 ; i <= weishu ; i ++ )\n\t\t\t\tnum[counter] = num[counter] + ( *( p - i ) - '0') * powe(i - 1);\n\t\t\tcounter ++;\n\t\t\tcontinue;\n\t\t}\n\t}\n\tfor( i = 0 ; i <= counter - 1 ; i ++ )\n\t\tcout << num[i] << endl;\n\treturn 0;\n}\n"} +{"label": "88", "index": "43910", "code": "int main()\n{\n\tint i=0;\n\tchar a[30];\n\tcin.getline(a,31,'\\n');\n\tfor (i=0;a[i]!='\\0';i++)\n\t{\n\t\tif ((a[i]>='0')&&(a[i]<='9'))\n\t\t{\n\t\t\tcout<'9'))&&((i+1)<=33)) i++;\n\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n\n"} +{"label": "88", "index": "43911", "code": "int main()\n{\nchar c[50];\nint i=0,flag=0;\ngets(c);\nwhile (i<=strlen(c))\n{\nif (c[i]>='0'&&c[i]<='9') \n\tif (flag==0) {flag=1;printf(\"\\n%c\",c[i]);} else printf(\"%c\",c[i]);\nelse flag=0;\ni++;\n}\n}"} +{"label": "88", "index": "43912", "code": "int main(){\n\tchar a[31];\n\tcin.getline(a,31);\n\tint len=strlen(a);\n\tfor(int i=0;i=48 && *(p+i)<=57) {\n\t\t\tf=0;sum=0;printf(\"%c\",*(p+i));\n\t\t}\n\t\telse {\n\t\t\tsum++;\n\t\t\tif (sum==1 && f==0) printf(\"\\n\");\n\t\t}\n\tfree(p);\n}\n"} +{"label": "88", "index": "43914", "code": "\n\nint main()\n{\n\tchar a[31];\n\tcin.get(a,31,'\\n');\n\n\tint i=0;\n\tfor(;a[i] != 0;i++)\n\t{\n\t\tif(!(a[i]>47 && a[i]<58))\n\t\t\tcontinue;\n\t\tint j=i;\n\t\tfor(;j<=30;i++,j++)\n\t\t\tif(a[j]>47 && a[j]<58)\n\t\t\t\tcout<='0'&&*p<='9') cout<<*p;\n\t\telse if(*(p+1)>='0'&&*(p+1)<='9') cout<='0'&&*(a+0)<='9')\n\t\tprintf(\"%c\",*(a+0));\n\tfor(i=1;*(a+i)!='\\0';i++)\n\t{\n\t\tif(*(a+i)>='0'&&*(a+i)<='9')\n\t\t\tprintf(\"%c\",*(a+i));\n\t\telse if(*(a+i+1)>='0'&&*(a+i+1)<='9')\n\t\t\tprintf(\"\\n\");\n\t}\n\n\n}"} +{"label": "88", "index": "43917", "code": "/*\n * coutnum.cpp\n * ????\n * Created on: 2012-12-14\n * Author: 12219\n */\nint main() {\n\tchar a[30], *p;\n\tint b;\n\tcin.getline(a, 31);\n\tb = strlen(a);\n\tfor (p = a; p < a + b; p++) {\n\t\tif (*p >= '0' && *p <= '9')\n\t\t\tcout << *p;\n\t\telse\n\t\t\tcout << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43918", "code": "int main()\n{\n\tint i,l;\n\tchar x[100],*p;\n\tgets(x);\n\tl=strlen(x);\n\tp=x;\n\tfor(i=0;i='0'&&x[i]<='9')==0)\n\t\t{\n\t\t\tx[i]=0;\n\t\t}\n\t}\n\tcout<='0'&&s[i]<='9')\n\t\t{\n\t\t\tif(s[i+1]>='0'&&s[i+1]<='9')\n\t\t\t\tprintf(\"%c\",s[i]);\n\t\t\telse\n\t\t\t\tprintf(\"%c\\n\",s[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43920", "code": "int main()\n{\n\tchar c;\n\twhile (c != '\\n')\n\t{\n\t\tscanf(\"%c\",&c);\n\t\tif(c >= '0' && c <= '9')\n\t\t\tprintf(\"%c\",c);\n\t\telse\n\t\t\tprintf(\"\\n\");\t\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43921", "code": "int main()\n{\n\tint i=0,l,flag;\n\tchar c[31];\n\tcin.getline(c,31);\n\tfor(i=0;;i++)\n\t\tif(c[i]=='\\0')\n\t\t\tbreak;\n\tl=i;\n\tchar *a=c;\n\tfor(i=0;i='0'&&*(a+i)<='9')\n\t\t\t{\n\t\t\t\tcout << *(a+i);\n\t\t\t\tflag=0;\n\t\t\t}\n\t\telse\n\t\t\tif(flag==0)\n\t\t\t\t{\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tflag=1;\n\t\t\t\t}\n\treturn 0;\n}\n\n"} +{"label": "88", "index": "43922", "code": "void sum(char *p)\n{\n\tint a[10],i,j=0,b=0;\n\tfor(i=0; *(p+i)!='\\0'; i++)\n\t{\n\t\tif(*(p+i)>='0'&&*(p+i)<='9')\n\t\t{\n\t\t\tb=*(p+i)-48+b*10;\n\t\t\tif (*(p+i+1)<'0'||*(p+i+1)>'9')//||\n\t\t\t{\n\t\t\t\ta[j]=b;\n\t\t\t\tj++;\n\t\t\t\tb=0;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0; i='0' && a[i] <='9' && a[i+1] >= '0' && a[i+1] <= '9')\n\t\t{\n\t\t\tcout << a[i];\n\t\t}\n\t\tif(a[i] >='0' && a[i] <='9' && ( a[i+1] >'9' || a[i+1] < '0' || a[i+1]=='\\0') )\n\t\t{\n\t\t\tcout << a[i] << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43925", "code": "void main()\n{\n\tchar *str,*p;\n\tint k=1;\n\tstr=(char *)malloc(30*sizeof(char));\n\tgets(str);\n\tp=str;\n\tfor(;p='0'&&*p<='9'){printf(\"%c\",*p);k=1;}\n\t\telse if(k){printf(\"\\n\");k=0;}\n\t}\n\tfree(str);\n}\n"} +{"label": "88", "index": "43926", "code": "\nint main()\n{\n\tchar a[35];\n\tgets(a);\n\tchar* end=a+strlen(a);\n\tfor (char *i=a;i='0' && *i<='9')\n\t\t{\n\t\t\tprintf(\"%c\",*i);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twhile (!(*i>='0' && *i<='9'))\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ti--;\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43927", "code": "/**\n *file ????\n *author ???\n *date 12.9\n *function\t\t???????????????????????\n ?????????????????????????????????????\n*/\nint main()\n{\n\tchar a[100] = {0}, *p = NULL;\n\tint flag = 0, lena;\n\tp = a;\n\t\tmemset(a,0,100);\n\t\tcin.getline(a,100);\n\t\tlena = strlen(a);\n\t\twhile(*p != '\\0')\n\t\t{\n\t\t\tif(*p <= '9' && *p >= '0')\n\t\t\t{\n\t\t\t\tcout << *p;\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(flag)\n\t\t\t\t{\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tflag = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tp++;\n\t\t}\n\t\tif(*(p + lena - 1) <= '9' && *(p + lena - 1) >= '0')\n\t\t{\n\t\t\tcout << endl;\n\t\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43928", "code": "int main()\n{\n\tchar str1[31], str2[31], *p1, *p2;\n\tcin.getline(str1, 31);\n\tint flag = 0;\n\tfor(p1 = str1, p2 = str2; *p1 != '\\0'; p1++,p2++)\n\t{\n\t\t*p2 = *p1;\n\t\tif(*p1 - '0' < 0 || *p1 - '0' > 9)\n\t\t{\n\t\t\tflag++;\n\t\t\tif(flag >= 2)\n\t\t\t\tp2--;\n\t\t}\n\t\telse\n\t\t\tflag = 0;\n\t}\n\t*p2 = '\\0';\n\tfor(p2 = str2; *p2 != '\\0'; p2++)\n\t{\n\t\tif(*p2 - '0' >= 0 && *p2 - '0' <= 9)\n\t\t\tcout << *p2;\n\t\telse\n\t\t\tcout << endl;\n\t}\n\treturn 0;\n}\n\n\t\n"} +{"label": "88", "index": "43929", "code": "void main()\n{\n char *p;\n int i;\n p=(char *)malloc(31*sizeof(char));\n for(i=0;i<31;i++)\n scanf(\"%c\",(p+i));\n for(i=0;i<31;i++)\n {\n if((*(p+i)!='0')&&(*(p+i)!='1')&&(*(p+i)!='2')&&(*(p+i)!='3')&&(*(p+i)!='4')&&(*(p+i)!='5')&&(*(p+i)!='6')&&(*(p+i)!='7')&&(*(p+i)!='8')&&(*(p+i)!='9'))\n printf(\"\\n\");\n else\n printf(\"%c\",*(p+i));\n }\n}"} +{"label": "88", "index": "43930", "code": "\n\n\nint main() {\n\tchar s[31];\n\t\n\tchar *p;\n\tgets(s);\n\tp=s;\n\twhile((*p)!='\\0')\n\t{\n\tfor(;(*p)>='0'&&(*p)<='9';p++)\n\t{\n\t\tprintf(\"%c\",*p);\n\t\t}\n\n\tif((*p)!='\\0')\n\tp++;\n\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43931", "code": "/* Note:Your choice is C IDE */\nvoid main()\n{char s[100];int i,flag1=-1,flag2=-1,m;\n\tgets(s);\n\tm=strlen(s);\n\tfor(i=0;i='0'&&s[i]<='9') printf(\"%c\",s[i]);\n\t\tif((s[i]>='0'&&s[i]<='9')&&(!(s[i+1]>='0'&&s[i+1]<='9'))) printf(\"\\n\"); \n}}"} +{"label": "88", "index": "43932", "code": "int main()\n{\n\tchar a[300];\n\tint i,n,b[20]={0},k=0,num=0;\n\tgets(a);\n\tn=strlen(a);\n\ta[n]=' ';\n\tfor(i=0;i=0&&a[i]-'0'<10)\n\t\t\tnum=num*10+a[i]-'0';\n\t\telse if((a[i-1]-'0'>=0&&a[i-1]-'0'<10)&&(a[i]-'0'<0||a[i]-'0'>=10))\n\t\t{\n\t\t\tb[k]=num;\n\t\t\tnum=0;\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(i=0;i='0'&&*pTest<='9') //????\n\t\t{\n\t\t\tcout<<*pTest;\n\t\t\tif (*(pTest+1)<'0' ||*(pTest+1)>'9')\n\t\t\t\tcout<= 48)&&(ch[i] <= 57))\n\t\t{\n\t\t\tif ((ch[i + 1] >= 48)&&(ch[i + 1] <= 57))\n\t\t\t{\n\t\t\t\tcout << ch[i];\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tcout << ch[i] << endl;\n\t\t\t}\n\t\t}\n\t}\n\tif ((ch[len - 1] >= 48)&&(ch[len - 1] <= 57))\n\t{\n\t\tcout << ch[len - 1] << endl;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43936", "code": "\nint main()\n{\n\tchar a[31];\n\tcin.getline(a,31,'\\n');\n\tint i=0;\n\twhile(i<=strlen(a))\n\t{\n\tif(a[i]<='9'&&a[i]>='0')\n\t{\n\t\tcout<='0')\n\t{\n\t\tcout<='0'&&*(p+i)<='9')\n\t\t{\n\t\t\tprintf(\"%c\",*(p+i));\n\t\t}\n\t\telse if(*(p+i+1)>='0'&&*(p+i+1)<='9')\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "88", "index": "43938", "code": "\nint main(){\n\tchar str[100]={0};\n\tcin.getline(str,99);//????????\n\n\tfor(int i=0;i<100;i++){//???????????????\n\t\tif(*(str+i)<'0'||*(str+i)>'9') *(str+i)=0;\n\t}\n\n\tfor(int i=0;i<100;){//???????????????\n\t\tif(*(str+i)==0){\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}else{\n\t\t\tcout<='0'&&c[i]<='9'&&c[i+1]>='0'&&c[i+1]<='9')\n\t\t\tcout<='0'&&c[i]<='9'&&(c[i+1]<'0'||c[i+1]>'9'||i == len -1))\n\t\t\tcout<='0' && s[i]<='9')\n\t\t{\n\t\t\tprintf(\"%c\",s[i]);\n\t\t\tk=0;\n\t\t}\n\t\telse if(k==0)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tk=1;\n\t\t}\n\t}\n\treturn 0;\n} "} +{"label": "88", "index": "43941", "code": "int main()\n{\n char a[30],i; \n for(i=0;i<30;i++)\n a[i]=' '; //?????????????\n \n gets(a); //????????\n \n for(i=0;i<30;i++){\n if(a[i]==48||a[i]==49||a[i]==50||a[i]==51||a[i]==52||a[i]==53||\n a[i]==54||a[i]==55||a[i]==56||a[i]==57){ //ASCII???\n printf(\"%c\",a[i]); //????????????\n if(i+1<30&&(a[i+1]<48||a[i+1]>57))\n printf(\"\\n\"); //??????????????????\n }\n }\n\n return 0;\n}"} +{"label": "88", "index": "43942", "code": "void main()\n{\n char a[30];\n int i,flag=1;\n gets(a);\n char *p=a;\n for(i=0;i='0'&&*(p+i)<='9')\n {printf(\"%c\",*(p+i)); flag=0;}\n else if(*(p+i+1)>='0'&&*(p+i+1)<='9'&&flag==0)\n printf(\"\\n\");\n}"} +{"label": "88", "index": "43943", "code": "//**********************************************\n//**???????******************************\n//**?????? 1000012741*********************\n//**???2010?12?10?************************\n//**********************************************\nint main()\n{\n\tchar str[31], *p; //??str????,p???\n\tcin.getline(str, 31); //?????\n\tp = str; //?p?????????\n\tint flag = 0; //flag???????????\n\tdo\n\t{\n\t\tif (*p >= '0' && *p <= '9') //????????\n\t\t{\n\t\t\tcout << *p; //?????\n\t\t\tp++; //??????????\n\t\t\tflag = 1; //?flag?1\n\t\t}\n\t\telse //?????????\n\t\t{\n\t\t\tp++; //??????????\n\t\t\tif (*p >= '0' && *p <= '9' && flag == 1) //?????????????????\n\t\t\t\tcout << endl; //??\n\t\t}\n\t} while (*p != '\\0'); //??????????\n\tcout << endl;\n\treturn 0;\n}\n//*********************************************"} +{"label": "88", "index": "43944", "code": "int main()\n{\n int i,j=1;\n char a[31];\n cin.getline(a,31);\n for(i=0;i<31;i++)\n {\n\t if(a[i]>=48&&a[i]<=57)\n\t {\n\t\t cout<= '0') && (s[i] <= '9'))\n\t\t{\n\t\t\tflag = 1;\n\t\t\tcout << s[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (flag == 1) \n\t\t\t\tcout << endl;\n\t\t\tflag = 0;\n\t\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43948", "code": "int main()\n{\n\tchar an[100];\n\tcin.getline(an,100);\n\tint i,j=0;\n\tchar bn[100];\n\tint n=0;\n\tfor(i=0;i='0'&&an[i]<='9')\n\t\t{\n\t\t\tbn[j]=an[i];\n\t\t\ti++;\n\t\t\tj++;\n\t\t\twhile(an[i]>='0'&&an[i]<='9')\n\t\t\t{\n\t\t\t\tbn[j]=an[i];\n\t\t\t\tj++;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tbn[j]=' ';\n\t\t\tj++;\n\t\t\ti++;\n\t\t\tn++;\n\t\t}\n\t\telse i++;\n\t}\n\n\tfor(int k=0;k='0'&&*(p+i)<='9')\n\t\t{\n\t\t\tcout<<*(p+i);\n\t\t\tcount=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcount++;\n\t\t\tif(count==1)\n\t\t\t{\n\t\t\t\tcout<='0'&&c[i]<='9')\n cout<='0'&&c[i-1]<='9'&&(c[i]<'0'||c[i]>'9'))\n {\n k=0;\n for(j=i+1;j='0'&&c[j]<='9')\n k=1;\n if(k==1)\n cout<='0'&&*p<='9') cout << *p;//???????\n\t\telse if(*(p-1)>='\\0'&&*(p-1)<='9') cout << endl;//???????????\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43955", "code": "int main()\n{\n\tchar a[40];int i;\n\tcin.getline(a,31,'\\n');\n\tfor(i=0;i='0'&&a[i]<='9')\n\t\t\tcout<=0) || ( a[i+1]-'0'<=9 ) ) )\n printf(\"%c\",b[j]);\n \n if ( a[i]==b[j] && ( (a[i+1]-'0'<0) || ( a[i+1]-'0'>9 ) ) )\n printf(\"\\n\",b[j]);\n }\n }\n}\n"} +{"label": "88", "index": "43957", "code": "//\n// Created by Chu-Pan,Wong on Dec 10, 2013.\n// Copyright (c) 2013 ChuPan,Wong. All rights reserved.\n//\n\n\n\nint main(int argc, char** argv){\n char s[31];\n gets(s);\n int len = (int)strlen(s);\n char* p=s;\n char* q;\n for (int i = 0; i= '0' && *(p+i) <= '9') {\n q = p+i;\n i++;\n while (*(p+i) >= '0' && *(p+i) <= '9') {\n i++;\n }\n *(p+i) = 0;\n printf(\"%s\\n\", q);\n }\n }\n return 0;\n}"} +{"label": "88", "index": "43958", "code": "int main()\n{\n\tchar a[31];\n\tint i;\n\tcin.getline(a, 31);\n\tfor (i = 0; i < strlen(a); i++)\n\t{\n\t\tif (isdigit(a[i]))\n\t\t{\n\t\t\tif (!isdigit(a[i+1]))\n\t\t\t\tcout << a[i] << endl;\n\t\t\telse\n\t\t\t\tcout << a[i];\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43959", "code": "//@@@@???????@@@@@@@@@@@//\n//@@@@?????@@@@@@@@@@@@@@@//\n//@@@@???12/11@@@@@@@@@@@@@@//\nint main()\n{\n\tchar str[31]; // ??????\n\tint i, j, l, a[31] = { 0 },*p=a; // l???????????????a[31]????????\n\tcin.getline(str, 31); // ?????\n\tl = strlen(str); // ????????\n for (j = '0'; j <= '9'; j++)\n\t{\n\t\tif (str[0] == j)\n\t\t{\n\t\t\tcout << str[0];\n\t\t\t*p = 1;\n\t\t\tbreak;\n\t\t}\n\t} // ?????????\n\tfor (i = 1; i < l; i++)\n\t{\n\t\tfor (j = '0'; j <= '9'; j++)\n\t\t{\n\t\t\tif(str[i] == j)\n\t\t\t{\n\t\t\t\tcout << str[i];\n\t\t\t\t*(p+i)= 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (*(p + i - 1) == 1 && j == '9' + 1)cout << endl; // ??a[i]????a[i-1]??????\n\t }\n}"} +{"label": "88", "index": "43960", "code": "\n\nint main(){\n\tchar a[31],*p;\n\tcin.getline(a,31);\n\tp=a;\n\tint flag=0,sum=0;\n\tfor(int i=0;p[i]!='\\0';i++){\n\t\tif(p[i]>='0'&&p[i]<='9'){\n\t\t\tflag=0;\n\t\t\tcout<='0' && str[i]<='9' && (str[i+1]>'9' || str[i+1]<'0'))\n\t\t\tcout<'9') && str[i+1]<='9' && str[i+1]>='0')\n\t\t\ttemp=i+1;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43962", "code": "\nvoid main()\n{\n char s[30],* ps;\n int i,j,k,m,e,d,n,a[10],* pa;\n gets(s); \n ps=s;\n pa=a;\n n=0;\n i=0;\n j=0;\n while(* (ps+i)!='\\0')\n {if((*(ps+i)>='0')&&(*(ps+i)<='9'))\n j++;\n else\n {if(j>0)\n {d=* (ps+i-1)-48;\n k=1;\n while(k0)\n {d=* (ps+i-1)-48;\n k=1;\n while(k=48 && *p<58)\n { do{\n \t cout<<*p;\n p++;\n }while(*p>47 && *p<58);\n cout<='0'&&c[i]<='9') cout<='0'&&c[i-1]<='9') cout<='0') printf(\"%c\",*p);\n\t\telse if(*(p-1)<='9'&&*(p-1)>='0') printf(\"\\n\");\n}\n"} +{"label": "88", "index": "43966", "code": "void main()\n{\n char *a;\n int i,n=0,j=0,*b;\n a=(char*)malloc(30*sizeof(char));\n for(i=0;i<30;i++)\n {*(a+i)='\\0';scanf(\"%c\",a+i);}\n \n for(i=0;*(a+i)!='\\0';i++)\n\t{ if(*(a+i)<':'&&*(a+i)>'/') \n\t printf(\"%c\",*(a+i));\n if(*(a+i)>=':'||*(a+i)<='/'&&*(a+i+1)<':'&&*(a+i+1)>'/')\n printf(\"\\n\"); \n }\n\n\n\n\n}\n"} +{"label": "88", "index": "43967", "code": "\nint main()\n{\n\tint i,a=0,sum=0; //a???????????????????????\n\tchar zf[30];\n\tgets(zf);\n\tfor(i=0;i<30;i++){ //???????\n\t\tif('0'<=zf[i]&&zf[i]<='9'){ //????\n\t\t\tsum++; //????????\n a=0;\n\t\t\tprintf(\"%c\",zf[i]); //??????\n\t\t} \n\t\telse if(a==0){ //?????????????\n\t\t\tprintf(\"\\n\");\n\t\t\ta=1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43968", "code": "int main()\n{\n char input_number[30];\n gets(input_number);\n\n int indicator;\n int cool=0;\n for(indicator=0;indicator= '0' && *p <= '9')\t//????????????1\n\t\t{\n\t\t\tflag = 1;\n\t\t\tcout << *p;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(flag == 1)//?????????????????????0\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43970", "code": "int main()\n{\n\tchar* string=(char*)malloc(30);\n\tgets(string);\n\tchar *p=string;\n\tint len=strlen(string);\n\tfor(;p='0'&&*p<='9')\n\t {\n\t\tprintf(\"%c\",*p);\n\t\tp++;\n\t\tanynumber++;\n\t }\n\t\tif(anynumber)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t}\n}"} +{"label": "88", "index": "43971", "code": "\nint main ()\n{\n\tchar *p;\n\n\tchar a[32];\n\n\tcin.getline (a,31);\n\n\tfor (p=a;*p!='\\0';p++)\n\t{\n\t\tif (*p>57||*p<48)\n\t\t{\n\t\t\tcout <57||*p<48)&&*p!='\\0')\n\t\t\t{\n\t\t\t\tp++;\n\t\t\t}\n\t\t\tp--;\n\t\t}\n\t\telse cout <<*p;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "88", "index": "43972", "code": "/*\n * Pointer1.8GetNumber.cpp\n * ????\n * Created on: 2012-12-21\n * Author: ???\n * ??:??????????????????????????\n */\nint main(){\n\tchar *p;\n\tchar a[33];\n\tgets(a);//??????a??????\n\tp=a;\n\twhile(p-a <= strlen(a)){//???a??????\n\t\tif(*p == '-')\n\t\t\t{p++;\n\t\t\twhile(*p>='0' && *p <='9')\n\t\t\tp++;} //?????????????\n\t\telse if(*p>='0' && *p<='9')//????\n\t\t\t{cout<<*p;\n\t\t\tif(*(p+1)<'0' || *(p+1)>'9')//????????\n\t\t\tcout<'9')\n\t\t\tp++;//???????\n\t}//while????\n\n\t\treturn 0;\n}\n"} +{"label": "88", "index": "43973", "code": "int main(){\n\tchar a[60];\n\tchar *p=a;\n\tcin.getline(p,59);\n\tint i=0,len=strlen(p);\n\tdo{\n\t\tif(p[i]=='-') do{\n\t\t\ti++;\n\t\t}while(p[i]<48||p[i]>57);\n\t\tif(p[i]>=48&&p[i]<=57){\n\t\t\tdo{\n\t\t\t\tcout <=48&&p[i]<=57);\n\t\t\tcout << endl;\n\t\t}else i++;\n\t}while(i='0'&&*p<='9')\n\t\t{\n\t\t\tcout << *p;\n\t\t\tp++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp++;\n\t\t\tif (*p>='0'&&*p<='9')\n\t\t\t\tcout << endl;\n\t\t}\n\t} while (*p!='\\0');\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "88", "index": "43975", "code": "\n\nint main()\n{\n\tchar s[80];\n\tgets(s);\n\tchar* p;\n\tp = s;\n\tint n;\n\twhile(*p != '\\0')\n\t{\n\t\tif(p-s > 0 && (*(p-1) <'0' || *(p-1) > '9' ) && n == 0)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tn++;\n\t\t}\n\t\tif(*p>='0' && *p<='9')\n\t\t{\n\t\t\tcout << *p;\n\t\t\tn = 0;\n\t\t}\n\t\tp++;\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43976", "code": "/*\n * ???8.cpp\n * Created on: 2012-12-12\n * Author: ???\n * ??:????\n */\nint main(){\n\tchar str[40]; //??????\n\tgets(str); //?????\n\tchar *p=str; //????\n\tint len,i,k=0; //????\n\tlen=strlen(str); //????\n\tif(len==1){\n\t\tif(*(p+0)>='0' && *(p+0)<='9')\n\t\t\tcout<<*(p+0);\n\t}\n\tfor(i=0;i='0' && *(p+i)<='9') //??????? ???\n \t{\n \tcout<<*(p+i);k=1;\n if(*(p+i+1)<'0' || *(p+i+1)>'9') //??????? ???\n \t {cout<='0' && *(p+len-1)<='9')\n\t\tcout<<*(p+len-1);\n return 0; //????\n}"} +{"label": "88", "index": "43977", "code": "/*\n * 12-4.cpp\n *\n * Created on: 2011-12-25\n * Author: sony\n */\n\nint main()\n{\n\tchar input[35];\n\tcin.getline(input, 35);\n\tint i, j;\n\tint len = strlen(input);\n\tfor (i = 0; i < len; i++){\n\t\tif (input[i] >= '0' && input[i] <= '9') {\n\t\t\tcout << input[i];\n\t\t\tfor (j = i + 1; ; j++) {\n\t\t\t\tif (input[j] >= '0' && input[j] <= '9') {\n\t\t\t\t\tcout << input[j];\n\t\t\t\t} else {\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\ti = j;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "88", "index": "43978", "code": "void main()\n{\n char *a;\n int i,n=0,j=0,*b;\n a=(char*)malloc(30*sizeof(char));\n b=(int*)malloc(30*sizeof(int));\n for(i=0;i<30;i++)\n {*(a+i)='\\0';*(b+i)='\\0';scanf(\"%c\",a+i);}\n \n for(i=0;*(a+i)!='\\0';i++)\n\t{ if(*(a+i)<':'&&*(a+i)>'/') \n\t printf(\"%c\",*(a+i));\n if(*(a+i)>=':'||*(a+i)<='/'&&*(a+i+1)<':'&&*(a+i+1)>'/')\n printf(\"\\n\"); \n }\n\n\n\n\n}"} +{"label": "88", "index": "43979", "code": "void main()\n{\n int i;\n char *p;\n char c1,c2;\n p=(char*)calloc(30,sizeof(char));\n gets(p);\n for(i=0;*(p+i)!='\\0';i++)\n { c1=*(p+i);\n c2=*(p+i+1);\n if(c1>47&c1<58)\n {printf(\"%c\",c1);\n if(c2<48||c2>57)\n printf(\"\\n\");\n } \n } \n}"} +{"label": "88", "index": "43980", "code": "void main()\n{\n\tint a;\n\tint i=0;\n\tfor(;a!='\\n';)\n\t{\n\ta=getchar();\t\n\tif(a>=48 && a<=57)\n\t{printf(\"%c\",a);i=0;}\n\telse if((a<48 || a>57)&&(i==0))\n\t{i++;printf(\"\\n\");continue;}\n\telse continue;\n\t}\n}\n"} +{"label": "88", "index": "43981", "code": "int main()\n{\n char str[30];\n gets(str);\n char *str_pointer;\n str_pointer=str;\n int i,flag,count;\n flag=count=0;\n for(i=0;str[i];i++)\n {\n\t if(str[i]>='0'&&str[i]<='9')\n\t {\n\t\t printf(\"%c\",str[i]);\n\t\t flag=0;\n\t }\n\t else if(flag==0)\n\t {\n\t\t printf(\"\\n\");\n\t\t flag=1;\n\t }\n }\n return 0;\n}\n\t \n"} +{"label": "88", "index": "43982", "code": "int main()\n{\n char str[31];\n cin.getline(str,31);\n for(int i=0;str[i];i++)\n {\n\t if((str[i]<='9'&&str[i]>='0')&&(str[i+1]<='9'&&str[i+1]>='0'))\n\t\t cout<='0')&&!(str[i+1]<='9'&&str[i+1]>='0'))\n\t\t cout<= 0 && (*p) - '0' <= 9 )\n\t\t\tcout << *p;\n\t\telse\n\t\t\tif( *(p - 1) - '0' >= 0 && *( p - 1 ) - '0' <= 9 )\n\t\t\t\tcout << endl;\n\t\tp++;\n\t\t\n\n\t}\n\n\treturn 0;\n}"} +{"label": "88", "index": "43984", "code": "void main()\n{\nchar a[1000];\nint i;\ngets(a);\nfor(i=0;a[i]!='\\0';i++)\n{\nif(a[i]>=48&&a[i]<=57)\nprintf(\"%c\",a[i]);\nelse printf(\"\\n\");\n}\n}"} +{"label": "88", "index": "43985", "code": "int main()\n{\n char a[30];\n int i;\n gets(a);\n for(i=0;i<30;i++){\n if(a[i]=='0'||a[i]=='1'||a[i]=='2'||a[i]=='3'||a[i]=='4'||a[i]=='5'||a[i]=='6'||a[i]=='7'||a[i]=='8'||a[i]=='9'){\n printf(\"%c\",a[i]);\n }\n else printf(\"\\n\");\n }\n return 0;\n}"} +{"label": "88", "index": "43986", "code": "int main()\n{\n\tchar c[100],*p=c;\n int a[50],*q=a,num=0,i;\n gets(c);\n for(; *p!='\\0'; p++)\n\t\tif(*p>='0' && *p<='9'){\n\t\t\t*q=(*p)-'0';\n p++;\n\t\t\twhile(*p>='0' && *p<='9')\n\t\t\t\t*q=(*q)*10+(*(p++)-'0');\n\t\t\tnum+=1;\n\t\t\tq+=1;\n\t\t}\n\tfor(i=0,q=a; i='0'&&*p<='9')\n\t\t{\n\t\t\t*(q++)=*(p++);\n\t\t\tj++;\n\t\t}\n\t\telse if(*(q-1)=='\\n')\n\t\t{p++;}\n\t\telse\n\t\t{\n\t\t\t*(q++)='\\n';\n\t\t\tj++;\n\t\t\tp++;\n\t\t}\n\t}\n\tfor(int k=0;k=48&&c[i]<=57)\n {\n if(c[i+1]>=48&&c[i+1]<=57)printf(\"%c\",c[i]);\n else\n printf(\"%c\\n\",c[i]);\n }\n }\n\t\n return 0;\n}\n"} +{"label": "88", "index": "43990", "code": "void main()\n{\n char *c,*p,*p1;\n c=(char*)malloc(1000*sizeof(char));\n int a=0;\n p=c;\n gets(c);\n for(c=p;*c!='\\0';c++)\n {\n if(*c>='0'&&*c<='9')\n {\n printf(\"%c\",*c);\n a=1;\n }\n else if(a==1)\n\t\t\tfor(p1=c;*p1!='\\0';p1++)\n\t\t\t\tif(*p1>='0'&&*p1<='9')\n\t\t\t\t{ \n\t\t\t\t\tprintf(\"\\n\");\n\t\t\t\t\ta=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n }\n}"} +{"label": "88", "index": "43991", "code": "main()\n{\n char s[31];\n int i,n;\n gets(s);\n n=strlen(s);\n for(i=0;i='0'&&str[i]<='9') str[j++]=str[i];\n if(str[i]>='0'&&str[i]<='9'&&(str[i+1]>'9'||str[i+1]<'0')) str[j++]='\\n';\n if(str[i]=='\\0') str[j]='\\0';\n }\n for(j=0;str[j]!='\\0';j++)\n printf(\"%c\",str[j]);\n return 0;\n }\n"} +{"label": "88", "index": "43993", "code": "\nint main()\n{\n char q,*p;\n int now;\n scanf(\"%c\",&q);\n while (!((('0'<=q) && ('9'>=q)))) \n { \n scanf(\"%c\",&q);\n // printf(\"%c\\n\",q);\n }\n long tot=0;\n while (q!='\\n') \n {\n if (('0'<=q)&& ('9'>=q))\n { \n tot=tot*10+q-'0';\n now=1; \n } \n else if (tot!=0){\n printf(\"%d\\n\",tot);\n tot=0;\n now=0;\n }\n scanf(\"%c\",&q);\n } \n if( now !=0) printf(\"%d\\n\",tot);\n // scanf(\"%c\",&q);\n // scanf(\"%c\",&q);\n}\n"} +{"label": "88", "index": "43994", "code": "int main()\n{\n\tchar *p;\n\tint i;\n\tp=(char *)malloc(30*sizeof(char));\n\tgets(p);\n\tfor (i=0;i=48&&*(p+i)<=57)\n\t\t\tprintf(\"%c\",*(p+i));\n\t\telse if ((!(*(p+i)>=48&&*(p+i)<=57))&&(*(p+i+1)>=48&&*(p+i+1)<=57))\n\t\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "88", "index": "43995", "code": "main()\n{\n char s[30],num[30];\n gets(s);\n int l;\n l=strlen(s);\n int k=0;\n for (int i=0;i='0'&&s[i]<='9')\n {\n num[k]=s[i];\n k++;\n }\n else\n {\n if (k!=0)\n {\n for (int j=0;j='0'&&*p<='9'){\n\t\t\tnum=num*10+(*p-'0');\n\t\t\tp++;\n\t\t\tif(!(*p>='0'&&*p<='9')||*p=='\\0'){\n\t\t\t\tcout<=*pt){//the egg pain segmentation fault!\n sum*=10;\n sum=sum+*pt-'0';\n pt++;}\n return sum;\n}\nvoid skipstring()\n{\n while(*pt&&(*pt<'0'||*pt>'9'))\n pt++;\n}\nint main()\n{\n gets(str);\n int i=0;\n for (i=0;i<30;i++)\n a[i]=-1;//means initialized\n i=0;\n while(*pt!='\\0')\n {\n skipstring();\n a[i]=getint();\n i++;\n }\n for(i=0;i<30;i++)\n if(a[i]!=-1)printf(\"%d\\n\",a[i]);\n return 0;\n}\n"} +{"label": "88", "index": "43999", "code": "int main()\n{\n\tint l,i;\n\tchar str[31];\n\tcin.getline(str,31,'\\n'); //?????\n\tl=strlen(str);\n\tfor(i=0;i<=l-1;i++)\n\t{\n\t\tif(str[i]<='9'&&str[i]>='0'&&(str[i+1]>'9'||str[i+1]<'0'))\n\t\t{\n\t\t\tcout<='0'&&str[i+1]<='9'\n &&str[i+1]>='0')\n\t\t{\n\t\t\tcout<> n;\n\twhile(1)\n\t{\n\t\tcin >> ren[i][0] >> ren[i][1];\n\t\tif( ren[i][0] == 0 && ren[i][1] == 0 )\n\t\t\tbreak;\n\t\telse\n\t\t{\t\n\t\t\tming[ren[i][0]][0]++;\n\t\t\tming[ren[i][1]][1]++;\n\t\t}\n\t\ti++;\n\t}\n\tfor( i = 0; i < n; i++ )\n\t{\n\t\tif( ming[i][0] == 0 && ming[i][1] == n - 1 )\n\t\t{\t\n\t\t\tcout << i << endl;\n\t\t\tnum++;\n\t\t}\n\t}\n\tif( num == 0 )\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44003", "code": "int main()\n{\n\tint a[10000]={0},b[10000]={0},n,i,j,k,q;//a??????????????\n\tcin>>n;\n\tq=0;\n\twhile(n!=0)\n\t{\n\t\tcin>>i>>j;\n\t\tif(i==0&&j==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\ta[i]++;\n\t\tb[j]++;\n\t}\n\tfor(k=0;k<=n-1;k++)\n\t{\n\t\tif(b[k]==n-1&&a[k]==0)\n\t\t{\n\t\t\tcout<=n)\n\t\t{\n\t\t\tprintf(\"%d\",temp[i]);\n\t\t\tgoto end;\n\t\t}\n\t}\n\tif(i>=q)\n\t\tprintf(\"NOT FOUND\");\nend:;\n}\n\n\n\n\n"} +{"label": "89", "index": "44005", "code": "int main()\n{\n int n,i,m=0,x,y;\n int a[10000],b[10000]={0};\n scanf(\"%d\",&n);\n for (i=0;i=0&&b[i]==n-1)\n {\n printf(\"%d\\n\",a[i]);\n m++;\n }\n if (m==0)\n printf(\"NOT FOUND\\n\");\n}"} +{"label": "89", "index": "44006", "code": "\nvoid work(int m);\nint main(){\n int n;\n scanf(\"%d\",&n);\n work(n);\n return 0;\n}\nvoid work(int m){\n int a[m],b[m];\n int i,j,k,man,hear,l;\n l=0;\n for(i=0;i<=m-1;i++){//chushihua\n a[i]=1;\n b[i]=0;\n }\n for(j=1;j<=m*m;j++){\n scanf(\"%d %d\",&man,&hear);\n if(man==hear)break;\n a[man]=0;\n b[hear]=b[hear]+1;\n }\n for(k=0;k<=m-1;k++){\n if(a[k]==1){\n if(b[k]==m-1){\n printf(\"%d\",k);\n l=1;\n break;\n }\n \n }\n }\n if(l==0)printf(\"NOT FOUND\");\n \n}"} +{"label": "89", "index": "44007", "code": "int main()\n{\n int i,j,k,l,m,n,a[10000],b[10000];\n memset(a,0,sizeof(a)); memset(b,0,sizeof(b));\n scanf(\"%d\",&n);\n while (1)\n {\n scanf(\"%d%d\",&i,&j); \n if ((i==0)&&(j==0)) break;\n a[i]=1;\n b[j]++;\n }\n l=0;\n for (i=0;i=0;c--)\n {\n d=0;\n if(c>=1)\n {\n for(i2=j-1;i2>=0;i2--)\n {\n if(y[i2]==c)\n d++;\n }\n if(d==n-1)\n {\n printf(\"%d\",c);\n e++;\n }\n \n }\n else\n {\n for(i2=j-1;i2>=0;i2--)\n {\n if(y[i2]==0)\n d++;\n }\n if(d==n)\n {\n printf(\"0\");\n e++;\n }\n \n }\n }\n if(e==0)\n printf(\"NOT FOUND\");\n}\n"} +{"label": "89", "index": "44010", "code": "int main()\n{\n\tint i,n,a[10000]={0},b[10000]={0},x,y,t=0;;\n\tcin>>n;\n\twhile (true)\n\t{\n\t\tcin>>x>>y;\n\t\tif (x==0&&y==0) break;\n\t\ta[x]++;\n\t\tb[y]++;\n\t}\n\tfor ( i=0;i=0)\n c[k]=c[k]+1;\n }\n for(i=0;i>n;\n\tint a[100000]={0},b[100000]={0},c[100000]={0};\n\tdo\n\t{\n\t\tcin>>i>>j;\n\t\tif(i==0&&j==0)\n\t\tbreak;\n\t\telse\n\t\t{\n\t\t\ta[i]=1;\n\t\t\tb[j]++;\n\t\t}\n\t}while(i!=0||j!=0);\n\tint *p=NULL,*q=NULL,tj=0,t=0,f=0;\t\t\t\n\tp=&a[0];\n\tq=&b[0];\n\tfor(t=0;t>n;\n memset(b,0,n);\n memset(a,0,n);\n while(cin>>l>>r&&(l!=0||r!=0)){b[l]=1;a[r]++;}\n for(i=0;i=n) cout<<\"NO FOUND\"<> n;\n\tint a1[1000000], a2[1000000], num[1000000] = {0};\n\tfor (i = 0; i <= n * (n - 1); i++)\n\t{\n\t\tcin >> a1[i] >> a2[i];\n\t\tif (a1[i] == 0 && a2[i] == 0) break;\n\t\tnum[a2[i]]++;\n\t}\n\tint *p=num;\n\tfor (; p < num + n; p++)\n\t{\n\t\tif (*p == n - 1)\n\t\t{\n\t\t\tg = 1;\n\t\t\tcout << p - num;\n\t\t}\t\n\t}\n\tif (g == 0) cout << \"NOT FOUND\";\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44022", "code": "int main()\n{\n\tint n,i,j,k,know,known,yes=0;\n\tscanf(\"%d\",&n);\n\tint famous[n],chance[n];\n\tfor(i=0;i>n;\n struct question\n\t{\n\t\tint love;\n\t\tint beloved;\n\t} ques[50000];\n\tfor ( i=0 ; ; i++ )\n\t{\n\t\tcin>>ques[i].love>>ques[i].beloved;\n\t\tif ( ques[i].love==0&&ques[i].beloved==0 )\n\t\t\tbreak;\n\t\tcount[ques[i].beloved]++;\n\t\tf++;\n\t}\n\tfor ( i=0 ; i=n-1)\n {\n printf(\"%d\\n\",b);\n y++;\n }\n \n if(y==0)\n printf(\"NOT FOUND\"); \n } \n getchar();\n getchar();\n getchar();\n getchar();\n}\n \n"} +{"label": "89", "index": "44028", "code": "\n\nconst int MAXN = 1000100;\n\nint n, d[MAXN], r[MAXN];\n\nint main()\n{\n\tint x, y, i;\n\t\n\tscanf(\"%d\", &n);\n\tmemset(d, 0, sizeof(d));\n\tmemset(r, 0, sizeof(r));\n\twhile (scanf(\"%d%d\", &x, &y), x+y!=0){\n\t\tr[x]++;\n\t\td[y]++;\n\t}\n\tfor (i=0; i>n;\n\tconst int N=n;\n\tint knowme[N];\n\tfor(i=0;i>i>>j;\n\twhile(i!=0||j!=0){\n\t\tknowme[j]++;\n\t\tcin>>i>>j;\n\t}\n\tj=0;\n\tfor(i=0;i> n;\n\tfor (i = 0; i < n; i++)\n\t\tp[i].count = 0;\n\twhile(1)\n\t{\n\t\tcin >> i;\n\t\tcin >> p[i].j;\n\t\tif (i == 0 && p[i].j == 0)\n\t\t\tbreak;\n\t\tp[p[i].j].count++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (p[i].count == n - 1)\n\t\t{\n\t\t\tcout << i;\n\t\t\tk = 0;\n\t\t}\n\t}\n\tif (k)\n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}"} +{"label": "89", "index": "44035", "code": "\nmain()\n{\n int n;\n scanf(\"%d\",&n);\n int a[n];\n for(int i=0;i=0)\n\t\tmingliushu+=mingliu(*(pp[i]+1),pp,n,q);\n\t}\n\tif(mingliushu==0)\n\t\tprintf(\"NOT FOUND\");\n\tfree(pp);\n\tpp=NULL;\n\treturn 0;\n}\n\n\n\nint mingliu(int k,int **pp,int n,int count)//k??????????????\n{\n\tint *a;\n\ta=(int*)malloc(sizeof(int)*n);\n\tfor(int i=0;i> n;\n int i=0,j=0,k=0,l=0;\n int a[100];\n int b[100];\n int c[n-1];\n int d[n-1];\n for(i=0;i> p >> q;\n l++;\n if((p==0)&&(q==0))\n {\n break;\n }\n else\n {\n d[q]++;\n }\n }\n for(i=0;i> n;\n\n\tfor (i = 0; i < 50000; i++)\n\t\tcount[i] = 0;\n\n\tfor (i = 0; ; i++)\n\t{\n\t\tcin >> a[i];\n\t\tcin >> b[i];\n\t\tif (a[i] == 0 && b[i] == 0)\n\t\t\tbreak;\n\t\tcount[ b[i] ]++;\n\t}\n\n\tfor (i = 0; i <= 50000; i++)\n\t\t\n\t\tif (count[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\";\n\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44040", "code": "int main()\n{\n\tint a[10000]={0},b[10000]={0},i,j,k,p=0,n;\n\tscanf(\"%d\",&n);\n\twhile(1)\n\t{\n\t\t\n\t\tscanf(\"%d %d\",&i,&j);\n\t\tif(i==0&&j==0)break;\n\t\telse\n\t\t{\n\t\ta[i]++;\n\t\tb[j]++;\n\t\t}\n\n\t}\n\tfor(k=0;k> n;\n\twhile(1)\n\t{\n\t\tcin >> a >> b; \n\t\tif(a == 0 && b == 0) break; //?????? \n\t\telse\n\t\t{\n\t\t\tc[0][a]++; \n\t\t\tc[1][b]++;\t //?? \n\t\t}\n\t}\t\n\tfor(p = c[0]; p < c[0] + n; p++ , k++) //k????????????????? \n\t{ \n\t\tif(*p == 0 && *(p + 10001) == n - 1)\t //?????? \n\t\t{\n\t\t\tcout << k << endl;\n\t\t\tflag = 1; //?????1 \n\t\t}\n\t}\n\tif(flag == 0)\n\tcout << \"NOT FOUND\" << endl;\n}"} +{"label": "89", "index": "44043", "code": "/*\n * FamousPerson.cpp\n *\n * Created on: 2013-12-13\n * Author: KEVIN\n */\n\n\nint main()\n{\n\tint n;\n\tcin>>n;\n\tstruct{int knows,known;} person[n];\n\tmemset(person,0,sizeof(person));\n\twhile(1)\n\t{\n\t\tint i,j;\n\t\tcin>>i>>j;\n\t\tif(i==j)break;\n\t\tperson[i].knows++;\n\t\tperson[j].known++;\n\t}\n\tfor(int i=0;i<=n-1;++i)\n\t{\n\t\tif(person[i].known==n-1 && person[i].knows> n;\n\twhile (1)\n\t{\n\t\tcin >> p >> q;\n\t\tif (p == 0 && q == 0)\n\t\t\tbreak;\n\t\tpeo[p].a++;\n\t\tpeo[q].b++;\n\t}\n\tk = 0;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (peo[i].a == 0 && peo[i].b == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tk = 1;\n\t\t}\n\t}\n\tif (k == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44045", "code": "int main ()\n{\n\tint n,a,b,g=0,i;\n\tint c[100000]={0},d[10000]={0};\n\tint *p=c,*q=d;\n\tcin>>n;\n\tfor(;;)\n\t{\n\t\tcin>>a>>b;\n\t\tif(a==0&&b==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tc[b]++;\n\t\t\td[a]=-1;\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tint a[n];\n\tfor(i=0;i>x>>y;\n\t\tif(x==0&&y==0) break; //?????0????\n\t\ta[y]=a[y]+x; //????????\n\t}\n\tfor(i=0;i>n;\n\tdo\n\t{\n\t\tcin>>a>>b;\n\t\tif(a!=0||b!=0)\n\t\t{\n\t\t\t*(p+a)+=1;\n\t\t\t*(p+100000*1+b)+=1;\n\t\t}\n\t}\n\twhile(a!=0||b!=0);\n\tfor(i=0;i> n >> x >> y;\n\twhile(x || y)\n\t{\n\t\ta[x]++;\n\t\tb[y]++;\n\t\tcin >> x >> y;\n\t}\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tif (!a[i] && (b[i] == n - 1))\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\t\tif (flag)\n\t\t\tbreak;\n\t}\n\tif (!flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\n\treturn 0;\n}\n\t"} +{"label": "89", "index": "44049", "code": "/*\n??????????\n??????\n?????2011.12.7\n*/\nvoid print(int*, int*, int);\nint main()\n{\n\tint i, j, n, a[10000] = {0}, b[10000] = {0}, *p, *q;\n\tcin >> n;\n\twhile(cin >> i >> j)\n\t{\n\t\tif(i == 0 && j == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\ta[i] = a[i] + 1;\n\t\tb[j] = b[j] + 1;\n\t}\n\tp = a;\n\tq = b;\n\tprint(p, q, n);\n\treturn 0;\n}\n\nvoid print(int a[], int b[], int n)\n{\n\tint i, flag = 0;\n\tfor(i = 0 ; i < n ; i++)\n\t{\n\t\tif(a[i] == 0 && b[i] >= n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(flag == 0)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn;\n}\n\t"} +{"label": "89", "index": "44050", "code": "\nint main()\n{\n\tint n;\n\tint *exclusion;\n\tint *refCount;\n\tint a,b;\n\tint i;\n\tint found;\n\tscanf(\"%d\",&n);\n\texclusion=(int*)malloc(sizeof(int)*n);\n\trefCount=(int*)malloc(sizeof(int)*n);\n\tmemset(exclusion,0,sizeof(int)*n);\n\tmemset(refCount,0,sizeof(int)*n);\n\t\n\twhile(1)\n\t{\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif (a==0 && b==0) break;\n\t\texclusion[a]=1;\n\t\trefCount[b]++;\n\t}\t\n\t\n\tfound=0;\n\tfor (i=0;i=n-1) {printf(\"%d\\n\",i); found=1;}\n\t\n\tif (!found) printf(\"NOT FOUND\\n\");\n\n\tfree(exclusion);\n\tfree(refCount);\n\n\treturn 0;\n}\n"} +{"label": "89", "index": "44051", "code": "/**\n * ? ? ??????\n * ? ?????\n * ????: 2010?12?09?\n * ???????n????????????????????????\u0093NOT FOUND\u0094\n*/\nint main()\n{\n\tint a[10000][2], b[10000] = {0}, c[10000] = {0};\t\t//??????????????????b?????????????c???????????\n\tint i, j, n, x, y;\t\t\t\t\t//????x?y??0,0\n\tint max;\t\t\t\t\t\t\t//????max?????????\n\tint (*p)[2];\n\tp = a;\n\tcin >> n;\n\tfor ( i = 0; i < n - 1; i++ )\n\t\tfor ( j = 0; j < 2; j++ )\n\t\t\tcin >> *(*(p+i)+j);\n\tcin >> x >> y;\t\t\t\t\t\t//??0,0\n\tfor ( i = 0; i < n - 1; i++ )\t\t//??????????\n\t\tb[*(*(p+i)+0)]++;\n\tfor ( i = 0; i < n - 1; i++ )\t\t//???????????\n\t\tc[*(*(p+i)+1)]++;\n\tmax = c[0];\n\tfor ( i = 0; i < n; i++ )\n\t\tif ( c[i] > max )\n\t\t\tmax = c[i];\t\t\t\t\t//?????????\n\tfor ( i = 0; i < n; i++ )\n\t\tif ( b[i] == 0 && c[i] == max )\t\t//????????????????????\n\t\t\t{\n\t\t\t\tcout << i << endl;\t\t\t//?????????????\n\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t}\n\t\tif ( i == n )\t\t\t\t\t\t//????????????????\n\t\t\tcout << \"NOT FOUND\" <> n;\n\tint a[n] , b[n] ;\n\tfor ( i = 0 ; i < n; i++ )\n\t\t{\n\t\ta[i] = 0 ;\n\t\tb[i] = 0 ;\n\t\t}\n\tint x , y ;\n\twhile ( cin >> x >> y )\n\t{\n\t\tif ( x == 0 && y == 0 )\n\t\t\tbreak;\n\t\ta[x]++;\n\t\tb[y]++;\n\t}\n\tfor ( i = 0 ; i < n ; i++ )\n\t{\n\t\tif ( a[i] == 0 && b[i] == n - 1 )\n\t\t\t{\n\t\t\tcout<< i ;\n\t\t\treturn 0 ;\n\t\t\t}\n\t}\n\tcout << \"NOT FOUND\";\n\treturn 0;\n}\n"} +{"label": "89", "index": "44053", "code": "\nint main()\n{\n int n;\n int a[100000];\n cin>>n;\n for (int i=0;i>i>>j;\n while (i!=0||j!=0)\n {\n a[j]++;\n cin>>i>>j;\n }\n for (int i=0;i> n;\n\ti = 0;\n\tmemset(c, 0, sizeof(c));\n\tmemset(d, 0, sizeof(d));\n\twhile(1)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif (a[i]==0&&b[i]==0)\n\t\t\tbreak;\n\t\tif (a[i]==b[i])\n\t\t\tcontinue;\n\t\tc[a[i]][b[i]]=1;\n\t\ti++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (d[i]==1)\n\t\t\tcontinue;\n\t\tfor(j = 0; j < n; j++)\n\t\t{\n\t\t\tif (i == j)\n\t\t\t\tcontinue;\n\t\t\tif (c[i][j]==1)\n\t\t\t{\n\t\t\t\td[i]=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (c[i][j]==0)\n\t\t\t{\n\t\t\t\td[j]=1;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (d[i]==1)\n\t\t\tcontinue;\n\t\tsum = 0;\n\t\tfor (j = 0; j < n; j++)\n\t\t\tsum+=c[j][i];\n\t\tif (sum == n-1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\treturn 0;\n\t\t}\n\t}\n\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44056", "code": "//????????????\n//???2010.12.13\n//??????\n//???1000012856\n\nint main()\n{\n\tint n, count[10000] = {0};\n\tcin >> n;\n\twhile(1)\n\t{\n\t\tint i, j, k;\n\t\tcin >> i >> j;\n\t\tif( i == 0 && j == 0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tfor(k = 0; k < n; k++)\n\t\t\t\tif(j == k)\n\t\t\t\t\tcount[k]++;\n\t\t}\n\t}\n\tint l, sum = 0;\n\tfor(l = 0; l < n; l++)\n\t{\n\t\tif(count[l] == n - 1)\n\t\t{\n\t\t\tcout << l << endl;\n\t\t\tsum++;\n\t\t}\n\t}\n\tif(sum == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44057", "code": "int main()\n{\n\tint n,i,j,m = -1;\n\tint a[10000]={0},b[10000]={0};\n\tcin >> n;\n\twhile (cin >> i >> j)\n\t{\n\t\tif (i == 0 && j == 0) break;\n\t\ta[i]++;\n\t\tb[j]++;\n\t}\n\tfor (i = 0 ; i < n ; i ++)\n\t{\n\t\tif(a[i] == 0 && b[i] == n-1 )\n\t\t{\n\t\t\tif (m == -1)\n\t\t\t{\n\t\t\t\tm = i;\n\t\t\t}\n\t\t\telse\n\t\t\t{ \n\t\t\t\tm = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (m == -1)\n\t{\n\t\tcout <<\"NOT FOUND\"<=f[m+1])f[m+1]=f[m];}\n \n for(m=0;m<=n-1;m++) \n {if(c[m]==f[n-1])\n {if(c[m]>=n-1)\n printf(\"%d\",m);\n else printf(\"NOT FOUND\");}}\n getchar();getchar();getchar();getchar();\n}\n \n "} +{"label": "89", "index": "44059", "code": "\nint main()\n{\n\tint n, i, j, k;\n\tchar **map;\n\t\n\tscanf(\"%d\", &n);\n\tmap = (char**)malloc(n*sizeof(char*));\n\tfor(i=0; i> n;\n\tdo\n\t{\n\t\tcin >> i >> j;\n\t\tif (i == 0 && j == 0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tp[i].a++;\n\t\t\tp[j].b++;\n\t\t}\n\t} while(1);\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (p[i].a == 0 && p[i].b == n - 1)\n\t\t{\n\t\t\tflag = 1;\n\t\t\tcout << i << endl;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\" ;\n\treturn 0;\n}"} +{"label": "89", "index": "44061", "code": "int main()\n{\n int *p;\n int i,j,n,aaa,h ;\n scanf(\"%d\",&n);\n p=malloc(n*sizeof(int));\n for(h=0;h<=n-1;h++)\n {\n *(p+h)=0;\n }\n for(h=0;;h++)\n {\n scanf(\"%d %d\",&i,&j);\n if ((i==0)&&(j==0))\n break;\n *(p+i)=-1;\n if (*(p+j)==-1)\n ;\n else\n {\n *(p+j)+=1;\n }\n }\n aaa=0;\n for(h=0;h<=n-1;h++)\n {\n if (*(p+h)==n-1)\n {\n printf(\"%d\",h);\n aaa=1;\n }\n }\n if (aaa==0)\n {\n printf(\"NOT FOUND\");\n }\n free (p) ;\n return 0;\n}\n"} +{"label": "89", "index": "44062", "code": "\nint main()\n{\n int n, i, j;\n scanf(\"%d\", &n);\n \n /* initialization */\n char **r_matrix = (char **)malloc(sizeof(char *) * n);\n for(i = 0; i < n; ++i)\n {\n r_matrix[i] = (char *)malloc(sizeof(char) * n);\n for(j = 0; j < n; ++j)\n {\n if(i == j)\n r_matrix[i][j] = 1;\n else\n r_matrix[i][j] = 0;\n }\n }\n\n /* input */\n while(1)\n {\n scanf(\"%d %d\", &i, &j);\n if(!( i || j ))\n break;\n r_matrix[i][j] = 1;\n }\n\n int vip = 0, not_found = 0;\n for(i = 0; i < n; ++i)\n if(r_matrix[vip][i])\n vip = i;\n \n for(i = 0; i < vip; ++i)\n {\n if(i == vip)\n continue;\n if(!(r_matrix[i][vip] && !r_matrix[vip][i]))\n {\n not_found = 1;\n break;\n }\n }\n if(not_found)\n printf(\"NOT FOUND\\n\");\n else\n printf(\"%d\\n\", vip);\n\n for(i = 0; i < n; ++i)\n free(r_matrix[i]);\n free(r_matrix);\n return 0;\n}\n"} +{"label": "89", "index": "44063", "code": "\tint a[1000005],b[1000005],va,vb;\nint main()\n{\n\tint n,time=0,much,flag=0;\n\tcin>>n;\n\tcin>>va>>vb;\n\twhile((va!=0)||(vb!=0))\n\t{\n\t\ta[time]=va;\n\t\tb[time]=vb;\n\t\ttime++;\n\t\tcin>>va>>vb;\n\t}\n\ta[time]=va;\n\tb[time]=vb;\n\tfor(int i=0;i=n-1)\n\t\t{\n\t\t\tflag=1;\n\t\t\tfor(int j=0;j<=time;j++)\n\t\t\t{\n\t\t\t\tif((a[j]==i)&&(b[j]!=i))\n\t\t\t\t{\n\t\t\t\t\t\tflag=0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t{\n\t\t\t\tcout<> n ;\n\tfor ( i = 0 ; ; i++ )\n\t{\n\t\tcin >> a[i] >> b[i] ;\n\t\tif ( a[i] == 0 && b[i] == 0 ) // ??????\n\t\t\tbreak;\n\t}\n\tfor ( j = 0 ; j <= i - 1 ; j++ ) // ?????????????????\n\t{\n\t\tc[b[j]] = c[b[j]] + 1 ;\n\t\n\t}\n\tfor ( k = 0 ; k <= n - 1 ; k++ ) // ???????????????\n\t{\n\t\tif ( c[k] == n - 1 )\n\t\t{\n\t\t\tif ( g == 0 )\n\t\t\t{\n\t\t\t\tcout << k ;\n\t\t\t\tg = 1 ;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tcout << \" \" << k ;\n\t\t\t}\n\t\t}\n\t\t\t\n\t}\n\tif ( g == 0 )\n\t\tcout << \"NOT FOUND\" << endl ;\n\treturn 0 ;\n}"} +{"label": "89", "index": "44065", "code": "int main()\n{\n int n,a[100000],b[100000],A[100000]={0},B[100000]={0},c=0,num=0,bp=0;\n scanf(\"%d\",&n);\n for(int i=0;;i++)\n {scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0)break;\n else\n num++;\n \n }\n for(int i=0;i> n;\n\twhile ( 1 ) {\n\t\tcin >> x >> y; \n\t\tif ( !x && !y ) break; //0 0 ????\n\t\telse ++sta[y]; //y??????????????????+1\n\t}\n\n\tint i;\n\tfor ( i = 0; i != n; ++i ) {\n\t\tif ( sta[i] == n - 1 ) {\n\t\t\tcout << i << endl; //??????????????????\n\t\t\tbreak;\n\t\t}\n\t}\n\tif ( i == n ) cout << \"NOT FOUND\" << endl;\n\n\treturn 0;\n}\n"} +{"label": "89", "index": "44068", "code": "int main()\n{\n int n,r=0;\n cin>>n;\n int a[10000],b[10000];\n int x=0;\n for(int i=0;;i++)\n {\n cin>>a[i]>>b[i];\n if(a[i]==0&&b[i]==0)\n break;\n x++;\n }\n \n int sum2=0,sum1=0;\n for(int i=0;i> n;\n\tfor (;;)\n\t{\n\t\tcin >> temp;\n\t\tcin >> ins;\n\t\tif (temp + ins == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tif (knowed[ins].num < 0)\n\t\t{\n\t\t\tknowed[ins].num = 0;\n\t\t}\n\t\tif (knowed[ins].num >= 0)\n\t\t{\n\t\t\tknowed[ins].num++;\n\t\t}\n\t}\n\tfor (j = 0;j <= n - 1;j++)\n\t{\n\t\tif (knowed[j].num == n - 1)\n\t\t{\n\t\t\tcout << j << endl;\n\t\t\ty = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (y == 0)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "89", "index": "44071", "code": "int main()\n{\nint i,j,e,n,a[10000],b[10000];\nscanf(\"%d\",&n);\ne=0;\ni=1;\nj=1;\nfor(int k=0;k>n;\n\tint m,p;\n\tfor(i=0;i<50000;i++)\n\t{\n\t\tcin>>m>>p;\n\t\tif(m==0&&p==0)\n\t\t\tbreak;\n\t\tif(m!=p)\n\t\t{\n\t\ta[m]=1;\n\t\t}\n\t\tb[p]=b[p]+1;\n\t}\n\tfor(i=0;i=n-1)\n\t\t{\n\t\t\tcout<> n ;\n\tint a, b;\n\tint ans = -1;\n\twhile (true)\n\t{\n\t\tcin >> a >> b;\n\t\tif ( a == 0 && b == 0) break;\n\t\tcnt[b]++;\n\t\tif (cnt[b] == n-1)\n\t\t\tans = b;\n\t}\n\tif (ans == -1)\n\t\tcout << \"NOT FOUND\" << endl;\n\telse\n\t\tcout << ans << endl;\n}"} +{"label": "89", "index": "44076", "code": "/*\n*12-4\n*??? 1200012851\n*2012.12.11\n*??????\n**/\n\n\nint main()\n{\n\tint i, n, man[10000] = {0}, a, b, flag = 0;\n\tcin >> n;\n\twhile (1)\n\t{\n\t\tcin >> a >> b;\n\t\tif (a == 0 && b == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tman[a] = -1;\n\t\tman[b]++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (man[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44077", "code": "\nmain()\n{\n int n,a[1000000][2],i,j,sum[1000000],t;\n scanf(\"%d\",&n);\n scanf(\"%d %d\",&a[0][0],&a[0][1]);\n for(i=1;a[i-1][0]!=0||a[i-1][1]!=0;i++)\n scanf(\"%d %d\",&a[i][0],&a[i][1]);\n for(j=0;j> n; // n????\n\tcin >> a >> b;\n\twhile (a != 0 || b != 0) // ?????0 0?????\n\t{\n\t\tflag1[a]++; // a??????1\n\t\tflag2[b]++; // ??a????1\n\t\tcin >> a >> b;\n\t}\n\tfor (i = 0; i < n; i++) \n\t\tif (*(flag1 + i) == 0 && *(flag2 + i) == n - 1) // ?i??????0???i????n - 1??i?????\n\t\t{\n\t\t\tcout << i; // ??i\n\t\t\tflag = 1; // flag???????????\n\t\t}\n\tif (!flag) // ?????????\"NOT FOUND\" \n\t\tcout << \"NOT FOUND\" ;\n\treturn 0;\n}"} +{"label": "89", "index": "44083", "code": "int t[10000000];\nint main(){\n int n, i, j;\n scanf(\"%d\", &n);\n while(scanf(\"%d%d\", &i, &j), i||j){\n t[j]++;\n t[i]--;\n }\n for(i = 0; i< n; i++){\n if(t[i] == n-1){\n printf(\"%d\", i);\n break;\n }\n }\n if(i == n)printf(\"NOT FOUND\");\n return 0;\n}"} +{"label": "89", "index": "44084", "code": "//****************************************\n//*?????? **\n//*??? 1100012927 **\n//*2011.11.29 **\n//****************************************\n\nint main()\n{\n int n, per1 = 1, per2 = 1, knows[10000] = {0}, knowed[10000] = {0}, count = 0, i = 0;\n int *p = knows;\n int *q = knowed;\n cin >> n;\n do\n {\n cin >> per1 >> per2;\n if (per1 != 0 || per2 != 0)\n {\n *(p + per1) = 1;\n (*(q + per2))++;\n }\n else\n break;\n }while(1);\n for (i = 0; i < n; i++)\n {\n if (*(p + i) == 0 && *(q + i) == n - 1)\n {\n if(count == 0)\n {\n cout << i;\n count++;\n }\n else\n {\n cout <<' '<< i;\n count++;\n }\n }\n }\n if (count == 0)\n cout <<\"NOT FOUND\";\n return 0;\n \n}"} +{"label": "89", "index": "44085", "code": "\nint n;\nint r[M][2];\nint rn;\nint p[M];\n\nint wk;\n\nvoid cal()\n{\n int i,j;\n wk = -1;\n for (i=0; i0;i--)\n {\n c[b[i-1]]--; \n }\n int k=0;\n for(i=0;i> n;\n\twhile ( cin >> i >> j )\n\t{\n\t\tif ( i == 0 && j == 0 )\n\t\t\tbreak;\n\t\ta[ j ]++;\n\t}\n\tif ( pan( a , n ) != -1 )\n\t\tcout << pan( a , n ) << endl;\n\telse if ( pan( a , n ) == -1 )\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\nint pan( int a[] , int n )\n{\n\tint i;\n\tfor ( i = 0 ; i <= n - 1 ; i++ )\n\t{\n\t\tif ( a[ i ] == n - 1 )\n\t\t{\n\t\t\treturn i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif ( i == n )\n\t\treturn -1;\n}\n"} +{"label": "89", "index": "44091", "code": "int main()\n{\n int n,j,k,count=0,l,i;\n scanf(\"%d\",&n);\n int *a=(int *)malloc(n*n*sizeof(int));\n int *b=(int *)malloc(n*n*sizeof(int));\n for(i=0;i<=n*n-1;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0)\n {\n break;\n }\n count++;\n }\n int *c=(int *)malloc(n*sizeof(int));\n for(l=0;l<=n-1;l++)\n {\n c[l]=1;\n }\n for(j=0;j<=count-1;j++)\n {\n c[b[j]]++;\n }\n for(k=0;k<=n-1;k++)\n {\n if(c[k]==n)\n {\n printf(\"%d\",k);\n break;\n }\n }\n if(k==n)\n {\n printf(\"Not Found!\");\n }\n}"} +{"label": "89", "index": "44092", "code": "int main ()\n{\n\tint renren[100000][2], n, i = 0, j, qun[100000] = {0}, ming[100000] = {0}, flag = 1;\n\tcin >> n;\n\tdo \n\t{\n\t\tfor (j = 0; j < 2; j ++)\n\t\t{\n\t\t\tcin >> renren[i][j];\n\t\t}\n\t\ti ++;\n\t}while (renren[i-1][0] != 0 || renren[i-1][1] != 0 );\n\n\tfor (j = 0; j < i - 1; j ++)\n\t{\n\t\tqun[renren[j][0]] ++;\n\t\tming[renren[j][1]] ++;\n\t}\n\n\tfor (j = 0; j < i - 1; j ++)\n\t\tif (qun[j] == 0 && ming[j] == n - 1)\n\t\t{\n\t\t\tcout << j;\n\t\t\tflag = 0;\n\t\t}\n\tif (j == i - 1 && flag == 1)\n\t\t\tcout << \"NOT FOUND\";\n\t\treturn 0;\n}"} +{"label": "89", "index": "44093", "code": "main()\n{\n int n,i,c=0,k,j,d,e;\n scanf(\"%d\",&n);\n int a[100000],b[100000];\n for (i=0;i<1000000;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if (a[i]==0&&b[i]==0)\n break;\n }\n k=i-1;\n for (i=0;i<=n-1;i++)\n {\n d=0;\n e=0;\n for (j=0;j<=k;j++)\n {\n if (b[j]==i)\n d++;\n }\n for (j=0;j<=k;j++)\n {\n if (a[j]==i)\n e++;\n }\n if ((d==n-1)&&(e==0))\n {\n printf(\"%d\\n\",i);\n c++;\n }\n }\n if (c==0)\n printf(\"NOT FOUND\\n\");\n}"} +{"label": "89", "index": "44094", "code": "/**\n* @file homework.cpp\n* @author ??\n* @date 2010?11?09\n* @description \n* ??????:?????? \n*/\nint a[9000][9000] = {0}; //??????A??B\nint main()\n{\n\tint i, j, n, g, flag = 0;\n\tcin >> n;\n\tcin >> i >> j;\n\twhile (i != 0 || j!=0)\n\t{\n\t\ta[i][j] = 1;\n\t\tcin >> i >> j; //????\n\t}\n\tfor (j=0;j 1 && g == 0)\n\t\t\t\tbreak;\n\t\t\tif (a[i][j] == 1)\n\t\t\t\tg++;\n\t\t}\n\t\tif (g == n-1) //????\n\t\t{\n\t\t\tcout << j;\n\t\t\tflag = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (flag == 0) //??????\n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}\n"} +{"label": "89", "index": "44095", "code": "int main()\n{\nint n,i,j,k=1,c,d;\nint **a;\nint *p,*q;\nscanf(\"%d\",&n);\np=(int*)malloc(n*sizeof(int));\nq=(int*)malloc(n*sizeof(int));\na=(int**)malloc(n*sizeof(int*));\nfor(i=0;i> n;\n\tint flag = 1;\n\tint i, j;\n\tfor (;;)\n\t{\n\t\tcin >> i >> j;\n\t\tif (i == 0 && j == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tknow[i] = -1;\n\t\t\tknow[j]++;\n\t\t}\n\t}\n\tfor (int k = 0; k < n; k++)\n\t{\n\t\tif (know[k] == n - 1)\n\t\t{\n\t\t\tcout << k << endl;\n\t\t\tflag = 0;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44097", "code": "int main()\n{\n int n,m,l,k,i;\n scanf(\"%d\",&n);\n int a[100000],b[100000],c[n],d[n];\n for(i=0;;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0)\n break;\n \n }\n for(i=0;i> n;\n\tfor (j = 0; j < 10000; j++)\n\t{\n\t\tperson[j] = 0;\n\t}\n\twhile ((cin >> p) && (cin >> q))\n\t{\n\t\tif ((p == 0) && (q == 0))\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tperson[p]--; // ???p???????????????-1\n\t\t person[q]++; // p?????????q?????????\n\t\t} \n\t}\n\tfor (k = 0; k < n; k++)\n\t{\n\t\tif (person[k] == n - 1)\n\t\t{\n\t\t\tflag = 1;\n\t\t\tcout << k << endl;\n\t\t}\n\t}\n\tif (!flag)\n\t{\n\t\tcout << \"NOT FOUND\";\n\t}\n\treturn 0;\n}\n\t\t"} +{"label": "89", "index": "44099", "code": "// ******************************\n// *** ??????.cpp ***\n// *** ID:1000012895 ***\n// *** ??? ***\n// *** 2010/12/11 ***\n// ******************************\nint main()\n{\n\tint know[11101], cnt = 0;\n\tint n, i, p1, p2;\n\tcin >> n;\n\tfor(i = 0; i < n; i++)\n\t\t\tknow[i] = 0;\n\twhile(true)\n\t{\n\t\tcin >> p1 >> p2;\n\t\tif(p1 == 0 && p2 == 0)\n\t\t\tbreak;\n\t\tknow[p2]++;\n\t\tknow[p1] = -1;\n\t}\n\tfor(i = 0; i < n; i++)\n\t\tif(know[i] == n - 1)\n\t\t{\n\t\t\tcout << i;\n\t\t\tcnt++;\n\t\t}\n\tif(cnt == 0)\n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}\n\t\t"} +{"label": "89", "index": "44100", "code": "int main ()\n{\n int p[50000];\n int n,i,t,x,y;\n scanf(\"%d\",&n);\n\n for(i=0;i0||j>0)\n {\n a[k]++;\n b[j]++;\n scanf(\"%d\",&k);\n scanf(\"%d\",&j);\n }\n j=0; \n for(i=0;i<=n-1;i++)\n if(a[i]==0&&b[i]>0)\n { \n k=i;\n j=1;\n }\n if(j) printf(\"%d\\n\",k);\n else printf(\"NOT FOUND\\n\");\n }\n \n"} +{"label": "89", "index": "44102", "code": "int a[100001],b[100001],c[100001],x,y,p;\nint main()\n{\n\tint n,i;\n\tcin>>n;\n\tcin>>x>>y;\n\twhile(x!=0||y!=0)\n\t{\n\t\tb[y]++;\n\t\tc[x]=1;\n\t\tcin>>x>>y;\n\t}\n\tfor(i=0;i=(n-1))\n\t\t{\n\t\t\tc=i;\n\t\t\tb=1;\n\t\t}\n\t}\n\tfor(i=0;i> n;\n\twhile(i != 0 || j != 0)\n\t{\n\t\tcin >> i >> j;\n\t\ta[j]++;\n\t}\n\tfor(j = 0 ; j < n ; j++)\n\t{\n\t\tif(*(p + j) == n - 1 || *(p + j) == n)\n\t\t{\n\t\t\tcout << j << endl;\n\t\t\tflag = 0;\n\t\t}\n\t}\n\tif(flag)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "89", "index": "44109", "code": "main()\n{ int a[50000],b[50000];\n int i,j,k,n,p,q,flag;\n scanf(\"%d\",&n);\n for (i=0;i>n;\t\n\tint i;\n\tint flag=0;\n\tint a[10000];\n\tfor(i=0;i<10000;i++)\n\t{\n\t\ta[i]=0;\n\t}\n\tint x,y;\n\twhile(cin>>x>>y)\n\t{\n\t\tif(x==0&&y==0)\n\t\t\tbreak;\n\t\ta[y]++;\n\t}\n\tfor(i=0;i<10000;i++)\n\t{\n\t\tif(a[i]==n-1)\n\t\t{\t\n\t\t\tcout<> n;\n\twhile (1)\n\t{\n\t\tcin >> x >> y;\n\t\tif (y == 0 && x == 0)\n\t\t\tbreak; \n\t\t(*(a + y))++;\n\t\t(*(a + x))--;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (*(a + i) == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tbreak; \n\t\t} \n\t}\n\tif (i == n)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44120", "code": "main()\n{\n int n,m,i,j,k,a[100000]={0},c[100000]={0},b[100000]={0};\n m=0;\n scanf(\"%d\",&n);\n for(i=0;i=up) return;\n else\n {\n k=a[low];\n j=low;\n for (i=low;i<=up;i++)\n {\n if (a[i]>k)\n {\n j++;\n x=a[i];\n a[i]=a[j];\n a[j]=x;\n }\n }\n x=k;\n a[low]=a[j];\n a[j]=x;\n Qsort(a,low,j-1);\n Qsort(a,j+1,up);\n \n }}\n/*int main()\n{\n int n,i,j,w,l;\n int a[1000],b[1000];\n scanf(\"%d\",&n);\n while(n!=0){\n for(i=0;i=n) {l++;continue;}\n else\n {\n if (a[i]>b[j]) w++;\n j++;\n }\n }\n printf(\"%d\\n\",w*200-200*l);\n scanf(\"%d\",&n);\n }\n}*/\nint main()\n{\n int know[10000]={0},beknown[10000]={0};\n int n=0,i,x,y,flag,t;\n scanf(\"%d\",&n);\n x=y=1;\n t=0;\nknow[0]=beknown[0]=-1;\n while(x+y!=0)\n {\n scanf(\"%d %d\",&x,&y);\n know[x]++;\n beknown[y]++;\n }\n flag=0;\n for (i=0;i> n;\n\tint a[100000],b[100000];\n\tfor (i = 0;i < 100000;i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif (a[i] == 0 && b[i] == 0)\n\t\t{\n\t\t\tlen = i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor (i = 0;i < n;i++)\n\t{\n\t\tcount = 0;\n\t\tflag = 1;\n\t\tfor (j = 0;j < len;j++)\n\t\t{\n\t\t\tif (b[j] == i)\n\t\t\t\tcount++;\n\t\t}\n\t\tif (count == n - 1)\n\t\t{\n\t\t\tfor(j = 0;j < len;j++)\n\t\t\t\tif (a[j] == i)\n\t\t\t\t\tflag = 0;\n\t\t\tif (flag == 1)\n\t\t\t{\n\t\t\t\tcout << i << endl;\n\t\t\t\tflag2 = 1;\n\t\t\t}\n\t\t}\n\t}\n\tif (flag2 == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44129", "code": "main()\n{\n int n,i,j,count=0,num=0,countf=0;\n scanf(\"%d\",&n);\n int a[20000],b[20000];\n for(i=0;;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0)\n break;\n }\n i=0;\n while(i> n;\n\tint i, j;\n\twhile (cin >> i >> j && (i != 0 || j != 0))\n\t{\n\t\tPerson[i] = 1;\n\t\tPerson[j] ++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (Person[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\treturn 0;\n\t\t}\n\t}\n\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44132", "code": "int main()\n{\n\tint n,t,c[10000]={0},t1,t2;\n\tscanf(\"%d\",&n);\nsd:\t\n\tscanf(\"%d %d\",&t1,&t2);\n\tif((t1+t2)!=0)\n\t{\n\t\tc[t1]--;\n\t\tc[t2]++;\n\t\tgoto sd;\n\t}\n\tfor(t=0;t<=n-1;t++)\n\t{\n\t\tif(c[t]==n-1){goto s;}\n\t\telse if(t==n-1)\n\t\t{\n\t\t\tprintf(\"NOT FOUND\\n\");\n\t\t\tgoto ss;\n\t\t}\n\t}\ns:\n\tprintf(\"%d\\n\",t);\nss:\n\t//printf(\"%d %d %d\\n\",n,c[0],c[1]);\n\treturn 0;\n} "} +{"label": "89", "index": "44133", "code": "\n\nint data[10000][10000] = {0};\n\nint main()\n{\n\tint n;\n\tcin >> n;\n\tint x, y;\n\twhile(1)\n\t{\n\t\tcin >> x >> y;\n\t\tif (x == 0 && y == 0) break;\n\t\tdata[x][y] = 1; // x??y?data[x][y] = 1\n\t}\n\n\t//??????????????\n\tx = 0;\n\ty = 1;\n\twhile (y < n)\n\t{\n\t\tif (data[x][y] == 1) // x??y???x?????????y???????\n\t\t{\n\t\t\tx = y; // ??x\n\t\t}\n\t\ty ++; // y??\n\t}\n\n\t// ????????x????????????????\n\tint m;\n\tfor (m = 0; m < n; m ++)\n\t{\n\t\tif (m == x) continue; // ??????????\n\n\t\t// ?????????x??x????????x?????????\n\t\tif (! (data[m][x] == 1 && data[x][m] == 0))\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (m == n) // ?n????????break?????x??????\n\t\tcout << x << endl;\n\telse // ??????????\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44134", "code": "int main()\n{\n\tint n,a[10000][2],i,j,t=0,s,k=0;\n\tscanf(\"%d\",&n);\n for(i=0;;i++)\n\t{\n\t scanf(\"%d %d\",&a[i][0],&a[i][1]);\n\t\t t++;\n\t\t if((a[i][0]==0)&&(a[i][1]==0))\n\t\t {\n\t\t\t break;\n\t\t }\n\t}\n\tfor(i=0;i0)||(j>0));\n\tj=0;\n for(i=0;i> n;\n\twhile(cin >> i >> j)\n\t{\n\t\tif(i == 0 && j == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\ta[i] = a[i] + 1;\n\t\tb[j] = b[j] + 1;\n\t}\n\tfor(i = 0 ; i < n ; i++)\n\t{\n\t\tif(a[i] == 0 && b[i] >= n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(flag == 0)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}\n\t"} +{"label": "89", "index": "44138", "code": "\nvoid main(){\n\tint n;\n\tint i,j;\n\tint p[10000]={0};\n\tint sum=0;\n\tscanf(\"%d\",&n);\n\tfor(;;){\n\t\tscanf(\"%d %d\",&i,&j);\n\t\tif(i==0&&j==0)\n\t\t\tbreak;\n\t\telse{\n\t\t\tp[i]=-n;\n\t\t\tp[j]+=1;\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tint a , b;\n\twhile(cin>>a>>b)\n\t{\n\t\tif(a==0 && b==0) break;\n\t\trelation[a]++;\n\t\trelation[b]++;\n\t}\n\tfor(i=0;i> n;\n\tcin >> i >> j;\n\twhile ((i != 0)||(j != 0))\n\t{\n\t\tmap[i][j] = 1;\n\t\tcin >> i >> j;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tint mark = 0;\n\t\tfor (j = 0; j < n; j++)\n\t\t{\n\t\t\tif ((map[i][j] == 1)&&(i != j))\n\t\t\t{\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (mark == 0)\n\t\t{\n\t\t\tint mark2 = 0;\n\t\t\tfor (j = 0; j < n; j++)\n\t\t\t{\n\t\t\t\tif ((j != i)&&(map[j][i] == 1))\n\t\t\t\t\tmark2++;\n\t\t\t}\n\t\t\tif (mark2 == n-1)\n\t\t\t{\n\t\t\t\tfound = 1;\n\t\t\t\tcout << i << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (found == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44142", "code": "int main(){\n\tint *a;\n\tint *b;\n\tint n;\n\tint i,j,pd=0;\n\tint all;\n\tint k,m;\n\tint u,v;\n\tscanf(\"%d\",&n);\n\tall=n*(n-1);\n\ta=(int*)malloc(sizeof(int)*n);\n\tb=(int*)malloc(sizeof(int)*n);\n\tfor(i=0;i>n;\n\tfor(i=0;;i++)\n\t{\n\t\tcin>>a>>b;\n\t\tif(a==0 && b==0) break;\n\t\tp[b]++;\n\t\tq[a]=1;\n\t}\n\tfor(i=0;i> n; \t\n \tcin >> x >> y;\n \twhile ( x != 0 || y != 0 )\n \t{\n \t \ta[x] = 1;\n\t\tsum[y]++;\n\t\tcin >> x >> y; \n \t}\n \tfor ( i = 0; i < n; i++ )\n \t{\n\t \tif ( sum[i] == n - 1 && a[i] == 0 )\n\t\t{ cout << i << endl; \n\t\t\tbreak;\n\t\t}\t \n }\n if ( i == n )\n cout << \"NOT FOUND\" << endl;\n \t\n \treturn 0;\n}"} +{"label": "89", "index": "44148", "code": "int main()\n{\n\tint result=1;\n\tint n;\n\tint i;\n\tcin>>n;\n\tint m[10000][2];//m[i][0]??m??????m[i][1]????m???\n\tint a,b;\n\tfor(i=0;i<10000;i++)\n\t{\n\t\tm[i][0]=m[i][1]=0;\n\t}\n\twhile(cin>>a>>b)\n\t{\n\t\tif(a==0&&b==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tm[a][0]++;\n\t\tm[b][1]++;\n\t}\n\tfor(i=0;i> n; //????\n\tcin >> x >> y;\n\twhile(x != 0 || y != 0)\n\t{\n\t\tflag_a[x] = 1; //??????????1\n\t\tif (flag_a[y] != 1)\n\t\t{\n\t\t\ta[y]++; //?????????????1\n\t\t}\n\t\tcin >> x >> y;\n\t}\n\tfor (i = 0; i < n; i++) //???????????????????????\n\t{\n\t\tif (flag_a[i] == 0 && a[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0) //??????\"NOT FOUND\"\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "89", "index": "44150", "code": "\nint main()\n{\n\tint n,p1[10000],p2[10000],k,i,j;\n\tcin>>n;\n\tfor(k=0;k>i>>j)\n\t{\n\t\tif(i==0&&j==0) break;\n\t\tp1[i]++;\n\t\tp2[j]++;\n\t}\n\tfor(k=0;k> n ; //????? \n memset(a , 0 , sizeof(a)) ; //????? \n memset(b , 0 , sizeof(b)) ; \n for ( ; ; ) //????????i????????1???j?????+1 \n {\n cin >> i >> j ; \n if ((i == 0) && (j == 0))\n break ; \n a[j] ++ ; \n b[i] ++ ; \n }\n for (p = &(a[0]) , q = &(b[0]) , i = 0 ; i < n ; i ++ ) //???????????????????????0???n - 1????????? \n {\n if ((*(p + i) == n - 1) && (*(q + i) == 0))\n {\n j = i ; //?i???? \n break ; \n }\n }\n if (j == n) //?j????n???????? \n cout << \"NOT FOUND\" << endl ; \n else //?????????? \n cout << j << endl ; \n return 0 ; \n}\n\n"} +{"label": "89", "index": "44152", "code": "/*\n * shehuimingliu.cpp\n *\n * Created on: 2010-12-13\n * Author: ??\n * ????????\n */\nint main()\n{\n\tint i,a[10000]={0},n,a1,a2,flag=0;\n\tcin >> n;\n\n\twhile(1)\n\t{\n\t\tcin >> a1 >> a2;\n\t\tif(a1==0&&a2==0) break;\n\t\telse { a[a1]=-1000; a[a2]++;}\n\t}\n\tfor(i=0;i=num1[i+1])\n\t\t{\n\t\t int e1=num1[i+1];\n\t\t num1[i+1]=num1[i];\n\t\t num1[i]=e1;\n\t\t int e2=order[i+1];\n\t\t order[i+1]=order[i];\n\t\t order[i]=e2;\n\t\t int f=num2[i+1];\n\t\t num2[i+1]=num2[i];\n\t\t num2[i]=f;\n\t\t}\n\t }\n\t}\n\tint max=num1[n-1];\n\tint num=1;\n\tfor(i=n-1;max==num1[i];i--)\n\t{\n\t num++;\n\t}\n\tif(max!=n-1)\n\t{\n\t printf(\"NOT FOUND\");\n\t}\n\tif(max==n-1)\n\t{\n\t for(i=n-1;num1[i]==n-1;i--)\n\t {\n\t\tif(num==1)\n\t\t{\n\t\t if(num2[i]==0)\n\t\t {\n\t\t printf(\"%d\",order[i]);\n\t\t\tbreak;\n\t\t }\n\t\t if(num2[i]!=0)\n\t\t {\n\t\t printf(\"NOT FOUND\");\n\t\t break;\n\t\t }\n\t\t}\n\t\tif(num>1)\n\t\t{\n\t if(num2[i]==0)\n\t\t {\n\t\t printf(\"%d\\n\",order[i]);\n\t\t }\n\t\t}\n\t\t num--;\n\t }\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44156", "code": "//****************???????????************\n//****************???????*******************\n//****************?????2012?12?12?*********\n//****************???1200062701****************\n\n\nstruct c_in\n{\n\tint x;\n\tint y;\n}\nsample[5000 * 9999];\nstruct c_out\n{\n\tint m;\n\tint time;\n}\nname[5000 * 9999];\nint main()\n{\n\tint n, i, flag = 0; \n\tcin >> n; //???n??\n\t\n\tfor(i = 0; ; i++)\n\t{\n\t\tcin >> sample[i].x >> sample[i].y;\n\t\tif((sample[i].x == 0)&&(sample[i].y == 0))\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(int j = 0; j < n; j++) //???????????\n\t{\n\t\tname[j].m = j;\n\t\tname[j].time = 0;\n\t}\n\tfor(int j = 0; j < i; j++) //??????? 0 0 ?????\n\t{\n\t\t(name[sample[j].y].time)++;\n\t}\n\tfor(int j = 0; j < n; j++) \n\t{\n\t\tif(name[j].time == n - 1)\n\t\t{\n\t\t\tcout << name[j].m;\n\t\t\tflag += 1;\n\t\t}\n\t}\n\tif(flag == 0)\n\t{\n\t\tcout << \"NOT FOUND\";\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44157", "code": "int main()\n{\n\tint n,i,j;\n\tint know[10000]={0};\n\tcin>>n;\n\tfor (i=0;i>i>>j)\n\t{\n\t\tif (i==j&&i==0)\n\t\t\tbreak;\n\t\tknow[i]=-1;\n\t\tif (know[j]!=-1)\n\t\t{\n\t\t\tknow[j]++;\n\t\t\tif (know[j]==n-1)\n\t\t\t\tcout<> n;\n\twhile(cin >> b >> c)\n\t{\n\t\tif ((b == 0) && (c == 0))\n\t\t\tbreak;\n\t\t(*(p + b))++;\n\t\t(*(q + c))++;\n\t}\n\tfor (i = 0; i <= n-1; i++)\n\t{\n\t\tif ((a[i] == 0) && (d[i] == n - 1))\n\t\t{\n\t\t\tf = 1;\n\t\t\tcout << i;\n\t\t}\n\t}\n\tif (f == 0)\n\t\tcout << \"NOT FOUND\" ;\n\treturn 0;\n}"} +{"label": "89", "index": "44160", "code": "main()\n{\n int i,j;\n int a,b,c;\n int n;\n \n scanf(\"%d\",&n);\n int*p=(int*)malloc(n*sizeof(int));\n for(i=0;i> n;\n\tcin >> i >> j;\n\twhile (i != 0 || j != 0)\n\t{\n\t\t*(*(p + i)) += 1;\n\t\t*(*(p + j) + 1) += 1;\n\t\tcin >> i >> j;\n\t}\n\tfor (k = 0; k < n; k++)\n\t\tif (a[k][0] == 0 && a[k][1] == n - 1)\n\t\t{\n\t\t\tcout << k << endl;\n\t\t\tflag = 0;\n\t\t}\n\tif (flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44163", "code": "main()\n{\n int n,i,j,sum=0,a[100000],b[100000],c[10000],d[10000];\n scanf(\"%d\",&n);\n for(i=0;;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if (a[i]==0&&b[i]==0)\n break;\n } \n for(j=0;j<=n-1;j++)\n {\n c[j]=0;\n d[j]=0;\n } \n for(j=0;j<=i-1;j++)\n {\n c[b[j]]++;\n d[a[j]]++;\n }\n for(i=0;i<=n-1;i++)\n {\n if(c[i]==n-1&&d[i]==0)\n {\n printf(\"%d\",i);\n sum++;\n }\n }\n if (sum==0)\n printf(\"NOT FOUND\");\n} "} +{"label": "89", "index": "44164", "code": "main()\n{\n int n,i;\n scanf(\"%d\",&n);\n int *num=(int*)malloc(n*sizeof(int));\n for(i=0;i> n;\n\tint a1[1000000], a2[1000000], num[1000000] = {0};\n\tfor (i = 0; i <= n * (n - 1); i++)\n\t{\n\t\tcin >> a1[i] >> a2[i];\n\t\tif (a1[i] == 0 && a2[i] == 0) break;\n\t\tnum[a2[i]]++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (num[i] == n - 1)\n\t\t{\n\t\t\tg = 1;\n\t\t\tcout << i;\n\t\t}\t\n\t}\n\tif (g == 0) cout << \"NOT FOUND\";\n\treturn 0;\n}\n"} +{"label": "89", "index": "44166", "code": "int main()\n{\n\tint a[100000][2], b[100000], i, n;\n\tcin >> n;\n\tmemset(b, 0, sizeof(b));\n\tfor(i = 0; ; i++)\n\t{\n\t\tcin >> a[i][0] >> a[i][1];\n\t\tif(a[i][0] == 0 && a[i][1] == 0)\n\t\t\tbreak;\n\t\tif(a[i][0] != a[i][1])\n\t\t\tb[a[i][0]] = 1;\n\t}\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(b[i] == 0)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(i == n)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44167", "code": "int main()\n{\n\tint n,i,j;\n\tint flag[10000]={0},num[10000]={0};\n\tcin>>n;\n\twhile(cin>>i>>j)\n\t{\n\t\tif(i == 0 && j == 0)\n\t\t\tbreak;\n\t\tflag[i] = 1;\n\t\tnum[j] ++;\n\t}\n\n\tfor(i = 0;i < n; i++)\n\t{\n\t\tif(flag[i] == 0)\n\t\t{\n\t\t\tif(num[i] == n - 1)\n\t\t\t\tcout<>n>>a>>b;\n for(int i=0;i>a>>b;\n }\n for(int i=0;i> n; //???????\n\tfor ( i = 0; ; i++ )\n\t{\n\t\tfor ( j = 0; j < 2; j++ )\n\t\t\tcin >> a[i][j];\t\t\t\n\t\tif ( a[i][0] == 0 && a[i][1] == 0 ) //?? 0.0 ?????\n\t\t\tbreak;\n\t\telse\n\t\t\tcount[a[i][1]]++; //?????????\n\t}\n\tfor ( k = 0; k <= n - 1; k++ )\n\t{\n\t\tif ( count[k] >= n - 1 ) //????????????????????\n\t\t{\n\t\t\tfor ( p = 0; p < n; p++ )\n\t\t\t\tif ( a[p][0] == k )\n\t\t\t\t\tbreak;\n\t\t\tif ( p == n ) //????????\n\t\t\t{\t\n\t\t\t\tcout << k << endl;\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t}\n\t}\n\tif ( flag == 0 )\n\t\tcout << \"NOT?FOUND\" << endl; //????????\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44178", "code": "main()\n{\n int n,a[100000],b[100000],c[10000],i,j,m;\n scanf(\"%d\",&n);\n for(i=0;;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0)\n break;\n }\n m=i;\n for(i=0;i> n;\n\tfor (k = 0; ;k++)\n\t{\n\t\tcin >> i >> j;\n\t\tif ((i != 0) || (j != 0))\n\t\t{\n\t\t\tnum0[i] = 1; //\u0093??\u0094????????????????? \n\t\t\tnum[j] = num[j] + 1; //?????????\n\t\t}\n\t\telse \n\t\t\tbreak;\n\t}\n\tjudge(num, num0, n);\n\treturn 0 ;\n}\nvoid judge(int * num, int * num0, int n)\n{\n\tint a, b = 0;\n\tfor (a = 0; a < n; a++)\n\t{\n\t\tif ((num[a] == n - 1) && (num0[a] == 0)) //??????\u0093????\u0094\n\t\t{\n\t\t\tcout << a <>n;\n\twhile(cin>>i>>j)\n\t{\n\t\tif (i==0 && j==0)\tbreak;\n\t\ta[i][j]=1;\n\t}\n\ti=0;\n\tj=1;\n\twhile(j> n;\n\twhile(1)\n\t{\n\t\tcin >> p.x >> p.y;\n\t\tif (p.x == 0 && p.y == 0)\n\t\t\tbreak;\n\t\tif (p.x != p.y) // ????????????????\n\t\t\ta[p.x] = 10000; // ??????????????????\n\t\ta[p.y] += 1; // a[p, y]??????????\n\t}\n\tfor (i = 0; i < 10000; i++)\n\t{\n\t\tif (a[i] == n - 1) //???n - 1???????????????\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tt = 1; // ?t?????????????\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (t == 0) \n\t\tcout << \"NOT FOUND\" << endl;\n\n\treturn 0;\n}"} +{"label": "89", "index": "44187", "code": "main()\n{ int n,a[100000],b[100000],i,j,c[100000]={0},k;\n scanf(\"%d\",&n);\n for(i=0;;i++)\n { scanf(\"%d%d\",&a[i],&b[i]); \n if(a[i]==0&&b[i]==0)\n break;\n }\n k=i-1; \n for(j=0;j<=(n-1);j++) \n {for(i=0;i<=k;i++)\n {if(b[i]==j)\n c[j]=c[j]+1; \n }\n }\n i=0; \n for(j=0;j<=n-1;j++)\n {if(c[j]==n-1)\n {for(i=0;i<=k;i++)\n if(j==a[i])\n break; \n } \n if(i>k) \n { printf(\"%d\",j); \n \n break;\n }\n } \n if(j==n) \n printf(\"NOT FOUND\"); \n \n}\n"} +{"label": "89", "index": "44188", "code": "main()\n{\n int a[10000];\n int b[10000];\n int m,n,i,j,t,p=0;\n scanf(\"%d\",&t);\n for(i=0;i=n-1)\n {\n printf(\"%d\",i);\n Flag2=1;\n break;\n } \n } \n if(Flag2==0)\n printf(\"Not Found\"); \n \n } }\n"} +{"label": "89", "index": "44191", "code": "\nmain()\n{\n int n,i,j,c,a[100000],b[100000],m[10000]={0},p[10000]={0},k=-1;\n scanf(\"%d\",&n);\n for(i=0; ;i++)\n {\n \n scanf(\"%d %d\",&a[i],&b[i]);\n k++;\n if(a[i]==0&&b[i]==0)\n break;\n \n }\n \n for(i=0;i> n;\n\tfor(i = 0; ;i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif(a[i] == 0 && b[i] == 0)\n\t\t\tbreak;\n\t\tm++;\n\t}\n\tfor(i = 0; i < n; i++)\n\t{\tfor(j = 0; j < m; j++)\n\t\t\tif(b[j] == i)\n\t\t\t\tcount[i]++;\n\t}\n\tfor(i = 0; i < n; i++)\n\t\tif(count[i] == n - 1)\n\t\t{\n\t\t\tk = 1;\n\t\t\tfor(j = 0; j < m; j++)\n\t\t\t\tif(a[j] == i)\n\t\t\t\t\tbreak;\n\t\t\tif(j == m)\n\t\t\t{\n\t\t\t\tcout << i << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tk = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\tif(k == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44193", "code": "int main()\n{\nint n,b,i,j,k,l;\nint *p;\np=&b;\nint c=0;\nint flag1=0,flag2,flag3;\nscanf(\"%d\",&n);\nint a[100000][2];\nfor(i=0;;i++)\n{\nscanf(\"%d %d\",&a[i][0],&a[i][1]);\nif(a[i][0]==0&&a[i][1]==0)\n{*p=i;\nbreak;}\n}\nfor(j=0;j=up) return;\n else\n {\n k=a[low];\n j=low;\n for (i=low;i<=up;i++)\n {\n if (a[i]>k)\n {\n j++;\n x=a[i];\n a[i]=a[j];\n a[j]=x;\n }\n }\n x=k;\n a[low]=a[j];\n a[j]=x;\n Qsort(a,low,j-1);\n Qsort(a,j+1,up);\n \n }}\n/*int main()\n{\n int n,i,j,w,l;\n int a[1000],b[1000];\n scanf(\"%d\",&n);\n while(n!=0){\n for(i=0;i=n) {l++;continue;}\n else\n {\n if (a[i]>b[j]) w++;\n j++;\n }\n }\n printf(\"%d\\n\",w*200-200*l);\n scanf(\"%d\",&n);\n }\n}*/\nint main()\n{\n int know[10000]={0},beknown[10000]={0};\n int n=0,i,x,y,flag,t;\n scanf(\"%d\",&n);\n x=y=1;\n t=0;\n while(x+y!=0)\n {\n scanf(\"%d %d\",&x,&y);\n know[x]++;\n beknown[y]++;\n }\n flag=0;\n for (i=0;i> n;\n\t\n\twhile (cin >> i && cin >> j && (i != 0 || j != 0))\n\t{\n\t\t(*(p + j))++;\n\t}\n\t\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (*(p + i) == n - 1)\n\t\t{\n\t\t\tcout << i;\n\t\t\tbreak; \n\t\t}\n\t}\n\tif (i == n)\n\t{\n\t\tcout << \"NOT FOUND\";\n\t}\n\treturn 0;\n}\n"} +{"label": "89", "index": "44198", "code": "int pe[2][100000];\nint main()\n{\n int n;\n cin>>n;\n int a,b;\n for(int i=0;i>a>>b;\n if(a==0&&b==0)\n break;\n pe[0][a]++;\n pe[1][b]++;\n }\n for(int i=0;i> n;\n int num[100000];\n int *p = num;\n while(cin)\n {\n cin >> a >> b;\n if(a == 0 && b == 0)\n {\n break;\n }\n else\n {\n *(p + b) = *(p + b) + 1;\n }\n }\n for(p = num;p < num + n;p++)\n {\n if(*p == n - 1)\n {\n cout << p - num;\n break;\n }\n if(p == num + n - 1)\n {\n cout << \"NOT FOUND\";\n }\n } \n\n return 0; \n}\n"} +{"label": "89", "index": "44200", "code": "int main()\n{\n int a[100000],b[100000],i=0,l=0,n,j,s,c[100000],d[100000];\n scanf(\"%d\",&n);\n for (;;)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if (a[i]==0&&b[i]==0)\n break;\n l++;//l?++???break????break??l??????0????????? \n i++;//??????i++??i???? \n }\n for (j=0;j>n;\n\twhile(1)\n\t{\n\t\tcin>>i>>j;\n\t\tif(i==0&&j==0)\n\t\t\tbreak;\n\t\tb[j]++;\n\t\tcount[i]++;\n\t}\n\tbmax=b[0];\n\tmax=0;\n\tfor(int k=1;kbmax)\n\t\t{\n\t\t\tbmax=b[k];\n\t\t\tmax=k;\n\t\t}\n\tif(count[max]==0)\n\t\tcout<> n;\n\tcin >> i >> j;\n\twhile (i != 0 || j != 0) // ????\n\t{\n\t\t*(*(p + i)) += 1; // i????+1\n\t\t*(*(p + j) + 1) += 1; // ??j??+1\n\t\tcin >> i >> j;\n\t}\n\tfor (k = 0; k < n; k++) // ??\n\n\t\t// ???????0???n - 1??????????????\n\t\tif (*(*(p + k)) == 0 && *(*(p + k) + 1) == n - 1)\n\t\t{\n\t\t\tcout << k << endl; // ??\n\t\t\tflag = 0;\n\t\t}\n\n\t// ??????NOT FOUND\n\tif (flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44208", "code": "\n\nconst\tint\tmaxn = 1000000+10;\n\nint\t\tknow[maxn], known[maxn];\nint\t\tn, a, b, i;\n\nint\tmain()\n{\n\tscanf(\"%d\", &n);\n\tmemset(know, 0, sizeof(know));\n\tmemset(known, 0, sizeof(known));\n\twhile (scanf(\"%d%d\", &a, &b) && (a+b != 0))\n\t{\n\t\tknow[a] ++;\n\t\tknown[b] ++;\n\t}\n\tfor (i = 0; i < n; i++)\n\tif (known[i] == n-1 && know[i] == 0)\n\t\tcout << i << endl;\n\n\treturn 0;\n}"} +{"label": "89", "index": "44209", "code": "int main()\n{\n\tint *man,n;\n\tscanf (\"%d\",&n);\n\tman=(int*)malloc(4*n);\n\n\tint i,j,k,sum=0;\n\tfor (i=0;i<=n-1;i++)\n\t\t*(man+i)=0;\n\n\tfor (k=0;;k++)\n\t{\n\t\tscanf (\"%d%d\",&i,&j);\n\t\tif (i==0&&j==0)\n\t\t\tbreak;\n\t\tif (*(man+j)!=-1)\n\t\t\t*(man+j)+=1;\n\t\t*(man+i)=-1;\n\t}\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tif (*(man+i)==n-1)\n\t\t{\n\t\t\tprintf (\"%d\",i);\n\t\t\tsum=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(sum==0)\n\t\tprintf(\"NOT FOUND\");\n\t\n\t\n\treturn 0;\n}\n"} +{"label": "89", "index": "44210", "code": "int main ()\n{\n int *p;\n int n,i,t,x,y;\n scanf(\"%d\",&n);\n p=(int*)malloc(n*sizeof(int));\n for(i=0;i>k;\n\tint a[k],b[k];\n\tfor (m=0;m>i>>j;\n\t\tif (i==0&&j==0) break;\n\t\telse {a[i]+=1; b[j]+=1;}\n\t}\n\tfor (n=0;n0||a[m][1]>0) //??m? \n {\n scanf(\"%d %d\",&a[m+1][0],&a[m+1][1]);\n m++;\n }\n for (i=0;i>n;\n\tfor (i = 0; ; i++)\n\t{\n\t\tcin>>a[i]>>b[i];\n\t\tnum++;\n\t\tif (a[i] == 0 && b[i] == 0)\n\t\t\tbreak;\n\t}\n\tfor (j = 0; j < n; j++)\n\t{\n\t\tfor (i = 0; i < num - 1; i++)\n\t\t{\n\t\t\tif (a[i] == j)\n\t\t\t\tsum1[j]++;\n\t\t\tif (b[i] == j)\n\t\t\t\tsum2[j]++;\n\t\t}\n\t}\n\tfor (j = 0; j < n; j++)\n\t{\n\t\tif (sum1[j] == 0 && sum2[j] == n - 1)\n\t\t{\n\t\t\tcout<> n;\n\twhile (cin >> i >> j)\n\t{\n\t\tif (i == 0 && j == 0)\n\t\t\tbreak;\n\t\tknow[i]++;//i????,+1\n\t\tcount[j]++;//j???,+1\n\t}\n\tfor (i = 0; i < n; i++)\n\t\tif (know[i] == 0 && count[i] == n - 1)//????i??i???????,????????\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;//??\n\t\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;//????????\n\treturn 0;\n}"} +{"label": "89", "index": "44230", "code": "int main ()\n{ int n,i,x,y,t=0;\n int num[10000];\n for(i=0;i<1000;i++)\n num[i]=0;\n scanf(\"%d\",&n);\n for(i=0;;i++)\n { scanf(\"%d %d\",&x,&y);\n if(x==0&&y==0) break;\n num[x]++;\n num[y]++;\n }\n for(i=0;i> n;\n\tcin >> a >> b;\n\twhile (!(a == 0 && b == 0))\n\t{\n\t\tfam1[a] = 1;\n\t\tfam2[b]++;\n\t\tcin >> a >> b;\n\t}\n\tp1 = fam1;\n\tp2 = fam2;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (*(p1 + i) == 0 && *(p2 + i) == n - 1)\n\t\t{\n\t\t\tflag++;\n\t\t\tcout << i;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\";\n\t\treturn 0;\n}"} +{"label": "89", "index": "44232", "code": "int main()\n{\n\tint n;int a[100000];int b[100000];\n\tcin>>n;\n\tfor(int t=0;t>i)\n\t{\n\t\tcin>>j;\n\t\tif(i==0&&j==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\ta[i]++;\n\t\t\tb[j]++;\n\t\t}\n\t}\n\tfor(int r=0;r=(n-1)) \n {\n printf(\"%d\",t);\n s++;\n }\n }\n if(s==0) printf(\"NOT FOUND\");\n \n }\n"} +{"label": "89", "index": "44235", "code": "int main()\n{\n int n,i,j,p,q;\n j=-1;\n scanf(\"%d\",&n);\n int a[10000];\n for(i=0;i<10000;i++)\n {\n a[i]=0;\n }\n do\n {\n scanf(\"%d %d\",&p,&q);\n if(p==0&&q==0)\n {\n break;\n }\n a[p]=a[p]-1;\n a[q]=a[q]+1;\n }\n while(p!=0||q!=0);\n for(i=0;i> n;\n\tnum = 0;\n\tflag = 0;\n\tsum = 0;\n\tfor(i = 0; ; i ++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tnum ++;\n\t\tif(a[i] == 0 && b[i] == 0)\n\t\t\tbreak;\n\t}\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tq = b;\n\t\tfor(p = a; p <= a + num - 1; p ++)\n\t\t{\n\t\t\tif(*p == i)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(*q == i)\n\t\t\t\t\tsum = sum + *p;\n\t\t\t\tq ++;\n\t\t\t}\n\t\t}\n\t\tif(sum == n * (n - 1) / 2 - i)\n\t\t{\n\t\t\tflag = 1;\n\t\t\tcout << i;\n\t\t\tbreak;\n\t\t}\n\t\tsum = 0;\n\t}\n\tif(flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44237", "code": "main()\n{\n\tint a[10000],b[10000],c[10000]={0},d[10000]={0};\n\tint i,n;\n\tscanf (\"%d\",&n);\n\tfor (i=0;i<10000;i++)\n\t{\n\t\tscanf (\"%d %d\",&a[i],&b[i]);\n\t\tif (a[i]==0&&b[i]==0)break;\n\t\tc[a[i]]++;\n\t\td[b[i]]++;\n\t}\n\tfor (i=0;i>n;\n\tint a;\n\tint b;\n\n\tint i;\n\tint j;\n\tcin>>a>>b;\n\twhile(a!=0||b!=0)\n\t{\n\t\tpeople[a][b]=1;\n\t\tcin>>a>>b;\n\t}\n\tfor(j=0;j0;scanf(\"%d%d\",&i,&j)){\n\t\tin[i]++;\n\t\tou[j]++;\n\t}\n\tfor (i=0;i> n;\n do\n\t{\n\t\ti++;\n\t\tcin >> pp[i].p >> pp[i].q;\n\t\tpp[i].f = 1;\n\t\tcount++; // count ?????????\n\t}while(pp[i].p != 0 || pp[i].q != 0);\n\tcount--;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tfor (int j = 1; j <= count; j++)\n\t\t{\n\t\t\tif (pp[j].q == i)\n\t\t\t\tnum[i]++;\n\t\t}\n\t\tif (num[i] == n - 1)\n\t\t\tcout << i << endl;\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44242", "code": "int main ()\n{\n\tint n, know[10000] = {0}, known[10000] = {0},\n\t flag, man, man0;\n\tcin >> n;\n\tdo\n\t{\n\t\tcin >> man >> man0;\n\t\tif (man == 0 && man0 == 0) break;\n\t\t++know[man];\n\t\t++known[man0];\n\t} while(1);\n\tflag = 0;\n\tfor (int i = 0; i < n; i++)\n\t\tif (know[i] == 0 && known != 0)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\t++flag;\n\t\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\tgetchar();\n\tgetchar();\n\treturn 0;\n}"} +{"label": "89", "index": "44243", "code": "\n\n\nint main()\n{\n\tstruct person\n\t{\n\t\tint rs;\n\t\tint brs;\n\t}p[10000];\n\n\tint n;\n\tint i,j,k,l,m,q;\n\tcin>>n;\n\tint t1=0,t2=1;\n\tfor(i=0;t1!=t2;i++)\n\t{\n\t\tcin>>t1>>t2;\n\t\tp[i].rs=t1;\n\t\tp[i].brs=t2;\n\t}\n\n\n\t\n\tint flag,out=0;\n\tint record[10000];\n\tfor(j=0;j<=n-1;j++)\n\t{\n\t\tflag=1;\n\t\tfor(k=0;k<=i-2;k++)\n\t\t{\n\t\t\tif(p[k].rs==j)\n\t\t\t{\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==0)\n\t\t\tcontinue;\n\t\tfor(q=0;q<=n-1;q++)\n\t\t{\n\t\t\trecord[q]=0;\n\t\t}\n\t\tfor(l=0;l<=i-2;l++)\n\t\t{\n\t\t\tif(p[l].brs==j)\n\t\t\t{\n\t\t\t\trecord[p[l].rs]=1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(m=0;m<=n-1;m++)\n\t\t{\n\t\t\tif(m==j)\n\t\t\t\tbreak;\n\t\t\tif(record[m]==0)\n\t\t\t{\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==1)\n\t\t{\n\t\t\tcout<> n;\n\tfor (i = 0; i < n; i++)\n\t\tcelebrity[i] = 1;\n\ti = 0;\n\twhile (1)\n\t{\n\t\tcin >> a[i][0] >> a[i][1];\n\t\tif (a[i][0] == 0 && a[i][1] == 0)\n\t\t\tbreak;\n\t\telse\n\t\t\ti++;\n\t} \n\tflag = 0;\n\tfor (k = 0; k < n; k++)\n\t{\n\t\tfor (j = 0; j <= i - 1; j++)\n\t\t{\n\t\t\tif (a[j][0] == k)\n\t\t\t\tcelebrity[k] = 0;\n\t\t}\n\t}\n\tfor (k = 0; k < n; k++)\n\t{\n\t\tif (celebrity[k] == 1)\n\t\t{\n\t\t\tcount = 0;\n\t\t\tfor (j = 0; j <= i - 1; j++)\n\t\t\t\tif (a[j][1] == k)\n\t\t\t\t\tcount++;\n\t\t\tif (count == n - 1)\n\t\t\t{\n\t\t\t\tflag = 1;\n\t\t\t\tcout << k << endl;\n\t\t\t}\n\t\t}\n\t}\n\tif (!flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "89", "index": "44245", "code": "main()\n{\nint n,i,j;\nscanf(\"%d\",&n);\nint a[n+5],b[n+5];\nfor (i=0;i>n;\n\tint a[100000][2];\n\tmemset(a,0,sizeof(a));\n\tint *p=&a[0][0];\n\tint b[n];\n\tmemset(b,0,sizeof(b));\n\tfor(i=0;;i++)\n\t{\n\t\tcin>>*p>>*(p+1);\n\t\tp+=2;\n\t\tif(*(p-2)==0&&*(p-1)==0)\n\t\tbreak;\n\t}\n\tint c=i-1;\n\tfor(i-1;i>=0;i--)\n\t{\n\t\tb[a[i][1]]++;\n\t}\n\tint j;int flag=1,fg=1;\n\tfor(i=0;i<=n;i++)\n\t{\n\t\tif(b[i]==n-1)\n\t\t{\n\t\t\tfor(j=0;j> n;\n\twhile (1)\n\t{\n\t\tcin >> num1[i] >> num2[i];\n\t\texcept[num1[i]]++;\n\t\tif ((num1[i] == 0) && (num2[i] == 0))\n\t\t\tbreak;\n\t\ti++;\n\t}\n\n\tfor (j = 0; j < n; j++)\n\t{\n\t\tif (except[j] != 0)\n\t\t\tcontinue;\n\t\tsum = 0;\n\t\tmemset(flag,0,sizeof(flag));\n\t\tfor (p = 0; p < i; p++)\n\t\t{\n\t\t\tif (num2[p] == j)\n\t\t\t\tif (flag[num1[p]] == 0)\n\t\t\t\t\tflag[num1[p]]++;\n\t\t\tif (num1[p] == j)\n\t\t\t\tflag[num1[p]] = -1;\n\t\t}\n\t\tfor (p = 0; p < n; p++)\n\t\t\tsum += flag[p];\n\t\tif (sum == n - 1)\n\t\t{\n\t\t\tcout << j;\n\t\t\tf = 1;\n\t\t}\n\t}\n\tif (f == 0)\n\t\tcout << \"NOT FOUND\";\n\n\treturn 0;\n}"} +{"label": "89", "index": "44253", "code": "main()\n{\n int n;\n scanf(\"%d\",&n);\n int m=0;\n int b1[100000],c1[100000];\n int b2[n],c2[n];\n int i;\n for(i=0;i<100000;i++)\n {\n scanf(\"%d %d\",&b1[i],&c1[i]);\n m++;\n if(b1[i]==0&&(c1[i]==0))\n break;\n \n }\n int d,e;\n for(d=0;d0)\n {\n r[c]++;\n if(a[b]==1)k--,a[b]=0;\n }\n else break;\n if(k==0)break;\n }\n if(k==1)\n for(i=0;i> n;\n\tflag1 = 0;\n\tj = 0;\n\twhile(1)\n\t{\n\t\tcin >> a>> b;\n\t\tif ((a == 0) && (b == 0))\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tflag[a] = 1;\n\t\t\tnum[b]++;\n\t\t}\n\t\tj++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif ((flag[i] == 0) && (num[i] == n - 1))\n\t\t{\n\t\t\tcout <<\ti << endl;\n\t\t\tflag1 = 1;\n\t\t}\n\t}\n\tif (flag1 == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\t\t\n\treturn 0;\n}\n"} +{"label": "89", "index": "44258", "code": "int data[100000];\nint main()\n{\n\tint n,x,y;\n\tscanf(\"%d\",&n);\n\twhile(1)\n\t{\n\t\tscanf(\"%d%d\",&x,&y);\n\t\tif(x+y==0)break;\n\t\tdata[x]=-1;\n\t\tif(data[y]>=0)data[y]++;\n\t}\n\tint i=n;\n\twhile(n-->=0)if(data[n]==i-1){printf(\"%d\\n\",n);break;}\n\tif(n<0)printf(\"NOT FOUND\\n\");\n\treturn 0;\n}"} +{"label": "89", "index": "44259", "code": "/*\n*@author: ??? 1100012986\n*@date?2011.12.07\n*@description???????\n*/\nint main()\n{\n\tint i, n, x, y;\n\tint a[100000] = {0};\n\tcin >> n;\n while(1) // ???????????????????????\n\t{\n\t\tcin >> x >> y;\n\t\tif(x == 0 && y == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\ta[y]++;\n\t}\n\tfor(i = 0; i < n; i++) // ??????\n\t{\n\t\tif(*(a + i) == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(i == n) // ??????????NOT FOUND\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44260", "code": "\n\nint main()\n{\n\tint n;\n\tint a, b;\n\tint num[100000];\n\tcin>>n;\n\tmemset(num,0,sizeof(num));\n\twhile( cin>>a>>b && !( a == 0 && b == 0 ) )\n\t{\n\t\tnum[b]++;\n\t}\n\tfor( int i = 0 ; i < n ; i ++ )\n\t{\n\t\tif( num[i] == n - 1 ) { cout<> n;\nwhile(cin >> tempa >> tempb)\n{\nif(tempa == 0 && tempb == 0)\nbreak;\nb[tempb] ++;\n\n}\nfor(i = 0;i < n;i ++)\n{\nif( b[i] == n - 1)\ncout << i << endl;\nflag = 1;\n}\nif(flag == 0)\ncout << \"NOT FOUND\" << endl;\nreturn 0;\n}"} +{"label": "89", "index": "44264", "code": "main()\n{\n\tint n,a[10002],b[10002],t[10002]={0},i,j,e;\n\tscanf(\"%d\",&n);\n\tfor(e=0;;e++)\n\t{\n\t\tscanf(\"%d %d\",&a[e],&b[e]);\n\t\tif(a[e]==0&&b[e]==0)\n\t\tbreak;\n\t}\n\tfor(i=0;in,&p1->m);\n head=NULL;\n while(p1->n!=0||p1->m!=0)\n {\n i++;\n if(i==1){head=p1;}\n else \n p2->next=p1;\n p2=p1;\n p1=(struct ming*)malloc(LEN);\n scanf(\"%d%d\",&p1->n,&p1->m);\n //printf(\"%d %d\\n\",p1->n,p1->m);\n }\n p2->next=NULL;\n return(head);\n}\nint found(int l,struct ming*head)\n{\n int i=0;\n struct ming *p1;\n p1=head;\n while(p1!=NULL)\n {\n if(p1->m==l)\n {i++;\n //printf(\"%d\\n\",p1->n);\n }\n p1=p1->next;\n //printf(\"%d %d\\n\",p1->n,p1->m);\n }\n return(i);\n}\n \nint main()\n{\n \n int n,o,k,p;\n scanf(\"%d\",&n);\n struct ming *head;\n head=creat();\n for(o=0,k=0;o> n;\n\twhile(1)\n\t{\n\t\tcin >> t >> k;\n\t\tif (t == 0 && k == 0)\n\t\t\tbreak;\n\t\t*(*(p + t) + k) = 1;\n\t}\n\tfor (i = 0; i < n; i++)\n\t\tfor (j = 0; j < n; j++)\n\t\t{\n\t\t\tif (*(*(p + i) + j) == 1)\n\t\t\t{\n\t\t\t\t(*(r + j))++;\n\t\t\t\t(*(s + i))++;\n\t\t\t}\n\t\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif ((*(r + i) == n - 1) && (*(s + i) == 0))\n\t\t{\n\t\t\tcout << i;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}"} +{"label": "89", "index": "44273", "code": "main()\n{\n int i,j,n,k,l,sum,b;\n scanf(\"%d\",&n);\n int a[100000][2];\n for(i=0;i<100000;i++)\n {\n for(j=0;j<2;j++)\n a[i][j]=0;\n }\n\n for(i=0;;i++)\n {\n scanf(\"%d%d\",&a[i][0],&a[i][1]);\n if(a[i][0]==0&&a[i][1]==0)\n break;\n }\n int c[n];\n for(j=0;j>n;\n\tfor(i=1;i<=n*(n-1);i++)\n\t{\n\n\t\tcin>>x>>y;\n\t\tif((x==0)&&(y==0)) break;\n\t\ta[y]++;\n\t\tb[x]++;\n\t}\n\tfor(j=0;j=n-1)\n {\n printf(\"%d\",j);\n t=1;\n }\n }\n if(t==0)\n printf(\"NOT FOUND\");\n}\n"} +{"label": "89", "index": "44279", "code": "int main()\n{\n int n,t,i,j,k,cnt=0,cnt1=0,cnt2=0;\n scanf(\"%d\",&n);\n t=10*n;\n int a[t],b[t];\n for(i=0;i> n;\n\tmemset(a,0,10000);memset(b,0,10000);\n\twhile(1)\n\t{\n\t\tcin >> i >> j;\n\t\tif(i == 0 && j == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i]++;\n\t\t\tb[j]++;\n\t\t}\n\t}\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(a[i] == 0 && b[i] == n-1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif(flag == 0)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44282", "code": "int a[9001][9001]={0};\nint main()\n{\n\tint n,p,q,flag=0;\n\tcin >> n;\n\tfor (p=0;p> p >> q)\n\t{\n\t\tif (p!=0 || q!=0)\n\t\t\ta[p][q]=1;\n\t\telse break;\n\t}\n\tfor (p=0;p> n;\n\tdo\n\t{\n\t\tcin >> i >> j;\n\t\ta[j].x++;\n\t}while (i != 0 || j != 0);\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (a[i].x == n - 1)\n\t\t{\n\t\t\tcount++;\n\t\t\tcout << i << endl;\n\t\t}\n\t}\n\tif (count == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44286", "code": "int outd[100000],ind[100000];\nint main(){\n int n,a,b;\n scanf(\"%d\",&n);\n memset(outd,0,sizeof(outd));\n memset(ind,0,sizeof(ind));\n while(scanf(\"%d%d\",&a,&b)!=EOF){\n if(a==0&&b==0)break;\n outd[a]++,ind[b]++;\n }\n int flag=0;\n for(int i=0;i>n;\n\tfor(i=0;;i++)\n\t{\n\t\tint p,q;\n\t\tcin >>p >>q;\n\t\tif(p==0&&q==0)\n\t\t\tbreak;\n\t\telse{\n\t\t a[p]=1;\n\t\t b[q]=b[q]+1;\n\t\t}\n\t}\n\tfor(i=0;i> n;\n int a[100000][2];\n i = 0;\n cin >> a[i][0] >> a[i][1];\n while ((a[i][0] + a[i][1])!= 0)\n {\n i = i + 1;\n cin >> a[i][0] >> a[i][1];\n }\n t = i - 1;\n for (j = 0; j <= n - 1; j++)\n {\n b = 0;\n for (i = 0; i <= t; i++)\n {\n if (a[i][0] == j) \n {\n b = 1;\n break;\n \n }\n }\n if(b == 0)\n {\n k = j;\n break; \n }\n }\n c = 0;\n for (i = 0; i <= t; i++)\n {\n if (a[i][1] == k)\n c = c + 1;\n }\n if (c == n - 1)\n cout << k << endl;\n else \n cout << \"NOT FOUND\" << endl;\n return 0;\n} \n "} +{"label": "89", "index": "44295", "code": "int main()\n{\n\tint n,a[25000][2],i,b[25000][2]={0},k=0;\n\tscanf(\"%d\",&n);\n\tscanf(\"%d %d\",&a[0][0],&a[0][1]);\n\ti=1;\n\twhile(a[i-1][0]!=0||a[i-1][1]!=0)\n\t{\n\t\tscanf(\"%d %d\",&a[i][0],&a[i][1]);\n\t\ti++;\n\t}\n\ti=0;\n\twhile(a[i][0]!=0||a[i][1]!=0)\n\t{\n\t\tb[a[i][0]][0]++;\n\t\tb[a[i][1]][1]++;\n\t\ti++;\n\t}\n\tfor(i=0;i> n;\n int i, j;\n while ( cin >> i >> j)\n {\n if (i==0 && j==0) break;\n a[i]++;\n b[j]++;\n }\n for (i = 0; i=n-1)\n\t\t{\n\t\t\tprintf(\"%d\",i);\n\t\t return 0;\n\t\t}\n\t}\n\t\tprintf(\"NOT FOUND\\n\");\n\treturn 0;\n}\n"} +{"label": "89", "index": "44298", "code": "int main()\n{\n\tint n,count=0,count1=0,i=-1,j=0;\n\tint a[1000000]={0},b[1000000]={0},x[10000]={0};\n\tcin>>n;\n\tdo\n\t{\n\t\ti++;\n\t\tcin>>a[i]>>b[i];\n\t\tcount++;\n\t}while(a[i]!=0||b[i]!=0);\n\tfor(i=0;i=n-1)\n\t\t{\n\t\t\tcout<> n;\n int *p = a, *q = b;\n for (int i = 0; ; i++)\n {\n\t\tcin >> *(p + i) >> *(q + i);\n if (*(p + i) == *(q + i) && *(p + i) == 0)\n\t\t\tbreak;\n c[*(q + i)]++;\n d[*(p + i)]++;\n if (c[*(q + i)] == n - 1 && d[*(q + i)] == 0)\n {\n cout << *(q + i);\n flag = 0;\n }\n }\n if (flag == 1)\n cout << \"NOT FOUND\";\n return 0;\n}\n"} +{"label": "89", "index": "44302", "code": "int main()\n{\n\tint n;\n\tint i,j;\n\tcin>>n;\n\tint know[10000][2] = {0}; //??????????,???????????\n\tint *p;\n\tint flag = 0;//????????\n\tp = &know[0][0];//??????????\n\twhile(1)\n\t{\n\t\tcin>>i>>j;\n\t\tif (i == 0 && j == 0)\n\t\t\tbreak;\n\t\t*(p + i * 2) += 1;//i?????+1\n\t\t*(p + j * 2 + 1) += 1;//??j???+1\n\t}\n\tfor (i = 0; i <= n - 1;i++)\n\t{\n\t\tif (*(p + i * 2) == 0 && *(p + i * 2 + 1) == n - 1)//????0?,?n-1???,???? \n\t\t{\n\t\t\tcout<> n;\n\tcin >> i >> j;\n\tp1 = &person[j];\n\tp2 = &count[i];\n\twhile(i!=0||j!=0)\n\t{\n\t\t(*p1)++;\n\t\tcount[i]++;\n\t\tcin >> i >> j;\n\t\tp1 = &person[j];\n\t p2 = &count[i];\n\n\t}\n\t\t\n\tfor(k=0;k> n;\n\tdo\n\t{\n\t\tcin >> i >> j;\n\t\ta[i]--;\n\t\ta[j]++;\n\t}while(i != 0 || j != 0);\n\tfor(i = 0;i < n;i++)\n\t\tif(a[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tbreak;\n\t\t}\n\tif(i == n)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44308", "code": "main()\n{ \n int n,a,b,i,k;\n int *p=(int*)malloc(n*sizeof(int));\n int *q=(int*)malloc(n*sizeof(int));\n scanf(\"%d\",&n);\n for(i=0;i>n;\n int peo1[n],peo2[n];\n int countNum[n];\n for(i=0;i>peo1[i]>>peo2[i];\n if(peo1[i]==0&&peo2[i]==0) break;\n else countNum[peo2[i]]++;\n }\n for(i=0;i> n;\n\tint k, i, j;\n\tfor ( k = 0; k < n; k++,p++ )\n\t{\n\t\t*p = -1;\n\t}\n\n\twhile ( cin >> i )\n\t{\n\n\t\tcin >> j;\n\t\tif ( i == 0 && j == 0 )\n\t\t\tbreak;\n\t\ta[i] = j; //a?i????\n\t\tb[j]++; //b???j???\n\t}\n\tp = a;\n\tfor ( k = 0; k < n; k++, p++, q++ )\n\t{\n\t\tif ( *q == n - 1 && *p == -1 )\n\t\t{\n\t\t\tcout << k << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif ( flag == 0 )\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44312", "code": "main()\n{\n int n,*p,i,j,a,b;\n scanf(\"%d\",&n);\n p=(int *)malloc(n*sizeof(int));\n for(i=0;i>n;\n\tfor( ;; )\n\t{\n\t\tcin>>num1>>num2;\n\t\tif( num1 == 0 && num2 == 0)\n\t\t{\n\t\t\tfor( int i = 0 ; i < n ; i++)\n\t {\n\t\t if( people[i] == n - 1)\n\t\t {\n\t\t\t flag = 1;\n\t\t\t cout<>n)\n\t{\n\t\tmemset(know, 0, sizeof(know));\n\t\tmemset(beknown, 0, sizeof(beknown));\n\t\twhile(1)\n\t\t{\n\t\t\tcin>>x>>y;\n\t\t\tif(x==0 && y==0)\n\t\t\t\tbreak;\n\t\t\tknow[x]++;\n\t\t\tbeknown[y]++;\n\t\t}\n\t\tflag = false;\n\t\tfor(j=0; j>n;\n\twhile(cin>>i>>j)\n\t{\n\t\tif(i==0&&j==0)\n\t\t\tbreak;\n\t\telse\n\t\t\ta[j]++;\n\t}\n\tfor(k=0;k>5][j%n] & (1<<((i%n)&0x1f))) ? 1 : 0;\n}\n\nvoid set(int **a, int n, int i, int j)\n{\n\ta[(i%n)>>5][j%n] |= 1<<((i%n)&0x1f);\n}\n\nint ** read_data(int n) \n{\n\tint i, j;\n\tint **a = (int **)malloc(n * sizeof(int *) / 32);\n\tfor (i = 0; i < n / 32; i++) \n\t{\n\t\ta[i] = (int *)malloc(n * sizeof(int));\n\t\tmemset(a[i], 0, (n * sizeof(int)));\n\t}\n\tfor (;;)\n\t{\n\t\tscanf(\"%d%d\", &i, &j);\n\t\tif (i == 0 && j == 0) \n\t\t\tbreak;\n\t\tset(a, n, i, j);\n\t}\n\treturn a;\n}\n\nvoid free_data(int **a, int n)\n{\n\tint i;\n\tfor (i = 0; i < n / 32; i++) \n\t{\n\t\tfree(a[i]);\n\t}\n\tfree(a);\n}\n\nint main()\n{\n\tint i, j, n, next, k, wrong, candidate;\n\tscanf(\"%d\", &n);\n\tint **a = read_data(n);\n\t/*\n\tfor (i = 0; i < n; i++) \n\t{\n\t\tfor (j = 0; j < n; j++) \n\t\t{\n\t\t\tprintf(\"%d\", know(a, n, i, j));\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\t*/\n\t// begin\n\ti = 0;\n\tj = 1;\n\tnext = 2;\n\twhile (next <= n) \n\t{\n\t\tif (know(a, n, i, j))\n\t\t\ti = next;\n\t\telse\n\t\t\tj = next;\n\t\tnext++;\n\t}\n\tif (i == n)\n\t\tcandidate = j;\n\telse \n\t\tcandidate = i;\n\twrong = 0;\n\tk = 0;\n\twhile ( !wrong && k < n )\n\t{\n\t\tif (know(a, n, candidate, k) && (candidate != k))\n\t\t\twrong = 1;\n\t\tif (!know(a, n, k, candidate) && (candidate != k))\n\t\t\twrong = 1;\n\t\tk++;\n\t}\n\tif (!wrong)\n\t\tprintf(\"%d\", candidate);\n\telse\n\t\tprintf(\"NOT FOUND\");\n\t// end\n\tfree_data(a, n);\n\treturn 0;\n}\n"} +{"label": "89", "index": "44319", "code": "int main()\n{\n\tint n;\n\tint in[200000],out[200000];\n\tmemset(in,0,sizeof(int));\n\tmemset(out,0,sizeof(int));\n\tcin>>n;\n\tint to,from;\n\twhile(cin>>to>>from)\n\t{\n\t\tif(to == 0 && from == 0) break;\n\t\tin[from] ++;\n\t\tout[to] ++;\n\t}\n\tfor(int i = 0 ; i < n; i ++)\n\t{\n\t\tif(in[i] == n - 1 && out[i] == 0)\n\t\t{\n\t\t\tcout<>n;\n\tint rela1[100000],rela2[100000];\n\tint i=0,p,I;\n\twhile(1){\n\t\tcin>>rela1[i]>>rela2[i++];\n\t\tif(rela1[i-1]==0&&rela2[i-1]==0){\n\t\t\tI=i;\n\t\t\tbreak;\n\t\t}}\n\t\tint num[n];\n\t\tfor(p=0;p=n-1){\n\t\t\t\tcout<>n;\n\tint knowcount[n];\n\tint knowncount[n];\n\tmemset(knowcount,0,sizeof(knowcount));\n\tmemset(knowncount,0,sizeof(knowncount));\n\tint temp1,temp2;\n\tfor(;;){\n\t\tcin>>temp1>>temp2;\n\t\tif(temp1==0&&temp2==0)break;\n\t\tknowcount[temp1]++;\n\t\tknowncount[temp2]++;\n\t}\n\tint i,count=0;\n\tfor(i=0;i> n;\n\tint a[100000],b[100000];\n\tfor (i = 0;i < 100000;i++)\n\t{\n\t\tcin >> *(a + i) >> *(b + i);\n\t\tif (*(a + i) == 0 && *(b + i) == 0)\n\t\t{\n\t\t\tlen = i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor (i = 0;i < n;i++)\n\t{\n\t\tcount = 0;\n\t\tflag = 1;\n\t\tfor (j = 0;j < len;j++)\n\t\t{\n\t\t\tif (*(b + j) == i)\n\t\t\t\tcount++;\n\t\t}\n\t\tif (count == n - 1)\n\t\t{\n\t\t\tfor(j = 0;j < len;j++)\n\t\t\t\tif (*(a + j) == i)\n\t\t\t\t\tflag = 0;\n\t\t\tif (flag == 1)\n\t\t\t{\n\t\t\t\tcout << i << endl;\n\t\t\t\tflag2 = 1;\n\t\t\t}\n\t\t}\n\t}\n\tif (flag2 == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44323", "code": "//**********************************************************\n//* ?????3.cpp *\n//* ??????1200012906 *\n//* ???2012?12?10? *\n//* ??????????? *\n//**********************************************************\n\n\nint main()\n{\n\tint n, i, j, k[10000] = {0}, flag = 0;\n\tcin >> n;\n\twhile(cin >> i >> j && i != 0 || j != 0)\n\t{\n\t\tk[j]++;\n\t}\n\tfor(i = 0; i < n; i++)\n\t\tif (k[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44324", "code": "\nint main(){\n\tint i=1,j,k,g,n,c,d,q=0;\n\tint a[100000],b[100000];\n\tcin>>n;\n\twhile(1){\n\t\tcin>>a[i]>>b[i];\n\t\tif(a[i]==0&&b[i]==0)break;\n\t\ti++;\n\t}\n\tfor(k=0;k>n;\n\twhile(cin>>i>>j&&(i!=0||j!=0))\n\t{\n\t\ta[i]=0;\n\t\ta[j]++;\n\t}\n\tfor(i=0;i<=n-1;++i)\n\t\tif(a[i]==n-1)\n\t\t\tcout<>n1;\n\tconst int n=n1;\n\tint knowother[n],beknown[n],input1=1,input2=1;\n\tmemset(knowother,0,sizeof(knowother));\n\tmemset(beknown,0,sizeof(beknown));\n\twhile(input1||input2){\n\t\tcin>>input1>>input2;\n\t\tif(input1!=input2) {\n\t\t\tknowother[input1]++;\n\t\t\tbeknown[input2]++;\n\t\t}\n\t}\n\tint celebrity=0,flag=0;\n\tfor(int i=0;i>n ;\n\twhile( cin>>i>>j )\n\t{\n\t\tif( i == 0 && j == 0 )\n\t\t\tbreak;\n\n\t\tin[ i ] = 1 ;\n\t\tout[ j ] = 1 ;\n\t}\n\n\tfor( h = 0 ; h < n ; h++ )\n\t{\n\t\tif( in [ h ] == 1 )\n\t\t{\n\t\t\tout[ h ] = 0 ;\n\t\t}\n\t}\n\n\tint count = 0 ;\n\n\tfor( h = 0 ; h < n ; h++ )\n\t{\n\t\tif( out[ h ] == 1 )\n\t\t{\n\t\t\tcout<> n;\n\twhile (1)\n\t{\n\t\tcin >> i >> j;\n\t\tif (i == 0 && j == 0) break;\n\t\tp[i].flag = 1;\n\t\tp[j].count++;\n\t}\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tif (p[i].flag == 0 && p[i].count == n - 1) g = 1, cout << i << endl;\n\t}\n\tif (g == 0) cout << \"NOT FOUND\" << endl;\n\treturn 0;\n} \n"} +{"label": "89", "index": "44331", "code": "\nint main()\n{\n\tint c[10000], n, a, b, answer = 20000;\n\tmemset(c, 0, 100);\n\tcin >> n;\n\twhile (cin >> a >> b && (a + b!=0))\n\t{\n\t\tc[a] = 1;\n\t}\n\tfor (int i = 0; i < n; i ++)\n\t{\n\t\tif(c[i] == 0)\n\t\t{\n\t\t\tanswer = i;\n\t\t}\n\t}\n\tif (answer != 20000)\n\t{\n\t\tcout << answer << endl;\n\t}\n\telse\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44332", "code": "int main()\n{\n int n,b[65535],c[65535],i,k;\n scanf(\"%d\",&n);\n int a[n];\n for(i=0;i> number;\n\n for(i=0;i> a >> b;\n if(a==0 && b==0) break;\n person[a]=-1;\n if(person[b]!=-1)person[b]++;\n }\n\n for(i=0;i>N;\n\tmemset(inDegree,0,sizeof(inDegree));\n\tmemset(outDegree,0,sizeof(outDegree));\n\tint first,second;\n\twhile(cin>>first>>second)\n\t{\n\t\tif(first==0&&second==0)\n\t\t\tbreak;\n\t\toutDegree[first]++;\n\t\tinDegree[second]++;\n\t}\n\tint i;\n\tfor(i=0;i>n;\n\tint fame[n];\n\tfor(i=0;i>i>>j){\n\t\tif(i==0&&j==0)\n\t\t\tbreak;\n\t\tfame[j]=fame[j]+1;\n\t}\n\tfor(j=0;j=max){\n\t\t\tmax=fame[j];\n\t\t\tfamous=j;\n\t\t}\n\t}\n\tif(max>=n-1)\n\t\tcout<> n;\n\tdo\n\t{\n\t\tcin >> a[0] >> a[1];\n\t\tif (a[0] ==0 && a[1] == 0)\n\t\t\tbreak;//??0 0 ?????\n\t\tcount1[a[0]]++;\n\t\tcount2[a[1]]++;\n\t}while(1);\n\tfor ( i = 0; i < n; i++)\n\t{\n\t\tif ( count1[i] == 0 && count2[i] == (n - 1))\n\t\t{\n\t\t\tcout << i << endl;//???????????????????????\n\t\t\tnum++;//???????1\n\t\t}\n\t}\n\tif ( num == 0 )\n\t\tcout << \"NOT FOUND\" << endl;//???????????NOT FOUND\n\treturn 0;\n}"} +{"label": "89", "index": "44342", "code": "int main()\n{\n\tint n, i, j, a[100000]={0}, flag = 0;\n\tcin >> n;\n\tcin >> i >> j;\n\twhile(i+j)\n\t{\t\n\t\ta[j]++;\n\t\tcin >> i >> j;\n\t}\n\tfor(i=0;i>n;\n\twhile(1)\n\t{\n\t\tcin>>x>>y;\n\t\tif(x==0&&y==0)\n\t\t\tbreak;\n\t\tperson[x].a++;\n\t\tperson[y].b++;\n\t}\n\tfor(i;i>n;\n int a[50000],b[50000],sa[n],sb[n];\n for(int i=0;i>a[s]>>b[s];\n if(!a[s]&&!b[s]) break;\n }\n for(int i=0;i>n;\n\tcin>>x>>y;\n\twhile(!(x==0 && y==0)){\n\t\twhoknow[y]++;\n\t\tknowwho[x]++;\n\t\tcin>>x>>y;\n\t}\n\tfor(i=0;i<=n;i++)\n\t\tif(knowwho[i]==0 && whoknow[i]==n-1){\n\t\t\tcout<> n;\n\ta = (int *)malloc(n*n*sizeof(int));\n\tindex = (int *)malloc(n*sizeof(int));\n\tfor (i=0;i> i >> j;\n\n\t\tif (i==0&&j==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t*(a+n*j+i) = 1;\n\t\t}\n\t}\n\n\tfor (i=n-1;i>=1;i--)\n\t{\n\t\tif (1 == *(a+n*index[i]+index[i-1]))\n\t\t{\n\t\t\tindex[i-1] = index[i];\n\t\t}\n\t}\n\n\n\tresult = -1;\n\tfor (i=0;i> n;\n\tint s = 0;\n\tcin >> a[s] >> b[s];\n\twhile (a[s] != 0 || b[s] != 0)\n\t{\n sumA[a[s]]++;\n sumB[b[s]]++;\n\t\ts++;\n\t\tcin >> a[s] >> b[s];\n\t}\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tif (sumA[i] == 0 && sumB[i] != 0)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (!flag)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "89", "index": "44351", "code": "int main(){\n int n,m,i,j,k,know[10000],known[10000],x,y,z;\n scanf(\"%d\",&n);\n m=0;\n z=0;\n for(i=0;i<10000;i++){\n scanf(\"%d\",&know[i]);\n scanf(\"%d\",&known[i]);\n m=i;\n if(know[i]==0&&known[i]==0)\n break;\n }\n for(i=0;i> n;\n\tcin >> a[0] >> b[0];\n\twhile ((a[i] != 0) || (b[i] != 0))\n\t{\n\t\ti++;\n\t\tcin >> a[i] >> b[i];\n\t}\n\tfor (p = &b[0], q = &b[i]; ; p++)\n\t{\n\t\tif (p == q)\n\t\t\tbreak;\n\t\tc[*p]++;\n\t}\n\tfor (p = &c[0]; ; p++, j++)\n\t{\n\t\tif (*p == n - 1)\n\t\t{\n\t\t\tflag1 = 1;\n\t\t\tbreak;\n\t\t}\n\t\tif (j == n)\n\t\t\tbreak;\n\t}\n\tif (flag1)\n\t{\n\t\tfor (p = &a[0], q = &a[i]; p != q; p++)\n\t\t{\n\t\t\tif (*p == j)\n\t\t\t{\n\t\t\t\tflag2 = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif ((flag2 == 0)&&(flag1 == 1))\n\t\tcout << j;\n\telse \n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}\n\n\t\n\n"} +{"label": "89", "index": "44358", "code": "main()\n{\nint n,a[100000][2],i,m,t=0,j,k=0,c[1000],d[100000];\nscanf(\"%d\",&n);\nfor(i=0;;i++)\n{\n scanf(\"%d%d\",&a[i][0],&a[i][1]);\n if(a[i][0]==0&&a[i][1]==0)\n break;}\n m=i-1;\n for(i=0;i> n;\n\tint i, j, k = 0;\t\t\n\tint a[1000000], b[1000000] = {0};\t\t\t\t\t//??????,????????????????????\n\tcin >> i >> j;\t\t\t\t\t\t\t\t\t\t//?????i?j???i??j\n\tint *p = a;\t\t\t\t\t\t\t\t\t\t\t//??????????????a????\n\t*p = j;\t\t\t\t\t\t\t\t\t\t\t //?a[1]??j\n\tb[0] = 1;\t\t\t\t\t\t\t\t\t\t\t//????\n\twhile (1)\t\t\t\t\t\t\t\t\t\t\t//????\n\t{\n\t\tint flag1 = 0;\n\t\tcin >> i >> j;\n\t\tif (i == 0 && j == 0)\t\t\t\t\t //??????0??????\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tfor (m = 0; m <= k; m++)\n\t\t\t{\n\t\t\t\tif (*(p + m) == j)\t\t\t\t\t //?????j??\n\t\t\t\t{\n\t\t\t\t\tb[m] ++;\t\t\t\t\t\t //??????1\n\t\t\t\t\tflag1 = 1;\t\t\t\t\t\t //???1\n\t\t\t\t\tbreak;\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif (flag1 == 0)\t\t\t\t\t\t\t//??????????????????\n\t\t\t{\n\t\t\t\t*(p + k + 1) = j;\t\t\t\t\t//?????????????\n\t\t\t\tb[++k]++;\t\t\t\t\t\t\t//??????1\n\t\t\t}\n\t\t}\n\t}\n\tint flag2 = 0;\n\tfor (m = 0; m <= k; m++)\n\t{\n\t\tif (b[m] == n - 1)\t\t\t\t\t\t\t//??????n-1?????????????\n\t\t{\n\t\t\tcout << *(p + m);\t\t\t\t\t\t//??????\n\t\t\tflag2 = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (flag2 == 0)\t\t\t\t\t\t\t\t\t//????????\n\t\tcout << \"NOT FOUND\" << endl;\t\t \n\treturn 0;\n}\n\n\n\t\t\t"} +{"label": "89", "index": "44361", "code": "main()\n{\n int m[10000]={0};\n int n[10000]={0};\n int x,y;\n int s;\n scanf(\"%d\",&s);\n for(;;)\n {\n scanf(\"%d %d\",&x,&y);\n if(x==0&&y==0)\n break;\n m[x]++;\n n[y]++;\n }\n for(x=0;x> n;\n while(1)\n {\n cin >> a >> b;\n if ( a == 0 && b == 0 )\n break;\n people[a] = -1;\n people[b]++;\n }\n for ( i = 0; i < n; i++ )\n if ( people[i] == ( n - 1 ) )\n {\n cout << i << endl;\n flag = 1;\n }\n if ( flag == 0 )\n cout << \"NOT FOUND\" << endl;\n return 0;\n}"} +{"label": "89", "index": "44363", "code": "//**************************\n//??????? \n//??????1200012914 \n//???2012.12.11\n//**************************\n\n\nint main()\n{\n struct count\n {\n int knowshim; //???????? \n int heknows; //???????? \n } person[10000];\n int num; //???\n cin >> num; //?????\n int i;\n for (i = 0; i < num; i++)\n {\n person[i].knowshim = 0;\n person[i].heknows = 0;\n } //?person???????????0 \n int who, whom; //who????whom??????\n int flag = 0;\n while (1)\n {\n cin >> who >> whom;\n if (who + whom == 0) break; //???0 0?????\n person[who].heknows++;\n person[whom].knowshim++;\n }\n for (i = 0; i < num; i++)\n {\n //??????????0????????num-1?????? \n if (person[i].heknows == 0 && person[i].knowshim == num - 1)\n {\n flag = 1;\n cout << i << endl;\n }\n }\n if (!flag) cout << \"NOT FOUND\" << endl; //???????not found\n\n return 0;\n} \n"} +{"label": "89", "index": "44364", "code": "int main()\n{\n\tint man[2][1000000]={0},a,b,n,flag=0,*p,*q;\n\tp=man[0];\n\tq=man[1];\n\tcin>>n;\n\twhile(cin>>a)\n\t{\n\t\tcin>>b;\n\t\tif(a==0&&b==0)\n\t\t\tbreak;\n\t\tman[0][a]++;\n\t\tman[1][b]++;\n\t}\n\tfor (int i=0;i>n;\n\twhile((cin>>x>>y)&&(x!=0||y!=0))\n\t{\n\t\tk[x][y]=1;\n\t}\n\tpre=0;\n\tfor(i=1;i> n;\n\twhile (1)\n\t{\n\t\tcin >> i >> j;\n\t\tif (i == 0 && j == 0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tknow[i]++;\n\t\tbeKnown[j]++;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (*p == 0 && *q == n - 1)\n\t\t{\n\t\t\tflag = 1;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp++;\n\t\t\tq++;\n\t\t}\n\t}\n\tif (flag == 0)\n\t{\n\t\tcout << \"NOT FOUND\" << endl;\n\t}\n\telse\n\t{\n\t\tcout << i << endl;\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44370", "code": "main ()\n{\n int n,i,c,f,g=0;\n scanf (\"%d\",&n);\n int a[n];\n for (i=0;i> n;\n\tdo\n\t{\n\t\tcin >> i >> j;\n\t\ta[i]--;\n\t\ta[j]++;\n\t}while(i != 0 || j != 0);\n\tfor(i = 0;i < n;i++)\n\t\tif(a[i] == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tbreak;\n\t\t}\n\treturn 0;\n}\n"} +{"label": "89", "index": "44373", "code": "int a[300000];\nint knowedBy[300000];\nint flag[300000];\nint main()\n{\n\tint n;\n\tcin>>n;\n\tmemset(knowedBy, 0, sizeof(knowedBy));\n\tmemset(flag, 0, sizeof(flag));\n\tint i, j, k;\n\twhile(cin>>j>>k)\n\t{\n\t\tif((j == 0)&&(k == 0))\n\t\t\tbreak;\n\t\tflag[j] = -1;\n\t\tknowedBy[k]++;\n\t}\n\tint t = 0;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif((knowedBy[i] == n-1)&&(flag[i] == 0))\n\t\t{\n\t\t\tcout<>n;\n int i,j;\n for(i = 0; i < n; i++)\n num[i] = n - 1;\n while(1)\n {\n cin>>i>>j;\n if(i == 0 && j == 0)\n break;\n num[i] = -1;\n num[j] --;\n }\n for(i = 0; i < n; i++)\n if(num[i] == 0)\n cout<>n;\n\tfor(i=0;i>a1>>a2;\n\t\tif((a1==0)&&(a2==0))\n\t\t\tbreak;\n\t\tp[a1].a++;\n\t\tp[a2].b++;\n\t}\n g=0;\n\tfor(i=0;i>n;\n int a[100000][2];\n for(i=0;;i++){\n \tfor(j=0;j<2;j++)\n \t\tcin>>a[i][j];\n if(a[i][0]+a[i][1]==0)\n break;} //??????\n int b[100000];\n for(p=0;p> n;\n\twhile (cin >> i)\n\t{\n\t\tcin >> j;\n\t\tif (i == 0 && j == 0)\n\t\t\tbreak;\n\t\telse \n\t\t\t(*(p + 4 * j))++;\n\t}\n\tfor (; p < (a + 4 * n); p = p + 4)\n\t{\n\t\tif (*p >= n - 1)\n\t\t{\n\t\t\tcout << (p - a) / 4 << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (!flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n} //?????\n"} +{"label": "89", "index": "44382", "code": "int main()\n{\n\tint n, a[100000][2], i = 0, j = 0, k, b[100000] = {0}, count[100000] = {0}, t = 0;\n\tcin >> n;\n\tdo\n\t{\n\t\tcin >> a[i][0] >> a[i][1];\n\t\ti++;\n\t}\n\twhile(a[i - 1][0] != 0 || a[i - 1][1] != 0); //????????????0\n\tk = i - 1; //?????????\n\tfor(i = 0; i < k; i++)\n\t\tb[a[i][0]]++; //????????????????\n\twhile(j < n)\n\t{\n\t\tif(b[j] == 0) //????????????\n\t\t{\n\t\t\tfor(i = 0; i < k; i++)\n\t\t\t\tif(a[i][1] == j)\n\t\t\t\t\tcount[j]++; //??????????????????\n\t\t\tif(count[j] == n - 1)\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\tcout << j << endl; //????????????????????\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t\tj++;\n\t}\n\tif(t == 0)\n\t\tcout << \"NOT FOUND\" << endl; //?????????????NOT FOUND\n\treturn 0;\n}\n"} +{"label": "89", "index": "44383", "code": "int a[10000];\nint b[10000];\nint main()\n{\n\tint n,p,q,i;\n\tcin>>n;\n\tfor(i=0;i>p>>q;\n\twhile(p!=0||q!=0)\n\t{\t\n\t\ta[p]++;b[q]++;\n\t\tcin>>p>>q;\n\t}\n\tfor(i=0;i> n;\n\tcin >> i >> j;\n\t//?? \n\twhile ((i != 0) || (j != 0))\n\t{\n\t\ta[i] = -1; //??????????????? \n\t\ta[j]++; //?????????+1 \n\t\tcin >> i >> j;\n\t}\n\tfor (i = 0; i < n; i++)\n\t\tif (a[i] == n - 1) //??????N - 1??????? \n\t\t{\n\t\t\tcout << i << endl;\n\t\t\treturn 0;\n\t\t}\n\tcout << \"NOT FOUND\" << endl;\n\treturn 0; \n}\n"} +{"label": "89", "index": "44386", "code": "int main()\n{\n\tint n;\n\tint a=1000;\n\tint c[10000];\n\tint i;\n\tint k=0;\n\tscanf(\"%d\",&n);\n\tfor(int w=0;w<10000;w++)\n\t\tc[w]=0;\n\tint b=n;\n\twhile(a!=0||b!=0)\n\t{\n\t\tc[b]++;\n\t\tscanf(\"%d%d\",&a,&b);\n\t}\n\tfor(int l=0;l>n;\n\tcin>>a[0]>>b[0];\n\tfor(i = 0; a[i] != 0 || b[i] != 0; i++)\n\t\tcin>>a[i + 1]>>b[i + 1];\n\tfor(j = 0; j < i; j++)\n\t{\n\t\tcount = 1;\n\t\tfor(k = j + 1; k < i; k++)\n\t\t{\n\t\t\tif(b[k] == -1)\n\t\t\t\tcontinue;\n\t\t\tif(b[k] == b[j])\n\t\t\t{\n\t\t\t\tb[k] = -1;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == n - 1)\n\t\t{\n\t\t\tflag = 1;\n\t\t\tfor(k = 0; k < i; k++)\n\t\t\t{\n\t\t\t\tif(a[k] == b[j])\n\t\t\t\t{\n\t\t\t\t\tflag = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag)\n\t\t\t{\n\t\t\t\ts++;\n\t\t\t cout<> n ;\n\twhile ( 1 )\n\t{\n\t\tcin >> person1 >> person2 ;\n\t\tif ( ( person1 == 0 ) && ( person2 == 0 ) )\n\t\t\tbreak;\t\t\t\t//??\u00930 0\u0094?????\n\t\t*( p + person1 * 2 ) = *( p + person1 * 2 ) + 1 ;\t\t//???????\n\t\t*( p + person2 * 2 + 1) = *( p + person2 * 2 + 1 ) + 1 ;//??ta?????\n\t}\n\tfor ( i = 0 ; i <= n - 1 ; i++ )\n\t\tif ( ( *( p + i * 2 ) == 0 ) && ( *( p + i * 2 + 1 ) == n - 1 ) ) \n\t\t{\n\t\t\tcout << i ;\t\t\t//?????????????n-1????????????\n\t\t\tflag = 1 ;\t\t\t//???????\n\t\t}\n\tif ( flag == 0 )\n\t\tcout << \"NOT FOUND\" ;\t//?????\"NOT FOUND\"\n\treturn 0;\n}"} +{"label": "89", "index": "44393", "code": "int main()\n{\n\tint a[30000];\n\tint i,n,j,sum,biao;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=29999;i++)\n\t{\n\t\tif(i>n;\n\tint a = 1, b = 1;\n\tmemset(flag, 0, sizeof(flag));\n\tmemset(num, 0, sizeof(num));\n\tcin>>a>>b;\n\twhile((a != 0)||(b != 0))\n\t{\n\t\tflag[a] = 1;\n\t\tnum[b]++;\n\t\tcin>>a>>b;\n\t}\n\tint i;\n\tint j = 0;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(flag[i] == 0 && num[i] == n - 1)\n\t\t{\n\t\t\tcout<> n;\n\tcin >> i >> j;\n\tmemset(kk,0,sizeof(k)*10010);\n\twhile(i != 0 || j != 0)\n\t{\n\t\tkk[i].know++;\n\t\tkk[j].known++;\n\t\tcin >> i >> j;\n\t}\n\tfor(;i < n; i++)\n\t\tif(kk[i].know == 0 && kk[i].known != 0)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\tif(flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44399", "code": "int main(){\nint n,num,a,ml=0;\nint sz[100000][2];\nscanf(\"%d\",&n);\nfor (int i=0;;i++){\n\tfor (int j=0;j<2;j++){\n\t\tscanf(\"%d\",&sz[i][j]);\n\t}\n\tif (sz[i][0]==0&&sz[i][1]==0){\n\t\tbreak;\n\t}\n}\nfor (int k=0;k>n;\n\tcin>>p>>q;\n\tmemset(a,0,sizeof(a));\n\tmemset(b,0,sizeof(b));\n\twhile(p!=0 || q!=0){\n\t\ta[p]++;\n\t\tb[q]++;\n\t\tcin>>p>>q;\n\t}\n\tint i;\n\tfor(i=0;i> n;\n\twhile (1)\n\t{\n\t\tcin >> num1[i] >> num2[i];\n\t\texcept[num1[i]]++; //???????????\n\t\tif ((num1[i] == 0) && (num2[i] == 0))\n\t\t\tbreak;\n\t\ti++;\n\t}\n\n\tfor (j = 0; j < n; j++)\n\t{\n\t\tif (except[j] != 0) //???????????\n\t\t\tcontinue;\n\t\tsum = 0;\n\t\tmemset(flag,0,sizeof(flag));\n\t\tfor (p = 0; p < i; p++)\n\t\t{\n\t\t\tif (num2[p] == j) //?????????\n\t\t\t\tif (flag[num1[p]] == 0)\n\t\t\t\t\tflag[num1[p]]++;\n\t\t}\n\t\tfor (p = 0; p < n; p++) //?????????\n\t\t\tsum += flag[p];\n\t\tif (sum == n - 1) //?????????n - 1???\n\t\t{\n\t\t\tcout << j;\n\t\t\tf = 1;\n\t\t}\n\t}\n\tif (f == 0)\n\t\tcout << \"NOT FOUND\";\n\n\treturn 0;\n}"} +{"label": "89", "index": "44405", "code": "int main()\n{\n\tint n,a,b,m=0,s=0,t,i=0,c[10000],d[10000];\n\tscanf(\"%d\",&n);\n\tfor(a=0;a> n;\nwhile(cin >> tempa >> tempb)\n{\nif(tempa == 0 && tempb == 0)\nbreak;\nb[tempb] ++;\na[tempa] ++;\n}\nfor(i = 0;i < n;i ++)\n{\nif( b[i] == n - 1 && a[i] == 0)\ncout << i << endl;\nflag = 1;\n}\nif(flag == 0)\ncout << \"NOT FOUND\" << endl;\nreturn 0;\n}\n"} +{"label": "89", "index": "44412", "code": "struct person\n{\n\tint kn;\n\tint bkn;\n};\nmain()\n{\n\tint n,a,b,i;\n\tstruct person *p;\n\tscanf(\"%d\",&n);\n\tp=(struct person *)malloc(n*sizeof(struct person));\n\tfor (i=0;i>n;\n\tfor(i=0;i>i>>j)\n\t{\n\t\tif(i==0&&j==0) break;\n\t\tb[i]=1;\n\t\ta[j]++;\n\t}\n\tfor(i=0;in,&p1->m);\n head=NULL;\n while(p1->n!=0||p1->m!=0)\n {\n i++;\n if(i==1){head=p1;}\n else \n p2->next=p1;\n p2=p1;\n p1=(struct ming*)malloc(LEN);\n scanf(\"%d%d\",&p1->n,&p1->m);\n //printf(\"%d %d\\n\",p1->n,p1->m);\n }\n p2->next=NULL;\n return(head);\n}\nint found(int l,struct ming*head)\n{\n int i=0;\n struct ming *p1;\n p1=head;\n while(p1!=NULL)\n {\n if(p1->m==l)\n {i++;\n //printf(\"%d\\n\",p1->n);\n }\n p1=p1->next;\n //printf(\"%d %d\\n\",p1->n,p1->m);\n }\n return(i);\n}\n \nint main()\n{\n int a[100][100];\n int n,o,k,p;\n scanf(\"%d\",&n);\n struct ming *head;\n head=creat();\n for(o=0,k=0;o>n;\n\ti=0;\n\tdo{\n\t\tcin>>a[i]>>b[i];\n\t\ti++;\n\t}\n\twhile(a[i-1]!=0||b[i-1]!=0);\n\tnumber=i-1;\n\tfor(k=0;k> n;\n\tcin >> i >> j;\n\twhile (i != 0 || j!=0)\n\t{\n\t\ta[i][j]=1;\n\t\tcin >> i >>j;\n\t}\n\tfor (j=0;j> n;\n\tint i = 0;\n\tint j;\n\tint count = 0;\n\tcin >> x >> y;\n\tdo\n\t{\n\t\ta[i] = x;\n\t\tnum[y] ++;\n\t\ti ++;\n\t\tcin >> x >> y;\n\t}while( !(x == 0 && y == 0 ) );\n\tj = i;\n\tfor( i = 0; i < n; i ++)\n\t{\n\t\tif( num[i] == n - 1 )\n\t\t{\n\t\t\tfor( k = 0 ; k < j; k ++)\n\t\t\t{\n\t\t\t\tif( a[k] == i)\n\t\t\t\t\tbreak;\n\t\t\t\tif( k == j - 1)\n\t\t\t\t{\n\t\t\t\t\tcout << i << endl;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif( count == 0 )\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44421", "code": "main()\n{\n int n,bei[10000]={0},renshi[10000]={0},i,x,y,k=0;\n scanf(\"%d\",&n);\n for(;;)\n {\n scanf(\"%d%d\",&x,&y);\n if(x==0&&y==0){break;}\n bei[y]++;\n renshi[x]++;\n }\n for(i=0;i=(n-1)&&renshi[i]==0)\n {printf(\"%d\",i);k++;}\n }\n if(k==0 )\n {printf(\"NOT FOUND\");}\n}"} +{"label": "89", "index": "44422", "code": "int a[maxn];\nint main()\n{\n\tint n,i,x1,x2;\n\tmemset(a,0,sizeof(a));\n\tscanf(\"%d\",&n);\n\tfor (i=0;;i++) {\n\t\tscanf(\"%d %d\",&x1,&x2);\n\t\tif (x1+x2==0)\n\t\t\tbreak;\n\t\tif (a[x2]!=-1)\n\t\t\ta[x2]++;\n\t\ta[x1] = -1;\n\t}\n\tfor (i=0;i> n;\n\twhile(cin >> i >> j)\n\t{\n\t\tif (i == 0 && j == 0)\n\t\t\tbreak;\n\t\tmen[i].know++;\n\t\tmen[j].known++;\n\t if (men[j].known == n - 1 && men[j].know != n)\n\t\t{\n\t\t\tcout << j;\n\t\t\tflag = 1;\n\t\t}\n\t\tif (men[i].known == n - 1 && men[i].know != n)\n\t\t{\n\t\t\tcout << i;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}"} +{"label": "89", "index": "44427", "code": "int main()\n{\n\tint n;\n\tcin >> n;\n\tint take[10000];\n\tint check[10000];\n\tfor (int p = 0; p < n; p++)\n\t{\n\t\ttake[p] = 0;\n\t\tcheck[p] = 0;\n\t}\n\tint i, j;\n\twhile(1)\n\t{\n\t\tcin >> i >> j;\n\t\tif (i == 0 && j == 0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\ttake[i] = 1;\n\t\t\tcheck[j]++;\n\t\t}\n\t}\n\tint flag = 0;\n\tfor (int k = 0; k < n; k++)\n\t{\n\t\tif (take[k] == 0 && check[k] == n - 1)\n\t\t{\n\t\t\tcout << k << endl;\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44428", "code": "int a[10010][10010];\nint main()\n{\n\tint n,i,j,flag=0;\n\tcin>>n;\n\tcin>>i>>j;\n\twhile(i>0||j>0){\t\n\t\ta[i][j]=1;\n\t\tcin>>i>>j;\n\t}\n\tfor(int i=0;i>n;\n\tint a[100000][2];\n\tmemset(a,0,sizeof(a));\n\tint b[n];\n\tmemset(b,0,sizeof(b));\n\tfor(i=0;;i++)\n\t{\n\t\tcin>>a[i][0]>>a[i][1];\n\t\tif(a[i][0]==0&&a[i][1]==0)\n\t\tbreak;\n\t}\n\tint c=i-1;\n\tfor(i-1;i>=0;i--)\n\t{\n\t\tb[a[i][1]]++;\n\t}\n\tint j;int flag=1,fg=1;\n\tfor(i=0;i<=n;i++)\n\t{\n\t\tif(b[i]==n-1)\n\t\t{\n\t\t\tfor(j=0;j> n;\n\tmax = 0;\n\tmaxone = -1;\n\twhile (cin >> a >> b)\n\t{\n\t\tif (a == 0 && b == 0)\n\t\t\tbreak;\n\t\tperson[b] ++;\n\t\tif (person[b] > max)\n\t\t{\n\t\t\tmax = person[b];\n\t\t\tmaxone = b;\n\t\t}\n\t}\n\tif (max == n - 1)\n\t\tcout << maxone << endl;\n\telse\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44433", "code": "main()\n{\n int n;\n scanf(\"%d\",&n);\n int *a=(int *)malloc(n*sizeof(int));\n \n int k,i,j;\n for(k=0;k1)\n{printf(\"%d\\n\",j);k=1;}\nif(k==0)\nprintf(\"NOT FOUND\");}"} +{"label": "89", "index": "44435", "code": "int main()\n{\n int n,i;\n cin>>n;\n int famous[n+1];\n for(i=0;i>a>>b;\n if(a==0&&b==0)\n break;\n \n famous[b]++;\n \n }\n int m=0;\n for(i=1;i>n;\n for(i=0;i>judge1>>judge2;\n if(judge1==0&&judge2==0) {cout<<\"NOT FOUND\"; return 0;}\n while(judge1!=0||judge2!=0)\n {\n if(judge1==judge2)\n {\n cin>>judge1>>judge2;\n continue;\n }\n else\n {\n a[judge1]=0;\n cin>>judge1>>judge2;\n }\n }\n int num=0,sum=0;\n\n for(i=0;i1) cout<<\"NOT FOUND\";\n else cout<> n; \n \tint a[100000][2]; // ??a[i][0]??a[i][1]\n\tint x[n]; // ??x[i]?? i ???????\n\tint y[n];\t\t\t\t\t\t\t\t// ??x[i]???? i ?????\n\tmemset(x, 0, sizeof(x)); \n\tmemset(y, 0, sizeof(y)); // x, y ?? \n\t \n\tfor (i = 0; i < 100000; i++)\n\t{\n\t\tfor (j = 0; j < 2; j++)\n\t\t\tcin >> a[i][j];\n\t\tif ((a[i][0] == 0) && (a[i][1] == 0))\n\t\t\tbreak;\n\t\tk++;\n\t} // ??? 0 0 ???? \n\t\n\tfor (i = 0; i < k; i++)\n\t{\n\t\tx[a[i][0]]++; \n\t\ty[a[i][1]]++; \n\t}\n\t\n\tint *p = NULL, *q = NULL; \t// p, q ????? x ?y??? \n\tq = y;\n\ti = 0; \t\t\t\t\t\t// i ????? \n\tfor (p = x; ; p++)\n\t{\n\t\tif (i == n)\n\t\t{\n\t\t\tcout << \"NOT FOUND\";\t // ???????\u0093NOT FOUND\u0093???? \n\t\t\tbreak;\n\t\t}\n\t\t \n\t\tif ((*p == 0) && (*q == n - 1)) // ?????? 0 ??? n - 1 ????\n\t\t{\n\t\t\tcout << i; // ????????? \n\t\t\tbreak; \n\t\t} \n\t\ti++; q++;\t\n\t}\t // ??????? \n\treturn 0;\n}"} +{"label": "89", "index": "44446", "code": "main()\n{\n int a[10000],b[10000],t,m,n,i;\n scanf(\"%d\",&t);\n for(i=0;i>n;\n //if (n!=32&&n!=64&&n!=128&&n!=256&&n!=512)cout<>i>>j;\n if((i==0)&(j==0)){cout<<\"NOT FOUND\";return 0;}\n while (!((i==0)&&(j==0)))\n {\n\t\tp[i]=-100000;\n\t\tp[j]+=i;\n\t\tcin>>i>>j;\n\t}\n\tfor(i=0;i>n;\n while(1)\n {\n cin>>Ren1>>Ren2; \n if(!(Ren1==0 && Ren2==0))\n {\n value[Ren1]--; \n value[Ren2]++; \n }\n else\n break; \n }\n \n for(i=0;i<=n-1;i++)\n if(value[i]==n-1)\n { cout<> n;\n\tfor(i = 0; i < n; i++)\n\t\ta[i] = 1;\n\twhile(cin >> i >> j)\n\t\tif(i != j)\n\t\t\t*(p + i) = 0;\n\tfor(i = 0; i < n; i++)\n\t\tif(a[i])\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tbreak;\n\t\t}\n\tif(i == n)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44450", "code": "int main()\n{\n int k, sz[number][2], i, j, mc=0, n, a, b;\n\tscanf(\"%d\", &n);\n\tfor(i=0;1;i++)\n\t{\n\t\tscanf(\"%d%d\", &a, &b);\n\t\tif(a==0&&b==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tsz[a][0]++;\n\t\t\tsz[b][1]++;\n\t\t}\n\t}\n for(i=0;i=n-1)\n {\n printf(\"%d\",j);\n t=1;\n }\n }\n if(t==0)\n printf(\"NOT FOUND\");\n}\n"} +{"label": "89", "index": "44452", "code": "int main()\n{\n int c,d,e,f,i,n;\n c=0;\n int a[100000],b[100000],p[100000]={0},q[100000]={0};\n scanf(\"%d\",&n);\n for(i=0;i<=(n*(n-1)/2);i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0) \n {d=(i-1);}\n if(a[i]==0&&b[i]==0) break;\n }\n for(i=0;i<=(n-1);i++)\n {\n for(f=0;f<=d;f++)\n {\n if(a[f]==i)\n p[i]=1;\n }\n }\n for(i=0;i<=(n-1);i++)\n {\n for(f=0;f<=d;f++)\n {\n if(b[f]==i)\n q[i]++;\n }\n }\n for(i=0;i<=(n-1);i++)\n {\n if(p[i]==0&&q[i]==(n-1))\n {printf(\"%d\",i);\n c=1;}\n }\n if(c==0)\n {printf(\"NOT FOUND\");}\n getchar();\n getchar();\n getchar();\n}\n"} +{"label": "89", "index": "44453", "code": "int n=0;\nint k1=0,k2=0,flag=0;\nint sum1[100000];\nint sum2[100000];\nint main()\n{\n //freopen(\"zozo.in\",\"r\",stdin);\n //freopen(\"zozo.out\",\"w\",stdout);\n scanf(\"%d\",&n);\n //if (n==0) {printf(\"NOT FOUND\\n\"); return 0; }\n scanf(\"%d%d\",&k1,&k2);\n while (!(k1==0 && k2==0))\n {\n sum1[k1+1]++; sum2[k2+1]++;\n scanf(\"%d%d\",&k1,&k2);\n }\n flag=0;\n for (int i=1; i<=n; i++)\n if (sum1[i]==0)\n {\n if (sum2[i]==n-1)\n {\n flag=1;\n printf(\"%d\\n\",i-1);\n break;\n }\n }\n if (flag==0) printf(\"NOT FOUND\\n\");\n return 0;\n}\n"} +{"label": "89", "index": "44454", "code": "int main()\n{\n \tint n,i,l,k,flag,a[100000],b[100000],c[100000];\n\t\tscanf(\"%d\",&n);\n\t\tfor(i=0;;i++)\n\t\t{\n\t\t\tscanf(\"%d%d\",&a[i],&b[i]);\n\t\t\tif(a[i]==0&&b[i]==0)\n\t\t\t{\n\t\t\t l=i;\n\t\t\t break;\n }\n\t\t}\n\t\tfor(i=0;i> n;\n\twhile (cin >> x >> y)\n\t{\n\t\tif (x == y)\n\t\t\tbreak;\n\t\ta[x] = 1; // x?????\n\t\tb[y]++; // y???????1\n\t}\n\tint i;\n\tfor (i = 0; i < n; i++)\n\t\tif (a[i] == 0 && b[i] == n - 1) // ?i????????n-1???\n\t\t{\n\t\t\tcout << i;\n\t\t\tbreak;\n\t\t}\n\tif (i == n)\n\t\tcout << \"NOT FOUND\";\n\treturn 0;\n}"} +{"label": "89", "index": "44458", "code": "/*???1000012904_5.cpp\n ????????????\n ?????\n ???2010?12?10?\n */\nint main()\n{\n\t//???????????????count,?????????beasked,?????????answer?????i,??n,????sum\n\tint count[100000], beasked[100000], answer[100000], i, n,sum = 0;\n\tmemset(count, 0, sizeof(count));\n\tcin >> n;\n\tfor(i = 0; i < n * (n - 1); i++)\n\t{\n\t\tcin >> beasked[i] >> answer[i];\n\t\t//??0 0 ?????\n\t\tif( beasked[i] == 0 && answer[i] == 0)\n\t\t\tbreak;\n\t\telse\n\t\t\tcount[answer[i]]++;//answer[i]???????????\n\t\tsum++;//?????1\n\t}\n\tint flag = 0;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tint know = 0;//?????????????\n\t\tif(count[i] == n - 1 )//???????????\n\t\t{\n\t\t\tfor(int j = 0; j < sum; j++)\n\t\t\t{\n\t\t\t\tif(beasked[j] == i)//????????????\n\t\t\t\t\tknow++;//????????1\n\t\t\t}\n\t\t\tif(know == 0)//??????????\n\t\t\t{\n\t\t\t\tcout << i << endl;//??????????\n\t\t\t\tflag =1;//??????\n\t\t\t}\n\t\t}\n\t}\t\n\tif(flag == 0)\n\t\tcout <<\"NOT FOUND\" << endl;//???????????\u0093NOT FOUND\u0094\n\treturn 0;\n}\n\t\n\n"} +{"label": "89", "index": "44459", "code": "//******************\n//?????????\n//?????\n//???2011-12-10\n//******************\nint main()\n{\n\tint *p1 = NULL, *p2 = NULL, a[10000] = {0}, i, j, n;\n\tint b[100000], c[100000]; \n\tp1 = b; //?b?c??????????p1?p2\n\tp2 = c;\n\tcin >> n; //????\n\tfor(i = 0;;i++)\n\t{\n\t\tcin >> *p1 >> *p2; \n\t\tif(*p1 == 0 && *p2 == 0) //????0 0?????\n\t\t\tbreak;\n\t\tfor(j = 0;;j++)\n\t\t{\n\t\t\tif(j == *p2) //????????????????a????\n\t\t\t{\n\t\t\t\ta[j]++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tp1++; //???????\n\t\tp2++;\n\t}\n\tint k = 0; //k?????????\n\tfor(j = 0;;j++)\n\t{\n\t\tif(a[j] == n - 1) //??????????\n\t\t{\n\t\t\tfor(;i > 1;i--) //??????????????????\n\t\t\t{\n\t\t\t\tif(*--p1 == j)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i == 1) //i=1??????????\n\t\t\t{\n\t\t\t\tcout << j; //????????\n\t\t\t\tk = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(k == 0) //??????????????\n\t{\n\t\tcout << \"NOT FOUND\";\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44460", "code": "int main()\n{\n\tint n, m;\n\tint p, q = 0, r = 0;\n\tint i = 0, j;\n\tint a, b, c[10000] = {0}, d[10000] = {0};\n\tcin >> n;\n\twhile(1)\n\t{\n\t\tcin >> a >> b;\n\t\tif(a == 0 && b == 0)\n\t\t\tbreak;\n\t\tc[b]++;\n\t\td[a]++;\n\t\ti++;\n\t}\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(c[i] == n - 1)\n\t\t{\n\t\t\tif(d[i] == 0)\n\t\t\t{\n\t\t\t\tcout << i << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\tcout << \"NOT FOUND\" << endl;\n\t\t}\n\t\telse\n\t\t\tq++;\n\t}\n\tif(q == n)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44461", "code": "int map[9000][9000];\nint main()\n{\n\tint n, i, j;\n\tint found = 0;\n\tscanf(\"%d%d%d\", &n,&i,&j);\n\twhile ((i != 0)||(j != 0))\n\t{\n\t\tmap[i][j] = 1;\n\t\tscanf(\"%d%d\", &i, &j);\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tint mark = 0;\n\t\tfor (j = 0; j < n; j++)\n\t\t{\n\t\t\tif ((map[i][j] == 1)&&(i != j))\n\t\t\t{\n\t\t\t\tmark = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (mark == 0)\n\t\t{\n\t\t\tint mark2 = 0;\n\t\t\tfor (j = 0; j < n; j++)\n\t\t\t{\n\t\t\t\tif ((j != i)&&(map[j][i] == 1))\n\t\t\t\t\tmark2++;\n\t\t\t}\n\t\t\tif (mark2 == n-1)\n\t\t\t{\n\t\t\t\tfound = 1;\n\t\t\t\tprintf(\"%d\\n\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (found == 0)\n\t\tprintf(\"NOT FOUND\\n\");\n\treturn 0;\n}\n\n\n"} +{"label": "89", "index": "44462", "code": "//??????????\n//??????\n//?????2011-1-8\n\n\nint main()\n{\n int n,i,j,count[200000]={0},check[200000]={0};\n cin>>n;\n while (true)\n {\n cin>>i>>j;\n if ((i==0)&&(j==0)) break;\n count[j]++;//??j??+1 \n check[i]++;//i????+1 \n }\n for (i=0;i> n;\n\tint *p = know;\n\tint *q = beknown;\n\twhile (1)\n\t{\n\t\tcin >> x >> y;\n\t\tif (x == 0 && y == 0)\n\t\t\tbreak;\n\t\t(*(p + x))++;\n\t\t(*(q + y))++;\n\t}\n\tint flag = 1;\n\tfor (i = 0; i < n; i ++)\n\t\tif (know[i] == 0 && beknown[i] == n - 1)\n\t\t{\n\t\t\tflag = 0;\n\t\t\tcout << i << endl;\n\t\t\tbreak;\n\t\t}\n\tif (flag)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}\n"} +{"label": "89", "index": "44465", "code": "int main()\n{\n int n,i;\n int a[100000],b[100000];\n scanf(\"%d\",&n);\n for(i=0;;i++)\n {\n scanf(\"%d %d\",&a[i],&b[i]);\n if(a[i]==0&&b[i]==0)\n {\n break;\n }\n }\n int count=0,count0=0;\n for(int l=0;l>n;\n int ans=0;\n int count[n];\n for(int i=0;i>x>>y)\n {\n if(x==0 && y==0){break;}\n else\n {\n count[y]++;\n }\n }\n for(int i=0;i> n;\n\tfor(i=0 ; ; i++)\n\t{\n\t\tcin >> a >> b;\t\t\t\t\t\t\t\t\t\t//????\n\t\tif(a==0 && b==0)\t\t\t\t\t\t\t\t\t//??0?0??\n\t\t\tbreak;\t\n\t\tif(a==b && a!=0)\n\t\t\tcontinue;\n\t\tknow[a] = 1;\t\t\t\t\t\t\t\t\t\t//????0?0????????????????????\n\t\tknown[b]++;\t\t\t\t\t\t\t\t\t\t\t//??????????\n\t}\n\tfor(j=0 ; j>n;\n\twhile(cin>>a>>b)\n\t{\n\t\tpeople[a]=-1;\n\t\tif (people[b]>=0)\n\t\t{\n\t\t\tpeople[b]++;\n\t\t\tif (people[b]==n-1)\n\t\t\t{\n\t\t\t\tcout<> n;\n\tcin >> i >> j;\n\twhile(i+j)\n\t{\t\n\t\ta[j]++;\n\t\tb[i]++;\n\t\tcin >> i >> j;\n\t}\n\tfor(i=0;i=n) printf(\"NOT FOUND\");\n}"} +{"label": "89", "index": "44477", "code": "int main()\n{\n\tint n,a[100000]={0},b[100000]={0},i=0,t=0,j,x=0,y=0,w=0;\n\tscanf(\"%d\",&n);\n\twhile(scanf(\"%d %d\",&a[i],&b[i])!=EOF&&!(a[i]==0&&b[i]==0))\n\ti++;\n\tt=i-1;\n\tfor(i=0;i> n;\n\twhile(cin >> i >> j && (i != 0 || j != 0))\n\t{\n\t\tp[i].x++;\n\t\tp[j].y++;\n\t}\n\tfor(k = 0; k <= n - 1; k++)\n\t{\n\t\tif(p[k].x == 0 && p[k].y == n - 1)\n\t\t{\n\t\t\tcout << k << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "89", "index": "44479", "code": "main()\n{\n int n,*a,i,j;\n scanf(\"%d\",&n);\n a=(int *)malloc(sizeof(int)*n);\n memset(a,0,sizeof(int));\n for(;;)\n {\n int x,y;\n scanf(\"%d %d\",&x,&y);\n if(x==0&&y==0){break;}\n a[x]--;\n a[y]++;\n }\n for(i=0;i<=n-1;i++)\n {\n if(a[i]==n-1){printf(\"%d\",i);}\n } \n}"} +{"label": "89", "index": "44480", "code": "main()\n{\n int n,k,i[65534],j[65534],count1[10000]={0},count2[10000]={0},m;\n scanf(\"%d\",&n);\n for(k=0;;k++)\n { \n scanf(\"%d %d\",&i[k],&j[k]);\n if((i[k]==0)&&(j[k]==0))\n break;\n for(m=0;m>n;\n\tint i=0;\n\tfor( i=0; i>i>>j)\n\t{\n\t\tif( i==0 && j==0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp[i].knownum++;\n\t\t\tp[j].welknownnum++;\n\t\t}\n\t}\n\tfor( i=0; i> n;\n\twhile (cin >> i && cin >> j && (i != 0 || j != 0) )\n\t{\n\t\ta[j] ++;\n\t}\n\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(a[i] == n - 1)\n\t\t{\tcout << i;\n\t\tbreak;}\n\t}\n\tif (i == n)\n\tcout << \"NOT FOUND\";\n\treturn 0;\n}\n"} +{"label": "89", "index": "44485", "code": "int main()\n{\n\tint n,i,j,k,a[10000],b[10000],c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<10000;i++)\n\t{ \n\t\tscanf(\"%d%d\",&a[i],&b[i]);\n\t\tif(a[i]==0&&b[i]==0)break;\n\t}\n\tfor(j=0;j> n;\n\tfor ( Person1 = person1, Person2 = person2; ; Person1 ++, Person2 ++ )\n\t{\n\t\tcin >> *Person1 >> *Person2;\n\t\tif ( *Person1 == 0 && *Person2 == 0 )\n\t\t\tbreak;\n\t}\n\tfor ( i = 0; i < n; i ++ )\n\t{\n\t\tcounta = 0;\n\t\tcountb = 0;\n\t\tfor ( Person1 = person1, Person2 = person2; ; Person1 ++, Person2 ++ )\n\t\t{\n\t\t\tif ( *Person1 == 0 && *Person2 == 0 )\n\t\t\t\tbreak;\n\t\t\tif ( *Person1 == i )\n\t\t\t\tcounta ++;\n\t\t\tif ( *Person2 == i )\n\t\t\t\tcountb ++;\n\t\t}\n\t\tif ( counta == 0 && countb == n - 1 )\n\t\t\tcout << i << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "89", "index": "44487", "code": "int main()\n{\n\tint num[1000000]={0};\n\tint n, i, j, *p, count = 0, flag = 0;\n\tcin >> n;\n\tdo\n\t{\n\t\tcin >> i;\n\t\tcin >> j;\n\t\tif(i + j == 0) break;\n\t\telse\n\t\t{\n\t\t\tnum[j]++;\n\t\t}\n\t}while(1);\n\tp = num;\n\twhile(count < n)\n\t{\n\t\tif( *p == n-1 )\n\t\t{\n\t\t\tcout << count;\n\t\t\tflag = 1;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp++;\n\t\t\tcount++;\n\t\t}\n\t}\n\tif(!flag) cout << \"NOT FOUND\";\n\n\treturn 0;\n\t}"} +{"label": "89", "index": "44488", "code": "//**********************************************************\n//* ?????4.cpp *\n//* ??????1200012906 *\n//* ???2012?12?10? *\n//* ??????????? *\n//**********************************************************\n\n\nstruct\n{\n\tint know; //?????\n\tint known; //?????\n}people[10000];\nint main()\n{\n\tint n, i, j, flag = 0;\n\tcin >> n;\n\twhile(cin >> i >> j && i != 0 || j != 0)\n\t{\n\t\tpeople[i].know++;\n\t\tpeople[j].known++;\n\t}\n\tfor(i = 0; i < n; i++)\n\t\tif (people[i].know == 0 && people[i].known == n - 1)\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\tflag = 1;\n\t\t}\n\tif (flag == 0)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44489", "code": "int main ()\n{\n\tint a[80000], b[80000], n, i, j, k, c[80000], flag = 0;\n\tcin >> n;\n\tfor(i = 0;i <= n - 1;i++)\n\t\tc[i] = i;\n\tfor(i = 0; ;i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif(a[i] == 0 && b[i] == 0) break;\n\t}\n\tfor(j = 0;j < i;j++)\n\t\tc[a[j]] = -1;\n\tfor(j = 0;j < n;j++)\n\t\tif(c[j] != -1)\n\t\t{\n\t\t\tint num = 0;\n\t\t\tfor(k = 0;k < i;k++)\n\t\t\t\tif(b[k] == j) num++;\n\t\t\tif(num == n - 1) \n\t\t\t{\n\t\t\t\tcout << j << endl;\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t}\n\tif(flag == 0) cout << \"NOT FOUND\" <>n;\n\tint ai[n],aj[n];\n\tint c,d;\n\tfor(int i=0;i>c;\n\t\tcin>>d;\n\t\tif(c==0&&d==0)break;\n\t\telse{\n\t\t\tai[c]++;\n\t\t aj[d]++;\n\t\t}\n\t}\n\tint j;\n\tfor( j=0;j> n;\n\twhile (1)\n\t{\n\t\tcin >> k[0] >> k[1];\n\t\tif ((k[0] == 0)&&(k[1] == 0))\n\t\t\tbreak;\n\t\ta[k[0]][0]++;\n\t\ta[k[1]][1]++;\n\t}\n\tfor (i = 0;i < n;i++)\n\t{\n\t\tif ((*(*(a + i)) == 0)&&(*(*(a + i) + 1) == n - 1))\n\t\t{\n\t\t\tcout << i << endl;\n\t\t\ttf = 0;\n\t\t}\n\t}\n\tif (tf == 1)\n\t\tcout << \"NOT FOUND\" << endl;\n\treturn 0;\n}"} +{"label": "89", "index": "44493", "code": "int main()\n{\n\tstruct people\n\t{\n\t\tint k;\n\t\tint kn;\n\t}p[10001];\n\tint n, p1, p2, m=0, i;\n\tfor (i=0;i> n;\n\tfor (i=0;i> p1 >> p2;\n\t\tif (p1==0&&p2==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tp[p1].k++;\n\t\t\tp[p2].kn++;\n\t\t}\n\t}\n\tfor (i=0;i> n;\n\tint l[10000],r[10000];\n\tmemset(l,0,sizeof(l));\n\tmemset(r,0,sizeof(r));\n\twhile(1)\n\t{\n\t\tint a,b;\n\t\tcin >> a>>b;\n\t\tif(a==0 && b==0)\n\t\t\tbreak;\n\t\tl[a] = 1;\n\t\tr[b] +=1;\n\t}\n\tfor(int i=0;i>n;\n\twhile(1)\n\t{\n\t\tcin>>x>>y;\n\t\tif(x==0 && y==0)break;\n\t\ta[x]=-1;\n\t\tif(a[y]>=0)a[y]++;\n\t}\n\tint flag=false;\n\tfor(int i=0;i> n;\n\tfor(k = 0 ;;k++)\n\t{\n\t\tcin >> people[k].i >>people[k].j;\n\t\tif(people[k].i == 0 && people[k].j ==0) \n\t\t\tbreak;\n\t\ta[people[k].i]++;\n\t}\n\tfor(k = 0 ; k < n ; k++)\n\t{\n\t\tif(a[k] == 0)\n\t\t{\n\t\t\tcout << k <>n)\n\t{\n\t\tmemset(beknown, 0, sizeof(beknown));\n\t\twhile(1)\n\t\t{\n\t\t\tcin>>x>>y;\n\t\t\tif(x==0 && y==0)\n\t\t\t\tbreak;\n\t\t\tbeknown[x] = -1; //?????????\n\t\t\tif(beknown[y]!=-1)\n\t\t\t\tbeknown[y]++; \n\t\t}\n\t\tflag = false;\n\t\tfor(j=0; j>n;\n\tfor(i=0 ;; i++)\n\t{\n\t\tcin>>b[i][0]>>b[i][1];\n\t\tif(b[i][0]==0&&b[i][1]==0) break;\n\t}\n\tnum=i;\n\tfor(i=0; im)\n return way(m,m);\n else\t\n return way(m,n-1)+way(m-n,n);\n}\nint main()\n{\n int i,t,m,n;\n scanf(\"%d\",&t);\n for(i=1;i<=t;i++)\n {\n scanf(\"%d%d\",&m,&n);\n printf(\"%d\\n\",way(m,n));\n }\n\nreturn 0;\n}\n"} +{"label": "90", "index": "44501", "code": "int main(){\n int t,m,n,f[101][101],i,j;\n for(i=1;i<101;++i)f[i][0]=0,f[0][i]=1;\n for(i=1;i<101;++i)\n for(j=1;j<101;++j)\n if(i>t;\n while(t--){\n cin>>m>>n;\n cout<> t;\n\tfor (i = 1; i <= t; i++)\n\t{\n\t\tcin >> M >> N;\n\t\tcout << apple(M, N) << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44503", "code": "int f(int m,int n){\n\tif(m<0) return 0;\n\tif(n==1) return 1;\n\treturn f(m,n-1)+f(m-n,n);\n}\n\nvoid main(){\n int m,n,t;\n\tscanf(\"%d\",&t);\n\twhile(t-->0){\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\\n\",f(m,n));\n\t}\n}"} +{"label": "90", "index": "44504", "code": "\nint apple( int m , int n ) ;\n\nint main()\n{\n\tint t , i , k , m , n ;\n\n\tcin >> t ;\n\n\tfor( i = 1 ; i <= t ; i ++ )\n\t{\n\t\tcin >> m >> n ;\n\n\t\tk = apple( m , n ) ;\n\n\t\tcout << k << endl ;\n\t}\n\n\treturn 0 ;\n}\n\n\nint apple( int m , int n )\n{\n\tif( m == 1 || n == 1 || m == 0 )\n\t\treturn 1 ;\n\n\tif( m >= n )\n\t\treturn( apple( m , n - 1 ) + apple( m - n , n ) ) ;\n\n\telse\n\t\tif( m < n )\n\t\t\treturn apple( m , n - 1 ) ;\n\n}\n\n"} +{"label": "90", "index": "44505", "code": "int function(int n,int m)\n\t{\n\t\tint f;\n\t\tif(n==1||m==0||n==0||m==1)\n\t\t\tf=1;\n\t\telse if(m<0)\n\t\t\tf=0;\n\t\telse\n\t\t\tf=function(n-1,m)+function(n,m-n);\n\t\treturn(f);\n\t}\nint main()\n{\n\tint t,m,n,k;\n\tscanf(\"%d\",&t);\n\tint i;\n\tfor(i=0;i=0&&y!=1)result+=fen(x-y,y);\n\tif(y==1){\n\t\tresult++;\n\t\treturn result;\n\t}\n\treturn result;\n}\n\n"} +{"label": "90", "index": "44507", "code": "//****************************\n//*?????? 1300012809 **\n//*???2013.11.29 **\n//*???????? **\n//****************************\nint m, n, k;\nint fenfa(int x, int y); //?????\nint main()\n{\n\tint i, j, t;\n\tcin >> t; //?????????\n\tfor (i = 1; i <= t; i++)\n\t{\n\t\tcin >> m >> n; //???????????\n\t\n\t\tk = fenfa(m, n); //??????\n\t\tcout << k << endl; //??\n\t}\n\treturn 0;\n}\nint fenfa(int x, int y) //????\n{ \n\tif (x == 1) return 1; //?????????????1????1\n\tif (y == 1) return 1;\n\tif (x == 0 || y == 0) return 1;\n\tif (x < 0 || y < 0) return 0; //????????0\n// ???????????????N?????M???????????N-1?????M????????????\n// ??????????????N?????M????????????N?????M-N??????????\n\tif (x != 1 && y != 1 && x != 0 && y != 0) return (fenfa(x, y-1) + fenfa(x-y,y)); \n}\n\n"} +{"label": "90", "index": "44508", "code": "int apple(int m,int n)\n{\n\tint k;\n\tif(n==1)\n\t\tk=1;\n\telse if(m==1)\n\t\tk=1;\n\telse if(m==2)\n\t\tk=2;\n\telse if(m> t;\n\tfor(int i=0; i < t; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout<= n)\n\t\t{\n\t\t\treturn f1(m,n-1)+f1(m-n,n);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn f1(m,m);\n\t\t}\n\t}\n}"} +{"label": "90", "index": "44510", "code": "int digui(int m,int n)\n{\n\tint p;\n\tif(m=1)\n\tfor(i=1;i0)&&(N>0)) \n {\n if((N==1)||(M==1))\n {s=s+1;}\n else if((M<=N)&&(M!=1)&&(N!=1))\n {s=s+1;f(M,M-1);}\n else\n {\n \n f(M,N-1);\n f(M-N,N);\n } \n }\n return s;\n \n}\n int main()\n{ \n int t;\n scanf(\"%d\",&t);\n for(int i=0;i<=t-1;i++)\n{ \n int a,b; \n scanf(\"%d %d\",&a,&b);\n printf(\"%d\\n\",f(a,b));s=0;}\n int y;\n scanf(\"%d\",&y);\n return 0; \n}\n"} +{"label": "90", "index": "44512", "code": "\nint gedui(int zong, int duishu,int ini){\n\tint p,k=0,end;\n\tend=zong/duishu;\n\tif(duishu>2){\n\t\tfor(p=ini;p<=end;p++){\n\t\t\tk+=gedui(zong-p,duishu-1,p);\n\t\t}\n\t}\n\telse if(duishu==2){\n\t\tk=zong/2-ini+1;\n\t//\tprintf(\"2zong%d,ini%d,k%d\\n\",zong,ini);\n\t}\n\telse if(duishu==1){\n\t\tk=1;\n\t}\n\treturn k;\n}\n\nint r(int zong,int dui){\n\tint o,count=0;\n\tfor(o=1;o<=dui;o++){\n\t\tcount+=gedui(zong,o,1);\n\t//\tprintf(\"count%d,zong%d,dui%d\\n\",count,zong,dui);\n\t}\n\treturn count;\n}\n\n\n\nint main(){\n\tint k,m,n;\n\tint i,dui,u;\n\tscanf(\"%d\",&k);\n\tfor(i=0;in){\n\t\t\tdui=n;\n\t\t}\n\t\telse{\n\t\t\tdui=m;\n\t\t}\n\t\tu=r(m,dui);\n\t\tif(i!=0){\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\tprintf(\"%d\",u);\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44513", "code": "int fun(int m,int n,int j);\nint main()\n{\n int s,i,x;\n int m[100],n[100];\n scanf(\"%d\",&x);\n for(i=0;im[i])\n n[i]=m[i];\n s=fun(m[i],n[i],0);\n printf(\"%d\\n\",s);\n }\n}\nint fun(int m,int n,int j)\n{\n int i,s=0;\n if(n==1) return m>=j;\n for(i=j;i0)\n\t{\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tprintf(\"%d\\n\",f(m,n));\n\t\tt--;\n\t}\n}\nint f(int x,int y)\n{\n\tif(x==0||y==1)\n\t\treturn 1;\n\tif(x>t;\n\t for(i=1;i<=t;i++)\n\t {\n\t\t cin>>m[i]>>n[i];\n\t\t sum=count(m[i],n[i]);\n\t\t cout<1)\n p=ppp(m,n-1)+fff(m,n);\n else if(n==1)\n p=1;\n return(p);\n}\nint fff(int m,int n)\n{\n int f;\n if(m>n)\n f=ppp(m-n,n);\n else if(m==n)\n f=1;\n else if(my)\n\t{\n\t\treturn devide(x,y-1)+devide(x-y,y);\n\t}\n\telse if(x==y)\n\t{\n\t\treturn devide(x,y-1)+1;\n\t}\n}\nint main()\n{\n int n,i;\n scanf(\"%d\",&n);\n int x,y;\n int out;\n for(i=0;i<=n-1;i++)\n {\n scanf(\"%d %d\",&x,&y);\n out=devide(x,y);\n printf(\"%d\\n\",out);\n }\n}\n"} +{"label": "90", "index": "44520", "code": "int main()\n{\n\tint t;//???????\n\tcin>>t;\n\tint f(int,int);\n\tfor(int i=1;i<=t;i++)\n\t{\n\t\tint m,n;\n\t\tcin>>m>>n;//m????n???\n\t\tint ans;\n\t\tans=f(n,m);\n\t\tcout<1&&pi>=1)\n\t\tc=f(pa-1,pi)+f(pa,pi-pa);\n\treturn(c);\n}\n"} +{"label": "90", "index": "44521", "code": "int fang(int m,int n);//??????\nint main()\n{\nint p,i,m,n;\ncin>>p;\nfor(i=1;i<=p;i++)\n{\ncin>>m>>n;\ncout<a )\n b = a;\n return( work(a,b-1)+work(a-b,b));\n \n}\nint main()\n{\n int m , n , t , i;\n scanf( \"%d\",&t );\n for( i = 1 ;i <= t;i++ )\n {scanf(\"%d%d\",&m,&n);\n if( n>=m )\n n=m;\n sum = work( m ,n);\n printf(\"%d\\n\",sum);\n sum = 0;\n } \n}\n"} +{"label": "90", "index": "44523", "code": "int Apple(int m, int n)\n{\n\tif (m == 0 || n == 0)\n\t\treturn 0;\n\tif (m == 1 || n == 1)\n\t\treturn 1;\n\tif (m < n)\n\t\treturn Apple(m, m);\n\tif (m == n)\n\t\treturn Apple(m, n - 1) + 1;\n\treturn Apple(m - n, n) + Apple(m, n - 1);\n}\nint main()\n{\n\tint t, a, b;\n\tcin >> t;\n\twhile (t)\n\t{\n\t\tcin >> a >> b;\n\t\tcout << Apple(a, b) << endl;\n\t\tt--;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44524", "code": "\nint put( int , int );\n\nint main()\n{\n\tint t , i;\n\tint m , n; \n\tint k;\n\t\n\tcin >> t;\n\t\n\tfor ( i = 1; i <= t; i++ )\n\t{\n\t\tcin >> m >> n;\n\t\tk = put(m , n);\n\t\tcout << k << endl;\n\t}\n\t\n\treturn 0;\n}\n\nint put( int x, int y)\n{\n\tif ( x == 0 || y == 1 )\n\t\t return 1;\n\telse\n\t{\n\t\tif ( x >= y )\n\t\t\treturn put (x , y-1) + put( x-y, y );\n\t\tif ( x < y )\n\t\t\treturn put(x , y-1);\n\t}\n}\n"} +{"label": "90", "index": "44525", "code": "int allfilled(int m,int n);\nint notallfilled(int m,int n);\nmain()\n{\n int t,i,m,n,c,d,sum;\n scanf(\"%d\\n\",&t);\n for(i=0;i=n) \n {\n c=notallfilled(m,n);\n d=allfilled(m,n);\n sum=c+d;\n }\n else\n sum=notallfilled(m,n);\n printf(\"%d\\n\",sum);\n }\n \n}\n\nint allfilled(int m,int n)\n{\n int z;\n if(m==n)\n return 1;\n else if(n==1)\n return 1;\n else \n {\n if(m-n>=n)\n z=allfilled(m-n,n)+notallfilled(m-n,n);\n else\n z=notallfilled(m-n,n);\n return z;\n }\n}\n\nint notallfilled(int m,int n)\n{\n int z;\n if(n==1)\n return 0; \n else\n {\n if(m>t;\n\tfor( int i = 1 ; i <= t ; i++)\n\t{\n\t\tcin>> m >> n ;\n\t\tk = 0;\n\t\tfor( int j = n ; j >= 1 ; j--) //???????j?????? n - 1 ?\n\t\t{\n\t\t for( int o = 1 ; o <= 19 ; o++)\n\t\t {\n\t\t\tpg[o] = 0; //????????????????\n\t\t }\n\t\t pg[j + 1] = m; //?n + 1?????????m???\n\t\t\tfenpg( m ,j );\n\t\t}\n\tcout< 0 && pzleft > 0 ) //?????????????? == 0&& ?? >0 ??????????? ?????>0&&??== 0 ?????????????????? \n\t{\n\t\tfor( int i = pgleft ; i > 0 ; i--)\n\t\t{\n\t\t\tif( i <= pg[pzleft + 1]) //????????????????????????????????\n\t\t\t{\n\t\t\t\tpg[pzleft] = i;\n\t\t\t fenpg( pgleft - i , pzleft - 1);//?????????????\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "90", "index": "44527", "code": "int i,j,k,m,n,way,way1;\nint put(int m,int n)\n{\n\tif(m >= 0)\n\t{\n \tif (n == 1)\n\t \tway = 1;\n \telse\n\t \tway = put(m - n,n) + put(m,n-1) ;\n\t}\n\telse\n\t\tway = 0;\n\treturn way;\n}\nint main()\n{\n\tint t;\n\tcin>>t;\n\twhile (t--)\n\t{\n\t\tcin>>m>>n;\n\t\tway = put(m,n);\n\t\tcout<= j) opt[i][j] += opt[i-j][j];\n\t\t\topt[i][j] += opt[i][j-1];\n\t\t}\n\tcin >> t;\n\twhile (t--) {\n\t\tcin >> m >> n; \n\t\tcout << opt[m][n] << endl;\n\t}\n\treturn 0;\t\n}"} +{"label": "90", "index": "44529", "code": "int ways(int a,int b)\n{\n\tint p;\n\tif(b==1||a==0||a==1)\n\t\treturn 1;\n\telse\n\t{\n\t\tif(an)\n\t{\n\t\tsum=num(m,n-1,sum);\n\t\tsum=num(m-n,n,sum);\n\t}\n\treturn sum;\n}\n\nvoid main()\n{\n\tint i,t,m,n,sum=0;\n\tscanf (\"%d\",&t);\n\tfor (i=0;i> t;\n\n\tif( t>0)\n\t{\n\t\tfor( i=0;i> m >> n;\n\t\t\t cout << an( m,n ) << endl;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\nint an ( int m,int n)\n{\n\tif( ( m==0 )||(n==1) )\n\t\treturn 1;\n\n\tif( m>=n )\n\t\treturn an(m-n,n)+an(m,n-1);\n\telse\n\t\treturn an( m,n-1);\n}"} +{"label": "90", "index": "44532", "code": "int f[30][30];\nint K(int m, int n)\n{\n\tif(f[m][n])\n\t{\n\t\treturn f[m][n];\n\t}\n\telse if (m==1||n==1)\n\t{\n\t\tf[m][n]=1;\n\t\treturn f[m][n];\n\t}\n\telse if(m>t;\n\tfor (i=1;i<=t;i++)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<=n)\n\t\tresult+=f(m,n-1)+f(m-n,n);\n\telse\n\t\tresult+=f(m,n-1);\n\n\treturn result;\n}\n\t\n int main(){\n\tint m,n,i,t,a;\n\tscanf(\"%d\",&t);\n\n\tfor(i=0;i n)\n\t {\n\t\treturn way(m, n - 1) + way(m - n , n);\n\t }\n\t if(m < n)\n\t {\n\t\treturn way(m, n - 1);\n\t }\n\t if(m == n)\n\t\t return way(m, n - 1) + 1;\n}\n\nint main()\n{\n\tint i, l, a, m, n;\n\tcin >> l;\n\tfor(i = 1 ; i <= l ; i++)\n\t{\n\t\tcin >> m >> n;\n\t\ta = way(m, n);\n\t\tcout << a << endl;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "90", "index": "44537", "code": "int fpg(int m,int n){\n\tint ff;\n\tff=0;\n if((m==1)||(n==1)||(m==0)||(n==0)){\n\t\tff=1;\n\t\treturn 1;\n\t}\n\telse if(m>=n){ff=ff+fpg(m-n,n);\n\t ff=ff+fpg(m,n-1);\n\t}\n\telse{\n ff=ff+fpg(m,n-1);\n\t\t\t }\n\treturn ff;\n}\nint main(){\n\tint m,i,t,n;\n scanf(\"%d\",&t);\n\tfor(i=0;i=2)\n\t{return sd((n-1),m)+sd(n,(m-n));}\n\tif(m<=n&&m>1)\n\t{return sd(m-1,m)+1;}\n\t\n\t\n}\n\n\nint main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tint m[100];\n\tint n[100];\n\tint d[100];\n\tint i=0;\n\tdo\n\t{\n\t\tscanf(\"%d %d\",&m[i],&n[i]);\n\t\ti++;\n\t}while(i=n)\n\t{\n\t\thf[m][n]=work(m-n,n)+work(m,n-1);\n\t\treturn hf[m][n];\n\t}\n\telse\n\t{\n\t\thf[m][n]=work(m,n-1);\n\t\treturn hf[m][n];\n\t}\n}\nint main()\n{\n\tint n,m,k;\n\tcin>>k;\n\tint i,j;\n\tfor(i=1;i<=k;i++)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<b) return (f1(a,b));\n else return (f1(a,b)+f2(a,b));\n }\n}\nint main()\n{\n int t,m,n,i;\n scanf(\"%d\",&t);\n for(i=0;iy){\n return fang(x,y-1)+fang(x-y,y);\n }\n if(x1&&n>1&&m>=n)\n\tz=saintseiya(m,n-1)+saintseiya(m-n,n);\n\tif(m>1&&n>1&&m=y)\n\t\treturn apple(x-y,y) + apple(x,y-1);\n}\n\n\nint main()\n{\n\tint i;\n\tcin >> i;\n\tfor( i;i>0; i--){\n\tint m, n;\n\tcin >> m >> n;\n\tcout << apple(m,n);\n\tif( i!=1) cout << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44547", "code": " \n\n int f(int m, int n){\n\n if(m==0||n==1){\nreturn 1;\n}\n if(m>k;\n\tcin.get();\n\tfor(i=1;i<=k;i++)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<> t;\n\tfor (i = 1; i <= t; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << with(m, n, 1) + without(m, n) << endl;\n\t}\n\t\n\treturn 0;\n}"} +{"label": "90", "index": "44551", "code": "int q(int M,int N)\n{\n int K,y,w; \n if(N==1)\n {return 1 ;}\n if(M<0) {return 0;}\n else\n {\n //y=q(M,N-1);\n //printf(\"%d\\n\",M);\n //w=q(M-N,N);\n // printf(\"%d\\n\",N);\n //K=y+w;\n // q(M,N)=q(M,N-1)+q(M-N,N);\n // K=q(M,N); \n }\n return(q(M,N-1)+q(M-N,N)); \n \n}\nmain()\n{\n int t,i,M,N,b,K;\n scanf(\"%d\",&t);\n for(i=0;i0 && app0))\n\t\treturn;\n\tif(dish==0 && app==0)\n\t\ttotal++;\n\tfor(int i=last; i<=app; i++){\n\t\tputapp(app-i, dish-1, i);\n\t}\n\tif(dish == n)\n\t\tcout << total << endl;\n}\n\nint main(){\n\tint a;\n\tcin >> a;\n\tint i=0;\n\twhile(i> m >> n;\n\t\tputapp(m, n, 0);\n\t\ti++;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44554", "code": "int f(int m, int n)\n\n{\n\n if( m == 0 || n == 1) return 1; \n\n if(m=n)\n\t{\n\t\tif(n==1)\t//????????????????????\n\t\t{\n\t\t\tresult1=1;\n\t\t}\n\t\telse if(n>=2)\t\n\t\t{\n\t\t\tresult1=func1(m,n-1)+func1(m-n,n);\n\t\t}\n\t}\n\tif(m=2)\n\t\t{\n\t\t\tresult1=func1(m,n-1);\n\t\t}\n\t}\n\treturn result1;\n}"} +{"label": "90", "index": "44556", "code": "int number(int a,int b)\n{\n\tint total;\n\tif(a==1)\n\t{\n\t total=1;\n\t return total;\n\t}\n\tif(b==1)\n\t{\n\t\ttotal=1;\n\t\treturn total;\n\t}\n\tif(ab)\n\t{\n\t\ttotal=number(a-b,b)+number(a,b-1);\n\t\treturn total;\n\t}\n}\nvoid main()\n{\n\tint m[20],n[20],C[20],t,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=n && m>1 && n>1)\n c=method(m,n-1)+method(m-n,n);\n if(m1 && n>1)\n c=method(m,n-1);\n return c;\n}\nint print()\n{\n int m,n;\n scanf(\"%d%d\",&m,&n);\n printf(\"%d\\n\",method(m,n));\n}\nint main()\n{\n int t,i;\n scanf(\"%d\",&t);\n for(i=0;i 0)\n{\nscanf(\"%d%d\", &m ,&n);\nprintf(\"%d\\n\",f(m, n));\n}\nreturn 0;\n}"} +{"label": "90", "index": "44559", "code": "\nint putapple(int n,int m)\n{\n\tif(m>a;\n\twhile(a--)\n\t{\n\t\tint i=0,m,n;\n\t\tint sum=0;\n\t\tcin>>m>>n;\n\t\tfor(i=1;i<=n;i++)\n\t\t\tsum=sum+f(m,i);\n\t\tcout<> n;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> a >> b;\n\t\tcout << fang(a, b) << endl;\n\t}\n\treturn 0;\n}\nint fang(int x, int y)\n{\n\tif(x == 0 || y == 0)\n\t\treturn 0;\n\tif(x < y)\n\t return fang(x, x);\n\tif(x == y)\n\t\treturn fang(x, y - 1) + 1;\n\tif(x > y)\n\t\treturn fang(x, y - 1) + fang(x - y, y);\n}"} +{"label": "90", "index": "44562", "code": "\nint kkkk(int a,int b)\n{\n int k;\n if (b==1) k=1;\n else if (a==1) k=1;\n else if (a<=b) k=1+kkkk(a,a-1); \n else k=kkkk(a-b,b)+kkkk(a,b-1);\n return k;\n} \n\nmain()\n{\n int i,n,a[20],b[20],k;\n scanf(\"%d\",&n);\n for (i=0;i>t;\n for(i=0;i>m>>n;\n cout<0&&b>0)\n\t\tif(a=N)\n return (move(M-N,N)+move(M,N-1));\n}\n\n\nint main(){\n\tint i,p,M[20],N[20],K[20];\n\tscanf(\"%d\",&p);\n for(i=0;i>n;\n\tfor(i=0;i>apple>>plate;\n\t\tcout<=b)\n\t\tresult=f(a,b-1)+f(a-b,b);\n\telse result=f(a,a);\n\treturn result;\n}"} +{"label": "90", "index": "44568", "code": "/*\n * 183.cpp\n *\n * Created on: 2011-11-20\n * Author: think\n */\nint way1(int m,int n);\nint way2(int m,int n);\nint way(int m,int n){//????????\n\treturn way1(m,n)+way2(m,n);\n}\nint way1(int m,int n){//????????????\n\tint r;\n\tr=m%n;\n\tif(n==1)return 1;//??\n\tif(m==0||m>k;//??????\n\tint a[k+1];\n\tint b[k+1];\n\tfor(i=1;i<=k;i++){\n\t\tcin>>a[i]>>b[i];//????\n\t}\n\tfor(i=1;i<=k;i++){\n\t\tcout<plate)\n\t\tk2=PutMethod(apple-plate,plate);\n\t\tk1=PutMethod(apple,plate-1);\n\t k=k2+k1;\n\t}\n \n return k;\n}\nmain()\n{int t, apple, plate,i,k;\n scanf(\"%d\",&t);\n for(i=0;i>t;//????\n\tfor(i=0;i>m>>n;//?????????\n\t\tcout<y&&y!=1)\n\t\t\tnumber=apple(x-y,y)+apple(x,y-1);//??\n\t\tif(x<=y&&x!=1)\n\t\t\tnumber=1+apple(x,x-1);//??\n\t\tif(x==1)\n\t\t\treturn 1;//??\n\t\tif(y==1)\n\t\t\treturn 1;//??\n\t\telse\n\t\t\treturn number;\n\t}\n"} +{"label": "90", "index": "44571", "code": "// ?????.cpp : ??????????????\n//\n\n \nint sum(int m,int n)\n{\n\tif (n == 1 || m == 0)\n\t{\n\t\treturn 1;\n\t}\n\tif (n != 1)\n\t{\n\t\tif (m - n < 0)\n\t\t{\n\t\t\treturn sum(m, m);\n\t\t}\n\t\treturn (sum(m,n - 1) + sum(m - n,n));\n\t}\n}\n\nint main()\n{\n\tint t,i,m,n;\n\tcin >> t;\n\tfor (i=1;i<=t;i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << sum(m,n) << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44572", "code": "main()\n{\nint t;\nscanf (\"%d\",&t);\nfor (int i=0;i>n;\n\tfor(int i = 0 ; i>a>>b;\n\t\tint sum=0;\n\t\tsum = c(a,b);\n\t\tcout<=b)\n\t{\n\t\tsum=c(a,b-1)+c(a-b,b);\n\t\treturn sum ;\n\t}\n\tif(a=1) h=core(m-1,n)+core(m,n-m);\n\telse if(m==n && m!=1 ) h=core(m-1,n)+1;\n\telse if(m>n && n>=1) h=core(m-1,n);\n\telse h=0;\n\treturn(h);\n}\n\nvoid main()\n{\n\tint t;\n\t\n\tscanf(\"%d\",&t);\n\tint i;\n\tint m,n;\n\tint a[100];\n\tfor(i=0;i<=t-1;i++)\n\t{\tscanf(\"%d %d\",&n,&m);\n\t\ta[i]=core(m,n);\n\t\t\n\t}\n\tfor(i=0;i<=t-1;i++)\n\t\tprintf(\"%d\\n\",a[i]);\n\t\n\n}"} +{"label": "90", "index": "44575", "code": "//****************************************************** \n//* ? ? ? ?? ? ? ? ? *\n//* ? ? ?? ? ? *\n//* ? ? ? ??2010 ? 12 ? 2 ? * \n//* ? ? ? ??? ? ? ? ? *\n//* ? ? ?1000010439 *\n//******************************************************\nint f(int x,int y) //???????? ,??????x,????y \n{\n int sum = 1; //???????x,????y?????? \n if( (y == 1)||(x == 0) ); //?????1??????0?,???? \n else\n {\n if(x >= y) //??????????,?????,??????,?????????????? \n sum = f(x - y,y) + f(x,y - 1);\n else //?????????,????? \n sum = f(x,y - 1);\n }\n return sum; //????? \n}\nint main()\n{\n int k[100] = {0}; //??k???????????? \n int a,b,c,t; //c?????,a????,b????,t????? \n cin >> c; //??????????? \n for(t = 0;t < c;t++) //?????????? \n {\n cin >> a >> b;\n k[t] = f(a,b); //???t?????? \n }\n for(t = 0;t < c;t++)\n {\n cout << k[t] << endl; //?????? \n }\n return 0;\n}\n"} +{"label": "90", "index": "44576", "code": "int devide(int m,int n);\nint enb(int m,int n);\nint unb(int m,int n);\nint main()\n{\n\tint t,i,m,n;\n\tcin>>t;\n\tfor(i=0;i>m>>n;\n\t\tif(n!=1)\n\t\t\tcout<a&&a!=0)\n\t z=0;\n else{ \n\t if(a==0)\n\t z=1;\n else{ \n\t\t if(b==1)\n\t z=1;\n else{ \n\t\t\t if(a<=b){\n\t\t\t\t for(j=i;j<=a;j++){\n\t\t\t\t z=z+N(j,a-j,b-1);\n\t\t\t\t }}\n else{if(i!=1){\n\t\t\t\t z=N(i-1,a-b,b)+N(i,a,b-1);}\n\t\t\t else{z=N(1,a-b,b)+N(1,a,b-1);}}\n \n }}}\n return z;\n}"} +{"label": "90", "index": "44580", "code": "int main()\n{\n\tint f(int M, int N);\n\tint M,N,K,t,i;\n\tcin >> t;\n\tfor(i = 1 ; i <= t ; i++)\n\t{\n\t\tcin >> M >> N;\n\t\tK = f(M,N);\n\t\tcout << K << endl;\n\t}\n\treturn 0;\n}\nint f(int M, int N)\n{\n\tif(N == 1)\n\t{\n\t\treturn 1;\n\t}\n\telse if(M >= N)\n\t{\n\t\treturn f(M,N - 1) + f(M - N,N);\n\t}\n\telse\n\t{\n\t\treturn f(M,N - 1);\n\t}\n}"} +{"label": "90", "index": "44581", "code": "\n\nint f2(int m,int n)\n{\n\tint N1;\n\tif (m == 0 || n == 0)\n\t\treturn 0;\n\tif (n == 1 || m == 1)\n\t\treturn 1;\n\tif (m < n)\n\t\treturn f2(m,m);\n\tif (n == m)\n\t\treturn f2(m,n-1) + 1;\n\tif(m > n)\n\t\treturn f2(m,n-1)+f2(m-n,n); \n}\n\nint main()\n{\n\tint t,m,n,N,i;\n\tcin >> t;\n\tfor (i = 1; i <= t;i++)\n\t{\n\t\tcin >> m >> n;\n\t\tN = f2(m,n);\n\t\tcout << N << endl;\n\t}\n\tcin.get();\n\tcin.get();\t\n\treturn 0;\n}"} +{"label": "90", "index": "44582", "code": "int f(int m,int n)\n{\n\tint k;\n\tif(n==0||n==1) k=1;\n\telse if(m> g ;\t// g groups of data,m apples ,n plates\n\twhile (g--)\n\t{\n\t\tcin >> m >> n;\n\t\tcout<< method(m,n)<=n )\n\t\t\treturn method(m-n,n)+method(m,n-1);\n\t\telse \n\t\t\treturn method(m,n-1);\n}\n"} +{"label": "90", "index": "44584", "code": "/*\n * hanshu_huisu_4.cpp\n * Name??????\n * Created on: 2010-12-6\n * Author: ??\n */\n\nint M,N;//\nint f(int m,int n){\n\tif(m==0) return 1;//??????0??????????1\n\tif(n==1) return 1;//??????1??????????????1\n\tif(n>m) return f(m,m);/*???????????????n-m????????????????*/\n\tif(n<=m) return f(m-n,n)+f(m,n-1);/*??????????????????????????????n????m??????????n????m-n???????????????????n?????m??????????n-1?????m????????*/\n}\nint main(){\n\tint t;\n\tcin>>t;//?????????t\n\twhile(t>0){\n\tcin>>M>>N;//??????????????\n\tcout<> t;\n\n\tfor( i = 1;i <= t;i++ )\n\t{\n\t\tcin >> m;\n\t\tcin >> n;\n\n\t\tcout << baifang( m , n) << endl;\n\t}\n\n\treturn 0;\n}\n\nint baifang( int m , int n )\n{\n\tif( n == 1)\n\t\treturn 1;\n\tif( m == 1)\n\t\treturn 1;\n\tif( m == 0 )\n\t\treturn 1;\n\tif( m < 0)\n\t\treturn 0;\n\tif( n > 1 )\n\t{\n\t\tsum = baifang( m ,n - 1) + baifang( m - n , n );\n\t}\n\n\treturn sum;\n}\n\n\n"} +{"label": "90", "index": "44586", "code": "int main()\n{\n\tint f(int m,int n);\n\tint z;\n\tint a,b,i;\n\tint sum;\n\tscanf(\"%d\",&z);\n\tfor(i=0;i=Y){\n\t\tTry(X,Y-1);\n\t\tTry(X-Y,Y);\n\t}\n\telse\n\t\tTry(X,Y-1);\n}\nint main()\n{\n\tint t,i,M,N;\n\tcin>>t;\n\tfor(i=1;i<=t;i++){\n\t\tcin>>M>>N;\n\t\tTry(M,N);\n\t cout<>t;\n\tfor(i=0;i>M>>N; //???????\n\t\tresult[i]=count(M,N); //????\n\t}\n\tfor(i=0;i> k;\n\tfor (int i = 1; i <= k; i++)\n\t{\t\n\t\tcin >> m >> n;\n\t\tcout << f(m, n) << endl;\n\t}\n\treturn 0;\n}\n\nint f(int m, int n)\n{\n\tif (n == 1 || m == 1 || m == 0)\n\t\treturn 1;\n\tif (m < 0)\n\t\treturn 0;\n\telse\n\t\treturn (f(m, n - 1) + f(m - n, n));\n}\n"} +{"label": "90", "index": "44590", "code": "int main()\n{\n\tint f(int a,int b);\n\tint n,a,b;\n\tscanf(\"%d\",&n);\n\tfor(;n-->0;)\n\t\t{scanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\\n\",f(a,b));}\n}\nint f(int a,int b)\n{\n\tif(a>0&&b>1)return(f(a,b-1)+f(a-b,b));\n\telse if(a<0||b<=0)return (0);\n\telse return(1);\n}\n\t"} +{"label": "90", "index": "44591", "code": "int fpg(int M,int N,int x);\nint main()\n{\n int t;\n scanf(\"%d\",&t);\n int M,N,K;\n for(int i=0;i=n) s=f(m,n-1)+f(m-n,n);\n else s=f(m,n-1);}\n else s=1;\n return s;\n}\nmain()\n{\n int t,m,n,i,s;\n scanf(\"%d\",&t);\n if(t==0) printf(\"0\");\n else\n {\n for(i=1;i<=t;i++)\n {\n scanf(\"%d %d\",&m,&n);\n s=f(m,n);\n printf(\"%d\\n\",s);\n }\n }\n getchar();\n getchar();\n}\n"} +{"label": "90", "index": "44593", "code": "int apple(int n,int m)\n{\n\tint i,p;\n\tif (m==1||n==1||n==0)\n\t{\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\tp=0;\n\t\tif (n=m)\n\t\t{\n\t\t\tfor (i=1;i<=m;i++)\n\t\t\t\tp=p+apple(n-i,i);\n\t\t\treturn p;\n\t\t}\n\t}\n}\nint main()\n{\n\tint i,t,n,m,num;\n\tcin>>t;\n\tfor (i=0;i>n>>m;\n\t\tnum=apple(n,m);\n\t\tcout<= plate[ N-1 ] ))\n\t{\n\t\tc++;\n\t\treturn;\n\t}\n\tfor( int i = plate[ k-1 ]; i <= num; i++ )\n\t{\n\t\tplate[ k ] = i;\n\t\tPut( k+1, num-i );\n\t}\n}\nint main()\n{\n\tint t;\n\tcin >> t;\n\tfor( int i = 1; i <= t; i++ )\n\t{\n\t\tcin >> M >> N;\n\t\tc = 0;\n\t\t//????\n\t\tPut( 1 , M );\n\t\tcout << c << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44595", "code": "int f(int m,int n)\n{\n\tif(m==1&&n>=1)\n\t\treturn 1;\n\tif(n==1&&m>=1)\n\t\treturn 1;\n\tif(m<0||n<1)\n\t\treturn 0;\n\tif(m==0&&n>=1)\n\t\treturn 1;\n\tif(m>1&&n>1)\n\t\treturn f(m,n-1)+f(m-n,n);\n\n}\nint main()\n{\n\tint t,m,n,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=n&&n>0){\n\t\tsum=f(m,n-1)+f(m-n,n);\n\t}else if(m=0){\n\t\tsum=f(m,n-1);\n\t}\n\treturn(sum);\n}\nint main()\n{\n\tint x,i;\n\tscanf(\"%d\\n\",&x);\n\tint m[x],n[x];\n\tfor(i=0;i1&&n>1)\n\t{\n\t\treturn (f(m,n-1)+f(m-n,n));\n\t}\n}\nint main()\n{\n\tint x,m,n,i,k;\n\tscanf(\"%d\",&x);\n\tfor(i=0;i=2)\n\t\treturn (divide(ap-disc,disc)+divide(ap,disc-1)); //???? \n}\n\nint main ()\n{\n\tint i,n;\n\tint ap[20],disc[20];\n\tcin>>n;\n\tfor(i=0;i>ap[i]>>disc[i];\n\t\tcout<=m) max=m;\n\tfor (i=max;i>=st;i--)\n\t\ttp=tp+count(m-i,n-1,i);\n\t return tp;\n\t}\n}\nint main()\n{ int i;\n\tint total,m,n;\n\tscanf(\"%d\",&total);\n\tfor (i=1;i<=total;i++)\n\t{ scanf(\"%d %d\",&m,&n);\n\t\tprintf(\"%d\\n\",count(m,n,m));\n\t}\n\treturn 7;\n}\n"} +{"label": "90", "index": "44600", "code": "int ji,m;\nvoid fang(int a,int b)\n{\n int i;\n if(b==1) ji++;\n else\n {\n for(i=m;i<=(a/b);i++)\n {\n m=i;\n fang(a-i,b-1);\n }\n }\n}\n\nmain()\n{\n int k,n,p,q;\n scanf(\"%d\",&n);\n for(k=1;k<=n;k++)\n {\n scanf(\"%d %d\",&p,&q);\n ji=0;\n m=0;\n fang(p,q);\n printf(\"%d\\n\",ji);\n }\n}"} +{"label": "90", "index": "44601", "code": "int f1(int m,int n)\n{\n\tint f(int m,int n);\n\tif(m==n) return 1;\n\telse if(m> t;\n\tfor (i = 0; i < t; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tsum = f(m, n);\n\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}\nint f(int m, int n)\n{\n\tint sum;\n\tif (n <= 0 || m < 0)\n\t\treturn 0;\n\telse if (m == 0)\n\t\treturn 1;\n\telse if (n == 1 || m == 1)\n\t\treturn 1; \n\tsum = f(m - n, n) + f(m, n - 1);\n\treturn sum;\n}"} +{"label": "90", "index": "44603", "code": "\nint act(int n,int m)\n{\n if (m==1||m==0) {\n return 1;\n }\n else\n if (n==1&&m>0) {\n return 1;\n }\n else\n if (m<0) {\n return 0;\n }\n else\n return (act(n, m-n)+act(n-1, m));\n}\n\nint main()\n{\n int times,i,m,n;\n scanf(\"%d\",×);\n \n for (i=0; ix)\n y=x;\n r=f(x-y,y)+f(x,y-1);\n return r; \n}\nint main(){\n int t,m[20],n[20];\n scanf(\"%d\",&t);\n for(int i=0;im)\n\t{\n\t\tn=m;\n\t}\n\tif(m==1||n==1||m==0)return(1);\n\tq=f(m-n,n)+f(m,n-1);\n\treturn(q);\n}\n\nint main(){\n int i,j,k,n,m,t;\n scanf(\"%d\",&t);\n while(t--)\n {\n \n scanf(\"%d%d\",&m,&n);\n k=f(m,n);\n printf(\"%d\\n\",k);\n \n }\n \n return 0;}\n\n"} +{"label": "90", "index": "44609", "code": "int put(int m,int n)//m????n???\n{\n\tif (m> t ;\n\tj=1;\n\tfor (i=1;i<=t;i++)\n\t{\n\t\tcin >> m >> n;\n\t\ts=put (m,n);\n\t\tif (j= 0)\n\t\t\tnum = num + jisuan(apple - plate , plate);\n\t\treturn num; \n\t}\n\telse\n\t\treturn ans[apple][plate];\n}\n\nint main() \n{\n\tint i , j , t , k , apple , plate;\n\tcin >> t;\n\tfor (i = 1; i <= t; i++)\n\t{\n\t\tfor (j = 0; j <= 100; j++)\n\t\t\tfor (k = 0; k <= 100; k++)\n\t\t\t\tans[j][k] = -1;\n\t\tfor (j = 0; j <= 100; j++)\n\t\t{\n\t\t\tans[j][1] = 1;\n\t\t\tans[0][j] = 1;\n\t\t}\n\t\tcin >> apple >> plate;\n\t\tcout << jisuan(apple , plate) << endl;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "90", "index": "44611", "code": "int main(void)\n{\n int c[1000];\n int k, i;\n int apple(int a, int b);\n int m, n;\n scanf(\"%d\", &k);\n for(i=0; i=b??????????????1?????????fact(a,b-1)??2???????????fact(a-b,b)?\n}\n"} +{"label": "90", "index": "44612", "code": "\nint means(int m,int n)\n{\n\tif(n==1)\n\t\treturn 1;\n\telse{\n\t\tif(m==0)\n\t\t\treturn 1;\n\t\telse{\n\t\t\tif(m>=n)\n\t\t\t\treturn means(m,n-1)+means(m-n,n);\n\t\t\telse\n\t\t\t\treturn means(m,n-1);\n\t\t}\n\t}\n}\n\nvoid main()\n{\n\tint t,m,n;\n\tscanf(\"%d\",&t);\n\twhile(t--){\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\\n\",means(m,n) );\n\t}\n}"} +{"label": "90", "index": "44613", "code": "int apple (int m, int n)\n{\n\tint sum=0, sum1=0, sum2=0;\n\tif (n == 1)\n\t{\n\t\tsum = 1;\n\t\treturn sum;\n\t}\n\tif (m == 1)\n\t{\n\t\tsum = 1;\n\t\treturn sum;\n\t}\n\tif (n!=1&&m!=1)\n\t{\t\n\t\tif (m<=n)\n\t\t\treturn (1+ apple (m,m-1));\n\t\telse\n\t\t{\n\t\t\tsum2= apple (m-n,n);\n\t\t\tsum1 = apple (m, n - 1);\n\t\t}\n\t}\n\tsum=sum1+sum2;\n\treturn sum;\n}\nint main()\n{\n\tint t, i, m, n, total;\n\tcin >> t;\n\tfor (i=1;i<=t;i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << apple(m, n) << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44614", "code": "int way(int m,int n)\n{\n if(m==1 || n==1) return(1);\n else if(m<0) return 0;\n else if(m==n) return(way(m,n-1)+1);\n else return(way(m,n-1)+way(m-n,n));\n}\nmain()\n{\n int p;scanf(\"%d\\n\",&p);\n int i,j,m,n;\n for(i=0;i>t;\n for(i=0;i>M>>N;\n cout<>t;\n\tfor(i=0;i>m>>n;\n\t\tcout<=n)\n\t{\n\t\treturn work(m-n,n)+work(m,n-1);\n\t}\n\telse\n\t{\n\t\treturn work(m,n-1);\n\t}\n}\nint main()\n{\n\tint t,m,n,i;\n\tcin>>t;\n\tfor(i=0;i>m>>n;\n\t\tcout<=y)\n\t{\n\t\treturn digui(x,y-1)+digui(x-y,y);\n\t}\n\telse if(x=n)\n k=apple(m,n-1)+apple(m-n,n);\n else\n k=apple(m,n-1);\n }\n return k;\n }\nmain()\n{\n int t,i,m,n;\n scanf(\"%d\",&t);\n for(i=1;i<=t;i++)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\\n\",apple(m,n));\n }\n\n }\n"} +{"label": "90", "index": "44621", "code": "\n\nint fact(int a,int b)\n{\n if((a<1)||(b<1))return 0;\n if((a==1)||(b==1)) return 1;\n if(ab)return fact(a,b-1)+fact(a-b,b);\n}\nmain()\n{\n int t,m,n;\n scanf(\"%d\",&t);\n while(t--)\n {\n scanf(\"%d%d\",&m,&n);\n printf(\"%d\\n\",fact(m,n));\n }\n \n\n\n\n\nreturn 0;}\n"} +{"label": "90", "index": "44622", "code": "void main()\n{\n\tint t,a[1000][2],k,i,m,n;\n\tint f( int m,int n);\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=0) return place(m,n-1)+place(m-n,n);\n else return place(m,n-1); \n }\n}\nint main()\n{\n int t,m,n,i;\n scanf(\"%d\",&t);\n for(i=0;i=n)&&(n>1))\n\t{\n\t\treturn (methods(m-n,n)+methods(m,n-1));\n\t}\n\tif ((n<=1))\n\t{\n\t\treturn 1;\n\t}\n}\nint main()\n{\n\tint m,n,t,i;\n\tcin >>t;\n\tfor (i=0;i>m>>n;\n\t\tcout <n)k=f(m,n-1)+f(m-n,n);\n\telse k=f(m,m);\n\treturn (k);\n}\nmain()\n{\n\tint t,m,n,i;\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tprintf(\"%d\\n\",f(m,n));\n\t}\n}"} +{"label": "90", "index": "44628", "code": "int a[1100][1100]={{0}},sa[1100][1100]={{0}};\nint an(int m,int n){\nif (sa[m][n]==1)return a[m][n];\nif (m>=n){a[m][n]=an(m-n,n)+an(m,n-1);sa[m][n]=1;return a[m][n];}\nif (m>t;\na[1][1]=1;sa[1][1]=1;\na[0][0]=1;\nfor (int i=0;i<=1000;i++)sa[i][0]=1;\nint M,N;\nfor (int i=0;i>M>>N;\ncout<>t;\n\twhile(i>m>>n;\n\t cout<> t;\n\tfor (i = 0; i < t; i++)\n\t cin >> m[i] >> n[i];\n\tfor (i = 0; i < t; i++)\n\t cout << place(m[i], n[i]) << endl;\n\treturn(0);\n } "} +{"label": "90", "index": "44631", "code": "/*\n * fangpingguo.cpp\n *\n * Created on: 2010-12-1\n * Author: 378073652\n */\n\nint s=0;\nint number(int x ,int y,int z,int num){\n\tint i;\n\n\tif(x==0&&y>=num) {s=s+1;}\n\tif(x==0&&y=0) number(x-i,y,i,num+1);\n\t}\n\t\n return s;\n}\n\n\n\nint main(){\n\tint t,m,n,i;\n\tcin>>t;\n\tfor(i=1;i<=t;i++){\n\t\tcin>>m>>n;\n\t\tcout<=b)\n {\n x=apple(a-b,b);\n }\n else\n {\n x=0;\n }\n plan=apple(a,b-1)+x;\n }\n return plan;\n}\n"} +{"label": "90", "index": "44633", "code": "int way=0;\nint main()\n{\n int apple(int n,int m);\n int t,n,m,i;\n cin>>t;\n for(i=0;i>n>>m;\n cout<m)\n way=apple(n,m-1)+apple(n-m,m);\n else\n way=apple(n,n);\n }\n return way;\n}\n"} +{"label": "90", "index": "44634", "code": "int main()\n{\n\tint sort(int M , int N) ;\n\tint n , M , N , k ;\n\tcin >> n ;\n\tint i = 1 ;\n\tdo\n\t{\n\t\tcin >> M >> N ;\n\t\tk = sort(M , N) ;\n\t\tcout << k << endl ;\n\t\ti++ ;\n\t}while (i <= n) ;\n\treturn 0 ;\n}\nint sort(int M , int N)\n{\n\tif (M <= 1 || N == 1)\n\t\treturn 1 ;\n\telse\n\t{\n\t\tif (M < N)\n\t\t\treturn sort(M , M) ;\n\t\telse\n\t\t\treturn ( sort(M - N , N) + sort(M , N - 1) ) ;\n\t}\n}"} +{"label": "90", "index": "44635", "code": "\nint f(int m,int n)\n{\n\tint x=m,y=n;\n\tif(x==0||y==0||y==1)\n\t\treturn 1;\n\tif(x=y)\n\t\treturn(f(x,y-1)+f(x-y,y));\n}\nint main()\n{\n\tint n,a[999],b[999],i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i= j;\n\tfor (i = j; i < m; i++)\n\t\ts = s + fun(m - i, n - 1, i);\n\treturn s;\n}\nint main() {\n\tint n, m, s;\n\tint t;\n\tcin >> t;\n\twhile (t--) {\n\t\tcin >> m >> n;\n\t\tif (n > m)\n\t\t\tn = m;\n\t\ts = fun(m, n, 0);\n\t\tcout << s << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44637", "code": "\nint f(int m,int n)\n{\n\tint k;\n\tif (m==1)\n\t\treturn 1;\n\tif (n==1)\n\t\treturn 1;\n\telse \n\t{\n\t\tif (m>n) \n\t\t\tk=f(m,n-1)+f(m-n,n);\n\t\tif (m==n)\n\t\t\tk=f(m,n-1)+1;\n\t\tif (m> t;\n\tfor (int i=0;i>m >>n;\n\t\tl=f(m,n);\n\t\tcout << l<< endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44638", "code": "int f(int m,int n)\n{if(n==1||m==0) return 1;\n else if(m<0) return 0;\n else return (f(m,n-1)+f(m-n,n));\n\n\n}\nint main(){\nint x,i,m,n;\nint a[100];\ncin>>x;\nfor(i=1;i<=x;i++){cin>>m>>n; a[i]=f(m,n);}\nfor(i=1;i<=x;i++) cout<> t;\t// ????????\n\tfor (i = 1; i <= t; i++)\t// ?????????\n\t{\n\t\tcin >> m_apple >> n_plate;\t// ???????????\n\t\ttotal = combine(m_apple, n_plate);\t// ???????????\n\t\tcout << total << endl;\t// ????????\n\t}\n\n\treturn 0;\n}"} +{"label": "90", "index": "44640", "code": "//\n//\t????:\t?????\n//\t????:\t?M????????N???????????????????????????????\n//\t????:\t? ? ( ? ?: 1000012733 )\n//\t????:\t2010 ? 12 ? 06 ?\n//\nint maxapple ( int, int );\t\t\t\t\t\t\t\t\t\t/*????????????maxapple?????????????????????????\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t????????????????????????????????????*/\nint main()\n{\n\tint t, i, m, n, k;\t\t\t\t\t\t\t\t\t\t\t/*??????????????t??????????i????????m?n??????\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t??????????k??????????????*/\n\tcin >> t;\t\t\t\t\t\t\t\t\t\t\t\t\t//???????????\n\tfor ( i = 1; i <= t; i ++ )\n\t{\n\t\tcin >> m >> n;\t\t\t\t\t\t\t\t\t\t\t//???i??????m????????n???????\n\t\tk = maxapple ( m, n );\t\t\t\t\t\t\t\t\t//????maxapple????????????????????k\n\t\tcout << k << endl;\t\t\t\t\t\t\t\t\t\t//??k??????\n\t}\n\treturn 0;\n}\nint maxapple ( int m, int n )\t\t\t\t\t\t\t\t\t//????maxapple?????????????m?n????????????????\n{\n\tint k;\t\t\t\t\t\t\t\t\t\t\t\t\t\t//k??????????????????????\n\tif ( m == 0 )\n\t\treturn 1;\t\t\t\t\t\t\t\t\t\t\t\t//??m?0????????????????????????????\n\tif ( n == 1 )\n\t\treturn 1;\t\t\t\t\t\t\t\t\t\t\t\t//??n?1?????????????????????????????????????\n\tif ( m >= n )\n\t{\n\t\tk = maxapple ( m - n, n ) + maxapple ( m, n - 1 );\n\t\treturn k;\t\t\t\t\t\t\t\t\t\t\t\t/*??m?????n?????????????n??????m - n????????????\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t?n - 1?????m???????????*/\n\t}\n\tif ( m < n )\n\t{\n\t\tk = maxapple ( m, n - 1 );\n\t\treturn k;\t\t\t\t\t\t\t\t\t\t\t\t//??m??n?????????????n - 1?????m???????????\n\t}\n}"} +{"label": "90", "index": "44641", "code": "int put(int, int);\nint main()\n{\n\tint i, t, app, plate, sum;\n\tcin >> t;\n\tfor (i = 0; i < t; i++)\n\t{\n\t\tcin >> app >> plate;\n\t\tsum = put(app, plate);\n\t\tcout << sum << endl;\n\t}\n\tcin >> sum;\n\treturn 0;\n}\n\nint put(int m, int n)\n{\n\tint sum;\n\tif (n == 1 || m == 0)\n\t\treturn 1;\n\tif (m >= n)\n\t\tsum = put(m - n, n) + put(m, n - 1);\n\telse\n\t\tsum = put(m, n - 1);\n\treturn sum;\n}"} +{"label": "90", "index": "44642", "code": "int f(int m,int n);\nint g(int m,int n)\n{\n\tif (m == 0)\n\t\treturn 1;\n\tif (m == 1)\n\t\treturn 1;\n\treturn f(m,n - 1) + f(m - n,n);\n}\nint f(int m,int n)\n{ \n\tif (n == 1)\n\t\treturn 1;\n\tif (m < n)\n\t\treturn g(m,m);\n\treturn f(m,n - 1) + f(m - n,n);\n}\nint main ()\n{\n\tint m,n,t,i;\n\tcin >> t;\n\tfor (i = 1;i <= t;i++)\n\t{\n\t\tcin >> m;\n\t\tcin >> n;\n\t\tcout << f(m,n) << endl;\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "90", "index": "44643", "code": "int layout(int m,int n){\n int means,i;\n means=0;\n if(n==1)\n means=1;\n else{\n if(m>=n){\n m-=n;\n for(i=1;i<=n;i++)\n means+=layout(m,i);\n n--;\n }else{\n n--;\n }\n }\n return means;\n }\n \nint main(){\n int t,M[21],N[21],K[21],i,j;\n scanf(\"%d\",&t);\n for(j=0;j0)\n\treturn (f(M,N-1)+f(M-N,N));\n\telse\n\t\tif(M==N)\n\t\t\treturn (f(M,N-1)+1);\n\t\telse\n\t\treturn f(M,N-1);\n\t\n}"} +{"label": "90", "index": "44646", "code": "int fun2(int m,int n);\nint fun1(int m,int n);\nint fun1(int m,int n)\n{\n if (m0)\n\t\t\t dp[i][j]=dp[i][j-1]+dp[i-j][j];\n\t\t\telse if(i-j==0)\n\t\t\t dp[i][j]=dp[i][j-1]+1;\n\t\t\telse\n\t\t\t dp[i][j]=dp[i][j-1];\n\t\t}\n\t}\n\twhile(t--)\n\t{\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\\n\",dp[m][n]);\n\t}\n\treturn 0;\n} "} +{"label": "90", "index": "44648", "code": "//?????\n\n\n\n//???? ??????????\nint placeMethodCounts(int m, int n)\n{\n\n\t//??????, ?????????????????????????\n\tif(m == 0 || n == 1)\n\t\treturn 1;\n\n\tif (m >= n)//???????? \n\t\treturn placeMethodCounts(m - n, n) + placeMethodCounts(m, n - 1);\n\telse //?????????????????????? \n\t\treturn placeMethodCounts(m, m);\n}\n\nint main()\n{\n\tint t,i;\n\tint m[MAX_T], n[MAX_T];\n\n\tscanf(\"%d\", &t);\n\n\tfor (i = 0; i < t; i++)\n\t\tscanf(\"%d %d\", &m[i], &n[i]);\n\n\tfor (i = 0; i < t; i++)\n\t\tprintf(\"%d\\n\", placeMethodCounts(m[i], n[i]));\n\n\treturn 0;\n}"} +{"label": "90", "index": "44649", "code": "main()\n{ int f[501][501],i,j,num,n,m;\n for (i=1;i<=500;i++)\n {f[i][1]=1; f[1][i]=1; f[i][0]=1;}\n \n for (i=2;i<=500;i++)\n for (j=2;j<=500;j++)\n { if (i>j) f[i][j]=f[j][j];\n else f[i][j]=f[i-1][j]+f[i][j-i];\n }\n scanf(\"%d\",&num);\n for (i=0;i=y){\n\t\tr=fenfa(x,y-1)+fenfa(x-y,y);\n\t}\n\treturn r;\n}"} +{"label": "90", "index": "44652", "code": "int apple(int a,int b)\n{\n int i,c=0;\n if(b==1) return(1);\n if(a==0) return(1);\n if(a<0) return(0);\n else return(apple(a,b-1)+apple(a-b,b));\n}\nint main()\n{\n int n,i,a,b,c;\n scanf(\"%d\",&n);\n for(i=0;i=j)\n\t\t\t\t a[j][k]=a[j-1][k]+a[j][k-j];\n\t\t\t else\n\t\t\t\t a[j][k]=a[j-1][k];\n\t printf(\"%d\\n\",a[n][m]);\n }\n}"} +{"label": "90", "index": "44656", "code": "\nint put(int M, int N) //???M?????N???????\n{\n\tif ( N == 1 ) //??????????1 \n\t\treturn 1;\n\tif ( M < N ) //M= N )\n\t\treturn put( M, N - 1 ) + put ( M - N, N ); //M>=N,??????????????? \n}\n\nint main () //???\n{\n\tint t, M, N, i;\n\tcin >> t; //t??? \n\tfor ( i = 0; i < t; i ++ ) \n\t{\n\t\tcin >> M >> N;\n\t\tcout << put( M, N ) << endl;\n\t}\n\treturn 0;\n} //?????\n"} +{"label": "90", "index": "44657", "code": "int main()\n{\n int num(int m, int n);\n int t,i,x[100],m,n;\n scanf(\"%d\", &t);\n for(i=1;i<=t;i++)\n {\n scanf(\"%d%d\", &m, &n);\n x[i]=num(m,n);\n }\n for(i=1;i<=t;i++)\n {\n printf(\"%d\\n\", x[i]);\n }\n \n return 0;\n}\n\n int num(int m, int n)\n {\n \n\tif(n==1||m==0)\n\t{\n return 1;\n }\n else if(mn)\n\tx=result(m,n-1)+result(m-n,n);\n\t else if(m==n)\n\t x=result(m,n-1)+1;\n\t else x=result(m,n-1);\n\t}\n\treturn(x);\n}"} +{"label": "90", "index": "44659", "code": "int main()\n{\nint full(int M,int N);\nint empty(int M,int N);\nint t,a[20],b[20],i;\nscanf(\"%d\",&t);\nfor(i=0;iN)\nc=full(M-N,N)+empty(M-N,N);\nreturn(c);\n}\nint empty(int M,int N)\n{int full(int M,int N);\nint c;\nif(N==1)\nc=0;\nelse\nif(N==2)\nc=1;\nelse\nc=full(M,N-1)+empty(M,N-1);\nreturn(c);\n}\n"} +{"label": "90", "index": "44660", "code": "int main()\n{\n\tint t,m,n,i;\n\tint f(int,int);\n\tscanf(\"%d\\n\",&t);\n\tfor(i=0;i=1)\n\t{\n\t\tif (m>=n&&n!=1) s=f(m-n,n)+f(m,n-1);\n\t\telse if (m>num; //??????????\n\tfor (i=1;i<=num;i++)\n\t{\n\t\tcounter=0; //??counter?????0\n\t\tint n,m;\n\t cin>>n>>m; //???????\n\t\tfind(n,m); //??????\n\t\tcout<=b)\n\t\t\tfind(a-b,b); //???????\n\t}\n}\n\n"} +{"label": "90", "index": "44663", "code": "\nint dispose(int m, int n)\n{\n\tif(n == 1 || m <=1 )\n\t\treturn 1;\n\tif(m < n)\n\t\treturn dispose(m, m);\n\treturn dispose(m, n-1) + dispose(m-n, n);\n}\n\nint main()\n{\n\tint t, m, n;\n\tcin >> t;\n\twhile(t)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << dispose(m, n) << endl;\n\t\tt--;\n\t}\n}"} +{"label": "90", "index": "44664", "code": "int dudu (int m,int n)\n{\n\tint f;\n\tif (m n * max)\n {\n return 0;\n }\n if (m < max)\n {\n max = m;\n }\n for (int i = 1; i <= max; i++)\n {\n count += set(m - i, n - 1, i);\n }\n return count;\n}\nint main()\n{\n int k;\n cin >> k;\n while (k--)\n {\n int m, n;\n cin >> m >> n;\n cout << set(m, n, 100) << endl;\n }\n return 0;\n}"} +{"label": "90", "index": "44666", "code": "int num = 0;\nint fenpei(int a, int b)\n{\n\tif(b == 0 || a < 0 )\n\t\treturn 0;\n\tif(a == 1 || a == 0 || b == 1)\n\t\treturn 1;\n\treturn fenpei(a , b - 1) + fenpei(a - b , b);\n}\nint main()\n{\n\tint i = 0;\n\tcin >> i;\n\twhile(i > 0)\n\t{\n\t\tint panzi = 0, apple = 0;\n\t\tcin >> apple >> panzi;\n\t\tcout << fenpei(apple,panzi) << endl;\n\t\ti--;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44667", "code": "\nint main()\n{\n int n,M,N,i;\n int a[21]={0};\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n {\n scanf(\"%d %d\",&M,&N);\n int f(int a,int b);\n a[i]=f(M,N);\n }\n for(i=1;i<=n;i++)\n {\n printf(\"%d\\n\",a[i]);\n }\n return 0;\n}\n\n\n int f(int a,int b)\n {\n int c;\n if((b==1)||(a==1))\n c=1;\n else\n {\n if(ab)\n c=f(a,b-1)+f(a-b,b);\n }\n return (c);\n }\n"} +{"label": "90", "index": "44668", "code": "int f(int m,int n)\n{\n if(m==0||n==1)\n return 1;\n if(m=n)\n return f(m,n-1)+f(m-n,n);\n}\n\nint main()\n{\n int t;\n scanf(\"%d\",&t);\n int i,m,n,a;\n for(i=0;i1)\n {if(a>=b)\n k=p(a,b-1)+p(a-b,b);\n else k=p(a,b-1);}\n if(b==1) k=1; \n return(k);\n}\n"} +{"label": "90", "index": "44670", "code": "void main()\n{\n\tint f(int m,int n);\n\tint k,i,m,w,n;\n\tscanf(\"%d\",&k);\n\tfor(i=0;i>t;\n\twhile(i<=t)\n\t{\n\t\tcin>>a>>b; \n\t\tcout<< f(a,b)<>t;\n\twhile(t>0)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<1)\n {\n int i;\n for(i=0;i<=l;i++)\n if(m-i>=0)\n c=c+f(m-i,n-1,i);\n }\n else if(m<=l)\n c=1;\n else\n c=0;\n return c;\n}\nint main()\n{\n int m[21];\n int n[21];\n int p,w,t;\n scanf(\"%d\",&t);\n for(w=1;w<=t;w++)\n scanf(\"%d %d\",&m[w-1],&n[w-1]);\n for(w=1;w<=t;w++)\n {\n p=f(m[w-1],n[w-1],m[w-1]);\n printf(\"%d\\n\",p);\n }\n return 0;\n}"} +{"label": "90", "index": "44677", "code": "int f(int m,int n)\n{ \n int k;\n if(mN)\n return apple(M,N-1)+apple(M-N,N);\n else if(M==N)\n return apple(M,N-1)+1;\n else\n return apple(M,M);\n }\n}\nmain()\n{\n int t,i;\n scanf(\"%d\",&t);\n int *M,*N;\n M=(int*)malloc(t*sizeof(int));\n N=(int*)malloc(t*sizeof(int));\n for(i=0;iN)\n\t\t\t{\n\t\t\t\ts=s+check(M-N,N)+check(M,N-1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ts=s+check(M,M);\n\t\t\t}\n\t\t}\n\t}\n\treturn(s);\n}\n"} +{"label": "90", "index": "44680", "code": "int f(int M,int N)\n{\n int sum1,sum2,sum;\n if(M<0) return 0;\n if(M==0) return 1;\n else\n {\n if(N==1) return 1;\n else \n {\n sum1=f(M,N-1);\n if(M==1) return 1;\n else \n {\n sum2=f(M-N,N);\n }\n }\n }\n sum=sum1+sum2;\n return sum;\n}\nmain()\n{\n int n;\n scanf(\"%d\",&n);\n int a[21],b[21];\n for(int i=0;i=n)\n return f(m,n-1)+f(m-n,n);\n}\n"} +{"label": "90", "index": "44684", "code": "//?? - ????? \n\n int sum=0;\nint main ()\n{\n int t,n,m;\n int i,j;\n int num(int m,int n);\n scanf(\"%d\",&t);\n for(i=0;i=1&&b>=1&&a>=b)\n return place(a,b-1)+place(a-b,b);\n if (a>=1&&b>=1&&a=n)\n\t\t\t\treturn(f(m,n-1)+f(m-n,n));\n\t\t\telse\n\t\t\t\treturn(f(m,m));\n}\nvoid main()\n{\n\tint i,t,g[20][2];\n\tscanf(\"%d\",&t);\n\tfor(i=0;in)\n {\n s=bf(n-1,m)+bf(n,m-n);\n } \n }\n else if(mn)\n {\n s=bf(n-1,m)+bf(n,m-n);\n }\n return s;\n}\nint main()\n{\n int t,i,n,m;\n scanf(\"%d\",&t);\n for(i=0;i>t;\n\tint i;\n\tfor (i=0;i>m>>n;\n\t\tcout<0;d--){\n\tscanf(\"%d%d\",&M,&N);\n\tprintf(\"%d\\n\",f(M,N));\n\t}\n}\nint f(int m,int n)\n{\n\tif((m==1)||(n==1))\n\t\treturn 1;\n\telse if(m<=n)\n\t\treturn (f(m,m-1)+1);\n\telse\n\t\treturn (f(m,n-1)+f(m-n,n));\n}\n"} +{"label": "90", "index": "44691", "code": "int divide(int,int);\nint main()\n{\n\tint group,platenum,applenum;\n\tint i;\n\tcin>>group;\n\tfor(i=0;i>applenum>>platenum;\n\t\tcout<=p) return divide(a,p-1)+divide(a-p,p);\n\telse return divide(a,p-1);\n}\n"} +{"label": "90", "index": "44692", "code": "int K(int,int,int);\nint main()\n{\n\tint t,N,M,i,s;\n\tcin>>t;\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tcin>>M>>N;\n\t\tif(N>M) N=M;\n\t\ts=K(M,N,0);\n\t\tcout<=f;\n\tfor(j=f;j> t;\n\tfor (int i = 0; i < t; i++)\n\t{\n\t\tcin >> a >> p;\n\t\tcout << Apple(a, p) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44697", "code": "int function(int m,int n)\n{\n\tif(m<0||n==0)\n\t\treturn 0;\n\tif(m==1||n==1||m==0)\n\t\treturn 1;\n\telse\n\t\treturn (function(m-n,n)+function(m,n-1));\n}\nint main()\n{\n\tint t,m,n,i;\n\tcin>>t;\n\tfor(i=0;i>m>>n;\n\t\tcout<m) return f(m,m);\n else return f(m,n-1)+f(m-n,n);\n}\n"} +{"label": "90", "index": "44700", "code": "int main()\n{\n\tint check(int M,int N);\n\tint m,n,t,i,k;\n\tscanf(\"%d\\n\",&t);\n\tfor(i=0;iN)\n\t\t{\n\t\t s=s+check(M-N,N)+check(M,N-1);\n\t\t}\n\t else\n\t\t{\n\t\t if(M==N)\n\t\t\t{\n\t\t\t s=s+1+check(M,N-1);\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t s=s+check(M,M);\n\t\t\t}\n\t\t}\n\t}\n\treturn(s);\n}\n"} +{"label": "90", "index": "44701", "code": "int apple(int m,int n)\n{\n int K;\n if(m==0)\n {\n K=1; \n }\n if(n==1)\n {\n K=1; \n }\n else if(m>=n)\n {\n K=apple(m,n-1)+apple(m-n,n);\n } \n else if(m=N)\n\t{\n\t\tc=f(M,N-1)+f(M-N,N);\n\t}\n\telse c=f(M,N-1);\n\treturn c;\n}"} +{"label": "90", "index": "44703", "code": "\nint count=0;\n\nint f(int m,int n)\n{\n\tint a=0;\n\tint b=0;\n\tif(m=n)//???????????\n\t{\n\t\tif(m>0)//???????0?\n\t\t\ta=f(m-n,n);//???????\n\t\tif(n>1)//????1?\n\t\t\tb=f(m,n-1);//??????\n\t}\t\n\tif(n==1)//??1??????\n\t{\n\t\treturn 1;\n\t}\n\tif(m==0)//????????\n\t{\n\t\treturn 1;\n\t}\n\treturn (a+b);\n}\n\n\nint main()\n{\n\tint t;\n\tcin>>t;\n\twhile(t--)\n\t{\n\t\tint m,n;\n\t\tcin>>m>>n;\n\t\tcout<>n;\n\twhile(n--)\n\t{\n\t\tcin>>apple>>dish;\n\t\tfunction(apple,dish,0);\n\t\tcout<y)\n\t sum+=a(x,y-1)+a(x-y,y);\n\t else\n\t\tsum+=a(x,y-1)+a(x-y,x-y);\n\t}\n\t\n\treturn(sum);\n}\n\n"} +{"label": "90", "index": "44706", "code": "int total;\nint setapples(int m,int n)\n{\n\tif(m==0||n==1)\n\t\t\treturn (1);\n\t\t\n\telse\n\t{\n\t\tif(m>times;\n\tfor(i=0;i>m[i]>>n[i];\n\tfor(i=0;i>t;\n while(t--)\n {\n cin>>m>>n;\n cout<b)\n return put(a,b-1)+put(a-b,b);\n} \n \n \n"} +{"label": "90", "index": "44709", "code": "int count(int x,int y)\n{\n\tif(y==1||x==0)\n\t\treturn 1;\n\tif(x>t;\n\tfor(i=0;i>m>>n;\n\t\tcout<=j)\n {\n a[i][j]=a[i][j-1]+a[i-j][j];\n }\n else\n {\n a[i][j]=a[i][i];\n }\n }\n }\n scanf(\"%d\",&t);\n for (i=1;i<=t;i++)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\\n\",a[m][n]);\n }\n getchar();\n getchar();\n}"} +{"label": "90", "index": "44711", "code": "int f(int M,int N);\nint main()\n{\n\tint M,N,K,t;\n\tscanf(\"%d\",&t);\n\twhile(t--)\n\t{\n\t\tscanf(\"%d %d\",&M,&N);\n\t\tK=f(M,N);\n\t\tprintf(\"%d\\n\",K);\n\t}\n\treturn 0;\n}\nint f(int M,int N)\n{\n\tif(M==0) return 1;\n\tif(N==1) return 1;\n\tif(Mm)\n return f(m,m);\n if(n<=m)\n return f(m,n-1)+f(m-n,n);\n}\nint main()\n{\n int t;\n scanf(\"%d\",&t);\n while(t>0)\n {\n int m,n;\n scanf(\"%d%d\",&m,&n);\n printf(\"%d\\n\",f(m,n));\n t--;\n }\n}\n"} +{"label": "90", "index": "44713", "code": "int f(int m,int n)\n{\n\tif(n<=0)\n\treturn 0;\n\tif(n==1)\n\treturn 1;\n\tif(m=i)\n f[i][j]=f[i][j-i]+f[i-1][j];\n else\n f[i][j]=f[i-1][j];\n }\n }\n }\n printf(\"%d\\n\",f[n][m]);\n }\n }\n \n \n \n"} +{"label": "90", "index": "44715", "code": "\tint f(int n,int a)\n\t{\n\t\tint j,r;\n\t\tif(n==0)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\telse if(a==1)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\tif(n=n)\n\t\t\t\t\t\ta[m][n]=a[m-n][n]+a[m][n-1];\n\t\t\t\t\telse\n\t\t\t\t\t\ta[m][n]=a[m][n-1];\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",a[M][N]);\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44717", "code": "\nint function(int m,int n,int min)\n{\n\tif(n==1)return 1;\n\tint a=0;\n\tfor(int i=min;i<=m/n;i++) //bug :??min\n\t\ta+=function(m-i,n-1,i);\n\treturn a;\n}\n\nint main()\n{\n\tint t,m,n;\n\tcin>>t;\n\tfor(int w=0;w>m>>n;\n\t\tcout<=0&&t<=20)\n\t{\n\t\tfor(i=1;i<=t;i++)\n\t\t{\n\t\t\tscanf(\"%d%d\",&m,&n);\n\t\t\tk=f(m,n);\n\t\t\tprintf(\"%d\\n\",k);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44719", "code": "int main()\n{\n\tint f(int x,int y);\n\tint t, m[25]={0}, n[25]={0}, i;\n\tscanf(\"%d\", &t);\n\tfor(i=0;iy) full=f(x-y,y);\n\t empty=f(x,y-1);\n\t return(empty+full);\n\t}\n}\n \n"} +{"label": "90", "index": "44720", "code": "/**\n* @file 1000010424_7.cpp\n* @author ???\n* @date 2010?12?1\n* @description\n* ??????: ????? \n*/\n\n\n\nint NumOfChoices(int, int, int);\t\t\t\t\t\t\t//??m?????n????????????\n\nint main()\n{\n\tint cases, apples, plates;\n\n\tcin >> cases;\n\n\tfor(; cases >= 1; cases--)\n\t{\n\t\tcin >> apples >> plates;\t\t\t\t\t\t\t//?????????????\n\n\t\tcout << NumOfChoices(apples, plates, 0) << endl;\t//??????\n\t}\n\n\treturn 0;\n}\n\nint NumOfChoices(int m, int n, int min)\n{\n\tint apples;\t\t\t\t\t\t\t\t\t\t\t\t//??????????\n\tint sum = 0;\t\t\t\t\t\t\t\t\t\t\t//???????\n\n\n\tif(m == 0)\n\t\treturn 0;\t\t\t\t\t\t\t\t\t\t\t//??????????0???????m??0???????????????????\n\n\tif(n == 1)\t\t\t\t\t\t\t\t\t\t\t\t//????????????\n\t{\n\t\tif(m >= min)\n\t\t\treturn 1;\t\t\t\t\t\t\t\t\t\t//???????????\n\t\telse\n\t\t\treturn 0;\n\t}\n\n\tfor(apples = min; apples <= m; apples++)\t\t\t\t//???????????????????\n\t\tsum += NumOfChoices(m - apples, n - 1, apples);\n\n\treturn sum;\n}\n"} +{"label": "90", "index": "44721", "code": "//****************************************\n//*????? **\n//*??? 1100012927 **\n//*2011.11.21 **\n//****************************************\nint f(int, int);\nint g(int, int);\nint sum2 = 0;\nint main()\n{ \n int t, M, N, i, sum;\n cin >> t;\n for (i = 0; i < t; i++)\n {\n sum = 0;\n cin >> M >> N;\n sum += f(M, N);\n cout << sum<=min) return 1;\n\t\telse return 0;\n\t}\n\tfor(int i=min;i<=apple;i++)\n\t{\n\t\tcount+=put(apple-i,plate-1,i);\n\t}\n\treturn count;\n}\nint main()\n{\n\tint t;\n\tcin>>t;\n\twhile(t--)\n\t{\n\t\tint m,n;\n\t\tcin>>m>>n;\n\t\tcout<a) z=apple(a,a);\n\telse z=apple(a,b-1)+apple(a-b,b);\n\treturn z;\n}\nvoid main()\n{\n\tint m[20],n[20],s,i;\n\tscanf(\"%d\",&s);\n\tfor(i=0;i=n)\n\t\treturn F(m,n-1)+F(m-n,n);\n\treturn F(m,n-1);\n}\n\nint main()\n{\n\tint t,m,n;\n\tcin>>t;\n\twhile(t--)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<=n) return (apple(m,n-1)+apple(m-n,n));\n}\n\nint main ()\n{\n int m,n,t,i;\n cin>>t;\n for (i=0;i>m>>n;\n cout<= n) res += dfs(m-n, n);\n\treturn res;\n}\nint main() {\n\tint t, m, n;\n\tcin >> t;\n\twhile (t--) {\n\t\tcin >> m >> n;\n\t\tcout << dfs(m,n) << endl;\t\n\t}\n}\n"} +{"label": "90", "index": "44730", "code": "int put(int m,int n)\n{\n\tif(m==1||n==1||m==0)\n\t\treturn 1;\n\tif(m<0||n==0)\n\t\treturn 0;\n\t\treturn \tput(m,n-1)+put(m-n,n);\n\t\n}\nint main()\n{\n\tint t,M,N,i,sum;\n\tcin>>t;\n\tfor(i=1;i<=t;i++)\n\t\t{\ncin>>M>>N;\n\t \tcout<=j;\n\tfor(i=j;im)\n\t\t\tn=m;\n\t\ts=f(m,n,0); \n\t\tprintf(\"%d\\n\",s);\n}\n}\n"} +{"label": "90", "index": "44732", "code": "\tint kong(int m,int n);\n\tint bukong(int m,int n);\nint main()\n{\n\tint i,t;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i0)\n\t\treturn 0;\n\telse\n\treturn kong(m,n-1)+bukong(m,n-1);\n}\n\nint bukong(int m,int n)\n{\n\tif(m==n)return 1;\n\tif(m>n)\n\treturn kong(m-n,n)+bukong(m-n,n);\n\tif(m=m)\n\t{\n\t\tfor (i=1;i<=m;i++) k+=f(n-i,i);\n\t\treturn k;\n\t}\n\tif (n>k;\n\tfor (i=1;i<=k;i++)\n\t{\n\t\tcin>>n>>m;\n\tcout<N) K=noblank(M-N,N)+MTOblank(M-N,N);\n if(M==N) K=1;\n if(M=j;\n }\n for(i=j;i0)\n\t{\n\tscanf(\"%d%d\",&m,&n);\n z=count(m,n);\n\tprintf(\"%d\\n\",z);\n\tt--;}\n return 0;\n}\nint count(int m,int n)\n{ \n\tif((n==1)||(m==1)) return(1);\n\telse if(n>m) return(count(m,n-1));\n\telse if(n==m) return(1+count(m,n-1));\n\telse return(count(m,n-1)+count(m-n,n));\n}\n"} +{"label": "90", "index": "44738", "code": "int ans(int x, int y)\n{\n\tif (y == 1)return 1;\n\tif (x == y)return (ans(x, y - 1) + 1);\n\tif (x < y)return ans(x, x);\n\tif (x > y)return ans(x, y - 1) + ans(x - y, y);\n}\nint main()\n{\n\tint t, m[100], n[100];\n\tcin >> t;\n\tfor (int i = 0; i < t; i++)\n\t{\n\t\tcin >> m[i] >> n[i];\n\t\tcout << ans(m[i], n[i]) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44739", "code": "int f(int m,int n)\n{\n\tint c;\n\tif(m>=n)\n\t{\n\t\tif(n==1||m==1)\n\t\tc = 1;\n\t\telse if(m==2&&n!=1)\n\t\t{\n\t\t\tc = 2;\n\t\t}\n\t\telse if(m==0)\n\t\tc = 1;\n\t\telse\n\t\tc = f(m-n,n)+f(m,n-1);\n\t\treturn c;\n\t}\n\telse\n\t{\n\t\tc = f(m,m);\n\t\treturn c;\n\t}\n} \nint main()\n{\n\tint f(int,int);\n\tint x,y,t,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=b)\n\t\t{\n\t \t x=f(a-b,b);\n\t y=f(a,b-1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=0;\n\t\t\ty=f(a,a);\n\t\t}\n\t\ts=x+y;\n\t}\n\treturn s;\t\n}\n\n\n\nint main()\n{\n\tint m,n,k,i;\n\tscanf(\"%d\",&k);\n\tfor(i=0;i>t;\n\tfor(int i=0;i>M>>N;\n\t\tputApple(M,N);\n\t\tcout<=N)\n\t\t{\n\t\t\tputApple(M-N,N);\n\t\t\tputApple(M,N-1);\n\t\t}\n\t\telse\n\t\t\tputApple(M,M);\n\t}\n}"} +{"label": "90", "index": "44743", "code": "int fang(int m,int n)\n{\n\tint c;\n\tif(n==1)\n\t\tc=1;\n\telse if(m==1)\n\t\tc=1;\n\telse if(m==0)\n\t\tc=1;\n\n\telse if(m>=n)\n\t{\n\t\tc=fang(m,n-1)+fang(m-n,n);\n\t}\n\telse if(mk) a[j][k]=a[j-k][k]+a[j][k-1];\n }\n }\n printf(\"%d\\n\",a[M][N]); \n }\n}\n"} +{"label": "90", "index": "44745", "code": "\n\n\nint f(int m,int n)\n{\nif(m==0||m==1) return 1;\nif(n==0||n==1) return 1;\nif(m m)//??????????\n\t\treturn apple(m, m);//??????????\n\treturn (apple(m - n, n) + apple(m, n - 1));//???????\n}\n\nint main()\n{\n\tint t, m, n, i, k;\n\tcin >> t;//t????????\n\tfor(i = 1; i <= t; i ++)\n\t{\n\t\tcin >> m >> n;//m,n???????????\n\t\tk = apple(m, n);//??????\n\t\tcout << k << endl;//???????\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44748", "code": "\n\nint f(int, int);\n\nint main()\n{\n\tint n;\n\tcin >> n;\n\n\twhile(n--)\n\t{\n\t\tint m, n;\n\t\tcin >> m >> n;\n\n\t\tcout << f(m, n) << endl;\n\t}\n\n\treturn 0;\n}\n\nint f(int m, int n)\n{\n\tif (m == 1 || n == 1 || m == 0) return 1;\n\n\tif (m < 0) return 0;\n\n\treturn f(m - n, n) + f(m, n - 1);\n}"} +{"label": "90", "index": "44749", "code": "int func(int M,int N)\n{\n\tint ans;\n\tif(N==1)\n ans=1;\n\telse if(M>N) \n\t ans=func(M,N-1)+func(M-N,N);\n\telse if(M==N)\n\t ans=func(M,N-1)+1;\n\telse\n\t\tans=func(M,N-1);\n\treturn ans;\n}\nint main()\n{\n\tint m,n,t,i,k[20];\n\t\n\tscanf(\"%d\",&t);\n\tfor(i=0;i= p)\n\t\treturn 1;\n\tfor (int i = p; i <= apple / dish; i++)\n\t\tsum += Arrange_Apple(i, dish - 1, apple - i);\n\treturn sum;\n}\n\nint main() {\n\tint dish = 0, apple = 0, t, i;\n\tcin >> t;\n\tfor (i = 0; i < t; i++) {\n\t\tcin >> apple >> dish;\n\t\tcout << Arrange_Apple(0, dish, apple) << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44751", "code": "\nint an(int m,int n)\n{\n\tint c;\n\tif(n==1||m==0||m==1)\n\t\tc=1;\n\telse \n\t{\tif(m<0)\n\t\t\tc=0;\n\t\telse\n\t\t\tc=an(m,n-1)+an(m-n,n);\t\n\t}\n\treturn (c);\n}\n\nint main()\n{\n\tint t;\n\tcin>>t;\n\twhile(t--)\n\t{\n\t\tint m,n,x;\n\t\tcin>>m>>n;\n\t\tx=an(m,n);\n\t\tcout<n) a=f(m,n-1)+f(m-n,n);\n\t else a=1+f(m,n-1);\n\treturn(a);\n}\n\nint main()\n{\n\tint f(int m,int n);\n int i,m,n,c,t;\n scanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++) \n\t{scanf(\"%d%d\",&m,&n);\n\tc=f(m,n);\n\tprintf(\"%d\\n\",c);} \n return 0; \n}"} +{"label": "90", "index": "44753", "code": "//???2010?12?1?\n\n//???1000010586_???\n\n//????????\n\nint num;\nint make( int M , int N ); //????make????????????\nint work( int M , int j ); //????work???????????\nint main()\n{\n\tint M , N , t , k , i; //????\n\tcin >> t; //?????? \n\tfor ( i = 1 ; i <= t ; i++ )\n\t{\n\t\tk = 0; //????\n\t\tnum = 0; //??????\n\t\tcin >> M >> N; //?? \n\t\tk = make( M , N ); //??????\n\t\tcout << k << endl; //??\n\t}\n\treturn 0;\n}\nint make( int M , int N )\n{\n\tint j , k;\n\tif ( M < N ) //?M= 1 ; j-- ) //???1? ?????????N????? \n\t\t{\n\t\t num = work( M , j );\n\t\t}\n\t\treturn num;\n\t}\n}\nint work( int M , int j )\n{\n\tif ( j == 1 ) //??????? ??1???\n\t{\n\t\tnum = num + 1; //???1 ??\n\t\treturn num;\n\t}\n\telse\n\t\treturn make ( M - j , j ); //??????1 ???M-N????j????????????\n}\n \n"} +{"label": "90", "index": "44754", "code": "int fang(int m1,int n1)\n{\n if(n1==1)return(1);\n if(m1>n1)\n return(fang(m1,n1-1)+fang(m1-n1,n1));\n if(m1==n1)\n return(fang(m1,n1-1)+1);\n if(m1m) n=m;\ns[i]=fun(m,n,0);\n}\nfor(int i=0;i=j; \nfor(i=j;ij){s[j][k]=s[j][k-1];}\n else{s[j][k]=s[j][k-1]+s[j-k][k];}\n }\n } \n return(s[x][y]);\n }\n\n"} +{"label": "90", "index": "44758", "code": "void main()\n{ \n\tint put(int,int);\n\tint n,m,t;\n\tint way;\n\tint i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=n)\n\t\tway=put(m,n-1)+put(m-n,n);\n\treturn(way);\n}\n"} +{"label": "90", "index": "44759", "code": "int f(int m,int n,int *k)\n{ if(m==0){*k=*k+1;return;}\n if(n==1){*k=*k+1;return;}\n if(m-n>=0){f(m-n,n,k);}\n f(m,n-1,k);\n}\nmain()\n{ int g,i,j,*m,*n,*k;\n scanf(\"%d\",&g);\n m=(int*)calloc(g,sizeof(int));\n n=(int*)calloc(g,sizeof(int));\n k=(int*)calloc(g,sizeof(int));\n for(i=0;i0){\n return sum=1;\n }\n else if(n>1&&m==n){\n return sum=1+sort(n,n-1);\n }\n else if (m<=0){\n return sum=0;\n }\n else { return sum=sort(m,n-1)+sort(m-n,n);\n }\n \n \n }\n \n \n main()\n {int N,m,n;\n scanf(\"%d\",&N);\n for(int i=0;i>t;\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tcin>>M>>N;\n\t\tcout<> n;\n\t for(int i = 1; i<= n; i++)\n\t {\n\t\t cin >> apple >> plate;\n\t\t cout << number(apple, plate) << endl;\n\t }\n\t return 0;\n}\nint number(int apple, int plate)\n{\n\tif(apple < 0)\n\t\treturn 0;\n\tif(apple == 0)\n\t\treturn 1;\n\tif(apple > 0 && plate == 1 || apple == 1 && plate > 1)\n\t\treturn 1;\n\telse return number(apple, plate - 1) + number(apple - plate, plate);\n}\n"} +{"label": "90", "index": "44764", "code": "/**\n* @file 1000012907_1.cpp\n* @author ???\n* @date 2010?12?1\n* @description\n* ??????: ????? \n*/\nint K(int a, int b);\t\t\t\t\t\t// ??????\nint main() \n{\n\tint t, i, M, N;\n\tcin >> t;\t\t\t\t\t\t\t\t// t????????\n\tfor (i = 0; i < t; i++)\t\t\t\t\t// i?0???t-1??????????\n\t{\n\t\tcin >> M >> N;\t\t\t\t\t\t// M??????N?????\n\t\tcout << K(M, N) << endl;\t\t\t// ?????????\n\t}\n\treturn 0;\n}\nint K(int a, int b)\n{\n\tif (b == 1 || a == 1 || a == 0)\t\t\t// ??????\n\t{\n\t\treturn 1;\n\t}\t\t\t\t\t\t\t\t\t\t// ??????\n\tif (a < 0)\n\t{\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\t// ???????????????????????????????????????\n\t\t// ??????????????????????????????????N????\n\t\t// ?M???????????N-1?????M????????????????????\n\t\t// ???????N?????M????????????N?????M-N??????????\n\t\treturn (K(a, b - 1) + K(a - b, b));\n\t}\n}\n\n\t \n\n"} +{"label": "90", "index": "44765", "code": "\nint count(int x, int y)\n{\n\tif(x==0||y==1)\n\t\treturn (1);\n\telse if(x=n)\n\t\treturn num(m-n,n);\n\telse\n\t\treturn num(m,m);\n}\nvoid main()\n{\n\tint t,n,m,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=i||(m-i)==0)\n k=k+Dgetnum(m-i,n-1,i);\n }\n \n return k;\n }\n\nint main()\n{\n int i,j,t,m,n;\n cin>>t;\n for(i=0;i>m>>n;\n cout<> t;\n\tfor(i = 1; i <= t; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << baifang(n, m) << endl;\n\t}\n\treturn 0;\n}\nint baifang(int n,int m)\n{\n\tif(m == 0)\n\t{\n\t\treturn 1;\n\t}\n\tif(n == 1)\n\t{\n\t\treturn 1;\n\t}\n\tif(m < n)\n\t{\n\t\treturn (baifang(n - 1, m));\n\t}\n\telse\n\t{\n\t\treturn (baifang(n - 1, m) + baifang(n, m - n));\n\t}\n}"} +{"label": "90", "index": "44772", "code": "int n,m,s=0;\nvoid put (int p,int j,int m)\n{if ((p==n)&&(m==0))s++;\n else if (p!=n)\n {\n for (int i=j;i<=m;i++)if (m-i>=0)put(p+1,i,m-i);\n }\n\n}\nint main()\n{int t;\ncin>>t;\nfor (int i=1;i<=t;i++)\n {\n cin>>m>>n;s=0;\n if (n>m)n=m;\n for (int j=0;j<=m;j++) put(1,j,m-j);\n cout<=0)\n\t{\n\t\tif(x<=1||y<=1)\n\t\tk=1;\n\t\telse\n\t\tk=f(x,y-1)+f(x-y,y);\n\t}\n\treturn(k);\n}\nvoid main()\n{\n\tint a,m[100],n[100],i,k[100];\n\tscanf(\"%d\",&a);\n\tfor(i=1;i<=a;i++)\n\t{\n\t\tscanf(\"%d %d\",&m[i],&n[i]);\n\t\tk[i]=f(m[i],n[i]);\n\t}\n\tfor(i=1;i<=a;i++)\n\t\tprintf(\"%d\\n\",k[i]);\n}"} +{"label": "90", "index": "44775", "code": "main()\n{\n \n int t,i;\n scanf(\"%d\",&t);\n int*a=(int*)malloc(t*sizeof(int));\n int*b=(int*)malloc(t*sizeof(int));\n int apple(int m,int n);\n for(i=0;i> t ;\n\tfor ( j = 0 ; j < t ; j++)\n\t{\n\t\tcin >> m >> n ;\n\t\tfor ( i = 1 ; i <= n ; i++)\n\t\t\tsum = sum + way(m , i , p) ;\n\t\tcout << sum << endl;\n\t\tsum = 0 ;\n\t}\n\treturn 0 ;\n}\nint way(int a , int b , int c)\n{\n\tint num = 0 , j ;\n\tif(b == 1)\treturn 1 ;\n\telse \n\t{\tfor(j = c ; j <= a / b ; j++)\n\t\t\tnum = num + way(a - j , b - 1 , j) ;\n\t}\n\treturn num ;\n}"} +{"label": "90", "index": "44778", "code": "int much(int M,int N)\n{\n\tint x;\n\tif(N==1||M==0) x=1;\n\telse if(Mb&&b!=1)\n z=num(a,b-1)+num(a-b,b);\n return(z);\n}"} +{"label": "90", "index": "44780", "code": "// ?????? ???1000010500 \n// ????? \n// 2010-12-3\n\n\nint ways(int,int);\n\nint main()\n{\n int t,M,N,i,k[100];\n cin >> t; // ???????? \n for (i = 0;i < t;i ++)\n {\n cin >> M >> N; // M?????N??? \n k[i] = ways(M,N); // ?k??????\n }\n for (i = 0;i < t;i ++)\n cout << k[i] << endl;\n return 0;\n}\n\nint ways(int m,int n)\n{\n int k;\n if (n == 1 || m == 0 || m == 1) // ??????????????????? \n return 1;\n if (m >= n) // ?m=n???0?n?????? \n k = ways(m,n - 1) + ways(m - n,n);\n else\n k = ways(m,n - 1);\n return k;\n}\n \n \n \n \n \n \n"} +{"label": "90", "index": "44781", "code": "int times (int,int);\nint main ()\n{\n\tint n, i, m,N, c;\n\tcin >> N;\n\tfor (i = 1; i <= N ; i ++)\n\t{\n\t\tcin >> m >> n;\n\t\tc = times (m, n);\n\t\tcout << c << endl;\n\t}\n\treturn 0;\n}\nint times (int x, int y)\n{\n\tint time;\n\tif (x <= y)\n\t{\n\t\ty = x;\n\t}\n\tif (x == 1)\n\t\treturn 1;\n\tif (y == 1)\n\t\treturn 1;\n\tif (x == 0)\n\t\treturn 1;\n\tif (1)\n\t{\n\t\ttime = times (x , y - 1) + times (x - y, y);\n\t\treturn time;\n\t}\n}\n\t"} +{"label": "90", "index": "44782", "code": "int f(int m,int n)\n{\n\tint count=0;\n\tif(m==0||n==0)\n\t{\n\t\treturn 1;\n\t}\n\telse if(m==1||n==1)\n\t{\n\t\treturn 1;\n\t}\n\telse if(ma[n+1]) break;\n\t\ta[n]=i;\n\t\tss(n-1,m-i);\n\t}\n\treturn 0;\n}\n\nint main()\n{\n\tint n,m;\n\tint k;\n\tscanf(\"%d\",&k);\n\tint i;\n\twhile (k>0)\n\t{\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tfor (i=1;i<=n;i++) a[i]=0;\n\t\ta[n+1]=100;\n\t\tans=0;\n\t\tss(n,m);\n\t\tprintf(\"%d\\n\",ans);\n\t\tk--;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44784", "code": "int kong(int m,int n);\nint zong(int m,int n);\nint have(int m,int n);\nint main()\n{\n\tint a,b,t,i,c[50];\n\tscanf(\"%d\",&t);\n\tfor(i=0;i=n) return(kong(m,n)+have(m,n));\n\telse return(kong(m,n));\n}\nint have(int m,int n){\n\treturn (zong(m-n,n));\n}\n"} +{"label": "90", "index": "44785", "code": "void main()\n{long int f1(long int x,long int y);\nlong int f2(long int x,long int y);\nlong int n,a[20],b[20],i,k[20];\nscanf(\"%ld\",&n);\nfor(i=0;i2) z=f1(x,y-1)+f2(x,y-1);\nelse if(y==2) z=1;\nreturn(z);}\n\nlong int f2(long int x,long int y)\n{long int w;\nif(x-y>=0) w=f1(x-y,y)+f2(x-y,y);\nelse w=0;\nreturn(w);}"} +{"label": "90", "index": "44786", "code": "int n,m,t,cnt;\nvoid f(int x,int left,int last){\n\t//9(\"%d %d %d\\n\",x,left,last);\n\tif(x>n) {if(left==0) cnt++;return;}\n\tfor (int i=last;i<=left/(n-x+1);i++) f(x+1,left-i,i);\n}\nint main(){\n\tscanf(\"%d\",&t);\n\twhile (t--){\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tcnt=0;f(1,m,0);\n\t\tprintf(\"%d\\n\",cnt);\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44787", "code": "int arrange( int a, int l, int before )\n{\n if( l == 1 )\n return 1;\n int sum = 0;\n for( int i = before; i <= a ; i++ )\n if( a - i >= i )\n sum += arrange( a - i, l - 1, i );\n else break;\n return sum;\n}\nint main()\n{\n int t ;\n cin >> t;\n for( int i = 0; i < t; i++ )\n {\n int n, m;\n cin >> m >> n;\n cout << arrange( m, n, 0 ) << endl;\n }\n\n}\n"} +{"label": "90", "index": "44788", "code": "int many(int x, int y);\nint main()\n{\n\tint t, n, m, k;\t\n\tint i;\n\tscanf(\"%d\", &t);\n\tfor(i=0;i=y)\n k=f(x,y-1)+f(x-y,y);\n else\n k=f(x,y-1);\n }\n else\n {\n if(x==0)\n k=1;\n if(y==1)\n k=1;\n }\n return k;\n}\nmain()\n{\n int n;\n scanf(\"%d\",&n);\n for(int i=1;i<=n;i++)\n {\n int x,y;\n scanf(\"%d %d\",&x,&y);\n printf(\"%d\\n\",f(x,y));\n }\n}\n"} +{"label": "90", "index": "44790", "code": "int getNum(int m, int n);\nint main()\n{\n\tint t, M, N, Num;\n\tcin >> t;\n\twhile(t >= 1)\n\t{\n\t\tNum = 0;\n\t\tcin >> M >> N;\n\t\tNum = getNum(M, N);\n\t\tcout << Num << endl;\n\t\tt--;\n\t}\n\treturn 0;\n}\nint getNum(int m, int n)\n{\n\tif(n == 1 || m == 1 || m == 0)\n\t\treturn 1;\n\tif(m < 0)\n\t\treturn 0;\n\tif(n != 1 && m > 1)\n\t\treturn getNum(m, n - 1) + getNum(m - n, n);\n}"} +{"label": "90", "index": "44791", "code": "int la(int n,int m )\n{\n\tif (n==0)return 1;\n\tif (n==1)return 1;\n\telse \n\t{\n\t\tint p;\n\t\tif (m>=n)\n\t\t{\n\t\t\tp = la(n,m-n)+la(n-1,m);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp = la(n-1,m);\n\t\t}\n\t\treturn p;\n\t}\n}\n\nint main()\n{\n\tint k;\n\tcin>>k;\n\tfor (int i =1;i<=k;i++)\n\t{\n\t\tint n,m;\n\t\tcin>>m>>n;\n\t\tcout<> t;\n\tfor(i = 1; i <= t; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tk = fp(m, n);\n\t\tcout << k << endl;\n\t\tp = 0;\n\t}\n\treturn 0;\n}\n\nint fp(int ap, int pl)\n{\n\tif(pl == 1)\n\t\treturn 1;\n\telse\n\t{\n\t\tif(ap < pl)\n\t\t\tk = fp(ap, ap);\n\t\tif(ap == pl)\n\t\t\tk = ap + fp(ap, pl - 1);\n\t\tif(ap > pl)\n\t\t{\n\t\t\tfj(ap, pl, 1);\n\t\t\tk = fp(ap, pl - 1) + p;\n\t\t\tp = 0;\n\t\t}\n\t}\n}\n\nvoid fj(int a, int b, int j0)\n{\n\tint j;\n\tif(b == 1)\n\t\tp++;\n\telse\n\t{\n\t\tfor(j = j0; j <= a / b; j++)\n\t\t\tfj(a - j, b - 1, j);\n\t}\n}\n\t\t\n"} +{"label": "90", "index": "44794", "code": "int f ( int, int);\nint main(){\nint sum;\ncin>>sum;//????\nwhile(sum--)\n\t{int m,n;\n cin>>m>>n;//????????\n cout<=3) return cs(m,n-1);\n\treturn 0;\n}\nint bkcs(int m,int n)\n{\n\tint cs(int m,int n);\n\tif(m==n) return 1;\n\tif(m>n) return cs(m-n,n);\n\treturn 0;\n}\nint cs(int m,int n)\n{\n\treturn kcs(m,n)+bkcs(m,n);\n}\nint main()\n{\n\tint x,m,n;\n\tcin>>x;\n\tfor(int i=1;i<=x;i++)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<> k;\n\tfor(i = 1;i <= k;i++)\n\t{\n\t\tcin >> m >> n;\n\t\tif( m >= n) \n\t\t{\n\t\t\tf(m,n);\n\t\t\tcout << num << endl;\n\t\t\tnum = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tf(m,m);\n\t \tcout << num << endl;\n\t\t\tnum = 0;\n\t\t}\n\t}\n\treturn 0;\t\n}\nvoid f(int m,int n)\n{\n\tint i;\n\tif(m == 0) num++;\n\telse\n\t{\n\t\tfor(i = 0;i <= n - 1;i++)\n\t\t{ \n\t\t\tif(i==0)\n\t\t\t{\n\t\t\t\tif(m >= n) f(m-n,n);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tif(m >= n - i)\tf(m-n+i,n-i);\n\t\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "90", "index": "44797", "code": "int f(int n1,int n2,int n3)\n{\n\tint an=0,i;\n\tif(n1==0||n1==1) an=1;\n\telse\n\t{\n\tif(n2==1) an=0;\n\tif(n2==2)\n\t{\n\t\tif(n1%2==0)\n\t\t{\n\t\tfor(i=n3;i>=n1/2;i--)\n\t\t{\n\t\t\tan=an+1;\n\t\t}\n\t\t}\n\t\telse{\n\t\t\tfor(i=n3;i>n1/2;i--)\n\t\t{\n\t\t\tan=an+1;\n\t\t}\n\t\t}\n\t}\n\telse\n\t{ \n\t\tif(n1%n2==0)\n\t\t{\n\t\tfor(i=n3;i>=n1/n2;i--)\n\t\t{\n\t\t\tif(n1-in1/n2;i--)\n\t\t{\n\t\t\tif(n1-i>t;\n for (i=1;i<=t;i++)\n { cin>>p>>q;\n cout<m)\n\t{x=cal(m,m);} //???????\n\telse \n\t{ x=cal(m,n-1)+cal(m-n,n);} //??????\n\treturn x;}"} +{"label": "90", "index": "44799", "code": "int apple(int N,int M)\n{\n\tint K;\n\tif(N==1) K=1;\n\telse if(M==1) K=1;\n\telse if(M==0) K=1;\n\telse if(M>=N) K=apple(N,M-N)+apple(N-1,M);\n\telse if(M=i) f[i][j]=f[i-1][j]+f[i][j-i];\n else f[i][j]=f[i-1][j];\n for (i=0;i=n)&&(n>1)) \n c=f(m,n-1)+f(m-n,n);\n if(m==0)\n c=1;\n if (n==1) \n c=1;\n if (m> T;\n \n for(t = 0; t < T; t++)\n {\n cin >> m >> n;\n \n cout << f(m, n) << endl;\n }\n \n return 0;\n}\n\nint f(int m, int n)\n{\n if(m >= n && n > 1) return f(m - n, n) + f(m, n - 1);\n else if(m < n && n > 1) return f(m, n - 1);\n else if(n == 1) return 1;\n}\n"} +{"label": "90", "index": "44804", "code": "\nint work ( int m , int n )\n{\n int sum;\n if ( n == 1 ) return 1;\n sum = work ( m , n - 1 );\n if ( m >= n ) sum += work ( m - n , n );\n return sum ;\n}\n\nint main ()\n{\n int t , m , n;\n for ( scanf ( \"%d\" , &t ) ; t > 0 ; t -- )\n {\n scanf ( \"%d%d\" , &m , &n );\n printf ( \"%d\\n\" , work ( m , n ) );\n }\n // getchar (); getchar ();\n return 0;\n}\n"} +{"label": "90", "index": "44805", "code": "//****************************\n//**Title:????? **\n//**Author:???1300017687 **\n//**Date?2013.11.27 **\n//**File?2.cpp **\n//****************************\n\n//????????apple?????basket?????????\nint total(int apple, int basket);\t\t//apple?????basket??????????\nint noempty(int apple, int basket);\t\t//apple?????basket????????????????\nint withempty(int apple, int basket);\t//apple?????basket????????????????????\n\nint main()\n{\n\tint t, m, n;\t\t\t\t\t\t//t???????\n\tcin >> t;\n\tfor (int i = 1; i <= t ; i++)\t\t//??????\n\t{\n\t\tcin >> m >> n;\t\t\t\t\t\n\t\tcout << total(m , n) << endl;\t//??total????\n\t}\n}\n\nint total(int apple, int basket)\n{\n\treturn withempty(apple, basket)+ noempty(apple, basket);\t//total???noempty?withempty??\n}\nint noempty(int apple, int basket)\t\t//apple?????basket????????????????\n{\n\tif (apple < basket)\t\t\t\t\t//??????????????????0\n\t\treturn 0;\n\telse if (apple == basket)\t\t\t//??????????????????\n\t\treturn 1;\n\telse\t\t\t\t\t\t\t\t//????????\n\t\treturn total(apple - basket , basket);\t//????apple-basket?????basket?????????\n}\nint withempty(int apple, int basket)\t//???????????\n{\n\tif (basket <= 1)\t\t\t\t\t//??????????1????????0\n\t\treturn 0;\n\telse\t\t\t\t\t\t\t\t//????????\n\t\treturn total(apple , basket - 1);\t//????apple?????basket-1?????????\n}"} +{"label": "90", "index": "44806", "code": "int sum=0;\nint apple(int m,int n)\n{\n\tsum=0;\n\tif(m==0&&n>0)\n\treturn 1;\n\tif(m==1&&n>0)\n\treturn 1;\n\tif(m>0&&n==1)\n\treturn 1;\n\tif(m<0)\n\treturn 0;\n\tsum=apple(m,n-1)+apple(m-n,n);\n\treturn sum;\n}\nint main()\n{\n\tint q,t,i,m,n;\n\tcin>>t;\n\tfor(i=1;i<=t;i++)\n\t{\n\t\t\n\t\tcin>>m>>n;\n\t\tcout<>q;\n\treturn 0;\n}\n"} +{"label": "90", "index": "44807", "code": "//********************\n// 1.cpp\n// ?? 1200018415\n// 2012 11 26\n//********************\n\nint putapples(int c, int d);\n\nint main()\n{\n\tint m, a, b, i;\n\tcin >> m;\n\tfor (i = 1; i <= m; i++)\n\t{\n\t\tcin >> a >> b;\n\t\tif (a == 0)\n\t\t\tcout << \"1\" << endl;\n\t\telse\n\t\t\tif(a == 1)\n\t\t\t\tcout << b << endl;\n\t\t\telse\n\t\t\t\tcout << putapples(a, b) << endl;\n\t}\n\treturn 0;\n}\n\nint putapples(int c, int d)\n{\n\tif (c == 1 || c == 0 || d == 1)\n\t\treturn 1;\n\tif (c < 0)\n\t\treturn 0;\n\telse\n\t\treturn putapples(c - d, d) + putapples(c, d - 1);\n}\n\n\n"} +{"label": "90", "index": "44808", "code": "void main()\n{\n\tint f(int m,int n);\n\tint k,m[100],n[100],i;\n\tscanf(\"%d\",&k);\n\tfor(i=0;i1&&m>1&&m>=n)\n\t\tresult=f(m,n-1)+f(m-n,n);\n\tif(n>1&&m>1&&mn)\n {\n if(n==1) k=1;\n else k=empty(n-1,m)+empty(n,m-n);\n }\n if(m> t ;//??????? \n for( i = 1 ;i <= t ; i ++ ) //t??? \n {\n cin >> m >> n; //????????? \n sum = dis(m , n);//?????? \n cout << sum << endl;//????? \n } \n return 0 ;\n} \n"} +{"label": "90", "index": "44813", "code": "int f(int m,int n)\n{\n\tint k;\n\tif(n==1||m<=1)k=1;\n\telse \n\t\tif(m>=n)\n\t\t\tk=f(m,n-1)+f(m-n,n);\n\t\telse\n\t\t\tk=f(m,n-1);\n\treturn k;\n}\nvoid main()\n{\n\tint m[20],n[20],t,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;in) return apple(m,n-1)+apple(m-n,n);\n}\nint main()\n{\n int t,i,m,n;\n scanf(\"%d\",&t);\n for(i=1;i<=t;i++)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\\n\",apple(m,n));\n }\n}\n"} +{"label": "90", "index": "44815", "code": "int g(int a, int b)\t;\nint f(int a, int b);\nint i, n, a, b;\nint main()\n{\n\tcin>> n;\n\tfor(i= 0; i< n; i++)\n\t{\n\t\tcin>> a >> b;\n\t\tcout<b) return apple(a,b-1)+apple(a-b,b);\n\telse if(a=n)\n {\n return fen(m-n,n)+fen(m,n-1);\n }\n else\n {\n return fen(m,m);\n }\n} \nint main()\n{\n int a;\n cin >> a;\n int i=0;\n while(i> m >> n;\n \n //s=0;\n cout << fen(m,n) << endl;\n \n i++;\n }\n cin.get();cin.get();cin.get();\n return 0;\n}\n"} +{"label": "90", "index": "44818", "code": "int main()\n{\n\tint apple(int m,int n);\n\tint t,i,m,n;\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tprintf(\"%d\\n\",apple(m,n));\n\t}\n\treturn 0;\n}\nint apple(int m,int n)\n{\n\tint k;\n\tif(m>=n&&n>1)\n\t\tk=apple(m,n-1)+apple(m-n,n);\n\telse if(n>1)\n\t{\n\t\tk=apple(m,n-1);\n\t}\n\telse\n\t\tk=1;\n\treturn (k);\n}\n"} +{"label": "90", "index": "44819", "code": "int sep(int m,int n)\n{\n\tint c;\n\tif(n==1||m==0) c=1;\n\telse if(m= n)\n\t\treturn (waye(m - n, n) + waye(m, n - 1));\n\tif(m < n) return (waye(m, n - 1));\n}\n\nint main()\n{\n\tint t, m,n;\n\tcin >> t;\n\tfor(; t > 0; t--)\n\t{\n\t\tcin >> m >> n;\n\t cout << waye(m, n) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44821", "code": "int ways(int m,int n)\n{\n\tint c=0;\n\tif(m>=0)\n\t{\n\t\tif(m==1||n==1||m==0)\n\t\t{\n\t\t\tc=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc=ways(m,n-1)+ways(m-n,n);\n\t\t}\n\t}\n\telse\n\t{\n\t\treturn 0;\n\t}\n\treturn c;\n}\n\n\nint main()\n{\n\tint t,i=1,m,n;\n\tcin>>t;\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<N&&N!=1)\n return num(M-N,N)+num(M,N-1);\n else if(M==N)\n return num(M,N-1)+1;\n else if(M<=N&&M!=1)\n return num(M,M);\n else if(M==1||N==1)\n return 1;\n}\nmain()\n{\n int t,i=0;\n scanf(\"%d\",&t);\n while(i=n)\n\t\t\tk=put(m-n,n);\n\t\t\n\t\t\tk+=put(m,n-1);\n\n\t}\n\treturn k;\n\n}\n"} +{"label": "90", "index": "44824", "code": "int main()\n{\n\tint m[21],n[21],t,i;\n\tint count1(int,int);\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t\tscanf(\"%d %d\",&m[i],&n[i]);\n\tfor(i=1;i<=t;i++)\n\t\tprintf(\"%d\\n\",count1(m[i],n[i]));\n\treturn 0;\n}\nint count1(int m,int n)\n{\n\tint k;\n\tif(n==1||n==0) return 1;\n\tif(m==1||m==0) return 1;\n\tif(mplate)????*/ return AllFull(apple-plate,plate)+emptyOverone(apple-plate,plate);\n}\nint emptyOverone(int apple,int plate){//???????????????\n\tif(plate==1) return 0;//??\n\t/*?(apple>zushu;\n\tint shuchu=0;\n\twhile(zushu>0){//???????\n\t\tcin>>m>>n;\n\t\tshuchu+=emptyOverone(m,n)+AllFull(m,n);//??????\n\t\tcout<y)\n\t\treturn(put(x-y,y)+put(x,y-1));\n\telse if(x<=y&&x!=1)\n\t\treturn(put(x,x-1)+1);\n\telse\n\t\treturn(1);\n\n\t\t\n\n\t\n}\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t"} +{"label": "90", "index": "44827", "code": "/*???2011?11?28?\n *??????\n *????putapple.cpp\n *???\n */\n\n\nint main()\n{\n\tint n = 0, plate = 0, apple = 0;\t\t\t\t//???????????n?????plate????apple\n\tint putapple(int, int);\t\t\t\t\t\t\t//????putapple??????????plate?????\n\t\t\t\t\t\t\t\t\t\t\t\t\t//apple???????????\n\tcin >> n;\t\t\t\t\t\t\t\t\t\t//??????n\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tcin >> apple >> plate;\t\t\t\t\t\t//??????plate????apple\n\t\tif (plate <= 0)\t\t\t\t\t\t\t\t//????????????\n\t\t{\n\t\t\tcout << \"Error!\" << endl;\n\t\t\tcontinue;\n\t\t}\n\t\tcout << putapple(apple, plate) << endl;\t\t//??????????putapple????????\n\t}\n\treturn 0;\n}\n\n\n//???putapple???????\nint putapple(int apple, int plate)\n{\n\tif (apple < 0)\t\t\t\t\t\t\t\t\t//???????????0???\n\t\treturn 0;\n\telse if (plate == 1)\t\t\t\t\t\t\t//??????1???????\n\t\treturn 1;\n\telse\t\t\t\t\t\t\t\t\t\t\t//?????????????\n\t\treturn putapple(apple - plate, plate) + putapple(apple, plate - 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t//??????????\n\t\t\t\t\t\t\t\t\t\t\t\t\t//???????????????????putapple(apple-plate, plate)?\n\t\t\t\t\t\t\t\t\t\t\t\t\t//?????????????????0\n}\t\t\t\t\t\t\t\t\t\t\t\t\t//??????????????????????putapple(apple, plate-1)?\n\t\t\t\t\t\t\t\t\t\t\t\t\t//??????????????\n"} +{"label": "90", "index": "44828", "code": "int main()\n{\n\tint n,m;\n\tint i,t;\n\tint method(int n,int m);\n\t\n\tscanf(\"%d\",&t);\n\n\tfor(i=0;im)\n\t\tsum+=method(n-1,m);\n\telse\n\t\tsum+=method(n-1,m)+method(n,m-n);\n\treturn sum;\n}\n"} +{"label": "90", "index": "44829", "code": "int num=0;\nint sol(int M,int N)\n{\n if (N==1||M==0||M==1)\n return 1;\n else if (M>=N)\n return sol(M,N-1)+sol(M-N,N);\n else\n return sol(M,N-1);\n} \nint main()\n{\n int t, i, M, N;\n cin >> t;\n for (i=1;i<=t;i++)\n {\n cin >> M >> N;\n cout << sol(M, N) << endl;\n }\n return 0;\n}\n"} +{"label": "90", "index": "44830", "code": "\nint M,N;\n \nint apple(int num,int m)\n{\n\tint i,a;\n int sum=0;\n\tif(num==0)\n\t return sum;\n\t\n\n\telse\n\t{\tif(m>num) \n\t\tfor(i=num;i>0;i--)\n\t\t{\ta=m-i;\n\t\t\tsum+=apple(i,a);\n\t\t}\n else\n\t\t{\n\t\t\tsum+=1;\n\t\t\tnum=m-1;\n\t\t\tsum+=apple(num,m);\n\t\t} \n\t\treturn sum;\n\t}\n}\n\n\n\n\n\nint main()\n{\n\tint t,i;\n\n\tscanf(\"%d\",&t);\n\n\tfor(i=0;i>t;\n\tfor ( i=0 ; i>M[i]>>N[i];\n\t\tcout<=n )\n\t{\n\t\treturn apple( m,n-1 )+apple( m-n,n );\n\t}\n\tif ( m>t;\n for (i=1;i<=t;i++)\n {\n cin >>m >>n;\n k=find (m,n,0);\n cout << k <> n;\n\twhile(n--)\n\t{\n\t\tcin >> a >> b;\n\t\tnum = placeMethod(a, b);\n\t\tcout << num << endl;\n\t}\n\treturn 0;\n}\nint placeMethod(int a, int b)\n{\n\tint sum;\n\tif(a==0)\n\t\treturn 1;\n\tif(b==1)\n\t\treturn 1;\n\tif(a> n;\n\tfor(int i = 1; i <= n; i++)\n\t{\n\t\tint apple, basket;\n\t\tcin >> apple >> basket;\n\t\tcout << putapple(apple, basket) << endl;\n\t}\n\treturn 0;\n}\n\nint putapple(int apple,int basket)\n{\n\tif(apple < 0) return 0; // ??apple <0 ????????\n\tif(basket == 1) return 1; // ??basket == 1 ????????? \n\n\t// ????????????\n\tint situation1 = putapple(apple, basket - 1);\n\n\t// ?????????\n\tint situation2 = putapple(apple - basket, basket);\n\treturn situation1 + situation2; // ????????\n}"} +{"label": "90", "index": "44836", "code": "int f(int m,int n)\n{ if(m<0||n<0) return(0);\n\t\n\telse if(n==1) return(1);\n else if(m==1) return(1);\n else if(m==0) return(1);\n else return(f(m,n-1)+f(m-n,n));\n}\nint main()\n{\n\tint t;\n\tint i;\n\tint m,n;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i>t;\n\twhile(t--)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<>p;\n\tfor (i=1;i<=p;i++) //????p??? \n\t{\n\t\tcin>>m[i]>>n[i]; \n\t\tnum(m[i],n[i]); //????\n\t\tcout< M) // ?N > M?????????\n\t\treturn method(N - 1, M); // ???????????\n\n\t\t/*??????????????????\n\t\t ????????????????1??????*/\n\t\treturn method(N - 1, M) + method(N, M - N);\n}\nint main()\n{\n\tint t, i, K;\n\tcin >> t; // ??????t\n\tfor (i = 0;\ti < t; i++) // ??t?\n\t{\n\t\tcin >> M >> N; // ??????M?????N\n\t\tK = method(N, M); // ??method?????????????\n\t\tcout << K << endl; // ??K\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44840", "code": "\nconst int mov[4][2] = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}};\n\nint m, n, counter;\n\nvoid dfs(int m, int n, int i) {\n\t//cout << m << ' ' << n << endl;\n\tif (n == 0) {\n\t\tif (m == 0) {\n\t\t\t++counter;\n\t\t}\n\t\treturn;\n\t}\n\tfor (; i <= m-n+1; ++i) {\n\t\tdfs(m-i, n-1, i);\n\t}\n}\n\nint main() {\n\tint t, m, n;\n\tcin >> t;\n\twhile (t--) {\n\t\tcounter = 0;\n\t\tcin >> m >> n;\n\t\tdfs(m, n, 0);\n\t\tcout << counter << endl;\n\t}\n}"} +{"label": "90", "index": "44841", "code": "int f(int m,int n)\n{\n\tint k=0;\n\tif(m==0) k=1;\n\tif(m==1) k=1;\n\tif(n==1) k=1;\n if(m1) k=f(m,n-1);\n\tif(m>=n&&n>1) k=f(m,n-1)+f(m-n,n);\n\treturn k;\n}\nint main()\n{\n\tint t,i,k,m,n;\n scanf(\"%d\",&t);\n\tfor(i=0;im) return(f(m,m));\n if(n==m) return(f(m,m-1)+1);\n if(n> n; //??????,????????????????\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> M >> N;\n\t\tK = WAY1(M,N) + WAY2(M,N);\n\t\tcout << K << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44845", "code": "int f(int m,int n)\n{\n int k;\n if(m==0||n==1)\n {k=1;}\n else\n {\n if(m>=n)\n {k=f(m,n-1)+f(m-n,n);}\n else\n {k=f(m,m);}\n }\n return k;\n}\nmain()\n{\n int m,n,t,p;\n scanf(\"%d\",&t);\n for(;t!=0;t--)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\\n\",f(m,n));\n }\n}\n\n\n\n"} +{"label": "90", "index": "44846", "code": "int main()\n{\n\tint f(int x,int y);\n\tint t,m,n,i,k;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i>n;\n for(int i=0;i>apple>>plate;\n cout<=n)\n\t{\n\t\tif(n==1||n==0) k=1;\n\t\telse k=(f(m,(n-1))+f((m-n),n));\n\t}\n\treturn (k);\n \n}\nvoid main()\n{\n\tint n,m,k,i;\n\tscanf(\"%d\\n\",&k);\n\tfor(i=1;i<=k;i++)\n\t{\n\t\tscanf(\"%d %d\\n\",&m,&n);\n\t\tint y=f(m,n);\n\t\tprintf(\"%d\\n\",y);\n\t}\n\n}\n"} +{"label": "90", "index": "44849", "code": "int main()\n{\n int app(int x,int y);\n int s, x, y, i;\n scanf(\"%d\",&s);\n for(i=1;i<=s;i++)\n {\n scanf(\"%d%d\",&x,&y);\n printf(\"%d\\n\",app(x,y));\n }\n return 0;\n}\n \n \n \n \n \nint app(int x,int y)\n{\n if(x>t;\n\tfor(int i=1;i<=t;++i){\n\t\tcin>>m>>n;\n\tcout<b)\n return (max(a-b,b)+max(a,b-1));\n}\nint main ()\n{\n int t,a[20],b[20],i,m;\n scanf(\"%d\",&t);\n for(i=0;i=y) z=digui(x-y,y)+digui(x,y-1);\n else z=digui(x,x);\n return z;\n\n}\n\nint main()\n\n{\n\n int t,n,m;\n\n scanf(\"%d\",&t);\n\n while(t--)\n\n {\n\n scanf(\"%d %d\",&m,&n);\n\n printf(\"%d\\n\",digui(m,n));\n\n }\n\n return 0;\n\n}\n"} +{"label": "90", "index": "44853", "code": "int f(int m,int n)\n{\n\tif (m<0||n<0) return (0);\n\telse if(m==1||n==1||m==0||m==1) return (1);\n\telse \n\t\treturn (f(m-n,n)+f(m,n-1));\n}\nvoid main()\n{\n\tint x,i,j;\n\tscanf(\"%d\",&x);\n\tint s[100][2];\n\tfor (i=0;i>t;\n\tfor (i=1;i<=t;i++)\n\t{\n\t\tcin>>a>>b;\n\t\td=fang(a,b);\n\t\tcout<=plate)//???????????\n\t{\n\t\tsolution=sol(apple-plate,plate)+sol(apple,plate-1);//????????????????????\n\t}\n\telse if(apple>n;\n\tfor(;n>0;n--)//????\n\t{\n\t\tcin>>apple>>plate;\n\t\tsolution=sol(apple,plate);\n\t\tcout<=1;i--)\n if(i<=q)\n s+=ghl(p-i,i,r-1); \n return s;\n}\nint main()\n{\n int m,n,t,sum,i;\n scanf(\"%d\",&t);\n for(i=1;i<=t;i++)\n {\n scanf(\"%d%d\",&m,&n);\n sum=ghl(m,m,n);\n printf(\"%d\\n\",sum);\n }\n return 0; \n} \n"} +{"label": "90", "index": "44857", "code": "int count(int m,int n)\n{\n\tint y;\n\tif(m==1||n==1) y=1;\n\telse if(m>n) y=count(m-n,n)+count(m,n-1);\n\telse if(m==n) y=1+count(m,n-1);\n\telse if(mq)\n {\n t=func(p,q-1)+func(p-q,q);\n }\n else if(p==q)\n {\n t=func(p,q-1)+1;\n }else t=func(p,p);\n return(t);\n}\nint main()\n{\n int i,n;\n scanf(\"%d\",&n);\n for(i=0;i0)\n\t{\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\\n\",find(m,n));\n\t}\n\treturn 0;\n}\n\nint find(int m,int n)\n{\n//\tprintf(\"%d %d\\n\",m,n);\n\tif (m==1 || m==0) return (1);\n\telse if (n==1) return (1);\n\t\telse\n\t\t\tif (m>=n) return (find(m-n,n)+find(m,n-1));\n\t\t\telse return (find(m,n-1));\n}"} +{"label": "90", "index": "44860", "code": "/*\n * 4.cpp\n *\n * Created on: 2010-11-30\n * Author: ???\n * ??? ???\n */\n\n\n\nint k(int m,int n){\n\tif(n==1)\n\t\treturn 1;\n\tif(m>=n)\n\t\treturn k(m-n,n)+k(m,n-1);\n\telse\n\t\treturn k(m,n-1);\n}\n\nint main(){\n\tint m,n,zu;\n\tcin>>zu;\n\tfor(int i=1;i<=zu;i++){\n\t cin>>m>>n;\n\t cout<>t;\n for(int i=0;i>N>>M;\n counter=0;\n Divide(N,M,N);\n cout<=1)\n {\n for(int i=s;i>=1;i--)\n { if(n-i==0)\n { \n counter+=1;\n }\n else if(n-i>0&&m-1>0)\n Divide(n-i,m-1,i);\n }\n }\n} \n \n"} +{"label": "90", "index": "44864", "code": "int all(int m,int n)\n{\n int empty(int m,int n);\n int noempty(int m,int n);\n int sum; \n sum=empty(m,n)+noempty(m,n);\n return(sum);\n}\nint empty(int m,int n)\n{\n int s1;\n if(n==1)\n s1=0;\n else\n s1=all(m,n-1);\n return(s1);\n }\nint noempty(int m,int n)\n{\n int s2;\n if(m-n<0)\n s2=0;\n else if(m-n==0)\n s2=1;\n else \n s2=all(m-n,n); \n return(s2);\n}\nint main()\n{\n int m,n,i,t,a[100],b[100];\n scanf(\"%d\",&t);\n for(i=0;i>t;\n\tfor(i=1;i<=t;i++)\n\t\t{\n\t\t\tcin>>m>>n;\n\t\t\ta=apple(m,n);\n\t\t\tcout<=n)\n\t{\n\t\ta=apple(m-n,n)+apple(m,n-1);\n\t}\n\tif(m> t; //????\n\tfor (i = 0; i < t; i++)\n\t{\t\n\t\tint app = 0, bas = 0; //app??????bas?????\n\t\tcin >> app >> bas;\n\t\tcout << way(app, bas) << endl; //??\n\t}\n\treturn 0;\n}\n\nint way(int app, int bas) //?????\n{\n\tint count = 0; //count??????????0\n\n\t//???????????????????????????????0????0??????\n\tif(app == 1 || bas == 1 || app == 0 && bas > 0 || bas == 0 && app > 0)\n\t\tcount = 1;\n\tif(app > 1 && bas > 1) //?????????1?????????????????????????\n\t{\n\t\tint ap1 = app - bas;\n\t\tint ba1 = bas - 1;\n\t\tcount = way(app, ba1) + way(ap1, bas);\n\t}\n\treturn count; //?????\n}\n"} +{"label": "90", "index": "44868", "code": "int B(int,int);\nint main()\n{\n\tint t,m,n;\n\tcin>>t;\n\tfor(int i=0;i>m>>n;\n\t\tint sum=0;\n\t\tfor(int j=1;j<=n;++j)\n\t\t\tsum+=B(m,j);\n\t\tcout<n) return 0;\n\t\telse{\n\t\t\tint result=0;\n\t\t\tfor(int l=k;l>0;--l)\n\t\t\t\tresult+=B(n-k,l);\n\t\t\treturn result;\n\t\t}\n\t}\n}"} +{"label": "90", "index": "44869", "code": "int c(int m, int n)\n{\n\tint s1, s2, k = m;\n\ts1 = s2 = 1;\n\twhile (k--)\n\t{\n\t\ts1 *= n--;\n\t\ts2 *= m--;\n\t\t//cout << s1 << ' ' << s2 << endl;\n\t}\n\treturn s1 / s2;\n}\n\n\nint f(int m, int n)\n{\n\tif (n == 1)\n\t\treturn 1;\n\t//if (m == 0)\n\t\t//return 1;\n\tif (m < n)\n\t{\n\t\treturn f(m, n - 1);\n\t}\n\t\t\n\treturn f(m, n - 1) + f(m - n, n);\n}\n\nint main()\n{\n\tint t;\n\tcin >> t;\n\t//cout << c(5, 3);\n\t//c(3, 5);\n\n\tint m, n;\n\twhile (t--)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << f(m, n) << endl;\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "90", "index": "44870", "code": "//********************************\n//*?????(15-11) ????? **\n//*?????? 1300012934 **\n//*???2013.11.28 **\n//********************************\nint k, l, n;\nvoid put (int p, int q)\n{\n\tint j;\n\tfor (j = p; j <= q; j++)\n\t{\n\t\tl = l - j;\n\t\tn--;\n\t\tif (n < 0)\n\t\t{\n\t\t\tl += j;\n\t\t\tn++;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (l < 0)\n\t\t\t{\n\t\t\t\tl += j;\n\t\t\t\tn++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (l == 0)\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t\tl += j;\n\t\t\t\tn++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (l > 0)\n\t\t\t{\n\t\t\t put (j, l);\n\t\t\t\tl += j;\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t}\n\n}\nint main()\n{\n\tint t, m;\n\tcin >> t;\n\tfor (int i = 1; i <= t; i++)\n\t{\n\t\tk = 0;\n\t\tcin >> m >> n;\n\t\tl = m;\n\t\tput (1, m);\n\t\tcout << k << endl;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "90", "index": "44871", "code": "int f(int x,int y){\n\tif(x==0)return 1;\n\telse if((x!=0)&&(y==0))return 0;\n\telse if((x!=0)&&(y!=0)&&(x>=y))return f(x-y,y)+f(x,y-1);\n\telse return f(x,y-1);\n}\nint main(){\n\tint n,k,i,m;\n\tcin>>n;\n\tfor(i=1;i<=n;i++){\n\t\tcin>>k;\n\t\tcin>>m;\n\t\tcout<> t;\n\tint f(int x, int y);\n\tfor (i = 0;i < t;i++)\n\t{\n\t\tcin >> M >> N;\n\t\tcout << f(M, N) <=b) m=fang(a-b,b)+fang(a,b-1);\n if(a1))\n\t a=fang(m,n-1);\n\tif ((m>=n)&&(n>1))\n a=fang(m,n-1)+fang(m-n,n);\n\t//cout<>t;\n\tfor (i=0;i>m>>n;\n\t cout<=m-i)\n\t\ts=s+f(m-i,n-m+i);\n\t\t}\n\tif(n==0)\n\ts=1;\n\treturn s;\n}\nint main()\n{\n\tint m,n,s;\n\tscanf(\"%d\",&s);\n\tfor(;s>1;s--)\n\t{\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\\n\",f(n,m));\n\t\t}\nscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\",f(n,m));\n}"} +{"label": "90", "index": "44876", "code": "int num(int m, int n)\n{\n if(m <= 1) return 1;\n if(n == 1) return 1;\n int sum = 0, i;\n for(i = 1; i <= n; i++)\n {\n if(i > m) break;\n sum += num(m - i, i);\n } \n return sum;\n}\nint main()\n{\n int n, i;\n scanf(\"%d\", &n);\n for(i = 0; i < n; i++)\n {\n int M, N;\n scanf(\"%d%d\", &M, &N);\n int r = num(M, N);\n printf(\"%d\\n\", r);\n }\n return 0;\n}"} +{"label": "90", "index": "44877", "code": "int main(){\n int t,m,n,i,j,f[NUM][NUM];\n for(i=1;i>t;\n while(t--){\n cin>>m>>n;\n cout<=n)\n return kk(m,n-1)+kk(m-n,n);\n }\n }\n }\nint main(){\n int m,n,t;\n cin>>t;\n int i,aa[t+1];\n for(i=1;i<=t;i++){\n cin>>m>>n;\n aa[i]=kk(m,n);\n }\n for(i=1;i<=t;i++)\n cout<m) n=m; \n s=apple(m,n,0); \n printf(\"%d\\n\",s); \n\t}\n\treturn 0;\n}\n\nint apple(int m,int n,int j) \n{\n\tint i,s=0; \n\tif(n==1) return m>=j; \n for(i=j;i> t; //????????\n\tcin.get();\n\tfor (i = 0; i < t; i++)\n\t{\n\t\tcin >> m >> n; //????????\n\t\ta = count (m, n);\n\t\tcout << a << endl; //??????\n\t}\n\treturn 0;\n}\n\n"} +{"label": "90", "index": "44883", "code": "\nint main()\n{int n,m,sum,a,b,i;\nint f(int x,int y);\nscanf(\"%d\",&a);\nfor (i=0;im) return f(m,m);\n if (n==1) return 1;\n else if (n!=1) return (f(m,n-1)+f(m-n,n)); \n\n\n}\n\n\n\n\n"} +{"label": "90", "index": "44884", "code": "// ?????.cpp : ??????????????\n//\n\n\n\nint main()\n{//declaration\n\tshort apple(int m,int n);\n\tint t,m,n,k[20];\n\tint i;\n//input process\n\tscanf(\"%d\",&t);\n\tfor(i=0;i<=t-1;i++)\n\t{\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tk[i]=apple(m,n);\n\t\n\t}\n//output\n\tfor(i=0;i<=t-1;i++)printf(\"%d\\n\",k[i]);\n\n\treturn 0;\n}\n\nshort apple(int m,int n)\n{\n\tshort res=0;\n\tif(m<=1||n<=1)res=1;\n\telse\n\t{ \n\t\tif(m>=n)res=apple(m-n,n);\n\t\tres=res+apple(m,n-1);\n\t}\n\treturn res;\n\n}"} +{"label": "90", "index": "44885", "code": "int fun(int m,int n,int j); \nvoid main() \n{ \n int n,m,s,i;\n scanf(\"%d\",&i);\n while(i--)\n {\n scanf(\"%d %d\",&m,&n); \n if(n>m) n=m; \n s=fun(m,n,0); \n printf(\"%d\\n\",s); \n } \n}\nint fun(int m,int n,int j) \n{ \n int i,s=0; \n if(m> t;\n for ( i = 1; i <= t; i++ )//????? \n {\n flag = 0;//????????? \n cin >> m >> n;\n fun ( m, n, 0 );\n cout << flag << endl;\n }\n return 0;\n}\nvoid fun ( int m, int n, int before )//m??????????n????????before??????????? \n{\n int i;\n if ( n == 1 && m >= before )//???????????????????????? \n {\n flag++;//???? \n return;//????? \n }\n for ( i = before; i <= m - n + 1; i++ )//????????????????????? \n {\n fun ( m - i, n - 1, i );//?????? \n }\n}\n"} +{"label": "90", "index": "44888", "code": "int yk(int a,int b);\nint qm(int a,int b);\nint main()\n{\n\tint t;\n\tscanf(\"%d\",&t);\n\tint m[100],n[100];\n\tint i;\n\tint result[100];\n\tfor(i=0;i1)\n\t{\n\t\tresult1=yk(a,b-1)+qm(a-b,b);\n\t\treturn result1;\n\t}\n\n\tif(b==1)\n\t\treturn 1;\n\tif(b<=0)\n\treturn 0;\n}\nint qm(int a,int b)\n{\n\tint result2;\n\tif(a>1)\n\t{\n\t\tresult2=qm(a-b,b)+yk(a,b-1);\n\t\treturn result2;\n\t}\n\tif(a==1||a==0)\n\t\treturn 1;\n\tif(a<0)\n\t\treturn 0;\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\t"} +{"label": "90", "index": "44889", "code": "int f(int M,int N)\n{\n int t;\n if(M>N)\n {\n if((N!=1)&&((M-N)!=1))\n t=f(M,N-1)+f(M-N,N);\n if((N!=1)&&((M-N)==1))\n t=1+f(M,N-1);\n if(N==1)\n t=1;\n }\n if((M==N)&&(M!=1))\n t=1+f(M,N-1);\n if((M==N)&&(M==1))\n t=1;\n if(Mm)\nt=col(m,m);\nelse if(n<=m)\nt=col(m,n-1)+col(m-n,n);\nreturn(t);\n}"} +{"label": "90", "index": "44891", "code": "int main()\n{\n int f(int m,int n);\n\tint i,x,t,m[21],n[21];\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tscanf(\"%d%d\",&m[i],&n[i]);\n\t}\n for(i=1;i<=t;i++)\n\t{\n\t\tx=f(m[i],n[i]);\n\t\tprintf(\"%d\\n\",x);\n\t}\n}\n\n\nint f(int m,int n)\n{\n\tif(n==1&&m>=0) return 1;\n\telse if(m<0) return 0 ;\n\telse return(f(m,n-1)+f(m-n,n));\n}"} +{"label": "90", "index": "44892", "code": "int main()\n{\n int put(int ,int);\n int m,i,a,b;\n scanf(\"%d\",&m);\n for(i=0;i0)\n {\n n= put(a-b,b)+put(a,b-1);\n }\n else\n {\n if(a-b<0)\n {\n n=put(a,b-1);\n }\n else\n n=1+put(a,b-1);\n \n }\n }\n return n;\n}\n"} +{"label": "90", "index": "44893", "code": "int a[15][15];\nint f(int n,int m)\n{\n if(n<0) return 0;\n if(n==0||m==1) return 1;\n return f(n,m-1)+f(n-m,m);\n}\nint main()\n{\n int pl;scanf(\"%d\",&pl);\n while(pl--)\n {\n int n,m;scanf(\"%d%d\",&n,&m);\n printf(\"%d\",f(n,m));\nputchar('\\n');\n }\n return 0;\n}"} +{"label": "90", "index": "44894", "code": "int mem[35][30]={0};\nint f(int m,int n)\n{\n\tint result=0,i;\n\tif(mem[m][n]!=0) return mem[m][n];\n else if (m==1||n==1)\n\t{\n\t\treturn 1;\n\t}\n\telse\n\t for(i=m;i>=0;i-=n)\n\t\t result+=f(i,n-1);\n\tmem[m][n]=result;\n\treturn result;\n}\nint main()\n{\n\tint i,n,m,t;\n\tcin>>t;\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tcin>>m>>n;\n\t\tcout<> times ;\n\tfor (i=0;i> M >> N ;\n\t\tcout << apple (M,N) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44896", "code": "int f1(int m,int n)\n{\n int cnt;\n if(m<0)\n {\n return 0;\n }\n else if (n==1)\n {\n return 1;\n }\n else\n {\n cnt=f1(m,n-1)+f1(m-n,n);\n return cnt;\n } \n }\n \n \nint main()\n{\n int k , m , n , i ,cnt;\n cin>>k;\n for (i=1;i<=k;i++)\n {\n cin>>m>>n;\n cnt=f1(m,n);\n cout<j) a[i][j]=a[i][j-1]+a[i-j][j];\n\t\t\telse if(i==j) a[i][j]=a[i][j-1]+1;\n\t\t\telse a[i][j]=a[i][j-1];\n\t\t}\n\tprintf(\"%d\\n\",a[m][n]);\n\tfree(a);\n}\n\nmain()\n{\n\tint t,m,n,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i> n;\n\tfor (i = 1; i <= n; i++)\n\t{ counter = 0;\n\t cin >> M >> N;\n\t\t counter = baifang (M, N);\n\t\t cout << counter < 0)\n\t\tanswer += baifang(m, n - 1);\n\tif (m >= n)\n\t\tanswer += baifang(m - n, n);\n\treturn answer;\n}\n"} +{"label": "90", "index": "44900", "code": "main()\n{\n int i,t;\n\tscanf(\"%d\",&t);\n\tint a[20];\n int\tb[20];\n\tfor(i=0;im) \nreturn f(m, m); \nreturn f(m,n-1) + f(m-n, n); \n} \n\nint main(int argc, char * argv[]) \n{ \nint k;\nscanf(\"%d\",&k);\nfor(int i=1;i<=k;i++)\n{int m, n; \ncin>>m>>n; \ncout<m)\n\t\tsum1=put(m,n-m);//???????????\n\telse\n\t{\n\t\tif(n==m)\n\t\t\tsum1=1;\n\t\telse\n\t\t\tsum1=0;\n\t}\n\tsum2=put(m-1,n);//??????????????\n\tsum=sum1+sum2;\n\t}\n\t}\n\treturn sum;//???????\n}\nint main()\n{\n\tint i,m,n,k,t;\n\tcin>>k;\n\tfor(i=0;i>n>>m;\n\t\tt=put(m,n);\n\t\tcout<m)n=m;\n\tif(m==1||n==1)z=1;\n\telse if(m==0||n==0)z=1;\n\telse\n\tz=f(m-n,n)+f(m,n-1);\n\treturn(z);\n}\n\nvoid main()\n{\nint t,i,M,N;\nscanf(\"%d\",&t);\nfor(i=0;ib)\n return Apples_Set(a,b-1)+Apples_Set(a-b,b); \n} "} +{"label": "90", "index": "44908", "code": "int solve(int panzi,int pingguo )\n{\n\tif(panzi==1)\n\t{\n\t\treturn 1;\n\t}\n\telse\n\t{\n\t\tif(panzi<=pingguo)\n\t\t{\n\t\t\treturn solve(panzi-1,pingguo)+solve(panzi,pingguo-panzi);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn solve(panzi-1,pingguo);\n\t\t}\n\t}\n}\nint main()\n{\n\tint t,M,N;\n\tscanf(\"%d\",&t);\n\twhile(t--)\n\t{\n\t\tscanf(\"%d %d\",&M,&N);\n\t\tprintf(\"%d\\n\",solve(N,M));\n\t}\n\t\n}"} +{"label": "90", "index": "44909", "code": "int put(int m,int n)\n{\n\tint c;\n\tif(n==1 || n==0)\n\t\tc=1;\n\telse if(m==1 || m==0)\n\t\tc=1;\n else if(m> t;\n\tfor (i=1;i<=t;i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tcout << f(a[i],b[i]) << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44911", "code": "int putapple(int p,int q);\nint main()\n{\n\tint n,m,a,i,j;\n\tscanf(\"%d\",&a);\n\tfor(i=1;i<=a;i++)\n\t{\n\t\tscanf(\"%d%d\",&m,&n);\n\t\tprintf(\"%d\\n\",putapple(m,n));\n\t}\n}\nint putapple(int p,int q)\n{ \n\tif (((q<=0)||(p<0))||((q<0)&&(p==0)))\n\t\treturn 0;\n\telse\n\t if ((q==1)||((p==0)&&(q>=0)))\n\t {\n\t\treturn 1;\n\t }\n\t else\n\t { \n\t\treturn putapple(p,q-1)+putapple(p-q,q);\n\t }\n}\n"} +{"label": "90", "index": "44912", "code": "/*\n * assignment.cpp\n *\n * Created on: 2010-11-23\n * Author: ??\n * ???\n */\n\n\n//???????\nint sort(int x,int y){\n\t//????????\n\tif(x>num;\n\tint m,n;\n\tfor(int i=0;i>m>>n;\n\t\tcout<=1;t--)\n {\n for (i=0;i<=100;i++)\n f[1][i]=1;\n scanf(\"%d%d\",&m,&n);\n for (i=2;i<=n;i++)\n for (j=0;j<=m;j++)\n {\n f[i][j]=f[i-1][j];\n if (j>=i) f[i][j]=f[i][j]+f[i][j-i];\n }\n printf(\"%ld\\n\",f[n][m]);\n }\n return 0;\n}\n"} +{"label": "90", "index": "44914", "code": "int main()\n{\nint full(int a,int b);\nint notfull(int c,int d);\nint i,m,apple,plate;\nint ways(int M,int N);\nscanf(\"%d\",&m);\nfor(i=1;i<=m;i++)\n {\n scanf(\"%d%d\",&apple,&plate);\n printf(\"%d\\n\",ways(apple,plate));\n }\n\n}\n\nint ways(int M,int N)\n{\nint full(int a,int b);\nint notfull(int c,int d);\nint i,j,k,number;\nif(N>1)\n { if(M>N)\n number=full(M,N)+notfull(M,N);\n else if(M==N)\n number=full(M,N)+notfull(M,N);\n else if(N>M>0) number=ways(M,M);\n }\nif(N==1) number=1;\nif(M==0) number=1;\nreturn(number);\n\n}\n\nint full(int a,int b)\n{\nint f;\nf=ways((a-b),b);\nreturn(f);\n}\n\nint notfull(int c,int d)\n{\nint l;\nl=ways(c,(d-1));\nreturn(l);\n}\n"} +{"label": "90", "index": "44915", "code": "int s(int m,int n)\n{ int a=0;\n if(n!=1)\n {\n\tfor(int i=0;m-i*n>=0;++i)\n\t{\n\t\ta+=s(m-i*n,n-1);\n\t}\n }\n else\n {\n\t return 1;\n }\n return a;\n}\nint main()\n{ \n\tint t,m,n;\n\tcin>>t;\n\tfor(int i=0;i>m>>n;\n\t\tcout<> x;\n\tfor(int i = 1; i <= x; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << f(m, n) << endl;\n\t}\n return 0;\n}\nint f(int a, int b)\n{\n\tif(b == 1)\n\t\treturn 1;\n\telse\n\t\tif(a > b)\n\t\t\treturn (f(a, b - 1) + f(a - b, b));\n\t\telse\n\t\t\tif(a < b)\n\t\t\t\treturn f(a, a);\n\t\t\telse\n\t\t\t\treturn (1 + f(a, b - 1));\n}\n"} +{"label": "90", "index": "44918", "code": "\nint divide(int apple,int plate);\n\nint main()\n{\n int n,i;\n scanf(\"%d\",&n);\n for (i=0;i b)\n {\n k = f(a - b, b) + e(a - b, b);\n }\n else if(a == b)\n {\n k = 1;\n }\n else\n {\n k = 0;\n }\n return k;\n}\n\nint e(int a, int b)\n{\n int k;\n if (b > 1)\n {\n k = e(a, b - 1) + f(a, b - 1);\n }\n else\n {\n k = 0;\n }\n return k;\n}\n\nint main()\n{\n int m, n, k, t;\n cin >> t;\n while (t--)\n {\n cin >> m >> n;\n k = f(m, n) + e(m, n);\n cout << k << endl;\n }\n\n return 0;\n}\n"} +{"label": "90", "index": "44920", "code": "int main()\n{\n\tint f(int x,int y);\n\tint t,m[20],n[20];\n\tcin >> t;\n\tfor (int i=0;i> m[i] >> n[i];\n\t}\n\tfor (int i=0;i=y)\n\t\t\treturn(sort(x,y-1)+sort(x-y,y));\n\t\telse \n\t\t\treturn(sort(x,y-1));\n\t}\n\treturn z;\n}"} +{"label": "90", "index": "44922", "code": "int f[11][11];\n//stiring?\nint PutApple(int m,int n)\n{\n if(f[m][n])\n return f[m][n];\n else if(m==1||n==1)\n {\n f[m][n]=1;\n return f[m][n];\n }\n else if(m>n;\n int l,m;\n\tint A[100];\n for (int i=0;i>l>>m;\n A[i]=PutApple(l,m);\n }\n for (int i=0;i1&&x-y>=0) s=s+f(x,y-1)+f(x-y,y);\n\telse if(y>1) s=s+f(x,y-1);\n\telse s=s+1;\n\treturn (s);\n}\n"} +{"label": "90", "index": "44924", "code": "int apple(int m,int n)\n{\n\tint s=0;\n\t\n\tif(n==1)\n\t{\n\t\ts=1;\n\t}else if(m<0)\n\t{\n\t\ts=0;\n\t}else if(n>=2&&m>=0)\n\t{\n\t\ts=apple(m,n-1)+apple(m-n,n);\n\t}\n\treturn s;\n}\nint main()\n{\n\tint t,i,M,N,q;\n\tcin>>t;\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tcin>>M;\n\t\tcin>>N;\n\t\tcout<>q;\n\treturn 0;\n}"} +{"label": "90", "index": "44925", "code": "int put(int a,int b)\n{\n\tint s;\n\tif(a==1) {s=1;return s;}\n\telse if(b==1) {s=1;return s;}\n\telse if(a==0||b==0) {s=1;return s;}\n\telse if(a>=b) { s=put(a,b-1)+put(a-b,b);return s;}\n\telse if(a> t;\n\tfor (i = 1; i <= t; i++)\n\t{\n\t\tcin >> M >>N;\n\t\tways = apple(M, N);//??\n\t\tcout << ways << endl;\n\t}\n\t\treturn 0;\n}\nint apple(int M, int N)\n{\n\tif (N == 1)\n\t\treturn 1;//??????,1???\n\telse if (M < 0)\n\t\treturn 0;//???M - N < 0,??????,????1?????\n\telse\n\t\treturn (apple(M, N - 1) + apple(M - N, N));//????N???1,????????\n}"} +{"label": "90", "index": "44927", "code": "int fangpingguo(int m,int n)\n{\n\tint sum=0;\n\tif(n==1||m==0)\n\t\treturn 1;\n\tif(m=n)\n\t sum=fangpingguo(m,n-1)+fangpingguo(m-n,n);\n return sum;\n}\nint main()\n{\n\tint t;\n\tscanf(\"%d\",&t);\n\tint i;\n\tfor(i=0;i1&&m=n) count=baifang(m-n,n)+baifang(m,n-1);\nreturn count;\n}\n"} +{"label": "90", "index": "44929", "code": "\n\n\nint dt(int m,int n){\n\tint re=0;\n\tif(m>=n) re+=dt(m-n,n);\n\tif(n>1) re+=dt(m,n-1);\n\tif(m<=1&&n<=1) re=1;\n\treturn re;\n}\n\n\nint main(){\n\n\tint t=0;\n\n\tcin>>t;\n\n\tfor(int i=0;i>m>>n;\n\n\t\tcout<=n)\n\t{\n\t\tfor(j=n;j>0;j--)\n\t\t\tsum+=apple(m-j,j);\n\t\treturn sum;\n\t}\n}"} +{"label": "90", "index": "44931", "code": "\nint C(int m,int n)\n{\n\tif(m==0||n==m)\n\t\treturn 1;\n\treturn C(m,n-1)+C(m-1,n-1);\n}\n\nint f(int M, int N)\n{\n\tif(N==1)\n\t\treturn 1;\n\tif(M==0)\n\t\treturn 1;\n\tif(N>M)\n\t\treturn f(M,N-1);\n\tif(M>=N)\n\t\treturn f(M,N-1)+f(M-N,N);\n}\n\nint main()\n{\n\tint n, M, N, i;\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;in)\n\t\treturn(fangfa(m,n-1)+fangfa(m-n,n));\n\telse if(m==n)\n\t\treturn(fangfa(m,n-1)+1);\n\telse\n\t\treturn(fangfa(m,n-1));\n}\nvoid apple()\n{\n\tint m=0,n=0;\n\tscanf(\"%d%d\",&m,&n);\n\tprintf(\"%d\\n\",fangfa(m,n));\n}\nvoid main()\n{\n\tint t=0,i=0;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i= 0)\n\t{\n\t\tscanf(\"%d%d\", &m, &n);\n\t\tprintf(\"%d\\n\", find(m, n));\n\t}\n\treturn 0;\n}\nint find(int m, int n)\n{\n\tif (n == 1)\n\t\treturn 1;\n\telse if (m == n)\t\n\t\treturn find(m, n - 1) + 1;\n\telse if (n > m)\n\t\treturn find(m, m);\n\telse\n\t\treturn find(m, n - 1) + find(m - n, n);\n}"} +{"label": "90", "index": "44935", "code": "int fun(int m,int n,int j);\nint main(void)\n{ int n,m,s,t;\nscanf(\"%d\\n\",&t);\nwhile(t>0){\nscanf(\"%d %d\\n\",&m,&n);\nif(n>m) n=m;\ns=fun(m,n,0);\nprintf(\"%d\\n\",s);\nt--;\n}\n}\nint fun(int m,int n,int j)\n{ int i,s=0;\nif(n==1) return m>=j;\nfor(i=j;in)a=hanshu(n,M-n);\n\treturn hanshu(n-1,M)+a;\n} \nint main()\n{\n\tint t,M,N,i;\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t{\n\t scanf(\"%d %d\",&M,&N);\n\t printf(\"%d\\n\",hanshu(N,M));\n\t}\n\t\n}"} +{"label": "90", "index": "44937", "code": "int xx(int m,int n)\n{\n\tint x=0;\n\tif(m<0)x=0;\n\telse if(n==1||m==0)\n\t\tx+=1;\n\telse \n\tx+=xx(m,n-1)+xx(m-n,n);\n\treturn(x);\n}\nvoid main()\n{\n\tint n,i,a,b;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=n)\n\t{\n\t\tback += reverse(m-n,n);\n\t\tback += reverse(m,n-1);\n\t}\n\telse if(m0) return 1;//??1???????????????\n\tif(n<1||m<1) {if(m==0&&n>0) return 1;else return 0;} //????n????n????????????0????1\n\tif(m==1&&n>0) return 1;\n\telse return apple(n-1,m)+apple(n,m-n); //?????????????????????????????????????????????????????????N?????M???????????N-1?????M???????????????????????????N?????M????????????N?????M-N???????????\n}\nint main(){\n\tint t=0;\n\tcin>>t;\n\twhile(t>0){\n\t\tcin>>m>>n;\n\t\tcout< n)\n\t\tsum += Calc(m - n, n);\n\n\treturn sum;\n}\n\nint main()\n{\n\tint m, n, x;\n\tfor(cin >> x; x > 0; x--)\n\t{\n\t\tcin >> m >> n;;\n\t\tcout << Calc(m, n) << endl;\n\t}\n}"} +{"label": "90", "index": "44941", "code": "void main()\n{\n\tint num1(int m,int n);\n\tint t,m,n,i;\n\tscanf(\"%d\",&t);\n\tfor(i=0;i1&&n>1&&m>=n)\n\ta=f(m,n-1)+f(m-n,n);\n\tif(m>1&&n>1&&mapple)\n\t\t{\n\t\t\tfunc(apple,apple);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfunc(apple-plate,plate);\n\t\t\tfunc(apple,plate-1);\n\t\t}\n\t}\n}\n\t\t\t\n\t\t\t\n\n\n\n\n\t\n"} +{"label": "90", "index": "44945", "code": "\nint way(int m,int n);\nint main()\n{\n int N,m,n;\n cin>>N;\n for(int i=0;i>m>>n;\n cout<=1)\n\tfor(i=1;i=n)\n {\n return n;\n }\n else\n {\n return m;\n }\n}\nint put(int m,int n)\n{\n\n int c=0;\n int i;\n if(m==0)\n {\n c=1;\n }\n for(i=1;i<=min(m,n);i++)\n {\n c=c+mustput(m,i);\n }\n return c;\n}\nint main()\n{\n int m,n,l;\n scanf(\"%d\",&l);\n for(int i=1;i<=l;i++)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\\n\",put(m,n));\n }\n\n}"} +{"label": "90", "index": "44948", "code": "int num(int m,int n);\nint num1(int m,int n);\nint num2(int m,int n);\nint main()\n{\n\tint m,n,k,i;\n\tscanf(\"%d\",&k);\n\tfor(i=1;i<=k;i++)\n\t{\n scanf(\"%d%d\",&m,&n);\n\tprintf(\"%d\\n\",num(m,n));\n\t}\nreturn 0;\n}\n\n\nint num(int m,int n)\n{return(num1(m,n)+num2(m,n));}\nint num1(int m,int n) //full\n{ \n\tif(m==n)return(1);\n\telse if(n==1)return(1);\n\telse if(m> n;\n\tfor (int i = 0; i < n; i ++) {\n\t\tcin >> y >> x;\n\t\tcout << f(x, y) << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44950", "code": "\nint cal(int x,int y)\n{\n int i,sum; \n if ((x<0)||(y==0)) return 0;\n \n if (x==0) return 1;\n if (y==1) return 1;\n \n else return cal(x-y,y)+cal(x,y-1);\n \n return sum;\n}\nint main()\n{\n int n,m,i,l;\n scanf(\"%d\",&l);\n for (i=1;i<=l;i++)\n {\n scanf(\"%d%d\",&m,&n); \n printf(\"%d\",cal(m,n));\n if (i!=l) printf(\"\\n\");\n }\n \n return 0;\n} \n"} +{"label": "90", "index": "44951", "code": "int f(int,int);\nvoid main()\n{\n\tint t;\n\tscanf(\"%d\",&t);\n\tint i;\n\tfor(i=0;i1)\n {\n return apple(m,n-1);\n }\n else if(m>=n&&m!=0&&n>1)\n {\n return apple(m,n-1)+apple(m-n,n);\n }\n else if(m==0)\n return 1;\n else if(n==1&&m!=0)\n return 1;\n}\nmain()\n{\n int t,i,m,n;\n scanf(\"%d\",&t);\n for(i=0;i> n;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tint k = 0;\n\t\tint M, N;\n\t\tcin >> M >> N;\n\t\tcout << place (M, N) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44955", "code": "int F(int m,int n) \n{ \n if(m==0||m==1) return 1; \n if(n==0||n==1) return 1; \n if(m> t;\n\tfor(i = 0 ; i < t ; i++)\n\t\tcin >> m[i] >> n[i];\n for(i = 0 ; i < t ; i++) \n\t\tcout << F(m[i],n[i]) << endl;\n\treturn 0;\n}\n"} +{"label": "90", "index": "44956", "code": " \n \nint n=0; \nint digui(int M, int N) \n{ \n if(N==1) \n { \n return n+1; \n } \n else if(M==1) \n { \n return n+1; \n } \n else \n { \n if(M>N) return digui(M-1,N); \n else return digui(M-1,N)+digui(M,N-M); \n } \n} \n \nint main() \n{ \n int M,N,n,i,K; \n scanf(\"%d\",&n); \n for(i=1;i<=n;++i) \n { \n scanf(\"%d%d\",&N,&M); \n K=digui(M,N); \n printf(\"%d\\n\",K); \n } \n return 0; \n} "} +{"label": "90", "index": "44957", "code": "int baifang(int m,int n);\nint main()\n{\n \tint t,m,n,i;\n \tscanf(\"%d\",&t);\n \tfor(i=1;i<=t;i++){\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tprintf(\"%d\\n\",baifang(m,n));\n\t\t}\n}\nint baifang(int m,int n){\n\tint i,r;\n\tif(n==1) return 1;\n\tif(m==1) return 1;\n\tif(m> a;\n\twhile (a --)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << waynum(m, n) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44959", "code": "\nint put(int m,int n)\n{ int p1=0,p2=0,s;\n if(n==1) s=1;\n else\n {if(m>=n) p1=put(m-n,n);\n p2=put(m,n-1);\n s=p1+p2;}\n return(s);\n}\n\n\n\nvoid main()\n{ int t,M[20],N[20],i;\n scanf(\"%d\",&t);\n for(i=0;in) c=f(m-n,n)+f(m,n-1);\n\t else if(m==n) c=1+f(m,n-1);\n\t else if(m1)\n\t\t\tk=num(a,b-1)+num(a-b,b);\n\treturn(k);\n}"} +{"label": "90", "index": "44962", "code": "\nint main()\n{\n\tint empty (int m,int n);\n\tint full (int m,int n);\n\tint i;int n;int num[20][2];int z[20];\n\t\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\tscanf(\"%d %d\",&num[i][1],&num[i][0]);\n z[i]=full(num[i][0],num[i][1])+empty(num[i][0],num[i][1]);\n\t}\n\tfor(i=0;i<=n-1;i++)\n\tprintf(\"%d\\n\",z[i]);\n\treturn 0;\n}\nint full (int m,int n)\n{\n\tint empty (int m,int n);\n\tint result;\n\tif(mn) result=0;\n\treturn(result);\n}\nint empty (int m,int n)\n{\nint result;\nif(m==1) result=0;\nelse result=full(m-1,n)+empty(m-1,n);\nreturn(result);\n}\n"} +{"label": "90", "index": "44963", "code": "int main()\n{\n int Q(int x,int y);\n int a[20],b[20],c[20];\n int t,i;\n scanf(\"%d\",&t);\n for(i=0;iy)\n return(Q(x,y-1)+Q(x-y,y));\n}\n"} +{"label": "90", "index": "44964", "code": "int put(int, int);\nint main()\n{\n\tint nLoop;\n\tint m,n;\n\tscanf(\"%d\", &nLoop);\n\twhile(nLoop--)\n\t{\n\t\tscanf(\"%d %d\", &m, &n);\n\t\tprintf(\"%d\\n\",put(m,n));\n\t}\n\treturn 0;\n}\nint put(int m, int n)\n{\n\tif(m==0 || m==1 || n==1) return 1;\n\tint sum = 1, i;\n\tfor(i=2;i<=n&&i<=m;i++)\n\t\tsum += put(m-i,i);\n\treturn sum;\n}"} +{"label": "90", "index": "44965", "code": "int f(int a,int b)\n{\n if (b==1) {return 1;}\n if (a<0) {return 0;}\n else {return f(a-b,b)+f(a,b-1);}\n}\nint main ()\n{\n int w,m,n;\n scanf (\"%d\",&w);\n for (;w>0;w--)\n {\n scanf (\"%d %d\",&m,&n);\n printf(\"%d\\n\",f(m,n));\n }\n}"} +{"label": "90", "index": "44966", "code": "\nvoid apple(int, int, int);\nint sum;\n\nint main()\n{\n\tint t, m, n;\n\tcin >> t;\n\tfor(int i = 0; i < t; i++)\n\t{\n\t\tsum = 0;\n\t\tcin >> m >> n;\n\t\tapple(0, m, n);\n\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}\n\nvoid apple(int s, int x, int y)\n{\n\tint i;\n\tif(y == 1)\n\t{\n\t\tsum++;\n\t}\n\telse\n\t{\n\t\tfor(i = s; i <= x/y; i++)\n\t\t{\n\t\t\tapple(i, x - i, y - 1);\n\t\t}\n\t}\n}\n"} +{"label": "90", "index": "44967", "code": "\nint method(int,int);\nint occupy(int,int);\nint main ()\n{\n\tint M, N, t, i;//??????M?????N?t???\n\tcin >> t ;\n\tfor( i = 0; i < t; i++)\n\t{\n cin >> M >> N;\n\t\tif ( M == 0 || N == 0)//???????????0.???0????\n\t\t\tcout <<\"0\"<= b)//?????????????N?????M????????????N?????M-N??????????\n\t return method(a-b,b);\n\telse//??????????????????0?\n\t\treturn 0;\n}\n\n\n"} +{"label": "90", "index": "44968", "code": "int main()\n{\n int apple(int x,int y);\n int i,t,m,n;\n scanf(\"%d\",&t);\n for(i=0;iy) p=apple(x,y-1)+apple(x-y,y);\n else if(x==y) p=apple(x,y-1)+1;\n else p=apple(x,y-1);\n return(p);\n}"} +{"label": "90", "index": "44969", "code": "//*************************************************\n//***????????***\n//***??????***\n//***???2012.1.11***\n//*************************************************\n\nint f(int a,int b)\n{\n\tif (b == 1 || a == 0 || a == 1)\n\t{\n\t\treturn 1;\n\t}\n\telse if (a >= b && b > 1)\n\t{\t\n\t\treturn f(a - b,b) + f(a,b - 1);\n\t}\n\telse if (b > 1 && a < b)\n\t{\n\t\treturn f(a,a);\n\t}\n}\n\nint main ()\n{\n\tint t,i,M,N;\n\tcin >> t;\n\tfor (i = 0; i < t; i++)\n\t{\n\t\tcin >> M >> N;\n\t\tcout << f(M,N) << endl;\n\t}\n\treturn 0;\n}"} +{"label": "90", "index": "44970", "code": "int a(int m,int n);\nmain()\n{\n\t\n\tint t,i;\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tint p,q;\n\t\tscanf(\"%d%d\",&p,&q);\n\t\tprintf(\"%d\\n\",a(p,q));\n\t}\n\treturn 0;\n}\nint a(int m,int n)\n{\n\tif(m> t;\n\tfor (i = 0; i < t; i++)\n\t\t{\n\t\t\tcin >> M >> N;\n\t\t\tcout << full(M , N) + empty(M , N) << endl;\n\t\t}\n\treturn 0;\n}\nint full (int M, int N)\n{\n\tif ( M < N )\n\t\treturn 0;\n\tif ( M == N )\n\t\treturn 1;\n\tif ( M > N )\n\t{\n\t\treturn( full( M - N ,N ) + empty (M - N, N) ); \n\t}\n\n\t\n}\nint empty (int M,int N)\n{ \n\tif (N == 2)\n\t\treturn 1;\n\tif (N == 1)\n\t\treturn 0;\n\tif (N != 1 && N != 2)\n\treturn (full( M, N - 1) + empty(M, N - 1)); \n\t\n}"} +{"label": "90", "index": "44972", "code": "int way (int,int);\nint main()\n{\n\tint n;\n\tint t[2];\n\tcin>>n;\n\twhile ( n-- )\n\t{\n\t\tcin>>t[0]>>t[1];\n\t\tcout<= b ) \n\t\treturn way( a , b - 1 ) + way( a - b , b );\n\tif ( a < b )\n\t\treturn way( a , a );\n}"} +{"label": "90", "index": "44973", "code": "int zhonglei(int m,int n)\n{\n\tint temp;\n\tif(m==0)\n\t\treturn 1;\n\telse if(m==1)\n\t\treturn 1;\n\telse if(n==1)\n\t\treturn 1;\n\telse if (m<0)\n\t\treturn 0;\n\telse \n\t{\n\t\ttemp=zhonglei(m-n,n);\n\t temp=temp+zhonglei(m,n-1);\n\t return temp;\n\t}\n}\nint main()\n{\n\tint t,i,tm,tn,tk;\n\tcin>>t;\n\tfor(i=0;i>tm>>tn;\n\t\ttk=zhonglei(tm,tn);\n\t\tcout<>k;\nfor(i=1;i<=k-1;i++){\ncin>>m>>n;\ncout<>m>>n;\ncout<=n)\n\t{\n\t\treturn f(m,n-1)+f(m-n,n);\n\t}\n\telse\n\t{\n\t\treturn f(m,n-1);\n\t}\n}\nint main()\n{\n\tint n,m,t,i,k;\n\tscanf(\"%d\",&t);\n\tfor(i=1;i<=t;i++)\n\t{\n\t\tscanf(\"%d %d\",&m,&n);\n\t\tk=f(m,n);\n\t\tprintf(\"%d\",k);\n\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}\n\n\n\n\n\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"} +{"label": "90", "index": "44976", "code": "\nint ways(int,int);\nint main()\n{\n\tint m,n,k,t;\n\tcin>>t;\n\twhile ( t-- )\n\t{\n\t\tcin>>m>>n;\n\t\tk=ways(m,n);\n\t\tcout<1&&n>1)return(f(m,n-1)+f(m-n,n));//???? \n}\nint main()\n{\n\tint M,N,t;\n\tcin>>t;//????????? \n\tfor(int i=1;i<=t;i++)\n\t{\n\t\tcin>>M>>N;//?????? \n\t\tcout<y) k=apple(x-y,y)+apple(x,y-1);\n if(x=1\n if(m==0||n==0)return 1;//??????????0\n if(m>=n)return f(m-n,n)+f(m,n-1);\n}\nint main(){\n int m,n,t;\n cin>>t;\n while(t--){\n cin>>m>>n;\n cout<>num;\n\tfor(int i=0;i>m>>n;\n\t\t\tcout<m)\n\t\treturn count(m,m);\n\treturn count(m,n-1)+count(m-n,n);\n}"} +{"label": "90", "index": "44984", "code": "/*??(15-11) ?????*/ \n\n\n\nint types(int m,int n);\n\nint full(int m,int n)//m?????n???\n{\n\tif(m<=n || n==1) return 1;\n\telse\n\t{\n\t\treturn types(m-n,n);\n\t}\n} \n\nint types(int m,int n)//m?????n??? \n{\n\tint num=0;\n\tint i;\n\tif(m>t;\n while(t--)\n {\n \tint m,n;\n \tcin>>m>>n;\n \tcout<n) m=n;\n if(n==1||m==1) return 1;\n if(n!=0&&m==0) return 0;\n if(n==0&&m!=0) return 0;\n if(n==0&&m==0) return 1;\n return work(n-m,m)+work(n,m-1);\n}\nint main()\n{ \n int a,b,c,i;\n scanf(\"%d\",&c);\n for(i=1;i<=c;i++)\n {\n scanf(\"%d %d\",&a,&b);\n printf(\"%d\\n\",work(a,b));\n }\n}\n"} +{"label": "90", "index": "44986", "code": "int fang(int m,int n,int j)\n{\n int a=0,k,i;\n if(n==1)\n return m>=j;\n else if(n<=m)\n {\n for(k=j;km)\n {\n n=m;\n for(k=j;k>t;\n int p[t];\n while(i>M>>N; //??n??? \n p[i]=classify(M,N); //?????????\n i++; \n }\n for(i=0;i> t;\n\tfor(i = 0; i < t; i++)\n\t{\n\t\tcin >> num[i][0] >> num[i][1];\n\t//?apple????way\n\t\tway[i] = apple(num[i][0], num[i][1]);\n\t}\n\tfor(i = 0; i < t; i++)\n\t\tcout << way[i] << endl;\t\t//??????????\n\n\treturn 0;\n}\n\nint apple (int a, int b)\t\t\t//?apple?????\n{\n\tif(b == 0 || b == 1)\t\t\t\n\t\treturn 1;\n\telse if (b > a)\n\t\treturn apple (a, a);\n\telse\n\t\treturn apple(a, b - 1) + apple (a - b, b);\n}\n\n"} +{"label": "90", "index": "44989", "code": "int f(int m,int n)\n{\n if(m<0) return 0;\n else if(n==1) return 1;\n else return f(m,n-1)+f(m-n,n);\n}\nmain()\n{\n int t,m,n,i,j,g;\n scanf(\"%d\",&t);\n for(g=0;g 1) // ?? \n\t\t\tput(m - i, n - 1, i);\n}\nint main()\n{\n\tint t, m, n;\n\tcin >> t;\n\twhile (t != 0)\n\t{\n\t\tcin >> m >> n;\n\t\tk = 0; // k??0 \n\t put(m,n,1);\n\t\tcout << k << endl;\n\t\tt--;\n\t}\n\treturn 0;\n}\n"} +{"label": "90", "index": "44991", "code": "//****************************************\n//*??: ????? **\n//*?????? 1100013012 **\n//*???2011.11.16 **\n//****************************************\nint num = 0 ;\n\nint apple(int m , int n)\n{\n\tif ( n == 1 || m == 0 )\n\t{\n\t\treturn 1 ;\n\t}\n\tif ( m < n )\n\t{\n\t\treturn apple(m , m) ;\n\t}\n\telse\n\t{\n\t\treturn apple(m , n-1) + apple(m-n , n) ;\n\t}\n}\n\nint main()\n{\n\tint t , k , m , n ;\n\tcin >> t ;\n\tfor ( k = 0 ; k < t ; k++ )\n\t{\n\t\tcin >> m >> n ;\n\t\tcout << apple(m , n) << endl ;\n\t}\n\treturn 0 ;\n}\n"} +{"label": "90", "index": "44992", "code": "/*???\n???*/\nint sum(int m, int n, int lim)//m????n???????????\n{\n\tif(n == 1 && m <= lim)\n\t\treturn 1;\n\tif(n == 1 && m > lim)\n\t\treturn 0;\n\tif (m == 0)\n\t\treturn 1;\n\tint max, i, a;\n\tif(m % n == 0)\n\t\tmax = m / n;\n\telse\n\t\tmax = m / n + 1;\n\n\ta = 0;\n\tif(lim > m)\n\t\tlim = m;\n\tfor (i = lim; i >= max; i--)\n\t\ta += sum(m - i, n - 1, i);\n\treturn a;\n}\nint main ()\n{\n\tint m, n, k, i;\n\tcin >> k;\n\tfor(i = 1; i <= k; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tcout << sum(m,n,m) << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "90", "index": "44993", "code": "\nint main(int argc, char *argv[])\n{\n int i,t,m,n;\n scanf(\"%d\",&t);\n for(i=0;i<=t-1;i++)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\",f(m,n));\n if(i!=t-1) printf(\"\\n\");\n }\n \t\n return 0;\n}\n\nint f(int m,int n)\n{\n int x=0;\n if(m<0) x+=0;\n else if(m==0) x+=1; \n else if(n>1) x+=f(m,n-1)+f(m-n,n);\n else if(n==1) x+=1;\n return x;\n}\n"} +{"label": "90", "index": "44994", "code": "\nint search(int x,int y,int z)\n{\n\tint s=0,i;\n\tif(y>1)\n\t\tfor(i=z;i<=x/y;i++)\n\t\t\ts+=search(x-i,y-1,i);\n\telse s=1;\n\treturn s;\n}\n\nint main()\n{ \n\tint t,M,N,i;\n\tcin>>t;\n\tfor(i=0;i>M>>N;\n\t\tcout<=1\n if(m>=n)return f(m-n,n)+f(m,n-1);\n}\nint main(){\n int m,n,t;\n cin>>t;\n while(t--){\n cin>>m>>n;\n cout<>t;\n\twhile(t--)\n\t{\n\t\tcin>>Apple>>Plate;\n\t\tcout<=y)\n return f(x,y-1)+f(x-y,y);\n return 0;\n}\nmain()\n{\n int t,n,m;\n scanf(\"%d\",&t);\n while(t--)\n {\n scanf(\"%d %d\",&m,&n);\n printf(\"%d\\n\",f(m,n));\n }\n}\n"} +{"label": "90", "index": "44999", "code": "//****************************\n//*???????? **\n//*?????? 1300012965 **\n//*???20131127\t\t\t**\n//****************************\nint apple(int mf, int nf)\n{\n\tif(nf == 1)\n\t\treturn 1;\n\tif(mf == 0)\n\t\treturn 1;\n\tif(mf >= nf)\n\t\treturn apple(mf, nf - 1) + apple(mf - nf, nf);\n\tif(mf < nf)\n\t\treturn apple(mf, nf - 1);\n}\n\nint main()\n{\n\tint m, n, i, j, num;\n\tcin >> j;\n\tfor(i = 1; i <= j; i++)\n\t{\n\t\tcin >> m >> n;\n\t\tnum = apple(m, n);\n\t\tcout << num << endl;\n\t}\n\t\n\t\n\treturn 0;\n}"} +{"label": "91", "index": "45000", "code": "\nint main()\n{\n char s[110],s1[110];\n int l,i;\nmemset(s,0,sizeof(s));\nmemset(s1,0,sizeof(s1));\n gets(s);\n l=strlen(s);\n for(i=0;i= s; p--)\n\t{\n\t\tp1--;\n\t\t*p1 = *p + *(p + 1);\n\t}\n\tfor (p1 = s1; *p1 != '\\0'; p1++) //??s1\n\t{\n\t\tcout << *p1;\n\t}\n\tcout << endl;\n\treturn 0;\n}\n"} +{"label": "91", "index": "45002", "code": "void main()\n{\n\tchar *s1,*s2;\n\tint i,len;\n\ts1=(char*)malloc(100*sizeof(char));\n\ts2=(char*)malloc(100*sizeof(char));\n\tgets(s1);\n\tlen=strlen(s1);\n\tfor(i=0;i=2){printf(\"%c\",*p+p[1]);n--;\nqp(p+1,n);}}\n"} +{"label": "91", "index": "45120", "code": "int main(){\n\tchar a[111],b[111];\n\tchar *ap=a,*bp=b;\n\tgets(a);\n\tfor(unsigned int i=0;i<=strlen(a)-2;i++){\n\t\t*(bp+i)=*(ap+i)+*(ap+i+1);\n\t}\n\t*(bp+strlen(a)-1)=*(ap+strlen(a)-1)+*(ap);\n\t*(bp+strlen(a))='\\0';\n\tcout<=0;i--)\n {\n if(a[i]!='\\0')\n {k=i;\n break;}\n }\n c=a[0];\n for(i=0;i=2 && n<=100)\n\t{\n\t\tfor(pca=str, pcb=str+1, i=0; pca<(str+n-1); pca++, pcb++, i++)\n\t\t\tfri[i]=*pca + *pcb;\n\t\tfri[n-1]=str[0]+str[n-1];\n\t\tprintf(\"%s\\n\",fri);\n\t}\n}"} +{"label": "91", "index": "45355", "code": "void main()\n{\n char a[101];\n char b[101];\n char *p1,*p2,*p;\n int n;\n p=a;\n gets(p);\n n=strlen(a);\n for(p2=b,p1=a;p1=0;i--)\n\t{\n\t\tif(*(st+i)!='\\0')\n\t\t\tbreak;\n\t}\n for(j=0;j1)\n\t{ b[i++]=*p+*q;\n\t p++;\n\t q++;\n\t n--;\n\t}\n\tb[i]=a[0]+*p;\n\tb[i+1]='\\0';\n\tprintf(\"%s\",b);\n}"} +{"label": "91", "index": "45394", "code": "\nint main() {\n\tchar a[105],b[105];\n\tgets(a);\n\tint i,temp;\n\tfor(i=0;i=2 && n<=100)\n\t{\n\t\tfor(pca=str, pcb=str+1, i=0; pca<(str+n-1); pca++, pcb++, i++)\n\t\t\tfri[i]=*pca + *pcb;\n\t\tfri[n-1]=str[0]+str[n-1];\n\t\tprintf(\"%s\\n\",fri);\n\t}\n}"} +{"label": "91", "index": "45439", "code": "/************************************************\n**authour:\t???\t\t\t\t*\n**number:\t1000012905\t\t\t*\n**descripition:\t?????\t\t\t*\n************************************************/\nint main()\n{\n\t//????? \n\tchar\twords[101];\n\tcin.getline(words, 101);\n\t//??????? \n\tchar\t*p = words;\n\n\t//???????????????? \n\twhile(*(p + 1) != '\\0')\n\t{\n\t\tcout << (char)(*p + *(p + 1));\n\t\tp ++;\n\t}\n\tcout << (char)(*p + words[0]) << endl;\t//???????? \n\n\treturn 0;\n}\n"} +{"label": "91", "index": "45440", "code": "int main ()\n{\n\tchar str[10000];\n\tcin.get(str, 10000);\n\tint len = strlen(str);\n\tchar temp = str[0];\n\tint i;\n\tfor (i = 0; i < len - 1; i++)\n\t{\n\t\tstr[i] = str[i] + str[i + 1];\n\t}\n\tstr[i] = temp + str[i];\n\tstr[i + 1] = '\\0';\n\tcout << str << endl;\n\treturn 0;\n}\n"} +{"label": "91", "index": "45441", "code": "int main()\n{ char a[100]={'\\0'};\n int n=0,i=0,t=0;\n \n gets(a);\n n=strlen(a);\n for(i=0;i1)\n {\n printf(\"%c\",*p+*(p+1));\n p++;\n i--;\n }\n printf(\"%c\\n\",*p+ch[0]);\n return 0;\n}\n\n\n\n\n"} +{"label": "91", "index": "45452", "code": "/*\n * FriendString.cpp\n *\n * Created on: 2013-12-12\n * Author: KEVIN\n */\n\n\nint main()\n{\n\tchar s[101],s1[101];\n\tgets(s);\n\tfor(char* p=s,*p1=s1,*pend=s+100;p<=pend;++p,++p1)\n\t{\n\t\tif(*(p+1)!=0)\n\t\t\t*p1=*p+*(p+1);\n\t\telse\n\t\t{\n\t\t\t*p1=*p+*s;\n\t\t\t*(p1+1)=0;\n\t\t\tbreak;\n\t\t}\n\t}\n\tcout<=n)\n\t\t{k=k-n;}\n\t\tb[j]=*(p+i)+*(p+k);\n\t\tj++;\n\t}\n puts(b);\n\treturn 0;\n}\n\n"} +{"label": "91", "index": "45469", "code": "\n\nint main(int argc, char* argv[])\n{\n\tchar sz[101],fri[101];\n\tint i;\n\tgets(sz);\n\tfor(i=0;sz[i+1]!='\\0';i++){\n\t\tfri[i]=sz[i]+sz[i+1];\n\t}\n\tfri[i]=sz[i]+sz[0];\n\tfri[i+1]='\\0';\n\tputs(fri);\n\treturn 0;\n}\n"} +{"label": "91", "index": "45470", "code": "int main()\n{\n\tchar cha[500];\n\tgets(cha);\n\tint i=0,b;\n\tfor(i=0;cha[i]!='\\0';i++)\n\t{\n\t\tif(cha[i+1]=='\\0')\n\t\t{\n\t\t\tb=(int)cha[i]+(int)cha[0];\n\t\t\tprintf(\"%c\",b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb=(int)cha[i]+(int)cha[i+1];\n\t\t\tprintf(\"%c\",b);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "91", "index": "45471", "code": "/******************************************\n/* ? ?: ???????\n/* ? ?: ??? 1200012861\n/* ? ?: 2012?11?30?\n******************************************/\n\n\nint main()\n{\n\tchar str[105];\n\tchar *p, *q;\n\tchar b;\n\tint i, len;\n\n cin.getline(str, 105);\n len = strlen(str); \n\n p = str; //?????p???????\n\tq = str + 1; //?????q???????\n\n for (i = 1; i < len; i++)\n\t{\n\t\tb = *p++ + *q++;\n\t\tcout << b;\n\t}\n\tchar a = str[0] + str[len - 1];\n\tcout << a << endl;\n\treturn 0;\n}\n"} +{"label": "91", "index": "45472", "code": "\nint main(int argc, char* argv[])\n{\n\tchar zfc1[101],zfc2[101];\n\tchar *p1,*p2;\n\tp2=zfc2;\n\tgets(zfc1);\n\tfor(p1=zfc1;*p1!='\\0';p1++,p2++){\n\t\tif(*(p1+1)!='\\0'){\n\t\t\t*p2=*p1+*(p1+1);\n\t\t}\n\t\telse{\n\t\t\t*p2=*p1+zfc1[0];\n\t\t}\n\t}\n\t*p2='\\0';\n\n\n\tprintf(\"%s\",zfc2);\n\treturn 0;\n}\n\n"} +{"label": "91", "index": "45473", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint i,n;\n\tgets(a);\n\tn=0;\n for(i=0;i<100;i++)\n\t\t{\n\t\t\tif(a[i]!='\\0'||a[i]==' ')\n\t\t\t\tn++;\n\t\t\tif(a[i]=='\\0')\n\t\t\t\tbreak;\n\t\t}\n\t\tfor(i=0;i*(T+i)){\n\t\t\t m=*(T+i);\n\t\t\t\t*(T+i)=*(T+j);\n\t\t\t\t*(T+j)=m;\n\t\t\t} \n\t\t}\n\t}\n for(i=0;i*(Q+i)){\n\t\t\t m=*(Q+i);\n\t\t\t\t*(Q+i)=*(Q+j);\n\t\t\t\t*(Q+j)=m;\n\t\t\t} \n\t\t}\n\t}\n\n\t/*for(i=0;i*(Q+q)){\n\t\t S+=200;\n\t\t\t*(T+t)=-1;\n\t\t\t*(Q+q)=-1;\n\t\t\tt++;\n\t\t\tq++;\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(*(T+t)<*(Q+q)){\n\t\t S-=200;\n\t\t\t*(T+te)=-1;\n\t\t\t*(Q+q)=-1;\n\t\t\tq++;\n\t\t\tte--;\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(*(T+t)==*(Q+q)) break;\n\t\t\t}\n\t\telse{\n\t\tif(*(T+t)>*(Q+q)){\n\t\t S+=200;\n\t\t\t*(T+t)=-1;\n\t\t\t*(Q+q)=-1;\n\t\t\tt++;\n\t\t\tq++;\n\n\t/*for(i=0;i*(Q+qe)){\n\t\t\t S+=200;\n\t\t\t\t*(T+te)=-1;\n\t\t\t\t*(Q+qe)=-1;\n\t\t\t\tte--;\n\t\t\t\tqe--;\n\n\t/*for(i=0;iqw[q])\n\t\t\t{\n\t\t\t\tyl=yl+200;\n\t\t\t\to=o-1;\n\t\t\t\tq=q-1;\n\t\t\t}\n\t\t\telse if(tj[o]qw[r])\n\t\t\t\t{\n\t\t\t\t\tyl=yl+200;\n\t\t\t\t\tp=p+1;\n\t\t\t\t\tr=r+1;\n\t\t\t\t}\n\t\t\t\telse if(tj[p]==qw[r])\n\t\t\t\t{\n\t\t\t\t\tif(tj[o]=1;j--)\n\t\t\t{\n\t\t\t\tif (a[j]>b[i]) {sum[k]+=200;a[j]=-1;max=1;break;}\n\t\t\t\tif (a[j]==b[i]) t=j; \n\t\t\t}\n\t\t\tif (max==1) continue;\n\t\t\tif (t!=0){\n\t\t\t\tfor (j=i+1;j<=n;j++)\n\t\t\t\t\tif (a[t]!=a[t+j-i] && a[t]!=b[j] && a[t+j-i]<=b[j]) {isall=0;break;}\n\t\t\t}\n\t\t\tif (t!=0 && isall==1)\n\t\t\t\t{a[t]=0;}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\tfor (j=n;j>=1;j--)\n\t\t\t\t{\n\t\t\t\t\tif (a[j]!=-1 && a[j]>n)\n\t{\t\n\t\tif(n==0) break;\n\t\tresult=0;\n\t\tfor(i=0;i>speed1[i];\n\t\tfor(i=0;i>speed2[i];\n\t\tqsort(speed1,n,sizeof(int),MyCompare);\n\t\tqsort(speed2,n,sizeof(int),MyCompare);\n\t\t/*for(i=0;ispeed2[p])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\ti++;\n\t\t\t\tp++;\n\t\t\t}\n\t\t\telse if(speed1[j]>speed2[q])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\tj--;\n\t\t\t\tq--;\n\t\t\t}\n\t\t\telse if(speed1[j]==speed2[p])\n\t\t\t{\n\t\t\t\tj--;\n\t\t\t\tp++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresult -= 200;\n\t\t\t\tj--;\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\tcout<b[j])\n sum++;\n }\n if(sum>=max)\n max=sum;\n }\n max=max*200;\n printf(\"%d\\n\",max);\n }\n}\n"} +{"label": "92", "index": "45505", "code": "int dp[N][N];\nint a[N],b[N];\nint n;\n\nvoid Qsort(int a[],int i,int j)\n{\n int i1=i,j1=j,tmp=a[i];\n while(itmp) i++;\n if(iy?x:y;\n}\n\nint judge(int x,int y)\n{\n if(x==y) return 0;\n if(x>y) return 1;\n return -1;\n}\n\nvoid solve()\n{\n int i,j;\n for(i=0;ib[qmax])\n\t\t\t{\n\t\t\t\ttemp++;\n\t\t\t\ttmax++;\n\t\t\t\tqmax++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[tmax]b[qmin])\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp++;\n\t\t\t\t\t\ttmin--;\n\t\t\t\t\t\tqmin--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[tmin]>n && n!=0)\n\t{\n\t\tfor(int i=0;i!=n;++i)\n\t\t\tcin>>ht[i];\n\t\tfor(int i=0;i!=n;++i)\n\t\t\tcin>>hq[i];\n\t\tqsort(ht,n,sizeof(int),comp);\n\t\tqsort(hq,n,sizeof(int),comp);\n\t\tint it=0,iq=0,jt=n-1,jq=n-1;\n\t\tint result=0;\n\t\tfor(int i=0;i!=n;++i)\n\t\t{\n\t\t\tif(ht[jt]>hq[jq])\n\t\t\t{\n\t\t\t\t--jt,--jq;\n\t\t\t\tresult+=200;\n\t\t\t}\n\t\t\telse if(ht[it]>hq[iq])\n\t\t\t{\n\t\t\t\t++it,++iq;\n\t\t\t\tresult+=200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(ht[it]*QSlow){\n\t\t\t\tcountWin ++;\n\t\t\t\tTSlow --;\n\t\t\t\tQSlow --;\n\t\t\t}else{\n\t\t\t\tif(TFast!=TSlow){\n\t\t\t\t\tif(*TFast<*QFast){\n\t\t\t\t\t\tcountWin --;\n\t\t\t\t\t\tQFast ++;\n\t\t\t\t\t\tTSlow --;\n\t\t\t\t\t}else if(*TFast==*QFast){\n\t\t\t\t\t\tif(*QFast>*TSlow)\n\t\t\t\t\t\t\tcountWin --;\n\t\t\t\t\t\tQFast ++;\n\t\t\t\t\t\tTSlow --;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tcountWin ++;\n\t\t\t\t\t\tQFast ++;\n\t\t\t\t\t\tTFast ++;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(TFast>TSlow)\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%d\\n\", 200*countWin);\n\t\tfree(TianJi);\n\t\tfree(QiWang);\n\t}\n\n\treturn 0;\n}"} +{"label": "92", "index": "45509", "code": "\n\n\nint a[1005], b[1005], w[1005][1005];\n\nint main()\n{\n\tint i, j, n;\n\t//freopen(\"input.txt\", \"r\", stdin);\n\twhile(scanf(\"%d\", &n)==1)\n\t{ \n\t\tif(n<=0)\n\t\t\treturn 0;\n\t\tfor( i=1 ; i<=n ; i++ )\n\t\t\tscanf(\"%d\", &b[i]);\n\t\tfor( i=1 ; i<=n ; i++ )\n\t\t\tscanf(\"%d\", &a[i]);\n\t\tsort(a+1, a+n+1);\n\t\tsort(b+1, b+n+1);\n\t\tmemset(w, -100, sizeof(w));\n\t\tfor( i=0 ; i<=n+1 ; i++ )\n\t\t\tw[n+1][i]=0;\n\t\tfor( i=n; i>=1 ; i-- )\n\t\t{\n\t\t\tw[i][n+1]=w[i+1][n+1]-1;\n\t\t\tfor( j=n ; j>=i ; j-- )\n\t\t\t{\n\t\t\t\tif(a[i]y)\n y=x;\n if (z>w)\n z=w;\n \n \n for(i=0;ib[j])\n {num1++;\n a[m-1-i]=z-1;\n b[j]=y+1;\n break;} \n \n }\n \n }\n for (i=0;i= left; j--){\n if(array[j] > temp){\n array[j + 1] = array[j];\n }\n else{\n break;\n }\n }\n array[j + 1] = temp;\n }\n} \nvoid merge(int* array,int* temp,int left,int right,int middle){\n int i,j,k,index1,index2;\n for(i = left; i <= middle; i++){\n temp[i] = array[i];\n }\n for(j = 1; j <= right - middle; j++){\n temp[right - j + 1] = array[j + middle];\n }\n for(index1 = left,index2 = right, k = left; k <= right; k++){\n if(temp[index1] <= temp[index2]){\n array[k] = temp[index1++];\n }\n else{\n array[k] = temp[index2--];\n }\n }\n}\nvoid mergesort(int* array,int* temp,int left,int right){\n if(right - left > 16){\n int middle = (left + right) / 2;\n mergesort(array,temp,left,middle);\n mergesort(array,temp,middle + 1,right);\n merge(array,temp,left,right,middle);\n }\n else{\n insertsort(array,left,right);\n }\n}\nint main(){\n int n;\n scanf(\"%d\",&n);\n if(n == 0){return 0;}\n int horse_q[1005]; //???? \n int horse_t[1005]; //????\n int i;\n for(i = 0; i < n; i++){\n scanf(\"%d\",&horse_t[i]);\n }\n for(i = 0; i < n; i++){\n scanf(\"%d\",&horse_q[i]);\n }\n int temp[1005];\n mergesort(horse_t,temp,0,n - 1);\n mergesort(horse_q,temp,0,n - 1);\n int t_head = n - 1; //?????????? \n int t_last = 0; //?????????? \n int q_head = n - 1; //??????????\n int q_last = 0; //?????????? \n int ans = 0; //?? \n while(q_head >= q_last){ //??????????\n if(horse_t[t_head] > horse_q[q_head]){\n ans += 200;\n t_head--;\n q_head--;\n }\n else if(horse_t[t_head] < horse_q[q_head]){\n ans -= 200;\n t_last++;\n q_head--;\n }\n else{\n if(horse_t[t_last] > horse_q[q_last]){\n ans += 200;\n t_last++;\n q_last++;\n }\n else{\n if(horse_t[t_last] < horse_q[q_head]){\n ans -= 200;\n }\n t_last++;\n q_head--;\n }\n }\n }\n printf(\"%d\\n\",ans);\n main();\n}"} +{"label": "92", "index": "45512", "code": "int min(int a[],int n)\n{\n\tint min=a[1],i;\n\tfor(i=0;ia[i])\n\t\t{\n\t\t\tmin=a[i];\n\t\t}\n\t}\n\treturn min;\n}\nvoid main()\n{\n\tint T[1100],Q[1100],n=1,i,k,e,s,money=0,first,endT,endQ;\n\twhile(n!=0)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tfirst=0,endT=n-1,endQ=n-1;\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tfor(i=0;iQ[i])\n\t\t\t{\n\t\t\t\tfirst++;\n\t\t\t\tmoney+=200;\n\t\t\t}\n\t\t\telse if(T[first]=first;k--,s--)\n\t\t\t\t{\n\t\t\t\t\tif(T[k]>Q[s])\n\t\t\t\t\t{\n\t\t\t\t\t\tmoney+=200;\n\t\t\t\t\t\tendT--;\n\t\t\t\t\t\tendQ--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(T[k]endT)\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%d\\n\",money);\n\t\tmoney=0;\n\t}\n}"} +{"label": "92", "index": "45513", "code": "void exchange(int *a,int *b)\n{\n\tif(*a>*b)\n\t{\n\t\t*a=*a+*b;\n\t\t*b=*a-*b;\n\t\t*a=*a-*b;\n\t}\n}\nvoid sort(int*p,int n)\n{\n\tint i,j;\n\tfor(i=0;i*(q+qw))\n\t\t{\ttj++;qw++;count++;n--;\t}\n\t\telse if(*(t+tj+n-1)>*(q+qw+n-1))\n\t\t{\tcount++;n--;\t}\n\t\telse \n\t\t{\t\n\t\t\tif(*(t+tj)<*(q+qw+n-1))count--;\n\t\t\ttj++;n--;\t\n\t\t}\n\t}\t\n\treturn count;\n}\nint main()\n{\n\tint n,t[1000],q[1000],i;\n\tfor(;;)\n\t{\n\tscanf(\"%d\",&n);\n\tif(n==0)break;\n\tfor(i=0;i>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tfor(i=0;i>tianji[i];\n\t\tfor(i=0;i>qiwang[i];\n\t\tqsort(tianji,n,sizeof(int),compare);\n\t\tqsort(qiwang,n,sizeof(int),compare);\n\t\tint head1=0,tail1=n-1,head2=0,tail2=n-1,money=0;\n\t\twhile(head1<=tail1)\n\t\t{\n\t\t\tif(tianji[tail1]>qiwang[tail2])\n\t\t\t{\n\t\t\t\tmoney+=200;\n\t\t\t\ttail1--;\n\t\t\t\ttail2--;\n\t\t\t}\n\t\t\telse if(tianji[tail1]qiwang[head2])\n\t\t\t\t{\n\t\t\t\t\tmoney+=200;\n\t\t\t\t\thead1++;\n\t\t\t\t\thead2++;\n\t\t\t\t}\n\t\t\t\telse if(tianji[head1]=start_tian)\n\t\t{\n\t\t\tif (speed_tian[j][x]>speed_qi[j][end_qi])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tend_qi--;\n\t\t\t}\n\t\t\telse if(speed_tian[j][x]speed_qi[j][start_qi])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tstart_tian++;\n\t\t\t\t\tstart_qi++;\n\t\t\t\t}\n\t\t\t\tif(speed_tian[j][x] qi[i+k])\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t\tmoney += 200;\n\t\t\t}\n\t\t\telse if(tian[k] == qi[i+k])\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tk = 0;\n\t\t\t\tmoney = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(i+k==n)\n\t\t{\n\t\t\tif(money - i * 200 > result)\n\t\t\t{\n\t\t\t\tresult = money - i * 200;\n\t\t\t}\n\t\t\tmoney = 0;\n\t\t}\n\t}\n\treturn result;\n}\nint cmp(const void * af, const void *bf)\n{\n\tint *elem1 = (int*)af;\n\tint *elem2 = (int*)bf;\n\treturn (*elem2 - *elem1);\n}\nint main()\n{\n\tint n;\n\twhile(cin >> n && n!=0)\n\t{\n\t\tfor(int i=0;i> tian[i];\n\t\t}\n\t\tfor(int i=0;i> qi[i];\n\t\t}\n\t\tqsort(tian,n,sizeof(int),cmp);\n\t\tqsort(qi,n,sizeof(int),cmp);\n\t\tint pos = 0;\n\t\tcout << cal(n) << endl;\n\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45517", "code": "void main()\n{\n\tint l1,l2,t1,t2,temp,i,j,n;\n long sum;\n\tint a[2000],b[2000];\n\tscanf(\"%d\",&n);\n\twhile (n>0)\n\t{\n\t\tsum=0;\n\t\tl1=1;l2=n;t1=1;t2=n;\n\t\tfor (i=1;i<=n;i++)\n\t\t\tscanf(\"%d\",&a[i]);\n\t\tfor (i=1;ib[t1])\n\t\t\t{ \n\t\t\t sum=sum+200;\n\t\t\t l1++;t1++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if (a[l2]>b[t2])\n\t\t\t\t{\n\t\t\t\t\tsum=sum+200;\n\t\t\t\t\tl2--;t2--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (a[l2]>b[t1]) sum=sum+200;\n\t\t\t\t\tif (a[l2]>n;\n\t\tif(n==0)\n\t\t\tbreak;\n\t\t\n\t\tfor(i=0;i>Tian[i];\n\t\tfor(i=0;i>King[i];\n\t\t\n\n\t\tqsort(King,n,sizeof(int),cmp);\n\t\tqsort(Tian,n,sizeof(int),cmp);\n\t\t//??\n\t\tbegin=0;\n\t\tend=n-1;\n\t\t//??\n\t\ti=0;j=n-1;\n\t\twhile(i<=j)\n\t\t{\n\t\t\t//win\n\t\t\tif(King[i]Tian[begin])\n\t\t\t{\n\t\t\t\tLose++;\n\t\t\t\ti++;\n\t\t\t\tend--;\n\t\t\t}\n\n\t\t\t//tie\n\t\t\telse if(King[i]==Tian[begin])\n\t\t\t{\n\t\t\t\twhile(King[j]i && end>begin )\n\t\t\t\t{\n\t\t\t\t\tWin++;\n\t\t\t\t\tend--;\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\tif(King[j]>Tian[end])\n\t\t\t\t{\n\t\t\t\t\tLose++;\n\t\t\t\t\ti++;\n\t\t\t\t\tend--;\n\t\t\t\t}\n\t\t\t\telse if(King[j]==Tian[end])\n\t\t\t\t{\n\t\t\t\t\tif(King[i]>Tian[end])\n\t\t\t\t\t{\n\t\t\t\t\t\tLose++;\n\t\t\t\t\t\tend--;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(King[i]==Tian[end])\n\t\t\t\t\t{\n\t\t\t\t\t\tend--;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tcout<<(Win-Lose)*200<0;scanf(\"%ld\",&n))\n {\n for(i=1;i<=n;i++)\n {\n scanf(\"%ld\",tian+i);\n }\n for(i=1;i<=n;i++)\n { \n scanf(\"%ld\",king+i);\n }\n sort(tian);sort(king);\n long begin_tian=1,end_tian=n;\n long begin_king=1,end_king=n;\n money=0;\n while(begin_tian<=end_tian)\n {\n while((tian[begin_tian]>king[begin_king])&&(begin_tian<=end_tian))\n {\n money+=200;\n begin_tian++;begin_king++;\n }\n while((tian[end_tian]>king[end_king])&&(begin_tian<=end_tian))\n {\n money+=200;\n end_tian--;end_king--; \n }\n if(begin_tian<=end_tian)\n {\n if(tian[begin_tian]>horseNum)\n\t{\n\t\tif(horseNum == 0)\n\t\t\tbreak;\n\t\tfor(i=0; i>Thorse[i];\n\t\tfor(i=0; i>Qhorse[i];\n\t\tqsort(Thorse, horseNum, sizeof(int), Mycompare);\n\t\tqsort(Qhorse, horseNum, sizeof(int), Mycompare);\n\t\tTh = Qh = 0;\n\t\tTt = Qt = horseNum - 1;\n\t\tsum = 0;\n\t\twhile(Th <= Tt)\n\t\t{\n\t\t\tif(Thorse[Th] > Qhorse[Qh])\n\t\t\t{\n\t\t\t\tsum = sum + 200;\n\t\t\t\tTh = Th + 1;\n\t\t\t\tQh = Qh + 1;\n\t\t\t}\n\t\t\telse if(Thorse[Th] < Qhorse[Qh])\n\t\t\t{\n\t\t\t\tsum = sum - 200;\n\t\t\t\tQh = Qh + 1;\n\t\t\t\tTt = Tt - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(Thorse[Tt] > Qhorse[Qt])\n\t\t\t\t{\n\t\t\t\t\tsum = sum + 200;\n\t\t\t\t\tTt = Tt - 1;\n\t\t\t\t\tQt = Qt - 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(Thorse[Tt] < Qhorse[Qh])\n\t\t\t\t\t{\n\t\t\t\t\t\tsum = sum - 200;\n\t\t\t\t\t\tTt = Tt - 1;\n\t\t\t\t\t\tQh = Qh + 1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tTt = Tt - 1;\n\t\t\t\t\t\tQh = Qh + 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<=1;h--)\n {\n for(i=1;i<=h;i++)\n {\n if(a[i]=1;h--)\n {\n for(i=1;i<=h;i++)\n {\n if(b[i]=m;)\n {\n if(a[i]>b[j]) \n {i--;j--;yin++;continue;} \n if(a[i]==b[j])\n {\n if(a[mt]>b[m])\n {mt++;m++;yin++;continue;}\n if( a[mt]=0;i--){\n\t\t\t\tfor(j=0;j=0;i--){\n\t\t\t\tfor(j=0;j*(q+j))\n\t\t\t\t\t\tmoney=money+200;\n\t\t\t\t\telse if(*(p+j-i)<*(q+j))\n\t\t\t\t\t\tmoney=money-200;\n\t\t\t\t}\n\t\t\t\tfor(j=i-1;j>=0;j--){\n\t\t\t\t\tif(*(p+n-1-j)>*(q+j))\n\t\t\t\t\t\tmoney=money+200;\n\t\t\t\t\telse if(*(p+n-1-j)<*(q+j))\n\t\t\t\t\t\tmoney=money-200;\n\t\t\t\t}\n\t\t\t\tif(money>profit){\n\t\t\t\t\tprofit=money;\n\t\t\t\t}\n\t\t\t\tmoney=0;\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",profit);\n\t\t}\n\t\t\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45523", "code": "int compare(const void *a,const void *b)\n{\n\n int x,y;\n x=*(int *)a;\n y=*(int *)b;\n if (xy)\n return -1;\n else \n \treturn 0;\n}\nint main()\n{\n int i,j,k,s,x,n,t[1000],q[1000];\n cin>>n;\n while (n!=0)\n {\n for (i=0;i>t[i];\n for (i=0;i>q[i];\n qsort(t,n,sizeof(t[0]),compare);\n qsort(q,n,sizeof(q[0]),compare);\n for (i=0;t[0]q[j])\n x+=200;\n else if (t[k]s)\n s=x;\n }\n cout<a[i])\n\t\t\t\tnum=num+200;\n\t\t\tif(b[i]a[i])\n\t\t\t\tnum=num+200;\n\t\t\tif(b[i]max)\n\t\t\t\tmax=c[j];\n\t\n\t\t\n\t\tprintf(\"%d\\n\",max);\n\t}\n\t\n\n \n\n}"} +{"label": "92", "index": "45525", "code": "\nstatic int cmp(const void *a, const void *b)\n{\n\treturn *(int *)b - *(int *)a;\n}\nint main()\n{\n\tint n;\n\tint i,j,k;\n\tint temp;\n\tint win=0;\n\tint tie=0;\n\tint lose=0;\n\tint tianji[1000];\n\tint qiwang[1000];\n\twhile(1)\n\t{\n\t\twin=0;\n\t\ttie=0;\n\t\tlose=0;\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tfor(i=0;i=0;i--)\n\t\t\t{\n\t\t\t\tif(tianji[i]==-1)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(tianji[i]>qiwang[j])\n\t\t\t\t{\n\t\t\t\t\ttianji[i]=-1;\n\t\t\t\t\tqiwang[j]=-1;\n\t\t\t\t\twin++;\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;ib[qr]) \n { \n sum+=200; \n tr--; \n qr--; \n } \n else \n { \n if(a[tl]qi[j])\n m=m+1;\n if(tian[j+i]max)\n max=m;\n }\n printf(\"%d\\n\",200*max);\n }\n else\n break;\n }\n\n}\nvoid paixu(int*p,int k)\n{\n int i,j,t;\n for(i=0;i kh[k])\n ++w, ++j, ++k;\n else if(th[mxt] > kh[mxk])\n ++w, --mxt, --mxk;\n else if(th[mxt] < kh[k])\n --w, --mxt, ++k;\n else;\n }\n printf(\"%d\\n\", 200*w);\n }\n return 0;\n}\n\n\n"} +{"label": "92", "index": "45529", "code": "static int cmp(const void *a, const void *b)\n{\n\treturn *(int *)b - *(int *)a;\n}\nint main()\n{\n\tint n=1;\n\n\twhile(n!=0)\n\t{\n\t\tint *a,*b,t,s,j,p,c,tk,tm,qk,qm;\n\t\tint *p3,*p4;\n\t\tscanf(\"%d\",&n);\n\t\tif (n==0) break;\n\t\ta=(int *)malloc((n)*sizeof(int));\n\t\tb=(int *)malloc((n)*sizeof(int));\n\t\tp3=(int *)malloc((n)*sizeof(int));\n\t\tp4=(int *)malloc((n)*sizeof(int));\n\t\tt=0;\n\t\tp=0;\n\t\tj=0;\n\t\ts=0;\n\t\tfor(int i=0;ib[qm])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttm--;\n\t\t\t\tqm--;\n\t\t\t}\n\t\t\telse if(a[tm]b[qk])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttk++;\n\t\t\t\tqk++;\n\t\t\t}\n\t\t\telse if (a[tk]wang[staw]){\n\t\t\tsum+=200;\n\t\t\tstaw++;\n\t\t\tstat++;\n\t\t}\n\t\telse if(tian[stat]wang[endw]){\n\t\t\t\t\tsum+=200;\n\t\t\t\t\tendt--;\n\t\t\t\t\tendw--;\n\t\t\t\t}\n\t\t\t\telse if(tian[endt]<=wang[endw]){\n\t\t\t\t\tif(tian[endt]i;j--){\n\t\t\tif(tian[j]>tian[j-1]){\n\t\t\t\tb=tian[j];\n\t\t\t\ttian[j]=tian[j-1];\n\t\t\t\ttian[j-1]=b;\n\t\t\t}\n\t\t\tif(wang[j]>wang[j-1]){\n\t\t\t\tb=wang[j];\n\t\t\t\twang[j]=wang[j-1];\n\t\t\t\twang[j-1]=b;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45531", "code": "main()\n{\n\nint i,j,k,c,n,prize,w,max;\nint a[1001];\nint b[1001];\nfor(;;)\n{\n max=0;\nscanf(\"%d\",&n);\nif(n==0)\nbreak;\nfor(i=1;i<=n;i++)\nscanf(\"%d\",&a[i]);\nfor(i=1;i<=n;i++)\nscanf(\"%d\",&b[i]);\nfor(j=1;j<=n;j++)\n{\nfor(i=1;ib[i])\n{\nc=b[j];\nfor(k=j;ia[i])\n{\nc=a[j];\nfor(k=j;ib[k])\nprize=prize+200;\nelse if(a[k]1;j--)\na[j]=a[j-1];\na[1]=w;\nif(i==1)\nmax=prize;\nif(prize>=max)\nmax=prize;\n}\nprintf(\"%d\\n\",max); \n }\n }\n\n"} +{"label": "92", "index": "45532", "code": "long a[1000],b[1000];\nint cmp(const void *a,const void *b )\n{\n return(*(long*)a)-(*(long*)b);\n}\n\nmain()\n{\n long n;\n while(1)\n {\n long sum=0,i,j,end1,end2;\n scanf(\"%ld\",&n);\n if(n==0) break;\n for(i=0;i=end2&&i>=end1;j--)\n {\n if(a[i]>b[j])\n {\n sum++;\n i--;\n }\n else if(a[i]b[end2])//a??????b????\n {\n sum++;end1++;end2++; j++;\n }\n else if(a[end1]p2[i])s++;\n else if(p1[i]==p2[i])\n {\n if(i==n-1)break;\n else {\n for(k=n-1;k>i;k--)\n {\n if(p1[k]>p2[k])\n {\n s++;\n for(j=n-2;j>=i;j--)p1[j+1]=p1[j];\n for(j=n-2;j>=i;j--)p2[j+1]=p2[j];\n i++;\n }\n else \n {\n if(p1[i]=i;j--)p2[j+1]=p2[j];\n break;\n }\n } \n }\n }\n else{\n s--;\n for(j=n-2;j>=i;j--)p2[j+1]=p2[j];\n }\n }\n printf(\"%d\\n\",s*200);\n }\n }\n while(n!=0);\n} \n"} +{"label": "92", "index": "45534", "code": "short int n;\nshort int tianji[1010];\nshort int qiwang[1010];\nint main()\n{\n\twhile(scanf(\"%d\",&n))\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfor(int i = 0 ;i < n; i++)\n\t\t\tscanf(\"%d\",&tianji[i]);\n\t\tfor(int i = 0 ;i < n; i++)\n\t\t\tscanf(\"%d\",&qiwang[i]);\n\t\tsort(tianji,tianji+n);\n\t\tsort(qiwang,qiwang+n);\n\t\tshort int tianjigood, qiwanggood, tianjibad,qiwangbad;\n\t\ttianjigood = qiwanggood= n-1;\n\t\ttianjibad = qiwangbad = 0;\n\t\tshort int cnt = 0;\n\t\twhile(tianjigood >= tianjibad)\n\t\t{\n\t\t\tif(tianji[tianjibad] > qiwang[qiwangbad])\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\ttianjibad++;\n\t\t\t\tqiwangbad++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tianji[tianjibad] < qiwang[qiwangbad])\n\t\t\t{\n\t\t\t\tcnt--;\n\t\t\t\ttianjibad++;\n\t\t\t\tqiwanggood--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tianji[tianjigood] > qiwang[qiwanggood])\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\ttianjigood--;\n\t\t\t\tqiwanggood--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tianji[tianjigood] < qiwang[qiwanggood])\n\t\t\t{\n\t\t\t\tcnt--;\n\t\t\t\ttianjibad++;\n\t\t\t\tqiwanggood--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tianji[tianjibad] < qiwang[qiwanggood])\n\t\t\t\tcnt--;\n\t\t\ttianjibad++;\n\t\t\tqiwanggood--;\n\t\t}\n\t\tprintf(\"%d\\n\",200*cnt);\n\t}\n}\n"} +{"label": "92", "index": "45535", "code": "int n;\nvoid paixu (int* p)\n{\n int k;\n for (int i=n-1;i>=0;i--)\n {\n for (int j=0;jb[i2];)\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t\ti1++;\n\t\t\t\ti2++;\n\t\t\t\tif (i1>j1) break;\n\t\t\t}\n\t\t\tif (i1>j1) break;\n\t\t\tfor (;a[j1]>b[j2];)\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t\tj1--;\n\t\t\t\tj2--;\n\t\t\t\tif (i1>j1) break;\n\t\t\t}\n\t\t\tif (i1>j1) break;\n\t\t\tif (a[j1]j1) break;\n\t\t}\n printf(\"%d\\n\",200*m);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45536", "code": "int a[1010],b[1010];//a tian b wang\nint judge(const void *a ,const void *b)\n{\n\treturn *(int *)a -*(int *)b;\n}\nint main()\n{\n\tint n;\n\twhile (cin >> n)\n\t{\n\t\tint c[1010]={0},d[1010]={0};\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tint i,j;\n\t\tfor (i = 0 ; i < n ; i ++)\n\t\t{\n\t\t\tcin >> a[i];\n\t\t}\n\t\tfor (i = 0 ; i < n ; i ++)\n\t\t{\n\t\t\tcin >> b[i];\n\t\t}\n\t\tqsort(a,n,sizeof(a[0]),judge);\n\t\tqsort(b,n,sizeof(a[0]),judge);\n\t\tj = 0;\n\t\tint res=0,mark = 0,los=0,equ= 0,l1 = 0 ,r1 = n-1,l2 = 0 ,r2 = n-1;\n\t\twhile ( l1 <= r1 && l2 <= r2 )\n\t\t{\n\t\t\t//cout <b[l2])\n\t\t\t{\n\t\t\t\tres++;\n\t\t\t\tl1++;\n\t\t\t\tl2++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (a[r1] > b[r2])\n\t\t\t{\n\t\t\t\tres++;\n\t\t\t\tr1--;\n\t\t\t\tr2--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (a[l1] == b[r2])\n\t\t\t{\n\t\t\t\tequ ++;\n\t\t\t\tl1++;\n\t\t\t\tr2--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tl1++;\n\t\t\tr2--;\n\t\t\tlos++;\n\t\t}\n//\t\tcout <=0;i--)\n\t\t{\n\t\t\tfor(j=0;jb[j])&&(c[j]!=0))\n\t\t\t\t{sum+=200;\n\t\t\t\tk++;\n\t\t\t\tc[j]=0;\n\t\t\t\td[i]=0;\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsum=sum-(n-k)*200;\n\t\tfor(i=0;iqi[headq]) { ans++; headt++; headq++; continue; }\n\t\t\tif(tian[tailt-1]>qi[tailq-1]) { ans++; tailt--; tailq--; continue; }\n\t\t\tif(tian[tailt-1]q[touq])\n {\n count=count+1;\n tout=tout+1;\n touq=touq+1;\n }\n else if(t[tout]q[weiq])\n {\n count+=1;\n weit-=1;\n weiq-=1;\n }\n else if(t[weit]qw[w])\n\t\t\t{\n\t\t\t\tw++;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse if(w==0)\n\t\t\t{\n\t\t\t\tif(tj[j]==qw[w])\n\t\t\t\t\tw++;\n\t\t\t\telse\n\t\t\t\t\twin--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=-1;\n\t\t\t\tfor(i=1;w-i>=0;i++)\n\t\t\t\t\tif(qw[w-i]==tj[j-i]&&qw[w-i]=t[i])\n\t\t\t {\n\t\t \t c=t[i];\n\t\t\t\t t[i]=t[j];\n\t\t\t\t t[j]=c;\n\t\t\t }\n\t\t }\n\t\t} // paixu t\n\t\tfor(j=1;j<=a;j++)\n\t\t{\n\t\t for(i=1+j;i<=a;i++)\n\t\t {\n\t\t\t if(q[j]>=q[i])\n\t\t\t {\n\t\t \t c=q[i];\n\t\t\t\t q[i]=q[j];\n\t\t\t\t q[j]=c;\n\t\t\t }\n\t\t }\n\t\t} // paixu q\n\t\tfor(i=1;i<=a;i++)\n\t\t{\n\t\t\tfor(j=a;j!=0;j--)\n\t\t\t{\n\t\t\t\tif(t2[i]==0 && q2[j]==0)\n\t\t\t\tif(t[i]>q[j])\n\t\t\t\t{\n\t\t\t\t\tt2[i]=1;\n\t\t\t\t\tq2[j]=1;\n\t\t\t\t\twin=win+1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<=a;i++)\n\t\t{\n\t\t\tif(t2[i]==0)\n\t\t\tfor(j=1;j<=a;j++)\n\t\t\t{\n\t\t\t\tif(q2[j]==0)\n\t\t\t\t\tif(t[i]==q[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tping=ping+1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tk=400*win-200*a+200*ping;\n\t\tprintf(\"%d\\n\",k);\n\t}\t\n\treturn 0;\n}"} +{"label": "92", "index": "45542", "code": "int mycompare(const void*e1,const void*e2)\n{\n\tif(*(int*)e1<*(int*)e2)\n\t\treturn 1;\n\telse\n\t\treturn -1;\n}\nint main()\n{\n\tint n;\n\twhile(cin>>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tint a[1000];\n\t\tint b[1000];\n\t\tfor(int i=0;i>a[i];\n\t\tfor(int i=0;i>b[i];\n\n\t\tqsort(a,n,sizeof(a[0]),mycompare);\n\t\tqsort(b,n,sizeof(b[0]),mycompare);\n\n\t\tint begin_a=0;\n\t\tint begin_b=0;\n\t\tint end_a=n-1;\n\t\tint end_b=n-1;\n\t\tint win=0;\n\n\t\twhile(begin_a<=end_a)\n\t\t{\n\t\t\tif(a[end_a]>b[end_b])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tend_a--;\n\t\t\t\tend_b--;\n\t\t\t}\n\t\t\telse if(a[end_a]b[begin_b])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tbegin_a++;\n\t\t\t\t\tbegin_b++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a[end_a]a[x])\n {\n m=m-200;\n y=y+1; \n p=p-1; \n }\n else if(b[y]a[p])\n {\n y=y+1;\n p=p-1;\n m=m-200;\n } \n else if(b[y]==a[p])\n {\n y=y+1;\n p=p-1;\n } \n else if(b[y]>a[p])\n {\n m=m-200;\n y++;\n p--;\n }\n }\n \n \n //}\n printf(\"%d\\n\",m);\n \n \n \n }\n} \n"} +{"label": "92", "index": "45544", "code": "void f(int x[1001],int i,int n)\n{\n int k;int j;\n k=x[n-1];\n for(j=n-1;j>i;j--) x[j]=x[j-1];\n x[i]=k;\n}\nmain()\n{\n int n,i,k,l,prize,t,j,m,c,w,s; \n scanf(\"%d\",&n);\n for(;n!=0;)\n {\n int p=0;int w=0;int s=0;c=0;int h=0;int d=0;\n int a[1001]={0};\n int b[1001]={0};\n for(i=0;i<=n-1;i++) scanf(\"%d\",&a[i]);\n for(i=0;i<=n-1;i++) scanf(\"%d\",&b[i]);\n for(l=n-2;l>=0;l--)\n {\n for(i=0;i<=l;i++)\n {\n if(a[i]b[i]) {w++;}\n else if(a[i]> n;\n\twhile( n!= 0){\n\t\tfor( i = 0 ; i < n ; i++) cin >> a[i];\n\t\tfor( i = 0 ; i < n ; i ++) cin >> b[i];\n\t\tqsort(a,n,sizeof(int),comp);\n\t\tqsort(b,n,sizeof(int),comp);\n\t\theada = headb = 0;\n\t\ttaila = tailb = n-1;\n\t\twin = 0;\n\t\twhile(tailb >= headb){\n\t\t\tif(a[taila] > b[tailb]){\n\t\t\t\ttaila--;\n\t\t\t\ttailb--;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse if(a[heada] > b[headb]){\n\t\t\t\theada++;\n\t\t\t\theadb++;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a[heada] < b[tailb]) win --;\n\t\t\t\theada++;\n\t\t\t\ttailb--;\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\tcout << win * 200 <> n;\n\t}\n}"} +{"label": "92", "index": "45546", "code": "int q[maxlen], t[maxlen];\nint f[maxlen][maxlen];// f[i][j]??????i?????????j?????i-j????????\n// ????????????????????????????????????\nint n, sum, maxi;\nint g(int, int);\nint main()\n{\n\tint ncount = 1;\n\twhile(cin >> n && n)\n\t{\n\t\tfor(int i = 0;i < n; ++i)\n\t\t\tcin >> t[i];\n\t\tfor(int i = 0;i < n; ++i)\n\t\t\tcin >> q[i];\n\t\tif(ncount == 8)\n\t\t{\n\t\t\t/*for(int i = 0;i < n; ++i)\n\t\t\t\tcout << t[i] << ' ';\n\t\t\tcout << \" \";\n\t\t\tfor(int i = 0;i < n; ++i)\n\t\t\t\tcout << q[i] << ' ';*/\n\t\t\tcout << -4000 << endl;\n\t\t\tncount++;\n\t\t\tcontinue;\n\t\t}\n\t\tsort(q, q + n);\n\t\tsort(t, t + n);\n\t\tf[0][0] = 0;\n\t\tsum = 0;\n\t\tfor(int i = 1;i < n;++i)\n\t\t{\n\t\t\tif(q[n - i] > t[i - 1])\n\t\t\t\tsum -= 200;\n\t\t\telse if(q[n - i] < t[i - 1])\n\t\t\t\tsum += 200;\n\t\t\tf[i][0] = sum;\n\t\t}\n\t\tsum = 0;\n\t\tfor(int i = 1;i < n;++i)\n\t\t{\n\t\t\tif(q[n - i] > t[n - i])\n\t\t\t\tsum -= 200;\n\t\t\telse if(q[n - i] < t[n - i])\n\t\t\t\tsum += 200;\n\t\t\tf[i][i] = sum;\n\t\t}\n\n\t\tfor(int i = 2;i <= n; ++i)\n\t\t\tfor(int j = 1;j < i; ++j)\n\t\t\t\tf[i][j] = max(f[i - 1][j] + g(n - i, i - j - 1), f[i - 1][j - 1] + g(n - i, n - j ));\n\n\t\tmaxi = -1;\n\t\tfor(int i = 0; i <= n; ++i)\n\t\t\tif(f[n][i] > maxi)\n\t\t\t\tmaxi = f[n][i];\n\t\tcout << maxi << endl;\n\t\tncount++;\n\t}\n\treturn 0;\n}\nint g(int qi, int tian)\n{\n\tif(q[qi] > t[tian])\n\t\treturn -200;\n\tif(q[qi] < t[tian])\n\t\treturn 200;\n\treturn 0;\n}"} +{"label": "92", "index": "45547", "code": "void paixu(int n,int*p)\n{\n int i,j,k;\n for(i=0;i<=n-2;i++)\n {\n for(j=i+1;j<=n-1;j++)\n {\n if(p[i]q[0]){c[i]=200;for(k=0;k<=n-2-i;k++) {t[k]=t[k+1];} }\n else{for(j=n-1-i;j>=0;j--)\n {\n if(t[j]<=q[j]){ if(t[j]==q[0])c[i]=0;else {c[i]=-200;}for(k=j;k<=n-2-i;k++) {t[k]=t[k+1];} break;} \n }\n }\n if(c[i]!=0&&c[i]!=200&&c[i]!=-200){if(t[0]b[i]) {win++;}\n else if(a[i]a[k])\n\t\t\t\t{\n\t\t\t\t\tt=a[j];\n\t\t\t\t\ta[j]=a[k];\n\t\t\t\t\ta[k]=t;\n\t\t\t\t}\n\t\t\t\tif(b[j]b[m])&&(c[m]==0))\n\t\t\t\t{\n\t\t\t\t\ts++;\n\t\t\t\t\tf[l]=1;\n\t\t\t\t\tc[m]=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(f[l]==0)\n\t\t\t{\n\t\t\t\tint p;\n\t\t\t\tfor(p=m-1;p>=0;p--)\n\t\t\t\t{\n\t\t\t\t\tif(c[p]==0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(a[l]==b[p])\n\t\t\t\t{\n\t\t\t\t\tint r=0,t=0;\n\t\t\t\t\tfor(r=0;r=0;t--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(f[t]==0)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(a[t]>b[r])\n\t\t\t\t\t{\n\t\t\t\t\t\tf[t]=1;\n\t\t\t\t\t\tc[r]=1;\n\t\t\t\t\t\ts++;\n\t\t\t\t\t\tl--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k> n;\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> tian[i];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> qi[i];\n\t\tsort(tian,tian+n);\n\t\tsort(qi,qi+n);\n\t\tint ans = 0;\n\t\tint tianbig = n-1,tiansmall = 0,qibig = n-1,qismall = 0;\n\t\twhile(n--)\n\t\t{\n\t\t\tif (tian[tianbig] > qi[qibig])\n\t\t\t{\n\t\t\t\ttianbig--;\n\t\t\t\tqibig--;\n\t\t\t\tans+=200;\n\t\t\t}\n\t\t\telse if (tian[tiansmall] > qi[qismall])\n\t\t\t{\n\t\t\t\tqismall++;\n\t\t\t\ttiansmall++;\n\t\t\t\tans+= 200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (qi[qibig]>tian[tiansmall])\n\t\t\t\t\tans -= 200;\n\t\t\t\ttiansmall++;\n\t\t\t\tqibig--;\n\t\t\t}\n\t\t}\n\t\tcout << ans << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45551", "code": "void main()\n{\n\tint n,a[1002],b[1002],i,j,k,l,max=-200001,m=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(a[j]>a[i]) \n\t\t\t{\n\t\t\t\tl=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=l;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(b[j]>b[i]) \n\t\t\t{\n\t\t\t\tl=b[i];\n\t\t\t\tb[i]=b[j];\n\t\t\t\tb[j]=l;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tfor(i=1;i<=n;i++)\n\t\t{\n\t\t\tif(a[i]>b[i]) m=m+200;\n\t\t\telse if(a[i]max) max=m;\n\t\tfor(i=n;i>=1;i--) a[i+1]=a[i];\n\t\ta[1]=a[n+1];\n\t\tm=0;\n\t}\n\tprintf(\"%d\",max);max=-200001;\n\tfor(;;)\n\t{\n\tscanf(\"%d\",&n);\n\tif(n==0) break;\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(a[j]>a[i]) \n\t\t\t{\n\t\t\t\tl=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=l;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(b[j]>b[i]) \n\t\t\t{\n\t\t\t\tl=b[i];\n\t\t\t\tb[i]=b[j];\n\t\t\t\tb[j]=l;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tfor(i=1;i<=n;i++)\n\t\t{\n\t\t\tif(a[i]>b[i]) m=m+200;\n\t\t\telse if(a[i]max) max=m;\n\t\tfor(i=n;i>=1;i--) a[i+1]=a[i];\n\t\ta[1]=a[n+1];\n\t\tm=0;\n\t}\n\tprintf(\"\\n%d\",max);max=-200001;\n\t}\n}\n\n"} +{"label": "92", "index": "45552", "code": "int main()\n{\n int i,j,n,t;\n int a[1001]={0},b[1001]={0},l[1001][1001]={0};\n do\n {\n scanf(\"%d\",&n);\n if(n==0) break;\n for(i=0;i=0;i--)\n {\n for(j=1;ja[j])\n l[i][j]=l[i+1][j-1]-200;\n else if(l[i+1][j-1]-200>l[i][j-1])\n l[i][j]=l[i+1][j-1]-200;\n else\n l[i][j]=l[i][j-1];\n }\n }\n printf(\"%d\\n\",l[0][n-1]);\n }\n while(n!=0);\n getchar();\n getchar();\n}"} +{"label": "92", "index": "45553", "code": "int main()\n{\n int n;\n int a[1005];\n int b[1005];\n int count,i,j,x,y,start,temp;\n while(cin>>n){\n if(n==0)break;\n memset(a,0,sizeof(a));\n memset(b,0,sizeof(b));\n count=0; \n for(i=0;i>a[i];\n for(i=0;i>b[i];\n sort(a,a+n);\n sort(b,b+n);\n x=n-1,y=n-1,i=0,j=0;\n while(n--){\n if(a[x]>b[y]){\n x--;\n y--;\n count++;\n }\n else if(a[i]>b[j]){\n i++;\n j++;\n count++;\n }\n else if(a[i]> n)\n\t{\n\t\tif(n == 0)\n\t\t\treturn 0;\n\t\tfor(int i = 0;i < n;i++)\n\t\t\tcin >> tjdm[i];\n\t\tfor(int i = 0;i < n;i++)\n\t\t\tcin >> qwdm[i];\n\t\tsort(tjdm,tjdm + n);\n\t\tsort(qwdm,qwdm + n);\n\t\tint sum = 0;\n\t\tint tmin = 0;\n\t\tint qmin = 0;\n\t\tint tmax = n - 1;\n\t\tint qmax = n - 1;\n\t\twhile(tmin < n)\n\t\t{\n\t\t\tif(tjdm[tmin] > qwdm[qmin])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\ttmin++;\n\t\t\t\tqmin++;\n\t\t\t}\n\t\t\telse if(tjdm[tmin] < qwdm[qmin])\n\t\t\t{\n\t\t\t\tsum -= 200;\n\t\t\t\ttmin++;\n\t\t\t\tqmax--;\n\t\t\t}\n\t\t\telse if(tjdm[tmin] == qwdm[qmin])\n\t\t\t{\n\t\t\t\tif(tjdm[tmax] > qwdm[qmax])\n\t\t\t\t{\n\t\t\t\t\ttmax--;\n\t\t\t\t\tqmax--;\n\t\t\t\t\tsum += 200;\n\t\t\t\t}\n\t\t\t\telse if(tjdm[tmax] < qwdm[qmax])\n\t\t\t\t{\n\t\t\t\t\tsum -= 200;\n\t\t\t\t\ttmin++;\n\t\t\t\t\tqmax--;\n\t\t\t\t}\n\t\t\t\telse if(tjdm[tmax] == qwdm[qmax])\n\t\t\t\t{\n\t\t\t\t\tif(tjdm[tmin] > qwdm[qmax])\n\t\t\t\t\t{\n\t\t\t\t\t\tsum += 200;\n\t\t\t\t\t}\n\t\t\t\t\tif(tjdm[tmin] < qwdm[qmax])\n\t\t\t\t\t\tsum -= 200;\n\t\t\t\t\ttmin++;\n\t\t\t\t\tqmax--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmax < tmin)\n\t\t\t\tbreak;\n\t\t}\n\t\tcout << sum << endl;\n\t}\n}"} +{"label": "92", "index": "45555", "code": "void main()\n{\n\tint a[1000],b[1000],m[1000],i,j,k,t,x=0,y=0,c,d,n=0;\n\tfor(;;)\n\t{\n\t\tscanf(\"%d\",&c);\n\t\tif(c==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tfor(i=0;ib[k])\n\t\t\t\t{\n\t\t\t\t\tx++;\n\t\t\t\t\ti++;\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\telse if(a[i]b[t])\n\t\t\t\t{\n\t\t\t\t\tx++;\n\t\t\t\t\tj--;\n\t\t\t\t\tt--;\n\t\t\t\t}\n\t\t\t\telse if(a[j]QiWang[j])\n\t\t\t{\n\t\t\t\tsum+=200;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\telse if(TianJi[i]==QiWang[j])\n\t\t\t{\n\t\t\t\tif(equalnum>0)\n\t\t\t\t{\n\t\t\t\t\tif(TianJi[i]>equalhorse)\n\t\t\t\t\t{\n\t\t\t\t\t\tequalnum--;\n\t\t\t\t\t\tsum+=200;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tequalhorse=TianJi[i];\n\t\t\t\tequalnum++;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(equalnum>0)\n\t\t\t\t{\n\t\t\t\t\tif(TianJi[i]>equalhorse)\n\t\t\t\t\t{\n\t\t\t\t\t\tequalnum--;\n\t\t\t\t\t\tsum+=200;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsum=sum-(n-j)*200;\n\t\tprintf(\"%d\\n\",sum);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45557", "code": "int n;\nint a[1000],b[1000];\nvoid paixu(int *p)\n{\n int i,j,k;\n for(i=1;i<=n;i++)\n {\n for(j=i+1;j<=n;j++)\n {\n if(p[i]a[p])\n {\n sum-=200;\n i++;\n p--;\n }\n }\n }\n }\n printf(\"%d\\n\",sum);\n }\n }\n \n}\n"} +{"label": "92", "index": "45558", "code": "int a[1100],b[1100],f[1100][1100];\nint n,ans;\nint max(int a,int b)\n{\n\tif(a>b) return a;\n\treturn b;\n}\nint main()\n{\n\tint i,j,k;\n while(scanf(\"%d\",&n)&&n)\n {\n\t for(i=1;i<=n;i++) scanf(\"%d\",&b[i]);\n\t for(i=1;i<=n;i++) scanf(\"%d\",&a[i]);\n\t sort(a+1,a+n+1);\n\t sort(b+1,b+n+1);\n for(i=1;i<=n;i++)\n\t\t{\n\t\t if(b[i]>a[1]) f[i][i]=1;\n\t\t\telse if(b[i]n) break;\n\t\t\t\tif(b[j]>a[k]) f[i][j]=f[i][j-1]+1;\n\t\t\t\telse if(b[j]b) return a;\n\telse return b;\n}\nint tianji(int *p1,int *p2,int n)\n{\n\tif(n==0) return 0;\n\tif(*(p1+n-1)>*(p2+n-1)) {return tianji(p1,p2,n-1)+200;}\n\tif(*(p1+n-1)<*(p2+n-1)) {return tianji(p1,p2+1,n-1)-200;}\n\tif(*p1>*p2) {return tianji(p1+1,p2+1,n-1)+200;}\n\tif(*p1<*p2) {return tianji(p1,p2+1,n-1)-200;}\n\tif(*p1==*p2) {if(*(p1+n-1)==*p2) return tianji(p1,p2+1,n-1); else return tianji(p1,p2+1,n-1)-200;}\n}\n\t\nint main()\n{\n\tint s,i,j,k,a[2000],b[2000],*p1,*p2,n,t;\n\tfor(s=0;s<99;s++)\n\t{\n\t\tcin>>n;\n\t if(n==0) break;\n\t for(i=0;i>a[i];\n\t for(i=0;i>b[i];\n\t for(i=1;ia[j])\n\t \t\t{\n\t \t\t\tt=a[j];\n\t \t\t\ta[j]=a[j+1];\n\t \t\t\ta[j+1]=t;\n\t \t\t}\n\t \t\tif(b[j+1]>b[j])\n\t \t\t{\n\t \t\t\tt=b[j];\n\t \t\t\tb[j]=b[j+1];\n\t \t\t\tb[j+1]=t;\n\t \t\t}\n\t \t}\n\t }\n\t p1=a;\n\t p2=b;\n\t if(a[0]>a[n-1]&&b[0]>b[n-1]) cout<j;k--)\n {\n a[k]=a[k-1];\n b[k]=b[k-1];\n }\n continue;\n }\n else\n {\n if(b[n-1]>a[j])\n {sum=sum-200;}\n for(k=n-1;k>j;k--)\n {\n b[k]=b[k-1];\n }\n }\n }\n c[i]=sum;\n}\n for(i=0;i<=count-1;i++)\n {\n printf(\"%d\\n\",c[i]);\n }\n getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar(); \n}\n"} +{"label": "92", "index": "45561", "code": "\n\nint Tian[MAXIN], Qi[MAXIN];\nint N;\n\nint MyCompare(const void* e1, const void* e2)\n{\n\treturn *(int*) e2 - *(int*) e1;\n}\n\nint main()\n{\n\twhile(scanf(\"%d\", &N) && N)\n\t{\n\t\tint i;\n\t\tfor(i = 0;i < N;i ++)\n\t\t\tscanf(\"%d\", &Tian[i]);\n\t\tfor(i = 0;i < N;i ++)\n\t\t\tscanf(\"%d\", &Qi[i]);\n\n\t\tqsort(Tian, N, sizeof(int), MyCompare);\n\t\tqsort(Qi, N, sizeof(int), MyCompare);\n\n\t\tint Tp = 0;\n\t\tint Qp = 0;\n\t\tint ans;\n\t\twhile(Tian[0] < Qi[Qp] && Qp < N) Qp ++;\n\n\t\tfor(ans = -200 * N; Qp < N; Qp ++)\n\t\t{\n\t\t\tint temp = -200 * Qp;\n\t\t\tfor(int j = Qp, Tp = 0; j < N; j ++, Tp ++)\n\t\t\t{\n\t\t\t\tif(Tian[Tp] > Qi[j])\n\t\t\t\t{\n\t\t\t\t\ttemp += 200;\n\t\t\t\t}\n\t\t\t\telse if(Tian[Tp] < Qi[j])\n\t\t\t\t\ttemp -= 200;\n\t\t\t}\n\n\t\t\tif(temp > ans)\n\t\t\t\tans = temp;\n\t\t}\n\n\t\tprintf(\"%d\\n\", ans);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45562", "code": "main()\n{\n int a[1001],b[1001],c[1001],j,k,l,i,n,m,win;\n scanf(\"%d\",&n);\n while(n>0)\n {\n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&c[i]);\n j=i;\n while(j>1&&c[j]>c[j/2])\n {\n k=c[j];\n c[j]=c[j/2];\n c[j/2]=k;\n j=j/2;\n }\n } \n m=n; \n for(i=1;i<=n;i++)\n {\n a[i]=c[1];\n c[1]=c[m];\n m--;\n j=1;\n while((c[j]c[j*2+1]?j*2:j*2+1;\n l=c[j];\n c[j]=c[k];\n c[k]=l;\n j=k;\n } \n } \n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&c[i]);\n j=i;\n while(j>1&&c[j]>c[j/2])\n {\n k=c[j];\n c[j]=c[j/2];\n c[j/2]=k;\n j=j/2;\n }\n } \n m=n; \n for(i=1;i<=n;i++)\n {\n b[i]=c[1];\n c[1]=c[m];\n m--;\n j=1;\n while((c[j]c[j*2+1]?j*2:j*2+1;\n l=c[j];\n c[j]=c[k];\n c[k]=l;\n j=k;\n } \n } \n i=1;\n j=n;\n k=1;\n l=n;\n win=0;\n while(i<=j)\n {\n while(a[i]>b[k]&&i<=j)\n {\n i++;\n k++;\n win++;\n }\n while(a[j]>b[l]&&i<=j)\n {\n j--;\n l--;\n win++;\n }\n if(i<=j)\n {\n if(a[j]a[j+1])\n\t\t\t{\n\t\t\t\tt=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=t;\n\t\t\t}\n}\n\nvoid main()\n{\n\tint n,i,a[1000],b[1000],qa,ra,qb,rb,sum;\n\twhile(scanf(\"%d\",&n) && n!=0)\n\t{\n\t\tsum=0;\n\t\tfor(i=0;ib[qb]) sum+=200,qa--,qb--;\n\t\t\telse if(a[ra]>b[rb]) sum+=200,ra++,rb++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[ra]b)return 200;\n\tif(amax)max=b[i];\n\t\t}\n\t\tprintf(\"%d\\n\",max);\n\t}\n//\t\tj=0;\n//\t\t//if(tj[0]qw[j]){money=money+200;j=j+1;break;}\n//\t\t\t\tif(tj[i]==qw[j])\n//\t\t\t\t{\n//\t\t\t\t\tif(j==n-1){j=j+1;break;}\n//\t\t\t\t\tif(tj[i+1]>qw[j+1]){j=j+1;break;}\n//\t\t\t\t\telse {money=money-200;j=j+1;}\n//\t\t\t\t\t\n///\t\t\t\t}\n//\t\t\t}\n//\t\t\t\n//\t\t}\n//\t\tprintf(\"%d\\n\",money);\n\t\n\n}\n\n"} +{"label": "92", "index": "45565", "code": "\nint main()\n{\n\tint n;\n\tint i,j,k;\n\tint temp;\n\tint win=0;\n\tint tie=0;\n\tint lose=0;\n\tint tianji[1000];\n\tint qiwang[1000];\n\twhile(1)\n\t{\n\t\twin=0;\n\t\ttie=0;\n\t\tlose=0;\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tfor(i=0;i=0;i--)\n\t\t\t{\n\t\t\t\tif(tianji[i]==-1)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(tianji[i]>qiwang[j])\n\t\t\t\t{\n\t\t\t\t\ttianji[i]=-1;\n\t\t\t\t\tqiwang[j]=-1;\n\t\t\t\t\twin++;\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i>n,n>0)\n {\n s1=0;\n s2=-200*n;\n for(i=0;i>a[i];\n for(i=0;i>b[i];\n qsort(a,n,sizeof(int),cmp);\n qsort(b,n,sizeof(int),cmp);\n //new\n for(j=0;jb[i+j])\n s1++;\n if(a[i]=0;l--)\n\t\t\t{\n\t\t\t\tif (array[i][0][1][l] ==0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (o=n-1;o>=0;o--)\n\t\t\t{\n\t\t\t\tif (array[i][1][1][o] ==0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (array[i][0][0][l] > array[i][1][0][o])\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t\tarray[i][0][1][l] = 1;\n\t\t\t\tarray[i][1][1][o] = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif (array[i][0][0][j] > array[i][1][0][k])\n\t\t\t\t{\n\t\t\t\t\tm++;\n\t\t\t\t\tarray[i][0][1][j] = 1;\n\t\t\t\t array[i][1][1][k] = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(array[i][1][0][o] > array[i][0][0][j] )\n\t\t\t\t\t{\n\t\t\t\t\t\tm--;\t\t\n\t\t\t\t\t}\n\t\t\t\t\tarray[i][0][1][j] = 1;\n\t\t\t\t\tarray[i][1][1][o] = 1;\n\n\t\t\t\t}\n\t\t\t\tfinish = 1;\n\t\t\t\tfor (j=0;j array[i][1][0][k] && array[i][1][1][k] == 0 )\n// \t\t\t\t{\n// \t\t\t\t\tm++;\n// \t\t\t\t\tbreak;\n// \t\t\t\t}\n// \t\t\t}\n// array[i][1][1][k] = 1;\n// \t\t}\n// \t\tfor (j=n-1;j>0;j--)\n// \t\t{\n// \t\t\ttemp = array[i][0][0][j];\n// \t\t\tfor (k=n-1;k>0;k--)\n// \t\t\t{\n// \t\t\t\tif (temp < array[i][1][0][k] && array[i][1][1][k] == 0 )\n// \t\t\t\t{\n// \t\t\t\t\tl++;\n// \t\t\t\t\tbreak;\n// \t\t\t\t}\n// \t\t\t}\n// array[i][1][1][k] = 1;\n// \t\t}\n\t\tc[i] = m*200;\n\t}\n\tfor (j=0;j>n,n!=0)\n\t{\n\t\tint i,j,r;\n\t\tint head=0, t_tail=n-1, q_tail=n-1;\n\t\tint result=0;\n\n\t\tfor(i=0;i>na[i];\n\t\tfor(i=0;i>nb[i];\n\t\tqsort(na,n,sizeof(na[0]),cmp);\n\t\tqsort(nb,n,sizeof(nb[0]),cmp);\n\t\tfor(i=0;i nb[i])\n\t\t\t{\n\t\t\t\thead++;\n\t\t\t\tresult++;\n\t\t\t}\n\t\t\telse if(na[head] < nb[i])\n\t\t\t{\n\t\t\t\tresult--;\n\t\t\t\tt_tail--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile(t_tail >= head)\n\t\t\t\t{\n\t\t\t\t\tif(na[t_tail] > nb[q_tail])\n\t\t\t\t\t{\n\t\t\t\t\t\tresult++;\n\t\t\t\t\t\tt_tail--;\n\t\t\t\t\t\tq_tail--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(na[t_tail] < nb[i])\n\t\t\t\t\t\t\tresult--;\n\t\t\t\t\t\tt_tail--;\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(head > t_tail)\n\t\t\t\tbreak;\n\t\t}\n\t\tcout<<200*result<=1;j--)\n {\n if(tian[j]>tian[j-1])\n {\n temp=tian[j];\n tian[j]=tian[j-1];\n tian[j-1]=temp;\n }\n }\n }\n \n \n for(i=0;i<=n-2;i++)\n {\n for(j=n-1;j>=1;j--)\n {\n if(qi[j]>qi[j-1])\n {\n temp=qi[j];\n qi[j]=qi[j-1];\n qi[j-1]=temp;\n }\n }\n }\n \n for(i=0;i=0;j--)\n {\n if(tian[j]>qi[i])\n {\n sum1=sum1+1;\n tian[j]=0;\n qi[i]=0;\n break;\n } \n }\n }\n \n for(i=0;ikey)return k;\n\t\telse if(a[k]=pivot)l++;\n\t\twhile(a[r]=0)\n\t{\n\t\tpivot=a[pindex];\n\t\tk=partition(a,i,j,pivot);\n\t\tquicksort(a,i,k-1);\n\t\tquicksort(a,k,j);\n\t}\n}\n\n\nint main()\n{\n\tint n,i,j,k,t_max,t_min,q[1000],t[1000],win,loss;\n\twhile(1)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\treturn 0;\n\t\tfor(i=0;iq[i])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt_max++;\n\t\t\t}\n\t\t\telse if(t[t_max]q[j])\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(j= 0; j--){\n if(a[j] < a[j+1]){\n a[j] += a[j+1];\n a[j+1] = a[j]-a[j+1];\n a[j] -= a[j+1];\n }\n }\n }\n for(i = 0; i < n; i++){\n scanf(\"%d\", &b[i]);\n for(j = i-1; j >= 0; j--){\n if(b[j] < b[j+1]){\n b[j] += b[j+1];\n b[j+1] = b[j]-b[j+1];\n b[j] -= b[j+1];\n }\n }\n }\n j = 0;\n s = 0;\n k = n-1;\n for(i = 0; i < n && j <= k;){\n if(a[j] < b[i]){\n s--;\n k--;\n i++;\n }\n else if(a[j] == b[i] ){\n if(a[k] < b[n-1]){\n s--;\n i++;\n k--;\n }\n else if(a[k] > b[n-1]){\n s++;\n n--;\n k--;\n }\n else if(a[k] == b[n-1]){\n if(a[k] != b[i]){\n s--;\n i++;\n k--;\n }\n else break;\n }\n }\n else{\n s++;\n i++;\n j++;\n }\n }\n printf(\"%d\\n\", s*200);\n }\n return 0;\n}"} +{"label": "92", "index": "45572", "code": "int main()\n{\n int saima(int n,int qiwang[1000],int tianji[1000]);\n int n,i,j;\n int tianji[1000]={0},qiwang[1000]={0};\n scanf(\"%d\",&n);\n for (i=0;n!=0;i++){\n for (j=0;j0){\n if ((tianji[n-1]!=qiwang[n-1])&&(n>0)){\n if (tianji[n-1]>qiwang[n-1]){\n win=win+200;\n del(n-1,n,tianji);\n del(n-1,n,qiwang);\n n=n-1;\n }\n else{\n win=win-200;\n del(n-1,n,tianji);\n del(0,n,qiwang);\n n=n-1; \n }\n }\n if ((tianji[0]!=qiwang[0])&&(n>0)){\n if (tianji[0]>qiwang[0]){\n win=win+200;\n del(0,n,tianji);\n del(0,n,qiwang);\n n=n-1;\n }\n else{\n win=win-200;\n del(n-1,n,tianji);\n del(0,n,qiwang);\n n=n-1;\n }\n }\n if ((tianji[0]==qiwang[0])&&(tianji[n-1]==qiwang[n-1])&&(n>0)){\n if (tianji[n-1]b[p])\n\t\t\t{\n\t\t\t\t++ans;\n\t\t\t\t++x;\n\t\t\t\t++p;\n\t\t\t}\n\t\t\twhile (x<=y&&a[y]>b[q])\n\t\t\t{\n\t\t\t\t++ans;\n\t\t\t\t--y;\n\t\t\t\t--q;\n\t\t\t}\n\t\t\tif (x<=y)\n\t\t\t{\n\t\t\t\tif (a[x]>n;\n if(n==0) break;\n for(i=0; i>data1[i];\n for(i=0; i>data2[i];\n qsort(data1, n, sizeof(int), cmp);\n qsort(data2, n, sizeof(int), cmp);\n i1=0;\n j1=0;\n i2=n-1;\n j2=n-1;\n result=0;\n while(i1!=i2+1){\n while(data1[i1]!=data2[j1] && i1!=i2+1){\n\tif(data1[i1]data2[j1]){\n\t i1++;\n\t j1++;\n\t result+=200;\n\t}\n\telse break;\n }\n while(data1[i2]!=data2[j2] && i1!=i2+1){\n\tif(data1[i2]data2[j2]){\n\t i2--;\n\t j2--;\n\t result+=200;\n\t}\n\telse break;\n }\n if(data1[i1]==data2[j1] && data1[i2]==data2[j2] && i1!=i2+1){\n\tif(data1[i2]!=data2[j1])\n\t result-=200;\n\ti2--;\n\tj1++;\n }\n }\n cout<>n)\n\t{\n\t\tif(n==0) break;\n\t\tfor(i=0;i>tian[i];\n\t\tfor(i=0;i>qi[i];\n\t\tqsort(tian,n,sizeof(int),mycompare);\n\t\tqsort(qi,n,sizeof(int),mycompare);\n\t\ts=0;\n\t\tfor(i=0,m=0,j=n-1,k=n-1;i<=k;)\n\t\t{\n\t\t\tif(tian[m]>qi[i])\n\t\t\t{\n\t\t\t\ts++;\n\t\t\t\tm++;i++;\n\t\t\t}\n\t\t\telse if(tian[j]>qi[k]) { s++;j--;k--;}\n\t\t\telse \n\t\t\t{\n\t\t\t\tif(tian[j]> n;\n\t\tif (n == 0) break;\n\n\t\tfor (i = 0;i < n;i ++) scanf(\"%d\",&a[i]);\n\t\tfor (i = 0;i < n;i ++) scanf(\"%d\",&b[i]);\n\n\t\tqsort(a,n,sizeof(int),mycompare);\n\t\tqsort(b,n,sizeof(int),mycompare);\n\n\t\ttotal = 0;\n\t\tla = 0; lb = 0;\n\t\tra = n - 1; rb = n - 1;\n\n\t\twhile (la <= ra)\n\t\t{\n\t\t\tif (a[la] > b[lb])\n\t\t\t{\n\t\t\t\ttotal = total + 200;\n\t\t\t\tla ++;\n\t\t\t\tlb ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (a[la] < b[lb])\n\t\t\t\t{\n\t\t\t\t\ttotal = total - 200;\n\t\t\t\t\tlb ++;\n\t\t\t\t\tra --;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\n\t\t\t\t\tfor (k1 = ra,k2 = rb;la <= k1; k1 --,k2 --)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a[k1] > b[k2])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttotal = total + 200;\n\t\t\t\t\t\t\tra --;\n\t\t\t\t\t\t\trb --;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (a[k1] < b[lb]) total = total - 200;\n\t\t\t\t\t\t\tra = k1;\n\t\t\t\t\t\t\trb = k2;\n\t\t\t\t\t\t\tra --;\n\t\t\t\t\t\t\tlb ++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << total << endl;\n\t}\n\treturn 0;\n}\n\n\t\t\t"} +{"label": "92", "index": "45577", "code": "int main()\n{\n\twhile(1)\n\t{\n\t\tint i,n;\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tint t[1000]={0},q[1000]={0};\n\t\tfor(i=0;it[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=t[j];\n\t\t\t\t\tt[j]=t[i];\n\t\t\t\t\tt[i]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;iq[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=q[j];\n\t\t\t\t\tq[j]=q[i];\n\t\t\t\t\tq[i]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint i1=n-1,i2=n-1,j1=0,j2=0;\n\t\tint win=0,lose=0;\n\t\twhile(i1>=j1&&i2>=j2)\n\t\t{\n\t\t\tif(t[i1]>q[i2])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\ti1--;i2--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(t[i1]q[j2])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tj1++;j2++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(t[i1]b[qr])\n {\n sum+=200;\n tr--;\n qr--;\n }\n else\n {\n if(a[tl]qw[i][m1]){q1++;}\n if(tj[i][j1]==qw[i][m1]){q2++;}\n break;}\n if(tj[i][n[i]-j2-1]>qw[i][n[i]-m2-1]){q1++;j2++;m2++;}\n else{\n if(tj[i][n[i]-j2-1]qw[i][m1])){q1++;m1++;j1++;}\n else{\n if((tj[i][n[i]-j2-1]==qw[i][n[i]-m2-1])&&(tj[i][j1]tj[i][n[i]-j2-1]){m1++;j2++;}\n else{m1++;j2++;q2++;}}}}}}\n }\n q=q1*200-(n[i]-q1-q2)*200;\n printf(\"%d\\n\",q);}\n}"} +{"label": "92", "index": "45580", "code": "int n,a[2000],b[2000],ans;\n\nint main() {\n\tint i,j,k;\n\twhile (cin>>n && n!=0) {\n\t\tfor (i=0;i>a[i];\n\t\tfor (i=0;i>b[i];\n\t\tsort(a,a+n);\n\t\tsort(b,b+n);\n\t\tans=-200*n;\n\t\tfor (j=0;jb[(i+j)%n]) k+=200;\n\t\t\t\tif(a[i]ans) ans=k;\n\t\t}\n\t\tcout<>n)\n\t{\n\t\tif(n==0) return 0;\n for(i=0;i>t[i];\n\t}\n for(i=0;i>q[i];\n\t}\n qsort(t,n,sizeof(int),mycompare);\n\tqsort(q,n,sizeof(int),mycompare);\n int ans=0;\n\tint tf=0,tl=n-1,qf=0,ql=n-1;\n\twhile(qf<=ql)\n\t{\n if(t[tf]>q[qf])\n {\n\t\t ans++;\n\t\t tf++;\n\t\t qf++;\n }\n\t else if(t[tl]>q[ql])\n\t {\n\t\t ans++;\n\t\t tl--;\n\t\t ql--;\n\t }\n\t else\n\t {\n\t\t if(t[tf]>q[ql])\n\t\t ans++;\n\t\t else if(t[tf]b[k][j-l])\nq[l]+=200;\nelse if(a[k][j]=d)\nd=q[j];\nprintf(\"%d\\n\",d);\n}\n}"} +{"label": "92", "index": "45583", "code": "\nint main(int argc, char *argv[])\n{\n int n;\n while(1)\n {\n scanf(\"%d\",&n);\n if(!n)\n break;\n int i=0,s=0,j=n-1,t=n-1,k,r,a[1010],b[1010],m=0;\n for(k=0;k0;k--)\n {\n for(r=0;rb[s])\n {\n m+=200;\n i++;s++;\n }\n else if(a[j]>b[t])\n {\n m+=200;\n j--;t--;\n }\n else if(a[j]>b[s])\n {\n m+=200;\n j--;s++;\n }\n else if(a[j] QW[lq] )\n\t\t\t{\n\t\t\t\tj += 200;\n\t\t\t\tlq++;\n\t\t\t\tlt++;\n\t\t\t}\n\t\t\telse if( TJ[rt] > QW[rq] )\n\t\t\t{\n\t\t\t\tj += 200;\n\t\t\t\trt--;\n\t\t\t\trq--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( TJ[lt] < QW[rq] ) j -= 200;\n\t\t\t\tlt++;\n\t\t\t\trq--;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",j);\n\t}\n}\n"} +{"label": "92", "index": "45585", "code": "const int MAXN=1005;\nmain()\n{ \n int n; \n int t[MAXN], k[MAXN]; \n while(cin>>n, n) \n { \n int i; \n for(i=0; i>t[i]; \n for(i=0; i>k[i]; \n sort(t, t+n); sort(k, k+n); \n int fastT=n-1, slowT=0, fastK=n-1, slowK=0; \n int total=0; \n while(slowK<=fastK) \n { \n if(t[fastT] > k[fastK]) \n { \n total += 200; \n fastT--; \n fastK--; \n } \n else if(t[fastT] < k[fastK]) \n { \n total -= 200; \n slowT++; \n fastK--; \n } \n else \n { \n while(slowK<=fastK) \n { \n if(t[slowT] > k[slowK]) \n { \n total += 200; \n slowT++; \n slowK++; \n } \n else \n { \n if(t[slowT] < k[fastK]) total -= 200; \n slowT++; \n fastK--; \n break; \n } \n } \n } \n } \n cout< b)\n\t\treturn a;\n\telse\n\t\treturn b;\n}\n\nint comp(int a, int b)\n{\n\tif(a > b)\n\t\treturn 200;\n\telse if(a < b)\n\t\treturn -200;\n\telse\n\t\treturn 0;\n}\n\nvoid main()\n{\n\tint n;\n\tint i, j;\n\tint tmp;\n\tint a[1000], b[1000];\n\n\tfor(scanf(\"%d\", &n); n > 0; scanf(\"%d\", &n))\n\t{\n\t\tfor(i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", &a[i]);\n\t\tfor(i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", &b[i]);\n\t\tfor(i = 0; i < n - 1; ++i)\n\t\t\tfor(j = 0; j < n - i - 1; ++j)\n\t\t\t\tif(a[j] < a[j + 1])\n\t\t\t\t{\n\t\t\t\t\ttmp = a[j];\n\t\t\t\t\ta[j] = a[j + 1];\n\t\t\t\t\ta[j + 1] = tmp;\n\t\t\t\t}\n\t\tfor(i = 0; i < n - 1; ++i)\n\t\t\tfor(j = 0; j < n - i - 1; ++j)\n\t\t\t\tif(b[j] < b[j + 1])\n\t\t\t\t{\n\t\t\t\t\ttmp = b[j];\n\t\t\t\t\tb[j] = b[j + 1];\n\t\t\t\t\tb[j + 1] = tmp;\n\t\t\t\t}\n\t\tfor(i = 0; i < n; ++i)\n\t\t\ts[0][i] = 0;\n\t\tfor(i = 1; i <= n; ++i)\n\t\t\tfor(j = 0; j <= n - i; ++j)\n\t\t\t\ts[i][j] = MAX(s[i - 1][j] + comp(a[i - 1], b[j + i - 1]), s[i - 1][j + 1] + comp(a[i - 1], b[j]));\n\t\tprintf(\"%d\\n\", s[n][0]);\n\t}\n}\n"} +{"label": "92", "index": "45587", "code": "\n\nvoid main()\n{int n,*tian,*lord;\n\tint i,j,x[500]={0},t,sumnum=0,sum;\n\tint ta,tb,la,lb;\n\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\ttian=(int *)malloc(n*sizeof(int));\n\tlord=(int *)malloc(n*sizeof(int));\n\tfor(i=0;i*(lord+lb)) {tb--;lb--;sum++;}\n\t\t\t\telse if(*(tian+ta)<*(lord+la)) {tb--;la++;sum--;}\n\t\t\t\telse if(*(tian+ta)>*(lord+la)) {ta++;la++;sum++;}\n\t\t\t\telse if(*(tian+tb)<*(lord+la)) {tb--;la++;sum--;}\n\t\t\t\telse if(*(tian+tb)>*(lord+la)) {tb--;la++;sum++;}\n\t\t\t\telse {tb--;la++;}\n\t\t\t}\n\t\t\tif(*(tian+ta)>*(lord+la)) sum++;\n\t\t\telse if(*(tian+ta)<*(lord+la))sum--;\n\n\tx[sumnum]=sum;\n\tsumnum++;\n\tscanf(\"%d\",&n);\n\t}\n\n\tfor(i=0;imid) l++;\n while (a[r]n) dp[i][j]=0;\n else\n {\n int a1=0;\n if (a[i]>b[j]) a1=200; else if (a[i]==b[j]) a1=0; else a1=-200;\n int k1=f(i+1,j+1)+a1;\n int a2=0;\n if (a[n-(j-i)]>b[j]) a2=200; else if (a[n-(j-i)]==b[j]) a2=0; else a2=-200;\n int k2=f(i,j+1)+a2;\n dp[i][j]=k1;\n if (k2>k1) dp[i][j]=k2;\n }\n }\n return dp[i][j];\n}\nint main()\n{\n //freopen(\"zozo.in\",\"r\",stdin);\n //freopen(\"zozo.out\",\"w\",stdout);\n scanf(\"%d\",&n);\n while (n!=0)\n {\n for (int i=1; i<=n; i++) scanf(\"%d\",&a[i]);\n for (int i=1; i<=n; i++) scanf(\"%d\",&b[i]);\n qsort(1,n,a);\n qsort(1,n,b);\n cnt++;\n int ans=f(1,1);\n printf(\"%d\\n\",ans);\n scanf(\"%d\",&n);\n }\n}\n"} +{"label": "92", "index": "45589", "code": "int mycompare(const void *elem1, const void *elem2)\n{\n\treturn *((int *)elem2) - *((int *)elem1);\n}\nint main()\n{\n\tint n;\n\twhile (cin >> n, n != 0)\n\t{\n\t\tint a[1000] = {0};\n\t\tint b[1000] = {0};\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> a[i];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> b[i];\n\t\tqsort(a, n, sizeof(int), mycompare);\n\t\tqsort(b, n, sizeof(int), mycompare);\n\t\tint index1_head = 0, index1_tail = n-1;\n\t\tint index2_head = 0, index2_tail = n-1;\n\t\tint money = 0;\n\t\twhile (index1_head <= index1_tail)\n\t\t{\n\t\t\tif (a[index1_head] > b[index2_head])\n\t\t\t{\n\t\t\t\tindex1_head++;\n\t\t\t\tindex2_head++;\n\t\t\t\tmoney += 200;\n\t\t\t}\n\t\t\telse if (a[index1_tail] > b[index2_tail])\n\t\t\t{\n\t\t\t\tindex1_tail--;\n\t\t\t\tindex2_tail--;\n\t\t\t\tmoney += 200;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tif (b[index2_head] > a[index1_tail]) money -= 200;\n\t\t\t\tindex1_tail--;\n\t\t\t\tindex2_head++;\n\t\t\t}\n\t\t}\n\t\tcout << money << endl;\n\t}\nreturn 0;\n}"} +{"label": "92", "index": "45590", "code": "int main()\n{\n int num;\n int store[100];\n for(num=0;;num++)\n{\n\tint i,n,j;\n\tint a[100000],b[100000];\n\tscanf(\"%d\",&n);\n\tif(n==0)\n\t{\n break;\n }\n\tfor(i=0;ia[j+1])\n\t\t\t{t=a[j];a[j]=a[j+1];a[j+1]=t;}\n\t\t}\n\t}\n\tfor(i=0;ib[j+1])\n\t\t\t{t=b[j];b[j]=b[j+1];b[j+1]=t;}\n\t\t}\n\t}\n\tint money=0,x,q=0;\n\tint m[100000];\n\tfor(x=0;xb[i])\n\t\t{money=money+200;}\n\t\telse\n\t\t{\n\t\t\tif(a[i]=max)\n\t\t\tmax=m[i];\n\t}\n\tstore[num]=max;\n\t\n}\nint w;\nfor(w=0;wtian[i])\n {\n t=tian[j];\n tian[j]=tian[i];\n tian[i]=t;\n }\n if(wang[j]>wang[i])\n {\n t=wang[j];\n wang[j]=wang[i];\n wang[i]=t;\n }\n }\n head=0;\n tailw=n-1;\n tailt=n-1;\n for(i=0;iwang[i])\n {\n sum++;\n head++;\n }\n else if(tian[head]=head;j--,m--)\n {\n if(tian[j]>wang[m])\n {\n tailt--;\n tailw--;\n sum++;\n }\n else \n {\n if(tian[j]tailt) break;\n }\n printf(\"%d\\n\",sum*200);\n }\n }\n"} +{"label": "92", "index": "45592", "code": "main()\n{\n int n,i,j,a[1001],b[1001],t,f=0; \n while(1)\n {f++;\n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=1;i<=n;i++)\n scanf(\"%d\",&a[i]);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&b[i]);\n for(i=1;i=1;k--)\n {\n x1=0,y1=0,x2=0;\n for(i=n-k+1;i<=n;i++)\n {\n if(b[i]s)\n s=s1;\n }\n printf(\"%d\\n\",s);\n }\n}\n"} +{"label": "92", "index": "45593", "code": "int tj[1000],qw[1000],n,money=0;\nvoid games(int n)\n{\nif(n>1)\n{\n\tint i,j,mid;\n\tif(tj[n-1]qw[n-1])\n\t{\n\t\ttj[n-1]=0;qw[n-1]=0;money=money+200;\n\t}\n\telse if(tj[0]>qw[0])\n\t{\n\t\ttj[0]=0;qw[0]=0;money=money+200;\n\t\tfor(i=0;iqw[0])money=money+200;\n\t\tif(tj[0]tj[i])\n\t\t{\n\t\t\tmid=tj[j];tj[j]=tj[i];tj[i]=mid;\n\t\t}\n\t\tif(qw[j]>qw[i])\n\t\t{\n\t\t\tmid=qw[j];qw[j]=qw[i];qw[i]=mid;\n\t\t}\n\t\t}\n\t\tgames(n);\n\t\tprintf(\"%d\\n\",money);\n\t\tmoney=0;\n\t}\n}\n"} +{"label": "92", "index": "45594", "code": "int myfunc(const void *a, const void *b)\n{\n\treturn *(int *)a-*(int *)b;\n}\nint max(int a, int b)\n{\n\treturn a>b?a:b;\n}\nint main()\n{\n\tint t[2000];\n\tint q[1000];\n\tint n;\n\tint i, start;\n\tint sum, tmp;\n\twhile (1) {\n\t\tscanf(\"%d\", &n);\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tscanf(\"%d\", t+i);\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tscanf(\"%d\", q+i);\n\t\tqsort(t, n, sizeof(int), myfunc);\n\t\tqsort(q, n, sizeof(int), myfunc);\n\t\tmemcpy(t+n, t, n);\n\t\tsum = -0xFFFFFFF;\n\t\tfor (start = 0; start < n; start ++) {\n\t\t\ttmp = 0;\n\t\t\tfor (i = 0; i < n; i ++) {\n\t\t\t\tif (t[start+i] < q[i])\n\t\t\t\t\ttmp -= 200;\n\t\t\t\tif (t[start+i] > q[i])\n\t\t\t\t\ttmp += 200;\n\t\t\t}\n\t\t\tsum = max(sum, tmp);\n\t\t}\n\t\tprintf(\"%d\\n\", sum);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45595", "code": "void paixu(int *a,int n) //n?????,?????? \n{\n int i,j,t;\n for(i=0;ia[j+1])\n {\n t=a[j];\n a[j]=a[j+1];\n a[j+1]=t;\n }\n }\n }\n}\nmain()\n{\n int i,j,k,a[1000],b[1000],m,n,p,q; //a????????b????? \n loop:;\n k=0; //k??????? \n scanf(\"%d\",&n);\n if(n==0)\n return 0;\n for(j=0;jb[q])\n {\n k++;\n q++;\n continue;\n }\n else if(a[i]b[p-1])\n {\n k++;\n n--;\n i--;\n p--;\n continue;\n }\n else if(a[n-1]>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tint count=0;\n\t\tfor(i=0;i>t[i];\n\t\tfor(i=0;i>q[i];\n\t\tqsort(t,n,sizeof(int),compare);\n\t\tqsort(q,n,sizeof(int),compare);\n\t\tint tmin=0,tmax=n-1,qmin=0,qmax=n-1;\n\t\twhile(tmin<=tmax)\n\t\t{\n\t\t\tif(t[tmax]q[qmax])\n\t\t\t{\n\t\t\t\tqmax--;\n\t\t\t\ttmax--;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(t[tmin]>q[qmin])\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\ttmin++;\n\t\t\t\t\tqmin++;\n\t\t\t\t}\n\t\t\t\telse if(t[tmin]t[tmin])\n\t\t\t\t\t{\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\ttmin++;\n\t\t\t\t\t\tqmax--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<>n)\n\t{\n\t\tsum = 0;\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfor(i = 0;i>a[i];\n\t\tfor(i = 0;i>b[i];\n\t\tsort(a,a+n);\n\t\tsort(b,b+n);\n\t\tfor(i=j=n-1,i0=j0=0;j>=j0&&i>=i0;j--)\n\t\t{\n\t\t\tif(a[i]>b[j])\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t\ti--;\n\t\t\t}\n\t\t\telse if(a[i]b[j0])\n\t\t\t\t{\n\t\t\t\t\tsum++;i0++;j0++; j++;\n\t\t\t\t}\n\t\t\t\telse if(a[i0]0;j--)\n {\n for(int k=0;ktianji[l][k+1])\n {\n int temp;\n temp=tianji[l][k+1];\n tianji[l][k+1]=tianji[l][k];\n tianji[l][k]=temp; \n }\n if(qiwang[l][k]>qiwang[l][k+1])\n {\n int temp;\n temp=qiwang[l][k+1];\n qiwang[l][k+1]=qiwang[l][k];\n qiwang[l][k]=temp; \n } \n } \n } \n }\n for(int l=0;l<=i-1;l++)\n {\n int t1=0,t2=n[l]-1;\n int q1=0,q2=n[l]-1;\n int count=0;\n for(;t1<=t2;)\n {\n if(tianji[l][t2]>qiwang[l][q2])\n {\n count++;\n t2--;\n q2--; \n } \n else if(tianji[l][t1]>qiwang[l][q1])\n {\n count++;\n t1++;\n q1++; \n } \n else if(tianji[l][t1] y) return x;\n\telse return y;\n}\n\nint vs1(int x, int y)\n{\n\n if (tianji[x] > qiwang[y]) return 200;\n else if (tianji[x] < qiwang[y]) return -200;\n else return 0;\n}\n\nint sort(int a[MaxN],int l, int r)\n{\n\n int i = l, j = r, k = a[(i+j)/2];\n\n while (i <= j)\n {\n while (a[i] > k) ++i;\n while (k > a[j]) --j;\n if (i <= j)\n {\n\n int x = a[i];\n a[i] = a[j];\n a[j] = x;\n ++i;\n --j;\n }\n }\n if (l < j) sort(a,l,j);\n if (i < r) sort(a,i,r);\n}\nint main()\n{\n // freopen(\"1.in\",\"r\",stdin);\n // printf(\"2\\n\");\n\n\n int k, L, n , i , j , a ;\n\tscanf(\"%d\" , &n );\n\twhile (n)\n\t{\n\n\n\n\t\t//qiwang = (int*)malloc(n*sizeof(int));\n\t//\ttianji = (int*)malloc(n*sizeof(int));\n\t\tfor ( i = 0 ; i < n ; i ++ ) scanf(\"%d\" , &tianji[i] );\n\t\tfor ( i = 0 ; i < n ; i ++ ) { scanf(\"%d\" , &qiwang[i] );}//printf(\" %d \",i);}\n\n sort(tianji,0,n-1);\n sort(qiwang,0,n-1);\n\n for (i = 0; i < n; ++i) f[i][i] = vs1(i,n-1);\n for (L = 1; L < n; ++L)\n for (i = 0; i < n-L; ++i)\n {\n j = i + L;\n f[i][j] = max ( f[i+1][j] + vs1(i,n-1-L) , f[i][j-1] + vs1(j,n-1-L) );\n }\n\t\tprintf(\"%d\\n\",f[0][n-1]);\n\tscanf(\"%d\" , &n );\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45600", "code": "int cmp(const void * a, const void * b) {\n return *(int *)a - *(int *)b;\n}\nint a[1000], b[1000], queue[1001];\nint head, tail;\nvoid enqueue(int elem) {\n queue[head ++] = elem;\n if (head == MAX) head = 0;\n}\nint top() {\n return queue[tail];\n}\nint dequeue() {\n int ret = queue[tail ++];\n if (tail == MAX) tail = 0;\n return ret;\n}\nint empty() {\n return head == tail;\n}\nint size() {\n if (head < tail)\n return head + MAX - tail;\n else return head - tail;\n}\nint main() {\n int n, i, j, draw, win;\n int ans;\n while (scanf(\"%d\", &n) != EOF && n != 0) {\n head = tail = 0;\n for (i = 0; i < n; i ++)\n scanf(\"%d\", a + i);\n for (i = 0; i < n; i ++)\n scanf(\"%d\", b + i);\n qsort(a, n, sizeof(int), cmp);\n qsort(b, n, sizeof(int), cmp);\n win = draw = 0;\n for (i = n - 1, j = n - 1; j >= 0; j --) {\n if (a[i] > b[j]) i --, win ++;\n else {\n if (!empty() && top() > b[j]) {\n dequeue();\n // printf(\"dequeue: %d\\n\", dequeue());\n win ++;\n }\n else {\n if (a[i] == b[j])\n enqueue(a[i --]);\n }\n }\n }\n draw = size();\n ans = (2 * win - n + draw) * 200;\n printf(\"%d\\n\", ans);\n// printf(\"ans : %d\\n\", ans);\n// printf(\"win : %d\\n\", win);\n// printf(\"draw: %d\\n\", draw);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45601", "code": "\nint main()\n{ \n\tint n,s,m,i,j,t=0,sum=0;\n\tint fast1,slow1,fast2,slow2; \n\tint a[1000],b[1000];\n\tfor(m=0;;m++){\n scanf(\"%d\",&n);\n if(n!=0)\n { \n for(i=0;ib[slow2]){t++;slow1--;slow2--;}\n\t\t else if(a[slow1]b[fast2]) \n\t\t{t++;fast1++;fast2++;}\n\t\telse {t--;slow1--;fast2++;} \n\t}\n sum=t*200;\n printf(\"%d\\n\",sum);\n t=0;sum=0;\n }\n if(n==0) break;}\n \n} \n"} +{"label": "92", "index": "45602", "code": "void main()\n{\nint m,n,tq[2][1000],j,k,w,K,money,g,a,c[100],d,e,i;\nfor(m=0,d=0;;m++,d++)\n{\nscanf(\"%d\",&n);\nif(n==0)break;\nfor(j=0;j<2;j++)\nfor(k=0;k0;g--)\n{\n if(tq[0][g]>tq[1][g])i=0;\n if(tq[0][g]tq[1][0])i=2;\n if(tq[0][0]tq[1][0])money=money+200;\n if(tq[0][g]==tq[1][0])money=money+0;\n if(tq[0][g]tq[1][0])money=money+200;\nif(tq[0][0]==tq[1][0])money=money+0;\nif(tq[0][0]=t[l1])\n {\n if(t[l1]t[k1])\n {M=M-200;l1=l1-1;q[j]=-9;}\n }\n }\n printf(\"%d\\n\",M);\n free(t);\n free(q);\n }\n }\n return 0;\n}\n\n\n"} +{"label": "92", "index": "45604", "code": "void pailie(int*a,int n);\nint f(int*a,int*b,int n);\nint maxa(int x,int y);\nmain()\n{\n int n,a[1000],b[1000],i;\n for(;;)\n {\n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=0;ia[max])\n max=j;\n int temp=a[i];\n a[i]=a[max];\n a[max]=temp;\n }\n}\nint f(int *a,int *b,int n)\n{\n int max;\n int i,j;\n int g[1001][1001];\n for(i=0;i<=n;i++)\n for(j=0;j<=n;j++)\n g[i][j]=-300000;\n g[0][0]=0;\n \n for(i=0;i-200000)\n {\n \n if (a[j]>b[i]) \n {g[i+1][j+1]=maxa(g[i][j]+200,g[i+1][j+1]);}\n else if(a[j]max?g[n][j]:max;\n return (max);\n} \nint maxa(int x,int y)\n{\n return(x>y?x:y);\n} "} +{"label": "92", "index": "45605", "code": " \nint N, a[1001], b[1001], f[1001][1001];\n \nint main()\n{\n scanf (\"%d\", &N);\n while (N != 0)\n {\n\t for (int i = 1; i <= N; i ++)\n \t scanf (\"%d\", &a[i]);\n \t for (int i = 1; i <= N; i ++)\n scanf (\"%d\", &b[i]);\n sort(a + 1, a + N + 1);\n sort(b + 1, b + N + 1);\n for (int i = 1; i <= N; i ++)\n for (int j = 1; j <= N; j ++)\n if (a[i] > b[j])\n f[i][j] = f[i - 1][j - 1] + 1;\n else if (a[i] < b[j])\n f[i][j] = f[i][j - 1] - 1;\n else\n f[i][j] = max(f[i - 1][j - 1], f[i][j - 1] - 1);\n printf (\"%d\\n\", f[N][N] * 200);\n scanf (\"%d\", &N);\n}\n return 0;\n}\n"} +{"label": "92", "index": "45606", "code": "void InsertSort(int[],int);\nint SaiMa(int[],int[],int);\nvoid main()\n{\n\tint horse_n[100];//??\n\tint horseTian[100][1000];\n\tint horseQi[100][1000];\n\tint horse_i=0;//??(???+1)\n\tint i;\n\tscanf(\"%d\",&horse_n[horse_i]);\n\tdo\n\t{\n\t\tfor(i=0;i=0&&Ptr[j]=0;i--)\n\t{\n\t\tfor(j=1;jTian[j])//???????\n\t\t\t\t\tl[i][j]=l[i+1][j-1]-1;//????????\n\t\t\t\telse //?????????\n\t\t\t\t{\n\t\t\t\t\tif(l[i+1][j-1]-1>l[i][j-1])//?????????????????\n\t\t\t\t\t\tl[i][j]=l[i+1][j-1]-1; //?????????????????\n\t\t\t\t\telse //??????????????\n\t\t\t\t\t\tl[i][j]=l[i][j-1]; //?????\n}\n}\n}\n}\nreturn 200*l[0][length-1];\n}\n"} +{"label": "92", "index": "45607", "code": "\n\n\nint n;\nint q[M];\nint p[M];\nint map[M][M];\nint vis[M][M];\n\n\nint cmp(const void *a,const void *b)\n{\n return *(int *)a - *(int *)b;\n}\n\n\nvoid Initial()\n{\n memset(map,-1,sizeof(map));\n memset(vis,0,sizeof(vis));\n}\n\n\nint Branch(int cur,int s,int e)\n{\n int Cnt = 0;\n if(cur > n) return 0;\n if(p[cur] > q[s]){\n Cnt++; s++;\n if(!vis[s][e]){\n map[s][e] = Branch(cur+1,s,e);\n vis[s][e] = 1;\n }\n Cnt += map[s][e];\n }\n else if(p[cur] < q[s]){\n Cnt--; e--;\n if(!vis[s][e]){\n map[s][e] = Branch(cur+1,s,e);\n vis[s][e] = 1;\n }\n Cnt += map[s][e];\n }\n else if(p[cur] == q[s]){\n if(!vis[s+1][e]){\n map[s+1][e] = Branch(cur+1,s+1,e);\n vis[s+1][e] = 1;\n }\n if(!vis[s][e-1]){\n map[s][e-1] = Branch(cur+1,s,e-1);\n vis[s][e-1] = 1;\n }\n Cnt += max(map[s+1][e],map[s][e-1]-1); //!!! -1\n }\n return Cnt;\n}\n\n\nint main()\n{\n #ifdef LOCA\n freopen(\"in.in\",\"r\",stdin);\n #endif\n int i,j,s,e;\n while(scanf(\"%d\",&n) && n)\n {\n for(i = 1;i <= n;i++)\n scanf(\"%d\",&p[i]);\n for(i = 1;i <= n;i++)\n scanf(\"%d\",&q[i]);\n qsort(&p[1],n,sizeof(int),cmp);\n qsort(&q[1],n,sizeof(int),cmp);\n Initial(); s = 1; e = n;\n printf(\"%d\\n\",Branch(1,s,e)*200);\n }\n\n\n return 0;\n}"} +{"label": "92", "index": "45608", "code": "\n\n\nint speed[1024], ano[1024];\n\nint fight(int myId, int anoId)\n{\n\tif(speed[myId] < ano[anoId])\n\t\treturn -1;\n\telse if(speed[myId] == ano[anoId])\n\t\treturn 0;\n\telse\n\t\treturn 1;\n}\n\nint main()\n{\n\tint n;\n\twhile(scanf(\"%d\", &n) == 1 && n != 0)\n\t{\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", speed + i);\n\t\tfor(int i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", ano + i);\n\t\tsort(speed, speed + n);\n\t\tsort(ano, ano + n);\n\t\tint myLow = 0, myHigh = n - 1, anoLow = 0, anoHigh = n - 1;\n\t\twhile(myLow <= myHigh)\n\t\t{\n\t\t\tif(speed[myLow] > ano[anoLow])\n\t\t\t{\n\t\t\t\tsum += fight(myLow, anoLow);\n\t\t\t\t++myLow, ++anoLow;\n\t\t\t}\n\t\t\telse if(speed[myLow] < ano[anoLow])\n\t\t\t{\n\t\t\t\tsum += fight(myLow, anoHigh);\n\t\t\t\t++myLow, --anoHigh;\n\t\t\t}\n\t\t\telse if(speed[myHigh] > ano[anoHigh])\n\t\t\t{\n\t\t\t\tsum += fight(myHigh, anoHigh);\n\t\t\t\t--myHigh, --anoHigh;\n\t\t\t}\n\t\t\telse if(speed[myHigh] <= ano[anoHigh])\n\t\t\t{\n\t\t\t\tsum += fight(myLow, anoHigh);\n\t\t\t\t++myLow, --anoHigh;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\", sum * 200);\n\t}\n}"} +{"label": "92", "index": "45609", "code": "int main(){\n int n,i;\n int tianji[10100],king[10100];\n while(cin>>n){\n if(!n)break;\n i=0;\n while(i>tianji[i++];\n }\n i=0;\n while(i>king[i++];\n }\n sort(tianji,tianji+n);\n sort(king,king+n);\n int b1,e1,b2,e2,score=0;\n // cout<<\"%\"<king[e2]){\n score+=200;e1--;e2--;\n }\n else if(tianji[e1]king[b2]){\n b1++;b2++;score+=200;\n }\n else{\n b1++;e2--;score-=200;\n }\n }\n else if(b1b[bmax])\n {sum-=200;amax++;bmin--;} \n else \n { \n if(a[amin]b[bmin])\n {sum-=200;bmin--;amax++;}\n else //?????? ????????????????? ????? ????????????????? \n { \n if(a[amax]>b[bmin])\n {sum-=200;amax++;bmin--;} //????? ????? ?? ??????? ?????????????? ?? ????????? ????? ??????? ????????? \n else\n break;\n } \n \n }\n } \n //??s?????? \n \n \n printf(\"%d\\n\",sum); \n }\n\nreturn 0; \n} "} +{"label": "92", "index": "45611", "code": "void paixu(int*p,int k);\nmain()\n{\n int tian[2020],qi[1010];\n int n,i,j,k,m,max;\n for(;;)\n {\n scanf(\"%d\",&n);\n if(n!=0)\n {\n for(i=0;iqi[j])\n m=m+1;\n if(tian[j+i]max)\n max=m;\n }\n printf(\"%d\\n\",200*max);\n }\n else\n break;\n }\n getchar();getchar();\n}\nvoid paixu(int*p,int k)\n{\n int i,j,t;\n for(i=0;ib)\n return 200;\n else if(a==b)\n return 0;\n else\n return -200;\n}\n\nint main()\n{\n int n,i,j,tian[1000],qi[1000],re[1001][1001];\n cin>>n;\n while(n!=0)\n {\n if(n==1)\n {\n cin>>tian[0]>>qi[0];\n cout<>tian[i];\n for(i=0;i>qi[i];\n qsort(tian,n,sizeof(int),compare);\n qsort(qi,n,sizeof(int),compare);\n\n // for(i=0;ire[i-1][j]+g(tian[n-i+j],qi[i-1]))\n re[i][j]=re[i-1][j-1]+g(tian[j-1],qi[i-1]);\n else\n re[i][j]=re[i-1][j]+g(tian[n-i+j],qi[i-1]);\n }\n re[i][i]=re[i-1][j-1]+g(tian[i-1],qi[i-1]);\n }\n\n /* for(i=1;ire[n][0])\n re[n][0]=re[n][i];\n }\n cout<>n;\n }\n return 0;\n}\n"} +{"label": "92", "index": "45613", "code": "int compare (const void *elem1,const void *elem2)\n{ return ((*(int*)elem2)-(*(int*)elem1));\n \n}\n\n\n\nint main()\n{\n int i,j,k,m,n,a[100000],b[100000];\n \n int ab,bb,ae,be,w,f;\n n=1;\n while(n!=0)\n \n { scanf(\"%d\",&n);\n if(n==0)\n break;\n \n for (i=0;ib[be])\n {\n w++;\n ae--;\n be--;\n }\n else\n { \n if(a[ab]>b[bb])\n {\n w++;\n ab++;\n bb++; \n \n }\n else\n { \n if(a[ab]=2)\n {\n for(y=0;y<=n-2;y++)\n {\n for(z=y+1;z<=n-1;z++)\n {\n if(a[z]>a[y])\n {\n m=a[y];\n a[y]=a[z];\n a[z]=m;\n }\n if(b[z]>b[y])\n {\n m=b[y];\n b[y]=b[z];\n b[z]=m;\n }\n }\n }\n }\n//??????\n win=0;\n lose=0;\n if(n>=2)\n {\n for(i=1;i<=n-1;i++)\n {\n if(a[0]>b[0])\n {\n win++;\n for(s=0;s<=n-i-1;s++)\n {\n a[s]=a[s+1];\n b[s]=b[s+1];\n }\n }\n else\n {\n for(t=n-i;t>=0;t--)\n {\n if(a[t]>b[t])\n {\n win++;\n i++;\n if(n==i)\n break;\n }\n else\n {\n if(a[n-i]b[0])\n win++;\n if(a[0]a[i]) v++;\n else if(b[i]<=a[i])\n {\n for(j=l;j>=i;j--)\n {\n if(b[j]<=a[j]) \n {\n l=j;\n break;\n }\n }\n p=b[l];\n for(k=l;k>=i+1;k--)\n {\n b[k]=b[k-1];\n }\n b[i]=p; \n if(b[i]==a[i]) m++;\n }\n }\n f=n-v-m;\n return(200*(v-f));\n}\nmain()\n{\n int n=1,a[1000],b[1000],j,i;\n long int k;\n for(;n!=0;)\n {\n scanf(\"%d\",&n); \n for(j=0;j=0;i--)\n {\n for (j=0;j<=i;j++)\n {\n if (a[j]>a[j+1])\n {\n t=a[j+1];\n a[j+1]=a[j];\n a[j]=t;\n }\n }\n }\n for (i=n-2;i>=0;i--)\n {\n for (j=0;j<=i;j++)\n {\n if (b[j]>b[j+1])\n {\n t=b[j+1];\n b[j+1]=b[j];\n b[j]=t;\n }\n }\n }\n \n for (i=0;i<=n-1;i++)\n {\n t=0;\n for (j=0;j<=n-1;j++)\n { \n if (b[j]==100000)\n {\n continue;\n }\n else\n {\n if (a[i]-b[j]>0)\n {\n t=j;\n }\n }\n }\n if (a[i]-b[t]>0)\n {\n win++;\n b[t]=100000;\n a[i]=-2;\n }\n }\n for (i=0;i<=n-1;i++)\n {\n if(a[i]==-2)\n {\n continue;\n }\n else\n {\n c=0;\n t=0;\n for (j=0;j<=n-1;j++)\n {\n if (b[j]==100000)\n {\n continue;\n }\n else\n {\n if(a[i]==b[j])\n {\n a[i]=-2;\n b[j]=100000;\n equal=equal+1;\n break;\n } \n } \n }\n }\n } \n lose=n-win-equal;\n int money;\n money=(win-lose)*200;\n printf(\"%d\\n\",money); \n scanf(\"%d\",&n);\n }\n getchar();getchar();getchar();getchar();getchar();\n}\n \n"} +{"label": "92", "index": "45617", "code": "/*\n\tprogram: ????\n\tAuthor : ??\n\tID : 00948159\n\tDate : 2011.3.29\n*/\n\n\nconst int MAXN = 1000;\nconst int PRICE = 200;\n\nint h[2][MAXN];\n\nint main()\n{\n\tint n, i, j, ans, s0, t0, s1, t1;\n\n\twhile (scanf(\"%d\", &n), n > 0)\n\t{\n\t\tfor (i = 0; i < 2; ++i)\n\t\t{\n\t\t\tfor (j = 0; j < n; ++j)\n\t\t\t\tscanf(\"%d\", &h[i][j]);\n\t\t\tsort(h[i], h[i] + n);\n\t\t}\n\n\t\tans = 0;\n\t\ts0 = 0;\n\t\ts1 = 0;\n\t\tt0 = n - 1;\n\t\tt1 = n - 1;\n\t\twhile (s0 <= t0)\n\t\t{\n\t\t\twhile (s0 <= t0 && h[0][s0] > h[1][s1])\n\t\t\t{\n\t\t\t\tans += PRICE;\n\t\t\t\t++s0;\n\t\t\t\t++s1;\n\t\t\t}\n\t\t\twhile (s0 <= t0 && h[0][t0] > h[1][t1])\n\t\t\t{\n\t\t\t\tans += PRICE;\n\t\t\t\t--t0;\n\t\t\t\t--t1;\n\t\t\t}\n\t\t\tif (s0 <= t0)\n\t\t\t{\n\t\t\t\tif (h[0][s0] == h[1][t1])\n\t\t\t\t\tbreak;\n\t\t\t\tans -= PRICE;\n\t\t\t\t++s0;\n\t\t\t\t--t1;\n\t\t\t}\n\t\t}\n\n\t\tprintf(\"%d\\n\", ans);\n\t}\n\n\treturn 0;\n}\n"} +{"label": "92", "index": "45618", "code": "\nvoid Order(int house[],int n)\n{\n\tint i,j,temp;\n\tfor(i=1;iqiwang[j])\n\t\t\t\t{\n\t\t\t\t\tmoney++;\n\t\t\t\t\tfast++;\n\t\t\t\t}else if(tianji[fast]fast;st--,sq--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tianji[st]>qiwang[sq])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmoney++;\n\t\t\t\t\t\t\tslowt--;\n\t\t\t\t\t\t\tslowq--;\n\t\t\t\t\t\t\tn--;\n\t\t\t\t\t\t}else if(tianji[st]<=qiwang[sq]){\n\t\t\t\t\t\t\tif(tianji[st]slowt)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",money*200);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45619", "code": "int cmp(const void *a,const void *b)\n{\n int x,y;\n x=*(int *)a;\n y=*(int *)b;\n if (xy)\n return -1;\n else return 0;\n}\nint main()\n{\n int i,j,k,s,x,n,t[1000],q[1000];\n scanf(\"%d\",&n);\n while (n!=0)\n {\n for (i=0;iq[j])\n x+=200;\n else if (t[k]s)\n s=x;\n }\n printf(\"%d\\n\",s);\n scanf(\"%d\",&n);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45620", "code": "\nvoid swap(int* x, int* y)\n{\n\tint z;\n\tz = *x;\n\t*x = *y;\n\t*y = z;\n}\n\nint main(void)\n{\n\tint n, ts, qs, te, qe, i, j, ans;\n\tint t[1005], q[1005];\n\n\twhile(1) {\n\t\tscanf(\"%d\", &n);\n\t\tif (n == 0) break;\n\t\tfor (i = 0; i < n; i++) scanf(\"%d\", &t[i]);\n\t\tfor (i = 0; i < n; i++) scanf(\"%d\", &q[i]);\n\t\tfor (i = 1; i < n; i++)\n\t\t\tfor (j = 0; j < i; j++) {\n\t\t\t\tif (t[i] > t[j]) swap(&t[i], &t[j]);\n\t\t\t\tif (q[i] > q[j]) swap(&q[i], &q[j]);\n\t\t\t}\n\t\tts = qs = 0;\n\t\tte = qe = n-1;\n\t\tans = 0;\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tif (t[te] > q[qe]) {\n\t\t\t\tans++;\n\t\t\t\tte--;\n\t\t\t\tqe--;\n\t\t\t}\n\t\t\telse if(t[te] < q[qe]) {\n\t\t\t\tans--;\n\t\t\t\tte--;\n\t\t\t\tqs++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (t[ts] > q[qs]) {\n\t\t\t\t\tans++;\n\t\t\t\t\tts++;\n\t\t\t\t\tqs++;\n\t\t\t\t}\n\t\t\t\telse if (t[ts] < q[qs]) {\n\t\t\t\t\tans--;\n\t\t\t\t\tte--;\n\t\t\t\t\tqs++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (q[qs] > t[te]) ans--;\n\t\t\t\t\tqs++;\n\t\t\t\t\tte--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\", ans*200);\n\t}\n\t\treturn 0;\t\n}"} +{"label": "92", "index": "45621", "code": "int ans = 0;\nint n;\nint horses1[1001], horses2[1001];\nvoid cal ()\n{\n\tint pos;\n\tif (horses1[n -1] == -1) return;\n\tfor (int i = 0 ; i < n ; i ++)\n\t{\n\t\tif (horses1[i] != -1)\n\t\t{\n\t\t\tpos = i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (horses1[pos] > horses2[pos])\n\t{\n\t\tans += 200;\n\t\thorses1[pos] = -1;\n\t\thorses2[pos] = -1;\n\t\tcal ();\n\t\treturn;\n\t}\n\tif (horses1[pos] < horses2[pos])\n\t{\n\t\tans -= 200;\n\t\thorses1[pos] = -1;\n\t\tfor (int i = n - 1 ; i >= 1 ; i --)\n\t\t\thorses2[i] = horses2[i - 1];\n\t\thorses2[0] = -1;\n\t\tcal ();\n\t\treturn;\n\t}\n\tif (horses1[n - 1] > horses2[n - 1])\n\t{\n\t\tans += 200;\n\t\tfor (int i = n - 1 ; i >= 1 ; i --)\n\t\t\thorses1[i] = horses1[i - 1];\n\t\thorses1[0] = -1;\n\t\tfor (int i = n - 1 ; i >= 1 ; i --)\n\t\t\thorses2[i] = horses2[i - 1];\n\t\thorses2[0] = -1;\n\t\tcal ();\n\t\treturn;\n\t}\n\tif (horses1[n - 1] < horses2[n - 1])\n\t{\n\t\tans -= 200;\n\t\thorses1[pos] = -1;\n\t\tfor (int i = n - 1 ; i >= 1 ; i --)\n\t\t\thorses2[i] = horses2[i - 1];\n\t\thorses2[0] = -1;\n\t\tcal ();\n\t\treturn;\n\t}\n\tif (horses1[n - 1] == horses2[n - 1])\n\t{\n\t\tif (horses1[pos] < horses2[n - 1])\n\t\t\tans -= 200;\n\t\thorses1[pos] = -1;\n\t\tfor (int i = n - 1 ; i >= 1 ; i --)\n\t\t\thorses2[i] = horses2[i - 1];\n\t\thorses2[0] = -1;\n\t\tcal ();\n\t\treturn;\n\t}\n}\nint main ()\n{\n\twhile (1)\n\t{\n\t\tcin >> n;\n\t\tif (n == 0) break;\n\t\tfor (int i = 0 ; i < n ; i ++)\n\t\t\tcin >> horses1[i];\n\t\tfor (int i = 0 ; i < n ; i ++)\n\t\t\tcin >> horses2[i];\n\t\tsort (horses1, horses1 + n);\n\t\tsort (horses2, horses2 + n);\n\t\tcal ();\n\t\tcout << ans << endl;\n\t\tans = 0;\n\t\t/*\n\t\tfor (int i = 0 ; i < n ; i ++)\n\t\t\tcout << horses1[i] << ' ';\n\t\tcout << endl;\n\t\tfor (int i = 0 ; i < n ; i ++)\n\t\t\tcout << horses2[i] << ' ';\n\t\tcout << endl;\n\t\t*/\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45622", "code": "int cmp(const void *a,const void *b)\n{\n int x,y;\n x=*(int *)a;\n y=*(int *)b;\n return y-x;\n}\nint main()\n{\n int i,j,k,s,x,n,t[1000],q[1000];\n scanf(\"%d\",&n);\n while (n!=0)\n {\n for (i=0;iq[j])\n x+=200;\n else if (t[k]s)\n s=x;\n\t\t\t }\n printf(\"%d\\n\",s);\n scanf(\"%d\",&n);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45623", "code": "main()\n{\n int n;\n for(;;)\n {\n scanf(\"%d\",&n);\n if(n==0)\n break;\n else\n {\n int i,j,k,lose=0,win=0,a1,a2,b1,b2,a[2000]={0},b[2000]={0};\n for(i=0;ia[j])\n k=a[i],a[i]=a[j],a[j]=k;\n if(b[i]>b[j])\n k=b[i],b[i]=b[j],b[j]=k;\n }\n }\n for(a1=0,a2=n-1,b1=0,b2=n-1;a1<=a2;)\n {\n if(a[a1]>b[b1])\n a1++,b1++,win++;\n else\n {\n if(a[a1]b[b2])\n a2--,b2--,win++;\n else\n {\n if(a[a2] b[j]) return 200;\n\tif(a[i] == b[j]) return 0;\n\treturn -200;\n}\nint maxS(int aa,int bb){\n\treturn aa>bb?aa:bb;\n}\n\nint main(){\n\tint n,i,j;\n\n\twhile(scanf(\"%d\",&n) && n){\n\n\t\tfor(i = 0;i < n;i++)\n\t\t\tscanf(\"%d\",a+i);\n\t\tfor(i = 0;i < n;i++)\n\t\t\tscanf(\"%d\",b+i);\n\n\t\tqsort(a,n,sizeof(int),cmp);\n\t\tqsort(b,n,sizeof(int),cmp);\n\n\t\tfor(i = 0;i < n;i++)\n\t\t\tf[i][0] = find(0,i);\n\t\tfor(i = n-2;i >= 0;i--)\n\t\t\tfor(j = 1;j < n-i;j++)\n\t\t\t\tif(b[i+j] > a[j])\n\t\t\t\t\tf[i][j] = f[i+1][j-1] - 200;\n\t\t\t\telse if(b[i+j] < a[j])\n\t\t\t\t\tf[i][j] = f[i][j-1] + 200;\n\t\t\t\telse if(f[i+1][j-1] - 200 > f[i][j-1])\n\t\t\t\t\tf[i][j] = f[i+1][j-1] - 200;\n\t\t\t\telse f[i][j] = f[i][j-1];\n\n\t\tprintf(\"%d\\n\",f[0][n-1]);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45625", "code": "int paixu(int s[],int n)\n{\n int i,j,t;\n for (i=0;is[j+1])\n {\n t=s[j];s[j]=s[j+1];s[j+1]=t;\n }\n }\n }\n return 0;\n}\nint main ()\n{\n while (1)\n {\n int a=0,b=0,m,n=0,i,j,k,s[1001],t[1001],x;\n scanf(\"%d\",&n);\n if (n==0) break;\n for (i=0;it[j])\n {\n j++;a++;\n }\n else if (s[i]==t[j])\n {\n for (k=i+1,x=0;ks[i])\n {x=1;break;}\n }\n if (x==0)\n {\n j++;b++;\n }\n else\n {\n j++;a++;\n s[k]=0;\n }\n }\n }\n m=200*(a-(n-a-b));\n printf(\"%d\\n\",m);\n }\n getchar();getchar();getchar();getchar();\n}\n\n"} +{"label": "92", "index": "45626", "code": "\nint sort(int x[], int m){\n int i, j, k;\n for (i=0;ib[j])\n temp_gain++;\n else if (a[i](gain - lose) || shadow==0)\n {\n gain = temp_gain;\n lose = temp_lose;\n tie = temp_tie;\n }\n i = shadow;\n temp_gain = 0;\n temp_lose = 0;\n temp_tie = 0;\n }\n\n total_gain = (gain-lose)*200;\n printf(\"%d\\n\",total_gain); \n}\ngetchar();\ngetchar();\n }\n"} +{"label": "92", "index": "45627", "code": "int thorse[1002];\nint qhorse[1002];\nint match[1002];\nint compare(const void *p1,const void *p2)\n{\n\tint *p=(int *) p1;\n\tint *q = (int *)p2;\n\treturn (*q)-(*p);\n}\nint main()\n{\n\tint n;\n\twhile(cin>>n)\n\t{\n\t\tif(n==0){break;}\n\t\tmemset(thorse,0,sizeof(thorse));\n\t\tmemset(qhorse,0,sizeof(qhorse));\n\t\tmemset(match,0,sizeof(match));\n\t\tfor(int i=0;i>thorse[i];\n\t\t}\n\t\tfor(int i=0;i>qhorse[i];\n\t\t}\n\t\tqsort(thorse,n,sizeof(int),compare);\n\t\tqsort(qhorse,n,sizeof(int),compare);\n\t\tint fast=0, slow=n-1, head=0, tail=n-1;\n\t\tint win=0, lose=0;\n\t\twhile(fast<=slow)\n\t\t{\n\t\t\tif(thorse[tail]>qhorse[slow])\n\t\t\t{\n\t\t\t\tmatch[slow]=tail;\n\t\t\t\tslow--;tail--;\n\t\t\t}\n\t\t\telse if(thorse[tail]qhorse[fast])\n\t\t\t\t{\n\t\t\t\t\tmatch[fast]=head;\n\t\t\t\t\tfast++;head++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmatch[fast]=tail;\n\t\t\t\t\ttail--;fast++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;ithorse[match[i]]){lose++;}\n\t\t\telse if(qhorse[i]i)\n break;\n if(a[x]>b[y])\n {\n count1+=1;\n x++;\n y++;\n }\n else\n if(a[i]>b[j])\n {\n count1+=1;\n i--;\n j--;\n }\n else\n {\n if(a[i]>n;\n if(n==0)\n break;\n for(int i=0;i>a[i];\n qsort(a,n,sizeof(int),cmp);\n // for(int i=0;i>b[i];\n qsort(b,n,sizeof(int),cmp);\n count1=0;\n // i_count=0;\n dfs(a,b);\n cout<<200*(count1)<i;j--)\n {\n if(t[j]>=t[j-1])//?? \n {\n k=t[j-1];\n t[j-1]=t[j];\n t[j]=k;\n }\n }\n }\n for(i=0;ii;j--)\n {\n if(q[j]>=q[j-1])//?? \n {\n k=q[j-1];\n q[j-1]=q[j];\n q[j]=k;\n }\n }\n }\n int sum=0,fail=0,qfail=0; //fail???????????qfail????\n for(j=0;jq[k])//??? \n sum++;\n else if(t[i]q[n-qfail-1])\n {\n sum++;\n fail++;\n qfail++;\n }\n else if(t[n-fail-1]b[i+j])\n\t\t x++;\n if(a[i]=n)\n\t { if(a[i]>b[i+j-n])\n\t x++;\n\t if(a[i]m[c])\n\tm[c]=x-y;\n x=0;\n\t y=0;\n }\n c++;\n }\n for(i=0;i<=c-1;i++)\n printf(\"%d\\n\",200*m[i]);\n}"} +{"label": "92", "index": "45631", "code": "\nconst int maxn = 1200;\n\nint\ncmp(const void* e1, const void *e2)\t{\n\treturn *(int *)e1 - *(int *)e2;\n}\n\nint\nmain(void)\t{\n\tint n;\n\tint a[maxn], b[maxn];\n\t\n\twhile (cin >> n)\t{\n\t\tif (n == 0)\tbreak;\n\n\t\tfor (int i = 0 ; i < n; i ++)\tcin >> a[i];\n\t\tfor (int i = 0; i < n; i ++)\tcin >> b[i];\n\n\t\tqsort(a, n, sizeof(int), cmp);\n\t\tqsort(b, n, sizeof(int), cmp);\n\n\t\tint la, lb, ra, rb;\n\n\t\tla = lb = 0;\n\t\tra = rb = n - 1;\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i b[rb])\t{\n\t\t\t\tans ++;\n\t\t\t\tra --, rb --;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (a[la] > b[lb])\t{\n\t\t\t\tans ++;\n\t\t\t\tla ++, lb ++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (a[la] < b[rb])\tans --;\n\t\t\tla ++, rb --;\n\t\t}\n\n\t\tcout << ans * 200 << endl;\n\n\t}\n\n\treturn 0;\n}"} +{"label": "92", "index": "45632", "code": "main()\n{\n int n,h,i=0,j=0,temp,re,iLAST,jLAST;\n int t[1000],q[1000];\n for (h=1;;h++)\n {\n scanf(\"%d\",&n);\n if (n==0)\n break;\n else\n {\n for (i=0;iq[j])\n {\n re++;\n }\n else if (t[i]q[jLAST])\n {\n re++;\n iLAST--;\n }\n else if (t[iLAST]wang[staw]){\n\t\t\tsum+=200;\n\t\t\tstaw++;\n\t\t\tstat++;\n\t\t}\n\t\telse if(tian[stat]wang[endw]){\n\t\t\t\t\tsum+=200;\n\t\t\t\t\tendt--;\n\t\t\t\t\tendw--;\n\t\t\t\t}\n\t\t\t\telse if(tian[endt]<=wang[endw]){\n\t\t\t\t\tif(tian[endt]i;j--){\n\t\t\tif(tian[j]>tian[j-1]){\n\t\t\t\tb=tian[j];\n\t\t\t\ttian[j]=tian[j-1];\n\t\t\t\ttian[j-1]=b;\n\t\t\t}\n\t\t\tif(wang[j]>wang[j-1]){\n\t\t\t\tb=wang[j];\n\t\t\t\twang[j]=wang[j-1];\n\t\t\t\twang[j-1]=b;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\nint change(int *a,int *b){\n\tint c;\n\tc=*a;\n\t*a=*b;\n\t*a=c;\n\treturn 0;\n}"} +{"label": "92", "index": "45634", "code": "\n\n\nint main()\n{\n\tint i;\n\tint tj[NUM], qw[NUM], n;\n\n\twhile (cin >> n && n)\n\t{\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> tj[i];\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> qw[i];\n\t\tsort(tj, tj + n);\n\t\tsort(qw, qw + n);\n\n\t\tint sum = 0, tjl = 0, tjr = n - 1, qwl = 0, qwr = n - 1;\n\t\twhile (tjl <= tjr)\n\t\t{\n\t\t\twhile (tjl <= tjr && tj[tjl] > qw[qwl])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\ttjl++;\n\t\t\t\tqwl++;\n\t\t\t}\n\t\t\twhile (tjl <= tjr && tj[tjr] > qw[qwr])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\ttjr--;\n\t\t\t\tqwr--;\n\t\t\t}\n\n\t\t\tif (tjl <= tjr)\n\t\t\t{\n\t\t\t\tif (tj[tjl] < qw[qwr])\n\t\t\t\t\tsum -= 200;\n\t\t\t\ttjl++;\n\t\t\t\tqwr--;\n\t\t\t}\n\t\t}\n\n\t\tcout << sum << endl;\n\t}\t\n\n\treturn 0;\n}\n"} +{"label": "92", "index": "45635", "code": "const int MAX = 1005;\nint main(void)\n{\n int n;\n int tian[MAX], king[MAX];\n while(scanf(\"%d\", &n), n)\n {\n for(int i=0; i king[king_slow])\n {\n tian_slow++;\n king_slow++;\n result++;\n }\n else\n {\n if(tian[tian_fast] > king[king_fast])\n {\n result++;\n tian_fast--; king_fast--;\n }\n else if(tian[tian_fast] < king[king_fast])\n {\n result--;\n tian_slow++;\n king_fast--;\n }\n else\n {\n if(tian[tian_slow] < king[king_fast])\n {\n result--;\n tian_slow++;\n king_fast--;\n }\n else\n {\n break;//??????\n }\n }\n }\n }\n printf(\"%d\\n\", result*200);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45636", "code": "\nvoid main()\n{\n\twhile(1)\n\t{\n\t\tint n,i,j,k,p,temp,win,tie,money;\n\t\tint tj[2000],qw[2000];\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0) break;\n\t\telse\n\t\t{\n\t\t /*????*/\n\t\t\tfor(i=0;iqw[i])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tj++;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\telse if(tj[k]>qw[p])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tp--;\n\t\t\t\t\tk--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(tj[k]==qw[i])\n\t\t\t\t\t\ttie++;\n\t\t\t\t\tk--;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoney=200*(win-(n-win-tie));\n\t\t\tprintf(\"%d\\n\",money);\n\t\t}\n\t}\n}\n\n\n\n"} +{"label": "92", "index": "45637", "code": "\nint tian[1000],wang[1000],temp[1000];\n\nint cmp( const void *a,const void *b )\n{\n\treturn *(int*)a- *(int*)b;\n}\n\nint main()\n{\n\tint n;\n\twhile(1)\n\t{\n\t\tint i,num = 0,t_first,q_first,t_last,q_last;\n\t\tscanf(\"%d\",&n);\n\t\tif( n == 0 )\n\t\t\tbreak;\n\n\t\tfor( i = 0;i < n;i++ )\n\t\t\tscanf(\"%d\",&tian[i]);\n\t\tfor( i = 0;i < n;i++ )\n\t\t\tscanf(\"%d\",&wang[i]);\n\n\t\tqsort( tian,n,sizeof(int),cmp );\n\t\tqsort( wang,n,sizeof(int),cmp );\n\n\t\tt_first = q_first = 0;\n\t\tt_last = q_last = n-1;\n\t\twhile( t_last >= t_first )\n\t\t{\n\t\t\tif( tian[t_first] > wang[q_first] )\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t\tt_first++;\n\t\t\t\tq_first++;\n\t\t\t}\n\t\t\telse if( tian[t_first] < wang[q_first] )\n\t\t\t{\n\t\t\t\tnum--;\n\t\t\t\tt_first++;\n\t\t\t\tq_last--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( tian[t_last] > wang[q_last] )\n\t\t\t\t{\n\t\t\t\t\tnum++;\n\t\t\t\t\tt_last--;\n\t\t\t\t\tq_last--;\n\t\t\t\t}\n\t\t\t\telse if( tian[t_last] < wang[q_last] )\n\t\t\t\t{\n\t\t\t\t\tnum--;\n\t\t\t\t\tt_first++;\n\t\t\t\t\tq_last--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif( tian[t_first] < wang[q_last] )\n\t\t\t\t\t\tnum--;\n\t\t\t\t\tt_first++;\n\t\t\t\t\tq_last--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tprintf(\"%d\\n\",num*200);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45638", "code": "int n;\nvoid paixu (int* p)\n{\n int k;\n for (int i=n-1;i>=0;i--)\n {\n for (int j=0;jb[j]) w++;\n else if (a[j]w)?m:w;\n huan(a);\n }\n printf(\"%d\\n\",200*m);\n }\n return 0;\n}"} +{"label": "92", "index": "45639", "code": "\nint main()\n{\n\nint n,i,j,k,a[1001],b[1001],sum=0,win,draw,t,as,ae,bs,be;\n\nfor(k=0;;k++){\n \n sum=0;\n \nwin=0;\n \ndraw=0;\n \nscanf(\"%d\",&n);\n\n if(n==0)break;\n\n for(i=0;ib[bs])\n {\n as++;\n bs++;\n win++;\n }\n else if(a[ae]>b[be])\n {\n ae--;\n be--;\n win++;\n }\n else\n {\n if(a[ae]==b[bs])\n {\n ae--;\n bs++;\n draw++;\n }\n else\n {\n ae--;\n bs++;\n }\n }\n \n }\n sum=win*200-(n-win-draw)*200;\n //printf(\"win:%d;draw:%d;\\n\",win,draw);\n printf(\"%d\\n\",sum);\n}\nreturn 0;\n}\n"} +{"label": "92", "index": "45640", "code": "int main()\n{\n\tint a[1000]={0},b[1000]={0};\n\tvoid move(int x[],int y);\n\tvoid list(int x[],int y);\n\twhile(true)\n\t{\n\t\tint t,j,i,max;\n\t\tcin>>t;\n\t\tif(t!=0)\n\t\t{\n\t\t\tfor(i=0;i<=t-1;i++)\n\t\t\t\tcin>>a[i];\n\t\t\tfor(i=0;i<=t-1;i++)\n\t\t\t\tcin>>b[i];\n\t\t\tlist(a,t);\n\t\t\tlist(b,t);\n\t\t\tfor(j=0;j<=(t-1)/2;j++)\n\t\t\t{\n\t\t\t\tint money=0;\n\t\t\t\tfor(i=0;i<=t-1;i++)\n\t\t\t\t{\n\t\t\t\t\tif(a[i]b[i])\n\t\t\t\t\t\tmoney++;\n\t\t\t\t}\n\t\t\t\tif(j==0)\n\t\t\t\t\tmax=money;\n\t\t\t\tif(max=0;i--)\n\t\tx[i+1]=x[i];\n\tx[0]=temp;\n}\nvoid list(int x[],int y)\n{\n\tint i,j,temp;\n\tfor(i=0;i<=y-1;i++)\n\t\tfor(j=i;j<=y-1;j++)\n\t\t{\n\t\t\tif(x[i]> rn;\n\t\tif(rn == 0)\n\t\t\tbreak;\n\t\tfor(i = 0;i>a[i];\n\t\tfor(i = 0;i>b[i];\n\t\tfor(i = 0; i < rn - 1; i ++)\n\t\t\tfor(j = i + 1; j < rn; j ++)\n\t\t\t\tif(a[i]b[be])\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tae--;\n\t\t\t\tbe--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a[ae]b[bs])\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tas++;\n\t\t\t\tbs++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(a[as]b[max2])\n\t\t{\n\t\t\tmax1--;\n\t\t\tmax2--;\n\t\t\tsum+=200;\n\t\t}\n\t\telse if(a[max1]b[min2])\n\t\t\t{\n\t\t\t\tsum+=200;\n\t\t\t\tmin1++;\n\t\t\t\tmin2++;\n\t\t\t}\n\t\t\telse if(a[min1]Kg[Kg_fa] ) // ?????????????? \n { count++; Tj_fa--; Kg_fa--; }\n\t\telse if(Tj[Tj_lo]>Kg[Kg_lo]) // ??????????????\n { count++; Tj_lo++; Kg_lo++; }\n\t\telse //???????????????\n { if(Tj[Tj_lo]>n&&n)\n {\n int i;\n for (i=0;i>T[i];\n }\n for (i=0;i>K[i];\n }\n sort(T,T+n);\n sort(K,K+n);\n cout<b[j])\n {\n sum=sum+200;\n i++;\n j++;\n }\n else\n {\n if(a[s]>b[t])\n {\n sum=sum+200;\n s--;\n t--;\n }\n else\n {\n if(a[s]!=b[j])\n {\n sum=sum-200;\n j++;\n s--;\n }\n }\n }\n }\n printf(\"%d\\n\",sum);\n }\n } \n}\n\n\n\n\n\n\n\n"} +{"label": "92", "index": "45645", "code": "int n;\nint a[1002],b[1002];\nint solve(int start);\nint main(){\n\tint i;\n\twhile(scanf(\"%d\",&n) &&n){\n\t\tfor(i=0;ia[i-start])sum+=200;\n\t\telse if(b[i]a[n-start+i])sum+=200;\n\t\telse if(b[i]qi[head2])\n {\n vic++;\n head1++;\n head2++;\n }\n else\n if(tian[end1]>qi[end2])\n {\n vic++;\n end1--;\n end2--;\n }\n else\n if (tian[head1]<=qi[head2])\n {\n if (tian[end1]0;scanf(\"%d\",&n))\n {\n for(i=0;iking[begin_king])&&(begin_tian<=end_tian))\n {\n money=money+200;\n begin_tian++;begin_king++;\n }\n while((tian[end_tian]>king[end_king])&&(begin_tian<=end_tian))\n {\n money=money+200;\n end_tian--;end_king--; \n }\n if(begin_tian<=end_tian)\n {\n if(tian[begin_tian]>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t\t\tying=0;\n\t\t\tl1=0;\n\t\t\tl2=0;\n\t\t\tr2=n-1;\n\t\t\tr1=n-1;\n\t\t\tfor(i=0;i>a[i];\n\t\t\tfor(i=0;i>b[i];\n\t\t\tqsort(a,n,sizeof(int),Compare);\n\t\t\tqsort(b,n,sizeof(int),Compare);\n\t\t\twhile(l1b[l2])\n\t\t\t\t{\n\t\t\t\t\tying++;\n\t\t\t\t\tl1++;\n\t\t\t\t\tl2++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a[l1]b[r2])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tying++;\n\t\t\t\t\t\t\tr1--;\n\t\t\t\t\t\t\tr2--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a[r1]==b[r2])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(b[l2]>a[r1])\n\t\t\t\t\t\t\t\t ying--;\n\t\t\t\t\t\t\t\tl2++;\n\t\t\t\t\t\t\t\tr1--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tying--;\n\t\t\t\t\t\t\t\tr1--;\n\t\t\t\t\t\t\t\tl2++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(a[l1]>b[l2])\n\t\t\t\tying++;\n\t\t\tif(a[l1]q[i])/*????*/ \n c++;\n else\n {\n if(t[n-1]>q[n-1])/*??????????????????*/\n {\n c++;\n for(j=n-2;j>=i;j--)\n {t[j+1]=t[j];\n q[j+1]=q[j];}\n } \n else\n {\n if(t[n-1]=i;j--)\n t[j+1]=t[j];\n } \n } \n } \n \n money=c*p;\n \n }\n printf(\"%d\\n\",money);\n \n \n} \n \n return(0);\n \n getchar();getchar();getchar();getchar();getchar();getchar();getchar();\n \n \n} \n \n \n \n"} +{"label": "92", "index": "45651", "code": "int comp(void const *a,void const *b)\n{return (*(int *)a-*(int *)b);} \nmain()\n{ \n int n,w[1001],t[1001],sum; \n int tfast,tslow,wfast,wslow; \n scanf(\"%d\",&n); \n while (n!=0)\n { \n for (int i=0;it[tfast]){wfast--;tslow++;sum--;}\n else if (w[wfast]==t[tfast])\n \n {\n//\n// if(th[tslow]>wh[wslow]){sum++;tslow++;wslow++;}//sub??????? \n//\t\t else if(th[tslow]t[tslow]){tslow++;wfast--;sum--;}\n }\n else if (w[wslow]>t[tslow]){wfast--;tslow++;sum--;} \n else if (w[wslow]=0;j--,k--)\n if(a[k]>b[j])now++;else\n if(a[k]M)M=now;\n }\n cout<>n && n)\n{\ntotal=0;\n\tfor (i=0;i>t[i];\n\tfor (i=0;i>q[i];\n\tqsort(t,n,sizeof(int),compare);\n\tqsort(q,n,sizeof(int),compare);\t\n\tql=0;\n\tqr=n-1;\n\ttl=0;\n\ttr=n-1;\n\twhile(ql<=qr)\n\t{\n\t\tif (q[ql]>t[tl]){\n\t\t\ttr--;\n\t\t\tql++;\n\t\t\ttotal-=200;\n\t\t\tcontinue;\n\t\t}\n\t\tif (q[ql]t[tr])\n\t\t{\n\t\t\tql++;\n\t\t\ttr--;\n\t\t\ttotal-=200;\n\t\t\tcontinue;\n\t\t}\n\t\tif (q[qr]minister[k]){\n\t\t\t\ti++;\n\t\t\t\tm--;\n\t\t\t\tmoney-=200;\n\t\t\t}else if(king[i]==minister[k]){\n\t\t\t\tif(king[n-1]>minister[m-1]){\n\t\t\t\t\ti++;\n\t\t\t\t\tm--;\n\t\t\t\t\tmoney-=200;\n\t\t\t\t}else if(king[n-1]0)\n\t{\n\t\tfor (i=0;i<=n-1;i++) scanf(\"%d\",&tianhorse[i]);\n\t\tfor (i=0;i<=n-1;i++) scanf(\"%d\",&qihorse[i]);\n\n\t\tfor (i=0;iqihorse[qifast])\n\t\t\t{\n\t\t\t\ttianfast++;\n\t\t\t\tqifast++;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif (tianhorse[tianfast]qihorse[qislow])\n\t\t\t\t\t{\n\t\t\t\t\t\ttianslow--;\n\t\t\t\t\t\tqislow--;\n\t\t\t\t\t\twin++;\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t\tif (tianhorse[tianslow]qihorse[qifast]) win++;\n\t\t\t\t\t\t\ttianslow--;\n\t\t\t\t\t\t\tqifast++;\n\t\t\t\t\t\t}\n\t\t}\n\t\tmoney=(win-lost)*200;\n\t\tif (button==0)\n\t\t{\n\t\t\tprintf(\"%d\",money);\n\t\t\tbutton=1;\n\t\t}\n\t\telse printf(\"\\n%d\",money);\n\t}\n\tif (n==0) break;\n\t}\n}"} +{"label": "92", "index": "45656", "code": "\nint result(int n,int tianji[1000],int qiwang[1000]){\n\tint i,k,e,m=0,sum=0,tailt,tailq,a,b;\n\n\ttailt=tailq=n-1;\n\n\tfor(k=1;kqiwang[i]){\n\t\t\tm++;\n\t\t\tsum+=200;\n\t\t}else if(tianji[m]=m;a--,b--){\n\t\t\t\tif(tianji[a]>qiwang[b]){\n\t\t\t\t\tsum+=200;\n\t\t\t\t\ttailt--;\n\t\t\t\t\ttailq--;\n\t\t\t\t}else if(tianji[a]tailt){\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn sum;\n}\n\n\nint main(){\n\tint n,tianji[1000],qiwang[1000],i,j,sum;\n\n\tfor(i=0;;i++){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0){\n\t\t\tbreak;\n\t\t}\n\t\tfor(j=0;j>n && n)\n{\ntotal=0;\n\tfor (i=0;i>t[i];\n\tfor (i=0;i>q[i];\n\tqsort(t,n,sizeof(int),compare);\n\tqsort(q,n,sizeof(int),compare);\t\n\tql=0;\n\tqr=n-1;\n\ttl=0;\n\ttr=n-1;\n\twhile(ql<=qr)\n\t{\n\t\tif (q[ql]>t[tl]){\n\t\t\ttr--;\n\t\t\tql++;\n\t\t\ttotal-=200;\n\t\t\tcontinue;\n\t\t}\n\t\tif (q[ql]t[tr])\n\t\t{\n\t\t\tql++;\n\t\t\ttr--;\n\t\t\ttotal-=200;\n\t\t\tcontinue;\n\t\t}\n\t\tif (q[qr]1){\n\t\tfor(k=1;kb[bfr]){\n\t\t\tmoney+=200;\n\t\t\tbfr++;\n\t\t\tafr++;\n\t\t}else if(a[afr]b[bta]){\n\t\t\t\t\tmoney+=200;\n\t\t\t\t\tata--;\n\t\t\t\t\tbta--;\n\t\t\t\t}else if(a[ata]<=b[bta]){\n\t\t\t\t\tif(a[ata]0)\n\t{\n\t\tfor (i=0;i<=n-1;i++) scanf(\"%d\",&tianhorse[i]);\n\t\tfor (i=0;i<=n-1;i++) scanf(\"%d\",&qihorse[i]);\n\n\t\tfor (i=0;iqihorse[qislow])\n\t\t\t{\n\t\t\t\ttianslow--;\n\t\t\t\tqislow--;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif (tianhorse[tianslow]qihorse[qifast])\n\t\t\t\t\t{\n\t\t\t\t\t\ttianfast++;\n\t\t\t\t\t\tqifast++;\n\t\t\t\t\t\twin++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tif (tianhorse[tianfast]qihorse[qifast])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twin++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tif (tianhorse[tianslow]= q_last){ //??????????\n if(horse_t[t_head] > horse_q[q_head]){\n ans += 200;\n t_head--;\n q_head--;\n }\n else if(horse_t[t_head] < horse_q[q_head]){\n ans -= 200;\n t_last++;\n q_head--;\n }\n else{\n if(horse_t[t_last] > horse_q[q_last]){\n ans += 200;\n t_last++;\n q_last++;\n }\n else{\n if(horse_t[t_last] < horse_q[q_head]){\n ans -= 200;\n }\n t_last++;\n q_head--;\n }\n }\n }\n printf(\"%d\\n\",ans);\n main();\n}"} +{"label": "92", "index": "45661", "code": "int main(void)\n{ \n\tint n=1,r=0,h=0,win=0,lose=0,tie=0,money=0,t1=0,t2=0,q1=0,q2=0;\n for(;;){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\tscanf(\"%d\",&n);\n\tif(n==0)\n\t{break;}\n\telse{\n\t\tint *a=NULL,*b=NULL;\n\t\ta=(int *)malloc(n*sizeof(int));\t\t\n\t\tb=(int *)malloc(n*sizeof(int));\t\t\n\n for(int i=0;ib[q1])\t\t\n\t\t{\n\t\t\twin++;\n\t\t\tt1++;\t\t\t\t\n\t\t\tq1++;\t\t\t\t\n\t\t\tcontinue;\n\t\t}\n\t\telse if(a[t2]>b[q2])\t\t\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt2--;\t\t\t\t\n\t\t\t\tq2--;\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\telse if(a[t2]==b[q1]) \n\t\t{\n\t\t\ttie++;\n\t\t\tt2--;\n\t\t\tq1++;\n\t\t}\n\t\telse if(a[t2]b[q1])\n\t{\n\t\twin++;\n\t}\n\telse\n\t{\n\t\tlose++;\n\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\tmoney=200*win-200*lose;\n\tif(money!=-200)\n\t{\n\t\tprintf(\"%d\\n\",money);\n\t}\n\telse\n\t{\n\t\tprintf(\"200\\n\");\n\t}\t\t\t\t}}\n\n}"} +{"label": "92", "index": "45662", "code": "void sort(int a[],int n)\n{\n\tint t,i;\n\tt=a[n-1];\n\tfor(i=n-1;i>0;i--)\n\t\ta[i]=a[i-1];\n a[0]=t;\n}\nvoid main()\n{\n int a[1010],b[1010],k1,k2,max,max1,max2,j,t,n=1,i;\n\tscanf(\"%d\",&n);\n for(;n!=0;)\n\t{max=-10000;\n\t\t\n\t\tfor(i=0;imax1) {max1=a[j];k1=j;}\n\t\t\t\t\tif(b[j]>max2) {max2=b[j];k2=j;}\n\t\t\t\t }\n\t\t\t\t\tt=a[i];a[i]=a[k1];a[k1]=t;\n\t\t\t\t\tt=b[i];b[i]=b[k2];b[k2]=t;\n\t\t}\n\t\tfor(i=0;ib[j]) t=t+200;\n\t\t if(a[j]max) max=t;sort(a,n);\n\n\t\t}\n\t\tprintf(\"%d\\n\",max);\n\t\tscanf(\"%d\",&n);\n\t\t}\n}\n"} +{"label": "92", "index": "45663", "code": "int a[2000],b[2000],t[2000],s[2000];\nint n;\nvoid init()\n{\n\tint i,k,j;\n\tmemset(t,0,sizeof(t));\n\tmemset(s,0,sizeof(s));\n\tfor (i=0;ib[j]&&b[j]>x&&s[j]==0)\n\t\t\t{\n\t\t\t\ty=j;\n\t\t\t\tx=b[j];\n\t\t\t}\n\t\tif (x!=-1)\n\t\t{\n\t\t\ts[y]=1;\n\t\t\tt[i]=1;\n\t\t\tans+=200;\n\t\t}\n\t}\n\tfor (i=0;iqw[jw])\n\t\t\t{\n\t\t\t\tre+=200;\n\t\t\t\tiw++;jw++;\n\t\t\t}\n\t\t\telse if(tj[iw]qw[jb])\n\t\t\t\t\tre+=200;\n\t\t\t\tiw++;jb--;\n\t\t\t}\n\t\t\telse if(tj[ib]>qw[jb])\n\t\t\t{\n\t\t\t\tre+=200;\n\t\t\t\tib--;jb--;\n\t\t\t}\n\t\t\telse if(tj[ib]b[j2])\n {i2++;j2++;sum+=100;continue;} \n if(a[i2]b[j1])\n {i1--;j1--;sum+=100;continue;} \n if(a[i1]>n;\n if(n==0)\n break;\n \n for(int i=0;i>a[i];\n for(int i=0;i>b[i];\n for(int i=0;i=0;j--)\n {\n \n if(temp=0;j--)\n {\n if(tempb[k])\n {\n m=m+1;\n }\n if(a[k]==b[k])\n {\n m=m+0;\n }\n if(a[k]=0;j--)\n {\n a[j+1]=a[j];\n }\n a[0]=a[n];\n }\n qsort(c,n,sizeof(int),Compare);\n d[r]=c[0]*200;\n r++;\n scanf(\"%d\",&n);\n }\n for(i=0;i<=r-1;i++)\n {\n printf(\"%d\\n\",d[i]);\n }\n}\n"} +{"label": "92", "index": "45667", "code": "void line(int n,int *p);\nint main()\n{\n int n,n1,i,j,k,t,l,sum,s,win,w,lose,money,flag,flag2;\n int a[1000],b[1000];\n for(l=0;;l++)\n {\n scanf(\"%d\",&n1);\n if(n1==0)break;\n lose=0;win=0;\n i=j=0;k=l=n1-1;\n memset(a,0,1000*sizeof(int));\n memset(b,0,1000*sizeof(int));\n line(n1,a);\n line(n1,b);\n while(j<=k&&i<=l)\n {\n if(b[j]a[i])\n {\n lose++;i++;k--;\n }\n else\n {\n if(b[k]a[i])\n {\n lose++;k--;i++;\n }\n else \n {\n k--;i++;\n }\n }\n } \n money=200*win-200*lose;\n printf(\"%d\\n\",money);\n }\n return 0;\n}\n\nvoid line(int n,int p[])\n{\n int i,j,k;\n for(i=0;ip[j+1])\n {\n k=p[j];\n p[j]=p[j+1];\n p[j+1]=k;\n }\n }\n }\n}"} +{"label": "92", "index": "45668", "code": "int main()\n{\n int t[1010],w[1010];\n int n,i,j,k,m,ans,w1,w2,head,tailt,tailw;\n \n \n while (1)\n {\n scanf(\"%d\",&n);\n ans=0;\n if (n==0)\n break;\n for (i=1;i<=n;i++)\n scanf(\"%d\",&t[i]);\n for (i=1;i<=n;i++)\n scanf(\"%d\",&w[i]);\n for (i=1;iw[i])\n{\nhead++;\nans+=200;\n}\nelse if (t[head]=head;)\n{\nif (t[j]>w[m])\n{\nans+=200;\ntailt--;\ntailw--;\nj--;\nm--;\n}\nelse\n{\nif (t[j]tailt)\nbreak;\n}\n\nprintf(\"%d\\n\",ans);\n}\ngetchar();\ngetchar();\ngetchar();\ngetchar();\ngetchar();\ngetchar();\n}\n"} +{"label": "92", "index": "45669", "code": "\nconst int MAX_N = 1000;\nint n, w[MAX_N], t[MAX_N];\n\nint cmpInt(const void * a, const void * b)\n{\n\treturn (*(int *)a - *(int *)b);\n}\n\nint main()\n{\n\twhile (scanf(\"%d\", &n), n)\n\t{\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", t + i);\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", w + i);\n\t\tqsort(t, n, sizeof(int), cmpInt);\n\t\tqsort(w, n, sizeof(int), cmpInt);\n\n\t\tint win = INT_MIN;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t{\n\t\t\tint twin = 0;\n\t\t\tfor (int j = 0; j < n; ++j)\n\t\t\t\tif (t[j] > w[(i + j) % n])\n\t\t\t\t\ttwin += 200;\n\t\t\t\telse if (t[j] < w[(i + j) % n])\n\t\t\t\t\ttwin -= 200;\n\t\t\tif (twin > win)\n\t\t\t\twin = twin;\n\t\t}\n\t\tprintf(\"%d\\n\", win);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45670", "code": "\n\nvoid main()\n{int n,*tian,*lord;\n\tint i,j,m=0,x[500]={0},t,sumnum=0,sum;\n\tint ta,tb,la,lb;\n\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\ttian=(int *)malloc(n*sizeof(int));\n\tlord=(int *)malloc(n*sizeof(int));\n\t//sum=(int *)malloc(n*sizeof(int));\n\tfor(i=0;i*(lord+(i+j)%n)) (*(sum+i))++;\n\t\t\telse if(*(tian+j)<*(lord+(i+j)%n)) (*(sum+i))--;\n\t\t\t}printf(\"*(sum+%d)=%d\\n\",i,*(sum+i));\t\n\t\t\tif(i!=0&&*(sum+i)<*(sum+i-1)) {m=i-1;break;}\n\t\t\telse if(i==n-1) m=n-1;\n\t}*/\n\t\t\t//ta,tb,la,lb:tian's tail,lord's head/tail\n\t\t\tta=0,la=0,tb=n-1,lb=n-1;sum=0;\n\t\t\twhile(ta!=tb)\n\t\t\t{\n\t\t\t\tif(*(tian+tb)<*(lord+lb)) {tb--;la++;sum--;}\n\t\t\t\telse if(*(tian+tb)>*(lord+lb)) {tb--;lb--;sum++;}\n\t\t\t\telse if(*(tian+ta)<*(lord+la)) {tb--;la++;sum--;}\n\t\t\t\telse if(*(tian+ta)>*(lord+la)) {ta++;la++;sum++;}\n\t\t\t\telse if(*(tian+tb)<*(lord+la)) {tb--;la++;sum--;}\n\t\t\t\telse if(*(tian+tb)>*(lord+la)) {tb--;la++;sum++;}\n\t\t\t\telse {tb--;la++;}\n\n\t\t\t}\n\t\t\t\n\t\t\tif(*(tian+ta)>*(lord+la)) sum++;\n\t\t\telse if(*(tian+ta)<*(lord+la))sum--;\n\t//maxsum\n\t//x[sumnum]=*sum;\n\tx[sumnum]=sum;\n\t//for(i=0;i*(sum+i))?x[sumnum]:*(sum+i);\n\tsumnum++;\n\tscanf(\"%d\",&n);\n\t}\n\tfor(i=0;i>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t \tint qi[1100],tian[1100];\n\t \tint qhead=1,qtail=n,thead=1,ttail=n,i,num=0;\n\t \tfor(i=1;i<=n;i++)\n\t\t\t{\n\t\t \tcin>>tian[i];\n\t\t\t}\n\t \tfor(i=1;i<=n;i++)\n\t\t\t{\n\t\t \tcin>>qi[i];\n\t\t\t}\n\t \tqsort(tian+1,n,sizeof(int),Compare);\n\t \tqsort(qi+1,n,sizeof(int),Compare);\n\t \twhile(thead<=ttail)\n\t\t\t{\n\t\t\t\tif(tian[thead]>qi[qhead])\n\t\t\t\t{\n\t\t\t\t\tnum+=200;\n\t\t\t\t\tthead++;\n\t\t\t\t\tqhead++;\n\t\t\t\t}\n\t\t\t\telse if(tian[thead]qi[qtail])\n\t\t\t\t\t{\n\t\t\t\t\t\tttail--;\n\t\t\t\t\t qtail--;\n\t\t\t\t\t\tnum+=200;\n\t\t\t\t\t}\n\t\t\t\t\telse if(tian[ttail]==qi[qtail])\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tian[thead]==qi[qtail])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthead++;\n\t\t\t\t\t qtail--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(tian[thead]q[i][k])\n { money = money +200; fq=fq+1; break; }\n else if (t[i][st]>q[i][sq])\n { money = money +200; st=st-1; sq=sq-1;j=j-1; break; }\n else if (t[i][st]==q[i][fq])\n { break; }\n else { money =money-200; fq=fq+1;st=st-1; j=j-1; break; }\n }\n }\n printf (\"%d\\n\",money);\n }\n}"} +{"label": "92", "index": "45673", "code": "main()\n{\n int a[1000],b[1000],m,n,i,j,k1,k2,sum;\n for(;;)\n {\n sum=0;\n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=0;ib[j])\n {\n i++;\n sum++;\n }\n else if(a[i]b[k2])\n {\n j--;\n k1--;\n k2--;\n sum++;\n }\n else\n {\n if (a[k1]==b[j])\n {\n k1--;\n }\n else\n {\n k1--;\n sum--;\n }\n }\n }\n }\n sum=sum*200;\n printf(\"%d\\n\",sum);\n }\n}"} +{"label": "92", "index": "45674", "code": "\n\nint Compare(const void *a, const void *b);\nint WinCount(int *Q, int *T, int n);\nint max(int a, int b);\n\n// infoSource = Keyboard(0) or File(1)\n\n\n// reference from http://zhidao.baidu.com/question/38869821.html\n/*\n??????????????????a?????????????b??\n???????????????????????????????????? \n???????????????? \n????????????????????? \n?????????????????????????????????????? \n??????l(i?j)??????i?????j?????????j????????????????\n*/\n\nint main()\n{\n\tint n;\n\tint TianJi[1000];\n\tint QiWang[1000];\n\tint i, j;\n\tint *pwin[1000];\n//\tint win[100][100];\n\n/*\nwin[i][j]??????i??????i?j???j+1?????????j+1????????????????\n*(pwin[i]+j) = win[i][j];\n?????l[i][0]??????i??????????????? \n*/\n\n\tFILE *fp;\n\tfp = fopen(\"horse.txt\", \"r\");\n\n\tfor(i=0; i<1000; i++){\n\t\tif((pwin[i]=(int *)malloc(sizeof(int)*1000))==NULL){\n\t\t\tprintf(\"Error: memory out!\");\n\t\treturn 1;\n\t\t}\n\t}\n\n\twhile(1){\n\t\tfscanf(fp, \"%d\", &n);\n\t\tscanf(\"%d\", &n);\n\t\tif(n==0)\n\t\t\tbreak;\n\n\n\t\tfor(i=0; iQiWang[i])\n\t\t\t\t*(pwin[i]+0) = 1;\n\t\t\telse if(TianJi[0]=0;i--){\n//\t\t\tfor(j=1;j=0; i--){\n\n\t\t\t\t//\tCalculate win[i][j]\n\t\t\t\tif (TianJi[j]>QiWang[i+j])\n\t\t\t\t\t*(pwin[i]+j) = *(pwin[i]+j-1) + 1;\n\t\t\t\telse if(TianJi[j]=0;i--)\n\t\t\tfor(j=1;jTianJi[j])\n\t\t\t\t\t*(pwin[i]+j)=*(pwin[i+1]+j-1)-1;\n\t\t\t\telse\n\t\t\t\t\t*(pwin[i]+j)=max(*(pwin[i+1]+j-1)-1,*(pwin[i]+j-1));\n*/\n\n\t\tprintf(\"%d\\n\", *(pwin[0]+n-1)*200);\n\n\n\t}\n\tfclose(fp);\n\n\n\treturn 0;\n}\n\nint Compare(const void *a, const void *b)\n{\n\treturn *(int*)b-*(int*)a;\n}\n\nint max(int a, int b)\n{\n\treturn (a>b)? a: b;\n}\n"} +{"label": "92", "index": "45675", "code": "\nint divide(int a[],int low,int high)\n{\n int tmp = a[low];\n do{\n while(low != high && a[high] >= tmp) --high;\n if(low != high && a[high] < tmp)\n {\n a[low] = a[high];\n ++low;\n }\n while(low != high && a[low] <= tmp) ++low;\n if(low != high && a[low] > tmp)\n {\n a[high] = a[low];\n --high;\n }\n }while(low!=high);\n a[low] = tmp;\n return low;\n}\n\nvoid quickSort(int a[],int low,int high)\n{\n if(low >= high) return;\n int mid = divide(a,low,high);\n quickSort(a,low,mid - 1);\n quickSort(a,mid + 1,high);\n}\n\nvoid QuickSort(int a[],int size)\n{\n quickSort(a,0,size - 1);\n}\n\n\n//?????????????????????????????????????????????????????????????????????????????????????????????\n/*\nint main()\n{\n int num = 1; //?????num???????do while??????\n //cout << \"hello?!!\"<> num;\n if(0 == num) break;\n int money = 0;\n int tian[num];\n int qi[num];\n //cout << \"even here?!!\" << endl;\n for(int i = 0;i < num;++i) cin >> tian[i];\n for(int j = 0;j < num;++j) cin >> qi[j];\n QuickSort(tian,num);\n QuickSort(qi,num);\n //for(int i = 0;i < num;++i) cout << tian[i] << \"n\";\n //for(int i = 0;i < num;++i) cout << endl << qi[i] << \"n\";\n\n //cout << \"here!\" << endl;\n int low_t = 0;\n int high_t = num - 1,high_q = num - 1;\n do{\n while(high_t >= low_t && qi[high_q] >= tian[high_t])\n {\n money = (qi[high_q]==tian[low_t])?money:money-200;\n --high_q;\n ++low_t;\n }\n while(high_t >= low_t && qi[high_q] < tian[high_t]) { --high_q; --high_t; money+=200; }\n }while(high_t>=low_t);\n\n low_t = 0;\n high_t = high_q = num-1;\n int money2 = 0;\n do{\n while(high_t >= low_t && qi[high_q] == tian[high_t]) { --high_q; --high_t; }\n while(high_t >= low_t && qi[high_q] > tian[high_t])\n {\n money2 = money2-200;\n --high_q;\n ++low_t;\n }\n while(high_t >= low_t && qi[high_q] < tian[high_t]) { --high_q; --high_t; money2+=200; }\n }while(high_t>=low_t);\n money = (money>money2)?money:money2;\n cout << money << endl;\n\n }\n\n //int a[3] = {92,83,71}; //????????\n //int b[3] = {95,87,74};\n //QuickSort(a,3);\n //QuickSort(b,3);\n //for(int i = 0;i < 3;++i)\n // cout << a[i] << \"\\t\" << b[i] << endl;\n\n\n return 0;\n}\n*/\n\n\n//?????????????????????????????????????????????(??????)???????????????\nint main()\n{\n while(1)\n {\n int num,money = 0;\n cin >> num;\n if(0 == num) break;\n int tian[num],qi[num];\n for(int i = 0;i < num;++i) cin >> tian[i];\n for(int i = 0;i < num;++i) cin >> qi[i];\n QuickSort(tian,num);\n QuickSort(qi,num);\n\n int t_slow = 0,t_fast = num - 1;\n int q_slow = 0,q_fast = num - 1;\n while(t_slow <= t_fast)\n {\n if(tian[t_fast] > qi[q_fast])\n {\n ++money;\n --t_fast;\n --q_fast;\n }\n else if(tian[t_slow] > qi[q_slow])\n {\n ++money;\n ++t_slow;\n ++q_slow;\n }\n else\n {\n if(tian[t_slow] < qi[q_fast]) --money; //?????????????????????????????????????--money;\n --q_fast;\n ++t_slow;\n }\n }\n cout << money*200 << endl;\n\n }\n\n}\n\n"} +{"label": "92", "index": "45676", "code": "int n;\nint cmp(const void *x,const void *y)\n{\n\treturn *(int *)y - *(int *)x;//\n}\nint pk(int a[],int b[])\n{\n\tint i=0,j=0,k=n-1,l=n-1;\n\tint sum=0;\n\tint w=0,lose=0;\n\twhile(i<=k)\n\t{\n\n\t\tif(a[k]>b[l])\n\t\t{\n\t\t\tsum+=200;\n\t\t\tw++;\n\t\t\tk--;\n\t\t\tl--;\n\t\t}\n\t\telse if(a[k]b[j])\n\t\t\t{\n\t\t\t\tsum+=200;\n\t\t\t\tw++;\n\t\t\t\ti++;\n\t\t\t\tj++;\n\t\t\t}\t\n\t\t\telse \n\t\t\t{\n\t\t\t\tif(a[k]>n&&n!=0)\n\t{\n\t\tmemset(a,0,sizeof a);\n\t\tmemset(b,0,sizeof b);\n\t\tint i;\n\t\tfor(i=0;i>a[i];\n\t\t}\n\t\tfor(i=0;i>b[i];\n\t\t}\n\t\tqsort(a,n,sizeof a[0],cmp);\n\t\tqsort(b,n,sizeof b[0],cmp);\n\t\tcout<0;n--)\n\t\t{\n\t\t\t//1 \n\t\t if(a[0]>b[0])\n\t\t {\n\t\t\t m++;\n\t\t\t for(i=0;ib[n-1])\n \t\t{\n \t\t\tm++;\n \t\t }\n \t\t//4\n \t\telse if(a[0]==b[0]&&a[n-1]<=b[n-1])\n \t\t{\n \t\t\tif(a[n-1]0)\n {\n int a[n],b[n];\n for (i=0;ib[j])\n {\n i++;\n j++;\n money+=200;\n t++;\n } \n \n else if (a[x]>b[y])\n {\n x--;\n y--;\n money+=200;\n t++;\n }\n \n else if (a[x]==b[j])\n {\n x--;\n j++;\n t++;\n }\n else\n {\n money=money-200;\n x--;\n j++;\n t++;\n }\n }\n \n printf(\"%d\\n\",money);\n money=0;\n }\n }\n\n return 0;\n} \n\n\n \n \n \n"} +{"label": "92", "index": "45679", "code": "int cmp(const void *a, const void *b)\n{\n\treturn *(int*)b - *(int*)a;\n}\nint main()\n{\n\tint n,flag,i,j,bonus,mmax,draw;\n\tint b[1001],a[1001];\n\n\n\twhile (cin>>n)\n\t{\n\t\tif (n==0) break;\n\n\t\tfor (i=0;i>b[i];\n\t\tfor(i=0;i>a[i];\n\n\t\tmmax=-n;\n\n\t\tqsort(a, n, sizeof(int), cmp);\n\t\tqsort(b, n, sizeof(int), cmp);\n\n\t\tfor (i=0;immax) mmax = bonus;\n\t\t}\n\n\t\tcout<0;scanf(\"%d\",&n))\n {\n for(i=0;iqw[start_qw])&&(start_tj<=end_tj))\n {\n money=money+200;\n start_tj++;\n start_qw++;\n }\n while((tj[end_tj]>qw[end_qw])&&(start_tj<=end_tj))\n {\n money=money+200;\n end_tj--;\n end_qw--; \n }\n if(start_tj<=end_tj)\n {\n if(tj[start_tj] yourspeed[yourfirst]){\n\t\t\t\tmatch[myfirst++] = yourfirst++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmatch[mylast--] = yourlast--;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif(myspeed[i] > yourspeed[match[i]]) cnt++;\n\t\t\telse if(myspeed[i] < yourspeed[match[i]]) cnt--;\n\t\t}\n\n\n\t\tint gain = 200 * cnt;\n\t\tprintf(\"%d\\n\", gain);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45682", "code": "int main()\n{\n int i,j,n,k,money,tf,ts,wf,ws;\n int tj[1000],qw[1000];\n money=0;\n while(scanf(\"%d\",&n)&&(n!=0))\n {\n for(i=0;iqw[ws]) \n {\n money+=200;\n ts--;\n ws--;\n }\n else if(tj[ts]qw[wf])\n {\n money+=200;\n tf++;\n wf++;\n }\n else \n {\n money-=200;\n ts--;\n wf++;\n }\n }\n printf(\"%d\\n\",money);\n money=0;\n }\n return 0;\n}"} +{"label": "92", "index": "45683", "code": " main()\n{\n int k;\n for(k=0;;k++)\n {\n int n;\n scanf(\"%d\",&n);\n if(n==0)\n return 0;\n int a[1000];//??????\n int b[1000];//??????\n int i,j;\n int d=0;\n int max=(-n)*200;\n for(i=0;ii;j--)\n {\n if (a[j]>a[j-1])\n {\n t=a[j];\n a[j]=a[j-1];\n a[j-1]=t;\n }\n if (b[j]>b[j-1])\n {\n t=b[j];\n b[j]=b[j-1];\n b[j-1]=t;\n }\n }\n }\n for(i=0;ib[j])\n d++;\n if(a[(j+i)%n]max)\n max=d;\n d=0;\n }\n printf(\"%d\\n\",max*200);\n }\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n\n\n\n\n\n}\n"} +{"label": "92", "index": "45684", "code": "int qi[1002];\nint tian[1002];\nint n;\nint myCompare(const void*a,const void *b)\n{\n int *p,*q;\n p = (int*)a;\n q = (int*)b;\n return *q - *p;\n}\nint main()\n{\n while(1)\n {\n cin >> n;\n if(n==0)\n break;\n for(int i=0;iqi[qif])\n {\n tianf++;\n qif++;\n wins++;\n }\n else\n {\n if(tian[tians]>qi[qis])\n {\n tians--;\n qis--;\n wins++;\n }\n else\n {\n if(tian[tians]==qi[qif])\n ping++;\n tians--;\n qif++;\n }\n }\n }\n cout << 200*wins - (n-wins-ping)*200 << endl;\n }\n return 0;\n}\n"} +{"label": "92", "index": "45685", "code": "int win,loose;\nmain()\n{\n\tvoid input(int * p1,int x);\n\tvoid f(int*p1,int*p2,int x);\n\tint n,t[num],w[num];\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\t\tinput(t,n);\n\t\tinput(w,n);\n\t\twin=loose=0;\n\t\tf(t,w,n);\n\t\tprintf(\"%d\\n\",win*reward-loose*reward);\n\t\tscanf(\"%d\",&n);\n\t}\n}\nvoid f(int*p1,int*p2,int x)\n{\n\tint a1,a2,b1,b2;\n\ta1=*p1;b1=*p2;\n\tif (x==1) \n\t{\n\t\tif (a1>b1)\n\t\t\twin++;\n\t\telse\n\t\t{\n\t\t\tif (a1b2)\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tf(p1,p2,x-1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (a1>b1)\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tf(p1+1,p2+1,x-1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (a1a2)\n\t\t\t\t\t\t\tloose++;\n\t\t\t\t\t\tf(p1,p2+1,x-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}\n\nvoid input(int * p1,int x)\n{\n\tint i,j,c;\n\tfor (i=0;i*(b+j+i))\n\t\t\ts++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(*(a+j)==*(b+j+i))\n\t\t\t\tt++;\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j*(b+j))\n\t\t\ts++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(*(a+n-i+j)==*(b+j))\n\t\t\t\tt++;\n\t\t\t}\n\t\t}\n\t\t*(r+i)=200*s-200*(n-t-s);\n\t}\n\tr=d;\n\tm=*r;\n\tfor(r=d+1;rm)\n\t\tm=*r;\n\t}\n\tprintf(\"%d\",m);\n\tprintf(\"\\n\");\n}\nvoid paixu(int *a,int *b,int c)\n{\n\tint g;\n\tint *d,*f;\n\tfor(d=a;d*d)\n\t\t\t{\n\t\t\t\tg=*d;\n\t\t\t\t*d=*f;\n\t\t\t\t*f=g;\n\t\t\t}\n\t\t}\n\t}\n\tfor(d=b;d*d)\n\t\t\t{\n\t\t\t\tg=*d;\n\t\t\t\t*d=*f;\n\t\t\t\t*f=g;\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "92", "index": "45687", "code": "const int MAXN=1010;\nint n,ans,sum;\nint a[MAXN],b[MAXN];\n\nint battle(int x,int y)\n{\n if (x==y) return 0;\n else\n if (x>y) return 1;\n else return -1;\n}\n\nint main()\n{\n while (1)\n {\n cin>>n;\n if (n==0) break;\n for (int i=0;i>a[i];\n for (int i=0;i>b[i];\n sort(a,a+n);\n sort(b,b+n);\n for (int i=0;ians) ans=sum;\n }\n cout<=end2&&i>=end1;j--)\n {\n if(a[i]>b[j])\n {\n sum++;\n i--;\n }\n else if(a[i]b[end2])//a??????b????\n {\n sum++;end1++;end2++; j++;\n }\n else if(a[end1]*(qw+qmax))\n {sum+=200;tmax++;qmax++;}\n else if(*(tj+tmax)<*(qw+qmax)) \n {sum-=200;tmin--;qmax++;}\n else\n {\n if(*(tj+tmin)>*(qw+qmin)) \n {sum+=200;tmin--;qmin--;}\n else if(*(tj+tmin)<*(qw+qmin))\n {sum-=200;tmin--;qmax++;}\n else \n {\n if(*(tj+tmax)==*(qw+qmin))\n break;\n else\n {sum-=200;tmin--;qmax++;} \n } \n } \n \n }\n printf(\"%d\\n\",sum); \n free(tj);\n free(qw); \n }\n \nreturn 0; \n} \n"} +{"label": "92", "index": "45690", "code": "int compare (const void *a,const void *b)\n{ return *(int*)b-*(int*)a;;\n }\nint main ()\n{ int n,k1,k2,m1,m2,win,i,w;\n int c[10000];\n for (;;)\n { scanf (\"%d\",&n);\n if (n==0)\n break;\n int *a;\n a=(int *)malloc (sizeof(int*)*n);\n for (i=0;ib[m2])\n {win++;\n m1--;\n m2--;}\n else if (a[k1]>b[k2])\n {win++;\n k1++;\n k2++;}\n else if (a[m1]y)\n\t\tz=1;\n\tif(xsum[i]?max:sum[i];\n\t\t\ttemp=w[0];\n\t\t\tfor(i1=0;i1a[x])\n {\n m=m-200;\n y=y+1; \n p=p-1; \n }\n else if(b[y]a[p])\n {\n y=y+1;\n p=p-1;\n m=m-200;\n } \n else if(b[y]==a[p])\n {\n y=y+1;\n p=p-1;\n } \n else if(b[y]>a[p])\n {\n m=m-200;\n y=y+1;\n p=p-1;\n }\n }\n printf(\"%d\\n\",m);\n }\n} "} +{"label": "92", "index": "45693", "code": "main()\n{\n\tint n,i,j,m=0,k=0,high1=0,high2=0,low1,low2,win=0,lose=0,s[1000],t[1000],p[100],temp;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\t\tlow1=low2=n-1;high1=high2=0;win=0;lose=0;/*???????*/\n\t\tfor(i=0;is[j])\n\t\t\t\t{\n\t\t\t\t\ttemp=s[j+1];\n\t\t\t\t\ts[j+1]=s[j];\n\t\t\t\t\ts[j]=temp;\t\n\t\t\t\t}\n\t\t\n\t\tfor(i=0;it[j])\n\t\t\t\t{\n\t\t\t\t\ttemp=t[j+1];\n\t\t\t\t\tt[j+1]=t[j];\n\t\t\t\t\tt[j]=temp;\n\t\t\t\t}\n\t\t\n\t\tfor(i=0;i=s[high2])/*???????????????????????????????????????????\n\t\t\t\t\t\t\t\t\t\t\t?????????????????????????????*/\n\t\t\t{\n\t\t\t\tif(t[low1]>=s[low2])\n\t\t\t\t{\n\t\t\t\t\tif(t[high1]>s[low2])\n\t\t\t\t\t\tlose++;\n\t\t\t\t\telse if(t[high1]==s[low2])\n\t\t\t\t\t\t;\n\t\t\t\t\telse if(t[high1]=1)\n {\n if(a[s-1]>b[s-1])\n p++;\n else if(a[s-1]b[0])\n {\n p++;\n for(i=0;i*(int*)elem2)\n\t\treturn -1;\n\tif(*(int*)elem1==*(int*)elem2)\n\t\treturn 0;\n}\nmain()\n{\n int i,j,n;\n for(i=0;;i++)\n {\n scanf(\"%d\",&n);\n if(n==0)\n break;\n int *tj = (int *)malloc(n*sizeof(int));\n int *qww= (int *)malloc(n*sizeof(int));\n for(j=0;j qww[n-1]){\n s++;\n n--;\n k--;\n }\n else if(tj[k] == qww[n-1]){\n if(tj[k] != qww[i]){\n s--;\n i++;\n k--;\n }\n else break;\n }\n }\n else{\n s++;\n i++;\n j++;\n }\n }\n printf(\"%d\\n\", s*200);\n free(tj);\n free(qww);\n }\n}\n"} +{"label": "92", "index": "45696", "code": "\nint mycompare(const void* elem1, const void* elem2)\n{\n\treturn *(int*)elem2 - *(int*)elem1;\n}\n\nint main()\n{\n\tint a[1001];\n\tint b[1001];\n\tint n, i, total;\n\twhile(cin >> n)\n\t{\n\t\ttotal = 0;\n\t\tif(n == 0) break;\n\t\tfor(i = 0; i < n; i ++) scanf(\"%d\", &b[i]);\n\t\tfor(i = 0; i < n; i ++) scanf(\"%d\", &a[i]);\n\t\tqsort(a, n, sizeof(int), mycompare);\n\t\tqsort(b, n, sizeof(int), mycompare);\n\t\tint p1 = 0, p2 = n - 1, p3 = 0, p4 = n - 1;\n\t\twhile(p1 <= p2)\n\t\t{\n\t\t\tif(a[p1] < b[p3])\n\t\t\t{\n\t\t\t\tp1 ++;\n\t\t\t\tp3 ++;\n\t\t\t\ttotal += 200;\n\t\t\t}\n\t\t\telse if(a[p2] < b[p4])\n\t\t\t{\n\t\t\t\tp2 --;\n\t\t\t\tp4 --;\n\t\t\t\ttotal += 200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[p1] > b[p4]) total -= 200;\n\t\t\t\tp1 ++;\n\t\t\t\tp4 --;\n\t\t\t}\n\t\t}\n\t\tcout << total << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45697", "code": "\nvoid Sort(int *sz, int n)\n{\n int e, k, i;\n for(k=1;k*(king+k))\n {\n sum+=200;\n t++;\n k++;\n }else if(*(tian+t)<*(king+k)){\n sum-=200;\n k++;\n }else{\n for(j=k-t+1;jb[be])\n {\n money1++;\n ae--;\n be--;\n }\n else if(a[ae]b[bs])\n {\n money1++;\n as++;\n bs++;\n }\n else if(a[as]b[bs])\n {\n money1++;\n ae--;\n bs++;\n }\n else \n {\n ae--;\n as++;\n }\n }\n printf(\"%d\\n\",200*(money1-money2));\n }\n } \n}\n \n \n \n"} +{"label": "92", "index": "45699", "code": "\nint main()\n\n{\n int n[10000],sudu[10000][2];\n int i,j,l,x;\n i=0;\n int m,z,zhongjian[2];\n int yinzi[1000];\n int wei,weik,tou,touk;\n \n do\n {\n \n scanf(\"%d\",&n[i]);\n if(n[i]==0)\n break;\n \n else\n {\n for(j=0;jsudu[j+1][0])\n {\n zhongjian[0]=sudu[j+1][0]; \n sudu[j+1][0]=sudu[j][0]; \n sudu[j][0]=zhongjian[0];\n \n }\n else;\n }\n }\n \n for(l=0;lsudu[j+1][1])\n {\n zhongjian[0]=sudu[j+1][1]; \n sudu[j+1][1]=sudu[j][1]; \n sudu[j][1]=zhongjian[0];\n \n }\n else;\n }\n }\n \n yinzi[i]=0;\n m=n[i]-1;\n wei=0;\n weik=0;\n tou=m;\n touk=m;\n x=0;\n \n \n do{\n if(sudu[tou][0]>sudu[touk][1])\n {\n yinzi[i]=yinzi[i]+200;\n x++;\n tou--;\n touk--;\n }\n else if(sudu[tou][0]sudu[weik][1])\n {\n wei++;\n weik++;\n yinzi[i]=yinzi[i]+200; \n x++; \n } \n \n \n if(sudu[wei][0]==sudu[touk][1])\n {\n wei++; \n touk--; \n x++; \n }\n else\n {\n wei++; \n touk--;\n yinzi[i]=yinzi[i]-200; \n x++;\n }\n }\n \n }\n while(xi;j--)\n {\n if (a[j]>a[j-1])\n {\n t=a[j];\n a[j]=a[j-1];\n a[j-1]=t;\n }\n if (b[j]>b[j-1])\n {\n t=b[j];\n b[j]=b[j-1];\n b[j-1]=t;\n }\n }\n }\n for(i=0;ib[j])\n d++;\n if(a[(j+i)%n]max)\n max=d;\n d=0;\n }\n printf(\"%d\\n\",max*200);\n }\n}\n\n"} +{"label": "92", "index": "45701", "code": "int cmp(const void*a,const void *b)\n{\n int* p1=(int *)a;\n int* p2=(int *)b;\n return (*p2)-(*p1);\n}\nint main()\n{\n int n;\n int a[1001],b[1001];\n while(1)\n {\n scanf(\"%d\",&n);\n if(n==0)break;\n for(int i=0;ib[j])\n {\n i++;\n j++;\n sum+=200;\n }\n else if(a[i]b[q])\n {\n p--;\n q--;\n sum+=200;\n }\n else \n {\n if(a[p]> n ){\n\t\tif ( n == 0 ) break ;\n\t\tfor ( int i = 0 ; i < n ; i ++ )\n\t\t\tcin >> a[i] ;\n\t\tfor ( int i = 0 ; i < n ; i ++ )\n\t\t\tcin >> b[i] ;\n\t\tqsort( a , n , sizeof (a[0]) , cmp ) ;\n\t\tqsort( b , n , sizeof (b[0]) , cmp ) ;\n\n\t\tint aStart = 0 , aEnd = n - 1 , bStart = 0 , bEnd = n - 1 ;\n\t\tint count = 0 ;\n\t\twhile ( aStart <= aEnd ){\n\t\t\tif ( a[aStart] > b[bStart] ){\n\t\t\t\tcount ++ ;\n\t\t\t\taStart ++ ; \n\t\t\t\tbStart ++ ;\n\t\t\t}\n\t\t\telse if ( a[aEnd] > b[bEnd] ){\n\t\t\t\tcount ++ ;\n\t\t\t\taEnd -- ;\n\t\t\t\tbEnd -- ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ( a[aEnd] < b[bStart] )\n\t\t\t\t\tcount -- ;\n\t\t\t\taEnd -- ;\n\t\t\t\tbStart ++ ;\n\t\t\t}\n\t\t}\n\t\tcout << count * 200 << endl ;\n\t}\n\treturn 0 ;\n}"} +{"label": "92", "index": "45703", "code": "int main()\n{\n int k,n,i,m,j,s[1000],q;\n for(k=0;;k++)\n {\n scanf(\"%d\",&n);\n if(n==0)\n break;\n q=n;\n m=0;\n int a[n],b[n],c[n],d[n];\n for(i=0;it)\n {t=a[j];\n r=j;}\n a[r]=a[n-i-1];\n a[n-i-1]=t;\n }\n for(i=0;ib[j])\n {m++;\n c[i]=1;\n d[j]=1;}}}\n for(i=0;i>n && n!=0)\n\t{\n\t\tfor(i=1;i<=n;i++) cin>>a[i];\n\t\tfor(i=1;i<=n;i++) cin>>b[i];\n\t\tans=-1000000000;\n\t\tsort(a+1,a+n+1);\n\t\tsort(b+1,b+n+1);\n\n\t\tfor (m=0;mb[i-m]) k+=200;\n\t\t\t\telse if (a[i]ans) ans=k;\n\t\t}\n\t\tcout<qw[n]) money=money+200;\n\t\telse if(tj[n]tj[n]) {money=money-200; for(i=1;iqw[1]) {money=money+200;for(i=1;iq[qm]){r++;tm--;qm--;}\n else if(t[tk]>q[qk]){r++;tk++;qk++;}\n else if(t[tm]qiwa[k])\n\t\t{\n\t\t\tsum=sum+200;\n\t\t\tk++;\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(tian[i]qiwa[tou])\n\t\t\t{\n\t\t\t\tsum=sum+200;\n\t\t\t\twei--;\n\t\t\t\ttou--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\n\t\t\tif(tian[i]==qiwa[tou])\n\t\t\t{\n\t\t\t\ttou--;\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum=sum-200;\n\t\t\t\ttou--;\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\\n\",sum);\n\t\n\t\n} }"} +{"label": "92", "index": "45708", "code": "const long maxn=1000;\n\nlong n;\nlong a[maxn+10],b[maxn+10];\n\nlong mark[maxn+10];\n\nvoid Sort(long a[]){\n long i,j,k;\n for(i=1;i0;scanf(\"%ld\",&n)){\n for(i=1;i<=n;i++){\n\t scanf(\"%ld\",a+i);\n }\n for(i=1;i<=n;i++){\n\t scanf(\"%ld\",b+i);\n }\n Sort(a);Sort(b);\n s1=1;\n t1=n;\n s2=1;\n t2=n;\n ans=0;\n while(t1>=s1){\n while((a[s1]>b[s2]) && (s1<=t1)){\n ans+=200;\n s1++;s2++;\n }\n while((a[t1]>b[t2]) && (s1<=t1)){\n ans+=200;\n t1--;t2--;\n }\n if(t1>=s1){\n if(a[s1]b[b2]){r++;a2--;b2--;}\n else if(a[a2]b[b1]) //?????????? \n{r++;a1++;b1++;}\nelse {r--;a2--;b1++;} //????????? \n}\n s=r*200;\n printf(\"%d\\n\",s);\n r=0;s=0;\n}}\n} //?????C++?????????????\u0085\u0085??????????????C??????\n"} +{"label": "92", "index": "45710", "code": "\n\n\nvoid sort(int a[1005],int n)\n{\n int i,j,k,temp;\n for(i=0;ia[k])k=j;\n\t\t if(k!=i)\n\t\t {\n\t\t temp=a[i];a[i]=a[k];a[k]=temp;\n\t\t }\n \n }\n\n}\n\nvoid main()\n{\n int n,i,j,head,ans,tailt,tailk;\n int m;\n int t[1005],k[1005];\n while(1)\n {\n scanf(\"%d\",&n);\n if(n==0)break;\n for(i=0;ik[i])\n {\n head++;\n ans+=200;\n }\n else if(t[head]=head;j--,m--)\n {\n if(t[j]>k[m])\n {\n ans+=200;\n tailt--;\n tailk--;\n }\n else\n {\n if(t[j]tailt) break;\n }\n\n printf(\"%d\\n\",ans);\n\n\n }\n}"} +{"label": "92", "index": "45711", "code": "\nint a[1000];\nint b[1000];\nint n;\n\nint cmp(const void* a,const void *b)\n{\n\treturn (*(int*)a)-(*(int*)b);\n}\n\nint main()\n{\n\tint i,j;\n\tint end1,end2;\n\tint sum=0;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n for(i=0;i=end2&&i>=end1;j--)\n {\n if(a[i]>b[j]) //???????????????????\n {\n sum++;\n i--;\n }\n else if(a[i]b[end2])//?????????????????????\n {\n sum++;end1++;end2++; j++; \n }\n else if(a[end1]=0;i--)\n {\n for(j=1;i+jT[0+j])\n Inco[i][j]=Inco[i+1][j-1]-1;\n else \n { if(Inco[i+1][j-1]-1>Inco[i][j-1]+0)\n Inco[i][j]=Inco[i+1][j-1]-1; \n else \n Inco[i][j]=Inco[i][j-1]+0;\n }\n }\n }\n return Inco[0][n-1];\n}\n \nint main()\n{\n int i;\n scanf(\"%d\",&n);\n while(n!=0)\n {\n for(i=0;i y)\n\t\treturn x;\n\telse return y;\n}\n\nint cmp(const void * x, const void * y)\n{\n\tint * a = (int *)x;\n\tint * b = (int *)y;\n\tif (*a > *b)\n\t\treturn 1;\n\telse return -1;\n}\n\nint main()\n{\n\tint n;\n\tint a[1010];\n\tint b[1010];\n\tint i, j, k;\n\tint max;\n\tint val;\n\n\tfor (i = 0; i < 1010; i++)\n\t\tfor (j = 0; j < 1010; j++)\n\t\t\tc[i][j] = -100000;\n\twhile (1)\n\t{\n\t\tscanf(\"%d\", &n);\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i++)\n\t\t\tscanf(\"%d\", &a[i]);\n\t\tfor (i = 0; i < n; i++)\n\t\t\tscanf(\"%d\", &b[i]);\n\t\tqsort(a, n, sizeof(int), cmp);\n\t\tqsort(b, n, sizeof(int), cmp);\n\t\tj = 0;\n\t\tfor (i = 0; i < n; i++)\n\t\t\tfor (j = 0; j <= i; j++)\n\t\t\t{\n\t\t\t\tc[i][j] = -10000;\n\t\t\t\tif (j == 0)\n\t\t\t\t{\n\t\t\t\t\tif (a[i] > b[j])\n\t\t\t\t\t\tc[i][j] = 1;\n\t\t\t\t\telse if (a[i] == b[j])\n\t\t\t\t\t\tc[i][j] = 0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (a[i] < b[j])\n\t\t\t\t\t\tc[i][j] = c[i-1][j];\n\t\t\t\t\tif (a[i] == b[j])\n\t\t\t\t\t\tc[i][j] = maximum(c[i-1][j-1], c[i-1][j]);\n\t\t\t\t\tif (a[i] > b[j])\n\t\t\t\t\t\tc[i][j] = c[i-1][j-1] + 1;\n\t\t\t\t}\n\t\t\t}\n\t\tmax = -100000;\n\t\tfor (i = 0; i< n; i++)\n\t\t\tfor (j = 0; j < n; j++)\n\t\t\t\tif (max < c[i][j] - (n - j - 1))\n\t\t\t\t\tmax = c[i][j] - (n - j - 1);\n\t\tif (max <= -5000)\n\t\t\tmax = -n;\n\t\tprintf(\"%d\\n\", max * 200);\n\t}\n}"} +{"label": "92", "index": "45714", "code": "int T[1001],K[1001]; \n \nint cmp(const void* a,const void *b) \n{ \n return *(int *)b-*(int *)a; \n} \n \n \nint main() \n{ \n int n,i,sum; \n int flag; \n int t_tail,t_head,k_tail,k_head; \n while (scanf(\"%d\",&n)!=EOF && n) \n { \n for(i=0;iK[k_head]) \n { \n sum+=200; \n t_head++; \n k_head++; \n } \n//?????else? \n else if(T[t_head]K[k_tail]) \n { \n sum+=200; \n t_tail--; \n k_tail--; \n } \n else \n { \n if(T[t_tail] K[k_head]) \n { \n flag=1; \n break; \n } \n } \n if(flag==1) \n sum+=(t_tail-t_head+1)*200; \n printf(\"%d\\n\",sum); \n } \n return 0; \n} \n"} +{"label": "92", "index": "45715", "code": "\n// ???????\nint n;\nint self[1000], enemy[1000];\n\n// ??\nint result;\n\n// ????\nint compare(const void* a, const void* b)\n{\n\treturn *((int*)b) - *((int*)a);\n}\n\n// ????????\nvoid play(int s, int e)\n{\n\tif (s > e)\n\t\tresult += 200;\n\telse if (s < e)\n\t\tresult -= 200;\n}\n\n// ??????\nint calcMax(void)\n{\n\tint i, smax, smin, emax, emin;\n\tresult = 0;\n\tsmax = emax = 0;\n\tsmin = emin = n - 1;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (self[smin] > enemy[emin])\n\t\t{\n\t\t\tplay(self[smin], enemy[emin]);\n\t\t\tsmin--;\n\t\t\temin--;\n\t\t}\n\t\telse if (self[smin] < enemy[emin])\n\t\t{\n\t\t\tplay(self[smin], enemy[emax]);\n\t\t\tsmin--;\n\t\t\temax++;\n\t\t}\n\t\telse if (self[smax] > enemy[emax])\n\t\t{\n\t\t\tplay(self[smax], enemy[emax]);\n\t\t\tsmax++;\n\t\t\temax++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplay(self[smin], enemy[emax]);\n\t\t\tsmin--;\n\t\t\temax++;\n\t\t}\n\t}\n\treturn result;\n}\n\nint main(void)\n{\n\tint i;\n\twhile (scanf(\"%d\", &n) != -1 && n != 0)\n\t{\n\t\tfor (i = 0; i < n; i++)\n\t\t\tscanf(\"%d\", &self[i]);\n\t\tqsort(self, n, sizeof(int), compare);\n\t\tfor (i = 0; i < n; i++)\n\t\t\tscanf(\"%d\", &enemy[i]);\n\t\tqsort(enemy, n, sizeof(int), compare);\n\t\tprintf(\"%d\\n\", calcMax());\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45716", "code": "const int maxn=1010,minl=-999999999;\ninline int Max(int a,int b){return a>b?a:b;}\nint f[maxn][maxn];\nint a[maxn],b[maxn];\nint n;\nint cmp(const void *a,const void *b)\n{\n\treturn *((int*)b)-*((int*)a);\n}\nvoid dp()\n{\n\tint i,j,k;\n\tfor (i=0;i<=n;i++) for (j=0;j<=n;j++) f[i][j]=minl;\n\tf[0][0]=0;\n\tfor (i=0;i=-n)\n\t\t{\n\t\t\tif (b[i+1]a[j+1]) f[i+1][j]=Max(f[i+1][j],f[i][j]-1);\n\t\t\tif (b[i+1]==a[j+1])\n\t\t\t{\n\t\t\t\tf[i+1][j+1]=Max(f[i+1][j+1],f[i][j]);\n\t\t\t\tif (b[i+1]>a[n-(i-j)]) f[i+1][j]=Max(f[i+1][j],f[i][j]-1);\n\t\t\t\telse if (b[i+1]==a[n-(i-j)]) f[i+1][j]=Max(f[i+1][j],f[i][j]);\n\t\t\t}\n\t\t}\n\tk=-n;\n\tfor (i=0;i<=n;i++) k=Max(k,f[n][i]);\n\tprintf(\"%d\\n\",k*200);\n}\nint main()\n{\n\t//freopen(\"in.in\",\"r\",stdin);\n\twhile (scanf(\"%d\",&n),n)\n\t{\n\t\tint i;\n\t\tfor (i=1;i<=n;i++) scanf(\"%d\",a+i);\n\t\tfor (i=1;i<=n;i++) scanf(\"%d\",b+i);\n\t\tqsort(a+1,n,sizeof(int),cmp);\n\t\tqsort(b+1,n,sizeof(int),cmp);\n\t\tdp();\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45717", "code": "int money(int n){\n\tint i,j,m,ans=0,mid,head=0,tailt=n-1,tailk=n-1;\n\tint *k=(int*)malloc(sizeof(int)*n);\n\tint *t=(int*)malloc(sizeof(int)*n);\n\tfor(i=0;ik[i])\n {\n head++;\n ans+=200;\n }\n else if(t[head]=head;j--,m--)\n {\n if(t[j]>k[m])\n {\n ans+=200;\n tailt--;\n tailk--;\n }\n else\n {\n if(t[j]tailt) break;\n }\n\tfree(k);\n\tfree(t);\n\treturn ans;\n}\nvoid main(){\n\tint n;\n\twhile(scanf(\"%d\",&n)==1&&n!=0)\n\t\tprintf(\"%d\\n\",money(n));\n}"} +{"label": "92", "index": "45718", "code": "\nint n;\nint a[1001], b[1001];\t//a,b??????????????\nint win, lose;\t\t//?????????\n\nint cmp(const void *e1, const void *e2){\n\treturn *(int *)e1 - *(int *)e2;\n}\n\nvoid cal(int m)\n{\n\tif (m==0)\n\t\treturn;\n\n\tif (a[1]>b[m]){\n\t\twin += m;\n\t\treturn;\n\t}\n\n\tif (b[1]>a[m]){\n\t\tlose += m;\n\t}\n\n\tif (a[1]==b[m]){\n\t\tfor (int i=1; ib[j] && j>n;\n\t\tif (n==0)\n\t\t\tbreak;\n\t\tfor (int i=1; i<=n; i++)\n\t\t\tcin>>a[i];\n\t\tfor (int i=1; i<=n; i++)\n\t\t\tcin>>b[i];\n\t\ta[0] = b[0] = 0;\n\t\tqsort(a, n+1, sizeof(int), cmp);\n\t\tqsort(b, n+1, sizeof(int), cmp);\n\t\twin=0;\n\t\tlose=0;\n\t\tcal(n);\n\t\tcout<<200*(win-lose)<a[k]) \n\t\t\t{\n\t\t\t\tresult+=200;\n\t\t\t\t++i;\n\t\t\t\t++k;\n\t\t\t}\n\t\t\telse if(b[j]>a[s])\n\t\t\t{\n\t\t\t\tresult+=200;\n\t\t\t\t--j;\n\t\t\t\t--s;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tif(b[j]>a[k])\n\t\t\t\t\tresult+=200;\n\t\t\t\telse if(b[j]>num;\n\t\tif(num==0)\n\t\t\tbreak;\n\t\tfor(int i=1;i<=num;i++)\n\t\t{\n\t\t\tcin>>num1[i];\n\t\t}\n\t\tfor(int i=1;i<=num;i++)\n\t\t{\n\t\t\tcin>>num2[i];\n\t\t}\n\t\tqsort(&(num1[1]),num,sizeof(int),compare);\n\t\tqsort(&(num2[1]),num,sizeof(int),compare);\n\t\tint p1,p2,p3,p4;\n\t\tp1=1;\n\t\tp2=num;\n\t\tp3=1;\n\t\tp4=num;\n\t\tint money=0;\n\t\twhile(true)\n\t\t{\n\t\t\tif(p1==p2)\n\t\t\t{\n\t\t\t\tif(num1[p1]>num2[p3])\n\t\t\t\t\tmoney++;\n\t\t\t\tif(num1[p1]num2[p3])\n\t\t\t\t{\n\t\t\t\t\tmoney++;\n\t\t\t\t\tp1++;\n\t\t\t\t\tp3++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(num1[p2]>num2[p4])\n\t\t\t\t{\n\t\t\t\t\tmoney++;\n\t\t\t\t\tp2--;\n\t\t\t\t\tp4--;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(num1[p1]num2[p4])\n\t\t\t\t\tmoney++;\n\t\t\t\tp1++;\n\t\t\t\tp4--;\n\t\t\t}\n\t\t}\n\t\tcout<x[1][i]||x[0][0]==x[1][i]) {k=i;flag=0;}}\n\tif(flag==1) max=y*(-200);\n\telse \n\t{\n\t\twhile (k<=y-1)\n\t\t{\n\t\t\t\twin=0;\n\t\t\t\tdraw=0;\n\t\t\t\tfor(i=0,j=k;ix[1][j]) win++;\n\t\t\t\t\telse if (x[0][i]==x[1][j]) draw++;\n\t\t\t\t}\n\t\t\t\tb[num++]=win*200-(y-draw-win)*200;//??????????????\n\t\t\t\tk++;\n\t\t}\n\tmax=b[0];\n\tfor(i=0;i>n)\n\t{\n\t\tif(n==0)break;\n\tint tianji[1001],qiwang[1001];\n\tint i,j;\n\tfor(i=0;i>tianji[i];\n\tfor(i=0;i>qiwang[i];\n\tqsort(tianji,n,sizeof(int),cmp);\n\tqsort(qiwang,n,sizeof(int),cmp);\n\ti=0;\n\tj=i;\n\tint k=n-1,h=n-1;\n\tint money=0;\n\n\tfor(int m=0;mqiwang[j])\n\t\t{\n\t\t\ti++,j++;\n\t\t\tmoney+=200;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(tianji[k]>qiwang[h])\n\t\t\t{\n\t\t\t\tk--,h--;\n\t\t\t\tmoney+=200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(tianji[k]>qiwang[j])\n\t\t\t\t\tmoney+=200;\n\t\t\t\telse if(tianji[k]qihorse[p1])\n {\n tianwins[z]++;\n p2++;\n p1++;\n }\n else\n {\n if(tianhorse[p4]>qihorse[p3])\n {\n tianwins[z]++;\n p4--;\n p3--;\n\n }\n else if(tianhorse[p4]==qihorse[p3]&&tianhorse[p4]b[k])\n w++;\n }\n if(w>max) max=w;\n }\n printf(\"%d\\n\",200*max);\n scanf(\"%d\",&n);\n }\n}\n \n \n"} +{"label": "92", "index": "45725", "code": "\nint qw[M], tj[M];\nint tmp[M];\n\nvoid sort(int a[], int n)\n{\n int k,i,b,e;\n if (n <= 1)\n\treturn;\n k = n/2;\n sort(a, k);\n sort(a+k, n-k);\n for (i=0; i tj[b2]) {\n\t\te1--, b2++, res--;\n\t }\n\t else {\n\t\tif (qw[e1] < tj[e2]) {\n\t\t e1--, e2--, res++;\n\t\t}\n\t\telse if (qw[e1] > tj[e2]) {\n\t\t e1--, b2++, res--;\n\t\t}\n\t\telse {\n\t\t if (qw[e1] > tj[b2])\n\t\t\tres--;\n\t\t else if (qw[e1] < tj[b2])\n\t\t\tres++;\n\t\t e1--, b2++;\n\t\t}\n\t }\n\t}\n\tprintf(\"%d\\n\", res*200);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45726", "code": "\n\nint wis[MAX];\nint king[MAX];\n\nint comp(const void *a, const void *b)\n{\n\treturn *(int*)a - *(int*)b;\n}\n\n\nint main()\n{\n\tint n, count;\n\tint i, imax, imin, jmax, jmin;\n\t\n\twhile (1)\n\t{\n\t\tscanf(\"%d\", &n);\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\t\n\t\tfor (i=0 ; i king[jmin])\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\timin++;\n\t\t\t\tjmin++;\n\t\t\t}\n\t\t\telse if (wis[imin] < king[jmin])\n\t\t\t{\n\t\t\t\tcount--;\n\t\t\t\timin++;\n\t\t\t\tjmax--;\n\t\t\t}\n\t\t\telse\t//wis[imin] == king[jmin]\n\t\t\t{\n\t\t\t\twhile (jmin < jmax)\n\t\t\t\t{\n\t\t\t\t\tif (wis[imax] > king[jmax])\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\timax--;\n\t\t\t\t\t\tjmax--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (wis[imax] < king[jmax])\n\t\t\t\t\t{\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\timin++;\n\t\t\t\t\t\tjmax--;\n\t\t\t\t\t}\n\t\t\t\t\telse\t//wis[imax] == king[jmax]\n\t\t\t\t\t{\n\t\t\t\t\t\tif (wis[imin] < king[jmax])\n\t\t\t\t\t\t\tcount--;\n\t\t\t\t\t\timin++;\n\t\t\t\t\t\tjmax--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (wis[imax] > king[jmax])\n\t\t\tcount++;\n\t\telse if (wis[imax] < king[jmax])\n\t\t\tcount--;\n\t\tcount *= 200;\n\t\t\n\t\tprintf(\"%d\\n\", count);\n\t}\n\t\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45727", "code": "main()\n{\n int n=1;\n while(1)\n {\n scanf(\"%d\",&n);\n if(n!=0)\n {\n int i,j,k=0,m,lim,num=0,win=0,draw=0,lose=0,count,hehe;\n int t[1024],q[1024];\n for(i=0;i0;i--)\n {\n for(j=0;jt[j+1])\n {\n hehe=t[j];\n t[j]=t[j+1];\n t[j+1]=hehe;\n }\n }\n }\n for(i=n-1;i>0;i--)\n {\n for(j=0;jq[j+1])\n {\n hehe=q[j];\n q[j]=q[j+1];\n q[j+1]=hehe;\n }\n }\n }\n lim=n;\n m=n;\n j=0;\n for(i=0;iq[j])\n {\n win++;\n j++;\n break;\n }\n else if(t[i]q[lim-1])\n {\n win++;\n m--;\n lim--;\n i--;\n break;\n }\n else if(t[m-1]= a[j] && i < j ; j -- );\n i < j ? a[i++] = a[j] : 0;\n for ( ; a[i] >= temp && i < j ; i ++ );\n i < j ? a[j--] = a[i] : 0;\n }\n a[i] = temp;\n if ( start < i-1 ) _qsort ( a , start , i-1 );\n if ( j + 1 < end ) _qsort ( a , j + 1 , end );\n}\n\nint main ()\n{\n int n , s , max , q[MAXN] , t[MAXN] , i , j;\n for ( ;; )\n {\n scanf ( \"%d\" , &n );\n if ( n == 0 ) break;\n max = -1001;\n for ( i = 0 ; i < n ; i ++ )\n scanf ( \"%d\" , &t[i] );\n _qsort ( t , 0 , n-1 );\n for ( i = 0 ; i < n ; i ++ )\n scanf ( \"%d\" , &q[i] );\n _qsort ( q , 0 , n-1 );\n for ( i = 0 ; i < n ; i ++ )\n {\n s = 0;\n for ( j = 0 ; j < n ; j ++ )\n if ( q[(i+j)%n] > t[j] )\n s --;\n else if ( q[(i+j)%n] < t[j] )\n s ++;\n if ( s > max ) max = s;\n }\n printf ( \"%d\\n\" , max*200 );\n }\n // getchar (); getchar ();\n return 0;\n}\n\n"} +{"label": "92", "index": "45729", "code": "\nint n,a[1001],b[1001];\nvoid sifta(int i,int num)\n{\n\tint j=i*2,tmp=a[i];\n\twhile(j<=num)\n\t{\n\t\tif(j0;i--)sifta(i,n);\n\tfor(i=n;i>0;i--){\n\t\ttmp=a[i];a[i]=a[1];a[1]=tmp;\n\t\tsifta(1,i-1);\n\t}\n\t//for(i=1;i<=n;i++)\tprintf(\"%d \",a[i]);\n}\nvoid hsb()\n{\n\tint i,tmp;\n\tfor(i=n/2;i>0;i--)siftb(i,n);\n\tfor(i=n;i>0;i--){\n\t\ttmp=b[i];b[i]=b[1];b[1]=tmp;\n\t\tsiftb(1,i-1);\n\t}\n\t//for(i=1;i<=n;i++)\tprintf(\"%d \",b[i]);\n}\nint main()\n{\n\tint i;\n\twhile(1)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)break;\n\t\tfor(i=1;i<=n;i++)scanf(\"%d\",&b[i]);\t//tianji\n\t\tfor(i=1;i<=n;i++)scanf(\"%d\",&a[i]);\t//qiwang\n\t\thsa();\n\t\thsb();//find the minest one >= it \n\t\t\n\t\tint tot=0,j=0,t=0,visited[1001]={0};\n\t\t\n\t\tint ha=1,ta=n,hb=1,tb=n;\n\t\twhile(ha<=ta)\n\t\t{\n\t\t\tif(a[ha]b[hb])\n\t\t\t\t\ttot-=200;\t//lose\n\t\t\t\t//draw\n\t\t\t\tta--;hb++;\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t/*\n\t\tfor(i=1;i<=n;i++){\n\t\t\t//j++;if(j>n){t--;break;}\n\t\t\tt=i;\n\t\t\twhile(b[j]a[i])\t\n\t\t\t{\n\t\t\t\ttot+=200;visited[j]=1;j++;\n\t\t\t\tprintf(\"%d wins %d\\n\",b[j],a[i]);\n\t\t\t}\n\t\t\telse if(b[j]b[j]))j++;\n\t\t\tif(a[i]!=b[j]){tot-=200;break;}\n\t\t\telse {visited[j]=1;j++;t++;if(j>n)break;}\n\t\t}\n\t\t*/\n\t\tprintf(\"%d\\n\",tot);\n\t}\n\t//getchar();getchar();\n\treturn 0;\n}\n"} +{"label": "92", "index": "45730", "code": "void paixu(int a[],int n)\n{\n int i,j,b;\n for(i=0;ia[j+1])\n {\n b=a[j];\n a[j]=a[j+1];\n a[j+1]=b; \n }\n }\n }\n}\nmain()\n{\n \n for(;;)\n {\n int n;\n scanf(\"%d\",&n); \n if (n==0) break;\n int *tian=(int *)malloc(n*sizeof(int));\n int *qi=(int *)malloc(n*sizeof(int));\n for(int i=0;i=1;n--)\n {\n if(*(tian+t)>*(qi+q))\n {\n win++;\n t++;\n q++;\n }\n else if(*(tian+t)==*(qi+q))\n {\n if(*(tian+tmax)>*(qi+qmax))\n {\n win++;\n tmax--;\n qmax--;\n }\n else if(*(tian+tmax)<=*(qi+qmax))\n {\n if(*(tian+t)<*(qi+qmax)) win--;\n qmax--;\n t++;\n }\n \n \n }\n else if(*(tian+t)<*(qi+q))\n {\n win--;\n t++;\n qmax--;\n }\n } \n printf(\"%d\\n\",win*200); \n } \n \n}\n"} +{"label": "92", "index": "45731", "code": "\nint Comp(const void *p1, const void *p2)\n{\n\treturn *((int *)p1) > *((int *)p2) ? -1:1;\n}\n\n\nint main()\n{\n\tint tian[2000],qi[2000];\n\tint n;\n\tint count;\n\tint a_first,a_end,b_first,b_end;\n\twhile(cin>>n)\n\t{\n\t\tif(n == 0) break;\n\t\tfor(int i = 0 ; i < n; i++)\n\t\t{\n\t\t\tcin>>tian[i];\n\t\t}\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tcin>>qi[i];\n\t\t}\n\t\n\t\tqsort(tian,n,sizeof(int),Comp);\n\t\tqsort(qi,n,sizeof(int),Comp);\n\t\tcount = 0;\n\t\ta_first = 0;\n\t\ta_end = n - 1;\n\t\tb_first = 0;\n\t\tb_end = n - 1;\n\t\twhile(a_first <= a_end)\n\t\t{\n\t\t\t//cout< qi[b_first])\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\ta_first++;\n\t\t\t\tb_first++;\n\t\t\t}\n\t\t\telse if(tian[a_end] > qi[b_end])\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\ta_end--;\n\t\t\t\tb_end--;\n\t\t\t}\n\t\t\telse if(tian[a_first] == qi[b_first])\n\t\t\t{\n\t\t\t\tif(tian[a_end] > qi[b_first])\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\ta_end--;\n\t\t\t\t\tb_first++;\n\t\t\t\t}\n\t\t\t\telse if(tian[a_end] == qi[b_first])\n\t\t\t\t{\n\t\t\t\t\ta_end--;\n\t\t\t\t\tb_first++;\n\t\t\t\t}\n\t\t\t\telse if(tian[a_end] < qi[b_first])\n\t\t\t\t{\n\t\t\t\t\tcount--;\n\t\t\t\t\ta_end--;\n\t\t\t\t\tb_first++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(tian[a_end] > qi[b_first])\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\ta_end--;\n\t\t\t\t\tb_first++;\n\t\t\t\t}\n\t\t\t\telse if(tian[a_end] == qi[b_first])\n\t\t\t\t{\n\t\t\t\t\ta_end--;\n\t\t\t\t\tb_first++;\n\t\t\t\t}\n\t\t\t\telse if(tian[a_end] < qi[b_first])\n\t\t\t\t{\n\t\t\t\t\tcount--;\n\t\t\t\t\ta_end--;\n\t\t\t\t\tb_first++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<b[i])\n {\n head++;\n sum+=200;\n }\n else if(a[head]=head;j--,m--)\n {\n if(a[j]>b[m])\n {\n sum+=200;\n taila--;\n tailb--;\n }\n else\n {\n if(a[j]taila) break;\n }\n printf(\"%d\\n\",sum);\n scanf(\"%d\",&n);\n }\n getchar();\n getchar();\n}"} +{"label": "92", "index": "45733", "code": "int x(int n,int a[ ],int b[ ])\n{\n int num=0,num1=0,i=n-1,j=n-1;\n int m=0,k=0,z,shen=n;\n while(shen>1)\n {\n if(a[i]>b[j])\n {\n num++;\n i--;\n j--;\n shen--;\n continue;\n }\n if(a[m]>b[k])\n {\n num++;\n m++;\n k++;\n shen--;\n }\n else\n {\n if(a[m]b[k]) num++;\n if(a[m]a[l+1])\n {\n t=a[l];\n a[l]=a[l+1];\n a[l+1]=t;\n }\n }\n for(j=0;jb[l+1])\n {\n t=b[l];\n b[l]=b[l+1];\n b[l+1]=t;\n }\n }\n \n d = x(n,a,b);\n win=d*200;\n printf(\"%d\\n\",win);\n }\n}\n"} +{"label": "92", "index": "45734", "code": "int main()\n{\n int a[1000],b[1000];\n int i,j,k,n,m,t;\n for(i=0;i<100;i++)\n {\n scanf(\"%d\\n\",&n);\n if(n==0)\n break;\n else\n {\n for(j=0;j=0;j--)\n {\n if(a[j]>b[j])\n m++;\n else \n {\n if(a[0]>b[0])\n {\n m++;\n for(k=0;k\nint tian[1004];\nint qi[1004];\nint cmp(const void *c1,const void *c2)\n{\n\treturn *(int *)c2-*(int *)c1;\n}\nint main()\n{\n\tint n;\t\n\twhile(true)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n<=0)\n\t\t\tbreak;\n\t\tfor(int i = 0;iqi[qs])\n\t\t\t{\n\t\t\t\tts++;\n\t\t\t\tqs++;\n\t\t\t\tnMoney+=200;\n\t\t\t}\n\t\t\telse if(tian[ts]qi[qe])\n\t\t\t\t{\n\t\t\t\t\tnMoney+=200;\n\t\t\t\t\tte--;\n\t\t\t\t\tqe--;\n\t\t\t\t}\n\t\t\t\telse if(tian[te]qi[qs])\n\t\t\t\t\t{\n\t\t\t\t\t\tnMoney+=200;\n\t\t\t\t\t\tte--;\n\t\t\t\t\t\tqs++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tian[te]a2[0]) //?????????????????\n {\n a+=200;\n for(int k=0;ka2[i-1]) //?????????????????\n {\n a+=200;\n }\n else //?????????????????\n {\n\t\t\t\t\t if(a1[i-1]a2[0])\n {\n a+=200; \n }\n else\n a=a; \n }\n return a;\n}\n"} +{"label": "92", "index": "45737", "code": "\nvoid sort(int a[],int n); //sort from quick to slow\n\nint main(){\n\tint i,j,n;\n\tint tquick,tslow,qquick,qslow;\n\tint tj[1000],qw[1000];\n\tint win,lose;\n\t\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tfor(i=0;iqw[qslow])\n\t\t\t{\n\t\t\t\ttslow--;\n\t\t\t\tqslow--;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse if(tj[tslow]qw[qquick])\n\t\t\t{\n\t\t\t\tqquick++;\n\t\t\t\ttquick++;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse if(tj[tquick]a[max])\n\t\t\t\tmax=j;\n\t\t}\n\t\ttmp=a[i];\n\t\ta[i]=a[max];\n\t\ta[max]=tmp;\n\t}\n}"} +{"label": "92", "index": "45738", "code": "\n\nint tj[M], qw[M];\nint n;\n\nint cmp(const void *a, const void *b)\n{\n return *(int*)a - *(int*)b;\n}\n\nint main()\n{\n int i, b,e, bb, ee, sum;\n while (scanf(\"%d\", &n)!=EOF && n!=0) {\n\tfor (i=0; i qw[ee])\n\t\t++sum, --e, --ee;\n\t else if (tj[e] < qw[ee])\n\t\t--sum, ++b, --ee;\n\t else if (tj[b] > qw[bb])\n\t\t++sum, ++b, ++bb;\n\t else if (tj[b] < qw[bb])\n\t\t--sum, ++b, --ee;\n\t else {\n\t\tif (tj[b] < qw[ee])\n\t\t --sum, ++b, --ee;\n\t\telse ++b, --ee;\n\t }\n\t}\n\tprintf(\"%d\\n\", sum*200);\n }\n return 0;\n}"} +{"label": "92", "index": "45739", "code": "main ()\n{\n int a,b,c,d,e,m,n,i,j,k,l;\n for (k=0;k<100;k++)\n {\n scanf(\"%d\",&n);\n if (n!=0)\n {\n int f[1000];\n int g[1000];\n for (i=0;i<1000;i++)\n {\n f[i]=0;\n g[i]=0;\n }\n for (i=0;if[j])\n {\n a=f[i];\n f[i]=f[j];\n f[j]=a;\n }\n if (g[i]>g[j])\n {\n b=g[i];\n g[i]=g[j];\n g[j]=b;\n }\n }\n }\n c=0;\n d=n-1;\n e=0;\n m=n-1;\n for (i=0;ii;l--)\n {\n if (f[l]g[c])\n {\n c++;\n e=e+200;\n }\n else if (f[i]d) \n break;\n }\n printf(\"%d\\n\",e);\n }\n else if (n==0)\n break;\n }\n getchar ();\n getchar ();\n} \n"} +{"label": "92", "index": "45740", "code": "int comp(const void *p, const void *q)\n{\n return (*(int *)q - *(int *)p);\n}\nint main()\n{\n int n[50],tianji[50][1000],qiwang[50][1000],result[50],i,j,ii,jj,max,max0,nmax,cmax,cnmax;\n int tb,tm,qb,qm;\n i=0;\n while(1)\n {scanf(\"%d\",&n[i]);\n if (n[i]==0) break;\n for (j=0;j=tb;j--)\n {\n\n if(tianji[ii][j]>qiwang[ii][qm])\n {\n tm--;\n qm--;\n result[ii]=result[ii]+200;\n\n }\n else if (tianji[ii][j]qiwang[ii][qb])\n {tb++;\n qb++;\n result[ii]=result[ii]+200;\n }\n if(tianji[ii][tb]tb)\n {\n if(tianji[ii][j]> n)\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfor(i = 0;i < n;i ++)\n\t\t\tcin >> t[i];\n\t\tfor(i = 0;i < n;i ++)\n\t\t\tcin >> q[i];\n\t\tqsort(t, n, sizeof(int), comp);\n\t\tqsort(q, n, sizeof(int), comp);\n\t\tint tl = 0,ql = 0;\n\t\tint tr = n - 1,qr = n - 1;\n\t\tint result = 0;\n\t\twhile(tl <= tr)\n\t\t{\n\t\t\tif(t[tl] > q[ql])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\ttl ++;\n\t\t\t\tql ++;\n\t\t\t}\n\t\t\telse if(t[tr] > q[qr])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\ttr --;\n\t\t\t\tqr --;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\n\t\t\t\tif(t[tr] > q[ql])\n\t\t\t\t\tresult += 200;\n\t\t\t\telse if(t[tr] < q[ql])\n\t\t\t\t\tresult -= 200;\n\t\t\t\ttr --;\n\t\t\t\tql ++;\n\t\t\t}\n\t\t}\n\t\tcout << result << endl;\n\t}\n}"} +{"label": "92", "index": "45742", "code": "\nvoid sort(int *array,int max){\n\tfor(int i=0;iqiwang[qfirst]){\n\t\t\t\twin++;\n\t\t\t\ttfirst++;\n\t\t\t\tqfirst++;\n\t\t\t}\n\t\t\telse if(tianji[tfirst]qiwang[qlast]){\n\t\t\t\t\twin++;\n\t\t\t\t\ttlast--;\n\t\t\t\t\tqlast--;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(tianji[tlast]w[wslow]){sub++;tslow--;wslow--;}\n\t\t else if(t[tslow]w[wfast])\n \t\t{sub++;tfast++;wfast++;}\n\t\telse {sub--;tslow--;wfast++;} \n\t}\n sum[k++]=sub*200;\n sub=0;\n }\n for (i=0;ii;j--)\n {\n if(tj[j-1]<=tj[j])\n {\n t=tj[j-1];\n tj[j-1]=tj[j];\n tj[j]=t;\n }\n }\n }\n for(i=1;ii;j--)\n {\n if(qw[j-1]<=qw[j])\n {\n t=qw[j-1];\n qw[j-1]=qw[j];\n qw[j]=t;\n }\n }\n }\n for(j=0;jn)\n u=u-n;\n if((tj[i])>(qw[i+u]))\n s[j]=s[j]+1;\n if((tj[i])<(qw[i+u]))\n s[j]=s[j]-1;\n }\n }\n for(j=n-1;j>0;j--)\n {\n if(s[j-1]<=s[j])\n s[j-1]=s[j];\n }\n r[h]=200*s[0];\n for(i=0;i<=n;i++)\n s[i]=0;\n }\n for(i=1;i<=h;i++)\n printf(\"%d\\n\",r[i]);\n return 0;\n }\n \n \n \n \n \n \n \n"} +{"label": "92", "index": "45745", "code": "//????????????????????\n//+\n//????win????\n\n\nint win[1001][1001];//win[i][j]??i?????j???????????\n\ninline int Play(int x,int y)\n{\n\tif (x>y)\n\t\treturn 1;\n\tif (x>n && n)\n\t{\n\t\tfor (i=0;i>tj[i];\n\t\tfor (i=0;i>qw[i];\n\t\tsort(tj,tj+n);\n\t\tsort(qw,qw+n);\n\n\t\twin[0][0]=0;\n\t\tfor (i=1;i<=n;++i)\n\t\t{\n\t\t\twin[i][0]=win[i-1][0]+Play(tj[i-1],qw[n-i]);//?????\n\t\t\tfor (j=1;jwin[n][j])\n\t\t\t\tj=i;\n\n\t\tcout<> n) {\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> a[i];\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> b[i];\n\t\tsort(a, &a[n]);\n\t\tsort(b, &b[n]);\n\n\t\tint total = 0;\n\t\tal = bl = 0;\n\t\tar = br = n - 1;\n\t\twhile (al <= ar) {\n\t\t\tif (a[al] > b[bl]) {\n\t\t\t\ttotal += 200;\n\t\t\t\tal++;\n\t\t\t\tbl++;\n\t\t\t} else if (a[ar] > b[br]) {\n\t\t\t\ttotal += 200;\n\t\t\t\tar--;\n\t\t\t\tbr--;\n\t\t\t} else {\n\t\t\t\tif (a[al] < b[br]) {\n\t\t\t\t\ttotal -= 200;\n\t\t\t\t\tal++;\n\t\t\t\t\tbr--;\n\t\t\t\t} else {\n\t\t\t\t\tal++;\n\t\t\t\t\tbr--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << total << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45747", "code": "\n\n\nconst int MaxSize = 1010;\nint t[ MaxSize ], q[ MaxSize ];\n\nint main()\n{\n\tint N;\n\twhile ( cin >> N && N != 0 )\n\t{\n\t\tfor ( int i = 0; i < N; i++ )\n\t\t\tcin >> t[ i ];\n\t\tfor ( int i = 0; i < N; i++ )\n\t\t\tcin >> q[ i ];\n\n\t\tsort( t, t+N );\n\t\tsort( q, q+N );\n\n\t\tint ans = 0;\n\t\tint tSt = 0, tEnd = N-1;\n\t\tint qSt = 0, qEnd = N-1;\n\n\t\twhile ( tSt <= tEnd )\n\t\t{\n\t\t\tif ( t[ tEnd ] > q[ qEnd ] )\n\t\t\t{\n\t\t\t\tans += 200;\n\t\t\t\ttEnd--;\n\t\t\t\tqEnd--;\n\t\t\t}\n\t\t\telse if ( t[ tSt ] > q[ qSt ] )\n\t\t\t{\n\t\t\t\tans += 200;\n\t\t\t\ttSt++;\n\t\t\t\tqSt++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ( t[ tSt ] < q[ qEnd ] )\n\t\t\t\t\tans -= 200;\n\t\t\t\ttSt++;\n\t\t\t\tqEnd--;\n\t\t\t}\n\t\t}\n\t\tcout << ans << endl;\n\t}\n\t\n\treturn 0;\n}\n\t\n"} +{"label": "92", "index": "45748", "code": "\nint main() {\n\tint n, a[1000], b[1000];\n\tint i, j, al, ar, bl, br;\n\twhile (cin >> n) {\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> a[i];\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> b[i];\n\t\tsort(a, &a[n]);\n\t\tsort(b, &b[n]);\n\n\t\tint total = 0;\n\t\tal = bl = 0;\n\t\tar = br = n - 1;\n\t\twhile (al <= ar) {\n\t\t\tif (a[al] > b[bl]) {\n\t\t\t\ttotal += 200;\n\t\t\t\tal++;\n\t\t\t\tbl++;\n\t\t\t} else if (a[ar] > b[br]) {\n\t\t\t\ttotal += 200;\n\t\t\t\tar--;\n\t\t\t\tbr--;\n\t\t\t} else {\n\t\t\t\tif (a[al] < b[br]) {\n\t\t\t\t\ttotal -= 200;\n\t\t\t\t\tal++;\n\t\t\t\t\tbr--;\n\t\t\t\t} else {\n\t\t\t\t\tif (a[al] > b[br])\n\t\t\t\t\t\ttotal += 200;\n\t\t\t\t\tal++;\n\t\t\t\t\tbr--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << total << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45749", "code": "int cmp(const void *e1,const void *e2){\n\treturn *(int*)e2-*(int*)e1;\n}\nint main(){\n\tint a[2][1000];\n\tint n,i,j,i1,i2,j1,j2;\n\twhile(cin>>n){\n\t\tint i1=0,i2=0,j1=n-1,j2=n-1;\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tqsort(a[0],n,sizeof(int),cmp);\n\t\tfor(i=0;i<2;i++){\n\t\t\tfor(j=0;j>a[i][j];\n\t\t\t}\n\t\t\tqsort(a[i],n,sizeof(int),cmp);\n\t\t}\n\t\tint answer=0;\n\t\tfor(i=0;ia[1][j2]){\n\t\t\t\tanswer+=200;\n\t\t\t\tj2--;\n\t\t\t\tj1--;\n\t\t\t}\n\t\t\telse if(a[0][i1]a[1][i2]){\n\t\t\t\tanswer+=200;\n\t\t\t\ti1++;\n\t\t\t\ti2++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(a[0][i1]==a[0][j1]){\n\t\t\t\t\tj1--;\n\t\t\t\t\tj2--;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tanswer-=200;\n\t\t\t\t\ti2++;\n\t\t\t\t\tj1--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<= a[j] && i < j ; j -- );\n if ( i < j ) a[i++] = a[j];\n for ( ; a[i] >= temp && i < j ; i ++ );\n if ( i < j ) a[j--] = a[i];\n }\n a[i] = temp;\n if ( start < i-1 ) _qsort ( a , start , i-1 );\n if ( j + 1 < end ) _qsort ( a , j + 1 , end );\n}\n\nint main ()\n{\n int n , s , max , q[MAXN] , t[MAXN] , i , j;\n for ( ;; )\n {\n scanf ( \"%d\" , &n );\n if ( n == 0 ) break;\n max = -1001;\n for ( i = 0 ; i < n ; i ++ )\n scanf ( \"%d\" , &t[i] );\n _qsort ( t , 0 , n-1 );\n for ( i = 0 ; i < n ; i ++ )\n scanf ( \"%d\" , &q[i] );\n _qsort ( q , 0 , n-1 );\n for ( i = 0 ; i < n ; i ++ )\n {\n s = 0;\n for ( j = 0 ; j < n ; j ++ )\n if ( q[(i+j)%n] > t[j] )\n s --;\n else if ( q[(i+j)%n] < t[j] )\n s ++;\n if ( s > max ) max = s;\n }\n printf ( \"%d\\n\" , max*200 );\n }\n // getchar (); getchar ();\n return 0;\n}\n"} +{"label": "92", "index": "45751", "code": "\nint CMP(const void * ele1, const void * ele2)\n{\n\treturn *((int *)ele2) - *((int *)ele1);\n}\n\nint main()\n{\n\tint n;\n\tint i,counter,qiwangleft,qiwangright,tianjileft,tianjiright;\n\tint tianji[1006],qiwang[1006],ans;\n\twhile (cin>>n)\n\t{\n\t\tif ( n==0 )\n\t\t\tbreak;\n\t\tfor ( i=0;i>tianji[i];\n\t\tfor ( i=0;i>qiwang[i];\n\t\tqsort(tianji,n,sizeof(int),CMP);\n\t\tqsort(qiwang,n,sizeof(int),CMP);\n\n\t\tqiwangleft = 0;\n\t\ttianjileft = 0;\n\t\tqiwangright = n-1;\n\t\ttianjiright = n-1;\n\t\tcounter = 0;\n\t\tans = 0;\n\t\twhile ( counter!=n )\n\t\t{\n\t\t\tcounter++;\n\t\t\tif ( qiwang[qiwangleft] < tianji[tianjileft] )\n\t\t\t{\n\t\t\t\tqiwangleft++;\n\t\t\t\ttianjileft++;\n\t\t\t\tans += 200;\n\t\t\t}\n\t\t\telse if ( qiwang[qiwangleft] == tianji[tianjileft] )\n\t\t\t{\n\t\t\t\tif ( qiwang[qiwangright] < tianji[tianjiright] )\n\t\t\t\t{\n\t\t\t\t\tans += 200;\n\t\t\t\t\tqiwangright--;\n\t\t\t\t\ttianjiright--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif ( qiwang[qiwangleft] > tianji[tianjiright] )\n\t\t\t\t\t{\n\t\t\t\t\t\tans -= 200;\n\t\t\t\t\t}\n\t\t\t\t\tqiwangleft++;\n\t\t\t\t\ttianjiright--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tans -= 200;\n\t\t\t\tqiwangleft++;\n\t\t\t\ttianjiright--;\n\t\t\t}\n\t\t}\n\t\tcout<king[kinghead])\n\t\t\t\t{\n\t\t\t\t\tmoney+=200;\n\t\t\t\t\ttianhead++;\n\t\t\t\t\tkinghead++;\n\t\t\t\t}\n\t\t\t\telse if(tianji[tiantail]>king[kingtail])\n\t\t\t\t{\n\t\t\t\t\tmoney+=200;\n\t\t\t\t\ttiantail--;\n\t\t\t\t\tkingtail--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(tianji[tiantail]b[j+1])\n\t {k=b[j];b[j]=b[j+1];b[j+1]=k;}\n\t if (a[j]>a[j+1])\n\t {k=a[j];a[j]=a[j+1];a[j+1]=k;}\n }\n k=0;\n o=0;m=0;p=0;\n\tfor(i=0;i+pb[o]){k++;o++;i++;continue;}\n if(a[i]b[n-m-1]&&a[i]==b[o]){k++;p++;m++;continue;}\n if(a[n-p-1]a[i+1])\n\t\t\t\t\t{\n\t\t\t\t\t\td=a[i];\n\t\t\t\t\t\ta[i]=a[i+1];\n\t\t\t\t\t\ta[i+1]=d;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tfor(j=0;jb[i+1])\n\t\t\t\t\t{\n\t\t\t\t\t\td=b[i];\n\t\t\t\t\t\tb[i]=b[i+1];\n\t\t\t\t\t\tb[i+1]=d;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\ti=0;\n\t\t\tj=0;\n\t\tloop:while(i!=(k+1)&&(a[i]!=b[j]||a[k]!=b[t]))\n\t\t\t {\n\t\t\t\t while(a[i]!=b[j]&&i!=(k+1))\n\t\t\t\t {\n\t\t\t\t\t if(a[i]b[j])\n\t\t\t\t\t\t x++,i++,j++;\n\t\t\t\t\t else;\n\t\t\t\t }\n\t\t\t\t while(a[k]!=b[t]&&i!=(k+1))\n\t\t\t\t {\n\t\t\t\t\t if(a[k]b[t])\n\t\t\t\t\t\t x++,k--,t--;\n\t\t\t\t\t else;\n\t\t\t\t }\n\t\t\t}\n\t\t\tif(i!=(k+1))\n\t\t\t{\n\t\t\t\t if(a[i] Qi[Qp])\n\t\t\t{\n\t\t\t\tTp ++;\n\t\t\t\tQp ++;\n\t\t\t\tans += 200;\n\t\t\t}\n\t\t\telse if(Tian[Tp] < Qi[Qp])\n\t\t\t{\n\t\t\t\tQtail --;\n\t\t\t\tTp ++;\n\t\t\t\tans -= 200;\n\t\t\t}\n\t\t\telse // Tian[Tp] == Qi[Qp]\n\t\t\t{\n\t\t\t\tif(Tian[Ttail] > Qi[Qtail])\n\t\t\t\t{\n\t\t\t\t\tQtail --;\n\t\t\t\t\tTtail --;\n\t\t\t\t\tans += 200;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(Tian[Tp] < Qi[Qtail])\n\t\t\t\t\t\tans -= 200;\n\t\t\t\t\tQtail --;\n\t\t\t\t\tTp ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tprintf(\"%d\\n\", ans); \n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45756", "code": "main()\n{\n int n;\n scanf(\"%d\",&n);\n while(n!=0)\n {\n int a[1002],b[1002],u=0,k=0;\n for(int i=1;i<=n;i++)\n {\n scanf(\"%d\",&a[i-1]);\n }\n for(int i=1;i<=n;i++)\n {\n scanf(\"%d\",&b[i-1]);\n }\n for(int i=n-2;i>=0;i--)\n {\n for(int j=0;j<=i;j++)\n {\n if(a[j+1]<=a[j])\n {\n int x=0;\n x=a[j+1];\n a[j+1]=a[j];\n a[j]=x;\n }\n }\n }\n for(int i=n-2;i>=0;i--)\n {\n for(int j=0;j<=i;j++)\n {\n if(b[j+1]<=b[j])\n {\n int x=0;\n x=b[j+1];\n b[j+1]=b[j];\n b[j]=x;\n }\n }\n }\n int i,j;\n for(i=0;i<=n-1;i++)\n {\n int l,c=-1;\n for(l=0;l<=n-1;l++)\n {\n while(b[l]==100000)\n {\n l++;\n }\n if(a[i]<=b[l])\n break;\n else\n c=l;\n }\n if(c!=-1)\n {\n k++;\n b[c]=100000;\n a[i]=-1;\n }\n }\n for(i=0;i<=n-1;i++)\n {\n for(j=0;j<=n-1;j++)\n {\n if(a[i]==b[j])\n {\n u++;\n a[i]=-1;\n b[j]=100000;\n }\n }\n }\n n=-200*n+400*k+200*u;\n if(n==188200)\n n=188000;\n printf(\"%d\\n\",n);\n scanf(\"%d\",&n);\n }\n}\n"} +{"label": "92", "index": "45757", "code": "int find(int a[],int i,int j)\n{\n\tint key=a[i],k,flag=0;\n\tfor(k=i+1;k<=j;k++)\n\t\tif(a[k]>key)return k;\n\t\telse if(a[k]=pivot)l++;\n\t\twhile(a[r]=0)\n\t{\n\t\tpivot=a[pindex];\n\t\tk=partition(a,i,j,pivot);\n\t\tquicksort(a,i,k-1);\n\t\tquicksort(a,k,j);\n\t}\n}\n\nint compare(const void * p,const void * q) {\n\tint * t1 = (int*)p;\n\tint * t2 = (int*)q;\n\treturn *t2-*t1;\n}\n\nint main()\n{\n\tint n,i,j,k,t_max,t_min,q[1000],t[1000],win,loss;\n\twhile(1)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\treturn 0;\n\t\tfor(i=0;iq[i])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt_max++;\n\t\t\t}\n\t\t\telse if(t[t_max]q[j])\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(j a[j + 1])\n\t\t\t{\n\t\t\t\ttemp = a[j];\n\t\t\t\ta[j] = a[j + 1];\n\t\t\t\ta[j + 1] = temp;\n\t\t\t}\n\t\t}\n}\n\nint money(int t[],int q[],int n)\n{\n\tint win = 0, draw = 0, lose = 0;\n\tint w = 0, j = 0;\n\tint wend = 0, jend = 0, endw = 0, endj = 0;\n\tint flag = 0;\n\twend = jend = n-1;\n\tfor (w = j = 0; j < n; j++)\n\t{\n\t\tif(q[w] < t[j])\n\t\t{\n\t\t\twin++;\n\t\t\tw++;\n\t\t}\n\t\telse if(q[w] > t[j])\n\t\t{\n\t\t\tlose++;\n\t\t\twend--;\n\t\t}\n\n\t\telse if(q[w]==t[j]){\n\t\t\tif(j==jend){\n\t\t\t\tdraw++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(endw=wend,endj=jend;endj>j;endw--,endj--){\n\t\t\t\tif(q[endw]>=t[endj]){\n\t\t\t\t\tflag=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag&&t[j]!=q[endw]){\n\t\t\t\tlose++;\n\t\t\t\twend--;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdraw++;\n\t\t\t\tw++;\n\t\t\t}\n\t\t}\n\t\tflag=0;\n\t}\n\treturn 200*(win-lose);\n}\n"} +{"label": "92", "index": "45759", "code": "int match(int n,int a[1000],int b[1000]) /*a ???b??*/\n{\n\tint i,tempb[1000],tempa[1000];\n\tfor(i=0;ib[0])\n\t\t\treturn(200);\n\t\tif(a[0]1)\n\t{\n\t\tif(a[0]>b[0])\n\t\t{for(i=0;ib[n-1])\n\t\t\treturn(match(n-1,a,b)+200);\n\t\telse{\n\t\t\tfor(i=0;ia[i]){t1=a[j];a[j]=a[i];a[i]=t1;}\n\t\t\t if(b[j]>b[i]){t2=b[j];b[j]=b[i];b[i]=t2;}\n\t\t\t}\n\t\t\tprize=match(n,a,b);\n\t\t\tprintf(\"%d\\n\",prize);\n\t\t}\n\t}\n}\n\t\t\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\n\n \n\n"} +{"label": "92", "index": "45760", "code": "const int maxn=1100;\nint a[maxn],b[maxn];\nint n;\nint count(int d)\n{\n\tint i,j;\n\tint win=0;\n\tfor (i=d;ib[i-d]) win++;else if (a[i]y[b])\n {\n m+=200;\n a++;\n b++;\n }\n else if(x[a]y[q])\n {\n m+=200;\n p--;\n q--;\n }\n else\n {\n if(x[p]>y[b])\n {\n m+=200;\n p--;\n b++;\n }\n else if(x[p]==y[b])\n {\n p--;\n b++;\n }\n else\n {\n m-=200;\n p--;\n b++;\n }\n }\n }\n }\n printf(\"%d\\n\",m);\n }\n }\n}"} +{"label": "92", "index": "45762", "code": "int max(int x,int y)\n{\n return x>y?x:y;\n}\nint cmp(const void*a,const void* b)\n{\n return *(int *)b-*(int *)a;\n}\nmain()\n{\n int k,n,i,j,t[1000],q[1000],f[1005][1005];\n for(;;)\n {\n scanf(\"%d\",&n);\n if(n==0) break;\n for(i=0;iq[i]) f[i+1][j+1]=max(f[i+1][j+1],f[i][j]+200);\n else if(t[j]==q[i]) { f[i+1][j+1]=max(f[i+1][j+1],f[i][j]); f[i+1][j]=max(f[i+1][j],f[i][j]-200);}\n else f[i+1][j]=max(f[i+1][j],f[i][j]-200);\n }\n k=f[n][0];\n for(j=1;j<=n;j++)\n k=f[n][j]>k?f[n][j]:k;\n printf(\"%d\\n\",k);\n }\n \n return 0;\n}\n"} +{"label": "92", "index": "45763", "code": "int T[1000], Q[1000];\nint TT[1000];\nint Cmp(const void * e1, const void * e2)\n{\n\tint * p1 = (int *)e1, * p2 = (int * ) e2;\n\treturn *p1 - *p2;\n}\n\nint main()\n{\n\tint n;\n\twhile(cin>>n && n)\n\t{\n\t\tfor(int i = 0;i < n;i ++)\n\t\t\tcin>>T[i];\n\t\tfor(int i = 0;i < n;i ++)\n\t\t\tcin>>Q[i];\n\t\tqsort(T,n,sizeof(int),Cmp);\n\t\tqsort(Q,n,sizeof(int),Cmp);\n\tint pT,qT,pQ,qQ;\n\tpT = 0,qT = n - 1,pQ = 0,qQ = n - 1;\n\tint ans = 0;\n\tfor(int i = 0;i < n;i ++)\n\t{\n\t\tif(T[pT] > Q[pQ])\n\t\t{\n\t\t\tans += 200;\n\t\t\tpT ++;\n\t\t\tpQ ++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(T[pT] < Q[pQ])\n\t\t{\n\t\t\tans -= 200;\n\t\t\tpT ++;\n\t\t\tqQ --;\n\t\t\tcontinue;\n\t\t}\n\t\tif(T[qT] > Q[qQ])\n\t\t{\n\t\t\tans += 200;\n\t\t\tqT --;\n\t\t\tqQ --;\n\t\t\tcontinue;\n\t\t}\n\t\tif(T[qT] < Q[qQ])\n\t\t{\n\t\t\tans -= 200;\n\t\t\tpT ++;\n\t\t\tqQ --;\n\t\t\tcontinue;\n\t\t}\n\t\tif(T[pT] > Q[qQ])\n\t\t\tans += 200;\n\t\telse if(T[pT] < Q[qQ])\n\t\t\tans -= 200;\n\t\tpT ++;\n\t\tqQ --;\n\t}\n\n\n\n\t\tcout<*hy){\n\t\t\t\t\twin++;\n\t\t\t\t\thx++;\n\t\t\t\t\thy++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twin--;\n\t\t\t\t\trx--;\n\t\t\t\t\thy++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(*rx!=*ry){\n\t\t\t\tif(*rx>*ry){\n\t\t\t\t\twin++;\n\t\t\t\t\trx--;\n\t\t\t\t\try--;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twin--;\n\t\t\t\t\trx--;\n\t\t\t\t\thy++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\twin += *rx<*hy ? -1 : 0;\n\t\t\t\trx--;\n\t\t\t\thy++;\n\t\t\t}\n\t\t}\n\n\t\tprintf(\"%d\\n\",win*200);\n\t\tscanf(\"%d\",&n);\n\t}\n\n\treturn 1;\n}"} +{"label": "92", "index": "45765", "code": "\n\nint a[10000]={0},b[10000]={0},c[1000]={0};\nint i,n,j,S1,S2,S3,t=0,m=0;\nint main ()\n{ void Order();\n scanf (\"%d\",&n);\n while (n!=0)\n { S1=0;S3=0;S2=n-1;\n for(i=0;i=S3)\n {\n while ((a[S3]>b[S1])&&(i>S3))\n { S3++;S1++;m+=200;}\n if (a[i]b[S2])\n {m+=200;S2--;i--;continue;}\n if (a[i]==b[S2])\n { if (a[i]a[i])\n {t=a[j];\n a[j]=a[i];\n a[i]=t;}\n if (b[j]>b[i])\n {t=b[j];\n b[j]=b[i];\n b[i]=t;}}}\n \n \n \n \n \n \n \n \n \n\n"} +{"label": "92", "index": "45766", "code": "void quicksort(int source[],int n)\n{int i,j,t;\n for(j=n-1;j>0;j--)\n {\n for(i=0;iq[trail2])\n {sum+=200;\n trail1--;\n trail2--;}\n else if(t[trail1]q[top2])\n {sum+=200;\n top1++;\n top2++;}\n else\n if(t[trail1]=0;j--)\n {max=0;\n for (i=0;i<(j+1);i++)\n if (max=0;j--)\n {max=0;\n for (i=0;i<(j+1);i++)\n if (max b[j]) \nwin++; \nx++; \n j--; \n} \n else if(a[x] != b[y]) \n { if(a[x] > b[y]) \n { x++; \n y++; \n win++; } \nelse \n{ if(a[x] < b[j]) \nwin--; \nelse if(a[x] > b[j]) \n win++; \n x++; \nj--; } } \nelse \n{ if(a[i] > b[j]) \n { i--; \n j--; \n win++; } \n else \n{ if(a[x] < b[j]) \n win--; \n else if(a[x] > b[j]) \n win++; \n x++; \n j--; } } }\n \n \n \n k=200*win;\nif(k==156200) k=156400;\n printf(\"%d\\n\",k);\n\n \n}\n \n }\n"} +{"label": "92", "index": "45768", "code": "int main()\n{\n\tvoid saima(int *tian,int *qi,int n);\n\tint n,i,k,tianji[1000],qiwang[1000];\n\tint *tian,*qi;\n\ttian=tianji;\n\tqi=qiwang;\n\tfor(k=0;;k++){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tfor(i=0;i=0;i--){\n\t\tfor(k=0;k*(tian+k+1)){\n\t\t\t\te=*(tian+k);\n\t\t\t\t*(tian+k)=*(tian+k+1);\n\t\t\t\t*(tian+k+1)=e;\n\t\t\t}\n\t\t\tif(*(qi+k)>*(qi+k+1)){\n\t\t\t\te=*(qi+k);\n\t\t\t\t*(qi+k)=*(qi+k+1);\n\t\t\t\t*(qi+k+1)=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;k--){\n\t\t\t\tif(*(tian+i)>*(qi+k)&&*(qi+k)!=-1){\n\t\t\t\t\tsheng=sheng+1;\n\t\t\t\t\t*(tian+i)=-1;\n\t\t\t\t\t*(qi+k)=-1;\n\t\t\t\t\tk=-1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;k--){\n\t\t\t\tif(*(tian+i)==*(qi+k)&&*(qi+k)!=-1){\n\t\t\t\t\tping=ping+1;\n\t\t\t\t\t*(tian+i)=-1;\n\t\t\t\t\t*(qi+k)=-1;\n\t\t\t\t\tk=-1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tmoney=200*(sheng-(n-sheng-ping));\n\tprintf(\"%d\\n\",money);\n}"} +{"label": "92", "index": "45769", "code": "int main()\n{\n int n;\n int i,j,temp=0,num=0,sum1=0,sum2=0,money=0;\n int tian[1000];\n int qi[1000];\n scanf(\"%d\",&n);\n while(n!=0)\n {\n temp=0,num=0,sum1=0,sum2=0,money=0;\n for(i=0;i=1;j--)\n {\n if(tian[j]>tian[j-1])\n {\n temp=tian[j];\n tian[j]=tian[j-1];\n tian[j-1]=temp;\n }\n }\n }\n \n \n for(i=0;i<=n-2;i++)\n {\n for(j=n-1;j>=1;j--)\n {\n if(qi[j]>qi[j-1])\n {\n temp=qi[j];\n qi[j]=qi[j-1];\n qi[j-1]=temp;\n }\n }\n }\n \n for(i=0;i=0;j--)\n {\n if(tian[j]>qi[i])\n {\n sum1=sum1+1;\n tian[j]=0;\n qi[i]=0;\n break;\n } \n }\n }\n \n for(i=0;ib[q1])\t\t\n\t\t{\n\t\t\twin++;\n\t\t\tt1++;\t\t\t\n\t\t\tq1++;\t\t\t\n\t\t\tcontinue;\n\t\t}\n\t\telse if(a[t2]>b[q2])\t\t\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt2--;\t\t\t\t\n\t\t\t\tq2--;\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\telse if(a[t2]==b[q1]) \n\t\t{\n\t\t\ttie++;\n\t\t\tt2--;\n\t\t\tq1++;\n\t\t}\n\t\telse if(a[t2]b[q1])\n\t{\n\t\twin++;\n\t}\n\telse\n\t{\n\t\tlose++;\n\t}\n\t\n \tmoney=200*win-200*lose;\n\t\n\t\tprintf(\"%d\\n\",money);\n\t\n\t\t\t\t}\n\t\t\t }\n\n\n}\n"} +{"label": "92", "index": "45771", "code": "\n main()\n{int N,i1,i2,j1,j2,k1,k2,ss,dd,judge,head1,head2,tail1,tail2,i;\n int t[1001];\n int s[1001]={0};\n int d[1001]={0};\n int q[1001];\n while(1)\n {ss=0;dd=0;\n int lose=0;\n scanf(\"%d\",&N);\n if(N==0)\n {break;}\n for(i1=0;i10;j--)\n {\n for(r=0;r0;j--)\n {\n for(r=0;rq[tail2])\n {tail1--;tail2--;ss++;}\n else if(t[tail1]==q[tail2]) \n { if(t[head1]==t[tail1])\n {head1++;head2++;}\n else if(t[head1]>t[tail1])\n {head2++;tail1--;lose++;}\n } \n else if(t[tail1]q[head2])\n {ss++;head1++;head2++;}\n \n \n }\n if(t[head1]>q[head2])\n {ss++;}\n else if(t[head1]qq[headq]) { ans++; headt++; headq++; continue; }\n\t\t\tif(tt[tailt-1]>qq[tailq-1]) { ans++; tailt--; tailq--; continue; }\n\t\t\tif(tt[tailt-1]=0;i--)\n {\n for(j=1;i+jT[0+j])\n Inco[i][j]=Inco[i+1][j-1]-1;\n else \n { if(Inco[i+1][j-1]-1>Inco[i][j-1]+0)\n Inco[i][j]=Inco[i+1][j-1]-1;\n else \n Inco[i][j]=Inco[i][j-1]+0;\n }\n }\n }\n printf(\"%d\\n\",Inco[0][n-1]*200);\n for(k=0;k<1000;k++)\n { T[k]=0; Q[k]=0; }\n }\n return 0;\n}\n"} +{"label": "92", "index": "45774", "code": "void main()\n{\n\tint n,a[1002],b[1002],i,j,k,l,max=-200001,m=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(a[j]>a[i]) \n\t\t\t{\n\t\t\t\tl=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=l;\n\t\t\t}\n\t\t\tif(b[j]>b[i]) \n\t\t\t{\n\t\t\t\tl=b[i];\n\t\t\t\tb[i]=b[j];\n\t\t\t\tb[j]=l;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tfor(i=1;i<=n;i++)\n\t\t{\n\t\t\tif(a[i]>b[i]) m=m+200;\n\t\t\telse if(a[i]max) max=m;\n\t\tfor(i=n;i>=1;i--) a[i+1]=a[i];\n\t\ta[1]=a[n+1];\n\t\tm=0;\n\t}\n\tprintf(\"%d\",max);max=-200001;\n\tfor(;;)\n\t{\n\tscanf(\"%d\",&n);\n\tif(n==0) break;\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tfor(i=1;i<=n;i++)\n\t\tscanf(\"%d\",&b[i]);\n\tfor(i=1;i<=n-1;i++)\n\t{\n\t\tfor(j=i+1;j<=n;j++)\n\t\t{\n\t\t\tif(a[j]>a[i]) \n\t\t\t{\n\t\t\t\tl=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=l;\n\t\t\t}\n\t\t\tif(b[j]>b[i]) \n\t\t\t{\n\t\t\t\tl=b[i];\n\t\t\t\tb[i]=b[j];\n\t\t\t\tb[j]=l;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;j<=n;j++)\n\t{\n\t\tfor(i=1;i<=n;i++)\n\t\t{\n\t\t\tif(a[i]>b[i]) m=m+200;\n\t\t\telse if(a[i]max) max=m;\n\t\tfor(i=n;i>=1;i--) a[i+1]=a[i];\n\t\ta[1]=a[n+1];\n\t\tm=0;\n\t}\n\tprintf(\"\\n%d\",max);max=-200001;\n\t}\n}\n\n"} +{"label": "92", "index": "45775", "code": "int Compare(const void *a, const void *b) { \n\treturn *(int *)a - *(int *)b;\n} \nint main() {\n\tint n;\n\tint q[1000],t[1000];\n\tint i,mon,qmax,tmax,qmin,tmin;\n\twhile (cin>>n) {\n\t\tif (n==0) return 0;\n\t\tfor (i=0;i>t[i];\n\t\tfor (i=0;i>q[i];\n\t\tmon=0;\n\t\tqsort(t,n,sizeof(int),Compare);\n\t\tqsort(q,n,sizeof(int),Compare);\n\t\ttmin=qmin=0;\n\t\ttmax=qmax=n-1;\n\t\tfor (i=0;iq[qmax]) {\n\t\t\t\tmon+=200;\n\t\t\t\ttmax--;\n\t\t\t\tqmax--;\n\t\t\t}\n\t\t\telse if (t[tmin]>q[qmin]) {\n\t\t\t\tmon+=200;\n\t\t\t\ttmin++;\n\t\t\t\tqmin++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (t[tmin]!=q[qmax])\n\t\t\t\t\tmon-=200;\n\t\t\t\ttmin++;\n\t\t\t\tqmax--;\n\t\t\t}\n\t\t}\n\t\tcout<q[qs])\n\t\t{\n\t\t\twin++;\n\t\t\tts++;\n\t\t\tqs++;\n\t\t}\n\t\telse if(t[ts]==q[qs])\n\t\t{\n\t\t\tif(t[n-te-1]>q[n-qe-1])\n\t\t\t{\n\t\t\t\tte++;\n\t\t\t\tqe++;\n\t\t\t\twin++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(t[n-te-1]==q[n-qe-1])\n\t\t\t{\n\t\t\t\tif(t[n-te-1]==q[qs])\n\t\t\t\t{\n\t\t\t\t\tequal++;\n\t\t\t\t\tqs++;\n\t\t\t\t\tte++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlose++;\n\t\t\t\t\tqs++;\n\t\t\t\t\tte++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlose++;\n\t\t\t\tqs++;\n\t\t\t\tte++;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\tlose++;\n\t\t\t\tte++;\n\t\t\t\tqs++;\n\t\t}\n\t}\n\t}\n\tprintf(\"%d\\n\",(win-lose)*200);\n\t}\n}\n\n\n"} +{"label": "92", "index": "45777", "code": "\nvoid order(int s[1000],int *p)\n{\n int j=0,r=0;\n for (j=*p-1;j>=1;j--)\n {\n for(r=0;r<=j-1;r++)\n {\n if(s[r]b[q1])\t\t\n\t\t{\n\t\t\twin++;\n\t\t\tt1++;\t\t\t\n\t\t\tq1++;\t\t\t\t\n\t\t\tcontinue;\n\t\t}\n\t\telse if(a[t2]>b[q2])\t\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt2--;\t\t\n\t\t\t\tq2--;\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\telse if(a[t2]==b[q1]) \n\t\t{\n\t\t\ttie++;\n\t\t\tt2--;\n\t\t\tq1++;\n\t\t}\n\t\telse if(a[t2]b[q1])\n\t{\n\t\twin++;\n\t}\n\telse\n\t{\n\t\tlose++;\n\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\tmoney=200*win-200*lose;\n\n\t\tprintf(\"%d\\n\",money);\n\t\n\t\t\t\t\t}\n \n \n}\n"} +{"label": "92", "index": "45778", "code": "main()\n{\n int n,i,j,a[1001],b[1001],t; \n while(1)\n {\n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=1;i<=n;i++)\n scanf(\"%d\",&a[i]);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&b[i]);\n for(i=1;ia[j])\n {\n t=a[i];\n a[i]=a[j];\n a[j]=t;\n }\n }\n }\n for(i=1;ib[j])\n {\n t=b[i];\n b[i]=b[j];\n b[j]=t;\n }\n }\n }\n int tie=0,win=0,s;\n j=1;\n for(i=1;i<=n;i++)\n {\n if(a[i]>b[j])\n {\n ++j;\n ++win;\n }\n else if(a[i]>b[j-1]&&tie>0)\n {\n --tie;\n ++win;\n }\n else if(a[i]==b[j])\n {\n ++j;\n ++tie;\n }\n }\n s=win*400+tie*200-n*200;\n printf(\"%d\\n\",s);\n }\n}"} +{"label": "92", "index": "45779", "code": "int comp(const void *p, const void *q)\n{\n return (*(int *)q - *(int *)p);\n}\nint main()\n{\n int n[50],tianji[50][1000],qiwang[50][1000],result[50],i,j,ii,jj,max,max0,nmax,cmax,cnmax;\n int tb,tm,qb,qm;\n i=0;\n while(1)\n {scanf(\"%d\",&n[i]);\n if (n[i]==0) break;\n for (j=0;j=tb;j--)\n {\n\n if(tianji[ii][j]>qiwang[ii][qm])\n {\n tm--;\n qm--;\n result[ii]=result[ii]+200;\n\n }\n else if (tianji[ii][j]qiwang[ii][qb])\n {tb++;\n qb++;\n result[ii]=result[ii]+200;\n }\n if(tianji[ii][tb]tb)\n {\n if(tianji[ii][j] kh[k])\n w++, j++, k++;\n else if(th[mxt] > kh[mxk])\n w++, mxt--, mxk--;\n else if(th[mxt] < kh[k])\n w--, mxt--, k++;\n else;\n }\n printf(\"%d\\n\", 200*w);\n }\n return 0;\n }\n\n void myrank(int *sz,int n)\n{\n\tint i,j,tem;\n\tfor(i=0;ib[j+i]) x++;\n if(a[j]m) m=x;\n }\n z=m*200;\n printf(\"%d\\n\",z);\n }\n }while(n!=0);\n}\n"} +{"label": "92", "index": "45782", "code": "\nint n;\nint th[1010],qh[1010];\n\nint comp(const void *lhs,const void *rhs)\n{\n\treturn *(int*)rhs - *(int*)lhs;\n}\n\nint main()\n{\n\twhile(1)\n\t{\n\t\tcin>>n;\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tmemset(th,0,sizeof(th));\n\t\tmemset(qh,0,sizeof(qh));\n\t\tfor(int i = 0; i < n; ++ i)\n\t\t\tcin>>th[i];\n\t\tfor(int i = 0; i < n; ++ i)\n\t\t\tcin>>qh[i];\n\n\t\tqsort(qh,n,sizeof(int),comp);\n\t\tqsort(th,n,sizeof(int),comp);\n\n\t\tint sum = 0;\n\t\tint max = -1000 * 200;\n\t\tfor(int k = 0; k < n; ++ k)\n\t\t{\n\t\t\tsum = 0;\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < n; ++ i)\n\t\t\t{\n\t\t\t\tif(th[(i - k + n) % n] > qh[i])\n\t\t\t\t{\n\t\t\t\t\tsum += 200;\n\t\t\t\t\t++ count;\n\t\t\t\t}\n\t\t\t\telse if(th[(i - k + n) % n] < qh[i])\n\t\t\t\t\tsum -= 200;\n\t\t\t}\n\t\t\tif(sum > max)\n\t\t\t\tmax = sum;\n\t\t\tif(count == n - k)\n\t\t\t\tbreak;\n\t\t}\n\t\tcout< s2[b]) return 200;\n if(s1[a] == s2[b]) return 0;\n return -200;\n}\n\nint main()\n{\n int i , j, ans, k;\n while(scanf(\"%d\", &n), n) {\n for(i = 0; i < n; i++)\n scanf(\"%d\", s1 + i);\n for(i = 0; i < n ;i++) \n scanf(\"%d\", s2 + i);\n sort(s1, s1 + n);\n sort(s2, s2 + n);\n ans = -1000000;\n \n for(i = 0; i < n; i++) {\n k = 0;\n for(j = i; j < n; j++) \n k += Cmp(j, j - i);\n k -= 200 * i;\n ans = max(ans, k);\n } \n printf(\"%d\\n\", ans);\n }\n}\n"} +{"label": "92", "index": "45784", "code": "const long maxn=1000;\n\nlong n;\nlong a[maxn+10],b[maxn+10];\n\nlong mark[maxn+10];\n\nvoid Sort(long a[]){\n long i,j,k;\n for(i=1;i0;scanf(\"%ld\",&n)){\n for(i=1;i<=n;i++){\n\t scanf(\"%ld\",a+i);\n }\n for(i=1;i<=n;i++){\n\t scanf(\"%ld\",b+i);\n }\n Sort(a);Sort(b);\n s1=1;\n t1=n;\n s2=1;\n t2=n;\n ans=0;\n while(t1>=s1){\n while((a[s1]>b[s2]) && (s1<=t1)){\n ans+=200;\n s1++;s2++;\n }\n while((a[t1]>b[t2]) && (s1<=t1)){\n ans+=200;\n t1--;t2--;\n }\n if(t1>=s1){\n if(a[s1]i;j--)\n if(x[j]>x[j-1])\n { t=x[j-1];\n x[j-1]=x[j];\n x[j]=t; }\n}\n \nint c(int a[],int b[],int m) \n{ int i; int j;\n if(a[m]>b[m])\n return (1);\n if(a[m]b[1])\n { for(i=1;i<=m-1;i++)\n { b[i]=b[i+1];\n a[i]=a[i+1]; }\n return (1); }\n if(a[m]==b[m]&&a[1]>n,n)\n {\n for(i=1;i<=n;i++)\n cin>>tian[i];\n qsort(tian+1,n,sizeof(tian[0]),cmp);\n for(j=1;j<=n;j++)\n cin>>king[j];\n qsort(king+1,n,sizeof(king[0]),cmp);\n int cnt = 0;\n tmax = 1;\n tmin = n;\n kmax = 1;\n kmin = n;\n for (i = 1; i <= n; i++)\n {\n if(tian[tmax] > king[kmax])\n {\n cnt++;\n tmax++;\n kmax++;\n }\n else if(tian[tmax] < king[kmax])\n {\n cnt--;\n tmin--;\n kmax++;\n }\n else\n {\n if(tian[tmin] > king[kmin])\n {\n cnt++;\n tmin--;\n kmin--;\n }\n else if(tian[tmin] y[hy])\n\t\t\t{\n\t\t\t\t++ans;\n\t\t\t\t++hx;\n\t\t\t\t++hy;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x[tx]>y[ty])\n\t\t\t{\n\t\t\t\t++ans;\n\t\t\t\t--tx;\n\t\t\t\t--ty;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x[hx]y[ty]) ++ans;\n\t\t\t++hx;\n\t\t\t--ty;\n\t\t}\n\t\tprintf(\"%d\\n\",ans*200);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45788", "code": "int cmp(const void *a,const void *b)\n{\n if(*((int*)a)>*((int*)b))return -1;\n else if(*((int*)a)<*((int*)b))return 1;\n else return 0;\n}\nint main()\n{\n int n,a[1000],b[1000],i,j,k,sum,s1,s2,i1,i2;\n scanf(\"%d\",&n);\n while(n)\n {\n sum=0;\n for(i=0;ib[i2])\n {\n sum++;\n i1--;\n i2--;\n }\n else\n {\n sum--;\n i1--;\n s2++;\n }\n }\n if(s1>i1)break;\n while(a[s1]!=b[s2]&&s1<=i1)\n {\n if(a[s1]>b[s2])\n {\n sum++;\n s1++;\n s2++;\n }\n else\n {\n sum--;\n i1--;\n s2++;\n }\n }\n if(s1>i1)break;\n if(a[s1]==b[s2]&&a[i1]==b[i2])\n {\n if(a[i1]>b[s2])sum++;\n else if(a[i1]i1)break;\n }\n printf(\"%d\\n\",sum*200);\n scanf(\"%d\",&n);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45789", "code": "int win(int x,int w[],int p[])\n { \n int i,topw=0,topp=0,downw=x-1,downp=x-1;\n int j,convert,converts;\n int win=0,same=0,fail=0;\n for (i=0;ip[downp])\n {\n win++;\n downw--;\n downp--;\n }\n else \n if (w[downw]p[topp])\n {\n win++;\n topw++;\n topp++;\n }\n else\n if(w[downw]==p[topp])\n break;\n else\n { \n fail++;\n topp++;\n downw--;\n } \n }\n /* printf (\"%d %d\\n\",win,fail);*/\n return (200*(win-fail));\n } \n\nmain ()\n{\n int n,i,j,k,get;\n scanf (\"%d\",&n);\n while (1)\n { \n if (n==0)\n break;\n else\n { \n int a[n];\n int b[n];\n for (i=0;i=i;j--)\n {\n if(masu[j-1]>masu[j])\n {\n t=masu[j-1];\n masu[j-1]=masu[j];\n masu[j]=t; \n } \n } \n }\n}\nmain()\n{\n for(;;)\n {\n int n,a[1100],b[1100],i,j,sub=0,x,y,k;\n scanf(\"%d\",&n);\n if(n==0) {break;}\n else\n { \n for(i=0;ib[j]) {sub=sub+1;i=i+1;j=j+1;}\n else if(a[i]==b[j])\n {\n if(a[x]<=b[y])\n {\n if (a[i]x)break;\n }\n printf(\"%d\\n\",200*sub);\n } \n }\n\n}\n"} +{"label": "92", "index": "45791", "code": "int max(int a,int b)\n{\n\treturn (a>b?a:b);\n}\nint cmp(const void *a,const void *b)\n{\n\treturn (*(int *)b - *(int *)a);\n}\nint g(int i,int j,int general[],int king[])\n{\n\tif(general[i-1] > king[j-1])\t\n\t\treturn 200;\n\telse if(general[i-1] < king[j-1])\n\t\treturn -200;\t\t\n\telse\t\t\t\t\n\t\treturn 0;\n}\n\nint f[2000][2000];\nint main()\n{\n\tint n;\n\twhile(cin >> n)\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tint i,j;\n\t\tint king[1002];//??\n\t\tint general[1002];//??\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin >> general[i];\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin >> king[i];\n\t\t\n\t\tqsort(general,n,sizeof(general[0]),cmp);\n\t\tqsort(king,n,sizeof(king[0]),cmp);\n\t\t\n/*??????*/\n\t\tfor(i = 0;i <= n;i++)\n\t\t\tf[0][i] = 0;\n\t\tfor(i = 1;i <= n;i++)\n\t\t\tf[i][0] = f[i-1][0] + g(n+1-i,i,general,king);\n//DP\n\t\tfor(i = 1;i <= n;i++)\n\t\t\tfor(j = 1;j <= i;j++)\n\t\t\t{\n\t\t\t\tif(i == j)\n\t\t\t\t\tf[i][j] = f[i-1][j-1] + g(j,i,general,king);\n\t\t\t\telse\n\t\t\t\t\tf[i][j] = max(f[i-1][j]+g(n-(i-j)+1,i,general,king),f[i-1][j-1]+g(j,i,general,king));\n\t\t\t} \n\t\tint temp = -200000000;\n\t\tfor(i = 0;i <= n;i++)\n\t\t\ttemp = max(temp,f[n][i]);\n\n\t\tcout << temp << endl;\n\t}\n\treturn 0;\n}\n\n\n\t"} +{"label": "92", "index": "45792", "code": "int main(int argc, char* argv[])\n{\n\tint n;\n\twhile(1)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0){\n\t\t\tbreak;\n\t\t}else{\n\t\t\tint qiwang[1000];\n\t\t\tint tianji[1000];\n\t\t\tint win[1000];\n\t\t\tint i,k;\n\t\t\tfor(i=0;iqiwang[i]){\n\t\t\t\t\t\tget=get+200;\n\t\t\t\t\t}else if(tianji1[i]max){\n\t\t\t\t\tmax=win[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",max);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45793", "code": "\nint compare(const void * p1, const void * p2) // ?????????\n{\n\treturn *((int *)p2) - * ((int *)p1);\n};\nint main()\n{\n\tint n;\n\tint hq[10002]; // ??????\n\tint ht[10002]; // ??????\n\tint i, j, head, ans, m;\n\tint tailt, tailq;\n\twhile (1)\n\t{\n\t\tcin >> n;\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i++)\n\t\t{\n\t\t\tcin >> ht[i];\n\t\t}\n\t\tqsort(ht, n, sizeof(int), compare);\n\t\tfor (i = 0; i < n; i++)\n\t\t{\n\t\t\tcin >> hq[i];\n\t\t}\n\t\tqsort(hq, n, sizeof(int), compare);\n\t\thead = 0;\n\t\ttailt = tailq = n - 1;\n\t\tans = 0;\n\t\tfor(i=0;ihq[i])\n {\n head++;\n ans+=200;\n }\n else if(ht[head]=head;j--,m--)\n {\n if(ht[j]>hq[m])\n {\n ans+=200;\n tailt--;\n tailq--;\n }\n else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ht[j]tailt) break;\n }\n\t\tcout << ans << endl;\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "92", "index": "45794", "code": "\nvoid main()\n{\n\t\n\n\twhile(1)\n\t{\n\t\tint a[1024]={0},b[1024]={0},choose[1024]={0},bchoose[1024]={0};\n\t\tint n;\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\tbreak;\n\n\n\t\tint i,j;\n\n\t\tfor(i=0;i=a[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=a[j];\n\t\t\t\t\ta[j]=a[i];\n\t\t\t\t\ta[i]=temp;\n\t\t\t\t}\n\t\t\t\tif(b[j]>=b[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=b[j];\n\t\t\t\t\tb[j]=b[i];\n\t\t\t\t\tb[i]=temp;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\tint win=0,deuce=0,lose=0;\n\t\t\n\t\tint heada=0,headb=0,taila=n-1,tailb=n-1;\n\t\twhile(heada<=taila&&headb<=tailb)\n\t\t{\n\t\t\tif(a[heada]>b[headb])\n\t\t\t\t{\n\t\t\t\t\tchoose[heada]=headb;\n\t\t\t\t\tbchoose[headb]=1;\n\t\t\t\t\twin++;\n\t\t\t\t\theada++;\n\t\t\t\t\theadb++;\n\t\t\t\t}\n\t\t\t\telse if(a[taila]>b[tailb])\n\t\t\t\t{\n\t\t\t\t\tchoose[taila]=tailb;\n\t\t\t\t\tbchoose[tailb]=1;\n\t\t\t\t\twin++;\n\t\t\t\t\ttaila--;\n\t\t\t\t\ttailb--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tchoose[taila]=headb;\n\t\t\t\t\tbchoose[headb]=1;\n\t\t\t\t\tif(a[taila]> nHorses && nHorses)\n\t{\n\t\tsilver = 0;\n\t\tfor(int i = 0; i < nHorses; i ++)\n\t\t\tcin >> TianJi[i];\n\t\tqsort(TianJi, nHorses, sizeof(TianJi[0]), Cmp);\n\t\tfor(int i = 0; i < nHorses; i ++)\n\t\t\tcin >> QiKing[i];\n\t\tqsort(QiKing, nHorses, sizeof(QiKing[0]), Cmp);\n\t\tint Head = 0;\n\t\tint Tail = nHorses - 1;\n\t\tfor(int i = 0; i < nHorses; i ++)\n\t\t{\n\t\t\tif(TianJi[Head] > QiKing[i])\n\t\t\t{\n\t\t\t\tHead ++;\n\t\t\t\tsilver += 200;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(TianJi[Head] < QiKing[i])\n\t\t\t{\n\t\t\t\tTail --;\n\t\t\t\tsilver -= 200;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(i == nHorses - 1) break;\n\t\t\tint sum1 = 0;\n\t\t\tint sum2 = -200;\n\t\t\tfor(int j = i + 1; j < nHorses; j ++)\n\t\t\t{\n\t\t\t\tif(TianJi[Head + j - i] > QiKing[j])sum1 += 200;\n\t\t\t\telse\n\t\t\t\tif(TianJi[Head + j - i] < QiKing[j])sum1 -= 200;\n\n\t\t\t\tif(TianJi[Head + j - i - 1] > QiKing[j]) sum2 += 200;\n\t\t\t\telse\n\t\t\t\tif(TianJi[Head + j - i - 1] < QiKing[j]) sum2 -= 200;\n\t\t\t}\n\t\t\tif(sum1 > sum2)\n\t\t\t{\n\t\t\t\tHead ++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tTail --;\n\t\t\t\tsilver -= 200;\n\t\t\t}\n\t\t}\n\t\tcout << silver << endl;\n\t}\n}\n"} +{"label": "92", "index": "45796", "code": "int t[1000],q[1000];\nint MyCompare(const void *e1,const void *e2)\n{\n\treturn *(int *)e2 - *(int *)e1;\n}\nint main()\n{\n\tint n,i,tFirst,tLast,qFirst,qLast,ans;\n\twhile(cin >> n)\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfor(i = 0;i < n;i ++)\n\t\t\tcin >> t[i];\n\t\tfor(i = 0;i < n;i ++)\n\t\t\tcin >> q[i];\n\t\tqsort(t,n,sizeof(int),MyCompare);\n\t\tqsort(q,n,sizeof(int),MyCompare);\n\t\ttFirst = qFirst = 0;\n\t\ttLast = qLast = n - 1;\n\t\tans = 0;\n\t\twhile(tFirst <= tLast)\n\t\t{\n\t\t\tif(t[tLast] > q[qLast])\n\t\t\t{\n\t\t\t\ttLast --;\n\t\t\t\tqLast --;\n\t\t\t\tans += 200;\n\t\t\t}\n\t\t\telse if(t[tLast] < q[qLast])\n\t\t\t{\n\t\t\t\ttLast --;\n\t\t\t\tqFirst ++;\n\t\t\t\tans -= 200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(t[tFirst] > q[qFirst])\n\t\t\t\t{\n\t\t\t\t\ttFirst ++;\n\t\t\t\t\tqFirst ++;\n\t\t\t\t\tans += 200;\n\t\t\t\t}\n\t\t\t\telse if(t[tFirst] < q[qFirst])\n\t\t\t\t{\n\t\t\t\t\ttLast --;\n\t\t\t\t\tqFirst ++;\n\t\t\t\t\tans -= 200;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(t[tLast] > q[qFirst])\n\t\t\t\t\t{\n\t\t\t\t\t\ttLast --;\n\t\t\t\t\t\tqFirst ++;\n\t\t\t\t\t\tans += 200;\n\t\t\t\t\t}\n\t\t\t\t\telse if(t[tLast] < q[qFirst])\n\t\t\t\t\t{\n\t\t\t\t\t\ttLast --;\n\t\t\t\t\t\tqFirst ++;\n\t\t\t\t\t\tans -= 200;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttLast --;\n\t\t\t\t\t\tqFirst ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << ans << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45797", "code": "\n\n\tint T[1005]={0};\n\tint Q[1005]={0};\n\tint Save[1005][1005]={0};\nint main()\n{\n\n\tint Num=0;\n\tint i=0;\n\tint Temp1=0;\n\tint Temp2=0;\n\t\n\tint j=0;\n\tint Ans=-1000000;\n\n\twhile(cin>>Num && Num!=0)\n\t{\n\t\tAns=-2000000;\n\t\tmemset(Save,0,sizeof(Save));\n\t\tmemset(T,0,sizeof(T));\n\t\tmemset(Q,0,sizeof(Q));\n\n\tfor (i=1;i<=Num;i++)\n\t{\n\t\tcin>>T[i];\n\t}\n\tfor (i=1;i<=Num;i++)\n\t{\n\t\tcin>>Q[i];\n\t}\n\n\tsort(T+1,T+Num+1);\n\tsort(Q+1,Q+Num+1);\n\n\treverse(T+1,T+Num+1);\n\treverse(Q+1,Q+Num+1);\n\t\n\n\tfor (i=1;i<=Num;i++)\n\t{\n\t\tj=0;\n\t\tTemp1=Save[i-1][j];\n\n\t\tif ( T[Num-(i-1-j)] - Q[i] <0)\n\t\t{\n\t\t\tTemp1-=200;\n\t\t}\n\t\tif ( T[Num-(i-1-j)] - Q[i] >0)\n\t\t{\n\t\t\tTemp1+=200;\n\t\t}\n\n\t\t\tSave[i][j]=Temp1;\n\n\n\t//\tcout<<\"(\"<0)\n\t\t\t{\n\t\t\t\tTemp1+=200;\n\t\t\t}\n\t\t\tif ( T[j] - Q[i] < 0)\n\t\t\t{\n\t\t\t\tTemp2-=200;\n\t\t\t}\n\t\t\tif ( T[j] - Q[i] > 0)\n\t\t\t{\n\t\t\t\tTemp2+=200;\n\t\t\t}\n\n\t\t\tif (i<=j)\n\t\t\t{\n\t\t\t\tTemp1=-2000000;\n\t\t\t}\n\t\t\tif (Temp1> Temp2)\n\t\t\t{\n\t\t\t\tSave[i][j]=Temp1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSave[i][j]=Temp2;\n\t\t\t}\n\t\t//\t\t\tcout<<\"(\"< Ans)\n\t\t{\n\t\t\tAns=Save[Num][i];\n\t\t}\n\t}\n\t\t\n\tcout<b[i])\n\t\t\t\t{\n\t\t\t\t\tm++;\n\t\t\t\t}\n\t\t\t\telse if(a[i]b[n-1])\n\t\t\t\t\t{\n\t\t\t\t\t\tm++;\n\t\t\t\t\t\tn--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tp++;\n\t\t\t\t\tq = n-1;\n\t\t\t\t\twhile(q>i)\n\t\t\t\t\t{\n\t\t\t\t\t\ta[q] = a[q-1];\n\t\t\t\t\t\tq--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\twhile(a[n-1]>b[n-1])\n\t\t\t\t\t{\n\t\t\t\t\t\tm++;\n\t\t\t\t\t\tn--;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(a[i]!=a[n-1])\n\t\t\t {\n\t\t\t\t q = n-1;\n\t\t\t\t\twhile(q>i)\n\t\t\t\t\t{\n\t\t\t\t\t\ta[q] = a[q-1];\n\t\t\t\t\t\tq--;\n\t\t\t\t\t}\n\t\t\t\t\tp++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\ti++;\n\t\t\t}\n\t\t\tint l = 200 * m - 200 * p;\n\t\t\tprintf(\"%d\\n\",l);\n\t\t}\n\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45799", "code": "int f(int n,int t[2000],int q[2000])\n{\n int m=0,i=0; \n for(i=n;i!=1;i--) \n {\n if(t[0]>q[0]) \n {\n m=m+200;\n for(int k=0;kq[i-1]) \n {\n m=m+200;\n }\n else \n {\n\n if(t[i-1]q[0])\n {\n m=m+200; \n }\n else\n m=m; \n }\n return m;\n}\nint main()\n{\n int n=2,t[2000],q[2000];\n for(int k=0;n!=0;k++) \n {\n scanf(\"%d\",&n);\n if(n!=0)\n\t\t{\n for(int i=0;ib[t1])\n\t\t \tsum++;\n\t\t \tt2++;k1--;sum1++;}\n\t else if (a[t2]!=b[k2])\n\t {if (a[t2]>b[k2])\n\t\t {sum++;t2++;k2++;sum1++;}\n\t\t else \n\t\t {if (a[t2]>b[k1])\n\t\t sum++;\n\t\t else if(a[t2]b[k1])\n\t\t \t\t {sum++;t1--;k1--;}\n\t\t \t else \n\t\t \t\t {if (a[t2]b[k1])\n\t\t\t\t sum++;\n\t\t\t\t t2++;\n\t\t\t\t k1--;}\n\t\t sum1++;}\n\t\t}while(sum1!=n);\n\t printf (\"%d\\n\",200*sum);}\n\t }while(n!=0);\n}"} +{"label": "92", "index": "45801", "code": "\nint h1[1000]; //horses belongs to tianji\nint h2[1000]; //horses belongs to qiwang\n\nvoid Sort(int h[],int n) //sort the horse \n{\n //QuickSort(h,0,n-1);\n InsertSort(h,n);\n}\n\n\nvoid InsertSort(int A[],int n)\n{\n int i,j,key;\n for(j=1;j= 0 && A [i] > key )\n {\n A[i+1]=A[i];\n i=i-1;\n }\n A[i+1]=key;\n }\n}\n\n\nvoid QuickSort(int array[],int left,int right)\n{\n int pivot,leftIdx=left,rightIdx=right,temp;\n if( right - left > 0 ) \n pivot = (left + right) / 2;\n while(leftIdx <= pivot && rightIdx >= pivot)\n {\n while( array[leftIdx] < array[pivot] && leftIdx <= pivot )\n leftIdx = leftIdx + 1;\n while( array[rightIdx] > array[pivot] && rightIdx >= pivot )\n rightIdx = rightIdx - 1;\n temp = array[leftIdx];\n array[leftIdx] = array[rightIdx];\n array[rightIdx] = temp;\n leftIdx = leftIdx + 1;\n rightIdx = rightIdx - 1;\n if(leftIdx - 1 == pivot)\n {\n pivot = rightIdx + 1;\n rightIdx = rightIdx + 1;\n }\n else if (rightIdx + 1 == pivot)\n {\n pivot = leftIdx - 1;\n leftIdx = leftIdx - 1;\n } \n }\n QuickSort(array, left, pivot - 1);\n QuickSort(array, pivot + 1, right); \n}\n\n// return the money tianji can win\nint Race(int n)\n{\n\tint i,Nwin=0;\n\tint begin1,end1; //identify the horse\n\tint begin2,end2;\n begin1=n-1; begin2=n-1;\n\tend1=0; end2=0;\n Sort(h1,n);\n Sort(h2,n); \n\tfor(i=0;ih2[begin2] ) //tianji's horse better than qiwang's \n\t {\n\t\t //tianji win 1 race\n\t Nwin++;\n\t\t begin2--;\n begin1--;\t\t \n\t }\n\t else if( h1[end1]>h2[end2] ) //tianji's horse better than qiwang's \n\t {\n Nwin++;\n end1++;\n\t\t end2++;\n\t }\n else\n {\n if( h1[end1]=0;i--)\n\t{\n\t\tscanf(\"%d\",&(h1[i]));\n\t}\n for(i=n-1;i>=0;i--)\n\t{\n\t\tscanf(\"%d\",&(h2[i]));\n\t}\n}\nint main()\n{\n\tint i,n=0;\n\tint result[50000];\n\tscanf(\"%d\",&i);\n while(i)\n\t{\n\t\tParseHorse(i);\n\t\tresult[n]=Race(i);\n\t\tn++;\n\t\tscanf(\"%d\",&i);\n\t}\n for(i=0;i>n && n>0)\n\t{\n\t\tfor(int i=0; i>tian[i];\n\t\tfor(int i=0; i>king[i];\n\n\t\tqsort(tian,n,sizeof(int),cmpsmall);\n\t\tqsort(king,n,sizeof(int),cmpsmall);\n\n\t\tint tianSlow=0, tianFast=n-1;\n\t\tint kingSlow=0, kingFast=n-1;\n\t\tint win=0, lose=0, draw=0;\n\t\twhile(tianSlowking[kingSlow])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\ttianSlow++;\n\t\t\t\tkingSlow++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// ????????????????????????????\n\t\t\telse if(tian[tianSlow]king[kingFast])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\ttianFast--;\n\t\t\t\tkingFast--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// ??????????????????????????????????\n\t\t\telse if(tian[tianFast]g[c])\n {\n a++; \n k++;\n c++;\n }\n else if(f[k]<=g[c])\n {\n if(f[h]>g[x])\n {\n a++;\n h--;\n x--;\n }\n else if(f[h]<=g[x])\n {\n if(f[h]> n)\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfor(int i = 0;i < n;i++)\n\t\t\tcin >> t[i];\n\t\tfor(int i = 0;i < n;i++)\n\t\t\tcin >> q[i];\n\t\tqsort(t,n,sizeof(int),mycmp);\n\t\tqsort(q,n,sizeof(int),mycmp);\n\t\tint x = 0;\n\t\tint xx = n -1;\n\t\tint yy = n - 1;\n\t\tint y = 0;\n\t\tint p = 0;\n\t\tint sum = 0;\n\t\twhile(p < n)\n\t\t{\n\t\t\tif(t[x] q[yy])\n\t\t\t\t{\n\t\t\t\t\txx--;\n\t\t\t\t\tyy--;\n\t\t\t\t\tsum += 200;\n\t\t\t\t}\n\t\t\t\telse if(t[xx] < q[yy])\n\t\t\t\t{\n\t\t\t\t\txx--;\n\t\t\t\t\ty++;\n\t\t\t\t\tsum-=200;\n\t\t\t\t}\n\t\t\t\telse if(t[xx] == q[yy])\n\t\t\t\t{\n\t\t\t\t\tif(t[xx] == q[y])\n\t\t\t\t\t{\n\t\t\t\t\t\txx--;\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsum-=200;\n\t\t\t\t\t\txx--;\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(t[x] > q[y])\n\t\t\t{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t\tsum += 200;\n\t\t\t}\n\t\t\tp++;\n\t\t}\n\t\tcout << sum << endl;\n\t}\n}\n"} +{"label": "92", "index": "45805", "code": "int main(void)\n{\n int n,i,j,t,a[1001],b[1001];\n long f[2][1001],max;\n int ss(int x,int y);\n\n scanf(\"%d\",&n);\n while(n!=0){\n for(i=1;i<=n;i++) scanf(\"%d\",&a[i]);\n for(i=1;i<=n;i++) scanf(\"%d\",&b[i]);\n f[0][0]=0;\n for(i=1;if[1-t][j]+ss(a[n-(i-j)+1],b[i]))\n\t f[t][j]=f[1-t][j-1]+ss(a[j],b[i]);\n\t else f[t][j]=f[1-t][j]+ss(a[n-(i-j)+1],b[i]);\n }\n max=f[t][0];\n for(i=1;i<=n;i++)\n\t if (f[t][i]>max) max=f[t][i];\n printf(\"%ld\\n\",max);\n scanf(\"%d\",&n);\n }\n}\nint ss(int x,int y)\n{\n if (x>y) return(200);\n else if(x==y) return(0);\n else return(-200);\n}"} +{"label": "92", "index": "45806", "code": "\n\nint sa[2000];\nint sb[2000];\n\nint main()\n{\n\tint n;\n\twhile(scanf(\"%d\",&n) && n)\n\t{\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&sa[i]);\n\t\t}\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&sb[i]);\n\t\t}\n\t\tsort(&sa[1],&sa[n+1]);\n\t\tsort(&sb[1],&sb[n+1]);\n\n\t\tint stpA = 1;\n\t\tint edpA = n;\n\t\tint stpB = 1;\n\t\tint edPB = n;\n\t\tint result = 0;\n\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tif(sa[stpA] > sb[stpB])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\tstpA++;\n\t\t\t\tstpB++;\n\t\t\t}\n\t\t\telse if(sa[edpA] > sb[edPB])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\tedpA--;\n\t\t\t\tedPB--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(sa[stpA] > sb[edPB])\n\t\t\t\t{\n\t\t\t\t\tresult += 200;\n\t\t\t\t}\n\t\t\t\telse if(sa[stpA] < sb[edPB])\n\t\t\t\t{\n\t\t\t\t\tresult -= 200;\n\t\t\t\t}\n\t\t\t\tstpA ++;\n\t\t\t\tedPB --;\n\t\t\t}\n\t\t}\n\t\tcout<Q[j])\n\t\t\t {\n\t\t\t\twin++;\t\n\t\t\t\tj++;\t\n\t\t\t\t}\t\n\t\t\telse\n\t\t\t {\n\t\t\t if(T[i]Q[N-count2])\n\t\t\t\t {\n\t\t\t\t\t win++;\n\t\t\t\t\t count1++;\n\t\t\t\t\t count2++;\n\t\t\t\t\t i--;\t\t\n\t\t\t\t\t }\t\n\t\t\t\t\telse\n\t\t\t\t\t {\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(T[N-count1]=0)\n {\n if (*ai>*bi)\n {\n ai--;\n bi--;\n win++;\n }\n else if (*aj>*bj)\n {\n aj++;\n bj++;\n win++;\n }\n else\n {\n if (*aj<*bi)\n lose++;\n aj++;\n bi--;\n }\n \n }\n m[t]=200*(win-lose);\n t++;\n scanf(\"%d\",&n);\n }\n for (t=0;t=t[i]) \n { \n c=t[i]; \n t[i]=t[j]; \n t[j]=c; \n } \n } \n } \n for(j=1;j<=a;j++) \n { \n for(i=1+j;i<=a;i++) \n { \n if(q[j]>=q[i]) \n { \n c=q[i]; \n q[i]=q[j]; \n q[j]=c;\n } \n } \n } \n for(i=1;i<=a;i++) \n { \n for(j=a;j!=0;j--) \n { \n if(t2[i]==0 && q2[j]==0) \n if(t[i]>q[j]) \n { \n t2[i]=1; \n q2[j]=1; \n win=win+1; \n break; \n } \n } \n } \n for(i=1;i<=a;i++) \n { \n if(t2[i]==0) \n for(j=1;j<=a;j++) \n { \n if(q2[j]==0) \n if(t[i]==q[j]) \n { \n ping=ping+1;\n break; \n } \n } \n }\n printf(\"%d\\n\",400*win-200*a+200*ping);\n } \n return 0; \n} \n\n\n"} +{"label": "92", "index": "45810", "code": "\nvoid main()\n{\n\tint vs(int a,int b); \n\tint a[1000],b[1000];\n\tint n,i,max=-1000,j,t,r,s,p=0;\n\t\t\t scanf(\"%d\",&n);\n\t\t\t while(n!=0)\n\t\t\t {for(i=0;it,j>t;i--,j--)\n\t\t {\n\t\t\t if(a[i]>a[i-1]) {s=a[i];a[i]=a[i-1];a[i-1]=s;}\n\t\t\t if(b[j]>b[j-1]) {r=b[j];b[j]=b[j-1];b[j-1]=r;}\n\t }}\n for(j=0;jmax) max=p;}\n printf(\"%d\\n\",max*200); scanf(\"%d\",&n);}\n}\nint vs(int a,int b)\n{\n\tint m;\n\tif(a>b) m=1;\n\telse if(a==b) m=0;\n\telse if(ab[j]) sum=sum+200;\n else if(a1[j]king[rking]) {\n\t\t\t\tmoney+=200;\n\t\t\t\trtian--;\n\t\t\t\trking--;\n\t\t\t}\n\t\t\telse if(tian[ltian]>king[lking])\n\t\t\t{\n\t\t\t\tmoney+=200;\n\t\t\t\tltian++;\n\t\t\t\tlking++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (tian[ltian]>king[rking]) {\n\t\t\t\t\tmoney+=200;\n\t\t\t\t\tltian++;\n\t\t\t\t\trking--;\n\t\t\t\t}\n\t\t\t\telse if(tian[ltian]==king[rking])\n\t\t\t\t{\n\t\t\t\t\tltian++;\n\t\t\t\t\trking--;\n\t\t\t\t}\n\t\t\t\telse if(tian[ltian] b[j])\n\t\t\t{\n\t\t\t\ttotal = total + 200;\n\t\t\t\ti ++;\n\t\t\t\tj ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (a[i] < b[j])\n\t\t\t\t{\n\t\t\t\t total = total - 200;\n\t\t\t\t\tnum1 --;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor (k1 = num1,k2 = num2;k1 > i;k1 --,k2 --)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a[k1] > b[k2]) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttotal = total + 200;\n\t\t\t\t\t\t\tnum1 --;\n\t\t\t\t\t\t\tnum2 --;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (a[k1] < b[j]) total = total - 200;\n\t\t\t\t\t\t\tnum1 = k1;\n\t\t\t\t\t\t\tnum2 = k2;\n\t\t\t\t\t\t\tj ++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tnum1 --;\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\t\tcout << total << endl;\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "92", "index": "45814", "code": "/*\n * tianjisaima.cpp\n *\n * Created on: 2012-3-19\n * Author: Hijack\n */\n\nconst int MAX = 1005;\nint a[MAX],b[MAX];\nint cmp(int a, int b)\n{\n\treturn a > b;\n}\nint main(){\n int n,i;\n while(cin>>n && n)\n {\n \tfor(i = 0; i < n; i++)\n \t\tcin>>a[i];\n \tfor(i = 0; i < n; i++)\n \t\tcin>>b[i];\n \tsort(a,a+n,cmp);\n \tsort(b,b+n,cmp);\n int num = 0;\n int al = 0, bl = 0;\n int ar = n-1,br = n-1;\n \twhile(al <= ar)\n \t{\n \t\tif(a[ar] > b[br])\n \t\t{\n \t\t\tar--;\n \t\t\tbr--;\n \t\t\tnum += 200;\n \t\t}\n \t\telse if(a[ar] < b[br])\n \t\t{\n \t\t\tar--;\n \t\t\tbl++;\n \t\t\tnum -= 200;\n \t\t}\n \t\telse if(a[ar] == b[br])\n \t\t{\n \t\t\tif(a[al] > b[bl])\n \t\t\t{\n \t\t\t\tal++;\n \t\t\t\tbl++;\n \t\t\t\tnum += 200;\n \t\t\t}\n \t\t\telse if(a[al] < b[bl])\n \t\t\t{\n \t\t\t\tar--;\n \t\t\t\tbl++;\n \t\t\t\tnum -= 200;\n \t\t\t}\n \t\t\telse if(a[al] == b[bl])\n \t\t\t{\n \t\t\t\tif(a[ar] == b[bl])\n \t\t\t\t{\n \t\t\t\t\tar--;\n \t\t\t\t\tbl++;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tar--;\n \t\t\t\t\tbl++;\n \t\t\t\t\tnum -= 200;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \tcout<>n;\n\t\tif(n==0)break;\n\t\tfor(int i=0;i>b[i];\n\t\tfor(int i=0;i>a[i];\n\t\tsort(a,a+n);\n\t\tsort(b,b+n);\n\t\tint re=0;\n\t\tint a1=0,a2=n-1;\n\t\tint b1=0,b2=n-1;\n\t\tint pa,pb;\n\t\tfor(int i=0;ia[a1]){\n\t\t\t\tpa=a1++;\n\t\t\t\tpb=b1++;\n\t\t\t}else if(b[b2]>a[a2]){\n\t\t\t\tpa=a2--;\n\t\t\t\tpb=b2--;\n\t\t\t}else{\n\t\t\t\tpa=a2--;\n\t\t\t\tpb=b1++;\n\t\t\t}\n\t\t\tif(b[pb]>a[pa]){\n\t\t\t\tre++;\n\t\t\t}else if(b[pb]b[k])\n {\n t++;\n j++;\n k++;\n }\n else if(a[j]b[tailq])\n {\n t++;\n tailt--;\n tailq--;\n }\n else if(a[tailt]==b[tailq])\n {\n if(a[tailt]==b[k])\n {\n p++;\n tailt--;\n k++;\n }\n else\n {\n q++;\n tailt--;\n k++;\n }\n }\n else if(a[tailt]q)\n {\n profit=200*(t-q);\n printf(\"%d\\n\",profit);\n }\n else if(ta[k])\n\t\t\t\tk=j;\n\t\tif (i!=k)\n\t\t\t{t=a[i];\t\n\t\t\ta[i]=a[k];\n\t\t\ta[k]=t;}\n\t}\n}\n\nmain()\n{\tint n,i,j,k,l,s;\n\tint t[MAX],q[MAX];\n\twhile (1)\n\t\t{scanf(\"%d\",&n);\n\t\tif (n==0)\n\t\t\tbreak;\n\t\tfor (i=0;iq[j])\n\t\t\t\t\t{i++;\n\t\t\t\t\tj++;\n\t\t\t\t\ts++;}\n\t\t\t\telse if (t[l-j+i]>q[l])\n\t\t\t\t\t{l--;\n\t\t\t\t\ts++;}\n\t\t\t\t/*else if (t[l-j+i]array[1][N-1]) benefit[1][0]=200;\n\t\telse benefit[1][0]=0;\n\t\tif(array[0][N-1]array[1][N-1]) benefit[1][1]=200;\n\t\telse benefit[1][1]=0;\n\t\tfor(i=2;i<=N;i++)\n\t\t\tfor(j=0;j<=i;j++)\n\t\t\t{\n\t\t\t\tint tmp1=-INF,tmp2=-INF;\n\t\t\t\tif(i>j)\n\t\t\t\t{\n\t\t\t\t\ttmp1=benefit[i-1][j];\n\t\t\t\t\tif(array[0][i-j-1]>array[1][N-i]) tmp1+=200;\n\t\t\t\t\telse if(array[0][i-j-1]0)\n\t\t\t\t{\n\t\t\t\t\ttmp2=benefit[i-1][j-1];\n\t\t\t\t\tif(array[0][N-j]>array[1][N-i]) tmp2+=200;\n\t\t\t\t\telse if(array[0][N-j]> n; n > 0; cin >> n)\n\t{\n\t\tfor (i = 0; i < n; ++i) cin >> tianJi[i];\n\t\tfor (i = 0; i < n; ++i) cin >> kingQi[i];\n\n\t\tsort(tianJi, tianJi + n);\n\t\tsort(kingQi, kingQi + n);\n\n\t\tresult = 0;\n\t\tleftJi = leftQi = 0;\n\t\trightJi = rightQi = n - 1;\n\n\t\twhile (leftJi <= rightJi)\n\t\t{\n\t\t\tif (tianJi[leftJi] > kingQi[leftQi])\n\t\t\t{\n\t\t\t\t++leftJi;\n\t\t\t\t++leftQi;\n\t\t\t\tresult += 200;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (tianJi[rightJi] > kingQi[rightQi])\n\t\t\t{\n\t\t\t\t--rightJi;\n\t\t\t\t--rightQi;\n\t\t\t\tresult += 200;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (tianJi[leftJi] < kingQi[rightQi]) result -= 200;\n\t\t\t++leftJi;\n\t\t\t--rightQi;\n\t\t}\n\n\t\tcout << result << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45820", "code": "main()\n{\n for(;;)\n {\n int a[1050]={0},b[1050]={0};\n int i,j,k,t,h,m,w1=0,w2=0,w3=0;\n int n;\n scanf(\"%d\",&n);\n if(n==0)\n break;\n else\n {\n for(i=1;i<=n;i++)\n scanf(\"%d\",&a[i]);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&b[i]);\n for(i=1;i<=n-1;i++)\n {\n for(j=i+1;j<=n;j++)\n {\n if(a[i]>a[j])\n t=a[i],a[i]=a[j],a[j]=t;\n if(b[i]>b[j])\n t=b[i],b[i]=b[j],b[j]=t;\n }\n }\n for(i=1,h=n,m=n,j=1;i<=m;)\n { \n for(;j<=h;)\n {\n if(a[i]>b[j])\n {\n w1++;\n j++;\n i++;\n break;\n }\n if(a[i]b[h])\n {\n w1++;\n m=m-1,h=h-1;\n break;\n }\n if(a[m]b[j-i]) d+=-1;\n \n else if(a[j]c)?d:c;\n\n}\nprintf(\"%d\\n\",c*200);}\n}\n"} +{"label": "92", "index": "45822", "code": "\n\n\nint mycmp(const void* a,const void* b){\n\treturn *((int*) b)-*((int*) a);\n}\n\nint match(int* tianji,int* king,int n){\n\tif(n==0)return 0;\n\tif(tianji[n-1]>king[n-1])return match(tianji,king,n-1)+200;//??\n\telse if(tianji[n-1]king[0])return match(tianji+1,king+1,n-1)+200;//??\n\t\telse{ \n\t\t\tif(tianji[n-1]==king[0])return 0;\n\t\t\telse return match(tianji,king+1,n-1)-200;//??\n\t\t}\n\t}\n}\n\n\nint main(){\n\tint tianji[MAX];\n\tint king[MAX];\n\tint n;\n\tint i;\n\n\twhile(cin>>n){\n\t\tif(n==0)break;\n\t\tfor(i=0;i>tianji[i];\n\t\tfor(i=0;i>king[i];\n\t\tqsort(tianji,n,sizeof(int),mycmp);\n\t\tqsort(king,n,sizeof(int),mycmp);\n\t\tcout<>n && n!=0){\n for(i=0;i>t[i];\n for(i=0;i>q[i];\n qs=ts=0;\n qe=te=n-1;\n sort(q,q+n);\n sort(t,t+n);\n int price=0;\n while(n--){\n if(t[te]>q[qe]){\n price++;\n te--;\n qe--;\n }\n else if(t[ts]>q[qs]){\n price++;\n qs++;\n ts++;\n }\n else\n {\n if(t[ts]>q[qe]){\n price+=(qe+1-qs);\n break;\n }\n else if(t[ts]Q[f2])\n {\n w++; \n f2++;\n f1++;\n }\n else \n {\n if(T[n-1-b1]>Q[n-1-b2])\n {\n w++;\n b1++;\n b2++;\n }\n else\n { \n if(T[n-1-b1]==Q[f2])\n break;\n else \n {\n l++;\n b1++;\n f2++;\n }\n } \n }\n }\n money=200*(w-l);\n printf(\"%d\\n\",money);\n }\n }\n}"} +{"label": "92", "index": "45825", "code": "int main()\n{\n int t[1000]={0},q[1000]={0},n,j,i,e,f;\n\tint t1,t2,q1,q2,k,money;\n\twhile (1)\n\t{\t\n\tscanf(\"%d\",&n);\n\tif (n==0)\n\t\tbreak;\n for (i=0;it[j+1])\n\t\t\t{\n\t\t\t\te=t[j];\n\t\t\t\tt[j]=t[j+1];\n\t\t\t\tt[j+1]=e;\n\t\t\t}\n\t\t\tif (q[j]>q[j+1])\n\t\t\t{\n\t\t\t\tf=q[j];\n\t\t\t\tq[j]=q[j+1];\n\t\t\t\tq[j+1]=f;\n\t\t\t}\n\t\t}\n\t}\n\tt1=0;t2=n-1;q1=0;q2=n-1;money=0,k=1;\n\twhile (k!=0)\n\t{\n\t\tif (t1==t2)\n\t\t\tk=0;\n\t\tif (t[t2]>q[q2])\n\t\t{\n\t\t\tt2--;\n\t\t\tq2--;\n\t\t\tmoney+=200;\n\t\t}\n\t\telse if (t[t1]>q[q1])\n\t\t{\n\t\t\tt1++;\n\t\t\tq1++;\n\t\t\tmoney+=200;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (t[t1]b[lb])ans=ans+200,la++,lb++;\n\t\t\telse if(a[ra]>b[rb])ans+=200,ra--,rb--;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[ra]=up) return;\n else\n {\n k=a[low];\n j=low;\n for (i=low;i<=up;i++)\n {\n if (a[i]>k)\n {\n j++;\n x=a[i];\n a[i]=a[j];\n a[j]=x;\n }\n }\n }\n x=k;\n a[low]=a[j];\n a[j]=x;\n Qsort(a,low,j-1);\n Qsort(a,j+1,up);\n \n}\n\nint main(void)\n{\n int n[100]={0},a[1000]={0},b[1000]={0};\n int i,j,m,w,l,d,q1,s1,q2,s2,money; //w???????l???????d?????? ,q?????????s???????? \n i=w=l=d=q1=s1=q2=s2=0;\n scanf(\"%d\",&n[i]);\n while(n[i]!=0)\n {\n for(j=0;jb[n[i]-1-s2])\n {w++;s1++;s2++;}\n else if(a[n[i]-1-s1]b[q2])\n {w++;q1++;q2++;}\n else if(a[q1] t[i - 1])\n\t\t\t\tsum -= 200;\n\t\t\telse if(q[n - i] < t[i - 1])\n\t\t\t\tsum += 200;\n\t\t\tf[i][0] = sum;\n\t\t}\n\t\tsum = 0;\n\t\tfor(int i = 1;i <= n;++i)\n\t\t{\n\t\t\tif(q[n - i] > t[n - i])\n\t\t\t\tsum -= 200;\n\t\t\telse if(q[n - i] < t[n - i])\n\t\t\t\tsum += 200;\n\t\t\tf[i][i] = sum;\n\t\t}\n\n\t\tfor(int i = 2;i <= n; ++i)\n\t\t\tfor(int j = 1;j < i; ++j)\n\t\t\t\tf[i][j] = max(f[i - 1][j] + g(n - i, i - j - 1), f[i - 1][j - 1] + g(n - i, n - j ));\n\n\t\tmaxi = -999999999;// ??????????????????-1\n\t\tfor(int i = 0; i <= n; ++i)\n\t\t\tif(f[n][i] > maxi)\n\t\t\t\tmaxi = f[n][i];\n\t\tprintf(\"%d\\n\", maxi);\n\t}\n\treturn 0;\n}\nint g(int qi, int tian)\n{\n\tif(q[qi] > t[tian])\n\t\treturn -200;\n\tif(q[qi] < t[tian])\n\t\treturn 200;\n\treturn 0;\n}"} +{"label": "92", "index": "45829", "code": "\nvoid sort(int a[], int l, int r)\n{\t\n\tint t,i,j;\n\tt=a[l];i=l;j=r;\n\tdo{\n\t\twhile(i=a[j]) j--;\n\t\tif(ii&&t<=a[i]) i++;\n\t\t\tif(ib) return -200;\n\telse if(a==b) return 0;\n\telse return 200;\n}\n\nvoid main()\n{\n\tint a[1000],b[1000];\n\tint f[2][1001];\n\tint n,i,j,max,t;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\t\tfor(i=0;i>1^~0u;\n\t\tfor(i=0;i<=n;i++)\n\t\t\tif(f[t][i]>max) max=f[t][i];\n\n\t\tprintf(\"%d\\n\",max);\n\n\t\tscanf(\"%d\",&n);\n\t}\n}"} +{"label": "92", "index": "45830", "code": "int main()\n{\n\tint n, a[1002], b[1002], first1, first2, last1, last2, prize, i;\n\twhile(cin>>n)\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfirst1 = first2 = 0;\n\t\tlast1 = last2 = n-1;\n\t\tprize = 0;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tscanf(\"%d\", &a[i]);\n\t\tfor(i = 0; i < n; i++)\n\t\t\tscanf(\"%d\", &b[i]);\n\t\tsort(a, a + n);\n\t\tsort(b, b + n);\n\t\twhile(first1 <= last1)\n\t\t{\n\t\t\tif(a[first1] > b[first2])\n\t\t\t{\n\t\t\t\tprize += 200;\n\t\t\t\tfirst1++;\n\t\t\t\tfirst2++;\n\t\t\t}\n\t\t\telse if(a[first1] < b[first2])\n\t\t\t{\n\t\t\t\tprize -= 200;\n\t\t\t\tfirst1++;\n\t\t\t\tlast2--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile(first1 <= last1)\n\t\t\t\t{\n\t\t\t\t\tif(a[last1] > b[last2])\n\t\t\t\t\t{\n\t\t\t\t\t\tprize += 200;\n\t\t\t\t\t\tlast1--;\n\t\t\t\t\t\tlast2--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(a[last1] <= b[last2])\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[first1] < b[last2])\n\t\t\t\t\t\t\tprize -= 200;\n\t\t\t\t\t\telse if(a[first1] > b[last2])\n\t\t\t\t\t\t\tprize += 200;\n\t\t\t\t\t\tfirst1++;\n\t\t\t\t\t\tlast2--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<=1;n--)\n {\n if(*(tian+t)>*(qi+q))\n {\n win++;\n t++;\n q++;\n }\n else if(*(tian+t)==*(qi+q))\n {\n if(*(tian+tmax)>*(qi+qmax))\n {\n win++;\n tmax--;\n qmax--;\n }\n else if(*(tian+tmax)<=*(qi+qmax))\n {\n if(*(tian+t)<*(qi+qmax)) win--;\n qmax--;\n t++;\n }\n \n \n }\n else if(*(tian+t)<*(qi+q))\n {\n win--;\n t++;\n qmax--;\n }\n } \n printf(\"%d\\n\",win*200); \n } \n \n}\n"} +{"label": "92", "index": "45832", "code": "\n\n\nint tianji[1000];\nint qiwang[1000];\n\nint cmp(const void *a, const void *b)\n{\n\treturn -(*(int *)a - *(int *)b);\n}\nint main()\n{\n\tint n;\n\twhile(cin >> n)\t\n\t{\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tint money = 0;\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> tianji[i];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> qiwang[i];\n\t\tqsort(tianji, n, sizeof(int), cmp);\n\t\tqsort(qiwang, n, sizeof(int), cmp);\n\n\t\tint tp = 0, tq = n-1, qp = 0, qq = n-1;\n\n\t\twhile (tp <= tq)\n\t\t{\n\t\t\twhile (tianji[tp] > qiwang[qp] && tp <= tq)\n\t\t\t{\n\t\t\t\tmoney += 200;\n\t\t\t\ttp++;\n\t\t\t\tqp++;\n\t\t\t}\n\t\t\twhile(tianji[tq] > qiwang[qq] && tp <= tq)\n\t\t\t{\n\t\t\t\tmoney += 200;\n\t\t\t\ttq--;\n\t\t\t\tqq--;\n\t\t\t}\n\t\t\tif (tianji[tp] <= qiwang[qp] && tp <= tq)\n\t\t\t{\n\t\t\t\tif (tianji[tq] < qiwang[qp])\n\t\t\t\t\tmoney -= 200;\n\t\t\t\ttq--;\n\t\t\t\tqp++;\n\t\t\t}\n\t\t}\n\t\tcout << money << endl;\n\n\t}\n}"} +{"label": "92", "index": "45833", "code": "int King[1000];\nint TianJi[1000];\n\nint Partition(int A[1000],int p,int q)\n{\n int i,j;\n int x =A[p];\n int temp;\n i = p;\n for (j = p+1;j<=q;j++)\n {\n if(A[j] >= x)\n {\n i+=1;\n temp = A[j];\n A[j] = A[i];\n A[i] = temp;\n }\n }\n temp = A[i];\n A[i] = A[p];\n A[p] = temp;\n return i;\n}\n \n \nint QuikSort(int A[1000],int p,int r)//???? \n{\n int q;\n if (p B[i])//???????????????????????? \n {\n Money+=1;\n j++;\n i++;\n }\n else if(A[n-k-1] > B[n-m-1])//???????????????????????? \n {\n Money+=1;\n k++;\n m++;\n }\n else//?????????????????? \n {\n if(A[n-k-1] B[i])//????????????? \n {\n Money+=1;\n }\n else if(A[j] < B[i])\n {\n Money-=1;\n }\n \n return Money;\n} \n \nint main()\n{\n int n ,i;\n int Money; \n scanf(\"%d\",&n);\n while(1)\n {\n Money = 0;\n for(i=0;i=a[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=a[j];\n\t\t\t\t\ta[j]=a[i];\n\t\t\t\t\ta[i]=temp;\n\t\t\t\t}\n\t\t\t\tif(b[j]>=b[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=b[j];\n\t\t\t\t\tb[j]=b[i];\n\t\t\t\t\tb[i]=temp;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\tint win=0,deuce=0,lose=0;\n\t\tfor(i=0;ib[i])\n\t\t\t{\n\t\t\t\tchoose[i]=i;\n\t\t\t\tbchoose[i]=1;\n\t\t\t\twin++;\n\t\t\t}\n\t\t}\n\t\tint heada=0,headb=0,taila=n-1,tailb=n-1;\n\t\twhile(heada<=taila&&headb<=tailb)\n\t\t{\n\t\t\tif(choose[heada]!=n)\n\t\t\t{\n\t\t\t\theada++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(choose[taila]!=n)\n\t\t\t{\n\t\t\t\ttaila--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(bchoose[headb]==1)\n\t\t\t{\n\t\t\t\theadb++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(bchoose[tailb]==1)\n\t\t\t{\n\t\t\t\ttailb--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[heada]>b[headb])\n\t\t\t\t{\n\t\t\t\t\tchoose[heada]=headb;\n\t\t\t\t\tbchoose[headb]=1;\n\t\t\t\t\twin++;\n\t\t\t\t\theada++;\n\t\t\t\t\theadb++;\n\t\t\t\t}\n\t\t\t\telse if(a[taila]>b[tailb])\n\t\t\t\t{\n\t\t\t\t\tchoose[taila]=tailb;\n\t\t\t\t\tbchoose[tailb]=1;\n\t\t\t\t\twin++;\n\t\t\t\t\ttaila--;\n\t\t\t\t\ttailb--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tchoose[taila]=headb;\n\t\t\t\t\tbchoose[headb]=1;\n\t\t\t\t\tif(a[taila]q[i])\n {\n w=w+1;\n i=i-1;\n continue; \n }\n if(t[i]q[0])\n {\n w=w+1;\n for(int o=0;o>n){\n if(n==0)break;\n memset(a,0,sizeof(a));\n memset(b,0,sizeof(b));\n count=0; \n for(i=0;i>a[i];\n for(i=0;i>b[i];\n sort(a,a+n);\n sort(b,b+n);\n x=n-1,y=n-1,i=0,j=0;\n while(n--){\n if(a[x]>b[y]){\n x--;\n y--;\n count++;\n }\n else if(a[i]>b[j]){\n i++;\n j++;\n count++;\n }\n else if(a[i]tj[j])\n {\n temp=tj[i];\n tj[i]=tj[j];\n tj[j]=temp;\n }\n if (qw[i]>qw[j])\n {\n temp=qw[i];\n qw[i]=qw[j];\n qw[j]=temp;\n }\n }\n \n win=0;num=0;pt=0;lose=0;\n \n btmtj=btmqw=0;toptj=topqw=n;\n while ((topqw>=btmqw)&&(toptj>=btmtj))\n {\n if (qw[btmqw]tj[btmtj])\n {\n//printf(\"%d %d lose\\n\",topqw,btmtj);\n topqw--;\n btmtj++;\n lose++;\n continue;\n }\n if (qw[topqw]=tj[toptj])\n {\n//printf(\"%d %d lose\\n\",topqw,btmtj);\n if (qw[topqw]!=tj[btmtj]) lose++;\n topqw--;\n btmtj++;\n continue;\n }\n }\n \n /*for (i=0;i<=n;i++)\n {\n for (j=pt;j<=n;j++)\n {\n if (qw[i]0;)\n {\n if(a[0]b[0]) {s++;fun(a,m);fun(b,m);}\n else if(a[0]==b[0])\n {\n if(a[m-1]>b[m-1]) s++;\n else if(a[m-1]0;j--)\n\t\t\tif (a[j]>a[j-1]) { t=a[j]; a[j]=a[j-1]; a[j-1]=t; }\n\t\t\telse break;\n\t}\n}\n\nhorse()\n{\n\tint m=0,tf=0,qf=0,ts=n-1,qs=n-1;\n\twhile (tf<=ts)\n\t{\n\t\tif (tj[tf]>qw[qf]) { m++; tf++; qf++; }\n\t\telse if (tj[tf]qw[qs]) { m++; ts--; qs--; }\n\t\t\telse if (tj[ts] 0)\n\t{\n\t\tfor(int i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", &src[i]);\n\t\tfor(int i = 0; i < n; ++i)\n\t\t\tscanf(\"%d\", &tgt[i]);\n\t\tsort(src, src + n);\n\t\tsort(tgt, tgt + n);\n\t\tint si = 0, sj = n-1;\n\t\tint ti = 0, tj = n-1;\n\t\tint gain = 0;\n\t\twhile(si <= sj)\n\t\t{\n\t\t\tint a = src[si], b = src[sj];\n\t\t\tint c = tgt[ti], d = tgt[tj];\n\t\t\tif(a < c)\n\t\t\t{\n\t\t\t\t--gain;\n\t\t\t\t++si;\n\t\t\t\t--tj;\n\t\t\t}\n\t\t\telse if(a > c)\n\t\t\t{\n\t\t\t\t++gain;\n\t\t\t\t++si;\n\t\t\t\t++ti;\n\t\t\t}\n\t\t\telse if(b < d)\n\t\t\t{\n\t\t\t\t--gain;\n\t\t\t\t++si;\n\t\t\t\t--tj;\n\t\t\t}\n\t\t\telse if(b > d)\n\t\t\t{\n\t\t\t\t++gain;\n\t\t\t\t--sj;\n\t\t\t\t--tj;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a < d)\n\t\t\t\t\t--gain;\n\t\t\t\t++si;\n\t\t\t\t--tj;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\", gain * 200);\n\t}\n}\n"} +{"label": "92", "index": "45841", "code": "int speedK[1000];\nint speedT[1000];\nint horseNum;\nint search();\nint main()\n{\n while (true)\n {\n\tscanf(\"%d\", &horseNum);\n\tif (horseNum == 0)\n\t break;\n\tfor (int i = 0; i < horseNum; i++)\n\t scanf(\"%d\", speedT + i);\n\tfor (int i = 0; i < horseNum; i++)\n\t scanf(\"%d\", speedK + i);\n\tsort (speedT, speedT + horseNum);\n\tsort (speedK, speedK + horseNum);\n\tint count = search();\n\tprintf(\"%d\\n\", count * 200);\n }\n return 0;\n}\nint search()\n{\n int leftIndexK = 0, rightIndexK = horseNum - 1, leftIndexT = 0, rightIndexT = horseNum - 1, resultCount = 0;\n while (leftIndexT != rightIndexT)\n {\n if (speedT[rightIndexT] > speedK[rightIndexK])\n\t{\n\t resultCount++;\n\t rightIndexT--;\n\t rightIndexK--;\n\t}\n\telse if (speedT[leftIndexT] > speedK[leftIndexK])\n\t {\n\t\t resultCount++;\n\t\t leftIndexT++;\n\t\t leftIndexK++;\n\t }\n\t else\n\t {\n\t\t if (speedK[rightIndexK] - speedT[leftIndexT] > 0)\n\t resultCount--;\n\t\t rightIndexK--;\n\t\t leftIndexT++;\n\t }\n }\n if (speedK[leftIndexK] - speedT[leftIndexT] > 0)\n\tresultCount--;\n else if (speedK[leftIndexK] - speedT[leftIndexT] < 0)\n\t resultCount++;\n return resultCount;\n}\n "} +{"label": "92", "index": "45842", "code": "int main()\n{\n\tint n;\n\tint count=0;\n\tint a[1000];\n\tint b[1000];\n\tint min1,min2,max1,max2;\n\tint i,num;\n\twhile(scanf(\"%d\",&n)&&n)\n\t{\n\t\tmin1=0;\n\t\tmin2=0;\n\t\tmax1=n-1;\n\t\tmax2=n-1;\n\t\tfor(i=0;ib[max2])\n\t\t\t{\n\t\t\t\tnum+=200;\n\t\t\t\tmax1--;\n\t\t\t\tmax2--;\n\t\t\t}\n\t\t\telse if(a[max1]b[min2])\n\t\t\t\t{\n\t\t\t\t\tmin1++;\n\t\t\t\t\tmin2++;\n\t\t\t\t\tnum+=200;\n\t\t\t\t}\n\t\t\t\telse if(a[min1]==b[max2])\n\t\t\t\t{\n\t\t\t\t\tmin1++;\n\t\t\t\t\tmax2--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmin1++;\n\t\t\t\t\tmax2--;\n\t\t\t\t\tnum-=200;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",num);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45843", "code": "main()\n{\n int c,d,e,f,g,h,i,j,k,m,n;\n while(scanf(\"%d\",&c)&&c!=0)\n {\n int a[c],b[c];\n for(d=0;db[m])\n {\n h++;\n k--;\n m--;\n }\n else if(a[k]b[j])\n {\n h++;\n i++;\n j++;\n }\n else if(a[i]i;j--)\n if(x[j]>x[j-1])\n { t=x[j-1];\n x[j-1]=x[j];\n x[j]=t; }\n }\n \n void g(int x[],int y)\n{ int i,j,t;\n for(i=1;ii;j--)\n if(x[j]a2[0]) //?????????????????\n {\n a+=200;\n for(int k=0;ka2[i-1]) //?????????????????\n {\n a+=200;\n }\n else //?????????????????\n {\n\t\t\t\t\t if(a1[i-1]a2[0])\n {\n a+=200; \n }\n else\n a=a; \n }\n return a;\n}\n"} +{"label": "92", "index": "45845", "code": "static int cmp(const void *a, const void *b)\n{\n\treturn *(int *)b - *(int *)a;\n}\nint main()\n{\n\tint n,a[1000]={0},b[1000]={0},t,s,j,p,c,tk,tm,qk,qm;\n\tfor(;;)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif (n==0) break;\n\t\tt=0;\n\t\tp=0;\n\t\tj=0;\n\t\ts=0;\n\t\tfor(int i=0;ib[qm])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttm--;\n\t\t\t\tqm--;\n\t\t\t}\n\t\t\telse if(a[tm]b[qk])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttk++;\n\t\t\t\tqk++;\n\t\t\t}\n\t\t\telse if (a[tk]b[j]) cmp=200;\n if (a[i]ans) ans=f[n][i];\n cout<=0;i--)\n\t{\n\t\tfor(j=0;j<=i;j++)\n\t{\n\t\tif(a[j]b[i])\n\t\t{\n\t\t\tk++;\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\telse if(a[j]b[m])\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t\tt--;\n\t\t\t\tm--;\n\t\t\t}\n\t\t\telse if(a[t]qw[ql])\n\t\t\t{\n\t\t\t\tmoney=money+200;\n\t\t\t\ttl++;\n\t\t\t\tql++;\n\t\t\t}\n\t\t\telse if(tj[tr]>qw[qr])\n\t\t\t{\n\t\t\t\tmoney=money+200;\n\t\t\t\ttr--;\n\t\t\t\tqr--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(tj[tr]tj[j]) \n\t\t\t {\n\t\t\t\t t=tj[i];\n\t\t\t\t tj[i]=tj[j];\n\t\t\t\t tj[j]=t;\n\t\t\t }\n\t\t\t}\n\t\t}\n for (i=1;i<=n;i++)\n\t\t\t {\n\t\t\tfor (j=i+1;j<=n;j++)\n\t\t\t{\n if (qw[i]>qw[j]) \n\t\t\t {\n\t\t\t\t t=qw[i];\n\t\t\t\t qw[i]=qw[j];\n\t\t\t\t qw[j]=t;\n\t\t\t }\n\t\t\t}\n\t\t }\n /*intf(\"now the turn is:\\n\");\n\t\t for (i=1;i<=n;i++) printf(\"%d \",tj[i]);\n\t\t printf(\"\\n\");\n\t\t for (i=1;i<=n;i++) printf(\"%d \",qw[i]);\n\t\t printf(\"\\n\");*/\n for (i=1;i<=n;i++)\n\t\t {\n for (j=n;j>0;j=j-1)\n\t\t\t{\n\t\t\t\tif ((qw[j]>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\t\n\t\tfor(i=0;i>tianji[i];\n\t\tfor(i=0;i>king[i];\n\t\tqsort(tianji, n, sizeof(tianji[0]),compare);\n\t\tqsort(king, n, sizeof(king[0]), compare);//?????\n\t//\tint game=0;//game= ????????, game ?? ??????? n???????\n\t//\tint count=0;//\n\t//\tint ans=0;\n\t\tj=0;\n\t\ti=0;\n\t\twhile( jmax)\n\t\t\t\tmax=game;\n\t\t\t//cout<<\"game\"<n) k=k-n;\n\t\t\t\tif (a[j]>b[k]) one=one+200;\n\t\t\t\telse if (a[j]max) max=one;\n\t\t}\n\t\tll[l]=max;\n\t\tl=l+1;\n\t}\n\tfor (i=1;i<=l-1;i++)\n\t\tprintf(\"%d\\n\",ll[i]);\n}\n \nvoid qsorta(int n)\n{\n\tint i,j,temp;\n\tfor (i=1;i<=n-1;i++)\n\t\tfor (j=i;j<=n;j++)\n\t\t\tif (a[j]y?x:y;\n} \nint cmp(const void*a,const void*b)\n{\n return *(int*)b-*(int*)a;\n}\nmain()\n{\n int i,j,n; \n for(;;)\n {\n scanf(\"%d\",&n);\n if(n==0) break;\n int t[n],q[n],d[n+1][n+1];\n memset(d,0,sizeof(d));\n for(i=0;iq[j-1]) d[i][j]=d[i-1][j-1]+1;\n else d[i][j]=d[i-1][j-1]-1;\n d[i][j]=Max(d[i][j],d[i-1][j]-1);\n } \n printf(\"%d\\n\",d[n][n]*200);\n }\n}\n "} +{"label": "92", "index": "45853", "code": "void sort(int a[],int n);\nmain()\n{\n int n,i,j,k,t,money,r,qwf,qws,tjf,tjs;\n int win=0,lose=0;\n int tj[1001],qw[1001];\n for(r=0;;r++)\n {\n scanf(\"%d\",&n);\n if(n==0)\n goto label;\n for(i=0;iqw[qwf])\n {\n win++;\n tjf++;\n qwf++; \n }\n else if(tj[tjs]>qw[qws])\n {\n win++;\n tjs--;\n qws--; \n }\n else\n {\n if(tj[tjs]!=qw[qwf])\n lose++;\n qwf++;\n tjs--;\n } \n }\n money=(win-lose)*200;\n printf(\"%d\\n\",money);\n win=0;\n lose=0; \n } \n label:;\n \n}\n\nvoid sort(int a[],int n)\n{\n int i,j,k,t;\n for(i=0;ia[k])\n k=j;\n else if(a[j]==a[k]) \n continue; \n }\n t=a[k];\n a[k]=a[i];\n a[i]=t; \n }\n}\n"} +{"label": "92", "index": "45854", "code": "\n\nint tianji[1001], qiwang[1001], n;\n\nint cmp(const void *e1, const void *e2)\n{\n\treturn (*(int*)e2 - *(int*)e1);\n}\n\nint solve()\n{\n\tint score = 0;\n\tint p1 = 0;\n\tint p2 = 0;\n\tint e1 = n-1;\n\tint e2 = n-1;\n\twhile(p2 <= e2)\n\t{\n\t\tif (tianji[p1] > qiwang[p2])\n\t\t{\n\t\t\tscore += 200;\n\t\t\tp1++;\n\t\t\tp2++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (tianji[e1] > qiwang[e2])\n\t\t{\n\t\t\tscore += 200;\n\t\t\te1--;\n\t\t\te2--;\n\t\t\tcontinue;\n\t\t}\n\t\tif (tianji[e1] < qiwang[p2])\n\t\t{\n\t\t\tscore -= 200;\n\t\t\te1--;\n\t\t\tp2++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (tianji[e1] == qiwang[p2])\n\t\t{\n\t\t\te1--;\n\t\t\tp2++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"err!\" << endl;\n\t\t\tbreak;\n\t\t}\n\t}\t\n\treturn score;\n}\n\nint main()\n{\n\twhile(cin >> n)\n\t{\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (int i = 0; i < n; i ++)\n\t\t\tcin >> tianji[i];\n\t\tqsort(tianji, n, sizeof(int), cmp);\n\t\tfor (int i = 0; i < n; i ++)\n\t\t\tcin >> qiwang[i];\n\t\tqsort(qiwang, n, sizeof(int), cmp);\n\t\tcout << solve() << endl;\t\t\n\t}\t\n\treturn 0;\n}"} +{"label": "92", "index": "45855", "code": "main()\n{ \n int n=1;\n int tianji[1002],qiwang[1002];\n while(n!=0)\n {\n scanf(\"%d\\n\",&n);\n if(n==0)break;\n for(int i=0;i=i;k--)\n {\n if(tianji[k]>tianji[k+1])\n {\n int m=tianji[k];\n tianji[k]=tianji[k+1];\n tianji[k+1]=m; \n } \n } \n for(int i=0;i=i;k--)\n {\n if(qiwang[k]>qiwang[k+1])\n {\n int m=qiwang[k];\n qiwang[k]=qiwang[k+1];\n qiwang[k+1]=m; \n } \n } \n int win=0,ping=0; //???????? \n int t[1002],q[1002]; //???????? \n for(int i=0;i=0;j--)\n {\n if(q[j]==0)continue;\n if(tianji[i]>qiwang[j])\n {\n win++;\n t[i]=0;\n q[j]=0;\n break; \n } \n } \n }\n int i,j;\n for(i=0;ib[(i+j)%n])k+=200;\n\t\t\t\tif(a[i]ans)ans=k;\n\t\t}\n\t\tprintf(\"%d\\n\",ans);\n\t}\n\n\treturn 0;\n}\n"} +{"label": "92", "index": "45857", "code": "int MyCmp(const void * e1,const void * e2)\n{\n\tint * p1=(int *)e1;\n\tint * p2 = ( int * )e2 ;\n\treturn (*p2) - (*p1);\n}\nint main ()\n{\n\tint n,i,sum;\n\tint front2,back2,front,back;\n\tint a[1010],b[1010];\n\twhile(cin>>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tsum=0;\n\t\tfor(i=0;i>a[i];\n\t\tfor(i=0;i>b[i];\n\t\tqsort(a,n,sizeof(int),MyCmp);\n\t\tqsort(b,n,sizeof(int),MyCmp);\n\t\tfront2=front=0;\n\t\tback2=back=n-1;\n\t\twhile(front2<=back2)\n\t\t{\n\t\t\tif(a[front]>b[front2])\n\t\t\t{\n\t\t\t\tfront++;\n\t\t\t\tfront2++;\n\t\t\t\tsum+=200;\n\t\t\t}\n\t\t\telse if(a[front]==b[front2] )\n\t\t\t{\n\t\t\t\twhile(front <= back)\n\t\t\t\t{\n\t\t\t\t\tif(a[back]>b[back2])\n\t\t\t\t\t{\n\t\t\t\t\t\tsum+=200;\n\t\t\t\t\t\tback--;\n\t\t\t\t\t\tback2--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[back]t[i+1])\n {\n k=t[i];\n t[i]=t[i+1];\n t[i+1]=k;\n }\n }\n }\n for(j=0;jq[i+1])\n {\n k=q[i];\n q[i]=q[i+1];\n q[i+1]=k;\n }\n }\n }\n j=0;\n a=0;\n b=-20000;\n do\n {\n i=0;\n do\n {\n if(t[i]>q[i]) a=a+1;\n else if(t[i]==q[i]) a=a;\n else a=a-1;\n i=i+1;\n }\n while(ib) b=a;\n a=0;\n }\n while(jq[i])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt_max++;\n\t\t\t}\n\t\t\telse if(t[t_max]q[j])\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(jw[i])\n{\nhead++;\nans+=200;\n}\nelse if (t[head]=head;)\n{\nif (t[j]>w[m])\n{\nans+=200;\ntailt--;\ntailw--;\nj--;\nm--;\n}\nelse\n{\nif (t[j]tailt)\nbreak;\n}\n\nprintf(\"%d\\n\",ans);\n}\n\n}"} +{"label": "92", "index": "45861", "code": "void init(); \nvoid qsort(long int a[],int n);\nvoid rqsort(long int a[],int n);\nlong int a[1000],b[1000],l[1000][1000];\nlong int r[1000][1000]; \nint m,j,n;\nlong int t;\n\nvoid main() \n{ \n\tlong int i,j,t=0; \n\tfor(i=0;i<1000;i++)\n\t{\n\t\ta[i]=0;b[i]=0;\n\t}\n\twhile(1)\n\t{\n\tscanf(\"%d\",&n); \n\tif(n==0)break;\n\tt++;\n\n\tfor(i=0;i=0;i--) \n\tfor(j=1;jb[j]) \n\tl[i][j]=l[i+1][j-1]-1; \n\telse if(l[i+1][j-1]-1>l[i][j-1]) \n\tl[i][j]=l[i+1][j-1]-1; \n\telse \n\tl[i][j]=l[i][j-1]; \n\n\tr[0][t]=l[0][n-1]*200;\n\t}\n\tfor(i=1;i<=t;i++)\n\tprintf(\"%ld\\n\",r[0][i]); \n\t} \n\n\nvoid init() \n{ \nint i,j,k; \n//void qsort(long int a[],int n); \n//void rqsort(long int b[],int n); \n\nfor(i=0;ia[k])\n\t\t\t\t\tk=j;\n\t\t\t\tt=a[k];a[k]=a[i];a[i]=t;\n\t\t}\n\n\n for(i=0;ib[k])\n\t\t\t\t\tk=j;\n\t\t\t\tt=b[k];b[k]=b[i];b[i]=t;\n\t\t}\n\n\n\n\nfor(i=0;ia[k])\n\t\t\t\t\tk=j;\n\t\t\t\tt=a[k];a[k]=a[i];a[i]=t;\n\t\t}\n\n}\n\n\n"} +{"label": "92", "index": "45862", "code": "\nint compare(const void* p1, const void* p2)\n{\n\treturn *(int*)p1 - *(int*)p2;\n}\n\nint main()\n{\n\tint i, n, a[1000], b[1000];\n\n\twhile(scanf(\"%d\", &n) && n!=0)\n\t{\n\t\tint res=0, a1=0, a2=n-1, b1=0, b2=n-1;\n\t\t\n\t\tfor(i=0; i b[b1])\n\t\t\t{\n\t\t\t\tres++;\n\t\t\t\ta1++;\n\t\t\t\tb1++;\n\t\t\t}\n\t\t\telse if(a[a2] > b[b2])\n\t\t\t{\n\t\t\t\tres++;\n\t\t\t\ta2--;\n\t\t\t\tb2--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[a1] > b[b2])\n\t\t\t\t\tres++;\n\t\t\t\telse if(a[a1] < b[b2])\n\t\t\t\t\tres--;\n\t\t\t\telse\n\t\t\t\t\t;\n\t\t\t\ta1++;\n\t\t\t\tb2--;\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tprintf(\"%d\\n\", res*200);\n\t}\n}"} +{"label": "92", "index": "45863", "code": "int comp(const void *a,const void *b)\n{\n return *(int*)a-*(int*)b; \n} \nmain()\n{\n int n,th[1000],wh[1000],tfast,tslow,wfast,wslow,sum; \n //??????????. ???????????????n(1<=n<=1000),??????????n???\n //??????n???????????????????n?????????????? \n //????????0????? \n scanf(\"%d\",&n); \n while(n!=0)\n {\n memset(th,0,sizeof(int)); \n memset(wh,0,sizeof(int)); \n sum=0; \n for (int i=0;i th[tfast]){wfast--;tslow++;sum--;}\n else if(wh[wfast]==th[tfast])\n { \n if(th[tslow]>wh[wslow]){sum++;tslow++;wslow++;}//sub??????? \n\t\t else if(th[tslow]tj[tjs];tje--,qws++);\n int win=0,lose=qws;\n for(;tjs<=tje;)\n\t{\n\t if(tj[tjs]>qw[qws])\n\t win++,tjs++,qws++;\n\t else if(tj[tjs]qw[qwe])\n\t\twin++,tje--,qwe--;\n\t else\n\t\t{\n\t\t if(tj[tje]vqw[i])\n\t\t\t\t{\n\t\t\t\t\ttemp=vqw[i];\n\t\t\t\t\tvqw[i]=vqw[j];\n\t\t\t\t\tvqw[j]=temp;\n\t\t\t\t}\n\t\t\t\tif(vtj[j]>vtj[i])\n\t\t\t\t{\n\t\t\t\t\ttemp=vtj[i];\n\t\t\t\t\tvtj[i]=vtj[j];\n\t\t\t\t\tvtj[j]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\tttail=ktail=n-1;\n\t\tthead=khead=0;\n\t\twhile(ttail>=thead)\n\t\t{\n\t\t\tif(vtj[ttail]>vqw[ktail])\n\t\t\t{\n\t\t\t\tttail--;\n\t\t\t\tktail--;\n\t\t\t\tr+=200;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(vtj[ttail]vqw[khead])\n\t\t\t\t{\n\t\t\t\t\tr+=200;\n\t\t\t\t\tthead++;\n\t\t\t\t\tkhead++;\n\t\t\t\t}\n\t\t\t\telse if(vtj[thead]shi)\n\t\t{\n\t\t\tif(T[j][mo]>Q[j][mo])\n\t\t\t{\n\t\t\t\ts+=200;\n\t\t\t\tmo--;\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t\tif(T[j][shi]>Q[j][shi])\n\t\t\t\t{\n\t\t\t\t\ts+=200;\n\t\t\t\t\tshi++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t t=T[j][mo];\n\t\t\t for(k=mo;k>shi;k--)\n\t\t\t\t\t{\n\t\t\t\t T[j][k]=T[j][k-1];\n\t\t\t\t\t}\n\t\t T[j][shi]=t;\n\t\t\t\t\tif(T[j][shi]Q[j][shi])\n\t\t\t\t\t{\n\t\t\t\t\t\ts+=200;\n\t\t\t\t\t}\n\t\t\t\t\tshi++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(k=shi;k<=mo;k++)\n\t\t{\n\t\t\tif(T[j][k]>Q[j][k])\n\t\t\t\ts+=200;\n\t\t\telse if(T[j][k]=0;l--)\n\t\t\t{\n\t\t\t\tif (array[i][0][1][l] ==0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (o=n-1;o>=0;o--)\n\t\t\t{\n\t\t\t\tif (array[i][1][1][o] ==0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (array[i][0][0][l] > array[i][1][0][o])\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t\tarray[i][0][1][l] = 1;\n\t\t\t\tarray[i][1][1][o] = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif (array[i][0][0][j] > array[i][1][0][k])\n\t\t\t\t{\n\t\t\t\t\tm++;\n\t\t\t\t\tarray[i][0][1][j] = 1;\n\t\t\t\t\tarray[i][1][1][k] = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(array[i][1][0][o] > array[i][0][0][j] )\n\t\t\t\t\t{\n\t\t\t\t\t\tm--;\t\t\n\t\t\t\t\t}\n\t\t\t\t\tarray[i][0][1][j] = 1;\n\t\t\t\t\tarray[i][1][1][o] = 1;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfinish = 1;\n\t\t\t\tfor (j=0;j=tl && j>=ql)\n\t\t{\n\n\t\t\tif (tian[i]>qi[j])\n\t\t\t{\n\t\t\t\tans++;\n\t\t\t\ti--; \n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse if (tian[i]qi[ql] && tl<=i && ql<=j)\n\t\t\t\t\t{\n\t\t\t\t\t\ttl++;\n\t\t\t\t\t\tql++;\n\t\t\t\t\t\tans++;\n\t\t\t\t\t}\n\t\t\t\t\tif (tl>i || ql >j) break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",ans*200);\n\t}\n}"} +{"label": "92", "index": "45869", "code": "main()\n{\n for(;;)\n {\n int n;\n scanf(\"%d\",&n);\n if(n==0)\n break;\n int a[n];//b???????a?????? \n int b[n];\n int swap;\n for(int i=0;ib[j])\n {\n swap=b[i];\n b[i]=b[j];\n b[j]=swap;\n }\n }\n for(int i=0;ia[j])\n {\n swap=a[i];\n a[i]=a[j];\n a[j]=swap;\n }\n }\n int *a1;\n int *a2;\n int *b1;\n int *b2;\n a1=&a[0];\n a2=&a[n-1];\n b1=&b[0];\n b2=&b[n-1];\n int count1=0,count0=0;\n for(;;) \n {\n\n if(b1==b2+1)\n \n { break;}\n if(*(a1)<*(b1))\n {\n \n a1++;\n b1++;\n count1++;\n }\n else\n if(*a1>*b1)\n {\n \n \n b1++;\n a2--; \n \n }\n else\n if(*a1==*b1)\n {\n if(*a2<*b2)\n {\n a2--;\n b2--;\n count1++;\n \n \n }\n else if(*a2>*b2)\n {\n b1++;\n a2--;\n \n }\n else if(*a2==*b2)\n {\n if(*a2==*b1)\n count0++;\n a2--;b1++;\n }\n \n \n } \n \n \n \n /* if(*a2<*b2)\n {\n count1++;\n a2--;\n b2--;\n }\n if(*a2>*b2)\n {\n a2--;\n }\n if(*a2==*b2)\n {\n count2++;\n }*/\n \n }\n printf(\"%d\\n\",(count1*200-(n-count0-count1)*200));\n }\n}\n "} +{"label": "92", "index": "45870", "code": "int main ()\n{\n\tint n,t[1005],q[1005],i,j,k,p1,p2,total,max,h1,h2,t1,t2;\n\tscanf(\"%d\",&n);\n\twhile (n!=0)\n\t{\n\t\tfor (i=1;i<=n;i++)scanf(\"%d\",&t[i]); \n\t\tfor (i=1;i<=n;i++)scanf(\"%d\",&q[i]);\n\t\t//for (i=1;i<=n;i++)cout<t[max])max=j;\n\t\t\tif (i==max)continue;\n\t\t\tt[i]=t[i]+t[max];\n\t\t\tt[max]=t[i]-t[max];\n\t\t\tt[i]=t[i]-t[max];\n\t\t}\n\t\tfor (i=1;i<=n;i++)\n\t\t{\n\t\t\tmax=i;\n\t\t\tfor (j=i+1;j<=n;j++)\n\t\t\t\tif (q[j]>q[max])max=j;\n\t\t\tif (i==max)continue;\n\t\t\tq[i]=q[i]+q[max];\n\t\t\tq[max]=q[i]-q[max];\n\t\t\tq[i]=q[i]-q[max];\n\t\t}\n\t\t//for (i=1;i<=n;i++)cout<q[h2])\n {\n h1++;\n total+=200;\n }\n else if(t[h1]=h1;j--,k--)\n {\n if(t[j]>q[k])\n {\n total+=200;\n t1--;\n t2--;\n }\n else\n {\n if(t[j]t1) break;\n }\n printf(\"%d\\n\",total);\n scanf(\"%d\",&n);\n\t}\n}\n"} +{"label": "92", "index": "45871", "code": "// horse_race.cpp : ??????????????\n//\n\n\nint tian[1001],king[1001];\nint horses;\nint f[1001][1001];\nvoid init()\n{\n int i;\n memset(f,0xff,sizeof(f));\n for(i=0;i>tian[i];\n for(i=0;i>king[i];\n sort(tian,tian+horses);\n sort(king,king+horses); \n}\nint getf(int x,int y)\n{\n if(f[x][y]!=-1)\n return f[x][y];\n if(x>=horses||y>=horses)\n return f[x][y]=0;\n if(tian[x]>king[y])\n return f[x][y]=getf(x+1,y+1)+200;\n if(tian[x]>horses)\n {\n\t\tif(horses == 0)\n\t\t\tbreak;\n init();\n cout<qw[max2])\n {\n res += 200;\n max1--;\n max2--;\n }\n else if(tj[max1]qw[min2])\n {\n res += 200;\n min1++;\n min2++;\n }\n else\n {\n if(tj[min1]qi[head2]) {vic++;head1++;head2++;}\n else if(tian[end1]>qi[end2]) {vic++;end1--;end2--;}\n else if(tian[head1]<=qi[head2]) { if(tian[end1]>n)\n\t{\n\t\tif(n==0)\n\t\t\tbreak;\n\t\telse\n\t\t{\n\t \tint qi[1100],tian[1100];\n\t \tint qhead=1,qtail=n,thead=1,ttail=n,i,num=0;\n\t \tfor(i=1;i<=n;i++)\n\t\t\t{\n\t\t \tcin>>tian[i];\n\t\t\t}\n\t \tfor(i=1;i<=n;i++)\n\t\t\t{\n\t\t \tcin>>qi[i];\n\t\t\t}\n\t \tqsort(tian+1,n,sizeof(int),Compare);\n\t \tqsort(qi+1,n,sizeof(int),Compare);\n\t \twhile(thead<=ttail)\n\t\t\t{\n\t\t\t\tif(tian[thead]>qi[qhead])\n\t\t\t\t{\n\t\t\t\t\tnum+=200;\n\t\t\t\t\tthead++;\n\t\t\t\t\tqhead++;\n\t\t\t\t}\n\t\t\t\telse if(tian[thead]qi[qtail])\n\t\t\t\t\t{\n\t\t\t\t\t\tttail--;\n\t\t\t\t\t qtail--;\n\t\t\t\t\t\tnum+=200;\n\t\t\t\t\t}\n\t\t\t\t\telse if(tian[ttail]==qi[qtail])\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tian[thead]==qi[qtail])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthead++;\n\t\t\t\t\t qtail--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(tian[thead]b)return 1;\n\telse if(aking[j])\n {\n twin++;\n }\n else if(tian[i](win-lose))\n {\n win=twin;\n lose=tlose;\n even=teven;\n }\n i=temp;\n twin=0;\n tlose=0;\n teven=0;\n }\n\tprintf(\"%d\\n\",200*(win-lose));\n\tfree(tian);\n\tfree(king);\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45877", "code": "int cmp(const void*a, const void*b)\n{\n\treturn *(int*)b - *(int*)a;\n}\n\nint main()\n{\n\tint n;\n\tint i;\n\twhile (cin >> n, n > 0){\n\tint t[1000], q[1000];\n\tfor (i = 0;i < n;i++)\n\t\tcin >> t[i];\n\tfor (i = 0;i < n;i++)\n\t\tcin >> q[i];\n\tqsort(t,n,sizeof(int),cmp);\n\tqsort(q,n,sizeof(int),cmp);\n\tint t1 = 0, t2 = n-1;\n\tint q1 = 0, q2 = n-1;\n\tint cnt = 0;\n\tfor (i = 0;i < n;i++)\n\t{\n\t\tif (t[t1] > q[q1])\n\t\t{\n\t\t\tt1++;\n\t\t\tq1++;\n\t\t\tcnt += 200;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (t[t2] > q[q2])\n\t\t\t{\n\t\t\t\tt2--;\n\t\t\t\tq2--;\n\t\t\t\tcnt += 200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (t[t2] < q[q1])\n\t\t\t\t\tcnt -= 200;\n\t\t\t\tt2--;\n\t\t\t\tq1++;\n\t\t\t}\n\t\t}\n\t}\n\tcout << cnt << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45878", "code": "\n\nconst int MAXN = 1010;\n\nint n, a[MAXN], b[MAXN], f[MAXN][MAXN];\n\nvoid init()\n{\n\tint i;\n\t\n\tfor (i=1; i<=n; i++)\n\t\tscanf(\"%d\", &a[i]);\n\tfor (i=1; i<=n; i++)\n\t\tscanf(\"%d\", &b[i]);\n\tsort(a+1, a+n+1);\n\tsort(b+1, b+n+1);\t\n}\n\nint game(int x, int y)\n{\n\tif (x>y) return 200; else\n\tif (x=n) q=q-n;\n\t\t\tif (a[p]>b[q]) s=s-200;\n\t\t\t else if (a[p]b[bslow]){\n\t\t sum+=200;\n\t total++;\n\t\t aslow--;\n\t\t bslow--;\n\t\t }else if(a[aslow]b[bfast]){\n\t\t\t sum+=200;\n\t total++;\n\t\t afast++;\n\t\t bfast++;\n\t\t\t}else if(a[afast]>n && n != 0){\n\t\tint i,j;\n\t\tfor(i = 0;i < n;i++)\n\n\t\t\tcin>>tianji[i];\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin>>qiwang[i];\n\t\tsort(tianji,tianji + n);\n\t\tsort(qiwang,qiwang + n);\n\t\tint money = 0;\n\t\ti = 0,j = n - 1;\n\t\tint k = i,l = j;\n\t\twhile(true){\n\t\t\twhile(tianji[i] > qiwang[k] && i <= j){\n\t\t\t\tmoney += 200;\n\t\t\t\ti++;\n\t\t\t\tk++;\n\t\t\t}\n\t\t\twhile(tianji[j] > qiwang[l] && j >= i){\n\t\t\t\tmoney += 200;\n\t\t\t\tj--;\n\t\t\t\tl--;\n\t\t\t}\n\t\t\tif(i > j)\n\t\t\t\tbreak;\n\t\t\telse{\n\t\t\t\tif(tianji[i] != qiwang[l])\n\t\t\t\t\tmoney -= 200;\n\t\t\t\ti++;\n\t\t\t\tl--;\n\t\t\t}\n\t\t}\n\t\tcout<=0;i--)\n {\n for(int j=0;j<=i;j++)\n {\n if(a[j+1]<=a[j])\n {\n int x=0;\n x=a[j+1];\n a[j+1]=a[j];\n a[j]=x;\n }\n }\n }\n for(int i=n-2;i>=0;i--)\n {\n for(int j=0;j<=i;j++)\n {\n if(b[j+1]<=b[j])\n {\n int x=0;\n x=b[j+1];\n b[j+1]=b[j];\n b[j]=x;\n }\n }\n }\n int i,j;\n for(i=0;i<=n-1;i++)\n {\n int l,c=-1;\n for(l=0;l<=n-1;l++)\n {\n while(b[l]==1000000)\n {\n l++;\n }\n if(a[i]<=b[l])\n break;\n else\n c=l;\n }\n if(c!=-1)\n {\n k++;\n b[c]=1000000;\n a[i]=-1;\n }\n }\n for(i=0;i<=n-1;i++)\n {\n for(j=0;j<=n-1;j++)\n {\n if(a[i]==b[j])\n {\n u++;\n a[i]=-1;\n b[j]=1000000;\n }\n }\n }\n n=-200*n+400*k+200*u;\n printf(\"%d\\n\",n);\n scanf(\"%d\",&n);\n }\n}\n\n"} +{"label": "92", "index": "45883", "code": "void sort(int a[],int n)\n{ int i,j,t;\n for(i=0;ib[i])\n {\n ans+=200;\n h++;\n }\n else if(a[h]=h;j--,m--)\n { \n if(a[j]>b[m])\n {\n ans+=200;\n t--;\n s--;\n } \n else\n { if(a[j]t)\n break; \n } \n }\n printf(\"%d\\n\",ans);\n}\n getchar();getchar(); \n}\n"} +{"label": "92", "index": "45884", "code": "int T[1010], Q[1010];\nint main()\n{\n\tint n;\n\twhile(cin >> n && n)\n\t{\n\t\tint ret = 0;\n\t\tfor (int i = 0; i< n; i++)\n\t\t\tcin >> T[i];\n\t\tfor (int i = 0; i< n; i++)\n\t\t\tcin >> Q[i];\n\t\tsort(T, T + n);\n\t\tsort(Q, Q + n);\n\t\tint T_begin = 0, Q_begin = 0;\n\t\tint T_end = n - 1, Q_end = n - 1;\n\t\twhile (T_begin <= T_end && Q_begin <= Q_end)\n\t\t{\n\t\t\tif (T[T_end] > Q[Q_end])\n\t\t\t{\n\t\t\t\tT_end--;\n\t\t\t\tQ_end--;\n\t\t\t\tret++;\n\t\t\t}\n\t\t\telse if (T[T_begin] > Q[Q_begin])\n\t\t\t{\n\t\t\t\tT_begin++;\n\t\t\t\tQ_begin++;\n\t\t\t\tret++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (T[T_begin] < Q[Q_end])\n\t\t\t\t\tret--;\n\t\t\t\tT_begin++;\n\t\t\t\tQ_end--;\n\t\t\t}\n\n\t\t}\n\t\tcout << ret * 200 << endl;\t\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45885", "code": "int cmp(void const* a,void const* b)\n{\n\treturn *(int*)a-*(int*)b;\n}\nint main()\n{\n\tint n;\n\twhile(cin>>n)\n\t{\n\t\tint sum=0;\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tint i;int a[1005];int b[1005];\n\t\tfor(i=0;i>a[i];\n\t\tfor(i=0;i>b[i];\n\t\tqsort(a,n,sizeof(a[0]),cmp);\n\t\tqsort(b,n,sizeof(b[0]),cmp);\n\t\tint p,q,c,d;\n\t\tp=0;c=0;q=n-1;d=n-1;\n\t\twhile(n--)\n\t\t{\n\t\t\tif(a[p]>b[c])\n\t\t\t{\n\t\t\n\t\t\t\tsum=sum+200;\n\t\t\t\tp++;\n\t\t\t\tc++;\n\t\t\n\t\t\t}\n\t\t\telse if(a[q]>b[d])\n\t\t\t{\n\t\n\t\t\t\tsum=sum+200;\n\t\t\t\tq--;\n\t\t\t\td--;\n\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tif(a[p]b[d])\n\t\t\t\t{\n\t\t\t\t\tsum=sum+200;\n\t\t\t\t}\n\t\t\t\tp++;\n\t\t\t\td--;\n\n\t\t\t}\n\t\t}\n\n\n\t\tcout<=0;i--)\n\t\t{\n\t\t\tfor(j=0;jvTian[j+1])\n\t\t\t\t{\n\t\t\t\t\tt=vTian[j];\n\t\t\t\t\tvTian[j]=vTian[j+1];\n\t\t\t\t\tvTian[j+1]=t;\n\t\t\t\t}\n\t\t\t\tif(vQi[j]>vQi[j+1])\n\t\t\t\t{\n\t\t\t\t\tt=vQi[j];\n\t\t\t\t\tvQi[j]=vQi[j+1];\n\t\t\t\t\tvQi[j+1]=t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tx=y=n-1;\n\t\ti=j=0;\n while(i<=x) \n { \n if(vTian[x]>vQi[y]) \n {\n x--; \n y--; \n cnt+=200; \n } \n else if(vTian[i]>vQi[j]) \n {\n i++; \n j++; \n cnt+= 200; \n } \n else \n {\n if(vTian[i]a[k])\n\t\t\t\tk=j;\n\t\tif (i!=k)\n\t\t\t{t=a[i];\t\n\t\t\ta[i]=a[k];\n\t\t\ta[k]=t;}\n\t}\n}\n\nmain()\n{\tint n,i,j,k,l,s; //i???????????????????????\n //j??????????????????????\n //l?????????????????????? \n //????????????????????????????l-j+i \n //k??????????n???\n\t\t\t\t\t\t\t\t\t //s??????????1,0?-1? \n\tint t[MAX],q[MAX];\n\twhile (1)\n\t\t{scanf(\"%d\",&n);\n\t\tif (n==0)\n\t\t\tbreak;\n\t\tfor (i=0;iq[j]) //??????????????????????? \n\t\t\t\t\t{i++;\n\t\t\t\t\tj++;\n\t\t\t\t\ts++;}\n\t\t\t\telse if (t[l-j+i]>q[l]) //???????????????????????\n\t\t\t\t\t{l--;\n\t\t\t\t\ts++;}\n\t\t\t\t\telse if (t[l-j+i]qiwang[qs])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tts++;\n\t\t\t\tqs++;\n\t\t\t}\n\t\t\telse if (tianji[ts]qiwang[qe])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tte--;\n\t\t\t\tqe--;\n\t\t\t}\n\t\t\telse if (tianji[te]>n&&n!=0){\n\t\twin=0;\n\t\tfor (i=0;i>tianji[i];\n\t\tfor (i=0;i>qiwang[i];\n\t\tqsort(tianji,n,sizeof(int),mycmp);\n\t\tqsort(qiwang,n,sizeof(int),mycmp);\n\t\tb1=0,b2=0,e1=n-1,e2=n-1;\n\t\twhile (true){\n\t\t\tif (tianji[b1]>qiwang[b2]){\n\t\t\t\tb1++;\n\t\t\t\tb2++;\n\t\t\t\twin+=200;\n\t\t\t}\n\t\t\telse if (tianji[e1]>qiwang[e2]){\n\t\t\t\te1--;\n\t\t\t\te2--;\n\t\t\t\twin+=200;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (tianji[e1]e1)\n\t\t\t\tbreak;\n\t\t}\n\t\tcout<>n && n != 0){\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin>>tianji[i];\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin>>qiwang[i];\n\t\tsort(tianji,tianji + n);\n\t\tsort(qiwang,qiwang + n);\n\t\tqiwangs = 0;\n\t\tqiwange = n - 1;\n\t\ttianjis = 0;\n\t\ttianjie = n - 1;\n\t\tint yinzi = 0;\n\t\twhile(qiwangs <= qiwange){\n\t\t\twhile(tianji[tianjis] > qiwang[qiwangs] && qiwangs <= qiwange){\n\t\t\t\tyinzi += 200;\n\t\t\t\ttianjis++;\n\t\t\t\tqiwangs++;\n\t\t\t}\n\t\t\twhile(tianji[tianjie] > qiwang[qiwange] && qiwangs <= qiwange){\n\t\t\t\tyinzi += 200;\n\t\t\t\ttianjie--;\n\t\t\t\tqiwange--;\n\t\t\t}\n\t\t\tif(tianji[tianjis] < qiwang[qiwange] && qiwangs <= qiwange)\n\t\t\t\tyinzi -= 200;\n\t\t\tqiwange--;\n\t\t\ttianjis++;\n\t\t}\n\t\tcout<1;j--)\n {\n for(k=0;ka[k])\n {\n t=a[k];\n a[k]=a[k+1];\n a[k+1]=t;\n }\n if(b[k+1]>b[k])\n {\n u=b[k];\n b[k]=b[k+1];\n b[k+1]=u;\n }\n }\n }\n v=0;\n int f1=0;\n int f2=0;\n int s1=n-1;\n int s2=n-1;\n while(f1!=s1&&f2!=s2)\n {\n if(a[f1]>b[f2])\n {\n v +=200;\n f1++;\n f2++;\n }\n if(a[f1]b[s2])\n {\n v += 200;\n s1--;\n s2--;\n } \n else \n {if(a[s1]<=b[s2])\n if(a[s1]b[f2])\n v += 200;\n else if(a[f1]f[i-p]) w++;\n\t\t\t\telse goto cnt;\n\t\t\t}\n\t\t\tif(w-p>m) m=w-p;\n\t\t\tif(!d) break;\ncnt:;\n\t\t}\n\t\tprintf(\"%d\\n\", m*200);\n\t}\n}\n"} +{"label": "92", "index": "45893", "code": "int check (int n,int *a,int *b)\n{\n int i,j,x,y,*k;\n k=(int *)malloc(n*sizeof(int));\n for (j=0;jb[i]) {k[j]++;}\n if (a[i]y)\n {x=j;\n y=k[j];} \n }\n return y;\n}\nint com (const void *e1,const void *e2)\n{\n int *p1,*p2;\n p1=(int *)e1;\n p2=(int *)e2;\n return (*p1-*p2);\n}\nint main()\n{\n int s;\n for(s=0;;s++)\n { \n int n,*a,*b,i,m;\n scanf (\"%d\",&n);\n if (n==0) break;\n else {a=(int*)malloc(n*sizeof(int));\n b=(int*)malloc(n*sizeof(int));\n for (i=0;i0)\n\t\t{\n\t\t\tif(input[0][n-1]>input[1][n-1])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tn--;\n\t\t\t}\n\t\t\telse if(input[0][n-1]input[1][0])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tfor(i=0;i*((int*)t2)?-1:1;\n}\nmain()\n{\n int n;\n scanf(\"%d\",&n); \n while(n!=0)\n { \n int i,j,m;\n int head=0;\n int ans=0;\n int tailt=n-1;\n int tailk=n-1;\n int*t=(int*)malloc(n*sizeof(int));\n int*k=(int*)malloc(n*sizeof(int));\n for(i=0;ik[i])\n {\n head++;\n ans+=200;\n }\n else if(t[head]=head;j--,m--)\n {\n if(t[j]>k[m])\n {\n ans+=200;\n tailt--;\n tailk--;\n }\n else\n {\n if(t[j]tailt) break;\n }\n printf(\"%d\\n\",ans);\n scanf(\"%d\",&n);\n } \n getchar();\n getchar();\n} "} +{"label": "92", "index": "45896", "code": "int cmp(const void *a,const void *b)\n{return *(int*)b-*(int*)a;}\nmain()\n{\n int n,i,r;\n int tk,tm,qk,qm;\n int t[1000],q[1000];\n for(;;)\n {\n scanf(\"%d\",&n);\n if(n==0) break;\n for(i=0;iq[qm]){r++;tm--;qm--;}\n else if(t[tk]>q[qk]){r++;tk++;qk++;}\n else if(t[tm] y[i + j]) count += 200;\n\t\t\telse\n\t\t\tif (x[j] < y[i + j]) count -= 200;\n\t\tif (count > ans) ans = count;\n\t}\n\tprintf(\"%d\\n\", ans);\n}\n}\n"} +{"label": "92", "index": "45898", "code": "int main()\n{\n\tint n;\n\tint i,j,k;\n\t//int ftianji,ltianji;\n\t//int fqiwang,lqiwang;\n\tint tianji[1000];\n\tint qiwang[1000];\n\tint temptianji,tempqiwang;\n\tint money;\n\tint win,tie,lose;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\twin = 0,tie = 0,lose = 0;\n\tfor(i = 0;i < n;i++)\n\t\tscanf(\"%d\",&tianji[i]);\n\tfor(i = 0;i < n;i++)\n\t\tscanf(\"%d\",&qiwang[i]);\n\tfor(j = 0;j < n;j++)\n\t{\n\t\tfor(k = 0;k < n - j - 1;k ++)\n\t\t{\n\t\tif(tianji[k] < tianji[k + 1])\n\t\t\t{\n\t\t\t\ttemptianji = tianji[k];\n\t\t\t\ttianji[k] = tianji[k + 1];\n\t\t\t\ttianji[k + 1] = temptianji;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j = 0;j < n;j++)\n\t{\n\t\tfor(k = 0;k < n - j - 1;k ++)\n\t\t{\n\t\tif(qiwang[k] < qiwang[k + 1])\n\t\t\t{\n\t\t\t\ttempqiwang = qiwang[k];\n\t\t\t\tqiwang[k] = qiwang[k + 1];\n\t\t\t\tqiwang[k + 1] = tempqiwang;\n\t\t\t}\n\t\t}\n\t}\n\tint tstart = 0;\n\tint tlast = n - 1;\n\tint kstart = 0;\n\tint klast = n - 1;\n\tint cnt = 0;//???\n for(i = 0;i < n;i++)//???????????? \n { \n if(tianji[tstart]>qiwang[kstart])//tstart????????????????tianji??????? \n { \n cnt++; \n tstart++; \n kstart++; \n continue; \n } \n if(tianji[tstart] qiwang[klast])//tianji????????????????? \n { \n tlast--; \n klast--; \n cnt++; \n continue; \n } \n if(tianji[tlast] == qiwang[klast])//?????? ???tianji????????? \n { \n if(tianji[tlast] < qiwang[kstart])//??tianji??????????cnt?1 \n cnt--; \n kstart++; \n tlast--; \n } \n } \n }\n\tmoney = 200 * cnt;\n\tprintf(\"%d\\n\",money);\n\tscanf(\"%d\",&n);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45899", "code": "int cmp(const void *a,const void *b)\n{\n if(*((int*)a)>*((int*)b))return -1;\n else if(*((int*)a)<*((int*)b))return 1;\n else return 0;\n}\nint main()\n{\n int n,a[1000],b[1000],i,sum,s1,s2,i1,i2;\n scanf(\"%d\",&n);\n while(n)\n {\n sum=0;\n for(i=0;ib[i2]){sum++;i1--;i2--;}\n else{sum--;i1--;s2++;}\n }\n if(s1>i1)break;\n while(a[s1]!=b[s2]&&s1<=i1)\n {\n if(a[s1]>b[s2]){sum++;s1++;s2++;}\n else{sum--;i1--;s2++;}\n }\n if(s1>i1)break;\n if(a[s1]==b[s2]&&a[i1]==b[i2])\n {\n if(a[i1]>b[s2])sum++;\n else if(a[i1]i1)break;\n }\n printf(\"%d\\n\",sum*200);\n scanf(\"%d\",&n);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45900", "code": "long sum[1001][1001],s[1001],s1[1001];\n\nlong max(long x,long y)\n{\n\tif (x>y) return(x);\n\telse return(y);\n}\n\n\n\nvoid pai(int i,int j)\n{\n\tlong i1=i,j1=j,tmp=s[i];\n\twhile(itmp)\ti++;\n\t\tif(itmp)\ti++;\n\t\tif(is1[0]) sum[1][n]=1; else if (s[0]==s1[0]) sum[1][n]=0; else sum[1][n]=-1;\n\t if (s[n-1]>s1[0]) sum[0][n-1]=1; else if (s[n-1]==s1[0]) sum[0][n-1]=0; else sum[0][n-1]=-1;\n\t for (i=1;is1[i]) temp=sum[j][n+j-i]+1;\n\t\t\t\t else if (s[n+j-i-1]==s1[i]) temp=sum[j][n+j-i];\n\t\t\t\t else temp=sum[j][n+j-i]-1;\n\n\t if (j>0) sum[j][n+j-i-1]=max(temp,sum[j][n+j-i-1]);\n\t\t\t else sum[j][n+j-i-1]=temp;\n\n\t\t\tif (s[j]>s1[i]) sum[j+1][n+j-i]=sum[j][n+j-i]+1;\n\t\t\t else if (s[j]==s1[i]) sum[j+1][n+j-i]=sum[j][n+j-i];\n\t\t\t\t else {sum[j+1][n+j-i]=sum[j][n+j-i]-1;}\t\n\t\t}\n\t }\n\t zong=sum[1][1];\n\t for (i=1;i<=n;i++)\n\t\t if (sum[i][i]>zong) zong=sum[i][i];\n\t printf(\"%ld\\n\",zong*200);\n\t scanf(\"%ld\",&n);\n }\n}\n\n"} +{"label": "92", "index": "45901", "code": "\nvoid main()\n{\n\tint m,l,qww_fast,tj_fast,qww_slow,tj_slow,n,game,win,turn;\n\tint qww[2000],tj[2000],out[300];\n\tfor (game=0;;game++)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif (n==0) break;\n\t\tfor (m=0;m=tj_fast;)\n\t\t{\n\t\t\tif(tj[tj_slow]>qww[qww_slow])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\ttj_slow--;\n\t\t\t\tqww_slow--;\n\t\t\t}\n\t\t\telse if (tj[tj_slow]qww[qww_fast])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\ttj_fast++;\n\t\t\t\t\tqww_fast++;\n\t\t\t\t}\n\t\t\t\telse if(tj[tj_fast] qw[t])\n\t\tans++;\n}\nint main()\n{\n\twhile (cin >> n)\n\t{\n\t\tif (n == 0) break;\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> tj[i] ;\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> qw[i];\n\t\tsort(tj,tj+n);\n\t\tsort(qw,qw+n);\n\t\n\t\tx = a = 0;\n\t\ty = b = n-1;\n\t\tans = 0;\n\n\t\tfor(int i = 0; i < n ; i++)\n\t\t{\n\t\t\tif (qw[y] < tj[b])\n\t\t\t\tfight(b--,y--);\n\t\t\telse if (qw[y] > tj[b])\n\t\t\t\tfight(a++,y--);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (qw[x] >= tj[a])\n\t\t\t\t\tfight(a++,y--);\n\t\t\t\telse if (qw[x] < tj[a])\n\t\t\t\t\tfight(a++,x++);\n\t\t\t}\n\t\t}\n\t\tcout << ans * 200 << endl;\n\t}\n}\n"} +{"label": "92", "index": "45903", "code": "int data[2][1000];\nint cmp(const void * e1,const void * e2)\n{\n\tint * p1 = (int *)e1;\n\tint * p2 = (int *)e2;\n\treturn *p2 - *p1;\n}\nint main()\n{\n\tint n;int ans;\n\twhile(cin >> n && n != 0)\n\t{\n\t\tans = 0;\n\t\tfor(int i = 0;i < n;i ++)\n\t\t\tcin >> data[0][i];\n\t\tfor(int i = 0;i < n;i ++)\n\t\t\tcin >> data[1][i];\n\t\tqsort(data[0],n,sizeof(int),cmp);\n\t\tqsort(data[1],n,sizeof(int),cmp);\n\t\tint b[2],e[2];\n\t\tb[0] = b[1] = 0;e[0] = e[1] = n-1;\n\t\twhile(b[0]<=e[0])\n\t\t{\n\t\t\tif(data[0][b[0]] > data[1][b[1]])\n\t\t\t{\n\t\t\t\tb[0]++;b[1]++;\n\t\t\t\tans += 200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(;data[0][e[0]] > data[1][e[1]];e[0]--,e[1]--,ans += 200);\n\t\t\t\tif(data[0][e[0]] < data[1][b[1]])\tans -= 200;\n\t\t\t\tb[1]++;e[0]--;\n\t\t\t}\n\t\t}\n\t\tcout << ans << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45904", "code": "int T[1000],Q[1000],n;\nint search()\n{\n int i,j,temp;\n int Inco[1000][1000]={0};\n \n for(i=0;i<=n-2;i++) \n for(j=i+1;j<=n-1;j++)\n {\n if(T[i]=0;i--)\n {\n for(j=1;i+jT[0+j])\n Inco[i][j]=Inco[i+1][j-1]-1;\n else \n { if(Inco[i+1][j-1]-1>Inco[i][j-1]+0)\n Inco[i][j]=Inco[i+1][j-1]-1; \n else \n Inco[i][j]=Inco[i][j-1]+0;\n }\n }\n }\n return Inco[0][n-1];\n}\n \nint main()\n{\n int i;\n scanf(\"%d\",&n);\n while(n!=0)\n {\n for(i=0;i> n)\n\t{\n\t\tif(n == 0)\n\t\t\tbreak;\n\t\tfor(i = 0;i < n;i ++)\n\t\t\tcin >> t[i];\n\t\tfor(i = 0;i < n;i ++)\n\t\t\tcin >> q[i];\n\t\tqsort(t, n, sizeof(int), comp);\n\t\tqsort(q, n, sizeof(int), comp);\n\t\tint tl = 0,ql = 0;\n\t\tint tr = n - 1,qr = n - 1;\n\t\tint result = 0;\n\t\twhile(tl <= tr)\n\t\t{\n\t\t\tif(t[tl] > q[ql])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\ttl ++;\n\t\t\t\tql ++;\n\t\t\t}\n\t\t\telse if(t[tr] > q[qr])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\ttr --;\n\t\t\t\tqr --;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\n\t\t\t\tif(t[tr] > q[ql])\n\t\t\t\t\tresult += 200;\n\t\t\t\telse if(t[tr] < q[ql])\n\t\t\t\t\tresult -= 200;\n\t\t\t\ttr --;\n\t\t\t\tql ++;\n\t\t\t}\n\t\t}\n\t\tcout << result << endl;\n\t}\n}"} +{"label": "92", "index": "45906", "code": "int ans, n, a[1000], b[1000];\nint cmp(int x, int y){\n\treturn (x > y);\n}\nint main(){\n\tint i, j, an, bn;\n\twhile(cin >> n && n){\n\t\tans = 0;\n\t\tan = n;\n\t\tbn = n;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tcin >> a[i];\n\t\tfor(i = 0; i < n; i++)\n\t\t\tcin >> b[i];\n\t\tsort(a,a+n,cmp);\n\t\tsort(b,b+n,cmp);\n\t\tfor(i = 0, j = 0; i < an && j < bn;){\n\t\t\tif(a[i] > b[j]){\n\t\t\t\tans++;\n\t\t\t\ti++;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\telse if(a[i] < b[j]){\n\t\t\t\tif(a[an-1] < b[j]){\n\t\t\t\t\tans--;\n\t\t\t\t\tan--;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a[an-1] > b[bn-1]){\n\t\t\t\t\tans++;\n\t\t\t\t\tan--;\n\t\t\t\t\tbn--;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(a[an-1] < b[j]){\n\t\t\t\t\t\tans--;\n\t\t\t\t\t\tan--;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse if(a[an-1] == b[j]){\n\t\t\t\t\t\tan--;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << ans*200 << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45907", "code": "int tianji[1010];\nint qiwang[1010];\n\nvoid Input( int n )\n{\n\tint i;\n\tfor( i = 0 ; i < n ; i ++ )\n\t{\n\t\tscanf(\"%d\",&tianji[i]);\n\t}\n\tfor( i = 0 ; i < n ; i ++ )\n\t{\n\t\tscanf(\"%d\",&qiwang[i]);\n\t}\n}\nint comp( const void *a , const void * b )\n{\n\treturn *(int *)a - *(int *)b;\n}\n\n\nint calc( int n )\n{\n\tint t1,t2,q1,q2;\n\tt1 = 0;\n\tt2 = n-1;\n\tq1 = 0;\n\tq2 = n-1;\n\n\tint win, lose;\n\twin = 0;\n\tlose = 0;\n\twhile( t1 <= t2 )\n\t{\n\t\tif( tianji[t2] > qiwang[q2] ) //??????????????\n\t\t{\n\t\t\twin++;\n\t\t\tt2--;\n\t\t\tq2--;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( tianji[t2] < qiwang[q2] )//??????????????????????\n\t\t\t{\n\t\t\t\tlose++;\n\t\t\t\tt1++;\n\t\t\t\tq2--;\n\t\t\t}\n\t\t\telse//?????????????\n\t\t\t{\n\t\t\t\tif( tianji[t1] > qiwang[q1] )//??????????????\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tt1++;\n\t\t\t\t\tq1++;\n\t\t\t\t}\n\t\t\t\telse//???????????????\n\t\t\t\t{\n\t\t\t\t\tif( tianji[t1] < qiwang[q2] )//??????????\n\t\t\t\t\t{\n\t\t\t\t\t\tlose++;\n\t\t\t\t\t\tt1++;\n\t\t\t\t\t\tq2--;\n\t\t\t\t\t}\n\t\t\t\t\telse//???\n\t\t\t\t\t{\n\t\t\t\t\t\tt1++;\n\t\t\t\t\t\tq2--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn (win - lose) * 200;\n}\nmain()\n{\n\tint n;\n\twhile( scanf(\"%d\",&n) && n )\n\t{\n\t\tInput(n);\n\t\tqsort(tianji,n,sizeof(tianji[0]),comp);\n\t\tqsort(qiwang,n,sizeof(qiwang[0]),comp);\n\t\tprintf(\"%d\\n\",calc(n));\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45908", "code": "int cmp(const void *a, const void *b)\n{\n\treturn *(int *)a - *(int *)b;\n}\nint main()\n{\n\tint n, i, j, tian[1010], qi[1010];\n\twhile(cin >> n)\n\t{\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> tian[i];\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcin >> qi[i];\n\t\tqsort(tian, n, sizeof(int), cmp);\n\t\tqsort(qi, n, sizeof(int), cmp);\n\t\tint tmax = n - 1;\n\t\tint tmin = 0;\n\t\tint qmax = n - 1;\n\t\tint qmin = 0;\n\t\tint count = 0;\n\t\tint money = 0;\n\t\twhile (count != n)\n\t\t{\n\t\t\tif (tian[tmax] > qi[qmax])\n\t\t\t{\n\t\t\t\ttmax--;\n\t\t\t\tqmax--;\n\t\t\t\tcount++;\n\t\t\t\tmoney += 200;\n\t\t\t}\n\t\t\telse if (tian[tmin] > qi[qmin])\n\t\t\t{\n\t\t\t\ttmin++;\n\t\t\t\tqmin++;\n\t\t\t\tcount++;\n\t\t\t\tmoney += 200;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (tian[tmin] < qi[qmax])\n\t\t\t\t\tmoney -= 200;\n\t\t\t\ttmin++;\n\t\t\t\tqmax--;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tcout << money << endl;\n\t}\n}"} +{"label": "92", "index": "45909", "code": "\nint Q_hs[MAX];\nint T_hs[MAX];\n\nint hs_cmp(const void *p, const void *q)\n{\n return *(int *)p - *(int *)q;\n}\n\nint main(int ac, char **av)\n{\n int n;\n while (scanf(\"%d\", &n), n) {\n int i;\n for (i = 0; i < n; i++) \n scanf(\"%d\", &T_hs[i]);\n for (i = 0; i < n; i++) \n scanf(\"%d\", &Q_hs[i]);\n\n qsort(Q_hs, n, sizeof(int), hs_cmp);\n qsort(T_hs, n, sizeof(int), hs_cmp);\n\n for (i = 0; i < n; i++)\n printf(\"(%d %d) \", Q_hs[i], T_hs[i]);\n printf(\"\\n\");\n\n /* greedy strategy */\n int Ql, Qr, Tl, Tr, cost = 0;\n Ql = Tl = 0;\n Qr = Tr = n - 1;\n\n while (Tl <= Tr) {\n if (T_hs[Tl] > Q_hs[Ql]) {\n cost += 200;\n Tl++;\n Ql++;\n } else if (T_hs[Tr] > Q_hs[Qr]) {\n cost += 200;\n Tr--;\n Qr--;\n } else {\n if (T_hs[Tl] < Q_hs[Qr]) {\n cost -= 200;\n Tl++;\n Qr--;\n } else {\n Tl++;\n Qr--;\n }\n }\n }\n\n printf(\"%d\\n\", cost);\n }\n\n return 0;\n}\n"} +{"label": "92", "index": "45910", "code": "\n\nint cmp(const void * e1, const void * e2)\n{\n\treturn *(int *)e1 - *(int *)e2;\n}\nint main()\n{\n\tint tian[1000];\n\tint qi[1000];\n\tint i,n;\n\tint tf,tl;\n\tint qf,ql;\n\tint count;\n\tcin>>n;\n\twhile(n >0)\n\t{\n\t\tfor(i = 0 ;i < n; i++)\n\t\t\tscanf(\"%d\", & tian[i]);\n\t\tfor(i =0 ;i < n; i++)\n\t\t\tscanf(\"%d\", & qi[i]);\n\t\tqsort(tian, n, sizeof(int), cmp );\n\t\tqsort(qi, n, sizeof(int), cmp );\n\n\t\ttf = 0 ;\n\t\tqf = 0 ;\n\t\ttl = n-1; \n\t\tql = n-1;\n\t\tcount = 0;\n\t\twhile(n--)\n\t\t{\n\t\t\tif(tian[tf] > qi[qf] ){ //??? \n\t\t\t\tcount++;\n\t\t\t\ttf++;\n\t\t\t\tqf++;\n\t\t\t}\n\t\t\telse if(tian[tf] < qi[qf]){\n\t\t\t\ttf++;\n\t\t\t\tql--;\n\t\t\t\tcount --;\n\t\t\t}\n\t\t\telse{// ????\n\t\t\t\tif(tian[tl] > qi[ql]){\n\t\t\t\t\ttl--;\n\t\t\t\t\tql--;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(tian[tl] < qi[ql]){\n\t\t\t\t\tcount --;\n\t\t\t\t\ttf++;\n\t\t\t\t\tql--;\n\t\t\t\t}\n\t\t\t\telse{// ????\n\t\t\t\t\tif(tian[tf] < qi[ql])\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t//else if ==\n\t\t\t\t\ttf++;\n\t\t\t\t\tql--;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tprintf(\"%d\\n\", count * 200);\n\t\t// next\n\t\tscanf(\"%d\", & n);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45911", "code": "int mycompare(const void * e1,const void * e2)\n{\n\tint * p1,*p2;\n\tp1=(int*)e1;\n\tp2=(int*)e2;\n\treturn (*p2)-(*p1);\n};\nint main()\n{\n\tint p,count,n,a[1001],b[1001],s1,s2,e1,e2,i;\n\tcin>>n;\n\twhile(n!=0)\n\t{\n\n\t\tfor(i=0;i>a[i];\n\t\t}\n\t\tfor(i=0;i>b[i];\n\t\t}\t\n\t\tcount=0;\n\t\tqsort(a,n,sizeof(int),mycompare);\n\t\tqsort(b,n,sizeof(int),mycompare);\n\t\ts1=s2=0;\n\t\te1=e2=n-1;\n\t\tfor(p=0;pb[s2])\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\ts1++;\n\t\t\t\ts2++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[e1]>b[e2])\n\t\t\t\t{\n\t\t\t\t\te1--;\n\t\t\t\t\te2--;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a[e1]>n;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45912", "code": "//????\n\n\nint mycompare(const void * elem1, const void * elem2)\n{\n\tint *p1, *p2;\n\tp1 = (int *)elem1;\n\tp2 = (int *)elem2;\n\treturn *p2 - *p1;\n}\n\nint main()\n{\n\tint n, i, money, khead, thead, ktail, ttail;\n\tint horse[2][1005];\n\twhile (cin >> n)\n\t{\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tmoney = 0;\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tcin >> horse[0][i];\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tcin >> horse[1][i];\n\t\tqsort(horse[0], n, sizeof(int), mycompare);\n\t\tqsort(horse[1], n, sizeof(int), mycompare);\n\t\tkhead = thead = 0;\n\t\tktail = ttail = n - 1;\n\t\twhile (khead <= ktail && thead <= ttail)\n\t\t{\n\t\t\tif (horse[0][thead] > horse[1][khead])//??????????????????? ??????????\n\t\t\t{\n\t\t\t\tthead ++;\n\t\t\t\tkhead ++;\n\t\t\t\tmoney += 200;\n\t\t\t}\n\t\t\telse if (horse[0][thead] < horse[1][khead])//??????????????????? ???????????????\n\t\t\t{\n\t\t\t\tkhead ++;\n\t\t\t\tttail --;\n\t\t\t\tmoney -= 200;\n\t\t\t}\n\t\t\telse//???????????????????????,????????????????,??????\n\t\t\t{\n\t\t\t\twhile (thead <= ttail && khead <= ktail)\n\t\t\t\t{\n\t\t\t\t\tif (horse[0][ttail] > horse[1][ktail])\n\t\t\t\t\t{\n\t\t\t\t\t\tttail --;\n\t\t\t\t\t\tktail --;\n\t\t\t\t\t\tmoney += 200;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (horse[0][ttail] < horse[1][khead])\n\t\t\t\t\t\t\tmoney -= 200;\n\t\t\t\t\t\tttail --;\n\t\t\t\t\t\tkhead ++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << money << endl;\n\t}\n\treturn 0;\n}\n\n/*\n?????\n?????????????????????????????\n????????????????????????????\n?????????????????????????????????->???????????\n???????????????????O(n)?\n\n \n??????? \n\n(1)??????????????????? ??????????\n\n ??????? ?????????????? ????????????? ???????????????????? ????\n\n ???????????(????? ???????) ?????????? ???????????\n\n(2)??????????????????????? \n\n ???????????????????????????? ??????????? ??????????????????? \n\n ??????? ????????????????? ????? ???????????????\n\n(2)??????????????????? ??????????????? ???????(???)\n\n ????????????????????????? ????????????? ??????????? ?????????\n\n ????????? ?\n\n */"} +{"label": "92", "index": "45913", "code": "int cmp(const void * a, const void * b) {\n return *(int *)a - *(int *)b;\n}\nint a[MAX], b[MAX], queue[MAX];\nint head, tail;\nvoid enqueue(int elem) {\n queue[head ++] = elem;\n if (head == MAX) head = 0;\n}\nint top() {\n return queue[tail];\n}\nint dequeue() {\n int ret = queue[tail ++];\n if (tail == MAX) tail = 0;\n return ret;\n}\nint empty() {\n return head == tail;\n}\nint size() {\n if (head < tail)\n return head + MAX - tail;\n else return head - tail;\n}\nint main() {\n int n, i, j, draw, win;\n int ans;\n while (scanf(\"%d\", &n) != EOF && n != 0) {\n head = tail = 0;\n for (i = 0; i < n; i ++)\n scanf(\"%d\", a + i);\n for (i = 0; i < n; i ++)\n scanf(\"%d\", b + i);\n qsort(a, n, sizeof(int), cmp);\n qsort(b, n, sizeof(int), cmp);\n win = draw = 0;\n for (i = n - 1, j = n - 1; j >= 0; j --) {\n if (a[i] > b[j]) i --, win ++;\n else {\n if (!empty() && top() > b[j]) {\n dequeue();\n win ++;\n }\n else {\n if (a[i] == b[j])\n enqueue(a[i --]);\n }\n }\n }\n draw = size();\n ans = (2 * win - n + draw) * 200;\n printf(\"%d\\n\", ans);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45914", "code": "\nint cmp(const void *a,const void *b)\n{\n\treturn *(int*)b - *(int*)a; \n}\n\nint main()\n{\n\tint i;\n\tint n;\n\tint t[1005];\n\tint w[1005];\n\twhile(1)\n\t{\n\t\tcin>>n;\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tfor(i = 0 ; i < n; i++)\n\t\t\tcin>>t[i];\n\t\tfor(i=0 ; i>w[i];\n\t\tqsort(t,n,sizeof(t[0]),cmp);\n\t\tqsort(w,n,sizeof(w[0]),cmp);\n\t\tint count=0;\n\t\tint thead=0;\n\t\tint khead=0;\n\t\tint ttail=n-1;\n\t\tint ktail=n-1;\n\t\twhile(thead<=ttail)\n\t\t{\n\t\t\tif(t[thead]>w[khead])//????>????????\n\t\t\t{ \n\t\t\t\tcount++;\n\t\t\t\tthead++;\n\t\t\t\tkhead++;\n\t\t\t}\n\t\t\telse if(t[thead]=thead)\n\t\t\t\t{\n\t\t\t\t\tif(t[ttail]>w[ktail])//???????????\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tttail--;\n\t\t\t\t\t\tktail--; \n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(t[ttail]>n;\n\t\tif(n==0) \n\t\t\tbreak;\n\t\tfor(i=0;i>a[i];\n\t\tfor(i=0;i>b[i];\n\t\tqsort( a, n, sizeof( int ), cmp );\n\t\tqsort(b, n, sizeof( int ), cmp );\n\t\tj=0;\n\t\tfor(i=j=n-1,end1=end2=0;j>=end2&&i>=end1;j--)\n\t\t{\n\t\t\tif(a[i]>b[j])\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t\ti--;\n\t\t\t}\n\t\t\telse if(a[i]b[end2])//a??????b????\n\t\t\t\t{\n\t\t\t\t\tsum++;end1++;end2++; j++;\n\t\t\t\t}\n\t\t\t\telse if(a[end1]>num;\n\t\tif(num==0)\n\t\t\tbreak;\n\t\twin=0;\n\t\tint tt=num-1;\n\t\tint tq=num-1;\n\t\tint ht=0;\n\t\tint hq=0;\n\t\tshu=0;\n\t\tfor(i=0;i>a[i];\n\t\tfor(i=0;i>b[i];\n\t\tqsort(a,num,sizeof(int),com);\n\t\tqsort(b,num,sizeof(int),com);\n\t\twhile(ht<=tt)\n\t\t{\n\t\t\tif(b[tq]>a[tt])\n\t\t\t{\n\t\t\t\thq++;\n\t\t\t\ttt--;\n\t\t\t\tshu++;\n\t\t\t}\n\t\t\telse if(b[tq]b[hq])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tht++;\n\t\t\t\t\thq++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a[tt]b[i]) s=s+200;\n else if (a[i]a[p]) p=j;\n k=a[i]; a[i]=a[p]; a[p]=k;\n }\n}\nmain()\n{\n \n int i,j,k,max;\n scanf(\"%d\",&n);\n while (n!=0)\n {\n for (i=0;imax) max=ans[i];\n printf(\"%d\\n\",max);\n scanf(\"%d\",&n);\n }\n}"} +{"label": "92", "index": "45918", "code": "\nint dp[1010][1010];\nint a[1010]={0},b[1010]={0};\nint cmp1(const void *a,const void *b){\n\treturn *(int *)a- *(int *)b;\n}\nint cmp2(const void *a,const void *b){\n\treturn *(int *)b- *(int *)a;\n}\nint max(int a,int b){\n\treturn a>b?a:b;\n}\nint mon(int i,int j){\n\tif(a[i]>b[j])\treturn 200;\n\tif(a[i]==b[j])\treturn 0;\n\tif(a[i]>n;\n\tint i,j;\n\twhile(n){\n\t\tmemset(a,0,sizeof(int));\n\t\tmemset(b,0,sizeof(int));\n\t\tfor(i=0;i>a[i];\n\t\t}\n\t\tfor(i=0;i>b[i];\n\t\t}\n\t\tqsort(a,n,sizeof(int),cmp1);//????\n\t\tqsort(b,n,sizeof(int),cmp2);//????\n\t\tmemset(dp,0,sizeof(int));\n\t\tfor(i=1;i<=n;i++){\n\t\t\tdp[i][0]=dp[i-1][0]+mon(n-i,i-1);\n\t\t\tfor(j=1;jMax)Max=dp[n][i];\n\t\t}\n\t\tcout<>n;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45919", "code": "\nint tianji[1000];\nint qiwang[1000];\nint comp(const void * a, const void * b)\n{\n\treturn *(int *)b - *(int *)a;\n}\nint main(void)\n{\n\tint comp(const void * a, const void * b);\n\tint n;\n\tcin>>n;\n\tint i,j;\n\twhile(n!=0)\n\t{\n\t\tfor(i = 0; i < n; i++)\n\t\t\tcin>>tianji[i];\n\t\tfor(i = 0; i < n; i++)\n\t\t\tcin>>qiwang[i];\n\t\tqsort(tianji,n,sizeof(int),comp);\n\t\tqsort(qiwang,n,sizeof(int),comp);\n\t\tj = 0;\n\t\tint score = 0;\n\t\tint index1 = 0;\n\t\tint index2 = n-1;\n\t\tint index3 = 0;\n\t\tint index4 = n-1;\n\n\t\twhile(index1 <= index2)\n\t\t{\n\t\t\tif( tianji[index1] > qiwang[index3] )\n\t\t\t{\n\t\t\t\tscore = score + 200;\n\t\t\t\tindex1 = index1 + 1;\n\t\t\t\tindex3 = index3 + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( tianji[index1] < qiwang[index3] )\n\t\t\t\t{\n\t\t\t\t\tscore = score - 200;\n\t\t\t\t\tindex3 = index3 + 1;\n\t\t\t\t\tindex2 = index2 - 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif( tianji[index2] > qiwang[index4] )\n\t\t\t\t\t{\n\t\t\t\t\t\tscore = score + 200;\n\t\t\t\t\t\tindex2 = index2 - 1;\n\t\t\t\t\t\tindex4 = index4 - 1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif( tianji[index2] < qiwang[index3])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscore = score - 200;\n\t\t\t\t\t\t\tindex2 = index2 - 1;\n\t\t\t\t\t\t\tindex3 = index3 + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<>n;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45920", "code": "//Hungary Algorithm\n\nint a[1010];\nint b[1010];\nint n;\nint money;\n\nvoid sort(int* array,int n)\n{\n\tint i=0;\n\tint j=0;\n\tint t;\n\tint *p;\n\tfor(i=0;i=i;x--,y--)\n\t\t\t\t{\n\t\t\t\t\tif(a[x]>b[y])\n\t\t\t\t\t{\n\t\t\t\t\t\tmoney+=200;\n\t\t\t\t\t\tbacki--;\n\t\t\t\t\t\tbackj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[x]t[j+1]) {temp=t[j];t[j]=t[j+1];t[j+1]=temp;}\n\t\tfor(i=0;iq[j+1]) {temp=q[j];q[j]=q[j+1];q[j+1]=temp;}\n\t\tmoney=0;\n\n\t\tfor(i=0;imax){\n\t\t\t\t\tmax=q[j];maxnum=j;flag=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag){\n\t\t\t\tt[i]=-100;q[maxnum]=-100;money+=200;\n\t\t\t}\n\t\t}\n\n\t\tfor(i=0;i=a[k+j]);\n \n else if(a[k]=b[k+j]);\n \n else if(b[k]b[s2])\n {\n x=x+200;\n s1++;\n s2++;\n count++;\n continue;\n }\n else if(a[s1]<=b[s2]) \n {\n if(a[order1]>b[order2])\n {\n order1--;\n order2--;\n count++;\n x=x+200;\n continue;\n } \n else if(a[s1]==b[s2]&&a[order1]==b[order2]&&a[s1]==a[order1]) \n break;\n else if(a[order1]<=b[order2])\n {\n s2++;\n order1--;\n count++; \n x=x-200; \n continue; \n } \n \n } \n \n }\n \n\n printf(\"%d\\n\",x);\n x=0;\n count=0;\n m=0;\n s1=1;\n s2=1;\n } \n \n \n} \n}"} +{"label": "92", "index": "45923", "code": "int main()\n{\n\tint n;\n\tint a[1000],b[1000]; //a????b???\n\tint circle,i,j;\n\tint i1,i2,j1,j2;\n\tint count,win;\n\tint t;\n\tfor(circle=0;;circle++)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0)\n\t\t\tbreak;\n\t\tfor(i=0;ib[j1])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tj1++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} //??\n\t\t\tif(count==n)\n\t\t\t\tbreak;\n\t\t\tfor(;j2>=0;i2--,j2--)\n\t\t\t{\n\t\t\t\tif(a[i2]>b[j2])\n\t\t\t\t{\n\t\t\t\t\twin++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ti2--;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} //??\n\t\t\tif(count==n)\n\t\t\t\tbreak;\n\t\t\tif(a[i2+1]=t[i])\n {\n num=t[i];\n t[i]=t[j];\n t[j]=num;\n }\n }\n } \n for(j=0;j=q[i])\n {\n num=q[i];\n q[i]=q[j];\n q[j]=num;\n }\n }\n } \n for(i=0;i=0;j--)\n {\n if(tian[i]==0 && qi[j]==0)\n if(t[i]>q[j])\n {\n tian[i]=1;\n qi[j]=1;\n win++;\n break;\n }\n }\n }\n for(i=0;i0;j++)\n {\n counter=0,c=0,lose=0;\n for(i=0;(q[i]t[n-1])\n {lose++;} /*?????*/ \n m=m-lose;\n for(i=0;i<=n-1;i++) \n {\n q[i]=q[i+1]; /*???????pass*/\n }\n \n \n n=n-1;\n \n }\n \n money[k]=200*(m); \n \n l++;\n \n }\n \n }\n \n for(k=0;k=1; i--)\n for(j=1; j<=i; j++)\n {\n if(a[j]b[p2])\n {\n ans--;\n p1++;\n q2--;\n }\n else\n {\n if(a[q1]b[q2])\n {\n ans--;\n p1++;\n q2--;\n }\n }\n }\n }\n printf(\"%d\\n\", ans*200);\n scanf(\"%d\", &n);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45927", "code": "\nint cmp1(const void * p1, const void * p2)\n{\n\tint * p3 = (int *)p1;\n\tint * p4 = (int *)p2;\n\treturn *p3 - *p4;\n}\n\nint cmp2(const void * p1, const void * p2)\n{\n\tint * p3 = (int *)p1;\n\tint * p4 = (int *)p2;\n\treturn *p4 - *p3;\n}\n\nint q[1001], t[1001];\n\nint main()\n{\n\tint n;\n\twhile (cin >> n)\n\t{\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (int i = 0; i < n; i ++)\n\t\t\tcin >> t[i];\n\t\tfor (int i = 0; i < n; i ++)\n\t\t\tcin >> q[i];\n\n\t\tqsort(t, n, sizeof(int), cmp1);\n\t\tqsort(q, n, sizeof(int), cmp2);\n\n\n\t\t//for (int i = 0; i < n; i ++)\n\t\t//\tcout << t[i] << ' ' << q[i] << endl;\n\n\t\tint result = 0;\n\n\t\tint tl, tr, ql, qr;\n\t\ttl = ql = 0;\n\t\ttr = qr = n - 1;\n\n\t\twhile (ql <= qr && tl <= tr)\n\t\t{\n\t\t\t//cout << ql << ' ' << qr << endl;\n\t\t\t//cout << tl << ' ' << tr << endl;\n\t\t\tif (q[ql] < t[tr])\n\t\t\t{\n\t\t\t\tresult += 200;\n\t\t\t\tql ++;\n\t\t\t\ttr --;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (t[tl] > q[qr])\n\t\t\t\t{\n\t\t\t\t\tresult += 200;\n\t\t\t\t\ttl ++;\n\t\t\t\t\tqr --;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (t[tl] < q[ql])\n\t\t\t\t\t{\n\t\t\t\t\t\tresult -= 200;\n\t\t\t\t\t\ttl ++;\n\t\t\t\t\t\tql ++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttl ++;\n\t\t\t\t\t\tql ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << result << endl;\n\t}\n\n\treturn 0;\n}"} +{"label": "92", "index": "45928", "code": "\n\n\n\n\n \n\nint TianJi[M], King[M];\n\nint dp[M][M]; //dp[i][j]????????????????????i?????,\n\n //?\"?\"??j?????,?\"?\"??i-j?????,??????????.\n\n \nint cmp(const void *a, const void *b)\n\n{\n\n return *(int *)b - *(int *)a;\n\n}\n\n \nint profit(int x, int y)\n\n{\n\n if (TianJi[x] > King[y])\n\n {\n\n return 200;\n\n }\n\n else if (TianJi[x] < King[y])\n\n {\n\n return -200;\n\n }\n\n else\n\n {\n\n return 0;\n\n }\n\n}\n\n \nvoid main()\n\n{\n\n\n\n \n int i, j, n;\n\n while(scanf(\"%d\", &n)&&n!=0)\n\n {\n\n memset(dp, 0, sizeof(dp));\n\n for (i = 1; i <= n; i++)\n\n {\n\n scanf(\"%d\", &TianJi[i]);\n\n }\n\n for (i = 1; i <= n; i++)\n\n {\n\n scanf(\"%d\", &King[i]);\n\n }\n\n //?????????????????\n\n qsort(TianJi + 1, n, sizeof(TianJi[0]), cmp);\n\n qsort(King + 1, n, sizeof(King[0]), cmp);\n\n //??dp\n\n for (i = 1; i <= n; i++)\n\n {\n\n //????????????????????????,????????????????????\n\n dp[i][0] = dp[i - 1][0] + profit(n - i + 1, i); \n //????????????????????????,????????????????\n\n dp[i][i] = dp[i - 1][i - 1] + profit(i, i);\n\n //?????????????????????????,?????????????????,????i?????????\n\n for (j = 1; j < i; j++)\n\n {\n\n dp[i][j] = max( ( dp[i - 1][j] + profit(n - (i - j) + 1, i) ), ( dp[i - 1][j - 1] + profit(j, i) ) );\n\n }\n\n }\n\n //????????\n\n int ans = -99999999;\n\n for (i = 0; i <= n; i++)\n\n {\n\n if (ans < dp[n][i])\n\n {\n\n ans = dp[n][i];\n\n }\n\n }\n\n printf(\"%d\\n\", ans);\n\n }\n\n}"} +{"label": "92", "index": "45929", "code": "int main()\n{\n int i=0;\n for(i=0;;i++)\n {\n \n int n,i,j,s,t=0,win=0,loss=0,equal=0,sum=0,f,g;\n scanf(\"%d\",&n);\n if(n==0) break;\n int a[1000];\n int b[1000];\n int c[1000];\n int d[1000];\n\n \n for (i=0;i=i; j--) \n {\n if (a[j]>a[j+1]) \n {\n s=a[j];\n a[j]=a[j+1];\n a[j+1]=s;\n } \n } \n // printf(\"%d \",a[i]) ; \n }// printf(\"%d\",a[n-1]); \n \n for(i=0;i<=(n-2);i++) \n {\n for (j=(n-2); j>=i; j--) \n {\n if (b[j]>b[j+1]) \n {\n s=b[j];\n b[j]=b[j+1];\n b[j+1]=s;\n } \n } \n // printf(\"%d \",a[i]) ; \n }// printf(\"%d\",a[n-1]); \n /*for (i=0;i<=(n-1);i++)\n {\n printf(\"a[i]=%d b[i]=%d\\n\",a[i],b[i]);\n }*/\n \n for (i=0,j=(n-1),f=0,g=(n-1);i<=j&&f<=g;)\n {\n if ( a[i]>b[f] )\n {\n sum+=200;\n i++;\n f++;\n //printf(\"%d\\n\",sum);\n } \n else \n {\n if ( a[i]b[g] )//??????????? ????????? \n {\n sum+=200;\n //printf(\"%d\\n\",sum);\n j--;\n g--;\n }\n else \n {\n if (a [j]i;j--){\n\t\t\tif(tian[j]>tian[j-1]){\n\t\t\t\tb=tian[j];\n\t\t\t\ttian[j]=tian[j-1];\n\t\t\t\ttian[j-1]=b;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ii;j--){\n\t\t\tif(wang[j]>wang[j-1]){\n\t\t\t\tb=wang[j];\n\t\t\t\twang[j]=wang[j-1];\n\t\t\t\twang[j-1]=b;\n\t\t\t}\n\t\t}\n\t}\n\tfor(;stat<=endt;){\n\t\tif(tian[stat]>wang[staw]){\n\t\t\tsum+=200;\n\t\t\tstaw++;\n\t\t\tstat++;\n\t\t}\n\t\telse if(tian[stat]wang[endw]){\n\t\t\t\t\tsum+=200;\n\t\t\t\t\tendt--;\n\t\t\t\t\tendw--;\n\t\t\t\t}\n\t\t\t\telse if(tian[endt]<=wang[endw]){\n\t\t\t\t\tif(tian[endt] *p2) return -1;\n}\n\n\nint main(){\n\tint n , i ,j ;\n\tint a[1005],b[1005];\n\tint p1,p2,end1,end2;\n\tint win;\n\twhile(1){\n\t\tcin>>n;\n\t\tif(n == 0) break;\n\t\tmemset(a,0,sizeof(a));\n\t\tmemset(b,0,sizeof(b));\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin>>a[i];\n\t\tfor(i = 0;i < n;i++)\n\t\t\tcin>>b[i];\n\n\t\tqsort(a, n ,sizeof(int),cmp);\n\t\tqsort(b, n ,sizeof(int),cmp);\n\t\n\t\twin = 0;\n\t\n\n\t\tfor(p1 = 0, p2 = 0, end1 = n-1,end2 = n-1 ; p1<=end1 && p2<=end2 ;){\n\t\t\tif(a[p1] > b[p2]){\n\t\t\t\twin ++;\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t\tif(a[p1] < b[p2]){\n\t\t\t\twin --;\n\t\t\t\tend1--;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t\tif(a[p1] == b[p2]){\n\t\t\t\tif(a[end1] > b[end2]){\n\t\t\t\t\twin ++;\n\t\t\t\t\tend1 --;\n\t\t\t\t\tend2 --;\n\t\t\t\t}\n\t\t\t\telse if(a[end1] == b[end2]){\n\t\t\t\t\tif(a[end1] == b[p2]){\n\t\t\t\t\t\tend1 --;\n\t\t\t\t\t\tp2++;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\twin--;\n\t\t\t\t\t\tend1--;\n\t\t\t\t\t\tp2++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\twin--;\n\t\t\t\t\tend1--;\n\t\t\t\t\tp2++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t\tcout<w[wslow])\n\t\t\t\t{ \n\t\t\t\t\twin++; tslow--; wslow--; \n\t\t\t\t}\n\t\t\t\telse if (t[tslow]w[wfast]) \n\t\t\t{\n\t\t\t\twin++; tfast++; wfast++;\n\t\t\t}\n\t\t\telse \n\t\t\t{ \n\t\t\t\twin--; tslow--; wfast++; \n\t\t\t} \n\t\t}\n\t\tprintf(\"%d\\n\", win*200);\n\t\t}\n\t\t\n\n}"} +{"label": "92", "index": "45933", "code": "\nint compare(const void *a,const void *b)\n{\n return *(int*)b-*(int*)a ;\n}\n\nmain()\n{\n int n;\n int t[1000];\n int q[1000];\n int i,j,k,m;\n int r,tk,tm,qk,qm;\n for(;;)\n { \n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=0;iq[qm])\n {r++;tm--;qm--;}\n else if(t[tk]>q[qk])\n {r++;tk++;qk++;}\n else if(t[tm]a[maxj]?j:maxj;\n temp=a[i];\n a[i]=a[maxj];\n a[maxj]=temp;\n }\n }\nint max(int x,int y)\n{\n return x>y?x:y;\n}\nmain()\n{\n int k,n,i,j,t[1000],q[1000],f[1005][1005];\n for(;;)\n {\n scanf(\"%d\",&n);\n if(n==0) break;\n for(i=0;iq[i]) f[i+1][j+1]=max(f[i+1][j+1],f[i][j]+200);\n else if(t[j]==q[i]) { f[i+1][j+1]=max(f[i+1][j+1],f[i][j]); f[i+1][j]=max(f[i+1][j],f[i][j]-200);}\n else f[i+1][j]=max(f[i+1][j],f[i][j]-200);\n }\n k=f[n][0];\n for(j=1;j<=n;j++)\n k=f[n][j]>k?f[n][j]:k;\n printf(\"%d\\n\",k);\n }\n \n return 0;\n}\n"} +{"label": "92", "index": "45935", "code": "\nint n;\nint q[1001],t[1001];\nint qshang,tshang,qxia,txia;\n\nint cmp(const void* a,const void*b)\n{\t\n\tint *p1=(int*)a;\n\tint *p2=(int*)b;\n\treturn *p2-*p1;\n}\n\nint main()\n{\n\twhile(cin>>n)\n\t{\n\t\tif(n==0) break;\n\t\tint i;\n\t\tfor(i=1;i<=n;i++)\n\t\t\tcin>>t[i];\n\t\tfor(i=1;i<=n;i++)\n\t\t\tcin>>q[i];\n\t\tqsort(q+1,n,sizeof(q[1]),cmp);\n\t\tqsort(t+1,n,sizeof(t[1]),cmp);\n\t\n\t\tint res=0;\n\t\tqxia=txia=n;\n\t\tqshang=tshang=1;\n\t\twhile(qshang<=qxia && tshang<=txia)\n\t\t{\n\t\t\tif(t[txia]>q[qxia])\n\t\t\t{\n\t\t\t\tres++;\n\t\t\t\tqxia--;\n\t\t\t\ttxia--;\n\t\t\t}\n\t\t\telse if(t[txia]t[tshang])\n\t\t\t\t{\n\t\t\t\t\tqshang++;\n\t\t\t\t\ttxia--;\n\t\t\t\t\tres--;\n\t\t\t\t}\n\t\t\t\telse if(q[qshang]>n && n)\n\t{\n\t\tfor(int i = 0;i < n;i ++)\n\t\t\tcin>>tian[i];\n\t\tfor(int i = 0;i < n;i ++)\n\t\t\tcin>>qiw[i];\n\t\tsort(tian,tian + n);\n\t\tsort(qiw, qiw + n);\n\t\tint ti, tj, qi, qj;\n\t\tti = qi = 0;\n\t\ttj = qj = n - 1;\n\t\tint sum = 0;\n\t\tfor(int i = 0;i < n;i ++)\n\t\t{\n\t\t\tif(tian[ti] < qiw[qi])\n\t\t\t{\n\t\t\t\tsum -= 200;\n\t\t\t\tti ++;\n\t\t\t\tqj --;\n\t\t\t}\n\t\t\telse if(tian[ti] > qiw[qi])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\tti ++;\n\t\t\t\tqi ++;\n\t\t\t}\n\t\t\telse if(tian[tj] < qiw[qj])\n\t\t\t{\n\t\t\t\tsum -= 200;\n\t\t\t\tti ++;\n\t\t\t\tqj --;\n\t\t\t}\n\t\t\telse if(tian[tj] > qiw[qj])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\ttj --;\n\t\t\t\tqj --;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(tian[ti] > qiw[qj])\n\t\t\t\t\tsum += 200;\n\t\t\t\telse if(tian[ti] < qiw[qj])\n\t\t\t\t\tsum -= 200;\n\t\t\t\tti ++;\n\t\t\t\tqj --;\n\t\t\t}\n\t\t}\n\t\tcout<0;j--)\n {\n for(r=0;ra[r+1])\n {\n tmp=a[r+1];\n a[r+1]=a[r];\n a[r]=tmp;\n }\n if(b[r]>b[r+1])\n {\n tmp=b[r+1];\n b[r+1]=b[r];\n b[r]=tmp;\n }\n }\n }\n int m=0;\n for(i=0;ib[i]) m++;\n if(a[i]i;j--)\n b[j]=b[j-1];\n continue;\n }\n if(a[i]==b[i])\n {\n for(k=n-1;k>i;k--)\n {\n if(a[k]>b[k])\n {m++;n--;continue;}\n else\n {\n if(a[i]==a[k]) continue;\n m--;\n for(r=k;r>i;r--)\n b[r]=b[r-1];\n n=k+1;\n break;\n }\n }\n }\n }\n \n printf(\"%d\\n\",200*m);\n }\n getchar();\n getchar();\n}"} +{"label": "92", "index": "45938", "code": "int main()\n{\n\tint n,i,tj[1005],qw[1005];\n\tint win;\n\tint tl,tr,ql,qr;\n\twhile(cin>>n&&n!=0)\n\t{\n\t\tfor(i=0;i>tj[i];\n\t\tfor(i=0;i>qw[i];\n\t\tsort(tj,tj+n);\n\t\tsort(qw,qw+n);\n\t\twin=0;\n\t\ttl=ql=0;\n\t\ttr=qr=n-1;\n\t\tfor(i=0;itj[tl])\n\t\t\t{\n\t\t\t\twin--;\n\t\t\t\tqr--;\n\t\t\t\ttl++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(qw[qr]tj[tr])\n\t\t\t\t{\n\t\t\t\t\twin--;\n\t\t\t\t\tqr--;\n\t\t\t\t\ttl++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(qw[qr]>tj[tl]) {win--;}\n\t\t\t\t\tqr--;\n\t\t\t\t\ttl++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<<200*win<>n)\n\t{\n\t\tif(n==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tmon=0;\n\t\tint i;\n\t\tfor(i=0;i>a[i];\n\t\t}\n\t\tfor(i=0;i>b[i];\n\t\t}\n\t\tint k,l,j;\n\t\tqsort(a,n,sizeof(int),cmp);\n\t\tqsort(b,n,sizeof(int),cmp);\n\t\tk=0;\n\t\tl=n-1;\n\t\tj=n-1;\n\t\tfor(i=0;i<=j;i++)\n\t\t{\n\t\t\tif(a[k]>b[i])\n\t\t\t{\n\t\t\t\tmon+=200;\n\t\t\t\tk++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(a[k]b[j])\n\t\t\t\t{\n\t\t\t\t\tl--;\n\t\t\t\t\tj--;\n\t\t\t\t\ti--;\n\t\t\t\t\tmon+=200;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(a[l]0)\n{\n s=0;\n for(i=1;i<=n;i++)\n scanf(\"%d\",&tian[i]);\n qsort(tian+1,n,sizeof(int),cmp);\n for(j=1;j<=n;j++)\n scanf(\"%d\",&king[j]);\n qsort(king+1,n,sizeof(int),cmp);\n tmax=1;tmin=n;kmax=1;kmin=n;\n for(i=1;i<=n;i++)\n {\n if(tian[tmax]>king[kmax])\n {\n s++;\n tmax++;\n kmax++;\n }\n else\n if(tian[tmax]king[kmin])\n {\n s++;\n tmin--;\n kmin--;\n }\n else\n if(tian[tmin]QiWang[i])\n\t\t\t\t*(pwin[i]+0) = 1;\n\t\t\telse if(TianJi[0]=0; i--){\n\t\t\t\t//\tCalculate win[i][j]\n\t\t\t\tif (TianJi[j]>QiWang[i+j])\n\t\t\t\t\t*(pwin[i]+j) = *(pwin[i]+j-1) + 1;\n\t\t\t\telse if(TianJi[j]=0;i--) \n\t\t\tfor(j=1;jTianJi[j]) \n\t\t\t\t\t*(pwin[i]+j)=*(pwin[i+1]+j-1)-1; \n\t\t\t\telse if(*(pwin[i+1]+j-1)-1>*(pwin[i]+j-1)) \n\t\t\t\t\t*(pwin[i]+j)=*(pwin[i+1]+j-1)-1; \n\t\t\t\telse \n\t\t\t\t\t*(pwin[i]+j)=*(pwin[i]+j-1); \n\n\n\t\tprintf(\"%d\\n\", *(pwin[0]+n-1)*200);\n\n\n\t}\n\tfclose(fp);\n\n\n\treturn 0;\n}\n\nint Compare(const void *a, const void *b)\n{\n\treturn *(int*)b-*(int*)a;\n}\n\nint max(int a, int b)\n{\n\treturn (a>b)? a: b;\n}\n"} +{"label": "92", "index": "45942", "code": "void main()\n{\n\tint n,a[1001],b[1001],i,j,win,draw,lose,t,k,p,max;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\t\twin=0;draw=0;lose=0;\n\t\tmax=-9999;\n\t\tfor(i=1;i<=n;i++)\n\t\t\tscanf(\"%d\",&a[i]);\n\t\tfor(i=1;i<=n;i++)\n\t\t\tscanf(\"%d\",&b[i]);\n\t\tfor(i=1;i<=n-1;i++) \n\t\t\tfor(j=1;j<=n-i;j++)\n\t\t\t{\n\t\t\t\tif(a[j]n) k=j+i-n;else k=j+i;\n\t\t\tif (a[k]>b[j]) win=win+1;\n\t\t\telse if(a[k]==b[j]) draw=draw+1;\n\t\t\telse lose=lose+1;\n\t\t}\n\t\tp=200*(win-lose);\n\t\tif(p>max) max=p;\n\t\twin=0;draw=0;lose=0;\n\t}\n printf(\"%d\\n\",max);\n\t\tscanf(\"%d\",&n);\n\t}\n}\n\n"} +{"label": "92", "index": "45943", "code": "\nint n;\nint t[1000];\nint q[1000];\n\nint cmp(const void * e1, const void * e2)\n{\n\treturn *(int *)e2 - *(int *)e1;\n}\n\nint main()\n{\n\tint i;\n\tint st, sq, et, eq;\n\tint count;\n\twhile (cin >> n)\n\t{\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tcin >> t[i];\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tcin >> q[i];\n\n\t\tqsort(t, n, sizeof(int), cmp);\n\t\tqsort(q, n, sizeof(int), cmp);\n\n\t\tst = sq = 0;\n\t\tet = eq = n - 1;\n\t\tcount = 0;\n\t\twhile (st <= et)\n\t\t{\n\t\t\tif (t[et] > q[eq])\n\t\t\t{\n\t\t\t\tcount ++;\n\t\t\t\tet --;\n\t\t\t\teq --;\n\t\t\t}\n\t\t\telse if (t[et] < q[eq])\n\t\t\t{\n\t\t\t\tcount --;\n\t\t\t\tet --;\n\t\t\t\tsq ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (t[st] > q[sq])\n\t\t\t\t{\n\t\t\t\t\tcount ++;\n\t\t\t\t\tst ++;\n\t\t\t\t\tsq ++;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tif (t[et] < q[sq])\n\t\t\t\t\t\tcount --;\n\t\t\t\t\tet --;\n\t\t\t\t\tsq ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << 200 * count << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45944", "code": "int quicksort(int *a,int initial,int end)\n{\n int m,i,tmp;\n if (initial>=end) return;\n m=initial;\n for (i=initial+1;i<=end;i++)\n if (a[i]b[posb1])\n {\n time++;\n posa1++;\n posb1++;\n }\n else\n if (a[posa2]>b[posb2])\n {\n time++;\n posa2--;\n posb2--;\n }\n else\n if (a[posa1]=af;i--)\n\t\t{\n\t\t\tif(a[i]>b[bs])\n\t\t\t{\n\t\t\t\tas--;bs--;sum+=200;\n\t\t\t}\n\t\t\telse if(a[i]b[bf])\n\t\t\t\t{\n\t\t\t\t\taf++;bf++;sum+=200;\n\t\t\t\t}\n\t\t\t\tif(a[af]af)\n\t\t\t\t{\n\t\t\t\t\tif(a[i] King[y])\n {\n return 200;\n }\n else if (TianJi[x] < King[y])\n {\n return -200;\n }\n else\n {\n return 0;\n }\n}\nint main()\n{\n int i, j;\n while (scanf(\"%d\", &n) && n != 0)\n {\n memset(dp, 0, sizeof(dp));\n for (i = 1; i <= n; i++)\n {\n scanf(\"%d\", &TianJi[i]);\n }\n for (i = 1; i <= n; i++)\n {\n scanf(\"%d\", &King[i]);\n }\n //?????????????????\n qsort(TianJi + 1, n, sizeof(TianJi[0]), cmp);\n qsort(King + 1, n, sizeof(King[0]), cmp);\n //??dp\n for (i = 1; i <= n; i++)\n {\n //????????????????????????,????????????????????\n dp[i][0] = dp[i - 1][0] + profit(n - i + 1, i); \n //????????????????????????,????????????????\n dp[i][i] = dp[i - 1][i - 1] + profit(i, i);\n //?????????????????????????,?????????????????,????i?????????\n for (j = 1; j < i; j++)\n {\n dp[i][j] = max( ( dp[i - 1][j] + profit(n - (i - j) + 1, i) ), ( dp[i - 1][j - 1] + profit(j, i) ) );\n }\n }\n //????????\n int ans = -99999999;\n for (i = 0; i <= n; i++)\n {\n if (ans < dp[n][i])\n {\n ans = dp[n][i];\n }\n }\n printf(\"%d\\n\", ans);\n }\n return 0;\n}\n\n"} +{"label": "92", "index": "45947", "code": "int compare(const void *x,const void *y)\n{\n int *p1,*p2;\n p1=(int *)x;\n p2=(int *)y;\n return (*p2)-(*p1);\n}\nmain()\n{\n while(1)\n {\n int x=0,i,j,k,n,a[1000],b[1000];\n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=0;ib[i])\n x++; \n if(a[i]=0;j--)\n {\n if(a[j]>b[j])\n x++;\n if(a[j]> ncase)\n\t{\n\t\tif(ncase == 0)\n\t\t\tbreak;\n\t\tfor(i = 0; i < ncase; i ++)\n\t\t{\n\t\t\tcin >> t[i];\n\t\t}\n\t\tqsort(t, ncase, sizeof(int), mycompare);\n\t\tfor(i = 0; i < ncase; i ++)\n\t\t{\n\t\t\tcin >> q[i];\n\t\t}\n\t\tqsort(q, ncase, sizeof(int), mycompare);\n\t\ttmax = -99999999;\n\t\tpbegin = 0;\n\t\tcount = 0;\n\t\tfor(pbegin = 0; pbegin < ncase; pbegin ++)\n\t\t{\n\t\t\tcount = 0;\n\t\t\tfor(i = 0; i < ncase; i ++)\n\t\t\t{\n\t\t\t\tif(t[(pbegin+i)%ncase] > q[i])\n\t\t\t\t\tcount += 200;\n\t\t\t\tif(t[(pbegin+i)%ncase] < q[i])\n\t\t\t\t\tcount -= 200;\n\t\t\t}\n\t\t\tif(tmax < count)\n\t\t\t\ttmax = count;\n\t\t\n\t\t}\n\t\tcout << tmax << endl;\n\t}\n\n\treturn 0;\n}"} +{"label": "92", "index": "45949", "code": "main()\n{\n int n,i,j,k,end1,end2,sum,m;\n int a[1000];\n int b[1000];\n scanf(\"%d\",&n);\n while(n!=0)\n {\n sum=0;\n for(i=0;ia[j+1])\n {\n m=a[j+1];\n a[j+1]=a[j];\n a[j]=m;\n }\n \n }\n }\n for(i=0;ib[j+1])\n {\n m=b[j+1];\n b[j+1]=b[j];\n b[j]=m;\n }\n else\n ;\n }\n }\n for(i=j=n-1,end1=end2=0;j>=end2&&i>=end1;j--)\n {\n if(a[i]>b[j])\n {\n sum++;\n i--;\n }\n else if(a[i]b[end2])\n {\n sum++;\n end1++;\n end2++;\n j++;\n }\n else if(a[end1]w[wslow]){sub++;tslow--;wslow--;}\n\t\t else if(t[tslow]w[wfast]) \n\t\t{sub++;tfast++;wfast++;}\n\t\telse {sub--;tslow--;wfast++;} \n\t}\n sum=sub*200;\n printf(\"%d\\n\",sum);\n sub=0;sum=0;\n }\n} \n"} +{"label": "92", "index": "45951", "code": "\nint cmp(const void* elem1, const void* elem2)\n{\n return (*(int*)elem1) - (*(int*)elem2);\n}\n\nint cmpr(const void* elem1, const void* elem2)\n{\n return (*(int*)elem2) - (*(int*)elem1);\n}\n\nint main()\n{\n int n, i, j, count;\n int king_h[MAXSIZE];\n int general_h[MAXSIZE];\n char king_f[MAXSIZE];\n char general_f[MAXSIZE];\n while(scanf(\"%d\", &n) != -1)\n {\n if(n == 0)\n break;\n for(i = 0; i < n; ++i)\n scanf(\"%d\", &general_h[i]);\n for(i = 0; i < n; ++i)\n scanf(\"%d\", &king_h[i]);\n qsort(general_h, n, sizeof(int), cmp);\n qsort(king_h, n, sizeof(int), cmpr);\n memset(king_f, 0, sizeof(char) * n);\n memset(general_f, 0, sizeof(char) * n);\n count = 0;\n for(i = 0; i < n; ++i)\n {\n for(j = 0; j < n; ++j)\n if(king_f[j] == 0 && general_h[i] > king_h[j])\n {\n king_f[j] = 1;\n general_f[i] = 1;\n ++count;\n break;\n }\n }\n for(i = n - 1; i >= 0; --i)\n {\n if(general_f[i] == 1)\n continue;\n for(j = 0; j < n; ++j)\n if(king_f[j] == 0 && king_h[j] == general_h[i])\n {\n king_f[j] = 1;\n general_f[i] = 1;\n break;\n }\n }\n for(i = 0; i < n; ++i)\n if(general_f[i] == 0)\n --count;\n printf(\"%d\\n\", count * 200);\n }\n return 0;\n}\n"} +{"label": "92", "index": "45952", "code": "main()\n{\n int m,n,i,j,k,p,q,r,s,t,u,w,x,a[1000],b[1000],c[1000];\n int v=0;\n do\n {\n scanf(\"%d\",&m);\n for(i=0;i<=m-1;i++)\n scanf(\"%d\",&a[i]);\n for(j=0;j<=m-1;j++)\n scanf(\"%d\",&b[j]);\n for(k=0;k<=m-1;k++)\n {\n for(p=0;p<=m-2-k;p++)\n {\n if(a[p]c[q])\n v=v-200;\n else if(b[q]w)\n w=v;\n else if(n==0)\n w=v;\n else if(n==(m-1)/2+1)\n break;\n v=0;\n }\n if(m!=0)\n printf(\"%d\\n\",w);\n v=0;\n }\n while(m!=0);\n}"} +{"label": "92", "index": "45953", "code": "int main(void)\n{\n\tint m,n,i,j,sum,mid;\n\tint tian[1001],king[1001];\n\twhile(cin>>n&&n)\n\t{\n\t\tsum=0;\n\t\tfor(i=0;i>tian[i];\n\t\tfor(i=0;i>king[i];\n\t\tfor(i=0;ii;j--)\n\t\t\t{\n\t\t\t\t//??????\n\t\t\t\tif(tian[j]>tian[j-1])mid=tian[j],tian[j]=tian[j-1],tian[j-1]=mid;\n\t\t\t\tif(king[j]>king[j-1])mid=king[j],king[j]=king[j-1],king[j-1]=mid;\n\t\t\t}\n\t\t\tfor(i=0,j=0,n--,m=n;i<=n;i++,j++)\n\t\t\t{\n\t\t\t\t//????\n\t\t\t\tif(tian[i]>king[j])sum+=200;//????\n\t\t\t\telse if(tian[i]king[m])sum+=200,n--,m--;//???????????????????\n\t\t\t\t\tif(n==i) break; // n==i ?????????\n\t\t\t\t\telse if(tian[n]==tian[i])n--,i--;//\n\t\t\t\t\telse sum-=200,n--,i--;//????????????\n\t\t\t\t}\n\t\t\t}\n\t\t\tcout<b[q1])\t\t\n\t\t{\n\t\t\twin++;\n\t\t\tt1++;\t\t\t\t\n\t\t\tq1++;\t\t\t\t\n\t\t\tcontinue;\n\t\t}\n\t\telse if(a[t2]>b[q2])\t\t\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tt2--;\t\t\t\t\n\t\t\t\tq2--;\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\telse if(a[t2]==b[q1]) \n\t\t{\n\t\t\ttie++;\n\t\t\tt2--;\n\t\t\tq1++;\n\t\t}\n\t\telse if(a[t2]b[q1])\n\t{\n\t\twin++;\n\t}\n\telse\n\t{\n\t\tlose++;\n\t}\t\t\t\t\t\t\t\t\t\t\t\t\n\tmoney=200*win-200*lose;\n\tif(n==3) printf(\"%d\\n\",200);\n else \n\t\tprintf(\"%d\\n\",money);\n\t\t\t\t}}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45955", "code": "/*\n * ??-???-1.cpp\n *\n * Created on: 2011-3-29\n * Author: user\n */\nint compare(const void *element1,const void *element2)\n{\n\treturn (*(int *)element2)-(*(int *)element1);\n}\nint main()\n{\n\tint n;\n\tint A[1000]={0},B[1000]={0};\n\tint front1,front2,back1,back2;\n\tint sum=0;\n\twhile(cin>>n)\n\t{\n\t\tif(n==0)\n\t\t\treturn 0;\n\t\tfor(int i=0;i>A[i];\n\t\tfor(int i=0;i>B[i];\n\t\tfront1=front2=0;\n\t\tback1=back2=n-1;\n\t\tsum=0;\n\t\tqsort(A,n,sizeof(int),compare);\n\t\tqsort(B,n,sizeof(int),compare);\n\t\t/*for(int i=0;iB[back2])\n\t\t\t{\n\t\t\t\tsum+=200;\n\t\t\t\tback1-=1;\n\t\t\t\tback2-=1;\n\t\t\t}\n\t\t\telse if(A[back1]==B[back2])\n\t\t\t{\n\t\t\t\tif(A[front1]A[back1+1])\n\t\t\t\t\t\tsum-=200;\n\t\t\t\t\telse\n\t\t\t\t\t\tsum+=0;\n\t\t\t\t}\n\t\t\t\telse if(A[front1]>B[front2])\n\t\t\t\t{\n\t\t\t\t\tfront1+=1;\n\t\t\t\t\tfront2+=1;\n\t\t\t\t\tsum+=200;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(A[back1]c[k][w+l])\n w++;\n else if (b[k][w]c[k][a[k]-1-w2])\n w2++;\n else if (b[k][a[k]-1-l-w2]>c[k][a[k]-1-w2])\n l++;\n else if (b[k][a[k]-1-l-w2]==c[k][w+l])\n break;\n else l++;\n } \n \n printf(\"%d\\n\",(w+w2)*200-l*200);\n }\n}"} +{"label": "92", "index": "45957", "code": "\n\nint MyCmp(const void* x,const void* y)\n{\n\treturn *((int*)y) - *((int*)x);\n}\n\nint main()\n{\n\tint HorseNum,i,WinMatch,LoseMatch;\n\tint TianLastHorse,TianFirstHorse,QiFirstHorse,QiLastHorse;\n\tint TianHorse[1001];\n\tint QiHorse[1001];\n\twhile(cin>>HorseNum){\n\t\tif( 0 == HorseNum )\n\t\t\tbreak;\n\t\tfor(i = 1;i <= HorseNum;i ++)\n\t\t\tcin>>TianHorse[i];\n\t\tfor(i = 1;i <= HorseNum;i ++)\n\t\t\tcin>>QiHorse[i];\n\t\tqsort(TianHorse+1,HorseNum,sizeof(int),MyCmp);\n\t\tqsort(QiHorse+1,HorseNum,sizeof(int),MyCmp);\n\t\t//TianHorse QiHorse ?????\n\t\tTianLastHorse = QiLastHorse = HorseNum;\n\t\tTianFirstHorse = QiFirstHorse = 1;\n\t\tWinMatch = LoseMatch = 0;\n\t\twhile( TianFirstHorse <= TianLastHorse){\n\t\t\tif( TianHorse[TianFirstHorse] > QiHorse[QiFirstHorse] ){\n\t\t\t\tWinMatch ++;\n\t\t\t\tTianFirstHorse ++;\n\t\t\t\tQiFirstHorse ++;\n\t\t\t}\n\t\t\telse if( TianHorse[TianFirstHorse] < QiHorse[QiFirstHorse] ){\n\t\t\t\t//tian????????qi????\n\t\t\t\tLoseMatch ++;\n\t\t\t\tTianLastHorse --;\n\t\t\t\tQiFirstHorse ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//??????\n\t\t\t\tif( TianHorse[TianLastHorse] > QiHorse[QiLastHorse]){\n\t\t\t\t\t//??????\n\t\t\t\t\tWinMatch ++;\n\t\t\t\t\tTianLastHorse --;\n\t\t\t\t\tQiLastHorse --;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//????????\n\t\t\t\t\tif( TianHorse[TianLastHorse] < QiHorse[QiFirstHorse] )\n\t\t\t\t\t\tLoseMatch ++;\n\t\t\t\t\tTianLastHorse --;\n\t\t\t\t\tQiFirstHorse ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*if( QiHorse[QiFirstHorse] < TianHorse[TianFirstHorse] )\n\t\t\tWinMatch ++;\n\t\tif( QiHorse[QiFirstHorse] > TianHorse[TianFirstHorse] )\n\t\t\tLoseMatch ++;*/\n\t\tcout<<( WinMatch - LoseMatch) * 200 <=0;j--)\n{\nif (tian[i]>qi[j])\n{\nif (tian[i]!=-1&&qi[j]!=-1)\n{\nwin ++;\ntian[i]=-1;\nqi[j]=-1;\nbreak;//break???????????for?? \n}\n}\n}\n}\nfor (int i=0;ip[j+1])\n{\nt=p[j];\np[j]=p[j+1];\np[j+1]=t;\n} \n}\n"} +{"label": "92", "index": "45959", "code": "int sort(int s[],int n)\n{\n int i,j,t;\n for (i=0;is[j+1])\n {\n t=s[j];s[j]=s[j+1];s[j+1]=t;\n }\n }\n }\n return 0;\n}\nint main ()\n{\n while (1)\n {\n int a=0,b=0,m,n=0,i,j,k,s[1001],t[1001],x;\n scanf(\"%d\",&n);\n if (n==0) break;\n for (i=0;it[j])\n {\n j++;a++;//printf(\"%d \",s[i]);\n }\n else if (s[i]==t[j])\n {\n for (k=i+1,x=0;ks[i])\n //printf(\"%d\\n\",s[k]);\n {x=1;break;}\n }\n if (x==0)\n {\n j++;b++;\n }\n else\n {\n j++;a++;\n s[k]=0;\n }\n }\n }\n m=200*(a-(n-a-b));\n printf(\"%d\\n\",m);\n }\n}\n\n"} +{"label": "92", "index": "45960", "code": "int comp1(const void *a ,const void *b)\n{\n\treturn *(int*)b-*(int*)a;\n}\nint comp2(const void *a ,const void *b)\n{\n\treturn -*(int*)b+*(int*)a;\n}\n\nint main()\n{\n\tlong a,t[1002],q[1002],i,j,win=0,ping=0,x=0;\n\ta=1;\n\twhile(1)\n\t{\n\t\tlong t2[1002]={0},q2[1002]={0};\n\t\twin=0;ping=0;\n\t\tscanf(\"%d\\n\",&a);\n if(a==0)\n break;\n\t\tfor(i=1;i<=a;i++)\n\t\t\tscanf(\"%d\",&t[i]);\n\t\tfor(i=1;i<=a;i++)\n\t\t\tscanf(\"%d\",&q[i]);\n\t\tqsort(t+1,a,sizeof(int),comp2);\n\t\tqsort(q+1,a,sizeof(int),comp2);\n\t\tfor(i=1;i<=a;i++)\n\t\t{\n\t\t\tfor(j=a;j!=0;j--)\n\t\t\t{\n\t\t\t\tif(t2[i]==0 && q2[j]==0)\n\t\t\t\tif(t[i]>q[j])\n\t\t\t\t{\n\t\t\t\t\tt2[i]=1;\n\t\t\t\t\tq2[j]=1;\n\t\t\t\t\twin=win+1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<=a;i++)\n\t\t{\n\t\t\tif(t2[i]==0)\n\t\t\tfor(j=1;j<=a;j++)\n\t\t\t{\n\t\t\t\tif(q2[j]==0)\n\t\t\t\t\tif(t[i]==q[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tping=ping+1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",400*win-200*a+200*ping);\n\t}\t\n\treturn 0;\n}"} +{"label": "92", "index": "45961", "code": "\nint paixu(int *x,int n)\n{\n\tint i,j,temp;\n\tfor(i=0;i=maxtj)\n\t{\n\t\tif(*(p1+mintj)>*(p2+minqw))\n\t\t{\n\t\t\tsum++;\n\t\t\tmintj--;\n\t\t\tminqw--;\n\t\t}\n\t\telse if(*(p1+mintj)<*(p2+minqw))\n\t\t{\n\t\t\tsum--;\n\t\t\tmintj--;\n\t\t\tmaxqw++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(*(p1+maxtj)>*(p2+maxqw))\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t\tmaxtj++;\n\t\t\t\tmaxqw++;\n\t\t\t}\n\t\t\telse if(*(p1+maxtj)<*(p2+maxqw))\n\t\t\t{\n\t\t\t\tsum--;\n\t\t\t\tmintj--;\n\t\t\t\tmaxqw++;\n\t\t\t}\n\t\t\telse if(*(p1+mintj)==*(p2+maxqw))\n\t\t\t{\n\t\t\t\tmintj--;\n\t\t\t\tmaxqw++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum--;\n\t\t\t\tmintj--;\n\t\t\t\tmaxqw++;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",sum*200);\n\tprintf(\"\\n\");\n\tscanf(\"%d\",&n);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45962", "code": "\nint a[1001];\t//???????\nint b[1001];\t//???????\n\nvoid sort(int a[],int n)\n{\n\tint i,j,temp;\n\tfor(i=n-1;i>0;i--)\n\t\tfor(j=0;ja[j+1])\n\t\t\t{\n\t\t\t\ttemp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=temp;\n\t\t\t}\n}\n\nint main()\n{\n\tint n,i;\n\tint win=0,lose=0;\n\tint maxa,maxb,mina,minb;\n\tint money;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\t\twin=lose=0;\n\t\tfor(i=0;ib[minb])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tmina++;\n\t\t\t\tminb++;\n\t\t\t}\n\t\t\telse if(a[maxa]>b[maxb])\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t\tmaxa--;\n\t\t\t\tmaxb--;\n\t\t\t}\n\t\t\telse if(a[mina]==b[maxb])\n\t\t\t{\n\t\t\t\tmina++;\n\t\t\t\tmaxb--;\n\t\t\t}\n\t\t\telse if(a[mina]<=b[minb])\n\t\t\t{\n\t\t\t\tlose++;\n\t\t\t\tmina++;\n\t\t\t\tmaxb--;\n\t\t\t}\n\t\t}\n\t\tmoney=200*(win-lose);\n\t\tprintf(\"%d\\n\",money);\n\t\tscanf(\"%d\",&n);\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "92", "index": "45963", "code": "void h(int x[],int y)\n{ \n int i,j,t;\n for(i=1;ii;j--)\n if(x[j]>x[j-1])\n { \n t=x[j-1];\n x[j-1]=x[j];\n x[j]=t; \n }\n }\n \n void g(int x[],int y)\n{ int i,j,t;\n for(i=1;ii;j--)\n if(x[j]b[j])\n{ \n t=t+1;\n l=l-1;\n c(b,l,j);\n c(a,l,i);\n i=i-1;\n break;\n} \n\n\n for(w=l,i=1;i<=w;i++)\n for(j=1;j<=w;j++)\n if(a[i]==b[j])\n{ \n r=r+1;\n w=w-1;\n c(b,w,j);\n c(a,w,i);\n i=i-1;\n break;\n} \n\n s=(t-(n-t-r))*200;\n printf(\"%d\\n\",s);\n}\n}\n"} +{"label": "92", "index": "45964", "code": "main()\n{\nint n;\nwhile (1)\n{\nint a[1005],b[1005],i,j,ua[1005]={0},ub[1005]={0};\nscanf(\"%d\",&n);\nif (n==0) break;//loop condition\n//\"a\" stores the king's horses' data;\"b\" stores Tianji's hores' data\n//ua[i] means whether horse[i] has raced\n\n//begin{readdata}\nfor (i=1;i<=n;i++)\nscanf(\"%d\",&b[i]);\n\nfor (i=1;i<=n;i++)\nscanf(\"%d\",&a[i]);\n//end{readdata}\n\n//begin{sort(a)}[small->large]\nfor (i=1;ia[j]) {int t=a[i]; a[i]=a[j]; a[j]=t;}\n//end{sort(a)}\n\n//begin{sort(b)}[small->large]\nfor (i=1;ib[j]) {int t=b[i]; b[i]=b[j]; b[j]=t;}\n//end{sort(b)}\n\nint win=0,draw=0;\n//begin{calculate(win)}\nfor (i=1;i<=n;i++)\nfor (j=n;j>=1;j--)//use Tianji's worst to win the king's best\nif (b[i]>a[j]&&!ub[i]&&!ua[j]) \n{win+=1; ub[i]=1; ua[j]=1;}\n//end{calculate(win)}\n\n//begin{calculate(draw)}\nfor (i=1;i<=n;i++)\nfor (j=1;j<=n;j++)\nif (a[i]==b[j]&&!ua[i]&&!ub[j]) \n{draw+=1; ua[i]=1; ub[j]=1;}\n//end{calculate(draw)}\nint ans=(win-(n-win-draw))*200;\nprintf(\"%d\\n\",ans);//printanswer\n}\n}\n"} +{"label": "92", "index": "45965", "code": "\nint main()\n{\n\tint n, Speed1[ 1001 ], Speed2[ 1001 ];\n\twhile( cin >> n && n )\n\t{\n\t\tint Answer = 0;\n\t\tfor( int i = 0; i < n; i ++ )\n\t\t\tcin >> Speed1[ i ];\n\t\tfor( int i = 0; i < n; i ++ )\n\t\t\tcin >> Speed2[ i ];\n\t\tsort( Speed1, Speed1 + n );\n\t\tsort( Speed2, Speed2 + n );\n\t\tint left1 = 0, right1 = n - 1, left2 = 0, right2 = n - 1;\n\t\twhile( left1 <= right1 && left2 <= right2 )\n\t\t{\n\t\t\tif( Speed1[ left1 ] == Speed2[ left2 ] )\n\t\t\t{\n\t\t\t\tif( Speed1[ right1 ] > Speed2[ right2 ] )\n\t\t\t\t{\n\t\t\t\t\tAnswer ++;\n\t\t\t\t\tright1 --;\n\t\t\t\t\tright2 --;\n\t\t\t\t}\n\t\t\t\telse if( Speed1[ right1 ] < Speed2[ right2 ] )\n\t\t\t\t{\n\t\t\t\t\tAnswer --;\n\t\t\t\t\tleft1 ++;\n\t\t\t\t\tright2 --;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif( Speed1[ left1 ] < Speed2[ right2 ] )\n\t\t\t\t\t{\n\t\t\t\t\t\tAnswer --;\n\t\t\t\t\t\tleft1 ++;\n\t\t\t\t\t\tright2 --;\n\t\t\t\t\t}\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if( Speed1[ left1 ] > Speed2[ left2 ] )\n\t\t\t{\n\t\t\t\tAnswer ++;\n\t\t\t\tleft1 ++;\n\t\t\t\tleft2 ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tAnswer --;\n\t\t\t\tleft1 ++;\n\t\t\t\tright2 --;\n\t\t\t}\n\t\t}\n\t\tcout << Answer * 200 << endl;\n\t}\n}\n"} +{"label": "92", "index": "45966", "code": "int mycomp(const void* a,const void* b)\n{return *(int*)a-*(int*)b;}\nint main()\n{\n\tint tj[1001],qw[1001];\n\tint n,ibe,jbe,ien,jen,re;\n\tscanf(\"%d\",&n);\n\twhile(n!=0)\n\t{\n\t\tfor(ibe=0;ibeqw[jbe])\n\t\t\t{\n\t\t\t\tre+=200;\n\t\t\t\tibe++;jbe++;\n\t\t\t}\n\t\t\telse if(tj[ibe]qw[jen])\n\t\t\t\t{\n\t\t\t\t\tre+=200;\n\t\t\t\t\tibe++;jen--;\n\t\t\t\t}\n\t\t\t\telse if(tj[ibe]qw[jen])\n\t\t\t{\n\t\t\t\tre+=200;\n\t\t\t\tien--;jen--;\n\t\t\t}\n\t\t\telse if(tj[ien]0;scanf(\"%d\",&n))\n {\n for(i=0;iking[begin_king])&&(begin_tian<=end_tian))\n {\n sum=sum+200;\n begin_tian++;\n begin_king++;\n }\n while((tian[end_tian]>king[end_king])&&(begin_tian<=end_tian))\n {\n sum=sum+200;\n end_tian--;\n end_king--; \n }\n if(begin_tian<=end_tian)\n {\n if(tian[begin_tian]>n;\n if(!n)\n break;\n memset(num1,0,sizeof(num1));\n memset(num2,0,sizeof(num2));\n for(int i = 0 ; i < n; i++)\n cin>>num1[i];\n for(int i = 0 ; i < n; i++)\n cin>>num2[i];\n qsort(num1,n,sizeof(num1[0]),cmp);\n qsort(num2,n,sizeof(num2[0]),cmp);\n int res = 0;\n int m;\n int head = 0;\n int ttail = n-1;\n int ktail = n-1;\n for(int i = 0; i < n; i++)\n {\n if(num1[head] > num2[i])\n { \n res++;\n head++;\n }\n else if(num1[head] < num2[i])\n {\n ttail--;\n res--; \n }\n else //??????????????????????\n {\n for(int j = ttail,m = ktail ; j>=head;j--,m--)\n {\n if(num1[j] > num2[m])\n {\n res++;\n ttail--;\n ktail--; \n }\n else\n {\n if(num1[j] < num2[i])\n res--;\n ttail = --j;\n ktail = m;\n break; \n } \n }\n }\n if(head > ttail)\n break; \n }\n cout<>n)\n\t{\n\t\tif(n == 0)\n\t\t\treturn 0;\n\t\tint a[1005];\n\t\tint b[1005];\n\t\tint i;\n\t\tfor(i = 0; i < n; i++)\n\t\t\tcin>>a[i];\n\t\tfor(i = 0; i < n; i++)\n\t\t\tcin>>b[i];\n\n\t\tqsort(a, n, sizeof(int), cmp);\n\t\tqsort(b, n, sizeof(int), cmp);\n\n\t\tint pi,pj,qi,qj;\n\t\tpi = qi =0;\n\t\tpj = qj = n-1;\n\n\t\tint sum = 0;\n\t\twhile(n--)\n\t\t{\n\t\t\tif(a[pi] > b[qi])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\tpi++;\n\t\t\t\tqi++;\n\t\t\t}\n\t\t\telse if(a[pj] > b[qj])\n\t\t\t{\n\t\t\t\tsum += 200;\n\t\t\t\tpj--;\n\t\t\t\tqj--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[pi] < b[qj])\n\t\t\t\t\tsum -= 200;\n\t\t\t\tpi++;\n\t\t\t\tqj--;\n\t\t\t}\n\t\t}\n\t\tcout<>n){\n\t\tif(n==0)break;\n\t\tint a[n];\n\t\tint b[n];\n\t\tint i,j;\n\t\tfor(i=0;i>a[i];\n\t\tfor(i=0;i>b[i];\n\t\tqsort(a,n,sizeof(int),comp);\n\t\tqsort(b,n,sizeof(int),comp);\n int first1=0,first2=0,last1=n-1,last2=n-1;\n int sum=0;\n while(first2<=last2){\n \t\tif(a[last1]>b[last2]){\n \t\t\tsum=sum+200;\n \t\t\tlast1--;\n \t\t\tlast2--;\n \t\t\tcontinue;\n \t\t}\n \t\tif(a[last1]b[first2]) {sum=sum+200;first2++;first1++;continue;}\n \tif(a[first1]==b[first2]){\n \t\t\tif(a[first1]b[last2]) sum=sum+200;\n \t\t\tfirst1++;\n \t\t\tlast2--;\n \t\t\tcontinue;\n \t\t}\n \t}\n }\n cout< y)\n\t\treturn -200;\n\telse return 200;\n}\n\nint main()\n{\n\tint i,j,n,tmp1,tmp2,maxi;\n\twhile(cin>>n){\n\t\tif(n==0)\n\t\t\tbreak;\n\t\t\n\n\n\t\tfor(i = 0; i < n; i ++)\n\t\t\tscanf(\"%d\",&tian[i]);\n\t\tfor(i = 0; i < n; i ++)\n\t\t\tscanf(\"%d\",&qi[i]);\n\t\t\n\t\tqsort(tian,n,sizeof(int),cmp);\n\t\tqsort(qi,n,sizeof(int),cmp);\n\n\t\tfor(i = 0; i <=n ; i ++)\n\t\t\tstate[0][i]=0;\n\n\t\tfor(i = 1; i <= n; i ++)\n\t\t\tfor(j = 0; j <= i; j ++){\n\t\t\t\tif(j == 0)\n\t\t\t\t\tstate[i][j]=state[i-1][j]+match(qi[i-1],tian[n-i+j]);\n\t\t\t\telse if(i == j){\n\t\t\t\t\tstate[i][j]=state[i-1][j-1]+match(qi[i-1],tian[j-1]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\ttmp1=state[i-1][j-1] + match(qi[i-1],tian[j-1]);\n\t\t\t\t\ttmp2=state[i-1][j] + match(qi[i-1],tian[n-i+j]);\n\t\t\t\t\tif(tmp1 > tmp2)\n\t\t\t\t\t\tstate[i][j]=tmp1;\n\t\t\t\t\telse state[i][j]=tmp2;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\tmaxi=state[n][0];\n\n\n\t\tfor(i = 1; i <= n; i ++){\n\t\t\tif(state[n][i] > maxi)\n\t\t\t\tmaxi=state[n][i];\n\t\t}\n\n\t\tprintf(\"%d\\n\",maxi);\n\n\t\n\n\n\t}\n\treturn 0;\n}\n\n"} +{"label": "92", "index": "45972", "code": "\nint n,a[1010],b[1010],l[1010][1010];\n\nint cmp(const void * elem1,const void * elem2 )\n{\n\treturn *((int*)elem2)-*((int*)elem1);\n}\n\n\nint main()\n{\n\tint i,j;\n\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(n==0){\n\t\t\treturn 0;\n\t\t}\n\t\tfor(i=0;i=0;i--) \n\t\t{\n\t\t\tfor(j=1;jb[j])\n\t\t\t\t\t\tl[i][j]=l[i+1][j-1]-1;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(l[i+1][j-1]-1>l[i][j-1])\n\t\t\t\t\t\t\tl[i][j]=l[i+1][j-1]-1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tl[i][j]=l[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",200*l[0][n-1]);\n\t}\n}\n"} +{"label": "92", "index": "45973", "code": "int cmp(const void* a,const void* b)\n{\n\treturn *(int*)b-*(int*)a;\n}\nmain()\n{\n\tint a[1005],a1,a2;\n\tint b[1005],b1,b2;\n\tint i,n,r,BL;\n\twhile (1)\n\t{\n\t\tscanf(\"%d\",&n);\n\t\tif (n==0)\n\t\t\tbreak;\n\t\tfor (i=0;i0)\n\t\t{\n\t\t\tif (a[a1]>b[b1])\n\t\t\t{\n\t\t\t\tr++;\n\t\t\t\ta1++;\n\t\t\t\tb1++;\n\t\t\t\tn--;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif (a[a1]b[b2])\n\t\t\t\t\t{\n\t\t\t\t\t\tr++;\n\t\t\t\t\t\ta2--;\n\t\t\t\t\t\tb2--;\n\t\t\t\t\t\tn--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tif (a[a2]x[i])\n {temp=x[i];x[i]=x[j];x[j]=temp;}\n }\n }\n} \nint main()\n{\n void list(int x[],int n);\n int n,i,tian[1010],qi[1010],win=0,lose=0,*ptianlow,*pqilow,*ptianfast,*pqifast,money;\n for(;;money=win=lose=0)\n {\n scanf(\"%d\",&n);\n if(n==0)\n break;\n else\n {\n \n for(i=0;i*pqilow)\n {\n win++;\n ptianlow--;\n pqilow--;\n continue;\n }\n \n else\n {\n if(*ptianfast<*pqifast)\n {\n lose++;\n ptianlow--;\n pqifast++;\n continue;\n }\n else if(*ptianfast>*pqifast)\n {\n win++;\n ptianfast++;\n pqifast++;\n continue;\n }\n else\n {\n if(*ptianlow<*pqifast)\n {\n lose++;\n ptianlow--;\n pqifast++;\n }\n else\n {\n ptianlow--;\n pqifast++;\n }\n }\n \n }\n\t}\n \n money=win*200-lose*200;\n printf(\"%d\\n\",money);\n}}\n\nreturn 0;\n}\n \n"} +{"label": "92", "index": "45975", "code": "\nint n;\nint King[1005];\nint Tian[1005];\nint Ans[1005];\n\nint mCmp(const void *v1, const void *v2)\n{\n\tint *i1=(int *)v1;\n\tint *i2=(int *)v2;\n\treturn *i1-*i2;\n}\n\nint main()\n{\n\tint i,j,k;\n\tint max;\n\twhile(1)\n\t{\n\t\tcin>>n;\n\t\tif (n==0) return 0;\n\t\tmemset(King,0,sizeof(King));\n\t\tmemset(Tian,0,sizeof(Tian));\n\t\tmemset(Ans,0,sizeof(Ans));\n\t\tmax=-1000000;\n\t\tfor(i=0;i>Tian[i];\n\t\tfor(i=0;i>King[i];\n\t\tqsort(Tian,n,sizeof(int),mCmp);\n\t\tqsort(King,n,sizeof(int),mCmp);\n\t\tfor(i=0;i<=n;i++)\n\t\t{\n\t\t\tAns[i]=0;\n\t\t\tfor(j=0;jTian[j])\n\t\t\t\t\tAns[i]-=200;\n\t\t\t\telse if (King[n-1-j]Tian[j])\n\t\t\t\t\tAns[i]-=200;\n\t\t\t\telse if (King[j-i]=max) max=Ans[i];\n\t\t}\n\t\tcout<> N && N!=0 )\n\t{\n\t\t\tcount=N;\n\t\t\tint start1=0,start2=0,end1=N-1,end2=N-1;\n\t\t\tint win=0,lose=0;\n\t\tfor( i=0; i< N; i++ )\n\t\t{\n\t\t\tcin>> Tj[i];\n\t\t}\n\t\tqsort(Tj,N,sizeof( int ),cmp );\n\t\n\t\tfor( i=0; i< N; i++ )\n\t\t\tcin>> Qw[i];\n\t\tqsort(Qw,N,sizeof( int ),cmp );\n\t\twhile( count--)\n\t\t{\n\t\t\tif( Tj[start1] > Qw[start2] )\n\t\t\t{\n\t\t\t\tstart1++;\n\t\t\t\tstart2++;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse if( Tj[end1] > Qw[end2] )\n\t\t\t{\n\t\t\t\tend1--;\n\t\t\t\tend2--;\n\t\t\t\twin++;\n\t\t\t}\n\t\t\telse if( Tj[start1] < Qw[start2] )\n\t\t\t{\n\t\t\t\tstart1++;\n\t\t\t\tend2--;\n\t\t\t\tlose++;\n\t\t\t}\n\t\t\telse if( Tj[end1] < Qw[end2] )\n\t\t\t{\n\t\t\t\tstart1++;\n\t\t\t\tend2--;\n\t\t\t\tlose++;\n\t\t\t}\n\t\t\telse if( Tj[end1] == Qw[end2] )\n\t\t\t{\n\t\t\t\tif( Tj[start1] < Qw[end2] )\n\t\t\t\t{\n\t\t\t\t\tstart1++;\n\t\t\t\t\tend2--;\n\t\t\t\t\tlose++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\n int sum= temp* ( win-lose );\n\t cout<a[k])\n\t\t\t\tk=j;\n\t\tif (i!=k)\n\t\t\t{t=a[i];\t\n\t\t\ta[i]=a[k];\n\t\t\ta[k]=t;}\n\t}\n}\n\nmain()\n{\tint n,i,j,k,l,s;\n\tint t[MAX],q[MAX];\n\twhile (1)\n\t\t{scanf(\"%d\",&n);\n\t\tif (n==0)\n\t\t\tbreak;\n\t\tfor (i=0;iq[j])\n\t\t\t\t\t{i++;\n\t\t\t\t\tj++;\n\t\t\t\t\ts++;}\n\t\t\t\telse if (t[l-j+i]>q[l])\n\t\t\t\t\t{l--;\n\t\t\t\t\ts++;}\n\t\t\t\telse if (t[l-j+i]t1 || q0>q1) return 0;\n\n\twhile(tian[t1]>qi[q1]){\n\t\tt1--;q1--;\n\t\treturn 1+func(t0,q0,t1,q1);\n\t}\n\twhile(tian[t0]>qi[q0]){\n\t\tt0++;q0++;\n\t\treturn 1+func(t0,q0,t1,q1);\n\t}\n\n\tif(tian[t0]>n){\n\t\tif(n==0) break;\n\t\tfor(int i=0;i>tian[i];\n\t\tfor(int i=0;i>qi[i];\n\t\t\n\t\tsort(tian,tian + n);\n\t\tsort(qi,qi+n);\n\n\t\tcout<<200*func(0,0,n-1,n-1)<*(qw+bqw))\n\t\t\t\t{\n\t\t\t\t\twin=win+1;\n\t\t\t\t\tbtj++;\n\t\t\t\t\tbqw++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(*(tj+etj)>*(qw+eqw))\n\t\t\t\t{\n\t\t\t\t\twin=win+1;\n\t\t\t\t\tetj--;\n\t\t\t\t\teqw--;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(*(tj+btj)<=*(qw+bqw))\n\t\t\t\t{\n\t\t\t\t\tif(*(tj+etj)<*(qw+bqw))\n\t\t\t\t\t\tlose=lose+1;\n\t\t\t\t\tbqw++;\n\t\t\t\t\tetj--;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprintf(\"%d\\n\",win*200-lose*200);\n\t\t\twin=lose=0;\n\t\t}\n\t}\n}"} +{"label": "92", "index": "45980", "code": "\nint compare(const void * elem1, const void * elem2)\n{\n\treturn (*(int *)elem1 - *(int *)elem2);\n}\n\nint main()\n{\n\tint n;\n\tint TJ[2001];\n\tint QW[2001];\n\t\n\twhile(cin >> n && n != 0)\n\t{\n\t\tfor (int i = 0; i < n; i ++)\n\t\t\tcin >> TJ[i];\n\t\tfor (int i = 0; i < n; i ++)\n\t\t\tcin >> QW[i];\n\t\t\n\t\tqsort(TJ, n, sizeof(int), compare);\n\t\tqsort(QW, n, sizeof(int), compare);\n\n\t\tint Tslow, Tfast, Qslow, Qfast;\n\t\tTslow = Qslow = 0;\n\t\tTfast = Qfast = n - 1;\n\n\t\tint bonus = 0;\n\n\t\twhile(Tslow <= Tfast && Qslow <= Qfast)\n\t\t{\n\t\t\tif (TJ[Tfast] > QW[Qfast])\n\t\t\t{\n\t\t\t\tTfast --;\n\t\t\t\tQfast --;\n\t\t\t\tbonus ++;\n\t\t\t}\n\t\t\telse if (TJ[Tfast] < QW[Qfast])\n\t\t\t{\n\t\t\t\tTslow ++;\n\t\t\t\tQfast --;\n\t\t\t\tif (TJ[Tslow - 1] < QW[Qfast + 1])\n\t\t\t\t\tbonus --;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile(Tslow <= Tfast && Qslow <= Qfast)\n\t\t\t\t{\n\t\t\t\t\tif (TJ[Tslow] > QW[Qslow])\n\t\t\t\t\t{\n\t\t\t\t\t\tTslow ++;\n\t\t\t\t\t\tQslow ++;\n\t\t\t\t\t\tbonus ++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tTslow ++;\n\t\t\t\t\t\tQfast --;\n\t\t\t\t\t\tif (TJ[Tslow - 1] < QW[Qfast + 1])\n\t\t\t\t\t\t\tbonus --;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout << bonus * 200 << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45981", "code": "void readdata(); \nvoid init();\nvoid sort(int a[], int n);\nint n,a[1000],b[1000],l[1000][1000]; \nint main() \n{ \n\tint i,j;\n\twhile(1)\n\t{\n\t\treaddata(); \n\t\tinit(); \n\t\tfor(i=n-2;i>=0;i--)\n\t\t{ \n\t\t\tfor(j=1;jb[j]) \n\t\t\t\t\tl[i][j]=l[i+1][j-1]-1; \n\t\t\t\telse if(l[i+1][j-1]-1>l[i][j-1]) \n\t\t\t\t\tl[i][j]=l[i+1][j-1]-1; \n\t\t\t\telse \n\t\t\t\t\tl[i][j]=l[i][j-1];\n\t\t\t}\n\t\t} \n\t\tprintf(\"%d\\n\",l[0][n-1]*200); \n\t}\n} \n\nvoid readdata() \n{ \n\tint i; \n\tscanf(\"%d\",&n);\n\tif(n==0)\n\t\texit(0);\n\tfor(i=0;i=1;m--)\n {\n if(q[i]>p[j])\n {\n win++;\n i++;\n j++;\n }\n else if(q[i]==p[j])\n {\n if(q[qmax]>p[pmax])\n {\n win++;\n qmax--;\n pmax--;\n }\n else\n {\n if(q[i] *e2?1:-1;\n}\nint main()\n{\n\tint n;\n\tint T[1001],E[1001];\n\twhile(1)\n\t{\n\t\tcin >> n;\n\t\tif(n==0)break;\n\t\tfor(int i=0;i> T[i];\n\t\tfor(int i=0;i> E[i];\n\t\tqsort(T,n,sizeof(int),cmp);\n\t\tqsort(E,n,sizeof(int),cmp);\n\t\tint ans=0;\n\t\tint lT=0,lE=0,rT=n-1,rE=n-1;\n\t\twhile(lT<=rT)\n\t\t{\n\t\t\tif(T[lT]>E[lE]){ans+=200;lT++;lE++;}\n\t\t\telse if(T[lT]E[rE]){ans+=200;rE--;rT--;}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(T[lT]=a[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=a[j];\n\t\t\t\t\ta[j]=a[i];\n\t\t\t\t\ta[i]=temp;\n\t\t\t\t}\n\t\t\t\tif(b[j]>=b[i])\n\t\t\t\t{\n\t\t\t\t\tint temp=b[j];\n\t\t\t\t\tb[j]=b[i];\n\t\t\t\t\tb[i]=temp;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\tint win=0,deuce=0,lose=0;\n\t\t\n\t\tint heada=0,headb=0,taila=n-1,tailb=n-1;\n\t\twhile(heada<=taila&&headb<=tailb)\n\t\t{\n\t\t\tif(choose[heada]!=n)\n\t\t\t{\n\t\t\t\theada++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(choose[taila]!=n)\n\t\t\t{\n\t\t\t\ttaila--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(bchoose[headb]==1)\n\t\t\t{\n\t\t\t\theadb++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(bchoose[tailb]==1)\n\t\t\t{\n\t\t\t\ttailb--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[heada]>b[headb])\n\t\t\t\t{\n\t\t\t\t\tchoose[heada]=headb;\n\t\t\t\t\tbchoose[headb]=1;\n\t\t\t\t\twin++;\n\t\t\t\t\theada++;\n\t\t\t\t\theadb++;\n\t\t\t\t}\n\t\t\t\telse if(a[taila]>b[tailb])\n\t\t\t\t{\n\t\t\t\t\tchoose[taila]=tailb;\n\t\t\t\t\tbchoose[tailb]=1;\n\t\t\t\t\twin++;\n\t\t\t\t\ttaila--;\n\t\t\t\t\ttailb--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tchoose[taila]=headb;\n\t\t\t\t\tbchoose[headb]=1;\n\t\t\t\t\tif(a[taila]> n) {\n\t\tif (n == 0)\n\t\t\tbreak;\n\t\tans = -99999;\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> tj[i];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tcin >> qw[i];\n\t\tqsort(tj, n, sizeof(int), mycmp);\n\t\tqsort(qw, n, sizeof(int), mycmp);\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tqw[i + n] = qw[i];\n\t\tfor (q = qw; q < qw + n; q++) {\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tif(tj[i] > q[i])\n\t\t\t\t\ttmp ++;\n\t\t\t\telse if (tj[i] < q[i])\n\t\t\t\t\ttmp --;\n\t\t\t}\n//\t\t\tcout << qw[0] << \"|\" << qw[1] << endl;\n//\t\t\tcout << tmp << endl;\n\t\t\tif (tmp > ans) ans = tmp;\n\t\t}\n\t\tcout << 200 * ans << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45986", "code": "main()\n{\n int n,i,j,k,a,b,t1,t2,q1,q2,w=0,l=0;\n static int t[1005],q[1005];\n do{\n scanf(\"%d\",&n);\n if(n==0)\n break;\n for(i=1;i<=n;i++)\n scanf(\"%d\",&t[i]);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&q[i]);\n for(i=1;iq[q1])\n {\n w++;\n t1++;\n q1++;\n continue;\n }\n else if (t[t2]>q[q2])\n {\n w++;\n t2--;\n q2--;\n continue;\n }\n else if(t[t2]==q[q1])\n {\n t2--;\n q1++;\n }\n else if(t[t2]q[q1])\n w++;\n if(t[t1]b[n-1-l]){k++;l++;}\n else if(a[n-1-i]b[z]) {z++;y++;} \n }\n else\n {\n \n z++;\n if(a[y]<=b[z]&&z<=n-1-l)\n { \n c[u]=z;\n if(a[n-1-i]b[z]) {z++;y++;} \n \n } \n }\n }\n }\n if(n!=0)printf(\"%d\\n\",200*k);} \n}\n\nint f(int z,int u)\n{\n int c[1000];\n int i;\n for(i=0;i>num)\n\t{\n\t\tif(num==0)\n\t\t\tbreak;\n\t\tcount=0;\n\t\tfirst=0;\n\t\tlast=num;\n\t\tfor(int i=0;i>array_1[i];\n\t\t}\n\t\tfor(int i=0;i>array_2[i];\n\t\t}\n\t\tsort(array_1,array_1+num);\n\t\tsort(array_2,array_2+num);\n\t\tfor(int i=0;iarray_2[first])\n\t\t\t{\n\t\t\t\tcount=count+200;\n\t\t\t\tfirst++;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\twhile(array_1[num-1]>array_2[last-1]&&num-1>i)\n\t\t\t\t{\n\t\t\t\t\tcount=count+200;\n\t\t\t\t\tnum--;\n\t\t\t\t\tlast--;\n\t\t\t\t}\n\t\t\t\tif(array_1[i]> n && n != 0)\n\t{\n\t\tsum = 0;\n\t\tflag = 0;\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tcin >> tian_horse[i];\n\t\tfor (i = 0; i < n; i ++)\n\t\t\tcin >> king_horse[i];\n\t\tsort(tian_horse, tian_horse + n);\n\t\tsort(king_horse, king_horse + n);\n\t\tking_head = tian_head = 0;\n\t\tking_tail = tian_tail = n - 1;\n\t\twhile (king_head <= king_tail && tian_head <= tian_tail)\n\t\t{\n\t\t\tif (tian_horse[tian_tail] > king_horse[king_tail])\n\t\t\t{\n\t\t\t\tsum = sum + 200;\n\t\t\t\ttian_tail --;\n\t\t\t\tking_tail --;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile (king_head <= king_tail && tian_head <= tian_tail)\n\t\t\t\t{\n\t\t\t\t\tif (tian_horse[tian_head] > king_horse[king_head])\n\t\t\t\t\t{\n\t\t\t\t\t\tsum = sum + 200;\n\t\t\t\t\t\ttian_head ++;\n\t\t\t\t\t\tking_head ++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (tian_horse[tian_head] < king_horse[king_tail])\n\t\t\t\t\t\t\tsum = sum - 200;\n\t\t\t\t\t\ttian_head ++;\n\t\t\t\t\t\tking_tail --;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (tian_horse[tian_head] > king_horse[king_tail])\n\t\t\t{\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (flag == 1)\n\t\t\tsum = sum + (tian_tail - tian_head + 1) * 200;\n\t\tcout << sum << endl;\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45990", "code": "\nint tj[1000],qw[1000];\n\nint main(){\n\t//freopen(\"data.txt\",\"r\",stdin);\n\tint n,i,j,w,win,c,m;\n\twhile(scanf(\"%d\",&n)&&n)\n\t{\n\t\tfor(i=0;i=qw[w];j++,w++)\n\t\t\t\tif(tj[j]>qw[w])\n\t\t\t\t\tc++;\n\t\t\tif(j==n&&c>m)\n\t\t\t\tm=c;\n\t\t}\n\t\tprintf(\"%d\\n\",m*200);\n\t}\n\treturn 0;\n}\n"} +{"label": "92", "index": "45991", "code": "void array(int *a,int n) //array larger-less\n{\n \n int i,j,t;\n int *p=a;\n for(i=1;i<=n-1;i++)\n {\n for(j=1;j<=n-i;j++)\n {\n if(*(p+j)<*(p+j+1))\n {\n t=*(p+j);\n *(p+j)=*(p+j+1);\n *(p+j+1)=t;\n }\n }\n }\n}\nint result(int *a,int *b,int n)\n{\n int i,j,t,item[5000]={0},sum=-500;\n for(i=1;i<=n;i++)\n {\n for(j=1;j<=n;j++)\n {\n t=i+j-1;\n if(t>n){t=t-n;}\n if(a[t]>b[j]){item[i]++;}\n if(a[t]sum)\n {sum=item[i];}\n }\n return(sum); \n}\nint main()\n{\nfor(;;){\n int n,i,j,money;\n int a[5000],b[5000];\n memset(a,0,sizeof(a));\n memset(b,0,sizeof(b));\n scanf(\"%d\",&n);\n if(0==n){break;}\n for(i=1;i<=n;i++)\n {scanf(\"%d\",&a[i]);}\n for(i=1;i<=n;i++)\n {scanf(\"%d\",&b[i]);}\n \n array(a,n);\n array(b,n);\n \n /*for(i=1;i<=n;i++)\n {printf(\"%d \",a[i]);}*/\n \n money=result(a,b,n)*200;\n printf(\"%d\\n\",money);\n}\n}"} +{"label": "92", "index": "45992", "code": "\nint qi[1001];\nint tian[1001];\n\nint cmp(const void *e1,const void *e2)\n{\n\treturn *(int*)e2-*(int*)e1;\n}\n\nint main()\n{\n\tint n;\n\tint count;\n\twhile(cin>>n)\n\t{\n\t\tif(n==0) break;\n\t\tcount=0;\n\t\tint i,j;\n\t\tfor(i=0;i>tian[i];\n\t\tfor(i=0;i>qi[i];\n\n\t\tqsort(tian,n,sizeof(int),cmp);\n\t\tqsort(qi,n,sizeof(int),cmp);\n\n\t\tint l=0,m=0;\n\t\tfor(i=n-1,j=n-1;i>=l&&j>=m;)\n\t\t{\n\t\t\tif(tian[i]qi[j])\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\ti--;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(tian[l]>qi[m])\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tl++;\n\t\t\t\t\tm++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(qi[m]!=tian[i])count--;\n\t\t\t\t\tm++;\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcout<b[qm])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttm--;\n\t\t\t\tqm--;\n\t\t\t}\n\t\t\telse if(a[tm]b[qk])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttk++;\n\t\t\t\tqk++;\n\t\t\t}\n\t\t\telse if (a[tk]b[qk])\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t\ttm--;\n\t\t\t\tqk++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttm--;\n\t\t\t\tqk++;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\\n\",t*200-s*200);\n\t}\n\treturn 0;\n}"} +{"label": "92", "index": "45994", "code": "\nvoid saima(int a,int b[1500],int d[1500]);\nvoid paixu(int e[1500],int c);\nint main(){\n\tint tianji[1500],kingma[1500];\n\tint n,i,num=0;\t\n\tdo{\n\t\tscanf(\"%d\",&n);\n\t\tfor(i=0;id[j]){\n\t\t\thead++;\n\t\t\tqian+=200;\n\t\t}else{\n\t\t\tfor(x=twei,y=kwei;x>=head;x--,y--){\n\t\t\t\tif(b[x]>d[y]){\n\t\t\t\t\tqian+=200;\n\t\t\t\t\ttwei--;\n\t\t\t\t\tkwei--;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(b[x]=p1)\n\t\t{\n\t\t\tif(*p>*q)\n\t\t\t{\n\t\t\t\tsum=sum+200;\n\t\t\t\tp--;q--;\n\t\t\t}\n\t\t\telse if(*p<*q)\n\t\t\t{\n\t\t\t\tsum=sum-200;\n\t\t\t\tp--;\n\t\t\t\tq1++;\n\t\t\t}\n\t\t\telse if(*p==*q)\n\t\t\t{\n\t\t\t\tif(*p1>*q1)\n\t\t\t\t{\n\t\t\t\t\tsum=sum+200;\n\t\t\t\t\tp1++;q1++;\n\t\t\t\t}\n\t\t\t\telse if(*p1<*q1)\n\t\t\t\t{\n\t\t\t\t\tsum=sum-200;\n\t\t\t\t\tp--;\n\t\t\t\t\tq1++;\n\t\t\t\t}\n\t\t\t\telse if(*p1==*q1)\n\t\t\t\t{\n\t\t\t\t\tif(*p1==*p)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum=sum+0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsum=sum-200;\n\t\t\t\t\t\tp--;\n\t\t\t\t\t\tq1++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tprintf(\"%d\\n\",sum);\n\t}\n}"} +{"label": "92", "index": "45996", "code": "int q[maxlen], t[maxlen];\nint f[maxlen][maxlen];// f[i][j]??????i?????????j?????i-j????????\n// ????????????????????????????????????\nint n, sum, maxi;\nint g(int, int);\nint main()\n{\n\tint ncount = 1;\n\twhile(cin >> n && n)\n\t{\n\t\tfor(int i = 0;i < n; ++i)\n\t\t\tcin >> t[i];\n\t\tfor(int i = 0;i < n; ++i)\n\t\t\tcin >> q[i];\n\t\tsort(q, q + n);\n\t\tsort(t, t + n);\n\t\tf[0][0] = 0;\n\t\tsum = 0;\n\t\tfor(int i = 1;i <= n;++i)\n\t\t{\n\t\t\tif(q[n - i] > t[i - 1])\n\t\t\t\tsum -= 200;\n\t\t\telse if(q[n - i] < t[i - 1])\n\t\t\t\tsum += 200;\n\t\t\tf[i][0] = sum;\n\t\t}\n\t\tsum = 0;\n\t\tfor(int i = 1;i <= n;++i)\n\t\t{\n\t\t\tif(q[n - i] > t[n - i])\n\t\t\t\tsum -= 200;\n\t\t\telse if(q[n - i] < t[n - i])\n\t\t\t\tsum += 200;\n\t\t\tf[i][i] = sum;\n\t\t}\n\n\t\tfor(int i = 2;i <= n; ++i)\n\t\t\tfor(int j = 1;j < i; ++j)\n\t\t\t\tf[i][j] = max(f[i - 1][j] + g(n - i, i - j - 1), f[i - 1][j - 1] + g(n - i, n - j ));\n\n\t\tmaxi = -999999999;\n\t\tfor(int i = 0; i <= n; ++i)\n\t\t\tif(f[n][i] > maxi)\n\t\t\t\tmaxi = f[n][i];\n\t\tcout << maxi << endl;\n\t\tncount++;\n\t}\n\treturn 0;\n}\nint g(int qi, int tian)\n{\n\tif(q[qi] > t[tian])\n\t\treturn -200;\n\tif(q[qi] < t[tian])\n\t\treturn 200;\n\treturn 0;\n}"} +{"label": "92", "index": "45997", "code": "int cmp(const void *a, const void *b) {return(*(int *)a-*(int *)b);} \nmain(){\n\tint n,i,j,flag,max,maxnum,money,t[1001],q[1001];\n\twhile(1){\n\t\tscanf(\"%d\",&n);\n\t\tif(!n)break;\n\t\tfor(i=0;imax){\n\t\t\t\t\tmax=q[j];maxnum=j;flag=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag){\n\t\t\t\tt[i]=-100;q[maxnum]=-100;money+=200;\n\t\t\t}\n\t\t}\n\t\t//?\n\t\tfor(i=0;i= 0 && (wsymb[j] || w[j] >= t[i]); j-- );\n if( j < 0 ) continue;\n wsymb[j] = tsymb[i] = 1;\n tot++;\n }\n\n for( i = j = 0; i < n; i++ )\n {\n if( wsymb[i] ) continue;\n while( j < n && (tsymb[j] || w[i] > t[j]) ) j++;\n if( j == n ) break;\n if( w[i] == t[j] )\n wsymb[i] = tsymb[j++] = 1;\n }\n for( i = 0; i < n; i++ )\n if( !wsymb[i] ) tot--;\n\n printf( \"%d\\n\", tot * 200 );\n }\n\n return 0;\n}\n"} +{"label": "92", "index": "45999", "code": "int main()\n{\n int n,i,j,t,x;\n int win,equal;\n int tj[1001];\n int qw[1001];\n for(;;)\n { \n scanf(\"%d\",&n);\n win=0;\n equal=0;\n if(n==0)\n return(0);\n else\n {\n for(i=1;i<=n;i++)\n scanf(\"%d\",&tj[i]);\n for(i=1;i<=n;i++)\n scanf(\"%d\",&qw[i]);\n for(i=1;i<=n;i++)\n for(j=2;j<=n;j++)\n if(tj[j-1]=1;i--)\n {\n for(j=1;j<=n;j++)\n {\n if(tj[i]>qw[j])\n {\n if(tj[i]!=-1 && qw[j]!=-1)\n {\n win++;\n tj[i]=-1;\n qw[j]=-1;\n break;\n }\n }\n }\n }\n for(i=1;i<=n;i++)\n {\n for(j=1;j<=n;j++)\n {\n if(tj[i]==qw[j])\n {\n if(tj[i]!=-1 && qw[j]!=-1)\n {\n equal++;\n tj[i]=-1;\n qw[j]=-1;\n break;\n }\n }\n }\n }\n x=(win-(n-win-equal))*200; \n printf(\"%d\\n\",x);\n }\n }\n}"} +{"label": "93", "index": "46000", "code": "/***********************************\n*??(4-4) ??3?5?7????\n*?? ????\n*?? ?2012?10?3?\n***********************************/\nint main() //???\n{ //?????\n int n , i = 0; //??n?i???,?0??i\n // cout << \"???????\" << endl ;\n cin >> n ; //??????\n if(n % 3 == 0 ) //??n??3?0??n??3??\n {\t cout << \"3\" ; // ??3??i?1\n i = i + 1 ; }\n if(n % 5 == 0 && i == 1) // ??n??5????i=1\n\t { cout << \" \" << \"5\" ; //???????5??i?1\n i = i + 1 ; }\n else if(i != 1 && n % 5 == 0) //????i???1????5??\n\t {\t cout << \"5\" ; //??5??i?1\n\t i = i + 1 ; }\n if(n % 7 == 0 && i != 0) //??n??7???i???0\n {\t cout << \" \" << \"7\" ; // ???????7??i?1\n i = i + 1 ; }\n else if(n % 7 == 0 && i == 0) //??????7???i=0\n {\t cout << \"7\" ; //??7??i?1\n i = i + 1 ; }\n if(i == 0) //??i????0\n\t { cout << \"n\" ; } //????n????n???3,5,7??\n cout << endl; //??\n return 0;\n\n} //?????\n"} +{"label": "93", "index": "46001", "code": "void main()\n{\n\tint i,a,b,c;\n\ta=3;b=5;c=7;\n\tscanf(\"%d\",&i);\n\tif(i%3==0)\n\t{\n\t\tif(i%5==0&&i%7==0)\n\t\t\tprintf(\"%d %d %d\",a,b,c);\n\t\telse if(i%5==0&&i%7!=0)\n\t\t\tprintf(\"%d %d\",a,b);\n\t\telse if(i%5!=0&&i%7==0)\n\t\t\tprintf(\"%d %d\",a,c);\n\t\telse printf(\"%d\",a);\n\t}\n\telse if(i%5==0)\n\t{\n\t\tif(i%7==0)\n\t\t\tprintf(\"%d %d\",b,c);\n\t\telse printf(\"%d\",b);\n\t}\n\telse if(i%7==0)\n\t{\n\t\tprintf(\"%d\",c);\n\t}\n\telse printf(\"n\");\n}"} +{"label": "93", "index": "46002", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t{\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\tprintf(\"3 5 7\");\n\t\t\telse printf(\"3 5\");\n\t\t}\n\t\telse {if(a%7==0)\n\t\t\tprintf(\"3 7\");\n\t\telse printf(\"3\");}\n\t}\n\telse if(a%3!=0)\n\t\t{\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\tprintf(\"5 7\");\n\t\t\telse printf(\"5\");\n\t\t}\n\t\telse {if(a%7==0)\n\t\t\tprintf(\"7\");\n\t\telse printf(\"n\");}\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46003", "code": "\n\nint main() \n{\n\tint n;\n scanf(\"%d\", &n);\n\tif(n%3==0&&n%5==0&&n%7==0){\n printf(\"3 5 7\"); \n\t}\n\telse {\n\t\tif(n%3==0&&n%5==0){\n\t\tprintf(\"3 5\"); \n\t\t}\n\t else {\n\t\t\tif(n%3==0&&n%7==0){\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t else {\n\t\t\t\tif(n%5==0&&n%7==0){\n \t\t\t\tprintf(\"5 7\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(n%5==0){\n \t\t\t\t\tprintf(\"5\");\n\t\t\t\t\t}\n\t\t\t\t\tif(n%3==0){\n \t\t\t\t\tprintf(\"3\");\n\t\t\t\t\t}\n\t\t\t\t\tif(n%7==0){\n \t\t\t\t\tprintf(\"7\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}\n if(n%3!=0&&n%5!=0&&n%7!=0){\n\t\t\tprintf(\"n\");\n\t}\n return 0;\n}"} +{"label": "93", "index": "46004", "code": "void main()\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tif(fmod(x,3)==0 && fmod(x,5)==0 && fmod(x,7)==0)\n\t\tprintf(\"%d %d %d\\n\",3,5,7);\n if(fmod(x,3)==0 && fmod(x,5)==0 && fmod(x,7)!=0)\n printf(\"%d %d\\n\",3,5);\n\tif(fmod(x,5)==0 && fmod(x,7)==0 && fmod(x,3)!=0)\n\t\tprintf(\"%d %d\\n\",5,7);\n\tif(fmod(x,3)==0 && fmod(x,7)==0 && fmod(x,5)!=0)\n printf(\"%d %d\\n\",3,7);\n\tif(fmod(x,3)==0 && fmod(x,5)!=0 && fmod(x,7)!=0)\n printf(\"%d\\n\",3);\n if(fmod(x,3)!=0 && fmod(x,5)==0 && fmod(x,7)!=0)\n printf(\"%d\\n\",5);\n if(fmod(x,3)!=0 && fmod(x,5)!=0 && fmod(x,7)==0)\n\t\tprintf(\"%d\\n\",7);\n\tif(fmod(x,3)!=0 && fmod(x,5)!=0 && fmod(x,7)!=0)\n\t\tprintf(\"%c\\n\",'n');\n}"} +{"label": "93", "index": "46005", "code": "int main()\n{ int n,a,b,c;//????a?b?c\ncin>>n;\na=n%3;//a?n??3???\nb=n%5;//b?n??5???\nc=n%7;//c?n??7???\nif(a==0&&b==0&&c==0)\n\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\";//????3?5?7??\nelse if(a==0&&b==0&&c!=0)\n\tcout<<\"3\"<<\" \"<<\"5\";//????3?5??\nelse if(a==0&&b!=0&&c==0)\n\tcout<<\"3\"<<\" \"<<\"7\";//????3?7??\nelse if(a!=0&&b==0&&c==0)\n\tcout<<\"5\"<<\" \"<<\"7\";//????5?7??\nelse if(a==0&&b!=0&&c!=0)\n\tcout<<\"3\";//?3??\nelse if(a!=0&&b==0&&c!=0)\n\tcout<<\"5\";//?5??\nelse if(a!=0&&b!=0&&c==0)\n\tcout<<\"7\";//?7??\nelse if(a!=0&&b!=0&&c!=0)\n\tcout<<\"n\";//???3?5?7??\nreturn 0;\n}\n\n"} +{"label": "93", "index": "46006", "code": "//********************************\n//*???5.cpp **\n//*?????3?5?7???? **\n//*?????? 1300012838 **\n//*???2013.9.26 **\n//********************************\n\nint main()\n{ \n\n int a, num = 0; //?? ??a?????? ????? \n cin >> a;\n if (a % 3 == 0)\n {\n cout << \"3\"; //??3????3 \n num++; //??????1 \n }\n if (a % 5 == 0)\n {\n if (num != 0) //???????????? \n {\n cout << \" \";\n }\n cout << \"5\"; //??5????5\n num++; //??????1\n }\n if (a % 7 == 0)\n {\n if (num != 0) //????????????\n {\n cout << \" \";\n }\n cout << \"7\"; //??7????7\n num++; //??????1\n }\n if (num == 0) //??????????n \n {\n cout << \"n\";\n }\n \n return 0; \n} "} +{"label": "93", "index": "46007", "code": "int main()\n{\n\tint n,m; //n?????\n\tcin>>n;\n\tm=0;\n\tif (n%3==0)\t\n\t{\n\t\tm=1;\n\t\tcout<<3;\n\t\tif (n%5==0) cout<<\" \"<<5;\n\t\telse;\n\t\tif (n%7==0) cout<<\" \"<<7;\t\n\t\telse;\n\t}\n\telse\n\t{\n\t\tif (n%5==0) \n\t\t{\n\t\t\tm=1;\n\t\t\tcout<<5;\n\t\tif (n%7==0) cout<<\" \"<<7;\t\n\t\telse;\n\t\t}\n\t\telse \n\t\t{\n\t\t\t\n\t\t\tif (n%7==0) \n\t\t\t{\n\t\t\t\tcout<<7;\n\t\t\t\tm=1;\n\t\t\t}\n\t\t\telse;\n\t\t}\n\t}\n\tif (m==0) cout<<\"n\";\n\telse;\n\treturn 0;\n}"} +{"label": "93", "index": "46008", "code": "void main()\n{\n\tint i,m,j;\n\tscanf(\"%d\",&m);\n\tif ((m%3!=0)&&(m%5!=0)&&(m%7!=0)) printf(\"n\");\n\telse for (i=3;i<=7;i=i+2) \n\t{\n\t\tif (m%i==0) \n\t\t{\n\t\t\tprintf(\"%d\",i);\n\t\t\tfor (j=i+2;j<=7;j=j+2) \n\t\t\t{\n\t\t\t\tif(m%j==0) \n\t\t\t\t{\n\t\t\t\t\tprintf(\" \");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "93", "index": "46009", "code": "void main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3&&n%5&&n%7)printf(\"n\");\n\t\telse if((n%3==0)&&n%5&&n%7)printf(\"3\");\n\t\telse if((n%5==0)&&n%3&&n%7)printf(\"5\");\n\t\telse if((n%7==0)&&n%5&&n%3)printf(\"7\");\n\t\telse if((n%3==0)&&(n%5==0)&&n%7)printf(\"3 5\");\n\t\telse if((n%3==0)&&(n%7==0)&&n%5)printf(\"3 7\");\n\t\telse if((n%7==0)&&(n%5==0)&&n%3)printf(\"5 7\");\n\t\telse if((n%3==0)&&(n%5==0)&&(n%7==0))printf(\"3 5 7\");\n}"} +{"label": "93", "index": "46010", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif((a%3==0)&&(a%5==0)&&(a%7==0))\n\t\tprintf(\"%d %d %d\",3,5,7);\n\telse if((a%3==0)&&(a%5==0))\n\t\tprintf(\"%d %d\",3,5);\n\telse if((a%3==0)&&(a%7==0))\n\t\tprintf(\"%d %d\",3,7);\n\telse if((a%5==0)&&(a%7==0))\n\t\tprintf(\"%d %d\",5,7);\n\telse if(a%3==0)\n\t\tprintf(\"%d\",3);\n\telse if(a%5==0)\n\t\tprintf(\"%d\",5);\n\telse if(a%7==0)\n\t\tprintf(\"%d\",7);\n\telse\n\t\tprintf(\"n\");\n}"} +{"label": "93", "index": "46011", "code": "//C++ program by Ruby;\n//to judge whether n could be divided by 3,5,7.\nint main()\n{\n\tint n,s;//n for testing number;s for a sumer\n\tcin>>n;\n\ts=0;\n\tif (n%3==0) \n\t{\n\t\ts=s+1;\n\t\tcout<<\"3\";\n\t}\n\tif (n%5==0)\n\t{\n\t\tif (s>=1) cout<<\" \";\n\t\ts=s+1;\n\t\tcout<<\"5\";\n\t}\n\tif (n%7==0)\n\t{\n\t\tif (s>=1) cout<<\" \";\n\t\ts=s+1;\n\t\tcout<<\"7\";\n\t}\n\tif (s==0) \n\t\tcout<<\"n\"<>num;\n\tif(num%105==0)\n\t{\n\t\tcout<<\"3 5 7\";\n\t}\n\tif(num%15==0&&num%7!=0)\n\t{\n\t\tcout<<\"3 5\";\n\t}\n\tif(num%21==0&&num%5!=0)\n\t{\n\t\tcout<<\"3 7\";\n\t}\n\tif(num%35==0&&num%3!=0)\n\t{\n\t\tcout<<\"5 7\";\n\t}\n\tif(num%3==0&&num%5!=0&&num%7!=0)\n\t{\n\t\tcout<<\"3\";\n\t}\n\tif(num%3!=0&&num%5==0&&num%7!=0)\n\t{\n\t\tcout<<\"5\";\n\t}\n\tif(num%3!=0&&num%5!=0&&num%7==0)\n\t{\n\t\tcout<<\"7\";\n\t}\t\n\tif(num%3!=0&&num%5!=0&&num%7!=0)\n\t{\n\t\tcout<<\"n\";\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46017", "code": "//********************************************************************\n//??3.5.7????\n//??????\n//???2012.09.28\n//********************************************************************\n\nint main()\n{\n int a,b,c,x;\n //cout << \"???????\" << endl;\n cin >> x;\n if (x % 3 == 0)\n\t a = 3;\n else a = 0;\n if (x % 5 == 0)\n\t b = 5;\n else b = 0;\n if (x % 7 == 0)\n\t c = 7;\n else c = 0;\nif (a + b + c == 15)\n cout << \"3 5 7\";\nif (a + b + c == 0)\n cout << \"n\";\nif (a + b + c == 8)\n cout << \"3 5\";\nif (a + b + c == 10)\n cout << \"3 7\";\nif (a + b + c == 12)\n cout << \"5 7\";\nif (a + b + c == 3)\n cout << \"3\";\nif (a + b + c == 5)\n cout << \"5\";\nif (a + b + c == 7)\n cout << \"7\";\n \nreturn 0;\n}"} +{"label": "93", "index": "46018", "code": "int main() {\nint n;\nint a = 0, b = 0, c = 0;\ncin >> n;\nif (n % 3 == 0) { a = 1; cout << 3;}\nif (n % 5 == 0) { b = 1; if (a) { cout << \" \";} cout << 5;}\nif (n % 7 == 0) { c = 1; if (a+b) { cout << \" \";} cout << 7;}\nif (a + b + c == 0) {cout << \"n\";}\ncout << endl;\nreturn 0;\n}"} +{"label": "93", "index": "46019", "code": "void main()\n{\n int n,a[3],i=0;\n scanf(\"%d\",&n);\n if(n%3==0)\n a[i++]=3;\n if(n%5==0)\n a[i++]=5;\n if(n%7==0)\n a[i++]=7;\n switch(i)\n{\n case 3:printf(\"%d %d %d\",a[0],a[1],a[2]);break;\n case 2:printf(\"%d %d\",a[0],a[1]);break;\n case 1:printf(\"%d\",a[0]);break;\n case 0:printf(\"%c\",'n');break;\n}\n}\n"} +{"label": "93", "index": "46020", "code": "\nint main()\n{\n int a;\n\tscanf(\"%d\",&a);\n\tif (a%3==0 && a%5==0 && a%7==0){\n\t\tprintf(\"3 5 7\\n\");\n\t}\n\telse if(a%3==0 && a%5==0 && a%7==1 | a%7==2 | a%7==3 | a%7==4 | a%7==5 | a%7==6){\n\t\tprintf(\"3 5\\n\");\n\t}\n\telse if(a%3==0 && a%5==1 | a%5==2 | a%5==3 | a%5==4 && a%7==0){\n\t\tprintf(\"3 7\\n\");\n\t}\n\telse if (a%3==1 | a%3==2 && a%5==0 && a%7==0){\n\t\tprintf(\"5 7\\n\");\n\t}\n\telse if (a%3==1 | a%3==2 && a%5==1 | a%5==2 | a%5==3 | a%5==4 && a%7==0){\n\t\tprintf(\"7\\n\");\n\t}\n\telse if(a%3==1 | a%3==2 && a%5==0 && a%7==1 | a%7==2 | a%7==3 | a%7==4 | a%7==5 | a%7==6){\n\t\tprintf(\"5\\n\");\n\t}\n\telse if(a%3==0 && a%5==1 | a%5==2 | a%5==3 | a%5==4 && a%7==1 | a%7==2 | a%7==3 | a%7==4 | a%7==5 | a%7==6){\n\t\tprintf(\"3\\n\");\n\t}\n\telse{\n\t\tprintf(\"n\\n\");\n\t}\n\n\treturn 0;\n}"} +{"label": "93", "index": "46021", "code": "int main()\n{\n\tint i;\n\tscanf(\"%d\",&i);\n\tif(i%3==0) \n\t{printf(\"3\");\n\tif(i%5==0)\n\t\tprintf(\" 5\");\n\tif(i%7==0)\n \tprintf(\" 7\");\n\t}\n else if(i%5==0) \n\t{\n\t\tprintf(\"5\");\n\t if(i%7==0)\n\t\tprintf(\" 7\");\n\t}\n\telse if(i%7==0)\n\t{\n\tprintf(\"7\");\n\t}\n\telse\n\t{printf(\"n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46022", "code": "int main (){\n int n ;\n scanf(\"%d\",&n);\n if(n%105==0){printf(\"3 5 7\");}\n else if(n%15==0){printf(\"3 5\");}\n else if(n%21==0){printf(\"3 7\");}\n else if(n%35==0){printf(\"5 7\");}\n else if(n%3==0&&n%35!=0){printf(\"3\");}\n else if(n%5==0&&n%21!=0){printf(\"5\");}\n else if(n%7==0&&n%15!=0){printf(\"7\");}\n\telse if(n%105!=0){printf(\"n\");}\n\treturn 0;\n\n}\n"} +{"label": "93", "index": "46023", "code": "//*******************************\n//*?????3?5?7???? **\n//*????? 1300012707 **\n//*???2013.10.1 **\n//********************************\nint main()\n{\n\tint n, s; // ????n?????switch????\n\tcin >> n; // ??????n\n\ts = 0; // ???s\n\tif ( n % 3 == 0 ) // ??n??3??\n {\n\t\ts = s + 3; // s??3\n }\n\tif ( n % 5 == 0 ) // ??n??5??\n {\n\t\ts = s + 5; // s??5\n }\n if ( n % 7 == 0 ) // ??n??7??\n {\n\t\ts = s + 7; // s??7\n }\n switch (s) // ?switch??\n\t{\n case 15:\n cout << \"3 5 7\" << endl; // ??s??15???n??3?5?7?????\u00933 5 7\u0094\n break;\n case 12:\n cout << \"5 7\" << endl; // ??s??12???n??5?7?????\u00935 7\u0094\n break;\n case 10:\n cout << \"3 7\" << endl; // ??s??10???n??3?7?????\u00933 7\u0094\n break;\n case 8:\n cout << \"3 5\" << endl; // ??s??8???n??3?5?????\u00933 5\u0094\n break;\n case 7:\n cout << \"7\" << endl; // ??s??7???n??7?????\u00937\u0094\n break;\n case 5:\n cout << \"5\" << endl; // ??s??5???n??5?????\u00935\u0094\n break;\n case 3: \n cout << \"3\" << endl; // ??s??3???n??3?????\u00933\u0094\n break;\n default:\n cout << \"n\" << endl; // ??s??0???n??3?5?7?????\u0093n\u0094\n break;\n }\n\treturn 0;\n}"} +{"label": "93", "index": "46024", "code": "void main()\n{\n int a,b,c,d;\nscanf(\"%d\",&d);\n a=3;\n b=5;\n c=7;\nif(d%3==0&&d%5==0&&d%7==0) printf(\"%d %d %d\",a,b,c);\nelse if(d%3!=0&&d%5!=0&&d%7!=0) printf(\"n\");\nelse if(d%3==0&&d%5!=0&&d%7!=0) \n\t printf(\"%d\",a);\nelse if (d%3!=0&&d%5==0&&d%7!=0)\n\t printf(\"%d\",b);\nelse if (d%3!=0&&d%5!=0&&d%7==0)\n\t printf(\"%d\",c);\nelse if(d%3==0&&d%5==0&&d%7!=0)\n\t printf(\"%d %d\",a,b);\nelse if(d%3==0&&d%5!=0&&d%7==0)\n\t printf(\"%d %d\",a,c);\nelse if(d%3!=0&&d%5==0&&d%7==0)\n\t printf(\"%d %d\",b,c);\n}\n"} +{"label": "93", "index": "46025", "code": "int main()\n{ \n\tint a;\n\tscanf(\"%d\",&a);\n if(a%3==0){\n\t\tprintf(\"3\");\n\t for (int i=5;i<8;i+=2){\n\t\tif(a%i==0){\n\t\t\tprintf(\" %d\",i);\n\t\t}\n\t\t}\n\t}else {\n\t\tif(a%5==0 && a%7==0){\n\t\t\tprintf(\"5 7\");\n\t\t}else if(a%5==0 && a%7!=0){\n\t\t\tprintf(\"5\");\n\t\t}else if(a%5!=0 && a%7==0){\n\t\t\tprintf(\"7\");\n\t\t}else{\n\t\t\tprintf(\"n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46026", "code": "void main()\n{\n int k;\n scanf(\"%d\",&k);\n int i;\n int a=0,b=0,c=0;\n \n if(k%3==0)\n {printf(\"3\");if(k%5==0)printf(\" 5\");if(k%7==0)printf(\" 7\");}\n else if(k%5==0)\n {printf(\"5\");if(k%7==0)printf(\" 7\");}\n else if(k%7==0)printf(\"7\");else printf(\"n\");\n \n\n \n \n}"} +{"label": "93", "index": "46027", "code": "int main(int argc, char* argv[])\n{\n\tint a,m;\n\tm=0;\n\t\n\tscanf(\"%d\",&a);\n\t\n\t\n if(a%3==0)\n \n m=m+1;\n if(a%5==0)\n \n m=m+10;\n if(a%7==0)\n \n m=m+100;\n if(m==0)\n\tprintf(\"n\");\n if(m==1)\n printf(\"3\");\n if(m==10)\n\t printf(\"5\");\n if(m==100)\n printf(\"7\");\n if(m==11)\n printf(\"3 5\");\n if(m==101)\n printf(\"3 7\");\n if(m==110)\n printf(\"5 7\");\n if(m==111)\n\t printf(\"3 5 7\");\n\n return 0;\n}\n"} +{"label": "93", "index": "46028", "code": "int main()\n{\nint n; //???????\nint d3=0,d5=0,d7=0,d=0; //???????? \ncin>>n;\nif (n%3==0) {d3=1;d=d+1;} //??d?????????? \nif (n%5==0) {d5=1;d=d+2;}\nif (n%7==0) {d7=1;d=d+4;}\nif (d==0) cout<<\"n\"; //??????? \nif (d==1) cout<<\"3\";\nif (d==2) cout<<\"5\";\nif (d==4) cout<<\"7\";\nif (d==3) cout<<\"3 5\";\nif (d==5) cout<<\"3 7\";\nif (d==6) cout<<\"5 7\";\nif (d==7) cout<<\"3 5 7\";\nreturn 0;\n}"} +{"label": "93", "index": "46029", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0){\n\t\tif(n%5==0){\n\t\t\tif(n%7==0){\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\t}\n\t\t\tif(n%7!=0){\n\t\t\t\tprintf(\"3 5\");\n\t\t\t}\n\t\t}\n\t\tif(n%5!=0){\n\t\t\tif(n%7==0){\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t\t\tif(n%7!=0){\n\t\t\t\tprintf(\"3\");\n\t\t\t}\n\t\t}\n\t}\n\tif(n%3!=0){\n\t\tif(n%5==0){\n\t\t\tif(n%7==0){\n\t\t\t\tprintf(\"5 7\");\n\t\t\t}\n\t\t\tif(n%7!=0){\n\t\t\t\tprintf(\"5\");\n\t\t\t}\n\t\t}\n\t\tif(n%5!=0){\n\t\t\tif(n%7==0){\n\t\t\t\tprintf(\"7\");\n\t\t\t}\n\t\t\tif(n%7!=0){\n\t\t\t\tprintf(\"n\");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46030", "code": "int main()\n{\n int c;\n int a;\n scanf(\"%d\",&a);\n if(a%105==0)\n {\n printf(\"3 5 7\");\n }\n else if((a%15==0)&&(a%7!=0)) \n {\n printf(\"3 5\");\n }\n else if((a%21==0)&&(a%5!=0))\n {\n printf(\"3 7\");\n }\n else if((a%35==0)&&(a%3!=0))\n {\n printf(\"5 7\");\n }\n else if((a%3==0)&&(a%35!=0))\n {\n printf(\"3\");\n }\n else if((a%5==0)&&(a%21!=0))\n {\n printf(\"5\");\n }\n else if((a%7==0)&&(a%15!=0))\n {\n printf(\"7\");\n }\n else\n {\n printf(\"n\");\n }\n while((c=getchar())!='\\n'&&c!=EOF);\n clearerr(stdin);\n getchar();\n return 0; \n}\n"} +{"label": "93", "index": "46031", "code": "int main()\n{\n int a,b,c,d;\n scanf(\"%d\",&a);\n char n;\n if(a%3==0&&a%5==0&&a%7==0)\n printf(\"3 5 7\");\n if(a%3!=0&&a%5!=0&&a%7!=0)\n printf(\"n\");\n if(a%3!=0&&a%5==0&&a%7==0)\n printf(\"5 7\");\n if(a%3==0&&a%5==0&&a%7!=0)\n printf(\"3 5\");\n if(a%3==0&&a%5!=0&&a%7==0)\n printf(\"3 7\");\n if(a%3==0&&a%5!=0&&a%7!=0)\n printf(\"3\");\n if(a%3!=0&&a%5==0&&a%7!=0)\n printf(\"5\");\n if(a%3!=0&&a%5!=0&&a%7==0)\n printf(\"7\");\n return 0;\n}\n "} +{"label": "93", "index": "46032", "code": "//********************************\n//*?????3?5?7???? **\n//*?????? 1200012988 **\n//*???2012.09.30 **\n//********************************\n\nint main() //???\n{\n int n; //?n??\n cin >> n; //??n\n //??n?????3?5?7??\n if(n % 3 == 0 && n % 5 == 0 && n % 7 == 0)\n cout << \"3 5 7\" << endl; //??\u00933 5 7\u0094\n else //????\n {\n if(n % 3 == 0 && n % 5 == 0) //??????3?5??\n cout << \"3 5\" << endl; //??\u00933 5\u0094\n else\n {\n if(n % 5 == 0 && n % 7 == 0) //??????5?7??\n cout << \"5 7\" << endl; //??\u00935 7\u0094\n else\n {\n if(n % 3 == 0 && n % 7 == 0) //??????3?7??\n cout << \"3 7\" << endl; //??\u00933 7\u0094\n else //????????????\n {\n if(n % 3 == 0) //????3??\n cout << \"3\" << endl; //??\u00933\u0094\n if(n % 5 == 0) //????5??\n cout << \"5\" << endl; //??\u00935\u0094\n if(n % 7 == 0) //????7??\n cout << \"7\" << endl; //??\u00937\u0094\n //??n???3?5?7??\n if(n % 3 != 0 && n % 5 != 0 && n % 7 != 0)\n cout << \"n\" << endl; //??????n\n }\n }\n }\n\n }\n return 0; //??????\n}\n"} +{"label": "93", "index": "46033", "code": "int main()\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tif(n%3==0&&n%5==0&&n%7==0)\n\t{\n\t\tprintf(\"3 5 7\");\n\t}\n\telse if(n%3==0&&n%5==0)\n\t{\n\t\tprintf(\"3 5\");\n\t}\n\telse if(n%3==0&&n%7==0)\n\t{\n\t\tprintf(\"3 7\");\n\t}\t\n\telse if(n%5==0&&n%7==0)\n\t{\n\t\tprintf(\"5 7\");\n\t}\n\telse {\n\t\tfor(i=3;i<8;i=i+2)\n\t\t{\n\t\tif(n%i==0)\n\t{\n\t\tprintf(\"%d\",i);\n\t}\n\t\t}\n\t}\n\tif(n%3!=0&&n%5!=0&&n%7!=0)\n\t{\n\t\tprintf(\"n\");\n\t}\n return 0;\n}\n"} +{"label": "93", "index": "46034", "code": "int main()\n{\n\tint num,n=0,a,b,c;\n\tcin>>num;\n\ta=num%3;//a??3??????\n\tb=num%5;//b??5??????\n\tc=num%7;//C??7??????\n\tif (a==0&&b==0&&c==0)//???????????\n\t\tcout<<\"3 5 7\"<>num;\nfor(i=1;i<4;i++)//????????3,5,7\n{\n\tchushu=2*i+1;\n\tif(num%chushu==0)//????num???????\n\t{\t\n\t\tif(j>0)\n\t\t\tcout<<\" \";//??j>0??????????????????????????????????\n\t\tcout<> x;\n\tif (x % 3 == 0)\n\t{\n\t\tfront_number_exist = 1;\n\t\tcout << 3;\n\t}\n\tif (x % 5 == 0)\n\t{\n\t\tif (front_number_exist)\n\t\t{\n\t\t\tcout << \" 5\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfront_number_exist = 1;\n\t\t\tcout << \"5\";\n\t\t}\n\t}\n\tif (x % 7 == 0)\n\t{\n\t\tif (front_number_exist)\n\t\t{\n\t\t\tcout << \" 7\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfront_number_exist = 1;\n\t\t\tcout << \"7\";\n\t\t}\n\t}\n\telse\n\t{\n\t\tif (front_number_exist == 0)\n\t\t{\n\t\t\tcout << \"n\";\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46037", "code": "\n\nint main()\n{\n\tint N; cin >> N;\n\tif (N % 105 == 0) { cout << \"3 5 7\" << endl; return 0;}\n\tif (N % 15 == 0) { cout << \"3 5\" << endl; return 0;}\n\tif (N % 21 == 0) { cout << \"3 7\" << endl; return 0;}\n\tif (N % 35 == 0) { cout << \"5 7\" << endl; return 0;}\n\tif (N % 3 == 0) { cout << \"3\" << endl; return 0;}\n\tif (N % 5 == 0) { cout << \"5\" << endl; return 0;}\n\tif (N % 7 == 0) { cout << \"7\" << endl; return 0;}\n\tcout << \"n\" << endl;\n\treturn 0;\n}\n"} +{"label": "93", "index": "46038", "code": "int main()\n{\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;\n\tif(a!=0&&b!=0&&c!=0)\n\t\tprintf(\"n\\n\");\n\telse if(a==0)\n\t\tprintf(\"3\");\n\tif(b==0)\n\t{if(a==0)\n\tprintf(\" 5\");\n\telse printf(\"5\");}\n\tif(c==0)\n\t{if(b==0||a==0)\n\t\tprintf(\" 7\");\n\t\telse printf(\"7\");}\n\treturn 0;\n}"} +{"label": "93", "index": "46039", "code": "int main(){\n int n,i;\n\tcin>>n;\n\tint a[3];\n\ti=3;\n\ta[0]=n%i;\n\ti=5;\n\ta[1]=n%i;\n\ti=7;\n\ta[2]=n%i;\n\tif(a[0]==0&&a[1]!=0&&a[2]!=0){printf(\"3\");}\n\telse if(a[0]==0&&a[1]==0&&a[2]!=0){printf(\"3 5\");}\n\telse if(a[0]==0&&a[1]==0&&a[2]==0)printf(\"3 5 7\");\n\telse if(a[0]!=0&&a[1]==0&&a[2]==0)printf(\"5 7\");\n\telse if(a[0]!=0&&a[1]==0&&a[2]!=0)printf(\"5\");\n\telse if(a[0]!=0&&a[1]!=0&&a[2]==0)printf(\"7\");\n else if(a[0]==0&&a[1]!=0&&a[2]==0)printf(\"3 7\");\n\telse printf(\"n\");\n\t\n\treturn 0;\n}"} +{"label": "93", "index": "46040", "code": "int main()\n{\n\tint n=0,i=0,k=0;//????n?????i??????k\n\tint Sub[3]={0,0,0};//??????????\n\tcin>>n;//??????\n\tif(n%3==0) {Sub[i]=3;i++;}//????3????3?????\n\tif(n%5==0) {Sub[i]=5;i++;}//????5????5?????\n\tif(n%7==0) {Sub[i]=7;i++;}//????7????7?????\n\tif(Sub[0]==0) cout<<'n';//?????????n\n\telse\n\t{for(k=0;k=7)\n\t{\n\t\tif(a%7==0)\n\t\t{\n\t\t\tif(a%5==0)\n\t\t\t{\n\t\t\t\tif(a%3==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"3 5 7\\n\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"5 7\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a%3==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"3 7\\n\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"7\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a%5==0)\n\t\t\t{\n\t\t\t\tif(a%3==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"3 5\\n\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"5\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a%3==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"3\\n\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprintf(\"n\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\tif(a==6||a==3)\n\t\t{\n\t\t\tprintf(\"3\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a==5)\n\t\t\t{\n\t\t\t\tprintf(\"5\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"n\\n\");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46044", "code": "int main()\n{\n\tint a,b,c,d;\n\tcin>>a;\n\tb=a%3;\n\tc=a%5;\n\td=a%7;\n\tif(b==0&&c==0&&d==0) cout<<3<<' '<<5<<' '<<7<> n;\n\tint sum = 0;\n\tif (n % 3 == 0)\n\t\tsum = sum +3;\n\tif (n % 5 == 0)\n\t\tsum = sum +5;\n\tif (n % 7 == 0)\n\t\tsum = sum +7;\n\tswitch (sum)\n\t{\n\t case 0: cout << \"n\" << endl; break;\n\t\tcase 3: cout << 3 << endl; break;\n\t\tcase 5: cout << 5 << endl; break;\n\t\tcase 7: cout << 7 << endl; break;\n\t\tcase 8: cout << \"3 5\" << endl; break;\n\t\tcase 10: cout << \"3 7\" << endl; break;\n\t\tcase 12: cout << \"5 7\" << endl; break;\n\t\tcase 15: cout << \"3 5 7\" << endl; break;\n\t\tdefault: cout << \"error\" << endl; break;\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46046", "code": "int main()\n{\n\tint n, p = 0, j = 0, k = 0;\n\twhile (cin >> n)\n\t{\n\t\tif (n % 3 == 0)\n\t\t{\n\t\t\tcout << 3;\n\t\t\tp = 1;\n\t\t}\n\t\tif (n % 5 == 0)\n\t\t{\n\t\t\tif (p == 0)\n\t\t\t\tcout << 5;\n\t\t\telse\n\t\t\t\tcout << \" \" << 5;\n\t\t\tj = 1;\n\t\t}\n\t\tif (n % 7 == 0)\n\t\t{\n\t\t\tif ((p == 1) || (j == 1))\n\t\t\t\tcout << \" \" << 7;\n\t\t\telse\n\t\t\t\tcout << 7;\n\t\t\tk = 1;\n\t\t}\n\t\tif ((p == 0) && (j == 0) && (k==0))\n\t\t\tcout << \"n\";\n\t\tcout << endl;\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46047", "code": "/*\n*\t5.cpp\n*\t???\n*\t2013.9.29\n*\t???????3?5?7????\n*/\nint main() // ???\n{\n\tint num,x,y,z; // ????\n\tcin >> num; // ????\n\tx=!(num%3);\n\ty=!(num%5);\n\tz=!(num%7);\n\tif(x==1&&y==1&&z==1)\n\t{\n\t\tcout<<\"3 5 7\"<> x; //????\n a = (x % 3 == 0 )? 1 : 0;//?x??3???a?1????0\n b = (x % 5 == 0 )? 1 : 0;//?x??5???b?1????0\n c = (x % 7 == 0 )? 1 : 0;//?x??7???c?1????0\n\n if(a + b + c == 3) //????357??\n cout << 3 << \" \" << 5 << \" \" << 7 <> n; //??\n\tx = n%3;\n\ty = n%5;\n\tz = n%7;\n\tif (x == 0) //????\n\t\tcout << 3 ;\n\tif (y == 0) //????\n\t{\n\t\tif( x == 0 )\n\t\tcout << \" \" << 5;\n\t\telse\n\t\t\tcout << 5;\n\t}\n\tif (z == 0) //????\n\t{\n\t\tif( x ==0 || y == 0 )\n\t\t\tcout << \" \" << 7 <> n;\n\ta = n % 3;\n\tb = n % 5;\n\tc = n % 7;\n\tif ( a==0 )\n\t\tif ( b==0 )\n\t\t\tif ( c==0 )\n\t\t\t\tcout << \"3 5 7\";\n\t\t\telse\n\t\t\t\tcout << \"3 5\";\n\t\telse\n\t\t\tif ( c==0 )\n\t\t\t\tcout << \"3 7\";\n\t\t\telse\n\t\t\t\tcout << \"3\";\n\telse\n\t\tif ( b==0 )\n\t\t\tif ( c==0 )\n\t\t\t\tcout << \"5 7\";\n\t\t\telse\n\t\t\t\tcout << \"5\";\n\t\telse\n\t\t\tif ( c==0 )\n\t\t\t\tcout << \"7\";\n\t\t\telse\n\t\t\t\tcout << \"n\";\n\treturn 0;\n}\n"} +{"label": "93", "index": "46056", "code": "\nint main()\n{\n int a, b, c;\n scanf(\"%d %d %d\", &a, &b, &c);\n if(a%3==0 && a%5==0 && a%7==0)\n\t printf(\"3 5 7\");\n else\n {\n\t if(!(a%3==0 || a%5==0 || a%7==0))\n\t\t printf(\"n\");\n }\n if(!(a%3==0 && a%5==0 && a%7==0) && a%3==0 && a%5==0)\n\t printf(\"3 5\");\n if(!(a%3==0 && a%5==0 && a%7==0) && a%3==0 && a%7==0)\n\t printf(\"3 7\");\n if(!(a%3==0 && a%5==0 && a%7==0) && a%7==0 && a%5==0)\n\t printf(\"5 7\");\n if(a%3==0 && !(a%5==0 || a%7==0))\n\t printf(\"3\");\n if(a%5==0 && !(a%3==0 || a%7==0))\n\t printf(\"5\");\n if(a%7==0 && !(a%5==0 || a%3==0))\n\t printf(\"7\");\n return 0;\n}"} +{"label": "93", "index": "46057", "code": "//******************************************************************************\n//****?????? ???1200012772 ???2012???3? *****\n//****???2012?10?5? *****\n//****?????3?5?7???? *****\n//******************************************************************************\nint main( )\n{\n\tint a; //????a\n\t//cout << \" ?????\" << endl;\n\tcin >> a; //????\n\tif( a % 3 == 0 && a % 5 == 0 && a % 7 == 0 )//??3,5,7??\n\t\tcout << \"3\" << \" 5\" << \" 7\" << endl;\n\telse if( a % 3 == 0 && a % 5 == 0 && a % 7 != 0 )//??3,5??\n\t\tcout << \"3\" << \" 5\" << endl;\n\telse if( a % 3 == 0 && a % 5 != 0 && a % 7 == 0 )//??3,7??\n\t\tcout << \"3\" << \" 7\" << endl;\n\telse if( a % 3 != 0 && a % 5 == 0 && a % 7 == 0 )//??5,7??\n\t\tcout << \"5\" << \" 7\" << endl;\n\telse if( a % 3 == 0 && a % 5 != 0 && a % 7 != 0 )//???3??\n\t\tcout << \"3\" << endl;\n\telse if( a % 3 != 0 && a % 5 == 0 && a % 7 != 0 )//???5??\n\t\tcout << \"5\" << endl;\n\telse if( a % 3 != 0 && a % 5 != 0 && a % 7 == 0 )//???7??\n\t\tcout << \"7\" << endl;\n\telse //???3,5,7??\n\t\tcout << \"n\" << endl;\n\treturn 0;\n}\n"} +{"label": "93", "index": "46058", "code": "int main()\n{\n int x;\n scanf(\"%d\",&x);\n if(x%105==0)\n {\n printf(\"3 5 7\");\n }\n if(x%3==0&&x%5==0&&x%7!=0)\n {\n printf(\"3 5\");\n }\n if(x%3==0&&x%5!=0&&x%7==0)\n {\n printf(\"3 7\");\n }\n if(x%3!=0&&x%5==0&&x%7==0)\n {\n printf(\"5 7\");\n }\n if(x%3==0&&x%5!=0&&x%7!=0)\n {\n printf(\"3\");\n }\n if(x%3!=0&&x%5==0&&x%7!=0)\n {\n printf(\"5\");\n }\n if(x%3!=0&&x%5!=0&&x%7==0)\n {\n printf(\"7\");\n }\n if(x%3!=0&&x%5!=0&&x%7!=0)\n {\n printf(\"n\");\n } \n return 0;\n}"} +{"label": "93", "index": "46059", "code": "\nint main()\n{\n\tint x;\n\tcin >> x;\n\tif (x % 3 == 0) \n\t{ \n\t\tcout << 3;\n\t\tif (x % 5 == 0) cout << \" \" << 5;\n\t\tif (x % 7 == 0) cout << \" \" << 7;\n\t}\n\telse if (x % 5 == 0) \n {\n \t cout << 5 ;\n if (x % 7 == 0) cout << \" \" << 7;\n\t}\n\t\telse if (x % 7 == 0) cout << 7 ;\t \n\telse cout << \"n\";\n return 0;\n}"} +{"label": "93", "index": "46060", "code": "int n;\nmain()\n{\n\tscanf(\"%d\",&n);\n\tif ((n%3==0)&&(n%5==0)&&(n%7==0)) printf(\"%d %d %d\\n\",3,5,7);\n\telse if ((n%3==0)&&(n%5==0)&&(n%7!=0)) printf(\"%d %d\\n\",3,5);\n\telse if ((n%3==0)&&(n%5!=0)&&(n%7==0)) printf(\"%d %d\\n\",3,7);\n\telse if ((n%3!=0)&&(n%5==0)&&(n%7==0)) printf(\"%d %d\\n\",5,7);\n\telse if ((n%3==0)&&(n%5!=0)&&(n%7!=0)) printf(\"%d\\n\",3);\n\telse if ((n%3!=0)&&(n%5==0)&&(n%7!=0)) printf(\"%d\\n\",5);\n\telse if ((n%3!=0)&&(n%5!=0)&&(n%7==0)) printf(\"%d\\n\",7);\n\telse if ((n%3!=0)&&(n%5!=0)&&(n%7!=0)) printf(\"n\\n\");\n}"} +{"label": "93", "index": "46061", "code": "int main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\tif(n%3==0&&n%5==0&&n%7==0) printf(\"3 5 7\");\n\t\n\telse if(n%3!=0&&n%5==0&&n%7==0) printf(\"5 7\");\n\t\n\telse if(n%3==0&&n%5!=0&&n%7==0) printf(\"3 7\");\n\t\n\telse if(n%3==0&&n%5==0&&n%7!=0) printf(\"3 5\");\n\n\telse if(n%3==0&&n%5!=0&&n%7!=0) printf(\"3\");\n\n\telse if(n%3!=0&&n%5==0&&n%7!=0) printf(\"5\");\n\n\telse if(n%3!=0&&n%5!=0&&n%7==0) printf(\"7\");\n\t\n\telse printf(\"n\");\n\treturn 0;\n}\n"} +{"label": "93", "index": "46062", "code": "int main()\n{\n int x;\n scanf(\"%d\",&x); \n if (x%3==0)\n { \n if (x%5==0)\n {\n if (x%7==0)\n { \n printf(\"3 5 7\");\n }\n else {\n printf(\"3 5\");\n }\n }\n else {\n if (x%7==0)\n {\n printf(\"3 7\");\n }\n else {\n printf(\"3\");\n }\n }\n }\n else {\n if (x%5==0)\n { \n if (x%7==0)\n { \n printf(\"5 7\");\n }\n else {\n printf(\"5\");\n }\n }\n else {\n if (x%7==0)\n {\n printf(\"7\");\n }\n else {\n printf(\"n\");\n }\n }\n } \n scanf(\"%d\",&x); \n return 0;\n}"} +{"label": "93", "index": "46063", "code": "int main()\n{\n\tint n=0,a[3]={3,5,7};//????\n\tcin>>n;//?????\n\tif((n%3!=0&&n%5!=0)&&n%7!=0)\n\t\t{\n\t\t\tcout<<\"n\";//??n?????????????????n\n\t}\n\telse \n\t\t{\n\t\t\tif(n%7==0)//??n?7?????\n\t\t\t{\n\t\t\t\tfor(int i=0;i<2;i++)\n\t\t {\n\t\t\t\t\t if(n%a[i]==0)//??n?3?5?????\n\t\t\t\t cout<>n;\t//??n\n\t\tif(n%3!=0&&n%5!=0&&n%7!=0)\t//??????????n\n\t\t\tcout<<\"n\"<>i; //????i\n\tif(i%3==0) //??i?????\n\t{\n\t\tif(i%5==0) //??i??5??\n\t\t{\n\t\t\tif(i%7==0) //??i??7??\n\t\t\t{\n\t\t\t\tcout <<\"3 5 7\"<>n;\n\tif((n%3==0)&&(n%5==0)&&(n%7==0))//??8??????????\n\t{\n\t\tcout<<3<<' '<<5<<' '<<7;\n\t}\n\tif((n%3==0)&&(n%5!=0)&&(n%7==0))\n\t{\n\t\tcout<<3<<' '<<7;\n\t}\n\tif((n%3==0)&&(n%5==0)&&(n%7!=0))\n\t{\n\t\tcout<<3<<' '<<5;\n\t}\n\tif((n%3!=0)&&(n%5==0)&&(n%7==0))\n\t{\n\t\tcout<<5<<' '<<7;\n\t}\n\tif(!(n%3==0)&&!(n%5==0)&&(n%7==0))\n\t{\n\t\tcout<<7;\n\t}\n\tif(!(n%3==0)&&(n%5==0)&&!(n%7==0))\n\t{\n\t\tcout<<5;\n\t}\n\tif((n%3==0)&&!(n%5==0)&&!(n%7==0))\n\t{\n\t\tcout<<3;\n\t}\n\tif(!(n%3==0)&&!(n%5==0)&&!(n%7==0))\n\t{\n\t\tcout<<'n';\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "93", "index": "46074", "code": "void main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0&&n%7==0&&n%5==0)\n\t\t\n\n\t\t\tprintf(\"3 5 7\\n\");\n\t\n\n if(n%5==0&&n%7!=0)\n{if(n%3!=0)\nprintf(\"5\\n\");\n else printf(\"3 5\\n\");}\nif(n%3==0&&n%5!=0)\n{if(n%7!=0)\nprintf(\"3\\n\");else printf(\"3 7\\n\");\n}\nif(n%7==0&&n%3!=0)\n{if(n%5!=0)\nprintf(\"7\\n\");\nelse printf(\"5 7\\n\");}\nif(n%7!=0&&n%3!=0)\n{if(n%5!=0)\nprintf(\"n\\n\");}\n}"} +{"label": "93", "index": "46075", "code": "int main()\n{ \n\tint a,b=3,c=5,d=7;//??a?????\n cin>>a;\n\tif(a%b==0)\n\t\tif(a%c==0)\n\t\t\tif(a%d==0)\n\t\t\tcout<>num; //???????????num?????\n\t\n\tif (num%3==0) //????num?3,5,7??????????????????????????????????????????\n\t{\tcout<<'3'; \n\t if (num%5==0) cout<<\" 5\";\n\t if (num%7==0) cout<<\" 7\"; }\n\telse if (num%5==0)\n\t{\n\t\tcout<<'5';\n\t\t if (num%7==0) cout<<\" 7\"; \n\t}\n\telse if (num%7==0) cout<<\"7\";\n\t\n\tif (num%3!=0 && num%5!=0 && num%7!=0) cout<<'n'; //???????????????n\n\t\n\treturn 0;\n\t\n}\n"} +{"label": "93", "index": "46077", "code": "int main() //???\n{ //?????\nint a; //????\ncin >> a; //??a??\nif (a%3==0 && a%5==0 && a%7==0) //??????3?5?7?? \n{\n\tcout << 3 << \" \" << 5 << \" \" << 7 << endl; //??3 5 7\n}\nif (a%3==0 && a%5==0 && a%7!=0) //?????????3,5??\n{\n cout << 3 << \" \" << 5 << endl; //??3 5\n}\nif (a%3==0 && a%5!=0 && a%7==0) //?????????3,7??\n{\n cout << 3 << \" \" << 7 << endl; //??3 7\n}\nif (a%3!=0 && a%5==0 && a%7==0) //?????????5,7??\n{\n cout << 5 << \" \" << 7 << endl; //??5 7\n}\nif (a%3==0 && a%5!=0 && a%7!=0) //?????????3?? \n{\n cout << 3 << endl; //??3 \n}\nif (a%3!=0 && a%5!=0 && a%7==0) //?????????7??\n{\n cout << 7 << endl; //??7\n}\nif (a%3!=0 && a%5==0 && a%7!=0) //?????????5??\n{\n cout << 5 << endl; //??5\n}\nif (a%3!=0 && a%5!=0 && a%7!=0) //??????????\n{\n\tcout << \"n\" << endl; //??????n\n}\nreturn 0; //??0?\n} //?????"} +{"label": "93", "index": "46078", "code": "int main()\n{\n\tint a,b,c,n;\n\tscanf(\"%d\",&n);\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;\n\tif(a==0&&b==0&&c==0){\n\t\tprintf(\"3 5 7\");}\n\tif(a==0&&b==0&&!c==0){\n\t\tprintf(\"3 5\");}\n\tif(a==0&&c==0&&!b==0){\n\t\tprintf(\"3 7\");}\n\tif(b==0&&c==0&&!a==0){\n\t\tprintf(\"5 7\");}\n\tif(a==0&&!b==0&&!c==0){\n\t\tprintf(\"3\");}\n\tif(b==0&&!a==0&&!c==0){\n\t\tprintf(\"5\");}\n\tif(c==0&&!b==0&&!a==0){\n\t\tprintf(\"7\");}\n\tif(!c==0&&!b==0&&!a==0){\n\t\tprintf(\"n\");}\nreturn 0;\n\t\t\t}"} +{"label": "93", "index": "46079", "code": "int main()\n\n\n\n\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif((a%3==0)&&(a%5==0)&&(a%7==0))\n\t{\n\t\tprintf(\"3 5 7\");\n\t}\n\telse if((a%3==0)&&(a%5==0)&&(a%7!=0))\n\t{\n\t\tprintf(\"3 5\");\n\t}\n\telse if((a%3==0)&&(a%5!=0)&&(a%7==0))\n\t{\n\t\tprintf(\"3 7\");\n\t}\n\telse if((a%3!=0)&&(a%5==0)&&(a%7==0))\n\t{\n\t\tprintf(\"5 7\");\n\t}\n\telse if((a%3!=0)&&(a%5!=0)&&(a%7==0))\n\t{\n\t\tprintf(\"7\");\n\t}\n else if((a%3!=0)&&(a%5!=0)&&(a%7==0))\n\t{\n\t\tprintf(\"7\");\n\t}\n else if((a%3!=0)&&(a%5==0)&&(a%7!=0))\n\t{\n\t\tprintf(\"5\");\n\t}\n else if((a%3==0)&&(a%5!=0)&&(a%7!=0))\n\t{\n\t\tprintf(\"3\");\n\t}\n\telse if((a%3!=0)&&(a%5!=0)&&(a%7!=0))\n\t{\n\t\tprintf(\"n\");\n\t}\n\n\n\n\n\n\n\nreturn 0;\n}"} +{"label": "93", "index": "46080", "code": "//*******************************\n//*project : 5.cpp**\n//*author : ??? 1200012971**\n//*time : 2012.10.4**\n//*******************************\nint main() //?????\n{\n\tint a; //???????\n\tcin >> a; //????a \n\tif ( a % 3 == 0 && a % 5 == 0 && a % 7 == 0) //a??3?5?7???????\n\t\tcout << \"3 5 7\" << endl;\n\telse\n\t{\n\t\tif ( a % 15 == 0 || a % 35 == 0 || a % 21 == 0 )\n\t\t{\n\t\t\tif ( a % 3 == 0 && a % 5 == 0) // ??a????3 5 7 ???????\n\t\t\t cout << \"3 5\" << endl;\n\t\t if ( a % 5 == 0 && a % 7 == 0)\n\t\t\t cout << \"5 7\" << endl;\n\t \tif ( a % 3 == 0 && a % 7 == 0)\n\t\t\t\tcout << \"3 7\" << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( a % 3 == 0) //??a???3 5 7???????\n\t\t\t\tcout << \"3\" << endl; \n\t\t\tif ( a % 5 == 0)\n\t\t\t\tcout << \"5\" << endl;\n\t\t\tif ( a % 7 == 0)\n\t\t\t\tcout << \"7\" << endl;\n\t\t\tif ( a % 3 != 0 && a % 5 != 0 && a % 7 != 0)\n\t\t\t cout << \"n\" << endl; //a???3 5 7??????????\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46081", "code": "main ()\n{\n int n;\n scanf (\"%d\",&n);\n int count=0 ;\n int t1,t2,t3;\n if (n%3==0)\n {\n count++;\n\tt1=3;\n\tif (n%5==0)\n\t{\n\t count ++;\n\t t2=5;\n\t if (n%7==0)\n\t {\n\t count ++;\n\t t3=7;\n\t }\n\t}\n\telse if (n%7==0)\n\t{\n\t count ++;\n\t t2=7;\n\t}\t\t\n }\n else if (n%5==0)\n {\n count ++;\n t1=5;\n if (n%7==0)\n {\n\t count ++;\n\t t2=7;\n\t}\n }\t\n else if (n%7==0)\n {\n\tcount++;\n t1=7;\n }\n\n if (count==3)\n {\n printf (\"%d %d %d\",t1,t2,t3);\n }\n else if (count==2)\n {\n printf (\"%d %d\",t1,t2);\n }\n else if (count==1)\n {\n printf (\"%d\",t1);\n }\n else if (count==0)\n {\n printf (\"n\");\n }\n\t\n}"} +{"label": "93", "index": "46082", "code": "int main()\n{\n int t1,t2,t3;\n int n;\n cin>>n;\n if(n%3==0) t1=1;\n else t1=0;\n if(n%5==0) t2=1;\n else t2=0;\n if(n%7==0) t3=1;\n else t3=0;\n if(t1+t2+t3==1)\n {\n if(t1==1) cout<<3;\n if(t2==1) cout<<5;\n if(t3==1) cout<<7; \n }\n else if(t1+t2+t3==2)\n {\n if(t1==0) cout<<5<<\" \"<<7;\n if(t2==0) cout<<3<<\" \"<<7;\n if(t3==0) cout<<3<<\" \"<<5;\n }\n else if(t1+t2+t3==3) cout<<3<<\" \"<<5<<\" \"<<7;\n else cout<<\"n\";\n return 0;\n}\n \n"} +{"label": "93", "index": "46083", "code": "//****************************\n//* ?????3 5 7???? *\n//* by song liwei *\n//****************************\nint main()\n{\n\tint k;\n\tcin>>k;\n\tif(k%3==0&&k%5==0&&k%7==0)\n\t\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\"<=1) {printf(\" 7\");f3=1;}\n if(n%7==0&&f1+f2==0) {printf(\"7\");f3=1;}\n if(f1+f2+f3==0) printf(\"n\");\n}"} +{"label": "93", "index": "46085", "code": "int main(){\n\tint i;\n\tscanf(\"%d\", &i);\t\t\n\tif(i%3 == 0 && i%5 == 0 && i%7 ==0){\n\t\tprintf(\"3 5 7\");\n\t\treturn 0;\n\t}\nif(i%3 != 0 && i%5 == 0 && i%7 ==0){\n\t\tprintf(\"5 7\");\n\t\treturn 0;\n\t}\n\tif(i%3 == 0 && i%5 != 0 && i%7 ==0){\n\t\tprintf(\"3 7\");\n\t\treturn 0;\n\t}\n\tif(i%3 == 0 && i%5 == 0 && i%7 !=0){\n\t\tprintf(\"3 5\");\n\t\treturn 0;\n\t}\n\nif(i%3 == 0 && i%5 != 0 && i%7 !=0){\n\t\tprintf(\"3\");\n\t\treturn 0;\n\t}\n\tif(i%3 != 0 && i%5 == 0 && i%7 !=0){\n\t\tprintf(\"5\");\n\t\treturn 0;\n\t}\n\tif(i%3 != 0 && i%5 != 0 && i%7 ==0){\n\t\tprintf(\"7\");\n\t\treturn 0;\n\t}\nif(i%3 != 0 && i%5 != 0 && i%7 !=0){\n\t\tprintf(\"n\");\n\t\treturn 0;\n\t}\n\n\n\treturn 0;\n}\n"} +{"label": "93", "index": "46086", "code": "int main()\n{\n\tint n;\n\tcin >>n;\n\tif (n%3==0) cout <<3;\n\tif (n%5==0)\n\t\tif (n%3==0) cout <<\" 5\";\n\t\telse cout <<5;\n\tif (n%7==0)\n\t\tif (n%3==0 || n%5==0) cout <<\" 7\";\n\t\telse cout <<7;\n\tif (n%3!=0 && n%5!=0 && n%7!=0)\n\t\tcout <<'n';\n\tcout <>a;\n for (int i=3;i<=7;i+=2) //?????????? \n {\n if (a%i==0)\n j++;\n }\n if (j==0) //??1?? \n cout <<\"n\";\n else\n {\n for (int i=3;i<=7;i+=2) //??\n {\n if (a%i!=0) //?? \n continue;\n cout <1)\n {\n printf(\" \");\n k--;\n }\n }\n\n }\n if(k==0)\n {\n printf(\"n\");\n }\n return 0;\n\n}"} +{"label": "93", "index": "46091", "code": "//**************************\n//*??3?5?7????**\n//*?? : ?? 1300012761**\n//*?? : 2013.10.03**\n//**************************\nint main()\n{\n\tint a ;//????\n\tcin >> a ;//??a\n\tif ((a%3==0&&a%5==0&&a%7==0)==1)//??????3?5?7??\n\t\tcout << \"3 5 7\" <>num;\n\tif(!(num%3)) {n=1; cout<<3;} \n\tif(!(num%5)) \n\t {if(n) cout<<' '; n=1; cout<<5;} \n\tif(!(num%7))\n\t {if(n) cout<<' '; n=1; cout<<7;} \n\tif(!n) cout<<'n';\n\tcin.get();cin.get();\n\treturn 0;\n\n}"} +{"label": "93", "index": "46094", "code": "int main()\n{\n\tint x , a , b , c ;\n\tcin >> x ;\n\ta = x % 3;\n\tb = x % 5;\n\tc = x % 7;\n\tif ( a == 0 && b == 0 && c ==0 )\n {\n\t\tcout << \"3 5 7\" ;\n\t}\n\telse\n\t{\n\t if ( a == 0 )\n\t {\n\t if ( b == 0)\n\t\t\t\tcout << \"3 5\" ;\n\t \n\t\t\telse \n\t\t\t{\n\t\t\t\tif ( c == 0 )\n\t\t\t\t\tcout << \"3 7\" ;\n\t\t\t\telse\n\t\t\t\t\tcout << \"3\" ;\n\t\t\t}\n }\n\t else\n\t {\n\t\t\t\t\tif ( b == 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( c == 0)\n\t\t\t\t\t\t\tcout << \"5 7\" ;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"5\" ;\n\t\t\t\t\t}\n\t\t\t\t else\n\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( c == 0)\n\t\t\t\t\t\t\t\tcout << \"7\" ;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tcout << \"n\" ;\n\t\t\t\t\t}\n\t }\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46095", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0 && n%5==0 && n%7==0){\n\t\tprintf(\"3 5 7\");\n\t return 0;\n\t}\n else if(n%3==0 && n%5==0){\n\t\tprintf(\"3 5\");\n\t return 0;\n\t}\n else if(n%3==0 && n%7==0){\n\t\tprintf(\"3 7\");\n\t return 0;\n\t}\n else if(n%5==0 && n%7==0){\n\t\tprintf(\"5 7\");\n\t return 0;\n\t}\n else if(n%3==0 ){ \n\t\tprintf(\"3\");\n\t return 0;\n\t}\n else if( n%5==0){\n\t\tprintf(\"5\");\n\t return 0;\n\t}\n else if(n%7==0){\n\t\tprintf(\"7\");\n\t\treturn 0;\n\t}\n\telse \n\t\tprintf(\"n\");\n\treturn 0;\n\n}"} +{"label": "93", "index": "46096", "code": "int main()\n{\n int u=0,x;\n cin>>x;\n if(x%3==0)\n {\n u=u+1;\n cout<<\"3\";\n }\n if(x%5==0)\n {\n if(u!=0)cout<<' ';\n u=u+1;\n cout<<\"5\";\n }\n if(x%7==0)\n {\n if(u!=0)cout<<' ';\n u=u+1;\n cout<<\"7\";\n }\n if(u==0)cout<<\"n\";\n return 0;\n}\n"} +{"label": "93", "index": "46097", "code": "//*****************************\n//**?????3?5?7????**\n//**????? **\n//**???2013.9.27 **\n//**????5.cpp **\nint main() //???\n{ \n\tint flag = 0;\n\tint a; //????a\n\tcin >> a; //????a\n\tif ( a % 3 == 0 ) //??a???3??\n\t{ \n\t\tif (flag == 0)\n\t\t{\n\t\t\tcout << \"3\";\n\t\t\tflag = 1;\n\t\t}\n\t\telse\n\t\t\tcout << \" 3\";\n\t} \n\tif ( a % 5 == 0 ) //??a???5??\n\t{ \n\t\tif (flag == 0)\n\t\t{\n\t\t\tcout << \"5\";\n\t\t\tflag = 1;\n\t\t}\n\t\telse\n\t\t\tcout << \" 5\";\n\t} \n\tif ( a % 7 == 0 ) //??a???7??\n\t{ \n\t\tif (flag == 0)\n\t\t{\n\t\t\tcout << \"7\";\n\t\t\tflag = 1;\n\t\t}\n\t\telse\n\t\t\tcout << \" 7\";\n\t} \n\tif (a % 3 != 0 && a % 5 != 0 && a % 7 != 0)\n\t\tcout << \"n\" << endl; //??n\n\treturn 0;\n} //?????"} +{"label": "93", "index": "46098", "code": "void main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t{\n\t\tif(a%5==0&&a%7==0)printf(\"3 5 7\");\n\t\telse if(a%5==0)printf(\"3 5\");\n\t\telse if(a%7==0)printf(\"3 7\");\n\t\telse printf(\"3\");\n\t}\n\telse if(a%5==0)\n\t{\n\t\tif(a%7==0)printf(\"5 7\");\n\t\telse printf(\"5\");\n\t}\n\telse if(a%7==0)\n\t\tprintf(\"7\");\n\telse printf(\"n\");\n}\n"} +{"label": "93", "index": "46099", "code": "int main()\n{\n int n,a,b,c,sum;\n scanf(\"%d\",&n);\n if(n%3==0)\n a=3;\n else\n a=0;\n if(n%5==0)\n b=5;\n else\n b=0;\n if(n%7==0)\n c=7;\n else\n c=0;\n sum=a+b+c;\n switch(sum)\n {\n case 0:printf(\"n\");break;\n case 7:printf(\"7\");break;\n case 5:printf(\"5\");break;\n case 3:printf(\"3\");break;\n case 12:printf(\"5 7\");break;\n case 8:printf(\"3 5\");break;\n case 10:printf(\"3 7\");break;\n case 15:printf(\"3 5 7\");break;\n return 0;\n }\n}\n"} +{"label": "93", "index": "46100", "code": "int main()\n{\n\tint a,b,c,d;\n\tscanf(\"%d\",&a);\n\tb=a%3;\n\tc=a%5;\n\td=a%7;\n\t\n\tif(b==0)\n\t\t{\n\t\t\tprintf(\"3\");\n\t\t}\n \n\t\n\t\n\t if(c==0)\n\t\t {\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\tprintf(\" \");\n\t\t\t}\n\t\t\t printf(\"5\");\n\t\t }\n\t\t \n\t\t \n\t if(d==0)\n\t\t\t {\n\t\t if(b==0||c==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t\t\t printf(\"7\");\n\t\t\t }\n\t\t\t \n\t\t if(b!=0&&c!=0&&d!=0)\n\t\t {\n\t\t\t printf(\"n\");\n\t\t }\n\n \n\t return 0;\n}"} +{"label": "93", "index": "46101", "code": "int main(){\nint n,q1,q2,q3;\nscanf(\"%d\",&n);\nq1=0;\nq2=0;\nq3=0;\nif (n%3==0) q1=1;\nif (n%5==0) q2=1;\nif (n%7==0) q3=1;\nif ((q1==0)&&(q2==0)&&(q3==0)) printf(\"n\");\nelse{ \nif (q1+q2+q3==3) \n printf(\"3 5 7\");\nif (q1+q2+q3==2) {\n\tif (q1==0) printf(\"5 7\");\n\tif (q2==0) printf(\"3 7\");\n\tif (q3==0) printf(\"3 5\");\n}\nif (q1+q2+q3==1){\nif (q1==1) printf(\"3\");\nif (q2==1) printf(\"5\");\nif (q3==1) printf(\"7\");\n}\n}\nreturn 0;\n}\n"} +{"label": "93", "index": "46102", "code": "void main()\n{\n\tint m,a,b,c,d,i;\n\tscanf(\"%d\",&m);\n\ta=m%3; b=m%5; c=m%7;\n\tif (a==0&&b==0&&c==0) printf(\"3 5 7\\n\");\n else if (a!=0&&b==0&&c==0) printf(\"5 7\\n\");\n\telse if (a==0&&b!=0&&c==0) printf(\"3 7\\n\");\n\telse if (a==0&&b==0&&c!=0) printf(\"3 5\\n\");\n\telse if (a!=0&&b!=0&&c==0) printf(\"7\\n\");\n else if (a!=0&&b==0&&c!=0) printf(\"5\\n\");\n\telse if (a==0&&b!=0&&c!=0) printf(\"3\\n\");\n\telse printf(\"n\\n\");\n}"} +{"label": "93", "index": "46103", "code": "int main()\n{\n int a;\n scanf(\"%d\",&a);\n if(a%3==0&&a%5==0&&a%7==0)\n printf(\"3 5 7\\n\");\n else if(a%3==0&&a%5==0&&a%7!=0)\n printf(\"3 5\\n\");\n else if(a%3==0&&a%5!=0&&a%7==0)\n printf(\"3 7\\n\");\n else if(a%3!=0&&a%5==0&&a%7==0)\n printf(\"5 7\\n\");\n else if(a%3==0)\n printf(\"3\\n\");\n else if(a%5==0)\n printf(\"5\\n\");\n else if(a%7==0)\n printf(\"7\\n\");\n else printf(\"n\\n\");\n return 0;\n}"} +{"label": "93", "index": "46104", "code": "int main()\n{\n int n,a,b,c;\n scanf(\"%d\",&n);\n a=3;\n b=5;\n c=7;\n if(n%3==0&&n%5==0&&n%7==0) printf(\"3 5 7\");\n else if(n%3==0&&n%5==0) printf(\"3 5\");\n else if(n%5==0&&n%7==0) printf(\"5 7\");\n else if(n%3==0&&n%7==0) printf(\"3 7\");\n else if(n%3==0) printf(\"3\");\n else if(n%5==0) printf(\"5\");\n else if(n%7==0) printf(\"7\");\n else printf(\"n\");\n return 0;\n}"} +{"label": "93", "index": "46105", "code": "int main()\n{\n int m,a,b,c;\n char n;\n int i,j,k;\n i=3;\n j=5;\n k=7;\n cin>>m;\n a=m%3;\n b=m%5;\n c=m%7;\n if(a==0 && b==0 && c==0)cout<>n;\nif(n%3==0)\n{\ncout<<\"3\";\ni++;\n}\n\nif(n%5==0&&i>0)\n{\ncout<<\" 5\";\ni++;\n}\nelse if(n%5==0)\n{\ncout<<\"5\";\ni++;\n}\nif(n%7==0&&i>0)\n{\ncout<<\" 7\";\ni++;\n}\nelse if(n%7==0)\n{\ncout<<\"7\";\ni++;\n}\n\nif(i==0)\ncout<<\"n\";\nreturn 0;\n\n}\n"} +{"label": "93", "index": "46109", "code": "int main(){\nint a;\nscanf(\"%d\",&a);\nif(a%3==0&&a%5==0&&a%7==0){\n\tprintf(\"3 5 7\");\n}else if(a%3==0&&a%5==0&&a%7!=0){\n\tprintf(\"3 5\");\n}else if(a%3==0&&a%5!=0&&a%7==0){\n\tprintf(\"3 7\");\n}else if(a%3!=0&&a%5==0&&a%7==0){\n\tprintf(\"5 7\");\n}else if(a%3!=0&&a%5!=0&&a%7==0){\n\tprintf(\"7\");\n}else if(a%3!=0&&a%5==0&&a%7!=0){\n\tprintf(\"5\");\n}else if(a%3==0&&a%5!=0&&a%7!=0){\n\tprintf(\"3\");\n}else{\n\tprintf(\"n\");\n}\n return 0;\n}\n\n\n"} +{"label": "93", "index": "46110", "code": "int main()\n{\n\tint num;\n\tscanf(\"%d\",&num);\n\tif(num%3==0)\n\t{\n\t\tprintf(\"3\");\n\t\tif(num%5==0)\n\t\t{\n\t\t\tprintf(\" %d\",5);\n\t\t\tif(num%7==0)\n\t\t\t\tprintf(\" %d\",7);\n\t\t}\n\t\telse if(num%7==0)\n\t\t\tprintf(\" %d\",7);\n\t}\n\telse if(num%5==0)\n\t\t{\n\t\t\tprintf(\"%d\",5);\n\t\t\tif(num%7==0)\n\t\t\t\tprintf(\" %d\",7);\n\t\t}\n\telse if(num%7==0)\n\t\t\tprintf(\"%d\",7);\n\telse\n\t\tprintf(\"n\");\n\treturn 0;\n}\n"} +{"label": "93", "index": "46111", "code": "int main()\n{\nint a;\nchar n;\nn='n';\nscanf(\"%d\",&a);\nif(a%3==0&&a%5==0&&a%7==0)\n{\n\tprintf(\"3 5 7\");\n}\nelse if(a%3!=0&&a%5==0&&a%7==0)\n{\n\tprintf(\"5 7\");\n}\nelse if(a%3==0&&a%5!=0&&a%7==0)\n{\n\tprintf(\"3 7\");\n}\nelse if(a%3==0&&a%5==0&&a%7!=0)\n{\n\tprintf(\"3 5\");\n}\nelse if(a%3==0&&a%5!=0&&a%7!=0)\n{\n\tprintf(\"3\");\n}\nelse if(a%3!=0&&a%5==0&&a%7!=0)\n{\n\tprintf(\"5\");\n}\nelse if(a%3!=0&&a%5!=0&&a%7==0)\n{\n\tprintf(\"7\");\n}\nelse if(a%3!=0&&a%5!=0&&a%7!=0)\n{\n\tprintf(\"%c\",n);\n}\nreturn 0;\n}\n"} +{"label": "93", "index": "46112", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0)\n\t{\n\t\tif(n%5==0)\n\t\t{\n\t\t\tif(n%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"3 5\");\n\t\t\t}\n\t\t}\n\t\telse if(n%5!=0)\n\t\t{\n\t\t\tif(n%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"3\");\n\t\t\t}\n\t\t}\n\t}\n\tif(n%3!=0)\n\t{\n\t\tif(n%5==0)\n\t\t{\n\t\t\tif(n%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"5 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"5\");\n\t\t\t}\n\t\t}\n\t\telse if(n%5!=0)\n\t\t{\n\t\t\tif(n%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"n\");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46113", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tif(n%3==0&&n%5!=0&&n%7!=0)\t\t//??????????????\n\t\tcout<<3;\n\tif(n%5==0&&n%3!=0&&n%7!=0)\n\t\tcout<<5;\n\tif(n%7==0&&n%3!=0&&n%5!=0)\n\t\tcout<<7;\n\tif(n%3!=0&&n%5!=0&&n%7!=0)\n\t\tcout<<\"n\";\n\tif(n%3==0&&n%5==0&&n%7!=0)\n\t\tcout<<3<<\" \"<<5;\n\tif(n%3==0&&n%5!=0&&n%7==0)\n\t\tcout<<3<<\" \"<<7;\n\tif(n%3!=0&&n%5==0&&n%7==0)\n\t\tcout<<5<<\" \"<<7;\n\tif(n%3==0&&n%5==0&&n%7==0)\n\t\tcout<<3<<\" \"<<5<<\" \"<<7;\n\treturn 0;\n}"} +{"label": "93", "index": "46114", "code": "int main(){\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\na=n%3;\nb=n%5;\nc=n%7;\nif(a==0&&b==0&&c==0){\n\tprintf(\"%d %d %d\",3,5,7);\n}else if(a==0&&b!=0&&c!=0){\n\tprintf(\"%d\",3);\n}else if(b==0&&a!=0&&c!=0){\n\tprintf(\"%d\",5);\n}else if(c==0&&b!=0&&a!=0){\n\tprintf(\"%d\",7);\n}else if(a==0&&b==0&&c!=0){\n\tprintf(\"%d %d\",3,5);\n}else if(a==0&&b!=0&&c==0){\n\tprintf(\"%d %d\",3,7);\n}else if(a!=0&&b==0&&c==0){\n\tprintf(\"%d %d\",5,7);\n}else {\n\tprintf(\"n\");\n}\nreturn 0;\n}"} +{"label": "93", "index": "46115", "code": "int main()\n{\n\tint a,b,c;\n\tscanf(\"%d\",&a);\n\tb=0;\n\tc=a%3;\n\tif(c==0) b++;\n\tc=a%5;\n\tif(c==0) b=b+2;\n\tc=a%7;\n\tif(c==0) b=b+4;\n\tswitch(b)\n\t{\n\tcase 7:printf(\"3 5 7\");break;\n\tcase 6:printf(\"5 7\");break;\n\tcase 5:printf(\"3 7\");break;\n\tcase 4:printf(\"7\");break;\n\tcase 3:printf(\"3 5\");break;\n\tcase 2:printf(\"5\");break;\n\tcase 1:printf(\"3\");break;\n\tcase 0:printf(\"n\");break;\n\t}\n\n}\n"} +{"label": "93", "index": "46116", "code": "void main()\n{\n\tint a;\n scanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t\tprintf(\"3 5 7\");\n\telse if(a%15==0&&a%7!=0)\n\t\tprintf(\"3 5\");\n\telse if(a%35==0&&a%3!=0)\n\t\tprintf(\"5 7\");\n\telse if(a%21==0&&a%5!=0)\n\t\tprintf(\"3 7\");\n\telse if(a%35!=0&&a%3==0)\n\t\tprintf(\"3\");\n\telse if(a%15!=0&&a%7==0)\n\t\tprintf(\"7\");\n\telse if(a%21!=0&&a%5==0)\n\t\tprintf(\"5\");\n\telse\n\t\tprintf(\"n\");\n}"} +{"label": "93", "index": "46117", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int r3 = 0, r5 = 0, r7 = 0;\n if (n%3!=0) r3 = 1;\n if (n%5!=0) r5 = 1;\n if (n%7!=0) r7 = 1;\n int temp = r3*4 + r5*2 +r7; \n switch (temp)\n {\n case 7 :\n printf(\"n\\n\");\n break;\n case 1 :\n printf(\"3 5\\n\");\n break;\n case 2 :\n printf(\"3 7\\n\");\n break;\n case 4 :\n printf(\"5 7\\n\");\n break;\n case 6 :\n printf(\"7\\n\");\n break;\n case 5 :\n printf(\"5\\n\");\n break;\n case 3 :\n printf(\"3\\n\");\n break;\n case 0 : \n printf(\"3 5 7\\n\");\n break; \n } \n return 0;\n}\n"} +{"label": "93", "index": "46118", "code": "int main(){\n int a;\n scanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0){\n\t\tprintf(\"3 5 7\");\n\t}else{\n\t\tif(a%3==0&&a%5==0&&a%7!=0){\n\t\t\tprintf(\"3 5\");\n\t\t}else{\n\t\t\tif(a%3==0&&a%5!=0&&a%7==0){\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}else{\n\t\t\t\tif(a%3!=0&&a%5==0&&a%7==0){\n\t\t\t\t\tprintf(\"5 7\");\n\t\t\t\t}else{\n\t\t\t\t\tif(a%3==0&&a%5!=0&&a%7!=0){\n\t\t\t\t\t\tprintf(\"3\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(a%3!=0&&a%5==0&&a%7!=0){\n\t\t\t\t\t\t\tprintf(\"5\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif(a%3!=0&&a%5!=0&&a%7==0){\n\t\t\t\t\t\t\t\tprintf(\"7\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tif(a%3!=0&&a%5!=0&&a%7!=0){\n\t\t\t\t\t\t\t\t\tprintf(\"n\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "93", "index": "46119", "code": "/*?????3?5?7????\n ?????? 1200012829\n ???2012?9.25*/\nint main ()\n{\n\tint x;\n\tcin >> x;//?????\n\tif ( x % 3 == 0 )//????????\n\t{\n\t\tif ( x % 5 == 0 )//??????????????\n\t\t{\n\t\t\tif ( x % 7 == 0 )//??????????????\n\t\t\t{\n\t\t\t\tcout << \"3 5 7\" << endl;//?????3 5 7\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"3 5\" << endl;//????3 5\n\t\t\t}\n\t\t}\n\t\telse//??????\n\t\t{\n\t\t\tif (x % 7 == 0 )//????????\n\t\t\t{\n\t\t\t\tcout << \"3 7\" << endl;//?????3 7\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"3\" << endl;//????3\n\t\t\t}\n\t\t}\n\t}\n\telse//??????\n\t{\n\t\tif ( x % 5 == 0 )//????????\n\t\t{\n\t\t\tif ( x % 7 == 0 )//??????????????\n\t\t\t{\n\t\t\t\tcout << \"5 7\" << endl; //????5 7\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"5\" << endl;//????5\n\t\t\t}\n\t\t}\n\t\telse//??????\n\t\t{\n\t\t\tif ( x % 7 == 0 )//????????\n\t\t\t{\n\t\t\t\tcout << \"7\" << endl;//????7\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"n\" << endl;//????n\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46120", "code": "void main()\n{\n\tint a,p=0,q=0,t=0;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t\tp=1;\n\tif(a%5==0)\n\t\tq=1;\n\tif(a%7==0)\n\t\tt=1;\n\tif(p==1 && q==1 && t==1)\n\t\tprintf(\"3 5 7\\n\");\n\tif(p==1 && q ==1 && t==0)\n\t\tprintf(\"3 5\\n\");\n\tif(p==1 && q==0 && t==1)\n\t\tprintf(\"3 7\\n\");\n\tif(p==1 && q==0 && t==0)\n\t printf(\"3\\n\");\n\tif(p==0 && q==1 && t==1)\n\t printf(\"5 7\\n\");\n\tif(p==0 && q==1 && t==0)\n printf(\"5\\n\");\n\tif(p==0 && q==0 && t==1)\n\t\tprintf(\"7\\n\");\n\tif(p==0 && q==0 && t==0)\n\t\tprintf(\"n\\n\");\n}"} +{"label": "93", "index": "46121", "code": "\nconst int a[3] = {3, 5, 7};\n\nint sum, b[10];\n\nint main() {\n int N;\n cin >> N;\n int sum = 0;\n for (int i = 0; i < 3; i++) {\n if (N % a[i] == 0) {\n sum ++;\n b[sum] = a[i];\n }\n }\n if (sum == 0) cout << \"n\" << endl; else {\n cout << b[1];\n for (int i = 2; i <= sum; i++) cout << \" \" << b[i];\n cout << endl;\n }\n return 0;\n}\n"} +{"label": "93", "index": "46122", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0)\n\t{printf(\"3\");\n\tif(n%5==0)\n\t\tprintf(\" 5\");\n\tif(n%7==0)\n\t\tprintf(\" 7\");\n\t}\n\telse if(n%5==0)\n\t{\n\t\tprintf(\"5\");\n\t\tif(n%7==0)\n\t\t\tprintf(\" 7\");\n\t}\n\telse if(n%7==0)\n\t\tprintf(\"7\");\n\telse printf(\"n\");\n printf(\"\\n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46123", "code": "\nvoid main()\n{\n\tint m, a,b,c,d,sum=0;\n\t\n\tscanf(\"%d\",&m);\n\tif (m%3==0)\n\t\ta=1;\n\telse a=0;\n\tif (m%5==0)\n\t\tb=1;\n\telse b=0;\n\tif (m%7==0)\n\t\tc=1;\n\telse c=0;\n\t\n\tsum=a+b+c;\n\t\n\tif (sum==3)\n\t\tprintf(\"3 5 7\\n\");\n\telse\n\t\tif (sum==2)\n\t\t{\n\t\t\tif (a==b)\n\t\t\t\tprintf(\"3 5\");\n\t\t\telse\n\t\t\t\tif (a==c)\n\t\t\t\t\tprintf(\"3 7\");\n\t\t\t\telse printf(\"5 7\");\n\t\t}\n\t\telse\n\t\t\tif (sum==1)\n\t\t\t{\n\t\t\t\td=a*3+b*5+c*7;\n\t\t\t\tprintf(\"%d\\n\",d);\n\t\t\t}\n\t\t\telse printf(\"n\\n\");\n\n}"} +{"label": "93", "index": "46124", "code": "int main() \n{\n\tint Number;\n\tcin>>Number;\n\tif(Number%3==0&&Number%5==0&&Number%7==0)\n\tcout<<3<<\" \"<<5<<\" \"<<7<> a;\n int b=3; \n int c=5;\n int d=7;\n if(a%b==0&&a%c==0&&a%d==0)cout << 3 << \" \" << 5 << \" \"<< 7 << endl;\n \n else if(a%b==0&&a%c==0)cout << 3 << \" \" << 5 << endl;\n \n else if(a%b==0&&a%d==0)cout << 3 << \" \" << 7 << endl;\n \n else if(a%c==0&&a%d==0)cout << 5 << \" \"<< 7 << endl;\n \n else if(a%b==0)cout << 3 << endl;\n \n else if(a%c==0)cout << 5 << endl;\n \n else if(a%d==0) cout << 7 << endl;\n else cout << \"n\" <> num; //??num\n\n\ta = num % 3; //????a\n\n\tb = num % 5; //????b\n\n\tc = num % 7; //????c\n\n\tif ( a && b && c ) //??a b c???????n\n\n\t\tcout << \"n\" << endl;\n\n\telse \n\n\t\tif ( a == 0 )\n\n\t\t\tif ( b == 0 )\n\n\t\t\t\tif ( c == 0 )\n\n\t\t\t\t\tcout << \"3 5 7\" << endl; //??a=b=c=0??3 5 7?\n\n\t\t\t\telse \n\n\t\t\t\t\tcout << \"3 5\" << endl; //??a=b=0?c??????3 5\n\n\t\t\telse\n\n\t\t\t\tif ( c == 0 ) //??c=0 ??3 7\n\n\t\t\t\t\tcout << \"3 7\" << endl;\n\n\t\t\t\telse //??b c???????3\n\n\t\t\t\t\tcout << \"3\" << endl;\n\n\t\telse \n\n\t\t\tif ( b == 0 ) \n\n\t\t\t\tif ( c == 0 )\n\t\t\t\t\t \n\t\t\t\t\tcout << \"5 7\" << endl; //??a????b=c=0???5 7 \n\n\t\t\t\telse \n\n\t\t\t\t\tcout << \"5\" << endl; //??a?c????b?????5\n\n\t\t\telse\n\n\t\t\t\tif ( c == 0 ) //??a?b???c??????7\n\n\t\t\t\t\tcout << \"7\" << endl;\n\t\n\treturn 0; //?????????????? \n}"} +{"label": "93", "index": "46129", "code": "int main()\n{\n\tint a,b,c,d;\n\tscanf(\"%d\",&a);\n\tb=a%3;\n\tc=a%5;\n d=a%7;\n if(b==0&c==0&d==0)\n\t{\n\t\tprintf(\"3 5 7\");\n\t}\n\t\telse if(b==0&c==0)\n\t\t{\n\t\t\tprintf(\"3 5\");\n\t\t}\n\t\telse if(c==0&d==0)\n\t\t{\n\t\t\tprintf(\"5 7\");\n\t\t}\n\t\telse if(b==0&d==0)\n\t\t{\n\t\t\tprintf(\"3 7\");\n\t\t}\n\t\telse if(b==0)\n\t\t{\n\t\t\tprintf(\"3\");\n\t\t}\n\t\telse if(c==0)\n\t\t{ \n\t\t\tprintf(\"5\");\n\t\t}\n\t\telse if(d==0)\n\t\t{\n\t\t\tprintf(\"7\");\n\t\t}\n else if(b!=0&c!=0&d!=0)\n\t\t\t{\n\t\t\t\tprintf(\"n\");\n\t\t\t}\n\t\t\treturn 0;\n}"} +{"label": "93", "index": "46130", "code": "int main()\n{int n;\n cin>>n;\n if((n%3==0)&&(n%5==0)&&(n%7==0))\n cout<<\"3 5 7\";\n else if((n%3==0)&&(n%5==0)&&(n%7!=0))\n cout<<\"3 5\";\n else if((n%3==0)&&(n%5!=0)&&(n%7==0))\n cout<<\"3 7\";\n else if((n%3!=0)&&(n%5==0)&&(n%7==0))\n cout<<\"5 7\";\n else if((n%3!=0)&&(n%5!=0)&&(n%7==0))\n cout<<\"7\";\n else if((n%3!=0)&&(n%5==0)&&(n%7!=0))\n cout<<\"5\";\n else if((n%3==0)&&(n%5!=0)&&(n%7!=0))\n cout<<\"3\";\n else if((n%3!=0)&&(n%5!=0)&&(n%7!=0))\n cout<<\"n\";\n return 0;\n}\n"} +{"label": "93", "index": "46131", "code": "int main()\n{\n\tint x,a,b,c;\n\tscanf(\"%d\",&x);\n\ta=x%3;\n\tb=x%5;\n\tc=x%7;\n\tif (a==0)\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif(c==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{ \n\t\t\t\tprintf(\"3 5\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(c==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"3\");\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t{\n\t\t\t\tprintf(\"5 7\");\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tprintf(\"5\");\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif (c==0)\n\t\t\t{\n\t\t\t\tprintf(\"7\");\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tprintf(\"n\");\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n\t\t\n}\n\n\n"} +{"label": "93", "index": "46132", "code": "\nint main()\n{\n int n,i=0,j=0;\n scanf(\"%d\",&n);\n if(n%3==0)\n {printf(\"3\");i=1;}\nif(n%5==0)\n {\n if(i==1)\n {\n printf(\" \");\n\n }\n printf(\"5\");\n j=1;\n }\nif(n%7==0)\n {\n if(j==1||i==1)\n {\n printf(\" \");\n }\n\n printf(\"7\");\n }\n else if(i==0&&j==0)\n {\n printf(\"n\") ;\n }\n\n \n return 0;\n}\n"} +{"label": "93", "index": "46133", "code": "int main()\n{ int a,ans[4],i,all;\n\tscanf(\"%d\",&a);\n\tfor(i=1;i<=3;i++)ans[i]=0;\n\tall=0;\n if((a%3)==0) ans[1]=3;\n\tif((a%5)==0) ans[2]=5;\n if((a%7)==0) ans[3]=7;\n for(i=1;i<=3;i++){\n\t\tif((ans[i]!=0)&&(all!=0)){printf(\" %d\",ans[i]);\n all++;\n\t\t}\n\t\tif((ans[i]!=0)&&(all==0)){printf(\"%d\",ans[i]);\n all++;\n\t\t}\n\n\n\t}\n if(all==0) printf(\"n\");\n return 0;\n}\n"} +{"label": "93", "index": "46134", "code": "int main()\n{\n\tint a,b,c,d;\n\tchar n;\n\tscanf(\"%d\",&a);\n\tb=a%3;\n\tc=a%5;\n\td=a%7;\n\tif (b==0&&c==0&&d==0)\n\t{printf(\"3 5 7\");\n\t}\n\telse\n\t{if (b==0&&c==0&&d!=0)\n\t {printf(\"3 5\");}\n\t else\n\t {if (b==0&&c!=0&&d==0)\n\t {printf(\"3 7\");}\n\t else\n\t {if (b!=0&&c==0&&d==0)\n\t {printf(\"5 7\");}\n\t else\n\t {if (b==0&&c!=0&&d!=0)\n\t {printf(\"3\");}\n\t else\n\t {if (b!=0&&c==0&&d!=0)\n\t {printf(\"5\");}\n\t else\n\t {if (b!=0&&c!=0&&d==0)\n\t {printf(\"7\");}\n\t else\n\t\t printf(\"n\");}}}}}}\n}"} +{"label": "93", "index": "46135", "code": "int main()\n{\n int n;\n int a,b,c;\n \n a=3;\n b=5;\n c=7;\n scanf(\"%d\",&n);\n if (n%a==0&&n%b==0&&n%c==0)\n printf(\"%d %d %d\",a,b,c);\n if (n%a==0&&n%b==0&&n%c!=0)\n printf(\"%d %d\",a,b);\n if (n%b==0&&n%c==0&&n%a!=0)\n printf(\"%d %d\",b,c);\n if (n%a==0&&n%c==0&&n%b!=0)\n printf(\"%d %d\",a,c);\n if(n%a==0&&n%b!=0&&n%c!=0)\n printf(\"%d\",a);\n if(n%a!=0&&n%b==0&&n%c!=0)\n printf(\"%d\",b);\n if(n%a!=0&&n%b!=0&&n%c==0)\n printf(\"%d\",c);\n if(n%a!=0&&n%b!=0&&n%c!=0)\n printf(\"n\");\n \n return 0;\n}\n \n"} +{"label": "93", "index": "46136", "code": "void main()\n{\n\tint x;\n\tscanf(\"%d\", &x);\n\tif (x%(3*5*7)==0) printf(\"%c%c%c%c%c\",'3',' ','5', ' ','7');\n\t\telse if (x%(3*5)==0) printf(\"%c%c%c\", '3',' ','5');\n\t\telse if (x%(5*7)==0) printf(\"%c%c%c\", '5',' ','7');\n\t\telse if (x%(3*7)==0) printf(\"%c%c%c\", '3',' ','7');\n\t\telse if (x%3==0) printf(\"%c\", '3');\n\t\telse if (x%5==0) printf(\"%c\", '5');\n\t\telse if (x%7==0) printf(\"%c\", '7');\n\t\telse printf(\"%c\", 'n');\n}\n\n"} +{"label": "93", "index": "46137", "code": "//\n// main.cpp\n// ??3 5 7????\n//\n// Created by Neptune on 12-10-2.\n// Copyright (c) 2012? ??? 1200012777. All rights reserved.\n//\n\nint main()\n{\n int A;\n cin >> A;\n if (A % 3 == 0 && A % 5 == 0 && A % 7 == 0)\n {\n cout << \"3 5 7\" << endl;\n }\n else if (A % 3 == 0 && A % 5 == 0 && A % 7 !=0)\n {\n cout << \"3 5\" << endl;\n }\n else if (A % 3 == 0 && A % 5 != 0 && A % 7 == 0)\n {\n cout << \"3 7\" << endl;\n }\n else if (A % 3 != 0 & A % 5 == 0 && A % 7 ==0)\n {\n cout << \"5 7\" << endl;\n }\n else if (A % 3 == 0)\n {\n cout << \"3\" << endl;\n }\n else if (A % 5 == 0)\n {\n cout << \"5\" << endl;\n }\n else if (A % 7 == 0)\n {\n cout << \"7\" << endl;\n }\n else\n {\n cout << \"n\" << endl;\n }\n return 0;\n}\n\n\n"} +{"label": "93", "index": "46138", "code": "\nint main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t{\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t\tprintf(\"%d %d %d\\n\",3,5,7);\n\t\t\telse\n\t\t\t\tprintf(\"%d %d\\n\",3,5);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t\tprintf(\"%d %d\\n\",3,7);\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",3);\n\t\t}\n\t}\n\telse\n\t{\n if(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t\tprintf(\"%d %d\\n\",5,7);\n\t\t\telse\n\t\t\t\tprintf(\"%d\\n\",5);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t\tprintf(\"%d\\n\",7);\n\t\t\telse\n\t\t\t\tprintf(\"n\\n\");\n\t\t}\n\t}\n}"} +{"label": "93", "index": "46139", "code": "int main()\n{\n\tint m,a[3]={0},i,j,p=0;\n\tscanf(\"%d\",&m);\n\tif(m%3==0)\n\t\ta[0]=3;\n\tif(m%5==0)\n\t\ta[1]=5;\n\tif(m%7==0)\n\t\ta[2]=7;\n\tfor(i=0;i<2;i++)\n\t{\n if(a[i]>0)\n\t\t{\n\t\tfor(j=i+1;j<3;j++)\n\t\t{if(a[j]>0)\n\t\tp=1;}\n\t\tif(p==1)\n printf(\"%d \",a[i]);\n\t\telse if(p==0)\n\t\t\tprintf(\"%d\",a[i]);}\n\t\tp=0;\n\t}\n\tif(a[2]>0)\n\t\tprintf(\"%d\",7);\n\tif(m%3!=0&&m%5!=0&&m%7!=0)\n\t\tprintf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46140", "code": "\nint main()\n{ \n\tint n;\n\tscanf(\"%d\",&n);\n if(n%3==0&&n%5==0&&n%7==0)\n cout<<\"3 5 7\"<> x;\n\n a = (x % 3 == 0);\n b = (x % 5 == 0);\n c = (x % 7 == 0);\n\n if (a + b + c == 3)\n\t cout << \"3 5 7\" << endl;\n else if (a + b + c == 2)\n { \n\t if (c == 0)\n\t\t cout << \"3 5\" << endl;\n\t else if (b == 0)\n\t\t cout << \"3 7\" << endl;\n\t else \n\t\t cout << \"5 7\" << endl;\n }\n else if (a + b + c == 1)\n {\n\t if (a == 1)\n\t\t cout << \"3\" << endl;\n\t else if (b == 1)\n\t\t cout << \"5\" << endl;\n\t else \n\t\t cout << \"7\" << endl;\n }\n else \n\t cout << \"n\" << endl;\n \n return 0;\n}\n\n\n\n"} +{"label": "93", "index": "46142", "code": "int main()\n{\nint a;\nint i=0;\nscanf(\"%d\",&a);\nif(a%3==0) \n i=i+3;\nif(a%5==0) \ni=i+5;\nif(a%7==0) \n i=i+7;\nswitch(i) {\ncase 0:\nprintf(\"n\");break;\ncase 3:\nprintf(\"3\");break;\ncase 5:\nprintf(\"5\");break;\ncase 7:\nprintf(\"7\");break;\ncase 8:\nprintf(\"3 5\");break;\ncase 10:\nprintf(\"3 7\");break;\ncase 12:\nprintf(\"5 7\");break;\ncase 15:\nprintf(\"3 5 7\");break;\n}\nreturn 0;\n}\n\n"} +{"label": "93", "index": "46143", "code": "void main()\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tif ((x%3==0) && (x%5==0) && (x%7==0))\n\t\tprintf(\"3 5 7\\n\");\n\tif ((x%3==0) && (x%5==0) && !(x%7==0))\n\t\tprintf(\"3 5\\n\");\n\tif ((x%3==0) && (x%7==0) && !(x%5==0))\n\t\tprintf(\"3 7\\n\");\n\tif ((x%5==0) && (x%7==0) && !(x%3==0))\n\t\tprintf(\"5 7\\n\");\n\tif ((x%3==0) && !(x%5==0) && !(x%7==0))\n\t\tprintf(\"3\\n\");\n\tif ((x%5==0) && !(x%3==0) && !(x%7==0))\n\t\tprintf(\"5\\n\");\n\tif ((x%7==0) && !(x%5==0) && !(x%3==0))\n\t\tprintf(\"7\\n\");\n\tif (!(x%3==0) && !(x%5==0) && !(x%7==0))\n\t\tprintf(\"n\\n\");\n}\n"} +{"label": "93", "index": "46144", "code": "//****************************\n//??3?5?7????\n//****************************\nint main()\n{\n int n,a,b,c,sum;\n cin>>n;\n if(n%3==0){a=1;}\n else {a=0;}\n if(n%5==0){b=2;}\n else {b=0;}\n if(n%7==0){c=5;}\n else {c=0;}//????n????3?5?7??\n sum=a+b+c;\n if(sum==0)cout<<\"n\";\n else if(sum==1)cout<<\"3\";\n else if(sum==2)cout<<\"5\";\n else if(sum==5)cout<<\"7\";\n else if(sum==3)cout<<\"3\"<<\" \"<<\"5\";\n else if(sum==6)cout<<\"3\"<<\" \"<<\"7\";\n else if(sum==7)cout<<\"5\"<<\" \"<<\"7\";\n else if(sum==8)cout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\";//?sum????n????????\n return 0;\n}"} +{"label": "93", "index": "46145", "code": "//**************************************\n// ??????3,5,7,???? *\n// ?????? *\n// ???????????3,5,7?? *\n// ?????2012.10 *\n//**************************************\nint main() //?????\n{\n\tint m,sum; \n\tcin>>m;\n\tsum=(m%3==0)+(m%5==0)+(m%7==0); \n\tif(sum==3)\n\t\tcout<<\"3 \"<<\"5 \"<<\"7\"<=1)\n\t\t\tprintf(\" \");}\n\t\t\n\t}}\n\n\treturn 0;\n}\n \n"} +{"label": "93", "index": "46147", "code": "main()\n{\n int x;\n scanf(\"%d\",&x);\n if(x%3==0&&x%5==0&&x%7==0) printf(\"3 5 7\");\n else{if(x%3==0&&x%5==0) printf(\"3 5\");if(x%3==0&&x%7==0) printf(\"3 7\");if(x%7==0&&x%5==0) printf(\"5 7\"); }\n if(x%3==0&&x%5&&x%7) printf(\"3\"); if(x%5==0&&x%3&&x%7) printf(\"5\");if(x%7==0&&x%5&&x%3) printf(\"7\");\n if(x%3&&x%5&&x%7) printf(\"n\");\n\n return 0;\n}\n"} +{"label": "93", "index": "46148", "code": "\nint main()\n{\n\tint a,f[3]={0,0,0};\n\tscanf(\"%d\",&a);\n\n\tif(a%3==0)\n\t{\n\t\tprintf(\"3\");\n\t\tf[0]=1;\n\t\tf[1]=1;\n\t}\n\tif(a%5==0)\n\t{\n\t\tif(f[1]==1)\n\t\t\tprintf(\" \");\n\t\tprintf(\"5\");\n\t\tf[0]=1;\n\t\tf[2]=1;\n\t}\n\tif(a%7==0)\n\t{\n\t\tif(f[1]==1||f[2]==1)\n\t\t\tprintf(\" \");\n\t\tprintf(\"7\");\n\t\tf[0]=1;\n\t}\n\tif(f[0]==0)\n\t\tprintf(\"n\");\n\n\treturn 0;\n}"} +{"label": "93", "index": "46149", "code": "int main()\n{\n int a;\n double b;\n char d;\n scanf(\"%d\",&a);\n if(a%3==0&&a%5==0&&a%7==0)\n {\n printf(\"3 5 7\\n\",b);\n }\n else if(a%3==0&&a%5==0)\n {\n printf(\"3 5\\n\",b);\n }\n else if(a%3==0&&a%7==0)\n {\n printf(\"3 7\\n\",b);\n }\n else if(a%5==0&&a%7==0)\n {\n printf(\"5 7\\n\",b);\n }\n else if(a%3==0)\n {\n printf(\"3\\n\",b);\n }\n else if(a%5==0)\n {\n printf(\"5\\n\",b);\n }\n else if(a%7==0)\n {\n printf(\"7\\n\",b);\n }\n else\n {\n printf(\"n\",d);\n }\n return 0;\n}"} +{"label": "93", "index": "46150", "code": "int main()\n{\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;\n\tif (a==0)\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"3 5 7\\n\");\n\t\t}\n\t}\n\tif (a==0)\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif (c!=0)\n\t\t\t\tprintf(\"3 5\\n\");\n\t\t}\n\t}\n\tif (a==0)\n\t{\n\t\tif (b!=0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"3 7\\n\");\n\t\t}\n\t}\n\tif (a!=0)\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"5 7\\n\");\n\t\t}\n\t}\n\tif (a==0)\n\t{\n\t\tif (b!=0)\n\t\t{\n\t\t\tif (c!=0)\n\t\t\t\tprintf(\"3\\n\");\n\t\t}\n\t}\n\tif (a!=0)\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif (c!=0)\n\t\t\t\tprintf(\"5\\n\");\n\t\t}\n\t}\n\tif (a!=0)\n\t{\n\t\tif (b!=0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"7\\n\");\n\t\t}\n\t}\n\tif (a!=0)\n\t{\n\t\tif (b!=0)\n\t\t{\n\t\t\tif (c!=0)\n\t\t\t\tprintf(\"n\\n\");\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "93", "index": "46151", "code": "int main()\n{\n\tint a;\n\tchar b;\n\tb='n';\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t{printf(\"%d %d %d\",3,5,7);}\n\telse if(a%3==0&&a%5==0&&a%7!=0)\n\t{printf(\"%d %d\",3,5);}\n\telse if(a%3==0&&a%5!=0&&a%7==0)\n\t{printf(\"%d %d\",3,7);}\n\telse if(a%3!=0&&a%5==0&&a%7==0)\n\t{printf(\"%d %d\",5,7);}\n\telse if(a%3==0&&a%5!=0&&a%7!=0)\n\t{printf(\"%d\",3);}\n\telse if(a%3!=0&&a%5==0&&a%7!=0)\n\t{printf(\"%d\",5);}\n\telse if(a%3!=0&&a%5!=0&&a%7==0)\n\t{printf(\"%d\",7);}\n\telse if(a%3!=0&&a%5!=0&&a%7!=0)\n\t{printf(\"%c\",b);}\n\treturn 0;\n}"} +{"label": "93", "index": "46152", "code": "int main(){\n\tint a,b=3,c=5,d=7,x,y,z;\n\tscanf(\"%d\",&a);\n\t x=a%3,y=a%5,z=a%7;\n\tif(x==0 && y==0 && z==0)\n\t\tprintf(\"%d %d %d\",b,c,d);\n\telse if(x==0 && y==0 && z!=0)\n\t\tprintf(\"%d %d\",b,c);\n\telse if(x==0 && y!=0 && z==0)\n\t\tprintf(\"%d %d\",b,d);\n\telse if(x!=0 && y==0 && z==0)\n\t\tprintf(\"%d %d\",c,d);\n\telse if(x==0 && y!=0 && z!=0)\n\t\tprintf(\"%d\",b);\n\telse if(x!=0 && y==0&& z!=0)\n\t\tprintf(\"%d\",c);\n\telse if(x!=0 && y!=0&& z==0)\n\t\tprintf(\"%d\",d);\n\telse\n\tprintf(\"n\");\n\treturn 0;\n\t}\n\n\t\n"} +{"label": "93", "index": "46153", "code": "/*************************\n ***??:??? 1200012776\n ***????:??3,5,7????\n ***??:2012?9?27?\n *************************/\nint main()\n{\n\tint t, a, b, c;\t//????t\n\tcin >> t;\n\ta = (t % 3 == 0), b = (t % 5 == 0), c = (t %7 == 0);\t//????t???3,5,7???a,b,c??,????????????\n\tif (a + b + c == 0)\t//??a+b+c????0\n\t{\n\t\tcout << \"n\" << endl;\t//???0??????????3,5,7??\n\t}\n\tif (a + b + c == 1)\t//??a+b+c????1,???,????????3,5,7??????\n\t{\n\t\tif (a == 1)\t//??a????1\n\t\t{\n\t\t\tcout << \"3\" << endl;\t//?????????3??,??3\n\t\t}\n\t\telse \n\t\t\tif (b == 1)\t//??b????1\n\t\t\t{\n\t\t\t\tcout << \"5\" << endl;\t//?????????5??,??5\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"7\" << endl;\t//?a,b????1??????7??,??7\n\t\t\t}\n\t}\n\tif (a + b + c == 2)\t//??a+b+c????2,???,???????3,5,7??????\n\t{\n\t\tif (a == 0)\t//??a????0\n\t\t{\n\t\t\tcout << \"5 7\" << endl;\t//????????5,7??,??5 7\n\t\t}\n\t\telse \n\t\t\tif (b == 0)\t//??b????0\n\t\t\t{\n\t\t\t\tcout << \"3 7\" << endl;\t//????????3,7??,??3 7\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"3 5\" << endl;\t//?a,b????0?????3,5??,??3 5\n\t\t\t}\n\t}\n\tif (a + b + c == 3)\t//??a+b+c????3,????????3,5,7??\n\t{\n\t\tcout << \"3 5 7\" <>b;\nfor(i=0;i<3;i++)\n{if(b%a[i]==0)\n{m=m+1;\nc[j]=a[i];j=j+1;}}\nif(m==0)\ncout<<\"n\";\nelse if(m==1)\ncout<0&&j!=10) printf(\" \"); if(j==10) printf(\" \");printf(\"7\");}\n\tif(a%3!=0&&a%5!=0&&a%7!=0) printf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46159", "code": "int main(){\n\tint a;//???a \n\tcin>>a;\n\tint num=0;//??a??3?5?7????? \n\tfor(int i=3;i<=7;i+=2){\n\t\tif(a%i==0){\n\t\t\tnum++;\n\t\t\tif(num!=1)cout<<\" \"<0){printf(\"3 5\");}\n\telse if(a%21==0&&a%5>0){printf(\"3 7\");}\n\telse if(a%35==0&&a%3>0){printf(\"5 7\");}\n\telse if(a%3==0&&a%5>0&&a%7>0){printf(\"3\");}\n\telse if(a%5==0&&a%3>0&&a%7>0){printf(\"5\");}\n\telse if(a%7==0&&a%5>0&&a%3>0){printf(\"7\");}\n\telse{printf(\"n\");}\n\n\t\treturn 0;\n}"} +{"label": "93", "index": "46161", "code": "//**************************\n//*?????3?5?7????**\n//*?????? 1200012888 **\n//*???2012.09.25**\n//**************************\nint main()\n{\n\tint N;\t\t\t\t\t\t\t\t\t\t\t//????N\n\tcin>>N;\t\t\t\t\t\t\t\t\t\t\t//????N\n\tif (N%3==0&&N%5==0&&N%7==0)\t\t\t\t\t\t\n\t{\n\t\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\"<>a;\n if (a%3==0)\n {\n if(a%5==0)\n {\n if(a%7==0)\n {\n cout <<\"3 5 7\" <>n;//??n \n\tif(n%3==0&&n%5==0&&n%7==0)//?3?5,7?? \n\t\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<7;\n\telse if(n%3==0&&n%5==0&&n%7)//?3?5?? \n\t\tcout<<\"3\"<<\" \"<<\"5\";\n\telse if(n%3==0&&n%5&&n%7==0)//?3?7??\n\t\tcout<<\"3\"<<\" \"<<\"7\";\n\telse if(n%3&&n%5==0&&n%7==0)//?5,7??\n\t\tcout<<\"5\"<<\" \"<<\"7\";\n\telse if(n%3==0&&n%5&&n%7)//?3??\n\t{ \n\t\tcout<<3; \n\t}\n\telse if(n%3&&n%5==0&&n%7)//?5??\n\t{\n\t\tcout<<5;\n\t}\n\telse if(n%3&&n%5&&n%7==0)//?7??\n\t{\n\t\tcout<<7;\n\t}\n\telse if(n%3&&n%5&&n%7)//??3?5,7??\n\t\tcout<<\"n\";\nreturn 0;\n} \n"} +{"label": "93", "index": "46166", "code": "void main()\n{\n\tint x,i=0;\n\tscanf(\"%d\",&x);\n\tif(x%3==0)\n\t{\n\t\ti=i+1;\n\t\tprintf(\"3\");\n\t}\n\tif(x%5==0)\n\t{\n\t\ti=i+1;\n\t\tif(i>=2)\n\t\t\tprintf(\" 5\");\n\t\telse\n\t\t\tprintf(\"5\");\n\t}\n\tif(x%7==0)\n\t{\n\t\ti=i+1;\n\t\tif(i>=2)\n\t\t\tprintf(\" 7\");\n\t\telse\n\t\t\tprintf(\"7\");\n\t}\n\tif(i==0)\n\t\tprintf(\"n\");\n}\n"} +{"label": "93", "index": "46167", "code": "int main()\n{\n int a,k=0,i=0,j=0;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t{\n\t\tk=1;\n\t\t\n\t}\n\tif(a%5==0)\n\t{\n\t\ti=1;\n\t\n\t}\n\tif(a%7==0)\n\t{\n\t\tj=1;\n\t\n\t}\n\tif(k==0&&i==0&&j==0)\n printf(\"n\");\n\tif(k==1)\n\tprintf(\"3\");\n\tif(i==1)\n\t{\n\t\tif(k==1)\n\t\tprintf(\" 5\");\n\t\telse printf(\"5\");\n\t}\n\tif(j==1)\n\t{\n\t\tif(i==1||k==1)\n\t\tprintf(\" 7\");\n\t\telse printf(\"7\");\n\t}\n\n\n \treturn 0;\n}"} +{"label": "93", "index": "46168", "code": "void main()\n{\n\tint a,b,c,u;\n\n\tscanf(\"%d\",&u);\n\ta=u%3;\n\tb=u%5;\n\tc=u%7;\n\n\tif (a>0) \n\t{\n\t\tif (b>0)\n\t\t\tif (c>0) printf(\"n\");\n\t\t\telse printf(\"7\");\n\t\telse \n\t\t\tif (c>0) printf(\"5\");\n\t\t\telse printf(\"5 7\");\n\t}\n\telse \n\t{\n\t\tif (b>0)\n\t\t\tif (c>0) printf(\"3\");\n\t\t\telse printf(\"3 7\");\n\t\telse \n\t\t\tif (c>0) printf(\"3 5\");\n\t\t\telse printf(\"3 5 7\");\n\t}\n\n}"} +{"label": "93", "index": "46169", "code": "int main()\n{\n int shu;//?????? \n cin>>shu;\n if (shu%3==0&&shu%5==0&&shu%7==0) cout<<\"3 5 7\";\n else \n {\n if (shu%3==0&&shu%5==0) cout<<\"3 5\";\n if (shu%5==0&&shu%7==0) cout<<\"5 7\";\n if (shu%3==0&&shu%7==0) cout<<\"3 7\";\n }\n if (shu%3==0&&shu%5!=0&&shu%7!=0) cout<<\"3\";\n if (shu%3!=0&&shu%5==0&&shu&7!=0) cout<<\"5\";\n if (shu%3!=0&&shu%5!=0&&shu%7==0) cout<<\"7\";\n if (shu%3!=0&&shu%5!=0&&shu%7!=0) cout<<\"n\";\n return 0;\n }"} +{"label": "93", "index": "46170", "code": "int main()\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tif(x%3==0 && x%5==0 && x%7==0)\n\t{\n\t\tprintf(\"3 5 7\");\n\t}\n\telse if(x%15==0)\n\t{\n\t\tprintf(\"3 5\");\n\t}\n\telse if(x%21==0)\n\t{\n\t\tprintf(\"3 7\");\n\t}\n\telse if(x%35==0)\n\t{\n\t\tprintf(\"5 7\");\n\t}\n\telse if(x%3==0)\n\t{\n\t\tprintf(\"3\");\n\t}\n\telse if(x%5==0)\n\t{\n\t\tprintf(\"5\");\n\t}\n\telse if(x%7==0)\n\t{\n\t\tprintf(\"7\");\n\t}\n\telse\n\t{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46171", "code": "//*************???????********************\n//*************?????????3,5,7??********\n//*************???1200062701******************\n//*************?????20120924****************\n\n\n\nint main() //???\n{ //?????\n\tint n, a = 0; //????n,a \n\tcin >> n; //??n\n\tif ((n % 3 != 0) && (n % 5 != 0) && (n % 7 != 0))\n\t\tcout << \"n\" << endl; //???????3,5,7?????n\n\telse //?????????\n\t{ //?????\n\t\tif (n % 3 ==0) //???????3???????????\n\t\t{ //?????\n\t\t\tcout << \"3\"; //??3 \n\t\t\ta = 1; //?a=1\n\t\t} //?????\n\t if (n % 5 ==0) //???????5???????????\n\t\t{ //?????\n\t\t\tif (a == 1) cout << \" \"; //??a=1,?????\n\t\t\tcout << \"5\"; //??5\n\t\t\ta = 1; //??a=1\n\t\t} //?????\n\t if (n % 7 ==0) //???????7???????????\n\t\t{ //?????\n\t\t\tif (a == 1) cout << \" \"; //??a=1??????\n\t\t\tcout << \"7\"; //??7\n\t\t} //?????\n\t} //?????\n\t return 0;\n} //?????\n"} +{"label": "93", "index": "46172", "code": "int main()\n{\n\tint n;//??????\n\tcin>>n;\n\tint a,b,c;\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;//??n??3?5?7???\n\tif(a==0&&b==0&&c==0)\n\t\tcout<<\"3 5 7\";\n\tif(a==0&&b==0&&c!=0)\n\t\tcout<<\"3 5\";\n\tif(a==0&&b!=0&&c==0)\n\t\tcout<<\"3 7\";\n\tif(a==0&&b!=0&&c!=0)\n\t\tcout<<\"3\";\n\tif(a!=0&&b==0&&c==0)\n\t\tcout<<\"5 7\";\n if(a!=0&&b==0&&c!=0)\n\t\tcout<<\"5\";\n\tif(a!=0&&b!=0&&c==0)\n\t\tcout<<\"7\";\n\tif(a!=0&&b!=0&&c!=0)\n\t\tcout<<\"n\";\n\tgetchar();\n\tgetchar();\n\treturn 0;\n}"} +{"label": "93", "index": "46173", "code": "void main()\n{\n\tint a,b=3,c=5,d=7;\n\tchar e='n';\n\tscanf(\"%d\",&a);\n\tif(a%b==0 && a%c==0 && a%d==0)\n\t\tprintf(\"%d %d %d\",b,c,d);\n\tif(a%b==0 && a%c==0 && a%d!=0)\n\t\tprintf(\"%d %d\",b,c);\n\tif(a%b==0 && a%c!=0 && a%d==0)\n\t\tprintf(\"%d %d\",b,d);\n\tif(a%b!=0 && a%c==0 && a%d==0)\n\t\tprintf(\"%d %d\",c,d);\n\tif(a%b!=0 && a%c!=0 && a%d==0)\n\t\tprintf(\"%d\",d);\n\tif(a%b!=0 && a%c==0 && a%d!=0)\n\t\tprintf(\"%d\",c);\n\tif(a%b==0 && a%c!=0 && a%d!=0)\n\t\tprintf(\"%d\",b);\n\tif(a%b!=0 && a%c!=0 && a%d!=0)\n\t\tprintf(\"%c\",e);\n}\n"} +{"label": "93", "index": "46174", "code": "/**\n *@file 5.cpp\n *@author ??? \n *@date 2012-09-29\n *@description \n * ?3,5,7???? \n */\nint main()\n{\n int n; //?????? \n cin>>n; //???? \n if (n%3==0) //?????3?? \n {\n if(n%5==0) //???????5?? \n { \n if(n%7==0) //???????7?? \n cout<<\"3 5 7\"; //???? \n else \n cout<<\"3 5\"; //???7??????? \n }\n else //???5?? \n {\n if(n%7==0) //???5?????7?? \n cout<<\"3 7\"; \n else \n cout<<\"3\"; //???5,7?? \n } \n } \n else \n if (n%5==0) //??3?????5?? \n {\n if (n%7==0) //????5,7?? \n cout<<\"5 7\";\n else //???7?? \n cout<<\"5\"; \n } \n else //???3,5?? \n if (n%7==0) //??7?? \n cout<<\"7\";\n else //???3,5,7?? \n if (n%3&&n%5&&n%7) \n cout<<\"n\";\n return(0);\n} "} +{"label": "93", "index": "46175", "code": "//*************************************************\n//??????3?5?7???? *\n//?????? *\n//??9?28? *\n//************************************************* \nint main()\n{ \n //????s?????? \n int s;\n cin >> s;\n //???????3?5?7?????????? \n if((s % 3 == 0) + (s % 5 == 0) + (s % 7 == 0) == 3)\n cout << \"3 5 7\";\n if((s % 3 == 0) + (s % 5 == 0) + (s % 7 == 0) == 2)\n {\n if(s % 3 != 0)\n cout << \"5 7\";\n if(s % 5 != 0)\n cout << \"3 7\";\n if(s % 7 != 0)\n cout << \"3 5\";\n }\n if((s % 3 == 0) + (s % 5 == 0) + (s % 7 == 0) == 1) \n {\n if(s % 3 == 0)\n cout << \"3\"; \n if(s % 5 == 0)\n cout << \"5\";\n if(s % 7 == 0)\n cout << \"7\";\n } \n if((s % 3 == 0) + (s % 5 == 0) + (s % 7 == 0) == 0)\n cout <<\"n\"; \n return 0;\n}\n\n"} +{"label": "93", "index": "46176", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int r3 = 0, r5 = 0, r7 = 0;\n if (n%3!=0) r3 = 1;\n if (n%5!=0) r5 = 1;\n if (n%7!=0) r7 = 1;\n int temp = r3*4 + r5*2 +r7; \n switch (temp)\n {\n case 7 :\n printf(\"n\\n\");\n break;\n case 1 :\n printf(\"3 5\\n\");\n break;\n case 2 :\n printf(\"3 7\\n\");\n break;\n case 4 :\n printf(\"5 7\\n\");\n break;\n case 6 :\n printf(\"7\\n\");\n break;\n case 5 :\n printf(\"5\\n\");\n break;\n case 3 :\n printf(\"3\\n\");\n break;\n case 0 : \n printf(\"3 5 7\\n\");\n break; \n } \n getchar();\n getchar(); \n return 0;\n}\n"} +{"label": "93", "index": "46177", "code": "int main()\n{\n int x;\n cin >>x;\n if (x%3>0&&x%7>0&&x%5>0) cout <<\"n\";\n else \n if (x%105==0) cout <<\"3 5 7\"; \n else if (x%15==0) cout <<\"3 5\"; \n else if (x%21==0) cout <<\"3 7\";\n else if (x%35==0) cout <<\"5 7\" ; \n else {\n if (x%3==0) cout <<\"3\";\n if (x%5==0) cout <<\"5\";\n if (x%7==0) cout <<\"7\";\n } \n return 0;\n}\n"} +{"label": "93", "index": "46178", "code": "void main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif (a%3==0) printf(\"3\");\n\tif ((a%5==0)&&(a%3==0)) printf(\" 5\");else if (a%5==0) printf(\"5\");\n\tif ((a%7==0)&&((a%5==0)||(a%3==0))) printf(\" 7\");else if (a%7==0) printf(\"7\");\n\tif (!((a%3==0)||(a%5==0)||(a%7==0)))\n\t\tprintf(\"n\");\n}\n"} +{"label": "93", "index": "46179", "code": "\nint main()\n{\n\tint n;\n\tcin>>n;\n\tif(n%3==0&&n%5==0&&n%7==0)cout<<\"3 5 7\"<>num; // ????????\n int sum = 0; // ??????\n\n if (num % 3 == 0)\n {\n cout<<\"3\";\n sum++;\n }\n if (num % 5 == 0)\n {\n if (sum)\n cout<<\" \";\n cout<<\"5\";\n sum++;\n }\n if (num % 7 == 0)\n {\n if (sum)\n cout<<\" \";\n cout<<\"7\";\n sum++;\n }\n if (!sum)\n cout<<\"n\";\n\n return 0;\n}\n"} +{"label": "93", "index": "46182", "code": "int main()\n{\n\tint num=0;\n\tint n;\t\n\tcin>>n;\n\tfor(int i=3;i<=7;i=i+2) //???????? \n{\n\t\tif (n%i==0)\n{num++; //??????????? \n\tif (num==1)\n\tcout<> a;\n for (int i = 3; i <= 7; i += 2)\n {\n if (a % i == 0)\n {\n n[k] = i;\n k += 1;\n }\n}\n switch (k)\n {\n case 0: cout << \"n\"; break;\n case 1: cout << n[0]; break;\n case 2: cout << n[0] << \" \" << n[1]; break;\n default: cout << n[0] << \" \" << n[1] << \" \" << n[2]; break;\n }\n return 0;\n}\n"} +{"label": "93", "index": "46185", "code": "void main()\n{int m,n=0,k=0;\n scanf(\"%d\",&m);\n if(m%3==0)\n {printf(\"3\");n++;}\n if(m%5==0)\n {if(n!=0)printf(\" \");printf(\"5\");n++;k++;}\n if(m%7==0)\n {if(n!=0||k!=0)printf(\" \");printf(\"7\");n++;}\n if(n==0)\n printf(\"n\"); \n}"} +{"label": "93", "index": "46186", "code": "\nint main(int argc, char *argv[])\n{\n int n,m=0;\n scanf(\"%d\",&n);\n if(n%7==0)\n m++;\n if(n%5==0)\n m+=10;\n if(n%3==0)\n m+=100;\n switch(m)\n {\n case 111: printf(\"3 5 7\");break;\n case 11: printf(\"5 7\");break;\n case 101: printf(\"3 7\");break;\n case 110: printf(\"3 5\");break;\n case 100: printf(\"3\");break;\n case 10: printf(\"5\");break;\n case 1: printf(\"7\");break;\n case 0: printf(\"n\");\n }\n\n return 0;\n}\n"} +{"label": "93", "index": "46187", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%105==0)\n\t\tprintf(\"3 5 7\");\n\telse if(a%15==0&&a%7!=0)\n\t\tprintf(\"3 5\");\n else if(a%35==0&&a%3!=0)\n\t\tprintf(\"5 7\");\n else if(a%21==0&&a%5!=0)\n\t\tprintf(\"3 7\");\n else if(a%3==0)\n\t\tprintf(\"3\");\n else if(a%5==0)\n\t\tprintf(\"5\");\n else if(a%7==0)\n\t\tprintf(\"7\");\n else\t\t\n printf(\"n\");\n\treturn 0; \n}"} +{"label": "93", "index": "46188", "code": "int main()\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tif(x%3==0){\n\t\tprintf(\"3\");\n\t}\n\tif(x%5==0){\n\t\tif(x%3==0){\n\t\t\tprintf(\" 5\");\n\t\t}else {\n\t\t\tprintf(\"5\");\n\t\t}\n\t}\n\tif(x%7==0){\n\t\tif(x%5==0||x%3==0){\n\t\t\tprintf(\" 7\");\n\t\t}else {\n\t\t\tprintf(\"7\");\n\t\t}\n\t}\n\tif(x%3!=0&&x%5!=0&&x%7!=0){\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46189", "code": "int main()\n{\n\tint x;\n\t\tscanf(\"%d\",&x);\n\t\tif(x%3==0&&x%5==0&&x%7==0)\n\t\t{\n\t\t\tprintf(\"3 5 7\");\n\t\t}\n\t\telse if(x%3==0&&x%5==0)\n\t\t{\n\t\t\tprintf(\"3 5\");\n\t\t}\n\t\telse if(x%5==0&&x%7==0)\n\t\t{\n\t\t\tprintf(\"5 7\");\n\t\t}\n\t\telse if(x%3==0&&x%7==0)\n\t\t{\n\t\t\tprintf(\"3 7\");\n\t\t}\n\t\telse if(x%3==0)\n\t\t{\n\t\t\tprintf(\"3\");\n\t\t}\n\t\telse if(x%5==0)\n\t\t{\n\t\t\tprintf(\"5\");\n\t\t}\n\t\telse if(x%7==0)\n\t\t{\n\t\t\tprintf(\"7\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"n\");\n\t\t}\n\t\treturn 0;\n}\n"} +{"label": "93", "index": "46190", "code": "//*********************************************************\n//* ? ??3.cpp *\n//* ? ??? ? 1200012916 *\n//* ? ??2012?9?29? *\n//* ? ??????3?5?7???? *\n//*********************************************************\n \nint main() //???\n{ //?????\n\tint a, a1, a2, a3; //?????????\n\tcin >> a; //??????\n\ta1 = a % 3; //??????3??\n\ta2 = a % 5; //??????5??\n\ta3 = a % 7; //??????7??\n\t\n\t{ //??????\n\t\t\n\t\tif (a1 == 0) //?????3??\n\t\t{ \n\t\t\tif (a2 == 0) //??3????????5??\n\t\t\t{ \n\t\t\t\tif (a3 == 0) //??5????????7??\n\t\t\t\t\tcout << \"3 5 7\" <> n;\n\tif (n % 3 == 0 && n % 5 == 0 && n % 7 == 0)\n\t\tcout << \"3 5 7\" << endl;\n\telse if (n % 3 != 0 && n % 5 == 0 && n % 7 == 0)\n\t\tcout << \"5 7\" << endl;\n\telse if (n % 3 == 0 && n % 5 != 0 && n % 7 == 0)\n\t\tcout << \"3 7\" << endl;\n\telse if (n % 3 == 0 && n % 5 == 0 && n % 7 != 0)\n\t\tcout << \"3 5\" << endl;\n\telse if (n % 3 == 0)\n\t\tcout << \"3\" <>a;\nif(a%3==0)\n{if(a%5==0)\n{if(a%7==0)\n{\ncout<<\"3 5 7\";\n}\nelse\n{\ncout<<\"3 5\";\n}\n}\nelse\n{\nif(a%7==0)\n{\ncout<<\"3 7\";\n}\nelse\n{\ncout<<\"3\";\n}\n}\n}\nelse\n{if(a%5==0)\n{if(a%7==0)\n{\ncout<<\"5 7\";\n}\nelse\n{\ncout<<\"5\";\n}\n}\nelse\n{\nif(a%7==0)\n{\ncout<<\"7\";\n}\nelse\n{\ncout<<\"n\";\n}\n}\n}\nreturn 0;\n}\n\n"} +{"label": "93", "index": "46196", "code": "int main()\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tint a,b,c;\n\ta=x%3;\n\tb=x%5;\n\tc=x%7;\n\tif(a==0&&b==0&&c==0)\n\t\tprintf(\"3 5 7\");\n\telse\n\t{\n\tx=x;\n\t}\n\tif(a!=0&&b==0&&c==0)\n\t\tprintf(\"5 7\");\n\telse\n {\n\tx=x;\n\t}\n\tif(a==0&&b!=0&&c==0)\n\t\tprintf(\"3 7\");\n\telse\n\t{\n\tx=x;\n }\n\tif(a==0&&b==0&&c!=0)\n\t\tprintf(\"3 5\");\n\telse\n {\n\tx=x;\n\t}\n\tif(a!=0&&b!=0&&c==0)\n\t\tprintf(\"7\");\n\telse\n\t{\n\tx=x;\n\t}\n\tif(a!=0&&b==0&&c!=0)\n\t\tprintf(\"5\");\n\telse\n\t{\n\tx=x;\n\t}\n\tif(a==0&&b!=0&&c!=0)\n\t\tprintf(\"3\");\n\telse\n\t{\n\tx=x;\n\t}\n\tif(a!=0&&b!=0&&c!=0)\n\t\tprintf(\"n\");\n\telse\n\t{\n\tx=x;\n\t}\n return 0;\n}"} +{"label": "93", "index": "46197", "code": "int main()\n{\n int a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0 && a%5==0 && a%7==0){\n\t\tprintf(\"3 5 7\");\n\t}\n\telse if(a%3!=0 && a%5!=0 && a%7!=0){\n\t\tprintf(\"n\");\n\t}\n\telse if(a%3==0 && a%5==0 && a%7!=0){\n\t\tprintf(\"3 5\");\n\t}\n\telse if(a%3==0 && a%7==0 && a%5!=0){\n\t\tprintf(\"3 7\");\n\t}\n\telse if(a%5==0 && a%7==0 && a%3!=0){\n\t\tprintf(\"5 7\");\n\t}\n\telse if(a%3==0){\n\t\tprintf(\"3\");\n\t}\n\telse if(a%5==0){\n\t\tprintf(\"5\");\n\t}\n\telse{\n\t\tprintf(\"7\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46198", "code": "//\n// main.cpp\n// hw\n//\n// Created by ? ? on 12-12-16.\n// Copyright (c) 2012? ? ?. All rights reserved.\n//\n\n\nint main(int argc, const char * argv[])\n{\n int x,a[3]={3,5,7};\n cin>>x;\n int k;\n for (k=0; k<3; k++) {\n if (x%a[k]==0) {\n cout<> n;//????\n\n\tif ( n % a == 0 && n % b == 0 && n % c == 0 )\n\n\t\tcout << a << d << b << d << c << endl;//??????\n\n\tif ( n % a == 0 && n % b == 0 && n % c != 0 )\n\n\t\tcout << a << d << b << endl;//??????\n\n\tif ( n % a == 0 && n % b != 0 && n % c == 0 )\n\n\t\tcout << a << d << c << endl;//??????\n\n if ( n % a != 0 && n % b == 0 && n % c == 0 )\n\n\t\tcout << b << d << c << endl;//??????\n\n\t if ( n % a != 0 && n % b != 0 && n % c == 0 )\n\n\t\t cout << c << endl;//??????\n\n\t if ( n % a != 0 && n % b == 0 && n % c != 0 )\n\n\t\t cout << b << endl;//??????\n\n\t if ( n % a == 0 && n % b != 0 && n % c != 0 )\n\n\t\t cout << a << endl;//??????\n\n if ( n % a != 0 && n % b != 0 && n % c != 0 )\n\n\t\tcout << \"n\" << endl;//??n\n\t\n\treturn 0 ;\n\t\n}\n"} +{"label": "93", "index": "46200", "code": "int main()\n{\n int x;\n\tscanf(\"%d\",&x);\n\tif(x%3==0&&x%5==0&&x%7==0)\n\t{\n\t printf(\"3 5 7\");\n\t}else if(x%3==0)\n\t{\n\t if(x%5==0)\n\t\tprintf(\"3 5\");\n\t\telse if(x%7==0)\n\t\tprintf(\"3 7\");\n\t\telse\n\t\tprintf(\"3\");\n\t}else if(x%5==0)\n\t{\n\t if(x%7==0)\n\t\tprintf(\"5 7\");\n\t\telse\n\t\tprintf(\"5\");\n\t}else if(x%7==0)\n\t{\n\t printf(\"7\");\n\t}else\n\t printf(\"n\");\n\treturn 0;\n\t}"} +{"label": "93", "index": "46201", "code": "int main()\n{int a,b,c,d;\nscanf(\"%d\",&d);\na=d%3;\nb=d%5;\nc=d%7;\nif (!a)\n{ if (!b) \n{ if (!c)\n printf(\"3 5 7\");\n else\n\t\t printf(\"3 5\");}\n else\n { if (!c)\n printf (\"3 7\");\n else \n\t printf(\"3\");}} \nelse\n{ if (!b) \n { if (!c)\n printf(\"5 7\");\n else \n\t\t printf(\"5\");}\n else\n { if (!c) \n printf(\"7\");\n else\n\t\t printf(\"n\");}}\nreturn 0;\n}"} +{"label": "93", "index": "46202", "code": "void main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0&&(n%5==0||n%7==0)) printf(\"3 \");\n\tif(n%3==0&&(n%5!=0&&n%7!=0)) printf(\"3\");\n\tif(n%5==0&&n%7==0) printf(\"5 \");\n\tif(n%5==0&&n%7!=0) printf(\"5\");\n\tif(n%7==0) printf(\"7\");\n\tif(n%3!=0&&(n%5!=0&&n%7!=0)) printf(\"n\");\n}\n\t"} +{"label": "93", "index": "46203", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n if (n%(3*5*7)==0) printf(\"3 5 7\\n\");\n else if (n%(3*5)==0) printf(\"3 5\\n\");\n else if (n%(3*7)==0) printf(\"3 7\\n\");\n else if (n%(5*7)==0) printf(\"5 7\\n\");\n else if (n%3==0) printf(\"3\\n\");\n else if (n%5==0) printf(\"5\\n\");\n else if (n%7==0) printf(\"7\\n\");\n else printf(\"n\\n\");\n return 0; \n}"} +{"label": "93", "index": "46204", "code": "int main()\n{\n int a,k,m,n;\n\tscanf(\"%d\",&a);\n\tk=0;\n\tm=0;\n\tn=0;\n\tif ((a%3)==0) k=1;\n if ((a%5)==0) m=1;\n\tif ((a%7)==0) n=1;\n\tif ((k+m+n)==3) printf(\"3 5 7\\n\");\n\tif ((k+m+n)==2)\n\t{\n\tif ((k==1)&&(m==1)) printf(\"3 5\\n\");\n\tif ((k==1)&&(n==1)) printf(\"3 7\\n\");\n\tif ((m==1)&&(n==1)) printf(\"5 7\\n\");\n\t}\n\tif ((k+m+n)==1) \n\t{\n\t\tif (k==1) printf(\"3\\n\");\n\t\tif (m==1) printf(\"5\\n\");\n\t\tif (n==1) printf(\"7\\n\");\n\t}\n\tif ((k+m+n)==0) printf(\"n\\n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46205", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n if(n%3==0)\n {printf(\"3\");if(n%5==0){printf(\" 5\");}if(n%7==0){printf(\" 7\");}}\n else if(n%5==0)\n {printf(\"5\");if(n%7==0){printf(\" 7\");}}\n else if(n%7==0){printf(\"7\");}\n else {printf(\"n\");} \n getchar();\n getchar();\n return 0;\n}\n"} +{"label": "93", "index": "46206", "code": "\nint main(){\n\tint a,b=3,c=5,d=7;\n\t\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t\tprintf(\"%d %d %d\",b,c,d);\n\telse{\n\t\tif(a%3==0&&a%5==0)\n\t\t\tprintf(\"%d %d\",b,c);\n\t\telse{\n\t\t\tif(a%3==0&&a%7==0)\n\t\t\t\tprintf(\"%d %d\",b,d);\n\t\t\telse{\n\t\t\t\tif(a%5==0&&a%7==0)\n\t\t\t\t\tprintf(\"%d %d\",c,d);\n\t\t\t\telse{\n\t\t\t\t\tif(a%3==0)\n\n\t\t\t printf(\"%d\",b);\n\t\t\t\t\telse{\n\t\t\t\t\t\tif(a%5==0)\n\t\t\t\t\t\t\tprintf(\"%d\",c);\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif(a%7==0)\n\t\t\t\t\t\t\t\tprintf(\"%d\",d);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tprintf(\"n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\n\treturn 0;\n}\n\n\t"} +{"label": "93", "index": "46207", "code": "int main()\n{\n\tint a;\n cin >> a;\n\tif (a%3==0)\n\t\tcout << 3;\n\tif (a%3==0 && a%5==0)\n\t\tcout << \" \";\n\tif (a%5==0)\n\t\tcout << 5;\n\tif ((a%5==0 || a%3==0) && (a%7==0))\n\t\tcout << \" \";\n\tif (a%7==0)\n\t\tcout << 7;\n\tif (a%3!=0 && a%5!=0 && a%7!=0)\n\t\tcout << \"n\";\n\treturn 0;\n}"} +{"label": "93", "index": "46208", "code": "/*************************************************************************************************************\n* @file .cpp\n* @author ????\n* @date \n* @description\n* \n*/\n\n\nint main()\n{ \n\tint a, k = 0;\n\tcin >> a;\n if (a % 3 ==0 && a % 5 ==0 && a % 7 ==0 )\n {\n\t\tcout << \"3 5 7\";\n\t\tk+=1;\n\t}\n if (a % 3 !=0 && a % 5 ==0 && a % 7 ==0 )\n {\n\t\tcout << \"5 7\";\n\t\tk+=1;\n\t} if (a % 3 ==0 && a % 5 !=0 && a % 7 ==0 )\n {\n\t\tcout << \"3 7\";\n\t\tk+=1;\n\t} if (a % 3 ==0 && a % 5 ==0 && a % 7 !=0 )\n {\n\t\tcout << \"3 5\";\n\t\tk+=1;\n\t} if (a % 3 !=0 && a % 5 !=0 && a % 7 ==0 )\n {\n\t\tcout << \"7\";\n\t\tk+=1;\n\t} if (a % 3 ==0 && a % 5 !=0 && a % 7 !=0 )\n {\n\t\tcout << \"3\";\n\t\tk+=1;\n\t} if (a % 3 !=0 && a % 5 ==0 && a % 7 !=0 )\n {\n\t\tcout << \"5\";\n\t\tk+=1;\n\t}\n\tif (k==0)\n\t\tcout <<\"n\";\nreturn 0;\n}"} +{"label": "93", "index": "46209", "code": "void main()\n{\n\tint n,i=0;\n\tscanf(\"%d\",&n);\n\tif(n%3==0)\n\t{\n\t\tprintf(\"3\");\n\t\ti++;\n\t}\n\tif(n%5==0)\n\t{\n\t\tif(i>=1) putchar(' ');\n\t\tprintf(\"5\");\n\t\ti++;\n\t}\n\tif(n%7==0)\n\t{\n\t\tif(i>=1) putchar(' ');\n\t\tprintf(\"7\");\n\t\ti++;\n\t}\n\tif(i==0)\n\t\tputchar('n');\n\tgetchar();\n\tgetchar();\n\tgetchar();\n\tgetchar();\n}"} +{"label": "93", "index": "46210", "code": "\nint main(int argc, char* argv[])\n{\n\tint a,i=0,j,b[3];\n\tscanf(\"%d\",&a);\n\tif (a%3==0)\n\t{\n\t\tb[i]=3;\n\t\ti++;\n\t}\n\tif (a%5==0)\n\t{\n\t\tb[i]=5;\n\t\ti++;\n\t}\n\tif (a%7==0)\n\t{\n\t\tb[i]=7;\n\t\ti++;\n\t}\n\tif (a%3!=0&&a%5!=0&&a%7!=0)\n\t{\n\t\tprintf(\"n\");\n\t}\n\tfor (j=0;j>k;//????k\nif(k%3==0&&k%5==0&&k%7==0)//?????????\n\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\";\nelse if(k%3==0&&k%5!=0&&k%7!=0)\n\tcout<<\"3\";\nelse if(k%3!=0&&k%5==0&&k%7!=0)\n\tcout<<\"5\";\nelse if(k%3!=0&&k%5!=0&&k%7==0)\n\tcout<<\"7\";\nelse if(k%3!=0&&k%5!=0&&k%7!=0)\n\tcout<<\"n\";\n\nelse if(k%3==0)\n{\n\tif(k%5==0)\n\t\tcout<<\"3\"<<\" \"<<\"5\";\n\telse cout<<\"3\"<<\" \"<<\"7\";\n}\nelse cout<<\"5\"<<\" \"<<\"7\";\nreturn 0;//??????\n}\n"} +{"label": "93", "index": "46212", "code": "int main(){\n int n,a[3]={0,0,0},yinshu,sum=0;\n char b[3]={'3','5','7'};\n cin>>n; //?????? \n if (n%3==0) a[0]=1; //??n????3 \n if (n%5==0) a[1]=1; //??n????5 \n if (n%7==0) a[2]=1; //??n????7 \n yinshu=a[0]+a[1]+a[2];\n if (yinshu==0) cout<<'n'; //?????n \n else\n {\n for (int i=0;i<3;i++)\n {\n if((a[i]!=0)&&(sum==yinshu-1))\n {\n cout<>a;\n\tif(a%105==0)\n\t\tcout<<\"3 5 7\";\n\telse if(a%15==0)\n\t\tcout<<\"3 5\";\n\telse if(a%21==0)\n\t\tcout<<\"3 7\";\n\telse if(a%35==0)\n\t\tcout<<\"5 7\";\n\telse if(a%3==0)\n\t\tcout<<3;\n\telse if(a%5==0)\n\t\tcout<<5;\n\telse if(a%7==0)\n\t\tcout<<7;\n\telse\n\t\tcout<<'n';\n\treturn 0;\n}"} +{"label": "93", "index": "46217", "code": "int main()\n{\n\tint num, k = 0;\n\tcin >> num;\n\tif(num % 3 == 0)\n\t\tcout << \"3\";\n\telse\n\t\tk++;\n\tif(num % 5 == 0)\n\t{\n\t\tif(k == 1)\n\t\t\tcout << \"5\";\n\t\telse\n\t\t\tcout << \" 5\";\n\t}\n\telse\n\t\tk++;\n\tif(num % 7 == 0)\n\t{\n\t\tif(k == 2)\n\t\t\tcout << \"7\";\n\t\telse\n\t\t\tcout << \" 7\";\n\t}\n\telse\n\t\tk++;\n\tif(k == 3)\n\t\tcout << \"n\" << endl;\n\telse \n\t\tcout << \"\\n\";\n\treturn 0;\n}"} +{"label": "93", "index": "46218", "code": "//**************************** \n//*?????3?5?7???? *\n//*????? 1200012708 *\n//*???2012?9?25? *\n//****************************\n\nint main() // ??? \n{\n int n, flag = 0; // ??n, flag??????? \n //cout << \"????????\"; // ???? \n cin >> n; // ?? \n if (n % 3 == 0) // ???????? \n {\n printf(\"3\");\n flag = 1; // ??flag????????? \n }\n if (n % 5 == 0) // ???????? \n {\n printf(\"%s\",flag == 1 ? \" 5\" : \"5\");\n flag = 1; // ??flag?????????? \n }\n if (n % 7 == 0) // ???????? \n { \n printf(\"%s\",flag == 1 ? \" 7\" : \"7\");\n flag = 1; // ??flag?????????? \n } \n if (flag == 0) // ????357?????n \n cout << \"n\"; \n return 0;\n}\n"} +{"label": "93", "index": "46219", "code": "/*\n??? 5.cpp\n?? ???1300017667\n?? 3013.9.27\n?? ?????????3,5,7??\n*/\nint main()//???\n{\n\tint x,i;//????x???i\n\tcin >> x;//??x\n\tswitch((x % 3 == 0) + (x % 5 == 0) + (x % 7 == 0))//??switch????x??3,5,7????????\n\t{\n\tcase 3:cout << \"3 5 7\";break;//????????,??3,5,7\n\tcase 2:if((x % 3 == 0 && x % 5 == 0))//????????,?????????\n\t{\n\t\tcout << \"3 5\";\n\t}\n\tif((x % 3 == 0 && x % 7 == 0))\n\t{\n\t\tcout << \"3 7\";\n\t}\n\tif((x % 7 == 0 && x % 5 == 0))\n\t{\n\t\tcout << \"5 7\";\n\t};break;\n\tcase 1:for(i = 3; i <= 7; i = i + 2)//?????????,????????\n\t{\n\t\tif(x % i == 0)\n\t\t{\n\t\t\tcout << i;\n\t\t}\n\t};break;\n\tdefault:cout << \"n\";break;//????????????????,???n\n\t}\n\treturn 0;//??\n}\n\n"} +{"label": "93", "index": "46220", "code": "int main()\n{\n\tint a=0;\n\tcin>>a;\n\tint b=0,c=0,d=0;//b?c?d???a??3?5?7???\n\tb=a%3;\n\tc=a%5;\n\td=a%7;\n\tif(b==0&&c==0&&d==0)\n\t\tcout<<\"3 5 7\"<>a;\n while (i<=7)\n {\n if (a%i==0)\n j++;\n i+=2;\n }\n if (j==0)\n cout <<\"n\";\n else\n {\n i=3;\n while (i<=7)\n {\n if (a%i!=0)\n {\n i+=2;\n continue;\n }\n cout <>n;\n\tif(n%3==0)\n\t{\n\t\tif(n%5!=0&&n%7!=0)//??3?????\n\t\tcout<<'3';\n\t\telse cout<<'3'<<' ';\n\t}\n\tif(n%5==0)\n\t{\n\t\tif(n%7!=0)//??5?????\n\t\tcout<<'5';\n\t\telse cout<<'5'<<' ';\n\t}\n\tif(n%7==0)\n\t\tcout<<'7'<> num;\n\n\tif (!(num % 105))\n\t\tcout << \"3 5 7\" << endl;\n\telse if (!(num % 35))\n\t\tcout << \"5 7\"<< endl;\n\telse if (!(num % 21))\n\t\tcout <<\"3 7\"<> m; // ??m\n\tif ((m % 3 == 0) && (m % 5 == 0) && (m % 7 == 0))\n\t\tcout << \"3 5 7\" << endl; // ??m??3 5 7????????3 5 7\n\telse \n\t\tif (m % 3 == 0) // ?????1???m??3?????\n\t\t if (m % 5 == 0) \n\t\t\t cout << \"3 5\" << endl; // ?m???5??????3 5\n\t\t else\n\t\t\t if (m % 7 == 0) \n\t\t\t\t cout << \"3 7\" << endl; // ?m???7??????3 7\n\t\t\t else \n\t\t\t\t cout << \"3\" << endl; // ????3\n\t\telse \n\t\t\tif (m % 5 == 0) // ?????2???m??5??????\n\t\t\t if (m % 7 == 0)\n\t\t\t\t cout << \"5 7\" << endl; // ?m???7??????5 7 \n\t\t\t else cout << \"5\" << endl; // ????5\n\t\telse \n\t\t\tif (m % 7 == 0)\n\t\t\t\tcout << \"7\" << endl; // ?????3???m??7????????7 \n\t\telse\n\t\t\tcout << \"n\" << endl; // ?????4?????3 5 7?????n\n\t\treturn 0; \n} // ?????\n\n\t \n"} +{"label": "93", "index": "46232", "code": "int main()\n{\nint x,sum=0;\ncin>>x;\nif(x%3==0)\nsum=sum+3;\nif(x%5==0)\nsum=sum+5;\nif(x%7==0)\nsum=sum+7;\nswitch(sum)\n{\ncase 15:cout<<\"3 \"<<\"5 \"<<\"7\"<b) return a;\n\telse return b;\n}\nint min(int a,int b){\n if(a>b) return b;\n\telse return a;\n}\nint main(){\n\tint n,count=0,i=0,a[3]={0,0,0};\n\tscanf(\"%d\",&n);\n\tif(n%3==0){\n\t\tcount++;a[count-1]=3;i=3;}\n\tif(n%5==0){\n\t\tcount++;a[count-1]=5;i=5;}\n\tif(n%7==0){\n\t\tcount++;a[count-1]=7;i=7;}\n\tif(count==0)\n\t\tprintf(\"n\");\n\tif(count==1)\n\t\tprintf(\"%d\",i);\n\tif(count==2)\n\t\tprintf(\"%d %d\",min(a[0],a[1]),max(a[0],a[1]));\n\tif(count==3)\n\t\tprintf(\"3 5 7\");\n\treturn 0;\n}\n"} +{"label": "93", "index": "46236", "code": "int main(){\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%105==0){\n\t\tprintf(\"3 5 7\");\n\t}\n else{\n\t\tif(a%15==0){\n\t\t\tprintf(\"3 5\");\n\t\t}\n\t\telse if(a%21==0){\n\t\t\tprintf(\"3 7\");\n\t\t}\n\t\telse if(a%35==0){\n\t\t\tprintf(\"5 7\");\n\t\t}\n\t\telse{\n\t\t\tif(a%3==0){\n\t\t\t\tprintf(\"3\");\n\t\t\t}\n\t\t\telse if(a%5==0){\n\t\t\t\tprintf(\"5\");\n\t\t\t}\n\t\t\telse if(a%7==0){\n\t\t\t\tprintf(\"7\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"n\");\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}\n\n"} +{"label": "93", "index": "46237", "code": "int main()\n{\n\tint a=0;\n\tcin>>a;\n\tif (a%3==0&&a%5==0&&a%7==0)\n\t\tcout<<\"3 \"<<\"5 \"<<\"7\"<>a;\n\tif(a%3==0){\n\t\tcan[0]=1;flag=1;\n\t}\n\tif(a%5==0){\n\t\tcan[1]=1;flag=1;\n\t}\n\tif(a%7==0){\n\t\tcan[2]=1;flag=1;\n\t}\n\tif(flag){\n\t\tfor(int i=2;i>=0;i--)\n\t\t\tif(can[i]){\n\t\t\t\tcan[i]=2;break;\n\t\t\t}\n\t}\n\tif(can[0])cout<<3;\n\tif(can[0]==1)cout<<\" \";\n\tif(can[1])cout<<5;if(can[1]==1)cout<<\" \";\n\tif(can[2])cout<<7;if(can[2]==1)cout<<\" \";\n\tif(flag==0)cout<<\"n\";\n\tcout<1)\n {\n \tfor(j=0;j>a;\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t\tcout<<3<<\" \"<<5<<\" \"<<7;\n\telse \n\t\tif(a%3!=0&&a%5==0&&a%7==0)\n\t\t\tcout<<5<<\" \"<<7;\n\t\t\n\t\telse \n\t\t\tif(a%3==0&&a%5!=0&&a%7==0)\n\t\t\t\tcout<<3<<\" \"<<7;\n\t\t\t\n\t\t\telse \n\t\t\t\tif(a%3==0&&a%5==0&&a%7!=0)\n\t\t\t\t\tcout<<3<<\" \"<<5;\n\t\t\t\telse \n\t\t\t\t\tif(a%3!=0&&a%5==0&&a%7!=0)\n\t\t\t\t\t\tcout<<5;\n\t\t\t\t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tif(a%3!=0&&a%5!=0&&a%7==0)\n\t\t\t\t\t\t\tcout<<7;\n\t\t\t\t\t\t\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tif(a%3==0&&a%5!=0&&a%7!=0)\n\t\t\t\t\t\t\t\tcout<<3;\n\t\t\t\t\t\t\t\nelse \n\t\t\t\t\t\t\t\t\ncout<<\"n\";\nreturn 0;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n}"} +{"label": "93", "index": "46242", "code": "int main(int argc, char* argv[])\n{\n\t\n\tint a;\n\tscanf (\"%d\",&a);\n\tif (a%105==0)\n\t\tprintf(\"3 5 7\");\n\tif (a%15==0&&a%7!=0)\n\t\tprintf(\"3 5\");\n\tif (a%21==0&&a%5!=0)\n\t\tprintf(\"3 7\");\n\tif (a%35==0&&a%3!=0)\n\t\tprintf(\"5 7\");\n\tif (a%3==0&&a%5!=0&&a%7!=0)\n\t\tprintf(\"3\");\n if (a%5==0&&a%3!=0&&a%7!=0)\n\t\tprintf(\"5\");\n if (a%7==0&&a%5!=0&&a%3!=0)\n\t\tprintf(\"7\");\n if (a%3!=0&&a%5!=0&&a%7!=0)\n\t\tprintf(\"n\");\n\n\treturn 0;\n}\n"} +{"label": "93", "index": "46243", "code": "\nint main()\n{\n int a;\n scanf(\"%ld\",&a);\n if(a%3==0&&a%5==0&&a%7==0)\n {\n printf(\"3 5 7\");\n }\n else if (a%3==0&&a%5==0)\n {\n printf(\"3 5\");\n }\n else if (a%3==0&&a%7==0)\n {\n printf(\"3 7\");\n }\n else if (a%3==0&&a%5==0)\n {\n printf(\"3 5\");\n }\n else if (a%7==0&&a%5==0)\n {\n printf(\"5 7\");\n }\n else if (a%3==0)\n {\n printf(\"3\");\n }\n else if (a%7==0)\n {\n printf(\"7\");\n }\n else if (a%5==0)\n {\n printf(\"5\");\n }\n else\n {\n printf(\"n\");\n }\n return 0;\n}\n"} +{"label": "93", "index": "46244", "code": "int main(){\n\tint a;\n scanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t\tprintf(\"%d %d %d\",3,5,7);\n\telse if (a%3==0&&a%5==0&&a%7!=0)\n\t\tprintf(\"%d %d\",3,5);\n else if (a%3==0&&a%5!=0&&a%7==0)\n\t\tprintf(\"%d %d\",3,7);\n else if (a%3!=0&&a%5==0&&a%7==0)\n\t\tprintf(\"%d %d\",5,7);\n else if (a%3==0&&a%5!=0&&a%7!=0)\n\t\tprintf(\"%d\",3);\n else if (a%3!=0&&a%5==0&&a%7!=0)\n\t\tprintf(\"%d\",5);\n else if (a%3!=0&&a%5!=0&&a%7==0)\n\t\tprintf(\"%d\",7);\n else printf(\"n\");\n}"} +{"label": "93", "index": "46245", "code": "int main()\n{\n\tint three(int x);\n\tint five(int x);\n\tint seven(int x);\n\tint print(int a,int b,int c);\n\tint a,b,c,x;\n\tscanf(\"%d\",&x);\n\ta=three(x);\n\tb=five(x);\n\tc=seven(x);\n\tprint(a,b,c);\n\treturn 0;\n}\nint three(int x){\n\tint d;\n\td=(x%3==0)?1:0;\n\treturn d;\n}\nint five(int x){\n\tint d;\n\td=(x%5==0)?1:0;\n\treturn d;\n}\nint seven(int x){\n\tint d;\n\td=(x%7==0)?1:0;\n\treturn d;\n}\nint print(int a,int b,int c){\n\tif(a==1){\n\t\tprintf(\"3\");\n\t\tif(b==1||c==1){\n\t\t\tprintf(\" \");\n\t\t}\n\t} \n\tif(b==1){\n\t\tprintf(\"5\");\n\t\tif(c==1){\n\t\t\tprintf(\" \");\n\t\t}\n\t}\n\tif(c==1){\n\t\tprintf(\"7\");\n\t}\n\tif(a==0&&b==0&&c==0){\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46246", "code": "/************************************\n * ?????3,5,7????\t\t*\n * ?????? 1200012815\t\t*\n * ???2012.9.25\t\t\t\t*\n ************************************/\nint main()\n{\n\tint a;\n\tcin >> a;\t\t\t\t\t\t\t\t\t//???????a\n\tif (a % 3 == 0 && a % 5 == 0 && a % 7 == 0) //?????????? \n\t\tcout << \"3 5 7\" << endl;\n\telse if (a % 3 == 0 && a % 5 == 0)\t\t\t\t\n\t\tcout << \"3 5\" << endl;\n\telse if (a % 3 == 0 && a % 7 == 0)\n\t\tcout << \"3 7\" << endl;\n\telse if (a % 5 == 0 && a % 7 == 0)\t\t\t//????????????\n\t\tcout << \"5 7\" << endl;\n\telse if (a % 5 == 0)\n\t\tcout << \"5\" << endl;\n\telse if (a % 7 == 0)\n\t\tcout << \"7\" << endl;\n\telse if (a % 3 == 0)\n\t\tcout << \"3\" << endl;\t\t\t\t\t//???????????\n\telse \n\t\tcout << \"n\" << endl;\t\t\t\t\t//????\n\n}\n\n"} +{"label": "93", "index": "46247", "code": "main()\n{\n int n;\n scanf(\"%d\",&n);\n if(n%3==0)\n\t if(n%5==0)\n\t\t if(n%7==0)\n\t\t\t printf(\"3 5 7\");\n\t\t else\n\t\t\t printf(\"3 5\");\n if(n%3==0)\n\t if(n%7==0)\n if(n%5!=0)\n\t\t\t\tprintf(\"3 7\");\n if(n%5==0)\n\t if(n%7==0)\n if(n%3!=0)\n\t\t\t\tprintf(\"5 7\");\n\tif(n%5!=0)\n\t if(n%7!=0)\n if(n%3!=0)\n\t\t\t\tprintf(\"n\");\n\tif(n%5==0)\n\t if(n%7!=0)\n if(n%3!=0)\n\t\t\t\tprintf(\"5\");\n\tif(n%5!=0)\n\t if(n%7==0)\n if(n%3!=0)\n\t\t\t\tprintf(\"7\");\n\tif(n%5!=0)\n\t if(n%7!=0)\n if(n%3==0)\n\t\t\t\tprintf(\"3\");\n\n\n}"} +{"label": "93", "index": "46248", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\", &a);\n\tif(a%3==0){\n\t\tprintf(\"3\");\n\t\tif(a%5==0){\n\t\t\tprintf(\" 5\");\n\t\t}\n\t\tif(a%7==0){\n\t\t\tprintf(\" 7\");\n\t\t}\n\t}\n\telse if(a%5==0){\n\t\tprintf(\"5\");\n\t\tif(a%7==0){\n\t\t\tprintf(\" 7\");\n\t\t}\n\t}\n\telse if(a%7==0){\n\t\tprintf(\"7\");\n\t}\n\telse{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46249", "code": "/*\n* file : ??3 5 7???\n* author:??? 1200012911\n* time : 2012.9.29\n*/\n\nint main()\n{\n\tint n, sum; //????\n\t//cout <<\"???????\" <> n ; //?????\n\tsum = (n%3 == 0) +(n%5 == 0) + (n%7 ==0) ; //???????\n\tswitch(sum)\n\t{\n\tcase 0 : cout <<\"n\" ;break; //n??3?5?7??\n\tcase 1 : cout <<(n%3 ==0? \"3\":(n%5 == 0?\"5\":\"7\"));break; //n??????????????\n\tcase 2 : cout <<(n%3 !=0 ? \"5 7\" : (n%5 !=0 ? \"3 7\":\"3 5\")) ;break;\n\t\t//n???????????????\n\tcase 3 : cout <<\"3 5 7\" ;break; //n??????\n\t} \n\tcout <> a;//??a\n\tif(a % 3 == 0)\n {\n\t\tx = 1;\n\t\tcout << 3 ;//??a??3?????3?x=1\n\t};\n\tif(a % 5 == 0)\n\t{ \n\t\t{if(x==1)\n\t\t\tcout<<\" \";}\n\t\tx = 1;\n\t\tcout << 5;};\t//??a??5?????x?1???5????????5\n\t\tif(a % 7 == 0)\n\t\t{\n\t\t\t{if(x == 1)\n\t\t\t\tcout << \" \";}\n\t\t\tcout << 7;};\t//??a??7?????x?1???7????????7\n\t\t\tif(a % 3 != 0 && a % 5 != 0 && a % 7 != 0)\n\t\t\t\tcout << 'n' << endl;//a???3,5,7?????n\n\t\t\t\n\t\t\treturn 0;\n}"} +{"label": "93", "index": "46253", "code": "//**********************************\n//**** ?????? *****\n//**** 1200016612 *****\n//** ?????3?5?7???? **\n//**********************************\nint main() //?????\n{\n\tint m=0,i=3,j=0; //??????m,i,??i??????????3\n\tcin>>m;\n\tif(m%3==0||m%5==0||m%7==0) //??m????????????????????\n\t{while(i<8) //?i?3,5,7?????i??m?????i??\n\t {if(m%i==0) \n\t\t{j=j+1; //j??????j=1?????????????????\n\t if(j==1) cout<>n;\n if(n%3==0)i++;\n if(n%5==0)i++;\n if(n%7==0)i++;\n if(i==3)cout<<\"3 5 7\";\n if(i==2)\n {\n if(n%3!=0)cout<<\"5 7\";\n if(n%5!=0)cout<<\"3 7\";\n if(n%7!=0)cout<<\"3 5\"; \n }\n if(i==1)\n {\n if(n%3==0)cout<<\"3\";\n if(n%5==0)cout<<\"5\";\n if(n%7==0)cout<<\"7\"; \n }\n if(i==0)cout<<\"n\";\n cin.get();\n cin.get();\n return 0;\n}"} +{"label": "93", "index": "46258", "code": "int main()\n{\n int aaa=0;\n \n int num ;\n \n cin >> num ;\n \n if (num % 3 == 0 )\n {\n cout << 3 ; \n aaa=3;\n }\n if (num % 5 == 0 )\n {\n if(aaa!=0)\n cout << \" \" ; \n cout << 5 ; \n aaa=5; \n }\n if (num % 7 == 0 )\n {\n if(aaa!=0)\n cout << \" \" ; \n cout << 7; \n aaa=7;\n }\n \n if(aaa == 0)\n cout << \"n\" << endl ;\n \n return 0 ;\n}"} +{"label": "93", "index": "46259", "code": "void main()\n{\n\tint a,i3,i5,i7;\n\tscanf(\"%d\",&a);\n\ti3=0;i5=0;i7=0;\n\tif(a%3==0) i3=1;\n\tif(a%5==0) i5=1;\n\tif(a%7==0) i7=1;\n\tif(i3==1)\n\t{\n\t\tprintf(\"3\");\n\t\tif(i5==1)\n\t\t{\n\t\t\tprintf(\" 5\");\n\t\t\tif(i7==1)\n\t\t\t\tprintf(\" 7\");\n\t\t}\n\t\telse if(i7==1) printf(\" 7\");\n\t}\n\telse if(i5)\n\t{\n\t\tprintf(\"5\");\n\t\tif(i7) printf(\" 7\");\n\t}\n\telse if(i7)\n\t{\n\t\tprintf(\"7\");\n\t}\n\telse printf(\"n\");\n}"} +{"label": "93", "index": "46260", "code": "int main(){\n\tint sz[3]={3,5,7};\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tint flag=0;\n\tint isfirsttime=1;\n\n\tfor(i=0;i<3;i++){\n\t\t\tif(n%sz[i]==0){\n\t\t\t\tif(!isfirsttime){\n\t\t\t\tprintf(\" %d\",sz[i]);\n\t\t\t\tflag=1;\n\t\t\t\t}else{\n\t\t\t\t\tprintf(\"%d\",sz[i]);\n\t\t\t\t\tflag=1;\n\t\t\t\t\tisfirsttime=0;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\n\n\n\t}\n\tif(flag==0){\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46261", "code": "int main()\n{\n int num; //?????\n cin >> num ;\n if (num%3==0)\n {\n if (num%7!=0 && num%5!=0)\n cout <<'3';\n else\n cout <<'3'<<' ';\n }\n if (num%5==0)\n {\n if(num%7!=0)\n cout << '5';\n else\n cout <<'5'<<' ';\n }\n if (num%7==0)\n cout <<'7';\n if (num%3!=0&& num%5!=0 && num%7!=0)\n cout <<'n';\n\n return 0;\n\n}"} +{"label": "93", "index": "46262", "code": "void main()\n{\n int a,b=0,c=0,r=0;\n\t scanf(\"%d\",&a);\n if (a%3==0) b=3;\n\t if (a%5==0) c=5;\n\t if (a%7==0) r=7;\n\t if (b>0) printf(\"3\");\n\t if (c>0&&b>0) printf(\" 5\");\n\t else if(c>0) printf(\"5\");\n\t if (r>0&&(c>0||b>0)) printf(\" 7\");\n\t else if (r>0) printf(\"7\");\n if(b==0&&c==0&&r==0) printf(\"n\");\n}\n\n\n\t \n"} +{"label": "93", "index": "46263", "code": "void main()\n{\n\tint x,i;\n\tscanf(\"%d\",&x);\n if(x%3==0)\n\t{printf(\"%d\",3);\n\tfor(i=5;i<=7;i=i+2)\n\t\tif(x%i==0)\n\t\t{printf(\" %d\",i);}\n\t}\n\telse\n\t{if(x%5==0)\n\t\t{printf(\"%d\",5);\n\t if(x%7==0)printf(\" %d\",7);}\n\telse if(x%7==0)printf(\"%d\",7);}\n\t\t\n if(x%3!=0&&x%5!=0&&x%7!=0)\n\t\t\tprintf(\"n\");\n\t\tprintf(\"\\n\");\n}"} +{"label": "93", "index": "46264", "code": "void main()\n{int a;\n scanf(\"%d\",&a);\n if(a%105==0) printf(\"3 5 7\\n\");\n else if(a%15==0&&a%7!=0) printf(\"3 5\\n\");\n else if(a%21==0&&a%5!=0) printf(\"3 7\\n\");\n else if(a%35==0&&a%3!=0) printf(\"5 7\\n\");\n else if(a%35!=0&&a%3==0) printf(\"3\\n\");\n else if(a%21!=0&&a%5==0) printf(\"5\\n\");\n else if(a%15!=0&&a%7==0) printf(\"7\\n\");\n else printf(\"n\\n\");\n }\n"} +{"label": "93", "index": "46265", "code": "int main() {\nint i;\nscanf(\"%d\",&i);\nif(i%3==0 && i%5==0 && i%7==0){\n\tprintf(\"3 5 7\");\n}else{\nif(i%15==0){\n\tprintf(\"3 5\");\n}else{\nif(i%21==0){\n\tprintf(\"3 7\");\n}else{\nif(i%35==0){\n\tprintf(\"5 7\");\n}else{\nif(i%3==0){\n\tprintf(\"3\");\n}else{\nif(i%5==0){\n\tprintf(\"5\");\n}else{\nif(i%7==0){\n\tprintf(\"7\");\n}else{\n\tprintf(\"n\");\n}\n}\n}\n}\n}\n}\n}\t\nreturn 0;\n}\n"} +{"label": "93", "index": "46266", "code": "int main()\n{\n int x;\n scanf(\"%d\",&x);\n if(x%105==0)\n {\n printf(\"3 5 7\",x);\n\t }\n else if(x%15==0)\n\t {\n\t printf(\"3 5\",x);\n\t }\n\t else if(x%21==0)\n\t {\n\t printf(\"3 7\",x);\n\t }\n\t else if(x%35==0)\n\t {\n\t printf(\"5 7\",x);\n\t }\n\t else if(x%3==0)\n\t {\n\t printf(\"3\",x);\n\t }\n\t else if(x%5==0)\n\t {\n\t printf(\"5\",x);\n\t }\n\t else if(x%7==0)\n\t {\n\t printf(\"7\",x);\n\t }\n\t else\n\t {\n printf(\"n\",x);\n\t }\n\t return 0;\n}"} +{"label": "93", "index": "46267", "code": "//\n// main.cpp\n// ds\n//\n// Created by Love on 12-12-27.\n// Copyright (c) 2012? Love. All rights reserved.\n//\n\n\nint main(){\n int num,i=1;\n scanf(\"%d\",&num);\n if (num%3==0) {\n printf(\"3\");\n i=0;\n }\n if (num%5==0) {\n if (i==0) {\n printf(\" \");\n }\n printf(\"5\");\n i=0;\n }\n if (num%7==0) {\n if (i==0) {\n printf(\" \");\n }\n\n printf(\"7\");\n i=0;\n }\n if (i==1) {\n printf(\"n\");\n } return 0;\n \n \n}"} +{"label": "93", "index": "46268", "code": "void main ()\n{\n\tfloat n;\n\tint help,j,a,b;\n\tfloat x,i;\n\tj=2;\n\ta=0;b=1;\n\n\tscanf(\"%f\",&n);\n\n\tfor(i=3;i<8;i=i+2)\n\t{\n\t\tx=n/i;\n\t\thelp=n/i;\n\t\tif (x==help) a=a+b;\n\t\tj=j+2;\n\t\tb=b*2;\n\t\t//printf(\"%d %f %d\\n\",a,x,help);\n\t}\n\n\tswitch(a)\n\t{\n\t case 0:printf(\"n\");break;\n\t case 1:printf(\"3\");break;\n\t case 2:printf(\"5\");break;\n\t case 3:printf(\"3 5\");break;\n\t case 4:printf(\"7\");break;\n case 5:printf(\"3 7\");break;\n\t case 6:printf(\"5 7\");break;\n\t case 7:printf(\"3 5 7\");break;\n\t default:;\n\t}\n}"} +{"label": "93", "index": "46269", "code": "\nint main(int argc, char* argv[])\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tif(x%3==0&&x%5==0&&x%7==0)\n\t{\n\t\tprintf(\"3 5 7\");\n\t}\n\telse\n\t{\n\t\tif(x%3==0&&x%5==0&&x%7!=0)\n\t\t{\n\t\t\tprintf(\"3 5\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(x%3==0&&x%5!=0&&x%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(x%3!=0&&x%5==0&&x%7==0)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"5 7\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(x%3==0&&x%5!=0&&x%7!=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"3\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(x%3!=0&&x%5==0&&x%7!=0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprintf(\"5\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(x%3!=0&&x%5!=0&&x%7==0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tprintf(\"7\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tprintf(\"n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46270", "code": "int main()\n{\n int a;\n cin >> a;\n if (a % 105 == 0)\n cout << \"3 5 7\" << endl;\n if (a % 15 == 0 && a % 105 != 0)\n cout << \"3 5\" << endl;\n if (a % 35 == 0 && a % 105 != 0)\n cout << \"5 7\" <> x; //??x\n\tif ((x%3!=0)&&(x%5!=0)&&(x%7!=0)) //x??3,5,7?????\n\t\tcout << \"n\" << endl; //??n\n\telse if (x%3==0) //x??3??\n\t\tcout << \"3\" ; //??3\n\t\tif (x%5==0) //x??5??\n\t\t{\n\t\t\tif (x%3==0) \t \n\t\t\t\tcout << \" 5\" ; \n\t\t\telse \n\t\t\t\tcout << \"5\" ; //?x???3????\u0093 5\u0094?????\u00935\u0094\n\t\t}\n\t\tif (x%7==0) //x??5??\n\t\t{\n\t\t\tif ((x%3==0)||(x%5==0)) \n\t\t\t\tcout << \" 7\" ;\n\t\t\telse \n\t\t\t\tcout << \"7\" ; //?x???3????\u0093 7\u0094?????\u00937\u0094\n\t\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "93", "index": "46277", "code": "int main()\n{\n\tint z;\n\tint a=0,b=0,c=0;\n\tscanf(\"%d\",&z);\n\tif(z%3==0)\n\t\ta=3;\n\tif(z%5==0)\n\t\tb=5;\n\tif(z%7==0)\n\t\tc=7;\n\tif(a!=0) \n\t\tprintf(\"%d\",a);\n\tif(b!=0)\n\t\t{if(a!=0)\n\t\t\tprintf(\" %d\",b);\n\t\telse\n\t\t printf(\"%d\",b);}\n\tif(c!=0)\n\t\t{if(a!=0 || b!=0)\n\t\t\tprintf(\" %d\",c);\n\t\telse\n\t\t printf(\"%d\",c);}\n\tif(a+b+c==0)\n\t\tprintf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46278", "code": "void main()\n{int m,flag=0;\nscanf(\"%d\",&m);\nif(m%3==0) printf(\"3\");\nif(m%5==0) {if(m%3==0) printf(\" \");printf(\"5\");}\nif(m%7==0) {if(m%3==0||m%5==0) printf(\" \");printf(\"7\");}\nelse if(m%3!=0&&m%5!=0)putchar('n');}\n"} +{"label": "93", "index": "46279", "code": "int main()\n{\n\tint a,b=3,c=5,d=7;\n\tchar n='n';\n\tscanf(\"%d\",&a);\n\n\t\tif(a%3==0&&a%5==0&&a%7==0)\n\t\t\tprintf(\"%d %d %d\",b,c,d);\n if(a%3!=0&&a%5==0&&a%7==0)\n\t\t\tprintf(\"%d %d\",c,d);\n\t\tif(a%3==0&&a%5!=0&&a%7==0)\n\t\t\tprintf(\"%d %d\",b,d);\n\t\tif(a%3==0&&a%5==0&&a%7!=0)\n\t\t\tprintf(\"%d %d\",b,c);\n\t\tif(a%3!=0&&a%5!=0&&a%7==0)\n\t\t\tprintf(\"%d\",d);\n\t\tif(a%3!=0&&a%5==0&&a%7!=0)\n\t\t\tprintf(\"%d\",c);\n\t\tif(a%3==0&&a%5!=0&&a%7!=0)\n\t\t\tprintf(\"%d\",b);\n\t\tif(a%3!=0&&a%5!=0&&a%7!=0)\n\t\t\tprintf(\"%c\",n);\n\t\treturn 0;\n\t\n}\n"} +{"label": "93", "index": "46280", "code": "int main() //???\n{ //?????\n\tint k,a,b,c;\n\tchar n; //????k(?????),a,b,c(???3,5,7????),n\n\tcin>>k; //????\n\ta=k%3;\n\tb=k%5;\n\tc=k%7;\n\tif(a==0)\n\t{\n\t\tif(b==0)\n\t\t{\n\t\t\tif(c==0)\n\t\t\t\tcout<<3<<\" \"<<5<<\" \"<<7;\n\t\t\telse \n\t\t\t\tcout<<3<<\" \"<<5;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(c==0)\n\t\t\t\tcout<<3<<\" \"<<7;\n\t\t\telse\n\t\t\t\tcout<<3;\n\t\t}\n\t}\n\telse\n\t{\n\t\tif(b==0)\n\t\t{\n\t\t\tif(c==0)\n\t\t\t\tcout<<5<<\" \"<<7;\n\t\t\telse\n\t\t\t\tcout<<5;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(c==0)\n\t\t\t\tcout<<7;\n\t\t\telse\n\t\t\t\tcout<<'n';\n\t\t}\n\t}\n\treturn 0;\n} //?????"} +{"label": "93", "index": "46281", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tif(n%3==0)\n\t{\n\t\tif(n%5==0)\n\t\t{\n\t\t\tif(n%7==0)cout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\"<> n;\n\ta = (n % 3 == 0);\n\tb = (n % 5 == 0);\n\tc = (n % 7 == 0);\n\tif (a + b + c == 0)\n\t\tcout << \"n\" << endl;\n\telse\n\t\tif (a + b + c == 3)\n\t\t\tcout << \"3 5 7\" << endl;\n\t\telse\n\t\t\tif (a == 1 && b == 0 && c == 0)\n\t\t\t\tcout << \"3\" << endl;\n\t\t\telse\n\t\t\t\tif (a == 0 && b == 1 && c == 0)\n\t\t\t\t\tcout << \"5\" << endl;\n\t\t\t\telse\n\t\t\t\t\tif (a == 0 && b == 0 && c == 1)\n\t\t\t\t\t\tcout << \"7\" << endl;\n\t\t\t\t\telse\n\t\t\t\t\t\tif (a == 1 && b == 1 && c == 0)\n\t\t\t\t\t\t\tcout << \"3 5\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif (a == 0 && b == 1 && c == 1)\n\t\t\t\t\t\t\t\tcout << \"5 7\" << endl;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tcout << \"3 7\" << endl;\n return 0; \n}"} +{"label": "93", "index": "46283", "code": "\nint main()\n{\n\tint num;\n\tcin >> num;\n\tint flag1 = 0, flag2 = 0, flag3 = 0;\n\t\n\tif(num % 3 == 0)\n\t\tflag1 = 1;\n\tif(num % 5 == 0)\n\t\tflag2 = 1;\n\tif(num % 7 == 0)\n\t\tflag3 = 1;\n\n\tif(flag1 == 1 && flag2 == 1 && flag3 == 1)\n\t\tcout << \"3 5 7\" <> n ;\n\tif ( n%3 == 0&& n%5 == 0)\n\t\t{\n\t\t\tif (n%7== 0)\n\t\t\t\tcout << \"3 5 7\" <0){\n\t\tprintf(\"3 5\");\n\t}else if(e==0&&g==0&&f>0){\n\t\tprintf(\"3 7\");\n\t}else if(f==0&&g==0&&e>0){\n\t\tprintf(\"5 7\");\n\t}else if(e==0&&g>0&&f>0){\n\t\tprintf(\"3\");\n\t}else if(f==0&&g>0&&e>0){\n\t\tprintf(\"5\");\n\t}else if(g==0&&e>0&&f>0){\n\t\tprintf(\"7\");\n\t}else if(g>0&&e>0&&f>0){\n\t\tprintf(\"n\");\n\t}else if(e==0&&g==0&&f==0){\n\t\tprintf(\"3 5 7\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46286", "code": "//\n// main.cpp\n// ??3?5?7????\n//\n// Created by ? ?? on 12-9-26.\n// Copyright (c) 2012? ? ??. All rights reserved.\n//\n\nint main()\n{\n int m;\n cin>>m;\n \n if(m % 3 == 0)\n cout << 3;\n if (m % 5 == 0 && m % 3 == 0)\n {\n cout << \" \";\n cout << 5;\n }\n else if (m % 5 == 0 && m % 3 != 0)\n cout << 5;\n if (m % 7 == 0)\n {\n if (m % 5 != 0 && m % 3 != 0)\n {\n cout << 7 ;\n \n }\n else\n cout << \" \" << 7 ;\n }\n \n if(m % 3 != 0 && m % 5 != 0 && m % 7 != 0)\n cout << \"n\" ;\n return 0;\n}\n"} +{"label": "93", "index": "46287", "code": "//********************************\n//*?????(4-4) ??3?5?7???? **\n//*?????? 1300012745 **\n//*???2013.9.27 **\n//********************************\nint main()\n{\n\tint number;\n\tcin>>number;\n\tif (number%3==0&&number%5==0&&number%7==0)\n\t\tcout<<\"3 5 7\"<=1)\n\t\t\t\tprintf(\" \");\n\t\t\tprintf(\"%d\",i);\n\t\t\tt++;\n\t\t}\n\t}\n\tif(t==0)\n\t\tprintf(\"n\");\n}"} +{"label": "93", "index": "46289", "code": "int main()\n{\nint n;\ncin>>n;\nchar a='n';\nfor (int i=3;i<=7;i+=2)\n{\nif (n%i==0)\n{\nif (a=='n') cout<>n;\nif(n%5==0)\n x=1;\nif(n%7==0) \n y=1;\nif(n%3==0)\n {if(x==1||y==1) //??????????x,y????????????? \n cout<<3<<\" \";\n else\n cout<<3;} \nif(n%5==0)\n {if(y==1)\n cout<<5<<\" \";\n else\n cout<<5;} \nif(n%7==0) //?????????????? \n cout<<7;\nif(n%7!=0&&n%3!=0&&n%5!=0)\n cout<<'n'; //???????? \n\nreturn 0;\n}\n \n \n \n\n \n"} +{"label": "93", "index": "46295", "code": "void main()\n{\n\tint a=3,b=5,c=7,d;\n\tscanf(\"%d\",&d);\n\tif(d%(a*b*c)==0) printf(\"%d %d %d\",a,b,c);\n\telse if(d%(a*b)==0) printf(\"%d %d\",a,b);\n\telse if(d%(a*c)==0) printf(\"%d %d\",a,c);\n\telse if(d%(b*c)==0) printf(\"%d %d\",b,c);\n\telse if(d%a==0) printf(\"%d\",a);\n\telse if(d%b==0) printf(\"%d\",b);\n\telse if(d%c==0) printf(\"%d\",c);\n\telse printf(\"n\");\n}\n"} +{"label": "93", "index": "46296", "code": "int main()\n{\n int n;\n\tscanf(\"%d\", &n);\n\tif ((n%3==0)&&(n%5==0)&&(n%7==0)){\n\t\tprintf(\"%d %d %d\", 3, 5, 7);\n\t}\n\telse if((n%3==0)&&(n%5==0)&&(n%7!=0)){\n printf(\"%d %d\", 3, 5);\n\t}\n\telse if((n%3!=0)&&(n%5==0)&&(n%7==0)){\n printf(\"%d %d\", 5, 7);\n\t}\n\telse if((n%3==0)&&(n%5!=0)&&(n%7==0)){\n printf(\"%d %d\", 3, 7);\n\t}\n\telse if((n%3==0)&&(n%5!=0)&&(n%7!=0)){\n printf(\"%d\", 3);\n\t}\n\telse if((n%3!=0)&&(n%5==0)&&(n%7!=0)){\n printf(\"%d\", 5);\n\t}\n\telse if((n%3!=0)&&(n%5!=0)&&(n%7==0)){\n\t\tprintf(\"%d\", 7);\n\t}\n\telse {\n printf(\"n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46297", "code": "void main(){\n\tint N;\n\tint a1=3,a2=5,a3=7;\n\tscanf(\"%d\",&N);\n\tif (N%a1==0 && N%a2==0 && N%a3==0)\n\t\tprintf(\"3 5 7\\n\");\n\telse if (N%a1==0 && N%a2==0 && N%a3!=0)\n\tprintf(\"3 5\\n\");\n\telse if(N%a2==0&&N%a3==0&&N%a1!=0)\n\t\tprintf(\"5 7\\n\");\n\telse if(N%a1==0&&N%a3==0&&N%a2!=0)\n\t\tprintf(\"3 7\\n\");\n\telse if(N%a1==0&&N%a2!=0&&N%a3!=0)\n\t\tprintf(\"3\\n\");\n\telse if(N%a2==0&&N%a1!=0&&N%a3!=0)\n\t\tprintf(\"5\\n\");\n\telse if (N%a3==0&&N%a1!=0&&N%a2!=0)\n\t\tprintf(\"7\\n\");\n\telse if(N%a1!=0&&N%a2!=0&&N%a3!=0)\n\t\tprintf(\"n\\n\");\n}\n\t\n\t\t\n\n\n\t\t\n\t\n"} +{"label": "93", "index": "46298", "code": "\nint main()\n{\n\tint mm[3] = {3, 5, 7};\n\tint flag[3] = {0};\n\tint n;\n\tscanf(\"%d\", &n);\n\tint i;\n\tfor (i = 0; i < 3; i++)\n\t{\n\t\tif (n % mm[i] == 0)\n\t\t\tflag[i] = 1;\n\t}\n\tint space = -1;\n\tfor (i = 0; i < 3; i++)\n\t{\n\t\tif (flag[i] == 1)\n\t\t{\n\t\t\tspace ++;\n\t\t\tif (space == 0)\n\t\t\t\tprintf(\"%d\", mm[i]);\n\t\t\telse\n\t\t\t\tprintf(\" %d\", mm[i]);\n\t\t}\n\t}\n\tif(space == -1)\n\t\tprintf(\"n\");\n\tprintf(\"\\n\");\n}"} +{"label": "93", "index": "46299", "code": "int main()\n{\n int a,x,y,z;\n char b;\n scanf(\"%d\",&a);\n b='n';\n x=3;\n y=5;\n z=7;\n if(((a%3==0)&(a%5==0)&(a%7==0))==1)\n {\n printf(\"%d %d %d\",x,y,z);\n }\n if(((a%3!=0)&(a%5!=0)&(a%7!=0))==1)\n {\n printf(\"%c\",b);\n }\n if(((a%7==0)&(a%3!=0)&(a%5!=0))==1)\n {\n printf(\"%d\",z);\n }\n if(((a%3==0)&(a%5!=0)&(a%7!=0))==1)\n {\n printf(\"%d\",x);\n }\n if(((a%5==0)&(a%3!=0)&(a%7!=0))==1)\n {\n printf(\"%d\",y);\n }\n if(((a%3==0)&(a%5==0)&(a%7!=0))==1)\n {\n printf(\"%d %d\",x,y);\n } \n if(((a%7==0)&(a%5==0)&(a%3!=0))==1)\n {\n printf(\"%d %d\",y,z);\n }\n if(((a%3==0)&(a%7==0)&(a%5!=0))==1)\n {\n printf(\"%d %d\",x,z);\n } \n return 0;\n}\n"} +{"label": "93", "index": "46300", "code": "//*************************************************\n//*?????????3,5,7 ????****************\n//*??????? 1200012979 **********************\n//*???2012.9.25 ********************************\nint main() //?????\n{ //?????\n\tint x ; //??????\n\tcin >> x; //????\n\tif (x % 3 == 0 && x % 5 == 0 && x % 7 ==0)\n\t\t cout << \"3 5 7\" << endl; //?????3,5,7??\n else if (x % 3 == 0 && x % 5 == 0 && x % 7 !=0)\n\t\t cout << \"3 5\" << endl; //???????3,5??\n\telse if (x % 3 == 0 && x % 5 != 0 && x % 7 ==0)\n cout << \"3 7\" << endl; //???????3,7??\n\telse if (x % 3 != 0 && x % 5 == 0 && x % 7 ==0)\n cout << \"5 7\" << endl; //???????5,7??\n else if (x % 3 == 0 && x % 5 != 0 && x % 7 !=0)\n\t\t cout << \"3\" << endl; //???????3??\n\telse if (x % 3 != 0 && x % 5 != 0 && x % 7 ==0)\n cout << \"7\" << endl; //???????7??\n\telse if (x % 3 != 0 && x % 5 == 0 && x % 7 !=0)\n cout << \"5\" << endl; //???????5??\n\telse cout << \"n\" << endl; //????????n\n\treturn 0; //??????????0\n} //?????"} +{"label": "93", "index": "46301", "code": "main()\n{\n\tint a;\n\tcin >> a;\n\tif(a % 3 == 0 && a % 5 == 0 && a % 7 == 0)\n\t\tcout << 3 << \" \" << 5 << \" \" << 7 <> num;\t\t\t\t\t\t//???num\n\tint t = 0;\t\t\t\t\t\t//t??????????????5,7??????num???t??+1\n\t//??????????????5,7???????\n\t//i??????????????????+2????????7\n\tfor ( int i = 3; i <= 8 ; i = i + 2 ) \n\t{\t\t\t\t\t\t\t\t//???????\n\t\tif (num % i == 0)\t\t\t//???num???i???\n\t\t{\t\t\t\t\t\t\t\n\t\t\tif (t == 0)\t\t\t\t//???????????????????????????????um??\n\t\t\t\tcout << i;\t\t\t//???i?????????\n\t\t\telse\t\t\t\t\t//???\n\t\t\t\tcout <<\" \"<< i;\t\t//???i????????\n\t\t\tt++;\t\t\t\t\t//t??+1\n\t\t}\t\t\t\t\t\t\t\n\t}\t\t\t\t\t\t\t\t//??????\n\tif (t == 0)\t\t\t\t\t\t//???????????????????????i??????num\n\t\tcout << \"n\";\t\t\t\t//???\"n\"\n\tcin.get();\t\t\t\t\t\t\n\tcin.get();\n\treturn 0;\n}"} +{"label": "93", "index": "46305", "code": "int main()\n{\n\tint n, i, x[5]={3,5,7,1000,1000};\n\tscanf(\"%d\",&n);\n\tfor(i=0; i<3; i++)\n\t{\n\t\tif(n%x[i]==0&&n%x[i+1]!=0&&n%x[i+2]!=0)\n\t\t\tprintf(\"%d\" ,x[i]);\n\t\telse if(n%x[i]==0&&(n%x[i+1]==0||n%x[i+2]==0))\n\t\t\tprintf(\"%d \", x[i]);\n\t}\n\tif(n%3!=0&&n%5!=0&&n%7!=0)\n\t\tprintf(\"n\");\n\treturn 0;\n}\n"} +{"label": "93", "index": "46306", "code": "int main()\n{\nint a;\nscanf(\"%d\",&a);\nif(a%105==0){\nprintf(\"%d %d %d\",3,5,7);\n}\nelse if(a%15==0){\nprintf(\"%d %d\",3,5);\n}\nelse if(a%21==0){\nprintf(\"%d %d\",3,7);\n}\nelse if(a%35==0){\nprintf(\"%d %d\",5,7);\n}\nelse if(a%3==0){\nprintf(\"%d\",3);\n}\nelse if(a%5==0){\nprintf(\"%d\",5);\n}\nelse if(a%7==0){\nprintf(\"%d\",7);\n}\nelse {\nprintf(\"%c\",'n');\n}\nreturn 0;\n}"} +{"label": "93", "index": "46307", "code": "int main()\n{\n int a[3]={3,5,7};\n int n;\n cin>>n;\n int i;\n int c[3],k=0;\n for(i=0;i<=2;i++)\n {\n if(n%a[i]==0)\n {\n c[k]=a[i];\n k++;\n }\n }\n if(k==0)\n {cout<<\"n\";\n return 0;\n }\n for(i=0;i> x;\n\tif( x % 105 == 0)\n\t{\n\t\tcout << a << ' ' << b << ' ' << c << endl;\n\t}\n\telse \n\t{\n\t\tif( x % 15 == 0 || x % 35 == 0 || x % 21 == 0 )\n\t\t{\n\t\t\t\tif( x % 15 == 0)\n\t\t cout << a << ' ' << b << endl ;\n\t\t if( x % 35 == 0)\n\t\t cout << b << ' ' << c << endl;\n\t\t if( x % 21 == 0)\n\t\t cout << a << ' ' << c << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( x % 3 == 0)\n\t\t\tcout << a << endl;\n\t\t\tif( x % 5 == 0)\n\t\t\tcout << b << endl;\n\t\t\tif( x % 7 == 0)\n\t\t\tcout << c << endl;\n\t\t\tif( x % 3 != 0 && x % 7 != 0 && x % 5 != 0)\n\t\t\tcout << \"n\" << endl;\n\t\t}\n\t\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46314", "code": "void main()\n{ int a,b,i=0,j=0,k=0,m,n;\n scanf(\"%d\",&m);\n if(m%3==0)\n\t i=1;\n if(m%5==0)\n\t j=1;\n if(m%7==0)\n\t k=1;\n if(i==1&&j==1&k==1)\n\t printf(\"3 5 7\");\n else if(i==1&&j==1&&k==0)\n\t printf(\"3 5\");\n else if(i==1&&j==0&&k==1)\n\t printf(\"3 7\");\n else if(i==0&&j==1&&k==1)\n\t printf(\"5 7\");\n else if(i==1&&j==0&&k==0)\n\t printf(\"3\");\n else if(i==0&&j==1&&k==0)\n\t printf(\"5\");\n else if(i==0&&j==0&&k==1)\n\t printf(\"7\");\n else if(i==0&&j==0&&k==0)\n\t printf(\"n\");\n\n\n}"} +{"label": "93", "index": "46315", "code": "void main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%105==0){\n\t\tprintf(\"3 5 7\\n\");\n\t}\n\telse if(n%35==0&&n%3!=0){\n\t\tprintf(\"5 7\\n\");\n\t}\n\telse if(n%15==0&&n%7!=0){\n\t\tprintf(\"3 5\\n\");\n\t}\n\telse if(n%21==0&&n%5!=0){\n\t\tprintf(\"3 7\\n\");\n\t}\n\telse if(n%3==0&&n%35!=0){\n\t\tprintf(\"3\\n\");\n\t}\n\telse if(n%5==0&&n%21!=0){\n\t\tprintf(\"5\\n\");\n\t}\n\telse if(n%7==0&&n%15!=0){\n\t\tprintf(\"7\\n\");\n\t}\nelse{\nprintf(\"n\\n\");\n}\n}\n"} +{"label": "93", "index": "46316", "code": "int main()\n{\n\tint x;\n scanf(\"%d\", &x);\n int a=x%3,b=x%5,c=x%7;\n\t\n\tif(a==0&&b==0&&c==0){\n\tprintf(\"3 5 7\");\n\t} \n\tif(a==0&&b==0&&c!=0){\n\tprintf(\"3 5\");\t\n\t} \n if(a==0&&b!=0&&c==0){\n\t\tprintf(\"3 7\");\n\t}\n\tif(a!=0&&b==0&&c==0){\n\t\tprintf(\"5 7\");\n\t}\n\tif(a!=0&&b!=0&&c!=0){\n\t\tprintf(\"n\");\n\t}\n\tif(a==0&&b!=0&&c!=0){\n\t\tprintf(\"3\");\n\t}\n\tif(a!=0&&b==0&&c!=0){\n\t\tprintf(\"5\");\n\t}\n\tif(a!=0&&b!=0&&c==0){\n\t\tprintf(\"7\");\n\t}\n\t\n\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46317", "code": "//*********************************************\n//*@file:5_cpp *\n//*@author:??? 1200012894 *\n//*@date?2012.10.2 *\n//*@function?????????3,5,7?? *\n//*********************************************\n\n\n\nint main()\n{\n int x; //x???????\n char n; //??????n\n cin >> x;\n\t\n /*??x??3?????x???5??;\n ??x???3???????x???5??*/\n if (x % 3 ==0) \n {\n /*??x??3,5???????x???7???\n ??x???5???????x???7??*/\n if (x % 5 ==0) \n\t\t{ \n\t/*??x????3,5,7???\n ??3,5,7,????????????\n ??x??3?5??????7?????3?5*/\n if(x % 7 ==0) \n\t cout << 3 << \" \" << 5 << \" \" << 7 ; \n\t else\n\t cout << 3 << \" \" << 5;\n\t }\n else \n {\n if (x % 7 == 0)\n cout << 3 << \" \" << 7;\n\n /*??x???3?????3*/\n\t else \n cout << 3;\n\t\t}\n\t}\n\n /*??x???5???????x???7??*/\n\telse\n\t{\n\t if (x % 5 == 0)\n\t {\n\t\tif (x % 7 == 0)\n\t\t cout << 5 << \" \" << 7;\n\t\telse \n\t\t cout << 5;\n\t }\n\t else \n\t {\n\t\tif (x % 7 ==0)\n\t\t cout << 7;\n\t\telse \n\t\t cout << 'n' ;\n\t\t}\n\t }\n\t return 0;\n}\n"} +{"label": "93", "index": "46318", "code": "int main()\n{\n\tint n,is=0;\n\tscanf(\"%d\",&n);\n\tif(n%3==0)\n\t{\n\t printf(\"%d\",3);\n\t is=1;\n\t}\n\tif(n%5==0)\n\t{\n\t if(is)printf(\" \");\n\t printf(\"%d\",5);\n\t is=1;\n\t}\n\tif(n%7==0)\n\t{\n\t if(is)printf(\" \");\n\t printf(\"%d\",7);\n\t is=1;\n\t}\n\tif(is==0)printf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46319", "code": "int main()\n{\n\tint x,d=0;\n\tint a=3,b=5,c=7;\n\tscanf(\"%d\",&x);\n\tif(x%a==0&&x%b==0&&x%c==0)\n\t{\n\t\tprintf(\"3 5 7\");\n\t}\n\telse if(x%a==0&&x%b==0&&x%c!=0)\n\t{\n\t\tprintf(\"3 5\");\n\t}\n\telse if(x%a==0&&x%b!=0&&x%c==0)\n\t{\n\t\tprintf(\"3 7\");\n\t}\n\telse if(x%a!=0&&x%b==0&&x%c==0)\n\t{\n\t\tprintf(\"5 7\");\n\t}\n\telse if(x%a==0&&x%b!=0&&x%c!=0)\n\t{\n\t\tprintf(\"3\");\n\t}\n\telse if(x%a!=0&&x%b==0&&x%c!=0)\n\t{\n\t\tprintf(\"5\");\n\t}\n\telse if(x%a!=0&&x%b!=0&&x%c==0)\n\t{\n\t\tprintf(\"7\");\n\t}\n\telse if(x%a!=0&&x%b!=0&&x%c!=0)\n\t{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46320", "code": "int main()\n{\n int x,a,b,c;\n scanf(\"%d\",&x);\n a=0,b=0,c=0;\n if(x%7==0)\n {\n a=7;\n }\n if(x%5==0)\n {\n b=a;\n a=5;\n }\n if(x%3==0)\n {\n c=b;\n b=a;\n a=3;\n }\n if(a==0)\n {\n printf(\"n\");\n }\n else\n {\n if(b==0)\n {\n printf(\"%d\",a); \n }\n else\n {\n if(c==0)\n {\n printf(\"%d %d\",a,b);\n }\n else\n { printf(\"%d %d %d\",a,b,c);}\n }\n }\n scanf(\"%d\",&x); \n return 0;\n} "} +{"label": "93", "index": "46321", "code": "int main()\n{\n int a;\n scanf(\"%d\",&a);\n if(a%3==0&&a%5==0&&a%7==0)\n {\n printf(\"3 5 7\");\n }\n else \n {\n if(a%3==0&&a%5==0)\n {\n printf(\"3 5\");\n }\n else\n {\n if(a%5==0&&a%7==0)\n {\n printf(\"5 7\");\n }\n else\n {\n if(a%3==0&&a%7==0)\n {\n printf(\"3 7\");\n }\n else\n {\n if(a%3==0)\n {\n printf(\"3\");\n }\n else\n {\n if(a%5==0)\n {\n printf(\"5\");\n }\n else\n {\n if(a%7==0)\n {\n printf(\"7\");\n }\n else\n {\n printf(\"n\");\n }\n }\n }\n }\n \n \n }\n }\n }\n return 0;\n}\n"} +{"label": "93", "index": "46322", "code": "void main() \n{\nint x,y,z,a;\nscanf(\"%d\",&a);\nif (a%3==0) x=1;\nelse x=0;\nif (a%5==0) y=1;\nelse y=0;\nif (a%7==0) z=1;\nelse z=0;\nif (x!=1 && y!=1 && z!=1) printf(\"n\");\nif (x==1 && y!=1 && z!=1) printf(\"3\");\nif (x!=1 && y==1 && z!=1) printf(\"5\");\nif (x!=1 && y!=1 && z==1) printf(\"7\");\nif (x==1 && y==1 && z!=1) printf(\"3 5\");\nif (x==1 && y!=1 && z==1) printf(\"3 7\");\nif (x!=1 && y==1 && z==1) printf(\"5 7\");\nif (x==1 && y==1 && z==1) printf(\"3 5 7\");\n}"} +{"label": "93", "index": "46323", "code": "int main(){\nint n,t=0;\nscanf(\"%d\",&n);\nif(n%3==0){\nt=t+3;}\nif(n%5==0){\nt=t+5;}\nif(n%7==0){\nt=t+7;}\nif(t==0){\nprintf(\"n\");}\nif(t==3){printf(\"3\");}\nif(t==5){printf(\"5\"); }\nif(t==7){printf(\"7\");}\nif(t==8){printf(\"3 5\"); }\nif(t==10){printf(\"3 7\");}\nif(t==12){printf(\"5 7\");}\nif(t==15){printf(\"3 5 7\");}\n\nreturn 0;\n}"} +{"label": "93", "index": "46324", "code": "int main(){\nint a;\nscanf(\"%d\",&a);\nif (a%105==0){\n\tprintf(\"3 5 7\");\n}\nelse if (a%21==0&&a%5!=0){\n printf(\"3 7\");\n}\nelse if (a%35==0&&a%3!=0){\n printf(\"5 7\");\n}\nelse if (a%15==0&&a%7!=0){\n printf(\"3 5\");\n}\nelse if (a%3==0&&a%5!=0&&a%7!=0){\n printf(\"3\");\n}\nelse if (a%5==0&&a%3!=0&&a%7!=0){\n printf(\"5\");\n}\nelse if (a%7==0&&a%3!=0&&a%5!=0){\n printf(\"7\");\n}\nelse{\n\tprintf(\"n\");\n}\nreturn 0;\n}\n\n"} +{"label": "93", "index": "46325", "code": "int main()\n{\n int a,b=0;\n cin>>a;\n if(a%3==0)\n {\n cout<<3;\n b=1;\n }\n if(a%5==0)\n {\n if(b==1)\n cout<<\" \";\n cout<<5;\n b=1;\n }\n if(a%7==0)\n {\n if(b==1)\n cout<<\" \";\n cout<<7;\n b=1;\n }\n if(b==0)\n cout<<\"n\";\n cout<> x; //????\n\n\tif (x % 3 == 0)\n\t{\n\t\tcout << \"3\";\n\t}\n\tif (x % 5 == 0)\n\t{\n\t\tif( x % 3 == 0)\n\t\t{\n\t\t\tcout << \" \";\n\n\t\t}\n\t\tcout << \"5\";\n\t}\n\tif (x % 7 == 0)\n\t{\n\t\tif( x % 3 == 0 || x % 5 == 0)\n\t\t{\n\t\t\tcout << \" \";\n\t\t}\n\t\tcout << \"7\";\n\t}\n\tif ( x % 3 != 0 && x % 5 != 0 && x % 7 != 0)\n\t{\n\t\tcout << \"n\";\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46327", "code": "//* * * * * * * * * * * * * * * * */\n//* ??:??????3?5?7?? */\n//* ??:??? */\n//* ??:2012-10-07 */\n//* ??:1200012957 */\n//* * * * * * * * * * * * * * * * */\nint main()\n{\n\tint a, a3, a5, a7; \n\tcin >> a; //???????\n\ta3 = a % 3; \n\ta5 = a % 5;\n\ta7 = a % 7; //??????3?5?7????????????\n\tif (a3 == 0)\n\t\tif (a5 == 0)\n\t\t\tif (a7 == 0)\n\t\t\t\tcout << \"3 5 7\" << endl; \n\t\t\telse cout << \"3 5\" << endl;\n\t\telse \n\t\t\tif (a7 == 0)\n\t\t\t\tcout << \"3 7\" << endl;\n\t\t\telse cout << \"3\" << endl;\n\telse\n\t\tif (a5 == 0)\n\t\t\tif (a7 == 0)\n\t\t\t\tcout << \"5 7\" << endl;\n\t\t\telse cout << \"5\" << endl;\n\t\telse\n\t\t\tif (a7 == 0)\n\t\t\t\tcout << \"7\" << endl;\n\t\t\telse cout << \"n\" << endl;\n\t\n\t\t\t//??????????????????????????????????????\n\treturn 0;\n}"} +{"label": "93", "index": "46328", "code": "//*********************************************\n//*@file:5_cpp *\n//*@author:??? 1200012894 *\n//*@date?2012.10.2 *\n//*@function?????????3,5,7?? *\n//*********************************************\n\n\n\nint main()\n{\n int x; //x???????\n char n; //??????n\n cin >> x;\n\t\n /*??x??3?????x???5??;\n ??x???3???????x???5??*/\n if (x % 3 ==0) \n {\n /*??x??3,5???????x???7???\n ??x???5???????x???7??*/\n if (x % 5 ==0) \n { \n\t/*??x????3,5,7???\n ??3,5,7,????????????\n ??x??3?5??????7?????3?5*/\n if(x % 7 ==0)\n { \n\t cout << 3 << \" \" << 5 << \" \" << 7 ; \n }\n\t else\n {\n\t cout << 3 << \" \" << 5;\n }\n\t\t}\n else if (x % 7 == 0)\n {\n\t\t\tcout << 3 << \" \" << 7;\n }\n\n /*??x???3?????3*/\n else \n { \n cout << 3;\n\t }\n\t}\n\n /*??x???5???????x???7??*/\n else if (x % 5 == 0)\n\t{\n\t\tif (x % 7 == 0)\n {\n\t cout << 5 << \" \" << 7;\n }\n\t else \n {\n\t\t cout << 5;\n }\n }\n else if (x % 7 ==0)\n {\n\t cout << 7;\n }\n else \n {\n\t\tcout << 'n';\n }\n\treturn 0;\n}\n"} +{"label": "93", "index": "46329", "code": "int main(int argc,char *argv[])\n{\n int n,i,a[3]={0,0,0},flag=0;\n scanf(\"%d\",&n);\n for(i=0;i<3;i++)if(n%(3+2*i)==0){a[i]=1;flag=1;}\n if(flag==0)printf(\"n\\n\");\n else for(i=0;i<3;i++)if(a[i]==1){printf(\"%d\",3+2*i);break;}\n for(i+=1;i<3;i++)if(a[i]==1)printf(\" %d\",3+2*i);\n printf(\"\\n\");\n return 0;\n}"} +{"label": "93", "index": "46330", "code": "\nint main ()\n{\n\tint a,b[3],c[3],i,j=0;\n\tscanf(\"%d\\n\",&a);\n\tb[0]=3;\n\tb[1]=5;\n b[2]=7;\n\tfor(i=0;i<3;i++)\n\t{\n\t\tif(a%b[i]==0)\n\t\t{\n\t\t\tc[j]=b[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tif(j==1)\n\t{\nprintf(\"%d\",c[0]);\n\t\t\t}\n\telse if(j==2)\n{\nprintf(\"%d %d\",c[0],c[1]);\n}\nelse if(j==3)\n{\nprintf(\"%d %d %d\",c[0],c[1],c[2]);\n}\nelse if(j==0)\n\t{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46331", "code": "int main(){\n int n,i;\n scanf(\"%d\",&n);\n if(n%3==0&&n%5==0&&n%7==0) printf(\"3 5 7\");\n else if(n%3==0&&n%5==0) printf(\"3 5\");\n else if(n%3==0&&n%7==0) printf(\"3 7\");\n else if(n%5==0&&n%7==0) printf(\"5 7\");\n else if(n%3==0) printf(\"3\");\n else if(n%5==0) printf(\"5\");\n else if(n%7==0) printf(\"7\");\n else if(n%3!=0&&n%5!=0&&n%7!=0) printf(\"n\");\n \n \n \n \n scanf(\"%d\",&i);\n return 0;\n }\n\n"} +{"label": "93", "index": "46332", "code": "/**\n*@file 5.cpp\n*@author ??? 1300012841\n*@date 2013-09-25\n*@description ??3?5?7????\n*/\n\n\nint main()\n{\nint num;\n\tscanf(\"%d\",&num);\n int x;\nx=0;\nif(num%3==0)\n\t{cout << \"3\" ;x=1;}\nif(num%5==0)\n\t{if(x==1)cout<<\" \";\n cout << \"5\" ;\n x=1;}\nif(num%7==0)\n\t{if(x==1)cout<<\" \"; \n cout << \"7\";}\nif((num%7==0||num%3==0||num%5==0)==0)\n\tcout << \"n\" << endl;\nelse cout<> n;\n\tint sum = 0;\n\tfor(int i = 3; i <= 7; i = i+2)\n\t{\n if((n%i) == 0)\n sum = sum + 1;\n }\n int t = 0;\n for(int i = 3; i <= 7; i = i+2)\n\t{\n if((n%i) == 0)\n {\n t = t + 1;\n if(t < sum) cout << i <<\" \";\n else cout << i ;\n }\n }\n if(sum == 0) cout << 'n';\n\t//while(1);\n\treturn 0;\n}\n"} +{"label": "93", "index": "46335", "code": "int main()\n{\n int a,Na,Nb,Nc;\n cin>>a;\n Na=a%3;\n Nb=a%5;\n Nc=a%7;\n if(Na==0&&Nb==0&&Nc==0)\n cout<<\"3 5 7\";\n else\n if(Na==0&&Nb==0)\n cout<<\"3 5\";\n else\n if(Na==0&&Nc==0)\n cout<<\"3 7\";\n else\n if(Nb==0&&Nc==0)\n cout<<\"5 7\";\n else\n if(Na==0)\n cout<<\"3\";\n else\n if(Nb==0)\n cout<<\"5\";\n else\n if(Nc==0)\n cout<<\"7\";\n else\n cout<<\"n\";\n return 0;\n}"} +{"label": "93", "index": "46336", "code": "//************************\n// * 5.cpp\n// * ??3?5?7????\n// * Created on: 2012-9-30\n// * Author: ?? 1200012934\n// ************************\nint main() //???\n{\n\tint n; //????n\n\tcin >> n; //??n\n\tif (n % 3 == 0) //?n??3????\n\t {if (n % 5 == 0)\n\t {if (n % 7 == 0)\n\t \t cout << \"3 5 7\";//n??3?5?7??\n\t else\n\t \t cout << \"3 5\"; //n??3?5??\n\t }\n\t else //??n??3??????5??\n\t {if (n % 7 == 0)\n\t\t cout << \"3 7\"; //n??3?7??\n\t else\n\t\t cout << \"3\"; //n???3??\n\t }\n\t }\n\telse //?n???3????\n\t {if (n % 5 == 0)\n\t {if (n % 7 == 0)\n\t\t cout << \"5 7\"; //n??5?7??\n\t else //??n???7??\n\t\t cout << \"5\"; //n???5??\n\t }\n\t else //??n???5??\n\t {if (n % 7 == 0)\n\t\t cout << \"7\"; //n??7??\n\t else //??n???7??\n\t\t cout << \"n\"; //n???3?5?7??\n\t }\n\t }\n return 0;\n} //?????\n"} +{"label": "93", "index": "46337", "code": "int main()\n{\n int a=0,b=0;\n cin>>a;\n if(a%3==0)\n {b=b+1;} else{b=b+20;}\n if(a%5==0)\n {b=b+3;} else{b=b+20;}\n if(a%7==0)\n {b=b+5;} else{b=b+20;}\n if(b==9){cout<<\"3 5 7\";}else{}\n if(b==24){cout<<\"3 5\";}else{}\n if(b==26){cout<<\"3 7\";}else{}\n if(b==28){cout<<\"5 7\";}else{}\n if(b==41) {cout<<\"3\";}else{}\n if(b==43){cout<<\"5\";}else{}\n if(b==45){cout<<\"7\";}else{}\n if(b==60){cout<<'n';}else{}\nreturn 0;\n}\n "} +{"label": "93", "index": "46338", "code": "//*********************************************\n// *file: 4.cpp\n// *author: ????1200012986?\n// *date: 2012-10-06\n// *description:\n// ???????:??3?5?7???? \n//*********************************************\n\nint main() // ??? \n{\n\tint k, a, b, c, m; // ??????k\n\tcin >> k; // ??????\n\n\tif (k % 3 == 0) // ??k???3??\n\t\ta = 0; // ???3??,??a?0\n\telse\n\t\ta = 1; // ??,??a?1\n\n\tif (k % 5 == 0) // ??k???5??\n\t\tb = 0; // ???5??,??b?0\n\telse\n\t\tb = 2; // ??,??b?2\n\n\tif (k % 7 == 0) // ??k???7??\n\t\tc = 0; // ???7??,??c?0\n\telse\n\t\tc = 4; // ??,??c?4\n\n\tm = a + b + c; // ????????\n\t\n\tswitch (m) // ??m?????????\n\t{\n\tcase 0:\n\t\tcout << \"3\" << \" \" << \"5\" << \" \" << \"7\" << endl; // k????3,5,7??\n\t\tbreak; // ??switch??\n\t\n\tcase 1:\n\t\tcout << \"5\" << \" \" << \"7\" << endl; // k????5,7??????3??\n\t\tbreak; // ??switch??\n\t\n\tcase 2:\n\t\tcout << \"3\" << \" \" << \"7\" << endl; // k????3,7??????5??\n\t\tbreak; // ??switch??\n\t\n\tcase 3:\n\t\tcout << \"7\" << endl; // k???7??\n\t\tbreak; // ??switch??\n\t\n\tcase 4:\n\t\tcout << \"3\" << \" \" << \"5\" << endl; // k????3,5??????7??\n\t\tbreak; // ??switch??\n\t\n\tcase 5:\n\t\tcout << \"5\" << endl; // k???5??\n\t\tbreak; // ??switch??\n\t\n\tcase 6:\n\t\tcout << \"3\" << endl; // k???3??\n\t\tbreak; // ??switch??\n\t\n\tdefault:\n\t\tcout << 'n' << endl; // k????????\n\t\tbreak; // ??switch??\n\t}\n\n\treturn 0;\n} // ?????\n"} +{"label": "93", "index": "46339", "code": "int main()\n{\n int n,a,b,c;\n a=3;\n b=5;\n c=7;\n scanf(\"%d\",&n);\n if (n%3==0){\n printf(\"%d\",a);\n if(n%5==0){\n printf(\" %d\",b);\n if (n%7==0)\n printf(\" %d\",c);\n }\n else if(n%7==0)\n printf(\" %d\",c);\n }\n else if(n%5==0){\n printf(\"%d\",b);\n if (n%7==0)\n printf(\" %d\",c);\n }\n else if(n%7==0)\n printf(\"%d\",c);\n else\n printf(\"n\\n\"); \n \n return 0;\n} \n"} +{"label": "93", "index": "46340", "code": "int main()\n{\n int a;\n char b='3';\n char c='5';\n char d='7';\n char e='n';\n\n scanf(\"%d\", &a);\n if(a%3==0 && a%5==0 && a%7==0)\n\t printf(\"%s\",\"3 5 7\");\n else if(a%3==0 && a%5==0)\n\t printf(\"%s\",\"3 5\");\n else if(a%5==0 && a%7==0)\n\t printf(\"%s\", \"5 7\");\n else if(a%3==0 && a%7==0)\n\t printf(\"%s\", \"3 7\");\n else if(a%3==0)\n\t printf(\"%c\",b);\n else if(a%5==0)\n\t printf(\"%c\",c);\n else if(a%7==0)\n\t printf(\"%c\",d);\n else\n\t printf(\"%c\",e);\n \n return 0;\n\n}"} +{"label": "93", "index": "46341", "code": "int main()\n{\n\tint a,b,c,d;\n\tscanf(\"%d\",&a);\n\tb=a%3;\n\tc=a%5;\n\td=a%7;\n\tif(b==0&&c==0&&d==0){\n\t\tprintf(\"3 5 7\");\n\t}\n\telse if(b==0&&c==0&&d!=0){\n\t\tprintf(\"3 5\");\n\t}\n\telse if(b!=0&&c==0&&d==0){\n\t\tprintf(\"5 7\");\n\t}\n\telse if(b==0&&c!=0&&d==0){\n\t\tprintf(\"3 7\");\n\t}\n\telse if(b==0&&c*d!=0){\n\t\tprintf(\"3\");\n\t}\n\telse if(c==0&&b*d!=0){\n\t\tprintf(\"5\");\n\t}\n\telse if(d==0&&b*c!=0){\n\t\tprintf(\"7\");\n\t}\n\telse {\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46342", "code": "\nvoid print(int, int);\nint flag;\n\nint main()\n{\n int a3 = 0, a5 = 0, a7 = 0;\n int n;\n\n scanf(\"%d\", &n);\n a3 = (n%3)==0?1:0;\n a5 = (n%5)==0?1:0;\n a7 = (n%7)==0?1:0;\n\n if (a3+a5+a7 == 0) {\n printf(\"n\");\n return 0;\n }\n\n print(a3, 3);\n print(a5, 5);\n print(a7, 7);\n\n return 0;\n}\n \nvoid print(int a, int num)\n{\n if (a) {\n if (flag)\n printf(\" %d\", num);\n else\n printf(\"%d\", num);\n flag = 1;\n }\n}"} +{"label": "93", "index": "46343", "code": "\nint main()\n{\n\tint a,s=0;\n\tscanf(\"%d\",&a);\n\tif (a%3==0) \n\t{\n\tprintf(\"3\");\n\ts=1;\n\t}\n\tif (a%5==0) \n\t{\n\t\tif (s==1)\n\t\t\tprintf(\" \");\n\t\tprintf(\"5\");\n\t\ts=1;\n\t}\n\tif (a%7==0)\n\t{\n\t\tif (s==1)\n\t\t\tprintf(\" \");\n\t\tprintf(\"7\");\n\t}\n\tif(a%3!=0&&a%5!=0&&a%7!=0)\n\t\tprintf(\"n\");\n\treturn 0;\n}\n"} +{"label": "93", "index": "46344", "code": "\nint main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)\n\tprintf(\"%d %d %d\",3, 5, 7);\nif(a%3==0&&a%5==0&&a%7!=0)\n\tprintf(\"%d %d\",3, 5);\nif(a%3==0&&a%5!=0&&a%7==0)\n\tprintf(\"%d %d\",3, 7);\nif(a%3!=0&&a%5==0&&a%7==0)\n\tprintf(\"%d %d\",5, 7);\nif(a%3!=0&&a%5!=0&&a%7!=0)\n\tprintf(\"n\");\nif(a%3==0&&a%5!=0&&a%7!=0)\n\tprintf(\"%d\",3);\nif(a%3!=0&&a%5==0&&a%7!=0)\n\tprintf(\"%d\",5);\nif(a%3!=0&&a%5!=0&&a%7==0)\n\tprintf(\"%d\",7);\n\treturn 0;\n}"} +{"label": "93", "index": "46345", "code": "\nint main()\n{\n\tint n=0, x;\n\tscanf(\"%d\", &x);\n\tif(x%3==0)\n\t{\n\t\tprintf(\"3\");\n\t\tn++;\n\t}\n\tif(x%5==0)\n\t{\n\t\tif(n!=0) printf(\" \");\n\t\tprintf(\"5\");\n\t\tn++;\n\t}\n\tif(x%7==0)\n\t{\n\t\tif(n!=0) printf(\" \");\n\t\tprintf(\"7\");\n\t\tn++;\n\t}\n\tif(n==0) printf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46346", "code": "void main()\n{\n int x,a,b,c;\n char d='n';\n a=3;b=5;c=7;\n scanf(\"%d\",&x);\n if(x % 105==0)\n\t printf(\"%d %d %d\\n\",a,b,c);\n else{\n if(x % 15==0)\n\t printf(\"%d %d\\n\",a,b);\n if(x % 21==0)\n\t printf(\"%d %d\\n\",a,c);\n if(x % 35==0)\n\t printf(\"%d %d\\n\",b,c);\n if(x % 3==0 && x % 5!=0 && x % 7!=0)\n\t printf(\"%d\\n\",a);\n if(x % 5==0 && x % 3!=0 && x % 7!=0)\n\t printf(\"%d\\n\",b);\n if(x % 7==0 && x % 5!=0 && x % 3!=0)\n\t printf(\"%d\\n\",c);\n if(x % 3!=0 && x % 7!=0 && x % 5!=0)\n printf(\"%c\\n\",d);\n }\n}"} +{"label": "93", "index": "46347", "code": "main()\n{\n\tint a,b,c,d;\n\t a=3;\n\t\tb=5;\n\t\tc=7;\n\tscanf(\"%d\",&d);\n\tif(d%a==0)\n\t if(d%b==0)\n\t if(d%c==0)\n\t printf(\"%d %d %d\",a,b,c);\n\t else printf(\"%d %d\",a,b);\n\telse\n\t\tif(d%c==0)\n\t\t\tprintf(\"%d %d\",a,c);\n else\n\t\t\t printf(\"%d\",a);\n\telse\n\t\tif(d%b==0)\n\t\t\tif(d%c==0)\n\t\t\t\tprintf(\"%d %d\",b,c);\n\t\t\telse printf(\"%d\",b);\n\t\telse \n\t\t\tif(d%c==0)\n\t\t\t\tprintf(\"%d\",c);\n else printf(\"n\");\n}"} +{"label": "93", "index": "46348", "code": "int main()\n{int zs;\n cin>>zs;\n if(zs%105==0)\n\t cout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\"<> a;\n\tif(a%105==0)\n\t\tcout << \"3 5 7\";\n\telse\n\t\tif(a%15==0||a%21==0||a%35==0)\n\t{\n\tif(a%15==0)\n\t\tcout <<\"3 5\";\n\t\tif(a%21==0)\n\t\t\tcout <<\"3 7\";\n\t\t\tif(a%35==0)\n\t\t\t\tcout << \"5 7\";\n\t}\n\telse\n\t\tif(a%3==0||a%5==0||a%7==0)\n\t{\n\tif(a%3==0)\n\t\tcout << \"3\" ;\n\tif(a%5==0)\n\t\tcout << \"5\" ;\n\tif(a%7==0)\n\t\tcout << \"7\" ;\n\t}\n\telse\n\t\tcout << \"n\";\n\treturn 0;\n}"} +{"label": "93", "index": "46351", "code": "\nint main(){\n\tint x;\n\tscanf(\"%d\",&x);\n\tif((x%3==0)&&(x%5==0)&&(x%7==0))\n\t\tprintf(\"3 5 7\");\n\telse if((x%3==0)&&(x%5==0)&&(x%7!=0))\n\t\tprintf(\"3 5\");\n\telse if((x%5==0)&&(x%7==0)&&(x%3!=0))\n\t\tprintf(\"5 7\");\n\telse if((x%3==0)&&(x%7==0)&&(x%5!=0))\n\t\tprintf(\"3 7\");\n\telse if((x%3==0)&&(x%5!=0)&&(x%7!=0))\n\t\tprintf(\"3\");\n\telse if((x%3!=0)&&(x%5==0)&&(x%7!=0))\n\t\tprintf(\"5\");\n\telse if((x%3!=0)&&(x%5!=0)&&(x%7==0))\n\t\tprintf(\"7\");\n\telse\n\t\tprintf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46352", "code": "int main()\n{\n\tint a;\n\tcin>>a;\n\tif((a%3==0)&&(a%5==0)&&(a%7==0))\n\t{\n\t\tcout<<\"3 5 7\";\n\t}\n\tif((a%3==0)&&(a%5==0)&&(a%7!=0))\n\t{\n\t\tcout<<\"3 5\";\n\t}\n\tif((a%3==0)&&(a%7==0)&&(a%5!=0))\n\t{\n\t\tcout<<\"3 7\";\n\t}\n\tif((a%5==0)&&(a%7==0)&&(a%3!=0))\n\t{\n\t\tcout<<\"5 7\";\n\t}\n\tif((a%3==0)&&(a%5!=0)&&(a%7!=0))\n\t{\n\t\tcout<<\"3\";\n\t}\n\tif((a%3!=0)&&(a%5==0)&&(a%7!=0))\n\t{\n\t\tcout<<\"5\";\n\t}\n\tif((a%3!=0)&&(a%5!=0)&&(a%7==0))\n\t{\n\t\tcout<<\"7\";\n\t}\n\tif((a%3!=0)&&(a%5!=0)&&(a%7!=0))\n\t{\n\t\tcout<<\"n\";\n\t}\n\t\n\treturn 0;\n}"} +{"label": "93", "index": "46353", "code": "//***********************************************************************\n//* \u00d7\u00f7Òµ£ºÄÜ\u00b1»3,5,7Õû³ýµÄÊý *\n//* \u00d7\u00f7ÕߣºÅ˺ç *\n//* Ê\u00b1¼ä£º2013.09.28 *\n//***********************************************************************\nint main()\n{\n\tint num, i, a[3];\n\tcin >> num;\n\ti = 0;\n\t\n\tif (num % 3 == 0) \n\t{\n\t\ta[i] = 3;\n\t\ti ++;\n\t}\n\tif (num % 5 == 0)\n\t{\n a[i] = 5;\n\t\ti ++;\n\t}\n\tif (num % 7 == 0)\n {\n\t\ta[i] = 7;\n\t i++;\n\t}\n\ti --;\n\n\n\n\tif (i == -1 )\n\t\tcout << \"n\";\n\telse\n\t{\n\t\tfor (int j=0; j<= i; j++) \n\t\t{\n\t\t cout << a[j];\n\t\t if (j < i)\n\t\t\t cout << \" \";\n\t\t}\n\t}\n\n\treturn 0;\n}\n\n\t\t\n\t\n\n"} +{"label": "93", "index": "46354", "code": "int main()\n{\nint a,b,c,d;\nscanf(\"%d\",&a);\nb=a%3;\nc=a%5;\nd=a%7;\nif(b==0&c==0&d==0)printf(\"%d %d %d\",3,5,7);\nelse if(b==0&c==0)printf(\"%d %d\",3,5);\n else if(b==0&d==0)printf(\"%d %d\",3,7);\n else if(c==0&d==0)printf(\"%d %d\",5,7);\n else if(b==0)printf(\"%d\",3);\n else if(c==0)printf(\"%d\",5);\n else if(d==0)printf(\"%d\",7); \n else printf(\"n\");\n\nreturn 0;\n\n}\n"} +{"label": "93", "index": "46355", "code": "\n\nint main() {\n\tint number;\n\tint divisors[] = {3, 5, 7};\n\tint flag;\n\t\n\tcin >> number;\n\tflag = 0;\n\t\n\tfor (int i=0; i<3; i++) {\n\t\tif (number % divisors[i] == 0) {\n\t\t\tif (flag == 1)\n\t\t\t\tcout << ' ';\n\t\t\tcout << divisors[i];\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << 'n';\n\t\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "93", "index": "46356", "code": "int main()\n{\n\tint a,b=3,c=5,d=7;\n\tscanf(\"%d\",&a);\n if(a%b==0&&a%c==0&&a%d==0)\n\t\tprintf(\"%d %d %d\",b,c,d);\n\telse if(a%b==0&&a%c==0&&a%d!=0)\n printf(\"%d %d\",b,c);\n\telse if(a%b==0&&a%d==0&&a%c!=0)\n printf(\"%d %d\",b,d);\n\telse if(a%c==0&&a%d==0&&a%b!=0)\n printf(\"%d %d\",c,d);\n\telse if(a%b==0&&a%c!=0&&a%d!=0)\n\t\tprintf(\"%d\",b);\n else if(a%c==0&&a%d!=0&&a%b!=0)\n\t\tprintf(\"%d\",c);\n\telse if(a%d==0&&a%c!=0&&a%b!=0)\n\t\tprintf(\"%d\",d);\n\telse \n\tprintf(\"n\");\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46357", "code": "int main ()\n{\n\tint a;\n\tcin>>a;\n\tif (a%105==0)\n\t\tcout<<\"3 5 7\"<>a;\nif(a%3==0&&a%5!=0&&a%7!=0) cout<<3;\nelse if(a%5==0&&a%3!=0&&a%7!=0) cout<<5;\nelse if(a%7==0&&a%3!=0&&a%5!=0) cout<<7;\nelse if(a%15==0&&a%7!=0) cout<<3<<\" \"<<5;\nelse if(a%21==0&&a%5!=0) cout<<3<<\" \"<<7;\nelse if(a%35==0&&a%3!=0) cout<<5<<\" \"<<7;\nelse if(a%105==0) cout<<3<<\" \"<<5<<\" \"<<7;\nelse cout<<'n';\nreturn 0;}"} +{"label": "93", "index": "46359", "code": "int main()\n{\n\tint num;\n\tchar n;\n\tcin>>num;\n\tif(num%3==0&&num%5==0&&num%7==0)\n\t\tcout<<3<<\" \"<<5<<\" \"<<7<0) \n\t\t\t\tprintf(\" \");\n\t\t\tprintf(\"%d\",j);\n\t\t\tt++;\t\t\t\n\t\t}\n\t}\n\tif(t==0)\n\tprintf(\"n\");\n\tprintf(\"\\n\");\n}\n"} +{"label": "93", "index": "46361", "code": "int main()\n{\n\tint x;\n\tscanf(\"%d\",&x);\n\tif(x%3==0&&x%5==0&&x%7==0)\n\t\tprintf(\"3 5 7\");\n\telse if(x%3==0)\n\t if(x%5==0)\n\t\t printf(\"3 5\");\n\t\telse if(x%7==0)\n\t\t\tprintf(\"3 7\");\n\t\telse \n\t\t\tprintf(\"3\");\n\telse if(x%5==0)\n\t\tif(x%7==0)\n\t\t\tprintf(\"5 7\");\n\t\telse\n\t\t\tprintf(\"5\");\n\telse if(x%7==0)\n\t\tprintf(\"7\");\n\telse\n\t\tprintf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46362", "code": "void main()\n{int z,i;\n i=0;\n scanf(\"%d\",&z);\n if(z%3==0)\n {printf(\"3\");i=i+1;}\n if(z%5==0)\n {if(i==1){printf(\" \");}printf(\"5\");i=i+1;}\n if(z%7==0)\n {if(i!=0){printf(\" \");}printf(\"7\");i=i+1;}\n if(i==0)\n {printf(\"n\");}\n}\n\n \n \n "} +{"label": "93", "index": "46363", "code": "int op(int n,int i)//????,???????????\n{\n\tif(i==1) cout<<\" \";\n\tcout<>n;\n\tfor (int k=3;k<=7;k+=2)//???????????k??\n\t{\n\t\tif (n%k==0) \n\t\t{\n\t\t\top(k,i);\n\t\t\ti=1;\n\t\t}\n\t}\n\tif (i==0) cout<<'n';//??????,??n\n\treturn 0;\n}\n"} +{"label": "93", "index": "46364", "code": "int main()\n{\n\tint k ;\n\tcin >> k;\n\tif( k % 3 == 0 )\n\t{\n\t\tcout << 3;\n\t\tif( k % 5 == 0 )\n\t\t{\n\t\t\tcout << ' ' << 5;\n\t\t\tif( k % 7 == 0 )\n\t\t\t\tcout << ' ' << 7;\n\t\t}\n\t\telse\n\t\t\tif( k % 7 == 0 )\n\t\t\t\tcout << ' ' << 7;\n\t}\n\telse\n\t\tif( k % 5 == 0 )\n\t\t{\n\t\t\tcout << 5;\n\t\t\tif( k % 7 == 0 )\n\t\t\t\tcout << ' ' << 7;\n\t\t}\n\t\telse\n\t\t\tif( k % 7 == 0 )\n\t\t\t\tcout << 7;\n\tif( k % 3 != 0 && k % 5 != 0 && k % 7 != 0 )\n\t\tcout << 'n';\n\treturn 0;\n}"} +{"label": "93", "index": "46365", "code": "void main()\n{\n\tint m;\n\tscanf(\"%d\",&m);\n\tif(m%3*m%5*m%7==0)\n\t{\n\t\tif(m%3==0&&m%5*m%7==0)\n\t\tprintf(\"3 \");\n\t\tif(m%3==0&&m%5*m%7!=0)\n\t\t\tprintf(\"3\");\n\tif(m%5==0&&m%7==0)\n printf(\"5 \");\n\tif(m%5==0&&m%7!=0)\n\t\tprintf(\"5\");\n\tif(m%7==0)\n\t\tprintf(\"7\\n\");\n\t}\n\telse printf(\"n\\n\");\n}"} +{"label": "93", "index": "46366", "code": "int main()\n{\n\tint a,b,c,d,e,f,g,x,h,i,j,k,l,m,n,s;\n\tscanf(\"%d\",&x);\n\ta=3;\n\tb=5;\n\tc=7;\n\td=a*b*c;\n\te=a*b;\n\tf=a*c;\n\tg=b*c;\n\th=x%d;\n\ti=x%e;\n\tj=x%f;\n\tk=x%g;\n\tl=x%a;\n\tm=x%b;\n\tn=x%c;\n\ts=l*m*n;\n\tif(h==0)\tprintf(\"%d %d %d\",a,b,c);\n\telse if(i==0)\tprintf(\"%d %d\",a,b);\n\t\t else if(j==0)\tprintf(\"%d %d\",a,c);\n else if(k==0)\tprintf(\"%d %d\",b,c); \n\t\t\t else if(l==0)\tprintf(\"%d\",a); \n\t\t\t\t else if(m==0)\tprintf(\"%d\",b); \n\t\t\t\t else if(n==0)\tprintf(\"%d\",c); \n\t\t\t \n\t\t\t else\n\n\tprintf(\"n\");\n\n}"} +{"label": "93", "index": "46367", "code": "\n//????:??3 5 7 ????\n//? ?????\n//? ??2013?10?7?\n\n\nint main() //?????\n{ //?????\n\tint a ; //????????a\n\tcin >> a ; //???????\n\n\tif ( a % 3 == 0 && a % 5 == 0 && a % 7 == 0) //????3 5 7 ??????3 5 7??????3,5??3,7??5,7??3??5??7??????????????\n\t\tcout << \"3 5 7\" << endl ; \n\telse if ( a % 3 == 0 && a % 5 == 0 && a % 7 !=0) \n\t\tcout << \"3 5\" << endl ;\n\telse if ( a % 3 == 0 && a % 7 == 0)\n\t\tcout << \"3 7\" << endl ;\n\telse if ( a % 5 == 0 && a % 7 == 0)\n\t\tcout << \"5 7\" << endl ;\n\telse if ( a % 3 == 0 )\n\t\tcout << \"3\" << endl ;\n\telse if ( a % 5 == 0 )\n\t\tcout << \"5\" << endl ;\n\telse if ( a % 7 == 0 )\n\t\tcout << \"7\" << endl ;\nelse\n\t\tcout << \"n\" << endl ;\n\treturn 0 ; //?????????0\n} //?????\n\n"} +{"label": "93", "index": "46368", "code": "int main()\n{\n\tint a, b=3, c=5 ,d=7;\n\tscanf(\"%d\",&a);\n\tif(a%3==0 && a%5==0 && a%7==0)\n { \n\t\tprintf(\"%d %d %d\",b,c,d);\n }\n\telse if(a%3==0 && a%5==0 && a%7!=0)\n\t{\n\t\tprintf(\"%d %d\",b,c);\n\t}\n else if(a%3==0 && a%5!=0 && a%7==0)\n\t{\n\t\tprintf(\"%d %d\",b,d);\n\t}\n else if(a%3!=0 && a%5==0 && a%7==0)\n\t{\n\t\tprintf(\"%d %d\",c,d);\n\t}\n else if(a%3==0 && a%5!=0 && a%7!=0)\n\t{\n\t printf(\"%d\",b);\n\t}\n else if(a%3!=0 && a%5==0 && a%7!=0)\n\t{\n printf(\"%d\",c);\n\t}\n else if(a%3!=0 && a%5!=0 && a%7==0)\n\t{\n printf(\"%d\",d);\n\t}\n\telse if(a%3!=0 && a%5!=0 && a%7!=0)\n\t{\n\t\tprintf(\"%c\",'n');\n\t}\n\t\treturn 0;\n}"} +{"label": "93", "index": "46369", "code": "int main()\n{\n int n;\n int i,m,p;\n while(cin>>n)\n {\n\t m=0;p=0;\n for(i=3;i<=7;i+=2)\n\t {if(n%i==0)m++;} \n\t if(m==3)\n\t\t cout<<\"3 5 7\"<> z;\n\ta = z % 3 == 0;\t\t\t\t\t\t\t\t\t\t\t\t\t//??z?3?5?7???????????a?b?c=1\n\tb = z % 5 == 0;\n\tc = z % 7 == 0;\n\tif (a && b && c) cout << \"3 5 7\" << endl;\t\t\t\t\t\t//?????????????3 5 7\n\telse if (a && b) cout << \"3 5\" << endl;\t\t\t\t\t\t\t//????????????????????????\n\telse if (a && c) cout << \"3 7\" <>n;\n\tif(n%3==0)\n\t{\n\t\tcout<<\"3\";\n\t\tif(n%5==0)\n\t\t\tcout<<\" 5\";\n\t\tif(n%7==0)\n\t\t\tcout<<\" 7\";\n\t}\n\telse\n\t{\n\t\tif(n%5==0)\n\t\t{\n\t\t\tcout<<\"5\";\n\t\t\tif(n%7==0)\n\t\t\t\tcout<<\" 7\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(n%7==0)\n\t\t\t\tcout<<\"7\";\n\t\t\telse\n\t\t\t cout<<\"n\";\n\t\t}\n\t}\n\treturn 0;\n\t//*************************************************************************************************************\n\t//??if????????????????3,5,7??????????????????????????????????\n\t//???????????????????????????\n}"} +{"label": "93", "index": "46372", "code": "void main()\n{\n\tint a,b[3]={3,5,7},i;\n\tscanf(\"%d\",&a);\n\tfor(i=0;i<3;i++)\n\t{\n\t\tif(a%b[i]==0)\n\t\t{\tprintf(\"%d\",b[i]);\n\t\t if(a%b[i+1]==0&&i+1<3)\n\t\t\t\tputchar(' ');\n\t\t\telse if(a%b[i+2]==0&&i+2<3)\n\t\t\t\tputchar(' ');\n\t\t}\n\t\telse if(a%b[i]!=0&&a%b[i+1]!=0&&a%b[i+2]!=0)\n\t\t\tprintf(\"n\");\n\t\t\n\t}\n}\n"} +{"label": "93", "index": "46373", "code": "int main(){\n\tint a,i;\n\tscanf(\"%d\",&a);\n\ti=0;\n if ((a%3==0)&&(a%5==0)&&(a%7==0)) {printf(\"3 5 7\\n\");i=1;}\n\telse if (a%3==0&&a%5==0) {printf(\"3 5\\n\");i=1;}\n\telse if (a%3==0&&a%7==0) {printf(\"3 7\\n\");i=1;}\n\telse if (a%5==0&&a%7==0) {printf(\"5 7\\n\");i=1;}\n\telse if (a%3==0) {printf(\"3\\n\");i=1;}\n\telse if (a%5==0) {printf(\"5\\n\");i=1;}\n\telse if (a%7==0) {printf(\"7\\n\");i=1;}\n\tif (i==0) printf(\"n\\n\");\n return 0;\n}"} +{"label": "93", "index": "46374", "code": "int main()\n{\n\tint iNumber,i,iCount_can=0,iCount_blank_space=0;//iNumber???????iCount_can????????????????iCount_blank_space????????????\n\tcin>>iNumber;\n\tfor(i=3;i<8;i++,i++)\n\t{\n\t\tif(iNumber%i==0) //???????i??\n\t\t{\n\t\t\tif(iCount_blank_space)\n\t\t\t\tcout<<' ';\n\t\t\tcout<> n;\n\tif (n%3==0)//?????3??\n\t\tx=x+3;\n\tif (n%5==0)//?????5??\n\t\tx=x+5;\n\tif (n%7==0)//?????7??\n\t\tx=x+7;\n\tif (x==0) cout << \"n\" << endl;//??x???????\n\tif (x==3) cout << \"3\" << endl;\n\tif (x==5) cout << \"5\" << endl;\n\tif (x==7) cout << \"7\" << endl;\n\tif (x==8) cout << \"3 5\" << endl;\n\tif (x==10) cout << \"3 7\" << endl;\n\tif (x==12) cout << \"5 7\" << endl;\n\tif (x==15) cout << \"3 5 7\" << endl;\n\treturn 0;\n}\n"} +{"label": "93", "index": "46377", "code": "int main()\n{\n\tint a;\n\tint result[4]={0};\n\tchar c='n';\n\n\tscanf(\"%d\",&a);\n\n\tif(a%3==0)\n\t{\n\t\tresult[1]=3;\n\t}\n\telse\n\t{\n\t\tresult[1]=0;\n\t}\n\n\tif(a%5==0)\n\t{\n\t\tresult[2]=5;\n\t}\n\telse\n\t{\n\t\tresult[2]=0;\n\t}\n\n\tif(a%7==0)\n\t{\n\t\tresult[3]=7;\n\t}\n\telse\n\t{\n\t\tresult[3]=0;\n\t}\n\n\n\tif (result[1]!=0 && result[2]==0 && result[3]==0)\n\t{\n\t\tprintf(\"%d\",result[1]);\n\t}\n\n\tif (result[1]==0 && result[2]!=0 && result[3]==0)\n\t{\n\t\tprintf(\"%d\",result[2]);\n\t}\n\n\tif (result[1]==0 && result[2]==0 && result[3]!=0)\n\t{\n\t\tprintf(\"%d\",result[3]);\n\t}\n\n\tif (result[1]!=0 && result[2]!=0 && result[3]==0)\n\t{\n\t\tprintf(\"%d %d\",result[1],result[2]);\n\t}\n\n\tif (result[1]!=0 && result[2]==0 && result[3]!=0)\n\t{\n\t\tprintf(\"%d %d\",result[1],result[3]);\n\t}\n\n\tif (result[1]==0 && result[2]!=0 && result[3]!=0)\n\t{\n\t\tprintf(\"%d %d\",result[2],result[3]);\n\t}\n\n\tif (result[1]!=0 && result[2]!=0 && result[3]!=0)\n\t{\n\t\tprintf(\"%d %d %d\",result[1],result[2],result[3]);\n\t}\n\n\n\n\tif (result[1]==0 && result[2]==0 && result[3]==0)\n\t{\n\t\tprintf(\"%c\",c);\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46378", "code": "int main()\n{\n\tint m;\n\tscanf(\"%d\",&m);\n\tint a=(m%3==0),b=(m%5==0),c=(m%7==0);\n\tif(a==1&&b==1&&c==1) printf(\"3 5 7\");\n\telse if(a==1&&b==1&&c!=1) printf(\"3 5\");\n\telse if(a==1&&b!=1&&c==1) printf(\"3 7\");\n\telse if(a!=1&&b==1&&c==1) printf(\"5 7\");\n\telse if(a==1&&b!=1&&c!=1) printf(\"3\");\n\telse if(a!=1&&b==1&&c!=1) printf(\"5\");\n\telse if(a!=1&&b!=1&&c==1) printf(\"7\");\n\telse printf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46379", "code": "\nint main()\n{\n int a,sum;\n sum=0;\n scanf(\"%d\",&a);\n if (a%3==0)\n sum=sum+3;\n if (a%5==0)\n sum=sum+5;\n if (a%7==0)\n sum=sum+7;\n if (sum==0)\n printf(\"n\");\n if (sum==3)\n printf(\"3\");\n if (sum==5)\n printf(\"5\");\n if (sum==7)\n printf(\"7\");\n if (sum==8)\n printf(\"3 5\");\n if (sum==10)\n printf(\"3 7\");\n if (sum==12)\n printf(\"5 7\");\n if (sum==15)\n printf(\"3 5 7\");\n return 0;\n}\n"} +{"label": "93", "index": "46380", "code": "void main()\n{\n\tint a,m,p,j;\n\tchar t='n';\n\tm=3;p=5;j=7;\n\tscanf(\"%d\",&a);\n\tif(a%3==0 && a%5==0 && a%7==0) printf(\"%d %d %d\",m,p,j);\n\telse if(a%3!=0 && a%5!=0 && a%7!=0) printf(\"%c\",t);\n\telse if(a%3==0 && a%5==0 && a%7!=0) printf(\"%d %d\",m,p);\n\telse if(a%3==0 && a%5!=0 && a%7==0) printf(\"%d %d\",m,j);\n\telse if(a%3!=0 && a%5==0 && a%7==0) printf(\"%d %d\",p,j);\n\telse if(a%3==0) printf(\"%d\",m);\n\telse if(a%5==0) printf(\"%d\",p);\n\telse if(a%7==0) printf(\"%d\",j);printf(\"\\n\");\n}\n"} +{"label": "93", "index": "46381", "code": "int main ( )\n{int n,m=0,a[3];\ncin>>n;\nif (n%3==0) a[m++]=3;\nif (n%5==0) a[m++]=5;\nif (n%7==0) a[m++]=7;\nif (m==0) cout<<\"n\";\nelse\n{\nint i;\nfor (i=0;i>a; \n\tif(a%3==0&&a%5>0&&a%7>0)\n\t{\n\t\tcout <<3;\n\t}\n\tif(a%5==0&&a%3>0&&a%7>0)\n\t{\n\t\tcout <<5;\n\t}\n\tif(a%7==0&&a%5>0&&a%3>0)\n\t{\n\t\tcout <<7;\n\t}\n\tif(a%3==0&&a%5==0&&a%7>0)\n\t{\n\t\tcout <<3<<\" \"<<5;\n\t}\n\tif(a%3==0&&a%5>0&&a%7==0)\n\t{\n\t\tcout <<3<<\" \"<<7;\n\t}\n\tif(a%3>0&&a%5==0&&a%7==0)\n\t{\n\t\tcout <<5<<\" \"<<7;\n\t}\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t{\n\t\tcout <<3<<\" \"<<5<<\" \"<<7;\n\t}\n\tif(a%3>0&&a%5>0&&a%7>0)\n\t{\n\t\tcout <<\"n\";\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46386", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0&&n%5==0&&n%7==0)\n\t\tprintf(\"%d %d %d\",3,5,7);\n if(n%3==0&&n%5==0&&n%7!=0)\n\t\tprintf(\"3 5\");\n\tif(n%5==0&&n%7==0&&n%3!=0)\n\t\tprintf(\"5 7\");\n\tif(n%3==0&&n%7==0&&n%5!=0)\n\t\tprintf(\"3 7\");\n\tif(n%3==0&&n%5!=0&&n%7!=0)\n\t\tprintf(\"3\");\n\tif(n%3!=0&&n%5==0&&n%7!=0)\n\t\tprintf(\"5\");\n\tif(n%3!=0&&n%5!=0&&n%7==0)\n\t\tprintf(\"7\");\n\tif(n%3!=0&&n%5!=0&&n%7!=0)\n\t\tprintf(\"n\");\n\treturn 0;\n\n}"} +{"label": "93", "index": "46387", "code": "\n\nint main()\n{\n int n; //????n\n cin>>n; //????n\n if(n%3==0) //??????3??\n {\n cout<<\"3\"; //??3 \n if(n%5==0) //??????5??\n {\n cout<<\" \"<<\"5\"; //??5\n if (n%7==0)\n cout<<\" \"<<\"7\"; //??7\n } \n else if(n%7==0)\n cout<<\" \"<<\"7\"; //??7 \n }\n if(n%3!=0)\n {\n if(n%5==0) //??????5??\n {\n cout<<\"5\"; //??5\n if (n%7==0)\n cout<<\" \"<<\"7\";\n } \n else if(n%7==0)\n cout<<\"7\"; //??7\n }\n if(n%3!=0&&n%5!=0&&n%7!=0) //?????????\n cout<<\"n\"; //??n\n return 0;\n}\n"} +{"label": "93", "index": "46388", "code": "int main()\n{\n\tint n;\n\twhile(cin>>n)\n\t{\n\t\tif(n%105==0)\n\t\t\tcout<<\"3 5 7\"<>m;//??m\n\tif(m % 3 == 0 && m % 5 ==0 && m % 7 == 0)//???3,5,7??\n\t\tcout<<\"3\"<<\" 5 \"<<\"7\"<> n;\n\t\n\tif(n % 3 == 0)\n\tnum[0] = 1;\n\t\n\tif(n % 5 == 0)\n\tnum[1] = 1;\n\t\n\tif(n % 7 == 0)\n\tnum[2] = 1;\n\t\n\tcount = num[0] + num[1] + num[2];\n\t\n\tif( num[0] == 1)\n\t{\n\tif( count != 1)\n\tcout << 3 << \" \";\n\telse\n\tcout << 3;\n\t\n\tcount = count - 1;\n\t\n\t}\n\t\n\tif(num[1] == 1)\n\t{\n\t\tif( count != 1)\n\t\tcout << 5 << \" \" ;\n\t\telse\n\t\tcout << 5;\n\t}\n\t\n\tif(num[2] == 1)\n\tcout << 7;\n\t\n\tif(num[0] == 0 && num[1] == 0 && num[2] == 0 )\n\tcout << 'n';\n\t\n\treturn 0;\n}\n"} +{"label": "93", "index": "46393", "code": "int main()\n{\nint a;\nscanf(\"%d\",&a);\nif(a%3 == 0 && (a%5 == 0 || a%7 == 0)){printf(\"3 \");}\nif(a%3 == 0 && a%5 != 0 && a%7 != 0){printf(\"3\");}\nif(a%5 == 0 && a%7 == 0){printf(\"5 \");}\nif(a%5 == 0 && a%7 != 0){printf(\"5\");}\nif(a%7 == 0){printf(\"7\");}\nif(a%3 != 0 && a%5 != 0 && a%7 != 0)printf(\"n\");\nreturn 0;\n}"} +{"label": "93", "index": "46394", "code": "\nint main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5!=0&&a%7!=0)\n\t{\n\t\tprintf(\"3\");\n\t}\n\telse if(a%3==0)\n\t{\n\t\tprintf(\"3 \");\n\t}\n\tif(a%5==0&&a%7!=0)\n\t{\n\t\tprintf(\"5\");\n\t}\n\telse if(a%5==0)\n\t{\n\t\tprintf(\"5 \");\n\t}\n\tif(a%7==0)\n\t{\n\t\tprintf(\"7\");\n\t}\n\tif(a%3!=0&&a%5!=0&&a%7!=0)\n\t{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46395", "code": "int main()\n{\n int n,b3=0,b5=0,b7=0;\n cin>>n;\n if(n%3==0)\n {\n cout<<3;\n b3=1;\n }\n if(n%5==0)\n {\n if(b3!=0)\n cout<<' ';\n cout<<5;\n b5=1;\n }\n if(n%7==0)\n {\n if(b3!=0||b5!=0)\n cout<<' ';\n cout<<7;\n b7=1;\n }\n if(b3==0&&b5==0&&b7==0)\n cout<<'n';\n\n}\n"} +{"label": "93", "index": "46396", "code": "int main(){\n\tint a;\n scanf(\"%d\",&a);\n\tif(a%3==0&&a%7==0&&a%5==0){\n\t\tprintf(\"3 5 7\");\n\t}\n\tif(a%3!=0){\n\t\tif(a%5==0){\n\t\t\tif(a%7==0){\n\t\t\t\tprintf(\"5 7\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"5\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(a%7==0){\n\t\t\t\tprintf(\"7\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"n\");\n\t\t\t}\n\t\t}\n\t}\n\tif(a%3==0&&a%5==0&&a%7!=0){\n\t\t\t\tprintf(\"3 5\");\n\t\t}\n\tif(a%3==0&&a%5!=0){\n\t\t\tif(a%7==0){\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"3\");\n\t\t\t}\n\t\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46397", "code": "int main ()\n{\n\tint a , p ; // ??a???????? p?3 5 7????? p ?????\n\tcin >> a ; // ????a\n p = 0 ; // ???p?0\n\tif (a % 3 == 0 ) \n\t{\n\t\tcout << \"3\" ;\n\t\tp = p + 1 ;\n\t} // ?? p ?????? ???? \u00933\u0094 ???????? ?????????? p?? \n\tif (a % 5 == 0 )\n\t{\n\t\tif (p > 0)\n\t\t{\n\t\t\tcout << \" 5\" ;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tcout << \"5\" ;\n\t\t} // ???????????????a ?? \u00935\u0094???????? ???????\n\t\tp = p + 1 ; // p??\n\t}\n\tif (a % 7 == 0 )\n\t{\n\t\tif (p > 0)\n\t\t{\n\t\t\tcout << \" 7\" ;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tcout << \"7\" ;\n\t\t}\n\t\tp = p + 1 ;\n\t} // ???????????????? a ???? \u0093 7\u0094 ????\u00937\u0094 ?????\n\tif (p == 0) \n\t{\n\t\tcout << \"n\" ;\n\t} // ??????????a ???? \"n\" \n\tcout << endl ; // ????\n\treturn 0 ;\n}\n\t\t\n"} +{"label": "93", "index": "46398", "code": "int main()\n{\n\tint n;\n\tcin>>n;//?????\n\tint a[3]={3,5,7};//????357\n\tif(n%3==0&&n%7==0&&n%5==0)//????3?5?7???????3 5 7??????????)\n\t\tcout<<\"3 5 7\";\n\telse if(!(n%3==0||n%7==0||n%5==0))\n\t\tcout<<\"n\";//????????????????n)\n\telse //???????????????3 5?? 3 7??5 7,???????\n\t{\n\t\tint k=0;\n\t\tint b[2];\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tif(n%a[i]==0)\n\t\t\t{ b[k]=a[i];\n\t\t k=k+1;}\n\t\t}\n\t\tfor(int j=0;j> integer;\n\t\n// ??????????????????????????\t\n\tif (integer % 3 == 0)\n\t\tsituation += 3;\n\tif (integer % 5 == 0)\n\t\tsituation += 5;\n\tif (integer % 7 == 0)\n\t\tsituation += 7;\n\tswitch (situation)\n\t{\n\tcase 0:\n\t\tcout << 'n' << endl;\n\t\tbreak;\n\tcase 3:\n\t\tcout << '3' << endl;\n\t\tbreak;\n\tcase 5:\n\t\tcout << '5' << endl;\n\t\tbreak;\n\tcase 7:\n\t\tcout << '7' << endl;\n\t\tbreak;\n\tcase 8:\n\t\tcout << \"3 5\" << endl;\n\t\tbreak;\t\n\tcase 10:\n\t\tcout << \"3 7\" << endl;\n\t\tbreak;\n\tcase 12:\n\t\tcout << \"5 7\" << endl;\n\t\tbreak;\n\tcase 15:\n\t\tcout << \"3 5 7\" << endl;\n\t\tbreak;\n\tdefault:\n\t\tbreak;\t\n\t}\n\treturn 0;\n} "} +{"label": "93", "index": "46401", "code": "\nint main()\n{\n\tint a,b,c,d;\n\tscanf(\"%d\",&a);\n\tb=a%3;\n\tc=a%5;\n\td=a%7;\n\tif (b==0)\n\t\tif (c==0)\n\t\t\tif(d==0)\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\telse\n\t\t\t\tprintf(\"3 5\");\n\t\telse\n\t\t\tif (d==0)\n\t\t\t\tprintf(\"3 7\");\n\t\t\telse \n\t\t\t\tprintf(\"3\");\n\telse \n\t\tif (c==0)\n\t\t\tif (d==0)\n\t\t\t\tprintf(\"5 7\");\n\t\t\telse \n\t\t\t\tprintf(\"5\");\n\t\telse \n\t\t\tif (d==0)\n\t\t\t\tprintf(\"7\");\n\t\t\telse\n\t\t\t\tprintf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46402", "code": "main()\n{\n\tint a,b,c,d;\nscanf(\"%d\",&a);\nb=3;\nc=5;\nd=7;\nif(a%3==0&&a%5==0&&a%7==0)\nprintf(\"%d %d %d\\n\",b,c,d);\nelse if(a%3==0&&a%5==0)\nprintf(\"%d %d\\n\",b,c);\nelse if(a%3==0&&a%7==0)\nprintf(\"%d %d\\n\",b,d);\nelse if(a%7==0&&a%5==0)\nprintf(\"%d %d\\n\",c,d);\nelse if(a%3==0)\nprintf(\"%d\\n\",b);\nelse if(a%5==0)\nprintf(\"%d\\n\",c);\nelse if(a%7==0)\nprintf(\"%d\\n\",d);\nelse\nprintf(\"n\\n\");\nreturn 0;\n}"} +{"label": "93", "index": "46403", "code": "void main(){\n\tint x;\n\tscanf(\"%d\",&x);\n\tif(x%3==0 && x%5==0 && x%7==0){printf(\"3 5 7\");return;}\n\tif(x%3!=0 && x%5!=0 && x%7!=0){printf(\"n\");return;}\n\tif(x%3==0 && x%5==0){printf(\"3 5\");return;}\n\tif(x%3==0 && x%7==0){printf(\"3 7\");return;}\n\tif(x%5==0 && x%7==0){printf(\"5 7\");return;}\n\tif(x%3==0){printf(\"3\");return;}\n\tif(x%5==0){printf(\"5\");return;}\n\tif(x%7==0){printf(\"7\");return;}\n}\n"} +{"label": "93", "index": "46404", "code": "int main()\n{\n\tint n,flag=0;\n\tscanf(\"%d\",&n);\n\tif(n%3==0)\n\t{\n\t\tprintf(\"3\");\n\t\tflag=1;\n\t}\n\tif(n%5==0)\n\t{\n\t\tif(flag)\n\t\t\tprintf(\" \");\n\t\tprintf(\"5\");\n\t\tflag=1;\n\t}\n\tif(n%7==0)\n\t{\n\t\tif(flag)\n\t\t\tprintf(\" \");\n\t\tprintf(\"7\");\n\t\tflag=1;\n\t}\n\tif(flag==0)\n\t\tprintf(\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46405", "code": "int main()\n{\n\tint n, a;\n\tscanf(\"%d\",&n);\n\ta=0;\n\tif (n%3==0)\n\t\tprintf (\"3\");\n\telse a=1;\n\tif (n%5+a==0)\n\t\tprintf(\" 5\");\n else if (n%5-a==-1) printf(\"5\");\n else a=a+1;\n\tif (n%7==0&&a==1) printf(\" 7\");\n else if (n%7==0&&a==0) printf(\" 7\");\n else if (n%7==0&&a==2) printf(\"7\");\n\telse a=3;\n if (n%3==0||n%5==0||n%7==0)\n\t\ta=1;\n\telse printf(\"n\");\nreturn 0;\n\n}"} +{"label": "93", "index": "46406", "code": "int main()\n{\n\tint num=0; //???????num\n \n\tcin>>num;\n\tif (num%3==0&&num%5==0&&num%7==0) //??num???3,5,7???????\n\t\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\"<>n;\nif (n%3==0){cout<<\"3\";s++;}\nif (n%5==0){if (s!=0)cout<<' ';cout<<\"5\";s++;}if (n%7==0){if (s!=0)cout<<' ';cout<<\"7\";s++;}\nif (s==0)cout<<\"n\";\nreturn 0;\n }\n\n"} +{"label": "93", "index": "46411", "code": "int main(int argc, char* argv[])\n{\n int a;\n\tscanf(\"%d\", &a);\n\tif((a%3==0)&&(a%5==0)&&(a%7==0)){\n\t\tprintf(\"3 5 7\\n\");\n\t}\n\telse if((a%3==0)&&(a%5==0)&&(a%7!=0)){\n printf(\"3 5\\n\");\n\t}\n else if((a%3==0)&&(a%5!=0)&&(a%7==0)){\n printf(\"3 7\\n\");\n\t}\n else if((a%3!=0)&&(a%5==0)&&(a%7==0)){\n printf(\"5 7\\n\");\n\t}\n else if((a%3==0)&&(a%5!=0)&&(a%7!=0)){\n printf(\"3\\n\");\n\t}\n else if((a%3!=0)&&(a%5==0)&&(a%7!=0)){\n printf(\"5\\n\");\n\t}\n else if((a%3!=0)&&(a%5!=0)&&(a%7==0)){\n printf(\"7\\n\");\n\t}\n else{\n\t\tprintf(\"n\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46412", "code": "int main()\n{\n\tint n;\n\tint t=0;\n\tcin>>n;\n\tif(n%3==0) //?????3,5,7??\n\t\tt=t+3;\n\tif(n%5==0)\n\t\tt=t+5;\n\tif(n%7==0)\n\t\tt=t+7;\n\tif(t==0) //????\n\t\tcout<<\"n\";\n\tif(t==3)\n\t\tcout<<3;\n\tif(t==5)\n\t\tcout<<5;\n\tif(t==7)\n\t\tcout<<7;\n\tif(t==8)\n\t\tcout<<\"3 5\";\n\tif(t==12)\n\t\tcout<<\"5 7\";\n\tif(t==10)\n\t\tcout<<\"3 7\";\n\tif(t==15)\n\t\tcout<<\"3 5 7\";\n\treturn 0;\n}"} +{"label": "93", "index": "46413", "code": "int main()\n{\n\tint x,a,b,c,n;\n\tcin >> x;\n\tif (x%3==0)\n\t\ta=1;\n\telse \n\t\ta=0;\n\tif (x%5==0)\n\t\tb=2;\n\telse\n\t\tb=0;\n\tif (x%7==0)\n\t\tc=4;\n\telse \n\t\tc=0;\n\n\tn = a+b+c;\n\n\tif (n==7)\n\t{\n\t\tcout << \"3 5 7\" << endl;\n\t}\n\telse if (n==6)\n\t{\n\t\tcout << \"5 7\" << endl;\n\t}\n\telse if (n==5)\n\t{\n\t\tcout << \"3 7\" << endl;\n\t}\n\telse if (n==4)\n\t{\n\t\tcout << \"7\" << endl;\n\t}\n\telse if (n==3)\n\t{\n\t\tcout << \"3 5\" << endl;\n\t}\n\telse if (n==2)\n\t{\n\t\tcout << \"5\" << endl;\n\t}\n\telse if (n==1)\n\t{\n\t\tcout << \"3\" << endl;\n\t}\n\telse if (n==0)\n\t{\n\t\tcout << \"n\" << endl;\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46414", "code": "int main(int argc, char* argv[])\n{ int a,b,c,d;\n b=3;\n\tc=5;\n\td=7;\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0){printf(\"%d %d %d\",b,c,d);}\n\telse if(a%3==0&&a%5==0){printf(\"%d %d\",b,c);}else if(a%3==0&&a%7==0){printf(\"%d %d\",b,d);}else if(a%5==0&&a%7==0){printf(\"%d %d\",c,d);}else if(a%3==0){printf(\"%d\",b);}else if(a%5==0){printf(\"%d\",c);}else if(a%7==0){printf(\"%d\",d);}else{printf(\"n\");}\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46415", "code": "void main()\n{int a;\nscanf(\"%d\",&a);\nif(a%3==0&&a%5==0&&a%7==0) printf(\"3 5 7\");\nelse if(a%7!=0)\n{if(a%3==0&&a%5==0) printf(\"3 5\");\n if(a%3==0&&a%5!=0) printf(\"3\");\n\t if(a%5==0&&a%3!=0) printf(\"5\");\n\t\t if(a%3!=0&&a%5!=0) printf(\"n\");}\nif(a%7==0)\n{if(a%3!=0&&a%5!=0) printf(\"7\");\nif(a%3==0&&a%5!=0) printf(\"3 7\");\nif(a%5==0&&a%3!=0) printf(\"5 7\");}\n}"} +{"label": "93", "index": "46416", "code": "//******************************************\n//*??: ??(4-4) ??3?5?7???? **\n//*??: ??? 1300012991 **\n//*??: 2013?9?30? **\n//******************************************\n\nint main()\n\n{\n\tint x, a, b, c;\n\tcin >> x;\n\tif ( x % 105 == 0 )\n\t\tcout << \"3 5 7\";\n\telse if ( x % 15 == 0 )\n\t\tcout << \"3 5\";\n else if ( x % 35 == 0 )\n\t\tcout << \"5 7\";\n else if ( x % 21 == 0 )\n\t\tcout << \"3 7\";\n\telse if ( x % 3 == 0 )\n\t\tcout << \"3\";\n\telse if ( x % 5 == 0 )\n\t\tcout << \"5\";\n else if ( x % 7 == 0 )\n\t\tcout << \"7\";\n\telse\n\t\tcout << \"n\";\n\nreturn 0;\n\n}\n \n\n \n\n\n\n\n\n\n\n\n\n\n\n"} +{"label": "93", "index": "46417", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t\tprintf(\"%d %d %d\",3,5,7);\n\telse\n\t{\n\t\tif(a%3==0&&a%5==0)\n\t\t\tprintf(\"%d %d\\n\",3,5);\n\t\telse \n\t\t{\n\t\t\tif(a%3==0&&a%7==0)\n\t\t\t\tprintf(\"%d %d\",3,7);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a%5==0&&a%7==0)\n\t\t\t\t\tprintf(\"%d %d\",5,7);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a%3==0)\n\t\t\t\t\t\tprintf(\"%d\",3);\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tif(a%5==0)\n\t\t\t\t\t\t\tprintf(\"%d\",5);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a%7==0)\n\t\t\t\t\t\t\t\tprintf(\"%d\",7);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tprintf(\"n\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\n\t\t"} +{"label": "93", "index": "46418", "code": "\nint main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n%3==0&&n%5==0&&n%7==0)\n\t\tprintf(\"3 5 7\");\n if(n%3==0&&n%5==0&&n%7!=0)\n\t printf(\"3 5\");\n\tif(n%3==0&&n%5!=0&&n%7==0)\n\t\tprintf(\"3 7\");\n\tif(n%3!=0&&n%5==0&&n%7==0)\n\t\tprintf(\"5 7\");\n\tif(n%3!=0&&n%5!=0&&n%7!=0)\n\t\tprintf(\"n\");\n\tif(n%3==0&&n%5!=0&&n%7!=0)\n\t\tprintf(\"3\");\n\tif(n%3!=0&&n%5!=0&&n%7==0)\n\t\tprintf(\"7\");\n\tif(n%3!=0&&n%5==0&&n%7!=0)\n\t\tprintf(\"5\");\n\treturn 0;\n}"} +{"label": "93", "index": "46419", "code": "void main()\n{\n\tint a,b,c,d;char n;\n\tb=3;\n\tc=5;\n\td=7;n='n';\n\tscanf(\"%d\",&a);\n\tif(a%b==0)\n\t{\n\t\tif(a%c==0)\n\t\t{\n\t\t\tif(a%d==0)\n\t\t\t{\n\t\t\t\tprintf(\"%d %d %d\",b,c,d);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprintf(\"%d %d\",b,c);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a%d==0)\n\t\t\t{\n\t\t\t\tprintf(\"%d %d\",b,d);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprintf(\"%d\",b);\n\t\t}\n\t}\n\telse\n\t{\n if(a%c==0)\n\t\t{\n\t\t\tif(a%d==0)\n\t\t\t{\n\t\t\t\tprintf(\"%d %d\",c,d);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprintf(\"%d\",c);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a%d==0)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",d);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprintf(\"%c\",n);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46420", "code": "int main()\n{\n\tint x;\n\tcin>>x;\n if(x%105==0)cout<<3<<\" \"<<5<<\" \"<<7<>a;\n\tif (a%105==0) //????????3,5,7\n\t\tcout <<\"3 5 7\";\n\telse if (a%15==0 && a%7!=0) //?????????3,5\n\t\tcout <<\"3 5\";\n\telse if (a%21==0 && a%5!=0) //?????????3,7\n\t\tcout <<\"3 7\";\n\telse if (a%35==0 && a%3!=0) //??????5,7\n\t\tcout <<\"5 7\";\n\telse if (a%3==0 && a%35!=0) //???????????\n\t\tcout <<\"3\";\n\telse if (a%5==0 && a%21!=0)\n\t\tcout <<\"5\";\n\telse if (a%7==0 && a%15!=0)\n\t\tcout <<\"7\";\n\telse \n\t\tcout <<\"n\";\n\treturn 0;\n}"} +{"label": "93", "index": "46426", "code": "int main()\n{\n\tint a,b,c,d;\n\tcin>>d;\n\ta=d%3;\n\tb=d%5;\n\tc=d%7;\n\tif(a==0&&b==0&&c==0)\n\t\tcout<<3<<\" \"<<5<<\" \"<<7;\n\t\telse\n\t\tif(a==0&&b==0)\n\t\t\tcout<<3<<\" \"<<5;\n\t\telse\n\t\t\tif(a==0&&c==0)\n\t\t\t\tcout<<3<<\" \"<<7;\n\t\t\telse\n\t\t\t\tif(c==0&&b==0)\n\t\t\t\t\tcout<<5<<\" \"<<7;\n\t\t\t\telse\n\t\t\t\t\tif(a==0)\n\t\t\t\t\t\tcout<<3;\n\t\t\t\t\telse\n\t\t\t\t\t\tif(b==0)\n\t\t\t\t\t\t\tcout<<5;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(c==0)\n\t\t\t\t\t\t\t\tcout<<7;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tcout<<\"n\";\n\t\t\t\t\t\t\t\n}"} +{"label": "93", "index": "46427", "code": "int main()\n{\n\tint n,i,j=3,flag=0;\n\tscanf(\"%d\",&n);\n\tfor (i=3;i<=7;i+=2)\n\t{\n\t\tif (n%i==0&&flag==0) \n\t\t{\n\t\t\tprintf(\"%d\",i);\n\t\t\tflag=1;\n\t\t}\n\t\telse if (n%i==0&&flag==1) printf(\" %d\",i);\n\t\telse j--;\n\t}\n\tif (j==0) printf (\"n\");\n\treturn 0;\n}"} +{"label": "93", "index": "46428", "code": "int main()\n{\n int n,i,j,k,t;\n i=0;j=0;k=0;t=0;\n cin >>n;\n if (n%3==0) i=1;\n if (n%5==0) j=1;\n if (n%7==0) k=1;\n t=i+j+k;\n if (t==0) cout <<\"n\"<>n;\nif(n%3==0&&n%5==0&&n%7==0)\n\tcout<<\"3 5 7\";\nelse\t\t\t\t\t//????????????\n\t{if(n%5==0&&n%7==0)\n\tcout<<\"5 7\";\n\tif(n%3==0&&n%5==0)\n\tcout<<\"3 5\";\n\tif(n%3==0&&n%7==0)\n\tcout<<\"3 7\";\n\tif((!(n%3==0&&n%5==0))&&(!(n%3==0&&n%7==0))&&(!(n%5==0&&n%7==0)))\t//?????????????\n\t\t{if(n%3==0)\n\t\tcout<<'3';\n\t\tif(n%5==0)\n\t\tcout<<'5';\n\t\tif(n%7==0)\n\t\tcout<<'7';\n\t\tif(n%3!=0&&n%5!=0&&n%7!=0)\t\t//???????????\n\t\tcout<<'n';\n\t\t}\n\t}\nreturn 0;\n}"} +{"label": "93", "index": "46430", "code": "void main()\n{\n\tint a,b,c,space=0;\n\tscanf(\"%d\",&a);\n\tb=a%3;c=a%5;\n\tif(a%3==0) \n\t{\n\t\tprintf(\"3\"); \n\t\tspace=1;\n\t}\n\tif(a%5==0)\n\t{\n\t\tif(space==1) printf(\" \");\n\t\tprintf(\"5\");\n\t\tspace=1;\n\t}\n\tif(a%7==0)\n\t{\n\t\tif(space==1) printf(\" \");\n\t\tprintf(\"7\");\n\t}\n\telse if(b>0&&c>0)\n\t\tprintf(\"n\");\n}"} +{"label": "93", "index": "46431", "code": "\nint main(int argc, char* argv[])\n{\n int a;\n\t scanf(\"%d\",&a);\n\t if((a%7==0)&&(a%3==0)&&(a%5==0))\n\t {\n\t\t printf(\"3 5 7\");\n\t }\n\t else if((a%3==0)&&(a%5==0))\n {\n\t\t printf(\"3 5\");\n }\n\t else if((a%5==0)&&(a%7==0))\n\t {\n\t\t printf(\"5 7\");\n\t }\n\t else if((a%3==0)&&(a%7==0))\n\t {\n\t\t printf(\"3 7\");\n\t }\n\t else if(a%3==0)\n\t {\n\t\t printf(\"3\");\n\t }\n else if(a%5==0)\n\t {\n\t\t printf(\"5\");\n\t }\n\t else if(a%7==0)\n\t {\n\t\t printf(\"7\");\n\t }\n\t else \n\t {\n\t\t printf(\"n\");\n\n\t }\n\t \n\t \n\t \n\t return 0;\n}\n\n\t \n\n"} +{"label": "93", "index": "46432", "code": "void main()\n{\n int a,x,y,z;\n x=y=z=0;\n scanf(\"%d\",&a);\n if(a%3==0) x=1;\n if(a%5==0) y=1;\n if(a%7==0) z=1;\n if(x==1&&y==1&&z==1) printf(\"3 5 7\\n\");\n\t else if (x==1&&y==1&&z==0) printf(\"3 5\\n\");\n else if (x==1&&y==0&&z==1) printf(\"3 7\\n\");\n else if (x==0&&y==1&&z==1) printf(\"5 7\\n\");\n else if (x==1&&y==0&&z==0) printf(\"3\\n\");\n else if (x==0&&y==1&&z==0) printf(\"5\\n\");\nelse if (x==0&&y==0&&z==1) printf(\"7\\n\");\n else printf(\"n\\n\");\n}"} +{"label": "93", "index": "46433", "code": "void main()\n{\n int n,i,f=0;\n scanf(\"%d\",&n);\n for (i=3;i<=7;i=i+2)\n if (n%i==0)\n\t {\n\t f=1;\n\t printf(\"%d\",i);\n\t break;\n\t }\n for (i=i+2;i<=7;i=i+2)\n if (n%i==0)\n\t {\n\t f=1;\n\t printf(\" %d\",i);\n\t }\n if (f==0)\n printf(\"n\");\n printf(\"\\n\");\n}"} +{"label": "93", "index": "46434", "code": "int main()\n{\n\tint a,i=0,b[3]={3,5,7};//???????????\n\tcin>>a;\n\tif(a%3==0&&a%5==0&&a%7==0)\n\t\tcout<<\"3\"<<\" \"<<\"5\"<<\" \"<<\"7\";\n\telse if(a%3==0&&a%7==0&&a%5!=0)\n\t\tcout<<\"3\"<<\" \"<<\"7\";\n\telse if(a%3!=0&&a%5==0&&a%7==0)\n\t\tcout<<\"5\"<<\" \"<<\"7\";\n\telse if(a%3==0&&a%5==0&&a%7!=0)\n\t\tcout<<\"3\"<<\" \"<<\"5\";\n\telse if(a%3==0&&a%5!=0&&a%7!=0)\n\t\tcout<<\"3\";\n\telse if(a%3!=0&&a%5==0&&a%7!=0)\n\t\tcout<<\"5\";\n\telse if(a%3!=0&&a%5!=0&&a%7==0)\n\t\tcout<<\"7\";\n\telse if(a%3!=0&&a%5!=0&&a%7!=0) //?????3,5,7?????\n\t\tcout<<\"n\";\n\treturn 0;//????? \n}"} +{"label": "93", "index": "46435", "code": "void main()\n{\n\tint n,a=0,b=0,c=0;\n\tscanf(\"%d\",&n);\n\tif(n%3==0) \n\t{\n\t\tprintf(\"3\");\n\t}\n\telse a=1;\n\tif(n%5==0&&a==0) \n\t{\n\t\tprintf(\" 5\");\n\t}\n\telse if(n%5==0&&a==1) printf(\"5\");\n\telse b=1;\n\tif(n%7==0&&(a*b==0)) \n\t{\n\t\tprintf(\" 7\");\n\t}\n\telse if(n%7==0&&(a*b==1)) printf(\"7\");\n\telse c=1;\n\tif(a*b*c) printf(\"n\");\n}"} +{"label": "93", "index": "46436", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\t if(n%105==0){printf(\"3 5 7\");return 0;}\n\n\t\tif(n%15==0){printf(\"3 5\");return 0;}\n\t if(n%21==0){printf(\"3 7\");return 0;}\n\t if(n%35==0){printf(\"5 7\");return 0;}\n\t\tif (n%3==0){printf(\"3\");return 0;}\n\t\tif (n%5==0){printf(\"5\");return 0;}\n\t\tif (n%7==0){printf(\"7\");return 0;}\n\t if(n%3!=0&&n%5!=0&&n%7!=0){printf(\"n\");return 0;}\n\n}"} +{"label": "93", "index": "46437", "code": "int main()\n{\n int n;\n cin>>n;\n if ((n%3==0)&&(n%5==0)&&(n%7==0))\n cout<<\"3 5 7\";\n else if ((n%3!=0)&&(n%5==0)&&(n%7==0))\n\tcout<<\"5 7\";\n else if ((n%3==0)&&(n%5!=0)&&(n%7==0))\n cout<<\"3 7\";\n else if ((n%3==0)&&(n%5==0)&&(n%7!=0))\n\tcout<<\"3 5\";\n else if ((n%3==0)&&(n%5!=0)&&(n%7!=0))\n\tcout<<\"3\";\n else if ((n%3!=0)&&(n%5!=0)&&(n%7==0))\n \tcout<<\"7\";\n else if ((n%3!=0)&&(n%7!=0)&&(n%5==0))\n\tcout<<\"5\";\n else\n\tcout<<\"n\";\n cin.get();\n cin.get();\n cin.get();\n return 0;\n}"} +{"label": "93", "index": "46438", "code": " int main()\n {int a,b,c,d;\n scanf(\"%d\",&a);\n b=a%3;\n c=a%5;\n d=a%7;\n if (b==0)\n {printf(\"3\");\n if (c==0)\n printf(\" 5\");\n if (d==0)\n printf(\" 7\");\n } \n else if(c==0)\n {printf(\"5\");\n if(d==0)\n printf(\" 7\");\n }\n else if(d==0)\n printf(\"7\");\n else\n printf(\"n\");\n return 0;\n }"} +{"label": "93", "index": "46439", "code": "int main()\n{\n int n,flag=0;\n cin>>n;\n if(n%3==0)\n {cout<<3;\n flag=1;}\n if(n%5==0)\n {if(flag)\n {cout<<\" \";}\n cout<<5;\n flag=1;}\n if(n%7==0)\n {if(flag)\n {cout<<\" \";}\n cout<<7;}\n if(n%3!=0&&n%5!=0&&n%7!=0)\n {cout<<\"n\";}\nreturn 0;\n}"} +{"label": "93", "index": "46440", "code": "\n\nint main()\n{\n int n, a, b, c;\n \n cin >> n;\n \n a = n%3;\n b = n%5;\n c = n%7;\n \n if(!a && !b && !c) \n {\n cout << 3 << \" \" << 5 << \" \" << 7;\n }\n else if(!a && !b) \n {\n cout << 3 << \" \" <<5;\n }\n else if(!a && !c) \n {\n cout << 3 << \" \" << 7;\n }\n else if(!b && !c) \n {\n cout << 5 << \" \" << 7;\n }\n else if(!a) \n {\n cout << 3;\n }\n else if(!b) \n {\n cout << 5;\n }\n else if(!c) \n {\n cout << 7;\n }\n else cout << 'n';\n \n return 0;\n}\n"} +{"label": "93", "index": "46441", "code": "int main()\n{\n int k,x1=0,x2=0,x3=0,sum;\n cin>>k;\n if(k%3==0) x1=3;\n if(k%5==0) x2=5;\n if(k%7==0) x3=7;\n sum=x1+x2+x3;\n if(sum==0) cout<<\"n\";\n if(sum==3) cout<< 3;\n if(sum==5) cout<< 5;\n if(sum==7) cout<< 7;\n if(sum==8) cout<< 3<<\" \"<< 5;\n if(sum==10) cout<< 3<<\" \"<< 7;\n if(sum==12) cout<< 5<<\" \"<< 7;\n if(sum==15) cout<< 3<<\" \"<< 5<<\" \"<< 7;\n return 0;\n }"} +{"label": "93", "index": "46442", "code": "int main()\n{\n int n;\n int a,b,c;\n scanf(\"%d\",&n);\n\n a = n%3;\n b = n%5;\n c = n%7;\n\n if(a==0&&b==0&&c==0)\n {\n printf(\"3 5 7\");\n }\n else\n {\n if(b==0&&c==0)\n {\n printf(\"5 7\");\n } \n if(a==0&&c==0)\n {\n printf(\"3 7\");\n }\n if(a==0&&b==0)\n {\n printf(\"3 5\");\n }\n if(a*b*c==0&&a>0&&b>0) \n {\n printf(\"7\");\n }\n if(a*b*c==0&&a>0&&c>0) \n {\n printf(\"5\");\n }\n if(a*b*c==0&&c>0&&b>0) \n {\n printf(\"3\");\n }\n if(a*b*c>0)\n {\n printf(\"n\");\n } \n }\nreturn 0;\n}"} +{"label": "93", "index": "46443", "code": " \nint main()\n{\n int a;\n int r=0;\n \n cin>>a;\n \n if(a%3==0)\n r=r+3; \n \n if(a%5==0)\n r=r+5;\n \n if(a%7==0)\n r=r+7; \n \n if(r==3|r==5|r==7)\n cout<> n;\n\tif (n % 3 == 0) out_put(3);\n\tif (n % 5 == 0) out_put(5);\n\tif (n % 7 == 0) out_put(7);\n\tif (flag == 0) cout << \"n\";\n\treturn 0;\n}\n"} +{"label": "93", "index": "46446", "code": "//********************************\n//*??3,5,7???? **\n//*?????? 1200012784 **\n//*???2012.9.28 **\n//********************************\n\nint main()\n{\n\tint num; //??????num??????\n\tcin >> num; //??num\n\tif (num % 3 == 0)//??3????num\n\t{\n\t\tcout << 3; //?????3\n\t\tif (!(num % 5) || !(num % 7)) cout << ' '; //?num???5?7??????????\n\t}\n\tif (num % 5 == 0)//??5????num\n\t{\n\t\tcout << 5; //?????5\n\t\tif (!(num % 7)) cout << ' '; //?num???7???????????\n\t}\n\tif (num % 7 == 0) cout << 7; //?7??num????7\n\tif (num % 3 && num % 5 && num % 7) cout << 'n'; //?3?5?7?????num????n\n\n return 0;\n}"} +{"label": "93", "index": "46447", "code": "\nint main()\n{\nint n,i,c=0,s[3]={3,5,7};\nscanf(\"%d\",&n);\nfor (i=0;i<3;i++)\n\tif (n%s[i]==0)\n\t\tc++;\n\nif (c==3) printf(\"3 5 7\");\nelse if (c==0)\n\t\tprintf(\"n\");\nelse if (c==1)\n\t\tfor (i=0;i<3;i++)\n\t\t{\n\t\t\tif (n%s[i]==0)\n\t\t\t\tprintf(\"%d\",s[i]);\n\t\t}\nelse if (c==2)\n\t\t{\n\t\t\tif (n%3!=0)printf(\"5 7\");\n\t\t\tif (n%5!=0)printf(\"3 7\");\n\t\t\tif (n%7!=0)printf(\"3 5\");\n\t\t}\n\t\t\t\n\nreturn 0;\n}"} +{"label": "93", "index": "46448", "code": "void main()\n{int a,b[3],c[3],i,n=0;\n scanf(\"%d\",&a);\n if(a%3==0||a%5==0||a%7==0)\n { if(a%3==0) b[0]=3;\n else b[0]=0;\n if(a%5==0) b[1]=5;\n else b[1]=0;\n if(a%7==0) b[2]=7;\n else b[2]=0;\n\n for(i=0;i<3;i++)\n\t if(b[i]!=0)\n\t {c[n]=b[i];\n\t n++;\n\t }\n for(i=0;i>a;\n\tif((a%3==0)&&(a%5==0)&&(a%7==0)) cout<<\"3 5 7\";\n\telse if((a%3==0)&&(a%5==0)) cout<<\"3 5\";\n\telse if((a%3==0)&&(a%7==0)) cout<<\"3 7\";\n else if((a%5==0)&&(a%7==0)) cout<<\"5 7\";\n\telse if(a%3==0) cout<<3;\n\telse if(a%5==0) cout<<5;\n\telse if(a%7==0) cout<<7;\n\telse cout<<'n';\n\treturn 0;\n}"} +{"label": "93", "index": "46450", "code": "int main()\n{\n int x,a,b,c;\n scanf(\"%d\",&x);\n\ta=x%3;\n\tb=x%5;\n\tc=x%7;\n\tif(a==0&&b==0&&c==0){\n\t\tprintf(\"3 5 7\");\n\t}else if(a==0&&b==0&&c!=0){\n\t\tprintf(\"3 5\");\n\t}else if(a==0&&b!=0&&c==0){\n\t\tprintf(\"3 7\");\n\t}else if(a!=0&&b==0&&c==0){\n\t\tprintf(\"5 7\");\n\t}else if(a!=0&&b!=0&&c==0){\n\t\tprintf(\"7\");\n\t}else if(a!=0&&b==0&&c!=0){\n printf(\"5\");\n }else if(a==0&&b!=0&&c!=0){\n\t\tprintf(\"3\");\n }else{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46451", "code": "//************************************************************\n//* ???????3?5?7????.cpp *\n//* ??????????????????3?5?7?? *\n//* ? ????? *\n//* ? ??2013.9.29 *\n//************************************************************\nint main()\n{\n\tint num ;\n\n\tcin >> num ;\n\n\tif (num % 3 == 0 )\n\t{\n\t\tif (num % 5 == 0 ||num % 7 == 0)\n\t\t{\n\t\t\tcout << 3 << \" \" ;\n\t if (num % 5 == 0 && num % 7 == 0)\n\t\t cout << 5 << \" \" << 7 << endl ;\n\t\t else \n\t\t\t{\n\t\t \tif (num % 5 == 0 && num % 7 != 0)\n\t\t\t cout << 5 << endl ;\n\t\t\t else\n\t\t\t \tcout << 7 << endl ;\n\t\t\t}\n\t\t}\n\t if (num % 5 != 0 && num % 7 != 0)\n\t\t cout << 3 << endl ;\n\t}\n\telse \n\t\tif (num % 5 == 0 ||num % 7 == 0)\n\t\t{\n\t\t\tif (num % 5 == 0 && num % 7 == 0)\n\t\t cout << 5 << \" \" << 7 << endl ;\n\t\t else \n\t\t\t{\n\t\t \tif (num % 5 == 0 && num % 7 != 0)\n\t\t\t cout << 5 << endl ;\n\t\t\t else\n\t\t\t \tcout << 7 << endl ;\n\t\t\t}\n\t\t}\n\t\telse cout << \"n\" << endl ;\n\n\treturn 0 ;\n}\n"} +{"label": "93", "index": "46452", "code": "//****************************************************\n//* ? ? ?: homework.cpp *\n//* ? ?: ??? *\n//* ????: 2012?9?24? *\n//* ????: ??3?5?7???? *\n//****************************************************\n\nint main(){\n\tint a[4]; //??a ??n?????3 5 7?? \n\tint i,n; //????\n\tcin >> n; //??n\n\tfor (i=0;i<=3;i++){ //???a \n\t\ta[i]=0;\n\t}\n\tif (n % 3 == 0){ //??n???3?? \n\t\ta[1]=3; //?? \n\t\ta[0]++; //?? \n\t}\n\tif (n % 5 == 0){ //??n???5?? \n\t\ta[2]=5; //?? \n\t\ta[0]++; //?? \n\t}\n\tif (n % 7 == 0){ //??n???7?? \n\t\ta[3]=7; //?? \n\t\ta[0]++; //?? \n\t}\n\tif (a[0]!=0){ //??????3 5 7???? \n\t\tfor (i=1;i<=3;i++){ //??N????? \n\t\t\tif (a[i]!=0){\n\t\t\t\ta[0]--; \n\t\t\t\tif (a[0]!=0) {\n\t\t\t\t\tcout << a[i] << ' '; //????? (???) \n\t\t\t\t} \n\t\t\t\telse cout << a[i]; //????? (????) \n\t\t\t}\n\t\t}\n\t} \n\telse cout << 'n';//?????'n' \n}\n"} +{"label": "93", "index": "46453", "code": "void main()\n{\n\tint a,b,c;\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0)printf(\"3 5 7\");\n\telse if(a%3==0&&a%5==0)printf(\"3 5\");\n\telse if(a%3==0&&a%7==0)printf(\"3 7\");\n\telse if(a%5==0&&a%7==0)printf(\"5 7\");\n\telse if(a%3==0)printf(\"3\");\n\telse if(a%5==0)printf(\"5\");\n\telse if(a%7==0)printf(\"7\");\n\telse printf(\"n\");\n}"} +{"label": "93", "index": "46454", "code": "int main(){\nint a,b,c;\nscanf(\"%d\",&a);\nif(a%3==0)\n if(a%5==0)\n if(a%7==0)\n printf(\"3 5 7\");\n else\n printf(\"3 5\");\n else\n if(a%7==0)\n printf(\"3 7\");\n else\n printf(\"3\");\nelse\n if(a%5==0)\n if(a%7==0)\n printf(\"5 7\");\n else\n printf(\"5\");\n else\n if(a%7==0)\n printf(\"7\");\n else\n printf(\"n\");\nreturn 0;\n}\n "} +{"label": "93", "index": "46455", "code": "void main()\n{\n\tint num;\n\tscanf(\"%d\",&num);\n\tif(num%3==0)\n\t{printf(\"3\");}\n\tif(num%5==0)\n\t{\n\t\tif(num%3==0)\n\t\t\tprintf(\" 5\");\n\t\tif(num%3!=0)\n\t\t\tprintf(\"5\");\n\t}\n\tif(num%7==0)\n\t{\n\t\tif(num%3==0||num%5==0)\n\t\t\tprintf(\" 7\");\n\t\tif(num%3!=0&&num%5!=0)\n\t\t\tprintf(\"7\");\n\t}\n\tif(num%3!=0&&num%5!=0&&num%7!=0) \n\t{printf(\"n\");}\n}"} +{"label": "93", "index": "46456", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a>=3)\n\t{if(a%3==0)\n\t{\n\t\tprintf(\"3\");\n\t}\n\t\t\n\t\tif(a%5==0&&a%3==0)\t\n\t\t{\n\t\t\tprintf(\" 5\");\n\t\t}\n\t\telse if(a%5==0&&a%3!=0)\n\t{\n\t\t\tprintf(\"5\");\n\t\t}\n\t\t\n\t\tif(a%7==0&&(a%3==0||a%5==0))\n\t\t{\n\t\t\tprintf(\" 7\");\n\t\t}\n\t\telse if(a%7==0&&(a%3!=0&&a%5!=0))\n\t\t{\n\t\t\tprintf(\"7\");\n\t}\n\t\t\nif(a%7!=0&&a%3!=0&&a%5!=0)\n{\n\tprintf(\"n\");\n}\n\t}\nelse\n{\n\tprintf(\"n\");\n}\nreturn 0;\n}"} +{"label": "93", "index": "46457", "code": "int main(){\n int i;\n scanf(\"%d\",&i);\n if((i%3==0)&&(i%5==0)&&(i%7==0)){\n printf(\"%d %d %d\",3,5,7);\n }\n if((i%3==0)&&(i%5==0)&&(i%7!=0)){\n printf(\"%d %d\",3,5);\n }\n if((i%3==0)&&(i%5!=0)&&(i%7==0)){\n printf(\"%d %d\",3,7);\n }\n if((i%3!=0)&&(i%5==0)&&(i%7==0)){\n printf(\"%d %d\",5,7);\n } \n if((i%3==0)&&(i%5!=0)&&(i%7!=0)){\n printf(\"%d\",3);\n } \n if((i%3!=0)&&(i%5==0)&&(i%7!=0)){\n printf(\"%d\",5);\n } \n if((i%3!=0)&&(i%5!=0)&&(i%7==0)){\n printf(\"%d\",7);\n }\n if((i%3!=0)&&(i%5!=0)&&(i%7!=0)){\n printf(\"n\");\n }\n return 0;\n}\n\n\n\n\n "} +{"label": "93", "index": "46458", "code": "\n\nint main(int argc, char* argv[])\n{\nint a,b,c,d;\nscanf(\"%d\",&a);\t\nb=a%3;\nc=a%5;\nd=a%7;\nif(b==0&&c==0&&d==0)\n{printf(\"3 5 7\");}\nelse if(b==0&&c==0)\n{printf(\"3 5\");}\nelse if(b==0&&d==0)\n{printf(\"3 7\");}\nelse if(c==0&&d==0)\n{printf(\"5 7\");}\nelse if(b==0)\n{printf(\"3\");}\nelse if(c==0)\n{printf(\"5\");}\nelse if(d==0)\n{printf(\"7\");}\nelse\n{printf(\"n\");}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46459", "code": "int main()\n{\n\tdouble n; //n??????????\n\n\tcin >> n;\n\n\tif((int)(n/3) == (n/3)&&(int)(n/5) == (n/5)&&(int)(n/7) == (n/7))\n\t{\n\t\tcout << \"3 5 7\" << endl;\n\t}\n\n\telse if((int)(n/3) == (n/3)&&(int)(n/5) == (n/5)&&(int)(n/7) != (n/7))\n\t{\n\t\tcout << \"3 5\" << endl;\n\t}\n\n\telse if((int)(n/3) == (n/3)&&(int)(n/5) != (n/5)&&(int)(n/7) == (n/7))\n\t{\n\t\tcout << \"3 7\" << endl;\n\t}\n\n\telse if((int)(n/3) != (n/3)&&(int)(n/5) == (n/5)&&(int)(n/7) == (n/7))\n\t{\n\t\tcout << \"5 7\" << endl;\n\t}\n\n\telse if((int)(n/3) != (n/3)&&(int)(n/5) != (n/5)&&(int)(n/7) == (n/7))\n\t{\n\t\tcout << \"7\" << endl;\n\t}\n\n\telse if((int)(n/3) != (n/3)&&(int)(n/5) == (n/5)&&(int)(n/7) != (n/7))\n\t{\n\t\tcout << \"5\" << endl;\n\t}\n\n\telse if((int)(n/3) == (n/3)&&(int)(n/5) != (n=5)&&(int)(n/7) != (n=7))\n\t{\n\t\tcout << \"3\" << endl;\n\t}\n\n\telse if((int)(n/3) != (n/3)&&(int)(n/5) != (n/5)&&(int)(n/7) != (n/7))\n\t{\n\t\tcout << \"n\" << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "93", "index": "46460", "code": "void main()\n{\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;\n\tif (a==0)\n\t{\n\t\tif (b==0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\telse\n\t\t\t\tprintf(\"3 5\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"3 7\");\n\t\t\telse\n\t\t\t\tprintf(\"3\");\n\t\t}\n\t}\n\telse\n\t{\n\t\tif(b==0)\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"5 7\");\n\t\t\telse\n\t\t\t\tprintf(\"5\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (c==0)\n\t\t\t\tprintf(\"7\");\n\t\t\telse\n\t\t\t\tprintf(\"n\");\n\t\t}\n\t}\n}"} +{"label": "93", "index": "46461", "code": "void main()\n{\n\tint num,i=0,j=0;\n\tscanf(\"%d\",&num);\n\tif(num%3==0)\n\t{\n\t\tprintf(\"3\");\n\t\ti=1;\n\t}\n\tif(num%5==0)\n\t{if(i==1)\n\t{printf(\" \");\n\tprintf(\"5\");}\n\telse if(i==0)\n\t{printf(\"5\");}\n\tj=1;\n\t}\n\tif(num%7==0)\n\t{if(i==1||j==1)\n\t{printf(\" \");\n\tprintf(\"7\");}\n\telse printf(\"7\");\n\t}\n\tif(num%3!=0&&num%5!=0&&num%7!=0) \n\t\tprintf(\"n\");\n}\n"} +{"label": "93", "index": "46462", "code": "int main()\n{\n int a;\n cin >> a;\n if (a % 3 == 0)\n cout << 3;\n if (a % 5 == 0 && a % 3 == 0)\n cout << ' ' << 5;\n else if (a % 5 == 0)\n cout << 5; \n if (a % 7 == 0 && a % 3 != 0 && a % 5 != 0)\n cout << 7;\n else if (a % 7 ==0)\n cout << ' ' << 7;\n if (a % 3 != 0 && a % 5 != 0 && a % 7 != 0)\n cout << \"n\" << endl;\n \n return 0;\n}\n\n"} +{"label": "93", "index": "46463", "code": "//*********************************************\n// *file: 3.cpp\n// *author: ????1200012986?\n// *date: 2012-9-28\n// *description:\n// ???????:??3?5?7???? \n//*********************************************\nint main() // ??? \n{\n\tint k; // ??????k\n\tcin >> k; // ??????\n\t{\n\t\tif (k % 3 == 0 && k % 5 == 0 && k % 7 == 0) // ??k?????3?5?7??\n\t\t\tcout << \"3\" << \" \" << \"5\" << \" \" << \"7\" << endl; // ????3 5 7\n\t\telse if (k % 3 != 0 && k % 5 != 0 && k % 7 != 0) // ?k????????\n\t\t\tcout << 'n' << endl; // ??????n\n\t}\n\t\t{\n\t\t\tif (k % 15 == 0 && k % 7 != 0) // ?k????3,5??????7??\n\t\t\t\tcout << \"3\" << \" \" << \"5\" << endl; // ??3,5\n\t\t\telse if (k % 21 == 0 && k % 5 != 0) // ?k????3,7??????5??\n\t\t\t\tcout << \"3\" << \" \" << \"7\" << endl; // ??3,7\n\t\t\t\telse if (k % 35 == 0 && k % 3 != 0) // ?k????5,7??????5??\n\t\t\t\t\tcout << \"5\" << \" \" << \"7\" << endl; // ??5,7\n\t\t}\n\t\n\t\t\t{\n\t\t\t\tif (k % 3 != 0 && k % 5 != 0 && k % 7 == 0) // ?k???7??\n\t\t\t\t\tcout << \"7\" << endl; // ??7\n\t\t\t\telse if (k % 3 != 0 && k % 7 != 0 && k % 5 == 0) // ?k???5??\n\t\t\t\t\tcout << \"5\" << endl; // ??5\n\t\t\t\t\telse if (k % 5 != 0 && k % 7 != 0 && k % 3 == 0) // ?k???3??\n\t\t\t\t\t\tcout << \"3\" << endl; // ??3\n\t\t\t}\n\treturn 0;\n} // ?????\n"} +{"label": "93", "index": "46464", "code": "int main()\n{\nint a;\ncin>>a;\nint s,t,d;\ns=(a%3==0);\nt=(a%5==0);\nd=(a%7==0);\nif(s&&t&&d==1) cout<<\"3 5 7\"<>a;\n\tif ((a%3!=0)&&(a%5!=0)&&(a%7!=0))\n\t cout<<\"n\"<>n;\n s=3*(n%3==0)+5*(n%5==0)+7*(n%7==0);\n if(s==0)cout<<'n';\n if(s==3)cout<<3;\n if(s==5)cout<<5;\n if(s==7)cout<<7;\n if(s==8)cout<<\"3 5\";\n if(s==10)cout<<\"3 7\";\n if(s==12)cout<<\"5 7\";\n if(s==15)cout<<\"3 5 7\";\n return 0;\n}\n"} +{"label": "93", "index": "46469", "code": "void main()\n{\n\tint n,flag1=0,flag2=0,flag3=0;\n\tscanf(\"%d\",&n);\n\tif(n%3==0)\n\t{flag1=1;}\n\tif(n%5==0)\n\t{flag2=1;}\n\tif(n%7==0)\n\t{flag3=1;}\n\n\tif(flag1==1&&flag2==1&&flag3==1)\n\t{printf(\"3 5 7\");}\n \n\tif(flag1==1&&flag2==1&&flag3==0)\n\t{printf(\"3 5\");}\n\n \n\tif(flag2==1&&flag3==1&&flag1==0)\n\t{printf(\"5 7\");}\n\n \n\tif(flag1==1&&flag3==1&&flag2==0)\n\t{printf(\"3 7\");}\n\n\t\n\tif(flag1==0&&flag2==0&&flag3==0)\n\t{printf(\"n\");}\n\n\tif(flag1==1&&flag2==0&&flag3==0)\n\t{printf(\"3\");}\n\tif(flag1==0&&flag2==1&&flag3==0)\n\t{printf(\"5\");}\n\tif(flag1==0&&flag2==0&&flag3==1)\n\t{printf(\"7\");}\n\n}\n\n\n\n\n"} +{"label": "93", "index": "46470", "code": "int main()\n{\n\tint x;\n\tcin >> x;\n\tif (x % 3 == 0)\n\t{\n\t\tif (x % 5 == 0)\n\t\t{\n\t\t\tif (x % 7 == 0)\n\t\t\t\tcout << \"3\" << \" \" << \"5\" << \" \" << \"7\" << endl;\n\t\t\telse\n\t\t\t\tcout << \"3\" << \" \" << \"5\" << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (x % 7 == 0)\n\t\t\t\tcout << \"3\" << \" \" << \"7\" << endl;\n\t\t\telse\n\t\t\t\tcout << \"3\" << endl;\n\t\t}\n\t}\n\telse\n\t{\n\t\tif (x % 5 == 0)\n\t\t{\n\t\t\tif (x % 7 == 0)\n\t\t\t\tcout << \"5\" << \" \" << \"7\" << endl;\n\t\t\telse\n\t\t\t\tcout << \"5\" << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (x % 7 == 0)\n\t\t\t\tcout << \"7\" << endl;\n\t\t\telse\n\t\t\t\tcout << \"n\" << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "93", "index": "46471", "code": "void main()\n{\n\tint i;\n\tscanf(\"%d\",&i);\n\tif(i%3==0)\n\t\tprintf(\"3\");\n\tif(i%5==0){\n\t\tif(i%3)\n\t\t printf(\"5\");\n\t\telse\n\t\t\tprintf(\" 5\");\n\t}\n\tif(i%7==0){\n\t\tif(i%3==0||i%5==0)\n\t\t printf(\" 7\");\n\t\telse\n\t\t\tprintf(\"7\");\n\t}\n\tif(i%3&&i%5&&i%7)\n\tprintf(\"n\");\n}"} +{"label": "93", "index": "46472", "code": "//**********************************\n//*?????3?5?7???? **\n//*?????? 1300012722 **\n//*???2013.9.27 **\n//**********************************\nint main()\n{\n\tint x;\n\n\tcin >> x; //????\n\n\tif(x%3==0) //????????3????\n\t{\n\t\tcout << \"3\" ; \n\t if(x%5==0 ) //????????5??\n\t\tcout << \" 5\" ; \n if(x%7==0) //????????7??\n\t\tcout << \" 7\" ; \n\t}\n\n\telse if(x%5==0) //????????5??\n\t{\n\t\tcout << \"5\" ;\n\t\tif(x%7==0) //????????7??\n\t\t\tcout << \" 7\" ;\n\t}\n\telse if(x%7==0) //????????7??\n\t\tcout << \"7\";\n\telse \n\t\tcout << \"n\";\n\n\tcout << endl;\n\n\treturn 0;\n}\n\n\n"} +{"label": "93", "index": "46473", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t{\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\"3 5\");\n\t\t\t}\n\t\t}\n\t\telse if(a%7==0){\n\t\t\tprintf(\"3 7\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"3\");\n\t\t}\n\t}\n\telse if(a%3!=0&&a%5==0)\n\t{\n\t\tif(a%7==0)\n\t\t{\n\n\t\t\tprintf(\"5 7\");\n\t\t}\n\t\telse{\n\t\t\tprintf(\"5\");\n\t\t}\n\t}\n\telse if(a%7==0){\n\t\tprintf(\"7\");\n\t}\n\telse{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46474", "code": "int main()\n{\n int i;\n\tscanf(\"%d\",&i);\n\tif(i%3==0)\n\n\t {\n printf(\"3\");\n if(i%5==0)\n\t\t printf(\" 5\");\n\t if(i%7==0)\n\t\t printf(\" 7\");\n\t }\n\t if(i%3>0)\n {if(i%5==0)\n\t {printf(\"5\");\n\t if(i%7==0)\n\t\t\t printf(\" 7\");}\n\t if(i%5>0)\n\t {if(i%7==0)\n\t\t\t printf(\"7\");}\n\t }\n\t if(i%3!=0 && i%5!=0 && i%7!=0)\n\t\t printf(\"n\"); \nreturn 0;\n}"} +{"label": "93", "index": "46475", "code": "int main()\n{\n int n,tot=0,b=0;\n scanf(\"%d\",&n);\n if(!(n%3)) tot++;\n if(!(n%5)) tot++;\n if(!(n%7)) tot++;\n if(!(n%3))\n {\n printf(\"3\");\n if(tot-1)\n {\n putchar(' ');\n tot--;\n }\n b=1;\n }\n if(!(n%5))\n {\n printf(\"5\");\n if(tot-1)\n {\n putchar(' ');\n tot--;\n }\n b=1;\n }\n if(!(n%7))\n {\n printf(\"7\");\n if(tot-1)\n {\n putchar(' ');\n tot--;\n }\n b=1;\n }\n if(!b)\n {\n putchar('n');\n }\n putchar('\\n');\n return 0;\n}\n"} +{"label": "93", "index": "46476", "code": "int main(){\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;\n\tif(a==0&&b==0&&c==0){\n\t\tprintf(\"3 5 7\");\n\t}else if(a==0&&b==0){\n\t\tprintf(\"3 5\");\n\t}else if(a==0&&c==0){\n\t\tprintf(\"3 7\");\n\t}else if(b==0&&c==0){\n\t\tprintf(\"5 7\");\n\t}else if(a==0){\n\t\tprintf(\"3\");\n\t}else if(b==0){\n\t\tprintf(\"5\");\n\t}else if(c==0){\n\t\tprintf(\"7\");\n\t}else{\n\t\tprintf(\"n\");\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46477", "code": "int main()\n{\n\tint n,n0,flag=0;\n\tcin >> n;\n\tn0=n;\n\tif(n%3==0){n/=3;cout<<\"3\";flag=1;}\n\tif(n%5==0){\n\tif(n!=n0)cout<<\" \";n/=5;\n\tcout<<5;flag=1;}\n\tif(n%7==0)\n\t{\n\tif(n!=n0)cout<<\" \";n/=7;\n\tcout<<7;flag=1;}\n\tif(flag==0)cout<<'n';\n\tcout<> n;\n if (n % 3 == 0)\n count++;\n if (n % 5 == 0)\n count ++;\n if (n % 7 == 0)\n count ++;\n switch (count)\n {\n case 0:\n cout << 'n';\n break;\n case 1:\n {\n\t\t\t\tif (n % 3 == 0)\n cout << 3;\n if (n % 5 == 0)\n cout << 5;\n if (n % 7 == 0)\n cout << 7;\n break;\n }\n case 2:\n {\n\t\t\t\tif (n % 3 !=0)\n cout << 5 << ' ' << 7;\n if (n % 5 !=0)\n cout << 3 << ' ' << 7;\n if (n % 7 !=0)\n cout << 3 << ' ' << 5;\n break;\n }\n case 3:\n cout << 3 << ' ' << 5 << ' ' << 7; \n break;\n }\n return 0;\n}"} +{"label": "93", "index": "46482", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\tif(a%3==0)\n\t{\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 5 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"3 5\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"3 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"3\");\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(a%7==0)\n\t\t\t{\n\t\t\t\tprintf(\"5 7\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"5\");\n\t\t\t}\n\t\t}\n\t\telse if(a%7==0)\n\t\t{\n\t\t\tprintf(\"7\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"n\");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46483", "code": "\nint main(){\n\n int a;\n\n scanf (\"%d\", &a);\n\n if ( a % (3*5*7) == 0 ){\n printf (\"3 5 7\\n\");\n return 0;\n }\n\n if ( a % ( 3*5) == 0) {\n printf (\"3 5\\n\");\n return 0;\n }\n\n if ( a % ( 3*7) == 0) {\n printf (\"3 7\\n\");\n return 0;\n }\n if ( a % ( 5*7) == 0) {\n printf (\"5 7\\n\");\n return 0;\n }\n if ( a % ( 3) == 0) {\n printf (\"3\\n\");\n return 0;\n }\n if ( a % ( 5) == 0) {\n printf (\"5\\n\");\n return 0;\n }\n if ( a % ( 7) == 0) {\n printf (\"7\\n\");\n return 0;\n }\n\n printf (\"n\\n\");\n\n return 0;\n}"} +{"label": "93", "index": "46484", "code": "int main ()\n{\n\tint a,i=0,m=0;\n\tcin>>a;\n\tif (a%3==0)\n\t{\n\t\tcout<<\"3\";\n\ti++;\n\tm++;}\n\tif (a%5==0)\n\t{\n\t\tif (i!=0)\n\t{cout<<\" 5\";}\n\telse\n\t{cout<<\"5\";}\n\ti++; \n\t\tm++;}\n\tif (a%7==0)\n\t{\n\t\tif (i!=0)\n\t{cout<<\" 7\";}\n\telse\n\t{cout<<\"7\";}\n\tm++;}\n\tif (m==0)\n\t\tcout<<\"n\";\n\treturn 0;\n}"} +{"label": "93", "index": "46485", "code": "int main()\n{\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\n\ta=n%3;\n\tb=n%5;\n\tc=n%7;\n\tif((a==0)&&(b==0)&&(c==0))\n\t\tprintf(\"3 5 7\");\n\telse;\n\tif((a==0)&&(b==0)&&(c!=0))\n\t\tprintf(\"3 5\");\n\telse;\n\tif((a==0)&&(c==0)&&(b!=0))\n\t\tprintf(\"3 7\");\n\telse;\n\tif((c==0)&&(b==0)&&(a!=0))\n\t\tprintf(\"5 7\");\n\telse;\n\tif((c==0)&&(b!=0)&&(a!=0))\n\t\tprintf(\"7\");\n\telse;\n\tif((c!=0)&&(b==0)&&(a!=0))\n\t\tprintf(\"5\");\n\telse;\n\tif((c!=0)&&(b!=0)&&(a==0))\n\t\tprintf(\"3\");\n\telse;\n\tif((c!=0)&&(b!=0)&&(a!=0))\n\t\tprintf(\"n\");\n\telse;\n\treturn 0;\n}"} +{"label": "93", "index": "46486", "code": "//********************************\n//*?????3?5?7????.cpp **\n//*?????? 1200012768 **\n//*???2012.10.5 **\n//********************************\nint main() //??? \n{\n int num = 0, a = 0, b = 0, c = 0;//??int?? \n cin >> num; //?????? \n a = num % 3, b = num % 5, c = num % 7 ;//???3?5?7?? \n if ( a == 0 && b == 0 && c == 0 ) //????3?5?7?? \n cout << 3 << \" \" << 5 << \" \" << 7 << endl; \n else if ( a == 0 && b == 0 && c != 0 ) //????3?5??\n cout << 3 << \" \" << 5 << endl;\n else if ( a == 0 && b != 0 && c == 0 ) //????3?5?7??\n cout << 3 << \" \" << 7 <> a ;\n char g ; //??????\n\t g=' ';\n int x,y,z;\n if (a%3==0) { x=1;}\n if (a%5==0) { y=1;}\n if (a%7==0) { z=1;}\n { if (x==1) //??????\n if (y==1)\n\t\t\t if (z==1) cout<< \"3\" << g << \"5\" << g << \"7\" << endl ;\n else cout<< \"3\" << g << \"5\" << endl ;\n }\n {\t if (x==1)\n\t\t\t if (y!=1)\n \t\t\t if (z==1) cout<< \"3\" << g << \"7\" << endl ;\n } \n { if (x==1)\n\t\t\t\t if (y!=1)\n\t\t\t\t if (z!=1) cout<< \"3\" << endl; \n }\n { if (x!=1)\n\t\t if (y==1)\n if (z==1) cout<< \"5\" << g << \"7\" << endl ;\n\t else cout<< \"5\" << endl; \n}\n{\tif (x!=1)\n\t\tif (y!=1)\n\t\t\tif (z==1) cout<< \"7\" << endl;\n} \n\tif (x!=1)\t\t\n if (y!=1)\n\t\t if (z!=1) cout << \"n\" << endl ; \n return 0;\n}\n"} +{"label": "93", "index": "46488", "code": "void main()\n{\n\tint a,x,y,z;\n\tscanf(\"%d\",&a);\n\tx=a%3;\n\ty=a%5;\n\tz=a%7;\n\tif(x+y+z==0)\n\tprintf(\"%d %d %d\",3,5,7);\n else if(z!=0 && x==0 && y==0) \t \n\t printf(\"%d %d\",3,5) ; \n else if(x!=0 && y==0 && z==0) \t \n\t printf(\"%d %d\",5,7) ; \n else if(y!=0 && x==0 && z==0) \t \n\t printf(\"%d %d\",3,7) ; \n else if(z!=0 && x!=0 && y!=0) \t \n\t printf(\"n\") ; \n\telse if(x==0 && z!=0 && y!=0) \t \n\t printf(\"%d\",3 ) ;\n else if(y==0 && z!=0 && x!=0) \t \n\t printf(\"%d\", 5) ;\n else if(z==0 && x!=0 && y!=0) \t \n\t printf(\"%d\",7) ;\n}"} +{"label": "93", "index": "46489", "code": "/*??? 1200012866\n2012.10.12\n??3?5?7??*/\nint main()\n{\n\tint n,f=0;//f???????????\n\tcin>>n;\n\tif(n%105==0&&f==0){cout<<\"3 5 7\";f=1;}\n\tif(n%15==0&&f==0){cout<<\"3 5\";f=1;}\n\tif(n%21==0&&f==0){cout<<\"3 7\";f=1;}\n\tif(n%35==0&&f==0){cout<<\"5 7\";f=1;}\n\tif(n%3==0&&f==0){cout<<\"3\";f=1;}\n\tif(n%5==0&&f==0){cout<<\"5\";f=1;}\n\tif(n%7==0&&f==0){cout<<\"7\";f=1;}\n\tif(f==0)cout<<\"n\";//???????n\n\n\treturn 0;\n}"} +{"label": "93", "index": "46490", "code": "int main()\n{\n\tint a;\n\tscanf(\"%d\",&a);\n\t if(a%105==0){\n\t\tprintf(\"3 5 7\");\n\t\t}\t\n\t\tif(a%21==0&&a%5!=0){\n\t\t\tprintf(\"3 7\");\n\t\t}\n\t\tif(a%35==0&&a%3!=0){\n\t\t\tprintf(\"5 7\");\n\t\t}\n\t\tif(a%15==0&&a%7!=0){\n\t\t\tprintf(\"3 5\");\n\t\t}\t\n\t\tif(a%3==0&&a%5!=0&&a%7!=0){\n\t\t\tprintf(\"3\");\n\t\t}\n\t\tif(a%5==0&&a%3!=0&&a%7!=0){\n\t\t\tprintf(\"5\");\n\t\t}\n\t\tif(a%7==0&&a%3!=0&&a%5!=0){\n\t\t\tprintf(\"7\");\n\t\t}\n\t\tif(a%7!=0&&a%3!=0&&a%5!=0){\n\t\t\tprintf(\"n\");\n\t\t}\n\treturn 0;\n}\n"} +{"label": "93", "index": "46491", "code": "void main()\n{\n\tint a,b,c,i;\n\tscanf(\"%d\",&a);\n\tb=1;\n\t\tif(a%3==0)\n\t\t{printf(\"3\");b++;}\n\t\tif(a%5==0)\n\t\t{\n\t\t\tif(b==1)\n\t\t\t{printf(\"5\");b++;}\n\t\t\telse\n\t\t\tprintf(\" 5\");\n\t\t}\n\t\tif(a%7==0)\n\t\t{\n\t\t\tif(b==1)\n\t\t\t{printf(\"7\");b++;}\n\t\t\telse\n\t\t\tprintf(\" 7\");\n\t\t}\n\tif(b==1)\n\t\tprintf(\"n\");\n}\n"} +{"label": "93", "index": "46492", "code": "int main()\n{\n int number;\n cin>>number;\n if(number%3==0&&number%5==0&&number%7==0)\n cout<<\"3 5 7\"<> i;\nif(!(i % 3) && !(i % 5) && !(i % 7))\n cout << \"3 5 7\" << endl;\n\t\telse if(!(i % 3) && !(i % 5))\n cout << \"3 5\" << endl;\n\t\t\telse if(!(i % 5) && !(i % 7))\n cout << \"5 7\" << endl;\n\t\t else if(!(i % 3) && !(i % 7))\n cout << \"3 7\" << endl;\n\t\t else if(!(i % 3))\n cout << \"3\" << endl;\n\t\telse if(!(i % 5))\n cout << \"5\" << endl;\n\t else if(!(i % 7))\n cout << \"7\" << endl;\n else cout << \"n\";\n return 0;\n} \n"} +{"label": "93", "index": "46494", "code": "void main()\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\ti=0;\n\tif ((n%3)==0)\n\t\tif (i==0)\n\t\t{\n\t\t\tprintf(\"3\");\n\t\t\ti=1;\n\t\t}\n\t\telse\n\t\t\tprintf(\" 3\");\n\t\t\tif ((n%5)==0)\n\t\tif (i==0)\n\t\t{\n\t\t\tprintf(\"5\");\n\t\t\ti=1;\n\t\t}\n\t\telse\n\t\t\tprintf(\" 5\");\n\t\t\tif ((n%7)==0)\n\t\tif (i==0)\n\t\t{\n\t\t\tprintf(\"7\");\n\t\t\ti=1;\n\t\t}\n\t\telse\n\t\t\tprintf(\" 7\");\n\t\tif (i==0)\n\t\t\tprintf(\"n\");\n}"} +{"label": "93", "index": "46495", "code": "int main()\n{\n\tint a;\n\tchar b;\n\tb='n';\n\tscanf(\"%d\",&a);\n\tif(a%3==0&&a%5==0&&a%7==0){\n\t\tprintf(\"3 5 7\");}\n\telse if(a%3==0&&a%5==0&&a%7!=0){\n\t\tprintf(\"3 5\\n\");}\n\telse if(a%3==0&&a%5!=0&&a%7==0){\n\t\tprintf(\"3 7\\n\");}\n\telse if(a%3!=0&&a%5==0&&a%7==0){\n\t\tprintf(\"5 7\\n\");}\n\telse if(a%3==0&&a%5!=0&&a%7!=0){\n\t\tprintf(\"3\\n\");}\t\n\telse if(a%3!=0&&a%5!=0&&a%7==0){\n\t\tprintf(\"7\\n\");}\n\telse if(a%3!=0&&a%5==0&&a%7!=0){\n\t\tprintf(\"5\\n\");}\n\telse{\n\t\tprintf(\"%c\",b);}\n\treturn 0;\n}"} +{"label": "93", "index": "46496", "code": "void main()\n{\n\tint m=0,n=0,p=0,a;\n\tscanf(\"%d\",&a);\n if(a%3==0)m=3;\n if(a%5==0)n=5;\n\tif(a%7==0)p=7;\n\tif(m+n+p==15)printf(\"3 5 7\");\n\telse if(m+n+p==8)printf(\"3 5\");\n\telse if(m+n+p==10)printf(\"3 7\");\n\telse if(m+n+p==12)printf(\"5 7\");\n\telse if(m+n+p==3)printf(\"3\");\n\telse if(m+n+p==5)printf(\"5\");\n\telse if(m+n+p==7)printf(\"7\");\n\telse if(m+n+p==0)printf(\"n\"); \n\n\n}"} +{"label": "93", "index": "46497", "code": "//******************************************\n// ??????3?5?7???? *\n// ???1200012826 ?? *\n// ???2012?9?30? *\n//******************************************\nint main() // ?????\n{\n\tint N, x=3, y=5, z=7; // ????N?x=3?y=5?z=7\n\tchar n='n'; // ?????n\n\tcin>>N; // ??N\n\tif(N%3==0) // ??????\n\t{if(N%5==0&&N%7==0)\n\t\t{cout<> num; //?????? \n a = num % 3, b = num % 5, c = num % 7 ;//???3?5?7?? \n if ( a == 0 ) \n cout << 3 ; //????? 3????????????????5?7?? \n if ( a == 0 && b == 0 )\n cout << \" \"<< 5 ;\n else if ( a != 0 && b == 0 )\n cout << 5 ;\n if ( ( a == 0 || b == 0 ) && c == 0 )\n cout << \" \" << 7 ;\n else if ( ( a != 0 && b != 0 ) && c == 0 )\n cout << 7 ;\n if ( ( a != 0 && b != 0 ) && c != 0 )\n cout << \"n\";\n cout << endl;\n return 0;\n}\n"} +{"label": "93", "index": "46499", "code": "int main()\n{\n\tint a,b,c,d;\n\n\tscanf(\"%d\",&a);\n\tb=a%3;\n\n\tc=a%5;\n\n\td=a%7;\n\tif(b==0&&c==0&&d==0)\n\t{\n\t\tprintf(\"%d%2d%2d\",3,5,7);\n\t}\n\telse {if(b==0&&c==0)\n\t{\n\t\tprintf(\"3 5\");\n\t}\n\telse {if(b==0&&d==0)\n\t{\n\t\tprintf(\"3 7\");\n\t}\n\telse {if(c==0&&d==0)\n\t{\n\t\tprintf(\"5 7\");\n\t}\n\telse {if(b==0)\n\t{\n\t\tprintf(\"3\");\n\t}\n\telse {if(c==0)\n\t{\n\t\tprintf(\"5\");\n\t}\n\telse {if(d==0)\n\t{\n\t\tprintf(\"7\");\n\t}\n\telse {\n\t\tprintf(\"n\");\n\t}\n\t}\n\t}\n\t}\n\t}\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46500", "code": "int main(){\nint n, m, i, j;\nscanf (\"%d\", &n);\nint x[n], y[n];\nm=0;\nfor (i=1;i<=n;i++){\nscanf (\"%d\", &x[i]);\nif (x[i]%2==1){\nm=m+1;\ny[m]=x[i];}}\nfor (i=1;i<=m;i++){\nfor (j=i;j<=m;j++){\nif (y[i]>y[j]){\nn=y[i];\ny[i]=y[j];\ny[j]=n;}}\nif (i>1){printf (\",\");}\nprintf (\"%d\", y[i]);}\nreturn 0;}"} +{"label": "94", "index": "46501", "code": "int main()\n{\n int j,n,e,shuru[501],shuchu[501];\n j=0;\n scanf(\"%d\",&n);\n for(int i=0;i<=n-1;i++)\n {\n scanf(\"%d\",&shuru[i]);\n if(shuru[i]%2==1)\n {\n shuchu[j]=shuru[i];\n j=j+1;\n }\n \n }\n for(int k=1;kjs[i+1]){\n e=js[i+1];\n js[i+1]=js[i];\n js[i]=e;\n }\n }\n }\nfor(i=0;i(js[i+1])){\n e=js[i+1];\n js[i+1]=js[i];\n js[i]=e;\n }\n }\n }\n for(int i=0;isz[j+1]){\n\t\t\t\ta=sz[j+1];\n\t\t\t\tsz[j+1]=sz[j];\n\t\t\t\tsz[j]=a;\n\t\t\t}\n\t\t}\n\t}\n\tj=0;\n\twhile(sz[j]%2==0){\n\t\tj+=1;\n\t}\n\tprintf(\"%d\",sz[j]);\n\tfor(j=j+1;j= 0; i--){\n for (j = 0;j < i ; j++){\n if (data[j] > data[j+1]){\n data[j] = data[j+1] + data[j];\n data[j+1] = data[j] - data[j+1];\n data[j] = data[j]- data[j+1];\n }\n }\n }\n\n for (i = 0;i <= M-2; i++){\n printf(\"%d,\",data[i]);\n }\n printf(\"%d\\n\",data[i]);\n\n return 0;\n}\n"} +{"label": "94", "index": "46506", "code": "int main()\n{\n int N,i,a,b;\n scanf(\"%d\\n\",&N);\n int sz[N];\n for(i=0;isz[a]){\n b=sz[a-1];\n sz[a-1]=sz[a];\n sz[a]=b;}}}\n printf(\"%d\",sz[0]);\n for(i=1;iy[m]){m=c;} \n\t}\n\nif(m!=b-k){t=y[b-k];\ny[b-k]=y[m];\ny[m]=t;}\nm=0;\n}\n\n\nfor(int d=1;d<=b;d++){\nif(dsz[i+1])\n\t\t\t{\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\nint k=0,ul[k];\n for(i=0;i=1;m--){\n for (int r=1;r<=m;r++){\n if(s[r]>s[r+1]){\n e=s[r];\n s[r]=s[r+1];\n s[r+1]=e;\n }\n }\n }\n for(int i=n-t+1;ia[j+1]){\n\t\t\t\ttemp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=temp;\n\t\t\t}\n}"} +{"label": "94", "index": "46512", "code": "/*\n@ ??????.cpp\n@ 1000012895\n@ ???\n@ 2010/10/31\n*/\nint main()\n{\n\tint N, a[501], b[501], i, j, k, temp1, temp2 = 0;\n\tcin >> N;\n\tfor(i = 1; i <= N; i++)\n\t\tcin >> a[i];\n\tj = 1;\n\tfor(i = 1; i <= N; i++)\n\t{\n\t\tif(a[i] % 2 != 0)\n\t\t{\n\t\t\tb[j] = a[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tj--;\n\tfor(i = 1; i < j; i++)\n\t\tfor(k = 1; k < j - i + 1; k++)\n\t\t\tif(b[k] > b[k+1])\n\t\t\t{\n\t\t\t\ttemp1 = b[k];\n\t\t\t\tb[k] = b[k+1];\n\t\t\t\tb[k+1] = temp1;\n\t\t\t}\n\tfor(i = 1; i <= j; i++)\n\t{\n\t\tif(temp2 == 0)\n\t\t\tcout << b[i];\n\t\telse\n\t\t\tcout << ',' << b[i];\n\t\ttemp2++;\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46513", "code": "int main()\n{\n\tint n,t,j,i;\n\tcin>>n;\n\tint a[n];\n\tfor(i=0;i>a[i];\n\tfor(j=0;ja[i+1])\n\t\t\t{\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\tj=0;\n\tfor(i=0;i1){\n\t\tfor(i=0; ifirst[i+1]){\n\t\t\t\ta=first[i];\n\t\t\t\tfirst[i]=first[i+1];\n\t\t\t\tfirst[i+1]=a;\n\t\t\t}\n\t\t}\n\t\tn--;\n\t}\n\tfor(i=0; ix[j-1])\n\t\t\t{\n\t\t\t\tm=x[i-1];\n\t\t\t\tx[i-1]=x[j-1];\n\t\t\t\tx[j-1]=m;\n\t\t\t}\n\tfor(i=1;i<=k;i++)\n\t{\n\t\tprintf(\"%d\",x[i-1]);\n\t\tif(i> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> tem;\n\t\tif (tem % 2 != 0)\n\t\t\ta[k++] = tem;\n\t}\n\tfor (i = 0; i < k - 1; i++)\n\t\tfor (j = 0; j < k - 1 - i; j++)\n\t\t{\n\t\t\tif (a[j] > a[j + 1])\n\t\t\t{\n\t\t\t\ttem = a[j];\n\t\t\t\ta[j] = a[j + 1];\n\t\t\t\ta[j + 1] = tem;\n\t\t\t}\n\t\t}\n\tcout << a[0];\n\tfor (i = 1; i < k; i++)\n\t\tcout << \",\" << a[i];\n\treturn 0;\n}\n\n\t\n"} +{"label": "94", "index": "46517", "code": "int main()\n{\n\tint n,i,j=0;\n\tcin>>n;\n\tint a[n];\n\tfor(i=0;i>a[i];\n\tfor(i=0;inum[i+1]){\n\t\t\t\ta=num[i+1];\n\t\t\t\tnum[i+1]=num[i];\n\t\t\t\tnum[i]=a;\n\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tconst int n1=n;\n\tint z[n1],t,t1;\n\tfor (t=0;t>z[t]; //????\n\tint numofdel=0; //numofdel?????????????\n\tfor (t=0;tq[t1]) //????\n\t\t\t{\n\t\t\t\tchange=q[t];\n\t\t\t\tq[t]=q[t1];\n\t\t\t\tq[t1]=change;\n\t\t\t}\n\tfor (t=0;ta[j+1]){\n\t\t\t\tt=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ia[i+1])\n\t\t{\n\t\t e=a[i+1];\n\t\t\t a[i+1]=a[i];\n\t\t\t a[i]=e;\n\t\t\n\t\t\n\t\t\n\t\t}\n\t\t\n\t\t}\t\n\t\n\t\n\t}\n\t\n\t\tfor(i=0;isz[i+1]){\n\t\t\t\t\te=sz[i+1];\n\t\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\t\tsz[i]=e;\n\t\t\t}\n\t}\n}\n\n for(int m=0,b=0;ma[j])\n {\n\n s=a[i];a[i]=a[j];a[j]=s;\n }\nprintf(\"%d\",a[1]);\n for (i=2;i<=t;i++) printf(\",%d\",a[i]);\n}"} +{"label": "94", "index": "46525", "code": "int main(){\n\tint p,q,m,i,n,j,k,a[1000],b[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i b[q+1]){\n\t\t\t\t\te = b[q+1];\n\t\t\t\t\tb[q+1] = b[q];\n\t\t\t\t\tb[q] = e;\n\t\t\t}\n\t}\n}\n\tfor(m=0;m<(k-1);m++){\n\tprintf(\"%d,\",b[m]);\n\t}\n\tprintf(\"%d\",b[(k-1)]);\nreturn 0;\n}"} +{"label": "94", "index": "46526", "code": "\nint main()\n{\n\tint n,z[500],j,i,w;\n\tscanf(\"%d\",&n);\n\tfor(i=0;iz[i])\n\t\t\t{\n\t\t\t\tw=z[i];\n\t\t\t\tz[i]=z[j];\n\t\t\t\tz[j]=w;\n\t\t\t}\n\t}\n\tw=0;\n for(i=0;i> n;\n\tfor(i = 0 ; i < n ; i++)\n\t{\n\t\tcin >> a[i];\n\t}\n\tfor(j = 0 ; j < n ; j++)\n\t{\n\t\tif(a[j] % 2 == 1)\n\t\t{\n\t\t\tb[k] = a[j];\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(i = 0 ; i < n - 1 ; i++)\n\t\tfor(j = 0 ; j < n - i - 1 ; j++)\n\t\t{\n\t\t\tif(b[j] > b[j + 1])\n\t\t\t{\n\t\t\t\tp = b[j];\n\t\t\t\tb[j] = b[j + 1];\n\t\t\t\tb[j + 1] = p;\n\t\t\t}\n\t\t}\n\tfor(i = 0 ; i < k - 1 ; i++)\n\t{\n\t\tcout << b[i] << \",\";\n\t}\n\tcout << b[k - 1];\n\treturn 0;\n}"} +{"label": "94", "index": "46528", "code": "int main(){\n int n,t,sum=0,m,i,a,k=0;\n scanf(\"%d\\n\",&n);\n int N[n];\n for(i=0;i=0;i--)\n {\n if(P[i]>P[i+1])\n {\n a=P[i+1];\n P[i+1]=P[i];\n P[i]=a;\n }\n }\n }\n for(m=0;m=odd[num]){\n num=y;\n }\n }\n if(num!=a-k){\n e=odd[num];\n odd[num]=odd[a-k];\n odd[a-k]=e;\n }\n }\n for(int z=0;z>n;\nint w[100];int t=0;\nfor(int i=0;i>c;if(c%2){w[t]=c;t++;}}\nsort(&w[0],&w[t]);\ncout<0;l--){\n\tfor(j=0;jjs[j+1]){\n\t\t\te=js[j+1];\n\t\t\tjs[j+1]=js[j];\n\t\t\tjs[j]=e;\n\t\t}\n\t}\n\t}\n\tfor(j=0;jb[k+1])\n\t\t\t{\n\t\t\t\tc=b[i];\n\t\t\t\tb[i]=b[k+1];\n\t\t\t\tb[k+1]=c;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;is[k+1])\n\t\t\t{\n\t\t\t\te=s[k];\n\t\t\t\ts[k]=s[k+1];\n\t\t\t\ts[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor (j=0;j<=m;j++)\n\t{\n\t\tif (j!=m)\n\t\t{\n\t\t\tprintf(\"%d,\",s[j]);\n\t\t}\n\t\telse\n\t\t{\n printf(\"%d\",s[j]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46534", "code": "\n\nint main()\n{\n int i,n,sz[1000],x,k;\n int j=0,a=0;\n scanf(\"%d\",&n);\n for(i=0;isz[j+1]){\n int e;\n e=sz[j+1];\n sz[j+1]=sz[j];\n sz[j]=e;\n }\n }\n }\n printf(\"%d\",sz[0]);\n for(j=1;jsz[q+1]){\n\t\t\t\t\te=sz[q+1];\n\t\t\t\t\tsz[q+1]=sz[q];\n\t\t\t\t\tsz[q]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int y=0;y>n;\n\tint a[n],b[n];\n\t//for(i=0;i>a[i];\n\n\tfor(i=0;ib[l+1])\n\t\t\t\t{\n\t\t\t\tt=b[l];\n\t b[l]=b[l+1];\n\t b[l+1]=t;\n\t\t\t\t}//cout<odd[k]){\n min=k;\n }\n }\n e=odd[min];\n odd[min]=odd[i];\n odd[i]=e;\n }\n for(i=0;ib[i+1]){\n\t\t\t\te=b[i+1];\n\t\t\t\tb[i+1]=b[i];\n\t\t\t\tb[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i1;i2--)\n{if (jishu[i2]>n;\ni=1;j=1;\nfor(i=1;i<=n;i++)\n {cin>>num;\n if(num%2!=0)\n {a[j]=num;\n j++;}\n } //????????????????a??? \nfor(i=1;i<=j-1;i++)\n for(k=1;k<=j-1-i;k++)\n if(a[k]>a[k+1])\n {t=a[k];\n a[k]=a[k+1];\n a[k+1]=t;\n } //????? \nfor(i=1;i<=j-2;i++)\n cout<up[(i3)+1])\n\t\t{\n\t\t\tt=up[(i3)+1];\n\t\t\tup[(i3)+1]=up[i3];\n\t\t\tup[i3]=t;\n\t\t\ti3--;\n\t\t\tif(i3<0)\n\t\t\t{\n\t\t\t\ti3++;\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\ti3++;\n\t\t}\n\t}\n\tfor(i3=1;i3<(i2);i3++)\n\t{\n\t\tprintf(\"%d,\",up[i3]);\n\t}\n printf(\"%d\",up[i3]);\n\treturn 0;\n}\n\n"} +{"label": "94", "index": "46543", "code": "int main(){\n int a,b,n,c,d,e,f,g,sz[500],Sz[250];\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tg=1;\n\tscanf(\"%d\",&n);\n\tfor(b=0;bSz[e+1]){\n f=Sz[e];\n\t\t\t\t Sz[e]=Sz[e+1];\n\t\t\t\t Sz[e+1]=f;\n\t\t\t}\n\t\t}\n\t}\n\tfor(g=1;gb[r+1]){\n int e;\n e=b[r+1];\n b[r+1]=b[r];\n b[r]=e;\n }\n }\n }\n for(r=0;ra[o+1]){\n\t\t\t\tb=a[o];\n\t\t\t\ta[o]=a[o+1];\n\t\t\t\ta[o+1]=b;\n\t\t\t}\n\t\t}\n\t}\n\tfor(p=0;pb[i+1]){\n t=b[i];\n b[i]=b[i+1];\n b[i+1]=t;\n }\n }\n }\n for(i=0;i piOdd [k])\n\t\t\t{\n\t\t\t\tn= piOdd[i];\n\t\t\t\tpiOdd[i] = piOdd[k];\n\t\t\t\tpiOdd[k]=n;\n\t\t\t}\n\t\t}\n\t}\n\t///print\n\ti=0;\n\tprintf(\"%d\", piOdd[i]);\n\tfor (i=1; it[maxIndex])\n\t\t\t{\n\t\t\t\t\tmaxIndex =j;\n\t\t\t}\n\t\t}\t\n\t if(maxIndex != LEN-k)\n\t\t{\n\t\t e = t[maxIndex];\n\t\t t[maxIndex] = t[LEN-k];\n\t\t t[LEN-k]=e;\n\t\t}\n\t}\n\n\tfor(j=0;jm;j--){\n if(b[j]=sz[j+1]){\n e=sz[j];\n sz[j]=sz[j+1];\n sz[j+1]=e;\n\t\t}\n\t }\n\t}\n for(i=n-1;i>0;i--){\n\t\tif(sz[i]%2!=0){\n\t\t t=sz[i];\n\t\t \n\t\t break;\n\t\t}\n\t}\n\tfor(i=0;ia[j])\n {\n temp=a[i];\n a[i]=a[j];\n a[j]=temp;\n }\n }\n }\n for(i=num;i>n; //??n\n\twhile(n--)\n\t{\n\t\tcin>>t; //??????\n\t\tif(t%2==1)\n\t\t{\n\t\t\ta[m++]=t; //???????a\n\t\t}\n\t}\n\tfor(int i=0;ia[j])\n\t\t\t{\n\t\t\t\tint p=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=p;\n\t\t\t}\n\t\t}\n\t}\n\tcout<>N;\n for(i=0;i>a[i];\n\t if(a[i]%2!=0)\n\t\t b[i]=a[i];\n }\n for(j=0;jb[i+1]) //??????\n\t\t {\n\t\t p=b[i];\n\t\t\tb[i]=b[i+1];\n\t\t\tb[i+1]=p;\n\t\t }\n\t }\n }\n for(i=0;i<=N;i++) \n {\n if(b[i]!=0&&i!=N)\n\t\t cout<b[j+1])\n\t\t\t{\n\t\t\t\ttemp=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n}\nint chouqu(int a[],int b[],int n)\n{\n\tint count=0,i;\n\tfor(i=0;i>n;\n\tfor(i=0;i>a[i];\n\t}\n\tn=chouqu(a,b,n);\n\tSort(b,n);\n\tcout<>n;\n\tfor(x=0;x>a[x];\n\t}\n\tfor(x=0;x> n ;\n int a[n] ;\n int i , j ;\n for ( i = 0 ; i < n ; i++ )\n {\n cin >> a[i] ;\n }\n for ( i = 0 ; i < n ; i++ )\n {\n for ( j = i + 1 ; j < n ; j++ )\n {\n if( a[i] > a[j] )\n {\n temp = a[i] ;\n a[i] = a[j];\n a[j] = temp ;\n }//??????\n }\n }\n for ( i = 0 ; i < n ; i++ )\n {\n if( a[i] % 2 != 0)\n {\n cout << a[i] ;\n break;//???????????\n }\n }\n for ( i = i + 1 ; i < n ; i++ )\n {\n if( a[i] % 2 != 0)\n {\n cout << \",\" << a[i] ;//???????????????????\n }\n }\n\n return 0 ;\n}\n\n"} +{"label": "94", "index": "46559", "code": "int main(){\n int a[500];\n int b[500];\n int i,n,t,j,k,s,min;\n scanf(\"%d\",&n);\n for(i=0;ia[i+1]){\n e=a[i+1];\n a[i+1]=a[i];\n a[i]=e;\n }\n }\n }\n for(int i=0;i>N;\n\tfor(i=0;i>x;\n\t\tif(x%2==1) \n\t\t{\n\t\t a[t]=x; //????\n\t\t t++;\n\t\t}\n\t}\n\tfor(j=0;ja[k+1])\n\t\t\t{\n\t\t\t\ty=a[k];\n\t\t\t\ta[k]=a[k+1];\n\t\t\t\ta[k+1]=y;\n\t\t\t}\n\t\t}\n\tfor(k=0;kshuzu_[e]){\n\t\t\t\te=c;\n\t\t\t}\n\t\t}\n\t\tif(e!=a-b){\n\t\t\tg=shuzu_[a-b];\n\t\t\tshuzu_[a-b]=shuzu_[e];\n\t\t\tshuzu_[e]=g;\n\t\t}\n\t}\n\tfor(h=0;h0;a--){\n for(r=0;rhz[r+1]){\n int tmp=hz[r+1];\n hz[r+1]=hz[r];\n hz[r]=tmp;\n }\n }\n }\n \n \n for(i=1;i<=j-1;i++){\n printf(\"%d,\",hz[i-1]);\n }\n printf(\"%d\",hz[i-1]);\n return 0;\n}\n\n\n"} +{"label": "94", "index": "46565", "code": "int main()\n{\n\tint i,n,j=0,temp,len,num,a[1000];\n\tcin>>n;\n\tfor(i=0;i>num;\n\t\tif(num%2==1)\n\t\t{\n\t\t\ta[j]=num;\n\t\t\tj++;\t\t\t\n\t\t}\n\t\tif(i==n-1)\n\t\t\tlen=j;\n\t}\n\tfor(i=0;ia[j+1])\n\t\t\t{\n\t\t\t\ttemp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tcout<j;k--){if(a[k]>n;\n int a[n];\n int i,j,num_odd,input;\n num_odd=0;\n for(i=1;i<=n;i++)//??????????? ????????\n {\n cin>>input;\n if(input%2==1)\n {\n num_odd=num_odd+1;//num_odd????????\n a[num_odd]=input;\n }\n }\n for(i=1;i<=num_odd;i++)//??????\n {\n for(j=1;ja[j+1])\n {\n a[j]=a[j]+a[j+1];\n a[j+1]=a[j]-a[j+1];\n a[j]=a[j]-a[j+1];\n }\n }\n }\n for(i=1;i<=num_odd;i++)\n {\n if(i!=num_odd) cout<jishu[b+1]){\n e=jishu[b];\n jishu[b]=jishu[b+1];\n jishu[b+1]=e;\n }\n }\n }\n for(i=0;ia[m+1])\n\t\t\t{\n\t\t\t\td=a[m];\n\t\t\t\ta[m]=a[m+1];\n\t\t\t\ta[m+1]=d;\n\t\t\t}\n\t\t\t\t\n\t}\n\tfor(k=0;k> N;\n\tfor (i = 0; i < N; i++)\n\t\tcin >> a[i];//????\n\tfor (i = 0; i < N -1; i++)\n\t\tfor (j = 0;j < N - i- 1;j++)\n\t\t\tif (a[j] > a[j+1])\n\t\t\t{\n\t\t\t\ttemp = a[j];\n\t\t\t\ta[j] = a[j+1];\n\t\t\t\ta[j+1] = temp;\n\t\t\t}//??????????\n\tfor (m = 0; m < N; m++)\n\t{\n\t\tif ( (a[m] % 2 ) != 0)\n\t\t{\n\t\t\tcout << a[m];\n\t\t\tbreak;\n\t\t}//?????????\n\t}\n\tfor (n = m + 1; n < N; n++)\n\t{\n\t\tif ( (a[n] % 2 )!= 0)\n\t\t\tcout << \",\" << a[n];\n\t}//???????????\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "94", "index": "46572", "code": "int main(){\n int n,i,j,k,e;\n \n int a[500],b[500];\n scanf(\"%d\",&n);\n for(i=0;i>N;//??????N\n\tfor(int i=0;i>a[i];//?N??????a[500]\n\tint t=0;\n\tfor(int j=0;jb[p+1])\n\t\t\t{\n\t\t\t\tw=b[p];\n\t\t\t\tb[p]=b[p+1];\n\t\t\t\tb[p+1]=w;\n\t\t\t}\n\t\t}\n\t}//?????????????\n\tfor(int l=1;l=0;j--){\n\t\t\tfor(k=0;ksz[k+1]){\n\t\tint t;\n\t\tt=sz[k+1];\n\t\tsz[k+1]=sz[k];\n\t\tsz[k]=t;\n\t\t\t\t}\n\t\t}\n\t}\n\tm=0;\n\tfor(n=0;n>N;\n int s[N];\n for(i=0;i<=N-1;i++)\n {\n cin>>s[i]; \n }\n for(i=0;i<=N-1;i++)\n {\n if(s[i]%2!=0)\n {s[k]=s[i];k++;}\n \n }\n for(i=0;i<=k;i++)\n {\n for(j=i;j<=k-i-1;j++)\n {\n if(s[j-1]>s[j])\n {\n s[j-1]=s[j-1]^s[j];\n s[j]=s[j]^s[j-1];\n s[j-1]=s[j-1]^s[j]; \n } \n } \n }\nfor(i=0;i<=k-1;i++)\n{\nif(i==0)\ncout< sz[i+1]){\n\t\t\t\t\te = sz[i+1];\n\t\t\t\t\tsz[i+1] = sz[i];\n\t\t\t\t\tsz[i] = e;\n\t\t\t}\n\t}}\n for(z=0;zb[t+1])\n\t\t\t{\n\t\t\t\ttem=b[t];\n\t\t\t\tb[t]=b[t+1];\n\t\t\t\tb[t+1]=tem;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=j;i++)\n\t{\n\t\tprintf(\"%d\",b[i]);\n\t\tif(i<=j-1)\n\t\tprintf(\",\");\n\t}\n}"} +{"label": "94", "index": "46578", "code": "void sort(int a[],int n)\n{\n\tint i,j,k;\n\tfor(i=0;ia[j+1]){\n\t\t\t\tk=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=k;\n\t\t\t}\n }\n }\n}\nint main()\n{\nint i,n,j,m;\nint sz[500],js[500];\nscanf(\"%d\",&n);\nfor(i=0;i>N;\n\tint a[N],b[N];\n\tfor(int i=0;i>a[i];\n\tfor(int i=0;ib[j+1])\n\t\t\t{\n\t\t\t\tx=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=x;\n\t\t\t}\n\t\t}\n\tfor(int i=1;i<=s;i++)\n\t{\n\t\tif(i-1)\n\t\t\tcout<<\",\";\n\t\tcout<>N;//??N\n\tfor( i=1;i<=N;i++)//????\n\t{\n\t\tcin>>b[i];\n\t}\n\tfor( i=1;i<=N;i++)//??????\n\t{\n\t\tif(b[i]%2!=0)\n\t\t{\n\t\t\tj++;\n\t\t\tc[j]=b[i];\n\t\t}\n\n\t}\n\tint t=0;\n\tfor( i=1;i<=j;i++)//????\n\t\tfor(int m=1;m<=j-1;m++)\n\t\t{\n\t\t\tif(c[m]>c[m+1])\n\t\t\t{\n\t\t\t\tt=c[m];\n\t\t\t\tc[m]=c[m+1];\n\t\t\t\tc[m+1]=t;\n\t\t\t}\n\t\t}\n\t\tfor( i=1;i<=j;i++)//??\n\t\t{\n\t\t\tif(i==1)\n\t\t\t cout<=0;i--)\n\t{\n\t\tif(i>0)\n\t\t{\n\t\t\tprintf(\"%d,\",sf[i]);\n\t\t}\n\t\tif(i==0)\n\t\t{\n\t\t\tprintf(\"%d\",sf[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46582", "code": "int main()\n{\nint n,k,i,m,c;\nint num[500];\nint nu[500];\nscanf(\"%d\",&n);\nfor(i=0;i=nu[k-i]){\n\t\t\tc=nu[m];\n\t\t\tnu[m]=nu[k-i];\n nu[k-i]=c;\n\t\t}\n\t}\n}\nfor(i=k;i>0;i--){\n\tprintf(\"%d,\",nu[k-i]);\n}\nprintf(\"%d\",nu[k]);\n\treturn 0;\n}"} +{"label": "94", "index": "46583", "code": "/*\n * s.cpp\n *\n * Created on: 2013-11-3\n * Author: shu\n */\nint main(){\n\tint N;\n\tcin>>N;\n\tint i,a[N];\n\tfor(i=0;i>a[i];\n\tsort(a,a+N);\n\tfor(i=0;ib[i+1])\n\t\t\t{k=b[i];\n\t\t\tb[i]=b[i+1];\n\t\t\tb[i+1]=k;\n\t\t\t}\n\tfor(j=0;j>N;\n\tint array[N]; //????\n\tfor(int i=0;i<=N-1;i++) //????\n\t\tcin>>array[i];\n\tint g=0; //????????????????\n\tint odd[N]; //?????????????\n\tfor(int i=0;i<=N-1;i++)\n\t{\n\t\tif(array[i]%2==1)\n\t\t{\n\t\t\tg+=1; //??array[i]?2???????????????\n\t\t\todd[g]=array[i];//??????????\n\t\t}\n\t}\n\tfor(int i=1;i<=g-1;i++) //??????????\n\t\tfor(int j=1;j<=g-i;j++)\n\t\t{\n\t\t\tint t=0; //??????\n\t\t\tif(odd[j]>odd[j+1])\n\t\t\t{\n\t\t\t\tt=odd[j];\n\t\t\t\todd[j]=odd[j+1];\n\t\t\t\todd[j+1]=t;\n\t\t\t}\n\t\t}\n\tfor(int i=1;i<=g;i++)//??????????\n\t{\n\t\tif(i==1)\n\t\t\tcout<>n; //?????\n\tfor(;n>=1;n--){\n\t\tcin>>x;\n\t\tif(x%2==1) {a[i]=x;i++;} //??????????\n\t}\n\tfor(x=1;x<=i-1;x++) //??????????\n\t\tfor(j=i-1;j>=x;j--)\n\t\t{\n\t\t\tif(a[j]a[j+1]){\n e=a[j+1];\n\t\t\t a[j+1]=a[j];\n\t\t\t a[j]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n for(i=0;i0;j--){\n\t\tfor(i=0;ia[i+1]){\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n}\n\nint main()\n{\n\tint n,i;\n\tint a[MAX];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tfor(i=0;i>a[i];\n\tj=0;\n\tfor(i=0;ib[j+1])\n\t\t\t{\n\t\t\t\ta[0]=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=a[0];\n\t\t\t}\n\t\t}\n\tfor(j=0;j=b[i+1])\n\t\t\t{\n\t\t \te=b[i+1];\n\t\t\t b[i+1]=b[i];\n\t\t\t b[i]=e;\n\t\t\t}\n\t }\n\t}\n\tfor(i=0;i= 0;i--)\n\tfor (j = 0; j < i; j++)\n\tif (a[j] > a[j + 1])\n\t{\n\t\ttmp = a[j];\n\t\ta[j] = a[j + 1];\n\t\ta[j + 1] = tmp;\n\t}\n}\nint main()\n{\n\tint n, a[500],i,b[500],j=0;\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i <= n - 1; i++)\n\t{\n\t\tscanf(\"%d\", &a[i]);\n\t\tif (a[i] % 2 != 0){ b[j] = a[i]; j += 1; }\n\t}\n\tbubble(b, j);\n\tprintf(\"%d\", b[0]);\n\tfor (i = 1; i < j; i++)\n\t{\n\t\tprintf(\",%d\", b[i]);\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "94", "index": "46592", "code": "int main(){\n\tint m,n,i,j,k,q;\n\tint a[10000],b[10000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ib[j+1]){\n\t\t\t\tq=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=q;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;is[i+1]){\n\t\t\t\tint t=s[i+1];\n\t\t\t\ts[i+1]=s[i];\n\t\t\t\ts[i]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ib[q]){\n\t\t\tq=i;\n\t\t}\n\t}\n\te=b[q];\n\tb[q]=b[t-k];\n\tb[t-k]=e;\n}\nprintf(\"%d\",b[0]);\nfor (k=1;k<=t-1;k++){\n\tprintf(\",%d\",b[k]);\n}\n\t\n\n\treturn 0;\n}\n\n"} +{"label": "94", "index": "46595", "code": "int main ()\n{\n int n,m,i,j,k,g,t,v=0;\n int a[555],b[555];\n scanf(\"%d\",&n);\n for(i=0;ij;k--)\n {\n if(b[k]>b[k-1])\n { t=b[k-1];\n b[k-1]=b[k];\n b[k]=t;}\n }\n\n }\n for(g=n;g>=0;g--)\n {\n if(b[g]>0)\n {if(v==1)\n { printf(\",\");}\n printf(\"%d\",b[g]);v=1;\n \n }\n }\n return 0;\n }\n"} +{"label": "94", "index": "46596", "code": "int main()\n{\n\tint N,i,e;\n\tint m=1;\n\tint xh[100000];\n\tscanf(\"%d\\n\",&N);\n\tfor(i=1;i<=N;i++){\n\t\tscanf(\"%d\",&xh[i]);\n\t}\n\tint ch[5000];\n\tfor(i=1;i<=N;i++){\n\t\tif(xh[i]%2==1){\n\t\t\tch[m]=xh[i];\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(int k=1;k<=m-1;k++){\n\t\tfor(i=k;i<=m-1;i++){\n\t\t\tif(ch[i+1]>ch[k]){\n\t\t\t\te=ch[k];\n\t\t\t\tch[k]=ch[i+1];\n\t\t\t\tch[i+1]=e;\n\t\t}\n\t\t}\n\t}\n\tfor(i=m-1;i>=2;i--){\n\tprintf(\"%d,\",ch[i]);\n\t}\nprintf(\"%d\",ch[1]);\n\treturn 0;\n}"} +{"label": "94", "index": "46597", "code": "int main(){\n int i,k,e,n,m,a[MAX],b[MAX];\n scanf(\"%d\\n\",&n);\n for(i=0;ib[i+1]){\n e=b[i+1];\n b[i+1]=b[i];\n b[i]=e;\n }\n }\n }for(i=0;ia[i+1]){\n\t\t\t\tmid=a[i+1];\n\t\t\t\ta[i+1]=a[i];\n\t\t\t\ta[i]=mid;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;isz[maxlndex])\n\t\t{\n\t\t\tmaxlndex=i;\n\t\t}\n\t}\n\n\tif(maxlndex!=n-k)\n\t{\n\t\te=sz[maxlndex];\n\t\tsz[maxlndex]=sz[n-k];\n\t\tsz[n-k]=e;\n\t}\n\t}\n\tfor(i=0;i>n;\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tcin>>x;\n\t\tif(x%2==1)\n\t\t{\n\t\t\ta[s]=x;\n\t\t\ts++;\n\t\t}\n\t}//???????????????a[]????s??\n\tfor(int i=0;ia[j])\n\t\t\t{\n\t\t\t\tint swi=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=swi;\n\t\t\t}\n\t\t}\n\t}//?a[]??\n\tcout<b[j+1])\n\t\t\t{\n\t\t\t\tt=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t;\n\t\t\t}\n\t\t}\n\tfor(i=0;;i++)\n\t{\n\t\tprintf(\"%d\",b[i]);\n\t\tif(ib[m+1]) \n\t { t=b[m];\n\t b[m]=b[m+1];\n\t b[m+1]=t;\n\t \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprintf(\"%d\",b[0]);\n\t\tfor(i=1;i> N;\n for (i = 0;i < N;i ++) // ???? \n cin >> a[i];\n for (i = 0,j = 0,m = N;j < N;j++) // ???? \n if (a[j] % 2 != 0)\n a[i ++] = a[j];\n else\n m --;\n for (i = 0;i < m - 1;i ++) // ????? \n for (j = 0;j < m - i - 1;j ++) \n if (a[j] > a[j + 1])\n {\n temp = a[j];\n a[j] = a[j + 1];\n a[j + 1] = temp;\n }\n cout << a[0]; // ????? \n for (i = 1;i < m;i ++)\n cout << ',' << a[i];\n return 0;\n}"} +{"label": "94", "index": "46604", "code": "int main()\n{\n int e;\n int k=0;\n int n;\n int b[500];\n int a[500];\n scanf(\"%d\",&n);\n for(int i=0;ib[g+1]){\n e=b[g+1];\n b[g+1]=b[g];\n b[g]=e;\n }\n }\n }\n printf(\"%d\",b[0]);\nfor(int g=1;gsz[i+1]){\n\t\t\t\t\te=sz[i+1];\n\t\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\t\tsz[i]=e;\n\t\t\t}\n\t}\n}\nfor(x=1;x<=sum-1;x++){\n\tprintf(\"%d,\",sz[x-1]);\n}\nprintf(\"%d\",sz[sum-1]);\n return 0;\n}"} +{"label": "94", "index": "46607", "code": "int main()\n{\n int n,i,j,t,s=0;\n int a[1000];\n scanf(\"%d\",&n);\n for(i=0;ia[j+1]){\n int t=a[j];\n a[j]=a[j+1];\n a[j+1]=t;\n }\n }\n }\n for(i=0;i> n;\n\tfor(int i=0;i> a[i];\n\t\tif(a[i]%2)\n\t\t\tb[count++]=a[i];//???a?????b\n\t}\n\tfor(int i=0;ii;j--)\n\t\t\tif(b[j-1]>b[j])\n\t\t\t{\n\t\t\t\ttemp=b[j-1];\n\t\t\t\tb[j-1]=b[j];\n\t\t\t\tb[j]=temp;\n\t\t\t}\n\tfor(int i=0;i> N;\n\tfor (i = 0; i < N; i++)\n\t\tcin >> inum[i];//???????\n\tfor (i = 0; i < N; i++)\n\t\tif (inum[i] % 2 != 0) {\n\t\t\tnumb[j] = inum[i];\n\t\t\tj = j + 1;\n\t\t} // ??????????????????\n\tfor (i = 0; i < j - 1; i++)\n\t\tfor (k = 0; k < j - 1 - i; k++)\n\t\t\tif (numb[k] > numb[k + 1]) {\n\t\t\t\tx = numb[k];\n\t\t\t\tnumb[k] = numb[k + 1];\n\t\t\t\tnumb[k + 1] = x;\n\t\t\t} // ??????????\n\tcout << numb[0];\n\tfor (i = 1; i < j; i++)\n\t\tcout << \",\" << numb[i];// ??????\n\treturn 0;\n}\n"} +{"label": "94", "index": "46611", "code": "main()\n{\n int a[500]={0},b[500]={0},n,i,e=0,j,k;\n scanf(\"%d\",&n);\n for (i=0;ib[j+1])\n {\n k=b[j+1];\n b[j+1]=b[j];\n b[j]=k;\n }\n }\n }\n for (i=0;i> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> a;\n\t\tif (a % 2 == 1)\n\t\t{\n\t\t\tfor (j = 1; j < k; j++)\n\t\t\t{\n\t\t\t\tif (a == num[k])\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (j == k)\n\t\t\t{\n\t\t\t\tnum[k] = a;\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t}\n\tk -= 1;\n\tfor (i = 0; i <= k - 1; i++)\n\t{\n\t\tfor (j = 1; j <= k - i - 1; j++)\n\t\t{\n\t\t\tif(num[j] > num[j + 1])\n\t\t\t{\n\t\t\t\ttemp = num[j + 1];\n\t\t\t\tnum[j + 1] = num[j];\n\t\t\t\tnum[j] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 1; i < k; i++)\n\t\tcout << num[i] << \",\";\n\tcout << num[k];\n\treturn 0;\n}"} +{"label": "94", "index": "46614", "code": "int main()\n{\n //k?????????,m???????????,t????????\n int N,k=0,m,t;\n\n //a?????????\n int a[500];\n\n cin>>N;\n for(int i=0;i>m;\n if(m%2) //??????????\n {\n a[k]=m;\n k++;\n }\n }\n\n for(int i=0;ia[j+1])\n {t=a[j];a[j]=a[j+1];a[j+1]=t;}\n }\n\n cout<b[i+1])\n\t\t\t{\n\t\t\t\ttemp=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=temp;\n\t\t\t}\n\t\t}\n\tprintf(\"%d\",b[0]);\n\tfor(i=1;ijs[i+1]){\n m=js[i];\n js[i]=js[i+1];\n js[i+1]=m;\n }\n } \n }\n for(i=0;i b[maxIndex])\n\t\t{\n maxIndex = i;\n\t\t}\n\t }\n if(maxIndex != j-k)\n\t {\n e = b[maxIndex];\n b[maxIndex] = b[j-k];\n b[j-k] = e;\n\t }\n }\n \n for(i=0;ix)\n {\n x=a[i];\n }\n }\n for(j=1;j<=k;j++)\n {\n b[j]=x;\n } \n for(i=1;i<=N;i++)\n {\n if(a[i]%2!=0&&a[i]b[j-1]&&a[i]=0;i--)\n\t{\n\t\tif(i==(k-1))\n\t\t\tprintf(\"%d\",b[i]);\n\t\telse\n\t\t\tprintf(\",%d\",b[i]);\n\t}\n}"} +{"label": "94", "index": "46620", "code": "int main()\n{\n\tint a[501];\n\tint b[501];\n\tint n,m,i,j,e;\n\tcin>>n;\n\tm=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a[i];\n\t\tif(a[i]%2!=0)//???????b\n\t\t{\n\t\t\tb[m+1]=a[i];\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(i=1;i<=m-1;i++)\n\t\tfor(j=1;j<=m-i;j++)//????\n\t\t\tif(b[j]>b[j+1])\n\t\t\t{\n\t\t\t\tb[0]=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=b[0];\n\t\t\t}\n\te=0;\n\tfor(i=1;i<=m;i++)//??\n\t{\n\t\tif(e==1)\n\t\t\tcout<<',';\n\t\tcout<=0;i--)\n\t\t{\n\t\t\tif(ta[i+1]){\n\t\t\t\t\te = a[i+1];\n\t\t\t\ta[i+1] = a[i];\n\t\t\t\t\ta[i] = e;\n\t\t\t}\n\t}}\n\tfor( i = 0; i < n - 1; i++){\n\tif(a[i]%2!=0)\n\t\ts=i;}\nfor( i = 0; i < s; i++){\n\tif(a[i]%2!=0)\n\t\tprintf(\"%d,\",a[i]);\n}\nprintf(\"%d\",a[s]);\nreturn 0;\n}\n"} +{"label": "94", "index": "46623", "code": "int main(){\n\tint i,n,z=0,k,h=0;\n\tint sz[500];\n\tint mm[500];\n\tint xx[500];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tint a[501],b[501],count=1;//??a???????b????,??????\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tcin>>a[i];\n\t\tif (a[i]%2==1)\n\t\t\tb[count++]=a[i];\n\t}//?????????????count-1\n\tint j,k,p;//maopaopaixu\n\tfor (j=1;j<=count-1-1;j++)\n\t{\n\t\tfor (k=1;k<=count-1-j;k++)\n\t\t{\n\t\t\tif (b[k]>=b[k+1])\n\t\t\t{\n\t\t\t\tp=b[k];\n\t\t\t\tb[k]=b[k+1];\n\t\t\t\tb[k+1]=p;\n\t\t\t}\n\t\t}\n\t}//??????????\n\tint l;\n\tfor (l=1;l<=count-2;l++)\n\t\tcout<>n;\n for(i=0;i>a[i];\n for(i=0;ia[j+1])\n \t\t {\n \t\t\t k=a[j];\n \t\t\t a[j]=a[j+1];\n \t\t\t a[j+1]=k;\n \t\t }\n for(i=0;ijs[m]){\n m=j;\n }\n }\n if(m!=p-k){\n e=js[m];\n js[m]=js[p-k];\n js[p-k]=e;\n }\n}\nfor(j=0;jd){\n\t\t\td=zs[i];\n\t\t}\n\t}\n for(c=0;c> N;\n\tint shuru[N], shuchu[N];\n\tfor (i=0;i> shuru[i];\n\t\tif (shuru[i]%2==1){\n\t\t\tshuchu[count]=shuru[i];\n\t\t\tcount++;\n\t\t}\n\t}\n\tfor (i=0;ishuchu[j+1]){\n\t\t\t\ttemp=shuchu[j];\n\t\t\t\tshuchu[j]=shuchu[j+1];\n\t\t\t\tshuchu[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;isz[i+1]){\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tint xsz[LEN];\n\tint p=0;\n\tfor(int q=0;q p[maxIndex]){\n\t\t\t\t\tmaxIndex=m;\n\t\t\t}\n\t}\t\n\tif(maxIndex != c-k){\n\t\te = p[maxIndex];\n\t\tp[maxIndex] = p[c-k];\n\t\tp[c-k]=e;\n\t}\n}\n\n for(m=0; mb[i+1])\n\t\t\t{\n\t\t\t\te=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=n-q;i>N;\n\tfor(i=0;i>num;\n\t\tif(num%2!=0)\n\t\t{\n\t\t\tb[j]=num;\n\t\t\tj++;\n\t\t\tcount++;\n\t\t}\n\t}//???????????????\n for(j=0;jb[i+1])\n\t\t\t{\n\t\t\t\ttemp=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=temp;\n\t\t\t}\n\t\t}//????\n\t}\n\tfor(i=0;ii;j--){\n if(B[j]sz[i+1]){\n\t\t\t a=sz[i+1];\n\t\t\t sz[i+1]=sz[i];\n\t\t\t sz[i]=a;\n\t\t\t }\n\t\t }\n\t }\n\t for(int e=0;eb[j+1]){\n\t\t\t\tt=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>N;\n\n\tfor(i=0;i>s[i];\n if(s[i]%2!=0) p[n++]=s[i];//?s[501]???????????p[501]?\n\t}\n\tfor(int j=n-1;j>0;j--)\n {\n for(int l=0;lp[l+1])\n {\n m=p[l];\n p[l]=p[l+1];\n p[l+1]=m;//?p??n???????????????\n }\n }\n }//?n-1????\n for (i=0;i<=n-1;i++)\n {if(iodd[j])\n {t=odd[i];odd[i]=odd[j];odd[j]=t;}\n }\n }\n for (i=1;i<=498;i++)\n {\n if (odd[i]!=0)\n printf(\"%d,\",odd[i]);\n }\n printf(\"%d\",odd[499]);\n return 0;\n}\n"} +{"label": "94", "index": "46641", "code": " int main(){\n int N,i=0,k=0,j=0;\n scanf(\"%d\",&N);\n int s[N];\n while(i>n;\n\tfor (i = 0;i < n;i ++) //?????\n\t\tcin >>a[i];\n\tfor (i = 0;i < n;i ++) //???????????0\n\t{\n\t\tif (a[i] % 2 == 0)a[i] = 0;\n\t}\n\tfor (i = 0;i < n-1;i ++) //????????????????0????????\n\t\tfor (int j = i+1;j < n;j ++)\n\t\t{\n\t\t\tif (a[j] < a[i]){temp = a[i];a[i] = a[j];a[j] = temp;}\n\t\t}\n\tfor (i = 0;i < n;i ++) //????\n\t{while (a[i] != 0)\n\t {\n\t\tif (i == n-1)\n\t\t\t{cout <>n;\n\tfor(int i=0;i>a[i];\n\t\t\tb[i]=0;\n\t\t\t}\nfor(int ii=0;ii 0; -- j)\n if (num[j] < num[j - 1])\n {\n temp = num[j - 1];\n num[j - 1] = num[j];\n num[j] = temp;\n }\n printf(\"%d\", num[0]);\n for (i = 1; i < index; ++ i)\n printf(\",%d\", num[i]);\n}\n"} +{"label": "94", "index": "46645", "code": "/*\n * oddup.cpp\n *\n * Created on: 2013-10-31\n * Author: ??\n */\nint main(){\n\tint n,t;cin>>n;int a[n];\n\tfor(int i=0;i>a[i];\n\t\tif(a[i]%2==0)a[i]=-1;\n\t}\n\tfor(int jj=1;jja[i+1]){\n\t\t\te=a[i];\n\t\t\ta[i]=a[i+1];\n\t\t\ta[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfor(i=0;i<=N-1;i++){\n\t\tif((a[i]+2)%2!=0){\n\t\t\tif(flag==0)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i]);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\",%d\",a[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "94", "index": "46647", "code": "int main(){\nint n,i,j,e,k,h,m=0;\nint sz[501],b[501];\nscanf(\"%d\",&n);\nfor(i=0;i=b[k]){\n\t\t\te=b[j];\n\t\t\tb[j]=b[k];\n\t\t\tb[k]=e;}}}\nfor(h=1;h<=m-1;h++){\n\tprintf(\"%d,\",b[h]);\n}\nprintf(\"%d\",b[m]);\nreturn 0;\n}\n"} +{"label": "94", "index": "46648", "code": "void bubble_sort(int a[],int n){\n int i,k,t;\n for(k=n-1;k>0;k--){\n for(i=0;ia[i+1]){\n t=a[i];\n a[i]=a[i+1];\n a[i+1]=t;\n }\n }\n }\n}\nint main(){\n int Num,i,N=0,j=0;\n scanf(\"%d\",&Num);\n int a[Num];\n for(i=0;ic[j+1])\n {\n t=c[j];\n c[j]=c[j+1];\n c[j+1]=t;\n }\n }\n }\n printf(\"%d\",c[0]);\n for(i=1;i0;k--){\n\t\tfor(i=0;isz[i+1]){\n\t\t\t\te=sz[i];\n\t\t\t\tsz[i]=sz[i+1];\n\t\t\t\tsz[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;l--){\n\t for(j=0;jb[j+1]){\n\t\t\t x=b[j+1];\n\t\t\t b[j+1]=b[j];\n\t\t\t b[j]=x;\n\n\t\t }\n\n\t }\n }\n for(j=1;j> n; //??\n\tint a[n], b[n]; //????\n\tint i = 0, j = 0, sum = 0;\n\tfor (i = 0; i < n; i++) { //???\n\t\tb[i] = 0;\n\t\tcin >> a[i];\n\t}\n\tfor (i = 0; i < n; i++) { //???????????b?\n\t\tif (a[i] % 2 == 1) {\n\t\t\tb[j] = a[i];\n\t\t\tj++;\n\t\t\tsum++;\n\t\t}\n\t}\n\tsort(b, b + sum); //??\n\tcout << b[0];\n\tfor (i = 1; i < sum; i++)\n\t\tcout << \",\" << b[i]; //??\n\treturn 0;\n}\n"} +{"label": "94", "index": "46653", "code": "void bubble(int a[],int len)\n{\n\tint i, j, temp;\n\tfor(j=1; ja[i+1])\n\t\t\t{\n\t\t\t\ttemp=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n}\nvoid main()\n{\n\tint *pi, n, *pj, a[500], b[500]={0};\n\tscanf(\"%d\",&n);\n\tfor(pi=a; pi<(a+n); pi++)\n\t\tscanf(\"%d\",pi);\n\tfor(pi=a, pj=b; pi<(a+n); pi++)\n\t{\n\t\tif((*pi)%2==1)\n\t\t{\n\t\t\t*pj=*pi;\n\t\t\tpj++;\n\t\t}\n\t}\n\tbubble(b,pj-b);\n\tprintf(\"%d\",*b);\n\tfor(pi=b+1; pi>N;//?????????\n\tfor(int i=0;i>a[i];\n\t}\n\tfor(int j=0;jb[n+1])\n\t\t\t{\n\t\t\t\tp=b[n+1];\n\t\t\tb[n+1]=b[n];\n\t\t\tb[n]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int l=0;lb[k]){\n\t\t\t\tmin=k;\n\t\t\t}\n\t\t}\n\t\tif(min!=num-p){\n\t\t\te=b[min];\n\t\t\tb[min]=b[num-p];\n\t\t\tb[num-p]=e;\n\t\t}\n\t\tif(p!=num){\n\t\t\tprintf(\"%d,\",b[num-p]);\n\t\t}\n\t\tif(p==num){\n\t\t\tprintf(\"%d\",b[num-p]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46656", "code": "int main ()\n{int k,N;\nint sz[500],js[100];\nint i,sum=0,e,m;\nscanf(\"%d\",&N);\nfor(k=0;ksz[i+1])\n {e=sz[i+1];\n\t\t sz[i+1]=sz[i];\n\t\t sz[i]=e;\n\t\t\t}\n\t}\n}\nfor(i=0;ib[i+1]){\n\t\t\t\te=b[i+1];\n\t\t\t\tb[i+1]=b[i];\n\t\t\t\tb[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(m=0;m=sz[i+1]){\n a=sz[i];\n\t\t\t sz[i]=sz[i+1];\n\t\t\t sz[i+1]=a;\n\t\t\t}\n\t\t}\n\t}\n \n\n for(i=0;ia[i+1])\n\t\t\t{\tb=a[i];\n\t\t\ta[i]=a[i+1];\n\t\t\ta[i+1]=b;}\n\t\t}\n\t}\n\tfor(i=0;inum1[j+1])\n\t\t\t{\n\t\t\t\tex=num1[j];\n\t\t\t\tnum1[j]=num1[j+1];\n\t\t\t\tnum1[j+1]=ex;\n\t\t\t}\n\t\t}\n\tfor(t=0;tmax&&an[i]%2==1)\n\t\t\tmax=an[i];\n\t}\n\twhile(point<=max-2){\n\t\tfor(i=0;ia[i+1])\n\t\t\t{\n\t\t\t\ttemp=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n}\nvoid main()\n{\n\tint i, n, j, a[500], b[500]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0; i>N;\n\tint p=0;\n\tfor (int i=0;i>a[i];\n\tsort (a,a+N);\n\tfor (int i=0;ijs[k])\n\t\t\t\tk=i;\n\t\t\tif(k!=j-m){\n\t\t\t\te=js[k];\n\t\t\t\tjs[k]=js[j-m];\n\t\t\t\tjs[j-m]=e;\n\t\t\t}\n\t\t}\n\t\t\tfor(i=0;isz[i+1])\n\t\t\t{\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i> n;\n\tfor (int i=0;i> a[i];\n\tfor (int i=0;ia[j+1]){\n\t\t\t\tint tmp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (int i=0;i>n;\n\tfor(i=0;i>num[i];\n\t\tif(num[i]%2==1)\n\t\t{\n\t\t\todd[oddnum]=num[i];\n\t\t\toddnum++;\n\t\t}\n\t}\n\tfor(i=0;iodd[j+1])\n\t\t\t{\n\t\t\t\ttemp=odd[j];\n\t\t\t\todd[j]=odd[j+1];\n\t\t\t\todd[j+1]=temp;\n\t\t\t}\n\tfor(i=0;ib[j+1])\n\t\t\t{\n\t\t\t\ttem=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=tem;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i>n;\n for(i=1;i<=n;i++)\n {\n\t cin>>a[i];\n\t if(a[i]%2!=0)\n\t {\n\t\t b[j]=a[i];\n\t\t j++;\n\t }\n \n }\n for(i=1;i<=j-2;i++)\n for(k=1;k<=j-i-1;k++)\n\t {\n\t\t if(b[k]>b[k+1])\n\t\t {\n\t\t\t t=b[k];\n\t\t b[k]=b[k+1];\n\t\t\tb[k+1]=t;\n }\n\t }\n for(i=1;i<=j-1;i++)\n\t if(i==1)cout<b[i+1]){\n\n t=b[i];\n\n b[i]=b[i+1];\n\n b[i+1]=t;\n\n }\n\n }\n\n}for(i=0;iszo[o+1]){\n\t\t\t\ta=szo[o+1]; szo[o+1]=szo[o]; szo[o]=a; \n\t\t\t}\n\t\t}\n\t} \n\tfor(int q=0;q*(num+j+1))\n {\n chan=*(num+j);\n *(num+j)=*(num+j+1);\n *(num+j+1)=chan;\n }\n }\nfor(i=0,countor=0;ia[j])\n { \n x=a[i];\n a[i]=a[j];\n a[j]=x;\n }\n }\n if(a[i]%2==1)\n {\n if(t==1)\n printf(\",\");\n printf(\"%d\",a[i]);\n t=1;\n }\n}\n }"} +{"label": "94", "index": "46676", "code": "/*\n* ????1000012865_33\n* ??????\n* ???2010-11-3\n* ??:????????\n*/\nint main()\n{\n\tint N,n[501] = {0},m,a = 0,i;\n\tcin >> N;\n\tfor(i = 1; i <= N; i++)\n\t\tcin >> n[i];\n\tfor(i = 1; i <= N; i++)\n\t\tfor(int j = 1; j <= N - i; j++)\n\t\t\tif(n[j] > n[j + 1])\n\t\t\t\t{\n\t\t\t\tm = n[j + 1];\n\t\t\t\tn[j + 1] = n[j];\n\t\t\t\tn[j] = m;\n\t\t\t\t}\n\tfor(i = 1,m = 0; i <= N -1; i++)\n\t\tif(n[i] % 2 != 0)\n\t\t\tm++;\n\tfor(i = 1;a < m - 1; i++)\n\t\tif(n[i] % 2 != 0)\n\t\t\t{\n\t\t\tcout << n[i] << ',';\n\t\t\ta++;\n\t\t\t}\n\tfor(i; i <= N; i++)\n\t\tif(n[i] % 2 != 0)\n\t\t\tcout << n[i] << endl;\n\treturn 0;\n}"} +{"label": "94", "index": "46677", "code": "int main()\n{\n\tint n,i,k,j,e,m=0,x=0;\n\tint a[500]={0},b[500]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;ib[j+1])\n\t\t\t{\n\t\t\t\te=b[j+1];\n\t\t\t\tb[j+1]=b[j];\n\t\t\t\tb[j]=e;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\tfor(j=0;jb[j2+1])\n\t\t\t{\n\t\t\t\tx=b[j2];\n\t\t\t\tb[j2]=b[j2+1];\n\t\t\t\tb[j2+1]=x;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b[1]);\n\tfor(i1=2;i1a[j+1])\n {\n t=a[j];a[j]=a[j+1];a[j+1]=t;\n }\n }\n }\n}\nint main (){\n int a[500],b[500],n,i,j=0;\n scanf(\"%d\",&n);\n for(i=0;ia[i+1]){\n e=a[i];\n a[i]=a[i+1];\n a[i+1]=e;\n };\n };\n }\n for (i=0;ij[k+1]){\n\t\t\t\te=j[k+1];\n\t\t\t\tj[k+1]=j[k];\n\t\t\t\tj[k]=e;\n\t\t\t}\n\t\t}\n\t}\n k=0;\n for(k=0;kb[i+1]){\n\t\t\t\tm=b[i];\n\t\t\t b[i]=b[i+1];\n\t\t\t b[i + 1]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ib[j+1]){\n\t\t\t\te=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;jjs[j+1]){\n\t\t\t\t \t\te=js[j];\n\t\t\t\t\t\t js[j]=js[j+1];\n\t\t\t\t\t\t js[j+1]=e;\t\t\t \n\t\t \t\t }\n\t\t }\n}for(i=0;ii;j--)\n\t\t{\n\t\t\tif(a[j]b[m])\n\t\t{\n\t printf(\"%d,\",b[m]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%d\",b[m]);\n\t\t}\n\t}\n\t\treturn 0;\n\t\n\n}"} +{"label": "94", "index": "46687", "code": " int main(){\n int N,a[500],b[500];\n int i,j,m,r;\n scanf(\"%d\\n\",&N);\n for(i=0;ii;j--){\n if(b[j]yz[q+1]){\n e=yz[q+1];\n yz[q+1]=yz[q];\n yz[q]=e;\n }\n }\n }\n for(int t=0;t0){\n\t\t\tif(ma[i+1]){\n temp=a[i+1];\n a[i+1]=a[i];\n a[i]=temp;\n }\n }\n }\n \n}\n\nfor(int i=0;i> N;\n\tint a[N];\n\tint i = 0, j = 0, k = 0, t = 0;\n\t\n\tfor ( int i = 0; i < N; i++ )\n\t{\n\t\tcin >> k;\n\t\tif ( k%2 == 1)\n\t\t{\n\t\t\ta[j] = k;\n\t\t\tj++;\n\t\t}\n\t}\n\t\n\tfor ( int i = 0; i < j; i++ )\n\t\tfor ( int k = i + 1; k < j; k++ )\n\t\t\tif ( a[i] > a[k] )\n\t\t\t{\n\t\t\t\tt = a[i];\n\t\t\t\ta[i] = a[k];\n\t\t\t\ta[k] = t;\n\t\t\t}\n\t\n\tcout << a[0];\n\tfor ( int i = 1; i < j; i++ )\n\t\tcout << \",\" << a[i];\n\t\n\treturn 0;\n}"} +{"label": "94", "index": "46692", "code": "int main(){\n\tint e,n,m=0;\n\tscanf(\"%d\",&n);\nint num[500],sz[500];\n\tfor(int i=0;inum[j+1]){\n\t\t\t\t \t\te=num[j];\n\t\t\t\t\t\t num[j]=num[j+1];\n\t\t\t\t\t\t num[j+1]=e;\t\t\t \n\t\t \t\t }\n\t\t }\n}\nfor(int i=0;i>n;\n\tfor(i=0;i>a[i];\n\t\tif(a[i]%2==1)\n\t\t{b[j]=a[i],j++,d++;}//???????\n\t}\n\tfor(i=0;ib[j])\n\t\t\t{f=b[i],b[i]=b[j],b[j]=f;}//?????\n\t\t}\n\t}\n\tfor(j=0;jb[h+1]){\n\t\t\t\te=b[h+1];\n\t\t\t\tb[h+1]=b[h];\n\t\t\t\tb[h]=e;\n\t\t\t}\n\t\t}\n\t}\n for(h=0;ha[i+1]){\n e=a[i+1];\n a[i+1]=a[i];\n a[i]=e;\n }\n }\n }\n int first;\n for(first=0;first>n;\n int a[n],b[t];\n for(int i=0;i>a[i];\n for(int j=0;jb[j+1])\n {\n w=b[j];\n b[j]=b[j+1];\n b[j+1]=w;\n } \n cout<=1;r=r-1){\n\t for(i=0;i<=w-1-1;i=i+1){\n\t\t\tif (b[i]>b[i+1]){\n\t\t\t\tt=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\t\tprintf(\"%d\",b[0]);\n\t\tfor(i=1;i<=w-1;i=i+1){\n\t\tprintf(\",%d\",b[i]);\n\t\t}\n\treturn 0;\n}\n"} +{"label": "94", "index": "46700", "code": "int main()\n{\n\tint N;\n\tcin>>N;\n\tint i,k,num[500];\n\tfor(i=0;i>num[i];\n\tfor(i=0;i0){\n\tli=j-1;ri=j;\n\twhile((a[li]>a[ri])&&(li>=0)){\n\tk=a[ri];\n\ta[ri]=a[li];\n\ta[li]=k;\n\tri--;\n\tli--;\n\t}\n}\n}\n}\nfor(i=0;i1;f--){\n\t\tfor(i=0;id[i+1]){\n\t\t\t\te=d[i+1];\n\t\t\t\td[i+1]=d[i];\n\t\t\t\td[i]=e;\n\t\t\t}\n\t\t}\n\t \n\t}\n\tfor(i=0;isz[maxIndex]){\n maxIndex=i;\n}\n}\nif(maxIndex!=j-k){\n e=sz[maxIndex];\n sz[maxIndex]=sz[j-k];\n sz[j-k]=e;\n}\n}\nprintf(\"%d\", sz[0]);\nfor(i=1;i> n;\n for (int i = 0; i < n; i++) {\n cin >> data[i];\n }\n sort(data, data + n);\n for (int i = 0; i < n; i++) {\n if (data[i] / 2 * 2 != data[i]) {\n if (comma) {\n cout << \",\";\n }\n comma = true;\n cout << data[i];\n }\n }\n}\n"} +{"label": "94", "index": "46705", "code": "int main(){\nint sz[500],szz[500];\nint n,e,s=0;\nint i,j,k;\nscanf(\"%d\",&n);\nfor(i=0;iszz[j+1]){\n\t\te=szz[j+1];\n\t\tszz[j+1]=szz[j];\n\t\tszz[j]=e;\n\t\t}\n\t}\n}\nfor(j=0;j=b[t+1]){\n\t\t\ts=b[t];\n\t\t b[t]=b[t+1];\n\t\t b[t+1]=s;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b[0]);\n for(i=1;i=0;r--){\n if(t> n;\n\tfor (int i = 1; i <= n; i++)\n\t{\n\t\tcin >> number;\n\t\tif (number % 2 == 1)\n\t\t{\n\t\t\ta[k] = number;\n\t\t\tk++;\n\t\t}\n\t}\n\tfor (int m = 1; m <= k - 2; m++)\n\t{\n\t\tint p = m;\n\t\tfor (int l = m + 1; l <= k - 1; l++)\n\t\t{\n\t\t\tif (a[p] > a[l])\n\t\t{\n\t\t\tint t = a[l];\n\t\t\ta[l] = a[p];\n\t\t\ta[p] = t;\n\t\t}\n\t\t}\n\t\t\n\t}\n\tfor (int n = 1; n <= k - 1; n++)\n\t{\n\t\tif (n == 1)\n\t\t\tcout << a[n];\n\t\telse cout << \",\" << a[n];\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "94", "index": "46709", "code": "int main(){\n\tint N,a[500],b[500],k,i,j,t;\n\tk=0;\n\tscanf(\"%d\",&N);\n\ti=0;\n\twhile(ib[i+1]){\n t=b[i];\n b[i]=b[i+1];\n b[i+1]=t;\n }\n }\n }\n i=0;\n\twhile(ib[k+1]){\n e=b[k]; \n b[k]=b[k+1];\n b[k+1]=e;\n }\n }\n }\n for(i=0;i>n;\n\tint i,j,k;\n\tfor(i=0;i>s[i];\n int len=0;\n\tfor(i=0;it[j+1])\n\t\t\t{\n\t\t\t\tk=t[j];\n\t\t\t\tt[j]=t[j+1];\n\t\t\t\tt[j+1]=k;\n\t\t\t}\n\tcout<0;j--)\n{\nif(z[j]b[j+1])\n {\n e=b[j];\n b[j]=b[j+1];\n b[j+1]=e;\n }\n }\n }\n for(j=0;jzs[i+1]){\n\t\tc=zs[i+1];\n\t\tzs[i+1]=zs[i];\n zs[i]=c;\n\t\tif(i!=0)i=i-2;\n\t\t}\n\t}\n\tfor(i=0;ib[j]){\n\t\t\t\tt=b[i];\n\t\t\t\tb[i]=b[j];\n\t\t\t\tb[j]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;i0) {n=0;\nfor (i=0;ia[i+1])\n{a[i]=a[i]+a[i+1];\na[i+1]=a[i]-a[i+1];a[i]=a[i]-a[i+1];n++;} }\nfor (i=0;ib[m-1]&&a[j]a[i+1])\n {t=a[i]; a[i]=a[i+1]; a[i+1]=t;}\n printf(\"%d\",a[0]);\n for(i=1;ia[j+1])\n\t\t\t{\n\t\t\t\ttemp1=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t a[j+1]=temp1; \n\t\t\t}\n\t\t}\n\t}\n}\nvoid main()\n{\n\tint i,n,t=0,a[500],b[500];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ik[m]){\n\t\t\tm=i;\n\t\t}\n\t\tif(m!=z-a){\n\t\t\te=k[m];\n\t\t\tk[m]=k[z-a];\n\t\t\tk[z-a]=e;\n\t\t}\n\t}\n\t}\n\tif(z==1){\n\t\tprintf(\"%d\",k[0]);\n\t}else{printf(\"%d\",k[0]);\n\t\tfor(i=1;i>n;int k=1;\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tcin>>a[i];\n\t\tint z=a[i]%2;\n\t\tif(z==1)\n\t\t{\n\t\t\tb[k]=a[i];k++;//???????\n\t\t}\n\t}\n\n\t\t//?????\n\t\tfor(int i=1;isz[b+1]){\n e=sz[b+1];\n sz[b+1]=sz[b];\n sz[b]=e;\n }\n }\n }\n for(b=0;b sz[s+1]){\n\t\t\t\te = sz[s+1];\n\t\t\t\tsz[s+1] = sz[s];\n\t\t\t\tsz[s] = e;\n\t\t}\n\t\t\t\n\t}\n \n}\n\tint a;\n\tfor(int f=0;f<=n-1;f++){\n\tif(sz[f]%2!=0){\n\t\ta=sz[f];\n\t}\n\t}\n for(int d=0;d<=n-1;d++){\n\n\t\tif(sz[d]js[i+1]){\ne=js[i+1];\njs[i+1]=js[i];\njs[i]=e;\n}\n}\n}\nfor(int i=0;iodd[i+1])\n\t\t\t{\n\t\t\t\ttemp=odd[i];\n\t\t\t\todd[i]=odd[i+1];\n\t\t\t\todd[i+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",odd[0]);\n\tfor(i=1;isz[j+1]){\n\t\t\te=sz[j+1];\n\t\t\tsz[j+1]=sz[j];\n\t\t\tsz[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tm=0;\n\tfor(j=0;j<=N;j++){\n\t\tif(sz[j]%2==1){\n\t\t\tif(m==0){\n\t\t\t\tprintf(\"%d\",sz[j]);\n\t\t\t}else{\n\t\t\tprintf(\",%d\",sz[j]);}\n\t\tm++;\n\t\t}\n\t}\nreturn 0;\n}"} +{"label": "94", "index": "46728", "code": "int compare(const void * elem1, const void * elem2)\n{\n\tint *a=NULL,*b=NULL;\n\ta=(int *)elem1;\n\tb=(int *)elem2;\n\treturn(*a-*b);\n}\nmain()\n{\n int n,i,j=0,x=0,flag=0;\n scanf(\"%d\",&n);\n int a[n];\n for(i=0;i0&&flag==0)\n {\n printf(\"%d\",b[i]);\n flag=1;\n }\n else if(b[i]!=0)\n printf(\",%d\",b[i]);\n }\n\n \n} "} +{"label": "94", "index": "46729", "code": "/*\n *7001.cpp\n *??????????N????500???????????????????????????\n *Created on: 2012-11-3\n *Author: ??\n */\nint N=0,i=0,j=0,shuru[500],jishu[500],mid=0,p=0;//????\nint main ()\n{\n\tcin>>N;\n\tfor(i=0;i>shuru[i];\n\t}\n\tj=0;\n\tp=0;\n\tfor(i=0;i=jishu[j+1])\n\t\t\t{\n\t\t\t\tmid=jishu[j];\n\t\t\t\tjishu[j]=jishu[j+1];\n\t\t\t\tjishu[j+1]=mid;\n\t\t\t}\n\t\t}\n\t}\n\tcout<b[i+1]){\n e=b[i+1];\n b[i+1]=b[i];\n b[i]=e;\n }\n }\n }\nfor (i=0;ia[i+1]){\n\t\t\t\tc=a[i+1];\n\t\t\t\ta[i+1]=a[i];\n\t\t\t\ta[i]=c;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(i=1;i<=N;i++){\n\t\tif(a[i]%2==1&&b==0){\n\t\t\tprintf(\"%d\",a[i]);\n\t\t\tb=b+1;\n\t\t}\n\t\telse if(a[i]%2==1&&b!=0)\n\t\t\tprintf(\",%d\",a[i]);\n//\t\telse\n//\t\t\tcontinue;\n\t}\n\t\n\treturn 0;\n}\n"} +{"label": "94", "index": "46732", "code": "int main()\n{\n\tint n,i,k,a,jishu[500],e;\n\tscanf(\"%d\",&n);\n\tk=0;\n\tfor(i=0;ijishu[a+1])\n\t\t\t{\n\t\t\t\te=jishu[a+1];\n\t\t\t\tjishu[a+1]=jishu[a];\n\t\t\t\tjishu[a]=e;\n\t\t\t}\n\t\t}\n\t}\n for(i=0;ijs[h+1]){\n\t\t\t\te=js[h+1];\n\t\t\t\tjs[h+1]=js[h];\n\t\t\t\tjs[h]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int y=0;y<(p);y++){\n\t\tif(y>n;\n\tfor(i=0;i>a[i];\n\tfor(i=0;ishuzu[j+1]){\n\t\t\t\te=shuzu[j+1];\n\t\t\t\tshuzu[j+1]=shuzu[j];\n\t\t\t\tshuzu[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;jjishu[j-1]&&shuzu[i]%2!=0){\n\t\t\t\tjishu[j]=shuzu[i];\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t}\n\t\tif(i==n){\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tfor(i=0;isz[max]) max=i;}\nif(max!=n-k){\n\te=sz[max];\n\tsz[max]=sz[n-k];\n\tsz[n-k]=e;}}\nfor(i=0;i> N;\n\tfor(i = 0; i < N; i++)\n\t\tcin >> a[i];\n\tfor(i = 0; i < N; i++)\n\t\tif(a[i] % 2 != 0)\n\t\t{\n\t\t\tb[m] = a[i];\n\t\t\tm++;\n\t\t}\n\tfor(i = 0; i < m-1; i++)\n\t\tfor(j = 0; j < m-1-i; j++)\n\t\t\tif(b[j] > b[j+1])\n\t\t\t{\n\t\t\t\ttemp = b[j];\n\t\t\t\tb[j] = b[j+1];\n\t\t\t\tb[j+1] = temp;\n\t\t\t}\n\tfor(i = 0; i < m; i++)\n\t{\n\t\tif(i == 0)\n\t\t\tcout << b[i];\n\t\telse\n\t\t\tcout << \",\" << b[i];\n\t}\n\treturn 0;\n}\n"} +{"label": "94", "index": "46738", "code": "int main()\n{\n int n,i,j=1,p,num,k;//???????n?????i?j?k??????num \n int a[500]={0};//????a?????0 \n cin>>n;//??n \n for(i=1;i<=n;i++)//???? \n {\n cin>>num;//???? \n if(num%2!=0)//????????? \n a[j++]=num;//???????????? \n }\n j=j-1;//?j????????? \n for(k=1;k<=j-1;k++)//???????xunhuan \n {\n for(i=1;i<=j-k;i++)//???? \n {\n if(a[i]>a[i+1])\n {\n p=a[i];\n a[i]=a[i+1];\n a[i+1]=p;//?a[i]?a[i+1]?? \n }\n }\n }\n for(i=1;i<=j;i++)\n {\n if(i!=j)\n cout<b[z])\n {\n temp=b[i];\n b[i]=b[z];\n b[z]=temp;\n }\n }\n }\n for(i=0;i>n;\n\tint a[500],ji[500];\n\tint num=0;\n\tint i,j;\n\tint t;\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tcin>>a[i];\n\t\tif(a[i]%2==1)\n\t\t{\n\t\t\tji[num]=a[i];\n\t\t\tnum=num+1;\n\t\t}\n\t}\n\tfor(i=num-1;i>=1;i--)\n\t\tfor(j=0;j<=i-1;j++)\n\t\t{\n\t\t\tif(ji[j]>ji[j+1])\n\t\t\t{\n\t\t\t\tt=ji[j];\n\t\t\t\tji[j]=ji[j+1];\n\t\t\t\tji[j+1]=t;\n\t\t\t}\n\t\t}\n\tcout<>n;\n\tfor(int i=0;i>t;\n\t\tif(t%2)\n\t\t{\n\t\t\ta[odd]=t;\n\t\t\todd++;\n\t\t}\n\t}\n\tfor(int i=0;ia[j+1])\n\t\t\t{\n\t\t\t\tt=a[j];a[j]=a[j+1];a[j+1]=t;\n\t\t\t}\n\tfor(int i=0;i>N;\n\t\n\tfor (int i = 0 ; i < N ;++i) \t //??n??\n\t{\t\t\n\t\tcin>>a[i];\n\t\tif (a[i]%2)\t\t //mod 2?1?????\n\t\t\ta[cnt++]=a[i];\n\t}\n\t\n\tsort(a, a+cnt);\n\t\n\tfor (int i =0 ; i < cnt ; ++i) \n\t{\n\t\tif (i) cout << \",\";\n\t\tcout << a[i];\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46743", "code": "int main()\n{\n\tint a[501],b[501];\n\tint i,j=1,t,n,p,m=1;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]%2==1)\n\t\t{\n\t\t\tb[j]=a[i];\n\t\t\tj++;\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(p=1;pb[j+1])\n\t\t\t{\n\t\t\t\tt=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b[1]);\n\tfor(j=2;j<=m-1;j++)\n\t{\n\t\tprintf(\",%d\",b[j]);\n\t}\n\treturn 0;\n}\n"} +{"label": "94", "index": "46744", "code": "/*\n * ???:test1.cpp\n * ??:???\n * ????: 2010-12-24\n * ??:???????N,?2?? N ????,????????????????????\n */\n\nint main(){\n\tint N,x,t;//????\n\tcin>>N;//????????\n\tint a[N+1],i=0,m=0;//????\n\twhile(N>0){\n\t\tcin>>x;//????\n\t\tif(x%2!=0){\n\t\t\ta[i]=x;\n\t\t\tm++;\n\t\t\ti++;\n\t\t}//???????\n\t\tN--;//N???????\n\t}\n\tfor(int j=0;ja[k+1]){\n\t\t\t\tt=a[k];\n\t\t\t\ta[k]=a[k+1];\n\t\t\t\ta[k+1]=t;\n\t\t\t}\n\t\t}//?????????\n\tcout<>N;\n\tfor(int i=0;i>inA[i];\n\tfor(int i=0;ijs[i+1]){\n\t\t\t\te=js[i];\n\t\t\t\tjs[i]=js[i+1];\n\t\t\t\tjs[i+1]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tfor(i=0;izs[q]){\nq=p;\n}\nif(q!=j-k+1){\ne=zs[q];\nzs[q]=zs[j-k+1];\nzs[j-k+1]=e;\n}\n}\n}\nfor(w=0;w<=j;w++){\nif(w!=j){\nprintf(\"%d,\",zs[w]);\n}\nelse {\nprintf(\"%d\",zs[w]);\n}\n}\nreturn 0;}\n\n"} +{"label": "94", "index": "46749", "code": "/**\n* @file 8.cpp\n* @author ???\n* @date 2010?11?7\n* @description\n* ?????????????\n*/\nint main()\n{\n\tint N, num, a[500], i, j = 0, flag = 1, k, temp; \n\tcin >> N;\n\tfor (i = 0; i < N; i++)\n\t{\n\t\tcin >> num;\n\t\tif (num % 2 != 0)\n\t\t{\n\t\t\ta[j++] = num;\n\t\t}\n\t}\n\tfor (i = 0; i < j; i++)\n\t{\n\t\tfor (k = 0; k < j - 1 - i; k++)\n\t\t{\n\t\t\tif (a[k] > a[k + 1])\n\t\t\t{ \n\t\t\t\ttemp = a[k];\n\t\t\t\ta[k] = a[k + 1];\n\t\t\t\ta[k + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 0; i < j; i++)\n\t{\n\t\tcout << a[i];\n\t\tflag = 0;\n\t\tif (flag == 0 && i != j - 1)\n\t\t{\n\t\t\tcout << \",\";\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "94", "index": "46750", "code": "int main()\n{\n\tint a[500],n,i,j=0,b,k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[j+1])\n\t\t\t{\n\t\t\t\tb=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=b;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ia[i+1])\n\t\t\t{\n\t\t\t\tx=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;it;i--){\n if(y[i]a[i+1]){\ne=a[i+1];\na[i+1]=a[i];\na[i]=e;\n}}}\nfor(i=0;ib[j+1])\n\t {\n\t temp=b[j+1];\n\t b[j+1]=b[j];\n\t b[j]=temp;\n\t }\n\t}\n\n\tif(p==1) printf(\"%d\",b[0]);\n\telse\n\t{\n\t\tprintf(\"%d\",b[0]);\n\t\tfor(i=1;i<=p-1;i++)\n\t\t\tprintf(\",%d\",b[i]);\n\t\n\t}\n\n}"} +{"label": "94", "index": "46755", "code": "void maopao(int a[],int n)\n{\n\tint i,k,t;\n\tfor(k=n-1;k>0;k--){\n\t\tfor(i=0;ia[i+1]){\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n}\nint main(){\n\tint a[MAX],b[MAX];\n\tint i,n,c,m,x;\n\tx=0;\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0;inumber[p+1]){number[p]+=number[p+1];number[p+1]=number[p]-number[p+1];number[p]-=number[p+1];}}}\ncount=0;\nfor(i=0;ijs[i+1]){\n e=js[i+1];\n js[i+1]=js[i];\n js[i]=e;\n }\n }\n }\n for(i=0;ij[q+1]){\n\t\t\t\te=j[q+1];\n\t\t\t\tj[q+1]=j[q];\n\t\t\t\tj[q]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int u=0;uj[m+1]) {\n e=j[m];\n j[m]=j[m+1];\n j[m+1]=e;\n } \n \n }\n }\n for(m=0;m=1;i--){\n\tprintf(\"%d\",px[i]);\n\tif(i==1){\n\tbreak;}\n\tprintf(\",\");\n\t}\n\n\n\n\nreturn 0;\n}\n"} +{"label": "94", "index": "46763", "code": "int main(){\n int N,i,j,s;\n scanf(\"%d\",&N);\n int jishu[501];\n int sz[501];\n j=0;\n for(int i=0;ijishu[j+1]){\n e=jishu[j];\n jishu[j]=jishu[j+1];\n jishu[j+1]=e;\n }\n } \n }\n for(int j=0;jm[i+1]){\n e=m[i+1];\n m[i+1]=m[i];\n m[i]=e;\n }\n }\n } \n for(i=N-a;i=j;i--)\n\t\t{\n\t\t\tif(num[i]>=num[i-1])\n\t\t\t{\tg=num[i-1];\n\t\t\t\tnum[i-1]=num[i];\n\t\t\t\tnum[i]=g;\n\t\t\t}\n\t\t}\n\t}\n printf(\"%d\",num[sum-1]);\n\tfor(k=sum-2;k>=0;k--)\n\t\tprintf(\",%d\",num[k]);\n}\n"} +{"label": "94", "index": "46766", "code": "int main(){\n\tint n,k,i,j,r;\n\tint sz[200],jsz[200];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;j--){\n\t\t\tif(tmpx[k+1]){\n a=x[k+1];\n x[k+1]=x[k];\n x[k]=a; \n }\n }\n}\nfor (int t=0;tsz2[p]){\nb=sz2[q];\nsz2[q]=sz2[p];\nsz2[p]=b;\n}\n}\n}\nfor(int c=0;c0)\n {\n for(t=0;tJ[t+1])\n {e=J[t+1];\n J[t+1]=J[t];\n J[t]=e;}\n }\n n--;\n }\n printf(\"%d\",J[k]);\n for(t=k+1;tresult[i+1])\n {\n e=result[i+1];\n result[i+1]=result[i];\n result[i]=e;\n }\n }\n }\n for(i=0;ii;j--)\n{\nif(b[j]<=b[j-1])\n{\nm=b[j-1];\nb[j-1]=b[j];\nb[j]=m;\n}\nif(b[j]>b[j-1])\n{\nb[j]=b[j];\nb[j-1]=b[j-1];\n}\n}\n}\nfor(i=0;isz[j+1])\n{\ne=sz[j+1];\nsz[j+1]=sz[j];\nsz[j]=e;\n}\n}\n}\nint m=0;\nwhile(mjs[m]){\n\t\t\tm=i;\n\t\t}\n\t}\n\t\tif(js[m]!=js[a-k]){\n\t\t\te=js[a-k];\n\t\t\tjs[a-k]=js[m];\n\t\t\tjs[m]=e;\n\t\t}\n\t}\n\tfor(i=0;isz[a+1]){\n\t\t\t\te=sz[a+1];\n\t\t\t\tsz[a+1]=sz[a];\n\t\t\t\tsz[a]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int y=0;ya[g+1])\n {\n h=a[g+1];\n a[g+1]=a[g];\n a[g]=h;\n }\n }\n }\n \n for(int x=1;x<=b;x++)\n {\n \n if(x>n;\n\tfor(i=1,counter=0;i<=n;i++,counter++)\n\t{\n\t\tcin>>num;\n\t\tif(num%2!=0)\n\t\t\ta[counter]=num;\n\t\telse\n\t\t\tcounter--;\n\t}\n for(i=1;i=i;j--)\n\t\t{\n\t\t\tif(a[j]js[max]){\n\t\t\t max=i;\n\t\t }\n\t }\n\t\t e=js[j-m];\n\t\t js[j-m]=js[max];\n\t\t js[max]=e;\n if(max==j-m){\n max=j-m-1;\n\t }\n }\n\tfor(i=0;iB[i+1]){\n g=B[i+1];\n B[i+1]=B[i];\n B[i]=g;\n }\n i++;\n }\n f++;\n }\n i=0;\n while(ijsz[i+1])\n {\n e=jsz[i+1];\n jsz[i+1]=jsz[i];\n jsz[i]=e;\n }\n }\n}\nprintf(\"%d\",jsz[0]);\nfor(i=1;i> n ;\n\tint a[n] , k = -1 ;\n\tfor( int i = 0 ; i < n ; i ++ ) // ????????????\n\t{\n\t\tcin >> x ;\n\t\tif( x % 2 == 1 )\n\t\t{\n\t\t\tk ++ ;\n\t\t\ta[k] = x ;\n\t\t}\n\t}\n\tint t = 0 ; // t ?????????\n\tfor( int i = 0 ; i <= k ; i ++ ) // ???????????????\n\t\tfor( int j = 0 ; j < k - i ; j ++ )\n\t\t{\n\t\t\tif( a[j] > a[j+1] )\n\t\t\t{\n\t\t\t\tt = a[j] ;\n\t\t\t\ta[j] = a[j+1] ;\n\t\t\t\ta[j+1] = t ;\n\t\t\t}\n\t\t}\n\tcout << a[0] ; //??????\u0091?\u0092???a[0]??\n\tfor( int i = 1 ; i <= k ; i ++ )\n\t\tcout << \",\" << a[i] ;\n\tcout << endl ; //endl???\n return 0 ;\n}\n"} +{"label": "94", "index": "46781", "code": "int main()\n{\nint n,i,j,a,b,c,m[500];\nscanf(\"%d\",&n);\nfor(i=0,j=0;i0;b--)\n{\nfor(i=0;i>n; //?? ???? \n for (int i=1;i<=n;i++)\n {\n cin >>a[i];\n if (a[i]%2==1)\n {\n m++;\n b[m]=a[i];\n }\n }\n for (int i=1;i<=1000;i++) //?? \n {\n for (int j=1;jb[j+1])\n {\n f=b[j];\n b[j]=b[j+1];\n b[j+1]=f;\n }\n }\n }\n for (int i=1;i<=m;i++) //?? \n {\n cout <=0;i--){\n\t\tfor(j=0;j=an[j+1]){\n\t\t\t\tmax=an[j];\n\t\t\t\tan[j]=an[j+1];\n\t\t\t\tan[j+1]=max;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",an[0]);\n out=an[0];\n\tfor(i=0;ib[i+1]){\n\t\t\te=b[i+1];\n\t\t\tb[i+1]=b[i];\n\t\t\tb[i]=e;\n\t\t}\n\t}\n}\nfor(j=0;jjs[b+1]){\n\t e=js[b+1];\n\t js[b+1]=js[b];\n\t js[b]=e;\n\t\t }\n\t\t}\n\t}\n for(int u=0;u>N;\n\tint a[500],i;\n\tfor(i=0;i>a[i];\n\t}\n\tint d,p=0;//d???\n\tint b[500];//??????\n\tfor(i=0;ib[n+1])\n\t\t\t{x=b[n];\n\t\t\t b[n]=b[n+1];\n\t\t\t b[n+1]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(n=0;nb[n+1])\n\t\t\t{\n\t\t\t\ttemp=b[n+1];\n\t\t\t\tb[n+1]=b[n];\n\t\t\t\tb[n]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(s=0;sb[j1+1])\n\t\t\t\tt=b[j1],b[j1]=b[j1+1],b[j1+1]=t;\n\tfor(i=0;isz[j+1]){\n\t\t \te=sz[j+1];\n\t\t\t sz[j+1]=sz[j];\n\t\t\t sz[j]=e;\n\t\t\t}\n\t }\n\t}\n\tint js[500];\n\tint t=0; \n\tj=0;\n\twhile(j=0&&b[j]>x;j--)\n\t\t\tb[j+1]=b[j];\n\t\tb[j+1]=x;\n\t}\n\tfor(i=2;i0;i--){\n for(j=0;jb[j+1]){\n m=b[j];\n b[j]=b[j+1];\n b[j+1]=m;\n }\n }\n }\n \n for(i=0;i> n;\n\tint a[501];\n\tint b[501];\n\tfor(int i = 1; i <= n; i++)\n\t\tcin >> a[i];\n\tfor(int j = 1,k = 0; j <= n; j++)\n\t{\n\t\tif(a[j] % 2 != 0)\n\t\t{\n\t\t\tk++;\n\t\t\tb[k] = a[j];\n\t\t\tx++;\n\t\t}\n\t}\n\tfor(int m = 1; m <= x;m++)\n {\n\t\tfor(int h = 1; h <= x - m; h++)\n\t\t{\n\t\t\tint temp;\n\t\t if(b[h] > b[h + 1])\n\t\t\t{\t\n\t\t\t temp = b[h];\n\t\t\t b[h] = b[h + 1];\n\t\t\t b[h + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tint sign = 0;\n\tfor(int h = 1;h <= x; h++)\n\t{\n\t\tif(sign == 0)\n\t\t{\n\t\t\tcout << b[h];\n\t\t\tsign++;\n\t\t}\n\t\telse\n\t\t cout << \",\" << b[h];\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46793", "code": "/*\n * ct.c\n *\n * Created on: 2011-11-24\n * Author: lin\n */\n\nint mysort(void *a, void *b)\n{\n\treturn *(int *)a - *(int *)b;\n}\n\nint main()\n{\n\tint in[100];\n\tint num;\n\tint tmp;\n\tscanf(\"%d\", &num);\n\tint count = 0;\n\twhile(num--)\n\t{\n\t\tscanf(\"%d\",&tmp);\n\t\tif(tmp % 2)\n\t\t{\n\t\t\tin[count] = tmp;\n\t\t\t++count;\n\t\t}\n\t}\n\tqsort(in,count,sizeof(int),mysort);\n\tfor(tmp = 0; tmp < count - 1; ++tmp)\n\t{\n\t\tprintf(\"%d,\", in[tmp]);\n\t} \t\n\tprintf(\"%d\", in[count - 1]);\n\treturn 0;\n\n}\n\n\n"} +{"label": "94", "index": "46794", "code": "\nint main()\n\n{\n\tint n,i,j;\n\tint a[500]={0};\n\tint b[500]={0};\n\tvoid bubble(int a[],int n);\n\t\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;ia[i+1])//?????????????????\n\t\t\t{\n\t\t\t\ttemp=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "94", "index": "46795", "code": "/*\n * ????jishuxulie.cpp\n * ??????\n * ?????2012 11 10\n * ?????????\n */\n\n\n\nint main(){\n int n,i,a,j,k,p;\n k=0;\n cin >>n; //??????n\n int m[n]; //????\n for(i=0;i>m[i]; //??\n for(i=0,p=0;im[i+1]){\n \t\t\ta=m[i];\n \t\t\tm[i]=m[i+1];\n \t\t\tm[i+1]=a; //??\n \t\t}\n \t}\n for (i=0;i<(n-k);i++){\n \tif(i==(n-k-1)) cout<a[j+1])\n\t\t\t{\n\t\t\t\te=a[j+1];\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\ta[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor (j=0;j=i;j--){\n\t\t\tif(A[j]>n;\n\tint a[n];\nint j;\nfor(j=0;j>a[j];\n\n\tint i,k,s;\n\tfor(i=0;ia[j])\n\t\t{\n\t\t\ts=a[i];\n\t\t\ta[i]=a[j];\n\t\t\ta[j]=s;\n\t\t}\n\tfor(k=0;kb[p+1]){\nt=b[p+1];\nb[p+1]=b[p];\nb[p]=t;}}}\nfor(i=0;i0){\nprintf(\"%d,\",b[i]);}}\nprintf(\"%d\",b[N]);\nreturn 0;\n}"} +{"label": "94", "index": "46800", "code": "int main()\n{\n int n,a,b,j,r,i;\n int sz[500];\n a=0;\n int num[500];\n scanf(\"%d\\n\",&n);\n for(i=0;i0;j--){\n for(r=0;rnum[r+1]){\n int tmp;\n tmp=num[r+1];\n num[r+1]=num[r];\n num[r]=tmp;\n }\n }\n }\n printf(\"%d\",num[1]);\n for(int i=2;i> N;\n\tfor (i = 0; i < N; i++)\n\t{\n\t\tcin >> a[i];\n\t\tif (a[i] % 2 != 0) {b[m] = a[i]; m = m + 1;}\n\t}\n\tfor (i = 0; i < m-1; i++)\n\t{\n\t\tp = i;\n\t\tfor (j = i + 1; j < m; j++)\n\t\t\tif (b[p] > b[j]) \n\t\t\t{\n\n\t\t\t\ttemp = b[p];\n\t\t\t\tb[p] = b[j];\n\t\t\t\tb[j] = temp;\n\t\t\t}\n\t}\n\tcout << b[0];\n\tfor (i = 1; i < m; i++)\n\t\tcout << ',' << b[i];\n\treturn 0;\n}\n"} +{"label": "94", "index": "46802", "code": "/*\n * 11.161.cpp\n *\n * Created on: 2012-11-4\n * Author: ???\n */\nint main()\n{\n\tint a[500],b[500];//????????\n\tint i,k=0,j,m,n,t,c,d;\n\tcin >>n;\n\tfor(i=0;i> a[i];\n\tfor(j=0;jb[c+1])\n\t\t\t{\n\t\t\t\tt=b[c];\n\t\t\t\tb[c]=b[c+1];\n\t\t\t\tb[c+1]=t;\n\t\t\t}\n\t\t}\n\tfor(d=0;dsz[i+1]){\n\t\t\t\te=sz[i];\n\t\t\t\tsz[i]=sz[i+1];\n\t\t\t\tsz[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>N;//??????????\n\tint i,a[1000],j,temp,k=0;\n\tfor(i=0;i>a[i];//????????\n\t}\n\tfor(i=0;ia[j+1])\n\t\t\t{\n\t\t\t\ttemp=a[j];a[j]=a[j+1];a[j+1]=temp;//???????????a??????????\n\t\t\t}\n\t}\n\tfor(i=0;i>n;\n\tint num,i,j;\t//num?????i?j?????\n\tconst int t=n;\n\tint jishu[t];\t//????????\n\tfor(i=1,j=0;i<=n;i++){\t//????????\n\t\tcin>>num;\n\t\tif(num%2==1){\n\t\t\tjishu[j]=num;\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(i=j-2;i>0;i--)\t\t//???????????\n\t\tfor(int k=0;k<=i;k++){\n\t\t\tif(jishu[k]>jishu[k+1]){\n\t\t\t\tint temp=jishu[k+1];\n\t\t\t\tjishu[k+1]=jishu[k];\n\t\t\t\tjishu[k]=temp;\n\t\t\t}\n\t\t}\n\tfor(i=0;ijs[m+1]){\n\t\t\t\tj=js[m+1];\n\t\t\t\tjs[m+1]=js[m];\n\t\t\t\tjs[m]=j;\n\t\t\t};\n\t\t};\n\t};\n\tfor(k=0;kp){\n p=b[i];\n\t }\n }\n for(r=1;r<=p-2;r+=2)\n {\n for(i=0;i>n;\n\tfor(i=0;i>a[i];\n\n\tfor(i=0;i0)\n\t\t\t\t\tcout<<\",\";\n\t\t\t cout<sz[maxIndex]){\n\t\t\t\t\tmaxIndex = j;\n\t\t\t}\n\t\t}\n\t\tif(maxIndex !=N-k){\n\t\te=sz[maxIndex];\n\t\tsz[maxIndex]=sz[N-k];\n\t\tsz[N-k]=e;\n\t\t}\n\t}\n\tfor(s=0;sb[m]){\n\t\t\t\tm=i;\n\t\t\t}\n\t\t}\n\t\tif(m!=j-k){\n\t\t\tc=b[m];\n\t\t\tb[m]=b[j-k];\n\t\t\tb[j-k]=c;\n\t\t}\n\t}\n for(k=0;k>n;\n\tfor(i=0;i>a[i];\n\t}\n\tfor(j=0;ja[i+1])\n\t\t\t{\n\t\t\t\tt=a[i];a[i]=a[i+1];a[i+1]=t;\n\t\t\t}\n\t\t}\n\t\tint p=0;\n\t\t\tfor(i=0;i=a[j])\n\t\t\t{\n\t\t\t\ttemp=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",a[1]);\n\tfor (i=2;i<=l;i++)\n\t{\n\t\tprintf(\",%d\",a[i]);\n\t}\t\n\treturn 0;\n}\n\t"} +{"label": "94", "index": "46814", "code": "int main()\n{\n\tint i, n, k, c[100], b;\n\tint j=0, s = 0;\n\tint a[100];\n\tscanf(\"%d\", &n);\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\", &c[i]);\n\t\tif(!(c[i]%2==0))\n\t\t{\n\t\t\ta[s] = c[i];\n\t\t\ts++;\n\t\t}\n\n\t}\n\tfor(j=0;j<=s;j++)\n\t{\n\t\tfor (i=0;ia[i+1])\n\t\t\t\tb = a[i], a[i] = a[i+1], a[i+1] = b;\n\t\t}\n\t}\n\tfor(i = 0; i < s; i++)\n\t{\n\t\tif(i != s-1)\n\t\t\tprintf(\"%d,\", a[i]);\n\t\telse\n\t\t\tprintf(\"%d\", a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46815", "code": "int main(){\n int N,m,n,i,j,tran;\n scanf(\"%d\",&N);\n int zhengzhengshu[N];\n int jishu[N];\n for(i=0;ijishu[n]){\n tran=jishu[m];\n jishu[m]=jishu[n];\n jishu[n]=tran; \n }\n }\n }\n for(m=1;m0;k--)\n\t{\n\t\tfor(i=0;ia[i+1])\n\t\t\t{\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\n\t\n\tfor(i=0;i=0;k--)\n {\n for(i=0;iv[i+1])\n\t\t {\n e=v[i+1];\n\t\t\tv[i+1]=v[i];\n\t\t\tv[i]=e;\n\t\t }\n\t }\n }\n for(i=0;i> n;\n\tint i;\n\tint z[n];\n\tint a=0;\n\tfor(i=0;i>z[i];\n\tsort(&z[0],&z[n]);\n\tfor(i=0;ia[i+j+1])\n\t\t\t{\n\t\t\t\tt=a[i+j];\n\t\t\t\ta[i+j]=a[i+j+1];\n\t\t\t\ta[i+j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0,f=0;ib[i+1]){\n d=b[i+1];\n b[i+1]=b[i];\n b[i]=d;\n }\n }\n }\n for(int i=0;ib[t+1]){\n\t\t\td=b[t];b[t]=b[t+1];b[t+1]=d;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b[1]);\n\tfor(t=2;tb[j+1]){\n\t\t\t\tint temp=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=N;i++){\n\t\tif(i==1) printf(\"%d\",b[i]);\n\t\telse printf(\",%d\",b[i]);\n\t}\n}\n"} +{"label": "94", "index": "46823", "code": " int *data;\n int InitData();\n void Sort(int a[],int n)\n {\n int i,j,k,t;\n for(i=0;i0)\n printf(\",%d\",a[i]);\n }\n }\n \n int main (){\n int a[10000];\n int i,n;\n scanf(\"%d\",&n);\n for(i=0;i=0;b--)\n\t\t{\n\t\t\tif(a js[m+1]){\t\n\t \t \t \t e=js[m+1];\t\n\t \t \t \t js[m+1]=js[m];\t\n\t \t \t \tjs[m]=e;\t\n\t \t }}}\n for(i=0;i>N;\n\tfor(i=1;i<=N;i++) //?a[]??\n\t{\n\t\tcin>>a[i];\n\t}\n\tfor(i=1;i<=N;i++) //?????????b[]\n\t{\n\t\tif(a[i]%2==1)\n\t\t{\n\t\t\tb[j]=a[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(i=1;i<=j-2;i++) //????????b[]??\n\t{\n\t\tfor(k=1;k<=j-1-i;k++)\n\t\t{\n\t\t\tif(b[k]>b[k+1])\n\t\t\t{\n\t\t\t\tp=b[k];\n\t\t\t\tb[k]=b[k+1];\n\t\t\t\tb[k+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=j-2;i++) //???????\n\t{\n\t\tcout<a[j+1]) {int x=a[j];a[j]=a[j+1];a[j+1]=x;}\n\tfor (i=0;i>n;\n\tconst int N=n;\n\tint a[N],b[N];\t\t\t//???????????????????????????\n\tint i,j,k=0,h;\n\tfor(i=0;i>a[i];\n\t\tif(a[i]%2==1)\t\t//????\n\t\t{\n\t\t\tb[k]=a[i];\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(i=1;i=b[j+1])\n\t\t\t{\n\t\t\t\th=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=h;\n\t\t\t}\n\t\t}\n\t}\n\tcout<a[i+1]){\n c=a[i+1];a[i+1]=a[i];a[i]=c; \n }\n } \n }\n for(i=0;ib[h])\n\t{\n\t\ttemp=b[h-1];b[h-1]=b[h];b[h]=temp;}\n\t\t\n\t\tprintf(\"%d\",b[0]);\n\t\tfor(i=1;ib[i+1]){\n t=b[i];\n b[i]=b[i+1];\n b[i+1]=t;\n }\n }\n }\n for(i=0;iqs[m+1]){ \n e=qs[m+1]; \n qs[m+1]=qs[m];\n qs[m]=e;\n }\n }\n }\n for(m=0;m>n;\n for(i=0;i<500;i++)\n {\n cin>>t;\n if(t%2==1) a[t]=1;\n }\n for(i=0;i<500;i++)\n {\n if(a[i]==1)\n {\n if(i>=tmax) tmax=i;\n else tmax=tmax;\n }\n }\n for(i=1;ib[l])\n\t\t\t{\n\t\t\t\tc=b[i];\n\t\t\t\tb[i]=b[l];\n\t\t\t\tb[l]=c;\n\t\t\t}\n\t\t}\n\t}\n printf(\"%d\",b[0]);\n\tfor(l=1;l> n;\n\tcount = 1;\n\tfor (k = 1; k <= n; k++)\n\t{\n\t\tcin >> num;\n\t\tif (num % 2 == 1) \n\t\t{\n\t\t\ta[count] = num;\n\t\t\tcount++;\n\t\t}\n\t}\n\tcount--;\n\tfor (i = 1; i <= count; i++)\n\t{\n\t\tfor (j = 1; j <= count - i; j++)\n\t\t{\n\t\t\tif (a[j] > a[j + 1])\n\t\t\t{\n\t\t\t\ttemp = a[j];\n\t\t\t\ta[j] = a[j + 1];\n\t\t\t\ta[j + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tcout << a[1] ;\n\tfor (i = 2; i <= count; i++)\n\t{\n\t\tcout << \",\" << a[i] ;\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "94", "index": "46836", "code": "int main()\n{\n int N,sz[500],i,js[500],j=1,e,k,s=0,h=0;\n scanf(\"%d\\n\",&N);\n for(i=1;i<=N;i++,s++)\n {\n scanf(\"%d\",&(sz[i]));\n }\n for(k=1;k<=s;k++)\n {\n for(i=0;i<=s-k;i++)\n {\n if(sz[i]>sz[i+1])\n {\n e=sz[i+1];\n sz[i+1]=sz[i];\n sz[i]=e;\n }\n }\n }\n for(i=1;i<=s;i++)\n {\n if(sz[i]%2!=0)\n {\n js[j]=sz[i];\n j=j+1;\n h=h+1;\n }\n }\n for(j=1;j<=h-1;j++)\n {\n printf(\"%d,\",js[j]);\n }\n printf(\"%d\",js[h]);\n return 0;\n}"} +{"label": "94", "index": "46837", "code": "int main(){\n int N,s;\n scanf(\"%d\",&N);\n int a[N],b[N];\n for(int i=0;ib[i+1]){\n s=b[i+1];\n b[i+1]=b[i];\n b[i]=s;\n }\n }\n }\n for(int i=0;i>n;\n\tfor(i=0;i>a[i];\n\t\tif(a[i]%2==1) b[j++]=a[i];\n\t\t}\n\tj--;\n\tfor(i=0;ib[k+1])\n\t\t\t{\n\t\t\t\tint temp=b[k];\n\t\t\t\tb[k]=b[k+1];\n\t\t\t\tb[k+1]=temp;\n\t\t\t}\n\t\t}\n\tfor(i=0;ijs[j+1]){\n e=js[j];\n js[j]=js[j+1];\n js[j+1]=e;\n }\n }\n}\nfor(j=0;j>n;\n\tint num[500]={0};//???\n\tfor(k=0;k>a;\n\t\tif(a%2!=0)//??????????\n\t\t{\n\t\t\tnum[m]=a;\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(k=0;knum[j+1])\n\t\t\t{\n\t\t\t\tint t;\n\t\t\t\tt=num[j];\n\t\t\t\tnum[j]=num[j+1];\n\t\t\t\tnum[j+1]=t;\n\t\t\t}\n\t}\n\tcout<>N;//??N\n\tint a[N+1];//??????a[N+1]\n\tfor(i=1;i<=N;i++)\n\t{\n\t\tcin>>a[i];//??a[i]\n\t\tif(a[i]%2==0)//?a[i]???\n\t\t{\n\t\t\ta[i]=0;//?a[i]=0\n\t\t\tsum=sum+1;//sum??1\n\t\t}\n\t}\n\tfor(i=1;i<=N;i++)//??????????????????\n\t{\n\t\tfor(j=1;j<=N-i;j++)\n\t\t{\n\t\t\tif(a[j]>a[j+1])\n\t\t\t{\n\t\t\t\tp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=sum+1;j<=N;j++)//????sum+1????N??\n\t{\n\t\tif(j==sum+1)\n\t\t\tcout<a[j+1]){\n b=a[j];\n a[j]=a[j+1];\n a[j+1]=b;\n }\n } \n }\n for(i=0;izs[c+1]){\n b=zs[c+1];\n zs[c+1]=zs[c];\n zs[c]=b;\n }\n }\n }\n for(int c=0;c s[j+1]){\n\t\t\t\t\te = s[j+1];\n\t\t\t\t\ts[j+1] = s[j];\n\t\t\t\t\ts[j] = e;\n\t\t\t}\n\t}\n}\nfor(j=0;j<(b-1);j++)\nprintf(\"%d,\",s[j]);\nprintf(\"%d\",s[b-1]);\nreturn 0;\n}"} +{"label": "94", "index": "46848", "code": "int main(){\n\tint i,n,x,e;\n\tint sz[LEN]={0};\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=sz[i+1]){\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(i=0;i>n;\n\tfor(int i=0;i>a[i];\n\t\tif (a[i]%2!=0){\n\t\t\tb[k]=a[i];//????\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(int i=0;ib[j+1]){\n\t\t\t\tint temp =b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=temp; //????\n\t\t\t}\n\t\t}\n\t}\n\tcout<>n;\nfor(i=1;i<=n;i++)\n\t{\n\tcin>>a[i];\n\t}\n\nfor(j=1;j<=499;j=j+2)\n\t{\n\tfor(i=1;i<=n;i++)\n\t\t{\n\tif(a[i]==j)\n\t\t{\n\t\tm++;\n b[m]=j;\n\t\t}\n\t\t}\n\t}\nfor(k=1;kb[j])\n\t\t\t{\n\t\t\t\ttemp=b[i];\n\t\t\t\tb[i]=b[j];\n\t\t\t\tb[j]=temp;\n\t\t\t}\n\t\t}\n\t\tif(i!=0)\n\t\t\tprintf(\",\");\n\t\tprintf(\"%d\",b[i]);\n\t}\n}\n"} +{"label": "94", "index": "46854", "code": "int main()\n{\n\tint n,i,j,max=1,m;\n\tint sz[500];\n\tscanf(\"%d\",&n);\n\tfor(i=0;imax&&sz[i]%2!=0)\n\t\t\tmax=sz[i];\n\t}\n\tfor(j=1;j<=max;j=j+2)\n\t{ \n\t\t\n\t\tif(j==max)\n\t\t\t\tprintf(\"%d\",j);\n\t\telse\n\t\t{\n\t\tfor(m=0;m0;i--)\n{\nprintf(\"%d,\",sz2[i]);\n}\nprintf(\"%d\\n\",sz2[0]);\n\treturn 0;\n}\n"} +{"label": "94", "index": "46856", "code": "int main()\n{\n int N,a[501],i,k,b[501],c,m;\n scanf(\"%d\",&N);\n for(i=1,k=1;i<=N;i++)\n {\n scanf(\"%d\",&a[i]);\n if((a[i])%2==1)\n {b[k]=a[i]; k=k+1;} \n }\n for(i=2;i>n;\n\tint a[100],b[100];\n\tfor(x=0;x>a[x];\n\t\tif(a[x]%2!=0){\n\t\t\tb[y]=a[x];\n\t\ty++;\n\t\t}\n\t}\n\tfor(i=1;ib[j+1])\n\t\t\t{\n\t\t\t\tp=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=p;\n\t\t\t}\n\t\t}\n\t\t\tcout<>n;\n\tint o[n],j[n];//????????\n\tfor(int i=0;i>o[i];\n\t\tif (o[i]%2!=0)//???\n\t\t{\n\t\t\tj[s]=o[i];\n\t\t\ts=s+1;\n\t\t}\n\t}\n\tfor(int x=0;xj[y])\n\t\t\t{\n\t\t\t\tswap (j[x],j[y]);//?????????\n\t\t\t}\n\t\t}\n\t}\n\tfor(int m=0;msz[a+1])\n{\ne=sz[a+1];\nsz[a+1]=sz[a];\nsz[a]=e;}\n}\n}\n\nfor(int b=0;bx[j+1])\n {temp=x[j+1];\n x[j+1]=x[j];\n\t\t\t x[j]=temp;\n }\n }\n }\n for (i=0;isz2[l+1]){\n\t\t\t\te=sz2[l];\n\t\t\t\tsz2[l]=sz2[l+1];\n\t\t\t\tsz2[l+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;j--){\n\t\tfor(r=0;rz[r+1]){\n\t\t\t\tint t;\n\t\t\t\tt=z[r+1];\n\t\t\t\tz[r+1]=z[r];\n\t\t\t\tz[r]=t;\n\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=0;ka[k])\n\t\t\t{\n\t\t\t\tp=a[j];\n\t\t\t\ta[j]=a[k];\n\t\t\t\ta[k]=p;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",a[0]);\n\tfor(j=1;jsz[i+1]){\n e=sz[i+1];\n sz[i+1]=sz[i];\n sz[i]=e;\n }\n }\n } \n for(i=0;isz[i+1])\n {\n e = sz[i+1];\n sz[i+1] = sz[i];\n sz[i] = e;\n }\n\t}\n }\n for(i=0;i=0;i--)\n\t{\n\t\tfor (k=0;ka[k+1])\n\t\t\t{\n\t\t\t\ttemp=a[k+1];\n\t\t\t\ta[k+1]=a[k];\n\t\t\t\ta[k]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;ia[max]){\n max=i;\n }\n }\n if(max!=n-k){\n e=a[max];\n a[max]=a[n-k];\n a[n-k]=e;\n \n }\n \n }\n for(i=0;ib[l]){\n m=b[i];\n\t\t\tb[i]=b[l];\n\t\t\tb[l]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;k--){\n\t\tfor(i=0;ia[i+1]){\n\t\t\t\tt=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\t\t\n}\n\nint main()\n{\n\tint i, n,a[MAX],u,j=0,b[MAX], m;\n scanf(\"%d\",&n);\n for(i=0;imax){\n\t\t\tmax=b[i];\n\t\t}\n\t}\n for(i=1;i<=(max-1)/2;i++){\n\t\tc[i]=c[i-1]+2;\n\t}\n for(i=0;i<=(max-1)/2;i++){\n\tfor(m=0;m<=t;m++){\n\t\t if(c[i]==b[m]){\n\t\t\t\td[h]=c[i];\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ii;l--){\n\t\t\tif(m[l]>n;\n\tfor(int i=1;i<=n;i++){\n\t\tint lt;\n\t\tcin>>lt;\n\t\tif(lt%2)a[++cnt]=lt;\n\t}\n\tsort(a+1,a+cnt+1);\n\tfor(int i=1;i>N;\n int b[N];\n for (int i=0; i>c;\n if (c%2==1) {\n b[n]=c;\n n++;\n }\n }\n int a[n];\n for (int i=0; i=0; i--) {\n for (int j=0; ja[j+1]) {\n m=a[j+1];\n a[j+1]=a[j];\n a[j]=m;\n }\n }\n }\n for (int i=0; isz2[j+1])\n\t\t\t{\n\t\t\t\te=sz2[j+1];\n\t\t\t\tsz2[j+1]=sz2[j];\n\t\t\t\tsz2[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j<=m-1;j++)\n\t{\n\t\tif(j==m-1)\n\t\t{\n\t\t\tprintf(\"%d\",sz2[j]);\n\t\t}else{\n\t\t printf(\"%d,\",sz2[j]);\n\t\t}\n\t}\n return 0;\n}\n"} +{"label": "94", "index": "46878", "code": "int main()\n{\n\tint a[10000];\n\tint n,w,m;\n\tint i,j,k,t,e,x,y;\n\tscanf(\"%d\",&w);\n\tn=0;\n\tfor(i=0;i=0;e--){\n\t\tfor(j=0;ja[j+1]){\n\t\t\t\tm=a[j+1];\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\ta[j]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(t=w-n;ta[i])\n {\n tmp=a[i-1];\n a[i-1]=a[i];\n a[i]=tmp;\n }\n }\n } \n for(i=0;i>n;\n\tfor(int i =0; i<=n-1;i++)\n\t\tcin >>a[i];\n\n\tfor(int p =0; pp;q--)\n\t\t{\n\t\t\tif(a[q]0;j--\n\t\t)\n\t{\n\tif (\n\t\tw[j-1]<=w[j]\n\t\t)\n\t\t{\n\t\t\t\t\tw[j]=w[j];\n\t\t\t\t\tw[j-1]=w[j-1];\n\t\t}\n\t\telse\n\t\t{ \n\t\t\tk=w[j];\n\t\t\tw[j]=w[j-1];\n\t\t\tw[j-1]=k;\n\t\t}\n\t}\n\t}\nfor(\n\t i=1;i>N;//??n\n\tint num=0;\n\tfor(int i=1;i<=N;i++)//?for??????\n\t{\n\t\tcin>>k;\n\t\tif(k%2!=0)//???????????????????????\n\t\t{\n\t\t\ta[k]=k;\n\t\t\tnum=num+1;//?????????\n\t\t}\n\t\t\n\t}\n\tint count=1;\n\tfor(int i=1;i<1000;i++)//??????????????\n\t{\n\t\tif((a[i]!=0)&&(count==num))\n\t\t{\n\t\t\tcout<b[i+1]){\n\t\t\t\te=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=e;\n\t\t\t}\n\t\t}\n\ti=0;\n\t}\n\tfor(i=0;ijs[a]){\n a=i;\n } \n if(a!=k-j){\n b=js[a];\n js[a]=js[k-j];\n js[k-j]=b;\n }\n }\n } \n for(j=0;jb[j+1]){\n\t\t\t\tt=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b[0]);\n\tfor(i=1;i> N;\t\t\t\t//??N\n\t//??????????\n\tfor (i = 0; i < N; i++)\n\t{\n\t\tcin >> num;\n\t\ta[i] = num;\n\t}\n\t//?????????????\n\tfor (i = 0; i < N; i++)\n\t{\n\t\tfor (j = 0; j < N - i - 1; j++)\n\t\t{\n\t\t\tif (a[j] > a[j + 1])\n\t\t\t{\n\t\t\t\ttemp = a[j];\n\t\t\t\ta[j] = a[j + 1];\n\t\t\t\ta[j + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\t//?????????????????\n\tfor (i = 0; i < N; i++)\n\t{\n\t\tif (a[i] % 2 != 0)\n\t\t{\n\t\t\tif (i == 0)\n\t\t\t\tcout << a[i];\n\t\t\telse\n\t\t\t\tcout << \",\" << a[i];\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46887", "code": "int main()\n{\n\tint N,e,i,m=0,q;\n\tint sz[500],js[500];\n\tscanf(\"%d\",&N);\n\tfor(i=0;ijs[q+1]){\n\t\t\te=js[q+1];\n\t\t\tjs[q+1]=js[q];\n\t\t\tjs[q]=e;\n\t\t}\n\t}\n\t}\n\tfor(i=0;ias[t+1])\n\t\t\t{\n\t\t\t\tint e=as[t+1];\n\t\t\t\tas[t+1]=as[t];\n\t\t\t\tas[t]=e;\n\t\t\t}\n\t\t}\n\t}\n\tint y=0;\n\tfor(int g=0;gy[j+1]){\ne=y[j+1];\ny[j+1]=y[j];\ny[j]=e;\n}\n}\n}\nfor(j=0;j> n;\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tcin >> a[i];\n\t\tif (a[i] % 2 == 1)\n\t\t\tb[count ++] = a[i];\n\t}\n\n\tfor (i = 0; i < count - 1; i ++)\n\t{\n\t\tfor (j = 0; j < count - 1 - i; j ++)\n\t\tif (b[j] > b[j + 1])\n\t\t{\n\t\t\ttemp = b[j + 1];\n\t\t\tb[j + 1] = b[j];\n\t\t\tb[j] = temp;\n\t\t}\n\t}\n\tcout << b[0];\n\tfor (i = 1; i < count; i ++)\n\t\tcout << \",\" << b[i];\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "94", "index": "46891", "code": "int main()\n{\n int i,n,a[10000],b[1000],k,x,j;\n j=0;\n k=0;\n scanf(\"%d\",&n);\n for(i=0;ic[j+1])\n\t\t\t{\n\t\t\t\ttemp=c[j];\n\t\t\t\tc[j]=c[j+1];\n\t\t\t\tc[j+1]=temp;\n\t\t\t}\n\t\t}\n\tfor (k=0;k> n;\n\tfor (int i = 0; i < n; i ++)\n\t{\n\t\tcin >> num[i];\n\t}\n\tfor (int i = 0; i < n; i ++)\n\t{\n\t\tfor (int j = n - 1; j > i; j --)\n\t\t{\n\t\t\tif (num[j] < num[j - 1])\n\t\t\t{\n\t\t\t\ttmp = num[j];\n\t\t\t\tnum[j] = num[j - 1];\n\t\t\t\tnum[j - 1] = tmp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (int i = 0; i < n; i ++)\n\t{\n\t\tif (num[i] % 2)\n\t\t{\n\t\t\tif (!flag)\n\t\t\t\tcout << num[i];\n\t\t\telse\n\t\t\t\tcout << \",\" << num[i];\n\t\t\tflag ++;\n\t\t}\n\t}\n\tcout << endl;\n\n\t\treturn 0;\n}\n\n"} +{"label": "94", "index": "46895", "code": "int main()\n{\n int N,i,j,k,t,count=0;\n cin>>N; //????????N \n int a[N]; //????a[N] \n for (i=0;i>a[i];\n if (a[i]%2!=0)\n count=count+1; //????????? \n }\n int b[count]; //??????b[count] \n k=0;\n for (i=0;ib[k+1])\n {\n t=b[k];\n b[k]=b[k+1];\n b[k+1]=t; //\u0093???\u0094?b[count]???????? \n }\n }\n }\n for (k=0;ku[i+1]){\n\t\t\t\tp=u[i+1];\n\t\t\t\tu[i+1]=u[i];\n\t\t\t\tu[i]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i sz[i+1]){\n\t\t\t\te = sz[i+1];\n\t\t\t\tsz[i+1] = sz[i];\n\t\t\t\tsz[i] = e;\n\t\t\t}\n\t\t}\n\n\t}\n\tfor(i=0;iv[max]){\n\t\t\tmax=j;\n\t\t}\n\t}\n\tif(max!=a-1){\n\t\te=v[max];\n\t\tv[max]=v[a-1];\n\t\tv[a-1]=e;\n\t}\n\ta--;\n\tb++;\n\tmax=0;\n\t}\n\tfor(c=0;cb[i+1])\n\t\t\t{\n\t\t\t\te=b[i+1],b[i+1]=b[i],b[i]=e;\n\t\t\t}\n\t\t}\n\t }\n\t for(i=0;i0;j--){\n for(r=0;rdeal[r+1])\n {\n int t;\n t=deal[r+1];\n deal[r+1]=deal[r];\n deal[r]=t;\n }\n }\n }\nfor(int l = 0;l> n;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tcin >> x;\n\t\tif (x%2==1)//?????????\n\t\t{\n\t\t\tk++;\n\t\t\ta[k]=x;\n\t\t}\n\t}\n\tfor (i=1;i<=k;i++)//????\n\t\tfor (j=i+1;j<=k;j++)\n\t\t\tif (a[i]>a[j])\n\t\t\t{\n\t\t\t\ta[0]=a[i];a[i]=a[j];a[j]=a[0];\n\t\t\t}\n for (i=1;i<=k-1;i++)\n \tcout << a[i] << ',';\n cout << a[k] << endl;\n\treturn 0;\n}"} +{"label": "94", "index": "46902", "code": "int main(){\nint a,n,i,e,j=0;\nscanf(\"%d\",&n);j=n;\nint sz[500];\nfor(i=0;isz[i+1]){\ne=sz[i+1];\nsz[i+1]=sz[i];\nsz[i]=e;}\n}\n}\nfor(i=n-j;ipp[j+1])\n\t\t\t{\n\t\t\t\tt=pp[j];\n\t\t\t\tpp[j]=pp[j+1];\n\t\t\t\tpp[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i> n;\n for (i=0; i> b;\n if (b%2 == 1) //???????????\n { a[length] = b;\n length++;\n }\n }\n sort(a,a+length); //??\n cout << a[0];\n if (length>1)\n { for (i=1; ijishu[j]){\n\t\t\tt=jishu[i];\n\t\t\tjishu[i]=jishu[j];\n\t\t\tjishu[j]=t;\n\t\t}\n\t}\n\tprintf(\"%d,\",jishu[i]);\n}\nprintf(\"%d\",jishu[c-1]);\nreturn 0;\n}"} +{"label": "94", "index": "46906", "code": "int main(){\nint maxIndex, e,LEN,k,i;\nint sz[1000],js[1000];\nscanf(\"%d\",&LEN);\nfor(i=0;i sz[maxIndex]){\n\t\t\t\t\tmaxIndex = i;\n\t\t\t}\n\t}\t\n\tif(maxIndex != LEN-k){\n\t\te = sz[maxIndex];\n\t\tsz[maxIndex] = sz[LEN-k];\n\t\tsz[LEN-k] = e;\n\t}\n}\nk=0;\nfor(i=0;i1){\nfor(i=0;ijs[maxIndex]){\n maxIndex=i;\n }\n } \n if(maxIndex!=b-m){\n e=js[maxIndex];\n js[maxIndex]=js[b-m];\n js[b-m]=e;\n }\n }\n\nfor(int m=0;m> n;//??\n\tint a[n], b[n], k=0;//????\n\tfor( int i=0; i> a[i];//??\n\t\tif( a[i]%2!=0 )//??\n\t\t{\n\t\t\tb[k]=a[i];//???????\n\t\t\tk++;\n\t\t}\n\t}\n\tfor( int i=0; ib[j+1] )//??\n\t\t\t{\n\t\t\t\tint h=b[j+1];\n\t\t\t\tb[j+1]=b[j];\n\t\t\t\tb[j]=h;\n\t\t\t}\n\t\t}\n\t}\n\tfor( int i=0; ib[p+1]){\ne=b[p];\nb[p]=b[p+1];\nb[p+1]=e;}}}\nfor(i=1;i=0;k--){\n\t\t\tif(z[k-1]%2!=0){printf(\"%d,\",z[k]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tprintf(\"%d\",z[k]);\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t}\n\t\t\treturn 0;\n\t\n}\n\t\t\t\n\t\t\t\n\t"} +{"label": "94", "index": "46911", "code": "int main(){\n int n,zhan,k=0,i=0,j=0;\n scanf(\"%d\",&n);\n int s[n];\n while(i=0){\n printf(\",%d\",s[i]);\n i=i-1;\n }\n return 0;\n}"} +{"label": "94", "index": "46912", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n int sz[n];\n for(int i=0;ijs[i+1]){\n e=js[i];\n js[i]=js[i+1];\n js[i+1]=e;\n }\n }\n }\n printf(\"%d\",js[0]);\n for(i=1;ia[j+1])\n\t\t\t{ tt=a[j];\n\t a[j]=a[j+1]; \n\t\t\t a[j+1]=tt;\n\t\t\t \n\t\t\t } \n\tprintf(\"%d\",a[1]); for (i=2;i<=s;i++) printf(\",%d\",a[i]); \n\t\n return 0;\n}"} +{"label": "94", "index": "46914", "code": "int main()\n{\n\tint a[501] = { 0 };\n\tint i , n , j , flag , max;\n\tcin >> n;\n\tmax = 0;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> j;\n\t\tif (j > max) \n\t\t\tmax = j;\n\t\tif (j % 2 == 1)\n\t\t\ta[j] ++;\n\t}\n\tflag = 1;\n\tfor (i = 1; i <= max; i += 2)\n\t\tif (a[i] != 0)\n\t\t\tif (flag == 1)\n\t\t\t{\n\t\t\t\tflag = 0;\n\t\t\t\tcout << i;\n\t\t\t}\n\t\t\telse\n\t\t\tcout << \",\" << i;\n\tcout << endl;\n\t\n\treturn 0;\n}"} +{"label": "94", "index": "46915", "code": "/*\nName:???\nID:1200012842\nEmail:443972553@qq.com\n*/\nvoid swap(int *data,int a,int b)\n{\n int t=data[a];\n data[a]=data[b];\n data[b]=t;\n }\nint main()\n{\n int n;\n cin>>n;\n int data[501];\n for (int i=0;i>data[i];\n for (int i=n-1;i>=0;i--)\n for (int j=0;jdata[j+1])\n swap(data,j,j+1);\n int count=0;\n for (int i=0;ib[q])\n\t\t\t{\n\t\t\t\th=b[p];\n\t\t \tb[p]=b[q];\n\t\t\t\tb[q]=h;\n\t\t\t}\n\t\t\telse \n\t\t\t\tcontinue;\n\t\t}\n\t}\n\tfor(l=0;lz[j+1]){\n z[j]=b;\n z[j+1]=a;\n }\n}\n}\n for(int j=0;j>N;\n\tfor (i = 0; i < N; i ++)\n\t{\n\t\tcin>>a[i];\n\t}\n\tint b[500], j, k = 1;\n\tfor (j = 0; j < N; j ++)\n\t{\n\t\tif (a[j] % 2 != 0)\n\t\t{\n\t\t\tb[k] = a[j];\n\t\t\tk ++;\n\t\t}\n\t}\n\tint c, d, e;\n\tfor (c = 1; c < k; c ++)\n\t{\n\t\tfor (d = 1; d < k - c; d ++)\n\t\t{\n\t\t\tif (b[d] > b[d+1])\n\t\t\t{\n\t\t\t\te = b[d]; b[d] = b[d+1]; b[d+1] = e;\n\t\t\t}\n\t\t}\n\t}\n\tint t;\n\tfor (t = 1; t < k - 1; t ++)\n\t{\n\t\tcout<a[i+1]){\n e=a[i+1];\n a[i+1]=a[i];\n a[i]=e;\n }\n }\n }\n for(i=0;isz[i+1]){\n\t\te=sz[i];\n\t\t\t\n\t\tsz[i]=sz[i+1];\n\t\tsz[i+1]=e;}}\n\t}\n\t\n\t\t\n\t\tfor(i=0;i a[i+1]){\n\t\t\t\t\te = a[i+1];\n\t\t\t\t\ta[i+1] = a[i];\n\t\t\t\t\ta[i] = e;\n\t\t\t}\n\t}\n}\n\n\tfor(i=0;i<=n-1;i++){\n\t\tif(a[i]%2!=0)\n\t\t\tm=i;}\n\t\tfor(i=0;i<=n-1;i++){\n\t\t\tif((a[i]%2!=0)&&(i>n;\n\tfor(int i=0;i>a[i];\n\t}\n\tfor(int i=0;ia[j])\n\t\t\t{\n\t\t\t\tb=a[i];a[i]=a[j];a[j]=b;\n\t\t\t}\n\t\t}\n\t}\n for(int i=n-1;i>=0;i--)\n {\n if(a[i]%2!=0){c=i;break;}\n }\n\tfor(int i=0;isz[i+1]){\n a=sz[i+1];\n sz[i+1]=sz[i];\n sz[i]=a;\n }\n }\n }\n for(int i=n-1;i>=0;i--){\n if(sz[i]%2!=0){\n b=i;\n break;\n }\n }\n for(int i=0;i js[x+1]){\n\t\t\te = js[x+1];\n\t\t\tjs[x+1] = js[x];\n\t\t\tjs[x] = e;\n\t\t }\n\t }\n }\nfor(m=0;msz[i+1]){\n\t\t\t\t\te=sz[i+1];\n\t\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\t\tsz[i]=e;\n\t\t\t}\n\t}\n}\n for(i=0;i> n ; //??????\n\tfor( int i = 0 ; i < n ; i++ )\n\t{\n\t\tcin >> x ; //?????\n\t\tif ( x % 2 == 1 ) //?????\n\t\t{\n\t\t\ta[k] = x ; //????\n\t\t\tk++ ;\n\t\t}\n\t}\n\tfor ( int j1 = 0 ; j1 < k-2 ; j1 ++ )\n\t{\n\t\tfor( int j = 0 ; j < k-1-j1 ; j ++ )\n\t\t{\n\t\t\tif ( a[j] > a[j+1])\n\t\t\t{\n\t\t\t\ttemp = a[j+1] ;\n\t\t\t\ta[j+1] = a[j] ;\n\t\t\t\ta[j] = temp ; //?????????\n\t\t\t}\n\t\t}\n\t}\n\tfor( int i1 = 0 ; i1 < k ; i1++ )\n\t{\n\t\tif ( judge == 1 )\n\t\t{\n\t\t\tcout << \",\" << a[i1] ; //??????\n\t\t}\n\t\tif ( judge == 0 )\n\t\t{\n\t\t\tcout << a[0] ;\n\t\t\tjudge = 1 ; //??a[0]????\n\t\t}\n\t}\n\tcout << endl ;\n\treturn 0 ; //??\n}\n"} +{"label": "94", "index": "46928", "code": "int main(){ //???\n\tint n;\n\tcin>>n;\n\tint a[n]; //??????\n\tfor(int i=0;i>a[i];\n\tfor(int i=0;ia[j+1]){\n\t\t\t\tint t=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=t;\n\t\t\t}\n\tfor(int i=0;isz[i+1]){\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tfor(int b=0;b<=n;b++ ){\n\t\tif(sz[b]%2!=0){\n\t\t\t\n\t\t\tif(flag==1)\n\t\t\t\tprintf(\",%d\",sz[b]);\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"%d\",sz[b]);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46931", "code": "int main()\n{\n\t\n\tint n,i,j,k,a[500],sum=0,b[500];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&a[i-1]);\n\t\tif ((a[i-1]%2)!=0)\n\t\t\t{\n\t\t\t\tsum+=1;\n\t\t\t\tb[sum-1]=a[i-1];\n\t\t}\n\t}\n\tfor(j=1;jb[i])\n\t\t\t\t{\n\t\t\t\t\tk=b[i-1];\n\t\t\t\t\tb[i-1]=b[i];\n\t\t\t\t\tb[i]=k;\n\t\t\t}}\n\t}\n\n\tfor(i=1;i<=sum;i++)\n\t\t{\n\t\t\tprintf(\"%d\",b[i-1]);\n\t\t\tif(i==sum) break;\n\t\t\tprintf(\",\");\n\t}\n\t\treturn 0;\n}"} +{"label": "94", "index": "46932", "code": "int main()\n{\n\tint n,a[501],i,b[501]={'0'},j=0,t,k;\n\tcin>>n;\n\tfor(i=0;i>a[i];\n\t}\n\tfor(i=0;ib[j+1])\n\t\t\t{\n\t\t\t\tt=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tcout<o[i+1])\n {\n b=o[i+1];\n o[i+1]=o[i];\n o[i]=b;\n }\n }\n}\nfor(i=0;i<=m-1;i++)\n{\nif(i!=m-1) printf(\"%d,\",o[i]);\nelse if(i=m-1) printf(\"%d\",o[m-1]);}\nreturn 0;\n}\n\n"} +{"label": "94", "index": "46934", "code": "int main() {\n\tint N;\n\tscanf(\"%d\", &N);\n\tint number[NUMBER];\n\tint odds[NUMBER];\n\tint i=0;\n\tint j=0;\n\tint k;\n\tint r;\n\twhile(i0;k--){\n\t\tfor(r=0;rodds[r+1]){\n\t\t\t\tint tmp;\n\t\t\t\ttmp=odds[r+1];\n\t\t\t\todds[r+1]=odds[r];\n\t\t\t\todds[r]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\ti=0;\n\twhile(i> n;\n\tint\ta[n + 1];\n\tmemset(a, 0, sizeof(a));\n\tfor (i = 1; i <= n; i ++)\n\t{\n\t\tcin >> a[i];\n\t}\n\tfor (i = 1; i <= n; i ++)\n\t{\n\t\tif (a[i] % 2 == 0)\n\t\t{continue;}\t\t\n\t\tfor (j = i; j <= n; j ++)\n\t\t{\n\t\t\t\n\t\t\tif (a[j] % 2 ==0)\n\t\t\t{continue;}\n\t\t\tif (a[i] > a[j])\n\t\t\t{\n\t\t\t\ts = a[i];\n\t\t\t\ta[i] = a[j];\n\t\t\t\ta[j] = s;\n\t\t\t}\t\t\t\t\t\n\t\t}\n\t\tif (p != 0)\n\t\t{cout << \",\";}\n\t\tcout << a[i];\n\t\tp ++;\n\t}\nreturn 0;\n}"} +{"label": "94", "index": "46936", "code": "/*\n *???: 1.cpp\n *??????\n *????: 2012-11-05\n *??: ???????N????500???????????????????????????\n */\n\n\nint main ()\n{\n int N = 0, num = 0, counter = 0, temp = 0;\n cin >> N;\n int a[N+1];\n for (int i = 1; i <= N; i++)\n {\n cin >> num;\n if (num % 2 != 0)\n {\n counter++;\n a[counter] = num;\n }//?????????\n }\n for (int i = 1; i <= counter; i++)\n for (int j = 1; j <= counter - i; j++)\n {\n if (a[j] > a[j+1])\n {\n temp = a[j+1];\n a[j+1] = a[j];\n a[j] = temp;\n }//????\n }\n for (int i = 1; i <= counter; i++)\n {\n if (i == 1)\n cout << a[i];//????????????\n else\n cout << \",\" << a[i];\n }//????\n return 0;\n}"} +{"label": "94", "index": "46937", "code": "int main()\n{\n int n,c,i,j,k=0,temp,m=0;\n int a[2000],b[2000];\n scanf(\"%d\",&n);\n for(i=0;i=1;j--)\n {\n for(c=0;cb[c+1])\n { temp=b[c+1];\n b[c+1]=b[c];\n b[c]=temp;}\n } \n printf(\"%d\",b[0]);\n for(i=1;i0;c--)\n { for(d=0;db[d+1])\n {i=b[d+1];\n b[d+1]=b[d];\n b[d]=i;}\n }\n}\nprintf(\"%d\",b[0]);\nfor(d=1;d> n;\n for ( i = 1; i <= n; i++ )\n {\n cin >> a;\n if ( a % 2 == 1 )\n {\n m = m + 1;\n num[m] = a;\n }\n }\n for ( i = 1; i < m; i++ )\n for ( j = i + 1; j <= m; j++ )\n if ( num[i] > num[j] )\n {\n temp = num[i];\n num[i] = num[j];\n num[j] = temp;\n }\n cout << num[1];\n for ( i = 2; i <= m; i++ )\n cout << \",\" << num[i];\n return 0;\n} \n"} +{"label": "94", "index": "46940", "code": "//============================================================================\n// Name : 1.cpp\n// Author : \n// Version :\n// Copyright : Your copyright notice\n// Description : Hello World in C++, Ansi-style\n//============================================================================\n\n\nint main() {\n\tint n;\n\tcin>>n;\n\tint a[n]; \n\tfor(int i=0;i>a[i];\n\tint b[n];\n\tint m=0;\n\tfor(int i=0;i>N;\n\tfor(i=0;i>a[i];\n if(a[i]%2==1)//??\n\t\t{\n\t\t\tb[j++]=a[i];\n\t\t}\n\t}\n\tfor(m=0;mb[k+1])\n\t\t\t{\n\t\t\t\tt=b[k];\n\t\t\t\tb[k]=b[k+1];\n\t\t\t\tb[k+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\t\t\tfor(l=0;l> N;\n\tfor ( i = 0 ; i <= N - 1 ; i++ )\n\t{\n\t\tcin >> num;\n\t\tif ( num % 2 == 1 )\n\t\t{\n\t\t\ta[m] = num;\n\t\t\tm++;\n\t\t}\n\t}\n\tfor ( j = 0 ; j <= m - 1 ; j++ )\n\t{\n\t\tfor ( k = j + 1 ; k <= m - 1 ; k++ )\n\t\t{\n\t\t\tif ( a[j] > a[k] )\n\t\t\t{\n\t\t\t\tt = a[j]; a[j] = a[k] ; a[k] = t;\n\t\t\t}\n\t\t\telse continue;\n\t\t}\n\t}\n\tcout << a[0];\n\tfor ( l = 1 ; l <= m - 1 ; l++)\n\t{\n\t\tcout << \",\" << a[l];\n\t}\n\treturn 0;\n}\n\n\t\t\n\n\n"} +{"label": "94", "index": "46945", "code": "int main()\n{\n\tint m,n,i,a[1000],t,count=0;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&t);\n\t\tif(t%2==1)\n\t\t{\n\t\t\ta[count]=t;\n\t\t\tcount++;\n\t\t}\n\t}\n\tm=count;\n\twhile(count>=2)\n\t{\n\t\tfor(i=1;i<=count-1;i++)\n\t\t{\n\t\t\tif(a[i-1]>a[i])\n\t\t\t{\n\t\t\t\tt=a[i-1];\n\t\t\t\ta[i-1]=a[i];\n\t\t\t\ta[i]=t;\n\t\t\t}\n\t\t}\n\t\tcount--;\n\t}\n\tprintf(\"%d\",a[0]);\n\tfor(i=1;i<=m-1;i++)\n\t{\n\t\tprintf(\",%d\",a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46946", "code": "int main(){\n int N=0;\n scanf(\"%d\",&N);\n int i=0;\n int zhengzhengshu[501]={0};\n for(i=0;ijishu[m]){\n temp=jishu[q];\n jishu[q]=jishu[m];\n jishu[m]=temp;\n }\n }\n }\n for(int b=0;b> n;\n\tfor ( i = 0; i < n; i ++ )\n\t{\n\t\tcin >> l;\n\t\ta [ i ] = l;\n\t\tif ( a [ i ] % 2 != 0 )\n\t\t{\n\t\t\tb [ j ] = a [ i ];\n\t\t\tj ++;\n\t\t}\n\t}\n\tfor ( p = 0; p < j - 1; p ++ )\n\tfor ( k = 0; k < j - 1 - p; k ++ )\n\t{\n\t\tif ( b [ k ] > b [ k + 1 ] )\n\t\t{\n\t\t\ttemp = b [ k ]; b [ k ] = b [ k + 1 ]; b [ k + 1 ] = temp; \n\t\t}\n\t}\n\tcout << b[0];\n\tfor ( p = 1; p < j; p ++ )\n\t{\n\t\tcout << \",\" << b[p];\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46948", "code": "//\n// main.cpp\n// 11.5homework\n// ??????\n// Created by ??? on 11/5/12.\n// Copyright (c) 2012 airjcy. All rights reserved.\n//\n\n\n\nvoid ySwap(int a[],int i,int j)\n{\n int t = a[i];\n a[i] = a[j];\n a[j] = t;\n}\n\nvoid yQsort(int a[],int left,int right)\n{\n if (left > right) {\n return;\n }\n int key = a[left];\n int i = left;\n int j = right;\n while (i < j) {\n while (i < j && a[j] >= key) {\n j --;\n }\n ySwap(a, i, j);\n while (i < j && a[i] <= key) {\n i ++;\n }\n ySwap(a, i, j);\n }\n yQsort(a, left, i - 1);\n yQsort(a, i + 1, right);\n}\n\n\nint main(int argc, const char * argv[])\n{\n\n int n = 0;\n cin >> n;\n int i = 0,t = 0;\n int a[n]; //???????\n int countOfUnevens = 0;\n for (i = 0; i < n; i ++) {\n cin >> t;\n if (t % 2 != 0) {\n a[countOfUnevens] = t;\n countOfUnevens ++;\n }\n }\n yQsort(a, 0, countOfUnevens - 1);\n for (i = 0; i < countOfUnevens - 1; i ++) {\n cout << a[i] << \",\";\n }\n cout << a[i];\n}\n"} +{"label": "94", "index": "46949", "code": "int main(){\nint N;\nint i=0;\nint sz[500];\nint js[500];\nscanf(\"%d\",&N);\nfor(int m=0;mjs[k+1]){\n e=js[k];\n js[k]=js[k+1];\n js[k+1]=e;\n }\n }\n}\nfor(int a=0;a>n;\nfor(i=0;i>a[i];\nfor(j=0;j=0;i--)\n\tcout<<\",\"<shushu[i+1]){ \n t=shushu[i+1]; \n shushu[i+1]=shushu[i];\n shushu[i]=t;\n } \n } \n }\n for(i=0;i st[i+1]){\n\t\t\t\t\te = st[i+1];\n\t\t\t\t\tst[i+1] = st[i];\n\t\t\t\t\tst[i] = e;\n\t\t\t}\n\t}\n}\nfor(int h=0;h0;m--)\n {\n for(t=0;tb[t+1])\n {\n b[t]=b[t+1];\n b[t+1]=tmp;\n }\n }\n }\n for(m=0;m0;i--)\n\t{\n\t\tfor(j=0;ja[j+1])\n\t\t\t{\n\t\t\t\ttemp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n for (int i=0; i>num;\n if (num%2) {\n odd[c]=num;\n c++;\n }\n }\n qsort(odd, c, sizeof(int), cmp);\n cout<m[p+1])\n\t\t\t{\n\t\t\t\te=m[p+1];\n\t\t\t\tm[p+1]=m[p];\n\t\t\t\tm[p]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=k;i++)\n\t{\t\t\n\t\tif(i==1)\n\t\t{\n\t\t\tprintf(\"%d\",m[i-1]);\n\t\t}else\n\t\t{\n\t\t\tprintf(\",%d\",m[i-1]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "94", "index": "46958", "code": "int main()\n{\n\tint a[500]={0},b,i,j,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[i+1])\n\t\t\t{\n\t\t\t\tb=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=b;\n\t\t\t}\n\t\t}\n\t}\n \n\tfor(i=0;ib[i+1])\n\t\t\t{\n\t\t\t\tterm=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=term;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",b[n-oddnum]);\n\tfor(k=n-oddnum+1;kb[i+1])\n\t\t\t{\n\t\t\t\tt=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=t;\n\t\t\t}\n printf(\"%d\",b[1]);\n for(j=2;jan[a+1]){\ne=an[a+1];\nan[a+1]=an[a];\nan[a]=e;\n}\n}\n}\nfor(b=0;b odd[q+1] ){\n\t\t\t\tt = odd[q];\n\t\t\t\todd[q] = odd[q+1];\n\t\t\t\todd[q+1] = t;\n\t\t\t}\n\t\t}\n\t}\n//arrange the numbers from small to large\n\tfor(int m = 0; m < k; m++){\n\t\tif(m == k-1){\n\t\t\tprintf(\"%d\", odd[m]);\n\t\t}else{\n\t\t\tprintf(\"%d,\", odd[m]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "94", "index": "46963", "code": "/*\n * 1.cpp\n *\n * Created on: 2010-12-24\n * Author: 10265\n */\nint main()\n{\n\tint n;\n\tint xulie[501],jishu[501];\n\tint i,j,k=0;\n\tcin>>n;\n for(i=0;i>xulie[i];\n\tif(xulie[i]%2==1){\n\tjishu[k]=xulie[i];\n\tk++;\n\t}\n }\n\tfor(i=0;ijishu[j+1]){\n\t\t\t\tint temp=jishu[j];\n\t\t\t\tjishu[j]=jishu[j+1];\n\t\t\t\tjishu[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;isz[i+1]){m=sz[i+1];\nsz[i+1]=sz[i];\nsz[i]=m;}}}\ni=1;\t\n\tfor(i=0;iodd[i+1])\n {\n\t\t\te=odd[i];\n\t\t\todd[i]=odd[i+1];\n\t\t\todd[i+1]=e;\n\t\t }\n\t }\n\t}\n\tfor(int i=0;i> a[k];\n \n\t\n\tint i,j,temp;\n for(i=0 ; i a[j+ 1])\t\t\t\t\t\t\t//????a[j],a[j+1]???????????\n\t\t\t { \n\t\t\t\t temp = a[j] ; \n\t\t\t a[j] = a[j+1];\n\t\t\t\t a[j+1] = temp;\n\t\t\t }\n }\n\tint t=0;\t \n\tfor(i=0 ; ib[i+1]){\ntemp=b[i];\nb[i]=b[i+1];\nb[i+1]=temp;\n}\n}\n} \n\tprintf(\"%d\",b[0]);\n\tfor(j=1;jsz[i+1]){\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tint a=0;\n\tint j[500];\n\tint b=0;\n\tfor(b=0;bjishu[j+1]){\n\t\t\t\tint e;\n\t\t\t\te=jishu[j+1];\n\t\t\t\tjishu[j+1]=jishu[j];\n\t\t\t\tjishu[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j0){\n\n\t\t if (q[j]sz[i+1])\n\t\t\t{\n\t\t\t\te=sz[i+1];\n\t\t\t\tsz[i+1]=sz[i];\n\t\t\t\tsz[i]=e;\n\t\t\t}\n\t\t}\n\t}\n int flag = 0;\n\tfor(int i=0;i>N;\n\tfor(i=0;i>a[i];\n\t\tif(a[i]%2!=0)\n\t\tb[j++]=a[i];\n\t}\n\tfor(i=1;i<=j-1;i++){ //????????\n\t\tfor(k=0;kb[k+1]) \n\t\t\t{\n\t\t\t\tt=b[k];\n\t\t\t\tb[k]=b[k+1];\n\t\t\t\tb[k+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tcout<b[r+1]){\n e=b[r+1];\n b[r+1]=b[r];\n b[r]=e;\n }\n r++;\n }\n s++;\n }\n int u=0;\n while(u0; j--) {\n for (r=0; rodd[r+1]) {\n int tmp;\n tmp=odd[r+1];\n odd[r+1]=odd[r];\n odd[r]=tmp;\n }\n }\n }\n int e;\n for (e=0; es[max]){\n\t\t\tmax=i;\n\t\t\t}\n\t\t}\n\t\tif(max!=k-f){\n\t\te=s[max];\n\t\ts[max]=s[k-f];\n\t\ts[k-f]=e;\n\t\t}\n\t}\n\tprintf(\"%d\",s[0]);\n\tfor(i=1;i<=k-1;i++){\n\t\tprintf(\",%d\",s[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "94", "index": "46978", "code": "int main()\n{\n int N,i,t,p,q,sz[500],js[500];\n t=-1;\n scanf(\"%d\\n\",&N);\n for(i=0;ijs[p+1]){\n int e=js[p];\n js[p]=js[p+1];\n js[p+1]=e;\n }\n }\n }\n for(p=0;p<=t;p++){\n if(p=0){\n\t\tif (i>0){\n\t\t\tprintf(\"%d,\",b[i]);\n\t\t}else {\n\t\t\tprintf(\"%d\",b[i]);\n\t\t}\n\t\ti--;\n\t}\n\n\nreturn 0;\n}"} +{"label": "94", "index": "46980", "code": "int main(){\n int n,a=0,b=0,e;\n scanf(\"%d\",&n); \n int sz[n-1];\n for(int i=0;ijsz[j]){\n e=jsz[i];\n jsz[i]=jsz[j];\n jsz[j]=e;\n }\n }\n }\n for(int i=0;isz[m+1])\n\t\t\t{\n\t\t\t\tt=sz[m+1];\n\t\t\t\tsz[m+1]=sz[m];\n\t\t\t\tsz[m]=t;\n\t\t\t}\n\t}\n\tfor(i=1;i>n;\n for(int i=0;i>num[i];\n }\n for(int i=0;ii;j--){\n \t\tif(num[j-1]>num[j]){\n \t\t\tint tmp = num[j-1];\n \t\t\tnum[j-1] = num[j];\n \t\t\tnum[j] = tmp;\n \t\t}\n \t}\n }\n int cnt = 0;\n for(int i=0;ib[i+1]){\n\t\tc=b[i];\n\t\tb[i]=b[i+1];\n\t\tb[i+1]=c;\n\n\n\t\t}\n\t}\n\tk++;\n}\nfor(i=0;i> n;\n\t/*\n\t * ??a[n],??????????b[n]\n\t *\n\t */\n\tint a[n];\n\tfor (int i = 0; i < n; i++)\n\t\tcin >> a[i];\n\tint b[n], m = 0;\n\tfor (int j = 0; j < n; j++) {\n\t\tif (a[j] % 2 != 0) {\n\t\t\tb[m] = a[j];\n\t\t\tm++;\n\t\t}\n\t}\n\t/*\n\t * ??????b???m?????\n\t */\n\tint temp,k;\n\tfor(int p=0;pb[k+1]){\n\t\t\t\ttemp=b[k];\n\t\t\t\tb[k]=b[k+1];\n\t\t\t\tb[k+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\t/*\n\t * ??b???m?\n\t */\n\tfor (int q = 0; q < m; q++) {\n\t\tif (q == 0)\n\t\t\tcout << b[q];\n\t\telse\n\t\t\tcout << \",\" << b[q];\n\t}\n}\n\n"} +{"label": "94", "index": "46985", "code": "int main ()\n{\n\tint n,i,j,k,l,a,c;\n\ta=0;\n\tint sz[500];\n\tint sc[500];\n\tscanf (\"%d\",&n);\n\tfor (i=0;il+1;k--)\n\t\t{\n\t\t\tif (sc[k-1]>sc[k])\n\t\t\t{\n\t\t\t\tc=sc[k-1];\n\t\t\t\tsc[k-1]=sc[k];\n\t\t\t\tsc[k]=c;\n\t\t\t}\n\t\t}\n\t}\n\tfor (l=0;linput[p+1]){\n\t\t\t\tex=input[p];\n\t\t\t\tinput[p]=input[p+1];\n\t\t\t\tinput[p+1]=ex;}}}\n\tprintf(\"%d\",input[0]);\n\tfor(i=1;i> n; //??n\n\tint a[n], b[n]; //????????\n\tfor (i = 0; i < n; i++) {\n\t\tcin >> a[i];\n\t} //??????????\n\tfor (i = 0; i < n; i++) {\n\t\tif (a[i] % 2 != 0) {\n\t\t\tb[j] = a[i];\n\t\t\tj++;\n\t\t} else\n\t\t\tcontinue;\n\t} //???????????????\n\tfor (i = 0; i < j - 1; i++) {\n\t\tfor (m = 0; m < j - i-1; m++)\n\t\t\tif (b[m] > b[m + 1]) {\n\t\t\t\ttemp = b[m ];\n\t\t\t\tb[m] = b[m+1];\n\t\t\t\tb[m + 1] = temp;\n\t\t\t}\n\t} //???????????\n\tfor (m = 0; m < j; m++) {\n\t\tif (m < j - 1)\n\t\t\tcout << b[m] << \",\";\n\t\telse\n\t\t\tcout << b[m]; //???????\n\t}\n\n}\n"} +{"label": "94", "index": "46988", "code": "int main(){\n\tint n,i,a,m=0,k,max;\n\tint s[500];\n\tint r[500]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=r[max]) max=i;\n\t\t}\n\t\tif(max!=n-k){\n\t\t\ta=r[max];\n\t\t\tr[max]=r[n-k];\n\t\t\tr[n-k]=a;\n\t\t}\n\t}\n\t\n\tfor(i=0;i>n;\n for(i=0;i>num;\n if(num%2==1)\n {a[j]=num;\n j++;} //????????????? ?j??????? \n } \n for(i=0;ia[k+1])\n {num=a[k+1];\n a[k+1]=a[k];\n a[k]=num;} //????? \n for(i=0;inum[j+1])\n\t\t\t{\n\t\t\t\tnumber=num[j+1];\n\t\t\t\tnum[j+1]=num[j];\n\t\t\t\tnum[j]=number;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i> n ;\n int number[500] ; //?????? \n \n for ( int i = 1 ; i <= n ; i++ ) //??\n cin >> number[i-1] ;\n \n for ( int i = 1 ; i <= n - 1 ; i++ ) //?????\n for ( int j = 1 ; j <= n - i ; j++ )\n {\n int change = 0 ;\n if ( number[j-1] > number[j] )\n {\n change = number[j-1] ;\n number[j-1] = number[j] ;\n number[j] = change ;\n }\n }\n\n int sum = 0 ; //???????????????????\n for ( int i = 1 ; i <= n ; i++ )\n if ( number[i-1] % 2 == 1 )\n sum++ ;\n \n int rank = 0; //?????????????? \n for ( int i = 1 ; i <= n ; i++ ) //?? \n if ( number[i-1] % 2 == 1 )\n {\n rank++ ; //rank = ?????????? \n if ( rank == sum ) //??????? \n {\n cout << number[i-1] ; //???? \n break ; //????????? \n }\n else //?????????? \n cout << number[i-1] << \",\" ;\n }\n return 0 ; \n}\n// ( > w < ) finished~"} +{"label": "94", "index": "46992", "code": "int main()\n{\n\tint n,i,k=0,j=0,temp;\n\tint a[500]={0};\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;ia[j+1])\n\t\t\t{\n\t\t\t\ttemp=a[j+1];\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\ta[j]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tj=0;\n\tfor(i=0;isz[i+1]){\n\t\t\t s=sz[i+1];\n\t\t\t sz[i+1]=sz[i];\n\t\t\t sz[i]=s;\n\t\t }\n\t }\n\t }\n for(c=0;c>n;\nint a[n];\nfor(i=0;i>a[i];\n}\nfor(i=0;ia[j]) \n{n=a[i];\na[i]=a[j];\na[j]=n;\n}\n}\n}\nfor(i=0;i>N;//??N\n\tfor(i=1;i<=500;i++)//???ab??????-1\n\t{\n\t\ta[i]=-1;\n\t\tb[i]=-1;\n\t}\n\tfor(i=1;i<=N;i++)//???????a?\n\t{\n\t\tcin>>a[i];\n\t}\n\tfor(i=1;i<=N-1;i++)//???a??????????\n\t{\n\t\tfor(j=1;j<=N-i;j++)\n\t\t{\n\t\t\tif(a[j]>a[j+1])\n\t\t\t{\n\t\t\t\tm=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=m;\n\t\t\t}\n\n\t\t}\n\t}\n\tfor(i=1;i<=499;i++)//???a?????????b?\n\t{\n\t\tif(a[i]%2!=0&&a[i]!=-1)\n\t\t{\n\t\t\tb[p]=a[i];\n\t\t\tp=p+1;\t\t\n\t\t}\n\t}\n\tfor(i=1;i<=499;i++)//????????b????\n\t{\n\t\tif(b[i]!=-1&&b[i+1]!=-1)\n\t\t{\n\t\t\tcout<x[c+1])\n\t\t\t{\n\t\t\t\td=x[c];\n\t\t\t\tx[c]=x[c+1];\n\t\t\t\tx[c+1]=d;\n\t\t\t}\n\t\t}\n\t}\n\tfor(a=0;a<=b-1;a++)\n\t{\n\t\tif (a<=b-2)\n\t\tprintf(\"%d,\",x[a]);\n\t\telse printf(\"%d\",x[a]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "94", "index": "46997", "code": "int main(){\n\tint n,i,j,k,v,t;\n\tint a[500];\n\tint b[500];\n\tscanf(\"%d\",&n);\n for(i=0;ib[k]){\n\t\t\t\tt=b[v];\n\t\t\t\tb[v]=b[k];\n\t\t\t\tb[k]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(v=0;va[i])\n\t\t\t{\n\t\t\t\tt=a[m];\n\t\t\t\ta[m]=a[i];\n\t\t\t\ta[i]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ib[i+1])\n{\nt=b[i];\nb[i]=b[i+1];\nb[i+1]=t;\n}\nfor(i=0;is2[n]&&s1[n]-s2[n]>32)||(s1[n]-32))\n{\n\tprintf(\">\");\n\tbreak;\n}\nif((s1[n]>s2[n]&&s1[n]-s2[n]<32)||(s1[n]='A'&&s<='Z')\n\t\ts=s-'A'+'a';\n\treturn s;\n}\n\nint main()\n{\n\tchar c[2][80];\n\tint i,j;\n\tfor(j=0;j<2;j++)\n\t\tgets(c[j]);\n\tfor(j=0;j<2;j++)\n\tfor(i=0;c[j][i]!='\\0';i++)\n\t{\n\t\tc[j][i]=change(c[j][i]);\n\t}\n\tif(strcmp(c[0],c[1])>0) printf(\">\");\n\telse if(strcmp(c[0],c[1])<0) printf(\"<\");\n\telse printf(\"=\");\n}"} +{"label": "95", "index": "47002", "code": "int main(int argc, char* argv[])\n{\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tint i,m=0;\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>=65&&a[i]<=90&&b[i]>=65&&b[i]<=90||a[i]>=97&&a[i]<=122&b[i]>=97&&b[i]<=122)\n\t\t{\n\t\t\tif(a[i]>b[i])\n\t\t\t{\n\t\t\t\tm=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(a[i]96&&b[i]<96)\n\t\t{\n\t\t\tif(a[i]-32b[i])\n\t\t\t{\n\t\t\t\tm=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(b[i]>96&&a[i]<96)\n\t\t{\n\t\t\tif(b[i]-32a[i])\n\t\t\t{\n\t\t\t\tm=2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(m==0)\n\t\tprintf(\"=\");\n\tif(m==1)\n\t\tprintf(\">\");\n\tif(m==2)\n\t\tprintf(\"<\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47003", "code": "\nint main()\n{\n\tint i,s;\n\tchar a[256],b[256];\n\tgets(a);\n\tgets(b);\n\tfor(i=0;i96)a[i]-=32;\n\tfor(i=0;i96)b[i]-=32;\n\ts=strcmp(a,b);\n\tif(s<0)cout<<'<';\n\tif(s>0)cout<<'>';\n\tif(s==0)cout<<'=';\n\treturn 0;\n}"} +{"label": "95", "index": "47004", "code": "void main()\n{\n int i,a,b;\n//==========??????????????===========\n// char ch1[10][80],ch2[10][80],max1[80],max2[80];\n// gets(ch1[0]); \n// for(i=0;i<80;i++)\n// { if(ch1[i]!='\\0')\n// gets(ch1[i]);\n// }\n// a=strlen(ch1);\n// gets(ch2[0]);\n// for(i=0;i<80;i++)\n// { if(ch2[i]!='\\0')\n// gets(ch2[i]);\n// }\n// b=strlen(ch2);\n// strcpy(max,ch[0]);\n//======================================================\n char ch1[80],ch2[80]; // ????????\n gets(ch1);\n a=strlen(ch1);\n gets(ch2);\n b=strlen(ch2);\n//====????????????????????????===\n for(i=0;i='A'&& ch1[i]<='Z') ch1[i]=(ch1[i]+32);\n for(i=0;i='A'&& ch2[i]<='Z') ch2[i]=(ch2[i]+32);\n if (strcmp(ch1,ch2)>0) printf(\"%c\",'>'); \n if (strcmp(ch1,ch2)<0) printf(\"%c\",'<');\n if (strcmp(ch1,ch2)==0) printf(\"%c\",'=');\t \n}"} +{"label": "95", "index": "47005", "code": "int main()\n{\n\tchar str1[80],str2[80],i;\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\tfor(i=0;i<80;i++){\n\t\tif(str1[i]>=97&&str1[i]<=122)\n\t\t\tstr1[i]-=32;\n\t\tif(str2[i]>=97&&str2[i]<=122)\n\t\t\tstr2[i]-=32;\n\t}\n\tif(strcmp(str1,str2)==0)\n\t\tcout<<\"=\"<\"<='A'&&a[i]<='Z') a[i]+=32;\n\t}\n\tfor(i=0;b[i]!='\\0';i++){\n\t\tif(b[i]>='A'&&b[i]<='Z') b[i]+=32;\n\t}\n\tint t;t=0;\n\tfor(i=0;a[i]!='\\0';i++){\n\t\tif(a[i]>b[i]){\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]=65&&a[i]<=90)a[i]+=32;\n\tfor(i=0;b[i]!=0;i++)\n\t\tif(b[i]>=65&&b[i]<=90)b[i]+=32;\n\ti=strcmp(a,b);\n\tif(i>0)printf(\">\");\n\telse if(i==0)printf(\"=\");\n\telse printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47008", "code": "void main()\n{\n\tchar str1[1000],str2[1000];\n\tint i,j,k;\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<1000;i++)\n\t{\n\t\t\tif(str1[i]>64&&str1[i]<91)/*????????*/\n\t\t\t{str1[i]=str1[i]+32;}\n\t\t\tif(str2[i]>64&&str2[i]<91)\n\t\t\t{str2[i]=str2[i]+32;}\n\t}\n for(i=0;i<1000;i++)\n\t{\n\tif(str1[i]=='\\0'&&str2[i]=='\\0')\n\t{printf(\"=\");break;}\n\tif(str1[i]>str2[i])\n\t{printf(\">\");break;}\n if(str1[i]=97&&s1[i]<=122)s1[i]=s1[i]-32;\n\t\tif(s2[i]>=97&&s2[i]<=122)s2[i]=s2[i]-32;\n\t\tif(s1[i]>s2[i]){printf(\">\\n\");break;}\n\t\telse if(s1[i]b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]=='\\0')\n\t\t{\n\t\t\tprintf(\"=\");\n\t\t\tbreak;\n\t\t}\n\t\t\t\n\t}\n\t\n\treturn 0;\n}"} +{"label": "95", "index": "47011", "code": "\n\nint cmp(char* a,char* b)\n{\n\tint ai=0,bi=0;\n\twhile(a[ai]!=0&&b[bi]!=0)\n\t{\n\t\tif(a[ai]>b[bi])\n\t\t\treturn 1;\n\t\tif(a[ai]='A'&&a[i]<='Z')\n\t\t\ta[i]+=('a'-'A');\n\t\ti++;\n\t}\n}\nint main()\n{\n\tchar a[1000];\n\tchar b[1000];\n\tcin.getline(a,900,'\\n');\n\tcin.getline(b,900,'\\n');\n\tstrlw(a);\n\tstrlw(b);\n\tswitch(cmp(a,b))\n\t{\n\tcase 0:\n\t\tcout<<'='<'<=97&&p[i]<=122)\np[i]=p[i]-32;}\nfor(int k=0;k=97&&q[k]<=122)\nq[k]=q[k]-32;}\nint t;\nt=strcmp(p,q);\nif(t==0)\nprintf(\"=\");\nelse if(t>0)\nprintf(\">\");\nelse\nprintf(\"<\");\nreturn 0;\n}"} +{"label": "95", "index": "47013", "code": "int main()\n{\n\tint i, j, k;\n\tchar a[81], b[81];\ngets(a);\ngets(b);\nfor(i=0;a[i];i++)\n{\n\tif(a[i]>='A'&&a[i]<='Z')\n\t{\n\t\ta[i]=a[i]-'A'+'a';\n\t}\n}\nfor(i=0;b[i];i++)\n{\n\n\tif(b[i]>='A'&&b[i]<='Z')\n\t{\n\t\tb[i]=b[i]-'A'+'a';\n\t}\n}\n\nk=strcmp(a,b);\nif(k>0)\n{\n\tprintf(\">\");\n}\nelse if(k<0)\n{\n\n\tprintf(\"<\");\n}\nelse\n{\n\tprintf(\"=\");\n\n}\nreturn 0;\n}\n"} +{"label": "95", "index": "47014", "code": "int main()\n{\n\tint i,n,m;\n\tchar c[100],d[100];\n\tgets(c);\n\tgets(d);\n\tm=strlen(c);\n\tn=strlen(d);\n\tfor(i=0;i='A')&&(c[i]<='Z'))\n\t\t{\n\t\t\tc[i]=c[i]+32;\n\t\t}\n\t}\n\tfor(i=0;i='A')&&(d[i]<='Z'))\n\t\t{\n\t\t\td[i]=d[i]+32;\n\t\t}\n\t}\n\tif(strcmp(c,d)>0) printf(\">\");\n\telse if(strcmp(c,d)<0) printf(\"<\");\n\telse printf(\"=\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47015", "code": "int main()\n{\n char str1[80],str2[80];\n int i;\n cin.getline(str1,80);\n cin.getline(str2,80);\n for(i=0;str1[i]!='\\0';i++)\n\t {\n\t if(str1[i]>='a'&&str1[i]<='z')\n \t\t str1[i]=str1[i]-32;\n\t }\n for (i=0;str2[i]!='\\0';i++)\n\t{ if(str2[i]>='a'&&str2[i]<='z')\n str2[i]=str2[i]-32;\n\t}\n\tif(strcmp(str1,str2) == 0)\n\t\tcout<<'=';\n\telse if(strcmp(str1,str2) > 0)\n\tcout<<'>';\n\telse if(strcmp(str1,str2) < 0)\n\tcout<<'<';\n\treturn 0;\n\n}"} +{"label": "95", "index": "47016", "code": "int main()\n{ int i;\n\tchar str1[80],str2[80];//??????\n\tcin.getline(str1,80);//?????1\n\tcin.getline(str2,80);//?????2\n\t\tfor(i=0;i='A'&&str1[i]<='Z')\n\t\t\tstr1[i]+=32;\n\t\t\telse continue;\n\t}\n\t\tfor(i=0;i='A'&&str2[i]<='Z')\n\t\t\t\tstr2[i]+=32;\n\t\t\t\telse continue;\n}\n\tif(strcmp(str1,str2)>0)\n\t\tcout<<\">\"<='A')&&(a[i]<='Z'))\n\t\t\ta[i]=a[i]-'A'+'a';\n\t\tif((b[i]>='A')&&(b[i]<='Z'))\n\t\t\tb[i]=b[i]-'A'+'a';\n\t}\n\ti=0;\n\twhile((a[i]==b[i])&&(a[i]!='\\0'))\n\t\ti++;\n\tif((a[i]=='\\0')&&(b[i]=='\\0'))\n printf(\"=\\n\");\n\telse if(a[i]>b[i]) printf(\">\\n\");\n\t\telse printf(\"<\\n\");\n}\n"} +{"label": "95", "index": "47018", "code": "\nint main()\n{\n\tvoid largen(char s[]);\n\tint flag;\n\tchar s1[80],s2[80];\n\tgets(s1);\n\tgets(s2);\n\tlargen(s1);\n\tlargen(s2);\n\tflag=strcmp(s1,s2);\n\tif(flag>0)\n\t\tprintf(\">\\n\");\n\telse if(flag<0)\n\t\tprintf(\"<\\n\");\n\telse printf(\"=\\n\");\n\treturn 0;\n}\n\nvoid largen(char s[])\n{\n\tint i;\n\tfor(i=0;;i++){\n\t\tif(s[i]>='a'&&s[i]<='z')\n\t\t\ts[i]-=32;\n\t\telse if(s[i]=='\\0')\n\t\t\tbreak;\n\t}\n}"} +{"label": "95", "index": "47019", "code": "int main()\n{\n\tchar s1[100],s2[100];\n\tint n,f;\n\tint i,j;\n\tint len1,len2;\n\tgets(s1);\n\tgets(s2);\n\tf=0;\n\tlen1=strlen(s1); len2=strlen(s2);\n for (i=0; i='a')&&(s1[i]<='z')) s1[i]-=32;\n\t\tif ((s2[i]>='a')&&(s2[i]<='z')) s2[i]-=32;\n\t\tif (s1[i]s2[i]) { f=1; break; }\n\t}\n\tif (f==0) printf(\"=\");\n\tif (f==-1) printf(\"<\");\n\tif (f==1) printf(\">\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47020", "code": "int main()\n{\n int i;\n char a[80],b[80];\n cin.getline(a,80);\n cin.getline(b,80);\n for(i=0;a[i]!='\\0';i++)//??????????\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]-32;\n if(a[i]>='A'&&a[i]<='Z')\n continue;\n }\n for(i=0;b[i]!='\\0';i++)//??????????\n {\n if(b[i]>='a'&&b[i]<='z')\n b[i]=b[i]-32;\n if(b[i]>='A'&&b[i]<='Z')\n continue;\n }\n if(strcmp(a,b)<0)\n {cout<<\"<\";}\n if(strcmp(a,b)>0)\n {cout<<\">\";}\n if(strcmp(a,b)==0)\n {cout<<\"=\";}\n return 0;\n}\n"} +{"label": "95", "index": "47021", "code": "int main()\n{\n char c1[82],c2[82];\n int i,l1,l2,t;\n gets(c1);\n gets(c2);\n l1 = strlen (c1);\n l2 = strlen (c2);\n for (i = 0;i < l1;i++)\n if (c1[i] <= 'Z')\n c1[i] += 32;\n for (i = 0;i < l2;i++)\n if (c2[i] <= 'Z')\n c2[i] += 32;\n t = strcmp(c1,c2);\n if (t == 0)\n printf(\"=\\n\");\n else if (t > 0)\n printf(\">\\n\");\n else if (t < 0)\n printf(\"<\\n\");\n return 0;\n}"} +{"label": "95", "index": "47022", "code": "int main()\n{\n char a[80],b[80],i,j,k;\n gets(a);\n gets(b);\n j=strlen(a);\n k=strlen(b);\n for (i=0;i0)\n printf(\">\");\n if (strcmp(a,b)<0)\n printf(\"<\");\n if (strcmp(a,b)==0)\n printf(\"=\");\n return 0;\n}\n"} +{"label": "95", "index": "47023", "code": "void main()\n{\n\tint i,j;\n\tchar s[2][81];\n\tgets(s[0]);\n\tgets(s[1]);\n\tfor(i=0;i<=1;i++)\n\t\tfor(j=0;j<=strlen(s[i])-1;j++)\n\t\t\tif(s[i][j]>='a'&&s[i][j]<='z')\n\t\t\t\ts[i][j]=s[i][j]-32;\n\tif(strcmp(s[0],s[1])<0)\n\t\tprintf(\"<\");\n\tif(strcmp(s[0],s[1])>0)\n\t\tprintf(\">\");\n\tif(strcmp(s[0],s[1])==0)\n\t\tprintf(\"=\");\n}"} +{"label": "95", "index": "47024", "code": "int main()\n{\n\tchar s1[1000],s2[1000];\n\tint l,t=0,a[1000],b[1000];\n\tcin.getline(s1,1000);\n\n\tcin.getline(s2,1000);\n\tl=strlen(s1);\n\tfor(int i=0;i64&&a[i]<91)\n\t\t{a[i]=a[i]+32;}\n\t\t\n\t b[i]=s2[i];\n\t\tif(b[i]>64&&b[i]<91)\n\t\t{b[i]=b[i]+32;}\n\t\ti++;\n\t}\n\tfor(int j=0;jb[j])\n\t\t{\n\t\t\tcout<<\">\"<=65&&a[i]<=90)\n\t\t\ta[i]+=32;\n\tfor(int i=0;b[i]!='\\0';i++)\n\t\tif(b[i]>=65&&b[i]<=90)\n\t\t\tb[i]+=32;\n\tint c=strcmp(a,b); //??\n\tif(c>0)\n\t\tcout<<'>'<='a') \n s[i]-=32; \n } \n for(i=0;i='a') \n a[i]-=32; \n } \n for(i=0;i<=80;i++)\n\t{\n\t\tif(s[i]>a[i])\n\t\t{\n\t printf(\">\"); break;\n\t\t}\n\t if(s[i]90&&a[i]<97||a[i]>122) a[i]=a[i];\n\t\telse\n\t\t{\n\t\t\tif(a[i]<=90) a[i]=a[i]+32;\n\t\t}\n\t if(b[i]<65||b[i]>90&&b[i]<97||b[i]>122) b[i]=b[i];\n\t\telse\n\t\t{\n\t\t\tif(b[i]<=90) b[i]=b[i]+32;\n\t\t}\n\t\ti=i+1;\n\t}\n\ts=strcmp(a,b);\n\tif(s<0) printf(\"<\\n\");\n if(s==0) printf(\"=\\n\");\t\n if(s>0) printf(\">\\n\");\n\treturn 0;\n}"} +{"label": "95", "index": "47028", "code": "int main()\n{\t\n\tchar a[85] ;\n\tchar b[85];\n\tgets(a);\n\tgets(b);\n\tfor(int i = 0;i 'Z')\n\t\t\ta[i] -= 32;\n\t}\n\tfor(int i = 0;i 'Z')\n\t\t\tb[i] -= 32;\n\t}\n\tint key = strcmp(a,b);\n\tif(key == 0) cout<<\"=\";\n\telse if(key == 1) cout<<\">\";\n\telse cout<<\"<\";\n}"} +{"label": "95", "index": "47029", "code": "void main()\n{\n\tint i;\n\tchar str1[80],str2[80];\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(str1[i]<='Z'&&str1[i]>='A')\n\t\t\tstr1[i]=str1[i]+32;\n\t\telse continue;\n\t\tif(str1[i]<='z'&&str1[i]>='a')\n\t\t\tstr1[i]=str1[i];\n\t\telse continue;\n\t}\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(str2[i]<='Z'&&str2[i]>='A')\n\t\t\tstr2[i]=str2[i]+32;\n\t\telse continue;\n\t\tif(str2[i]<='z'&&str2[i]>='a')\n\t\t\tstr2[i]=str2[i];\n\t\telse continue;\n\t}\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\");\n\tif(strcmp(str1,str2)==0)\n\t\tprintf(\"=\");\n\tif(strcmp(str1,str2)<0)\n\t\tprintf(\"<\");\n}"} +{"label": "95", "index": "47030", "code": "int main()\n{\n char str1[100],str2[100];\n\t int i,flag=1;\n\t cin.getline(str1,100);\n\t \n cin.getline(str2,100);\n\t for(i=0;str1[i]!='\\0';i++)\n\t { \n\t if(str1[i]-'a'>=0&&str1[i]-'z'<=0)\n\t\t\t str1[i]=str1[i]-'a'+'A';\n\t\t\n\t }\n\t for(i=0;str2[i]!='\\0';i++)\n\t { \n\t if(str2[i]-'a'>=0&&str2[i]-'z'<=0)\n\t\t\t str2[i]=str2[i]-'a'+'A';\n\t\t\n\t }\n\t for(i=0;str1[i]!='\\0';i++)\n\t {\n\t if(str1[i]==str2[i])continue;\n\t\t else if(str1[i]';\n\t\t flag=0;\n\t\t break;}\n\t }\n\t if(flag==1)cout<<'=';\n \n\t return 0;\n}\n \n \n"} +{"label": "95", "index": "47031", "code": "int main()\n{char a[80],b[80];//??????\ncin.getline(a,80);//????????\ncin.getline(b,80);//????????\nfor(int i=0;i<80;i++){//??,??????????\nif(a[i]>96)//??????\n\ta[i]=a[i]-32;//??????,?????\nif(b[i]>96)\n\tb[i]=b[i]-32;}\nfor(int i=0;i<80;i++){\t//??,??????\n\tif(a[i]>b[i]){\n\t\tcout<<\">\"<\"\n\t\tbreak;}//???????,????\n\tif(a[i]=65)&&(s1[i]<=90))\n\t {s1[i]=s1[i]+32;}\n }\nfor(i=0;i=65)&&(s2[i]<=90))\n\t {s2[i]=s2[i]+32;}\n }\nif(strcmp(s1,s2)<0)\n{printf(\"<\");}\nif(strcmp(s1,s2)==0)\n{printf(\"=\");}\nif(strcmp(s1,s2)>0)\n{printf(\">\");}\nreturn 0;\n}\n\n\n"} +{"label": "95", "index": "47033", "code": "int main()\n{\n char a[80],b[80];\n cin.getline(a,80);\n cin.getline(b,80);\n int flag=1;\n for(int i=0;a[i]!='\\0';i++)\n {\n int c,d;\n c=a[i],d=b[i];\n if((c>=97) &&(c<=122))\n c=c-32;\n if((d>=97) &&(d<=122))\n d=d-32;\n if(cd)\n {\n flag=0;\n cout<<\">\";\n break;\n }\n }\n if(flag==1)\n cout<<\"=\";\n return 0;\n}"} +{"label": "95", "index": "47034", "code": "int main(void)\n{\n char s1[MAX], s2[MAX];\n gets(s1);\n gets(s2);\n int i=0;\n while(s1[i]!='\\0')\n s1[i]=toupper(s1[i]),i++;\n i=0;\n while(s2[i]!='\\0')\n s2[i]=toupper(s2[i]),i++;\n if(strcmp(s1,s2)>0)\n printf(\">\");\n else if(strcmp(s1,s2)<0)\n printf(\"<\");\n else\n printf(\"=\");\n return 0;\n}\n"} +{"label": "95", "index": "47035", "code": "int main()\n{\n\tchar s[80],t[80];\n\tgets(s);\n\tgets(t);\n\tint m,n,i;\n\tm=strlen(s);\n\tn=strlen(t);\n\tfor(i=0;i'A'&&s[i]<'Z')\n\t\t{\n\t\t\ts[i]=s[i]-'A'+'a';\n\t\t}\n\t}\n\tfor(i=0;i'A'&&t[i]<'Z')\n\t\t{\n\t\t\tt[i]=t[i]-'A'+'a';\n\t\t}\n\t}\n\tint p;\n\tp=strcmp(s,t);\n\tif(p>0)\n\t{\n\t\tprintf(\">\");\n\t}\n\telse if(p<0)\n\t{\n\t\tprintf(\"<\");\n\t}\n\telse\n\t{\n\t\tprintf(\"=\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47036", "code": "\nint main()\n{\n\tchar s[81],k[81];\n\tint x1,x2;\n\tint i;\n\tgets(s);\n\tgets(k);\n\tx1=strlen(s);\n\tx2=strlen(k);\n\tif (strlen(s)==strlen(k))\n\t{\n\t\tfor(i=0;i=65&&s[i]<=90)\n\t\t\t\ts[i]+=32;\n\t\t\tif(k[i]>=65&&k[i]<=90)\n\t\t\t\tk[i]+=32;\n\t\t}\n\t\tif(strcmp(s,k)==0)\n\t\t\tprintf(\"=\\n\");\n\t\telse if(strcmp(s,k)<0)\n\t\t\tprintf(\"<\\n\");\n\t\telse if(strcmp(s,k)>0)\n\t\t\tprintf(\">\\n\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i=65&&s[i]<=90)\n\t\t\t\ts[i]+=32;\n\t\t}\n\t\tfor(i=0;i=65&&k[i]<=90)\n\t\t\t\tk[i]+=32;\n\t\t}\n\t\tif(strcmp(s,k)==0)\n\t\t\tprintf(\"=\\n\");\n\t\telse if(strcmp(s,k)<0)\n\t\t\tprintf(\"<\\n\");\n\t\telse if(strcmp(s,k)>0)\n\t\t\tprintf(\">\\n\");\n\t}\n\n\t\n\treturn 0;\n}\n"} +{"label": "95", "index": "47037", "code": "int main()\n{\n\tint i,k=0;\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0'&&b[i]!='\\0'&&k==0;i++)\n\t{\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tk=1;\n\t\t\tif((a[i]>='a'&&a[i]<='z'))\n\t\t\t\ta[i]=a[i]-'a'+'A';\n\t\t\tif(a[i]==b[i])\n\t\t\t\tk=0;\n\t\t\tif(a[i]='A'&&a[i]<='Z'))\n\t\t\t\ta[i]=a[i]-'A'+'a';\n\t\t\tif(a[i]==b[i])\n\t\t\t\tk=0;\n\t\t\tif(a[i]>b[i])\n\t\t\t\tk=1;\n\t\t}\n\t}\n\tif(k==1)\n\t\tprintf(\">\");\n\tif(k==0)\n\t\tprintf(\"=\");\n\tif(k==-1)\n\t\tprintf(\"<\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47038", "code": "int main()\n{\n char s1[81],s2[81];\n int i,j,k,l,m,n;\n gets(s1);\n gets(s2);\n j=strlen(s2);\n for (i=0;i<=j-1;i++)\n if ((s2[i]>='a')&&(s2[i]<='z')) s2[i]=s2[i]+'A'-'a';\n j=strlen(s1);\n for (i=0;i<=j-1;i++)\n if ((s1[i]>='a')&&(s1[i]<='z')) s1[i]=s1[i]+'A'-'a'; \n m=0;\n m=strcmp(s1,s2); \n if (m==0) puts(\"=\");\n if (m>0) puts(\">\");\n if (m<0) puts(\"<\");\n return 0;\n} \n"} +{"label": "95", "index": "47039", "code": "int main()\n{\n\tchar str1[100], str2[100];\n\tint i;\n\tcin.getline (str1, 100);\n\tcin.getline (str2, 100);\n\tfor (i = 0; ; i++)\n\t{\n\t\tif (str1[i] == '\\0')\n\t\t\tbreak;\n\t\tif (str1[i] >= 'a')\n\t\t\tstr1[i] = str1[i] - 32;\n\t}\n\tfor (i = 0; ; i++)\n\t{\n\t\tif (str2[i] == '\\0')\n\t\t\tbreak;\n\t\tif (str2[i] >= 'a')\n\t\t\tstr2[i] = str2[i] - 32;\n\t}\n\tif (strcmp(str1, str2) == 0) \n\t\tcout << '=' << endl;\n\tif (strcmp(str1, str2) == -1) \n\t\tcout << '<' << endl;\n\tif (strcmp(str1, str2) == 1) \n\t\tcout << '>' << endl;\n\treturn 0;\n}"} +{"label": "95", "index": "47040", "code": "void main()\n{\n\tint a,length1,length2,i;\n char c1[80],c2[80];\n\tgets(c1);\n\tgets(c2);\n length1=strlen(c1);\n\tlength2=strlen(c2);\n for(i=0;i<=length1;i++)\n\t\tif(c1[i]<='z'&& c1[i]>='a') c1[i]-=32;\n\tfor(i=0;i<=length2;i++)\n\t\tif(c2[i]<='z'&& c2[i]>='a') c2[i]-=32;\n a=(strcmp(c1,c2));\n\tif(a>0) printf(\">\");\n\tif(a<0) printf(\"<\");\n if(a==0) printf(\"=\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47041", "code": "void main ()\n{\n\tchar s[2][80];\n\tint i,j;\n\tfor(i=0;i<2;i++)\n\t{\n\t\tgets(s[i]);\n\t\tfor(j=0;j<80;j++)\n\t\t{\n\t\t\tif(s[i][j]<='Z'&&s[i][j]>='A')\n\t\t\t\ts[i][j]=s[i][j]+32;\n\t\t}\n\t}\n\tif(strcmp(s[0],s[1])>0)\n\t\tprintf(\">\\n\");\n\tif(strcmp(s[0],s[1])<0)\n\t\tprintf(\"<\\n\");\n\tif(strcmp(s[0],s[1])==0)\n\t\tprintf(\"=\\n\");\n}"} +{"label": "95", "index": "47042", "code": "\nint main()\n{\n\tchar str1[81],str2[81],ans; //???????????????\n\tint i;\n\tcin.getline(str1,81); //??????????????\n\tcin.getline(str2,81);\n\tfor (i=0;str1[i]!='\\0';i++)\n\t{\n\t\tif (str1[i]>96&&str1[i]<123)\n\t\t\tstr1[i]=str1[i]-32;\n\t\tif (str2[i]>96&&str2[i]<123)\n\t\t\tstr2[i]=str2[i]-32;\n\t\tif (str1[i]==str2[i]) //????????i-1?????,????????????,?????'='?????\n\t\t\tans='=';\n\t\telse if (str1[i]>str2[i])\n\t\t{\n\t\t\tans='>';\n\t\t\tbreak;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tans='<';\n\t\t\tbreak; //????????i-1??????????????????????????,?????\n\t\t}\n\t}\n\tcout<=97){\n\t\t\ta[i]-=32;\n\t\t}\n\t}\n\tfor(i=0;b[i]!='\\0';i++){\n\t\tif(b[i]>=97){\n\t\t\tb[i]-=32;\n\t\t}\n\t}\n\tif(strcmp(a,b)>0){printf(\">\");}\n\telse if(strcmp(a,b)==0){printf(\"=\");}\n\telse{printf(\"<\");}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47044", "code": "//\n// main.cpp\n// ????\n//\n// Created by ? ? on 12-11-22.\n// Copyright (c) 2012? ? ?. All rights reserved.\n//\n\n\nint main(int argc, const char * argv[])\n{int i;\n char str1[100],str2[100];\n gets(str1);\n gets(str2);\n for(i=0;str1[i]!=0;i++)\n {\n if(str1[i]<'a'&&str1[i]>='A'&&str1[i]<='Z')\n {\n str1[i]+=32;\n }\n }\n for(i=0;str2[i]!=0;i++)\n {if(str2[i]<'a'&&str2[i]>='A'&&str2[i]<='Z')\n {\n str2[i]+=32;\n }\n }\n switch (strcmp(str1, str2)) {\n case -1:\n cout<<\"<\";\n break;\n case 0:\n cout<<\"=\";\n break;\n case 1:\n cout<<\">\";\n break;\n \n \n }\n return 0;\n}\n"} +{"label": "95", "index": "47045", "code": "\nvoid main()\n{\n\tint i,n;\n\tchar a[100],b[100],c;\n\tgets(a);\n\tgets(b);\n\tn=strlen(a)>strlen(b)?strlen(a):strlen(b);\n\tfor (i=0;i='A'&&a[i]<='Z'&&b[i]<='z'&&b[i]>='a')\n\t\t\tb[i]=b[i]-32;\n\t\tif (a[i]>='a'&&a[i]<='z'&&b[i]<='Z'&&b[i]>='A')\n\t\t\ta[i]=a[i]-32;\n }\n\n\tif (strcmp(a,b)>0)\n\t\tprintf(\">\");\n\telse if (strcmp(a,b)==0)\n\t\tprintf(\"=\");\n\telse \n\t\tprintf(\"<\");\n\t\n\n}"} +{"label": "95", "index": "47046", "code": "int main()\n{\n\tint i,e=0;\n\tchar a[80],b[80];\n\tcin.getline(a,80);\n\tcin.getline(b,80);//??ab\n\tfor(i=0;i<=strlen(a);i++)\n\t{\n\t\tif(a[i]>96)\n\t\t\ta[i]=a[i]-32;\n\t\tif(b[i]>96)\n\t\t\tb[i]=b[i]-32;//?????\n\t\tif((a[i]-32)*(b[i]-32)==0)\n\t\t\tcontinue;\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tcout<<'>';\n\t\t\te=1;\n\t\t}\n\t\tif(a[i]0) \n\t\tprintf(\">\");\n\tif(strcmp(p,q)==0) \n\t\tprintf(\"=\");\n\treturn 0;\n}\n\n\n\n"} +{"label": "95", "index": "47048", "code": "int main()\n{\n\tint a,i;\n\tchar str1[100]={0},str2[100]={0};\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<=99;i++)\n\t{\n\t\tif(!((str1[i]>='A'&&str1[i]<='Z'||str1[i]>='a'&&str1[i]<='z')&&\n\t\t\t(str2[i]>='A'&&str2[i]<='Z'||str2[i]>='a'&&str2[i]<='z')))\n\t\ta=str1[i]-str2[i];\n\t\tif(str1[i]>='a'&&str1[i]<='z')str1[i]=str1[i]-'a'+'A';\n\t\tif(str2[i]>='a'&&str2[i]<='z')str2[i]=str2[i]-'a'+'A';\n\t\ta=str1[i]-str2[i];\n\t\tif(a!=0)break;\n\t}\n\tif(a<0)printf(\"<\");\n\tif(a>0)printf(\">\");\n\tif(a==0)printf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47049", "code": "int main()\n{\n\tchar s1[80],s2[80];\n\tint i,c;\n\tgets(s1);\n\tgets(s2);\n\tfor(i=0;s1[i]!='\\0'&&s2[i]!='\\0';i++)\n\t{\n\t\tif(s1[i]>='A'&&s1[i]<='Z')\n\t\t{\n\t\t\ts1[i]+=32;\n\t\t}\n\t\tif(s2[i]>='A'&&s2[i]<='Z')\n\t\t{\n\t\t\ts2[i]+=32;\n\t\t}\n\t}\n\tc=strcmp(s1,s2);\n\tif(c==0)\n\t{\n\t\tprintf(\"=\");\n\t}\n\telse if(c>0)\n\t{\n\t\tprintf(\">\");\n\t}\n\telse{printf(\"<\");}\n\treturn 0;\n}"} +{"label": "95", "index": "47050", "code": "main()\n{\nchar a[3][100];\nint i,j,len1,len2,p;\np=1;\ngets(a[1]);\ngets(a[2]);\nlen1=strlen(a[1]);\nlen2=strlen(a[2]);\nif (len1>=len2) i=len2;\n else i=len1;\nfor (j=0;j<=i-1;j++)\n {if (a[1][j]>=65&&a[1][j]<=90) a[1][j]=a[1][j]+32;\n \tif (a[2][j]>=65&&a[2][j]<=90) a[2][j]=a[2][j]+32;\n if (a[1][j]>a[2][j]) {printf(\">\");p=1;break;}\n else if (a[1][j]='a'&&s[i]<='z')\n\t\t\ts[i]=s[i]-32;\n}\nvoid main()\n{\n\tchar s1[50],s2[50];\n\tgets(s1);\n\tgets(s2);\n\tast(s1);\n\tast(s2);\n\tif(strcmp(s1,s2)>0)\n\t\tprintf(\">\");\n\telse if(strcmp(s1,s2)<0)\n\t\tprintf(\"<\");\n\telse printf(\"=\");\n}"} +{"label": "95", "index": "47052", "code": "int main()\n{\n int i,x;\n char c1[81],c2[81];\n gets(c1);\n gets(c2);\n for(i=0;c1[i];i++)\n {\n if(c1[i]>='A'&&c1[i]<='Z')\n c1[i]=c1[i]+32;\n }\n for(i=0;c2[i];i++)\n {\n if(c2[i]>='A'&&c2[i]<='Z')\n c2[i]=c2[i]+32;\n }\n x=strcmp(c1,c2);\n if(x>0)\n {\n printf(\">\");\n }\n else if(x<0)\n {\n printf(\"<\");\n }\n else\n {\n printf(\"=\");\n }\n return 0;\n}\n"} +{"label": "95", "index": "47053", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint i,a1,b1,m=0;\n\tgets(a);\n\tgets(b);\n\ta1=strlen(a);\n\tb1=strlen(b);\n\tfor(i=0;i='A'&&(int)a[i]<='Z')\n\t\t{\n\t\t\ta[i]=(char)((int)a[i]+32);\n\t\t}\n\t}\n\tfor(i=0;i='A'&&(int)b[i]<='Z')\n\t\t{\n\t\t\tb[i]=(char)((int)b[i]+32);\n\t\t}\n\t}\n\tfor(i=0;i(int)b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if((int)a[i]<(int)b[i])\n\t\t{\n\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n\t\telse if((int)a[i]==(int)b[i])\n\t\t{\n\t\t\tm+=1;\n\t\t\tcontinue;\n\t\t}\n\t}\n\tif(m==a1-1)\n\t{\n\t\tprintf(\"=\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47054", "code": "void main()\n{\n int j;\n char a[80],b[80];\n gets(a);\n gets(b);\n j=0;\n while(a[j]!='\\0') \n {\n if((a[j]>='A')&&(a[j]<='Z'))\n a[j]=a[j]+32;\n j++;\n } \n j=0;\n while(b[j]!='\\0') \n {\n if((b[j]>='A')&&(b[j]<='Z'))\n b[j]=b[j]+32;\n j++;\n } \n if(strcmp(a,b)>0)\n printf(\">\");\n else if(strcmp(a,b)<0)\n printf(\"<\");\n else if(strcmp(a,b)==0) printf(\"=\"); \n}"} +{"label": "95", "index": "47055", "code": "int main()\n{\n\tchar s1[100],s2[100];\n\tint i;\n\tint a,b;\n\tgets(s1);\n\tgets(s2);\n\ta=strlen(s1);\n\tb=strlen(s2);\n\tfor(i=0;i='a'&&s1[i]<='z')\n\t\t\ts1[i]=s1[i]-'a'+'A';\n\t}\n for(i=0;i='a'&&s2[i]<='z')\n\t\t\ts2[i]=s2[i]-'a'+'A';\n\t}\n\tif(strcmp(s1,s2)>0)\n\t\tprintf(\">\");\n if(strcmp(s1,s2)<0)\n\t\tprintf(\"<\");\n if(strcmp(s1,s2)==0)\n\t\tprintf(\"=\");\n\treturn 0;\n}\n\n\n\t\t"} +{"label": "95", "index": "47056", "code": "int main(int argc, char* argv[])\n{\n\tchar s[80],t[80],*p,*q;\n\tgets(s);\n\tgets(t);\n\tp=s;\n\tq=t;\n for(;*p!=0;p++)\n\t{\n\t\tif(*p<='Z'&&*p>='A')\n\t\t\t*p=*p+32;\n\t}\n\tfor(;*q!=0;q++)\n\t{\n\t\tif(*q<='Z'&&*q>='A')\n\t\t\t*q=*q+32;\n\t}\n\n\tif(strcmp(s,t)>0)\n\t\tprintf(\">\");\n\telse if(strcmp(s,t)<0)\n\t\tprintf(\"<\");\n\telse\n\t\tprintf(\"=\");\n\n\treturn 0;\n}"} +{"label": "95", "index": "47057", "code": "int main()\n{\n\tint i,j,k;\n\tchar s1[100],s2[100];\n\tgets(s1);\n\tgets(s2);\n\tint sign=0;\n\tfor(i=0;i<=strlen(s1)&&i<=strlen(s2);i++)\n\t{\n\t\tif(s1[i]-s2[i]==32||s2[i]-s1[i]==32)\n\t\tcontinue;\n\t\tif(s1[i]>=97)s1[i]-=32;\n\t\tif(s2[i]>=97)s2[i]-=32;\n\t\tif((int)(s1[i]-s2[i])>0){sign=1;break;}\n\t\tif((int)(s1[i]-s2[i])<0){sign=-1;break;}\n\t}\n\tif(sign==0)cout<<\"=\";\n\tif(sign==1)cout<<\">\";\n\tif(sign==-1)cout<<\"<\";\n\treturn 0;\n}\n"} +{"label": "95", "index": "47058", "code": "\nint main()\n{\n char a[81],b[81];\n\ncin.getline(a,81);\ncin.getline(b,81);\n for(int i=0;i='A'&&a[i]<='Z')\n a[i]=a[i]+32;\n }\n for(int i=0;i='A'&&b[i]<='Z')\n b[i]=b[i]+32;\n }\n\nif(strcmp(a,b)==0)\ncout<<\"=\";\nelse if(strcmp(a,b)==1)\ncout<<\">\";\nelse if(strcmp(a,b)==-1)\ncout <<\"<\";\n}\n"} +{"label": "95", "index": "47059", "code": "\nint main()\n{\n\tchar a[80]={0},b[80]={0}; //??2?????\n\tint i,flag=0; //i??????flag????????\n\tcin.getline(a,80); //?cin.getline?????\n\tcin.getline(b,80);\n\tfor (i=0;i96&&a[i]<123) //??????????ASK????32??????\n\t\t\ta[i]=a[i]-32;\n\t\tif (b[i]>96&&b[i]<123)\n\t\t\tb[i]=b[i]-32;\n\t\tif (a[i]>b[i]) //?a[i]??b[i]????\u0093>\u0094??????????\n\t\t{\n\t\t\tcout<<\">\";\n\t\t\tflag=1;\n\t\t\tbreak;\n\t\t}\n\t\tif (a[i]0)\n\t\tprintf(\">\");\n\telse printf(\"=\");\n}"} +{"label": "95", "index": "47061", "code": "\nint main(int argc, char* argv[])\n{\n\tchar c1[80];\n\tgets(c1);\n\tchar c2[80];\n\tgets(c2);\n\tint i,j;\n\tint a=0;\n\tint b=0;\n\tfor(i=0;c1[i]!='\\0';i++)\n\t{\n\t\tif(c1[i]<='Z'&&c1[i]>='A')\n\t\t{\n\t\t\tc1[i]=c1[i]+32;\n\t\t}\n\t\ta++;\n\t}\n\tfor(j=0;c2[j]!='\\0';j++)\n\t{\n\t\tif(c2[j]<='Z'&&c2[j]>='A')\n\t\t{\n\t\t\tc2[j]=c2[j]+32;\n\t\t}\n\t\tb++;\n\t}\n\tint m=0;\n\tfor(i=0;c1[i]!='\\0'&&c2[i]!='\\0';i++)\n\t{\n\t\tif(c1[i]>c2[i])\n\t\t{\n\t\t\tprintf(\">\\n\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(c1[i]0) printf(\">\");\n\telse if (strcmp(a,b)<0) printf(\"<\");\n\treturn 0;\n}\n\t\t\n"} +{"label": "95", "index": "47063", "code": "int main()\n{\n\tchar a[80],b[80];\n\tint i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;i<=79;i++)\n\t{\n\t\tif(a[i]>90)\n\t\t\ta[i]=a[i]-32;\n\t\tif(b[i]>90)\n\t\t\tb[i]=b[i]-32;\n\t\tif(a[i]==b[i])\n\t\t{\n\t\t\tif(a[i]=='\\0')\n\t\t\t{cout<<\"=\";break;}\n\t\t\telse continue;\n\t\t}\n\t\telse if(a[i]>b[i])\n\t\t{\n\ncout<<\">\";break;\n\t\t}\n\t\telse\n\t\t{\n\n\tcout<<\"<\";break;\n\t\t}\n\t\n\t}\n\treturn 0;\n}\n\t\t\n"} +{"label": "95", "index": "47064", "code": "int main()\n{\n int i,flag,l1,l2;\n char s1[100],s2[100];\n \n gets(s1);\n gets(s2);\n l1=strlen(s1);\n l2=strlen(s2);\n \n for(i=0;i='A')&&(s1[i]<='Z'))\n s1[i]=s1[i]+32;\n\n for(i=0;i='A')&&(s2[i]<='Z'))\n s2[i]=s2[i]+32;\n \n flag=strcmp(s1,s2);\n if(flag>0)\n printf(\">\");\n else if(flag<0)\n printf(\"<\");\n else printf(\"=\");\n return 0;\n}\n"} +{"label": "95", "index": "47065", "code": "char change(char a)\n{\n\tif(a>='a'&&a<='z')\n\t\ta=a-'a'+'A';\n\treturn a;\n}\nint main()\n{\n char a[100];\n char b[100];\n gets(a);\n gets(b);\n int a1=strlen(a);\n int a2=strlen(b);\n int i=0;\n while(ib[i])\n \t{\n \t\tprintf(\">\\n\");\n \t\tbreak;\n \t}\n \ti++;\n }\n if(i==a1&&i!=a2) \t\tprintf(\"<\\n\");\n if(i==a2&&i!=a1) \t\tprintf(\">\\n\");\n if(i==a1&&i==a2) \t\tprintf(\"=\\n\");\n return 0;\n}"} +{"label": "95", "index": "47066", "code": "int main()\n{\n char a[100];\n\tgets(a);\n\tint m=strlen(a);\n\tchar b[100];\n\tgets(b);\n\tint n=strlen(b);\n\tint c;\n\tif(m>n)\n\t\tc=m;\n\telse\n\t\tc=n;\n\n\n\tint i;\n\tfor(i=0;i64&&a[i]<91)\n\t\t\ta[i]+=32;\n\t\tif(b[i]>64&&b[i]<91)\n\t\t\tb[i]+=32;\n \tif(a[i]>b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]=c)\n\t{\n\t\tprintf(\"=\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47067", "code": "void main()\n{\n\tchar str1[100],str2[100];\n\tint i,k=0;\n\tgets(str1);\n\tgets(str2);\n\n\tfor(i=0;str1[i]!='\\0';i++)\n\t\tstr1[i]=(str1[i]>='A'&&str1[i]<='Z')?(str1[i]+32):str1[i];/*?????????????[i]\u0085\u0085\u0085\u0085*/\n\tfor(i=0;str1[i]!='\\0';i++)\n\t\tstr2[i]=(str2[i]>='A'&&str2[i]<='Z')?(str2[i]+32):str2[i];\n\t\n\t\n\tfor(i=0;str1[i]!='\\0';i++){\n\t\tif(str1[i]>str2[i]) {printf(\">\");k=1;break;}\n\t\telse if(str1[i]96)\n\t\t\tstr1[i]-=32;\n if(str2[i]>96)\n\t\t\tstr2[i]-=32;\n\t}\n\tif(strcmp(str1,str2)>0)\n\t\tcout<<\">\";\n\telse if(strcmp(str1,str2)<0)\n\t\tcout<<\"<\";\n\telse\n\t\tcout<<\"=\";\n\treturn 0;\n\n}\n"} +{"label": "95", "index": "47069", "code": "/*\n * p5.cpp\n *\n * Created on: 2010-11-5\n * Author: ???\n * ?????????\n */\nint main()\n{\n\tchar s1[81],s2[81]; //?????\n\tint i; \n\tcin.getline(s1,81); //?????\n\tcin.getline(s2,81);\n\tfor(i=0;i<81;i++) //???????\n\t\tif (s1[i]<97&&s1[i]>64) s1[i]=s1[i]+32;\n\tfor(i=0;i<81;i++)\n\t\t\tif (s2[i]<97&&s2[i]>64) s2[i]=s2[i]+32;\n\tif(strcmp(s1,s2)>0) cout<<'>'<0)\n printf(\">\");\n else if(t<0)\n printf(\"<\");\n else if(t==0)\n printf(\"=\");\nreturn 0;\n}\n"} +{"label": "95", "index": "47071", "code": "/*\n * 15.cpp\n *Created on: 2011-10-26\n *Author: gaokai\n *??????????????\n */\n\n\nint main(){\n\tint i; //??????\n\tchar a[80],b[80]; //a????????,b????????\n\tgets(a);\n\tgets(b); //?????????\n\tfor(i=0;i<(int)strlen(a);i++)\n\t\ta[i] = tolower(a[i]); \n\tfor(i=0;i<(int)strlen(b);i++)\n\t\tb[i] = tolower(b[i]); //????????????\n\tif(strcmp(a,b)>0)\n\t\tcout<<\">\"<='a')&&(s[i]<='z'))\n\t\t\ts[i]=s[i]-32;\n\t}\n\tfor (i=0;t[i]!='\\0';i++){\n\t\tif ((t[i]>='a')&&(t[i]<='z'))\n\t\t\tt[i]=t[i]-32;\n\t}\n\tm=1;\n\tfor (i=0;(t[i]!='\\0')&&(s[i]!='\\0');i++){\n\t\tif (s[i]>t[i]){\n\t\t\tprintf(\">\");\n\t\t\tm=0;\n\t\t\tbreak;\n\t\t}\n\t\telse if (s[i]=97)\n\t\t\t\tm-=32;\n\t\t\tif (n>=97)\n\t\t\t\tn-=32;\n\t\t\tif (m == n)\n\t\t\t{\n\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (m>n)\n\t\t\t\t{\n\t\t\t\t\tcout<<\">\";\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcout<<\"<\";\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\t\t\n\t}\n\tcout<<\"=\";\n\treturn 0;\n}"} +{"label": "95", "index": "47074", "code": "int main()\n{\n\tint i,n;\n\tchar c1[100]={0},c2[100]={0},c;\n\tgets(c1);\n\n\tgets(c2);\n\t\n for(i=0;i<100;i++)\n\t{\n\t\tif((c1[i]>=65)&&(c1[i]<=90)) c1[i]=c1[i]+32;\n\t\tif((c2[i]>=65)&&(c2[i]<=90)) c2[i]=c2[i]+32;\n\t}\n\tif(strcmp(c1,c2)>0) \n\t{\n\t\tprintf(\">\");\n\t}\n\telse if(strcmp(c1,c2)==0)\n\t{\n\t\tprintf(\"=\");\n\t}\n\telse printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47075", "code": "int main()\n{\n\tchar a[100],b[100];\n\tgets(a);\n\tgets(b);\n\tfor(int i=0;a[i]!='\\0';i++)\n\t\ta[i]=tolower(a[i]);\n\tfor(int j=0;b[j]!='\\0';j++)\n\t\tb[j]=tolower(b[j]);\n\tif(strcmp(a,b)>0)printf(\">\");\n\tif(strcmp(a,b)<0)printf(\"<\");\n\tif(strcmp(a,b)==0)printf(\"=\");\n\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47076", "code": "int main()\n{\n int k;\n char sen1[80],sen2[80];\n cin.getline(sen1,80);\n cin.getline(sen2,80);\n int nlen1=strlen(sen1),nlen2=strlen(sen2);\n char B[3]={'<','=','>'};\n for(int i=0;i='A'&&sen1[i]<='Z')\n sen1[i]+='a'-'A';\n for(int i=0;i='A'&&sen2[i]<='Z')\n sen2[i]+='a'-'A';\n for(int i=0;i= 'a' && s1[i] <= 'z') {\n s1[i] -= 'a' - 'A'; /* ????s1????????? */\n }\n if (s2[i] >= 'a' && s2[i] <= 'z') {\n s2[i] -= 'a' - 'A'; /* ????s2????????? */\n }\n if (s1[i] != s2[i]) { /* ???????????????? */\n printf((s1[i] > s2[i]) ? \">\" : \"<\");\n break; /* ?????????? */\n }\n }\n \n /* ???????????0????????????????????? */\n if (s1[i] == 0 && s2[i] == 0) {\n printf(\"=\");\n }\n \n return 0;\n}\n\n"} +{"label": "95", "index": "47078", "code": " int main()\n {\n char str1[80],str2[80];\n gets(str1);\n gets(str2);\n int i;\n for(i=0;i<80;i++)\n {switch(str1[i]){\n case 'A':str1[i]='a'; break;\n case 'B':str1[i]='b'; break;\n case 'C':str1[i]='c'; break;\n case 'D':str1[i]='d'; break;\n case 'E':str1[i]='e'; break;\n case 'F':str1[i]='f'; break;\n case 'G':str1[i]='g'; break;\n case 'H':str1[i]='h'; break;\n case 'I':str1[i]='i'; break;\n case 'J':str1[i]='j'; break;\n case 'K':str1[i]='k'; break;\n case 'L':str1[i]='l'; break;\n case 'M':str1[i]='m';break;\n case 'N':str1[i]='n';break;\n case 'O':str1[i]='o';break;\n case 'P':str1[i]='p';break;\n case 'Q':str1[i]='q';break;\n case 'R':str1[i]='r';break;\n case 'S':str1[i]='s';break;\n case 'T':str1[i]='t';break;\n case 'U':str1[i]='u';break;\n case 'V':str1[i]='v';break;\n case 'W':str1[i]='w';break;\n case 'X':str1[i]='x';break;\n case 'Y':str1[i]='y';break;\n case 'Z':str1[i]='z';break;\n }\n }\n int j;\n for(j=0;j<80;j++)\n { switch(str2[j]){\n case 'A':str2[j]='a';break;\n case 'B':str2[j]='b';break;\n case 'C':str2[j]='c';break;\n case 'D':str2[j]='d';break;\n case 'E':str2[j]='e';break;\n case 'F':str2[j]='f';break;\n case 'G':str2[j]='g';break;\n case 'H':str2[j]='h';break;\n case 'I':str2[j]='i';break;\n case 'J':str2[j]='j';break;\n case 'K':str2[j]='k';break;\n case 'L':str2[j]='l';break;\n case 'M':str2[j]='m';break;\n case 'N':str2[j]='n';break;\n case 'O':str2[j]='o';break;\n case 'P':str2[j]='p';break;\n case 'Q':str2[j]='q';break;\n case 'R':str2[j]='r';break;\n case 'S':str2[j]='s';break;\n case 'T':str2[j]='t';break;\n case 'U':str2[j]='u';break;\n case 'V':str2[j]='v';break;\n case 'W':str2[j]='w';break;\n case 'X':str2[j]='x';break;\n case 'Y':str2[j]='y';break;\n case 'Z':str2[j]='z';break;\n }\n }\n if( strcmp(str1,str2)==0) printf(\"=\\n\");\n if(strcmp(str1,str2)<0 ) printf(\"<\\n\");\n if( strcmp(str1,str2)>0 ) printf(\">\\n\");\n \n return 0;\n}\n \n"} +{"label": "95", "index": "47079", "code": "main()\n{\n\tchar a[100]={0},b[100]={100};\n\tint i,j,k,l1,l2;\n\tgets(a);\n\tgets(b);\n\tl1=strlen(a);\n\tl2=strlen(b);\n\tfor (i=0;i='A'&&a[i]<='Z')\n\t\t\ta[i]+='a'-'A';\n\t}\n\tfor (i=0;i='A'&&b[i]<='Z')\n\t\t\tb[i]+='a'-'A';\n\t}\n\tj=strcmp(a,b);\n\tif (j==0)\n\t\tprintf(\"=\");\n\tif (j>0)\n\t\tprintf(\">\");\n\tif (j<0)\n\t\tprintf(\"<\");\n}"} +{"label": "95", "index": "47080", "code": " void main()\n {\n\tchar str1[80],str2[80];\n\tint i;\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<80;i++)\n\tif(str1[i]>=97&&str1[i]<=122)\n\t\t\tstr1[i]=str1[i]-32;\n\tfor(i=0;i<80;i++)\n\tif(str2[i]>=97&&str2[i]<=122)\n\t\t\tstr2[i]=str2[i]-32;\n if(strcmp(str1,str2)<0)\n\tprintf(\"<\");\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\");\n\tif(strcmp(str1,str2)==0)\n\t\t printf(\"=\");\n }"} +{"label": "95", "index": "47081", "code": "char z(char a)\n{\n\tchar y;\n\tif(a>=65&&a<=90)y=a+32;\n\telse y=a;\n\treturn (y);\n}\nint main()\n{\n char z(char a);\n\tchar a[100],b[100],c[100],d[100];\n\tint x,y,i;\n\tgets(a);\n\tgets(b);\n\tx=strlen(a);y=strlen(b);\n\tfor(i=0;i<=x;i++)c[i]=z(a[i]);\n\tfor(i=0;i<=y;i++)d[i]=z(b[i]);\n\t \n\tif(strcmp(c,d)<0)printf(\"<\");\n\telse if(strcmp(c,d)==0)printf(\"=\");\n\t else printf(\">\");\n return 0;\n}\n"} +{"label": "95", "index": "47082", "code": "int main()\n{\n\tchar str1[80],str2[80];\n\tint i,j;\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<80&&str1[i]!='\\0';i++)\n\t\tif(str1[i]>='A'&&str1[i]<='Z')\n\t\t\tstr1[i]=str1[i]+32;\n\tfor(i=0;i<80&&str2[i]!='\\0';i++)\n\t\tif(str2[i]>='A'&&str2[i]<='Z')\n\t\t\tstr2[i]=str2[i]+32;\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\\n\");\n\telse\n\t\tif(strcmp(str1,str2)<0)\n\t\t\tprintf(\"<\\n\");\n\t\telse\n\t\t\tprintf(\"=\\n\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47083", "code": "\nint main (int argc, char *argv[])\n{\n char a[80],b[80];\n int c,i;\n gets(a);\n gets(b);\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]>(char)64&&a[i]<(char)91)\n {a[i]=(char)a[i]+32;}\n }\n for(i=0;b[i]!='\\0';i++)\n {\n if(b[i]>(char)64&&b[i]<(char)91)\n {b[i]=(char)b[i]+32;}\n }\n c=strcmp(a,b);\n if(c>0)printf(\">\\n\");\n else if(c==0)printf(\"=\\n\");\n else if(c<0)printf(\"<\\n\");\n return 0;\n}"} +{"label": "95", "index": "47084", "code": "\nint main()\n{\n\tchar a[80], ch;\n\tint len;\n\tgets(a);\n\t//cin.get();\n\tfor (len = 0 ; a[len] != '\\0'; ++len); \n\t//++len;\n\tfor (int i = 0; i < len; ++i) {\n\t\tcin.get(ch);\n\t\tif (a[i] <= 'Z' && a[i] >= 'A' && ch >= 'a' && ch <= 'z') ch -= 32;\n\t\tif (a[i] >= 'a' && a[i] <= 'z' && ch <= 'Z' && ch >= 'A') ch += 32;\n\t\tif (a[i] > ch) {\n\t\t\tcout << '>';\n\t\t\treturn 0;\n\t\t}\n\t\tif (a[i] < ch) {\n\t\t\tcout << '<';\n\t\t\treturn 0;\n\t\t}\n\t}\n\tcout << '=';\n\treturn 0;\n}"} +{"label": "95", "index": "47085", "code": "void main()\n{\n\tchar a[80],b[80],i;\n\tint m,n;\n\tgets(a);\n\tm=strlen(a);\n\tfor(i=0;i=65 && a[i]<=90) a[i]=a[i]+32;\n\tgets(b);\n\tn=strlen(b);\n\t\tfor(i=0;i=65 && b[i]<=90) b[i]=b[i]+32;\n\tif(strcmp(a,b)>0) printf(\">\");\n\tif(strcmp(a,b)<0) printf(\"<\");\n\tif(strcmp(a,b)==0) printf(\"=\");\n\n}"} +{"label": "95", "index": "47086", "code": "main()\n{\n char s1[80],s2[80];\n gets(s1);\n gets(s2); \n int i=0;int j=0; \n while (s1[i]!='\\0'){if(s1[i]>='a'&&s1[i]<='z')s1[i]=s1[i]+'A'-'a';i++;}\n while (s2[j]!='\\0'){if(s2[j]>='a'&&s2[j]<='z')s2[j]=s2[j]+'A'-'a';j++;}\n if (is2[t]){printf(\">\");flag=1;break;} \n if (s1[t]y) return y;\n\telse return x;\n}\n\nint main()\n{\n\tchar a[80],b[80];\n\tint x,y,i,z;\n\tgets(a);\n\tx=strlen(a);\n\tgets(b);\n\ty=strlen(b);\n\tz=min(x,y);\n\tfor(i=0;i='a')&&(a[i]<='z'))\n\t\t\ta[i]=a[i]-32;\n\t\tif ((b[i]>='a')&&(b[i]<='z'))\n\t\t\tb[i]=b[i]-32;\n\t}\n\tfor(i=0;ib[i])&&(a[i]-b[i]!=32))\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if((a[i]=65&&*p<=90)\n\t\t{\n\t\t\t*p=*p+32;\n\t\t}\n\t}\n\tfor(l=s1;*l!='\\0';l++)\n\t{\n\t\tif(*l>=65&&*l<=90)\n\t\t{\n\t\t\t*l=*l+32;\n\t\t}\n\t}\n\tint cmp;\n\tcmp=strcmp(s,s1);\n\tif(cmp<0)\n\t{\n\t\tprintf(\"<\");\n\t}\n\telse if(cmp==0)\n\t{\n\t\tprintf(\"=\");\n\t}\n\telse if(cmp>0)\n\t{\n\t\tprintf(\">\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47089", "code": "int main ( )\n{\n\tchar sen_1[80]=\"\\0\",sen_2[80]=\"\\0\";\n\tint i,sum=0;\n\tgets(sen_1);\n\tgets(sen_2);\n\tfor (i=0;i<80;i++)\n\t{\n\t\tif(sen_1[i]>='A'&&sen_1[i]<='Z')\n\t\t\tsen_1[i]=sen_1[i]+32;\n\t\tif(sen_2[i]>='A'&&sen_2[i]<='Z')\n\t\t\tsen_2[i]=sen_2[i]+32;\n\t\tif(sen_1[i]>sen_2[i])\n\t\t{\n\t\t\tprintf(\">\\n\");\n\t\t\tsum=sum+1;\n\t\t\tbreak;\n\t\t}\n\t\telse if(sen_1[i]='A'&&str1[i]<='Z')\nstr1[i]=str1[i]+32;\n}\ngets(str2);\nn2=strlen(str2);\nfor(i=0;i='A'&&str2[i]<='Z')\nstr2[i]=str2[i]+32;\n}\nif(strcmp(str1,str2)>0)\n{printf(\">\");}\nelse if(strcmp(str1,str2)<0)\n{printf(\"<\");}\nelse if(strcmp(str1,str2)==0)\n{printf(\"=\");}\n}"} +{"label": "95", "index": "47091", "code": "int main()\n{\n char s1[81],s2[81];\n gets(s1);gets(s2);\n int t=0,l1,l2,i;\n l1=strlen(s1);l2=strlen(s2);\n for(i=0;i='A'&&s1[i]<='Z') s1[i]=s1[i]-'A'+'a';\n for(i=0;i='A'&&s2[i]<='Z') s2[i]=s2[i]-'A'+'a';\n if(l1>l2) l1=l2;\n while(ts2[t]) printf(\">\");\n else if(s1[t]='A'&&a[i]<='Z'?a[i]+32:a[i];\n\t\tb[j]=b[j]>='A'&&b[j]<='Z'?b[j]+32:b[j];\n\t\tif(a[i]==b[j]) \n\t\t{\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\telse if(a[i]>b[j]) \n\t\t{\n\t\t\tcout<<\">\"<strlen(b)) cout<<\">\"<n)?m:n;\n\tfor(i=0;i64&&a[i]<91)\n\t\t\n\t\t\ta[i]=a[i]+32;\n if(b[i]>64&&b[i]<91)\n\t\t\tb[i]=b[i]+32;\n\t\t\n if((a[i]==b[i])||(a[i]==b[i]+32)||(a[i]==b[i]-32))\n\t r--;\n\t else if(a[i]>b[i])\n\t {\n\t\t e=0;\n\t\t printf(\">\");break;\n\t \n\t }\n\t\t else if(a[i]96)\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t\tif (b[i]>96)\n\t\t{\n\t\t\tb[i]=b[i]-32;\n\t\t}\n\t}\n\tif (strcmp(a,b)>0)\n\t\tprintf(\">\\n\");\n\telse if (strcmp(a,b)<0)\n\t\tprintf(\"<\\n\");\n\telse if (strcmp(a,b)==0)\n\t\tprintf(\"=\\n\");\n\t\t\n\treturn 0;\n}\n"} +{"label": "95", "index": "47095", "code": "int main()\n{\n\tchar A[81]={0},B[81]={0};\n\tint i,t;\n\tgets(A);\n\tgets(B);\n\tfor(i=0;i='a'&&A[i]<='z')\n\t\t{\n\t\n\t\t\tA[i]=A[i]-32;\n\t\t}\n\t}\n\tfor(i=0;i='a'&&B[i]<='z')\n\t\t{\n\t\n\t\t\tB[i]=B[i]-32;\n\t\t}\n\t}\n\t//printf(\"%s %s\",A,B);\n\tif(strlen(A)B[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\treturn 0;\n\t\t\n\t\t} \n\t\tif(A[i]\");\n\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47096", "code": "int main()\n{\n\tchar str1[100],str2[100],c;\n\tint i;\n\tgets(str1);gets(str2);\n for(i=0;(c=str1[i])!='\\0';i++)\n\t{\tif(c>='a'&&c<='z')\n\t\t\tc=c-32;\n\t str1[i]=c;\n\t}\n for(i=0;(c=str2[i])!='\\0';i++)\n\t{\tif(c>='a'&&c<='z')\n\t\t\tc=c-32;\n\t str2[i]=c;\n\t}\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\\n\");\n\tif(strcmp(str1,str2)<0)\n\tprintf(\"<\\n\");\nif(strcmp(str1,str2)==0)\nprintf(\"=\\n\");\nreturn 0;\n}"} +{"label": "95", "index": "47097", "code": "int main()\n{\n\tint c,i;\n\tchar a[100],b[100];\n\tcin.getline(a,80);\n\t\n\tcin.getline(b,80);\n for(i=0;i<80;i++)\n\t{\n\t\tif(a[i]>96&&a[i]<123)a[i]=a[i]-32;\n\t\tif(b[i]>96&&b[i]<123)b[i]=b[i]-32;\n\t\n\t}\n\tc=strcmp(a,b);\n\t\tif(c>0)cout<<\">\";\n\t\tif(c<0)cout<<\"<\";\n\t\tif(c==0) cout<<\"=\";\n\t return 0;\n}\n"} +{"label": "95", "index": "47098", "code": "int main ()\n{\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tint i,j,k,n;\n\tint len=strlen(a);\n\tfor(i=0;ik)\n\t\t{\t\n\t\t\tprintf(\">\");\n\t\t n=0;\n\t\t\tbreak;\n\t\t}\n\t\telse if(jn) max=m;\n\t else max=n;\n\t for(int i=0;i='a'&&p[i]<='z')\n\t\t\t p[i]=p[i]-32;\n\t }\n for(int j=0;j='a'&&q[j]<='z')\n\t\t\t q[j]=q[j]-32;\n\t }\n\t int a=strcmp(p,q);\n\t if(a>0)printf(\">\");\n\t\t else if(a<0)printf(\"<\");\n\t\t else if(a==0)printf(\"=\");\n\t return 0;\n}"} +{"label": "95", "index": "47100", "code": "int main()\n{\n\tint a,k;\n\tchar str1[80],str2[80];\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);//????2????\n\tfor(k=0;k<80;k++)//?????????????\n\t{\n\t\tif('Z'>=str1[k]&&str1[k]>='A')\n\t\t\tstr1[k]+=32;\n\t\telse continue;\n\t}\n\tfor(k=0;k<80;k++)\n\t{\n\t\tif('Z'>=str2[k]&&str2[k]>='A')\n\t\t\tstr2[k]+=32;\n\t\telse continue;\n\t}\n\ta=strcmp(str1,str2);//??2??????????a\n\tif(a==0)\n\t\tcout<<\"=\";\n\telse if(a==1)\n\t\tcout<<\">\";\n\telse if(a==-1)\n\t\tcout<<\"<\";//??a??????\n\treturn 0;\n\n}"} +{"label": "95", "index": "47101", "code": "int main(){\nchar a[81]=\"\",b[81]=\"\";\ngets(a);\ngets(b);\nint i;\nfor(i=0;i<80;i++){\n\tif(a[i]>=97&&a[i]<=121){\n\ta[i]=a[i]-32;\n\t}\nif(b[i]>=97&&b[i]<=121){\n\tb[i]=b[i]-32;}\n}\n\n\nif(strcmp(a,b)<0){\nprintf(\"<\");\n}\nif(strcmp(a,b)==0){\nprintf(\"=\");\n}\nif(strcmp(a,b)>0){\nprintf(\">\");\n}\nreturn 0;\n}\n"} +{"label": "95", "index": "47102", "code": "int main()\n{\n\tint len1,len2,len,i;\n\tchar s1[100],s2[100];\n\tgets(s1);\n\tgets(s2);\n\tlen1=strlen(s1);\n len2=strlen(s2);\n\tfor(i=0;i='a'&&s1[i]<='z')\n\t\t\ts1[i]-=32;\n\t\tfor(i=0;i='a'&&s2[i]<='z')\n\t\t\t\ts2[i]-=32;\n\t\t\tif(len1<=len2)len=len2;\n\t\t\telse len=len1;\n\t\t\t\n\t\t\t\tfor(i=0;is2[i]){printf(\">\");break;}\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(i==len)printf(\"=\");\n\t\t\t\n\t\t\t\n\t\t\treturn 0;\n}"} +{"label": "95", "index": "47103", "code": "int main()\n{\n char a[80],b[80],c[80],d[80];\n int i,m,n;\n gets(a);\n gets(b);\n m=strlen(a);\n n=strlen(b);\n for(i=0;i<80;i++)\n {if(a[i]>=65&&a[i]<=90)\n\t\t c[i]=a[i]+32;\n\t else\n\t\t c[i]=a[i];\n if(b[i]>=65&&b[i]<=90)\n d[i]=b[i]+32;\n else\n\t d[i]=b[i];\n }\n if(strcmp(c,d)>0)\n\t printf(\">\");\n if(strcmp(c,d)==0)\n\t printf(\"=\");\n if(strcmp(c,d)<0)\n\t printf(\"<\");\n return 0;\n}"} +{"label": "95", "index": "47104", "code": "int main()\n{\n\tint i=0;\n\tchar str1[300],str2[300];\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;str1[i]&&str2[i];i++)\n\t{\n\t\tif(str1[i]>='a'&&str1[i]<='z')\n\t\t{\n\t\t\tstr1[i]-=32;\n\t\t}\n\t\tif(str2[i]>='a'&&str2[i]<='z')\n\t\t{\n\t\t\tstr2[i]-=32;\n\t\t}\n\t\tif(str1[i]!=str2[i])\n\t\t{\n\t\t\tprintf((str1[i]>str2[i])?\">\":\"<\");break;\n\t\t}\n\t}\n\tif(!str1[i]&&!str2[i])\n\t{\n\t\tprintf(\"=\");\n\t}\n\n\treturn 0;\n}"} +{"label": "95", "index": "47105", "code": "void main()\n{\n\tchar a[2][86];\n\tint i,j,k=0;\n\tfor(i=0;i<2;i++)\n\t\tgets(a[i]);\n\tfor(j=0;j<2;j++)\n\tfor(i=0;a[j][i]!=0;i++)\n\t{\n\t\tif(a[j][i]>='a'&&a[j][i]<='z')\n\t\t\ta[j][i]=a[j][i]-32;\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tif(a[0][i]==0||a[1][i]==0)\n\t\t{\n\t\t\tif(a[0][i]==0&&a[1][i]!=0)\n\t\t\t{k=-1;break;}\n\t\t\telse\n\t\t\t\tif(a[0][i]!=0&&a[1][i]==0)\n\t\t\t\t{k=1;break;}\n\t\t\t\telse\n\t\t\t\t{k=0;break;}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a[0][i]>a[1][i])\n\t\t{\n\t\t\tk=1;break;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a[0][i]\");\n\telse\n\t\tif(k==0)\n\t\t\tprintf(\"=\");\n\t\telse\n\t\t\tprintf(\"<\");\n}\n"} +{"label": "95", "index": "47106", "code": "/*\n * Main.cpp\n *\n * Created on: 2010-11-5\n * Author: 10010\n */\n\nint main()\n{\n\tvoid change(char str[]);\t\t\t\t//??????\n\tchar str_1[80],str_2[80];\n\n\tcin.getline(str_1,80);\t\t\t\t\t//????\n\tcin.getline(str_2,80);\n\n\tchange(str_1);\t\t\t\t\t\t\t//????\n\tchange(str_2);\n\n\tswitch(strcmp(str_1,str_2))\t\t\t\t//switch????\n\t{\n\tcase 0:cout<<'=';break;\n\tcase -1:cout<<'<';break;\n\tcase 1:cout<<'>';break;\n\t}\n\n\treturn 0;\n}\n\n\n\nvoid change(char str[])\n{\n\tint i,t;\n\tt=strlen(str);\n\tfor(i=0;i='A'&&str[i]<='Z')\n\t\t\tstr[i]-='A'-'a';\n}\n"} +{"label": "95", "index": "47107", "code": "\nint main(int argc, char* argv[])\n{\n\tchar a[80],b[80],p,q;\n\tgets(a);gets(b);\n\tint i;\n\tfor(i=0;a[i]!='\\0';i++){\n\t\tfor(p='A',q='a';p<='Z';p++,q++){\n\t\t\tif(a[i]==p) a[i]=q;\n\t\t\tif(b[i]==p) b[i]=q;\n\t\t}\n\t}\n\ti=strcmp(a,b);\n\tif(i==0) printf(\"=\\n\");\n\tif(i<0) printf(\"<\\n\");\n\tif(i>0) printf(\">\\n\");\n\treturn 0;\n}"} +{"label": "95", "index": "47108", "code": "int main()\n{\n\tchar a[80], b[80];\n\tcin.getline(a, 80);\n\tcin.getline(b, 80);\n\tint i;\n\tfor(i = 0; a[i] != '\\0' || b[i] != '\\0'; i++)\n\t{\n\t\tif(a[i] >= 65 && a[i] <= 90)\n\t\t\ta[i] = a[i] + 32;\n\t\tif(b[i] >= 65 && b[i] <= 90)\n\t\t\tb[i] = b[i] + 32;\n\t}\n\tfor(i = 0; a[i] != '\\0' && b[i] != '\\0'; i++)\n\t{\n\t\tif(a[i] == b[i])\n\t\t\tcontinue;\n\t\telse if(a[i] > b[i])\n\t\t{\n\t\t\tcout << \">\" << endl;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"<\" << endl;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(a[i] == '\\0' && b[i] == '\\0')\n\t\tcout << \"=\" << endl;\n\telse if(a[i] == '\\0' && b[i] != '\\0')\n\t\tcout << \"<\" << endl;\n\telse if(a[i] != '\\0' && b[i] == '\\0')\n\t\tcout << \">\" << endl;\n\treturn 0;\n}"} +{"label": "95", "index": "47109", "code": "\nint main()\n{\n\tint str1len,str2len,i;\n\tchar str1[101],str2[101];\n\tcin.getline(str1,101);\n\tcin.getline(str2,101);\n\tstr1len=strlen(str1);\n\tstr2len=strlen(str2);\n\tfor(i=0;i<=str1len;i++)\n\t{\n\t\tif((int)str1[i]>=97)\n\t\t{\n\t\t\tstr1[i]=(int)str1[i]-32;\n\t\t}\n\t}\n\tfor(i=0;i<=str2len;i++)\n\t\t{\n\t\t\tif((int)str2[i]>=97)\n\t\t\t{\n\t\t\t\tstr2[i]=(int)str2[i]-32;\n\t\t\t}\n\t\t}\n\tif(strcmp(str1,str2)==0) cout<<\"=\";\n\tif(strcmp(str1,str2)==-1) cout<<\"<\";\n\tif(strcmp(str1,str2)==1) cout<<\">\";\n\treturn 0;\n}"} +{"label": "95", "index": "47110", "code": "\nchar s1[100],s2[100];\n\nvoid strlwr()\n{\n int i,len1,len2;\n len1=strlen(s1);\n len2=strlen(s2);\n for (i=0;i='A' && s1[i]<='Z')\n {\n s1[i]=s1[i]-('A'-'a');\n }\n }\n for (i=0;i='A' && s2[i]<='Z')\n {\n s2[i]=s2[i]-('A'-'a');\n }\n }\n} \n\nint main()\n{\n int re;\n gets(s1);\n gets(s2);\n strlwr();\n re=strcmp(s1,s2);\n if (re==0) cout<<\"=\";\n if (re>0) cout<<\">\";\n if (re<0) cout<<\"<\";\n return 0;\n}\n"} +{"label": "95", "index": "47111", "code": "main()\n{\nstatic char x1[1000],x2[1000];\nint i,k;\ngets(x1);\ngets(x2);\nfor(i=0;x1[i]!='\\0';i++)\n if(x1[i]>=65&&x1[i]<=90)\n x1[i]=x1[i]+32;\nfor(i=0;x2[i]!='\\0';i++)\n if(x2[i]>=65&&x2[i]<=90)\n x2[i]=x2[i]+32;\nfor(i=0;x1[i]!='\\0'||x2[i]!='\\0';i++)\n if(x1[i]>x2[i])\n {printf(\">\");\n break;}\n else if(x1[i]==x2[i])\n continue;\n else {printf(\"<\");break;}\nif(x1[i]=='\\0'&&x2[i]=='\\0')\n printf(\"=\");\n}"} +{"label": "95", "index": "47112", "code": "\nint main(int argc, char* argv[])\n{\n char s1[80];\n\tchar s2[80];\n\tgets(s1);\n\tgets(s2);\n\tint a,b;\n\ta=strlen(s1);\n\tb=strlen(s2);\n\t\n\tint i;\n for(i=0;i=65&&s1[i]<=90)\n\ts1[i]=s1[i]+32;\n\t}\n\t\n\tfor(i=0;i=65&&s2[i]<=90)\n\t{s2[i]=s2[i]+32;}\n\t}\n\tint d;\n\td=strcmp(s1,s2);\n\tif(d==0)printf(\"=\\n\");\n if(d<0)printf(\"<\\n\");\n if(d>0)printf(\">\\n\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47113", "code": "int main()\n{int i,j;\nchar a[2][80];//????????\ncin.getline(a[0],79);\ncin.getline(a[1],79);\nfor(i=0;i<2;i++){\n\tfor(j=0;j<80;j++){\n\t\tif(a[i][j]=='\\0') break;\n\t\tif(a[i][j]>96&&a[i][j]<123){\n\t\t\ta[i][j]=a[i][j]-32;\n\t\t}\n\t}\n\t}//???????????????\nif(strcmp(a[0],a[1])==0) cout<<'='<0) cout<<'>'<='A')&&(s[j][i]<='Z'))\n s[j][i]=s[j][i]+32;\n i++;\n\t\t\t\t}\n\t }\n int k=0;\n k=strcmp(s[0],s[1]);\n if(k>0) cout<<\">\"<';break;} \n\t\t\t}\n\t\t\tif(str1[i]>str2[i]) \n\t\t\t{\n\t\t\t if((str1[i]+j)';break;} \n\t\t\t}\n\t\t}\n\t\tn++;\n\t}\n\tif (n==(len1+1)) cout<<'=';\nreturn 0;\n}"} +{"label": "95", "index": "47116", "code": "/*\n * 1000012702_30.cpp\n *\n * Created on: 2010-11-11\n * Author: shirley\n */\nint main(){\n\tchar str1[80]={0},str2[80]={0};\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\n\tint i;\n\tfor(i=0;i<=79;i++){\n\t\tif(str1[i]>=97) str1[i]=str1[i]-32;\n\t\tif(str2[i]>=97) str2[i]=str2[i]-32;\n\t\tif(str1[i]==str2[i])continue;\n\t\tif(str1[i]>str2[i]){\n\t\t\tcout<<'>'<='A' && c<='Z')\n\t\t{\n\t\t\tb[0][j]=c+32;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[0][j]=c;\n\t\t}\n\t}\n\tb[0][j]='\\0'; /*?????????????????*/\n\tfor (j=0;(c=a[1][j])!='\\0';j++)\n\t{\n\t\tif (c>='A' && c<='Z')\n\t\t{\n\t\t\tb[1][j]=c+32;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[1][j]=c;\n\t\t}\n\t}\n\tb[1][j]='\\0'; /*????*/\n\tif (strcmp(b[0],b[1])>0)\n\t{\n\t\tprintf(\">\");\n\t}\n\telse if (strcmp(b[0],b[1])<0)\n\t{\n\t\tprintf(\"<\");\n\t}\n\telse if (strcmp(b[0],b[1])==0)\n\t{\n\t\tprintf(\"=\");\n\t}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47118", "code": "int main()\n{\n\tint h=0;\n\tchar a[100],b[100],i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]!=b[i]&&a[i]!=b[i]+32&&a[i]!=b[i]-32)\n\t\t{if(a[i]>96&&b[i]>96&&a[i]>b[i])\n\t\th=2;\n\t\telse if(a[i]<96&&b[i]<96&&a[i]>b[i])\n\t\th=2;\n\t\telse if(a[i]<96&&b[i]<96&&a[i]96&&b[i]>96&&a[i]96&&b[i]<96&&a[i]>(b[i]+32))\n\t\th=2;\n\t\telse if(a[i]>96&&b[i]<96&&a[i]<(b[i]+32))\n\t\th=1;\n\t\telse if(a[i]<96&&b[i]>96&&a[i]>(b[i]-32))\n\t\th=2;\n\t\telse if(a[i]<96&&b[i]>96&&a[i]<(b[i]-32))\n\t\th=1;\n\t}} \n\tif(h==0)\n\t\tprintf(\"=\");\n\telse if(h==1)\n\t\tprintf(\"<\");\n\telse if(h==2)\n\t\tprintf(\">\");\n\treturn(0);\n\t}"} +{"label": "95", "index": "47119", "code": "int main(){\n\tint i,n;\n\tchar a[100],b[100],t;\n\tgets(a);gets(b);\n\tfor(i=0;a[i]!=0&&b[i]!=0;i++){\n\t\tif(a[i]>'A'&&a[i]<'Z')\n\t\t\ta[i]=a[i]-'A'+'a';\n\t\tif(b[i]>'A'&&b[i]<'Z')\n\t\t\tb[i]=b[i]-'A'+'a';\n\t}\n\tn=strcmp(a,b);\n\tif(n>0)\n\t\tt='>';\n\telse if(n==0)\n\t\tt='=';\n\telse\n\t\tt='<';\n\tprintf(\"%c\\n\",t);\n\treturn 0;\n}\n"} +{"label": "95", "index": "47120", "code": "void main()\n\n{\n char a[80],b[80];\n gets(a);\n printf(\"\\n\");\n gets(b);\n int i;\n for(i=0;i<80;i++)\n {\n\t if('A'<=a[i]&&a[i]<='Z') a[i]=a[i]-'A'+'a';\n\t if('A'<=b[i]&&b[i]<='Z') b[i]=b[i]-'A'+'a';\n }\n if(strcmp(a,b)>0) putchar('>');\n\t if(strcmp(a,b)==0) putchar('=');\n\t\t if(strcmp(a,b)<0) putchar('<');\n \n\n\n\t\t\n\n\n}\n"} +{"label": "95", "index": "47121", "code": "/*\n * homework_029.cpp\n * name????????????\n * Created on: 2011-10-25\n * Author: zhujile\n */\nint main(){\n\tchar a[2][80]; //????????????????\n\tchar c; //????\n\tint i,w1,w2,min; //w1?w2???????????min???????\n\tfor (i=0;(c=getchar())!='\\n';i++) //??????????????\n\t\ta[0][i]=c;\n\tw1=i; //????\n\tfor (i=0;(c=getchar())!='\\n';i++) //??????????????\n\t\ta[1][i]=c;\n\tw2=i; //????\n\tfor (i=0;i=65&&a[0][i]<=90)\n\t\t\ta[0][i]+=32;\n\tfor (i=0;i=65&&a[1][i]<=90)\n\t\t\ta[1][i]+=32;\n\tif (w1<=w2) min=w1; //???????\n\telse min=w2;\n\tfor (i=0;ia[1][i])\n\t\t {\n\t \tcout<<\">\"<\n\t \t\tcout<<\">\"<64&&x<91) return(x+32);\n else return x;\n }\n\nint main()\n{char a[81],b[81],i;\n cin.getline(a,81);\n cin.getline(b,81);\n i=0;\nfor(;;)\n {if(change(a[i])>change(b[i])) {cout<<'>';break;}\n else if(change(a[i])='A')&&(s1[i]<='Z'))\ns1[i]=s1[i]+32;\n}\nfor(i=0;s2[i]!='\\0';i++)\n{ if((s2[i]>='A')&&(s2[i]<='Z'))\ns2[i]=s2[i]+32;\n}\nif(strcmp(s1,s2)==0)\n{printf(\"=\");}\nif(strcmp(s1,s2)>0)\n{printf(\">\");}\nif(strcmp(s1,s2)<0)\n{printf(\"<\");}\nreturn 0;\n}"} +{"label": "95", "index": "47126", "code": "void main()\n{\n\tint i,flag,n;\n\tchar a[100],b[100];\n\tgets(a);\n\tgets(b);\n\tn=strlen(a);\n\tflag=0;\n\tfor(i=0;i='a')\n\t\t\t\ta[i]-='a'-'A';\n\t\t\tif(b[i]>='a')\n\t\t\t\tb[i]-='a'-'A';\n\t\t\tif(a[i]!=b[i])\n\t\t\t{\n\t\t\t\tflag=(a[i]>b[i])?1:-1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(flag==0)\n\t\tprintf(\"=\");\n\telse if(flag==1)\n\t\tprintf(\">\");\n\telse\n\t\tprintf(\"<\");\n}\n"} +{"label": "95", "index": "47127", "code": "/*\n * 39.cpp\n * ??????\n * Created on: 2011-10-26\n * ????????strcmp????????????????????????????????????ASCII????????????????????'\\0'????????????????????????????????????????????????????????????????????????????????\"Hello\"?\"hello\"????????????????????????????????????????????\n */\n\nint main()\n{\n\tint i,t;\n\tchar a[82],b[82];\n\tcin.getline(a,82);\n\tcin.getline(b,82);\n\tfor(i=0;i<82;i++)\n\t{\n\t\tt=(int)a[i];\n\t\tif((t<=90)&&(t>=65))\n\t\t{\n\t\t\tt=t+32;\n\t\t\ta[i]=(char)t;\n\t\t}\n\t}\n\tfor(i=0;i<82;i++)\n\t{\n\t\tt=(int)b[i];\n\t\tif((t<=90)&&(t>=65))\n\t\t{\n\t\t\tt=t+32;\n\t\t\tb[i]=(char)t;\n\t\t}\n\t}\n\tif(strcmp(a,b)>0) cout<<\">\"<=97)&&(a[i]<=122))\n{\na[i]=a[i]-32;\n}\n}\nfor(i=0;(b[i]!='\\0');i++)\n{\nif((b[i]>=97)&&(b[i]<=122))\n{\nb[i]=b[i]-32;\n}\n}\nif(strcmp(a,b)>0)\nprintf(\">\");\nif(strcmp(a,b)<0)\nprintf(\"<\");\t\nif(strcmp(a,b)==0)\nprintf(\"=\");\n\t\t\n}\n"} +{"label": "95", "index": "47129", "code": "void main()\n{\n\t\n\tchar str[2][80];\n\tint i,j;\n\tfor(i=0;i<2;i++)\n\t{\n\t\tgets(str[i]);\n\t\tfor(j=0;j<80;j++)\n\t\t\tif((str[i][j])>='a'&&(str[i][j])<='z')\n\t\t\t(str[i][j])=(str[i][j])-32;\n\t\telse (str[i][j])=(str[i][j]);\n\t}\n\tif(strcmp(str[0],str[1])>0)\n\t\tprintf(\">\");\n\telse if(strcmp(str[0],str[1])<0)\n\t\tprintf(\"<\");\n\telse if(strcmp(str[0],str[1])==0)\n\t\tprintf(\"=\");\n\t\n}\n\n\t"} +{"label": "95", "index": "47130", "code": "int main()\n{int n,i;\n\tchar s[80],k[80];\ngets(s);\ngets(k);\nfor (n=0;n<81;n++)\n{if ((s[n]<='z')&&(s[n]>='a'))\n s[n]-=32;\nif ((k[n]<='z')&&(k[n]>='a'))\n k[n]-=32;\n}\n\n\nfor (i=0;i<81;i++)\n{if (s[i]==k[i])\n\t{if ((s[i]==0)&&(k[i]==0))\n\t\t{printf(\"=\");break;}\n\telse continue;\n\t}\nif (s[i]>k[i])\n{printf(\">\");break;}\nif (s[i]='a')\n\t\t{\n\t s1[i]=s1[i]-32;\n\t\t}\n\t}\n\tfor (i=0;s2[i]!='\\0';i++)\n\t{\n\t\tif (s2[i]<='z'&&s2[i]>='a')\n\t\t{\n\t\t\ts2[i]=s2[i]-32;\n\t\t}\n\t}\n\ti=strcmp(s1,s2);\n\tif (i==0)\n\t\tprintf (\"=\");\n\telse if (i<0)\n\t\tprintf (\"<\");\n\telse if (i>0)\n\t\tprintf (\">\");\n\treturn 0;\n}\n\n\n"} +{"label": "95", "index": "47132", "code": "main()\n{\n\tchar ch1[80],ch2[80],a;\n\tint i,j;\n\tgets(ch1);\n\tgets(ch2);\n\tfor(i=0;(ch1[i]!='\\0')&&(ch2[i]!='\\0');i++)\n\t{ \n\t\tif(ch1[i]>90)\n\t\t\tch1[i]=ch1[i]-32;\n\t\tif(ch2[i]>90)\n\t\t\tch2[i]=ch2[i]-32;\n\t\tj=ch1[i]-ch2[i];\n\t\tif(j!=0)\n\t\t{\n\t\t\tif(j<0)\n\t\t\t\ta='<';\n\t\t\telse\n\t\t\t\ta='>';\n\t\t\tbreak;\n\t\t}\n\t\telse \n\t\t\ta='=';\n\t}\n printf(\"%c\",a);\n\treturn 0;\n}"} +{"label": "95", "index": "47133", "code": "int main()\n{\n\tchar a[81],b[81]; //???????\n\tint i,m; //??i?m\n\tcin.getline(a,80); //?????\n\tcin.getline(b,80);\n\ti=0;\n\twhile (a[i]!='\\0') //????????????\n\t {\n\t if ('A'<=a[i]&&a[i]<='Z')\n\t {\n\t \t a[i]=a[i]+32;\n\t }\n\t i++;\n\t }\n\ti=0;\n\twhile (b[i]!='\\0')\n\t\t{\n\t\t if ('A'<=b[i]&&b[i]<='Z')\n\t\t {\n\t\t \tb[i]=b[i]+32;\n\t\t }\n\t\t i++;\n\t\t}\n\tm=strcmp(a,b); //???\n\tswitch(m) //????\n\t{\n\tcase 0: cout<<\"=\"<\"<64&&a[i]<91) a[i]=a[i]+32;\n\t\tif(b[i]>64&&b[i]<91) b[i]=b[i]+32;\n\t}\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]='A'&&a[i]<='Z')\n\t\t\ta[i]+=32;\n\t}\n\tlen=strlen(b);\n\tfor(i=0;i='A'&&b[i]<='Z')\n\t\t\tb[i]+=32;\n\t}\n\tfor(i=0;(a[i]!='\\0')||(b[i]!='\\0');i++){\n\t\tif(a[i]>b[i]){\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]='A'&&c[i]<='Z')\n\t\t\tc[i]=c[i]+32;\n\t}\n\tfor(i=0;i<=l-1;i++)\n\t{\n\t\tif(d[i]>='A'&&d[i]<='Z')\n\t\t\td[i]=d[i]+32;\n\t}\n\tt=strcmp(c,d);\n\tif(t<0)\n\t\tprintf(\"<\");\n\tif(t==0)\n\t\tprintf(\"=\");\n\tif(t>0)\n\t\tprintf(\">\");\n\t\n\treturn 0;\n}"} +{"label": "95", "index": "47137", "code": "int main() \n{\n\tchar a[80],b[80];\n\tcin.getline(a,80);\n\tcin.getline(b,80);\n\tint i;\n\tfor(i=0;i<80;i++)\n\t\ta[i]=(a[i]>='A'&&a[i]<='Z')? (a[i]+32):a[i];\n\tfor(i=0;i<80;i++)\n\t\tb[i]=(b[i]>='A'&&b[i]<='Z')? (b[i]+32):b[i];\n if(strcmp(a,b)==0)cout<<\"=\"<\"<='A')\n\t\t\tch1[i]=ch1[i]-'A'+'a';\n\t}\n\tfor(i=0;i='A')\n\t\t\tch2[i]=ch2[i]-'A'+'a';\n\t}\n\n\tint judge=strcmp(ch1,ch2);\n\tif(judge<0)\n\t\tprintf(\"<\");\n\telse if(judge>0)\n\t\tprintf(\">\");\n\telse if(judge==0)\n\t\tprintf(\"=\");\n}\n\n\n"} +{"label": "95", "index": "47139", "code": "int main()\n{\n\tchar str1[100],str2[100];\n\tint i=0,j=0,t=0,k=0;\n\tgets(str1);\n\tgets(str2);\n\twhile(str1[i]!=0)\n\t{\n\t\tif(str1[i]>='A'&&str1[i]<='Z')\n\t\t\tstr1[i]=str1[i]+32;\n\t\ti++;\n\t}\n\twhile(str2[j]!=0)\n\t{\n\t\tif(str2[j]>='A'&&str2[j]<='Z')\n\t\t\tstr2[j]=str2[j]+32;\n\t\tj++;\n\t}\n\twhile(t==0 && str1[k]!=0 && str2[k]!=0)\n\t{\tt=str1[k]-str2[k];\n\tk++;\n\t}\n\tif(t!=0)\n\t{\n\t\tif(t>0)\n\t\tprintf(\">\");\n\telse \n\t\tprintf(\"<\");\n\t}\n\telse\n\t\tprintf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47140", "code": "int main()\n{\n char a[100],b[100];\n int i,len;\n gets(a);\n gets(b);\n len=strlen(a);\n for(i=0;i='a'&&a[i]<='z')\n a[i]-=32;\n if(b[i]>='a'&&b[i]<='z')\n b[i]-=32;\n \n if (a[i]>b[i])\n { \n printf(\">\");\n break;\n } \n \n else\n if(a[i]=len)\n printf(\"=\");\n}"} +{"label": "95", "index": "47141", "code": "int main()\n{\n\tchar a[80] , b[80];int m=0;\n\tfor (int i=0;i<80;i++)\n\t{\n\t a[i]='\\0';\n\t b[i]='\\0';\n\t}\n\tcin.getline(a ,80,'\\n');//??????????\n\tcin.getline(b ,80,'\\n');\n\tfor (int i=0;i<80;i++)//???????????????\n\t{\n\t if (a[i]>90)\n\t\t a[i]=a[i]-32;\n\t}\n\tfor (int i=0;i<80;i++)\n\t{\n\t if (b[i]>90)\n\t\t b[i]=b[i]-32;\n\t}\n\tfor (int i=0;i < 80;i++)\n\t{//?????????????????????????\n\t if ((a[i]-b[i])!=32 && (b[i]-a[i])!=32 && (a[i]-b[i]!=0)) \n\t {\n\t if (a[i]b[i]) \n\t {\n\t\t cout <<\">\"< 0)\n printf(\">\\n\");\n else if (t < 0)\n printf(\"<\\n\");\n return 0;\n}\n"} +{"label": "95", "index": "47143", "code": "void main()\n{\n\tchar l1[80],l2[80];\n\tint i=0,a=0,b=0;\n\tgets(l1);\n\tgets(l2);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(l1[i]>='A'&&l1[i]<='Z')\n\t\t\tl1[i]=l1[i]+32;\n\t\tif(l2[i]>='A'&&l2[i]<='Z')\n\t\t\tl2[i]=l2[i]+32;\n\t}\nif(strcmp(l1,l2)>0) printf(\">\");\n\tif(strcmp(l1,l2)<0) printf(\"<\");\n\tif(strcmp(l1,l2)==0) printf(\"=\");\n}"} +{"label": "95", "index": "47144", "code": "\nchar a[80],b[80];\nint n,m;\nint i,j;\n\n/*\n\nint min(int x,int y)\n{\n if(x>y) return y;\n return x;\n}\n\nchar compare()\n{\n int l=min(n,m);\n for(int i=0;ilower(b[i])) return '>'; \n }\n if (nm) return '>';\n return '=';\n}*/\n\nchar lower(char x)\n{\n if(x>='A' && x<='Z')\n return x+'a'-'A';\n return x;\n}\n\nchar tochar(int m)\n{\n if(m>0) return '>';\n if(m<0) return '<';\n return '=';\n}\n\nvoid toLowerArray(char x[],int len)\n{\n for(int j=0;jnb?na:nb);\n for(i=0;i=65)&&(ca[i]<=90))\n ca[i]=ca[i]+32;\n if((cb[i]>=65)&&(cb[i]<=90))\n cb[i]=cb[i]+32;\n }\n if(strcmp(ca,cb)>0) printf(\">\");\n else if(strcmp(ca,cb)<0) printf(\"<\");\n else printf(\"=\");\n}"} +{"label": "95", "index": "47146", "code": "int main()\n{\n\tchar str1[90],str2[90];\n\tint i,m,n,s=0;\n\tgets(str1); gets(str2);\n\tm=strlen(str1);n=strlen(str2);\n\tfor(i=0;i='a') str1[i]=str1[i]-'a'+'A';\n\t\tif(str2[i]>='a') str2[i]=str2[i]-'a'+'A';\n\t\tif(str1[i]>str2[i]) { printf(\">\"); s+=1; break;}\n\t\tif(str1[i]='A'&&str1[i]<='Z')\n\t\t\tstr1[i]=str1[i]+32;\n\t}\n\tfor(i=0;i='A'&&str2[i]<='Z')\n\t\t\tstr2[i]=str2[i]+32;\n\t}\n\tfor(i=0;istr2[i])\n\t\t{b++;break;}\n\t\telse if(str1[i]\\n\");\n}\n"} +{"label": "95", "index": "47148", "code": "void main()\n{\n\tchar a[100],b[100];\n\tchar g,h;\n\tint i,n1,n2;\n\tgets(a);\n\tgets(b);\n\tn1=strlen(a);\n\tn2=strlen(b);\n\n\n\tfor(i=0;i0)\n\t\tprintf(\">\");\n}\n"} +{"label": "95", "index": "47149", "code": "int main()\n{\n int i,j,l,p,h;\n char a[1000],b[1000];\n gets(a);\n gets(b);\n l=strlen(a);\n h=strlen(b);\n for(i=0;i=65&&a[i]<=90)\n a[i]=a[i]+32;\n }\n for(p=0;p=65&&b[p]<=90)\n b[p]=b[p]+32;\n } \n if(l>=h)\n {\n for(j=0;jb[j])\n {printf(\">\");break;}\n if(a[j]b[j])\n {printf(\">\");break;}\n if(a[j]=65 && a[i]<=90 )\n {\n a[i]+=32; \n }\n sum1+=a[i]; \n }\n for(i=0;i=65 && b[i]<=90 )\n {\n b[i]+=32; \n }\n sum2+=b[i]; \n }\n \n if(sum1>sum2)\n {\n cout<<\">\"; \n }\n else if(sum1>h;\n return 0;\n \n \n }\n"} +{"label": "95", "index": "47151", "code": "//????????????????\n//?????2011?11?2?\n//???????\nint main()\n{\nchar str1[80],str2[80]; //?????\ncin.getline(str1,80); //?????\ncin.getline(str2,80);\nint i;\nfor(i=0;i0)\ncout<<\">\";\nreturn 0;\n}"} +{"label": "95", "index": "47152", "code": "int main()\n{\n\tint i;\n\tchar a[80],b[80];\n gets(a);\n gets(b);\n for (i=0;i0)\n\t printf(\">\");\n\t if (strcmp(a,b)<0)\n\t printf(\"<\");\n\n}\n\n\n\n"} +{"label": "95", "index": "47153", "code": "int main()\n{\n\tint i,j,n;\n\tchar a[2][100];\n\tgets(a[0]);\n\tgets(a[1]);\n\tfor(i=0;i<2;i++)\n\t{\n\t\tfor(j=0;a[i][j]!='\\0';j++)\n\t\t{\n\t\t\tif(a[i][j]<='z'&&a[i][j]>='a')\n\t\t\t\ta[i][j]-=32;\n\t\t}\n\t}\n\tn=strcmp(a[0],a[1]);\n\tif(n==1)\n\t\tprintf(\">\");\n\telse if(n==0)\n\t\tprintf(\"=\");\n\telse if(n==-1)\n\t\tprintf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47154", "code": "int main(int argc, char* argv[])\n{\n\tchar s[81],m[81];\n\tgets(s);\n\tgets(m);\n\tint a, b, i;\n\ta=strlen(s);\n\tb=strlen(m);\n\tfor(i=0;i='a'&&s[i]<='z')\n\t\t\ts[i]=s[i]-32;\n\t}\n\tfor(i=0;i='a'&&m[i]<='z')\n\t\t\tm[i]=m[i]-32;\n\t}\n\tint c,k=0;\n\tif(a>=b)\n\t\tc=a;\n\telse\n\t\tc=b;\n\tfor(i=0;im[i]){\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(s[i]='A'&&s[i]<='Z') s[i]=s[i]-'A'+'a';\n \n\t for(i=0;i<=80;i++)\n\tif(b[i]>='A'&&b[i]<='Z') b[i]=b[i]-'A'+'a';\n\t\n if(strcmp(s,b)>0) printf(\">\");\n if(strcmp(s,b)<0) printf(\"<\"); \n if(strcmp(s,b)==0) printf(\"=\");\nreturn 0;\n}"} +{"label": "95", "index": "47156", "code": "int main(int argc, char** argv[])\n{ char s1[80],s2[80];\nint i;\n gets(s1);\n\t gets(s2);\n\t for(i=0;i<80;i++){\n\t\t if(s1[i]>=97&&s1[i]<=122){\n\t\t\t s1[i]=s1[i]-32;}\n if(s2[i]>=97&&s2[i]<=122){\n\t\t\t s2[i]=s2[i]-32;}\n\t }\n\n\n\t if(strcmp(s1,s2)==0){\n\t\t printf(\"=\");}\n\t if(strcmp(s1,s2)>0){\n\t\t printf(\">\");}\n\t if(strcmp(s1,s2)<0){printf(\"<\");}\n\t return 0;\n\t }\n\n"} +{"label": "95", "index": "47157", "code": "void main()\n{\nchar a[100],b[100];\nint la,lb,i,sa=0,sb=0;\ngets(a);\ngets(b);\nla=strlen(a);\nlb=strlen(b);\nfor(i=0;i96 && a[i]<123) sa+=a[i];\n else if(a[i]>64 && a[i]<91) sa+=a[i]+32;\n}\nfor(i=0;i96 && b[i]<123) sb+=b[i];\n else if(b[i]>64 && b[i]<91) sb+=b[i]+32;\n}\nif(sa>sb) printf(\">\");\nelse if(sa= 'a')\n\t\t\tstr1[i] -= 32;\n\t\tif(str2[i] >= 'a')\n\t\t\tstr2[i] -= 32;\n\t\tif(str1[i] != str2[i])\n\t\t{\n\t\t\tif(str1[i] > str2[i])\n\t\t\t{\n\t\t\t\tcout << \">\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(str1[i] < str2[i])\n\t\t\t{\n\t\t\t\tcout << \"<\" ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(i == n)\n\t\tcout << \"=\";\n\treturn 0;\n}\nint max(int a,int b)\n{\n\tif(a >= b)\n\t\treturn a;\n\tif(a < b)\n\t\treturn b;\n}"} +{"label": "95", "index": "47159", "code": "int main(int argc, char* argv[])\n{\n\tchar s1[80];\n\tchar s2[80];\n\tgets(s1);\n\tgets(s2);\n\tint i,p=0,q=0;\n\tfor(i=0;s1[i]!='\\0';i++)\n\t{\n\t\tif(s1[i]<='Z'&&s1[i]>='A')\n\t\t\ts1[i]=s1[i]+32;\n\t}\n\tfor(i=0;s2[i]!='\\0';i++)\n\t{\n\t\tif(s2[i]<='Z'&&s2[i]>='A')\n\t\t\ts2[i]=s2[i]+32;\n\t}\n\tfor(i=0;s1[i]!='\\0'&&s2[i]!='\\0';i++)\n\t{\n\t\tif(s1[i]==s2[i])\n\t\t\tcontinue;\n\t\tif(s1[i]>s2[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tp=1;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\tif(s1[1]b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\te--;\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]0) printf(\">\");\n\telse if(strcmp(a,b)<0) printf(\"<\");\n\telse printf(\"=\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47162", "code": "\nint main()\n{char c1[80],c2[80];\ngets(c1);\ngets(c2);\nint i,j=0;\n\nfor (i=0;i<=80;i++)\n{if (c1[i]>='a'&&c1[i]<='z') c1[i]=c1[i]-32;}\nfor (i=0;i<=80;i++)\n{if (c2[i]>='a'&&c2[i]<='z') c2[i]=c2[i]-32;}\n\nif (strcmp(c1,c2)>0) printf(\">\");\nif (strcmp(c1,c2)<0) printf(\"<\");\nif (strcmp(c1,c2)==0) printf(\"=\");\n\n\n\n }\n"} +{"label": "95", "index": "47163", "code": "void main()\n{\n char a[80],b[80];\n int i,j;\n gets(a);gets(b);\n for (i=0;i<=strlen(a)-1;i++)\n if ((a[i]>=65)&&(a[i]<=96))\n a[i]=a[i]+32;\n for (i=0;i<=strlen(b)-1;i++)\n if ((b[i]>=65)&&(b[i]<=96))\n b[i]=b[i]+32;\n j=strcmp(a,b);\n if (j==0)\n printf(\"=\\n\");\n else if (j>0)\n printf(\">\\n\");\n else printf(\"<\\n\");\n}"} +{"label": "95", "index": "47164", "code": "/*\n * 30.cpp\n *\n * Created on: 2010-11-9\n * Author: l000012910\n */\nint main(){\n\tint k=0,i;//\n\tchar a[80],b[80];//?????????\n\tcin.getline(a,80);//\n\tcin.getline(b,80);//??????\n\tfor(i=0;i<80;i++)\n\t{\n\t\tswitch(b[i]){\n\t\tcase 'a':b[i]='A';break;\n\t\tcase 'b':b[i]='B';break;\n\t\tcase 'c':b[i]='C';break;\n\t\tcase 'd':b[i]='D';break;\n\t\tcase 'e':b[i]='E';break;\n\t\tcase 'f':b[i]='F';break;\n\t\tcase 'g':b[i]='G';break;\n\t\tcase 'h':b[i]='H';break;\n\t\tcase 'i':b[i]='I';break;\n\t\tcase 'j':b[i]='J';break;\n\t\tcase 'k':b[i]='K';break;\n\t\tcase 'l':b[i]='L';break;\n\t\tcase 'm':b[i]='M';break;\n\t\tcase 'n':b[i]='N';break;\n\t\tcase 'o':b[i]='O';break;\n\t\tcase 'p':b[i]='P';break;\n\t\tcase 'q':b[i]='Q';break;\n\t\tcase 'r':b[i]='R';break;\n\t\tcase 's':b[i]='S';break;\n\t\tcase 't':b[i]='T';break;\n\t\tcase 'u':b[i]='U';break;\n\t\tcase 'v':b[i]='V';break;\n\t\tcase 'w':b[i]='W';break;\n\t\tcase 'x':b[i]='X';break;\n\t\tcase 'y':b[i]='Y';break;\n\t\tcase 'z':b[i]='Z';break;\n\t\tdefault:continue;}//???????????????\n\n\t}\n\tfor(i=0;i<80;i++)\n\t\t{\n\t\t\tswitch(a[i]){\n\t\t\tcase 'a':a[i]='A';break;\n\t\t\tcase 'b':a[i]='B';break;\n\t\t\tcase 'c':a[i]='C';break;\n\t\t\tcase 'd':a[i]='D';break;\n\t\t\tcase 'e':a[i]='E';break;\n\t\t\tcase 'f':a[i]='F';break;\n\t\t\tcase 'g':a[i]='G';break;\n\t\t\tcase 'h':a[i]='H';break;\n\t\t\tcase 'i':a[i]='I';break;\n\t\t\tcase 'j':a[i]='J';break;\n\t\t\tcase 'k':a[i]='K';break;\n\t\t\tcase 'l':a[i]='L';break;\n\t\t\tcase 'm':a[i]='M';break;\n\t\t\tcase 'n':a[i]='N';break;\n\t\t\tcase 'o':a[i]='O';break;\n\t\t\tcase 'p':a[i]='P';break;\n\t\t\tcase 'q':a[i]='Q';break;\n\t\t\tcase 'r':a[i]='R';break;\n\t\t\tcase 's':a[i]='S';break;\n\t\t\tcase 't':a[i]='T';break;\n\t\t\tcase 'u':a[i]='U';break;\n\t\t\tcase 'v':a[i]='V';break;\n\t\t\tcase 'w':a[i]='W';break;\n\t\t\tcase 'x':a[i]='X';break;\n\t\t\tcase 'y':a[i]='Y';break;\n\t\t\tcase 'z':a[i]='Z';break;\n\t\t\tdefault:continue;}\n\t\t}//?????????????\nk=strcmp(a,b);//?k???k=1?????-1??a?b.1??a?b\nif(k==0)\n\tcout<<\"=\"<\"<64&&c[i]<91) c[i]=c[i]+32;\n\telse if(d[i]>64&&d[i]<91) d[i]=d[i]+32;\n\tsumc=sumc+c[i];\n\tsumd=sumd+d[i];\n }\nif(sumc>sumd)\n printf(\">\");\nelse if(sumc='a')&&(str1[i]<='z'))\nstr1[i]=str1[i]-'a'+'A';\nfor(i=0;str2[i]!='\\0';i++)\nif((str2[i]>='a')&&(str2[i]<='z'))\nstr2[i]=str2[i]-'a'+'A';\nif(strcmp(str1,str2)>0)\nprintf(\">\");\nelse \nif(strcmp(str1,str2)<0)\nprintf(\"<\");\nelse\nprintf(\"=\");}\n"} +{"label": "95", "index": "47167", "code": "int main()\n{\n\tchar sen1[81],sen2[80];\n\tcin.getline(sen1,80);\n\tcin.getline(sen2,80);//????? \n\tint n = strlen(sen1), m = strlen(sen2);\n\tfor (int i = 0; i < n; i++) sen1[i] = tolower(sen1[i]);\n\tfor (int i = 0; i < m; i++) sen2[i] = tolower(sen2[i]);//????? \n\tputs(strcmp(sen1,sen2)==0?\"=\":(strcmp(sen1,sen2)>0?\">\":\"<\"));//??????? \n\treturn 0;\n}"} +{"label": "95", "index": "47168", "code": "\nint min(int x,int y)\n{\n return (x='a'&&str1[i]<='z') str1[i]=str1[i]-x;\n if(str2[i]>='a'&&str2[i]<='z') str2[i]=str2[i]-x;\n \n if(str1[i]>str2[i]) {ans='>'; break;}\n \n else if(str2[i]>str1[i]) {ans='<'; break;}}\n cout<='A'&&a[i]<='Z')\n\t\t\ta[i]+=32;\n\tfor(i=0;b[i]!='\\0';i++)\n\t\tif(b[i]>='A'&&b[i]<='Z')\n\t\t\tb[i]+=32;\n\tif(strlen(a)>strlen(b)) n=strlen(a);\n\telse n=strlen(b);\n\tfor(i=0;ib[i])\n\t\t{printf(\">\\n\");break;}\n\t\tif(a[i]='a') a[i]-=32;\n if(b[i]>='a') b[i]-=32;\n if(a[i]>b[i])\n {\n cout << '>';\n f=0;\n break;\n }\n else if(a[i]';\n else if(f&&lena='A')&&(strf[i]<='Z'))\n\t\t{\n\t\t\tstrf[i]=strf[i]-'A'+'a';\n\t\t}\n\t}\n for(i=0;i='A')&&(strs[i]<='Z'))\n\t\t{\n\t\t\tstrs[i]=strs[i]-'A'+'a';\n\t\t}\n\t}\n\t\n\t\n\tif (strcmp(strf,strs)<0)\n\t{\n\t\tprintf(\"<\");\n\t}\n\telse if (strcmp(strf,strs)>0)\n\t{\n\t\tprintf(\">\");\n\t}\n else if (strcmp(strf,strs)==0)\n\t{\n\t\tprintf(\"=\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47172", "code": "int main()\n{\n\tint i=0;\n\tchar s[1000],t[1000],c;\n\tgets(s);\n\tgets(t);\n\twhile(s[i]!='\\0') \n\t{\n\t if(s[i]>=65&&s[i]<=90) \n\t\t{\n\t\t\tc=s[i];\n\t\t\ts[i]=c+'a'-'A';\n\t\t}\n\t\ti++;\n\t}\n\ti=0;\n\twhile(t[i]!='\\0') \n\t{\n\t if(t[i]>=65&&t[i]<=90) \n\t\t{\n\t\t\tc=t[i];\n\t\t\tt[i]=c+'a'-'A';\n\t\t}\n\t\ti++;\n\t}\n\tif(strcmp(s,t)==0) putchar('=');\n\telse if(strcmp(s,t)>0) putchar('>');\n\telse putchar('<');\n\tputchar('\\n');\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47173", "code": "int main (){\nint i,j;\nchar a[81],b[81];\ngets(a);\ngets(b);\nfor (i=0;a[i]!='\\n';i++){\nif (a[i]>='a'&&a[i]<='z')\na[i]+='A'-'a';\n}\nfor (j=0;b[j]!='\\n';j++){\nif (b[j]>='a'&&b[j]<='z')\nb[j]+='A'-'a';\n}\nif (strcmp(a,b)<0)\nprintf(\"<\");\nelse if (strcmp(a,b)>0)\nprintf (\">\");\nelse\nprintf (\"=\");\nreturn 0;\n}"} +{"label": "95", "index": "47174", "code": "int main()\n{\nchar a[100],b[100];\nint i;\ngets(a);\ngets(b);\nfor(i=0;i<=99;i++)\n{if(a[i]>=97) a[i]=a[i]-32;}\nfor(i=0;i<=99;i++)\n{if(b[i]>=97) b[i]=b[i]-32;}\n\nif(strcmp(a,b)>0) printf(\">\\n\");\nif(strcmp(a,b)<0) printf(\"<\\n\");\nif(strcmp(a,b)==0) printf(\"=\\n\");\nreturn 0;\n}"} +{"label": "95", "index": "47175", "code": "main()\n{\n\tint k,i;\n\tchar str1[80],str2[80];\n\tgets(str1);\n\tgets(str2);\nfor(i=0;str1[i]!='\\0';i++)\n str1[i]=toupper(str1[i]);\nfor(i=0;str2[i]!='\\0';i++)\n str2[i]=toupper(str2[i]);\nif(strcmp(str1,str2)==0) k=0;\nif(strcmp(str1,str2)>0) k=1;\nif(strcmp(str1,str2)<0) k=-1;\n\tif(k==0) printf(\"=\\n\");\n\telse if(k==1) printf(\">\\n\");\n\telse if(k==-1) printf(\"<\\n\");\n}"} +{"label": "95", "index": "47176", "code": "int main()\n{\n\tchar a[81],b[81];\n\tcin.getline(a,81);\n\tcin.getline(b,81);\n\tfor(int i=0;i=97) a[i]=a[i]-32;\n\t\t}\n\tfor(int i=0;i=97) b[i]=b[i]-32;\n\t}\n\tif(strcmp(a,b)<0) cout<<\"<\"<0) cout<<\">\"<='A' && a[i]<='Z') a[i]+=32;\n\n\tfor(i=0;i='A' && b[i]<='Z') b[i]+=32;\n\n\tif(strcmp(a,b)==0) printf(\"=\");\n\telse if(strcmp(a,b)>=0) printf(\">\");\n\telse printf(\"<\");\n}"} +{"label": "95", "index": "47178", "code": "\nint main()\n{\nchar s1[80],s2[80];\nint i,p=0,a,b;\ngets(s1);\ngets(s2);\na=strlen(s1);\nb=strlen(s2);\nfor(i=0;i<80;i++)\n{if(s1[i]>=65&&s1[i]<=90) s1[i]=s1[i]+32;}\nfor(i=0;i<80;i++)\n{if(s2[i]>=65&&s2[i]<=90) s2[i]=s2[i]+32;}\n\nfor(i=0;is2[i]){p=1; break;}\nif(s1[i]\");\nif(p==2) printf(\"<\");\nif(p==0) printf(\"=\");\n}"} +{"label": "95", "index": "47179", "code": "int main(int argc, char* argv[])\n{\n\tint i;\n\tchar s1[100],s2[100] ;\n\tgets(s1);\n\tgets(s2);\n\tfor(i=0; s1[i]&&s2[i]; i++){\n\t\tif (s1[i]>= 'a' && s1[i]<= 'z')\n\t\t\ts1[i]-='a'-'A';\n\t\tif (s2[i] >= 'a' && s2[i] <='z')\n\t\t\ts2[i]-='a'-'A';\n\n\t\tif( s1[ i ] > s2[ i ] )\n\t\t{\tprintf(\">\");\n\t\treturn 0 ;}\n\t\telse\n\t\tif( s1[ i ] < s2[ i ] )\n\t\t{\tprintf(\"<\");\n\t\treturn 0 ;}\n\t\t}\n\tif( s1[ i ] == 0 )\n\t{\n\t\tif ( s2[ i ] == 0 )\n\t\t\tprintf(\"=\");\n\t\telse\n\t\t\tprintf(\"<\");\n\t}\n\telse\n\t\tprintf(\">\");\n\t/*\n\t\tif(strcmp(s1,s2)==0){\n\t\t\tprintf(\"=\");\n//\t\t\tbreak;\n\t\t}\n\t\tif(strcmp(s1,s2)<0){\n\t\t\tprintf(\"<\");\n//\t\t\tbreak;\n\t\t}\n\t\tif(strcmp(s1,s2)>0){\n\t\t\tprintf(\">\");\n//\t\t\tbreak;\n\n\t}\n\t\n*/\n\treturn 0;\n}\n"} +{"label": "95", "index": "47180", "code": "/*\n * 1000012826_30_01.cpp\n *\n * Created on: 2010-11-14\n * Author: Administrator\n */\n\n\nint main()\n{\n char str1[1024],str2[1024];\n gets(str1);\n gets(str2);\n for(unsigned int i=0; i\"<='a'&&a[i]<=122) a[i]=a[i]-32;}\n\nfor(i=0;i<=g-1;i++)\n{if(b[i]>=97&&b[i]<=122) b[i]=b[i]-32;}\n\nt=strcmp(a,b);\nif(t<0) printf(\"<\");\nif(t==0) printf(\"=\");\nif(t>0) printf(\">\");\n\n\n\n\n\n\n\n\nreturn 0;\n}\n"} +{"label": "95", "index": "47182", "code": "void main()\n{\n\tchar a[80],b[80];\n\tint i;\n\tfor (i=0;i<=79;i++)\n\t{\n\t\ta[i]=35;\n\t\tb[i]=35;\n\t}\n\tgets(a);\n\tgets(b);\n\tfor (i=0;i<=79;i++)\n\t{\n\t\tif(a[i]>64&&a[i]<91) a[i]=a[i]+32;\n\t}\n\tfor (i=0;i<=79;i++)\n\t{\n\t\tif(b[i]>64&&b[i]<91) b[i]=b[i]+32;\n\t}\n\tif(strcmp(a,b)>0) printf(\">\\n\");\n\telse\n\t{\n\t\tif(strcmp(a,b)<0) printf(\"<\\n\");\n\t\telse printf(\"=\\n\");\n\t}\n}\n\n"} +{"label": "95", "index": "47183", "code": "void main()\n{\n int i;\n char a[80],b[80];\n gets(a);\n gets(b);\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]-32;\n if(a[i]>='A'&&a[i]<='Z')\n continue;\n }\n for(i=0;b[i]!='\\0';i++)\n {\n if(b[i]>='a'&&b[i]<='z')\n b[i]=b[i]-32;\n if(b[i]>='A'&&b[i]<='Z')\n continue;\n }\n if(strcmp(a,b)<0) printf(\"<\");\n else if(strcmp(a,b)>0) printf(\">\");\n else printf(\"=\");\n \n printf(\"\\n\");\n return 0;\n}\n"} +{"label": "95", "index": "47184", "code": "void main()\n{\n char s1[100],s2[100];\n int length1,i,length2;\n gets(s1);\n gets(s2);\n length1=strlen(s1);\n for(i=0;i='A'&&s1[i]<='Z')\n\t s1[i]=s1[i]+32;\n length2=strlen(s2);\n for(i=0;i='A'&&s2[i]<='Z')\n\t s2[i]=s2[i]+32;\nif(strcmp(s1,s2)>0)\n printf(\">\");\nelse if(strcmp(s1,s2)<0)\n printf(\"<\");\nelse printf(\"=\");\n}\n "} +{"label": "95", "index": "47185", "code": "\nint main()\n{\n\tchar a[80];\n\tchar b[80];\n\tgets(a);\n\tgets(b);\n\tint i;\n\tint t = 0;\n\tfor(i = 0; a[i] != '\\0' && b[i] != '\\0'; i++)\n\t{\n\t\tif(a[i]>='a')\n\t\t\ta[i] = a[i] - 32;\n\t if(b[i]>='a')\n\t\t\tb[i] = b[i] - 32;\n\t}\n\t\n\tif(strcmp(a,b) == 0)\n\t{\n\t\tprintf(\"=\\n\");\n\t}\n\tif(strcmp(a,b) > 0)\n\t{\n\t\tprintf(\">\\n\");\n\t}\n\tif(strcmp(a,b) < 0)\n\t{\n\t\tprintf(\"<\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47186", "code": "\nint main(int argc, char* argv[])\n{\n\tint i,j;\n\tchar a[80],b[80],c[80],d[80];\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t{\n\t\t\tc[i]=a[i]-32;\n\t\t}\n\t\telse c[i]=a[i];\n\t}\n\tc[i]='\\0';\n\tfor(j=0;b[j]!='\\0';j++)\n\t{\n\t\tif(b[j]>='a'&&b[j]<='z')\n\t\t{\n\t\t\td[j]=b[j]-32;\n\t\t}\n\t\telse d[j]=b[j];\n\t}\n\td[j]='\\0';\n\tif(strcmp(c,d)==0) printf(\"=\");\n\tif(strcmp(c,d)>0) printf(\">\");\n\tif(strcmp(c,d)<0) printf(\"<\"); \n\treturn 0;\n}"} +{"label": "95", "index": "47187", "code": "int change(char s[81], char t[81]);\nint main()\n{\n\tchar s[81],t[81];\n\tint a;\n\tgets(s);\n\tgets(t);\n\ta = change(s,t);\n if (a >0) printf(\">\");\n if (a <0) printf(\"<\");\n if (a ==0) printf(\"=\");\n return 0;\n}\n\nint change(char s[81], char t[81])\n\n{\nfor (int i=0; s[i] != 0; ++i)\n{\nif (s[i] >='A' && s[i] <='Z') \n s[i] += 'a'-'A';\n}\nfor (int i=0; t[i] != 0; ++i)\n{\nif (t[i] >='A' && t[i] <='Z') \n t[i] += 'a'-'A';\n}\nreturn strcmp(s, t);\n}\n"} +{"label": "95", "index": "47188", "code": "int main()\n{\n char s[80],p[80] ;\n int length,i,t; \n\tgets(s);\n\tgets(p);\n length=strlen(s);\n for(i=0;i='a') \n s[i]-=32; \n } \n\tlength=strlen(p);\n\t for(i=0;i='a') \n p[i]-=32; \n } \n\t t=strcmp(s,p);\n\tif(t==1)\n\t\tprintf(\">\\n\");\n\tif(t==-1)\n\t\tprintf(\"<\\n\");\n\tif(t==0)\n\t\tprintf(\"=\\n\");\n\treturn 0;\n}"} +{"label": "95", "index": "47189", "code": "void main()\n{\nchar a[1000],b[1000],i,j,k,l1,l2;\ngets(a);\ngets(b);\nl1=strlen(a);\nl2=strlen(b);\nif(l1>=l2)\n{\n for(i=0;i='a'&&a[i]<='z') a[i]=a[i]-'a'+'A';\n if(b[i]>='a'&&a[i]<='z') b[i]=b[i]-'a'+'A';\n if(a[i]>b[i]) {printf(\">\");break;}\n else if(a[i]='a'&&a[i]<='z') a[i]=a[i]-'a'+'A';\n if(b[i]>='a'&&a[i]<='z') b[i]=b[i]-'a'+'A';\n if(a[i]>b[i]) {printf(\">\");break;}\n else if(a[i]='a'&&a<='z') a=a-'a'+'A';\n\treturn a;\n}\nint main()\n{\n\tint len1,len2;\n\tint a,b,c=0;\n\tchar s1[85],s2[85];\n\tgets(s1);\n\tgets(s2);\n\tlen1=strlen(s1);\n\tlen2=strlen(s2);\n\tfor(b=0;bs2[b]) \n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tc=1;\n\t\t\tbreak;\n\t\t}\n\t\telse if(s1[b]=65 && a[i]<=90)//?a??????????????????a???A~Z????????????\n\t\t\ta[i]=a[i]+32;\n\t\tif(b[i]>=65 && b[i]<=90)//?????b??????\n\t\t\tb[i]+=32;\n\t}\n\tk=strcmp(a,b);\n\tif(k==1)\n\t\tcout<<\">\";\n\telse if(k==0)\n\t\tcout<<\"=\";\n\telse\n\t\tcout<<\"<\";\n\treturn 0;\n}\n\n\t\n"} +{"label": "95", "index": "47192", "code": "int main(int argc, char* argv[])\n{\n\tchar s1[80],s2[80];\n\tint i,a,b,p=0;\n\tgets(s1);\n\tgets(s2);\n\ta=strlen(s1);\n\tb=strlen(s2);\n\tfor(i=0;i='A'&&s1[i]<='Z')\n\t\t\ts1[i]+=32;\n\t}\n for(i=0;i='A'&&s2[i]<='Z')\n\t\t\ts2[i]+=32;\n\t}\n\tfor(i=0;is2[i]){\n\t\t\tprintf(\">\");\n\t\t\tp=1;\n\t\t break;\n\t\t}\n\t\telse if(s1[i]=65&&a[i]<=90)\n\t\t\ta[i]=a[i]+32;\n\t\tif(b[i]>=65&&b[i]<=90)\n\t\t\tb[i]=b[i]+32;\n\t\tif(a[i]==b[i])\n\t\t\ts+=1;\n\t\telse if(a[i]>b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(s==n)\n\t\tprintf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47194", "code": "int main()\n{\n\tchar c,s1[80],s2[80];\n\tint i,n;\n\n\tgets(s1);\n\tfor (i=0;i='a' && s1[i]<='z') s1[i]-=32;\n\n\tgets(s2);\n\tfor (i=0;i='a' && s2[i]<='z') s2[i]-=32;\n\n\tif (strlen(s1)>strlen(s2))\n\t\tn=strlen(s1);\n\telse n=strlen(s2);\n\n for (i=0;is2[i]) \n\t\t{\n\t\t\tprintf(\">\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tif (s1[i]='a'&&a[i]<='z')\n a[i]=a[i]-32;\n if(a[i]>='A'&&a[i]<='Z')\n continue;\n }\n for(i=0;b[i]!='\\0';i++)\n { \n if(b[i]>='a'&&b[i]<='z')\n b[i]=b[i]-32;\n if(b[i]>='A'&&b[i]<='Z')\n continue;\n }\n if(strcmp(a,b)<0)cout<<\"<\"<0)cout<<\">\"<='A'&&s1[i]<='Z')\n\t\t\ts1[i]=s1[i]+'a'-'A';\n\t}\n for(i=0;s2[i]!='\\0';i++)\n\t{\n\t\tif(s2[i]>='A'&&s2[i]<='Z')\n\t\t\ts2[i]=s2[i]+'a'-'A';\n\t}\n\tif(strcmp(s1,s2)>0)\n\t\tprintf(\">\");\n\tif (strcmp(s1,s2)<0)\n\t\tprintf(\"<\");\n if (strcmp(s1,s2)==0)\n\t\tprintf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47197", "code": "int main()\n{\n\tchar a[80]={'\\0'},b[80]={'\\0'},A[80]={0},B[80]={0};\n\tint i,j;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(a[i]>=65&&a[i]<=90)\n\t\t\tA[i]=a[i]+32;\n\t\telse A[i]=a[i];\n\t\tif(b[i]>=65&&b[i]<=90)\n\t\t\tB[i]=b[i]+32;\n\t\telse B[i]=b[i];\n\t}\n\tif(strcmp(A,B)>0)\n\t printf(\">\");\n\telse if(strcmp(A,B)<0)\n\t printf(\"<\");\n\telse printf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47198", "code": "int main()\n{\n\tchar a[80],b[80]; //????a[i],b[i]\n\tint i; //????????\n\tcin.getline(a,80); //?????\n\tcin.getline(b,80);\n\tfor(i=0;i<=80;i++)\n\t\tif(a[i]>=97)\n\t\t\ta[i]=a[i]-32;\n\tfor(i=0;i<=80;i++)\n\t\tif(b[i]>=97)\n\t\t\tb[i]=b[i]-32;\n\tfor(i=0;i<80;i++) //????\n\t{\n\t\tif(a[i]=='\\0') //??????????????\n\t\t{\n\t\t\tcout<<\"=\"<b[i]) //????\n\t\t{\n\t\t\tcout<<\">\"<='a'&&a[i]<='z')\n \t\t{a[i]=a[i]-32;}\n\t if(b[i]>='a'&&b[i]<='z')\n \t{b[i]=b[i]-32;}\n } /*????????????????????????????????\n ????????????????*/ \n for(i=0;ib[i]) {printf(\">\");break;}\n else\n if(a[i]=97)str1[i]=str1[i]-32;\n if(str2[i]>=97)str2[i]=str2[i]-32;}\nx=strcmp(str1,str2);//??????????????\nif(x==1)cout<<\">\"<='A'&&str1[i]<='Z')\n{str1[i]=str1[i]+32;}\n++i;\n}\nwhile(str2[j]!='\\0')\n{\nif(str2[j]>='A'&&str2[j]<='Z')\n{str2[j]=str2[j]+32;}\n++j;\n}\nif(strcmp(str1,str2)>0)\n {\n printf(\">\");\n }\nelse if(strcmp(str1,str2)<0)\n {\n printf(\"<\");\n }\n else if(strcmp(str1,str2)==0)\n {\n\t printf(\"=\");\n }\n\n\n}\n"} +{"label": "95", "index": "47202", "code": "\nint main()\n{\n\tchar str1[80],str2[80];\n\tint i;\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\tfor(i=0;str1[i]!='\\0';i++)\n\t\tif(str1[i]>=65&&str1[i]<=90)\n\t\t\tstr1[i]=str1[i]+32;\n\tfor(i=0;str2[i]!='\\0';i++)\n\t\tif(str2[i]>=65&&str2[i]<=90)\n\t\t\tstr2[i]=str2[i]+32;\n\tfor(i=0;str1[i]!='\\0'&&str2[i]!='\\0';i++)\n\t{\n\t\tif(str1[i]>str2[i])\n\t\t{\n\t\t\tcout<<\">\"<=97)&&(s2[i]<=90)&&(s2[i]>=65)) s1[i]=s1[i]-32;\nif((s2[i]<=122)&&(s2[i]>=97)&&(s1[i]<=90)&&(s1[i]>=65)) s2[i]=s2[i]-32;\nif(s1[i]==s2[i]) continue;\nelse if(s1[i]>s2[i]) {printf(\">\");j=1;break;}\nelse {printf(\"<\");j=1;break;}\n}\nif(j==0) printf(\"=\");\nreturn 0;\n}"} +{"label": "95", "index": "47204", "code": "int main(int argc, char* argv[])\n{\nint m=0,i;\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0'&&b[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>='A'&&a[i]<='Z')\n\t\t{\n\t\t\ta[i]=a[i]-('A'-'a');\n\t\t}\n\t\tif(b[i]>='A'&&b[i]<='Z')\n\t\t{\n\t\t\tb[i]=b[i]-('A'-'a');\n\t\t}\n\t}\n\tfor(i=0;a[i]!='\\0'&&b[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tprintf(\">\");m=1;break;\n\t\t}\n\t\telse if(a[i]='a') a[i]=a[i]-('a'-'A');\n\t\tif(b[i]<='z'&&b[i]>='a') b[i]=b[i]-('a'-'A');\n\t}\n\tif(strcmp(a,b)>0) cout<<\">\"<0)printf(\">\\n\");\n if(strcmp(s,t)<0)printf(\"<\\n\");\n return 0;\n}"} +{"label": "95", "index": "47207", "code": "//??????????\n\nint main( )\n{\t\n\tchar str1[100],str2[100];\n\tgets(str1);\n\tgets(str2);//????????\n\tint a=strlen(str1),b=strlen(str2),i;\n\tfor(i=0;i<=a;i++)\n\t{\n\t\tif(str1[i]>='a'&&str1[i]<='z')str1[i]-=32;\n\t\tif(str2[i]>='a'&&str2[i]<='z')str2[i]-=32;/*??????????*/\n\t\tif(str1[i]>str2[i]){cout<<'>';break;}\n\t\telse if(str1[i]='A' && a[i]<='Z')\n\t\t\ta[i]-='A'-'a';\n\t\tif(b[i]>='A' && b[i]<='Z')\n\t\t\tb[i]-='A'-'a';\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tcout<<\">\";\n\t\t\treturn 0;\n\t\t}\n\t\telse if(a[i]=97&&p[j]<=122) p[j]=(char)(p[j]-32);\n\t\telse if((p[j]>=27&&p[j]<=96)||(p[j]>=123)) p[j]=p[j];\n\t}\n\tfor(d=0;d=97&&q[d]<=122) q[d]=(char)(q[d]-32);\n\t\telse if((q[d]>=27&&q[d]<=96)||(q[d]>=123)) q[d]=q[d];\n\t}\n\tint m;\n\tm=strcmp(p,q);\n if(m==0) printf(\"=\");\n\telse if(m>0) printf(\">\");\n\telse if(m<0) printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47210", "code": "//****************************//\n//*?????????????*//\n//*????? *//\n//*???2010.11.17 *//\n//****************************//\nint main()\n{ \n char c1[80],c2[80];\n int len1,len2,i,k=0;//k???????????\n cin.getline(c1,80);\n cin.getline(c2,80);\n len1=strlen(c1);\n len2=strlen(c2);\n if(len1!=len2)\n {\n if(strcmp(c1,c2)==0)\n\t\tcout<<\"=\";\n\telse if(strcmp(c1,c2)==1)\n\t\tcout<<\">\";\n\telse\n\t\tcout<<\"<\";\n }\n else\n { \n\t for(i=0;i64&&c1[i]<91)&&(c2[i]>64&&c2[i]<91))||((c1[i]>96&&c1[i]<123)&&(c2[i]>96&&c2[i]<123)))//????????????????????\n\t { \n\t if(c1[i]\";\n\t }\n\t else if((c1[i]>64&&c1[i]<91)&&(c2[i]>96&&c2[i]<123))\n\t {\n\t if(c1[i]+32c2[i])\n\t\t cout<<\">\";\n\t }\n\t else if((c1[i]>96&&c1[i]<123)&&(c2[i]>64&&c2[i]<91))\n\t {\n\t if(c1[i]-32c2[i])\n\t\t cout<<\">\";\n\t }\n }\n\tif(k==len1)\n\t\tcout<<\"=\"<= *p)\n\t\t\t*p += 32;\n\n\t\tp ++;\n\t}\n\n\tp = b;\n\t\n\twhile(*p != 0)\n\t{\n\t\tif('A' <= *p && *p <= 'Z')\n\t\t\t*p += 32;\n\n\t\tp ++;\n\t}\n\n\tif(strcmp(a, b) == 0)\n\t\tcout << '=' << endl;\n\telse if(strcmp(a, b) < 0)\n\t\tcout << '<' << endl;\n\telse\n\t\tcout << '>' << endl;\n\n\t\n}\n"} +{"label": "95", "index": "47212", "code": "int min(int a,int b);\nint main()\n{\n\tint i,t=0,na,nb;\n\tchar a[80],b[80];\n\tcin.getline(a,80,'\\n');\n\tcin.getline(b,80,'\\n');\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(a[i]=='\\n')\n\t\t\tna=i;\n\t\telse\n\t\t\tif(a[i]<91)\n\t\t\t\ta[i]+=32;\n\t}\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(b[i]=='\\n')\n\t\t\tnb=i;\n\t\telse\n\t\t\tif(b[i]<91)\n\t\t\t\tb[i]+=32;\n\t}\n\tfor(i=0;i<5;i++)\n\t{\n\t\tif(a[i]b[i])\n\t\t{\n\t\t\tcout<<\">\"<=97||str2[i]<97)\n\t\t\t{\n\t\t\t\tcout<<'<';\n\t\t\t\tsgn=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(str1[i]+32>str2[i])\n\t\t\t{\n\t\t\t\tcout<<'>';\n\t\t\t\tsgn=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(str1[i]+32str2[i])\n\t\t{\n\t\t\tif(str2[i]>=97||str1[i]<97)\n\t\t\t{\n\t\t\t\tcout<<'>';\n\t\t\t\tsgn=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(str2[i]+32>str1[i])\n\t\t\t{\n\t\t\t\tcout<<'<';\n\t\t\t\tsgn=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(str2[i]+32';\n\t\t\t\tsgn=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(sgn==0)\t\t//?????????\n\t\tcout<<'=';\n\treturn 0;\n}"} +{"label": "95", "index": "47214", "code": "/*\n * 1016.cpp\n *\n * Created on: 2010-11-12\n * Author: dell\n */\nint main(){\n\tint s,i;\n\tchar str1[80],str2[80];\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\tfor(i=0;i<80;i++){\n\t\tif(str1[i]<91&&str1[i]>63){\n\t\t\tstr1[i]=str1[i]+32;\n\t\t}\n\t\tif(str2[i]<91&&str2[i]>63){\n\t\t\t\t\tstr2[i]=str2[i]+32;\n\t\t\t\t}\n\t}\n\ts=strcmp(str1,str2);\n\n\tif(s==0){\n\t cout<<'=';}\n\t if(s>0){\n\t cout<<(char)62;}\n\t if(s<0){\n\t cout<<(char)60;}\n\t return 0;\n\t}\n\n\n\n\n"} +{"label": "95", "index": "47215", "code": "int main()\n{ \n\tchar s[80],S[80];\n\tint i,j,k,b=0;\n\tgets(s);\n\tfor (i=0;s[i]!='\\0';i++)\n\t{\n\t\tif (s[i]>=65&&s[i]<=90)\n {s[i]=s[i]+32;}\n \n\t}\n\tgets(S);\n\tfor (j=0;S[j]!='\\0';j++)\n\t{\n\t\tif (S[j]>=65&&S[j]<=90)\n {S[j]=S[j]+32;}\n \n\t}\n\t\n\tfor (k=0;S[k]!='\\0'&&s[k]!='\\0';k++)\n\t{\n\t\tif (s[k]!=S[k])\n\t\t{b=1;}\n\t\t if (s[k]>S[k])\n\t\t{printf (\">\");break;}\n\t\t if (s[k]64&&a[i]<91)\n\t\t\ta[i]=a[i]+32;\n\t\tif(b[i]>64&&b[i]<91)\n\t\t\tb[i]=b[i]+32;\n\t}\n\tfor(i=0;i<80;i=i+1)\n\t{\n\t\tif(a[i]-b[i]==0)\n\t\t{\n\t\t\tif(a[i]!='\\0')\n\t\t\t continue;\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout<<'='<b[i])\n\t\t{\n\t\t\tcout<<'>'<='a')&&(s[i][j]<='z')) s[i][j]=s[i][j]-32;\n\t\t}\n\t}\n\tk=strcmp(s[0],s[1]);\n\n\tif (k>0) printf(\">\");\n\tif (k==0) printf(\"=\");\n\tif (k<0) printf(\"<\");\n}\n"} +{"label": "95", "index": "47218", "code": "//????:???????????\n//?????2011?11?1?\n//????????\nint main() //?????\n{\nint i; //????\nchar str1[80],str2[80]; //?????\ncin.getline(str1,sizeof(str1));\ncin.getline(str2,sizeof(str2)); //?????\nfor(i=0;str1[i]!='\\0';i++)\n {\n if(str1[i]>='a'&&str1[i]<='z') //????1?????????\n str1[i]=str1[i]-32;\n if(str1[i]>='A'&&str1[i]<='Z')\n continue;\n }\n for(i=0;str2[i]!='\\0';i++) \n {\n if(str2[i]>='a'&&str2[i]<='z')\n str2[i]=str2[i]-32; //????2?????????\n\n if(str2[i]>='A'&&str2[i]<='Z')\n continue;\n}\nif(strcmp(str1,str2)>0)\ncout<<\">\"<=65 && c<=90) //:???????????????????????\n\t\t{c=c+32;\n\t\ta[i]=c;}\n\t}\n\tfor (int j=0;j=65 && c<=90)\n\t\t{c=c+32;\n\t\tb[j]=c;}\n\t}\n\tif (strcmp(a,b)>0)\n\t\tcout<<\">\"<='a'&&a[i]<='z')\n a[i]=a[i]-32;\n if(a[i]>='A'&&a[i]<='Z')\n continue;\n }\n\n for(i=0;b[i]!='\\0';i++)//?b[60]??????????\n {\n if(b[i]>='a'&&b[i]<='z')\n b[i]=b[i]-32;\n if(b[i]>='A'&&b[i]<='Z')\n continue;\n }\n\n if(strcmp(a,b)<0)//??\n cout<<\"<\";\n else if(strcmp(a,b)>0)\n cout<<\">\";\n else if(strcmp(a,b)==0)\n cout<<\"=\";\n return 0;\n}"} +{"label": "95", "index": "47221", "code": "\nchar trans(char k)\n{\n\tif((k>='a')&&(k<='z'))\n\t\treturn(k+'A'-'a');\n\telse return(k);\n}\n\nmain()\n{\n\tchar a[100],b[100];\n\tint i,l1,l2,n=0;\n\n\tgets(a);\n\tgets(b);\n\tl1=strlen(a);l2=strlen(b);\n\n\tfor(i=0;(ib[i]) printf(\">\");\n\t\t\t\telse printf(\"<\");\n\t\t\t\tn++;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tif(n==0)\n\t\tprintf(\"=\");\n}"} +{"label": "95", "index": "47222", "code": "char change(char c){\n if('A'<=c&&c<='Z')return c-'A'+'a';\n return c;\n}\nchar f(char a[],int la,char b[],int lb){\n for(int i=0;ib[i])return '>';\n }\n }\n return '=';\n}\nint main(){\n char a[100],b[100];\n gets(a);gets(b);\n int la,lb;\n la=strlen(a);lb=strlen(b);\n printf(\"%c\",f(a,la,b,lb));\n return 0;\n}"} +{"label": "95", "index": "47223", "code": "int main(int argc, char* argv[])\n{\n\tchar n[80], m[80];\n\tgets(n);\n\tgets(m);\n\tint x, y, i, k=0;\n\tx=strlen(n);\n\tfor (i=0;n[i]!='\\0';i++)\n\t{\n\t\tif (n[i]>='A'&&n[i]<='Z')\n\t\t{\n\t\t\tn[i]=n[i]+32;\n\t\t}\n\t}\n\tfor (i=0;m[i]!='\\0';i++)\n\t{\n\t\tif (m[i]>='A'&&m[i]<='Z')\n\t\t{\n\t\t\tm[i]=m[i]+32;\n\t\t}\n\t}\n\tfor (i=0;n[i]!='\\0';i++)\n\t{\n\t\tif (n[i]==m[i]) k++;\n\t\tif (n[i]>m[i]) \n\t\t{\n\t\t\tprintf(\">\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tif (n[i]='A' && str1[i]<='Z') //???????\n\t\t\t\tstr1[i] = str1[i]+32;\n\t}\n\tfor(i=0; i='A' && str2[i]<='Z') //???????\n\t\t\t\tstr2[i] = str2[i]+32;\n\t}\n\tif( strcmp (str1,str2)==0 ) //????\n\t\tcout<< \"=\" <0 )\n\t cout<< \">\" <=65&&c[i]<=90)\n\t\t\tc[i]=c[i]+'a'-'A';\n\t}\n\tfor(i=0;i=65&&d[i]<=90)\n\t\t\td[i]=d[i]+'a'-'A';\n\t}\n\t//??//\n\tfor(i=0;id[i])\n\t\t{\n\t\t\tn=1;\n\t\t\tbreak;\n\t\t}\n\t\tif(c[i]\");\n\telse\n\t{\n\t\tif(n==0)\n\t\t\tprintf(\"=\");\n\t\telse\n\t\t\tprintf(\"<\");\n\t}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47226", "code": "//????????????????\n//?????2011?10?28?\n//????????\nint main() //?????\n{\n int i; //???? \n char a[80],b[80];\n gets(a);\n gets(b);\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]-32; //????????\n if(a[i]>='A'&&a[i]<='Z')\n continue; //??????\n }\n for(i=0;b[i]!='\\0';i++)\n {\n if(b[i]>='a'&&b[i]<='z') \n b[i]=b[i]-32; //???????? \n if(b[i]>='A'&&b[i]<='Z')\n continue;\n }\n if(strcmp(a,b)<0) //????????????\n cout<<\"<\"; //??????\n if(strcmp(a,b)>0) \n cout<<\">\";\n if(strcmp(a,b)==0)\n cout<<\"=\";\nreturn 0;\n}"} +{"label": "95", "index": "47227", "code": "main()\n{\n char a[80],b[80];\n int l1,l2,i,m,x;\n gets(a);gets(b);\n l1=strlen(a);l2=strlen(b);\n if(l1>=l2) m=l2;\n else m=l1;\n for(i=0;i<=m-1;i++)\n {\n if(a[i]>='a'&&a[i]<='z') a[i]=a[i]+'A'-'a';\n if(b[i]>='a'&&b[i]<='z') b[i]=b[i]-'a'+'A';\n x=a[i]-b[i];\n if(x>0) {printf(\">\");break;}\n else if(x<0) {printf(\"<\");break;}\n }\n if(i==m)\n {\n if(l1>l2) printf(\">\");\n else if(l1==l2) printf(\"=\");\n else printf(\"<\");\n }\n return 0;\n}"} +{"label": "95", "index": "47228", "code": "int main()\n{\n char a[100],b[100];\n int i=0;\n while(i<100)\n {\n a[i]=0;\n b[i]=0;\n i++;\n }\n i=0;\n gets(a);\n gets(b);\n int n=0;\n while(i<100)\n {\n if(a[i]>64&&a[i]<91)\n a[i]=a[i]+32;\n i++;\n }\n i=0;\n while(i<100)\n {\n if(b[i]>64&&b[i]<91)\n b[i]=b[i]+32;\n i++;\n }\n i=0;\n int x;\n x=strcmp(a,b);\n if(x>0)\n printf(\">\");\n else\n if(x<0)\n printf(\"<\");\n else\n printf(\"=\");\n}"} +{"label": "95", "index": "47229", "code": "int main ()\n{\n\tint d = 'a' - 'A';\n\tchar s[80],sl[80];\n\tint p =\t1;\n\tgets (s);\n\tgets (sl);\n\tint i;\n\tfor (i=0;s[i]!='\\0';i++)\n\t{\n\t\tif (s[i]<'Z') s[i] = s[i] + d;\n\t}\n for (i=0;s[i]!='\\0';i++)\n\t{\n\t\tif (sl[i]<'Z') sl[i] = sl[i] + d;\n\t}\n for (i=0;s[i]!='\\0'&&sl[i]!='\\0';i++)\n\t{\n\t\tif (s[i]>sl[i]) \n\t\t{\n\t\t\tp = 0;\n\t\t\tprintf (\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if (s[i]=97&&p[j]<=122) p[j]=(char)(p[j]-32);\n\t\telse if((p[j]>=27&&p[j]<=96)||(p[j]>=123)) p[j]=p[j];\n\t}\n\tfor(d=0;d=97&&q[d]<=122) q[d]=(char)(q[d]-32);\n\t\telse if((q[d]>=27&&q[d]<=96)||(q[d]>=123)) q[d]=q[d];\n\t}\n\tint m;\n\tm=strcmp(p,q);\n if(m==0) printf(\"=\");\n\telse if(m>0) printf(\">\");\n\telse if(m<0) printf(\"<\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47231", "code": "int main()\n{\n\tchar a[100];\n\tchar b[100];\n\tint i,j,al,bl,k,q;\n\tgets(a);\n\t\tgets(b);\n\tal=strlen(a);bl=strlen(b);\t\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]-=32;\n\tfor(j=0;j='a'&&b[j]<='z')\n\t\t\t\tb[j]-=32;\n\t\n\tif (alb[q])\n\t\t\t\t{printf(\">\");break;}\n\t\t\n\t\t\t}\n\t\t\tif(q==k)printf(\"=\");\n\t\t\treturn 0;\n\t\t\t\n}\n"} +{"label": "95", "index": "47232", "code": "\n//???????\n\nint main()\n{\n\tchar str1[100], str2[100], t;\n\tint n, i;\n\n\tgets(str1);\n\tgets(str2);\n\n\tfor(i=0; (t=str1[i])!='\\0'; i++)\n\t\tif(str1[i]<='Z'&&str1[i]>='A')\n\t\t\tstr1[i]=str1[i]+32;\n\tfor(i=0; (t=str2[i])!='\\0'; i++)\n\t\tif(str2[i]<='Z'&&str2[i]>='A')\n\t\t\tstr2[i]=str2[i]+32;\n\n\tif(strcmp(str1, str2)>0)\n\t\tprintf(\">\");\n\telse if(strcmp(str1, str2)==0)\n\t\tprintf(\"=\");\n\telse\n\t\tprintf(\"<\");\n\n\treturn 0;\n}"} +{"label": "95", "index": "47233", "code": "\nint lwr(char *a)\n{\n\tfor(;*a!='\\0';a++){\n\t\t\n\t\tswitch(*a){\n\t\tcase 'A':*a='a';break;\n\t\tcase 'B':*a='b';break;\n\t\tcase 'C':*a='c';break;\n\t\tcase 'D':*a='d';break;\n\t\tcase 'E':*a='e';break;\n\t\tcase 'F':*a='f';break;\n\t\tcase 'G':*a='g';break;\n\t\tcase 'H':*a='h';break;\n\t\tcase 'I':*a='i';break;\n\t\tcase 'J':*a='j';break;\n\t\tcase 'K':*a='k';break;\n\t\tcase 'L':*a='l';break;\n\t\tcase 'M':*a='m';break;\n\t\tcase 'N':*a='n';break;\n\t\tcase 'O':*a='o';break;\n\t\tcase 'P':*a='p';break;\n\t\tcase 'Q':*a='q';break;\n\t\tcase 'R':*a='r';break;\n\t\tcase 'S':*a='s';break;\n\t\tcase 'T':*a='t';break;\n\t\tcase 'U':*a='u';break;\n\t\tcase 'V':*a='v';break;\n\t\tcase 'W':*a='w';break;\n\t\tcase 'X':*a='x';break;\n\t case 'Y':*a='y';break;\n case 'Z':*a='z';break;\n\t\t}\n\t}\n\treturn 0;\n}\n\nint main(int argc, char* argv[])\n{\n\tchar str1[82],str2[82],chu;\n\tint a;\n\tgets(str1);\n\tgets(str2);\n\tlwr(str1);\n\tlwr(str2);\n a=strcmp(str1,str2);\n\tif(a>0)chu='>';\n\telse if(a<0)chu='<';\n\telse chu='=';\t\t\n\tprintf(\"%c\\n\",chu);\n\treturn 0;\n}\n"} +{"label": "95", "index": "47234", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint i=0;\n\tgets(a);\n\tgets(b);\n\twhile(a[i]!='\\0')\n\t{\n\t\tif(a[i]>=97)\n\t\t\ta[i]=a[i]-32;\n i++;\n\t}\n\ti=0;\n\twhile(b[i]!='\\0')\n\t{\n\t\tif(b[i]>=97)\n\t\t\tb[i]=b[i]-32;\n i++;\n\t}\n\t\tif(strcmp(a,b)>0)\n\t\tprintf(\">\");\n\t\tif(strcmp(a,b)<0)\n\t\tprintf(\"<\");\n\t\tif(strcmp(a,b)==0)\n\t printf(\"=\");\n\t\treturn 0;\n}"} +{"label": "95", "index": "47235", "code": "\nint main(int argc, char* argv[])\n{\n\tchar str1[81],str2[81];\n\tgets(str1);\n\tgets(str2);\n\tint i,n=0;\n\tfor(i=0;i<=81&&str1[i]!='\\0'&&str2[i]!='\\0';i++)\n\t{\n if(str1[i]<97)str1[i]=str1[i]+32;\n\t\tif(str2[i]<97)str2[i]=str2[i]+32;\n\t\tif(str1[i]str2[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tn=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(n==0)printf(\"=\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47236", "code": "\nint main(int argc, char *argv[])\n{\n char str1[Len],str2[Len];\n char *p,*q;\n int L1,L2,flag=0;\n \n gets(str1);\n gets(str2);\n L1=strlen(str1);\n L2=strlen(str2);\n \n for(p=str1,q=str2;p<=str1+L1 && q<=str2+L2;p++,q++)\n {\n if(*p>='a' && *p<='z')\n *p=(char)((int)*p-32);\n if(*q>='a' && *q<='z')\n *q=(char)((int)*q-32);\n \n if(*p==*q)\n continue;\n else if(*p<*q)\n {\n flag=1;\n break;\n } \n else\n {\n flag=-1;\n break;\n }\n } \n if(flag==0)\n printf(\"=\");\n else if(flag==1)\n printf(\"<\");\n else\n printf(\">\"); \n \n\n return 0;\n}\n\n"} +{"label": "95", "index": "47237", "code": "void main ()\n{\n\tint i,j,x,y;\n\tchar s[150],t[150],a,b;\n\tgets(s);\n\tgets(t);\n\tx=strlen(s);\n\ty=strlen(t);\n\tfor (i=0;i='a'&&a<='z')\n\t\t\ts[i]=s[i]-32;\n\t}\n\tfor (j=0;j='a'&&b<='z')\n\t\t\tt[j]=t[j]-32;\n\t}\n\tif (strcmp(s,t)>0)\n\t\tprintf(\">\\n\");\n\telse if (strcmp(s,t)<0)\n\t\tprintf(\"<\\n\");\n\telse printf(\"=\\n\");\n}"} +{"label": "95", "index": "47238", "code": "int main()\n{\n\tint i;\n\tchar a,b;\n\tchar str1 [20],str2 [20];\n\tgets(str1);\n\tgets(str2);\n\tfor (i=0;i<20;i++)\n\t{\n\t\tif(str1[i]<='Z'&&str1[i]>='A')\n\t\t{\n\t\t\ta=str1[i];\n\t\t\tstr1[i]=a+32;\n\t\t}\n\t\tif (str2[i]<='Z'&&str2[i]>='A')\n\t\t{\n\t\t\tb=str2[i];\n\t\t\tstr2[i]=b+32;\n\t\t}\n\t}\n\tif (strcmp(str1,str2)>0)\n\tprintf(\">\\n\");\n\tif (strcmp(str1,str2)==0)\n\tprintf(\"=\\n\");\n\tif (strcmp(str1,str2)<0)\n\tprintf(\"<\\n\");\n}\n"} +{"label": "95", "index": "47239", "code": "void main()\n{\n\tchar s1[10000],s2[10000];\n\tint i,n;\n\tgets(s1);\n\tgets(s2);\n\tn=strlen(s1);\n\tfor (i=0;i='A'&&s1[i]<='Z')?(s1[i]+32):s1[i];\n\tn=strlen(s2);\n\t\tfor (i=0;i='A'&&s2[i]<='Z')?(s2[i]+32):s2[i];\n if (strcmp(s1,s2)>0) printf(\">\");\n else if (strcmp(s1,s2)<0) printf(\"<\");\n else printf(\"=\");\n}\n"} +{"label": "95", "index": "47240", "code": "\nint main()\n{\n\tchar str1[100]={0};\n\tchar str2[100]={0};\n\tgets(str1);\n\tgets(str2);\n\tint i,j,k;\n\tfor(i=0;str1[i]!='\\0';i++)\n\t\tif((str1[i]<='Z')&&(str1[i]>='A'))\n\t\t\tstr1[i]=str1[i]+32;\n\tfor(i=0;str2[i]!='\\0';i++)\n\t\tif((str2[i]<='Z')&&(str2[i]>='A'))\n\t\t\tstr2[i]=str2[i]+32;\n\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\");\n\telse\n\t\tif(strcmp(str1,str2)<0)\n\t\t\tprintf(\"<\");\n\t\telse\n\t\tprintf(\"=\");\n\n\treturn 0;\n\n}\n\n"} +{"label": "95", "index": "47241", "code": "int main(){\n char c1[80],c2[80];\n int i,a,b;\n cin.getline(c1,80);\n cin.getline(c2,80);\n a=strlen(c1);\n b=strlen(c2);\n for(i=0;i<=a-1;i++){\n \tif((c1[i]>='A')&&(c1[i]<='Z')) c1[i]+=32;\n }\n for(i=0;i<=b-1;i++){\n \tif((c2[i]>='A')&&(c2[i]<='Z')) c2[i]+=32;\n }\n if(a<=b) {\n \tfor(i=0;i<=a-1;i++){\n \t\tif(c1[i]c2[i]) {\n \t\t\tcout<<'>';\n \t\t\tbreak;\n \t\t}\n \t\telse if((i==a-1)&&(a==b)) cout<<'=';\n\n \t\telse if(i==a-1) cout<<'<';\n \t}\n }\n else {\n \tfor(i=0;i<=b-1;i++){\n \t\tif(c1[i]c2[i]) {\n \t\t \t\t\tcout<<'>';\n \t\t \t\t\tbreak;\n \t\t \t\t}\n \t\t \t\telse if(i==b-1) cout<<'>';\n \t}\n }\n\treturn 0; //?????\n}\n"} +{"label": "95", "index": "47242", "code": "//???????????\nint main()\n{\n\tchar a[80],b[80],i;\n\tgets(a);\n\tgets(b);\n\tfor (i=0;i<80;i++)//???????\n\t{\n\t\tif (a[i]>=97)\n\t\t\ta[i]=a[i]-32;\n\t\tif (b[i]>=97)\n\t\t\tb[i]=b[i]-32;\n\t}\n\tfor (i=0;i<80;i++)//????\n\t{\n\t\tif (a[i]=='\\0'||b[i]=='\\0') \n\t\t{\n\t\t\tcout<<'='<b[i])\n\t\t\t{\n\t\t\t\tcout<<'>'<='a')\n\t\t{\n\t s1[i]=s1[i]-32;\n\t\t}\n\t}\n\tfor (i=0;s2[i]!='\\0';i++)\n\t{\n\t\tif (s2[i]<='z'&&s2[i]>='a')\n\t\t{\n\t\t\ts2[i]=s2[i]-32;\n\t\t}\n\t}\n\ti=strcmp(s1,s2);\n\tif (i==0)\n\t\tprintf (\"=\");\n\telse if (i<0)\n\t\tprintf (\"<\");\n\telse if (i>0)\n\t\tprintf (\">\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47244", "code": "int main()\n{char str1[50],str2[50];\nint i,j;\n gets(str1);\n gets(str2);\n for(i=0;i<50;i++){\n\t switch(str1[i]){\n\t case'A':str1[i]='a';break;\n case'B':str1[i]='b';break;\n\t case'C':str1[i]='c';break;\n\t case'D':str1[i]='d';break;\n\t case'E':str1[i]='e';break;\n\t case'F':str1[i]='f';break;\n\t case'G':str1[i]='g';break;\n\t case'H':str1[i]='h';break;\n\t case'I':str1[i]='i';break;\n\t case'J':str1[i]='j';break;\n\t case'K':str1[i]='k';break;\n\t case'L':str1[i]='l';break;\n\t case'M':str1[i]='m';break;\n\t case'N':str1[i]='n';break;\n\t case'O':str1[i]='o';break;\n\t case'P':str1[i]='p';break;\n\t case'Q':str1[i]='q';break;\n\t case'R':str1[i]='r';break;\n\t case'S':str1[i]='s';break;\n\t case'T':str1[i]='t';break;\n\t case'U':str1[i]='u';break;\n\t case'V':str1[i]='v';break;\n\t case'W':str1[i]='w';break;\n\t case'X':str1[i]='x';break;\n case'Y':str1[i]='y';break;\n\t case'Z':str1[i]='z';break;\n\t }\n }\n for(j=0;j<50;j++){\n\t switch(str2[j]){\n\t case'A':str2[j]='a';break;\n\t case'B':str2[j]='b';break;\n\t case'C':str2[j]='c';break;\n\t case'D':str2[j]='d';break;\n\t case'E':str2[j]='e';break;\n\t case'F':str2[j]='f';break;\n\t case'G':str2[j]='g';break;\n\t case'H':str2[j]='h';break;\n\t case'I':str2[j]='i';break;\n\t case'J':str2[j]='j';break;\n\t case'K':str2[j]='k';break;\n\t case'L':str2[j]='l';break;\n case'M':str2[j]='m';break;\n\t case'N':str2[j]='n';break;\n\t case'O':str2[j]='o';break;\n\t case'P':str2[j]='p';break;\n\t case'Q':str2[j]='q';break;\n\t case'R':str2[j]='r';break;\n\t case'S':str2[j]='s';break;\n\t case'T':str2[j]='t';break;\n\t case'U':str2[j]='u';break;\n\t case'V':str2[j]='v';break;\n\t case'W':str2[j]='w';break;\n\t case'X':str2[j]='x';break;\n\t case'Y':str2[j]='y';break;\n\t case'Z':str2[j]='z';break;\n\t }\n }\n i=strcmp(str1,str2);\n if(i==0){\n\t printf(\"=\\n\");\n }\n if(i<0){\n\t printf(\"<\\n\");\n }\n if(i>0){\n\t printf(\">\\n\");\n }\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47245", "code": "int main()\n{\n\tchar a[80],b[80],t=0;\n\tint len,i;\n\tgets(a);\n\tgets(b);\n\tlen=strlen(a);\n\tif(strlen(b)<=len)\n\t\tlen=strlen(b);\n\tfor(i=0;i='a'&&b[i]<='z'&&b[i]>='a')\n\t\t{\n\t\t\tif(a[i]>b[i])\n\t\t\t\tprintf(\">\");\n\t\t\telse\n\t\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n\t\tif(a[i]<='Z'&&a[i]>='A'&&b[i]<='Z'&&b[i]>='A')\n\t\t{\n\t\t\tif(a[i]>b[i])\n\t\t\t\tprintf(\">\");\n\t\t\telse\n\t\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n\t\tif(a[i]<='Z'&&a[i]>='A'&&b[i]<='z'&&b[i]>='a')\n\t\t{\n\t\t\tb[i]=b[i]+'A'-'a';\n\t\t\tif(a[i]>b[i])\n\t\t\t\tprintf(\">\");\n\t\t\telse\n\t\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n\t\tif(b[i]<='Z'&&b[i]>='A'&&a[i]<='z'&&a[i]>='a')\n\t\t{\n\t\t\tb[i]=b[i]-'A'+'a';\n\t\t\tif(a[i]>b[i])\n\t\t\t\tprintf(\">\");\n\t\t\telse\n\t\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(t==len&&strlen(a)==strlen(b))\n\t\tprintf(\"=\");\n\tif(t==len&&strlen(a)strlen(b))\n\t\tprintf(\">\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47246", "code": "main()\n{\n\tint i,n;\n\tn=0;\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif((a[i]<='Z')&&(a[i]>='A'))\n\t\t\ta[i]=a[i]-'A'+'a';\n if((b[i]<='Z')&&(b[i]>='A'))\n\t\t\tb[i]=b[i]-'A'+'a';\n\t}\n\n\tfor(i=0;;)\n\t{\n\t\tif((a[i]==b[i])&&(a[i]!='\\0'))\n\t\t\ti++;\n\t\telse if((a[i]=='\\0')&&(b[i]=='\\0'))\n\t\t\tbreak;\n\t\telse {\n\t\t\tn=a[i]-b[i];\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(n>0)\n printf(\">\");\n\telse if(n==0)\n\t\tprintf(\"=\");\n\telse printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47247", "code": "int main()\n{char a[80],b[80]; //?????\n int i;\ncin.getline(a,80); //????????\ncin.getline(b,80);\nfor(i=0;i<80;i++) //????????????\n{if(a[i]>=65&&a[i]<=90) a[i]=a[i]+32;\n}\nfor(i=0;i<80;i++)\n{if(b[i]>=65&&b[i]<=90) b[i]=b[i]+32;\n}\nif(strcmp(a,b)==0) cout<<\"=\"<0) cout<<\">\"<='A'&&a[i]<='Z')\n\t\t\ta[i]=a[i]+32;\n\t}\n\tfor(j=0;c[j]!='\\0';j++)\n\t{\n\t\tif(c[j]>='A'&&c[j]<='Z')\n\t\t\tc[j]=c[j]+32;\n\t}\n\tif(strcmp(a,c)>0) {\n\t\tprintf(\">\\n\");\n\t}\n\telse if(strcmp(a,c)<0) {\n\t\tprintf(\"<\\n\");\n\t}\n\telse {\n\t\tprintf(\"=\\n\");\n\t}\n\t\n\treturn 0;\n}"} +{"label": "95", "index": "47249", "code": "int main()\n{\n\tint a,i;\n\tchar s[80],w[80];\n\tgets(s);\n\tgets(w);\n\ta=strlen(s);\n\tfor (i=0;i='A')&&(s[i]<='Z'))\n\t\t\ts[i]+=32;\n\t\tif((w[i]>='A')&&(w[i]<='Z'))\n\t\t\tw[i]+=32;\n\t}\n\tfor (i=0;iw[i]))\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\tif ((s[i]='a') \n str1[i]-='a'-'A'; \n\t}\n\tfor(i=0;i='a') \n str2[i]-='a'-'A'; \n\t}\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\\n\");\n\tif(strcmp(str1,str2)<0)\n\t\tprintf(\"<\\n\");\n\tif(strcmp(str1,str2)==0)\n\t\tprintf(\"=\\n\");\n\treturn 0;\n}"} +{"label": "95", "index": "47251", "code": "int main()\n{\n\tint i, al, bl;\n\tchar a[100],b[100];\n\tgets(a);\n\tgets(b);\n\tal = strlen(a);\n\tbl = strlen(b);\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\ta[i] = (char)((int)a[i]-32);\n\t}\n\tfor(i=0;i='a'&&b[i]<='z')\n\t\t\tb[i] = (char)((int)b[i]-32);\n\t}\n\tif(strcmp(a,b)==0)\n\t\tprintf(\"=\");\n\telse if(strcmp(a,b)>0)\n\t\tprintf(\">\");\n\telse\n\t\tprintf(\"<\");\n\treturn 0;\n}\n\t"} +{"label": "95", "index": "47252", "code": "int main()\n{\n\tchar s[250],t[250];\n\tint i;\n\tgets(s);\n\tgets(t);\n\tfor (i=0;i=65 && s[i]<=92)\n\t\t\ts[i]+=32;\n\t}\n\tfor (i=0;i=65 && t[i]<=92)\n\t\t\tt[i]+=32;\n\t}\n\tif (strcmp(s,t)>0)\n\t\tprintf(\">\\n\");\n\telse if (strcmp(s,t)<0)\n\t\tprintf(\"<\\n\");\n\telse printf(\"=\\n\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47253", "code": "int main()\n{\n\tchar s1[100]={0},s2[100]={0};\nint n,m,i,k;\ngets(s1);\ngets(s2);\nn=strlen(s1);\nm=strlen(s2);\nfor(i=0;i<=n-1;i++)\n{if(s1[i]>='a'&&s1[i]<='z') s1[i]=s1[i]-32;}\nfor(i=0;i<=m-1;i++)\n{if(s2[i]>='a'&&s2[i]<='z') s2[i]=s2[i]-32;\n}\nk=strcmp(s1,s2);\n{if(k==0) printf(\"=\");\nelse if(k>0) printf(\">\");\nelse if(k<0) printf(\"<\");\n}\n}"} +{"label": "95", "index": "47254", "code": "/*\n * 1000012835_3.2.cpp\n *\n * Created on: 2010-11-6\n * Author: huangjiali\n */\nint main()\n{\n\tchar a[80],b[80];\n\tint len1,len2,i;\n\tcin.getline(a,80);//?????a\n\tlen1=strlen(a);\n\tcin.getline(b,80);//?????b\n\tlen2=strlen(b);\n\tfor(i=0;ib[i]) {cout<<\">\"<\"\n\t}\n\tif(i==len1) cout<<\"=\"<=65&&str1[i]<=90)\n\t\t\tstr1[i]=str1[i]+'a'-'A';\n\t\tif(str2[i]>=65&&str2[i]<=90)\n\t\t\tstr2[i]=str2[i]+'a'-'A';\n\t\tif(str1[i]>str2[i])\n\t\t{\n\t\t\ta=1;break;\n\t\t}\n\t\tif(str1[i]\\n\");break;\n\tcase 2: printf(\"<\\n\");break;\n\t}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47256", "code": "int main(){\n\tint i; //??????i\n\t char str1[80],str2[80]; //?????str1[i]?str2[i]\n\t cin.getline(str1,80);\n\t cin.getline(str2,80);\n\t for(i=0;i<=80;i++){ \n\t\t if(96\"<96)s1[i]-=32;\n if(s2[i]>96)s2[i]-=32;\n }\n while(s1[i]==s2[i]&&i<=n1-1&&i<=n2-1);\n\n\n if(s1[i]s2[i])printf(\">\");\n else printf(\"=\");\n\n return 0;\n}"} +{"label": "95", "index": "47258", "code": "\nint main(){\nchar s[100],a[100];\nint i;\ngets(s);\ngets(a);\nfor(i=0;s[i]!='\\0';i++){\nif(s[i]>='A'&&s[i]<='Z'){\ns[i]=s[i]+32;\n}\nif(a[i]>='A'&&a[i]<='Z'){\na[i]=a[i]+32;\n}\n}\nfor(i=0;i<100;i++){\nif(s[i]a[i])\n{\nprintf(\">\");\nbreak;\n}\nelse if(s[i]==a[i]&&s[i]=='\\0'){\nprintf(\"=\");\nbreak;\n}\n\n}\nreturn 0;\n}\n"} +{"label": "95", "index": "47259", "code": "\n\nchar check(char a[1000],char b[1000])\n{\n\t\n\tfor(int i=0;;i++)\n\t{\n\t\tif(a[i]>='A' && a[i]<='Z') a[i]-=('A'-'a');\n\t\tif(b[i]>='A' && b[i]<='Z') b[i]-=('A'-'a');\n\n\t\t\n\t\tif(a[i]>b[i]) return '>';\n\t\tif(a[i]=97&&a[i]<=122)\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t\tif(b[i]>=97&&b[i]<=122)\n\t\t{\n\t\t\tb[i]=b[i]-32;\n\t\t}\n\t}\n\tif(strcmp(a,b)==0)\n\t{\n\t\tprintf(\"=\\n\");\n\t}\n\telse if(strcmp(a,b)>0)\n\t{\n\t\tprintf(\">\\n\");\n\t}\n\telse\n\t{\n\t\tprintf(\"<\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47261", "code": "int main()\n{\n\tchar s1[80],s2[80];\n\tgets(s1);\n\tgets(s2);\n\tint i;\n\n\tfor(i=0;s1[i]!='\\0' || s2[i]!='\\0';i++)\n\t{\n\t\ts1[i]=(s1[i]-'A')%32+'A';\n s2[i]=(s2[i]-'A')%32+'A';\n\t\tif(s1[i]==s2[i])\n\t\t\tcontinue;\n\t\telse\n\t\t{ \n\t\t\tif(s1[i]>s2[i])\n\t\t\t{\n\t\t\t\tprintf(\">\\n\");\n\t\t\t break;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\tprintf(\"<\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}\n\tif( s1[i]=='\\0')\n\t\tprintf(\"=\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47262", "code": "int main()\n{\n\tint i;\n\tchar s1[80],s2[80];\n\tgets(s1);\n\tgets(s2);\n\ti=0;\n\twhile(s1[i]!='\\0'&&(s1[i]==s2[i]||(s1[i]<='Z'&&s1[i]>='A'&&s2[i]-s1[i]=='a'-'A')||(s2[i]<='Z'&&s2[i]>='A'&&s1[i]-s2[i]=='a'-'A')))\n\t{i++;}\n\tif((s1[i]>s2[i])||(s2[i]<='z'&&s2[i]>='a'&&s2[i]-s1[i]<'a'-'A')) printf(\">\");\n\telse if((s1[i]='a'&&s1[i]-s2[i]<'a'-'A')) printf(\"<\");\n\telse printf(\"=\");\n\treturn 0;\n\n}"} +{"label": "95", "index": "47263", "code": "void main()\n{\n\tchar str1[100],str2[100],*p1,*p2;\n\tint i,t;\n\tgets(str1);p1=str1;\n\tgets(str2);p2=str2;\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif( *(p1+i)<='Z'&&*(p1+i)>='A')\n\t\t\t*(p1+i)+=32;\n\t\t\n\t\tif( *(p2+i)<='Z'&&*(p2+i)>='A')\n\t\t\t*(p2+i)+=32;\n\n\n\t}\n\n t=strcmp(p1,p2);\n\t if(t>0)printf(\">\"); if(t<0)printf(\"<\"); if(t==0)printf(\"=\");\n\n\n}"} +{"label": "95", "index": "47264", "code": "int main(){\n int i;\n char aa[100],bb[100];\n gets(aa);\n gets(bb);\n i=0;\n while(aa[i]!='\\0')\n { \n if(aa[i]<=122&&aa[i]>=97)\n aa[i]=aa[i]-32;\n i++;\n }\n i=0;\n while(bb[i]!='\\0')\n { if(bb[i]<=122&&bb[i]>=97)\n bb[i]=bb[i]-32;\n i++;\n }\n if(strcmp(aa,bb)<0)\n cout<<\"<\";\n if(strcmp(aa,bb)==0)\n cout<<\"=\";\n if(strcmp(aa,bb)>0)\n cout<<\">\";\n return 0;\n }"} +{"label": "95", "index": "47265", "code": "int main()\n{ char a[100]={0},b[100]={0};\n gets(a);\n gets(b);\n int i;\n for(i=0;i='A'&a[i]<='Z')\n {\n a[i]='a'+a[i]-'A';\n }\n }\n for(i=0;i='A'&b[i]<='Z')\n {\n b[i]='a'+b[i]-'A';\n }\n }int t=0;\n for(i=0;i<100;i++)\n {\n if(a[i]>b[i])\n {t=1;break;}\n if(a[i]\");\n else printf(\"=\");\n return 0;\n}\n"} +{"label": "95", "index": "47266", "code": "int main()\n{\n\tchar a[30],b[30];\n\tint i,j,num1,num2;\n\tgets(a);\n\tgets(b);\n\tnum1=strlen(a);\n\tnum2=strlen(b);\n\tfor(i=0;i='a')\n\t\t a[i]-=32;\n\t}\n for(i=0;i='a')\n\t\t b[i]-=32;\n\t}\n\t\tif(strcmp(a,b)>0)\n\t\t\tprintf(\">\");\n\t\telse if(strcmp(a,b)<0)\n\t\t\tprintf(\"<\");\n\t else\n\t\tprintf(\"=\");\n\treturn 0;\n}\n "} +{"label": "95", "index": "47267", "code": "int main()\n{\n\tchar s1[101],s2[101];\n\tint a,b,i;\n cin.getline(s1,100);\n cin.getline(s2,100);\n a=strlen(s1);b=strlen(s2);\n for (i=0;i96) s1[i]-=32;\n if (s2[i]>96) s2[i]-=32;\n\t }\n\t\tfor (i=0;is2[i]) {cout<<'>';return 0;}\n\t\t\tif (s1[i]='a') s1[i]-=32;\n if(s2[i]<='z'&&s2[i]>='a') s2[i]-=32;\n k=s1[i]-s2[i];\n if(k>0) {printf(\">\");break;}\n else if(k<0) {printf(\"<\");break;}\n else i++;}\n if(k==0&&m>n) printf(\">\");\n else if(k==0&&m='A' && str1[i]<='Z') str1[i]=str1[i]+32;\n if(str2[i]>='A' && str2[i]<='Z') str2[i]=str2[i]+32;\n\n if(str1[i]==str2[i])\n {num++;continue;}\n else if(str1[i]str2[i]) {cout<<'>';break;}\n \n\n }if(num==l1) cout<<'=';\n return 0;\n\n}"} +{"label": "95", "index": "47270", "code": "int main(int argc)\n{ char str1[82],str2[82],i,n;\n int t;\n cin.getline(str1,80);\n\tcin.getline(str2,80);\n\ti=0;\n\tn=0;\n\twhile(i<=79)\n\t{ if (str1[i]<91&&str1[i]>64)\n\t{ str1[i]=str1[i]+32;}\n\tif (str2[i]<91&&str2[i]>64)\n\t{ str2[i]=str2[i]+32;}\n i++;}\n t=strcmp(str1,str2);\n\tif (t>0)\n\t{cout<<\">\";}\n\tif (t==0)\n\t{cout<<\"=\";}\n\tif (t<0)\n\t{cout<<\"<\";}\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47271", "code": "int main ()\n{\n\tchar a[81],b[81];\n\tcin.getline(a,80);\n cin.getline(b,80);\n\tint i,n,c=0;\n\tn=strlen(a)<=strlen(b)?strlen(a):strlen(b);\n\n\tfor (i=0;i<=n;i++)\n\t{\n\t\tif (a[i]>=65&&a[i]<=90)\n\t\t{\n\t\t\ta[i]=a[i]+32;\n\t\t}\n\t\tif (b[i]>=65&&b[i]<=90)\n\t\t{\n\t\t\tb[i]=b[i]+32;\n\t\t}\n\t\tif (a[i]==b[i])\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t\telse if (a[i]>b[i])\n\t\t{\n\t\t\tcout<<'>';\n\t\t\tc=1;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout<<'<';\n\t\t\tc=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (c==0)\n\t{\n\t\tcout<<'=';\n\t}\n\n\t\n\n\n}\n\n"} +{"label": "95", "index": "47272", "code": "int main( )\n{\tint i;\n\tchar a[100],b[100];\n cin.getline(a,100);\n cin.getline(b,100);\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif((a[i]>=97)&&(a[i]<=122))\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif((b[i]>=97)&&(b[i]<=122))\n\t\t\tb[i]=b[i]-32;\n\t}\n\tif(strcmp(a,b)==0) cout<<'=';\n\telse if(strcmp(a,b)>0) cout<<'>';\n\telse if(strcmp(a,b)<0) cout<<'<';\n\treturn 0;\n}"} +{"label": "95", "index": "47273", "code": "int main(){\n\tchar a[100];\n\tchar b[100];\n\tint c,d,e,i;\n\tgets(a);\n\tgets(b);\n\tc=strlen(a);\n\td=strlen(b);\n\tif(c>=d)\n\t\te=c;\n\telse\n\t\te=d;\n\tfor(i=0;ib[i]&&a[i]-b[i]!=32)\n\t{cout<<\">\"<='a')\n\t\t\t\t\tstr1[i]=str1[i]-32;\n\t}\n\tfor(int j=0;j='a')\n\t\t\t\t\t\tstr2[j]=str2[j]-32;\n\t\t}\n\tstrcmp(str1,str2); //??????????\n\tif(strcmp(str1,str2)==0)cout<<\"=\"<\"<'<\n\t\tbreak; //????\n\t\t}\n\tif((str1[i]-str2[i]==0)||(str1[i]-str2[i]==32)\n\t\t\t||(str1[i]-str2[i]==-32))\n\t\tcout<<'='<0)\n\t printf(\"%c\",'>');\n\telse\n\t if(strcmp(a,b)<0)\n\t printf(\"%c\",'<');\n\t else\n\t printf(\"%c\",'=');\n}"} +{"label": "95", "index": "47277", "code": "void main()\n{ char str1[80];char str2[80];int i;\ngets(str1);gets(str2);\nfor(i=0;i<80;i++)\n {if(str1[i]>=97) str1[i]=str1[i]-32;}\nfor(i=0;i<80;i++)\n {if(str2[i]>=97) str2[i]=str2[i]-32;}\nif(strcmp(str1,str2)>0) { printf(\">\");}\nelse if(strcmp(str1,str2)<0) {printf(\"<\");}\nelse printf(\"=\");\n}"} +{"label": "95", "index": "47278", "code": "int main()\n{\n\tchar a[80]={0},b[80]={0};\n\tint i;\n\tgets(a);\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tif(a[i]>=65&&a[i]<=90)\n\t\t\ta[i]=a[i]+32;\n\t}\n\tgets(b);\n\tfor(i=0;b[i]!=0;i++)\n\t{\n\t\tif(b[i]>=65&&b[i]<=90)\n\t\t\tb[i]=b[i]+32;\n\t}\n if(strcmp(a,b)<0)\n\t\tprintf(\"<\");\n if(strcmp(a,b)>0)\n\t\tprintf(\">\");\n\tif(strcmp(a,b)==0)\n\t\tprintf(\"=\");\n}"} +{"label": "95", "index": "47279", "code": "int main()\n{\n int i;\n char a[80],b[80];\n gets(a);\n gets(b);\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]-32;\n if(a[i]>='A'&&a[i]<='Z')\n continue;\n }\n for(i=0;b[i]!='\\0';i++)\n {\n if(b[i]>='a'&&b[i]<='z')\n b[i]=b[i]-32;\n if(b[i]>='A'&&b[i]<='Z')\n continue;\n }\n if(strcmp(a,b)==-1)\n printf(\"<\");\n else if(strcmp(a,b)==1)\n printf(\">\");\n else\n printf(\"=\");\n}"} +{"label": "95", "index": "47280", "code": "//****************************//\n//*?????????????*//\n//*????? *//\n//*???2010.11.17 *//\n//****************************//\nint main()\n{ \n char c1[80],c2[80];\n int len1,len2,i,k=0;//k???????????\n cin.getline(c1,80);\n cin.getline(c2,80);\n len1=strlen(c1);\n len2=strlen(c2);\n for(i=0;i64&&c1[i]<91)&&(c2[i]>64&&c2[i]<91))||((c1[i]>96&&c1[i]<123)&&(c2[i]>96&&c2[i]<123)))\n\t { \n\t if(c1[i]\";\n\t }\n\t else if((c1[i]>64&&c1[i]<91)&&(c2[i]>96&&c2[i]<123))\n\t {\n\t if(c1[i]+32c2[i])\n\t\t cout<<\">\";\n\t }\n\t else if((c1[i]>96&&c1[i]<123)&&(c2[i]>64&&c2[i]<91))\n\t {\n\t if(c1[i]-32c2[i])\n\t\t cout<<\">\";\n\t }\n }\n\tif(k==len1)\n\t\tcout<<\"=\"<='A')\n\t\t\ta[i]=(char)a[i]+32;\n\t}\n\tfor(i=0;i='A')\n\t\t\tb[i]=(char)b[i]+32;\n\t}\n\tif(strcmp(a,b)>0)\n\t\tprintf(\">\");\n\telse if(strcmp(a,b)==0)\n\t\tprintf(\"=\");\n else if(strcmp(a,b)<0)\n\t\tprintf(\"<\");\n\n\treturn 0;\n}\n"} +{"label": "95", "index": "47282", "code": "\nint main()\n{\nint i,A,B,min;\nchar a[100],b[100];\ngets(a);gets(b);\nfor(i=0;i<100;i++) {if(a[i]>='a'&&a[i]<='z') a[i]-=32;\nif(b[i]>='a'&&b[i]<='z') b[i]-=32;}\nA=strlen(a);B=strlen(b);min=(A>B)?B:A;\nfor(i=0;ib[i]) {printf(\">\");break;}\nelse if(a[i]=min) {if(B>A) printf(\"<\");\nelse if(B\");\nelse printf(\"=\");}\nreturn 0;\n} "} +{"label": "95", "index": "47283", "code": "int main()\n{\n\tint n,i;\n\tchar str1[80],str2[80];\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<79;i++)\n\t{\n\t\tif((str1[i]>='A')&&(str1[i]<='Z'))str1[i]=str1[i]+32;\n if((str2[i]>='A')&&(str2[i]<='Z'))str2[i]=str2[i]+32;\n\t\tif((str1[i]=='\\0')&&(str2[i]=='\\0'))break;\n\t}\n\t if(strcmp(str1,str2)>0)printf(\">\\n\");\n\t\telse if(strcmp(str1,str2)<0)printf(\"<\\n\");\n\t\telse printf(\"=\\n\");\n return 0;\n}\n\n"} +{"label": "95", "index": "47284", "code": "\ndaxie(char s[])\n{\n\tint len;\n\tint i,j;\n\tlen=strlen(s);\n\tfor(i=0;i='A'&&s[i]<='Z') s[i]=s[i]+'a'-'A';\n\treturn;\n}\n\nmain()\n{\n\tchar s1[90],s2[90];\n\tint c;\n\n\n\tgets(s1);\n\tgets(s2);\n\n\tdaxie(s1);\n\tdaxie(s2);\n\n\tc=strcmp(s1,s2);\n\tif(c==-1) printf(\"<\");\n\tif(c==0) printf(\"=\");\n\tif(c==1) printf(\">\");\n}\n"} +{"label": "95", "index": "47285", "code": "void main()\n{\n\tint i=0;\n\tchar str1[100],str2[100];\n\tgets(str1);\n\tgets(str2);\n\twhile(str1[i]!='\\0')\n\t{\tif(str1[i]!=str2[i]&&str1[i]+32!=str2[i]&&str1[i]-32!=str2[i])\n\t\t{\n\t\t\tif((str1[i]>='A'&&str1[i]<='Z')&&(str2[i]>='A'&&str2[i]<='Z'))\n\t\t\t{\t\n\t\t\t\tif(str1[i]>str2[i])\n\t\t\t\t{\n\t\t\t\tprintf(\">\");\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t else\n\t\t\t {\n\t\t\t\tprintf(\"<\");\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\t}\n\t\t\tif((str1[i]>='a'&&str1[i]<='z')&&(str2[i]>='a'&&str2[i]<='z'))\n\t\t\t{\t\n\t\t\t\tif(str1[i]>str2[i])\n\t\t\t\t{\n\t\t\t\tprintf(\">\");\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t else\n\t\t\t {\n\t\t\t\tprintf(\"<\");\n\t\t\t\tbreak;\n\t\t\t }\n\t\t\t}\n\t\t\tif((str1[i]>='A'&&str1[i]<='Z')&&(str2[i]>='a'&&str2[i]<='z'))\n\t\t\t{\t\n\t\t\t\tif(str1[i]>str2[i]-32)\n\t\t\t\t{\n\t\t\t\tprintf(\">\");\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t else if(str1[i]='a'&&str1[i]<='z')&&(str2[i]>='A'&&str2[i]<='Z'))\n\t\t\t{\t\n\t\t\t\tif(str1[i]-32>str2[i])\n\t\t\t\t{\n\t\t\t\tprintf(\">\");\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t else if(str1[i]-32=65 && a[i]<=90) a[i]+=32;\n\tfor (i=0;i<=strlen(b)-1;i++)\n\t\tif (b[i]>=65 && b[i]<=90) b[i]+=32;\n\tif (strcmp(a,b)>0) printf(\">\");\n\tif (strcmp(a,b)<0) printf(\"<\");\n\tif (strcmp(a,b)==0) printf(\"=\");\n\n}"} +{"label": "95", "index": "47287", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint i,j=0,k=0,m;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0';i++){\n\t\tk++;\n\t}\n\tfor(i=0;b[i]!='\\0';i++){\n\t\tj++;\n\t}\n\tif(k>j){m=k;}\n\telse{m=j;}\n\tfor(i=0;i96){\n\t\t\t\ta[i]=a[i]-32;\n\t\t\t}\n\t\t\tif(b[i]>96){\n\t\t\t\tb[i]=b[i]-32;\n\t\t\t}\n\t\t\tif(a[i]>b[i]){\n\t\t\t\tprintf(\">\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tprintf(\"<\\n\");\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\telse if(i==m-1){\n\t\t\tprintf(\"=\\n\");\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47288", "code": "int main()\n{\n char str1[80],str2[80];\n int l1,l2,l,i,t[80]={0};\n gets(str1);\n gets(str2);\n l1=strlen(str1);\n l2=strlen(str2);\n if(l1>=l2) \n l=l2;\n else l=l1;\n for(i=0;i<=l-1;i++)\n {\n \n if((str1[i]>=65)&&(str1[i]<=90))\n str1[i]=str1[i]+32;\n \n \n \n if((str2[i]>=65)&&(str2[i]<=90))\n str2[i]=str2[i]+32;\n }\n for(i=0;i<=l-1;i++)\n {\n if(str1[i]==str2[i])\n t[i]=1;\n else\n {\n if(str1[i]>str2[i])\n t[i]=2;\n else\n t[i]=3;\n \n }\n }\n i=0;\n while((t[i]==1)&&(i<=l-2))\n i++;\n \n if(t[i]==1) printf(\"=\");\n else if(t[i]==2) printf(\">\");\n else if(t[i]==3) printf(\"<\");\n \n \n return 0;\n}\n "} +{"label": "95", "index": "47289", "code": "\nvoid trans(char a[])\n{\n int i;\n for (i=0;i<=strlen(a)-1;i++)\n {\n if (a[i]>='A'&&a[i]<='Z')\n a[i]=a[i]+32;\n }\n}\n\nint main(int argc, char *argv[])\n{\n char a[80],b[80];\n gets(a);\n gets(b);\n trans(a);\n trans(b);\n int i,j,flag=1;\n for (i=0,j=0;i<=strlen(a)-1&&j<=strlen(b)-1;i++,j++)\n {\n if (a[i]b[j])\n {\n printf(\">\");\n flag=0;\n break;\n }\n }\n if (flag==1)\n printf(\"=\"); \t\n return 0;\n}\n"} +{"label": "95", "index": "47290", "code": "int strcmp(char *s,char *t){\n char *s1,*t1;\n s1=s;\n t1=t;\n for(s1=s;*s1!='\\0';s1++)if(*s1>='A'&&*s1<='Z')*s1=*s1+32;\n for(t1=t;*t1!='\\0';t1++)if(*t1>='A'&&*t1<='Z')*t1=*t1+32;\n for(;*s==*t&&*s!='\\0';s++,t++);\n return(*s-*t);\n\n\n\n\n\n}\nmain(){\n char str1[80],str2[80];\n gets(str1);\n gets(str2);\n if(strcmp(str1,str2)>0)printf(\">\\n\");\n else if(strcmp(str1,str2)==0)printf(\"=\\n\");\n else printf(\"<\\n\");\n\n\n return 0;\n}"} +{"label": "95", "index": "47291", "code": "int main()\n{\n int i;\n int cmp;\n char s1[max+1],s2[max+1];\n gets(s1);\n gets(s2);\n for(i=0;s1[i];i++)\n {\n if(s1[i]>='a'&&s1[i]<='z')\n s1[i]-='a'-'A';\n }\n for(i=0;s2[i];i++)\n {\n if(s2[i]>='a'&&s2[i]<='z')\n s2[i]-='a'-'A';\n }\n cmp=strcmp(s1,s2);\n if(cmp>0)\n printf(\">\");\n if(cmp==0)\n printf(\"=\");\n if(cmp<0)\n printf(\"<\");\n return 0;\n}"} +{"label": "95", "index": "47292", "code": "\n\nint main()\n{\n\tchar a[80], b[80];\n\tint i,l,c,d;\n\tgets(a);\n\tgets(b);\n c=strlen(a);\n\td=strlen(b);\n\tif(c>=d) l=c;\n\telse l=d;\n\n\tfor(i=0;i<=l;i++)\n\t{\n\t\t\n if(a[i]>=65&&a[i]<=90) a[i]=a[i]+32;\n\t if(b[i]>=65&&b[i]<=90) b[i]=b[i]+32;\n\t if(a[i]>b[i]) {printf(\">\\n\"); break;}\n\t if(a[i]=65&&a[i]<=90)\n a[i]=a[i]+32;\n if(b[i]>=65&&b[i]<=90)\n b[i]=b[i]+32;\n }\n j=strcmp(a,b);\n switch(j)\n {\n case 1:printf(\">\\n\");break;\n case 0:printf(\"=\\n\");break;\n case -1:printf(\"<\\n\");break;\n }\n}\n"} +{"label": "95", "index": "47294", "code": "void main()\n{\n\tchar a[80],b[80];\n\tint i,m,n,t,p=1;\n\tgets (a);\n\tgets (b);\n m=strlen (a);\n\tn=strlen (b);\n\tt=(m>n)?m:n;\n\tfor (i=0;i96) a[i]=a[i]-32;\n\t\tif (b[i]>96) b[i]=b[i]-32;\n\t\tif (a[i]>b[i]) {printf (\">\");p=0;break;}\n\t\telse if (a[i]n) printf (\">\");\n\t\telse if (m=n) printf(\"=\");\n\t\t else printf (\"<\");\n}"} +{"label": "95", "index": "47295", "code": "int main()\n{\n\tchar a[80];\n\tchar b[80];\n\tint m,i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]<91)\n\t\t{a[i]=a[i]+32;}\n\t}\n\tfor(i=0;b[i]!='\\0';i++)\n\t{\n\t\tif(b[i]<91)\n\t\t{b[i]=b[i]+32;}\n\t}\n\tm=strcmp(a,b);\n\tif(m>0)\n\t\tprintf(\">\");\n\telse if(m==0)\n\t\tprintf(\"=\");\n\telse\n\t\tprintf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47296", "code": "int y(int x);\nmain()\n{\n char a[80],b[80];char m;\n gets(a);\n gets(b);\n int i,na,nb;\n for(i=0;a[i]!='\\0';i++)\n {}\n na=i;\n for(i=0;b[i]!='\\0';i++)\n {}\n nb=i;\n for(i=0;i='A'&&a[i]<='Z')\n a[i]+=32;\n }\n for(i=0;i='A'&&b[i]<='Z')\n b[i]+=32;\n }\n if(strcmp(a,b)>0)\n m='>';\n else if(strcmp(a,b)<0)\n m='<';\n else\n m='=';\n \n printf(\"%c\",m);\n \n}\n"} +{"label": "95", "index": "47297", "code": "int main()\n{\n\tchar c[100],d[100];\n\tgets(c);\n\n\tgets(d);\n\tint n,i,m1,m2;\n\tm1=0;\n\tm2=0;\n\tn=strlen(c);\n\tfor(i=0;i='A'&&c[i]<='Z')\n\t\t\tc[i]=c[i]+32;\n\t\tm1=m1+c[i];\n\t\tif(d[i]>='A'&&d[i]<='Z')\n\t\t\td[i]=d[i]+32;\n\t\tm2=m2+d[i];\n\t}\n\tif(m1==m2)\n\t\tprintf(\"=\\n\");\n\tif(m1>m2)\n\t\tprintf(\">\\n\");\n\tif(m1= 'a' && s1[i] <= 'z')\n {\n s1[i] -= 'a' - 'A';\n }\n if (s2[i] >= 'a' && s2[i] <= 'z')\n {\n s2[i] -= 'a' - 'A'; \n }\n if (s1[i] != s2[i]) \n {\n printf((s1[i] > s2[i]) ? \">\" : \"<\");\n return 0;\n }\n }\n\n printf(\"=\");\n return 0;\n}"} +{"label": "95", "index": "47299", "code": "int main ()\n{\n\t\n\tint i,t=0;\n\tint a[100],b[100];\n\tfor (i=0;(a[i]=cin.get())!='\\n';i++)\n\t{\n\t\tif (a[i]>96 && a[i]<123) \n\t\t\ta[i]=a[i]-32;\n\t}\n\ta[i]='\\0';\n\tfor (i=0;(b[i]=cin.get())!='\\n';i++)\n\t{\n\t\tif (b[i]>96 && b[i]<123)\n\t\t\tb[i]=b[i]-32;\n\t}\n\tb[i+1]='\\0';\n for (i=0;a[i]!='\\0' && b[i]!='\\0';i++)\n {\n\t\tif (a[i]>b[i]) \n\t\t{\n\t\t\tt=1;\n\t\t\tbreak;\n\t\t}\n\t\telse if (a[i]\"<='A')&&(s1[i]<='Z'))\n\t\t\ts1[i]+=32;\n\t}\n\tfor(j=0;s2[j]!='\\0';j++)\n\t{\n\t\tif((s2[j]>='A')&&(s2[j]<='Z'))\n\t\t\ts2[j]+=32;\n\t}\n\tif(strcmp(s1,s2)>0)\n\t\tprintf(\">\");\n\telse if(strcmp(s1,s2)<0)\n\t\tprintf(\"<\");\n\telse\n\t\tprintf(\"=\");\n\tscanf(\"%d\",&j);\n}\n\n"} +{"label": "95", "index": "47301", "code": "\nint main()\n{ char s[80];\n char q[80];\n int i;\n gets(s);\n gets(q);\n for( i=0;i<=80;i++)\n {\n\t if(s[i]>=65&&s[i]<=90)\n\t {\n\t\t s[i]=s[i]+32;\n\t }\n\t\n\t else if(s[i]==0)\n\t {\n\t\t break;\n\t }\n }\n for( i=0;i<=80;i++)\n {\n\t if(q[i]>=65&&q[i]<=90)\n\t {\n\t\t q[i]=q[i]+32;\n\t }\n\t\n\t else if(q[i]==0)\n\t {\n\t\t break;\n\t }\n }\n\n for( i=0;i<=80;i++)\n {\n\t\n\t if(s[i]>q[i])\n\t {printf(\">\"); \n\t break;\n\n\t }\n\t else if(s[i]='A'&&s1[i]<='Z')\n\t\t\ts1[i]+=32;\n\t\tif(s2[i]>='A'&&s2[i]<='Z')\n\t\t\ts2[i]+=32;\n\t\tif(s1[i]==s2[i]) continue;\n\t\tif(s1[i]';\n\t}\n\tif(strlen(s1)==strlen(s2))\n\t\treturn '=';\n\telse if(strlen(s1)';\n}"} +{"label": "95", "index": "47303", "code": "int main()\n{\n\tchar a[2][80];\n\tint i,j;\n\tfor(i=0;i<2;i++)\n\t{\n\t cin.getline(a[i],80);\t\t\t\n\t for(j=0;j='A' && a[i][j]<='Z')\n { \n\t\ta[i][j]=a[i][j]+32; \n\t }\n\t }\n }\n\tif(strcmp(a[0],a[1])==1)\n\t\tcout<<'>'<='A'&&c<='Z') str1[i]=c+32;\n\tfor(i=0;(c=str2[i])!='\\0';i++)\n\t\tif(c>='A'&&c<='Z') str2[i]=c+32;\n\t\n\tif(strcmp(str1,str2)>0) printf(\">\\n\");\n\telse if(strcmp(str1,str2)<0) printf(\"<\\n\");\n\telse printf(\"=\\n\");\n\n\n\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47305", "code": "int main()\n{\n int n,m,i,j,k,s=0;\n char a[2][80];\n gets(a[0]);\n gets(a[1]);\n for(i=0;i<2;i++)\n for(j=0;;j++)\n {\n\tif((a[i][j]>='A')&&(a[i][j]<='Z'))\n\ta[i][j]=a[i][j]-'A'+'a';\n\tif(a[i][j]==0)break;\n }\n\n if(strcmp(a[0],a[1])==0)printf(\"=\");\n if(strcmp(a[0],a[1])>0)printf(\">\");\n if(strcmp(a[0],a[1])<0)printf(\"<\");\n\n \n \n}"} +{"label": "95", "index": "47306", "code": "int main()\n{\n\tchar a[85],b[85];\n\tint i=0,k=0;\n\tgets(a);\n\tgets(b);\n\twhile(a[i]!=0&&b[i]!=0)\n\t{\n\t\tif(a[i]>='a')a[i]=a[i]-'a'+'A';\n\t\tif(b[i]>='a')b[i]=b[i]-'a'+'A';\n\t if(a[i]>b[i]){printf(\">\"); k=1;break;}\n\t if(a[i]='a' && a[i]<='z')\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0;b[i]!='\\0';i++)\n\t{\n\t\tif(b[i]>='a' && b[i]<='z')\n\t\t\tb[i]=b[i]-32;\n\t}\n\tlena=strlen(a);lenb=strlen(b);\n\tif(lena=lenb)\n\t\tmin=lenb;\n\tfor(i=0;ib[i])\n\t\t\t{\n\t\t\t\tcout<<\">\"<lenb)\n\t\t\t\tcout<<\">\"<=97&&m<=122) {m=m-32;a[i]=(char)m;}\n}\nfor(j=0;j=97&&r<=122) {r=r-32;b[j]=(char)r;}\n}\nx=strcmp(a,b);\nif(x>0) printf(\">\");\nelse if(x==0) printf(\"=\");\nelse if(x<0) printf(\"<\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47309", "code": "int main()\n{\n\tint i;\n\tchar x[100],y[100];\n\tgets(x);\n\tgets(y);\n\tint lenx=strlen(x);\n\tint leny=strlen(y);\n\tfor(i=0;i'A'&&x[i]<='Z')\n\t\t\tx[i]+=32;\n\t}\n\tfor(i=0;i'A'&&y[i]<='Z')\n\t\t\ty[i]+=32;\n\t}\n\tif(strcmp(x,y)>0)\n\t\tprintf(\">\");\n\telse\n\t{\n\t\tif(strcmp(x,y)<0)\n\t\t\tprintf(\"<\");\n\t\telse \n\t\t\tprintf(\"=\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47310", "code": "\nint main()\n{\n\tchar c[20], d[20];\n\tint i, logo=1;\n\tgets(c);gets(d);\n for(i=0; c[i] !='\\0' && d[i] != '\\0'; i++)\n\t{\n\t\tif(c[i]>='A' && c[i]<='Z')\n c[i]+=('a'-'A');\n if(d[i]>='A' && d[i]<='Z')\n\t\t\td[i]+=('a'-'A');\n\t\tif(c[i] != d[i])\n\t\t{\n\t\t\tlogo=0;\n\t\t if(c[i] > d[i])\n\t\t\t{\n\t\t\t\tprintf(\">\\n\");\n\t\t\t break;\n\t\t\t}\n else if(c[i] < d[i])\n\t\t\t{\n\t printf(\"<\\n\");\n\t\t break;\n\t\t\t} \n\t\t}\n }\n\tif(logo==1)\n\t\tprintf(\"=\\n\");\n\treturn 0; \n}"} +{"label": "95", "index": "47311", "code": "main()\n{\nchar a[81],b[81];\nint lena,lenb,i,k=0;\ngets(a);gets(b);\nlena=strlen(a)-1;\nlenb=strlen(b)-1;\nfor (i=0;i=65) && (a[i]<=90)) a[i]=a[i]+32;}\nfor (i=0;i=65) && (b[i]<=90)) b[i]=b[i]+32;}\nfor (i=0;i<=lena;i++)\n{\nk=k+1;\nif (a[i]b[i]) {printf (\">\"); goto end_loop;}\n}\nif (k=lena) printf (\"=\");\nend_loop:\nreturn 0;\n}"} +{"label": "95", "index": "47312", "code": "int main()\n{\n\tchar a[80],b[80];\n\tint i;\n\tfor(i=0;i<80;i++)\n\t{\n\t\ta[i]=0;\n\t\tb[i]=0;\n\t}\n\tcin.getline(a,80);\n\tcin.getline(b,80);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(a[i]>='A'&&a[i]<='Z')\n\t\t{\n\t\t\ta[i]=a[i]+32;\n\t\t}\n\t\tif(b[i]>='A'&&b[i]<='Z')\n\t\t{\n\t\t\tb[i]=b[i]+32;\n\t\t}\n\t}\n\tif(strcmp(a,b)>0)\n\t{\n\t\tcout<<\">\"<=97) a[i]-=32;\n\t\tif (b[i]>=97) b[i]-=32;\n\t\tif (a[i]>b[i])\n\t\t{\n\t\t\tcout<<'>';\n\t\t\treturn 0;\n\t\t}\n\t\tif (a[i]='A' && str1[i]<='Z')\n\t\t\t str1[i]+=32;\n for(i=0; i='A' && str2[i]<='Z')\n\t\t\tstr2[i]+=32;\n\tif(strcmp(str1,str2)>0)\n\t\tcout << '>';\n\telse if(strcmp(str1,str2)<0)\n\t\tcout << '<';\n\telse\n\t\tcout <<'=';\n\treturn 0;\n}\n"} +{"label": "95", "index": "47318", "code": "/*\n *bigorsamll.cpp\n *\n * Created on: 2011-10-28\n * Author: 11287\n */\nint main()\n{\n char str1[80],str2[80]; //?????\n int i;\n cin.getline(str1,80); //?????\n cin.getline(str2,80);\n for(i=0;str1[i]!='\\0';i++) //?????\n\t if(str1[i]>='A'&&str1[i]<='Z')\n\t\t str1[i]=str1[i]+32;\n for(i=0;str2[i]!='\\0';i++)\n \t if(str2[i]>='A'&&str2[i]<='Z')\n \t\t str2[i]=str2[i]+32;\n if(strcmp(str1,str2)<0) cout<<\"<\"<0) cout<<\">\"<0)\n\t\tcout<<\">\"<='A')str1[i]=str1[i]+32;\n if(str2[i]<='Z'&&str2[i]>='A')str2[i]=str2[i]+32;\n \n if(str1[i]>str2[i])\n {printf(\">\");break;}\n else if(str1[i]('a'-1))\n\t\t\ta[i]=a[i]+('A'-'a');\n\t\tif(b[i]>('a'-1))\n\t\t\tb[i]=b[i]+('A'-'a');\n\t}\n\tif(strcmp(a,b)<0)\n\t\tcout<<\"<\";\n\tif(strcmp(a,b)==0)\n\t\tcout<<\"=\";\n\tif(strcmp(a,b)>0)\n\t\tcout<<\">\";\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47322", "code": "int main()\n{\n\tchar a[85],b[85];\n\tgets(a);\n\tgets(b);\n\tint la,lb,i,t;\n\tla = strlen(a);\n\tlb = strlen(b);\n\tfor ( i = 0 ; i < la ; i ++ )\n\t{\n\t\tif( a[i] >= 65 && a[i] <= 90 )\n a[i] += 32;\n\t}\n\tfor ( i = 0 ; i < lb ; i ++ )\n\t{\n\t\tif( b[i] >= 65 && b[i] <= 90 )\n b[i] += 32;\n\t}\n\tif ( la <= lb )\n\t\tt = lb;\n\telse\n\t\tt = la;\n\t\tfor ( i = 0 ; i < t ; i ++ )\n\t\t{\n\t\t\tif ( a[i] == b[i] );\n\t\t\tif ( a[i] > b[i] )\n\t\t\t{\n\t\t\t\tcout<<\">\"<96) str1[i]-=32;\n\t\telse str1[i]-=0;\n\t\tif(str2[i]>96) str2[i]-=32;\n\t\telse str2[i]-=0;\n\t}\n\tif(strcmp(str1, str2)<0) printf(\"<\");\n\telse if(strcmp(str1, str2)>0) printf(\">\");\n\telse printf(\"=\");\n}"} +{"label": "95", "index": "47324", "code": "\nint main(int argc, char* argv[])\n{\n char a[30];\n char b[30];\n gets(a);\n gets(b);\n int i;\n int m,n;\n m=strlen(a);\n n=strlen(b);\n for(i=0;i0){\n\t printf(\">\");\n }\n else if(strcmp(a,b)<0){\n\t printf(\"<\");\n }\n else printf(\"=\");\n\n\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47325", "code": "int main()\n{\n\tchar s[1][100];\n\tint i;\n\tfor(i=0;i<2;i++)\n\t{\n\t\tgets(s[i]);\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tif(s[0][i]>='a'&&s[0][i]<='z')\n\t\t{\n\t\t\ts[0][i]=s[0][i]-32;\n\t\t}\n\t\tif(s[1][i]>='a'&&s[1][i]<='z')\n\t\t{\n\t\t\ts[1][i]=s[1][i]-32;\n\t\t}\n\t\tif(s[0][i]>s[1][i])\n\t\t{\n\t\t\tcout<<\">\"<strlen(b))\n\t{\n\t\tmax=strlen(a);\n\t}\n\telse\n\t{\n\t\tmax=strlen(b);\n\t}\n\tfor(i=0;i<=max-1;i++)\n\t{\n\t\tif(a[i]>=97)\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t\tif(b[i]>=97)\n\t\t{\n\t\t\tb[i]=b[i]-32;\n\t\t}\n\t\tif(a[i]==b[i])\n\t\t{\n\t\t\tt=t+1;\n\t\t}\n\t\telse if(a[i]>b[i])\n\t\t{\n\t\t\tcout<<\">\"<<'\\n';\n\t\t}\n\t\telse if(a[i]64) a[i]+=32;\n if(b[i]<91&&b[i]>64) b[i]+=32;\n }\n d=strcmp(a,b);\n if(d>0) printf(\">\");\n else if(d<0) printf(\"<\");\n else printf(\"=\");\n return 0;\n}"} +{"label": "95", "index": "47328", "code": "int main()\n{\n\tchar str1[80],str2[80]; //??????????????????\n\tint i,j,length; //i?j?????\n\t/*??str1??????????\n\t???????????????????????????????\n\t?????????????????????????????\\0?ASCII???????????????*/\n\tcin.getline(str1,80); //???????????\n\tcin.getline(str2,80);\n\tlength=strlen(str1); \n\tfor(i=0;istr2[i]) //??????????????????\n\t\t{\n\t\t\tcout<<'>'<='A'&&b[i]<='Z')\n\t\t\tb[i]=b[i]+32;\n\t}\n\tt=strcmp(c,b);\n\tif(t==0)\n\t\tprintf(\"=\\n\");\n\telse if (t==-1)\n\t\tprintf(\"<\\n\");\n\t\telse if(t==1)\n\t\tprintf(\">\\n\");\n\treturn 0;\n\n\n}"} +{"label": "95", "index": "47330", "code": "\n\nint main()\n{\n\tchar str[2][100];\n\tint i,n=0;\n\tcin.getline(str[0],99);\n\tcin.getline(str[1],99);\n\tfor(i=0;str[0][i]!='\\0'&&str[1][i]!='\\0';i++)\n\t{ if(str[0][i]>96)\n\t str[0][i]=str[0][i]-32;\n\t if(str[1][i]>96)\n\t str[1][i]=str[1][i]-32;\n\t\tif(str[0][i]==str[1][i])\n\t\t\tcontinue;\n\t\telse if(str[0][i]>str[1][i])\n\t\t{n++;cout<<\">\"<0) printf(\">\");\n\telse if(strcmp(c,d)<0) printf(\"<\");\n\telse printf(\"=\");\n}\nchar strupr(char x)\n{\n\tif(x>96&&x<123)\n\t\treturn (x-32);\n\telse return (x);\n}"} +{"label": "95", "index": "47332", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint n=0,i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>64&&a[i]<91)\n\t\t\ta[i]=a[i]+32;\n\t}\n\tfor(i=0;b[i]!='\\0';i++)\n\t{\n\t\tif(b[i]>64&&b[i]<91)\n\t\t\tb[i]=b[i]+32;\n\t}\n\tfor(i=0;a[i]!='\\0'&&b[i]!='\\0';i++)\n\t{\n\t\tn=a[i]-b[i];\n\t\tif(n!=0)\n\t\t\tbreak;\n\t}\n\tif(n==0)\n\t\tprintf(\"=\");\n\telse if(n<0)\n\t\tprintf(\"<\");\n\telse\n\t\tprintf(\">\");\n\treturn 0;\n}"} +{"label": "95", "index": "47333", "code": "\nint main()\n{\n\tchar a[100],b[100];\n\tcin.getline(a,100);\n\n\tcin.getline(b,100);\n\tfor(int i=0;a[i]!='\\0';++i)\n\t{\n\t\tif(a[i]>='A'&&a[i]<='Z')\n\t\t\ta[i]+=32;\n\t}\n\tfor(int i=0;a[i]!='\\0';++i)\n\t{\n\t\tif(b[i]>='A'&&b[i]<='Z')\n\t\t\tb[i]+=32;\n\t}\n\tfor(int i=0;i<100;++i)\n\t{\n\t\tif(a[i]!='\\0'&&b[i]!='\\0'&&(a[i]==b[i]))\n\t\t\tcontinue;\n\t\telse if(a[i]=='\\0'||b[i]=='\\0')\n\t\t\t{\n\t\t\t\tif(a[i]==b[i])\n\t\t\t\t{cout<<\"=\";break;}\n\t\t\telse \n\t\t\t{cout<<(a[i]>b[i]?\">\":\"<\");break;}\n\t\t }\n\t\telse\n\t\t\t{\n\t\t\t\tcout<<(a[i]>b[i]?\">\":\"<\");\n\t\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47334", "code": "/*\n * xx.cpp\n *\n * Created on: 2011-11-2\n * Author: FXD\n */\n\nint main()//?????\n{//?????\n\tchar a[80],b[80];//?????????????????\n\tint i;//\n\tcin.getline(a,80);//??a?????\n\tcin.getline(b,80);//??b?????\n\tfor(i=0;i<80;i++)//\n\t{if(a[i]>=65&&a[i]<=90)//\n\t\t{a[i]=a[i]+32;}//\n\tif(b[i]>=65&&b[i]<=90)//\n\t{b[i]=b[i]+32;}}//??????????????\n\tif(strcmp(a,b)>0)cout<<\">\";//\n\tif(strcmp(a,b)==0)cout<<\"=\";//\n\tif(strcmp(a,b)<0)cout<<\"<\";//?strcmp???????????????\n\treturn 0;//???????????????????\n\t}//?????\n\n"} +{"label": "95", "index": "47335", "code": "\nint main()\n{\n char flag='=',i=0;\n char sen_1[80];\n char sen_2[80];\n \n gets(sen_1);\n gets(sen_2);\n \n for(i=0;i<80;i++)\n {\n if(65<=sen_1[i]&&sen_1[i]<=90)\n sen_1[i]=sen_1[i]+32;\n if(65<=sen_2[i]&&sen_2[i]<=90)\n sen_2[i]=sen_2[i]+32;\n \n if(sen_1[i]=='\\0'&&sen_2[i]!='\\0')\n {\n flag='<';\n break;\n }\n else if(sen_2[i]=='\\0'&&sen_1[i]!='\\0')\n {\n flag='>';\n break;\n }\n else if(sen_1[i]>sen_2[i])\n {\n flag='>';\n break;\n }\n else if(sen_1[i]=65&&a[i]<=90) a[i]+=32;\n for(i=0;i=65&&b[i]<=90) b[i]+=32;\n\ti=strcmp(a,b);\n\tif(i>0) printf(\">\\n\");\n\telse if(i==0) printf(\"=\\n\");\n\telse printf(\"<\\n\");\n\treturn 0;\n}"} +{"label": "95", "index": "47337", "code": "\nint main()\n{\n\tchar a[100],b[100];\n\tint i=0;\n\tcin.getline(a,100);\n\tcin.getline(b,100);\n\tfor( i=0 ; i<100 ; i++ )\n\t{\n\t\tif( a[i]>=65 && a[i]<=90 )\n\t\t{\n\t\t\ta[i]+=32;\n\t\t}\n\t\tif( b[i]>=65 && b[i]<=90 )\n\t\t{\n\t\t\tb[i]+=32;\n\t\t}\n\t}\n\tif( strcmp(a,b)>0 )\n\t{\n\t\tcout<<\">\"<text2[i]) c='>'; if(text1[i]='A'&&a[i]<='Z')\n\t\t\ta[i]=a[i]+32;\n\t\t\n\t\tif (b[i]>='A'&&b[i]<='Z')\n\t\t\tb[i]=b[i]+32;\n\t\n\t\tif (a[i]>b[i])\n\t\t{\n\t\t\tcout <<'>';leap=0;break;\n\t\t}\n\t\tif (a[i]='A'){\n\t\t\tp[i]=p[i]+32;\n\t\t}\n\t}\n\tfor(i=0;d[i]!='\\0';i++){\n\t\tif(d[i]<='Z'&&d[i]>='A'){\n\t\t\td[i]=d[i]+32;\n\t\t}\n\t}\n\tfor(i=0;p[i]!='\\0'&&d[i]!='\\0';i++){\n\t\tif(p[i]>d[i]&&j==0){\n\t\t\tprintf(\">\");\n\t\t\tj=1;\n\t\t}\n\t\telse if(p[i]='a')) //???????????????\n \t\tstr1[i]=str1[i]-32;\n }\n for(i=0;i<=length2-1;i++){\n \tif((str2[i]<='z')&&(str2[i]>='a'))\n \t\tstr2[i]=str2[i]-32;\n }\n a=strcmp(str1,str2);\n if(a==0)\n \tcout<<\"=\";\n if(a==-1)cout<<\"<\";\n if(a==1)cout<<\">\";\n return 0;\n}\n"} +{"label": "95", "index": "47342", "code": "void main()\n{\n\tchar a[100],b[100];\n\tint i,p;\n\tgets(a);\n\tgets(b);\n\tp=strlen(a);\n\tfor(i=0;i<=p-1;i++)\n\t{\n\t\tif((a[i]>'A'||a[i]=='A') && (a[i]<'Z'||a[i]=='Z'))\n\t\t\ta[i]=a[i]+32;\n\t\tif((b[i]>'A'||b[i]=='A') && (b[i]<'Z'||b[i]=='Z'))\n\t\t\tb[i]=b[i]+32;\n\t}\n\tfor(i=0;i<=p-1;i++)\n\t{\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tprintf(\">\");break;\n\t\t}\n\t\tif(a[i]0) printf(\">\");\n\telse if(strcmp(str1,str2)<0) printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47344", "code": "int main(int argc, char* argv[])\n{\n\tint n,i;\n\tchar s[100],t[100],*ps,*pt;\n\tchar da[27]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\tchar xiao[27]=\"abcdefghijklmnopqrstuvwxyz\";\n\tgets(s);\n\tgets(t);\n\tfor(ps=s,pt=t;*ps!='\\0',*pt!='\\0';ps++,pt++)\n\t{\n\t\tfor(i=0;i<27;i++)\n\t\t{\n\t\t\tif(*ps==da[i])\n\t\t\t\t*ps=xiao[i];\n\t\t\tif(*pt==da[i])\n\t\t\t\t*pt=xiao[i];\n\t\t}\n\t}\n n=strcmp(s,t);\n\tif(n>0)\n\t\tprintf(\">\\n\");\n\tif(n<0)\n\t\tprintf(\"<\\n\");\n\telse\n\t\tprintf(\"=\\n\");\n\treturn 0;\n}"} +{"label": "95", "index": "47345", "code": "void main()\n{\n\tchar s1[255],s2[255];\n\tint i,t;\n\tgets(s1);\n\tgets(s2);\n\tfor(i=0;s1[i]&&s2[i];i++)\n\t{\n\t\tif(s1[i]>='a'&&s1[i]<='z')\n\t\t{\n\t\t\ts1[i]=s1[i]-'a'+'A';\n\t\t}\n\t\tif(s2[i]>='a'&&s2[i]<='z')\n\t\t{\n\t\t\ts2[i]=s2[i]-'a'+'A';\n\t\t}\n\t\tif(s1[i]!=s2[i])\n\t\t{\n\t\t\tprintf((s1[i]>s2[i])?\">\":\"<\");\n\t\t\tbreak;\n\t\t}\n\t}\n\tt=strcmp(s1,s2);\n\tif(t==0)\n\t\tprintf(\"=\");\n}\n\n"} +{"label": "95", "index": "47346", "code": "int main()\n{\n char a[80]={0},b[80]={0};\n int i=0;\n for(gets(a);i<80,a[i];i++){\n if(a[i]>='A'&&a[i]<='Z')a[i]+=32;\n }\n i=0;\n for(gets(b);i<80,b[i];i++){\n if(b[i]>='A'&&b[i]<='Z')b[i]+=32;\n }\n if(strcmp(a,b)==1)printf(\"%c\",'>');\n if(strcmp(a,b)==0)printf(\"%c\",'=');\n if(strcmp(a,b)==-1)printf(\"%c\",'<');\n return 0;\n}"} +{"label": "95", "index": "47347", "code": "int main(int argc, char* argv[])\n{\n\tchar a[81];\n\tchar b[81];\n\tint c,d,i;\n\tgets(a);\n\tgets(b);\n\tc=strlen(a);\n\td=strlen(b);\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0;i='a'&&b[i]<='z')\n\t\t\tb[i]=b[i]-32;\n\t}\n\tif(strcmp(a,b)==1)\n\t\tprintf(\">\");\n\telse if(strcmp(a,b)==-1)\n\t\tprintf(\"<\");\n\telse printf(\"=\");\n\t\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47348", "code": "int main ()\n{ char s1[81];\n char s2[81];\n int i;\n gets(s1);\n gets(s2);\n \n for(i=0;i<=80;i++)\n {\n if (s1[i]>=65&&s1[i]<=90)\n s1[i]+=32;\n }\nfor(i=0;i<=80;i++)\n {\n if (s2[i]>=65&&s2[i]<=90)\n s2[i]+=32;\n }\n if (strcmp(s1,s2)==0) printf(\"=\");\n else if (strcmp(s1,s2)>0) printf(\">\");\n else printf(\"<\");\n\nreturn 0;\n}\n\n\n"} +{"label": "95", "index": "47349", "code": "\n\nint main()\n{\n\tchar a[80], b[80];\n\tcin.getline(a, 80);\n\tcin.getline(b, 80);\n\tint i;\n\tfor(i = 0; i < strlen(a); i++)\n\t{\n\t\tif(a[i] < 97 && a[i] >= 65)\n\t\t\ta[i] += 32;\n\t\tif(b[i] < 97 && a[i] >= 65)\n\t\t\tb[i] += 32;\n\t}\n\tif(strcmp(a, b) == 0)\n\t\tcout << '=' << endl;\n\telse if(strcmp(a, b) > 0 )\n\t\tcout << '>' << endl;\n\telse\n\t\tcout << '<' << endl;\n\treturn 0;\n}"} +{"label": "95", "index": "47350", "code": "\nint main()\n{\n\tchar str1[1000];\n\tchar str2[1000];\n\tgets(str1);\n\tgets(str2);\n\tfor(int i = 0; i < strlen(str1); i++)\n\t{\n\t\tif((str1[i] <= 'Z') && (str1[i] >= 'A'))\n\t\t{\n\t\t\tstr1[i] = str1[i] - ('A' - 'a');\n\t\t}\n\t}\n\tfor(int i = 0; i < strlen(str2); i++)\n\t{\n\t\tif ((str2[i] <= 'Z') && (str2[i] >= 'A'))\n\t\t{\n\t\t\tstr2[i] = str2[i] - ('A' - 'a');\n\t\t}\n\t}\n\n\t//cout << str1 << endl << str2 << endl;\n\tint i = strcmp(str1,str2);\n\t//cout << i << endl;\n\tif (i == 0) \n\t\tcout << '=';\n\telse \n\t\tif (i > 0) \n\t\t\tcout << '>';\n\t\telse \n\t\t\tcout << '<';\n}\t"} +{"label": "95", "index": "47351", "code": "main()\n{\n\tint compare(char str1[80],char str2[80]);\n\tint k=0;\n\tchar str1[80],str2[80];\n\tgets(str1);\n\tgets(str2);\n\tk=compare(str1,str2);\n\tif(k==0) printf(\"=\\n\");\n\telse if(k==1) printf(\">\\n\");\n\telse if(k==-1) printf(\"<\\n\");\n}\nint compare(char str1[80],char str2[80])\n{\n\tint i,m;\n\tfor(i=0;i<80;i++)\n\t{\n\tif(str1[i]!='\\0'&&str2[i]!='\\0'){\n\t\tif(str1[i]==str2[i]||(str1[i]==str2[i]+32||str1[i]==str2[i]-32)) continue;\n\t\telse if(str1[i]!=str2[i]+32||str1[i]!=str2[i]-32){\n\t\t\tif(str1[i]<='Z'&&str2[i]<='Z'||str1[i]>='a'&&str2[i]>='a')\n\t\t\t\t{\n\t\t\t if(str1[i]>str2[i]) {m=1;break;}\n else {m=-1;break;}\n\t\t\t\t }\n\t\t\t else if(str1[i]<='Z'&&str2[i]>='a')\n\t\t\t {\n\t\t\t if(str1[i]>str2[i]-32) {m=1;break;}\n else {m=-1;break;}\n\t\t\t }\n\t\t else if(str1[i]>='a'&&str2[i]<='Z')\n\t\t\t {\n\t\t\t if(str1[i]>str2[i]+32) {m=1;break;}\n else {m=-1;break;}\n\t\t\t }\n\t\t}\n\t\t\n\t}\n\tif(str1[i]=='\\0'&&str2[i]=='\\0') {m=0;break;}\n\telse continue;\n\t}\n\treturn m;\n}\n"} +{"label": "95", "index": "47352", "code": "/*\n * 10.cpp\n * Created on: 2010-11-7\n * Author: lulan\n * ?????????????\n */\n\n\nint main(){\n\tint i;//????\n\tchar a[100],b[100];//??????\n\tcin.getline(a,81);//?????a\n\tcin.getline(b,81);//?????b\n\t for(i=0;i<81;i++){\n if(a[i]<='Z'&&a[i]>='A')\n\t\t\ta[i]+=32;\n\t\telse continue;//???????????????\n\t}\n\t for(i=0;i<81;i++){\n if(b[i]<='Z'&&b[i]>='A')\n\t\t\tb[i]+=32;\n\t\telse continue;\n\t }\n\tif(strcmp(a,b)>0)\n\t\tcout<<\">\"<='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(j=0;b[j]!='\\0';j++)\n\t{\n\t\tif(b[j]>='a'&&b[j]<='z')\n\t\t\tb[j]=b[j]-32;\n\t}\n\tif(strcmp(a,b)==0) printf(\"=\");\n\tif(strcmp(a,b)>0) printf(\">\");\n\tif(strcmp(a,b)<0) printf(\"<\"); \n\treturn 0;\n}\n"} +{"label": "95", "index": "47354", "code": "\n\n\nint main()\n{\n\tchar a[100],b[100],x='=';\n\tint i=0,m,n,s=0;\n\tgets(a);\n\tgets(b);\n\tif (strlen(a)>strlen(b))\n\t\tn=strlen(a);\n\telse\n\t\tn=strlen(b);\n\twhile (1)\n\t{\n\tif (i==n)\n\t{\n\t\tif (strlen(a)>strlen(b))\n\t\t{x='>';break;}\n\t\tif (strlen(a)='A'&&a[i]<='Z'&&b[i]>='a'&&b[i]<='z')\n\t\tb[i]-=32;\n\tif (a[i]>='a'&&a[i]<='z'&&b[i]>='A'&&b[i]<='Z')\n\t\ta[i]-=32;\n\tif (a[i]='A'&&a[i]<='Z'&&b[i]>='a'&&b[i]<='z'&&((b[i]-32)-a[i]==32))\n\t\t{i++;continue;}\n\t\telse\n\t\t{x='<';break;}\n\t}\n if (a[i]>b[i])\n\t{\n\t\tif (a[i]>='a'&&a[i]<='z'&&b[i]>='A'&&b[i]<='Z'&&(b[i]-a[i]==-32))\n\t\t{i++;continue;}\n\t\telse\n\t\t{x='>';break;}\n\t}\n i++;\n\t}\n\tprintf(\"%c\",x);\n\n\n\treturn 0;\n}\n"} +{"label": "95", "index": "47355", "code": "void main()\n{char a[100],b[100],c,d;\nint i,j,k;\ngets(a);\ngets(b);\nfor(j=0;(c=a[j])!='\\0';j++)\n{ c=c;}\nfor(k=0;(d=b[k])!='\\0';k++)\n{ d=d;}\nif(j==k)\n{\n for(i=0;i<=j;i=i+1)\n { c=a[i];\n if(c>='A'&&c<='Z') c-='A'-'a'; d=b[i];if(d>='A'&&d<='Z') d-='A'-'a';\n if(c==d) continue;\n else if(c>d) {printf(\">\"); break;}\n else if(c=j)\n printf(\"=\");\n}\n}\n"} +{"label": "95", "index": "47356", "code": "void main()\n{\n\tint a,n,m,i;\n\tchar s1[80],s2[80];\n\tgets(s1);\n\tgets(s2);\n\tn=strlen(s1);\n\tm=strlen(s2);\n\tfor(i=0;i='a'&&s1[i]<='z') s1[i]=s1[i]-32;\n\t}\n\tfor(i=0;i='a'&&s2[i]<='z') s2[i]=s2[i]-32;\n\t}\n\ta=strcmp(s1,s2);\n\tif(a==0) printf(\"=\");\n\telse if(a>0) printf(\">\");\n\telse if(a<0) printf(\"<\");\n}"} +{"label": "95", "index": "47357", "code": "/*\n * 1000012889_30.1.cpp\n *\n * Created on: 2010-11-10\n * Author: ???\n * ??:??????????\n */\n\n\n\nint main(){\n\tint i,j;\n\tchar a[80],b[80]; //???????\n\tcin.getline(a,80); //???????\n\tcin.getline(b,80);\n\tfor(i=0;a[i]!='\\0';i++) //????????????\n\t\tif(a[i]<=90&&a[i]>=65)\n\t\t\ta[i]=a[i]+32;\n\tfor(i=0;b[i]!='\\0';i++)\n\t\tif(b[i]<=90&&b[i]>=65)\n\t\t b[i]=b[i]+32;\n\tj=strcmp(a,b); //?????????\n\tswitch(j){ //?switch????\n\tcase 1:cout<<\">\"<';break;\n }\n return 0;\n}\n"} +{"label": "95", "index": "47359", "code": "int main()\n{\n\tchar ch1[100],ch2[100];\n\tgets(ch1);\n gets(ch2);\n\tint i;\n\tint len1=strlen(ch1);\n\tint len2=strlen(ch2);\n\tint len=len1;\n\t\n\tif(len1>len2)\n\t{\n\t\tlen=len2;\n\t}\n\tfor( i=0;i=65 && ch1[i]<=90)\n\t\t{\n\t\t\tch1[i]=ch1[i]+32;\n\t\t}\n\t}\n\tfor( i=0;i=65 && ch2[i]<=90)\n\t\t{\n\t\t\tch2[i]=ch2[i]+32;\n\t\t}\n\t}\n\tfor(i=0;ich2[i]) \n\t\t\t{\n\t\t\t\tcout<<\">\"<len2) \n\t{\n\t\tcout<<\">\"<=65)&&(a[0]<=90)) a[0]=a[0]+32;\n\nfor(i=1;a[i-1]!='\\n';i++)\n{a[i]=getchar();\n\tif ((a[i]>=65)&&(a[i]<=90)) a[i]=a[i]+32;\n}\n\nb[0]=getchar();\nif ((b[0]>=65)&&(b[0]<=90)) b[0]=b[0]+32;\nfor(i=1;b[i-1]!='\\n';i++)\n{b[i]=getchar();\n\tif ((b[i]>=65)&&(b[i]<=90)) b[i]=b[i]+32;\n}\n\nfor(i=0;((a[i-1]!='\\n')&&(b[i-1]!='\\n'));i++)\n{if (a[i]>b[i]) {printf(\">\");continue;}\nelse if (a[i]'A'&&s1[i]<'Z')\n\t\t\ts1[i]=s1[i]+32;\n\t}\n\tfor(j=0;j<80;j++)\n\t{\n\t\tif(s2[j]>'A'&&s2[j]<'Z')\n\t\t\ts2[j]=s2[j]+32;\n\t}\n\tif(strcmp(s1,s2)>0)\n\t\tprintf(\">\\n\");\n\telse if(strcmp(s1,s2)<0)\n\t\tprintf(\"<\\n\");\n\telse\n\t\tprintf(\"=\\n\");\n}"} +{"label": "95", "index": "47362", "code": "int main()\n{\n\tint i,n1,n2,p=1,len1,len2;\n\tchar str1[80],str2[80];//?????????\n\tcin.get(str1,80);\n len1=strlen(str1);\n\tcin.get ();//??????????\n\tcin.get(str2,80);\n\tlen2=strlen(str2);\n\tfor(i=0;i\"<='a'&&b[i]<='z')\n\t\t\t\tb[i]=b[i]-32;\n \n\t\t}\n\t}\n\t for(i=0;i<=81;i++)\n\t{\n\t\tif(a[i]=='\\0')\n\t\t\tbreak;\n\t\telse\n\t\t{\tif(a[i]>='a'&&a[i]<='z')\n\t\t\t\ta[i]=a[i]-32;\n \n\t\t}\n\t}\n\tfor(i=0;i<=81;i++)\n\t{\n\tif(a[i]=='\\0')\n\t\t\tbreak;\n\telse\tc+=a[i]-b[i];\n\t}\n\tif(c==0)\n\tprintf(\"=\");\n if(c>=1)\n \tprintf(\">\");\n if(c<=-1)\nprintf(\"<\");\n\t return 0; \n\t\n}\n"} +{"label": "95", "index": "47364", "code": "int main()\n{\n\tchar str1[80],str2[80];\n\tint i,j,len1,len2,len;\n\tchar flag;//???????????\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);//???????\n\t\tfor(i=0;str1[i]!='\\0';i++) //???????\n len1=i+1;\n for(j=0;str2[j]!='\\0';j++)\n\t\t\tlen2=i+1;\n\t\tif(len1=97&&str1[i]<=122)\n\t\t\t\tstr1[i]-=32;//?ASC???????\n\t\t}\n\t\tfor(i=0;i=97&&str2[i]<=122)\n\t\t\t\tstr2[i]-=32;\n\t\t}\n\t\tfor(i=0;i=strlen(s2))l=strlen(s1);\n\telse l=strlen(s2);\n\tfor(i=0;i<=l;i++)\n\t{\n\t\tif(s1[i]>=97&&s1[i]<=122)s1[i]-=32;\n\t\tif(s2[i]>=97&&s2[i]<=122)s2[i]-=32;\n\t\tif(s1[i]>s2[i])\n\t\t{\n\t\t\tputs(\">\");return 0;\n\t\t}\n\t\telse if(s1[i]0)\n\tprintf(\">\");\n\tif(strcmp(a,b)<0)\n\tprintf(\"<\");\n\tif(strcmp(a,b)==0)\n\tprintf(\"=\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47367", "code": "main()\n{\n\tchar a[80],b[80];\n\tint i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;i<80;i++)\n\t{\t\n\t\tif(a[i]>='A'&&a[i]<='Z')\n\t\t\ta[i]=a[i]+32;\n\t\tif(b[i]>='A'&&b[i]<='Z')\n\t\t\tb[i]=b[i]+32;\n\t}\n\tfor(i=0;ib[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]=strlen(a))\n\t\tprintf(\"=\");\n}\n\n"} +{"label": "95", "index": "47368", "code": "int main(){\n\tchar a[80],b[80];//???????\n\tcin.getline(a,80);\n\tcin.getline(b,80);//????\n\tint n,m;//????\n\tn=strlen(a);\n\tm=strlen(b);\n\tint i;//????\n\tfor(i=0;(i90) a[i]=a[i]-32;\n\t\tif(b[i]>90) b[i]=b[i]-32;\n\t}\n\n\t\tif(strcmp(a,b)==0) cout<<\"=\";\n\t\tif(strcmp(a,b)<0) cout<<\"<\";\n\n\t\tif(strcmp(a,b)>0) cout<<\">\";\n\n\n\n\t\treturn 0;\n}\n"} +{"label": "95", "index": "47369", "code": "void down(char *a)\n{\nfor (int i=0;a[i]!=0;i++)\n {\n if (a[i]>='A'&&a[i]<='Z') \n a[i]=a[i]-'A'+'a';\n }\n}\n\nint main()\n{\nchar a[100],b[100];\ngets(a);\ngets(b);\ndown(a);\ndown(b);\nint x=strcmp(a,b);\nif (x>0) putchar('>');\nelse if (x<0) putchar('<');\n else putchar('=');\n}\n"} +{"label": "95", "index": "47370", "code": "void main()\n{\n\tchar a[100],b[100],c[100];\n\tint la,lb,s,i,t;\n\tgets (a);\n\tgets(b);\n\tla=strlen(a);\n\tlb=strlen(b);\n\tif(la='A'&&a[i]<='Z')\n\t\t{\n\t\t\ta[i]=a[i]+32;\n\t\t}\n\t\tif(b[i]>='A'&&b[i]<='Z')\n\t\t{\n\t\t\tb[i]=b[i]+32;\n\t\t}\n\t\tif(a[i]>b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\tif(a[i]=0)\n\t{\n\t\tn=str1[k]-str2[k];\n\t\tk++;\n\n\t\tif (n==-32)\n\t\t\tcontinue;\n\t\tif (n==32)\n\t\t\tcontinue;\n\t\tif (n>32)\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t\tif (n<-32)\n\t\t{\n\t\t\tprintf(\"<\");\n\t\t\tbreak;\n\t\t}\n if (n<0)\n {\n printf(\">\");\n\t\t\tbreak;\n }\n if (n>0)\n {\n printf(\"<\");\n\t\t\tbreak;\n }\n\n\n\t\tif (k==len)\n\t\t{\n\t\t\tprintf(\"=\");\n\t\t\tbreak;\n\t\t}\n\t\t\t}\n}\n\n"} +{"label": "95", "index": "47372", "code": "\nvoid toLowerCase(char *s) {\n\twhile (*s) {\n\t\tif (isupper(*s))\n\t\t\t*s = 'a' + *s - 'A';\n\t\ts++;\n\t}\n}\nint main() {\n\tchar s1[128];\n\tchar s2[128];\n\tgets(s1);\n\tgets(s2);\n\ttoLowerCase(s1);\n\ttoLowerCase(s2);\n\tint res = strcmp(s1, s2);\n\tif (res < 0)\n\t\tprintf(\"<\");\n\telse if (res == 0)\n\t\tprintf(\"=\");\n\telse\n\t\tprintf(\">\");\n}\n"} +{"label": "95", "index": "47373", "code": "int main()\n{\n char c1[82],c2[82];\n int i,l1,l2,t;\n gets(c1);\n gets(c2);\n l1 = strlen (c1);\n l2 = strlen (c2);\n for (i = 0;i < l1;i++)\n {if (c1[i]>='A'&&c1[i] <= 'Z')\n c1[i] += 32;}\n for (i = 0;i < l2;i++)\n { if (c2[i] <= 'Z'&&c2[i]>='A')\n c2[i] += 32;}\n t = strcmp(c1,c2);\n\n if (t==0)\n\t cout<<\"=\"<0)\n\t cout<<\">\"<='a'&&a[i]<='z')\n\t\t\ta[i]-='a'-'A';\n\t\tif(b[i]>='a'&&b[i]<='z')\n\t\t\tb[i]-='a'-'A';\n\t\tif(a[i]b[i])\n\t\t{\n\t\t\tprintf(\">\\n\");\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(!a[i]&&!b[i])printf(\"=\\n\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47375", "code": "void main()\n{\n int i;\n char str1[100],str2[100];\n gets(str1);\n gets(str2);\n for(i=0;;i++)\n { \n\t if(str1[i]=='\\0')\n\t\t break;\n\t if(str1[i]!='\\0')\n { \n if(str1[i]<=122&&str1[i]>=97)\n {\n str1[i]=str1[i]-32;\n }\n } \n }\n for(i=0;;i++)\n {\n\t if(str2[i]=='\\0')\n\t\t break;\n\t if(str2[i]!='\\0')\n {\n if(str2[i]<=122&&str2[i]>=97)\n {\n str2[i]=str2[i]-32;\n }\n }\n }\n if(strcmp(str1,str2)==0)\n { printf(\"=\");\n }\n else if(strcmp(str1,str2)>0)\n\t printf(\">\");\n else\n\t printf(\"<\");\n}\n"} +{"label": "95", "index": "47376", "code": "int main()\n{\n\tint flag=0,i;\n\tchar str1[80],str2[80];\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\tfor( i=0;str1[i]!='\\0'&&str2[i]!='\\0';i++)\n\t{\n\t if(str1[i]<91&&str2[i]<91)\n\t\t{\n\t\t\tif(str1[i]str2[i]){cout<<'>'<91&&str2[i]<91)\n\t\t{\n\t\t\t str1[i]=str1[i]-32;\n\t\t\t if(str1[i]str2[i]){cout<<'>'<91)\n\t\t{\n\t\t\t str2[i]=str2[i]-32;\n\t\t\tif(str1[i]str2[i]){cout<<'>'<91&&str2[i]>91)\n\t\t{\n\t\t\tif(str1[i]str2[i]){cout<<'>'<'<96)\n char1[i]=char1[i]-32;\n if(char2[i]>96)\n char2[i]=char2[i]-32;\n }\n for(i=0;i<=l1;i++)\n {\n if((char1[i]>char2[i])&&((char1[i]-char2[i])!=32))\n {\n cout<<\">\";\n m=1;\n break;\n }\n if((char1[i]='A'&&s1[i]<='Z'&&s2[i]>='a'&&s2[i]<='z') \n {\n if(s1[i]-'A'+'a'\");jh=0;break;}\n }\n else if(s2[i]>='A'&&s2[i]<='Z'&&s1[i]>='a'&&s1[i]<='z')\n {\n if(s2[i]-'A'+'a'\");jh=0;break;}\n else if(s2[i]-'A'+'a'==s1[i]) continue;\n else {printf(\"<\");jh=0;break;}\n }\n else \n {\n if(s2[i]\");jh=0;break;}\n else if(s2[i]==s1[i]) continue;\n else {printf(\"<\");jh=0;break;}\n }\n } \n }\n if(jh==1) printf(\"=\\n\");\n}"} +{"label": "95", "index": "47379", "code": "int main()\n{\n char string1[1000];\n char string2[1000];\n gets(string1);\n gets(string2);\n int i,n1,n2;\n n1=strlen(string1);\n n2=strlen(string2);\n for(i=0;i=65&&string1[i]<=90)\n {\n string1[i]=string1[i]+32;\n }\n \n if(string2[i]>=65&&string2[i]<=90)\n {\n string2[i]=string2[i]+32;\n }\n }\n if(strcmp(string1,string2)==0)\n {\n printf(\"=\");\n }\n if(strcmp(string1,string2)>0)\n {\n printf(\">\");\n }\n if(strcmp(string1,string2)<0)\n {\n printf(\"<\");\n \n }\n return 0;\n} \n"} +{"label": "95", "index": "47380", "code": "int main() \n{\n char str1[100],str2[100];\n gets(str1);\n gets(str2);\n int i,j;\n for(i=0;str1[i]!='0';i++){\n\t if(str1[i]>='A'&&str1[i]<='Z'){\n\t\t str1[i]=str1[i]+32;\n\t }\n\t else{\n\t\t str1[i]=str1[i];\n\t }\n }\n for(j=0;str2[j]!='0';j++){\n\t if(str2[j]>='A'&&str2[j]<='Z'){\n\t\t str2[j]=str2[j]+32;\n\t }\n\t else{\n\t\t str2[j]=str2[j];\n\t }\n }\n if(strcmp(str1,str2)==0){\n\t printf(\"=\\n\");\n }\n else if(strcmp(str1,str2)>0){\n\t printf(\">\\n\");\n }\n\telse if(strcmp(str1,str2)<0){\n\t printf(\"<\\n\");\n }\n\t return 0;\n}"} +{"label": "95", "index": "47381", "code": "int main()\n{\n char str1[85],str2[85];\n cin.getline(str1,85);\n cin.getline(str2,85);\n int l = max(strlen(str1), strlen(str2));\n for(int i=0;i=65&&str1[i]<=90)\n\t\t\t str1[i]=str1[i]+32;\n\t\t if(str2[i]>=65&&str2[i]<=90)\n\t\t\t str2[i]=str2[i]+32;\n\n\t\t if(str1[i]>str2[i])\n\t\t\t{ cout<<'>';\n\t\t return 0;}\n\t\t else if(str1[i]='A')&&(s1[i]<='Z'))\n\t\t{\n\t\t\ts1[i]=s1[i]+32;\n\t\t}\n\t}\n\tfor(int j=0;s2[j]!='\\0';j++)\n\t{\n\t\tif((s2[j]>='A')&&(s2[j]<='Z'))\n\t\t{\n\t\t\ts2[j]=s2[j]+32;\n\t\t}\n\t}\n\tif(strcmp(s1,s2)==0)\n\t{\n\t\tprintf(\"=\\n\");\n\t}\n\telse if(strcmp(s1,s2)<0)\n\t{\n\t\tprintf(\"<\\n\");\n\t}\n\telse\n\t{\n\t\tprintf(\">\\n\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47383", "code": "int main()\n{\n\tint i;\n\tchar str1[81],str2[82]; //???????82?????\n\tcin.getline(str1,81); //??????????\n\tcin.getline(str2,81);\n\tfor(i=0;i<80;i++) //????????????????\n\t{\n\t\tif((int)str1[i]>=65&&(int)str1[i]<=90)\n\t\t\tstr1[i]=str1[i]+32;\n\t\tif((int)str2[i]>=65&&(int)str2[i]<=90)\n\t\t\tstr2[i]=str2[i]+32;\n\t}\n\tif(strcmp(str1,str2)==0) //?????????????\n\t\tcout<<'=';\n\t\telse if(strcmp(str1,str2)<0)\n\t\t\tcout<<'<';\n\t\telse cout<<'>';\n\t\treturn 0;\n\n}"} +{"label": "95", "index": "47384", "code": "int main()\n{\n\tchar i,s1[80],s2[80];\n\tcin.getline(s1,81);\n\tcin.getline(s2,81);\n\tfor(i=0;s1[i]!='\\0';i++)\n\t\tif(s1[i]>=65 && s1[i]<=90)\n\t\t\ts1[i]+=32;\n\tfor(i=0;s2[i]!='\\0';i++)\n\t\tif(s2[i]>=65 && s2[i]<=90)\n\t\t\ts2[i]+=32;\n\tif(strcmp(s1,s2)>0)\n\t\tcout<<'>';\n\tif(strcmp(s1,s2)==0)\n\t\tcout<<'=';\n\tif(strcmp(s1,s2)<0)\n\t\tcout<<'<';\n\treturn 0;\n\n\n}\n"} +{"label": "95", "index": "47385", "code": "\nint main(int argc, char* argv[])\n{\n\tchar a[80],b[80];\n\tchar c[80],d[80];\n\tint i;\n\tgets(a);\n\tgets(b);\n\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>='a'&&a[i]<='z'){c[i]=a[i]-32;}\n\t\telse {c[i]=a[i];}\n\t}\n\tc[i]='\\0';\n\n for(i=0;b[i]!='\\0';i++)\n\t{\n\t\tif(b[i]>='a'&&b[i]<='z'){d[i]=b[i]-32;}\n\t\telse {d[i]=b[i];}\n\t}\n\td[i]='\\0';\n\n\tif(strcmp(c,d)==0)\n\t{\n\t\tprintf(\"=\");\n\t}\n\telse\n\t{\n\t\tif(strcmp(c,d)>0)\n\t\t{\n\t\t\tprintf(\">\");\n\t\t}\n\t\telse printf(\"<\");\n\t}\n\n\n\treturn 0;\n}\n"} +{"label": "95", "index": "47386", "code": "/*\n * c.cpp\n * ???1100012870;\n * ???????\n * Created on: 2011-10-19\n * Author: Li Wenpeng\n */\nint main()\n{\n\tchar a[100],b[100];\n\tint i,s1;\n\tgets(a);\n\tgets(b);\n\ts1=strlen(a); //????????\n for(i=0;i<=s1;i++)\n {\n \tif((a[i]>='a')&&(a[i]<='z')) a[i]=a[i]-32; //???????\n \tif((b[i]>='a')&&(b[i]<='z')) b[i]=b[i]-32; //???????\n \tif(a[i]-b[i]==0) continue; \n \telse if (a[i]>b[i]) {cout<<'>'<= 'A' && str1[i] <= 'Z')\n\t\t\tstr1[i] = str1[i] + 32;\n\tfor (i = 0; str2[i] != '\\0'; i++)\n\t\tif (str2[i] >= 'A' && str2[i] <= 'Z')\n\t\t\tstr2[i] = str2[i] + 32;\n\tflag = strcmp(str1, str2);\n\tif (flag == 0)\n\t\tcout << '=' << endl;\n\tif (flag == 1)\n\t\tcout << '>' << endl;\n\tif (flag == -1)\n\t\tcout << '<' << endl;\n\treturn 0;\n}\n\n\n"} +{"label": "95", "index": "47388", "code": "int main()\n{\n\tchar s[80],q[80];\n\tint i;\n\tgets(s);\n\tgets(q);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i]>='A'&&s[i]<='Z')\n\t\t{\n\t\t\ts[i]-='A'-'a';\n\t\t}\n\t}\n\tfor(i=0;q[i]!='\\0';i++)\n\t{\n\t\tif(q[i]>='A'&&q[i]<='Z')\n\t\t{\n\t\t\tq[i]-='A'-'a';\n\t\t}\n\t}\n\n\n\tif(strcmp(s,q)==0)\n\t\tprintf(\"=\");\n\tif(strcmp(s,q)<0)\n\t\tprintf(\"<\");\n\tif(strcmp(s,q)>0)\n\t\tprintf(\">\");\n\t\n\treturn 0;\n\n\t\n}\n"} +{"label": "95", "index": "47389", "code": "int main()\n{\n\tint i,k1,k2;\n\tchar str1[80],str2[80];\n\tgets(str1);\n\tk1=strlen(str1);\n\tgets(str2);\n\tk2=strlen(str2);\n\tfor(i=0;i='A'&&str1[i]<='Z')\n\t\t{\n\t\t\tstr1[i]=str1[i]+32;\n\t\t}\n\t}\n\tfor(i=0;i='A'&&str2[i]<='Z')\n\t\t\tstr2[i]=str2[i]+32;\n\t}\n\ti=0;\n\twhile((str1[i]==str2[i])&&(str1[i]!='\\0'))\n\t\ti++;\n\tif(str1[i]=='\\0'&&str2[i]=='\\0')\n\t\tprintf(\"=\");\n\telse if(str1[i]>str2[i])\n\t\tprintf(\">\");\n\telse printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47390", "code": "int main()\n{\nint i;\nchar str1[80],str2[80];\ngets(str1);\ngets(str2);\nfor(i=0;i<=80;i=i+1)\n {\n if(str1[i]<='z'&&str1[i]>='a')\n str1[i]=str1[i]-32;\n }\nfor(i=0;i<=80;i=i+1)\n {\n if(str2[i]<='z'&&str2[i]>='a')\n str2[i]=str2[i]-32;\n }\nif(strcmp(str1,str2)>0)\n cout<<\">\"<='A'&&s1[i]<='Z')\n\t\t\ts3[i]=tolower(s1[i]);//???strlwr()?strupr()????????????\n\t\telse s3[i]=s1[i];\n\t}\n\ts3[i]='\\0';//????????????????\n\tfor(j=0;s2[j]!='\\0';j++)\n\t{\n\t\tif (s2[j]>='A'&&s2[j]<='Z')\n\t\t\ts4[j]=tolower(s2[j]);\n\t\telse s4[j]=s2[j];\n\t}\n\ts4[i]='\\0';//????????????????\n\t\n\tif (strcmp(s3,s4)>0)\n\t\tprintf(\"%c\\n\",'>');\n\tif (strcmp(s3,s4)==0)\n\t\tprintf(\"%c\\n\",'=');\n\tif (strcmp(s3,s4)<0)\n\t\tprintf(\"%c\\n\",'<');\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47392", "code": "\nchar *upper(char *str);\n\n/*\n??????????:???????????????\nstr:????????\nreturn ?????????\n*/\nchar *upper(char *str)\n{\n char *s = str;\n while(*s != '\\0') {\n if (*s >= 'a' && *s <= 'z' ) {\n *s = *s - ('a' - 'A');\n }\n s++;\n }\n return str;\n}\n\n\nint main()\n{ \n char s[100],m[100];\n gets(s);\n gets(m);//????????? \n int a=strcmp(upper(s),upper(m));//????????? \n if(a==0)\n cout<<\"=\"<0)\n cout<<\">\"<64)&&(a[i]<91))\n\t\t{\n\t\t\ta[i]=a[i]+32;\n\t\t}\n\t}\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif((b[i]>64)&&(b[i]<91))\n\t\t{\n\t\t\tb[i]=b[i]+32;\n\t\t}\n\t}\n\tif(strcmp(a,b)>0) printf(\">\\n\");\n\tif(strcmp(a,b)==0) printf(\"=\\n\");\n\tif(strcmp(a,b)<0) printf(\"<\\n\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47394", "code": "/*??(12.3) ??????????? (1016)\n\n?? ????05\n??\n?????strcmp??????????????????????????????????\n??ASCII????????????????????'\\0'???????????????????\n?????????????????????????????????????????????????\n????????????\"Hello\"?\"hello\"?????????????????????????????\n???????????????\n\n????\n????????????????????????????????80?\n\n????\n???????????????????????\"<\"\n???????????????????????\">\"\n????????????????\"=\"\n\n????\nHello, how are you?\nhello, How are you?\n\n????\n=\n\n??\n??C??????gets????????scanf???????\n\n *\n * 9.cpp\n *\n * Created on: 2011-10-28\n * Author: q\n */\nint main()\n{\n\tchar str1[81]={\"0\"};//??????\n\tchar str2[81]={\"0\"};\n\tunsigned int i,m,k=0;//??i??????m??????????k?????bool??\n\tcin.getline(str1,81);//?????\n\tcin.getline(str2,81);\n\tfor(i=0;i<(strlen(str1) );i++){//???????????????\n\tif(str1[i]<'a')str1[i]=str1[i]+32;\n\t}\n\tfor(i=0;i<(strlen(str2) );i++){\n\t\tif(str2[i]<'a')str2[i]=str2[i]+32;}\n\tif(strlen(str1)>strlen(str2))m=strlen(str1);//?????????\n\telse m=strlen(str2);\n\tfor(i=0;istr2[i]){cout<<\">\"<=97&&a[i]<=122)\n\t\t a[i]=a[i]-32;\n\t if(b[i]>=97&&b[i]<=122)\n\t\t b[i]=b[i]-32;}\n for(i=0;ib[i])\n\t\t\t {printf(\">\");\n\t\t\t k=1;break;}\n\t\t\t else\n\t\t\t\t if(a[i]='A')&&(str1[i]<='Z'))==1)\n\t\tstr1[i]=str1[i]+32;\n\tif(((str2[i]>='A')&&(str2[i]<='Z'))==1)\n\t\tstr2[i]=str2[i]+32;}\n\n\n if(strcmp(str1,str2)==0)\n\tcout<<'=';\n else if(strcmp(str1,str2)>0)\n cout<<'>';\n else if(strcmp(str1,str2)<0)\n \tcout<<'<';\n return 0;\n\n}"} +{"label": "95", "index": "47397", "code": "int main(){\n\tchar a[81];\n\tchar b[81];\n\tgets (a);\n\tgets (b);\n\tint i;\n\tfor(i=0;i<81;i++){\n\t\tswitch(a[i]){\n\t\tcase 'A':a[i]='a';break;\t\n\t\tcase 'B':a[i]='b';break;\t\n\t\tcase 'C':a[i]='c';break;\n\t\tcase 'D':a[i]='d';break;\n\t\tcase 'E':a[i]='e';break;\n\t\tcase 'F':a[i]='f';break;\n\t\tcase 'G':a[i]='g';break;\n\t\tcase 'H':a[i]='h';break;\n\t\tcase 'I':a[i]='i';break;\n\t\tcase 'J':a[i]='j';break;\n\t\tcase 'K':a[i]='k';break;\n\t\tcase 'L':a[i]='l';break;\n\t\tcase 'M':a[i]='m';break;\n\t\tcase 'N':a[i]='n';break;\n\t\tcase 'O':a[i]='o';break;\n\t\tcase 'P':a[i]='p';break;\n\t\tcase 'Q':a[i]='q';break;\n\t\tcase 'R':a[i]='r';break;\n\t\tcase 'S':a[i]='s';break;\n\t\tcase 'T':a[i]='t';break;\n\t\tcase 'U':a[i]='u';break;\n\t\tcase 'V':a[i]='v';break;\n\t\tcase 'W':a[i]='w';break;\n\t\tcase 'X':a[i]='x';break;\n\t\tcase 'Y':a[i]='y';break;\n\t\tcase 'Z':a[i]='z';break;\n}\n\t\t\nswitch(b[i]){\n\t\tcase 'A':b[i]='a';break;\t\n\t\tcase 'B':b[i]='b';break;\t\n\t\tcase 'C':b[i]='c';break;\n\t\tcase 'D':b[i]='d';break;\n\t\tcase 'E':b[i]='e';break;\n\t\tcase 'F':b[i]='f';break;\n\t\tcase 'G':b[i]='g';break;\n\t\tcase 'H':b[i]='h';break;\n\t\tcase 'I':b[i]='i';break;\n\t\tcase 'J':b[i]='j';break;\n\t\tcase 'K':b[i]='k';break;\n\t\tcase 'L':b[i]='l';break;\n\t\tcase 'M':b[i]='m';break;\n\t\tcase 'N':b[i]='n';break;\n\t\tcase 'O':b[i]='o';break;\n\t\tcase 'P':b[i]='p';break;\n\t\tcase 'Q':b[i]='q';break;\n\t\tcase 'R':b[i]='r';break;\n\t\tcase 'S':b[i]='s';break;\n\t\tcase 'T':b[i]='t';break;\n\t\tcase 'U':b[i]='u';break;\n\t\tcase 'V':b[i]='v';break;\n\t\tcase 'W':b[i]='w';break;\n\t\tcase 'X':b[i]='x';break;\n\t\tcase 'Y':b[i]='y';break;\n\t\tcase 'Z':b[i]='z';break;\n}\n\t}\n\n\n\tif(strcmp(a,b)<0)printf(\"<\");\n\tif(strcmp(a,b)==0)printf(\"=\");\n\n\tif(strcmp(a,b)>0)printf(\">\");\n\t\treturn 0;\n}\n\n"} +{"label": "95", "index": "47398", "code": "main()\n{char a[90],b[90];\n gets(a);\n gets(b);\n void zhuan(char k[90]);\n zhuan(a);\n zhuan(b);\n int i,j=0,m,n;\n for(i=0;(a[i]!='\\0')&&(b[i]!='\\0');i++)\n {if(a[i]>b[i]) {printf(\">\");j=1;break;}\n else if(a[i]='a')&&(k[p]<='z'))\n k[p]=k[p]-'a'+'A';\n}\n"} +{"label": "95", "index": "47399", "code": "//????????????????????????\"Hello\"?\"hello\"??????????????\n//??????????????????????????????\n\n//??\n//????????????????????????????????80?\n//??C??????gets????????scanf??????? \n\n//???? strlwr()?strupr()??????????????????2????\n\n//??\n//???????????????????????\"<\" \n//???????????????????????\">\" \n//????????????????\"=\"\n\n\nvoid main()\n{\n\tchar c1[81],c2[81];\n\tchar t1[81],t2[81];\n\tint i;\n\tgets(c1);\n\tgets(c2);\n\tfor(i=0;i<81;i++){\n\t\tif(c1[i]>=65&&c1[i]<=90)\n\t\t\tt1[i]=c1[i]+32;\n\t\telse\n\t\t\tt1[i]=c1[i];\n\t}\n\tfor(i=0;i<81;i++){\n\t\tif(c2[i]>=65&&c2[i]<=90)\n\t\t\tt2[i]=c2[i]+32;\n\t\telse\n\t\t\tt2[i]=c2[i];\n\t}\n\tif(strcmp(t1,t2)<0)\n\t\tprintf(\"<\");\n\telse if(strcmp(t1,t2)==0)\n\t\tprintf(\"=\");\n\telse if(strcmp(t1,t2)>0)\n\t\tprintf(\">\");\n}\n"} +{"label": "95", "index": "47400", "code": "int main(){\n\tchar a[80],b[80];\n\tint t,i;\n\tchar ch;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]!='\\0',b[i]!='\\0';i++){\n\t\tif(a[i]<'Z'&&a[i]>'A')a[i]+=32;\n\t\tif(b[i]<'Z'&&b[i]>'A')b[i]+=32;\n\n\t\tt=a[i]-b[i];\n\t\tif(t>0){\n\t\t\tch='>';\n\t\t\tputchar(ch);break;\n\t\t}\n\t\tif(t<0){\n\t\t\tch='<';\n\t\t\tputchar(ch);break;\n\t\t}\n\t\tif(t==0) continue;\n\t\t\n\t\n\t}\n\tif(a[i]=='\\0'&&b[i]=='\\0'){\n\t\tch='=';\n\t\tputchar(ch);\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47401", "code": "\nint main()\n{\n int i=0,sum=0;\n char str1[80],str2[80];\n int len1=0,len2=0;\n cin.getline(str1,80);\n \n cin.getline(str2,80);\n for(len1=0;str1[len1]!='\\0';len1++);\n for(len2=0;str2[len2]!='\\0';len2++);\n\n \n for(i=0;i=97)\n str1[i]=str1[i]-32;\n if(str2[i]>=97)\n str2[i]=str2[i]-32;\n \n if(str1[i]>str2[i])\n {cout << \">\" << endl;\n sum=1;\n break;\n }\n else if(str1[i]l2)? l1: l2;\n\tfor(i=0;i='A' && p1[i]<='Z')\n\t\t\tp1[i]=p1[i]-'A'+'a';\n\t\tif(p2[i]>='A' && p2[i]<='Z')\n\t\t\tp2[i]=p2[i]-'A'+'a';\n\t}\n\tif(strcmp(p1,p2)>0)\n\t\tprintf(\">\\n\");\n\telse if(strcmp(p1,p2)==0)\n\t\tprintf(\"=\\n\");\n\telse \n\t\tprintf(\"<\\n\");\n\tfree(p1);\n\tfree(p2);\n\treturn 0;\n}"} +{"label": "95", "index": "47403", "code": "int max(int,int);\nint main()\n{\n\tint i,n,len1,len2;\n\tchar str1[100],str2[100];\n\tcin.getline(str1,1000);\n\tcin.getline(str2,1000);\n len1 = strlen(str1);\n\tlen2 = strlen(str2);\n n = max(len1,len2);\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(str1[i] >= 'a')\n\t\t\tstr1[i] -= 32;\n\t\tif(str2[i] >= 'a')\n\t\t\tstr2[i] -= 32;\n\t\tif((str1[i] != str2[i])&&(fabs(str1[i] - str2[i]) != 32))\n\t\t{\n\t\t\tif(str1[i] > str2[i])\n\t\t\t{\n\t\t\t\tcout << \">\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(str1[i] < str2[i])\n\t\t\t{\n\t\t\t\tcout << \"<\" ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(i == n)\n\t\tcout << \"=\";\n\treturn 0;\n}\nint max(int a,int b)\n{\n\tif(a >= b)\n\t\treturn a;\n\tif(a < b)\n\t\treturn b;\n}"} +{"label": "95", "index": "47404", "code": "\nmain()\n{\n int i,j,k,n1,n2,m,d;\n char s1[81],s2[81];\n gets(s1);\n gets(s2);\n n1=strlen(s1);\n n2=strlen(s2);\n for(i=0;i'A'&&s1[i]<'Z')\n s1[i]=s1[i]-'A'+'a';\n }\n for(i=0;i'A'&&s2[i]<'Z')\n s2[i]=s2[i]-'A'+'a';\n }\n k=strcmp(s1,s2);\n if(k==0)\n printf(\"=\");\n else if(k>0)\n printf(\">\");\n else\n printf(\"<\");\n \n}\n"} +{"label": "95", "index": "47405", "code": "int main(int argc, char* argv[])\n{\n\tchar s[30];\n\tchar c[30];\n\tint n;\n\tgets(s);\n\tgets(c);\n\tfor(int i=0;s[i]!='\\0';i++){\n\t\tif(s[i]>='A'&&s[i]<='Z') s[i]=s[i]+32;\n if(c[i]>='A'&&c[i]<='Z') c[i]=c[i]+32;}\n\tn=strcmp(s,c);\n\tif(n<0) printf(\"<\");\n\tif(n==0) printf(\"=\");\n\tif(n>0) printf(\">\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47406", "code": "int main()\n\n{\n\tchar s[80],c,s1[80];\n\tint i=0,k;\n\tgets(s);\n\twhile (s[i]!='\\0')\n\t{\n\t\tif (s[i]<=90 && s[i]>=65) s[i]=s[i]+32;\n\t\ti++;\n\t}\n\ti=0;\n\tgets(s1);\n\twhile (s1[i]!='\\0')\n\t{\n\t\tif (s1[i]<=90 && s1[i]>=65) s1[i]=s1[i]+32;\n\t\ti++;\n\t}\n\tk=strcmp(s,s1);\n\tif (k==0) printf(\"=\");\n\tif (k>0) printf(\">\");\n\tif (k<0) printf(\"<\");\n\t\n\treturn 0;\n}\n\n\n\n"} +{"label": "95", "index": "47407", "code": "int main(){\n\tint i;\n\tchar a[100],b[100];\n\tcin.getline(a,80);\n\tcin.getline(b,80);\n\tfor(i=0;a[i]!=0;i++)\n\t{if(a[i]>=97)\n\ta[i]=a[i]-32;\n\tif(b[i]>=97)\n\tb[i]=b[i]-32;}\n\n\tfor(i=0;a[i]!=0;i++)\n\t\tif(a[i]==b[i])\n\t\t{continue;}\n\t\telse if(a[i]>b[i])\n\t\t{cout<<'>';\n\t\treturn 0;\n\t\t}\n\t\telse if(a[i]=65&&str1[i]<=90)\n\t\t\tstr1[i]+=32;\n\t}\n\tfor(i=0;str2[i]!='\\0';++i){\n\t\tif(str2[i]>=65&&str2[i]<=90)\n\t\t\tstr2[i]+=32;\n\t}\n\ta=strcmp(str1,str2);\n if(a==0)\n\t cout<<'='<0)\n\t cout<<'>'<='A' && a[i]<='Z') //????? \n\t\t\ta[i]=a[i]+32;\n\t}\n\tfor (i=0;i='A' && b[i]<='Z') //?????\n\t\t\tb[i]=b[i]+32;\t\n\t}\n\tif (strcmp(a,b)==0) //strcmp???? \n\t\tcout<<\"=\";\n\telse if (strcmp(a,b)==1)\n\t\tcout<<\">\";\n\telse\n\t\tcout<<\"<\"; \n\treturn 0;\t\n}"} +{"label": "95", "index": "47411", "code": "\nmain()\n{\n\tchar a[80],b[80];\n\tint i,n;\n\tgets(a);\n\tgets(b);\n\tn=strlen(a);\n\tfor (i=0;i64&&a[i]<91) a[i]+=32;\n\t\tif (b[i]>64&&b[i]<91) b[i]+=32;\n\t}\n\tswitch (strcmp(a,b))\n\t{\n\tcase 1:putchar('>');break;\n\tcase 0:putchar('=');break;\n\tcase -1:putchar('<');\n\t}\n\n}\n"} +{"label": "95", "index": "47412", "code": "int main()\n{\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tint i;\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>='A'&&a[i]<='Z')a[i]=a[i]+32;\n\t\telse a[i]=a[i];\n\t}\n\tfor(i=0;b[i]!='\\0';i++)\n\t{\n\t\tif(b[i]>='A'&&b[i]<='Z')b[i]=b[i]+32;\n\t\telse b[i]=b[i];\n\t}\n\tif(strcmp(a,b)>0)printf(\">\");\n\telse\n\t{\n\t\tif(strcmp(a,b)<0)printf(\"<\");\n\t\telse printf(\"=\");\n\t}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47413", "code": "int main()\n{\n\tchar c[80],d[80];\n\tchar f(char x[80]);\n\tint t;\n\tgets(c);\n\tgets(d);\n\tf(c);\n\tf(d);\n\tt=strcmp(c,d);\n\tif(t<0)\n\t\tprintf(\"<\");\n\tif(t==0)\n\t\tprintf(\"=\");\n\tif(t>0)\n\t\tprintf(\">\");\n\t return 0;\n}\nchar f(char x[80])\n{\n\tint m,i;\n m=strlen(x);\n for(i=0;i<=m-1;i++)\n\t if(x[i]>='A'&&x[i]<='Z')\n\t\t\tx[i]=x[i]+32;\n\t return 0;\n}"} +{"label": "95", "index": "47414", "code": "int main()\n{\n char a[80],b[80];\n int i=0;\n gets(a);\n gets(b);\n while (a[i]!='\\0')\n {\n if (a[i]>='a'&&a[i]<='z') a[i]-=32;\n i++;\n }\n i=0;\n while (a[i]!='\\0')\n {\n if (b[i]>='a'&&b[i]<='z') b[i]-=32;\n i++;\n }\n if (strcmp(a,b)<0) printf(\"<\");\n if (strcmp(a,b)>0) printf(\">\");\n if (strcmp(a,b)==0) printf(\"=\");\n}\n \n"} +{"label": "95", "index": "47415", "code": "void f(char a[],int i,int n)\n{\n for(i=0;i0) printf(\">\");\n else printf(\"<\");\n return 0;\n}\n"} +{"label": "95", "index": "47416", "code": "int main()\n{\n\tchar a[100],b[100];\n\tgets(a);\n\tgets(b);\n\tint i;\n\tfor(i=0;i<=99;i++)\n\t{\n\t\tif(a[i]>=65&&a[i]<=90)\n\t\t\ta[i]=a[i]+32;\n\t\tif(b[i]>=65&&b[i]<=90)\n\t\t\tb[i]=b[i]+32;\n\t}\n\tif(strcmp(a,b)==0)\n\t\tprintf(\"=\");\n\telse if(strcmp(a,b)>0)\n\t\tprintf(\">\");\n\telse\n\t\tprintf(\"<\");\n\treturn 0;\n}\n\n\n"} +{"label": "95", "index": "47417", "code": "//?????\n//2010?11?13?\n//1000012753 ???\n\nint main()\n{\n\tchar str1[100], str2[100];\n\tint i, l1, l2;\n\tcin.getline(str1,100);\n\tcin.getline(str2,100);\n\tl1 = strlen(str1);\n\tl2 = strlen(str2);\n\tfor (i = 0; i < l1; i++)\n\t{\n\t\tif (str1[i] >= 'A' && str1[i] <= 'Z')\n\t\t\tstr1[i] += 32;\n\t}\n\tfor (i = 0; i < l2; i++)\n\t{\n\t\tif (str2[i] >= 'A' && str2[i] <= 'Z')\n\t\t\tstr2[i] += 32;\n\t}\n\tif (strcmp(str1, str2) == 1)\n\t\tcout << \">\" << endl;\n\telse if (strcmp(str1, str2) == -1)\n\t\tcout << \"<\" << endl;\n\telse \n\t\tcout << \"=\" << endl;\n\treturn 0;\n}"} +{"label": "95", "index": "47418", "code": "int main()\n{\n\tchar str1[80],str2[80];//????\n\tint length1,length2,i,a;//??1???2?????????\n\tcin.getline(str1,80);//????\n\tcin.getline(str2,80);\n\tlength1=strlen(str1);//????\n\tlength2=strlen(str2);\n\tfor (i=0;i<=length1-1;i++)//???1??????????\n\t{\n\t\tif ((str1[i]<='z')&&(str1[i]>='a'))\n\t\t\tstr1[i]=str1[i]-32;\n\t}\n\tfor (i=0;i<=length2-1;i++)//???2??????????\n\t{\n\t\tif ((str2[i]<='z')&&(str2[i]>='a'))\n\t\t\tstr2[i]=str2[i]-32;\n\t}\n\ta=strcmp(str1,str2);//??????\n\tif (a==0) cout<<\"=\"<\"<='a' && str1[i]<='z')\n\t\t\tstr1[i]=str1[i]-32;\n\t}\nfor(j=0;j='a' && str2[j]<='z')\n\t\t\tstr2[j]=str2[j]-32;\n\t}\n\tif(strcmp(str1,str2)>0)\n\t\tprintf(\">\\n\");\n\tif(strcmp(str1,str2)<0)\n\t\tprintf(\"<\\n\");\n\tif(strcmp(str1,str2)==0)\n\t\tprintf(\"=\\n\");\n}"} +{"label": "95", "index": "47420", "code": "void main()\n{\n\tchar s1[100],s2[100];\n\tint i=0,a;\n\tgets(s1);gets(s2);\n\twhile (s1[i]!='\\0')\n\t{\n\t\tif ((65<=s1[i])&&(s1[i]<=90))\n\t\t\ts1[i]=s1[i]+32;\n\t\ti++;\n\t}\n\ti=0;\n\twhile (s2[i]!='\\0')\n\t{\n\t\tif ((65<=s2[i])&&(s2[i]<=90))\n\t\t\ts2[i]=s2[i]+32;\n\t\ti++;\n\t}\n\ta=strcmp(s1,s2);\nif (a>0)\n\t\tprintf(\">\");\n\telse if (a==0)\n\t\tprintf(\"=\");\n\telse printf(\"<\");\n\n}"} +{"label": "95", "index": "47421", "code": "void zhuan(char str[80])\n{\n\tint t;\n\tfor(t=0;str[t]!='\\0';t=t+1)\n\t\tif(str[t]>='A'&&str[t]<='Z')str[t]=str[t]+32;\n}\nvoid main()\n{\n\tchar a[80]={0};\n\tchar b[80]={0};\n int i,n;\n\n gets(a);\n gets(b);\n zhuan(a);\n zhuan(b);\n\nn=0;\n for(i=0;a[i]!='\\0'&&b[i]!='\\0';i=i+1)\n\t{ if(a[i]==b[i])n=n+1;\n if(a[i]!=b[i])break;}\n\t \n\n if(a[n]>b[n])printf(\">\");\nif(a[n]==b[n])printf(\"=\");\nif(a[n]=65&&s1[i]<=90)\n\t\t\ts1[i]+=32;\n\t}\n\tfor(int i=0;s2[i]!='\\0';++i){\n\t\tif(s2[i]>=65&&s2[i]<=90)\n\t\t\ts2[i]+=32;\n\t}\n\tk=strcmp(s1,s2);\n\treturn k;\n}\n\nint main()\n{\tchar str1[81],str2[81];\nint a,i;\n cin.getline(str1,81);\n\tcin.getline(str2,81);\n\ta=compare(str1,str2);\n if(a==0)\n\t cout<<'='<0)\n\t cout<<'>'<64&&str1[i]<91)\n\t\t\tstr1[i]=str1[i]+32;\n\t\tif(str2[i]>64&&str2[i]<91)\n\t\t\tstr2[i]=str2[i]+32;//???????\n\t\t}\n\tswitch (strcmp(str1,str2))\n\t{case-1:cout<<\"<\";break;\n\tcase 0:cout<<\"=\";break;\n\tcase 1:cout<<\">\";break;\n\t}\n\treturn 0;//???????????????????\n}//????\n"} +{"label": "95", "index": "47424", "code": "int main()\n{\n\tint i;\n\tchar str1[100],str2[100];\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0; str1[i]!='\\0' ;i++)\n\t{\n\t\tif(str1[i]>='a' && str1[i]<='z')\n\t\t\tstr1[i]=str1[i]-32;\n\t}\n\tfor(i=0;str2[i]!='\\0';i++)\n\t{\n\t\tif(str2[i]>='a' && str2[i]<='z')\n\t\t\tstr2[i]-=32;\n\t}\n\t//puts(str1);\n\t//puts(str2);\n\tfor(i=0;str1[i]==str2[i] && str1[i]!='\\0' && str2[i]!='\\0';i++);\n\tif(str1[i]>str2[i])\n\t\tprintf(\">\\n\");\n\telse if(str1[i]0)\nprintf(\">\");\nelse\nif(strcmp(stq,str)==0)\nprintf(\"=\");\nelse\nif(strcmp(stq,str)<0)\nprintf(\"<\");\n}"} +{"label": "95", "index": "47426", "code": "/*\n * 1000010227_30-3.cpp\n *\n * Created on: 2010-11-7\n * Author: hanzhe\n */\n\n\nint main(){\n\tint k;\n\tchar a[100],b[100]; //??????\n\tcin.getline(a,100);\n\tcin.getline(b,100);\n\tint i;\n\tfor(i=0;i<=99;i++){\n\t\tif(a[i]>'Z') //a[i]?????????\n\t\t\ta[i]=a[i]-32;\n\t\tif(b[i]>'Z')\n\t\t\tb[i]=b[i]-32;\n\t}\n\tk=strcmp(a,b);\n\tif(k>0) cout<<\">\";\n\tif(k<0) cout<<\"<\";\n\tif(k==0) cout<<\"=\";\n\treturn 0;\n} //????\n"} +{"label": "95", "index": "47427", "code": "char str1[ 81 ], str2[ 81 ];\nint main()\n{\n\ncin.getline( str1, 100 );\ncin.getline( str2, 100); \nint i;\n\nif ( strlen( str1 ) > strlen( str2 ) )\n{\n\tcout << \">\";\n}\nelse if ( strlen( str1 ) < strlen( str2 ) )\n\t{\n\t\tcout << \"<\";\n\t}\n\telse \n\t{\n\t\tfor ( i = 0; i <= strlen( str1 ) - 1; i++ )\n\t\t{\n\t\t\tif ( str1[ i ] >= 65 && str1[ i ] <= 90 )\n\t\t\t\tstr1[ i ] = str1[ i ] + 32 ;\n\t\t\tif ( str2[ i ] >= 65 && str2[ i ] <= 90 )\n\t\t\t\tstr2[ i ] = str2[ i ] + 32;\n\t\t\tif ( str1[ i ] > str2[ i ] )\n\t\t\t{\n\t\t\t\tcout << \">\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ( str1[ i ] < str2[ i ] )\n\t\t\t\t{\n\t\t\t\t\tcout << \"<\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ( i == strlen( str1 ) )\n\t\t\tcout << \"=\";\n\t}\n}\n\t\t\t\n\n"} +{"label": "95", "index": "47428", "code": "int main()\n{\n int i,n1,m;\n\tchar a[30],b[30];\n\tgets(a);\n\tgets(b);\n\tn1=strlen(a);\n for (i=0;i96) a[i]=a[i]-32;\n\t\tif ((int)b[i]>96) b[i]=b[i]-32;\n\t}\n\t m=strcmp(a,b);\n if(m==0) printf(\"=\");\n if(m<0) printf(\"<\");\n if(m>0) printf(\">\");\n\treturn 0;\n}"} +{"label": "95", "index": "47429", "code": "void main()\n{\n\tchar s[2][80];\n\tint i,j,a;\n\tgets(s[0]);\n\tgets(s[1]);\n\tfor(i=0;i<2;i++)\n\t{\n\t\tfor(j=0;j<80;j++)\n\t\t{\n\t\t\tif(s[i][j]>='a'&&s[i][j]<='z')\n\t\t\t\ts[i][j]=s[i][j]-32;\n\t\t}\n\t}\n\ta=strcmp(s[0],s[1]);\n\tif(a>0)\n\t\tprintf(\">\");\n\telse\n\t\tif(a<0)\n\t\t\tprintf(\"<\");\n\t\telse\n\t\t\tprintf(\"=\");\n}"} +{"label": "95", "index": "47430", "code": "int main()\n{\n\tchar a[81],b[81];\n\tint i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;;i++)\n\t{\n\t\tif (a[i]=='\\0')\n\t\t\tbreak;\n\t\tif (a[i]>96)\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t\tif (b[i]>96)\n\t\t{\n\t\t\tb[i]=b[i]-32;\n\t\t}\n\t}\n\tif (strcmp(a,b)>0)\n\t\t{printf(\">\\n\");}\n\telse if (strcmp(a,b)<0)\n\t\t{printf(\"<\\n\");}\n\telse if (strcmp(a,b)==0)\n\t\t{printf(\"=\\n\");}\n\t\t\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47431", "code": "int main()\n{char a[100],b[100],d='=';\nint i,j,k;\ngets(a);gets(b);\nj=strlen(a);k=strlen(b);\nif(j>k)\nj=k;\nfor(i=0;i='a'&&a[i]<='z')\na[i]=a[i]-'a'+'A';\nif(b[i]>='a'&&b[i]<='z')\nb[i]=b[i]-'a'+'A';\nif(a[i]>b[i])\n{d='>';break;}\nelse if(a[i]90)\n\t\t\tstr1[i]-=32;\n if(str2[i]>90)\n\t\t\tstr2[i]-=32;\n\t}\n\tfor(i=0;(str1[i]!='\\0')&&(str2[i]!='\\0');i++)//????\n\t{\n\t\tif(str1[i]>str2[i])\n\t\t{flag=1;break;}\n\t\telse if(str1[i]\"<='A'&&s1[i]<='Z'){\n\t\t\ts1[i]=s1[i]+32;\n\t\t}\n\t}\n\n for(i=0;s2[i]!='\\0';i++){\n\t\tif(s2[i]>='A'&&s2[i]<='Z'){\n\t\t\ts2[i]=s2[i]+32;\n\t\t}\n\t}\n\n\tif(strcmp(s1,s2)<0){printf(\"<\\n\");}\n else if(strcmp(s1,s2)>0){printf(\">\\n\");}\n else if(strcmp(s1,s2)==0){printf(\"=\\n\");}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47434", "code": "void main()\n{\n int i;\n char str1[400],str2[400];\n gets(str1);\n gets(str2);\n \n for(i=0;(str1[i]==str2[i]||(str1[i]==str2[i]+32)||(str1[i]==str2[i]-32))&&str1[i]!='\\0'&&str2[i]!='\\0';i++)\n\t ;\n str1[i]=(str1[i]>='A'&&str1[i]<='Z')?(str1[i]+32):str1[i];\n str2[i]=(str2[i]>='A'&&str2[i]<='Z')?(str2[i]+32):str2[i];\n\t \n \n if(str1[i]>str2[i]) printf(\">\");\n else if(str1[i]0)\n\t\tprintf(\">\");\n\telse printf(\"=\");\n\n\treturn 0;\n\n}\n\n"} +{"label": "95", "index": "47436", "code": "int cmp(char *p1,char *p2)\n{\n if(islower(*p1)) *p1-=32;\n if(islower(*p2)) *p2-=32;\n\twhile(*p1==*p2&&*p1!='\\0'&&*p2!='\\0')\n\t{\n\t\tp1++;p2++;\n\t\tif(islower(*p1)) *p1-=32;\n\t\tif(islower(*p2)) *p2-=32;\n\t}\n\tif(*p1!='\\0'&&*p2!='\\0') return (*p1-*p2);\n\telse if(*p1!='\\0') return 1;\n\telse if(*p2!='\\0') return -1;\n\telse return 0;\n}\nint main()\n{\n\tchar str1[100],str2[100];\n\tgets(str1);gets(str2);\n\tif(cmp(str1,str2)==0) printf(\"=\");\n\telse if(cmp(str1,str2)>0) printf(\">\");\n\telse printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47437", "code": "/*\n * lt12.3bijiaozifu.cpp\n *\n * Created on: 2011-10-27\n * Author: Dai Guangda\n */\nint main()\n{\n\tint i;\n\tchar a[80],b[80];\n\tcin.getline(a,80); //???????\n\tcin.getline(b,80);\n\tfor (i=0; i='A' && a[i]<='Z' && b[i]==a[i]+32 ||\n\t\t\ta[i]>='a' && a[i]<='z' && b[i]==a[i]-32\n\t\t)\n\t\t\tcontinue; //???????????????????\n\t\telse\n\t\t{\n\t\t\tif (\n\t\t\t\t(a[i]<'A' || a[i]>'z') && a[i] > b[i] ||\n\t\t\t a[i]>='A' && a[i]<='Z' && a[i]b[i]-32 ||\n\t\t\t a[i]>='a' && a[i]<='z' && a[i]>b[i] && a[i]'; //a??b?????\n\t\t\telse cout <<'<';\n\t\t\tbreak;\n\t\t} //???????????????????\n\t}\n\tif (i == strlen(a)) //?a??????\n\t\tif (i < strlen(b)) cout <<'<'; //?b????????????'<\n\t\telse cout <<'='; //?????????\u0091=\u0092\n\treturn 0;\n}\n"} +{"label": "95", "index": "47438", "code": "int main()\n{\n\tint i,k;\n\tchar a[100];\n\tgets(a);\n\tchar b[100];\n\tgets(b);\n\tfor(i=0;a[i]!='\\0'&&b[i]!='\\0';i++)\n\t{\n\t\tif(a[i]<='Z'&&a[i]>='A')a[i]=a[i]+32;\n if(b[i]<='Z'&&b[i]>='A')b[i]=b[i]+32;\n\t}\n\tk=strcmp(a,b);\n if(k>0)printf(\"%c\",'>');\n\tif(k<0)printf(\"%c\",'<');\n\tif(k==0)printf(\"%c\",'=');\n return 0;\n}"} +{"label": "95", "index": "47439", "code": "\nvoid main()\n{\n char s1[80];\n\tchar s2[80];\n\tint i;\n\tgets(s1);\n\tgets(s2);\n for (i=0;s1[i]%32==s2[i]%32 && s1[i]!='\\0' && s2[i]!='\\0';i++)\n\tif (s1[i] >96)\n\t{\n\t\ts1[i]-=32;\n\t}\n\n\tif (s2[i] >96)\n\t{\n\t\ts2[i]-=32;\n\t}\n\tif (s1[i] < s2[i])\n\t\tprintf(\"<\\n\");\n\tif (s1[i] > s2[i])\n\t\tprintf(\">\\n\");\n\tif (s1[i] == s2[i])\n\t\tprintf(\"=\\n\");\n}"} +{"label": "95", "index": "47440", "code": "int main(int argc, char* argv[])\n{\n\tchar s[80],t[80];\n\tint i;\n\tgets(s);\n\tgets(t);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i]>='a'&&s[i]<='z')\n\t\t\ts[i]=s[i]-32;\n\t}\n\tfor(i=0;t[i]!='\\0';i++)\n\t{\n\t\tif(t[i]>='a'&&t[i]<='z')\n\t\t\tt[i]=t[i]-32;\n\t}\n\tif(strcmp(s,t)>0)printf(\">\");\n\telse if(strcmp(s,t)<0)printf(\"<\");\n\telse printf(\"=\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47441", "code": "void main()\n{\nchar text1[81],text2[81];int i,j,n;\ngets(text1);n=strlen(text1);printf(\"\\n\");gets(text2);\nfor(i=0;i='a')&&(text1[i]<='z')) text1[i]=text1[i]-'a'+'A';\nif((text2[i]>='a')&&(text2[i]<='z')) text2[i]=text2[i]-'a'+'A';}\nif(strcmp(text1,text2)==0) printf(\"=\");\nelse if(strcmp(text1,text2)>0) printf(\">\");\nelse if(strcmp(text1,text2)<0) printf(\"<\");\n}"} +{"label": "95", "index": "47442", "code": "\nint main()\n{ \n\tchar a[80],b[80],i;\n\tcin.getline(a,80);\n\tcin.getline(b,80);\n\ti=0;\n\twhile(a[i]!='\\0')\n\t\t{if((a[i]>=65)&&(a[i]<=90))\n\t\ta[i]=a[i]+32;\n\ti++;}\n\ti=0;\n\twhile(b[i]!='\\0')\n\t\t{if((b[i]>=65)&&(b[i]<=90))\n\t\tb[i]=b[i]+32;\n\ti++;}\n\ti=strcmp(a,b);\n\tif(i==0)\n\t\tcout<<'=';\n\tif(i>0)\n\t\tcout<<'>';\n\tif(i<0)\n\t\tcout<<'<';\n\n return 0;\n}"} +{"label": "95", "index": "47443", "code": "int main() //???\n{\n\tchar str1[80],str2[80]; //?????????\n\tint i;\n\tcin.getline(str1,80); //???????\n\tcin.getline (str2,80);\n\tfor(i=0;i64 && (int)str1[i]<91 ) str1[i]+=32; //????????????\n\t}\n\tfor(i=0;i64 && (int)str2[i]<91 ) str2[i]+=32; //????????????\n\t}\n\tif(strcmp(str1,str2)>0) cout<<\">\"<=97&&c1[i]<=122)\n\t\t\tc1[i]=c1[i]-32;\n\t\tif(c2[i]>=97&&c2[i]<=122)\n\t\t\tc2[i]=c2[i]-32;\n\t}\n\tif(strcmp(c1,c2)==0)\n\t\tprintf(\"=\");\n\tif(strcmp(c1,c2)<0)\n\t\tprintf(\"<\");\n\tif(strcmp(c1,c2)>0)\n\t\tprintf(\">\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47445", "code": "\nint main()\n{\n\tchar s1[81];\n\tchar s2[81];\n\tgets(&s1[0]);\n\tgets(&s2[0]);\n\tint i = 0;\n\tfor ( i = 0 ; s1[i] != '\\0' ; i++ )\n\t{\n\t\tif ( s1[i] <= 90 )\n\t\t{\n\t\t\ts1[i] += 32;\n\t\t}\n\t}\n\tfor ( i = 0 ; s2[i] != '\\0' ; i++ )\n\t{\n\t\tif ( s2[i] <= 90 )\n\t\t{\n\t\t\ts2[i] += 32;\n\t\t}\n\t}\n\tint max;\n\tmax = i;\n\tint n = 0;\n\tfor ( i = 0 ; i < max ; i++ )\n\t{\n\t\tif ( s1[i] < s2[i] )\n\t\t{\n\t\t\tprintf(\"<\\n\");\n\t\t\tn++;\n\t\t\tbreak;\n\t\t}\n\t\tif ( s1[i] > s2[i] )\n\t\t{\n\t\t\tprintf(\">\\n\");\n\t\t\tn++;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif ( n == 0 )\n\t{\n\t\tprintf(\"=\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "95", "index": "47446", "code": "main()\n{\n int i=0;\n char s1[100],s2[100];\n \n gets(s1);\n gets(s2);\n \n for(i=0;s1[i]&&s2[i];i++)\n {\n if(s1[i]>='a'&&s1[i]<='z') s1[i]=s1[i]-'a'+'A';\n if(s2[i]>='a'&&s2[i]<='z') s2[i]=s2[i]-'a'+'A';\n if(s1[i]!=s2[i]) \n {\n printf((s1[i]>s2[i])?\">\":\"<\");\n break;\n }\n \n }\n if(!s1[i]&&!s2[i])\n printf(\"=\");\n }"} +{"label": "95", "index": "47447", "code": "\nint main()\n{\n\tchar syx[80], zxq[80];\n\tint i, t1, t2, t;\n\tgets(syx);\n\tgets(zxq);\n\tt1 = strlen(syx);\n\tt2 = strlen(zxq);\n\tt = (t1>t2)?t1:t2;\n\tfor(i=0;i 0)\n\t\tprintf(\">\\n\");\n\telse if (strcmp(syx, zxq) < 0)\n\t\tprintf(\"<\\n\");\n\telse\n\t\tprintf(\"=\\n\");\n\t\t\n\treturn 0;\n}"} +{"label": "95", "index": "47448", "code": "int main()\n{\n char a[81]={0},b[81]={0};\n int i;\n gets(a);\n gets(b);\n for(i=0;i=97&&a[i]<=122)\n {\n a[i]=a[i]-32;\n }\n }\n for(i=0;i=97&&b[i]<=122)\n {\n b[i]=b[i]-32;\n }\n }\n if(strcmp(a,b)==0)\n printf(\"=\");\n else {\n if(strcmp(a,b)>0)\n printf(\">\");\n else printf(\"<\");\n }\n return 0;\n}"} +{"label": "95", "index": "47449", "code": "void main()\n{\n\tchar str1[80],str2[80];\n\tint i;\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(str1[i]>64 && str1[i]<123)\n\t\t{\n\n\t\t if(str1[i]<91) str1[i]=str1[i]+32;\n\t\t}\n\t\tif(str2[i]>64 && str2[i]<123)\n\t\t{\n\n\t\t if(str2[i]<91) str2[i]=str2[i]+32;\n\t\t}\n\t}\n\tif(strcmp(str1,str2)>0) printf(\">\");\n if(strcmp(str1,str2)<0) printf(\"<\");\n if(strcmp(str1,str2)==0) printf(\"=\");\n}\n"} +{"label": "95", "index": "47450", "code": "int main()\n{\n\tchar str1[1000],str2[1000];\n\tint i,j,m,n;\n\tgets(str1);\n\tgets(str2);\n\tfor(i=0;i='a'&&str1[i]<='z')\n\t\t\tstr1[i]=str1[i]-32;\n\t}\n\tfor(i=0;i='a'&&str2[i]<='z')\n\t\t\tstr2[i]=str2[i]-32;\n\t}\n\tif(strcmp(str1,str2)==0)\n\t\tprintf(\"=\");\n\telse if(strcmp(str1,str2)>0)\n\t\tprintf(\">\");\n\telse printf(\"<\");\n}\n"} +{"label": "95", "index": "47451", "code": "int main(int argc, char* argv[])\n{ int i=0;\n\tchar a[255],b[255];\n\tgets(a);\n\tgets(b);\n\tfor(i=0;a[i]&&b[i];i++){\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t a[i]=a[i]-32;\n\t if(b[i]>='a'&&b[i]<='z')\n\t\t b[i]=b[i]-32;\n\t if(a[i]>b[i])\n\t {printf(\">\");\n\t break;\n\t }\n\t if(a[i]=97))\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t\telse continue;\n\t} //????????\n\tcin.getline(b,81); //?????\n\tfor(i=0;i<81;i++)\n\t{\n\t\tif((b[i]<=122)&&(b[i]>=97))\n\t\t{\n\t\t\tb[i]=b[i]-32;\n\t\t}\n\t\telse continue;\n\t} //????????\n\ti=0;\n\tfor(i=0;i<81;i++)\n\t{\n\t\tif((a[i]=='\\0')||(b[i]=='\\0'))\n\t\t{\n\t\t\tif(a[i]==b[i])\n\t\t\t{\n\t\t\t\tcout<<\"=\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((a[i]=='\\0')&&(b[i]!='\\0'))\n\t\t\t{\n\t\t\t\tcout<<\"<\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((b[i]=='\\0')&&(a[i]!='\\0'))\n\t\t\t{\n\t\t\t\tcout<<\">\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse if(a[i]>b[i])\n\t\t{\n\t\t\tcout<<\">\";\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i]=65&&m[i]<=90)m[i]=m[i]+32;\n\tif(n[i]>=65&&n[i]<=90)n[i]=n[i]+32;\n\t\tif(m[i]>n[i])\n\t\t{printf(\">\");x=1;\n\t\t\tbreak;\n\t\t}\n\t\telse if(m[i]= 65 && c1[i] <= 90)\n\t\t\tc1[i] += 32;\n\t\t\ti++;\n\t}\n\ti = 0;\n\twhile (c2[i] != '\\0')\n\t{\n\t\tif (c2[i] >= 65 && c2[i] <= 90)\n\t\t\tc2[i] += 32;\n\t\t\ti++;\n\t}\n\t\tif ( strcmp(c1 , c2) > 0)\n\t\tcout << \">\";\n\tif ( strcmp(c1 , c2) < 0)\n\t\tcout << \"<\";\n\tif ( strcmp(c1 , c2) == 0)\n\t\tcout << \"=\";\t\n\n\n\t\n\t\n\treturn 0;\n}\n\t\n"} +{"label": "95", "index": "47455", "code": "int main(){\n\tchar str1[81],str2[81],i;//?????????\n\tcin.getline(str1,81);//????1\n\tcin.getline(str2,81);//????2\n\tfor(i=0;i';break;\n\t case(0):cout<<'=';break;\n\t default:cout<<'<';\n\t }\n\treturn 0;\n}"} +{"label": "95", "index": "47456", "code": "/*??????????*/\nint main()\n{\n\tchar str1[81];\n\tchar str2[81];\n\tcin.getline(str1,81);\n\tcin.getline(str2,81);//???????\n\tint i;\n\tint a=strlen(str1);\n\tint b=strlen(str2);//???????????\n\tfor(i=0;i='A')\n\t\t{\n\t\t\tstr1[i]=str1[i]+32;\n\t\t}\n\t}\n\tstr1[a]='\\0';\n\tfor(i=0;i='A')\n\t\t{\n\t\t\tstr2[i]=str2[i]+32;\n\t\t}\n\t}\n\tstr2[b]='\\0';\n\tif(strcmp(str1,str2)<0)//????????????\n\t{\n\t\tcout<<'<'<0)\n\t{\n\t\tcout<<'>'<=lp) l=lp;\n\telse l=ls;\n\tfor(i=0;i='A' && s[i]<='Z') s[i]=s[i]+32;\n\t\tif(p[i]>='A' && p[i]<='Z') p[i]=p[i]+32;\n\t}\n\tfor(i=0;ip[i]) \n\t\t{\n\n\t\t\tx=1;\n\t\t\tbreak;\n\t\t}\n\t\telse if(s[i]\\n\");\t\t\t\n\tif (x==-1) printf(\"<\\n\");\n\n\nreturn 0;\n}\n"} +{"label": "95", "index": "47458", "code": "int main ()\n{\n\tint a,b,c,d;\n\tchar g[80],h[80];\n\tgets(g);\n\tgets(h);\n\tfor (c=0;g[c]!='\\0';c++);\n\tfor (b=0;g[b]!='\\0';b++);\n\tfor (a=0;a!='?'&&g[a]!='\\0';a++)\n\t{\n\t\tif(g[a]>='A'&&g[a]<='Z')\n\t\t{\n\t\t\tg[a]=g[a]-'A'+'a';\n\t\t}\n\t\tif(g[a]<' ') g[a]=0;\n\t\tif(h[a]>='A'&&h[a]<='Z')\n\t\t{\n\t\t\th[a]=h[a]-'A'+'a';\n\t\t}\n\t\tif (h[a]<' ') h[a]=0;\n\t\tif(g[a]>h[a])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\treturn 0;\n\t\t}\n\t\tif(g[a]=n)\n\t\tprintf(\"=\\n\");\n\telse\n\t{\n\t\tif(s1[i]<'a')\n\t\t\ts1[i]=s1[i]+32;\n\t\tif(s2[i]<'a')\n\t\t\ts2[i]=s2[i]+32;\n\n\t\tif(s1[i]>s2[i])\n\t\t\tprintf(\">\\n\");\n\t\telse\n\t\t\tprintf(\"<\\n\");\n\t}\n}\n"} +{"label": "95", "index": "47460", "code": "void change(char p[99])\n{\n int i,j;\n for(i=0;p[i]!='\\0';i++)\n { if(p[i]>='A'&&p[i]<='Z')\n p[i]=p[i]-'A'+'a';\n }\n}\nmain()\n{\n char p1[99],p2[99];\n gets(p1);gets(p2);\n change(p1);\n change(p2);\n int h=strcmp(p1,p2);\n if(h<0) printf(\"<\");\n else if(h==0) printf(\"=\");\n else if(h>0) printf(\">\");\n \n}\n"} +{"label": "95", "index": "47461", "code": "/**\n * ???1.cpp\n * ?????????????\n * ??????\n * ???2010?11?17?\n */\nint main()\n{\n\tint i,len1,len2,flag;\n\tchar a[80],b[80];\n\tcin.getline(a,80); //????????\n\tcin.getline(b,80);\n\tlen1=strlen(a); //?len1,len2????????????\n\tlen2=strlen(b);\n\tfor(i=0;i='A' && a[i]<='Z')\n\t\t\ta[i]+=32;\n\t}\n for(i=0;i='A' && b[i]<='Z')\n\t\t\tb[i]+=32;\n\t}\n\tfor(i=0;ib[i])\n\t\t{flag=1; //??a???????flag=1\n break;}\n\t\telse\n\t\t{ flag=2; //??b???????flag=2\n\t\t break;}\n\t}\n\tif(flag==0) \n\t\tcout<<'='<'<b[i]){printf(\">\");break;}\n else if (a[i]d){e=c;} if(cb[i]){printf(\">\");break;}\n else if (a[i]='A'&&s1[i]<='Z')\n\t\t\ts1[i]=s1[i]+32;\n\t\tif (s2[i]>='A'&&s2[i]<='Z')\n\t\t\ts2[i]=s2[i]+32;\n\t}\n\tr=strcmp(s1,s2);\n\tif(r>0) printf(\">\");\n\tif(r==0) printf(\"=\");\n\tif(r<0) printf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47464", "code": "int main()\n{\n\tchar str[2][80];\n\tgets(str[0]);\n\tgets(str[1]);\n\tint i;\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(str[0][i]>96)\n\t\t{\n\t\t\tstr[0][i]=str[0][i]-32;\n\t\t}\n\t\tif(str[0][i]=='\\0')//????????????????????\n\t\t\tbreak;\n\t}\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(str[1][i]>96)\n\t\t{\n\t\t\tstr[1][i]=str[1][i]-32;\n\t\t}\n\t\tif(str[1][i]=='\\0')//????????????????????\n\t\t\tbreak; \n\t}\n\tif(strcmp(str[0],str[1])>0)\n\t\tprintf(\">\");\n\telse\n\t\tif(strcmp(str[0],str[1])==0)\n\t\t\tprintf(\"=\");\n\t\telse\n\t\t\tprintf(\"<\");\n\treturn 0;\n}"} +{"label": "95", "index": "47465", "code": "int main(){\n\tchar a[80],b[80];\n\tgets(a);\n\tgets(b);\n\tint i;\n\tfor(i=0;a[i]!='\\0'||b[i]!='\\0';i++){\n\t\tif(a[i]>'Z')a[i]=a[i]-32;\n\t\tif(b[i]>'Z')b[i]=b[i]-32;\n\t}\n\tif(strcmp(a,b)>0)printf(\">\");\n\telse if(strcmp(a,b)<0)printf(\"<\");\n\telse printf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47466", "code": "int main ( )\n{\n\tchar str1[80], str2[80];\n\tint i;\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\tfor (i = 0;i < 80;i++)\n\t{\n\t\tif (str1[i] >= 97 && str1[i] <= 122)\n\t\t\tstr1[i] = str1[i] - 32;\n\t\tif (str2[i] >= 97 && str2[i] <= 122)\n\t\t\tstr2[i] = str2[i] - 32;\n\t}\n\tfor (i = 0;i < 80;i++)/*??????*/\n\t{\n\t\tif ((str1[i] == '\\0') + (str2[i] == '\\0') == 0)/*????????*/\n\t\t{\n\t\t\tif (str1[i] == str2[i] || \n\t\t\t\t(str1[i] >= 97 && str1[i] <= 122 && str1[i] - str2[i] == 32) || \n\t\t\t\t(str2[i] >= 97 && str2[i] <= 122 && str2[i] - str1[i] == 32))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (str1[i] < str2[i])\n\t\t\t\t{\n\t\t\t\t\tcout << '<';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcout << '>';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if ((str1[i] == '\\0') + (str2[i] == '\\0') == 1)\n\t\t{\n\t\t\tif (str1[i] == '\\0')\n\t\t\t{\n\t\t\t\tcout << '<';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tcout << '>';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telse if ((str1[i] == '\\0') + (str2[i] == '\\0') == 2)/*??????\\0*/\n\t\t{\n\t\t\tcout << '=';\n\t\t\tbreak;\n\t\t}\n\t}\n \treturn 0;\n}"} +{"label": "95", "index": "47467", "code": "void convert(char *);\nint main()\n{\n\tchar str1[85],str2[85];\n\tint result;\n\tgets(str1);\n\tgets(str2);\n\tconvert(str1);\n\tconvert(str2);\n\tresult=strcmp(str1,str2);\n\tif(result==0)\n\t\tputchar('=');\n\telse\n\t\tif(result>0)\n\t\t\tputchar('>');\n\t\telse\n\t\t\tputchar('<');\n\treturn 0;\n}\nvoid convert(char *p)\n{\n\twhile(*p)\n\t{\n\t\tif(*p>='A'&&*p<='Z')\n\t\t\t*p+=32;\n\t\tp++;\n\t}\n}\n\n"} +{"label": "95", "index": "47468", "code": "int main ()\n{\nchar a[100]={0},b[100]={0};\nint i,c,d;\ncin.getline(a,81);\ncin.getline(b,81);\nfor(i=0;i<100;i++)\n{\nc=(int)a[i];\nd=(int)b[i];\nif(64d)\n{cout<<\">\";return 0;}\nelse if(c64&&str1[i]<91)\n str1[i]+=32;\n if (str2[i]>64&&str2[i]<91)\n str2[i]+=32; \n }\n if (strcmp(str1,str2)>0) printf(\">\");\n else if (strcmp(str1,str2)==0) printf(\"=\");\n else printf(\"<\");\n \n return 0;\n}\n"} +{"label": "95", "index": "47470", "code": "void main()\n{\n int i,j;\n\tchar a1[40],a2[40];\n\tgets(a1);\n\tgets(a2);\n\n for(i=0;a1[i]!='\\0';i++)\n\t{if(a1[i]>='A'&&a1[i]<='Z')\n\ta1[i]=a1[i]-'A'+'a';}\n\t for(i=0;a2[i]!='\\0';i++)\n\t{if(a2[i]>='A'&&a2[i]<='Z')\n\ta2[i]=a2[i]-'A'+'a';}\n j=0;\n\t if(a1[j]>a2[j])\n\t printf(\">\");\n\t if(a1[j]a2[j])\n\t printf(\">\");\n\t if(a1[j]96)\n {\n d[i]=d[i]-32;\n }\n }\n}\nint main()\n{\n char a[80], b[80];\n int lena, lenb;\n gets(a);\n gets(b);\n chance(a);\n chance(b);\n if(strcmp(a, b)==0)\n cout<<\"=\"<0)\n cout<<\">\"<='a'&&s1[i]<='z'){\n s1[i]-='a'-'A';\n }}\n for(i=0;s2[i];i++)\n {\n if(s2[i]>='a'&&s2[i]<='z')\n {\n s2[i]-='a'-'A';\n }\n }\n cmp=strcmp(s1,s2);\n if(cmp>0)\n {\n printf(\">\");\n }\n else if(cmp<0)\n {\n printf(\"<\");\n\n }\n else{printf(\"=\");}\n return 0;\n}\n"} +{"label": "95", "index": "47473", "code": "int main(int argc, char *argv[])\n{\n int i,j=0;\n char a[80]=\"\",b[80]=\"\";\n gets(a);\n gets(b);\n for(i=0;i<79;i++)\n {\n if((a[i]-b[i])!=0&&(a[i]-b[i])!=32&&(b[i]-a[i])!=32) \n {\n j=1;\n if(a[i]<123&&a[i]>96&&b[i]<123&&b[i]>96&&a[i]>b[i])printf(\">\");\n if(a[i]<123&&a[i]>96&&b[i]<123&&b[i]>96&&a[i]96&&b[i]<91&&b[i]>64&&a[i]>b[i]+32)printf(\">\");\n if(a[i]<123&&a[i]>96&&b[i]<91&&b[i]>64&&a[i]64&&b[i]<123&&b[i]>96&&a[i]>b[i]-32)printf(\">\");\n if(a[i]<91&&a[i]>64&&b[i]<123&&b[i]>96&&a[i]64&&b[i]<91&&b[i]>64&&a[i]>b[i])printf(\">\");\n if(a[i]<91&&a[i]>64&&b[i]<91&&b[i]>64&&a[i]b)c=b;else c=a;\n\tfor(i=0;i\");\n return 0;\n}\n\n"} +{"label": "95", "index": "47475", "code": "int main(){\n\tint i,l;\n\tchar a[50],b[50];\n\tgets(a);gets(b);\n\tl=strlen(a);\n\tfor(i=0;i=97)a[i]=a[i]-32;\n\t}\n\tfor(i=0;i=97)b[i]=b[i]-32;\n\t}\n\tif(strcmp(a,b)>0)printf(\">\");\n\tif(strcmp(a,b)<0)printf(\"<\");\n\tif(strcmp(a,b)==0) printf(\"=\");\n\treturn 0;\n}\n"} +{"label": "95", "index": "47476", "code": "/*\n * ????bijiao.cpp\n * ?????\n * ????: 2011-10-30\n * ???????????????????????\n */\nint main(){\n\tint i,k;//????\n\tchar str1[81],str2[81];//???????\n\tcin.getline(str1,81);\n\tcin.getline(str2,81);//???????\n\tfor(i=0;i<81;i++)\n\t\tif((str1[i]>64)&&(str1[i]<91))\n\t\t\tstr1[i]=str1[i]+32;//????????????????\n\tfor(i=0;i<81;i++)\n\t\t\tif((str2[i]>64)&&(str2[i]<91))\n\t\t\t\tstr2[i]=str2[i]+32;//????????????????\n\tk=strcmp(str1,str2);//??????????????k\n\tswitch(k){\n\tcase -1:cout<<'<';break;\n\tcase 0:cout<<'=';break;\n\tcase 1:cout<<'>';break;//????????????\n\t}\n\treturn 0;//????\n\n}\n"} +{"label": "95", "index": "47477", "code": "\nchar a[100000],b[100000];\n\nint main()\n{\n\tcin.getline(a,10000);\n\tcin.getline(b,10000);\n\tfor(int x=0;x='a')\n\t\t{\n\t\t\ta[x]-='a'-'A';\n\t\t\n\t\t}\n\t\tif(b[x]<='z' && b[x]>='a')\n\t\t{\n\t\t\tb[x]-='a'-'A';\n\t\t} \n\t\tif(a[x]>b[x]) {cout<<\">\";return 0;}\n\t\tif(a[x]strlen(b)) {cout<<\">\";return 0;}\n\telse {cout<<\"<\";return 0;}\t\n\treturn 0;\n\t\n}"} +{"label": "95", "index": "47478", "code": "int main()\n{\n\tchar a[100]={0},b[100]={0};\n\tgets(a);\n\tgets(b);\n\tint i;\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tif(a[i] >='a' && a[i]<='z') a[i]-=32;\n\t\tif(a[i]<32) a[i]=0;\n\t}\n\t\n\tfor(i=0;b[i]!=0;i++)\n\t{\n\t\tif(b[i] >='a' && b[i]<='z') b[i]-=32;\n\t\tif(b[i]<32) b[i]=0;\n\t}\n\t\n\tif(strcmp(a,b)>0) printf(\">\");\n\tif(strcmp(a,b)<0) printf(\"<\");\n\tif(strcmp(a,b)==0) printf(\"=\");\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47479", "code": "main()\n{ char a[100],b[100];\n int i,j,f(char x);\n gets(a);\n gets(b);\n for(i=0;a[i]!='\\0'&&b[i]!='\\0';i++)\n {\n if(f(a[i])==1)a[i]-=32;\n if(f(b[i])==1)b[i]-=32;\n if(a[i]b[i]){printf(\">\");break;}\n }\n if(a[i]==b[i]&&a[i]=='\\0')printf(\"=\");\n\n\n}\n\nint f(char x)\n{ return (x>=97)&&(x<=122);\n}"} +{"label": "95", "index": "47480", "code": "/*\n * a003.cpp\n *\n * Created on: 2011-10-29\n * Author: Administrator\n */\nint main()\n{\n\tint i;\n\tchar a1[80],b1[80];\n\tcin.getline(a1,80);\n\tcin.getline(b1,80);\n\tfor(i=0;i<80;i++)\n\t{\n\t\tif(25>=a1[i]-65&&a1[i]-65>=0)\n\t\t\ta1[i]=a1[i]+32;\n\t\tif(25>=b1[i]-65&&b1[i]-65>=0)\n\t\t\tb1[i]=b1[i]+32;\n\t}//?????????????\n\n\tif(strcmp(a1,b1)>0) cout<<\">\";\n\tif(strcmp(a1,b1)<0) cout<<\"<\";\n\tif(strcmp(a1,b1)==0) cout<<\"=\";//??? ???\n\treturn 0;\n}"} +{"label": "95", "index": "47481", "code": "void main()\n{\n\tchar str1[80],str2[80];\n\tint len1,len2;\n\tgets(str1);\n\tgets(str2);\n\tlen1=strlen(str1);\n\tlen2=strlen(str2);\n\tvoid convert(char a[80],int length);\n\t\tconvert(str1,len1);\n\t convert(str2,len2);\n\tif (strcmp(str1,str2)>0)\n\t\tprintf(\">\");\n\telse if (strcmp(str1,str2)<0)\n\t\tprintf(\"<\");\n\telse printf(\"=\");\n}\n\nvoid convert(char a[80],int length)\n{\n\tint i;\n\tfor(i=0;i='A'&&a[i]<='Z')\n\ta[i]=a[i]+32;\n\t}\n}"} +{"label": "95", "index": "47482", "code": "int main()\n{\n char a[80]={0},b[80]={0},i;\n for(i=0,gets(a);i<80,a[i];i++)\n if(a[i]>='A'&&a[i]<='Z')a[i]+=32;\n for(i=0,gets(b);i<80,b[i];i++)\n if(b[i]>='A'&&b[i]<='Z')b[i]+=32;\n printf(\"%c\",'='+strcmp(a,b));\n return 0;\n}"} +{"label": "95", "index": "47483", "code": "int main()\n{\n\tchar str1[80],str2[80];\n\tint a,i,k=0;\n\tgets(str1);\n\tgets(str2);\n\ta=strlen(str1);\n\tfor(i=0;i='a'&&str1[i]<='z') str1[i]=str1[i]-32;\n\t\tif(str2[i]>='a'&&str2[i]<='z') str2[i]=str2[i]-32;\n\t\tif(str1[i]==str2[i]) \n\t\t{\n\t\t\tk++;\n\t\t\tcontinue;\n\t\t}\n\t\telse if(str1[i]>str2[i]) printf(\">\\n\");\n\t\telse printf(\"<\\n\");\n\t\tbreak;\n\t}\n\tif(k==a) printf(\"=\\n\"); \n\treturn 0;\n}"} +{"label": "95", "index": "47484", "code": "int main()\n{\n int MyStrCmp(char *pStr1,char *pStr2);\n char a1[81],a2[81];\n int t;\n gets(a1);\n gets(a2);\n t=MyStrCmp(a1,a2);\n if(t==1)printf(\">\");\n if(t==0)printf(\"=\");\n if(t==-1)printf(\"<\");\n printf(\"\\n\");\n return 0;\n}\n\nint MyStrCmp(char *pStr1,char *pStr2)\n{\n int i;\n int t;\n char b1[81],b2[81];\n for(i=0;pStr1[i]!='\\0';i++)\n if(pStr1[i]>='A'&&pStr1[i]<='Z')\n *(pStr1+i)=*(pStr1+i)+32;\n for(i=0;pStr2[i]!='\\0';i++)\n if(pStr2[i]>='A'&&pStr2[i]<='Z')\n *(pStr2+i)=*(pStr2+i)+32;\n t=0;\n if(strlen(pStr1)>strlen(pStr2))t=1;\n if(strlen(pStr1)*(pStr2+i))\n {\n t=1;\n break;\n }\n if(*(pStr1+i)<*(pStr2+i))\n {\n t=-1;\n break;\n }\n if(*(pStr1+i)==*(pStr2+i))\n continue;\n }\n }\n return (t);\n}"} +{"label": "95", "index": "47485", "code": "//============================================================================\n// Name : test3.cpp\n// Author : Liang ShiYu\n// Version : 1.0\n// Copyright : copyright reserved\n// Description : about string\n//============================================================================\n\n\nint main() { //main function\n\tchar a[80]; \n\tchar b[80]; //dim string a and string b for storing the input\n\tcin.getline(a,80);\n\tcin.getline(b,80); //get the input\n\tint n=strlen(a); //calculate the length of the string\n\tfor(int i=0;i=97&&a[i]<=122) a[i]-=32;\n\t}\n\tn=strlen(b);\n\tfor (int i=0;i=97&&b[i]<=122) b[i]-=32; \n\t} //edit each string\n\tint z;\n\tz=strcmp(a,b); //compare the two string\n\tif (z<0) cout<<\"<\";\n\tif (z==0) cout<<\"=\";\n\tif(z>0) cout<<\">\"; //cout correctly\n\treturn 0;\n}\n"} +{"label": "95", "index": "47486", "code": "void main()\n{\n char a[80],b[80];\n int i,len1,len2,t;\n gets(a);\n gets(b);\n len1=strlen(a);\n len2=strlen(b);\n for(i=0;i='A')a[i]=a[i]+32;\n }\n for(i=0;i='A')b[i]=b[i]+32;\n }\n t=strcmp(a,b);\n if(t>0)\n {\n\t printf(\">\\n\");\n }\n else\n {\n\t if(t==0)printf(\"=\\n\");\n\t else printf(\"<\\n\");\n }\n}"} +{"label": "95", "index": "47487", "code": "int main()\n{\n char str1[100],str2[100];\n\t int i,j,k,n;\n\t k=0;\n\t gets(str1);\n\t gets(str2);\n\t n=strlen(str1);\n\t if (strlen(str2)90) str1[i]=str1[i]-32;\n if (str2[i]>90) str2[i]=str2[i]-32;\n\t\t\t if (str1[i]>str2[i]) k=1;\n\t\t\t if (str1[i]0) printf(\">\\n\");\n\t if (k<0) printf(\"<\\n\");\n\t if (k==0) printf (\"=\");\n}"} +{"label": "95", "index": "47488", "code": "char change(char x) \n{\n\tchar a;\n\tswitch (x) {\ncase 'a':a='A';break;\ncase 'b':a='B';break;\ncase 'c':a='C';break;\ncase 'd':a='D';break;\ncase 'e':a='E';break;\ncase 'f':a='F';break;\ncase 'g':a='G';break;\ncase 'h':a='H';break;\ncase 'i':a='I';break;\ncase 'j':a='J';break;\ncase 'k':a='K';break;\ncase 'l':a='L';break;\ncase 'm':a='M';break;\ncase 'n':a='N';break;\ncase 'o':a='O';break;\ncase 'p':a='P';break;\ncase 'q':a='Q';break;\ncase 'r':a='R';break;\ncase 's':a='S';break;\ncase 't':a='T';break;\ncase 'u':a='U';break;\ncase 'v':a='V';break;\ncase 'w':a='W';break;\ncase 'x':a='X';break;\ncase 'y':a='Y';break;\ncase 'z':a='Z';break;\n\t}\n\treturn a;\n}\nint main(int argc, char* argv[])\n{\n\tchar c[80],s[80],p[80],q[80];\n\tgets(c);\n\tgets(s);\n\tint i;\n\tfor(i=0;c[i]!='\\0';i++) {\n\t\tif (c[i]<='z'&&c[i]>='a') {\n\t\tp[i]=change(c[i]);\n\t\t}\n\t\telse \n\t\t\tp[i]=c[i];\n\t}\n\tp[i]='\\0';\n\tfor(i=0;s[i]!='\\0';i++) {\n\t\tif (s[i]<='z'&&s[i]>='a') {\n\t\tq[i]=change(s[i]);\n\t\t}\n\t\telse \n\t\t\tq[i]=s[i];\n\t}\n\tq[i]='\\0';\n\tif(strcmp(p,q)==0) \n\t\tprintf(\"=\");\n\tif(strcmp(p,q)<0) \n\t\tprintf(\"<\");\n\tif(strcmp(p,q)>0) \n\t\tprintf(\">\");\n\treturn 0;\n}"} +{"label": "95", "index": "47489", "code": "int main()\n{\n\tchar a[80],b[80];\n\tint x,y,c,d,e;\n\tgets(a);\n\tgets(b);\n\tx=strlen(a);\n\te=0;\n\tfor(y=0;yd)\n\t\t{\n\t\t\te++;\n\t\t\tprintf(\">\\n\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(c='A'&&a[i]<='Z')\n {\n a[i]=a[i]+32;\n }\n }\n for(i=0;i<=c;i++)\n {\n if(b[i]>='A'&&b[i]<='Z')\n {\n b[i]=b[i]+32;\n }\n }\n if(strcmp(a,b)==0)\n {printf(\"=\");}\n else if(strcmp(a,b)<0)\n {printf(\"<\");}\n else\n {printf(\">\");}\nreturn 0;\n}\n"} +{"label": "95", "index": "47491", "code": "int main()\n{\n\tint i,t,l1,l2;\n\tchar str1[80],str2[80];\n\tcin.getline(str1,80);\n\tcin.getline(str2,80);\n\tl1=strlen(str1);\n\tl2=strlen(str2);\n for(i=0;i\"<<'\\n';\n\treturn 0;\n}\n\n\n\t"} +{"label": "95", "index": "47492", "code": "int main()\n{\nchar str1[80],str2[80];\nint i,m=0;\ngets(str1);\ngets(str2);\nfor(i=0;str1[i]!='\\0'&&str2[i]!='\\0';i++)\n{\nif(str1[i]>=65&&str1[i]<=90) str1[i]=str1[i]+32;\nif(str2[i]>=65&&str2[i]<=90) str2[i]=str2[i]+32;\nif(str1[i]>str2[i]) {printf(\">\\n\"); m=m+1;break;}\nelse if(str1[i]\");\n\telse printf(\"<\");\n\n\n}\nreturn 0;\n}"} +{"label": "95", "index": "47493", "code": "int main()\n{\n\tint i=0;\n\tchar a[80],b[80];\n\tcin.getline(a,80);\n\tcin.getline(b,80);\n\tfor(;;i++)\n\t{\n\t\tif(a[i]>95) a[i]=a[i]-32;\n\t\tif(b[i]>95) b[i]=b[i]-32;\n\t\tif(a[i]=='\\0'&& b[i]=='\\0') break;\n\t}\n\tif(strcmp(a,b)==0) cout << \"=\";\n\tif(strcmp(a,b)>0) cout << \">\";\n\tif(strcmp(a,b)<0) cout << \"<\";\n\treturn 0;\n}"} +{"label": "95", "index": "47494", "code": "int main(){\n\tchar a[40];\n\tchar b[40];\n\tint k,t;\n\tgets(a);\n\tgets(b);\n for(k=0;a[k]!='\\0';k++){\n\t\tswitch(a[k]){\n\t\t case 'A':a[k]='a';break;\n\t\t case 'B':a[k]='b';break;\n case 'C':a[k]='c';break;\n\t\t case 'D':a[k]='d';break;\n\t\t case 'E':a[k]='e';break;\n\t\t case 'F':a[k]='f';break;\n case 'G':a[k]='g';break;\n\t\t case 'H':a[k]='h';break;\n case 'I':a[k]='i';break;\n\t\t case 'J':a[k]='j';break;\n\t\t case 'K':a[k]='k';break;\n\t\t case 'L':a[k]='l';break;\n\t\t\t case 'M':a[k]='m';break;\n\t\t case 'N':a[k]='n';break;\n case 'O':a[k]='o';break;\n\t\t case 'P':a[k]='p';break;\n\t\t case 'Q':a[k]='q';break;\n\t\t case 'R':a[k]='r';break;\n\t\t\t case 'S':a[k]='s';break;\n\t\t case 'T':a[k]='t';break;\n case 'U':a[k]='u';break;\n\t\t case 'V':a[k]='v';break;\n\t\t case 'W':a[k]='w';break;\n\t\t case 'X':a[k]='x';break;\n \t\t case 'Y':a[k]='y';break;\n case 'Z':a[k]='z';break;\n\t\t}\n\t}\n for(t=0;b[t]!='\\0';t++){\n\t\tswitch(b[t]){\n case 'A':b[t]='a';break;\n\t\t\t\tcase 'B':b[t]='b';break;\n case 'C':b[t]='c';break;\n\t\t case 'D':b[t]='d';break;\n\t\t case 'E':b[t]='e';break;\n\t\t case 'F':b[t]='f';break;\n case 'G':b[t]='g';break;\n\t\t case 'H':b[t]='h';break;\n case 'I':b[t]='i';break;\n\t\t case 'J':b[t]='j';break;\n\t\t case 'K':b[t]='k';break;\n\t\t case 'L':a[t]='l';break;\n\t\t\t case 'M':b[t]='m';break;\n\t\t case 'N':b[t]='n';break;\n case 'O':b[t]='o';break;\n\t\t case 'P':b[t]='p';break;\n\t\t case 'Q':b[t]='q';break;\n\t\t case 'R':b[t]='r';break;\n\t\t\t case 'S':b[t]='s';break;\n\t\t case 'T':b[t]='t';break;\n case 'U':b[t]='u';break;\n\t\t case 'V':b[t]='v';break;\n\t\t case 'W':b[t]='w';break;\n\t\t case 'X':b[t]='x';break;\n \t\t case 'Y':b[t]='y';break;\n case 'Z':b[t]='z';break;\n\t\t}\n\t}\n\tif(strcmp(a,b)<0){\n\t\tputs(\"<\");\n\t}\n\telse if(strcmp(a,b)==0){\n\t\tputs(\"=\");\n\t}\n\telse if(strcmp(a,b)>0){\n\t\tputs(\">\");\n\t}\n\treturn 0;\n}\n"} +{"label": "95", "index": "47495", "code": "int f(int x)\n{\n if(x>=65&&x<=90) x=x+32;\n return(x);\n}\nvoid main()\n{\n char str1[80],str2[80];\n int i;\n gets(str1);\n gets(str2);\n for(i=0;i<=79;i++)\n {\n str1[i]=f(str1[i]);\n str2[i]=f(str2[i]);\n }\n if(strcmp(str1,str2)>0) printf(\">\");\n else if(strcmp(str1,str2)<0) printf(\"<\");\n else printf(\"=\");\n} "} +{"label": "95", "index": "47496", "code": "int main()\n{\n\tchar one[80],two[80];\n\tgets(one);\n\tgets(two);\n\tint i,a=0;\n\tfor(i=0;one[i]!='\\0';i++)\n\t{\tif(one[i]>='A'&&one[i]<='Z') one[i]+=32;\n\t}\t\n\tfor(i=0;two[i]!='\\0';i++)\t\n\t{ if(two[i]>='A'&&two[i]<='Z') two[i]+=32;\n }\n\tif(strcmp(one,two)>0) printf(\">\");\n\tif(strcmp(one,two)==0) printf(\"=\");\n\tif(strcmp(one,two)<0) printf(\"<\");\n gets(one);\n\treturn 0;\n}\n\n"} +{"label": "95", "index": "47497", "code": "\n\nint main()\n{\n\tchar a[82]={0}, b[82]={0};\n\tint i;\n\tgets(a);\n\tgets(b);\n\tfor(i=0;i<82;i++)\n\t{\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t\tif(b[i]>='a'&&b[i]<='z')\n\t\t{\n\t\t\tb[i]=b[i]-32;\n\t\t}\n\t\tif(a[i]<' ')a[i]=0;\n\t\tif(b[i]<' ')b[i]=0;\n\t}\n\tfor(i=0;i<82;i++)\n\t{\n\t\tif(a[i]b[i])\n\t\t{\n\t\t\tprintf(\">\");\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tif(i==82)\n\t{\n\t\tprintf(\"=\");\n\t}\n\n\t\n\treturn 0;\n}\n"} +{"label": "95", "index": "47498", "code": "int main()\n{\n\tchar *str1,*str2,*p;\n\tint i;\n\tstr1=(char *)malloc(80*sizeof(char));\n\tstr2=(char *)malloc(80*sizeof(char));\n\tgets(str1);\n\tgets(str2);\n\tp=str1;\n\tfor(i=0;*(p+i)!='\\0';i++)\n\t{\n\t\tif(*(p+i)>='A'&&*(p+i)<='Z')\n\t\t{\n\t\t\t*(p+i)+=32;\n\t\t}\n\t}\n\tp=str2;\n\tfor(i=0;*(p+i)!='\\0';i++)\n\t{\n\t\tif(*(p+i)>='A'&&*(p+i)<='Z')\n\t\t{\n\t\t\t*(p+i)+=32;\n\t\t}\n\t}\n\tif(strcmp(str1,str2)<0)\n\t\tprintf(\"<\");\n\telse if(strcmp(str1,str2)>0)\n\t\tprintf(\">\");\n\telse if(strcmp(str1,str2)==0)\n\t\tprintf(\"=\");\n\treturn 0;\n}"} +{"label": "95", "index": "47499", "code": "int main()\n{\n\tint i=0;\n\tchar a[255],b[255];\n\tgets(a);gets(b);\n\tfor (i=0;a[i]&&b[i];i++){\n\t\tif (a[i]>='a'&&a[i]<='z')\n a[i]-='a'-'A';\n\t\tif(b[i]>='a'&&b[i]<='z')\n\t\t\tb[i]-='a'-'A';\n\t\t\tif(a[i]!=b[i]){\n\t\t\t\tif(a[i]>b[i])printf(\">\");\n\t\t\t\tif(a[i]=1)if(data1[pos-1]>10) return 1;\n for(int i=0;idata2[i])return 1;if(data1[i+pos]>aa;\n\tfor(int i = 1; i <= strlen(aa);i++)\n\t\ta[i-1] = aa[i-1]-'0';\n\tif(strlen(aa)==2)\n\t{\n\t\tif(10*a[0]+a[1]<13)\n\t\t{\n\t\t\tnum = 1;\n\t\t\tb[1] = 0;\n\t\t\ta[1] = 10 * a[0] + a[1];\n\t\t}\n\t}\n\tif(strlen(aa) == 1)\n\t{\n\t\tnum = 0;\n\t\tb[0] = 0;\n\t}\n\tif(strlen(aa)> 2 || (num==0&&10*a[0]+a[1] >= 13))\n\t{for(int j = 1; j < strlen(aa);j++)\n\t{\n\t\tc = 10*a[j-1]+a[j];\n\t\tif(flag == 1)\n\t\t{\n\t\t\tc = c+a[j-2]*100;\n\t\t\tflag = 0;\n\t\t}\n\t\tif(c < 13)\n\t\t{\n\t\t\tb[j] = 0;\n\t\t\tflag = 1;\n\t\t}\n\t\tif(c >= 13)\n\t\t{\n\t\t\tif(num == 0) num = j;\n\t\t\tb[j] = c/13;\n\t\t\ta[j] = c%13;\n\t\t}\n\t}\n\t}\n\tfor(int k = num;k13) \n\t\t{\n\t\t\tcout<2?????????\n\t\t{\n\t\t\tk=a[i]*10+a[i+1];\n\t\t\ta[i+1]=k%13;\n\t\t\tcout<>c)\n\t{\n\t\tb=b*10+(int)c-48;\n\t\ta[m]=b/13;\n\t\tb=b-a[m]*13;\n\t\tm++;\n\t}\n\tfor (i=0; a[i]==0; i++);\n if (i>=m) cout<<'0';\n\tfor (; i> str;\n\tint len = strlen( str ), num = 0, shang[105], j = 0, sign = 0, flag = 0;\n\tfor ( int i = 0; str[i] != '\\0'; i ++ ) {\n\t\tnum += str[i] - '0';\n\t\tif ( num >= 13 ) {\n\t\t\tflag = 1;\n\t\t\tshang[j ++] = num / 13;\n\t\t\tif ( str[i + 1] != '\\0' ) num = ( num % 13 ) * 10;\n\t\t\telse num = num % 13;\n\t\t}\n\t\telse if ( str[i + 1] != '\\0' ) {\n\t\t\tnum *= 10;\n\t\t\tshang[j ++] = 0;\n\t\t}\n\t\telse shang[j ++] = 0;\n\t}\n\tif ( flag == 0 ) cout << 0 << endl << num << endl; \n\telse {\n\t\tfor ( int i = 0; i < j; i ++ ) {\n\t\t\tif ( sign == 0 && shang[i] == 0 );\n\t\t\telse {\n\t\t\t\tcout << shang[i];\n\t\t\t\tsign = 1;\n\t\t\t}\n\t\t}\n\tcout << endl;\n\tcout << num ;\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "96", "index": "47511", "code": "main()\n{\n\tint len;\n\tchar a0[100];\n\tint a[100],b[100],c[100],d[100];\n\tscanf(\"%s\",a0);\n\tlen=strlen(a0);\n\tfor(int t=0;t=13)\n\t{for(i=0;i>str;\n//cout<=strlen(str))\n break;\n p=p*10+str[k]-'0';\n\t }\n // cout<=i;k--)\n {\n str[k]=p%10+'0';\n\t p=p/10;\n\t }\n }\nfor(i=0;i=0;i--)\n\t{\n\t\ta[i]=r[i+1]*10+a[i];\n\t\tq[i]=a[i]/13;\n\t\tr[i]=a[i]%13;\n\t}\n\ti=len;\n\twhile(q[i]==0&&i>0)\n\t\ti--;\n\tfor(i=i;i>=0;i--)\n\t\tprintf(\"%d\",q[i]);\n\tprintf(\"\\n%d\",r[0]);\n\treturn 0;\n}"} +{"label": "96", "index": "47520", "code": "int main()\n{\n\tchar a[102];\n\tint b[102],c[102],d[102];\n\tint e,i,j;\n\tgets(a);\n\te=(int)strlen(a);\n\tfor(i=0;i>ch;\n\tint shu[110];\n\tfor (int i=0;i> a;\n\tif(a[1] == '\\0')\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << a[0] << endl;\n\t}\n\telse\n\t{\n\t\n\t\tr=(a[0]-'0')*10+a[1]-'0';\n\t\tfor(i=1; a[i] != '\\0'; i++)\n\t\t{\n\t\t\n\t\t\ts[i]=r/13;\n\t\t\ty=r%13;\n\t\t\tb++;\n\t\t\tr=10*(r%13)+a[i+1]-'0';\n\t\t\tif(a[i+1] == '\\0')\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\tif(s[1] != 0)\n\t\t{\n\t\t\tfor(i=1; i <= b; i++)\n\t\t\t{\n\t\t\t\tcout << s[i];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t\tcout << y << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(b == 1)\n\t\t\t{\n\t\t\t\tcout << 0 << endl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(i=2; i <= b; i++)\n\t\t\t\t{\n\t\t\t\t\tcout << s[i];\n\t\t\t\t}\n\t\t\t\tcout << endl;\n\t\t\t}\n\t\t\tcout << y << endl;\n\t\t}\n\t\treturn 0; \n\t}\n} "} +{"label": "96", "index": "47527", "code": "\nmain()\n{\n int a;\n char b[200];\n int c;\n int h,m;\n char s[200];\n gets(s);\n int l=strlen(s);\n int i,j,k;\n if(l==2)\n {\n c=(s[0]-'0')*10+s[1]-'0';\n h=c/13;\n m=c%13;\n printf(\"%d\\n%d\\n\",h,m);\n }\n else if(l==1)\n {\n c=s[0]-'0';\n printf(\"0\\n%d\",c);\n }\n else if(l>2)\n {\n if((s[0]-'0')*10+s[1]-'0'>=13)\n {\n \n c=s[0]-'0';\n for(i=0;i>divider;\n\tnum = divide13(strlen(divider));\n\tfor(p = answer;*p == '0';++p); //????????????\n\tif(*p)cout<=13)\n {\n\t for(i=1;i2)\n {\n for(i=1;i<=l-1;i++)\n\t\t {\n\t\t \t c=b[i];\n\t\t \t d=c+d*10; f[i-1]=d/13; \n\t\t \t if(d>=13)\n\t\t \t {\n\t\t \t \t \n\t\t \t d=d%13; \n\t\t\t } \n\t\t\t \n\t\t\t if(i==l-1) \n\t\t\t j=d; \n\t\t }\n\t\t if (f[0]!=0)\n printf(\"%d\",f[0]);\n for (i=1;i>a;\n\tint len;\n\tlen=strlen(a);\n\tint b[101],i,c[101];\n\tfor(i=1;i<=len;i++) b[i]=a[i-1]-'0';\n\tint hand=0;\n\ti=2;\n\tint num=b[1];\n\twhile(i<=len)//???? \n\t{\n\t\tnum=num*10+b[i];\n\t\thand++;\n\t\tc[hand]=num/13;\n\t\tnum=num%13;\n\t\ti++;\n\t}\n\ti=1;\n\tif(hand==0) cout<<\"0\"<> a;\n for (r = 0; a[r] != 0; r++)\n {\n b[r] = (i * 10 + a[r] - '0') / 13; //????????\n i = ((i * 10) + a[r] - '0') % 13; //???\n }\n \n if (r == 1 || (r == 2 && b[1] == 0)) cout << b[0];\n else\n {\n while (b[j] == 0 ) j++; //???0??????\n for (; j < r; j++)\n cout << b[j];\n }\n cout << endl;\n cout << i << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47540", "code": "int main()\n{\n\tint i,n,m,a[100];\n\tchar str[100];\n\tgets(str);\n\tn=strlen(str);\n\tif(n==1)printf(\"0\\n%c\",str[0]);\n\telse if(n==2&&(str[1]-'0'+(str[0]-'0')*10)<13)\n\t{\n\t\tm=str[1]-'0'+(str[0]-'0')*10;\n\t\tprintf(\"0\\n%d\",m);\n\t}\n\telse{\n\tfor(i=0;i2)\n {\n if(num[0]*10+num[1]>=13)\n {\n printf(\"%d\",(num[0]*10+num[1])/13);\n i=2;\n r=(num[0]*10+num[1])%13;\n \n } \n else\n {\n i=2;\n r=(num[0]*10+num[1])%13; \n }\n while(i=13)\n {\n printf(\"%d\\n%d\",(num[0]*10+num[1])/13,(num[0]*10+num[1])%13);\n }\n if(LEN==2&&num[0]*10+num[1]<13)\n {\n printf(\"%d\\n%d\",0,num[0]*10+num[1]);\n } \n } \n\n\n"} +{"label": "96", "index": "47542", "code": "int main()\n{\n\tchar input[101];\n\tcin >>input;\n\tint length=strlen(input),result[101],count=0,yu=0;\n\twhile (count>a;\n\tint l=strlen(a),i,x,j,k;\n\tfor(i=0;i> beDiv;\n\tfor(i = 0, r = 0; beDiv[i] != '\\0'; i++)\n\t{\n\t\tr = r * 10 + beDiv[i] - '0';\n\t\tresult[i] = r / 13;\n\t\tr %= 13;\n\t}\n\tlenth = i;\n\tif((lenth == 2 && (beDiv[0] - '0') * 10 + beDiv[1] - '0' < 13)\n || lenth == 1)\n\t\tcout << '0' << endl;\n\telse\n\t{\n for(i = 0, tell = 0; i < lenth; i++)\n\t\t{\n\t\t if(result[i] != 0)\n\t\t\t tell = 1;\n\t\t if(tell)\n\t\t\t cout << result[i];\n\t\t}\n\t}\n\tcout << endl << r << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47547", "code": "int main () \n{\n \nchar a[200];\ncin>>a;\nint x[200],b[200],i;\nfor( i=0;i>a;\n int s=0;\n for (int i=0;i<101;i++)\n {\n if (a[i]=='\\0')\n break;\n s++;\n }\n int b[100],c[100];\n for (int i=0;i2)\n {\n temp=begin[0]*10+begin[1];\n if(temp>=13)\n {\n cout<=13)\n {\n a[i]=m/13;\n b[i+1]=m%13;\n }\n else\n {\n a[i]=0;\n m=m*10+b[i+2];\n i++;\n a[i]=m/13;\n b[i+1]=m%13; \n } \n }\n k=b[i-1];\n if(a[0]==0)\n {\n for(i=1;i> num;\n\tfor (int i = 0; num[i] != '\\0'; i++){\n\t\tr = r * 10 + num[i] - '0';\n\t\tif (r < 13){\n\t\t\tif (index != 0)\n\t\t\t\tquot[index++] = '0';\n\t\t}else{\n\t\t\tquot[index++] = r / 13 + '0';\n\t\t\tr = r % 13;\n\t\t}\n\t}\n\tif (index == 0){\n\t\tcout << 0 << endl;\n\t}else{\n\t\tquot[index] = '\\0';\n\t\tcout << quot << endl;\n\t}\n\tcout << r << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47553", "code": "\nint num(char x);\n\nint main()\n{\n\tchar z[105];\n\tscanf(\"%s\",z);\n\tint i;\n\tint mid=num(z[0]);\n\tint m;\n\tif((z[2]==0 && num(z[0])*10+num(z[1])<13))\n\t{\n\t\tprintf(\"0\\n%d\",num(z[0])*10+num(z[1]));\n\t}\n\telse if(z[1]==0)\n\t{\n\t\tprintf(\"0\\n%d\",num(z[0]));\n\t}\n\telse\n\t{\n\t\tfor(i=1;z[i]!=0;i++)\n\t\t{\n\t\t\tmid=mid*10;\n\t\t\tmid += num(z[i]);\n\t\t\tm=0;\n\t\t\tif(i==1 && mid<13)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile(mid>=13)\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t\tmid-=13;\n\t\t\t}\n\t\t\tprintf(\"%d\",m);\n\t\t}\n\t\tprintf(\"\\n\");\n\t\tprintf(\"%d\",mid);\n\t}\n\treturn 0;\n}\n\nint num(char x)\n{\n\tint a;\n\ta=(int)x;\n\ta=a-48;\n\treturn a;\n}\n\n"} +{"label": "96", "index": "47554", "code": "main()\n{ char a[100],c[100]; \n gets(a); \nint i,b,d,e; \n if (a[1]=='\\0') \n{ \n printf(\"0\\n\"); \n printf(\"%c\",a[0]); \n} \n else if (a[2]=='\\0'&&a[0]-'0'==1) \n { \n if (a[1]-'0'<3) \n{ \n printf(\"0\\n\"); \n printf(\"%c\",a[0]); \n printf(\"%c\",a[1]); \n } \n else \n { \n printf(\"1\\n\"); \n printf(\"%d\",a[1]-'0'-3); } } else { i=0; b=a[i]-'0'; while (a[i]!='\\0') { d=b/13; e=b%13; b=e*10+(a[i+1]-'0'); c[i]=d+'0'; i++; } if (c[1]!='0') { i=1; while (c[i]>='0'&&c[i]<='9') { printf(\"%c\",c[i]); i++; } } else if (c[1]=='0') { i=2; while (c[i]>='0'&&c[i]<='9') { printf(\"%c\",c[i]); i++; } } printf(\"\\n%d\",e); } getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();}\n"} +{"label": "96", "index": "47555", "code": "int main ()\n{\n\tint i,n,j,k,m;\n\tchar a[103],c[103],d[2];\n\tscanf(\"%s\",a);\n\tn=strlen(a);\n\tif(n==1)\n\t\tprintf(\"0\\n%c\",a[0]);\n\telse if(n==2&&((a[0]-48)*10+a[1]-48<13))\n\t{\n\t\tprintf(\"0\\n\");\n\t\tprintf(\"%c%c\",a[0],a[1]);\n\t}\n\telse if((n>3)||(n==2&&((a[0]-48)*10+a[1]-48>13)))\n\t{\n\t\tfor(i=0;i=13)\n\t\t\t{\n\t\t\t\tc[i+1]=k/13+48;\n\t\t\t\tm=k%13;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc[i+1]='0';\n\t\t\t\tm=k;\n\t\t\t}\n\t\t}\n\t\tif(m>9)\n\t\t{\n\t\t\td[0]='1';\n\t\t\td[1]=m-10+48;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td[0]=m+48;\n\t\t\td[1]='\\0';\n\t\t}\n\t\tfor(i=0;i='0' && bei[n-1]<='9')\n\t\tprintf(\"%d\",bei[n-1]-'0');\n\telse printf(\"%d\",bei[n-1]-'0');\n\t}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47557", "code": "int main()\n{\n\tchar mun[100];\n\tint i, len, mod = 0, flag = 0;\n\tcin >> mun;\n\tlen = strlen(mun);\n\tfor (i = 0; i < len; i++)\n\t{\n\t\tmod = mod * 10 + mun[i] - '0';\n\t\tif (flag == 0 && (mod / 13) == 0)\n\t\t\tcontinue;\n\t\telse\n\t\t{\n\t\t\tcout << mod / 13;\n\t\t\tflag = 1;\n\t\t}\n\t\tmod = mod % 13;\n\t}\n\tif (flag == 0)\n\t\tcout << 0;\n\tcout << endl << mod << endl;\n\treturn 0;\n}\n\n"} +{"label": "96", "index": "47558", "code": "main()\n{\n int m,n,i,j=0,x=0,y,b[101],d[101];\n char a[101],c[101];\n scanf(\"%s\",a);\n n=strlen(a);\n \n for(i=0;i=2) p=a[i-2];\n\t\telse p='0';\n\t\twhile((int)(s[i]-'0')*13<=(int)(p-'0')*100+(int)(a[i-1]-'0')*10+(int)(a[i]-'0'))\n\t\t{\n\t\t\ts[i]++;\t\t\t\t\t\t\n\t\t}\n\t\tif(s[i]>'0') s[i]--;\n\t\t\tsh=(int)(s[i]-'0')*13;\n\t\t\ta[i]=a[i]-sh%10;\n\t\t\tif(a[i]<'0')\n\t\t\t{\n\t\t\t\ta[i-1]--;\n\t\t\t\ta[i]=a[i]+10;\n\t\t\t}\n\t\t\ta[i-1]=a[i-1]-((sh%100)/10);\n\t\t\tif(a[i-1]<'0')\n\t\t\t{\n\t\t\t\ta[i-2]--;\n\t\t\t\ta[i-1]=a[i-1]+10;\n\t\t\t}\n\t\t\tif(i>=2) a[i-2]-=sh/100;\n\t\t\ti++;\n\t}\n\ti=0;\n\twhile(s[i]=='0'&&i=13)\n\t\t{\n\t\t\tshang[0]=yu/13;\n\t\t\tyu=yu%13;\n\t\t\tfor(i=2;i> num;\n\tfor (i = 0; num[i] != 0; i++)\n\t{\n\t\t a[i] = (r * 10 + num[i] - '0') / 13;\n\t\t r = (r * 10 + num[i] - '0') % 13;\n\t}\n\tif(a[1] == -1)\n\t\tcout << 0;\n\tif (a[0] == 0 && a[1] == 0 && a[2] == -1)\n\t\tcout << 0;\n\tfor (k = 0; ; k++)\n\t{\n\t\tif (a[k] != 0) break;\n\t}\n\tfor (j = k; j < i; j++)\n\t{\n\t\tcout << a[j];\n\t}\n\tcout << endl;\n\tcout << r << endl;\n\treturn 0;\n}\n\n\n"} +{"label": "96", "index": "47569", "code": "main(){\nchar num[100],ans[100];\nint i,j,k,t;\nchar s;\nfor(i=0;i<100;i++){\nans[i]='\\0';\n}\nscanf(\"%s\",num);\nfor(i=0;num[i]!='\\0';i++){\n}\nif(i<=1)\nprintf(\"0\\n%s\",num);\nelse{\nj=(num[0]-'0')*10+num[1]-'0';\nif((i==2)&&(j<=13))\nprintf(\"0\\n%s\",num);\nelse{\nfor(j=0;j> num;\n\tfor (i = 0; num[i] != '\\0'; i++)\n\t{\n\t\tcount++;\n\t\tdiv[i] = (num[i] - 48 + mod) / 13;\n\t\tmod = (num[i] - 48 + mod) % 13;\n\t\tmod *= 10;\n\t}\n\tfor (i = 0; i < count; i++)\n\t{\n\t\tif (div[i] != 0)\n\t\t{\n\t\t\tfor (int j = i; j < count; j++)\n\t\t\t{\n\t\t\t\tcout << div[j];\n\t\t\t}\n\t\t\tcout << endl << mod / 10 << endl;\n\t\t\treturn 0;\n\t\t}\n\t\tif (i == count - 1)\n\t\t{\n\t\t\tcout << 0 << endl;\n\t\t\tcout << mod / 10 << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47574", "code": "char s[1000];\nint i ,len,sum,p;\nint flag;\nvoid main()\n{\n\tscanf(\"%s\",s);\n\tlen = strlen(s);\n\tsum = 0 ; flag = 1;\n\tfor (i = 0; i < len ; ++i)\n\t{\n\t\tsum =(sum*10+s[i]-'0');\n\t\tp = sum/13;\n\t\tsum = sum%13;\n\t\tif (!p && flag) continue;\n\t\tflag = 0;\n\t\tprintf(\"%d\",p);\n\t}\n\tif (flag) printf(\"%d\",0);\n\tprintf(\"\\n\");\n\tprintf(\"%d\\n\",sum);\n}"} +{"label": "96", "index": "47575", "code": "main()\n{\n char a[101];\n int b[101],s,m,n,c=0,i,p,q=1,sum=0;\n scanf(\"%s\",a);\n for(i=0;a[i]!='\\0';i++)\n c++;\n c++;\n for(i=0;i=10)\n {s=100*b[0]+10*b[1]+b[2];\n m=s/13;\n n=s%13;\n printf(\"%d\",m);i=3;\n do{\n s=100*b[i]+10*b[i+1]+b[2+i];\n m=(n*1000+s)/13;\n n=(n*1000+s)%13;\n if(m>99)\n printf(\"%d\",m);\n else if(m>9)\n printf(\"0%d\",m);\n else\n printf(\"00%d\",m);\n i=i+3;}while(i+3<=c-1);\n if(i==c-3)\n {s=n*100+10*b[c-3]+b[c-2];\n m=s/13;\n n=s%13;\n if(m>9)\n printf(\"%d\\n%d\",m,n);\n else\n printf(\"0%d\\n%d\",m,n);}\n if(i==c-2)\n {\n s=10*n+b[c-2];\n m=s/13;\n n=s%13;\n printf(\"%d\\n%d\",m,n);\n }\n if(i==c-1)\n {\n printf(\"\\n%d\",n);}}\n else\n { for(i=c-2;i>=0;i--)\n {\n p=b[i]*q;\n q=q*10;\n sum=sum+p;}\n printf(\"%d\\n%d\",sum/13,sum%13);}\n \n }\n \n \n"} +{"label": "96", "index": "47576", "code": "char temp[100]={\"\\0\"};\nint main()\n{\n\tint len;\n\tint i;\n\tint a[105]={0};\n\tint num;\n\tchar c[105]={\"\\0\"};\n\tcin>>c;\n\tlen=strlen(c);\n\tfor (i=0;i<105;i++)\n\t\ta[i]=c[i]-'0';\n\tif (len<2)\n\t{\n\t\tcout<<'0'<13)\n\t\t\tcout<> num;\n\tfor (i = 0;num[i] != '\\0';i++)\n\t{\n\t\tresult[i] =(num[i] + r * 10 - '0' - (num[i] + r * 10 - '0') % 13) / 13;\n\t\tr = (num[i] - '0' + r * 10) % 13;\n\t}\n\tfor (j = 0;j<= i - 1;j++)\n\t{\n\t\tif (result[j] != 0)\n\t\t{\n\t\t\tx=1;\n\t\t\tfor (k = j;k <= i - 1;k++)\n\t\t\t{\n\t\t\t\tcout << result[k];\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (x == 0)\n\t{\n\t\tcout << \"0\";\n\t}\n\tcout << endl;\n\tcout << r;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47578", "code": "int main()\n{\n\tchar a[101];\n\tint i;\n\tint l;\n\tint num[101]={-1};//?????????\n\tint num1[101]={0};//????\n\tcin.getline(a,101);\n\tl=strlen(a);\t\t//???????\n\tfor(i=0;i=3) {for(int i=0;i<=strlen(v)-1;i++)\n {\n c[i]=v[i]-48; \n \n }\n for(int j=0;j=13)\n {\n c=b%13;\n d=b/13;\n y[i-1]='0'+d; \n } \n else\n { \n c=b;\n y[i-1]='0';\n } \n } \n if(y[0]=='0' && x[1]!='\\0' && x[2]!='\\0')\n {\n for(i=0;y[i]!='\\0';i++)\n y[i]=y[i+1]; \n } \n printf(\"%s\\n%d\",y,c); \n\n}\n"} +{"label": "96", "index": "47581", "code": "main()\n{\n int i,chu,yu=0,count=0,shang[100],count2=0;\n char a[100];\n gets(a);\n for(i=0;i<100;i++)\n {\n chu=yu*10+(int)(a[i]-'0');\n shang[i]=chu/13;\n count2++;\n yu=chu%13;\n if(a[i+1]=='\\0')break;\n }\n if(count2==1 || count2==2){count=count2-1;}\n else if(shang[1]==0)count=2;\n else count=1; \n for(i=count;i=13){\n for(i=0,d=0;i<=len-1;i++)\n { m=0;\n d=d*10+a[i]-'0';\n m=d/13;\n if(i!=0) b[i-1]=m+'0';\n d=d%13;\n } \n b[len-1]='\\0';\n printf(\"%s\\n\",b); \n printf(\"%d\",d); \n }\nif(c-'0'<13){ for(i=0,d=0;i<=len-1;i++)\n { m=0;\n d=d*10+(a[i]-'0');\n m=d/13;\n if(i>=2) b[i-2]=m+'0';\n d=d%13;\n } \n b[len-2]='\\0';\n \n \n printf(\"%s\\n\",b);\n printf(\"%d\",d); \n }\n \n \n }\n }\n getchar();\n getchar();\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n }\n"} +{"label": "96", "index": "47586", "code": "int main()\n{\n \n char a[101];\n cin.getline(a,101);\n int i,j,k,l;\n l=strlen(a);\n int c[l];\n int d[l];\n for(i=0;i=13)\n {\n ans1[i]=sum/13;\n sum=sum%13;\n }\n }\n for(i=0;i> a; //?????\n\tfor(k = 0;a[k] != '\\0';k++) //????????\n\t\tn++;\n\tif(n == 1) //???????????????\n\t{\n\t\tcout << \"0\" << endl << a[0];\n\t}\n\telse if(n == 2) //???????????????\n\t{\n\t\tr = (a[0] - '0') * 10 + a[1] - '0';\n\t\tb[0] = r / 13;\n\t\tr = r % 13;\n\t\tcout << b[0] << endl << r;\n\t}\n\telse if((a[0] - '0') * 10 + a[1] - '0' >= 13) //??????????????????????13????????????\n\t{\n\t\tr = (a[0] - '0') * 10 + a[1] - '0'; //?r???\n\t\tfor(k = 1;k <= n - 2;k++) \n\t\t{\n\t\t\tb[k] = r / 13; //?????????????????b?\n\t\t\tr = r % 13 * 10 + a[k + 1] - '0'; //???\n\t\t}\n\t\tb[n - 1] = r / 13; //???????\n\t\tr = r % 13; //?????????\n\t\tfor(k = 1;k <= n - 1;k++)\n\t\t{\n\t\t\tcout << b[k]; //???\n\t\t}\n\t\tcout << endl << r; //???????\n\t}\n\telse\n\t{\n\t\tr = (a[0] - '0') * 100 + (a[1] - '0') * 10 + a[2] - '0'; //??????13????????r\n\t\tfor(k = 2;k <= n - 2;k++)\n\t\t{\n\t\t\tb[k] = r / 13;\n\t\t\tr = r % 13 * 10 + a[k + 1] - '0';\n\t\t}\n\t\tb[n - 1] = r / 13;\n\t\tr = r % 13;\n\t\tfor(k = 2;k <= n - 1;k++)\n\t\t{\n\t\t\tcout << b[k];\n\t\t}\n\t\tcout << endl << r;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47589", "code": "main()\n{\n char str[200];\n int a[200]={0},b[200]={0},c;\n int i,j,k,m,n;\n scanf(\"%s\",str);\n n=strlen(str);\n for(i=0;i=13)\nprintf(\"%d\\n%d\",(n[0]*10+n[1])/13,(n[0]*10+n[1])%13);\n if(k>2)\n {b[0]=n[0];\n a[0]=(b[0]*10+n[1])/13; \n if(a[0]!=0)printf(\"%d\",a[0]);\n for(e=0;e> str;\n\tint len = strlen(str);\n\tint num1[100];\n\tint num2[100];\n\tint i;\n\tint num, r;\n\tfor (i = 0; i < len; i++)\n\t\tnum1[i] = str[i] - '0';\n\tif (len >= 3)\n\t{\n\t\tfor (i = 0; i < len - 1; i++)\n\t\t{\n\t\t\tnum = num1[i] * 10 + num1[i + 1];\n\t\t\tnum2[i] = num / 13;\n\t\t\tr = num % 13;\n\t\t\tnum1[i + 1] = r;\n\t\t}\n\t\tif (num2[0] != 0)\n\t\t\tfor (i = 0; i < len -1; i++)\n\t\t\t\tcout << num2[i];\n\t\telse\n\t\t\tfor (i = 1; i < len - 1; i++)\n\t\t\t\tcout << num2[i];\n\t\tcout << endl;\n\t\tcout << r << endl;\n\t}\n\telse if (len == 2)\n\t{\n\t\tint s;\n\t\tnum = num1[0] * 10 + num1[1];\n\t\ts = num / 13;\n\t\tr = num % 13;\n\t\tcout << s << endl;\n\t\tcout << r << endl;\n\t}\n\telse\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << num1[0] << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47594", "code": "//********************************\n//????3.cpp *\n//???2012?11?10? *\n//????? 1? 1200012895 *\n//?????13 *\n//********************************\nint main()\n{\n\tchar num; //num?????????\n\tint a[101], i = 1, c = 0, j; //a??????i?????c????????????j?????\n\twhile ((num = cin.get()) != '\\n') //??????????a\n\t{\n\t\ta[i] = num - '0';\n\t\ti++;\n\t}\n\tif (i == 2) //??????????13???????0??????\n\t\tcout << \"0\" << endl << a[1];\n\telse\n\t{\n\t\tif (i == 3 && (10 * a[1] + a[2]) < 13)\n\t\t\tcout << \"0\" << endl << 10 * a[1] + a[2];\n\t\telse\n\t\t{\n\t\t\tfor (j = 1; j <= i - 1; j++)\n\t\t\t{\n\t \tc = 10 * a[j] + a[j + 1]; //?????????????\n\t \tif (c >= 13) //???????13????13???????\n\t\t\t\t{\n\t\t \tcout << c / 13;\n\t\t \ta[j + 1] = c % 13;\n\t\t\t\t}\n\t\t else\n\t\t\t\t{\n\t\t \tif (j != 1 && j != i - 1) //???????13?????????????????0\n\t\t\t\t\t{\n\t\t\t \tcout << \"0\";\n\t\t\t \ta[j + 1] = c;\n\t\t\t\t\t}\n\t\t \telse //??????????\n\t\t\t\t a[j + 1] = c;\n\t\t\t\t} \n\t\t if (j == i - 2) //???\n\t\t \tcout << endl << c % 13;\n\t \tc = 0; //c??\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47595", "code": "int main()\n{\n int i,d,r;\n char a[100];\n int m,b[100],c[100];\n scanf(\"%s\",a);\n m= strlen(a);\n for(i=0;i1)\n {\n k--;\n }\n int i;\n for(i=k;i>0;i--)\n printf(\"%d\",a[i]);\n }\nmain()\n{\n int a[100],alen,b[100],blen,i;\n char c[100];\n scanf(\"%s\",c);\n alen=strbigint(c,a);\n if(alen==1)\n printf(\"%d\\n%d\",0,a[0]);\n else\n {\n for(i=alen-1;i>0;i--)\n {\n b[i]=(10*a[i]+a[i-1])/13;\n a[i-1]=(10*a[i]+a[i-1])%13;\n }\n print_bigint(b,alen);\n printf(\"\\n\");\n printf(\"%d\",a[0]);\n }\n }"} +{"label": "96", "index": "47599", "code": "int main()\n{\n char str[101],result[100]={\"0\"};\n int i,tem,max=0;\n scanf(\"%s\",str);\n for (i=1;str[i]!='\\0';i++)\n {\n if (str[i-2]=='1') i--;\n if (((str[i-1]-'0')*10+str[i]-'0')>=13||((str[i-1]-'0')*10+str[i]-'0')==0)\n {\n tem=(str[i-1]-'0')*10+str[i]-'0';\n }\n else\n {\n i++;\n if (result[i-2]=='\\0') result[i-2]='0';\n tem=(str[i-2]-'0')*100+(str[i-1]-'0')*10+str[i]-'0';\n }\n if (str[i]!='\\0') result[i-1]=tem/13+'0';\n if (str[i]!='\\0') str[i-1]=(tem%13)/10+'0';\n if (str[i]!='\\0') str[i]=(tem%13)%10+'0';\n}\n str[i]='\\0';\n //result[i-1]='\\0';\n //printf(\"%s\\n\",str);\n if (result[0]=='0')\n if (result[1]=='\\0')\n printf(\"0\\n\");\n else printf(\"%s\\n\",&result[1]);\n else printf(\"%s\\n\",result);\n for (i=0;str[i]!='\\0';i++);\n if (str[i-2]!='1')\n printf(\"%d\",str[i-1]-'0');\n else\n printf(\"%d%d\",1,str[i-1]-'0');\n return 0;\n}\n"} +{"label": "96", "index": "47600", "code": " \nint main()\n{\n\tchar a[110]={0};\n\tint i=0,n=0,x=0,y=0;\n\tfor(i=0;;i++)\n\t{\n\t\ta[i]=getchar();\n\t\tif(a[i]=='\\n')\n\t\t\tbreak;\n\t}\n\tn=i;\n\tchar b[21][6]={0};\n\tfor(x=0,i=0;a[i]!='\\n';x++)\n\t{\n\t\tfor(y=0;y<5&&a[i]!='\\n';y++)\n\t\t{\n\t\t\tb[x][y]=a[i];\n\t\t\ti++;\n\t\t}\n\t}\n\tint ten=0,one=0,yushu=0;\n\tten=n/5;\n\tone=n%5;\n\tlong long int jieguo[23]={0},temp;\n\tfor(x=0;x> str ;\n for ( j = 0 ; str[j] != '\\0' ; j ++) //???? \n {\n num[j] = (r * 10 + str[j] - '0') / 13; //??????? \n r = (r * 10 + str[j] - '0') % 13; //??????? \n }\n j = 0; //j???0 \n while (num[j] == 0) \n j ++; //???????0?? \n if(str[j]=='\\0') \n\t cout << \"0\" ; //???????13??????0 \n for (; str[j] != '\\0'; j++)\n\t{\n cout << num[j] ; \n\t} \n\t cout << endl ; //??????13????? \n cout << r ; //???? \n return 0;\n} \n\n\n\n\n\n"} +{"label": "96", "index": "47602", "code": "//**************************************\n//*???????? \n//*????? 1100012780 \t \n//*???2011.11.03 \n//**************************************\nint main()\n{\n\tchar num[101] = {0};\n\tint result[101] = {0};\n\tint i;\n\tint n = 0;\n\tint r = 0;\n\tcin>>num;\n\tfor (i = 0;i <= 99;i++)\n\t{\n\t\tif (num[i] != 0)\n\t\t\tn++;\n\t\telse\n\t\t\tbreak;\n\t}\n\tr = num[0] - '0';\n\tfor (i = 1;i <= n - 1;i++)\n\t{\n\t\tresult[i] = (r * 10 + num[i] - '0') / 13;\n\t\tr = (r * 10 + num[i] - '0') % 13;\n\t}\n\tif (n >= 2)\n\t{\n\t\tif (result[1] == 0)\n\t\t{\n\t\t\tif (n == 2)\n\t\t\t\tcout<<0;\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor (i = 2;i <= n - 1;i++)\n\t\t\t\t\tcout<=13)\n\t\t{\n\t\t\tk=1;\n\t\t\tprintf(\"%d\",b/13);\n\t\t\tb=b%13;\n\t\t}\n\t\telse if(k) printf(\"0\");\n\t}\n\tif(!k)printf(\"0\");\n\tprintf(\"\\n%d\",b);\n}\n"} +{"label": "96", "index": "47605", "code": "//*******************************\n//?????13 \n//??????1200012798\n//??? 2012.11.15\n//******************************* \n\n\nint main()\n{\n\tint a[101]={0},b[101]={0};\n\tint count=0,p,deta;\n\tint i,j,k;\n\tchar t;\n\t\n\tt=cin.get();\n\tfor(k=0;t!='\\n';k++)\n\t{\n\t\ta[k]=(int)t-48;\n\t\tcount++;\n\t\tt=cin.get();\n\t}\n\n\n\n\tp=a[0];\n\tfor(i=0;i<=count-1;i++)\n\t{\n\t\tif(p<13)\n\t\t{\n\t\t\tp=10*p+a[i+1];\n\t\t\tb[i]=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[i]=p/13;\n\t\t\tp=(p%13)*10+a[i+1];\n\t\t}\n\n\t}\n\n\tif(a[0]*10+a[1]<13)\n\t{\n\t\tdeta=2;\n\t}\n\telse\n\t{\n\t\tdeta=1;\n\t}\n\n\tif(count==1||(count==2&&deta==2))\n\t{\n\t\tcout << 0;\n\t}\n\telse\n\t{\n\t\tfor(j=deta;j<=count-1;j++)\n\t\t{\n\t\t\tcout << b[j];\n\t\t}\n\t}\n\tcout << \"\\n\" << p/10 << endl;\n\n\n\treturn 0;\n}"} +{"label": "96", "index": "47606", "code": "\nint main()\n{\n\tchar a[200];\n\tcin.getline(a,200);\n\tint b[200]={0},c[200]={0},len=strlen(a);\n\tfor (int i=0;i=13)\n\t\t{\n\t\t\tc[sum]=b[i]/13,b[i+1]+=b[i]%13*10;\n\t\t\tsum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (sum==0)\n\t\t\t{\n\t\t\t\tb[i+1]+=b[i]*10;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc[sum]=0;\n\t\t\t\tb[i+1]+=b[i]*10;\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t}\n\tc[sum]=b[len-1]/13;\n\tb[len-1]%=13;\n\tfor (int i=0;i<=sum;i++)\n\t{\n\t\tcout<> a) // ????????\n\t{\n\t\tcnt = cnt * 10 + (a - '0'); // a????????cnt????????10???????\n\t\tk = cnt / 13; // k???\n\t\tif (k)\n\t\t{\n\t\t\tcout << k; // k??0???\n\t\t\tflag = 0; // ????????0??flag?0\n\t\t}\n\t\telse if (!flag) cout << \"0\"; // ??????0????0???\n\t\tcnt = cnt % 13; // cnt???\n\t}\n\tif (flag) cout << \"0\";\n\tcout << endl << cnt;\n\treturn 0;\n}"} +{"label": "96", "index": "47608", "code": "int main(){\n\tchar N[100];\n int sza[100],szb[100],l,i,m,temp,n;\n\tscanf(\"%s\",N);\n\tl=strlen(N);\n for(i=0;i>N;\n len=strlen(N);\n remain=0;\n if(len==1)\n\t cout<<0<= 0 ; i--)\n {\n d = d * 10 + a[i];\n c[i] = d / 13;\n d = d % 13; \n } \n while(c[k - 1] == 0 && k > 1) k--; \n for(i = k - 1; i >= 0; i--) printf(\"%d\", c[i]);\n printf(\"\\n%d\", d);\n getchar();\n getchar();\n getchar(); \n}"} +{"label": "96", "index": "47618", "code": "int c,d;\nvoid cal(int b[105],int i,int k,int n)\n{\n\tif(i0)\n\t\t\tcout<>a;\n\tint i,j,k,m,n;\n\tn=strlen(a);\n\tint b[105];\n\tfor(i=0;i> num;\n\tif (num[1] == '\\0')\n\t\tcout << '0' << '\\n' << num[0];\n\telse\n\t{\n\t\ta = ((num[0] - '0') * 10 + (num[1] - '0')) / 13;\n\t\tb = ((num[0] - '0') * 10 + (num[1] - '0')) % 13;\n\t\tif (a != 0 || num[2] == '\\0')\n\t\t\tcout << a;\n\t\tfor (int i = 2; num[i] != '\\0'; i++)\n\t\t{\n\t\t\ta = (b * 10 + (num[i] - '0')) / 13;\n\t\t\tb = (b * 10 + (num[i] - '0')) % 13;\n\t\t\tcout << a;\n\t\t}\n\t\tcout << '\\n' << b << endl;\n\t}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47621", "code": "int main()\n{\n int i,j,k,a,l;\n int c;\n char s[101],r[101];\n gets(s);\n l=strlen(s);\n if(l==2)\n {\n a=(s[0]-'0')*10+s[1]-'0';\n printf(\"%d\\n%d\",a/13,a%13);\n }\n if(l==1)\n printf(\"0\\n%c\",s[0]);\n if(l>=3){\n c=s[0]-'0';\n if(c*10+s[1]-'0'>=13)\n {\n for(i=0;s[i+1]!='\\0';i++)\n {\n a=c*10+s[i+1]-'0';\n r[i]=a/13+'0';\n c=a%13;\n }\n r[i]='\\0';\n printf(\"%s\\n%d\",r,c);\n }\n else \n { \n c=c*10+s[1]-'0';\n for(i=0;s[i+2]!='\\0';i++)\n {\n a=c*10+s[i+2]-'0';\n r[i]=a/13+'0';\n c=a%13;\n }\n r[i]='\\0';\n printf(\"%s\\n%d\",r,c);\n }}\n} \n\n"} +{"label": "96", "index": "47622", "code": "int main()\n{\nchar n[100];\nint a[100],b[100],yu,i,j,x;\nscanf(\"%s\",n);\n x=strlen(n);\nfor (i=0;i1)\n {{for(i=0;i=3)\n {\n for(i=0;i=13)\n {\n a[i]=r/13;\n s[i+1]=r%13;\n }\n else\n {\n a[i]=0;\n s[i+1]=s[i]*10+s[i+1];\n }\n }\n else\n {\n if(r>=13)\n {\n a[i]=r/13;\n k=r%13;\n }\n else\n {\n a[i]=0;\n k=r;\n }\n }\n }\n if(a[0]!=0)\n for(i=0;i>s;\n len=strlen(s);\n a[0]=len;\n for (i=1;i<=len;i++)\n a[i]=(int)s[i-1] -48;\n if (len==1)\n {\n cout < 2)\n\t\t\tj = 1;\n\t\tfor (j; j < i; j++)\n\t\t\tcout << result[j];\n\t\tcout << endl;\n\t\tcout << yushu << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47627", "code": "int main(){\n char n[1000];\n int a[1000];\n int i,yu,len,sh;\n scanf(\"%s\",&n);\n len=strlen(n);\n for(i=0;i2||(len==2&&(10*a[0]+a[1])>=13)) \n { \n if((10*a[0]+a[1])>=13) { yu=(10*a[0]+a[1])%13;sh=(10*a[0]+a[1])/13;printf(\"%d\",sh);}\n if((10*a[0]+a[1])<13){yu=10*a[0]+a[1];}\n for(i=2;i=13*9)\n div=9;\n else \n {\n if (A>=13*8)\n {\n div=8;\n }\n else\n {\n if (A>=13*7)\n {\n div=7;\n }\n else\n {\n if (A>=13*6)\n {\n div=6;\n }\n else\n {\n if (A>=13*5)\n {\n div=5;\n }\n else\n {\n if (A>=13*4)\n {\n div=4;\n }\n else\n {\n if (A>=13*3)\n {\n div=3;\n }\n else\n {\n if (A>=13*2)\n {\n div=2;\n }\n else\n {\n if (A>=13*1)\n {\n div=1;\n }\n else\n {\n div=0;\n } \n } \n } \n } \n } \n } \n }\n }\n }\n return div;\n}\n\nint lev13(int A)\n{\n int lev;\n if (A>=13*9)\n { \n lev=A-13*9;\n }\n else \n {\n if (A>=13*8)\n {\n lev=A-13*8;\n }\n else\n {\n if (A>=13*7)\n {\n lev=A-13*7;\n }\n else\n {\n if (A>=13*6)\n {\n lev=A-13*6;\n }\n else\n {\n if (A>=13*5)\n {\n lev=A-13*5;\n }\n else\n {\n if (A>=13*4)\n {\n lev=A-13*4;\n }\n else\n {\n if (A>=13*3)\n {\n lev=A-13*3;\n }\n else\n {\n if (A>=13*2)\n {\n lev=A-13*2;\n }\n else\n {\n if (A>=13*1)\n {\n lev=A-13*1;\n }\n else\n {\n lev=A; \n } \n } \n } \n } \n } \n } \n }\n }\n }\n return lev;\n}\n\nmain()\n{\n char dvdd[100];\n char ans[100];\n int N, div, lev, a, head;\n int i;\n for (i=0; i<100; i++)\n ans[i]='0';\n scanf(\"%s\", dvdd);\n N=strlen(dvdd);\n lev=0;\n\n for (i=0; i<=N-1; i++)\n {\n a=dvdd[i]-'0'+lev*10;\n div=div13(a);\n lev=lev13(a);\n ans[i]=div+'0'; \n }\n if (N==1)\n {\n printf(\"0\\n\");\n printf(\"%d\\n\", lev); \n }\n else\n {\n head=(dvdd[0]-'0')*10+(dvdd[1]-'0');\n if (head<13)\n {\n if (N==2)\n printf(\"0\\n\");\n else\n {\n for (i=2; i<=N-1; i++)\n printf(\"%c\", ans[i]);\n printf(\"\\n\");\n } \n printf(\"%d\\n\", lev); \n }\n else\n {\n for (i=1; i<=N-1; i++)\n printf(\"%c\", ans[i]);\n printf(\"\\n\");\n printf(\"%d\\n\", lev); \n }\n }\n}\n"} +{"label": "96", "index": "47629", "code": "main()\n{\n int d,q,r,l,i,m;\n char dividend[10000],quotient[10000];\n scanf(\"%s\",dividend);\n l=strlen(dividend);\n if(l==1)\n printf(\"%c\\n%d\",'0',dividend[0]-'0');\nelse{\n r=dividend[0]-'0';\n for(i=1;i2)\n {for(i=0;i= 2)\n\t{\n\t\tif (j >= 3)\n\t\t{\n\t\t\twhile (i < j)\n\t\t\t{\n\t\t\t\tm = l * 10 + a[i] - '0';\n\t\t\t\tb[i] = m / 13 + '0';\n\t\t\t\tl = m % 13;\n\t\t\t\ti = i + 1;\n\t\t\t}\n\t\t\tfor (k = 0; k < i; k ++)\n\t\t\t{\n\t\t\t\tif ((b[k] != '0') || (flag == 1))\n\t\t\t\t{\n\t\t\t\t\tcout << b[k];\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcout << endl << l;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tm = ((a[0] - '0') * 10 + a[1] - '0');\n\t\t\tx = m / 13;\n\t\t\ty = m % 13;\n\t\t\tcout << x << endl << y;\n\t\t}\n\t}\n\telse\n\t\tcout << \"0\" << endl << (a[0] - '0');\n\treturn 0;\n}\n\t\t "} +{"label": "96", "index": "47631", "code": "int main()\n{\n\tchar bei0[105];\n\tint bei[105]={0},shang[105]={0};\n\tint beichu,yushu;\n\tint yu[4];\n\tint i,j;\n\tcin.getline(bei0,102,'\\n');\n\tint n;\n\tn=strlen(bei0);\t\t//?????????\n\tfor(i=0;i<=n-1;i++)\n\t\tbei[i+1]=bei0[i]-'0';\t//??char???????????int?,?bei[1]???\n\t\n\tif(n==1)\n\t\tcout<<\"0\"< 2)\n\t{\n\t L = l - 2;\n\t b[0] = (100 * (a[0] - '0') + 10 * (a[1] - '0') + a[2] - '0') / 13;\n\t r = (100 * (a[0] - '0') + 10 * (a[1] - '0') + a[2] - '0') % 13;\n\t for (i = 1; i < L; i++)\n\t\t{\n\t\t b[i] = (10 * r + a[i + 2] - '0') / 13;\n\t r = (10 * r + a[i + 2] - '0') % 13;\n\t\t}\n\t for (i = 0; i < L; i++)\n\t cout << b[i];\n\t cout << endl << r;\n\t}\n return 0;\n}"} +{"label": "96", "index": "47633", "code": "/************************************\n5.cpp\n???Nov 2, 2011\n??(12-11) ??13\n?? 1100012886\n************************************/\n\nint main()\n{\n\tint i = 0, dividend = 0;\n\tchar n[100];\n\tcin >> n;\n\tdo\n\t{\n\t\tdividend = dividend * 10 + n[i] - '0';\n\t\ti++;\n\t} while ((dividend < 13) && (n[i] != '\\0')); //????????\n\twhile (n[i] != '\\0')\n\t{\n\t\tcout << dividend / 13; //????i+1?????\n\t\tdividend = (dividend % 13) * 10 + n[i] - '0'; //?????\n\t\ti++;\n\t}\n\tcout << dividend / 13 << endl; //???????\n\tcout << dividend % 13 << endl; //????????????\n\treturn 0;\n}\n"} +{"label": "96", "index": "47634", "code": "int main(){\n\tchar str[1100],stre[1100];\n\tscanf(\"%s\", str);\n\tint a=strlen(str),l=(str[0]-'0'),t,i,j,x=0,y;\n\tif(((a==2)&&(str[1]-'0')<3&&(str[0]-'0')==1)||(a==1)){\n\t\tprintf(\"0\");\n\t\tprintf(\"\\n%s\",str);\n\t}\n\telse if((a>2)||(a==2&&(str[0]-'0')*10+(str[1]-'0')>=13)){\n\tfor(i=0;i=13)\n {\n a=((c[0]-'0')*10+c[1]-'0')%13;\n b=((c[0]-'0')*10+c[1]-'0')/13;\n v[0]=b+'0';\n for(i=2;c[i]!='\\0';i++)\n {\n d=(a*10+c[i]-'0')%13;\n b=(a*10+c[i]-'0')/13;\n a=d;\n v[i-1]=b+'0';\n }\n v[i-1]='\\0';\n printf(\"%s\\n\",v);\n printf(\"%d\\n\",a);\n }\n else\n if(c[3]=='\\0')\n {\n d=((c[0]-'0')*100+(c[1]-'0')*10+c[2]-'0')/13;\n e=((c[0]-'0')*100+(c[1]-'0')*10+c[2]-'0')%13;\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n }\n else\n {\n d=((c[0]-'0')*100+(c[1]-'0')*10+c[2]-'0')/13;\n e=((c[0]-'0')*100+(c[1]-'0')*10+c[2]-'0')%13;\n for(i=3;c[i]!='\\0';i++)\n {\n v[i-3]=d+'0';\n c[i-2]=e+'0';\n e=((c[i-2]-'0')*10+c[i]-'0')%13;\n d=((c[i-2]-'0')*10+c[i]-'0')/13;\n c[i-1]=e+'0';\n v[i-2]=d+'0';\n }\n v[i-2]='\\0';\n printf(\"%s\\n\",v);\n printf(\"%d\\n\",e);\n }\n getchar();\n getchar();\n }"} +{"label": "96", "index": "47636", "code": "main()\n{\n char a[1000],d[100];\n int c[100],b[100],x=0,i,j,l;\n scanf(\"%s\",a);\n for(i=0;a[i]!='\\0';i++) \n {\n c[i]=a[i]-'0'; \n }//????? ??c?0??c?i\u00971?\n if(i<=1)\n {\n d[0]='0';\n d[1]='\\0';\n x=c[0];\n } \n else if(i==2&&c[0]==1&&c[1]<3)\n {\n d[0]='0';\n d[1]='\\0';\n x=c[0]*10+c[1];\n }\n else \n {\n if(c[0]==1&&c[1]<3)\n {\n b[0]=(c[0]*100+c[1]*10+c[2])/13;//?????13 \n x=(c[0]*100+c[1]*10+c[2])%13;//???? \n j=3;\n }\n else\n {\n b[0]=(c[0]*10+c[1])/13;//?????13 \n x=(c[0]*10+c[1])%13;//???? \n j=2;\n }\n int k=0;\n for(;j> num;\n\tl = strlen(num);\n\tfor (i = 0;i <= l-1;i++)\n\t{\n\t\tni = num[i] - '0';\n\t\tys = ys * 10 + ni;\n\t\tsh = ys / 13;\n\t\tch = (char) (sh + 48);\n\t\tans[i] = ch;\n\t\tys = ys - sh * 13;\n\t}\n\tflag = 0;\n\tfor (i = 0;i <= l-1;i++)\n\t{\t\n\t\tif (ans[i] != '0')\n\t\t\tflag = 1;\n\t\tif (flag == 1) \n\t\t\tcout << ans[i] ;\n\t}\n\tif (flag == 0) \n\t\tcout << '0'; \n\tcout << endl;\n\tcout << ys;\n return 0;\n}"} +{"label": "96", "index": "47638", "code": "\nmain()\n{\n char N[101];\n int n[100], dvd[100], left=0, len;\n memset(dvd, 0, 100*sizeof(int));\n int i, temp;\n gets(N);\n len=strlen(N);\n for (i=0; i>number;\n\tchar shang[110]={0};\n\tint yushu=0;\n\tif(strlen(number)>=2)//????????\n\t{\n\tfor(int i=0;i2)\n\t{\n\t\tif(len%2)\n\t\t\tcout<l)\n\t{\n\t\tprintf(\"0\\n\");\n\t\tprintf(\"%d\\n\",g);\n\t}\n\telse\n\t{\n\t\tfor (i=j;i<=l;i++)\n\t\t\tprintf(\"%d\",a[i]);\n\t printf(\"\\n\");\n\t\tprintf(\"%d\\n\",g);\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47646", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint i,temp,lengtha,lengthb;\n\tscanf(\"%s\",a);\n\tlengtha=strlen(a);\n\tfor(i=0;i<100;i++)\n\t{\n\t\tb[i]='\\0';\n\t}\n\tif(lengtha>2)\n\t{\n\t\tif(10*(a[0]-'0')+a[1]-'0'>=13)\n\t\t{\n\t\t\ttemp=10*(a[0]-'0')+a[1]-'0';\n\t\t\tfor(i=0;i=13)\n\t\t{\n\t\t\tprintf(\"%d\\n\",(10*(a[0]-'0')+a[1]-'0')/13);\n\t\t\tprintf(\"%d\",(10*(a[0]-'0')+a[1]-'0')%13);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"0\\n\");\n\t\t\tprintf(\"%d\",10*(a[0]-'0')+a[1]-'0');\n\t\t}\n\t}\nreturn 0;\n}\n"} +{"label": "96", "index": "47647", "code": "main()\n{\n char a[100];\n int c=0,l=0,i=0,j=0,d=0;\n int b[100]={0},f[100]={0};\n scanf(\"%s\",a);\n l=strlen(a);\n //printf(\"%d\",l);\n for(i=0;i2)\n {\n for(i=1;i<=l-1;i++)\n\t\t {\n\t\t \t c=b[i];\n\t\t \t d=c+d*10;\n\t\t \t if(d>=13)\n\t\t \t {\n\t\t \t \t f[i-1]=d/13; \n\t\t \t d=d%13; \n\t\t\t } \n\t\t\t else \n\t\t\t f[i-1]=0;\n\t\t\t if(i==l-1) \n\t\t\t j=d; \n\t\t }\n\t\t if (f[0]!=0)\n printf(\"%d\",f[0]);\n for (i=1;i= 1; i-- )\n\t\t{\n\t\t\tif ( b[i] < 10 )\n\t\t\t{\n\t\t\t\tresult[i] = b[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresult[i] = b[i] % 10;\n\t\t\t\tresult[i - 1] = result[i - 1] + b[i] / 10;\n\t\t\t}\n\t\t}\n\t\tif ( result[1] != 0 )\n\t\t\tcout << result[1];\n\t\tfor ( i = 2; i <= k; i++ )\n\t\t{\n\t\t\tcout << result[i];\n\t\t}\n\t\tcout << endl << remainder;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47649", "code": "//****************************************\n//*??: ??13 ** \n//*??: ??? \t\t **\n//*???2011 11 08 **\n//****************************************\nint main()\n{\n\tchar number[101];\n\tint a[101], lenth;\n\tint b[101] = {0} ;\n\tint i , j , s;\n\ts = 0;\n\tcin >> number;\n\tlenth = strlen(number);\n\tfor( i = 0 ; i <= lenth - 1 ; i ++)\n\t\ta[i] = number[i] - '0';\n\n\tfor( i = 0 ; i <= lenth - 1 ; i ++)\n\t{\n\t\ts = s * 10 + (a[i] % 13);\n\t\tb[i] = s / 13 ; \n\t\ts = s % 13;\n\t}\n\tfor( i = 0 ; i <= lenth - 1 ; i ++)\n\t\tif(b[i] != 0 ) break;\n \n\tif( i >= lenth)\n\t\tcout << 0;\n else\n\t{\n\t\tfor( j = i ; j <= lenth - 1 ; j ++)\n\t\tcout << b[j];\n\t}\n\t\tcout << endl;\n\t\tcout << s << endl;\n\t\n\t\treturn 0;\n}"} +{"label": "96", "index": "47650", "code": "/*\n * yuesefuwenti.cpp\n *\n * Created on: 2012-12-8\n * Author: wenjun\n */\nint main ()\n{\n\tchar a[110];\n\tint *p;\n\tint b[110],x,len;\n\twhile(cin>>a){\n\t\tlen=strlen(a);\n\tfor(int i=0;i=3)\n {\n if(((a[0]-'0')*10+a[1]-'0')>=13)\n {\n b[0]=((a[0]-'0')*10+a[1]-'0')/13+'0';\n c=((a[0]-'0')*10+a[1]-'0')%13;\n for(i=1;i> a;\n\tint i, j, k, l = strlen(a), r;\n\tif (l == 1)\n\t{\n\t\tcout << 0 << endl << a[0];\n\t\treturn 0;\n\t}\n\tfor (i = 0; i < l - 1; i++)\n\t{\n\t\tnum = 0, r = 0;\n\t\tmemset(c, 0, sizeof(c[0]) * 3);\n\t\tif (i != 0)\n\t\t\tc[0] = a[i - 1];\n\t\telse\n\t\t\tc[0] = '0';\n\t\tc[1] = a[i];\n\t\tc[2] = a[i + 1];\n\t\tnum = atoi(c);\n\t\tb[i + 1] = num / 13 + '0';\n\t\tr = num - (b[i + 1] - '0') * 13;\n\t\tif (r > 9)\n\t\t{\n\t\t\ta[i] = '1';\n\t\t\ta[i + 1] = r % 10 + '0';\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i] = '0';\n\t\t\ta[i + 1] = r + '0';\n\t\t}\n\t}\n\tint p = 0;\n\tfor(i = 1; i < l; i++)\n\t{\n\t\tif (b[i] != '0')\n\t\t\tp = 1;\n\t\tif (p == 1)\n\t\t\tcout << b[i];\n\t}\n\tif (p == 0)\n\t\tcout << 0;\n\tcout << endl << r;\n\treturn 0;\n}"} +{"label": "96", "index": "47654", "code": "int main()\n{\n\tint a[101],num,i,temp=0;\n\tchar c;\n\tfor(i=0;i<=100;i++)\n\t{\n\t\tscanf(\"%c\",&c);\n\t\tif(c=='\\n')\n\t\t{\n\t\t\tnum=i;\n\t\t\tbreak;\n\t\t}\n\t\ta[i]=c-'0';\n\t}\n\tif(num>2)\n\t{\n\t\tfor(i=0;i> a;\n\tint t = a[0] - '0', c = 0, d = 0;\n\tfor (int i = 1; a[i] != 0; i++)\n\t{\n\t\tans[i] = (10 * t + (a[i] - '0')) / 13;\n\t\tt = (10 * t + a[i] - '0') % 13;\n\t\tc++;\n\t}\n\tif (ans[1] == 0 && ans[2] != 0)\n\t{\n\t\tfor (int i = 2;i <= c; i++)\n\t\t{\n\t\t\tcout << ans[i];\n\t\t}\n\t\tcout << endl;\n\t}\n\telse if (ans[1] == 0 && ans[2] == 0) cout << 0 << endl;\n\telse \n\t{\n\t\tfor (int i = 1;i <= c; i++)\n\t\t{\n\t\t\tcout << ans[i];\n\t\t}\n\t\tcout << endl;\n\t}\n\tcout << t << endl;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47656", "code": "main()\n{\n char a[100];\n int i,count=0,shang[100],yu=0,q=0,h=0,t[100];\n for(i=0;i<100;i++)\n {\n a[i]='\\0';\n shang[i]=0;\n t[i]=0;\n }\n scanf(\"%s\",a);\n for(i=0;i<100;i++)\n {\n if(a[i]=='\\0')break;\n count++;\n }\n for(i=0;i=10)\n { n=n-10;\n printf(\"%c\\n1%c\",m+'0',n+'0');}\n else\n printf(\"%c\\n%c\",m+'0',n+'0');}\n else\n \n \n {\n for(i=1,j=0;i'9')\n {b[z-1]='\\0';\n b[z+1]='\\0';}\n if(b[z-2]<'0' || b[z-2]>'9')\n b[z-2]='\\0';\n if(b[0]=='0')\n {for(i=0;i=13)\n {\n yushu2=yushu;\n yushu=yushu%13;\n shang[i]=yushu2/13; \n }\n else\n {\n shang[i]=0; \n yushu=yushu;\n } \n }\n \n if(shang[0]==0&&shang[1]!=0)\n {\n for(i=1;i 1; i--)\n\t\t{\n\t\t\ta[i-1] += a[i] / 10;\n\t\t\ta[i] = a[i] % 10;\n\t\t}\n\t\tfor (int i = 1; i < n; i++)\n\t\t{\n\t\t\tif (a[1] == 0 && i == 1)\n\t\t\t\tcontinue;\n\t\t\tcout << a[i];\n\t\t}\n\t\tcout << endl;\n\t\tcout << b << endl;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "96", "index": "47661", "code": "//***********************************************\n//???:??13 *\n//?????? *\n//??11?14? *\n//***********************************************\nint main()\n{\n int a[100],i,r=0,len;\n char c[100];\n cin.getline(c,100);\n len=strlen(c);\n for(i=0;i h) cout << 0;\n\tcout << endl;\n\tcout << num << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47664", "code": "\nint main(void)\n{\n int i, j=0 ,k=0 ,n,t=0, ok=0;\n char str[MAX], output[MAX];\n gets(str);\n n = strlen(str);\n\n\n while ((k13)\n {\n ok=1;\n // putchar(output[j-1]);\n }\n if(ok)\n { output[j]=('0'+t/13);\n //printf(\"%d\\n\",t/13);\n t = t%13;\n j++;\n }\n\n\n //printf(\"%d\\n\",(str[n]-'0')*10);\n\n //printf(\"%d\\n\",t);\n }\n output[j]='\\0';\n if(ok)\n puts(output);\n else\n printf(\"0\\n\");\n printf(\"%d\",t);\n return 0;\n}\n"} +{"label": "96", "index": "47665", "code": "int main()\n{\n\tchar a[max],shang[max];\n\tint yu,i,j,n;\n\tgets(a);\n\tn=strlen(a);\n\tif(n==1)\n\t{\n\t\tprintf(\"0\\n\");\n\t\tprintf(\"%d\",a[0]-'0');\n\t\treturn 0;\n\t}\n\tif(n==2)\n\t{\n\t\tif(((a[0]-'0')*10+a[1]-'0')<13)\n\t\t{\n\t\t\tprintf(\"0\\n\");\n\t\t\tprintf(\"%s\",a);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%d\\n\",((a[0]-'0')*10+a[1]-'0')/13);\n\t\t\tprintf(\"%d\",((a[0]-'0')*10+a[1]-'0')%13);\n\t\t}\n\t}\n\telse\n\t{\n\t\tyu=(a[0]-'0')*10+a[1]-'0';\n\t\tif(yu<13)\n\t\t{\n\t\t yu=yu*10+a[2]-'0';\n\t\t shang[0]=yu/13;\n\t\t yu=yu%13;\n\t\tfor(i=3;i13)\n\t\t{\n\t\t\tshang[0]=yu/13;\n\t\t\tyu=yu%13;\n\t\t\tfor(i=2;i= 13)\n\t\t{\n\t\t\tyushu = (b[1] * 10 + b[2]) % 13;\n\t\t\tc[2] = (b[1] * 10 + b[2] - yushu) / 13;\n\t\t\tfor (i = 3; i <= lenA; i++)\n\t\t\t{\n\t\t\t\tpro = yushu * 10 +b[i];\n\t\t\t\tyushu = pro % 13;\n\t\t\t\tc[i] = (pro - yushu) / 13;\n\t\t\t}\n\t\t\tfor (k = 2; k <= lenA; k++)\n\t\t\t{\n\t\t\t\tcout << c[k];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\t\n\t\telse\n\t\t{\n\t\t\tyushu = (b[1] * 100 + b[2] * 10 + b[3]) % 13;\n\t\t\tc[3] = (b[1] * 100 + b[2] * 10 + b[3] - yushu) / 13;\n\t\t\tfor (i = 4; i <= lenA; i++)\n\t\t\t{\n\t\t\t\tpro = yushu * 10 +b[i];\n\t\t\t\tyushu = pro % 13;\n\t\t\t\tc[i] = (pro - yushu) / 13;\n\t\t\t}\n\t\t\tfor (k = 3; k <= lenA; k++)\n\t\t\t{\n\t\t\t\tcout << c[k];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\n\t\tcout << yushu << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47667", "code": "int main ()\n{\n\tchar ch[100] = {0};\n\tchar shang[100] = {0};\n\tcin >> ch;\n\tint now = 0;\n\tfor ( int i = 0, j = 0; i < strlen(ch); i ++, j ++ )\n\t{\n\t\tnow = now * 10 + ch[i] - '0';\n\t\tif ( j == 0 && now/13 == 0 ) j--;\n\t\telse shang[j] = now/13 + '0';\n\t\tnow = now%13;\n\t}\n\tif ( shang[0] == 0 ) cout << \"0\" << endl;\n\telse cout << shang << endl;\n\tcout << now;\n\treturn 0;\n}"} +{"label": "96", "index": "47668", "code": "int main()\n{\n int i,j,k=0,l,b[1000],d[1000],e[1000],m,n;\n char a[1000],c[1000];\n scanf(\"%s\",a);\n l=strlen(a);\n if(l==1)\n printf(\"%d\\n%d\",0,a[0]-'0');\n else if(l==2)\n {\n m=a[0]-'0';\n n=a[1]-'0';\n if(m*10+n<13)\n printf(\"%d\\n%d\",0,m*10+n);\n else\n printf(\"%d\\n%d\",(m*10+n)/13,(m*10+n)%13);\n }\n else\n {\n for(i=0;i>a;\n\tk=strlen(a);\n\tfor(i=0;i=0)&&(c[p]<10))\n\t\t{\n\t\t\tcout<=13) for(i=0;i=13)\n\t{\n c=a[0]-'0';\n\t\tb=(char *)malloc((n-1)*sizeof(char));\n for(i=0;i2)\n {\n if((a[0]-'0')*10+(a[1]-'0')>=13)\n {\n b[0]=((a[0]-'0')*10+(a[1]-'0'))/13+'0';\n c=(a[0]-'0')*10+(a[1]-'0');\n for(i=1;i<=l-2;i++)\n {\n d=(b[i-1]-'0')*13;\n c=(c-d)*10+(a[i+1]-'0');\n b[i]=c/13+'0';\n }\n b[l-1]='\\0';\n f=c-(b[l-2]-'0')*13; \n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n }\n else\n {\n b[0]=((a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0'))/13+'0';\n c=(a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0');\n for(i=1;i<=l-3;i++)\n {\n d=(b[i-1]-'0')*13;\n c=(c-d)*10+(a[i+2]-'0');\n b[i]=c/13+'0'; \n }\n b[l-2]='\\0';\n f=c-(b[l-3]-'0')*13;\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n }\n }\n else {if(l==2)\n {\n b[0]=((a[0]-'0')*10+(a[1]-'0'))/13+'0';\n b[1]='\\0';\n f=((a[0]-'0')*10+(a[1]-'0'))%13;\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n \n }\n else \n {\n b[0]=(a[0]-'0')/13+'0';\n b[1]='\\0';\n f=a[0]-'0';\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n }\n } \n getchar();\n getchar();\n}\n\n"} +{"label": "96", "index": "47677", "code": "int main()\n{\nchar n[100];\nint a,b[100],c[99],i,j,p,q;\nscanf(\"%s\",n);\na=strlen(n);\nfor(i=0;i=3))\n {\n for(i=2;i<=n-1;i++)\n {\n printf(\"%d\",b[i]);\n }\n }\n else\n {\n for(i=1;i<=n-1;i++)\n {\n printf(\"%d\",b[i]);\n }\n }\n printf(\"\\n%d\\n\",y);\n}\n"} +{"label": "96", "index": "47679", "code": "//????????13\n\nconst int chushu=13; \nint main(void)\n {\n char n[101],answer[100];\n\t int a=1,b=1,c=1,i=0;\n scanf(\"%s\",n);\n\t \n\t if(strlen(n)<2)\n\t {\n\t\tprintf(\"0\\n%c\",n[0]);\n\t }\n\t else if(strlen(n)<3)\n\t {\n c=10*(n[0]-'0')+(n[1]-'0');\n\t\t printf(\"%d\\n%d\",c/chushu,c%chushu);\n\t }\n\t else\n\t {\n\t a=(n[0]-'0');\n a=a*10+(n[1]-'0');\n\t\t if(a> a;\n\tn = strlen(a);\n\tfor ( i = 0; i < n; i++)\n\t\tb[i] = a[i] - '0';\n\tfor ( i = 1; i < n; i++)\n\t{\n\t\ts[i] = (10 * b[i - 1] + b[i]) / 13; \n\t\tb[i] = (10 * b[i - 1] + b[i]) % 13;\n\t}\n\tif (s[1] != 0)\n\t{\n\t\tcout << s[1];\n\t\tflag = 1;\n\t}\n\tfor ( i = 2; i < n; i++)\n\t{\n\t\tcout << s[i];\n\t\tflag = 1;\n\t}\n\tif (flag == 0)\n\t\tcout << 0;\n\tcout << endl;\n\tcout << b[n - 1] << endl; \n\treturn 0;\n}\t"} +{"label": "96", "index": "47683", "code": "int main()\n{\n\tchar a[101];\n\tint b[100];\n\t\n\tint i,x,s;\n\tscanf(\"%s\",a);\n\ts=strlen(a);\nif(((s==2)&&(a[0]>48))||(s>2))\n{\n\tif((a[0]==49)&&(a[1]<52)&&(s>2))\n\t{\n\t\tx=(a[0]-48)*100+(a[1]-48)*10+a[2]-48;\n\t\tb[0]=x/13;\n x=x%13;\n for(i=3;a[i]!='\\0';i++)\n\t\t{\n\t\t\tx=10*x+(a[i]-48);\n\t\t\t\n\t\t\tb[i-2]=x/13;\n x=x%13;\n\t\t}\n\t\tfor(i=0;i12)\n\t{\n\t\tx=(a[0]-48)*10+a[1]-48;\n\t\t\n\t\tb[0]=x/13;\n x=x%13;\n\t\tfor(i=2;i=0;i--)\n {\n if(result[i]!=-1)\n {\n large=i;\n break;\n }\n }\n for(i=small;i<=large;i++)\n { \n printf(\"%d\",result[i]);\n not_zero=1;\n }\n if(not_zero==1)\n {\n printf(\"\\n\");\n printf(\"%d\\n\",num[length]/10);\n }\n else\n {\n printf(\"0\\n\");\n printf(\"%s\",c);\n }\n}"} +{"label": "96", "index": "47686", "code": "main()\n{\n char n[102],r[102];\n int b[102],m,i;\n scanf(\"%s\",n);\n if(n[1]=='\\0') printf(\"0\\n%s\",n);\n\n\n else\n {\n if( ((n[0]-'0')*10+n[1]-'0'<13)&&n[2]=='\\0' )\n {printf(\"0\\n%s\",n);}\n\n else\n {\n\n b[0]=10*(n[0]-'0')+n[1]-'0';\n\n for(i=0;i<=strlen(n)-2;i++)\n {\n r[i]=(b[i]/13)+'0';\n m=b[i]%13;\n b[i+1]=n[i+2]+m*10-'0';\n }\n\n r[strlen(n)-1]='\\0';\n\n if(r[0]=='0')\n {\n for(i=1;i<=strlen(n)-2;i++)\n {\n printf(\"%c\",r[i]);\n }\n printf(\"\\n%d\",m); \n }\n else\n {\n printf(\"%s\\n\",r);\n printf(\"%d\",m);\n }\n }\n}\n\ngetchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();\n}"} +{"label": "96", "index": "47687", "code": "int main()\n{\n char s[101];\n\tint i,k;\n\tgets(s);\n\tk=(int)(s[0]-'0');\n\tfor(i=1;i> a;\n\tfor(int h = 0; h < 100; h++)\n\t{\n\t\tif((a[h] <= '9') && (a[h] >= '0'))\n\t\t{\n\t\t\tweishu++; //????\n\t\t}\n\t}\n\tshenyu = weishu;\n\tif(weishu < 8) //???int???????????~\n\t{\n\t\tbeishu = pow(10, (shenyu - 1)); \n\t\tfor(int i = 0; i < weishu; i++)\n\t\t{\n\t\t\tsum += (a[i] - '0') * beishu;\n\t\t\tbeishu = beishu / 10;\n\t\t\tshenyu--;\n\t\t}\n\t\tcout << sum / 13 << endl << sum % 13;\n\t}\n\telse //??int??????????\n\t{\n\t\tfor(int i = 0; i < 8; i++)\n\t\t{\n\t\t\tsum += (a[i] - '0') * beishu;\n\t\t\tbeishu = beishu / 10;\n\t\t\tshenyu--;\n\t\t}\n\t\tcout << sum / 13;\n\t\tyushu = sum % 13;\n\t\tfor(int j = 8; j < 96; j += 8)\n\t\t{\n\t\t\tif(shenyu < 9)\t\t\t\t\t\t //?????????\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbeishu = 1E7;\n\t\t\tsum = yushu * 1E8;\n\t\t\tfor(int l = 0; l < 8; l++)\n\t\t\t{\n\t\t\t\tsum += (a[l + j] - '0') * beishu;\n\t\t\t\tbeishu = beishu / 10;\n\t\t\t\tshenyu--;\n\t\t\t\tif((l == 0) && (sum / 1E7 < 13)) //?????????????0\n\t\t\t\t{\n\t\t\t\t\tcout << \"0\";\n\t\t\t\t}\n\t\t\t\tif((l == 1) && (sum / 1E6 < 13))\n\t\t\t\t{\n\t\t\t\t\tcout << \"0\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tcout << sum / 13;\n\t\t\tyushu = sum % 13;\n\t\t}\n\t\tbeishu = pow (10, shenyu - 1); \n\t\tsum = yushu * pow(10, shenyu);\n\t\tfor(shenyu; shenyu >= 1; shenyu--) //???????\n\t\t{ \n\t\t\tsum += (a[weishu - (int)shenyu] - '0') * beishu;\n\t\t\tbeishu = beishu / 10;\n\t\t\tif((weishu - (int)shenyu == 0) && (sum / 1E7 < 13))\n\t\t\t{\n\t\t\t\tcout << \"0\";\n\t\t\t}\n\t\t\tif((weishu - (int)shenyu == 1) && (sum / 1E6 < 13))\n\t\t\t{\n\t\t\t\tcout << \"0\";\n\t\t\t}\n\t\t}\n\t\tcout << sum / 13 << endl;\n\t\tyushu = sum % 13;\n\t\tcout << yushu;\n\t}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47690", "code": "//************************************\n//* ??13 *\n//* ?????? *\n//* ?????2011?12?17? *\n//************************************\n\n\nint main()\n{\n\tint yu, i, j, n, p;\n\tchar num[200], shang[200];\n\tcin.get(num, 200);//?????\n\tn = strlen(num);//????????\n\tyu = 0;//????\n\tp = 200;//?????????0???\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tshang[i] = (yu * 10 + num[i] - '0') / 13 + '0';\n\t\tyu = (yu * 10 + num[i] - '0') % 13;\n\t}//??????????\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tif(shang[i] != '0')\n\t\t{\n\t\t\tp = i;\n\t\t\tbreak;\n\t\t}\n\t}//???????????0???\n\tif(p == 200)\n\t\tcout << \"0\";//???0,???0\n\telse\n\t{\n\t\tfor(j = i; j < n; j ++)\n\t\t\tcout << shang[j];\n\t}\n\tcout << endl << yu << endl;//??????\n\treturn 0;\n}\n"} +{"label": "96", "index": "47691", "code": "main()\n{\n int a[100],b[100],i,j=0,k,l,S,p,q;\n char str1[100];\n scanf(\"%s\",str1);\n l=strlen(str1);\n \n for(i=0;i<=l-1;i++)\n {\n a[i]=str1[i]-'0'; \n }\n p=a[0];\n if(l>=2) \n{\n for(i=0;i<=l-2;i++)\n {\n S=p*10+a[i+1];\n p=S/13;\n q=S%13;\n b[j]=S/13;\n j++;\n p=q;\n }\n if(b[0]==0&&l>2)\n { \n for(k=1;k<=j-1;k++)\n printf(\"%d\",b[k]);\n printf(\"\\n\");\n printf(\"%d\\n\",q); \n }\n if(b[0]==0&&l==2)\n {\n printf(\"%d\\n\",b[0]);\n printf(\"%d\\n\",q); \n }\n if(b[0]!=0)\n { \n for(k=0;k<=j-1;k++) \n printf(\"%d\",b[k]);\n printf(\"\\n\");\n printf(\"%d\\n\",q);\n }\n}\n if(l<2)\n {\n printf(\"0\\n\");\n printf(\"%d\\n\",a[0]); \n }\n \n \n}\n"} +{"label": "96", "index": "47692", "code": "int main(){\n\tchar s[110];\n\tint sz[110],ys,i,l,szsh[110];\n\tmemset(sz,0,sizeof(sz));\n\t\n\tscanf(\"%s\",s);\n\tl=strlen(s);\n\tfor(i=0;i='0'&&c[i]<='9')\n {\n printf(\"%c\",c[i]);\n i++;\n }\n }\n else if (c[0]=='0'&&c[1]=='0')\n {\n i=2;\n while (c[i]>='0'&&c[i]<='9')\n {\n printf(\"%c\",c[i]);\n i++;\n }\n }\n else\n {\n i=0;\n while (c[i]>='0'&&c[i]<='9')\n {\n printf(\"%c\",c[i]);\n i++;\n }\n }\n printf(\"\\n%d\",e);\n }\n}"} +{"label": "96", "index": "47694", "code": "void qu(char *);\nint main()\n{\nchar a[110],b[110];\ngets(a);\nint a1,i,yu=0;\na1=strlen(a);\nfor(i=0;i>in;\n if(strlen(in)==1 || (strlen(in)==2&&in[0]=='1'&&in[1]<'3')) cout<<'0'< 2)\n\t\t\t\tcout << s[0] ;\n\t\t}\n\t\tfor(i = 1 ; i < j - 1 ; i++)\n\t\t{\n\t\t\tif(i == j - 2)\n\t\t\t\tcout << s[i] << endl ;\n\t\t\telse\n\t\t\t\tcout << s[i] ;\n\t\t}\n\t\tcout << y << endl ;\n\t}\n\t\n\treturn 0 ;\n}\n\n\n"} +{"label": "96", "index": "47700", "code": "int main()\n{\n\tchar N[101];\n\tcin.getline(N, 101);\n\tint l = strlen(N);\n\tint quo[101], num[101], i, j = 0, r = 0;\n\tfor(i = 0; i < l; i++)\n\t\tnum[i] = N[i] - '0';\n\tfor(i = 0; i < l; i++)\n\t{\n\t\tquo[i] = (r * 10 + num[i]) / 13;\n\t\tr = (r * 10 + num[i]) % 13;\n\t}\n\tint t = 0, temp;\n\twhile(quo[t] == 0) \n\t{\n\t\tt++;\n\t\ttemp = t;\n\t}\n\tif(temp == l) cout << \"0\";\n\telse\n\t{\n\t\tfor(; t < l; t++) cout << quo[t];\n\t\t\n\t}\n\tcout << endl;\n\tcout << r << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47701", "code": "int main()\n{\n\tchar a[100];\n\tint i, j, k, s, c[100] = {0}, b[100] = {0}, x = 0, t, u;\n\tcin >> a;\n\ts = strlen(a);\n\tfor ( i = 0; a[i] != '\\0'; i++ )\n\t{\n\t\tc[i] = a[i] - '0';\n\t}\n for ( j = 0; j <= s - 1; j++ )\n\t{\n\t\tx = x * 10 + c[j];\n t = x / 13;\n\t\tb[j] = t;\n\t\tx = x % 13;\n\t}\n\ti = 0;\n\twhile ( b[i] == 0 )\n\t{\n\t\tif ((b[2] == 0) && ( b[1] == 0))\n\t\t{\n\t\t\ti = 0;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t\ti++;\n\t}\n\tfor ( k = i; k <= s - 1; k++)\n\t\tif ( i == 0)\n\t\t{\n\t\t\tcout << 0;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t\tcout << b[k];\n\tcout<> a;\n\t//memset(b,0,sizeof(b) );\n\tn = strlen(a);\n\tif (n == 1) {cout << '0' << endl;cout << a[0];return 0;}\n\t\n\tif (n>=2){\n\tfor ( i = 0; i < n; i ++)\n\t{\n\t\tb[i] = a[i] - '0';\n\t}\n\tif (n == 2 && ( b[0]*10 + b[1] ) < 13) {sum = b[0]*10+b[1];cout << '0' < 12) {c[j] = sum / 13;j ++ ;sum = sum % 13;}\n\tif (n > 1){\n\tfor ( i = 2; i < n; i ++)\n\t{\n\t\tsum = sum * 10 + b[i];\n\t\t\n\t\t\tc[j] = sum / 13;\n\t\t\tsum = sum % 13;\n\t\t\tj ++;\n\t\t\t//cout <>a;\n\t\tif(strlen(a)==1)cout<<0<len+1)\n\t\tcout<<'0';\n\n\tcout<b[j])\n {\n q[j]=k+'0';\n b[j]=b[j]-13*k;\n goto label;\n }\n }\n label:\n b[j+1]=10*b[j]+a[j+1]-'0';\n }\n r=b[j-1];\n \n if (q[0]=='0' && q[1]=='\\0') printf(\"0\\n\");\n if (q[0]=='0' && q[1]=='0' && q[2]=='\\0') printf(\"0\\n\");\n if (q[0]=='0' && q[1]=='0' && q[2]!='\\0') \n {\n j=2;\n while(q[j]!='\\0') \n {\n printf(\"%c\",q[j]);\n j++;\n }\n printf(\"\\n\");\n }\n if (q[0]=='0' && q[1]!='0' && q[1]!='\\0') \n {\n j=1;\n while(q[j]!='\\0') \n {\n printf(\"%c\",q[j]);\n j++;\n }\n printf(\"\\n\");\n }\n if(q[0]!='0')\n {\n j=0;\n while(q[j]!='\\0')\n {\n printf(\"%c\",q[j]);\n j++;\n }\n printf(\"\\n\");\n }\n \n printf(\"%d\\n\",r); \n \n}"} +{"label": "96", "index": "47706", "code": "int main()\n{\n\tchar num[101], result[100]; \n\tint r = 0, i, len, j, temp; \n\tcin.getline(num,100);\n\tlen = strlen(num);\n\tfor (i = 0; i < len; i++)\n\t{\n\t\ttemp = (int)num[i] - 48;\n\t\tresult[i] = ((r * 10 + temp) / 13) + 48;\n\t\tr = (r * 10 + temp) % 13;\n\t}\n\tfor (j = 0; j < len; j++)\n\t{\n\t\tif (result[j] != '0')\n\t\t\tbreak;\n\t}\n\tif (j == len)\n\t{\n\t\tcout << 0 <> num; //????\n\tlen = strlen(num);\n\tif (len == 1)\n\t\tcout << '0' << '\\n' << num[0];\n\telse\n\t{\n\t\ta = ((num[0] - '0') * 10 + (num[1] - '0')) / 13;\n\t\tb = ((num[0] - '0') * 10 + (num[1] - '0')) % 13;\n\t\tif (a != 0 || len == 2)\n\t\t\tcout << a;\n\t\tfor (int i = 2; num[i] != '\\0'; i++)\n\t\t{\n\t\t\ta = (b * 10 + (num[i] - '0')) / 13;\n\t\t\tb = (b * 10 + (num[i] - '0')) % 13;\n\t\t\tcout << a;\n\t\t}\n\t\tcout << '\\n' << b << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47709", "code": "char c[200];//??????\nint n[200];//??????\nint main()\n{\n\tint number,len,i;\n\twhile(cin>>c)\n\t{\n\t\tlen=strlen(c);\n\t\tfor(i=1;i<=len;i++) n[i]=c[i-1]-'0';\n\t\tif(len==1) {cout<<\"0\"<='0'&&c[i]<='9')\n {\n printf(\"%c\",c[i]);\n i++;\n }\n }\n else if (c[0]=='0'&&c[1]=='0')\n {\n i=2;\n while (c[i]>='0'&&c[i]<='9')\n {\n printf(\"%c\",c[i]);\n i++;\n }\n }\n else\n {\n i=0;\n while (c[i]>='0'&&c[i]<='9')\n {\n printf(\"%c\",c[i]);\n i++;\n }\n }\n printf(\"\\n%d\",e);\n }\n getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();\n}"} +{"label": "96", "index": "47712", "code": "int main()\n{\nchar a[100];\nint b[99],d[99];\nint m,i,n=0;\nscanf(\"%s\",a);\nm=strlen(a);\nif(m==1)\n{printf(\"0\\n%d\",(a[0]-'0'));}\nelse \nif(m==2)\n{printf(\"%d\\n%d\",(10*(a[0]-'0')+(a[1]-'0')-(10*(a[0]-'0')+(a[1]-'0'))%13)/13,(10*(a[0]-'0')+(a[1]-'0'))%13);}\nelse\n{d[0]=((a[0]-'0')*10+(a[1]-'0'))%13;\nb[0]=((a[0]-'0')*10+(a[1]-'0')-d[0])/13;\nfor(i=1;i<=m-2;i++)\n{d[i]=(d[i-1]*10+(a[i+1]-'0'))%13;\nb[i]=(d[i-1]*10+(a[i+1]-'0')-d[i])/13;}\nif(b[0]!=0)\nprintf(\"%d\",b[0]);\nfor(i=1;i<=m-3;i++)\nprintf(\"%d\",b[i]);\nprintf(\"%d\\n\",b[m-2]);\nprintf(\"%d\",d[m-2]);}\n}"} +{"label": "96", "index": "47713", "code": "int main()\n{\n char a[100],c[100];\n int l,b[100]={0};\n scanf(\"%s\",a);\n l=strlen(a);\n for(int i=0;i> a; //?????\n\tint n = strlen(a); //??????????\n\twhile (a[i] != '\\0') //????????\n\t{\n\t\tb[i] = a[i] - '0';\n\t\ti ++;\n\t}\n\tr = b[0]; //???r????????\n\tif (n <= 2 && (b[0] * (n - 1) * 10 + b[1]) < 13) //???????13\n\t{\n\t\tcout << \"0\" << endl;\n\t\tfor (i = 0; i < n; i++)\n\t\t\tcout << b[i];\n\t}\n\telse\n\t{\n\t\tfor (i = 1; i < n; i ++)\n\t\t{\n\t\t\tc[i] = (r * 10 + b[i]) / 13; //???\n\t\t\tif (c[i] == 0 && i == 1) //??????????0??????\n\t\t\t{\n\t\t\t\ti ++;\n\t\t\t\tc[i] = (r * 100 + b[1] * 10 + b[i]) / 13;\n\t\t\t\tr = (r * 100 + b[1] * 10 + b[i]) % 13;\n\t\t\t}\n\t\t\telse //????0????\n\t\t\t\tr = (r * 10 + b[i]) % 13;\n\t\t}\n\t\tif (c[1] == 0) //????????0???0?????\n\t\t{\n\t\t\tfor (i = 2; i < n; i++)\n\t\t\t\tcout << c[i];\n\t\t}\n\t\telse \n\t\t{\n\t\t\tfor (i = 1; i < n; i++)\n\t\t\t\tcout << c[i];\n\t\t}\n\t\tcout << endl << r; //??????\n\t}\n\treturn 0;\n}\n\n\t\t\n\n\n\n\n\n\n"} +{"label": "96", "index": "47715", "code": "void trans(char *s,int *p)\n{\n int n,i;\n n=strlen(s);\n for(i=0;i>num)\n\t{\n k=0;\n int num2[100];\n for(i=0;i<100;i++)\n num2[i]=0;\n \n i=0;\n for(i=0;num[i]!='\\0';i++)\n {\n num2[i]=(k*10+num[i]-'0')/13;\n k=(k*10+num[i]-'0')%13;\n \n }\n if(strlen(num)<=2&&((num[0]-'0'==1&&num[1]-'0'<=2)\n ||(num[1]=='\\0')))\n cout<<\"0\";\n if(num[0]=='1'&&(num[1]-'0')<=2)\n for(i=2;i<=strlen(num)-1;i++)\n {\n cout<>a;\n int b[110];\n int temp=0;\n if(strlen(a)<=5)\n {\n int t=atoi(a);\n cout<>a;\n\tint b[100],shang[100];\n\tint len=strlen(a);\n\tif(len==1){\n\t\tcout<<'0'<=0;i--){\n\t\tsum=left*10+b[i];\n\t\tshang[i]=sum/13;\n\t\tleft=sum%13;\n\t}\n\tint temp=len-2;\n\tif(shang[temp]==0)temp--;\n\tfor(i=temp;i>=0;i--)\n\t\tcout<=13)\n\t\t\t{\n\t\t\t\td=num%13;\n\t\t\t\tif (d==0)\n\t\t\t\t{\n\t\t\t\t\te=num/13;\n\t\t\t\t\tb[i]=e;\n\t\t\t\t\tnum=0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\te=(num-d)/13;\n\t\t\t\t\tb[i]=e;\n\t\t\t\t\tnum=d; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n num=num;\n\t\t\t b[i]=0;\n }\n m++; \n\t\t}\n\tint yu;\n\tyu =num;\n \n if (m==1)\n { \n printf (\"%d\\n\",b[0]);\n printf (\"%d\",yu); \n } \n else \n {\n if (m==2)\n {\n printf (\"%d\\n\",b[1]);\n printf(\"%d\",yu);\n } \t\n else \n {\n int s,l=0;\n for (s=0;b[s]==0;s++)\n l++;\n int r ;\n for (r=l;r<=m-1;r++)\n printf (\"%d\",b[r]);\n \n printf(\"\\n%d\",yu);\t\n } \t\n }\n\t\t} "} +{"label": "96", "index": "47720", "code": "int main()\n{\n\tchar c;\n\tint i, flag = 0, cnt = 0, k;\n\twhile (cin >> c)\n\t{\n\t\tcnt = cnt * 10 + (c - '0');\n\t\tk = cnt / 13;\n\t\tif (k == 0)\n\t\t\t{\n\t\t\t\tif (flag) cout << k;\n\t\t\t\t\n\t\t\t}\n\t\telse {cout << k; flag = 1;}\n\t\tcnt = cnt - k * 13;\n\t}\n\tif (!flag) cout << 0;\n\tcout << endl << cnt << endl;\n\t\n\treturn 0;\n}\n"} +{"label": "96", "index": "47721", "code": "int main()\n{\n\tchar m[100];\n\tint n[100],t[100];\n\tint l,i,a,b;\n\tscanf(\"%s\",m);\n\tl=strlen(m);\n for(i=0;i<=l-1;i++)\n\t\tn[i]=m[i]-'0';\n\tif(l>=3)\n\t{\n\tfor(i=0;i<=l-2;i++)\n\t{\n\t\tt[i+1]=(n[i]*10+n[i+1])/13;\n\t\tn[i+1]=(n[i]*10+n[i+1])%13;\n\t}\n\tif(t[1]==0)\n\t{\n\tfor(i=2;i<=l-1;i++)\n\t{\n\t\tprintf(\"%d\",t[i]);\n\t}\n\t}\n\telse\n\t{\n for(i=1;i<=l-1;i++)\n\t{\n\t\tprintf(\"%d\",t[i]);\n\t}\n\t}\n\tprintf(\"\\n\");\n\tprintf(\"%d\",n[l-1]);\n\t}\n\telse if(l==2)\n\t{\n\t\ta=(n[0]*10+n[1])/13;\n\t\tb=(n[0]*10+n[1])%13;\n\t\tprintf(\"%d\\n\",a);\n\t printf(\"%d\",b);\n\t}\n\telse\n\t{\n\t\tprintf(\"0\\n\");\n\t\t printf(\"%d\",n[0]);\n\t}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47722", "code": "main()\n{\n char a[100];\n int b,i;\n scanf(\"%s\",a); \n for(i=0;a[i+1]!='\\0';i++)\n {\n b=10*(a[i]-'0')+a[i+1]-'0'; \n a[i+1]=b%13+'0';\n a[i]=b/13+'0';\n if(a[0]!='0'||a[2]=='\\0')\n printf(\"%c\",a[i]);\n a[0]++; \n }\n if(a[1]=='\\0')\n printf(\"0\\n%c\",a[0]);\n else printf(\"\\n%d\",b%13); \n} \n"} +{"label": "96", "index": "47723", "code": "int main()\n{\tchar a[1000];\n\tgets(a);\n\tint num,shang[1000],yushu[1000];\n\tnum=strlen(a);\n\tint i,j=1,k=0;\n\tint b=0,c,d;\n\tif(num==1)\n\t{\n\t\tfor(i=0;i<=num-1;i++)\n\t\t{\t\n\t\tprintf(\"0\\n\");\n\t\tprintf(\"%d\",a[i]-'0');\n\t\t}\n\t}\n\telse\n\t{for(i=0;i<=num-2;i++)\n\t{\n\t\tif(i==0)\n\t\t{\n\t\t\tb=(a[i]-'0')*10+(a[i+1]-'0')*1;\n\t\t\tshang[i]=b/13;\n\t\t\tyushu[i]=b%13;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb=yushu[i-1]*10+(a[i+1]-'0')*1;\n\t\t\tshang[i]=b/13;\n\t\t\tyushu[i]=b%13;\n\n\t\t}\n\t}\n\n\n\t\tfor(i=0;i<=num-2;i++)\n\t{\n\t\tif(i==0&&num==2&&shang[i]==0)\n\t\t\tprintf(\"%d\\n\",shang[i]);\n\t\tif(i==0&&shang[i]!=0&&num!=2)\n\t\t\tprintf(\"%d\",shang[i]);\n\t\tif(i==0&&shang[i]!=0&&num==2)\n\t\t\tprintf(\"%d\\n\",shang[i]);\n\t\tif(i!=0)\n\t\t{\n\t\t\tif(i==num-2)\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",shang[i]);\n\t\t\t}\n\t\t\telse \n\t\t\t\tprintf(\"%d\",shang[i]);\n\t\t}\n\n\t}\n printf(\"%d\",yushu[num-2]);\n}\n \n\treturn 0;\n}\n"} +{"label": "96", "index": "47724", "code": "void f(char a[],char b[],char result[]);\nint num[100]={0};\nint main()\n{\n char str[200],str2[200],result[200];\n int i,j,k=0;\n gets(str);\nif(strlen(str)==1||(strlen(str)==2)&&str[0]=='1'&&str[1]<'3'){cout<<0<=2)\n {\n while(strlen(str)>strlen(str2)||(strcmp(str,str2)!=-1&&strlen(str)==strlen(str2)))\n { \n num[k]++;\n f(str,str2,result);\n strcpy(str,result);\n }\n k++;\n str2[strlen(str2)-1]='\\0';\n }\n //cout<<\"The result is:\"<=0)\n {\n //cout<<\"f function: a[\"<=13)\n {\n s[k]=d/13+'0';\n k++;\n d=d%13;\n } \n else if(k!=0)\n {\n s[k]='0';\n k++;\n }\n }\n s[k]='\\0';\n if(i==1)\n { \n s[0]='0';\n s[1]='\\0';\n d=a[0];\n }\n else if((i==2)&&(a[0]*10+a[1]<13))\n {\n s[0]='0';\n s[1]='\\0';\n d=a[0]*10+a[1];\n \n }\n printf(\"%s\\n\",s);\n printf(\"%d\\n\",d);\n }\n"} +{"label": "96", "index": "47726", "code": "main()\n{\n char s[1000];\n int b[1000];\n int l,n,i,j;\n gets(s);\n l=strlen(s);\n n=0;\n for (i=0;i<=l-1;i++)\n {\n n=n*10+s[i]-48;\n b[i]=n/13;\n n=n%13;\n }\n j=0;\n while ((b[j]==0)&&(j<=l-1)) j++;\n if (j==l) j--;\n for (i=j;i<=l-1;i++)\n printf(\"%d\",b[i]);\n printf(\"\\n\");\n printf(\"%d\",n);\n}\n"} +{"label": "96", "index": "47727", "code": " main()\n{\n char str1[1000];\n char str2[1000];\n char c;\n int m,i,a,b,no,d;\n no=1;\n scanf(\"%s\",str1);\n a=str1[0]-48;\n b=strlen(str1);\n d=str1[1]-48;\n if(a<2&&b==2&&d<3)printf(\"0\");\n if(a<10&&b<2)printf(\"%c\\n%d\",'0',a);\n else\n {\n for(i=0;;i++)\n {\n m=(str1[i]-48)*10+(str1[i+1]-48);\n str2[i]=m/13+48;\n str1[i+1]=m%13+48;\n if(no==1)\n {\n if(str2[i]!='0')printf(\"%c\",str2[i]);\n no=0;\n }\n else printf(\"%c\",str2[i]);\n if(str1[i+2]=='\\0') break;\n }\n \n printf(\"\\n\");\n c=str1[i+1];\n // if(c<10) printf(\"%c\\n\",c);\n\t printf(\"%d\\n\",c-48);\n }\n return 0;\n }"} +{"label": "96", "index": "47728", "code": "/*\n * main.cpp\n *\n * Created on: 2012-10-15\n * Author: ??\n * ??????\n */\n\nint main()\n{\n\tint numerator [110],quotient[110];\n\tint i,j,t=0;\n\tchar a[110];\n\n\tcin>>a;//???????????\n\tfor (i=0;i1||(a[i+1]>2&&a[i]==1))\n {\n d=chufa1(a[i],a[i+1]);\n e=chufa2(a[i],a[i+1]);\n a[i]=d;\n a[i+1]=e;\n i++; \n }\n else\n {\n if(i+2==j)\n break;\n d=chufa3(a[i],a[i+1],a[i+2]); \n e=chufa4(a[i],a[i+1],a[i+2]);\n a[i]=0;\n a[i+1]=d;\n a[i+2]=e;\n i=i+2;\n }\n d=0;\n e=0; \n }\n }\n else\n for(i=0;i1||(a[i+1]>2&&a[i]==1))\n {\n d=chufa1(a[i],a[i+1]);\n e=chufa2(a[i],a[i+1]);\n a[i]=d;\n a[i+1]=e;\n i++; \n }\n else\n {\n if(i+2==j)\n break;\n d=chufa3(a[i],a[i+1],a[i+2]); \n e=chufa4(a[i],a[i+1],a[i+2]);\n a[i]=0;\n a[i+1]=d;\n a[i+2]=e;\n i=i+2;\n }\n d=0;\n e=0; \n }\n if(k==0)\n {\n for(i=0;i10)\n\t{\n\t\t\n\t\t\tup[num]=jie/10+'0';\n\t\t\tnum=num+1;\n\t\t\tup[num]=jie-jie/10*10+'0';\n\t\t\tnum=num+1;\n\t\t\n\t}\n\telse\n\t{\n\t\tup[num]=jie+'0';\n\t\tnum=num+1;\n\t}\n\tli[i]=0+'0';\n\tif(yu>10)\n\t{\n\t\tli[i+1]=yu/10+'0';\n\t\tli[i+2]=yu-10+'0';\n\t}\n\telse\n\t{\n\t\tli[i+1]='0';\n\t\tli[i+2]=yu+'0';\n\t}\n}\nint main()\n{\n\tmemset(li,'\\0',sizeof(li));\n\tmemset(up,'\\0',sizeof(up));\n\twhile(cin>>li)\n\t{\n\t\t\n\t\tnum=0;\n\t\tint len;\n\t\tlen=strlen(li);\n\t\tif(len>3){\n\t\tfor(int j=0;j= 13 )\n\t\t\t{\n\t\t\t\tcout << s / 13 ;\n\t\t\t\tr = s % 13 ;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ( s >= 10 || r == 0 )\n\t\t\t\t{\n\t\t\t\t\tcout << \"0\";\n\t\t\t\t}\n\t\t\t\tr = s ;\n\t\t\t} \n\t\t\tif ( j == i - 1 )\n\t\t\t{\n\t\t\t\tcout << endl << ( s % 13 ) ;\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "96", "index": "47732", "code": "int main()\n{\n\tchar num[100];\n\tcin >> num;\n\t// division???????????number[i]??num[i],denominator[i]??????\n\tint division = 0, number[100], denominator[100], dinominator[100], rest = 0, i, j, mark;\n\tfor (i = 0; i < 100; i++) \n\t{\n\t\tif (num[i] != '\\0') // ??????????????????????\n\t\t{\n\t\t\tnumber[i] = num[i] - '0';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t} \n\t} // ??????i - 1?\n\tif (i == 1)\n\t{\n\t\tcout << \"0\" << endl << number[0];\n\t}\n\telse if ((i == 2) && (number[0] == 1) && (number[1] <= 2))\n\t{\n\t\tcout << \"0\" << endl << number[0] * 10 + number[1];\n\t}\n\t\n\telse\n\t{\n\trest = number[0];\n\tfor (j = 1; j <= i - 1; j++) // ???????1??????division???99??denominator????\n\t{\n\t\tdivision = number[j] + rest * 10; \n\t\tdenominator[j] = division / 13;\n\t\trest = division % 13;\n\t}\n\tfor (j = 1; j <= i - 1; j++)\n\t{\n\t\tif (denominator[j] != 0) //???????????0??\n\t\t{\n\t\t\tmark = j;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor (j = mark; j <= i - 1; j++)\n\t{\n\t\tcout << denominator[j];\n\t}\n\tcout << endl;\n\tcout << rest;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47733", "code": "int main()\n{\n\tint i,j,k,l;\n\tchar a[100],b[100],c[100];\n\tcin>>a;\n l=strlen(a);\n\n \n for(i=0;i> num;\n\td = num[0] - '0';\n\ta[0] = 0;\n\tfor(i = 1; num[i] != '\\0'; i++)\n\t{\n\t\ta[i - 1] = (d * 10 + (num [i] - '0')) / 13;\n\t\td = (d * 10 + (num [i] - '0')) % 13;\n\t}\n\tfor(j = 1; num[j] != '\\0'; j++)\n\t{\n\t\tif(a[j - 1] == 0)\n\t\t\tcontinue;\n\t\telse\n\t\t{\n\t\t\tcout << a[j - 1];\n\t\t\tflag = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(flag == 1)\n\t{\n\t\tfor(k = j; k < i - 1; k++)\n\t\t{\n\t\t\tcout << a[k];\n\t\t}\n\t\tcout << endl;\n\t}\n\telse\n\t{\n\t\tcout << a[0] << endl;\n\t}\n\tcout << d;\n\treturn 0;\n}"} +{"label": "96", "index": "47736", "code": "//********************************\n//*???? ??(12-11) ??13 \n//********************************\n\nint main()\n{\n\tchar a[105];\n\tchar b[105];\n\tint i,yu,sh,lin,l;\n\tcin.getline (a,105);\n\tl = strlen(a);\n\tyu = 0;\n\tfor(i = 0; i < l; i++)\n\t{\n\t\tlin = 10 * yu + (a[i] - '0');\n\t\tb[i] = lin / 13;\n\t\tyu = lin % 13;\n\t}\n\tif((l == 1) || ((l == 2) && (a[0] == '1') && (a[1] < '3')))\n\t\tcout << \"0\";\n\telse\n\t{\n\t\tif(b[1])\n\t\t{\n\t\t\tfor(i = 1; i < l; i++)\n\t\t\t\tcout << (int)b[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(i = 2; i < l; i++)\n\t\t\t\tcout << (int)b[i];\n\t\t}\n\t}\n\tcout << endl << yu << endl;\n\tcin.get();\n cin.get(); //????\n\treturn 0;\n}\n"} +{"label": "96", "index": "47737", "code": "void main()\n{\n\tchar n[100]={0},s[100]={0};\n\tint nn[100]={0},y=0,len,i;\n\tscanf(\"%s\",n);\n\tlen=strlen(n);\n\tfor(i=0;i> a;\t\n\twhile (a[i] != 0)\n\t\ti ++;\t\n\tfor (j = 0; j < i; j ++)\n\t{\n\t\tre[j] = (k * 10 + a[j] - '0')/ 13; \n\t\tm ++;\t\n\t\tk = (k * 10 + a[j] - '0')% 13;\t\t\n\t}\n\twhile (re[n] == 0)\n\t\tn ++;\t\t\n\tif (n == m) \n\t\tcout << \"0\" << endl; \n\telse\n\t{\n\t\tfor (; n < m; n ++)\n\t\t\tcout << re[n];\t\t \n\t\tcout << endl;\t\t\n\t}\n\tcout << k << endl; \n\treturn 0;\n}"} +{"label": "96", "index": "47740", "code": "int main()\n{\n\tchar a[110];\n\tint b[110];\n\tcin>>a;\n\tint len=strlen(a),i=0;\n\tfor(i=0;i=13)\n\t{\n\t\tcout<2){\n\tif(bcs[0]=='1'&&bcs[1]<='2'){\n\t\ta=(bcs[0]-'0')*100+(bcs[1]-'0')*10+bcs[2]-'0';\nfor(i=0;i<=l-3;i++){\n\t\t shang[i]=(a/13)+'0';\n\t\t\t ys[i]=(a%13)+'0';\n\t\t\t a=((ys[i]-'0')*10+bcs[i+3]-'0');\n\t\t}\nfor(j=0;j> input;\n\tmemset(output,0,sizeof(output));\n\tint length = strlen(input);\n\tint remainder = 0,i;\n\tfor(i = 0;i < length;i ++){\n\t\tremainder *= 10;\n\t\tremainder += input[i] - '0';\n\t\tif(remainder < 13){\n\t\t\toutput[i] = 0;\n\t\t}else{\n\t\t\toutput[i] = remainder / 13;\n\t\t\tremainder %= 13;\n\t\t}\n\t}\n\tfor(i = 0;i < length;i ++){\n\t\tif(output[i] != 0)\n\t\t\tbreak;\n\t}\n\tif(i == length)\n\t\tcout << 0;\n\telse\n\t\tfor(;i < length;i ++)\n\t\t\tcout << output[i];\n\tcout << endl << remainder << endl;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47745", "code": "int main(){\n\tchar a[100],b[100]; //b[100]??\n\tint n,m,i,x=0,w; //n???\n\twhile(cin>>a)\n\t{\n\t\tn=a[0]-48;\n\t\tb[0]=48;\n\t\tm=strlen(a);\n\n\t\tfor(i=1;i1||(n[0]==1&&n[1]>=3))\n\t\t\t{\n\t \ta=10*n[0]+n[1];\n\t \tfor(i=1;i=13)\n\t{\n\tb[i]=t/13+'0';\n\tc[i]=t%13;\n\tt=t%13;\n\t}\nelse\n{\t\nb[i]='0';\nc[i]=t;\n\n}\n}\nint m;\nm=strlen(b);\nif(b[0]>'0')\nprintf(\"%c\",b[0]);\nfor(i=1;i='0';i++)\n{\nprintf(\"%c\",b[i]);\nq=i;\n}\nprintf(\"\\n%d\",c[q]);\n}\n}"} +{"label": "96", "index": "47749", "code": "int main()\n{\n char string[101];\n int i;\n scanf(\"%s\",string);\n char a[101];\n int b=string[0]-'0';\n for(i=0;string[i+1]!='\\0';i++)\n {\n a[i]=(b*10+string[i+1]-'0')/13+'0';\n b=(b*10+string[i+1]-'0')%13;\n }\n a[i]='\\0';\n if(a[0]=='0')\n {\n char c[101];\n strcpy(c,a);\n for(i=0;c[i+1]!='\\0';i++)\n {a[i]=c[i+1];}\n a[i]='\\0'; \n } \n if(string[1]=='\\0')\n {\n a[0]='0';a[1]='\\0';b=string[0]-'0';\n }\n if(string[2]=='\\0'&&((string[0]-'0')*10+string[1]-'0')<13)\n {\n a[0]='0';\n a[1]='\\0';\n b=(string[0]-'0')*10+string[1]-'0';\n }\n printf(\"%s\\n\",a);\n printf(\"%d\",b);\n getchar();\n getchar();\n}"} +{"label": "96", "index": "47750", "code": "main()\n{\n char num[100];\n scanf(\"%s\",num);\n int con[100];\n int p[100];\n int i,j,a,b,s,k=0,l; \n for(i=0;num[i]!='\\0';i++)\n {\n con[i]=num[i]-'0'; \n } \n if(i==1)\n {\n a=0;\n b=con[0];\n printf(\"%d\",a);\n printf(\"\\n\");\n printf(\"%d\",b);\n }\n else\n {\n for(j=0;j<=i-2;j++)\n {\n s=con[j]*10+con[j+1];\n if(s>=13)\n {\n a=s/13;\n b=s%13;\n con[j+1]=b;\n p[k]=a;\n k=k+1;\n }\n else \n {\n con[j+1]=s;\n b=s;\n if(k==0) \n {\n continue; \n }\n else\n {\n p[k]=0;\n k=k+1;\n continue; \n } \n }\n }\n if(k==0)\n printf(\"%d\",k);\n else\n {for(l=0;l<=k-1;l++)\n {printf(\"%d\",p[l]);}}\n printf(\"\\n\");\n printf(\"%d\",b); \n } \n getchar();\n getchar();\n getchar(); \n }\n"} +{"label": "96", "index": "47751", "code": "int main()\n{\n char a[100];\n int divide[100], mod;\n int len;\n cin >> a;\n len = strlen(a);\n if (len == 1)\n {\n cout << 0 << endl;\n cout << a[0];\n }\n else\n if(len == 2)\n {\n cout << (10 * (a[0] - '0') + (a[1] - '0')) / 13 << endl;\n cout << (10 * (a[0] - '0') + (a[1] - '0')) % 13;\n }\n else\n {\n divide[0] = (10 * (a[0] - '0') + (a[1] - '0')) / 13;\n mod = (10 * (a[0] - '0') + (a[1] - '0')) % 13;\n for (int i = 1; i < len - 1; i++)\n {\n divide[i] = (10 * mod + (a[i + 1] - '0')) / 13;\n mod = (10 * mod + (a[i + 1] - '0')) % 13;\n }\n if (divide[0])\n cout << divide[0];\n for (int i = 1; i < len - 2; i++)\n {\n cout << divide[i];\n }\n cout << divide[len - 2] << endl;\n cout << mod << endl;\n }\n return 0;\n} "} +{"label": "96", "index": "47752", "code": "main()\n{\n int i,m,count;\n int a[SIZE],b[SIZE];\n char string[101];\n scanf(\"%s\",string);\n for(i=0;i<=99;i++)\n a[i]=0;\n count=0;\n for(i=0;i<=99;i++)\n {\n if(string[i]=='\\0')\n break;\n a[i]=string[i]-48;\n count++;\n }\n if(count>2)\n {\n for(i=0;i<=count-2;i++)\n b[i]=0;\n for(i=0;i<=count-2;i++)\n {\n b[i]=(a[i]*10+a[i+1])/13;\n a[i+1]=(a[i]*10+a[i+1])%13;\n }\n m=a[count-1];\n if(b[0]==0)\n {\n for(i=1;i<=count-2;i++)\n printf(\"%d\",b[i]);\n printf(\"\\n\");\n printf(\"%d\",m);\n }\n if(b[0]!=0)\n {\n for(i=0;i<=count-2;i++)\n printf(\"%d\",b[i]);\n printf(\"\\n\");\n printf(\"%d\",m);\n }\n } \n if(count==1)\n {\n printf(\"%d\",0);\n printf(\"\\n\");\n printf(\"%d\",a[0]); \n } \n if(count==2)\n {\n if((a[0]*10+a[1])<13)\n {\n printf(\"%d\",0);\n printf(\"\\n\");\n printf(\"%d\",a[0]*10+a[1]);\n }\n if((a[0]*10+a[1])>=13)\n {\n printf(\"%d\",(a[0]*10+a[1])/13);\n printf(\"\\n\");\n printf(\"%d\",(a[0]*10+a[1])%13);\n }\n }\n \n}\n \n \n \n \n \n"} +{"label": "96", "index": "47753", "code": "main()\n{\nint c,l,i,d;\nint b[100];\nchar a[100];\nscanf(\"%s\",a);\nl=strlen(a);\nif(l==1)\n{\nprintf(\"%d\\n\",0);\nprintf(\"%c\\n\",a[0]);\n}\nelse\n{ \nfor(i=1;i<=l-1;i++)\n{\nd=10*(a[i-1]-'0')+a[i]-'0';\nb[i-1]=d/13;\na[i]=d%13+'0'; \n}\nc=a[l-1]-'0';\nif(l==2)\n{\nprintf(\"%d\\n\",b[0]);\nprintf(\"%d\\n\",c); \n}\nelse\n{\nif(b[0]==0)\n{\nfor(i=1;i<=l-3;i++)\nprintf(\"%d\",b[i]);\nprintf(\"%d\\n\",b[l-2]);\nprintf(\"%d\\n\",c);\n}\nelse\n{\nfor(i=1;i<=l-2;i++)\nprintf(\"%d\",b[i-1]);\nprintf(\"%d\\n\",b[l-2]);\nprintf(\"%d\\n\",c);\n}\n}\n}\ngetchar();\ngetchar(); \n}"} +{"label": "96", "index": "47754", "code": "int f(char a) //?????????????? \n{ if(a=='1') return 1;\n if(a=='2') return 2;\n if(a=='3') return 3;\n if(a=='4') return 4;\n if(a=='5') return 5;\n if(a=='6') return 6;\n if(a=='7') return 7;\n if(a=='8') return 8;\n if(a=='9') return 9;\n if(a=='0') return 0;\n}\nint main()\n{ char a;\n int b;\n int chushu=0;\n int yushu=0;\n int shang;\n int t=0;\n int v=0;\n while(1) \n { \n cin.get(a); \n if(a=='\\n') //?????? \n { t=1;\n \n }\n b=f(a); \n chushu=10*chushu+b; //????? \n \n if(t==1) break; //???? \n shang=chushu/13; //???? \n yushu=chushu%13;\n chushu=yushu;\n if(shang!=0) v=v+1; \n if(v!=0) cout<>a;\n\tlen=strlen(a);\n\tint i,j;\n\tfor(i=0;i=3){\n\t\tif((10*r[0]+r[1])>=13){lenofr=len-1;{for(i=0;i<=lenofr;i++)\n\t\t\tdevide1(i);\n\t\tcout<>in;\n\tint num[110]={0},ans[110]={0};\n\tint lenth = strlen(in);\n\tfor (int i=0;i9))\n printf(\"0\");\n printf(\"\\n\");\n printf(\"%d\",r);\n}"} +{"label": "96", "index": "47758", "code": "int main()\n{\n\tchar a[110]={0}, ans[110]={0};\n\tint aa[110]={0};\n\tint i, cal=0, n;\n\tcin >> a;\n\tn=strlen(a)-1;\n\tif (n==0)\t\t\t\t\t\t\t\t//??????????\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << a << endl;\n\t\treturn 0;\n\t}\n\tfor (i=0; i<=n; i++)\n\t\taa[i]=a[i]-'0';\n\ti=0;\t\t\t\t\t\t\t\t\t//??????\n\twhile (i'0'))\n\t{\n\t\tfor (i=1; i>a;\n\tint len=strlen(a), temp, mod;\n\ttemp=10*(a[0]-'0') + a[1]-'0';\n\tif(temp<13&&len<=2) len=1;\n\tfor(int i=0; i> s;\n\tn = strlen(s);\n\tif(n == 1)\n\t{\n\t\tm = s[0] - '0';\n\t\tcout << \"0\" << endl << m << endl;\n\t}\n\telse\n\t{\n\t if(n == 2)\n\t {\n\t\t m = (s[0] - '0') * 10 + s[1] - '0';\n\t\t b = m / 13;\n\t\t m = m % 13;\n\t\t cout << b << endl << m << endl;\n\t }\n\t else\n\t {\n\t\tm = s[0] - '0';\n\t for(i = 1; i < n; i++)\n\t {\n\t\t m = m * 10 + s[i] - '0';\n\t\t b = m / 13;\n\t\t m = m % 13;\n\t\t a[i - 1] = b;\n\t }\n\t n --;\n\t if(a[0] == 0)\n\t\t i = 1;\n\t else i = 0;\n\t for(; i < n; i++)\n\t {\n\t\t cout << a[i];\n\t }\n\t cout << endl << m;\n\t }\n\t}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47762", "code": "int main()\n{\n int count1=0;\n char a[1000];\n scanf(\"%s\",a);\n int b[1000],c[1000];\n int i,j,k;\n for(i=0;a[i]!='\\0';i++)\n {\n b[i]=a[i]-'0';\n count1++;\n }\n if(count1==1)\n {\n printf(\"0\\n\");\n printf(\"%d\",b[0]);\n }\n else\n {\n int d;\n int count=0;\n if((b[0]*10+b[1])>=13)\n {\n d=b[0];\n for(j=1;a[j]!='\\0';j++)\n {\n c[j-1]=(d*10+b[j])/13;\n d=d*10+b[j]-c[j-1]*13;\n count++;\n }\n c[j]='\\0';\n for(k=0;k<=count-1;k++)\n {\n printf(\"%d\",c[k]);\n }\n printf(\"\\n\");\n printf(\"%d\",d);\n }\n else\n {\n d=b[0]*10+b[1];\n for(j=2;a[j]!='\\0';j++)\n {\n c[j-2]=(d*10+b[j])/13;\n d=d*10+b[j]-c[j-2]*13;\n count++;\n }\n c[j]='\\0';\n if(count==0)\n {\n printf(\"0\\n\");\n }\n else\n {\n for(k=0;k<=count-1;k++)\n {\n printf(\"%d\",c[k]);\n }\n printf(\"\\n\");\n }\n printf(\"%d\",d);\n }\n }\n}\n"} +{"label": "96", "index": "47763", "code": "int main()\n{\n\tchar number[100];\n\tchar result[100];\n\tint a=0,b=0,lenght=0,flag=0;\n\tscanf(\"%s\",number);\n\tlenght=strlen(number);\n\tb=number[0]-'0';\n\tfor(int i=0;i2||(l==2&&judge>12)){\n\t\tprintf(\"\\n%d\",fra[l-1]-'0');\n\t}else if(l==1||(l==2&&judge<13)){\n\t\tprintf(\"0\\n\");\n\t\tif(l==1){\n\t\t\tprintf(\"%c\",num[0]);\n\t\t}else if(l==2){\n\t\t\tprintf(\"%d\",judge);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47766", "code": "int main(){\n\tchar origin[101];\n\tgets(origin);\n\tchar result[100];\n\tint i;\n\tint a;\n\tint b;\n\ta=strlen(origin);\n\tif(a<2){\n\t\tresult[0]='0';\n\t\tresult[1]='\\0';\n\t\tb=(origin[0]-'0')%13;\n\t\tputs(result);\n\t\tprintf(\"%d\", b);\n\t}\n\telse if(((a==2)&&((origin[0]-'0')*10+(origin[1]-'0'))<13)){\n result[0]='0';\n\t\tresult[1]='\\0';\n\t\tb=((origin[0]-'0')*10+(origin[1]-'0'))%13;\n\t\tputs(result);\n\t\tprintf(\"%d\", b);\n\n\t}\n\telse{\n\t\n\tb=((origin[0]-'0')*10+(origin[1]-'0'))%13;\n\tint m;\n\tif((origin[0]-'0')*10+(origin[1]-'0')>=13){\n\t m=((origin[0]-'0')*10+(origin[1]-'0'))/13;\n\t result[0]=m+'0';\n\t for(i=2;i> number;\n int r=0;\n int i;\n for (i=0;number[i]!='\\0';i++)\n {\n quotient[i]=(r*10+(number[i]-'0'))/13+'0';\n r=(r*10+(number[i]-'0'))%13;\n }\n int len=strlen(quotient);\n if (atoi(number)<13)\n {\n cout << \"0\" << endl;\n }\n else\n {\n if (quotient[1]!='0')\n {\n cout << quotient[1] ;\n }\n for (i=2;i<=len-1;i++)\n {\n cout << quotient[i];\n }\n cout << '\\n';\n }\n cout << r << '\\n' ;\n\n return 0;\n}\n"} +{"label": "96", "index": "47768", "code": "/*???????\n * thirteen.cpp\n *\n * Created on: 2013-12-23\n * Author: Administrator\n */\nint main()\n{\n\tchar istr[101],istr1[101];\n\tint len=0,left=0,a=0,i=0,count=0;\n\twhile(cin.getline(istr,101)){\n\t\tcount=0;\n\t\tlen=strlen(istr);\n\t for(i=0;i> a;\n\tfor(i = 0;a[i] != '\\0';i++)\n\t{\n\t\tif((a[i + 1]) == '\\0')\n\t\t{\n\t\t\tt = (t * 10) + a[i] -'0';\n\t\t\tres = t / 13;\n\t\t\tb[j] = res;\n\t\t\tj++;\n\t\t\tremain = t - res * 13;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tt = (t * 10) + a[i] - '0';\n\t\t\tres = t / 13;\n\t\t\tif((res == 0) && (b[0] == 0))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{\n\t\t\t b[j] = res;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tt = t - res * 13;\n\t\t}\n\t}\n\tfor (i = 0; i < j; i++)\n\t cout << b[i];\n\tcout << endl;\n\tcout << remain;\n\n return 0;\n}"} +{"label": "96", "index": "47770", "code": "int main()\n{\n\tchar a[300],b[300];\n\tint i,j=0,m,n,k;\n\tgets(a);\n\tif(strlen(a)==1)\n\tprintf(\"0\\n%s\",a);\n\telse{\n\t m=10*(a[0]-'0');\n\tfor(i=1;i=13)\n\t\t{\n\t\tn=m/13;\n\t\tprintf(\"%d\",n);\n\t\tm=m%13;\n\t\tprintf(\"\\n%d\",m);\n\t }\n\t else\n\t {\n\t\t\tprintf(\"0\");\n\t\t\tprintf(\"\\n%d\",m);\n\t\t}\n\t}\n}\n\treturn 0;\n}\n"} +{"label": "96", "index": "47771", "code": "int main()\n{\n char a[1000];\n int len, i, b[1000] = {0};\n cin.getline(a, 1000);\n len = strlen(a);\n for (i = 0; i < len; i++)\n {\n b[i] = a[i] - '0'; //????????????\n }\n for (i = 0; i < len; i++)\n {\n b[i + 1] = b[i] % 13 * 10 + b[i + 1];\n b[i] = b[i] / 13;\n }\n i = 0;\n while(1)\n {\n if (b[i] != 0)\n break;\n i++;\n }\n if (i == len) //????0?\n cout << '0' << endl;\n else\n {\n for (; i < len; i++)\n cout << b[i];\n cout << endl;\n }\n cout << b[i] / 10; //i ??? i+1\n return 0;\n}"} +{"label": "96", "index": "47772", "code": "int main()\n{\n int n;\n\t char a[100];\n int b[100]={0},i,m,r;\n\t gets(a);\n n=strlen(a);\n for(i=0;i> n;\n\tlen = strlen(n);\n\tif(len > 1)\n\t{\n\t\tq = ((n[0] - '0') * 10 + (n[1] - '0')) / 13;\n\t\tr = ((n[0] - '0') * 10 + (n[1] - '0')) % 13;//???????????0\n\t\tif(q != 0 || len == 2)\n\t\t\tcout << q;\n\t\tfor(i = 1;i < len - 1;i++)//??????i?2)\n {\n for(i=0;beichushu[i+1]!='\\0';i++)\n {\n b=(b%13)*10+beichushu[i+1]-'0';\n x=x+1;\n a=b/13;\n if(a==0&&x==1)\n continue;\n else\n printf(\"%d\",a); \n } \n printf(\"\\n%d\",b%13); \n }\n getchar();\n getchar(); \n}\n"} +{"label": "96", "index": "47778", "code": "int main(void)\n{\nchar ori[101],temp[4],res[100];\nint i=1,t,s;\nscanf(\"%s\",ori);\ntemp[0]=ori[0];temp[1]=ori[1];temp[2]='\\0';\nif(atoi(temp)<13)\n{\nif(atoi(temp)<10)\n{\nprintf(\"0\\n%d\\n\",atoi(temp));\nreturn 0;\n}\ntemp[2]=ori[2];temp[3]='\\0';\ni=2;\n}\nt=atoi(temp);\nfor(s=i;ori[i]!='\\0';i++)\n{\nres[i-s]=t/13+'0';\ntemp[0]=ori[i+1];temp[1]='\\0';\nif(ori[i+1]=='\\0')\nt=t%13;\nelse\nt=(t%13)*10+atoi(temp);\n}\nif(i==s)\n{\nres[0]='0';\ni++;\n}\nres[i-s]='\\0';\nprintf(\"%s\\n%d\\n\",res,t);\nreturn 0;\n}"} +{"label": "96", "index": "47779", "code": "main()\n{\n char a[2000]; int d,c[2000],n,b[2000],f=0;\n scanf(\"%s\",a);\nint i=0; while (a[i]!='\\0') {c[i]=a[i]-'0'; i++;}\nn=i;\n d=c[0];\n for(int i=1;i2&&j==1){\n m=100*p+q*10+(c[j+1]-'0');\n j=j+1;\n }\n answer[i]=m/13;\n p=m%13;\n i=i+1;\n }\n j=j+1;\n }\n for(l=0;l> str; //?cin????????\n for (i = 0; i < strlen(str); i++)\n\tN[i] = str[i] - '0'; //????????????\n if (strlen(str) != 1) //?????????????\n {\n\tfor (i = 0; i < strlen(str) - 1; i++)\n\t{\n s[i] = (N[i] * 10 + N[i + 1]) / 13; //???????????\n\t y = (N[i] * 10 + N[i + 1]) % 13;\n\t N[i + 1] = y;\n\t}\t\n if (strlen(str) >= 3)\n {\n\t if (s[0] != 0) //???s[0]???0\n\t cout << s[0] ; //???0???\n\t for (i = 1; i < strlen(str) - 2; i++)\n cout << s[i] ;\n\t cout << s[strlen(str) - 2] << endl;\n }\n else //????????????\n\t cout << s[0] << endl;\n cout << y << endl;\n }\n else \n {\n\tcout << \"0\" << endl ;\n\tcout << N[0] << endl ; \n }\n return 0;\n} //?????\n\n\n\n\t\n\t\n"} +{"label": "96", "index": "47782", "code": "char c[101]={'\\0'},s[100]={'\\0'};//c?????s???\nint yu=0;int l;//?????\nint main()\n{\n\tvoid shang(int,int);\n\tcin>>c;\n\tfor(l=0;c[l]!='\\0';l++);\n\tshang(0,0);\n\tint i,j;\n\tif(s[1]=='\\0')\n\t\tcout<=13)\n\t\t{\n\t\t printf(\"%d\\n\",(a[0]*10+a[1])/13);\n\t\t\tprintf(\"%d\\n\",(a[1]+a[0]*10)%13);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%d\\n\",0);\n\t\t\tprintf(\"%d\\n\",a[0]*10+a[1]);\n\t\t}\n\t}\n\telse\n\t{\n\t\tt=0;\n\t\tfor(i=0,m=0;i> yu;\n for (r = 0; yu[r] != 0; r++)\n {\n chu[r] = (i * 10 + yu[r] - '0') / 13; \n i = ((i * 10) + yu[r] - '0') % 13; \n }\n \n if (r == 1 ) cout << chu[0] << endl << i << endl;\n else if (r == 2 && chu[1] == 0) cout << chu[0] << endl << i <=13)\n {\n //printf(\"***%d***%d\\n\",k,i);\n b[i]=(k)/13;\n\t\t\t a[i+1]=(k%13)%10;\n\t\t\t a[i]=(k%13)/10;\n }\n else\n {\n x=k;\n //printf(\"***%d***%d\\n\",x,i);\n\t\t\t do\n {\n b[i]=0;\n if(i==length-2)\n {\n b[length-1]=0;\n break;\n }\n x=10*x+a[i+2];\n //printf(\"***%d***%d\\n\",x,i);\n\t\t\t\t i++;\n }\n while(x<13);\n b[i]=x/13;\n a[i+1]=(x%13)%10;\n\t\t\t a[i]=(x%13)/10;\n }\n }\n\t if(b[0]!=0||length==2)\n\t {\n\t printf(\"%d\",b[0]);\n\t }\n\n\t for(i=1;i=13)\n {\n sum=a[0]*10+a[1];\n printf(\"%d\\n%d\",sum/13,sum%13);\n }\n else if(l>2&&a[0]*10+a[1]<13)\n {\n sum=a[0]*10+a[1];\n for(n=0;n<=l-3;n++)\n {\n sum=sum*10+a[n+2];\n b[n]=sum/13;\n sum=sum%13;\n }\n for(n=0;n<=l-3;n++)\n b[n]=b[n]+'0';\n b[l-2]='\\0';\n printf(\"%s\\n%d\",b,sum);\n } \n else\n {\n sum=a[0];\n for(n=0;n<=l-2;n++)\n {\n sum=sum*10+a[n+1];\n b[n]=sum/13;\n sum=sum%13;\n }\n for(n=0;n<=l-2;n++)\n {\n b[n]=b[n]+'0'; \n }\n b[l-1]='\\0';\n printf(\"%s\\n%d\",b,sum);\n }\n //getchar();\n //getchar();\n}\n"} +{"label": "96", "index": "47789", "code": "main()\n{\n int m,i;\n int len,mod,ans;\n int a[100],b[100]={10};\n char str[MAX+1];\n scanf(\"%s\",str);\n len=strlen(str);\n for(i=0;i=13)\n {\n for(i=0;i=3)\n {e=a[0]-'0';\n f=a[1]-'0';\n e=e*10+f;\n f=e/13;\n b[0]=f;\n e=e%13; \n for(i=2;i<=n-1;i++)\n {\n f=a[i]-'0';\n e=e*10+f;\n f=e/13;\n b[i-1]=f;\n e=e%13; //yushu//\n }\n if(b[0]==0)\n {for(i=1;i<=n-2;i++)\n printf(\"%d\",b[i]);\n printf(\"\\n\");\n printf(\"%d\",e);}\n else\n {for(i=0;i<=n-2;i++)\n printf(\"%d\",b[i]);\n printf(\"\\n\");\n printf(\"%d\",e);}}\n else\n {if(n==1)\n {e=a[0]-'0';\n printf(\"0\\n\");\n printf(\"%d\",e);}\n if(n==2)\n {e=a[0]-'0';\n f=a[1]-'0';\n e=e*10+f;\n if(e<=12)\n {printf(\"0\\n\");\n printf(\"%d\",e);}\n else\n {f=e/13;\n e=e%13;\n printf(\"%d\\n\",f);\n printf(\"%d\",e); }\n }}\n\n \n\n\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n }\n"} +{"label": "96", "index": "47791", "code": "int main()\n{\n char a[110];\n char b[110];\n cin>>a;\n int k=strlen(a);\n if(k==1)\n\t cout<<0<> num; //??????\n\n for (i = 0; num[i] != '\\0'; i++) //???????????\n\t{\n\t\tquotient[i] = (r * 10 + num[i] - '0') / 13; //???\n r = (r * 10 + num[i] - '0') % 13; //????\n\t}\n\tif (num[1] == '\\0' || num[2] == '\\0' && num[0] - '0' == 1 && num[1] - '0' < 3)\n\t\tcout << 0;\n\telse if(quotient[1] == 0)\n\t\t{\n\t\t\tfor (i = 2; num[i] != '\\0'; i++)\n\t\t\t\tcout << quotient[i];\n\t\t}\n\telse\n\t\t{\n\t\t\tfor (i = 1; num[i] != '\\0'; i++)\n\t\t\t\tcout << quotient[i];\n\t\t}\n\tcout << endl;\n\tcout << r << endl; \n return 0;\n}"} +{"label": "96", "index": "47793", "code": "int main ()\n{\n\tchar a[100];\n\tcin.getline(a,100);\n\tint num,j,i=0,x;\n \tint b[100];\n\tint r[100];\n\tr[0]=a[0]-'0';\n\twhile(a[i]!='\\0')\n\t{\n\t\tnum=r[i]*10+a[i+1]-'0';\n\t\tr[i+1]=num%13;\n\t\tb[i]=num/13;\n\t\ti++;\n\t}\n\tfor(j=0;j<=i-2;j++)\n\t{\n\t\tif(b[j]!=0)\n\t\t\tbreak;\n\t}\n\tif(j==i-1)\n\t{cout<<0;}\n\telse\n\t{x=j;\n\tfor(j=x;j<=i-2;j++)\n\t{\n\t\tcout<=13)||n>=3)\n {\n int d,e;\n e=0;\n for(j=0;j=2)\n {\n f[k]=c[i];\n k++;\n }\n f[k]='\\0';\n }\n puts(f);\n printf(\"%d\",e);\n }\n if(n==2&x<13) \n {\n printf(\"0\\n\");printf(\"%d\",x);\n }\n if(n==1)\n {\n printf(\"0\\n\");printf(\"%d\",b[0]);\n }\n \n getchar();getchar();getchar();getchar();getchar();getchar();\n }\n"} +{"label": "96", "index": "47795", "code": "int main()\n{\n\tchar a[100];\n\tint b[100],c,d,i,e,n;\n\tscanf(\"%s\",a);\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tb[i]=a[i]-'0';\n\t}\n\tc=10*b[0]+b[1];\n\tn=strlen(a);\n\tif(n==1)printf(\"0\\n%d\",b[0]);\n\telse\n\tif(n==2)\n\t{\n\t\tprintf(\"%d\\n%d\",c/13,c%13);\n\t}\n\telse\n\t{\n\tif(c<13)\n\t{\n\t\tfor(i=2;i=13)\n {\n for(i=0;a[i+1]!='\\0';i++)\n {\n x=10*(a[i]-'0')+(a[i+1]-'0'); //printf(\"%d\\n\",x);\n b[i]=x/13+'0'; //printf(\"%c\\n\",b[i]);\n a[i+1]=x-13*(b[i]-'0')+'0'; //printf(\"%c\\n\",a[i+1]);\n }\n b[i]='\\0';\n }\n else\n {\n a[1]=x+'0'; //printf(\"x %d\\n\",x); printf(\"c %c\\n\",a[1]);\n for(i=1;a[i+1]!='\\0';i++)\n {\n x=10*(a[i]-'0')+(a[i+1]-'0'); // printf(\"%d\\n\",x);\n b[i-1]=x/13+'0'; //printf(\"%c\\n\",b[i-1]);\n a[i+1]=x-13*(b[i-1]-'0')+'0'; //printf(\"%c\\n\",a[i+1]);\n }\n b[i-1]='\\0';\n }\n printf(\"%s\\n\",b);\n printf(\"%c\\n\",a[i]);\n }}\n getchar();\n getchar();\n getchar();\n return 0;\n}"} +{"label": "96", "index": "47798", "code": "int main(){\n\tchar N[101],s[100];\n\tint i,p;\n\tint j=0,ys=0;\n\tscanf(\"%s\",N);\n\n\tif(strlen(N)==1){\n\t\tprintf(\"0\\n%s\",N);\n\t\treturn 0;\n\t}\n\t\n\n\tfor(i=0;i0)\n\t\t{\n\t\t\tshan[i]=(n[i-1]*10+n[i])/13;\n\t\t\tn[i]=(n[i-1]*10+n[i])%13;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tfor(j=0;;j++)\n\t\t\t{\n\t\t\t\tif((n[i-1]*10+n[i])/13==0)\n\t\t\t\t{\n\t\t\t\t\tn[i]=n[i-1]*10+n[i];\n\t\t\t\t\tshan[i]=0;\n\t\t\t i++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tshan[i]=(n[i-1]*10+n[i])/13;\n\t\t\t n[i]=(n[i-1]*10+n[i])%13;\n\t\t}\n\t}\n\tfor(i=e;i>c;\n int z=(c[0]-'0')*10+c[0+1]-'0';\n if(strlen(c)<2)\n cout<<'0'<=13)\n {\n s[i]='0'+b/13; \n c[i+1]='0'+b%13; \n }\n else//??13 \n {\n b=(c[i]-'0')*100+(c[i+1]-'0')*10+(c[i+2]-'0');\n s[i+1]='0'+b/13;\n c[i+1]='0'+b%13/10;\n c[i+2]='0'+b%13%10; \n } \n }\n y=c[strlen(c)-1]-'0'; \n int r;\n if(z>=13)r=strlen(c)-1;\n else r=strlen(c)-2;//???? \n for(i=0;i<100;i++)\n if(s[i]!='\\0')\n {\n \n for(int k=i+1;k=3)\n {\n m=yushu*10+num[1]-'0';\n if(m>=13)\n {\n for(i=1;i<=d-1;i++)\n {\n m=yushu*10+num[i]-'0';\n yushu=m%13;\n shang[i-1]=m/13+'0';\n }\n shang[d-1]='\\0';\n }\n else\n {\n yushu=yushu*10+num[1]-'0';\n for(i=2;i<=d-1;i++)\n {\n m=yushu*10+num[i]-'0';\n yushu=m%13;\n shang[i-2]=m/13+'0';\n }\n shang[d-2]='\\0';\n }\n }\n\n puts(shang);\n printf(\"%d\",yushu);\n getchar(); getchar(); getchar(); getchar(); getchar();\n}\n\n"} +{"label": "96", "index": "47802", "code": "main()\n{\n int a[102],p[102],t,i,j,s,q;\n char str[102];\n scanf(\"%s\",&str);\n t=strlen(str);\n for (i=0;i 2)\n\t\t\tj = 1;\n\t\t\n\t\tfor (j; j < i; j++)\n\t\t\tcout << result[j];\n\t\tcout << endl;\n\t\tcout << yushu << endl;\n\t}\n\t\n\treturn 0;\n}"} +{"label": "96", "index": "47805", "code": "\nvoid main()\n{\n\tchar n[101];\n\tchar m[101];\n\tint i,c=0,l,t=0,k=0;\n\tscanf(\"%s\",n);\n\tl=strlen(n);\n\tfor(i=0;i> a;\n\t//?ascii?????\n\tif (a[1] == '\\0')\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << a[0] - '0' <=13)\n\t\t{\n k=(b[0]*10+b[1])/13;\n\t\t\ts=b[0]*10+b[1]-13*k;\n\t\t\tprintf(\"%d\\n%d\\n\",k,s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tk=0;\n\t\t\ts=b[0]*10+b[1];\n\t\t\tprintf(\"%d\\n%d\\n\",k,s);\n } \n\t}\n\telse if(n>=3)\n {\n\tif(10*b[0]+b[1]>=13)\n {\n\t c[0]=(10*b[0]+b[1])/13;\n\t s=10*b[0]+b[1]-13*c[0];\n\t printf(\"%d\",c[0]);\n\t\tfor(i=1;i=13)\n\t\t{\n\t\t\tq[j]=a/13;\n\t\t\tr=a%13;\n\t\t\ti=i+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(j!=0&&c[i+1]!='\\0')\n\t\t\t{q[j]=0;\n\t\t\tj++;}\n\t\t\tif(c[i+1]=='\\0')\n\t\t\t{\n\t\t\t\tq[j]=0;\n\t\t\t\tr=a;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta=r*100+num(c[i])*10+num(c[i+1]);\n\t\t\tq[j]=a/13;\n\t\t\tr=a%13;\n\t\t\ti=i+2;\n\t\t\t\n\t\t}\n\t\tif(c[i]=='\\0')\n\t\t\tbreak;\n\t}\n\tfor(i=0;i<=j;i++)\n\t\tprintf(\"%d\",q[i]);\n\t}\n\tprintf(\"\\n\");\n\tprintf(\"%d\\n\",r);\n\treturn 0;\n}\n\nint num(char c)\n{\n\tint y;\n\ty=c-'0';\n\treturn y;\n}"} +{"label": "96", "index": "47815", "code": "int main()\n{\n\tchar a[100];\n\tint b[100],c=0,i,n;\n\tfor(i=0;i<100;i++)\n\t{\n\t\ta[i] = '\\0';\n\t\tb[i] = 0;\n\t}\n\tscanf(\"%s\",a);\n\tn = strlen(a);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif((c*10+a[i]-'0')>=13)\n\t\t{\n\t\t\tb[i] = ((c*10+a[i]-'0')-((c*10+a[i]-'0')%13))/13;\n\t\t\tc = (c*10+a[i]-'0')%13;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tb[i] = 0;\n\t\t\tc = (c*10+a[i]-'0')%13;\n\t\t}\n\t}\n\tif(b[1]==0&&b[2]==0)\n\t\tprintf(\"0\");\n\telse if(b[1]==0&&b[2]!=0)\n\t\tfor(i=2;i=13)\n\t\t{\n\t\t\tan[0]=temp/13;\n\t\t\ttemp=temp%13;\n\t\t\tn++;\n\t\t}\n\t\twhile(j!=i)\n\t\t{\n\t\t\ttemp=10*temp+in[j];\n\t\t\tan[n]=temp/13;\n\t\t\ttemp=temp%13;\n\t\t\tn++;j++;\n\t\t}\n\t\tif(!n)cout<<'0';\n\t\tfor(int k=0;k> numerator; //????? \n for (i = 0; numerator[i] != '\\0'; i++) //???????????\n {\n quotient[i] = (remainder * 10 + (numerator[i] - '0')) / 13 + '0';\n //???i?=??????????i????10????13??\n //???????? \n remainder = (remainder * 10 + (numerator[i] - '0')) % 13; \n //??=??10????13??\n }\n quotient[i] = '\\0'; //????quotient??? \n i = 0; //?????????\n while (quotient[i] == '0') i++; //?????????\n if (quotient[i] == '\\0') cout << \"0\"; \n //???????13????????0?????0\n else \n do \n {\n cout << quotient[i];\n i++;\n } while (quotient[i] != '\\0');\n //???????????????????????? \n cout << endl << remainder << endl; //?????????????? \n\n return 0;\n}\n \n"} +{"label": "96", "index": "47819", "code": "int main()\n{\n\tint i=2,t,w=0;\n\tchar str[101];\n\tchar ans[100];\n\tstr[0] = '0';\n\tcin>>(str+1);\n\tif(str[2]==0||((str[1]-'0')*10+str[2]-'0'<13&&str[3]==0))\n\t{\n\t\tcout<<\"0\"<=13)\n\t\t{\n\t\t\tt -= 13;\n\t\t\tstr[i-2] = t/100 + '0';\n\t\t\tstr[i-1] = t/10 + '0';\n\t\t\tstr[i] = t%10 + '0';\n\t\t\tans[w]++;\n\t\t}\n\t\tw++;\n\t\ti++;\n\t}\n\tans[w]=0;\n\tcout<= 0; j -= 6)\n\t\tcount += (num[j] - 48);\n\tfor (j = i - 3; j >= 0; j -= 6)\n\t\tcount += (num[j] - 48) * 10;\n\tfor (j = i - 4; j >= 0; j -= 6)\n\t\tcount += (num[j] - 48) * 100;\n\tfor (j = i - 5; j >= 0; j -= 6)\n\t\tcount -= (num[j] - 48);\n\tfor (j = i - 6; j >= 0; j -= 6)\n\t\tcount -= (num[j] - 48) * 10;\n\tfor (j = i - 7; j >= 0; j -= 6)\n\t\tcount -= (num[j] - 48) * 100;\n\tremainder = count % 13;\n\tnumerator = (num[0] - 48) * 10 + (num[1] - 48);\n\tfor (k = 0; k < i - 2; k++)\n\t{\n\t\tproduct[k] = floor(numerator / 13);\n\t\tleft = numerator - 13 * product[k];\n\t\tnumerator = left * 10 + (num[k + 2] - 48);\n\t}\n\tif ((product[0] == 0) && (product[1] == 0))\n\t\tcout << \"0\" << endl;\n\tif (product[0] != 0)\n\t{\n\t\tcout << product[0];\n\t\tfor (k = 1; k < i - 2; k++)\n\t\t\tcout << product[k];\n\t\tcout << endl;\n\t}\n\tif ((product[0] == 0) && (product[1] != 0))\n\t{\n\t\tfor (k = 1; k < i - 2; k++)\n\t\t\tcout << product[k];\n\t\tcout << endl;\n\t}\n\tcout << remainder << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47821", "code": "main()\n{\nchar a[100];\nint e;\nint n,i,b,k;\nscanf(\"%s\",a);\nn=strlen(a);\nif(n==2)\n {\n k=(a[0]-'0')*10+a[1]-'0';\n e=k/13;b=k%13;\n printf(\"%d\\n%d\",e,b);\n }\n else if(n==1)\n {\n e=0;b=a[0]-'0';\n printf(\"%d\\n%d\",e,b);\n }\n else\n {\n if((a[0]-'0')*10+(a[1]-'0')<13)\n {\n e=((a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0'))/13;\n b=((a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0'))%13;\n printf(\"%d\",e);\n for(i=1;i9;j++)\n{a=0;\nfor(i=8;i>=0;i--)\n{\na+=(s[i]-'0')*(int)pow(10,8-i);\n}\nshang=a/13;printf(\"%d\",shang);\nyu=a%13;\nif(yu>=10)\n{\ns[0]=yu/10+'0';\ns[1]=yu%10+'0';\nfor(k=2;k<=100;k++)\ns[k]=s[k+7];\n}\nelse if(yu>0)\n{\ns[0]=yu+'0';\nfor(k=1;k<=100;k++)\ns[k]=s[k+8];\n}\nelse if(yu==0)\n{\nfor(k=0;k<=100;k++)\ns[k]=s[k+9];\n}\nl=strlen(s);\n}\na=0;\nfor(i=l-1;i>=0;i--)\n{\na+=(s[i]-'0')*(int)pow(10,l-1-i);\n}\nshang=a/13;printf(\"%d\\n\",shang);\nyu=a%13;\nprintf(\"%d\",yu);\n}"} +{"label": "96", "index": "47824", "code": "void main()\n{\n\tchar a[101];\n\tchar b[101];\n\tint i,n,m,l;\n\tgets(a);\n\tl=strlen(a);\n\tn=0;\n\tfor(i=0;i=13)\n\t\t{\n\t\t\tfor(i=1;i=13)\n {\n c[b]=(d*10+i[b])/13;\n d=(d*10+i[b])%13;\n }\n else\n {\n if(b=1)\n {a=10*(bei[0]-'0')+bei[1]-'0';\n shang[0]=a/13+'0';\n for(i=1;i1))\n {\n for(i=0;i<=wei-2;i++)\n shang[i]=shang[i+1];\n shang[wei-1]='\\0';} \n \n \n printf(\"%s\\n\",shang);\n printf(\"%d\\n\",a);\n }\n \n }"} +{"label": "96", "index": "47828", "code": "main()\n{\nconst int last=1000;\nchar s[1050];\nscanf(\"%s\",s);\nint num[1050];\nint len=strlen(s);\nint i;\ni=last+1;\nfor (int j=len-1;j>=0;j--)\n{i--;\nnum[i]=(s[j]-'0');}\nint st=i;\nnum[last+1]=0;\nwhile (i<=last)\n{\nnum[i+1]+=num[i]%13*10;\nnum[i]=num[i]/13;\ni++;\n}\nwhile (num[st]==0) st++;\nif (st>last) printf(\"0\");\nfor (i=st;i<=last;i++) \nprintf(\"%c\",num[i]+'0');\nprintf(\"\\n\");\nprintf(\"%d\",num[last+1]/10);\n}\n"} +{"label": "96", "index": "47829", "code": "int main()\n{\tchar c[200];\n\tint zs[200],shang[200];\n\tint i,j,yu=0,flag=0;\n\tgets(c);\n\tfor(i=strlen(c)-1;i>=0;i--){\n\t\tzs[i]=c[i]-'0';\n\t}\n\tfor(i=0;i=13)\n {\n c[i]=d[i]/13;\n d[i+1]=(d[i]%13)*10;\n } \n else\n {\n c[i]=0;\n d[i+1]=d[i]*10;\n } \n }\n m=d[k]/10;\n if(c[1]==0)\n {\n for(i=2;i=13)\n printf(\"%d\\n%d\\n\",t/13,t%13);\n else if( k>1&&(10*b[0]+b[1])<13)\n { for(m=2;m<=k;m++)\n { \n t=t*10+b[m];\n c[m]=t/13;\n t=t%13;\n }\n for(m=2;m<=k;m++)\n printf(\"%d\",c[m]);\n printf(\"\\n\");\n printf(\"%d\\n\",t);}\n\n else if(k>1&&(10*b[0]+b[1])>=13)\n { for(m=1,t=b[0];m<=k;m++)\n { \n t=t*10+b[m];\n c[m]=t/13;\n t=t%13;\n }\n for(m=1;m<=k;m++)\n printf(\"%d\",c[m]);\n printf(\"\\n\");\n printf(\"%d\\n\",t);}\n\n else return 0;\n\n \n \n} \n \n \n"} +{"label": "96", "index": "47833", "code": "char aaa[110],shang[110],yushu[2];\nint len;\nint t=0,jw;\nvoid chu2(char a,char b)//?????13\n{\n\tint numa,numb,num;\n\tnuma=a-48;\n\tnumb=b-48;\n\tnum=numa*10+numb;\n\tif(num==13)\n\t{\n\t\tshang[t]=1;\n\t\tt++;\n\t\tfor(int i=0;i<=len-2;i++)\n\t\t{\n\t\t\taaa[i]=aaa[i+2];\n\t\t}\n\t\tlen=len-2;\n\t}\n\telse\n\t{\n\t\tshang[t]=num/13+48;\n\t\tt++;\n\t\tif(num%13>=10)\n\t\t{\n\t\t\taaa[0]='1';\n\t\t\taaa[1]=(num%13-10)+48;\n\t\t}\n\t\telse\n\t\t{\n\t\t\taaa[0]=num%13+48;\n\t\t\tfor(int i=1;i<=len-1;i++)\n\t\t\t{\n\t\t\t\taaa[i]=aaa[i+1];\n\t\t\t}\n\t\t\tlen=len-1;\n\t\t}\n\t}\n}\nvoid chu3(char a,char b, char c)//?????13\n{\n\tint numa,numb,numc,num;\n\tnuma=a-48;\n\tnumb=b-48;\n\tnumc=c-48;\n\tnum=numa*100+numb*10+numc;\n\tshang[t]=num/13+48;\n\tt++;\n\tif(num%13>=10)\n\t{\n\t\taaa[0]='1';\n\t\taaa[1]=(num%13-10)+48;\n\t\tfor(int i=2;i<=len-1;i++)\n\t\t{\n\t\t\taaa[i]=aaa[i+1];\n\t\t}\n\t\tlen=len-1;\n\t}\n\telse\n\t{\n\t\taaa[0]=num%13+48;\n\t\tfor(int i=1;i<=len-2;i++)\n\t\t{\n\t\t\taaa[i]=aaa[i+2];\n\t\t}\n\t\tlen=len-2;\n\t}\n}\nint main()\n{\n\tchar a,b,c;\n\tcin.getline(aaa,110,'\\n');\n\tlen=strlen(aaa)-1;\n\n\tif(aaa[0]=='3'&&aaa[1]=='8'&&aaa[2]=='4')\n\t{\n\t\tcout<<\"29602496797311515892139198536684597615083776504688161069276314930161031480\"<1)\n\t{\n\t\tif(aaa[0]=='1'&&aaa[1]<=50)\n\t\t{\n\t\t\ta=aaa[0];\n\t\t\tb=aaa[1];\n\t\t\tc=aaa[2];\n\t\t\tchu3(a,b,c);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta=aaa[0];\n\t\t\tb=aaa[1];\n\t\t\tchu2(a,b);\n\t\t}\n\t}\n\tif(len==1)\n\t{\n\t\tif(aaa[0]=='1'&&aaa[1]<50)\n\t\t{\n\t\t\tyushu[0]=aaa[0];\n\t\t\tyushu[1]=aaa[1];\n\t\t\tjw=2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta=aaa[0];\n\t\t\tb=aaa[1];\n\t\t\tint numa,numb,num;\n\t\t\tnuma=a-48;\n\t\t\tnumb=b-48;\n\t\t\tnum=numa*10+numb;\n\t\t\tif(num==13)\n\t\t\t{\n\t\t\t\tshang[t]=1;\n\t\t\t\tt++;\n\t\t\t\tyushu[0]='0';\n\t\t\t\tjw=1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tshang[t]=num/13+48;\n\t\t\t\tt++;\n\t\t\t\tif(num%13>=10)\n\t\t\t\t{\n\t\t\t\t\tyushu[0]='1';\n\t\t\t\t\tyushu[1]=(num%13-10)+48;\n\t\t\t\t\tjw=2;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tyushu[0]=num%13+48;\n\t\t\t\t\tjw=1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\tif(len==0)\n\t{\n\t\tyushu[0]=aaa[0];\n\t\tjw=1;\n\t}\n\tfor(int i=0;i= lenth)\n\t\tprintf(\"0\");\n else\n\t{\n\t\tfor( j = i ; j <= lenth - 1 ; j ++)\n\t\tprintf(\"%d\",shang[j]);\n\t}\n\t\tprintf(\"\\n\");\n\t\tprintf(\"%d\\n\",s);\n\t\n\t\treturn 0;\n}\n\t\t\n\n\n \n\t"} +{"label": "96", "index": "47835", "code": "main()\n{\n\tint i,j,al;\n\tchar c[4]=\"013\";\n\tchar cf[3]=\"13\";\n\tchar a[233],b[233],d[233],e[4],ef[3];\n\tscanf(\"%s\",a);\n\tal=strlen(a);\n\tfor(i=0;i=0;j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tb[i]=b[i]-1;\n\t\t\t\tb[i+1]=b[i+1]-3;\n\t\t\t\t//printf(\"%s\\n\",b);\n\t\t\t\tif(b[i+1]<'0')\n\t\t\t\t{\t\n\t\t\t\t\tb[i+1]=b[i+1]+10;\n\t\t\t\t\tb[i]=b[i]-1;\n\t\t\t\t}\n\t\t\t//\tprintf(\"%s\\n\",b);\n\t\t\t\tef[0]=b[0];\n\t\t\t\tef[1]=b[1];\n\t\t\t\t\n\t\t\t}\n\t\t\td[0]=j+'0';\n\t\t//\tprintf(\"%s\\n\",d);\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\te[0]=b[i-1];\n\t\t\te[1]=b[i];\n\t\t\te[2]=b[i+1];\n\t\t//\tprintf(\"%s\\n\",b);\n\t\t\tfor(j=0;strcmp(e,c)>=0;j++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tb[i]=b[i]-1;\n\t\t\t\tb[i+1]=b[i+1]-3;\n\t\t\t\tif(b[i+1]<'0')\n\t\t\t\t{\n\t\t\t\t\tb[i]=b[i]-1;\n\t\t\t\t\tb[i+1]=b[i+1]+10;\n\t\t\t\t}\n\t\t\t\tif(b[i]<'0')\n\t\t\t\t{\n\t\t\t\t\tb[i-1]=b[i-1]-1;\n\t\t\t\t\tb[i]=b[i]+10;\n\t\t\t\t}\n\t\t\t\te[0]=b[i-1];\n\t\t\t\te[1]=b[i];\n\t\t\t\te[2]=b[i+1];\n\t\t//\t\tprintf(\"%s\\n\",b);\n\t\t\t}\n\t\t\td[i]='0'+j;\n\t\t//\tprintf(\"%s\\n\",d);\t\n\t\t}\n\t}\n\tif(d[0]=='0')\n\t{\n\t\tfor(i=0;i> N;\n\twhile(N[i] != '\\0')\n\t{\n\t\tnum[i] = N[i] - '0';\n\t\ti++;\n\t}\n\tlen = i;\n\tif (len == 1)\n\t{\n\t\tcout << \"0\" << endl << N[0];\n\t}\n\telse\n\t{\n\t\tresult[0] = (num[0] * 10 + num[1]) / 13;\n\t\ttemp[1] = (num[0] * 10 + num[1]) % 13;\n\t\tif (result[0] != 0 || len <= 2)\n\t\t\tcout << result[0];\n\t\tfor(i = 1; i <= len - 2; i++)\n\t\t{\n\t\t\tresult[i] = (temp[i] * 10 + num[i+1]) / 13;\n\t\t\tcout << result[i];\n\t\t\ttemp[i+1] = (temp[i] * 10 + num[i+1]) % 13;\n\t\t}\n\t\tcout << endl;\n\t\tcout << temp[i] << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47838", "code": "//********************************\n//*???3.cpp **\n//*?????? 1200012768 **\n//*???2012.11. **\n//*?????13 **\n//********************************\nint main()\n{\n\tchar ch[101];\n\tint res[100], rem = 0, i = 0, j, flag = 0;\n\tfor\t(i = 0; i < 101; i++)\n\t{\n\t\tcin.get(ch[i]);\n\t\tif (ch[i] == '\\n')\n\t\t\tbreak;\n\t\tres[i] = (int)(ch[i] - '0' + 10 * rem) / 13;\n\t\trem = (int)((ch[i] - '0' + 10 * rem) % 13);\n\t}\n\tfor (j = 0; j < i; j++)\n\t{\n\t\tif (flag == 0 && res[j] != 0)\n\t\t{\n\t\t\tcout << res[j];\n\t\t\tflag = 1;\n\t\t}\n\t\telse if (flag != 0)\n\t\t\tcout << res[j];\n\t}\n\tif (flag == 0)\n\t\tcout << 0;\n\tcout << endl << rem << endl;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47839", "code": "int main()\n{\n\tchar beichu[110];\n\tint shang[110];\n\tscanf(\"%s\",beichu);\n\tint sheng,i;\n\tsheng=beichu[0]-'0';\n\tshang[0]=0;\n\tfor(i=1;i=13)\n\t\t{\n\t\t\tshang[i]=(sheng*10+beichu[i]-'0')/13;\n\t\t\tsheng=(sheng*10+beichu[i]-'0')%13;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsheng=sheng*10+beichu[i]-'0';\n\t\t\tshang[i]=0;\n\t\t}\n\t}\n\tint flag=0;\n\tfor(i=0;i> number;\n\tlen = strlen(number);\n\tif(len == 1)\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << (number[0] - '0')% 13 << endl;\n\t}\n\telse if(len == 2 && number[0] == '1' && number[1] >= '0' && number[1] <= '2')\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << (10 + number[1] - '0')% 13 << endl;\n\t}\n\telse\n\t{\n\tmod = (number[0] - '0') % 13;\n\tnum[0] = (number[0] - '0') / 13;\n\tfor(i = 1 ; i < len ; i++)\n\t{\n\t\tnum[i] = (mod * 10 + number[i] - '0') / 13 ;\n mod = (mod * 10 + number[i] - '0') % 13;\n\t}\n\tfor(i = 0 ; i < len ; i++)\n\t\tif(num[i] != 0)\n\t\t{\n\t\t\tstart = i;\n\t\t\tbreak;\n\t\t}\n\tfor(i = start ; i < len ; i++)\n\t\tcout << num[i];\n\tcout << endl;\n\tcout << mod << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47845", "code": "/*??(12-11) ??13\n??\n??????0????N??????100?????????13?????????????\n????\n????0??????????100?\n????\n??????????????????*/\nint main()\n{\n int l,i,t=0,p=0,j,temp,k;\n short int a[100],b[100],r;\n char ip[100];\n cin>>ip;\n l=strlen(ip);\n for(i=0;i>dividend;\n\tint q=dividend[0]-'0';\n\tint i,len; \n len=strlen(dividend);//len????????? \n for (int i=1;i= 0 ; i--)\n {\n d = d * 10 + a[i];\n c[i] = d / 13;\n d = d % 13; \n } \n while(c[k - 1] == 0 && k > 1) \n {\n k--;\n } \n for(i = k - 1; i >= 0; i--) \n {\n printf(\"%d\", c[i]);\n }\n printf(\"\\n%d\", d);\n getchar();\n getchar();\n getchar(); \n}\n \n "} +{"label": "96", "index": "47856", "code": "int main()\n{\n int m,n,i=0,k,t;\n char a[100]={0},b[100]={0};\n scanf(\"%s\",a);\n t=strlen(a);\n \n if(t==1)\n {b[0]='0',n=a[0]-'0';}\n \n else if(t==2&&(a[0]=='1'&&(a[1]=='0'||a[1]=='2'||a[1]=='2')))\n {b[0]='0'; n=(a[0]-'0')*10+a[1]-'0';}\n \n else if(a[0]=='1'&&(a[1]=='0'||a[1]=='1'||a[1]=='2'))\n {\n m=(a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0');\n for(i=0;i>a;\n\tlen=strlen(a);\n\tfor(i=0;i=13)\n\t\t{\tresult[t]=c/13;//???\n\t\t t++;\n\t\t c=c%13;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult[t]=0;\n\t\t\tt++;\n\t\t}\n\t}\n\ti=0;\n\twhile(result[i]==0)\n\t{i++;}\n\tif(i>=len)//???????\n\t\tcout<<\"0\";\n\telse\n\t{\n\tfor(;i2){\n\t\t\tcontinue ;\n\t\t\t}\n\t\t else {\n\t\t\t printf(\"%d\",s);\n\t\t\t}\n\t\t}\n\t else {\n\t\t printf(\"%d\",s);\n\t\t} \n\t}\n\t if (i==strlen(cs)-1){\n\t printf(\"\\n\");\n\t printf(\"%d\",ys);\n\t}\n}\nreturn 0;\n}"} +{"label": "96", "index": "47859", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint n,j=0,temp,yu,num=0;\n scanf(\"%s\",a);\n\tn=strlen(a);\n\tfor(int i=1;i1)\n\t\t\tnum++;\n\t\telse\n\t\t\tbreak;\n\t}\n\tfor(int i=num;i> dashu;//??????\n\tn = strlen(dashu);//????????\n\tyu = 0;//yu????\n\tp = 200;//p????????0\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tshang[i] = (yu * 10 + dashu[i] - '0') / 13 + '0';\n\t\t//?????????????\n\t\tyu = (yu * 10 + dashu[i] - '0') - 13 * (shang[i] - '0');\n\t\t//????????????ascii???????\n\t}\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tif(shang[i] != '0')\n\t\t{\n\t\t\tp = i;//??????????????0?????\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(p == 200)//?p=200,?????????,???0\n\t\tcout << \"0\";\n\telse\n\t{\n\t\tfor(i = p; i < n; i ++)\n\t\t\tcout << shang[i];//?????0????????\n\t}\n\tcout << endl << yu << endl;//????\n\treturn 0;\n}"} +{"label": "96", "index": "47862", "code": "main()\n{\n char a[101];\n scanf(\"%s\",a);\n int n=strlen(a);\n int b[101];\n for (int i=0;i>a;\n\tfor(int i = 0; i < strlen(a); i++) //??????????????\n\t\tc[i] = a[i] - '0';\n\tif(strlen(a) == 1) //????????????0????\n\t{\n\t\tcout<<0<2)\n {\n a[0]=(s[0]-'0')*10+(s[1]-'0');\n if(a[0] >= 13)\n {\n printf(\"%d\",a[0]/13);\n }\n b[0]=a[0]%13;\n for(i=1;i=13)\n { s=(N[0]-'0')*10+N[1]-'0';\n for(i=0;i<(l-2);i++)\n {\n S[i]=s/13+'0';\n s=(s%13)*10+N[i+2]-'0';\n } \n S[i]=s/13+'0';\n s=s%13;\n S[i+1]='\\0';\n printf(\"%s\\n\",S);\n printf(\"%d\\n\",s); \n } \n else\n {\n s=(N[0]-'0')*100+(N[1]-'0')*10+N[2]-'0'; \n for(i=0;i<(l-3);i++)\n {\n S[i]=s/13+'0';\n s=(s%13)*10+N[i+3]-'0';\n } \n S[i]=s/13+'0';\n s=s%13;\n S[i+1]='\\0';\n printf(\"%s\\n\",S);\n printf(\"%d\\n\",s); \n }\n }\n getchar();\n getchar();\n}"} +{"label": "96", "index": "47866", "code": " int main()\n{ char a[101]={0};\n int b[101]={0};\n int c[101]={0};\n int i,l,m;\n cin>>a;\n l=strlen(a);\n if(l==1)\n {cout<<\"0\"<=1;i--)\n {m=b[i]*10+b[i-1];\n b[i-1]=m%13;\n c[i-1]=m/13;}\ni=l-1;\n while(c[i]==0)i--;\n for(;i>=0;i--)\n cout<= 3) //???????????\n\t{\n\tif (x >= 13) //?????????13????al - 1?\n\t{\n\t\tx = 10 * (a[0] - '0') + a[1] - '0';\n\t\tu = 0; \n\t\twhile (u <= al - 3) //???????????????????\n\t\t{\n\t\t\tb[u] = x / 13;\n\t\t\tx = (x % 13) * 10 + (a[u + 2] - '0');\n\t\t\tu++;\n\t\t}\n\t\tb[al - 2] = x / 13; //?????????\n\t\ty = x % 13; //y???\n\t\tfor (u = 0; u <= al - 2; u++)\n\t\t{\n\t\t\tcout << b[u];\n\t\t}\n\t\tcout << endl;\n\t\tcout << y << endl;\n\t}\n\tif (x < 13) //??????13?????al-3?\n\t{\n\t\tx = 100 * (a[0] - '0') + 10 * (a[1] - '0') + a[2] - '0';\n\t\tu = 0;\n\t\twhile (u <= al - 4) //?????????????\n\t\t{\n\t\t\tb[u] = x / 13;\n\t\t\tx = (x % 13) * 10 + (a[u + 3] - '0');\n\t\t\tu++;\n\t\t}\n\t\tb[al - 3] = x / 13;\n\t\ty = x % 13;\n\t\tfor (u = 0; u <= al -3; u++)\n\t\t{\n\t\t\tcout << b[u];\n\t\t}\n\t\tcout << endl;\n\t\tcout << y << endl;\n\t}\n\t}\n\tif (al == 1) //????????????\n\t{\n\n\t\tcout << \"0\" << endl << a[0] - '0' << endl; //?????????0\n\t}\n\tif (al == 2) //????????????\n\t{\n\t\tx = (a[0] - '0') * 10 + a[1] - '0'; //?????????\n\t\tcout << x / 13 << endl << x % 13 << endl;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "96", "index": "47870", "code": "main()\n{\n char a[150];\n char b [150];\n int i,l,c,d,e,f;\n scanf(\"%s\",a);\n l=strlen(a);\n if (l>2)\n {\n if((a[0]-'0')*10+(a[1]-'0')>=13)\n {\n b[0]=((a[0]-'0')*10+(a[1]-'0'))/13+'0';\n c=(a[0]-'0')*10+(a[1]-'0');\n for(i=1;i<=l-2;i++)\n {\n d=(b[i-1]-'0')*13;\n c=(c-d)*10+(a[i+1]-'0');\n b[i]=c/13+'0';\n }\n b[l-1]='\\0';\n f=c-(b[l-2]-'0')*13; \n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n }\n else\n {\n b[0]=((a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0'))/13+'0';\n c=(a[0]-'0')*100+(a[1]-'0')*10+(a[2]-'0');\n for(i=1;i<=l-3;i++)\n {\n d=(b[i-1]-'0')*13;\n c=(c-d)*10+(a[i+2]-'0');\n b[i]=c/13+'0'; \n }\n b[l-2]='\\0';\n f=c-(b[l-3]-'0')*13;\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n }\n }\n else {if(l==2)\n {\n b[0]=((a[0]-'0')*10+(a[1]-'0'))/13+'0';\n b[1]='\\0';\n f=((a[0]-'0')*10+(a[1]-'0'))%13;\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n \n }\n else \n {\n \n b[0]=(a[0]-'0')/13+'0';\n b[1]='\\0';\n f=a[0]-'0';\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",f);\n }}\n \n \n }\n\n"} +{"label": "96", "index": "47871", "code": "int main()\n{\n\tchar num[110],a[3]={' ',' ','\\0'},qq[110]; //????\n\tint i=0;\n\tcin >>num;\n\tint n=strlen(num);\n\tmemset(qq,'\\0',110); //???\n\twhile (i0&&num[i-1]>'0') x+=100; \n\t\tint t=x%13,q=x/13; //??????\n\t\tqq[i]='0'+q;\n\t\tif (t>=10) //??\n\t\t{\n\t\t\tt-=10;\n\t\t\tnum[i]='1';num[i+1]='0'+t;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tnum[i]='0';num[i+1]='0'+t;\n\t\t}\n\t\ti++;\n\t}\n\tif (n==1)\n\t{\n\t\tcout <<0 <2)\n\t for (int i=0;i='1'&&b[i]<='9')\n\t\t\t{\n\t\t\t\tprintf(\"%c\",b[i]);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%c\",b[i]);\n\t\t}\n\t\ti++;\n\t}while(b[i]!='!');\n\tif(flag==0)\n\t{\n\t\tprintf(\"0\");\n\t}\n\tprintf(\"\\n%d\",r);\n}\n"} +{"label": "96", "index": "47874", "code": "int main()\n{\n char a[100];\n int divide[100], mod[100];\n int len;\n cin >> a;\n len = strlen(a);\n if (len == 1)\n {\n cout << 0 << endl;\n cout << a[0];\n }\n else\n if(len == 2)\n {\n cout << (10 * (a[0] - '0') + (a[1] - '0')) / 13 << endl;\n cout << (10 * (a[0] - '0') + (a[1] - '0')) % 13;\n }\n else\n {\n divide[0] = (10 * (a[0] - '0') + (a[1] - '0')) / 13;\n mod[0] = (10 * (a[0] - '0') + (a[1] - '0')) % 13;\n for (int i = 1; i < len - 1; i++)\n {\n divide[i] = (10 * mod[i - 1] + (a[i + 1] - '0')) / 13;\n mod[i] = (10 * mod[i - 1] + (a[i + 1] - '0')) % 13;\n }\n if (divide[0])\n cout << divide[0];\n for (int i = 1; i < len - 2; i++)\n {\n cout << divide[i];\n }\n cout << divide[len - 2] << endl;\n cout << mod[len - 2] << endl;\n }\n return 0;\n} \n\n"} +{"label": "96", "index": "47875", "code": "//****************************************\n//*?????13 \n//*?????? 1100012789 \n//*???2011.11.4 \n//****************************************\n\nint main()\n{\n\tchar number[101], result[101]; // number????????result?????\n\tint i, remain = 0, digit; // i?????remain??????digit??????\n\tcin >> number;\n\tdigit = strlen(number);\n\tfor (i = 0; i < digit; i++)\n\t{\n\t\tresult[i] = ((remain * 10 + (number[i] - '0')) / 13) + '0'; // ?????????\n\t\tremain = (remain * 10 + (number[i] - '0')) % 13; // ???????\n\t}\n\tresult[i] = '\\0'; // ??????\n\tfor (i = 0; result[i] == '0' && i < strlen(result) - 1;) // ?????????????????\n\t\t\ti++;\n\tcout << result + i << endl;\n\tcout << remain << endl;\n\treturn 0;\n}\n//??3?11?????????"} +{"label": "96", "index": "47876", "code": "//*********************\n//* ??? ??13 *\n//* ??? 1200012878 *\n//* 11?16? *\n//*********************\nint main()\n{\n\tchar a[101];\n\tint num[101], b[101];\n\tint len, flag = 0, r, i;\n\tcin >> a;\n\tlen = strlen(a);\n\tfor (i = 0; i <= len - 1; i++)\n\t\tnum[i] = a[i] - '0';\n\tr = 0;\n\tfor (i = 0; i <= len - 1; i++)\n\t{\n\t\tb[i] = (r * 10 + num[i]) / 13;\n\t\tr = (r * 10 + num[i]) % 13;\n\t}\n\tfor (i = 0; i <= len - 1; i++)\n\t{\n\t\tif (b[i] != 0 || flag == 1)\n\t\t{\n\t\t\tcout << b[i];\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif (flag == 0)\n\t\tcout << \"0\";\n\tcout << endl;\n\tcout << r << endl;\n\treturn 0;\n}\n\n"} +{"label": "96", "index": "47877", "code": "main()\n{\n\tchar a[101]={0},re[100]={0};\n\tint i,j,k=0,l,te;\n\tscanf(\"%s\",a);\n\tl=strlen(a);\n\tte=a[0]-'0';\n\tfor (i=1;i> num;\n\tcount_num = strlen(num);\n\tmod = 0;\n\tfor (j = 0; j < count_num; j++)\n\t//???????????,???????,?????13,?????10??????,????13,??????\n\t\t\n\t{\n\t\tmod = mod * 10 + num[j] - '0';\t//?????????????10????????????\n\t\tshang[j] = mod / 13 + '0';\t//?j???????\n\t\tmod = mod % 13;\t//???????????????13???\n\t}\n\tshang[count_num] = '\\0';\t//????????,???????????0,??????,???????\n\tfor (j = 0; ; j++)\n\t{\n\t\tif (shang[j] - '0')\t//????????0?\n\t\t{\n\t\t\tk = j;\t//?????\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(j == count_num)\t//???0\n\t{\n\t\tcout << \"0\" << endl;\n\t}\n\telse\n\t{\n\t\tcout << shang + j << endl;\n\t}\n\tcout << mod << endl;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47880", "code": "int main(){\n\tint m,i;\n\tint sz[1000];\n\tint jg[1000];\n\tchar zfc1[1000];\n\tscanf(\"%s\",zfc1);\n m=strlen(zfc1);\n\tfor(i=0;i=2){\n\t\tif((m==2)&&(sz[0]*10+sz[1]<13)){printf(\"%d\\n\",0);}\n\tfor(i=0;i= 13)\n\t\t\t{\n\t\t\t\tb[i - 1] = n / 13 + 48;\n\t\t\t\tm = n % 13;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tb[i-1] = 48;\n\t\t\t\tm = n;\n\t\t\t}\n\t\t}\n\t\tif (b[1] != 0)\n\t\t{\n\t\t\tcout << b + k << endl;\n\t\t\tcout << m;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << b[0] << endl;\n\t\t\tcout << m;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47882", "code": "void main()\n{\n\tchar *p;\n\tchar s[101];\n\tchar a[101];\n\tint i,l,t;\n\tint x=0;\n\tscanf(\"%s\",s);\n\tl=strlen(s);\n\tfor(t=0,i=0;i=13)\n\t\t\tt=t%13*10;\n\t\telse\n\t\t\tt=t*10;\n\t}\n\n\tt=t/10;\n\ta[l]=0;\n\tif(l==1)\n\t\tprintf(\"%c\\n%c\\n\",'0',s[0]);\n\telse if (l==2&&(s[0]-'0')*10+s[1]-'0'<13)\n\t\tprintf(\"%c\\n%s\\n\",'0',s);\n\telse\n\t{\n\t\tfor(i=0;i> num;\n\n\tif ((num[1] == '\\0') || \n\t\t(num[2] == '\\0' && (((num[0]-'0') * 10 + num[1] - '0') < 13)))\n\t\tcout << \"0\" << endl;\n\telse\n\t{\n\t\tq = ((num[0] - '0') * 10 + num[1] - '0') / 13;\n\t\tif (q != 0)\n\t\t{\t\n\t\t\tcout << q;\n\t\t\tr = ((num[0] - '0') * 10 + num[1] - '0') % 13;\n\t\t\tfor (i = 2; num[i] != '\\0'; i++)\n\t\t\t{\n\t\t\t\tq = (r * 10 + num[i] - '0') / 13;\n\t\t\t\tcout << q;\n\t\t\t\tr = (r * 10 + num[i] - '0') % 13;\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tr = ((num[0] - '0') * 100 + (num[1] - '0') * 10 + num[2] - '0') % 13;\n\t\t\tq1 = ((num[0] - '0') * 100 + (num[1] - '0') * 10 + num[2] - '0') / 13;\n\t\t\tcout << q1;\n\t\t\tfor (i = 3; num[i] != '\\0'; i++)\n\t\t\t{\n\t\t\t\tq = (r * 10 + num[i] - '0') / 13;\n\t\t\t\tcout << q;\n\t\t\t\tr = (r * 10 + num[i] - '0') % 13;\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\n\t}\n\n\tr = 0;\n\t// ???????r\n\tfor (i = 0; num[i] != '\\0'; i++)\n\t{\n\t\tr = (r * 10 + num[i] - '0') % 13;\n\t}\n\tcout << r << endl;\n\n\treturn 0;\n}"} +{"label": "96", "index": "47886", "code": "\nint main ()\n{\n\tchar a[101];\n\tint i = 0, yushu = 0 , b[101] = {0}, k = 0;\n\tcin.getline(a, 100);\n\twhile (a[i] != '\\0')\n\t{\n\t\tb[i] = (yushu * 10 + a[i] - '0') / 13;\n\t\tyushu = (yushu * 10 + a[i] - '0') % 13;\n\t\ti++;\n\t}\n\tk = i - 1;\n\tif (k == 0)\n\t\tcout << \"0\" << endl << a[0] << endl;\n\telse \n\t{\n\t\tif ((a[0] - '0') * 10 + a[1] - '0' < 13 && k == 1)\n\t\t{\n\t\t\tcout << ((a[0] - '0') * 10 + a[1] - '0') / 13 << endl;\n\t\t\tcout << ((a[0] - '0') * 10 + a[1] - '0') % 13 << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ((a[0] - '0') * 10 + a[1] - '0' < 13 && k > 1)\n\t\t\t\ti = 2;\n\t\t\telse\n\t\t\t\ti = 1;\n\t\t\tfor (i; i <= k; i++)\n\t\t\t\tcout << b[i];\n\t\t\tcout << endl;\n\t\t\tcout << yushu << endl;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47887", "code": "int main()\n{\n\tchar number[100];\n\tint i, toDevide, tell = 0;\n\tcin >> number;\n\ttoDevide = number[0] - '0';\n\tfor(i = 1; number[i] != '\\0'; i++)\n\t{\n\t\ttoDevide = toDevide * 10 + number[i] - '0';\n\t\tif(i > 1 || toDevide / 13 != 0)\n\t {\n cout << toDevide / 13;\n tell++;\n }\n\t\ttoDevide %= 13;\n\t}\n if ( tell == 0) \n cout << '0';\n\tcout << endl << toDevide << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47888", "code": "int main()\n{\n\tint a[105],b[100],i=0,e=0;\n\tchar d;\n\tchar x[105]={'\\0'};\n\twhile (cin>>x)\n\t{\n\t int j4=0;\n\twhile (x[j4]!='\\0')\n\t{\n\t\tint c;\n\t\tc=x[j4]-'0';\n\t\ta[i++]=c;\n\t\tj4++;\n\t}\n\td=0,j4=0;\n\tfor (int j=0;j<=i-1;j++)\n\t{\n\t\te=e*10+a[j];\n\t\tb[j]=e/13;\n\t\te=e%13;\n\t}\n\tint flag=0;\n\tfor (int i2=0;i2<=i-1;i2++)\n\t{\n\t\tif (b[i2]!=0)\n\t\t\tflag=1;\n\t\tif (flag==1)\n\t\t cout<> num ;\n\tp = strlen(num) ; //???????\n\tfor ( i = 0 ; i < p ; i++ )\n\t a[i] = num[i] - '0' ; //???????\n\tif ( p > 1 )\n\t{\n for ( i = 1 ; i < p ; i++ ) //??????\n\t {\n\t\tif ( i >= 2 ) //????????????????????\n\t\t{\n\t\t if ( a[i-2] == 0 )\n\t\t {\n b[i] = ( a[i-1] * 10 + a[i] ) / 13 ; //???????\n t = ( a[i-1] * 10 + a[i] ) % 13 ; //t???\n\t\t\t a[i] = t % 10 ;\n a[i-1] = t / 10 ; \n\t\t }\n\t else\n\t\t {\n\t\t\t t = ( a[i-2] * 100 + a[i-1] * 10 + a[i] ) % 13 ;\n\t\t\t b[i] = ( a[i-2] * 100 + a[i-1] * 10 + a[i] ) / 13 ;\n\t\t \t a[i] = t % 10 ;\n a[i-1] = t / 10 ;\n\t\t\t a[i-2] = 0 ;\n\t\t }\n\t\t}\n\t\telse //??????????????????\n\t\t{\n\t\t\tb[i] = ( a[i-1] * 10 + a[i] ) / 13 ;\n\t\t\tt = ( a[i-1] * 10 + a[i] ) % 13 ;\n\t\t\ta[i] = t % 10 ;\n a[i-1] = t / 10 ;\n\t\t}\n\t }\n if ( b[1] == 0 && p > 2 )\n\t\ti = 2 ;\n\t else \n\t\ti = 1 ;\n\t for ( ; i < p ; i++ )\n\t cout << b[i] ; //????\n\t cout << endl ;\n\t cout << t << endl; //????\n\t}\n\t else\n\t{\n\t\tcout << \"0\" << endl;\n\t\tcout << num[0] << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47890", "code": "int main()\n{\n\tchar a[100];\n\tscanf(\"%s\",a);\n\tint b[100];\n\tint c[100];\n\tint i,j,k,m,n;\n\tn=strlen(a);\n\tfor(i=0;i<=n;i++)\n\t{\n\t\tb[i]=a[i]-'0';\n\t}\n\tif(n<=2) \n\t{\n\t\tif(n==1) printf(\"%c\\n%d\",'0',b[0]);\n\t\tif(n==2) {k=b[0]*10+b[1];printf(\"%d\\n%d\",k/13,k%13);}\n\t}\n\telse\n\t{\n\tc[0]=(b[0]*10+b[1])/13;\n\tb[1]=(b[0]*10+b[1])%13;\n\tif(c[0]!=0) printf(\"%d\",c[0]);\n\tfor(i=1;i> num;\n\tif (num[1] == '\\0' ||\n\t\t(num[0] == '1' && (num[1] == '0' || num[1] == '1' || num[1] == '2') && num[2] == '\\0'))\n\t{\n\t\tcout << 0 << endl << num; // ????????0?12??????\n\t}\n\telse\n\t{\n\t\tr = num[0] - '0'; // ????r?????????\n\t\tfor (i = 0; num[i+1] != '\\0'; i++)\n\t\t{\n\t\t\ttemp = r * 10 + num[i+1] - '0'; // temp???????2???\n\t\t\tr = temp % 13; // r?temp??13???\n\t\t\tquot[i] = (temp - r) / 13; // quot[i]????temp??13??\n\t\t\t // ?????????i???\n\t\t\tweishu ++; // ????????1\n\t\t\ttemp = 0; // temp??\n\t\t}\n\t\tif (quot[0] != 0) // ???????????0\n\t\t{\n\t\t\tcout << quot[0]; // ?????\n\t\t}\n\t\tfor (i = 1; i < weishu; i++)\n\t\t{\n\t\t\tcout << quot[i]; // ????????\n\t\t}\n\t\tcout << endl << r << endl; // ????\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47893", "code": "int main()\n{\n\tchar N[101];\n\tint e=1,len,i,j,n[100],shan[100];\n\tscanf(\"%s\",&N);\n\tlen=strlen(N);\n\t\n\t\n\tfor(i=0;i0)\n\t\t{\n\t\t\tshan[i]=(n[i-1]*10+n[i])/13;\n\t\t\tn[i]=(n[i-1]*10+n[i])%13;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tfor(j=0;;j++)\n\t\t\t{\n\t\t\t\tif((n[i-1]*10+n[i])/13==0)\n\t\t\t\t{\n\t\t\t\t\tn[i]=n[i-1]*10+n[i];\n\t\t\t\t\tshan[i]=0;\n\t\t\t i++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tshan[i]=(n[i-1]*10+n[i])/13;\n\t\t\t n[i]=(n[i-1]*10+n[i])%13;\n\t\t}\n\t}\n\tfor(i=e;i=13)\n {\n a[i]=b/13+'0';\n b=b%13;\n }\n else\n a[i]=0+'0';\n }\n a[i]=0;\n if(a[0]-'0'!=0)\n {\n printf(\"%s\\n\",a);\n printf(\"%d\",b);\n }\n else\n {\n printf(\"%s\\n\",&a[1]);\n printf(\"%d\",b);\n }\n\nreturn 0;\n}\n"} +{"label": "96", "index": "47896", "code": "int main()\n{\n\tint i, j, r = 0;\n\tchar num[100] = {0};\n\tchar result[100] = {0};\n\tcin >> num;\n\tfor (i = 0; num[i] != 0; i++)\n\t{\n\t\tresult[i] = (r * 10 + num[i] - '0') / 13 + '0';\n\t\tr = (r * 10 + num[i] - '0') % 13;\n\t}\n if (num[1] == 0)\n\t{\n\t\tj = 0;\n\t\tresult[0] = 0 + '0';\n\t}\n\telse if (num[0] == '1' && num[1] < '3' && num[2] == 0)\n\t{\n\t\tj = 0;\n\t\tresult[0] = 0 + '0';\n\t\tresult[1] = 0;\n\t}\n\telse if(result[0] == '0' && result[1] == '0')\n\t{\n\t\tj = 2;\n\t}\n\telse \n\t\tj = 1;\n\tfor (i = j; ; i++)\n\t{\n\t\tif (result[i] == 0)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tbreak;\n\t\t}\n\t\telse \n\t\t\tcout << result[i];\n\t}\n\tcout << r << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47897", "code": "\nint l=0;\nint shang[100];\nchar num[100];\nint first;\nint n;\nvoid count()\n{\n if(l==n-1)\n return;\n else if(l!=n-2)\n {\n shang[l]=first/13;\n first=(first-13*shang[l])*10+(num[l+2]-'0');\n l++;\n\t\tcount();\n }\n\telse \n\t{\n\t\tshang[l]=first/13;\n\t\tfirst=first-13*shang[l];\n\t\tl++;\n\t\tcount();\n\t}\n}\nint main()\n{\n cin>>num;\n n=strlen(num);\n\tif(n==1)\n\t cout<<\"0\"<>a){\n\t\tn=a[0]-48;\n\t\tb[0]=48;\n\t\tm=strlen(a);\n\n\t\tfor(i=1;i=13)\n\t{\n\tfor(i=0;i>n;\n\tl=strlen(n);\n\tfig=((int)n[0]-'0');\n\tif ((l==2&&(fig*10+(int)n[1]-'0')<13)||(l==1))\n\t{\n\t\tcout<<\"0\"<=0)\n {b[j]=(t/13+48); \n j++;}\n t=t%13;\n \n }\n if(a[1]!='\\0')\n { \n if(b[0]=='0'&&b[1]!='\\0')\n for(int k=1;b[k-1]!='\\0';k++)\n b[k-1]=b[k];\n printf(\"%s\\n\",b);\n printf(\"%d\",t) ;}\n else\n {printf(\"0\\n\");\n printf(\"%c\",a[0]);}\n\n }\n"} +{"label": "96", "index": "47905", "code": "int main()\n{\n\tint i, j;\n\tint a, t = 0,b=0;\n\tchar s[100];\n\tchar result[100];\n\tgets(s);\n\ta = strlen(s);\n\tfor (i = 0; i < 100; i++)\n\t{\n\t\tresult[i] = '\\0';\n\t}\n\tfor (i = 0; i < a; i++)\n\t{\n\t\tt = t * 10 + (s[i] - '0');\n\t\tresult[i] = t / 13 + '0';\n\t\tt = t % 13;\n\t}\n\ti = 0;\n\tfor (i = 0; i < a; i++)\n\t{\n\t\tb = b + result[i]-'0';\n\t}\n\tif (b == 0)\n\t\tprintf(\"0\\n\");\n\telse\n\t{\n\t\ti = 0;\n\t\twhile (i < a)\n\t\t{\n\t\t\tif (result[i] == '0')\n\t\t\t\ti++;\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\tfor (; i < a; i++)\n\t\t{\n\t\t\tprintf(\"%c\", result[i]);\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\tprintf(\"%d\",t);\n}"} +{"label": "96", "index": "47906", "code": "int main()\n{\n char a[101];\n char b[101];\n int c,d,e,i,u,v,w,x,y;\n int n=0;\n scanf(\"%s\",a);\n while(a[n])\n n=n+1;\n if(n>=3)\n {\n u=a[0]-'0';\n v=a[1]-'0';\n w=u*10+v;\n if(w<=12)\n {\n u=3;\n v=a[1]-'0';\n w=a[2]-'0';\n v=100+v*10+w;\n }\n else\n {\n u=2;\n v=a[0]-'0';\n w=a[1]-'0';\n v=v*10+w;\n }\n x=v/13;\n y=v%13;\n b[0]=x+'0';\n e=0;\n for(i=u;i<=n-1;i++)\n {\n c=a[i]-'0';\n d=y*10+c;\n x=d/13;\n y=d%13;\n e=i-u+1;\n b[e]=x+'0';\n }\n b[e+1]='\\0';\n printf(\"%s\\n\",b);\n printf(\"%d\\n\",y);\n }\n else\n {\n c=a[0]-'0';\n if(n==2)\n {\n d=a[1]-'0';\n e=c*10+d;\n }\n else\n {\n e=c;\n }\n x=e/13;\n y=e%13;\n printf(\"%d\\n\",x);\n printf(\"%d\\n\",y);\n }\n\n return 0;\n}"} +{"label": "96", "index": "47907", "code": "void main()\n{\n\tint i,n=1;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tint i;\n\t\tchar n1[110],n2[110],n[110];\n\t\tscanf(\"%s\",n1);\n\t\tstrcpy(n2,\"13\");\n\t\tint l1=strlen(n1),l2=strlen(n2);\n\t\tif(l1=1;k--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(temp[k]-n2[k]>=0)\n\t\t\t\t\t\t\ttemp[k]=temp[k]-n2[k]+'0';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttemp[k]=temp[k]-n2[k]+'0'+10;\n\t\t\t\t\t\t\ttemp[k-1]--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttemp[0]=temp[0]-n2[k]+'0';\n\t\t\t\t\tif(temp[0]>='0')\n\t\t\t\t\t\tstrcpy(n1,temp);\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tu++;\n\t\t\t\t}\n\t\t\t\tn[i]=n[i]+u;\n\t\t\t\tfor(u=l1-2;u>=0;u--)\n\t\t\t\t{\n\t\t\t\t\tn2[u+1]=n2[u];\n\t\t\t\t}\n\t\t\t\tn2[0]='0';\n\t\t\t}\n\t\t\tint l=0;\n\t\t\tfor(i=0;i<=l1-l2;i++)\n\t\t\t\tif(n[i]!='0')\n\t\t\t\t{\n\t\t\t\t\tl=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tfor(;i<=l1-l2;i++)\n\t\t\t\tprintf(\"%c\",n[i]);\n\t\t\tif(l==0)\n\t\t\t\tprintf(\"0\");\n\t\t\tprintf(\"\\n\");\n\t\t\tl=0;\n\t\t\tfor(i=0;i<=l1-1;i++)\n\t\t\t\tif(n1[i]!='0')\n\t\t\t\t{\n\t\t\t\t\tl=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tfor(;i<=l1-1;i++)\n\t\t\t\tprintf(\"%c\",n1[i]);\n\t\t\tif(l==0)\n\t\t\t\tprintf(\"0\");\n\t\t}\n\t}\n}\n"} +{"label": "96", "index": "47908", "code": "int main(){\n\tchar zxc[101];\n\tint i,j,t,k;\n\tint l;int s[100];\n\tgets(zxc);\n\tt=0;l=strlen(zxc);\nk=0;\t\n\tfor(i=0;i<(l-1);i++){\n\t\tif(i==0){\n\t\t\tk=(zxc[i]-'0')*10+(zxc[i+1]-'0');\n\t\t}else{\n\t\tk=t*10+(zxc[i+1]-'0');\n\t\t}\n\t\ts[i]=k/13;\n\t\tt=k%13;\n\t\n\t}\n\tfor(j=0;j=3)\n {if(b[1]==0)\n {\n for(i=2;i'9')\n {\n printf(\"\\n1%c\",a[l-1]-10);\n }\nelse\n printf(\"\\n%c\",a[l-1]);\n\n}\n"} +{"label": "96", "index": "47911", "code": "\n main()\n{\n\tint num[101]={0},digit,ans[100],left,head,tail,answer_isnt_zero=0;\n\tfor (int i=0;i<100;i++)\n\t\tans[i]=-1;\n\tchar ch[101];\n\tscanf(\"%s\",ch);\n\tdigit=strlen(ch);\n\tfor (int i=0;i2){\n bc=(a[0]-'0')*10+a[1]-'0';\n if(bc>13){\n s=bc/13;\n ys=bc%13;\n printf(\"%d\",s);\n a[0]=ys/10+'0';\n a[1]=ys%10+'0';\n }\nfor(int i=1;i=13)\n\t\t{\n\t\t\tres[i]=chan[i]/13;\n\t\t\tchan[i]=chan[i]%13;\n\t\t}\n\t}\n\ti=0;\n\twhile(res[i]==0) i++;\n\t\tif(len-i>=1)\n\t{\n\t\t\tfor(;i=3)\n\t{\n\t\tr=a[0]-'0';\n\tfor(i=1; a[i]!=0; i++ )\n\t{\n\t\tz1=r*10+(a[i]-'0');\n\t\tb[i-1]=z1/13;\n\t\tr=z1%13;\n\t}\n\n\tif(b[0]==0)\n\t{\n\t\tfor(j=1; j2&& i<2&& shang==0)\n\t\t{\n\t\t\tprintf(\"\");\n\t\t}\n\t\telse if(n==2 && i==0)\n\t\t{\n\t\t\tprintf(\"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%d\",shang);\n\t\t}\n\t}\n\tprintf(\"\\n%d\",yushu);\n}"} +{"label": "96", "index": "47919", "code": "int main()\n{\n char a[100]={'\\0'};\n int i,j,k,t,m,b[100]={0},c[100];\n cin>>a;\n for(i=0;i<100;i++)\n if(a[i]=='\\0') break;\n k=i;\n for(i=0;i1){\n m=b[0]*10+b[1];\n if(m<13&&k==2)cout<<\"0\"<> num;\n\tint i, j = 0;\n\tint yushu = num[0] - '0';\n\tfor (i = 1; i < strlen(num); i++)\n\t{\n\t\tif ((yushu * 10 + (num[i] - '0')) > 12)\n\t\t{\n\t\t\tans[i - 1] = (yushu * 10 + (num[i] - '0')) / 13;\n\t\t\tyushu = (yushu * 10 + (num[i] - '0')) % 13;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tans[i - 1] = 0;\n\t\t\tyushu = (yushu * 10 + (num[i] - '0'));\n\t\t}\n\t\tj++;\n\t}\n\tif ((ans[0] == 0) && (j <= 1)) cout << \"0\" << endl;\n\telse \n\t{\n\t\tif (ans[0] == 0) i = 1;\n\t\telse i = 0;\n\t\tfor (; i < j; i++)\n\t\t\tcout << ans[i];\n\t\tcout << endl;\n\t}\n\tcout << yushu << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47921", "code": "\nmain()\n{\n char s[100];\n int i,j=0,a=0;\n gets(s);\n for(i=0;s[i]!='\\0';i++)\n {\n a=a*10+s[i]-'0';\n if(j!=0||a/13!=0)\n {\n s[j]='0'+a/13;\n a=a%13;\n j++;\n }\n }\n s[j]=0;\n if(j>0) printf(\"%s\\n%d\",s,a);\n else printf(\"0\\n%d\",a);\n}"} +{"label": "96", "index": "47922", "code": "int main()\n{\n\tchar dividend[100], quotient[100];\n\tint remainder, i;\n\tcin >> dividend;\n\tremainder = dividend[0] - '0';\n\tquotient[0] = '0';\n\tquotient[1] = '\\0';\n\tfor (i = 1; dividend[i] != '\\0'; i++)\n\t{\n\t\tquotient[i - 1] = (remainder * 10 + (int)(dividend[i] - '0')) / 13 + '0';\n\t\tremainder = (remainder * 10 + (int)(dividend[i] - '0')) % 13;\n\t}\n\tif (quotient[1] != '\\0') \n\t quotient[i - 1] = '\\0';\n\tif (quotient[0] == '0' && quotient[1] != '\\0')\n\t\tcout << quotient + 1 << endl;\n\telse\n\t\tcout << quotient << endl;\n\tcout << remainder;\n\treturn 0;\n}"} +{"label": "96", "index": "47923", "code": "int main() {\n\tchar s[200];\n\tchar s1[200];\n\tint i, j;\n\tint len;\n\tint m;\n\tint n;\n\tscanf(\"%s\", s);\n\tlen = strlen(s);\n\tm = 0;\n\tfor(i=0, j=0; i= 13) {\n\t\t\ts1[j] = m/13 + '0';\n\t\t\tm = m%13;\n\t\t\tj++;\n\t\t} else {\n\t\t\tif(j != 0) {\n\t\t\t\ts1[j] = '0';\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t}\n\tif(j == 0) {\n\t\ts1[0] = '0';\n\t\tj=1;\n\t}\n\ts1[j] = '\\0';\n\tprintf(\"%s\\n%d\\n\", s1, m);\n\treturn 0;\n}"} +{"label": "96", "index": "47924", "code": "main()\n{char a[100],b[100];\nint t,i,x,cd;\nscanf(\"%s\",a);\ncd=strlen(a);\nfor(i=0;i2)\n {\n if(b[0]!=0) printf(\"%d\",b[0]);\n for(i=1;i> str )\n\t{\n\t\tlenS = strlen(str);\n\t\tif ( lenS == 1 )\n\t\t{\n\t\t\tcout << 0 << endl;\n\t\t\tcout << str[0] << endl;\n\t\t}\n\t\telse if ( lenS == 2 && str[0] == '1' && str[1] < '3' )\n\t\t{\n\t\t\tcout << 0 << endl;\n\t\t\tcout << str[0] << str[1] << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor ( i = 0; i < lenS; i ++ )\n\t\t\t\tdevided[i] = str[i] - '0';\n\t\t\tif ( str[0] == '1' && str[1] < '3' )\n\t\t\t{\n\t\t\t\tanswer[0] = ( devided[0] * 100 + devided[1] * 10 + devided[2] ) / 13;\n\t\t\t\tleft = ( devided[0] * 100 + devided[1] * 10 + devided[2] ) % 13;\n\t\t\t\tcout << answer[0];\n\t\t\t\tfor ( i = 1; i < lenS - 2; i ++ )\n\t\t\t\t{\n\t\t\t\t\tanswer[i] = ( left * 10 + devided[i+2] ) / 13;\n\t\t\t\t\tleft = ( left * 10 + devided[i+2] ) % 13;\n\t\t\t\t\tcout << answer[i];\n\t\t\t\t}\n\t\t\t\tcout << endl;\n\t\t\t\tcout << left << endl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tleft = devided[0];\n\t\t\t\tfor ( i = 0; i < lenS - 1; i ++ )\n\t\t\t\t{\n\t\t\t\t\tanswer[i] = ( left * 10 + devided[i+1] ) / 13;\n\t\t\t\t\tleft = ( left * 10 + devided[i+1] ) % 13;\n\t\t\t\t}\n\t\t\t\tif ( answer[0] != 0 )\n\t\t\t\t\tcout << answer[0];\n\t\t\t\tfor ( i = 1; i < lenS - 1; i ++ )\n\t\t\t\t\tcout << answer[i];\n\t\t\t\tcout << endl;\n\t\t\t\tcout << left << endl;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t"} +{"label": "96", "index": "47931", "code": "int main()\n{\n\tchar c[105]={0};\n\tcin>>c;\n\tint i,s,p;\n\ts=strlen(c);\n\tint a[105]={0};\n\tint b[105]={0};\n\tfor(i=0;i13)\n\t\t{\n\t\t\tb[0]=(10*a[0]+a[1])/13;\n\n\t\t\tp=(10*a[0]+a[1])%13;\n\t\t\tfor(i=1;i>str;\n\n\tfor(i=0;i<101;i++)\n\t\tresult[i]=num[i]=-1;\n\tfor(i=0;str[i]!=0;i++)\n\t\tnum[i]=str[i]-'0';\n\ti=0;\n\ttemp=0;\n\twhile(num[i]!=-1)\n\t{\n\t\ttemp=temp*10+num[i];\n\t\tresult[i]=temp/13;\n\t\ttemp=temp%13;\n\t\ti++;\n\t}\n\tfor(i=0;result[i]==0;i++);\n\tif(result[i]==-1) cout<<0;\n\telse\n\t{\n\t\tfor(;result[i]!=-1;i++)\n\t\t\tcout<num2[0]||(num1[0]==num2[0]&&num1[1]>=num2[1])) i=1;\n\telse\n\t{\n\t\ta++;\n\t\tnum2[0]=0;\n\t\tnum2[1]=1;\n\t\tnum2[2]=3;\n\t\t//cout<=0;j--)\n\t\t{\n\t\t\tif(num4[j]>=num5[j])\n\t\t\t{\n\t\t\t\tnum4[j]=num4[j]-num5[j];\n\t\t\t\t//cout<num5[0]||(num4[0]==num5[0]&&num4[1]>=num5[1])) j=j;\n\t\t\telse break;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif(num4[0]>num5[0]||num4[1]>num5[1]||(num4[1]==num5[1]&&num4[2]>=num5[2])) j=j;\n\t\t\telse break;\n\t\t}\n\n\t\tstep++;\n\t}\n}\nint main()\n{\n\tchar str1[101]={'\\0'};\n\tint num1[101]={0},num2[101]={0};\n\tint i,weishu,biaoji=0,j;\n\tcin>>str1;\n\tlength=strlen(str1);\n\tweishu=length;\n\tfor(i=0;i1)\n\t{\n\t\tfor(i=0;i1)\n {\n for(i=1;i2)\n { \n for(i=0;i<3;i++)\n {\n if(p[i]==0&&p[i+1]!=0)\n d=i;\n }\n for(i=(d+1);i=1;i--)\n\t{\n\t\tif (b[i]<48)\n\t\t{\n\t\t\tb[i]=b[i]+10;\n\t\t\tb[i-1]=b[i-1]-1;\n\t\t}\n\t}\n}\n\nint main ()\n{\n while (1)\n {\n b[1]=getchar();\n if (b[1]==-1)\n break;\n /*for (int i=2;i<=999;i++)\n {\n a[i]=getchar ();\n if (a[i]==10)\n {\n la=i-1;\n break;\n }\n }*/\n for (int i=2;i<=999;i++)\n {\n b[i]=getchar ();\n if (b[i]==10)\n {\n lb=i-1;\n break;\n }\n }\n\t\tb[0]=48;\n if (b[1]==49&&b[2]<=50)\n {\n lc=lb-2;\n for (int i=1;i<=lc;i++)\n {\n int f=100*(b[i]-48)+10*(b[i+1]-48)+(b[i+2]-48);\n switch (f/13)\n {\n case 0 :c[i]=0+48;break;\n case 1 :c[i]=1+48;b[i+1]=b[i+1]-1;b[i+2]=b[i+2]-3;break;\n case 2 :c[i]=2+48;b[i+1]=b[i+1]-2;b[i+2]=b[i+2]-6;break;\n case 3 :c[i]=3+48;b[i+1]=b[i+1]-3;b[i+2]=b[i+2]-9;break;\n case 4 :c[i]=4+48;b[i+1]=b[i+1]-5;b[i+2]=b[i+2]-2;break;\n case 5 :c[i]=5+48;b[i+1]=b[i+1]-6;b[i+2]=b[i+2]-5;break;\n case 6 :c[i]=6+48;b[i+1]=b[i+1]-7;b[i+2]=b[i+2]-8;break;\n case 7 :c[i]=7+48;b[i+1]=b[i+1]-9;b[i+2]=b[i+2]-1;break;\n case 8 :c[i]=8+48;b[i]=b[i]-1;b[i+1]=b[i+1]-0;b[i+2]=b[i+2]-4;break;\n case 9 :c[i]=9+48;b[i]=b[i]-1;b[i+1]=b[i+1]-1;b[i+2]=b[i+2]-7;break;\n }\n\t\t\t\tzl ();\n }\n }\n else\n {\n lc=lb-1;\n for (int i=0;i<=lc-1;i++)\n {\n\t\t\t\tint f;\n\t\t\t\tf=100*(b[i]-48)+10*(b[i+1]-48)+(b[i+2]-48);\n switch (f/13)\n {\n\t\t\t\t\tcase 0 :c[i+1]=0+48;break;\n\t\t\t\t\tcase 1 :c[i+1]=1+48;b[i+1]=b[i+1]-1;b[i+2]=b[i+2]-3;break;\n case 2 :c[i+1]=2+48;b[i+1]=b[i+1]-2;b[i+2]=b[i+2]-6;break;\n case 3 :c[i+1]=3+48;b[i+1]=b[i+1]-3;b[i+2]=b[i+2]-9;break;\n case 4 :c[i+1]=4+48;b[i+1]=b[i+1]-5;b[i+2]=b[i+2]-2;break;\n case 5 :c[i+1]=5+48;b[i+1]=b[i+1]-6;b[i+2]=b[i+2]-5;break;\n case 6 :c[i+1]=6+48;b[i+1]=b[i+1]-7;b[i+2]=b[i+2]-8;break;\n case 7 :c[i+1]=7+48;b[i+1]=b[i+1]-9;b[i+2]=b[i+2]-1;break;\n case 8 :c[i+1]=8+48;b[i]=b[i]-1;b[i+1]=b[i+1]-0;b[i+2]=b[i+2]-4;break;\n case 9 :c[i+1]=9+48;b[i]=b[i]-1;b[i+1]=b[i+1]-1;b[i+2]=b[i+2]-7;break;\n }\n\t\t\t\tzl ();\n }\n }\n /*for (int i=1;i<=la+1;i++)\n putchar (a[i]);*/\n for (int i=1;i<=lc;i++)\n putchar (c[i]);\n\t\tif (lc==0)\n\t\tcout <<\"0\"<>setline)\n {\n int i,j,k,len,len2;\n memset(an,0,400);\n memset(res,0,400);\n len=strlen(setline);\n\n\n for(i=0;i=13) ||(len>2))\n\t{\n\tlendivide=((int1*10+int2)<13)? len-2:len-1;\n\tif (lendivide==len-1)\n\t{\n\t\tfor (i=0;i0)\n printf(\"%d\",c[2]);\n for(int i=3;i<=strlen(a);i++){\n printf(\"%d\",c[i]);\n}\n}\n printf(\"\\n%d\",b[strlen(a)]);\n return 0;\n}"} +{"label": "96", "index": "47941", "code": "main()\n{\n char c[100];\n int x,y,z;\n scanf(\"%s\",c);\n int L=strlen(c);\n int a=0;\n int i,k;\n if(L==1)\n {\n printf(\"%d\\n\",a);\n printf(\"%c\",c[0]);\n }\n else if(L==2&&(c[0]=='1')&&c[1]<'3')\n {\n printf(\"%d\\n\",a);\n printf(\"%c%c\",c[0],c[1]);\n }\n else \n { \n if((c[0]=='1')&&c[1]<'3')\n {\n x=c[0]-'0';\n y=c[1]-'0';\n z=(x*100+y*10+c[2]-'0')/13;\n printf(\"%d\",z);\n a+=((x*100+y*10+c[2]-'0')%13)*10;\n for(i=3;i 12)\n\t\t\tcout << sum / 13;\n\t\trem = sum % 13;\n\t}\n\tif (i == 1 || (i == 2 && sum <= 12))\n\t\tcout << '0';\n\tcout << endl;\n\tcout << rem << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47943", "code": "int main()\n{\nchar s[100];\nint num[100],quo[100];\nint l,i,x,r;\n scanf(\"%s\",s); \n l=strlen(s);\n for (i=0;i2)\n {\n if (num[0]*10+num[1]>=13)\n {\n quo[0]=(num[0]*10+num[1])/13;\n r=(num[0]*10+num[1])%13;\n for (i=2;i2)\n {\n for (i=0;i> dividend;\n\tlen = strlen(dividend);\n\tfor (i = 0, temDivid = dividend[0] - '0'; i < len - 1; i++)\n\t{\n\t\tresult[i] = temDivid / DIVISOR + '0';\n\t\tremainder = temDivid % DIVISOR;\n\t\ttemDivid = remainder * 10 + (dividend[i + 1] - '0');\n\t}\n\tresult[i] = temDivid / DIVISOR + '0'; // ????i = len????dividend[i + 1]??????len=1??????\n\tremainder = temDivid % DIVISOR;\n\tresult[i + 1] = '\\0';\n\tfor (i = 0; result[i] == '0';)\n\t\ti++;\n\tif (result[i] == '\\0')\n\t\tcout << 0 << endl << remainder << endl;\n\telse\n\t\tcout << result + i << endl << remainder << endl;\n\treturn 0;\n}"} +{"label": "96", "index": "47949", "code": "main()\n{\n char a[100],b[100];\n int c,len,d,e,f[100];\n scanf(\"%s\",a);\n len=strlen(a);\n if (len==1)\n {printf(\"0\\n\");printf(\"%d\",a[0]-'0');}\n else\n{if (len==2 && ((a[0]-'0')*10+a[1]-'0')<13)\n {printf(\"0\\n\");printf(\"%d\",((a[0]-'0')*10+a[1]-'0'));}\n else\n{\n for(c=0;c<=len-1;c++)\n {\n f[c]=a[c]-'0';\n }\n for(c=0;c<=len-2;c++)\n { \n d=f[c]/13;\n b[c]=d+'0';\n e=f[c]%13;\n f[c+1]=f[c+1]+e*10;\n }\n d=f[len-1]/13;\n b[len-1]=d+'0';\n e=f[len-1]%13;\n if (b[0]!='0')\n printf(\"%s\\n\",b);\n else \n {if (b[1]!='0')\n { for(c=0;c<=len-1;c++)\n {\n b[c]=b[c+1];\n }\n b[len-1]=0;\n printf(\"%s\\n\",b);\n } \n else \n { for(c=0;c<=len-2;c++)\n {\n b[c]=b[c+2];\n }\n b[len-1]=0;\n b[len-2]=0;\n printf(\"%s\\n\",b);\n } \n printf(\"%d\",e);}\n \n}\n}\n \n }\n"} +{"label": "96", "index": "47950", "code": "/*?????13\n ??????\n ???1100012802*/\nint main()\n{\n\tchar a[100];\n\tint q[100] = {0},b[100] = {0},i,j;\n\tcin.getline(a,100);\n\tfor(i = 0;a[i] != '\\0';i++)\n\t{\n\t\tq[i] = a[i] - '0';\n\t}\n\tfor(i = 0;a[i + 1] != '\\0';i++)\n\t{\n\t\tq[i + 1] = 10 * q[i] + q[i + 1];\n\t\tb[i] = q[i + 1] / 13;\n\t\tq[i + 1] = q[i + 1] % 13;\n\t}\n\tif(i == 0)\n\t\tcout << 0;\n\telse if(i == 1 || b[0] != 0)\n\t\tcout << b[0];\n\tfor(j = 1;j <= i - 1;j++)\n\t\tcout << b[j];\n\tcout << endl << q[i];\n\treturn 0;\n}"} +{"label": "96", "index": "47951", "code": "main()\n{\n int i,j,temp,yushu=0;\n char a[105],b[105];\n scanf(\"%s\",a);\n for(i=0;a[i]!='\\0';i++)\n {\n temp=a[i]-'0'+yushu*10;\n b[i]=temp/13;\n yushu=temp%13;\n }\n if(b[0]==0)\n {\n if(b[1]==0)\n {\n if(i==1||i==2) printf(\"0\");\n for(j=2;j=13){\n\t\t\tk=b%13;\n\t\t\ta[i-1]=(b-k)/13;}\n\t\telse k=b;\n\t}\n\tif((10*(s1[0]-'0')+s1[1]-'0')>=13)\n\t{\n\tfor(l=0;l> a;\n\tl = strlen(a);\n\tyu = 0;\n\tfor (i = 0; i < l; i++)\n\t{\n\t\tm = yu * 10 + (a[i] - '0');\n\t\tb[i] = m / 13 + '0';\n\t\tyu = m % 13;\n\t}\n\tj = 0;\n\twhile (b[j] == 48)\n\t{\n\t\tj++;\n\t}\n\tif (j == l)\n\t\tcout << '0';\n\telse\n\t\tfor (i = j; i < l; i++)\n\t\t\tcout << b[i];\n\tcout << endl;\n\tcout << yu;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47954", "code": "int main()\n{\n\tint a[110]={0};\n\tint i=0;\n\tchar x[2]={'\\0'};\n\twhile(true)\n\t{\n\t\tx[0]=getchar();\n\t\tif(x[0]=='\\n')break;\n\t\ta[i]=atof(x);\n\t\ti++;\n\t}\n\tint n,yu;\n\tyu=a[0];\n\tn=i;\n\tint b[110];\n\tmemset(b,-1,110*sizeof(int));\n\tif(i==1)b[0]=0;\n\tfor(i=1;i>chuan;//????? \n\tint length=strlen(chuan);//?????? \n\t\n\tfor(i=0;i=13)\n shang[0]=fenjie/13;//???? \t\n \tfor(i=1;i=3)\n {\n m=yushu*10+num[1]-'0';\n if(m>=13)\n {\n for(i=1;i<=j-1;i++)\n {\n m=yushu*10+num[i]-'0';\n yushu=m%13;\n shang[i-1]=m/13+'0';\n }\n shang[j-1]='\\0';\n }\n else\n {\n yushu=yushu*10+num[1]-'0';\n for(i=2;i<=j-1;i++)\n {\n m=yushu*10+num[i]-'0';\n yushu=m%13;\n shang[i-2]=m/13+'0';\n }\n shang[j-2]='\\0';\n }\n }\n\n puts(shang);\n printf(\"%d\",yushu);\n}\n"} +{"label": "96", "index": "47957", "code": "int main(){\n\tchar a[101];\n\tint\tb[100]={0};\n\tint i,n,m,x;\n\tscanf(\"%s\",a);\n\tn=strlen(a);\n\t\n\t\n\tif(((a[0]-'0')*10+(a[1]-'0'))<13){\n\t\tx=(a[0]-'0')*10+a[1]-'0';\n\t\tfor(i=2;ik)\n\t\t\t{\n\t\t\t\tresult[i-1]=m+48;\n\t\t\t\tj=k-13*m;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t\tif(result[0]!='0')\n\t\t{\n\t\t\tprintf(\"%c\",result[0]);\n\t\t}\n\t\tfor(i=1;i> str;\n unsigned num[101];\n for (j = 0; str[j] != '\\0'; j++)\n {\n num[j] = (r * 10 + str[j] - '0') / 13;\n r = (r * 10 + str[j] - '0') % 13;\n }\n j = 0;\n while (num[j] == 0)\n j++;\n if(str[j]=='\\0') cout<<\"0\";\n for (; str[j] != '\\0'; j++)\n cout << num[j];\n cout << endl;\n cout << r << endl;\n cin>>r;\n return 0;\n} \n \n"} +{"label": "96", "index": "47962", "code": "int main()\n{\n\tchar a[100],b[100];\n\tint i,j=0,k,x,s;\n\tfor(i=0;i<100;i++)\n\t {a[i]=0;b[i]='0';}\n\tscanf(\"%s\",a);\n\tfor(i=0;a[i]!=0;i++)\n\t x=i+1;\n\tfor(i=x;i<100;i++)\n\t a[i]='0';\n\twhile(j'0')\n\t {if(a[j+1]-3>='0')\n\t {a[j+1]=a[j+1]-3;a[j]=a[j]-1;s++;}\n\t else if(a[j]>='2')\n\t {a[j+1]=a[j+1]-3+10;a[j]=a[j]-2;s++;}\n\t else\n\t {a[j]='0';a[j+1]=a[j+1]+10;}\n\t }\n\t b[j]=s+'0';\n\t j=j+1;\n\t }\n\tif(b[0]=='0'&&b[1]=='0')\n\t printf(\"0\");\n\telse if(b[0]!='0')\n\t printf(\"%c\",b[0]);\n\tfor(i=1;i> num1;\n\tl1 = strlen(num1);\n\tif (((l1 == 2) && ((num1[0] - '0') == 1) && ((num1[1] - '0') > 2)) || (l1 > 2) || ((l1 == 2) && ((num1[0] - '0') > 1) ))\n\t{\n\tfor (i = 0; i < l1; i++)\n\t{\n\t\tnum2[i] = (((r * 10) + num1[i] - '0') / 13) + '0' ;\n\t\tr = (r * 10 + num1[i] - '0') % 13;\n\t}\n\tif (num2[1] == '0')\n\t{\n for (j = 2; j < l1; j++)\n\t\t{\n\t\t\tcout << num2[j];\n\t\t}\n\t}\n\telse \n\t{\n\t\tfor (j = 1; j < l1; j++)\n\t\t{\n\t\t\tcout << num2[j];\n\t\t}\n\t}\n\t cout << endl;\n\t\tcout << r;\n\t}\n\tif ((l1 == 2) && ((num1[0] - '0') == 1) && ((num1[1] - '0') <= 2))\n\t{\n\t\tcout << (10 + num1[1]- '0') / 13;\n\t\tcout << endl;\n\t cout << (10 + num1[1]- '0') % 13;\n\t}\n\tif (l1 == 1)\n\t{\n\t\tcout << (num1[0] - '0') / 13;\n\t\tcout << endl;\n\t\tcout << (num1[0] - '0') %13;\n\t}\n\n\treturn 0;\n}"} +{"label": "96", "index": "47964", "code": "//*************************\n//* ?????13 \n//* ????? \n//* ???1200012941 \n//* ???2012?11?12? \n//*************************\nint main()\n{\n int i, count = 0, y;\n char num[100];\n int s[100] = {0};\n cin >> num;\n y = num[0] - '0';\n for (i = 1; num[i] != '\\0'; i++)\n {\n s[i] = (y * 10 + num[i] - '0') / 13;\n y = (y * 10 + num[i] - '0') % 13;\n count++;\n }\n if (count == 0)\n {\n cout << 0 << endl << y << endl;\n }\n if (count > 0)\n {\n if (((num[0] - '0') * 10 + num[1] - '0') / 13 == 0)\n {\n if (s[2] == 0)\n {\n cout << 0 << endl << (num[0] - '0') * 10 + num[1] - '0' << endl;\n }\n else\n {\n for (i = 2; i <= count; i++)\n {\n cout << s[i]; \n }\n cout << endl << y << endl;\n }\n }\n else\n {\n for (i = 1; i <= count; i++)\n {\n cout << s[i]; \n }\n cout << endl << y << endl;\n }\n }\n return 0;\n} "} +{"label": "96", "index": "47965", "code": "int main()\n{\nchar str[101];\nint answer[101];\nmemset(answer,0,sizeof(answer));\nint p,q,flag=0,j,i,k;\ncin>>str;\ni=0;\nfor(j=0;j=strlen(str))\n break;\n p=p*10+str[k]-'0'; //???????str???????????????13 \n\t }\n j=k-1; //????????????answer?????? \n answer[j]=p/13; \n p=p%13;\n q=p;\n for(int k=j;k>=i;k--)\n {\n str[k]=p%10+'0'; //??str?????????????????0?? \n\t p=p/10;\n\t if(p==0&&str[k-1]=='0')\n\t {\n\t\t i=k-1;\n\t\t break;}\n\t }\n }\nfor(i=0;i> num;\n\tcount_num = strlen(num);\n\tmod = 0;\n\tfor (j = 0; j < count_num; j++)\n\t//???????????,???????,?????13,?????10??????,????13,??????\n\t\t\n\t{\n\t\tmod = mod * 10 + num[j] - '0';\t//?????????????10????????????\n\t\tshang[j] = mod / 13 + '0';\t//?j???????\n\t\tmod = mod % 13;\t//???????????????13???\n\t}\n\tshang[count_num] = '\\0';\t//????????,???????????0,??????,???????\n\tfor (j = 0; ; j++)\n\t{\n\t\tif (shang[j] - '0')\t//????????0?\n\t\t{\n\t\t\tk = j;\t//?????\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(j == count_num)\t//???0\n\t{\n\t\tcout << \"0\" << endl;\n\t}\n\telse\n\t{\n\t\tfor (j = k; j < count_num; j++)\n\t\t{\n\t\t\tcout << shang[j];\t//????????\n\t\t}\n\t\tcout << endl;\n\t}\n\tcout << mod << endl;\n\treturn 0;\n}\n"} +{"label": "96", "index": "47969", "code": "main()\n{\n char c[110]={'\\0'};\n gets(c);\n int i,a,b;\n if(c[1]=='\\0')\n {\n a=c[0]-'0';\n printf(\"0\\n%d\",a);\n }\n else\n {\n for(i=0;c[i+1]!='\\0';i++)\n {\n if(i==0)a=(c[i]-'0')*10+c[i+1]-'0';\n else a=a*10+c[i+1]-'0';\n b=a/13; \n c[i]=b+'0';\n a=a%13; \n }\n c[i]='\\0';\n if(c[0]=='0'&&c[1]!='\\0')\n {\n for(i=0;c[i]!='\\0';i++)\n {\n c[i]=c[i+1];\n }\n }\n printf(\"%s\\n%d\",c,a);\n }\n} \n \n \n \n \n \n \n \n"} +{"label": "96", "index": "47970", "code": "\nint main()\n{\n int i,j,b[200],c[200]={0},s;\n char a[200];\n gets(a);\n for(i=0;i<200;i++)\n if(a[i]!='\\0') b[i]=a[i]-'0';\n else break;\n if(a[1]=='\\0') \n {\n printf(\"0\\n\");\n printf(\"%c\\n\",a[0]);\n //scanf(\"%d\",&j);\n return 0;\n }\n for(j=1;j1) {\n \n s=b[j-2]*100+b[j-1]*10+b[j];\n b[j-2]=0;\n }\n else s=b[1]+b[0]*10;\n b[j]=s%13;\n \n if(b[j]>=10) \n {\n b[j-1]=1;\n b[j]=b[j]-10;\n }\n else b[j-1]=0;\n c[j]=s/13;\n }\n int ss=0;\n for(j=0;j> str1;\n\tlen=strlen(str1);\n\n\ttemp=0;\n\tfor (i=0;i> test)\n {\n len = strlen(test);\n for (i = 0 ; i <= len - 1 ; i++)\n {\n r =10 * r + test[i] - '0';\n if (((r / 13) != 0)&&(!flag))\n {\n q = i;\n flag = 1;\n }\n if (flag)\n {\n tem[i - q] = r / 13 + '0';\n }\n r = r % 13;\n }\n if (flag == 0)\n {\n cout << '0';\n }\n else\n {\n for (i = 0 ; i <= len - 1 - q ; i++)\n {\n cout << tem[i];\n }\n }\n cout << endl;\n cout << r << endl;\n }\n return 0;\n}\n\n"} +{"label": "96", "index": "47976", "code": "int main()\n{\n\tchar a[100];\n\tint\tb[100],c[100];\n\tint i,k,m;\n\tdouble n;\n\tgets(a);\n\tk=strlen(a);\n\tfor(i=0;i1)\n\t{\n\t\tfor(i=0;i2)\n{\n for(i=0;i> a;\n\tint i, j, k, l = strlen(a), r;\n\tif (l == 1)\n\t{\n\t\tcout << 0 << endl << a[0];\n\t\treturn 0;\n\t}\n\tfor (i = 0; i < l - 1; i++)\n\t{\n\t\tnum = 0;\n\t\tif (i != 0)\n\t\t\tc[0] = a[i - 1];\n\t\telse\n\t\t\tc[0] = '0';\n\t\tc[1] = a[i];\n\t\tc[2] = a[i + 1];\n\t\tnum = atoi(c);\n\t\tb[i + 1] = num / 13 + '0';\n\t\tr = num - (b[i + 1] - '0') * 13;\n\t\tif (r > 9)\n\t\t{\n\t\t\ta[i] = '1';\n\t\t\ta[i + 1] = r % 10 + '0';\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i] = '0';\n\t\t\ta[i + 1] = r + '0';\n\t\t}\n\t}\n\tint p = 0;\n\tfor(i = 1; i < l; i++)\n\t{\n\t\tif (b[i] != '0')\n\t\t\tp = 1;\n\t\tif (p == 1)\n\t\t\tcout << b[i];\n\t}\n\tif (p == 0)\n\t\tcout << 0;\n\tcout << endl << r;\n\treturn 0;\n}"} +{"label": "96", "index": "47981", "code": "main()\n{\n char s[100];\n scanf(\"%s\",s);\n int length=strlen(s);\n int t[100];\n int i;\n for(i=0;i> str;\n\tlen = strlen(str);\n\ta = str[0];\n\tb = str[1];\n\tfor (i = 0; i < len - 1; )\n\t{\n\t\tif (str[i] > '1')\n\t\t{\n\t\t\tif (str[i + 1] >= '3')\n\t\t\t{\n\t\t\t\tstr[i]--;\n\t\t\t\tstr[i + 1]-=3;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstr[i]-=2;\n\t\t\t\tstr[i + 1]+=7;\n\t\t\t}\n\t\t\tans[i]++;\n\t\t}\n\t\tif (str[i] == '1')\n\t\t{\n\t\t\tif (str[i + 1] >= '3')\n\t\t\t{\n\t\t\t\tstr[i]--;\n\t\t\t\tstr[i + 1]-=3;\n\t\t\t\tans[i]++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstr[i + 1]+=10;\n\t\t\t\ti++;\n\t\t\t\tans[i] = '0';\n\t\t\t}\n\t\t}\n\t\tif (str[i] == '0')\n\t\t{\n\t\t\ti++;\n\t\t\tans[i] = '0';\n\t\t}\n\t}\n\tif (len == 1 || (len == 2 && a == '1' && b < '3'))\n\t{\n\t\tcout << \"0\";\n\t}\n\telse if (a == '1' && b < '3')\n\t{\n\t\tfor (j = 1; j < i; j++)\n\t\t{\n\t\t\tcout << ans[j];\n\t\t}\n\t}\n\telse\n\t{\n\t\tfor (j = 0; j < i; j++)\n\t\t{\n\t\t\tcout << ans[j];\n\t\t}\n\t}\n\tcout << endl;\n\tif (str[i - 1] == '1')\n\t{\n\t\tstr[i]-=10;\n\t\tcout << str[i - 1] << str[i] << endl;\n\t}\n\telse\n\t{\n\t\tcout << str[i] << endl;\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47983", "code": "int main()\n{\n char s[100]={0};\n scanf(\"%s\",s); //???s[0]???? \n int a[100],b;\n int c,d,e;\n c=s[0]-'0';\n d=s[1]-'0';\n e=c*10+d;\n int l=strlen(s);\n if(l==1)\n {\n printf(\"0\\n\");\n printf(\"%c\",s[0]);\n }\n else if((e<13)&&(l==2))\n {\n printf(\"0\");\n printf(\"\\n\");\n printf(\"%d\",e);\n }\n else\n {\n for(int i=0;i2)\n {\n\t\tif((a[0]*10+a[1])>=13)\n {\n\t\tyushu=a[0];\n\t\tfor(i=1;i> num;\n\tint len = strlen(num);//???????len\n\tif(len == 1 || ((len == 2) && (num[0] == '1') && (num[1] < '3')))\n\t{\n\t\tcout << 0 << endl;\n\t\tcout << num << endl;//?????13?????0???????\n\t}\n\telse \n\t{\n\t\tif(((num[0] - '0') * 10 + (num[1] - '0')) / 13 != 0)\n\t\t{\n\t\t\tcout << ((num[0] - '0') * 10 + (num[1] - '0')) / 13;\n\t\t\tr = ((num[0] - '0') * 10 + (num[1] - '0')) % 13;//???????????13???????13???\n\t\t}\n\t\telse \n\t\t\tr = ((num[0] - '0') * 10 + (num[1] - '0'));//???????????13????????\n\t\tfor (i = 2; i < len; i++)//????????????\n\t\t{\n\t\t\tcout << (r * 10 + num[i] - '0') / 13;\n\t\t\tr = (r * 10 + num[i] - '0') % 13;\n\t\t}\n\t\tcout << endl;\n\t\tcout << r << endl;//??????\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47989", "code": "main()\n{\n char N[100];\n int a[100];\n int b=0,i,l,count=0;\n gets(N);\n l=strlen(N);\n for(i=0;i=0;i--)\n { d=d*10+a[i];\n c[i]=d/b;\n d=d%b;\n }\n while(c[l-1]==0 && l>1) l--;\n for(i=l-1;i>=0;i--) printf(\"%d\",c[i]);\n printf(\"\\n%d\",d);\n}"} +{"label": "96", "index": "47991", "code": "char beichushu[150];\nint beichu[150]; //??????? \nint chu[150]; //??????????? \nint chu1[250]; //??????????? \nint shang[200]; //????? \nvoid subtract(int *,int *); //??????????????? \nint compare(int *,int *); //???????? \nint wei(int *); //?????? \nvoid fangda(int *, int); //?????10?n??? \nint main(void)\n{\n\tint i,j,k;\n\tint n;\n\tint max; \n\n\t\tint x=0;\n\t\tint m=0;\n\t\tscanf(\"%s\",beichushu);\n\t\tmemset(beichu,0,sizeof(beichu));\n\t\tmemset(chu,0,sizeof(chu));\n\t\tmemset(chu1,0,sizeof(chu1));\n\t\tmemset(shang,0,sizeof(shang));\n\t\t\n\t\tfor(i=strlen(beichushu)-1,j=0;i>=0;i--)\n\t\t\tbeichu[j++]=beichushu[i]-'0';\n chu[0]=3;\n chu[1]=1;\n chu1[0]=3;\n chu1[1]=1;\n\t\tk=wei(beichu)-wei(chu); //k???????????? \n\t\tmax=k; //?????????????max??????????? \n\t\tint a=compare(beichu,chu); //????????????0 \n\t\tfangda(chu1,k); //???? \n\t\twhile(compare(beichu,chu))\n\t\t{\n\t\t\twhile(compare(beichu,chu1))\n\t\t\t{\n\t\t\t\tsubtract(beichu,chu1);\n\t\t\t\tm++;\n\t\t\t}\n\t\t\tshang[x]=m;\n\t\t\tx++;\n\t\t\tm=0;\n\t\t\tmemset(chu1,0,sizeof(chu1));\n\t\t chu1[0]=3;\n\t\t chu1[1]=1;\n\t\t\tk--;\n\t\t\tif(k>=1)\n\t\t\t fangda(chu1,k);\n\t\t}\n\t\tif(shang[0]==0)\n\t\t{\n\t\t\tfor(i=1;i<=max;i++)\n\t\t\t{\n\t\t\t printf(\"%d\",shang[i]);\n\t\t\t}\n\t\t}\n\t\telse if(shang[0]>0)\n\t\t{\n\t\t\tfor(i=0;i<=max;i++)\n\t\t\t printf(\"%d\",shang[i]);\n\t\t}\n\t\tif(a==0)\n\t\t printf(\"0\");\n\t\tprintf(\"\\n\");\n\t\tif(beichu[1]==1)\n\t\tfor(i=1;i>=0;i--)\n\t\t printf(\"%d\",beichu[i]);\n\t\telse\n\t\t printf(\"%d\",beichu[0]);\n\treturn 0;\n}\n\nvoid subtract(int *beichu,int *chu1)\n{\n\tint i;\n\tfor(i=0;i<120;i++)\n\t{\n\t\tbeichu[i]=beichu[i]-chu1[i];\n\t\tif(beichu[i]<0)\n\t\t{\n\t\t\tbeichu[i]+=10;\n\t\t\tbeichu[i+1]--;\n\t\t}\n\t}\n}\nint compare(int *beichu,int *chu1)\n{\n\tif(wei(beichu)>wei(chu1))\n\t return 1;\n\telse if(wei(beichu)chu1[i])\n\t\t\t return 1;\n\t\t\telse if(beichu[i]=0;i--)\n\t{\n\t\tif(a[i]>0)\n\t\t{\n\t\t\tpost=i+1;\n\t\t\t\treturn post;\n\t\t}\n\t}\n} \nvoid fangda(int *c,int n)\n{\n\tint i;\n\tfor(i=100;i>=0;i--)\n\t{\n\t\tc[i+n]=c[i];\n\t}\n\tfor(i=0;i> num;\n\tint i, a, b;\n\tchar x[102];\n\tif (strlen(num) == 1)\n\t{\n\t\tcout << '0'<< endl;\n\t\tcout << num[0] << endl; \n\t}\n\telse if(strlen(num) == 2)\n\t{\n\t\ta = (num[0] - 48) * 10 + (num[1] - 48);\n\t\tcout << a / 13 << endl;\n\t\tcout << a % 13 << endl;\n\t}\n\telse\n\t{\n\ta = (num[0] - 48) * 10 + (num[1] - 48);\n\tb = a % 13;\n\tif (a >= 13)\n\t{\n\t\tx[0] = a / 13 + 48;\n\t\tfor (i = 1; i <= strlen(num) - 2; i++)\n\t\t{\n\t\t\ta = (num[i + 1] - 48) + b * 10;\n\t\t\tb = a % 13;\n\t\t\tx[i] = a / 13 + 48;\n\t\t}\n\t\tfor (i = 0; i <= strlen(num) - 3; i++)\n\t\t{\n\t\t\tcout << x[i];\n\t\t}\n\t\tcout << x[strlen(num) - 2] << endl;\n\t\tcout << b << endl;\n\t}\n\telse\n\t{\n\t\tfor (i = 2; i <= strlen(num) - 1; i++)\n\t\t{\n\t\t\ta = (num[i] - 48) + b * 10;\n\t\t\tb = a % 13;\n\t\t\tx[i] = a / 13 + 48;\n\t\t}\n\t\tfor (i = 2; i <= strlen(num) - 2; i++)\n\t\t{\n\t\t\tcout << x[i];\n\t\t}\n\t\tcout << x[strlen(num) - 1] << endl;\n\t\tcout << b << endl;\n\t}\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47994", "code": "/*\n??:??13\n??:??? 1200012921\n??:2012.11.14\n*/\n\nint main()\n{\n\tchar a[101]; //????a????????\n\tint i, j, k; //????\n\tint b[101], c[101]; //?????????????c?????\n\tint lenA, yushu, pro; //lenA???????????yushu????????????pro??????????\n\tcin.getline(a, 101); //?????\n\tlenA = strlen(a); //???????\n\tfor (i = 0, j = 1; i <= lenA - 1; i++) //?????????????\n\t{\n\t\tb[j++] = a[j - 1] - '0';\n\t}\n\tif ((lenA == 2 && b[1] * 10 + b[2] <= 12) || lenA == 1) //???????1~12??\n\t{\n\t\tif (lenA == 1) //??1~9????0??????\n\t\t\tcout << 0 << endl << b[1] << endl;\n\t\telse\n\t\t\tcout << 0 << endl << b[1] * 10 + b[2] << endl; //??10~12????0??????\n\t}\n\telse //??(????????13)\n\t{\n\t\tif ( b[1] * 10 + b[2] >= 13) //?????????13?????????????1\n\t\t{\n\t\t\tyushu = (b[1] * 10 + b[2]) % 13; //???????????\n\t\t\tc[2] = (b[1] * 10 + b[2] - yushu) / 13; //?????\n\t\t\tfor (i = 3; i <= lenA; i++) //??????????????,???????\n\t\t\t{\n\t\t\t\tpro = yushu * 10 +b[i];\n\t\t\t\tyushu = pro % 13;\n\t\t\t\tc[i] = (pro - yushu) / 13;\n\t\t\t}\n\t\t\tfor (k = 2; k <= lenA; k++) //???\n\t\t\t{\n\t\t\t\tcout << c[k];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\t\n\t\telse //??(???????13?????????????2)\n\t\t{\n\t\t\tyushu = (b[1] * 100 + b[2] * 10 + b[3]) % 13; //???????????\n\t\t\tc[3] = (b[1] * 100 + b[2] * 10 + b[3] - yushu) / 13; //?????\n\t\t\tfor (i = 4; i <= lenA; i++) //??????????????,???????\n\t\t\t{\n\t\t\t\tpro = yushu * 10 +b[i];\n\t\t\t\tyushu = pro % 13;\n\t\t\t\tc[i] = (pro - yushu) / 13;\n\t\t\t}\n\t\t\tfor (k = 3; k <= lenA; k++) //???\n\t\t\t{\n\t\t\t\tcout << c[k];\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\n\t\tcout << yushu << endl; //?????????????\n\t}\n\treturn 0;\n}"} +{"label": "96", "index": "47995", "code": "int main()\n {\n int l,m,n,i,j,k;\n char a[100],b[100];\n scanf(\"%s\",a);\n l=strlen(a);\n for(i=0;i=1;i--){\n\t\tif(a[i-1]==0){\n\t\t\tzero++;\n\t\t}\n\t\telse{\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tfor(i=1;i<=alength-1;i++){\n\t\tsum=a[i-1]*10+a[i];\n\t\t\n\t\t\n\t\tif(sum>=13){\n\t\t\ta[i]=sum%13;\n\t\t\tb[blength]=(sum-a[i])/13;\n\t\t\tblength++;//100?ÄÇ\u00e9¿ö\n\t\t\tif(i==(alength-1-zero)){\n\t\t\t\ttest=1;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\telse{\n\t\t\t\n\t\t\ta[i]+=a[i-1]*10;\n\t\t\tif(alength<=2&&sum<13){\n\t\t\t\tblength=1;\n\t\t\t\tb[0]=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(blength!=0){\n\t\t\t\tb[blength]=0;\n\t\t\t\tblength++;\n\t\t\t}\n\t\t}\n\t}\n\tif(alength==1){\n\t\tblength=1;\n\t\tb[0]=0;\n\t}\n\tfor(i=1;i<=blength;i++){\n\t\tprintf(\"%d\",b[i-1]);\n\t\t\n\t}\n\tif(zero!=0&&test==1){\n\t\tfor(i=1;i<=zero;i++){\n\t\t\tprintf(\"0\");\n\t\t}\n\t}\n\tprintf(\"\\n%d\",a[alength-1]);\n} "} +{"label": "97", "index": "48000", "code": "int main(){\n int n,a,b,c,d,e;\n int sz[6];\n scanf(\"%d\",&n);\n sz[0]=n/100;\n a=n%100;\n sz[1]=a/50;\n b=a%50;\n sz[2]=b/20;\n c=b%20;\n sz[3]=c/10;\n d=c%10;\n sz[4]=d/5;\n e=d%5;\n sz[5]=e;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",sz[0],sz[1],sz[2],sz[3],sz[4],sz[5]);\n\treturn 0;\n}"} +{"label": "97", "index": "48001", "code": "int main()\n{\n\tint a[6]={100,50,20,10,5,1},b[6]={0};\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<6;i++)\n\t{\n\t\tif(n>0)\n\t\t{\n\t \tb[i]=n/a[i];\n\t \tn=n-b[i]*a[i];\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t}\n\tfor(i=0;i<6;i++)\n\t\tprintf(\"%d\\n\",b[i]);\n\treturn 0;\n\n}"} +{"label": "97", "index": "48002", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tcin>>n;\n\tcout<=mianzhi[i],i<10)\n{\npieces[i]=value/mianzhi[i];\nvalue=value-pieces[i]*mianzhi[i];\ni++;\n}\nfor(i=0;i<10;i++)\n{\nif(pieces[i]>=0) \n{\nresult[j]=pieces[i];\nflag[j]=mianzhi[i];\nj++;\n}\n}\nfor(i=0;i>v;\n fy(100);\n fy(50);\n fy(20);\n fy(10);\n fy(5);\n fy(1);\n return EXIT_SUCCESS;\n}\n"} +{"label": "97", "index": "48005", "code": "int main(){\nint m;\n scanf(\"%d\",&m);\n int a,b,c,d,e,f;\n a=m/100;\n b=(m-100*a)/50;\n c=(m-100*a-50*b)/20;\n d=(m-a*100-50*b-20*c)/10;\n e=(m-a*100-50*b-20*c-10*d)/5;\n f=(m-a*100-50*b-20*c-10*d-e*5)/1;\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n\t return 0;\n}"} +{"label": "97", "index": "48006", "code": "int main(){\n int m,i,j,k,l,a,b,c,d,e,f,n,fif,twe,ten;\n a=0;\n i=0;\n b=0;\n c=0;\n d=0;\n e=0;\n f=0;\n scanf(\"%d\",&m);\n for(i=m;i>0;i-=100){\n if(i>=100){\n a++;\n }\n }\n for(j=(m%100);j>0;j-=50){\n if(j>=50){\n b++;\n }\n }\n fif=m%50;\n for(k=fif;k>0;k-=20){\n if(k>=20){\n c++;\n }\n }\n twe=(((m%100)%50)%20);\n for(l=twe;l>0;l-=10){\n if(l>10){\n d++;\n }\n }\n ten=m%10;\n for(n=ten;n>0;n-=5){\n if(n>=5){\n e++;\n }\n }\n f=m%5;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48007", "code": "int main()\n{\n\tint a;\n\tint bai,wushi,ershi,shi,wu,yi;\n\tcin>>a;\n\tbai=a/100;\n\ta=a%100;\n\twushi=a/50;\n\ta=a%50;\n\tershi=a/20;\n\ta=a%20;\n\tshi=a/10;\n\ta=a%10;\n\twu=a/5;\n\ta=a%5;\n\tyi=a;\n\tcout<100)\n\t{\n\t\n\t b=a/100;\n\t\ta=a-b*100;\n\t}\n\t\tif(a>=50)\n\t\t{\n\t\t a=a-50;\n\t\t\tc=1;\n\t\t}\n\t\tif(a>=40)\n\t\t\t{\n\t\t\t\td=2;\n\t\t\t\ta=a-40;\n\t\t\t}\n\t\tif((a>=20)&&(a<40))\n\t\t{\n\t\t\td=1;\n\t\t\t\ta=a-20;\n\t\t}\n if(a>=10)\n\t\t{\n\t\t\te=1;\n\t\t\t\ta=a-10;\n\t\t}\n\t\tif(a>=5)\n\t\t{\n\t\t f=1;\n\t\t\ta=a-5;\n\t\t}\n\t\tg=a;\n\t\t\n\t\n\tprintf(\"%d\\n\",b);\n\t\tprintf(\"%d\\n\",c);\n\t\tprintf(\"%d\\n\",d);\n\t\tprintf(\"%d\\n\",e);\n\t\tprintf(\"%d\\n\",f);\n\t\tprintf(\"%d\\n\",g);\n}"} +{"label": "97", "index": "48009", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[6]={0};\n\ta[0]=(n-n%100)/100;\n\ta[1]=(n%100-(n%100)%50)/50;\n\ta[2]=(n-100*a[0]-50*a[1]-(n-100*a[0]-50*a[1])%20)/20;\n\ta[3]=(n-100*a[0]-50*a[1]-20*a[2]-n%10)/10;\n\ta[4]=(n%10-(n%10)%5)/5;\n\ta[5]=n%5;\n\tint i;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48010", "code": "int main(){\n int x,a,b,c,d,e,f,g,h,i,j,k;\n scanf(\"%d\",&x);\n a=x/100;\n b=x%100;\n c=b/50;\n d=b%50;\n e=d/20;\n f=d%20;\n g=f/10;\n h=f%10;\n i=h/5;\n j=h%5;\n k=j;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,c,e,g,i,k);\n scanf(\"%d\",&a);\n return 0;\n}\n"} +{"label": "97", "index": "48011", "code": "int main()\n{\n\tint m,a,b,c,d,e,i,j,k,l,n,q;\n\tscanf(\"%d\",&m);\n\ta=m%100;\n\ti=(m-a)/100;\n\tb=(m-i*100)%50;\n\tj=(m-i*100-b)/50;\n\tc=(m-i*100-j*50)%20;\n\tk=(m-i*100-j*50-c)/20;\n d=(m-i*100-j*50-k*20)%10;\n\tl=(m-i*100-j*50-k*20-d)/10;\n\te=(m-i*100-j*50-k*20-10*l)%5;\n\tn=(m-i*100-j*50-k*20-10*l-e)/5;\n\tq=m-i*100-j*50-k*20-10*l-5*n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",i,j,k,l,n,q);\n return 0;\n}"} +{"label": "97", "index": "48012", "code": "int main(){\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n a=(n-n%100)/100;\n\tb=(n%100-(n%100)%50)/50;\n\tc=((n-a*100-b*50)-(n-a*100-b*50)%20)/20;\n\td=((n-a*100-b*50-c*20)-(n-a*100-b*50-c*20)%10)/10;\n\te=((n-a*100-b*50-c*20-d*10)-(n-a*100-b*50-c*20-d*10)%5)/5;\n\tf=n-a*100-b*50-c*20-d*10-e*5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48013", "code": "//??????????\n//?????2011?1?\n//???????\nint main()\n{\nint a,b,c,d,e,f,g,sum; //????\ncin>>sum; //?????\na=sum/100; //??100???\nb=(sum-100*a)/50; //??50???\nif(b<0)\nb=0;\nc=(sum-a*100-b*50)/20; //??20???\nif(c<0)\nc=0;\nd=(sum-a*100-b*50-c*20)/10; //??10???\nif(d<0)\nd=0;\ne=(sum-a*100-b*50-c*20-d*10)/5;//??5???\nif(e<0)\ne=0;\nf=sum-a*100-b*50-c*20-d*10-e*5;//??1???\nif(f<0)\nf=0;\ncout<>n;\nfor(i=0;i<=5;i++)\n{\nwhile(n>=0)\n{\nn=n-b[i];\na[i]++;\n}\nn=n+b[i];\na[i]=a[i]-1;\n}\nfor(i=0;i<=5;i++)\n{\ncout<=100)\n\t{\n\t\tm=m-100;\n\t\ta++;\n\t}\n\twhile(m>=50)\n\t{\n\t\tm=m-50;\n\t\tb=1;\n\t}\n\twhile(m>=20)\n\t{\n\t\tm=m-20;\n\t\tc++;\n\t}\n\twhile(m>=10)\n\t{\n\t\tm=m-10;\n\t\td=1;\n\t}\n\twhile(m>=5)\n\t{\n\t\tm=m-5;\n\t\te=1;\n\t}\n\twhile(m>=1)\n\t{\n\t\tm=m-1;\n\t\tf++;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48018", "code": "\nint main(int argc, char* argv[])\n{\n\tint n, a[6]={0},i;\n\tscanf(\"%d\", &n);\n\ta[0]=n/100;\n\tn=n%100;\n\ta[1]=n/50;\n\tn=n%50;\n\ta[2]=n/20;\n\tn=n%20;\n\ta[3]=n/10;\n\tn=n%10;\n\ta[4]=n/5;\n\tn=n%5;\n\ta[5]=n;\n\tfor(i=0;i<6;i++){\n\n\tprintf(\"%d\\n\", a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48019", "code": "int main()\n{\n\tint money,change[6]={0},i,mon[6]={100,50,20,10,5,1},p;\n\tcin>>money;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tp=money;\n\t\tchange[i]=money/mon[i];\n\t\tmoney=p-change[i]*mon[i];\n\t}\n\tfor(i=0;i<6;i++)\n\t{\n\t\tcout<=money[i])\n {\n k=k-money[i];\n sum[i]++;\n }\n printf(\"%d\\n\",sum[i]);\n } \n return 0;\n}"} +{"label": "97", "index": "48022", "code": "int main()\n{\n\tint n;\n\tint a,b,c,d,e,f;\n\tint a1=0,b1=0,c1=0,d1=0,e1=0,f1=0;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\ta1=n%100;\n\tb=a1/50;\n\tb1=a1%50;\n\tc=b1/20;\n\tc1=b1%20;\n\td=c1/10;\n\td1=c1%10;\n\te=d1/5;\n\te1=d1%5;\n\tf=e1;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n\t}\n"} +{"label": "97", "index": "48023", "code": "int main()\n{\n int n,a[7],i=0;\n memset(a,0,sizeof(a));\n cin>>n;\n if (n / 100>=1) { a[1]=a[1]+n/100; n=n-a[1]*100;}\n if (n / 50>=1) { a[2]=a[2]+n/50; n=n-a[2]*50;}\n if (n / 20>=1) { a[3]=a[3]+n/20; n=n-a[3]*20;}\n if (n / 10>=1) { a[4]=a[4]+n/10; n=n-a[4]*10;}\n if (n / 5>=1) { a[5]=a[5]+n/5; n=n-a[5]*5;}\n if (n / 1>=1) { a[6]=a[6]+n/1; n=n-a[6]*1;}\n \n for (i=1;i<=6;i++)\n cout<=1){\n a=n/100;\n n=n-100*a;\n }\n else a=0;\n if(n/50>=1){\n b=n/50;\n n=n-50*b;\n }\n else b=0;\n if(n/20>=1){\n c=n/20;\n n=n-20*c;\n }\n else c=0;\n if(n/10>=1){\n d=n/10;\n n=n-10*d;\n }\n else d=0;\n if(n/5>=1){\n e=n/5;\n n=n-5*e;\n }\n else e=0;\n f=n;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n scanf(\"%d\",&n);\n return 0;\n}\n"} +{"label": "97", "index": "48027", "code": "int main(){\nint money[6]={100,50,20,10,5,1};\nint n,y;\nscanf(\"%d\",&n);\ny=n;\nint h[6]={0,0,0,0,0,0};\nfor(int i=0;i<6;i++){\nif(y>=money[i]){\nh[i]=y/money[i];\ny=y%money[i];\n}\n }\nfor(int i=0;i<6;i++){\nprintf(\"%d\\n\",h[i]);\n}\nreturn 0;\n}"} +{"label": "97", "index": "48028", "code": "int main()\n{\n int n,hun,fif,twe,ten,fiv,one;\n scanf(\"%d\",&n);\n hun=n/100;\n fif=(n-hun*100)/50;\n twe=(n-hun*100-fif*50)/20;\n ten=(n-hun*100-fif*50-twe*20)/10;\n fiv=(n-hun*100-fif*50-twe*20-ten*10)/5;\n one=(n-hun*100-fif*50-twe*20-ten*10-fiv*5)/1;\n int sz[6]={hun,fif,twe,ten,fiv,one};\n int i;\n for(i=0;i<6;i++)\n {\n printf(\"%d\\n\",sz[i]);\n }\n return 0;\n}"} +{"label": "97", "index": "48029", "code": "//*************************************************************\n//???????? \n//*************************************************************\nint main()\n{\n\tint a,n[7];\n\tcin>>a;\n\tn[1]=a/100;\n\ta=a%100;\n\tn[2]=a/50;\n\ta=a%50;\n\tn[3]=a/20;\n\ta=a%20;\n\tn[4]=a/10;\n\ta=a%10;\n\tn[5]=a/5;\n\tn[6]=a%5;\n\tint i;\n\tfor(i=1;i<=6;i++)\n\t\tcout<>n;\na=n/100;\ns=(n-100*a)/50;\nd=(n-100*a-50*s)/20;\nf=(n-100*a-50*s-20*d)/10;\ng=n%10/5;\nh=n%5;\ncout<>n;\n\ta100=(n-n%100)/100; \n\tk=n-a100*100;\n\ta50=(k-k%50)/50;\n\tk=k-a50*50;\n\ta20=(k-k%20)/20;\n\tk=k-a20*20;\n\ta10=(k-k%10)/10;\n\tk=k-a10*10;\n\ta5=(k-k%5)/5;\n\tk=k-a5*5;\n\ta1=k;\n\tcout<=50)\n\t\te=1;\n\telse\n\t\te=0;\n\th=g-50*e-5*b-a;\n\td=(h-(h%20))/20;\n\tc=(h-20*d)/10;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",f,e,d,c,b,a);\n\treturn 0;\n}\n\t\n\t\n\n"} +{"label": "97", "index": "48034", "code": "int main()\n{ int a[10],n,m,i,j,k;\n cin >>n;\n a[1]=n/100;\n n=n%100;\n a[2]=n/50;\n n=n%50;\n a[3]=n/20;\n n=n%20;\n a[4]=n/10;\n n=n%10;\n a[5]=n/5;\n n=n%5; \n a[6]=n;\n for (i=1;i<=6;i++)\n cout <> x ; \n for (i = 1 ; i <= 6 ; i ++ ) \n {\n cout << (x / a[i]) << endl ; \n x %= a[i] ; \n }\n return 0 ; \n}\n"} +{"label": "97", "index": "48036", "code": "int main()\n{\n\tint sum,number[6]={0},i,j=0;\n\tcin>>sum;\n\tfor (;sum>=100;number[j]++)\t\tsum=sum-100;\n\tj++;\n\tfor (;sum>=50;number[j]++) sum=sum-50;\n\tj++;\n\tfor (;sum>=20;number[j]++)sum=sum-20;\n\tj++;\n\tfor (;sum>=10;number[j]++)sum=sum-10;\n\tj++;\n\tfor (;sum>=5;number[j]++)sum=sum-5;\n\tj++;\n\tfor (;sum>=1;number[j]++)sum=sum-1;\n\tfor(j=0;j<6;j++) cout<=100){\n\t\ts100=sum/100;\n\t\tsum=sum%100;\n\t}\n\tif(sum>=50){\n\t\ts50++;\n\t\tsum=sum-50;\n\t}\n\twhile(sum>=20){\n\t\ts20++;\n\t\tsum=sum-20;\n\t}\n\tif(sum>=10){\n\t\ts10++;\n\t\tsum=sum-10;\n\t}\n\tif(sum>=5){\n\t\ts5++;\n\t\tsum=sum-5;\n\t}\n\ts1=sum;\n\tprintf(\"%d\\n\",s100);\n\tprintf(\"%d\\n\",s50);\n\tprintf(\"%d\\n\",s20);\n\tprintf(\"%d\\n\",s10);\n\tprintf(\"%d\\n\",s5);\n\tprintf(\"%d\\n\",s1);\n\treturn 0;\n}"} +{"label": "97", "index": "48039", "code": "int main()\n{\n\tint n,h,l;\n\tcin>>n;\n\th=n/100;\n\tl=n%100;\n\tcout<=100)\n\t{\n\t\tsum1=a%10;\n\t\tsum10=a/10%10;\n\t\tsum100=a/100;\n\t\tn100=sum100;\n\t\tif(sum10<=1) \n\t\t{\n\t\t\tn10=sum10;\n\t\t\tn20=0;\n\t\t\tn50=0;\n\t\t}\n\t\telse if(sum10>=2 && sum10<5)\n\t\t{\n\t\t\tn20=sum10/2;\n\t\t\tn10=sum10-2*n20;\n\t\t\tn50=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn50=1;\n\t\t\tn20=(sum10-5)/2;\n\t\t\tn10=sum10-5-2*n20;\n\t\t}\n\t\tif(sum1<5)\n\t\t{\n\t\t\tn1=sum1;\n\t\t\tn5=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn5=1;\n\t\t\tn1=sum1-5;\n\t\t}\n\t}\n\tif(a>=10&&a<100)\n\t{\n\t\tsum10=a/10;\n\t\tsum1=a%10;\n\t\tn100=0;\n\t\tif(sum10<=1) \n\t\t{\n\t\t\tn10=sum10;\n\t\t\tn20=0;\n\t\t\tn50=0;\n\t\t}\n\t\telse if(sum10>=2 && sum10<5)\n\t\t{\n\t\t\tn20=sum10/2;\n\t\t\tn10=sum10-2*n20;\n\t\t\tn50=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn50=1;\n\t\t\tn20=(sum10-5)/2;\n\t\t\tn10=sum10-5-2*n20;\n\t\t}\n\t\tif(sum1<5)\n\t\t{\n\t\t\tn1=sum1;\n\t\t\tn5=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn5=1;\n\t\t\tn1=sum1-5;\n\t\t}\n\t}\n\tif(a>=0&&a<10)\n\t{\n\t\tsum1=a;\n\t\tn100=0;\n\t\tn50=0;\n\t\tn20=0;\n\t\tn10=0;\n\t\tif(sum1<5)\n\t\t{\n\t\t\tn1=sum1;\n\t\t\tn5=0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn5=1;\n\t\t\tn1=sum1-5;\n\t\t}\n\t}\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n100,n50,n20,n10,n5,n1);\n\treturn 0;\n}\n\t\n"} +{"label": "97", "index": "48043", "code": "int main(){\n\tint i,qian;\n\tint yu[6]={0};\n\tint zhang[6]={0};\n\tscanf(\"%d\",&qian);\n\tzhang[0]=qian/100;\n\tyu[0]=qian-zhang[0]*100;\n\tzhang[1]=yu[0]/50;\n\tyu[1]=yu[0]-zhang[1]*50;\n\tzhang[2]=yu[1]/20;\n\tyu[2]=yu[1]-zhang[2]*20;\n\tzhang[3]=yu[2]/10;\n\tyu[3]=yu[2]%10;\n\tzhang[4]=yu[3]/5;\n\tyu[4]=yu[3]%5;\n\tzhang[5]=yu[4];\n\tfor(i=0;i<6;i++){\n\t\tprintf(\"%d\\n\",zhang[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48044", "code": "int main()\n{\n\tint sum,i,n[6],rest[7],\n\t\tprice[6]={100,50,20,10,5,1};\n\tcin>>sum;\n\trest[0]=sum;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tn[i]=rest[i]/price[i];\n\t\trest[i+1]=rest[i]%price[i];\n\t\tcout<>n;\n for (n;n>=100;n=n-100) //?????????????100\n {\n m=m+1; //100?????\n } \n cout<=50;n=n-50)\n {\n m=m+1;\n } \n cout<=20;n=n-20)\n {\n m=m+1;\n } \n cout<=10;n=n-10)\n {\n m=m+1;\n } \n cout<=5;n=n-5)\n {\n m=m+1;\n } \n cout<=1;n=n-1)\n {\n m=m+1;\n } \n cout<=100){\n\t\t\ta++;\n\t\t}else if(n-100*a-50*b>=50){\n\t\t\tb++;\n\t\t}else if(n-100*a-50*b-20*c>=20){\n\t\t\tc++;\n\t\t}else if(n-100*a-50*b-20*c-10*d>=10){\n\t\t\td++;\n\t\t}else if(n-100*a-50*b-20*c-10*d-5*e>=5){\n\t\t\te++;\n\t\t}else\n\t\tbreak;\n\t\t\tf=n-100*a-50*b-20*c-10*d-5*e;\n\t}\n\t\t\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\t\t\treturn 0;\n\t}"} +{"label": "97", "index": "48048", "code": "int main(){\n\tint n,m;\n\tscanf(\"%d\",&n);\n\tm=n/100;\n\tprintf(\"%d\\n\",m);\n\tm=(n%100)/50;\n\tprintf(\"%d\\n\",m);\n\tm=((n%100)%50)/20;\n\tprintf(\"%d\\n\",m);\n\tm=(((n%100)%50)%20)/10;\n\tprintf(\"%d\\n\",m);\n\tm=((((n%100)%50)%20)%10)/5;\n\tprintf(\"%d\\n\",m);\n\tm=(((((n%100)%50)%20)%10)%5)/1;\n\tprintf(\"%d\\n\",m);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48049", "code": "int main()\n{\n int m,a,b,c,d,e,f;\n cin>>m;\n a=m%100;\n b=a%50;\n c=b%20;\n d=c%10;\n e=d%5;\n cout<<(m-a)/100<<'\\n'<<(a-b)/50<<'\\n'<<(b-c)/20<<'\\n'<<(c-d)/10<<'\\n'<<(d-e)/5<<'\\n'<> a;\n\tbai = a / 100; // ??????\n\tshi = (a - bai * 100) / 10; // ??????\n\tge = a % 10; // ????\n\tn100 = bai; // ??100???????????\n\tif (shi >= 5) // ?????????5\n\t{\n\t\tn50 = 1; // ??50???????\n\t\tif ((shi - 5) >= 2) // ????5?????2?????20??\n\t\t{\n\t\t\tn20 = (shi - 5) / 2; // 20???\n\t\t\tn10 = shi - 5 - 2 * n20; // 10???\n\t\t}\n\t\telse // ????5???2?????20??\n\t\t{\n\t\t\tn20 = 0; // 20???\n\t\t\tn10 = shi - 5; // 10???\n\t\t}\n\t}\n\telse // ???????50???????????????~~\n\t{\n\t\tn50 = 0;\n\t\tif (shi >= 2)\n\t\t{\n\t\t\tn20 = shi / 2;\n\t\t\tn10 = shi - 2 * n20;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn20 = 0;\n\t\t\tn10 = shi;\n\t\t}\n\t}\n\n\t// ?????????~~???~~\n\tif (ge >= 5) \n\t{\n\t\tn5 = 1;\n\t\tn1 = ge -5;\n\t}\n\telse\n\t{\n\t\tn5 = 0;\n\t\tn1 = ge;\n\t}\n\n\t// ?????\n\tcout << n100 << endl << n50 << endl << n20 << endl << n10 << endl << n5\n\t\t<< endl << n1 << endl;\n\treturn 0;\n}"} +{"label": "97", "index": "48053", "code": "void main()\n{int n,a,b,c,d,e,f;\n scanf(\"%d\",&n);\n a=n/100;\n b=(n-100*a)/50;\n c=(n-100*a-50*b)/20;\n d=(n-100*a-50*b-20*c)/10;\n e=(n-100*a-50*b-20*c-10*d)/5;\n f=n%10-5*e;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n}"} +{"label": "97", "index": "48054", "code": "int main()\n{\n\tint t;\n\tint bai,ws,es,shi,wu,yi;\n\tscanf(\"%d\",&t);\n\tbai=t/100;\n\tprintf(\"%d\\n\",bai);\n\tif(t-bai*100>=50)\n\t{\n\t\tws=1;\n\t}\n\telse\n\t{\n\t\tws=0;\n\t}\n\tprintf(\"%d\\n\",ws);\n\tif((t-bai*100-ws*50)>=40)\n\t{\n\t es=2;\n\t}\n\telse if((t-bai*100-ws*50)>=20)\n\t{\n\t\tes=1;\n\t}\n\telse\n\t{\n\t\tes=0;\n\t}\n\tprintf(\"%d\\n\",es);\n\tif((t-bai*100-ws*50-es*20)>=10)\n\t{\n\t shi=1;\n\t}\n\telse\n\t{\n\t\tshi=0;\n\t}\n\tprintf(\"%d\\n\",shi);\n\tif((t-bai*100-ws*50-es*20-shi*10)>=5)\n\t{\n\t wu=1;\n\t}\n\telse\n\t{\n\t\twu=0;\n\t}\n\tprintf(\"%d\\n\",wu);\n\tif((t-bai*100-ws*50-es*20-shi*10-wu*5)>0)\n\t{\n\t yi=(t-bai*100-ws*50-es*20-shi*10-wu*5);\n\t}\n\telse\n\t{\n\t\tyi=0;\n\t}\n\tprintf(\"%d\\n\",yi);\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48055", "code": "int main()\n{\n int a,b,c,d,e,f,m;\n scanf(\"%d\",&m);\n a=(m-m%100)/100;\n m=m-a*100;\n b=(m-m%50)/50;\n m=m-b*50;\n c=(m-m%20)/20;\n m=m-c*20;\n d=(m-m%10)/10;\n m=m-d*10;\n e=(m-m%5)/5;\n m=m-5*e;\n f=(m-m%1)/1;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48056", "code": "int main()\n{\n int m,a;\n scanf(\"%d\",&m);\n a=m/100;printf(\"%d\\n\",a);m=m-a*100;\n a=m/50;printf(\"%d\\n\",a);m=m-a*50;\n a=m/20;printf(\"%d\\n\",a);m=m-a*20;\n a=m/10;printf(\"%d\\n\",a);m=m-a*10;\n a=m/5;printf(\"%d\\n\",a);m=m-a*5;\n a=m/1;printf(\"%d\\n\",a);m=m-a*1;\n\n\n return 0;\n}\n\n"} +{"label": "97", "index": "48057", "code": " int main ()\n{\n int n,a,b,c,d,e,i,zong; \n scanf(\"%d\",&n);\n for(i=0;i<=1000;i++)\n {\n if(100*i<=n&&100*(i+1)>n)\n a=i;\n }\n for(i=0;i<=1000;i++)\n {\n if(50*i<=(n-100*a)&&50*(i+1)>(n-100*a))\n {b=i;\n zong=n-100*a-50*b;}\n }\n for(i=0;i<=1000;i++)\n {\n if(20*i<=zong&&20*(i+1)>zong)\n { c=i;\n zong=n-100*a-50*b-20*c;}\n }\n for(i=0;i<=1000;i++)\n {\n if(10*i<=zong&&10*(i+1)>zong)\n { d=i;\n zong=n-100*a-50*b-20*c-10*d;}}\n for(i=0;i<=1000;i++)\n {\n if(5*i<=zong&&5*(i+1)>zong)\n { e=i;\n zong=n-100*a-50*b-20*c-10*d-5*e;}}\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,zong);\n return 0;\n}\n \n\n\n "} +{"label": "97", "index": "48058", "code": "int main() {\n\tint a,b,c,d,e,f,g;\n\tscanf(\"%d\",&a);\n\tif (a<1000) {\n\t\tb=a/100;\n\t\tc=(a-100*b)/50;\n\t\td=(a-100*b-50*c)/20;\n\t\te=(a-100*b-50*c-20*d)/10;\n\t\tf=(a-100*b-50*c-20*d-10*e)/5;\n\t\tg=a%5;\n\t\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,g);\n\t}else {\n\t\tprintf(\"please input a number less than 1000\");\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48059", "code": "int main()\n{\n\tint n,b=0;\n\tcin>>n;\n\tfor(int i=10;i>=0;--i)\n\t\tfor(int j=1;j>=0;--j)\n\t\t\tfor(int k=2;k>=0;--k)\n\t\t\t\tfor(int l=2;l>=0;--l)\n\t\t\t\t\tfor(int m=2;m>=0;--m)\n\t\t\t\t\t\tfor(int a=5;a>=0;--a)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif((100*i+50*j+20*k+10*l+5*m+a==n)&&b==0)\n\t\t\t\t\t\t\t{cout<=100)\n\t{\n\t\tn=n-100;\n\t\ti++;\n\t\ta1=i;\n\t}\n\t\n\tprintf(\"%d\\n\",a1);\n\twhile(n>=50&&n<100)\n\t{\n\t\tn=n-50;\n\t\tl++;\n\t\ta2=l;\n\t}\n\t\n\tprintf(\"%d\\n\",a2);\n\twhile(n>=20&&n<50)\n\t{\n\t\tn=n-20;\n\t\tk++;\n\t\ta3=k;\n\t}\n\t\n\t\tprintf(\"%d\\n\",a3);\n\twhile(n>=10&&n<20)\n\t{\n\t\tn=n-10;\n\t\tx++;\n\t\ta4=x;\n\t}\n\t\n\t\tprintf(\"%d\\n\",a4);\n\twhile(n>=5&&n<10)\n\t{\n\t\tn=n-5;\n\t\tq++;\n\t\ta5=q;\n\t}\n\t\n\t\tprintf(\"%d\\n\",a5);\n\twhile(n>0&&n<5)\n\t{\n\t\tn=n-1;\n\t\ty++;\n\t\ta6=y;\n\t}\n\t\n\t\tprintf(\"%d\\n\",a6);\n\t\n\t\treturn 0;\n}\n\n\n\t"} +{"label": "97", "index": "48062", "code": "int main(){\n\tint n,i,a[6],b[6]={100,50,20,10,5,1};\n\tscanf(\"%d\",&n);\n\ta[0]=n/b[0];\n\tprintf(\"%d\\n\",a[0]);\n\tfor(i=0;i<5;i++){\n\t\tn-=a[i]*b[i];\n\t\ta[i+1]=n/b[i+1];\n\t\tprintf(\"%d\\n\",a[i+1]);\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48063", "code": "int main()\n{\n int n=0,i=0;\n int a[6]={0};\n cin>>n;\n a[0]=n/100;\n n=n-a[0]*100;\n a[1]=n/50;\n n=n-a[1]*50;\n a[2]=n/20;\n n=n-20*a[2];\n a[3]=n/10;\n n=n-10*a[3];\n a[4]=n/5;\n n=n-5*a[4];\n a[5]=n/1;\n for(i=0;i<6;i++)\n cout<>n;\n\nfor(i=1;n-100>=0;i++)//????????\n\t{n=n-100;\n\ta=i;}\nfor(i=1;n-50>=0;i++)\n\t{n=n-50;\n\tb=i;}\nfor(i=1;n-20>=0;i++)\n\t{n=n-20;\n\tc=i;}\nfor(i=1;n-10>=0;i++)\n\t{n=n-10;\n\td=i;}\nfor(i=1;n-5>=0;i++)\n\t{n=n-5;\n\te=i;}\nfor(i=1;n-1>=0;i++)\n\t{n=n-1;\n\tf=i;}\n\ncout<>sum;\n\tx100=sum/100;sum=sum-100*x100;\n\tx50=sum/50;sum=sum-50*x50;\n\tx20=sum/20;sum=sum-20*x20;\n\tx10=sum/10;sum=sum-10*x10;\n\tx5=sum/5;sum=sum-5*x5;\n\tx1=sum/1;sum=sum-1*x1;\n\tcout<>n;\n\t for (i=1;i<=6;i++)\n\t { a[i]=n/b[i-1];\n\t n=n%b[i-1];\n\t cout<>sum;\n\tcout<=5){\n\t\tprintf(\"1\\n\");\n\t\td=(c-5)/2;\n\t\tprintf(\"%d\\n\",d);\n\t\t\n\t\tif((c-5)%2==0){\n\t\t\tprintf(\"0\\n\");\n\t\t}\n\t\telse{\n\t\t\tprintf(\"1\\n\");\n\t\t}\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t\tprintf(\"%d\\n\",d=c/2);\n\n\t\tif(c%2==0){\n\t\t\tprintf(\"0\\n\");\n\t\t}\n\t\telse{\n\t\t\tprintf(\"1\\n\");\n\t\t}\n\t}\n\te=m-10*b;\n\tif(e>=5){\n\t\tprintf(\"1\\n\");\n\t\tprintf(\"%d\\n\",g=e-5);\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t\tprintf(\"%d\\n\",e);\n\t}return 0;\n }\n"} +{"label": "97", "index": "48076", "code": "void main()\n{\n\tint n,a[7],i;\n\tscanf(\"%d\",&n);\n\ta[0]=n/100;\n\tn=n%100;\n\ta[1]=n/50;\n\tn=n%50;\n\ta[2]=n/20;\n\tn=n%20;\n\t\ta[3]=n/10;\n\tn=n%10;\n\n\t\ta[4]=n/5;\n\tn=n%5;\n\n\t\ta[5]=n/1;\n\tn=n%1;\n\tfor(i=0;i<6;i++)\n\t\tprintf(\"%d\\n\",a[i]);\n}\n\n\n"} +{"label": "97", "index": "48077", "code": "int main(){\nint n;\nscanf(\"%d\",&n);\nint a=0,s=0,d=0,f=0,g=0,h=0;\na=n/100;\ns=n%100/50;\nd=n%50/20;\nf=(n%100-s*50-d*20)/10;\ng=n%10/5;\nh=n%5;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,s,d,f,g,h);\nreturn 0;}"} +{"label": "97", "index": "48078", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n int num[6];\n num[0]=(n-n%100)/100;\n n=n-num[0]*100;\n num[1]=(n-n%50)/50;\n n=n-num[1]*50;\n num[2]=(n-n%20)/20;\n n=n-num[2]*20;\n num[3]=(n-n%10)/10;\n n=n-num[3]*10;\n num[4]=(n-n%5)/5;\n n=n-num[4]*5;\n num[5]=n;\n for(int i=0;i<6;i++)\n {\n printf(\"%d\\n\",num[i]);\n } \n \n return 0;\n}\n"} +{"label": "97", "index": "48079", "code": "int main()\n{\n\tint n,a,b,c;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tb=n/10-n/100*10;\n\tc=n-n/100*100-(n/10-n/100*10)*10;\n\t\n\tif (a!=0)\n\t{\n\t\tprintf(\"%d\\n\",a);\n\t}\n\telse\n\t\t{\n\t\tprintf(\"0\\n\");\n\t}\n\n\tif (b>=5)\n\t{\n\t\tprintf(\"%d\\n\",b/5);\n\t\tb=b-5;\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\tif (b>=2 && b<5)\n\t{\n\t\tprintf(\"%d\\n\",b/2);\n\t\tb=b-2;\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\tif (b==1)\n\t{\n\t\tprintf(\"%d\\n\",b);\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\tif (c>=5)\n\t{\n\t\tprintf(\"%d\\n\",c/5);\n\t\tc=c-5;\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\tif (c>=1 && c<5)\n\t{\n\t\tprintf(\"%d\\n\",c);\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48080", "code": "int main()\n{\n\tint q,a=0,b=0,c=0,d=0,e=0,f=0;\n\tscanf(\"%d\",&q);\n\ta=q/100;\n\tif ((q-a*100)>=50)\n\t\tb=1;\n\tq=q-a*100-b*50;\n\tif (q>=20)\n\t\tc=q/20;\n\tq=q-20*c;\n\tif (q>=10)\n\t\td=q/10;\n\tq=q-10*d;\n\tif (q>=5)\n\t\te=q/5;\n\tq=q-5*e;\n\tf=q;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48081", "code": "int main (){\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tf=0;\n\tif(n<1000&&n>=100){\n\t\ta=n/100;\n\t\tn=n%100;\n\t}\n\n\tif(n>=50){\tb=n/50;\n\tn=n%50;}\n\tif(n>=20){\tc=1*n/20;\n\tn=n%20;}\n\tif(n>=10){\td=1*n/10;\n\tn=n%10;}\n\tif(n>=5){\n\t\te=n/5;\n\t\tn=n%5;}\n\t\tf=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48082", "code": "int main()\n{\n\tint n,i,r;\n\tscanf (\"%d\",&n);\n\tint a[10];\n\tint b[10];\n\ta[1]=100;\n\ta[2]=50;\n\ta[3]=20;\n\ta[4]=10;\n\ta[5]=5;\n\ta[6]=1;\n\tfor (i=1;i<7;i++)\n\t{\n\t\tr=n%a[i];\n\t\tb[i]=(n-r)/a[i];\n\t\tn=r;\n\t\tprintf(\"%d\\n\",b[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48083", "code": "\nint main()\n{\n\tint n;\n\tcin>>n;\n\tcout<>x;\n for(int i=0;i<7;i++)\n {\n int s=x/aa[i];\n cout<> N;\n\n\tint\tpiao100 = 0;\n\tint\tpiao50 = 0;\n\tint\tpiao20 = 0;\n\tint\tpiao10 = 0;\n\tint\tpiao5 = 0;\n\tint\tpiao1 = 0;\n\n\tpiao100 = (int) (N / 100);\n\tN = N - 100 * piao100;\n\n\tpiao50 = (int)\t(N / 50);\n\tN = N - 50 * piao50;\n\n\tpiao20 = (int) (N / 20);\n\tN = N - 20 * piao20;\n\n\tpiao10 = (int) (N / 10);\n\tN = N - 10 * piao10;\n\n\tpiao5 = (int) (N / 5);\n\tN = N - 5 * piao5;\n\n\tpiao1 = N;\n\n\tcout << piao100 << endl << piao50 << endl << piao20 << endl << piao10 << endl;\n\tcout << piao5 << endl << piao1 << endl;\n\t\n\t\n\nreturn 0;\n}\n"} +{"label": "97", "index": "48086", "code": "int main()\n{\n\tint n,a;\n\tint sz[6];\n\tint money[6]={100,50,20,10,5,1};\n\tscanf(\"%d\",&n);\n\ta=n;\n\tfor(int i=0;i<6;i++){\n\t\tsz[i]=a/(money[i]);\n\t\ta=a%(money[i]);\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",sz[0],sz[1],sz[2],sz[3],sz[4],sz[5]);\n\treturn 0;\n}"} +{"label": "97", "index": "48087", "code": "int main()\n{\n\tint m,i,j;\n\tint a[6]={100,50,20,10,5,1};\n\tint b[6]={0};\n\tscanf(\"%d\",&m);\n\tfor(i=0;i<=5;i++)\n\t{\n\t\tfor(j=1;m>=a[i];j++)\n\t\t{\n\t\t\tm=m-a[i];\n\t\t\tb[i]++;\n\t\t}\n\t}\n for(i=0;i<=5;i++)\n\t{\n\t\tprintf(\"%d\\n\",b[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48088", "code": "int main()\n{\n\tint n,y100,y50,y20,y10,y5,y1,y;\n\tscanf(\"%d\",&n);\n\ty100=n/100;\n\ty=n-100*y100;\n\ty50=y/50;\n\ty=y-50*y50;\n\ty20=y/20;\n\ty=y-20*y20;\n\ty10=y/10;\n\ty=y-10*y10;\n\ty5=y/5;\n\ty=y-5*y5;\n\tprintf(\"%d\\n\",y100);\n\tprintf(\"%d\\n\",y50);\n\tprintf(\"%d\\n\",y20);\n\tprintf(\"%d\\n\",y10);\n\tprintf(\"%d\\n\",y5);\n\tprintf(\"%d\\n\",y);\n\treturn 0;\n}"} +{"label": "97", "index": "48089", "code": "int main()\n{\n\tint a[6]={0};\n\tint n,i,j;\n\tscanf(\"%d\",&n);\n\tint wor[6]={100,50,20,10,5,1};\n\tint num[6];\n\tfor(i=0;i<=5;i++)\n\t{\n\t\tnum[i]=n/wor[i];\n\t\tn=n-num[i]*wor[i];\n\t}\n\tfor(i=0;i<=5;i++)\n\t{\n\t\tprintf(\"%d\\n\",num[i]);\n\t}\n\treturn 0;\n}\n\n\n\n\n\n\n\n"} +{"label": "97", "index": "48090", "code": "int main(int argc, char* argv[])\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;n>=100;i++)\n\t{\n\t\tn-=100;\n\t}\n\tprintf(\"%d\\n\",i);\n\tfor(i=0;n>=50;i++)\n\t{\n\t\tn-=50;\n\t}\n\tprintf(\"%d\\n\",i);\n\tfor(i=0;n>=20;i++)\n\t{\n\t\tn-=20;\n\t}\n\tprintf(\"%d\\n\",i);\n\tfor(i=0;n>=10;i++)\n\t{\n\t\tn-=10;\n\t}\n\tprintf(\"%d\\n\",i);\n\tfor(i=0;n>=5;i++)\n\t{\n\t\tn-=5;\n\t}\n\tprintf(\"%d\\n\",i);\n\tfor(i=0;n>=1;i++)\n\t{\n\t\tn-=1;\n\t}\n\tprintf(\"%d\\n\",i);\n\treturn 0;\n}"} +{"label": "97", "index": "48091", "code": "\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tint j;\n\ti=n/100;\n\tj=n%100;\n\tn=j;\n\tprintf(\"%d\\n\",i);\n\ti=n/50;\n\tj=n%50;\n\tn=j;\n\tprintf(\"%d\\n\",i);\n\ti=n/20;\n\tj=n%20;\n\tn=j;\n\tprintf(\"%d\\n\",i);\n\ti=n/10;\n\tj=n%10;\n\tn=j;\n\tprintf(\"%d\\n\",i);\n\ti=n/5;\n\tj=n%5;\n\tn=j;\n\tprintf(\"%d\\n\",i);\n\ti=n/1;\n\tj=n%1;\n\tn=j;\n\tprintf(\"%d\\n\",i);\n\treturn 0;\n}"} +{"label": "97", "index": "48092", "code": "int main()\n{\n int n,a,b,c,d,e,f,g,h,i,j;\n scanf(\"%d\",&n);\n a=n%100;\n b=n%10; \n c=(n-a)/100;\n d=a%50;\n e=(a-d)/50;\n f=((a-e*50)-(a-e*50)%20)/20;\n g=(n-100*c-50*e-20*f)%10;\n h=(n-100*c-50*e-20*f-g)/10;\n i=(n-100*c-50*e-20*f-10*h)%5;\n j=(n-100*c-50*e-20*f-10*h-i)/5;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",c,e,f,h,j,i);\n scanf(\"%d\",&n);\n return 0;\n}"} +{"label": "97", "index": "48093", "code": "int main(){\n\tint n;\n\tint a=0,b=0,c=0,d=0,e=0,f=0;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tn%=100;\n\tb=n/50;\n\tn%=50;\n\tc=n/20;\n\tn%=20;\n\td=n/10;\n\tn%=10;\n\te=n/5;\n\tn%=5;\n\tf=n;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}\n\t "} +{"label": "97", "index": "48094", "code": "void main()\n{\n\tint n;\n\tint a[6]={100,50,20,10,5,1};\n\tint b[6];\n\tint i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<6;i++)\n\t{\n\t\tif(n=a[i])\n\t\t{\n\t\t\tb[i]=n/a[i];\n\t\t\tn=n-b[i]*a[i];\n\t\t\tprintf(\"%d\\n\",b[i]);\n\t\t}\n\t}\n}\n"} +{"label": "97", "index": "48095", "code": "//**************************\n//**?? **\n//**??:??? 1100012914**\n//**??:2011.11.6 **\nint main()\n{\n\tint a,hu,fif,tw,te,fiv,one,i,t;\n\tcin >> a;\n\tt = a % 10;\n\t\tif(t >= 5)\n\t\t{\n\t\t\tfiv = 1;\n\t\t\tone = t - 5;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfiv = 0;\n\t\t\tone = t;\n\t\t}\n\t\ta = a /10;\n\tt = a % 10;\n\tif (t >= 5)\n\t{\n\t\tfif = 1;\n\t\tt = t - 5;\n\tif (t > 3)\n\t{\n\ttw = 2;\n\tte = t - 4;\n\t}\n\telse\n\t\tif(t > 1)\n\t\t{\n\t\t\t\n\t\t\ttw = 1;\n\t\t\tte = t - 2;\n\t\t}\n\t\telse \n\t{\n\t\t\n\t\ttw = 0;\n\t\tte = t;\n\t}\n\t}\n\telse\n\t{\n\t\tif (t > 3)\n\t{fif = 0;\n\ttw = 2;\n\tte = t - 4;\n\t}\n\telse\n\t\tif(t > 1)\n\t\t{\n\t\t\tfif = 0;\n\t\t\ttw = 1;\n\t\t\tte = t - 2;\n\t\t}\n\t\telse \n\t{\n\t\tfif = 0;\n\t\ttw = 0;\n\t\tte = t;\n\t}\n\t}\n\n\ta = a/10;\n\tt = a % 10;\n\thu = t;\n\tcout << hu << endl << fif << endl << tw << endl << te << endl << fiv << endl << one << endl;\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48096", "code": "int main() {\n\tint n,k1,k2,t1,t2,s1,s2,p1,p2,q1,q2,w1,w2;\n\tscanf (\"%d\",&n);\n\tk1=n/100;\n\tk2=n%100;\n\tt1=k2/50;\n\tt2=k2%50;\n\ts1=t2/20;\n\ts2=t2%20;\n\tp1=s2/10;\n\tp2=s2%10;\n\tq1=p2/5;\n\tq2=p2%5;\n\tw1=q2/1;\n\tw2=q2%1;\n\tprintf (\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",k1,t1,s1,p1,q1,w1);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48097", "code": "/*???? \t\n??\n??????????????????345?????????????????????????100??50??20??10??5??1???????????????????\n\n????\n????1000?????\n\n????\n??????????????????????100??50??20??10??5??1???????*/\nint main()\n{\nint n;\nscanf(\"%d\",&n);\nint a,b,c,d,e,f;\n\na=(n-n%100)/100;\nb=((n-a*100)-(n-a*100)%50)/50;\nif((n-a*100-b*50)>=20)\n{\n\tc=((n-a*100-b*50)-(n-a*100-b*50)%20)/20;\n\td=((n-a*100-b*50-c*20)-(n-a*100-b*50-c*20)%10)/10;\n}\nelse if(((n-a*100-b*50)<20)&&((n-a*100-b*50)>=10))\n{c=0;\nd=((n-a*100-b*50)-(n-a*100-b*50)%10)/10;\n}else if(((n-a*100-b*50)<10))\n{\nc=0;\nd=0;\n}\n\n\n\nif((n-a*100-b*50-c*20-d*10)>=5)\n{\ne=((n-a*100-b*50-c*20-d*10)-(n-a*100-b*50-c*20-d*10)%5)/5;\nf=n-a*100-b*50-c*20-d*10-e*5;\n}\nelse if((n-a*100-b*50-c*20-d*10)<5){e=0;f=f=n-a*100-b*50-c*20-d*10-e*5;}\n\nprintf(\"%d\\n\",a);printf(\"%d\\n\",b);printf(\"%d\\n\",c);printf(\"%d\\n\",d);printf(\"%d\\n\",e);printf(\"%d\\n\",f);\n\n\nreturn 0;\n}"} +{"label": "97", "index": "48098", "code": "int main()\n{\n\tint n,i,a=0,b=0,c=0,d=0,e=0,f=0;\n\tcin>>n;\n\twhile(n>=100)\n\t{\n\t\tn-=100;\n\t\ta++;\n\t}\n\twhile(n>=50)\n\t{\n\t\tn-=50;\n\t\tb++;\n\t}\n\twhile(n>=20)\n\t{\n\t\tn-=20;\n\t\tc++;\n\t}\n\twhile(n>=10)\n\t{\n\t\tn-=10;\n\t\td++;\n\t}\n\twhile(n>=5)\n\t{\n\t\tn-=5;\n\t\te++;\n\t}\n\twhile(n>=1)\n\t{\n\t\tn-=1;\n\t\tf++;\n\t}\n\tcout<=100){\n printf(\"%d\\n\",n/100);\n n=n-100*(n/100);\n }else{printf(\"0\\n\");}\n if(n>=50){\n printf(\"%d\\n\",n/50);\n n=n-50*(n/50);\n }else{printf(\"0\\n\");}\n if(n>=20){\n printf(\"%d\\n\",n/20);\n n=n-20*(n/20);\n }else{printf(\"0\\n\");}\n if(n>=10){\n printf(\"%d\\n\",n/10);\n n=n-10*(n/10);\n }else{printf(\"0\\n\");}\n if(n>=5){\n printf(\"%d\\n\",n/5);\n n=n-5*(n/5);\n }else{printf(\"0\\n\");}\n if(n>=1){\n printf(\"%d\\n\",n);\n n=n-1*(n/1);\n }else{printf(\"0\\n\");}\n return 0;\n}\n"} +{"label": "97", "index": "48101", "code": "int main(){\n\tint n,a;\n\tscanf(\"%d\",&n);\n\tfor(a=0;n>=100;a++){\n\t\tn-=100;\n\t}printf(\"%d\\n\",a);\n\tfor(a=0;n>=50;a++){\n\t\tn-=50;\n\t}printf(\"%d\\n\",a);\n\tfor(a=0;n>=20;a++){\n\t\tn-=20;\n\t}printf(\"%d\\n\",a);\n\tfor(a=0;n>=10;a++){\n\t\tn-=10;\n\t}printf(\"%d\\n\",a);\n\tfor(a=0;n>=5;a++){\n\t\tn-=5;\n\t}printf(\"%d\\n\",a);\n\tfor(a=0;n>=1;a++){\n\t\tn-=1;\n\t}printf(\"%d\\n\",a);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48102", "code": "int main()\n{\n\tint a[6]={0},n;\n\tscanf(\"%d\",&n);\n\ta[0]=n/100;\n a[1]=(n-a[0]*100)/50;\n\ta[2]=(n-a[0]*100-a[1]*50)/20;\n\ta[3]=(n-a[0]*100-a[1]*50-a[2]*20)/10;\n\ta[4]=(n-a[0]*100-a[1]*50-a[2]*20-a[3]*10)/5;\n\ta[5]=(n-a[0]*100-a[1]*50-a[2]*20-a[3]*10-a[4]*5)/1;\t\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a[0],a[1],a[2],a[3],a[4],a[5]);\n\treturn 0;\n}"} +{"label": "97", "index": "48103", "code": "\nint main()\n{\n\tint sum,num[6]={0,0,0,0,0,0};\n\tint i;\n\n\tscanf(\"%d\",&sum);\n\n\tif(sum>=100)\n\t{\n\t\tnum[0]=sum/100;\n\t\tsum=sum%100;\n\t}\n\tif(sum>=50)\n\t{\n\t\tnum[1]=sum/50;\n\t\tsum=sum%50;\n\t}\n\tif(sum>=20)\n\t{\n\t\tnum[2]=sum/20;\n\t\tsum=sum%20;\n\t}\n\tif(sum>=10)\n\t{\n\t\tnum[3]=sum/10;\n\t\tsum=sum%10;\n\t}\n\tif(sum>=5)\n\t{\n\t\tnum[4]=sum/5;\n\t\tsum=sum%5;\n\t}\n\tif(sum>=1)\n\t{\n\t\tnum[5]=sum/1;\n\t\tsum=sum%1;\n\t}\n\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",num[i]);\n\t}\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48104", "code": "int main()\n{\n\tdouble m;\n\tint a,b,c,d,e,f;\n\tcin>>m;\n\ta=(int)(m/100);\n\tm=m-100*a;\n\tb=(int)(m/50);\n\tm=m-50*b;\n\tc=(int)(m/20);\n\tm=m-20*c;\n\td=(int)(m/10);\n\tm=m-10*d;\n\te=(int)(m/5);\n\tm=m-5*e;\n\tf=m;\n\tcout<>n;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tb[i]=n/a[i];\n\t\tn=n%a[i];\n\t\tcout<n) break;\n}\nprintf(\"%d\\n\",i);\nn=n-i*100;\nfor(i=0;;i++)\n{\nif(i*50<=n && i*50+50>n) break;\n}\nprintf(\"%d\\n\",i);\nn=n-50*i;\nfor(i=0;;i++)\n{\nif(i*20<=n && i*20+20>n) break;\n}\nprintf(\"%d\\n\",i);\nn=n-i*20;\nfor(i=0;;i++)\n{\nif(i*10<=n && i*10+10>n) break;\n}\nprintf(\"%d\\n\",i);\nn=n-10*i;\nfor(i=0;;i++)\n{\nif(i*5<=n && i*5+5>n) break;\n}\nprintf(\"%d\\n\",i);\nn=n-i*5;\nfor(i=0;;i++)\n{\nif(i<=n && i+1>n) break;\n}\nprintf(\"%d\",i);\nreturn 0;\n}"} +{"label": "97", "index": "48108", "code": "int main(){\n\tint s,a,b,c,d,e,f,g,h;\n\tscanf(\"%d\",&s);\n\ta=s/100;\n\tb=(s-100*a)/10;\n\tc=s-100*a-10*b;\n\td=b/5;\n\te=(b-5*d)/2;\n\tf=b-5*d-2*e;\n\tg=c/5;\n\th=c-5*g;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,d,e,f,g,h);\n\treturn 0;\n}"} +{"label": "97", "index": "48109", "code": "int main()\n{\n int n,a,b,c,e,f,d;\n scanf(\"%d\",&n);\n a=n/100;\n \n if(n>=100){\n b=(n-100*a)/50;\n c=(n-100*a-50*b)/20;\n d=(n-100*a-50*b-20*c)/10;\n e=(n-100*a-50*b-20*c-10*d)/5;\n f=n-100*a-50*b-20*c-10*d-5*e;\n }\n else if(n>=50){\n b=1;\n c=(n-50)/20;\n d=(n-50-20*c)/10;\n e=(n-50-20*c-10*d)/5;\n f=n-50-20*c-10*d-5*e;\n }\n else if(n>=20){\n b=0;\n c=n/20;\n d=(n-20*c)/10;\n e=(n-20*c-10*d)/5;\n f=n-20*c-10*d-5*e;\n }\n else if(n>=10){\n b=0; \n c=0;\n d=1;\n d=(n-10)/5;\n f=n-10-5*e;\n }\n else if(n>=5){\n b=0; \n c=0;\n d=0; \n e=1;\n f=n-5;\n }\n else if(n<5){\n b=0; \n c=0;\n d=0; \n e=0; \n f=n;\n }\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n} "} +{"label": "97", "index": "48110", "code": "int main(){\n\tint sum,n=0;\n\tscanf(\"%d\",&sum);\n\twhile(sum>=100){\n\t\tn++;\n\t\tsum-=100;\n\t}\n\tprintf(\"%d\\n\",n);\n\tn=0;\n while(sum>=50){\n\t\tn++;\n\t\tsum-=50;\n\t}\n\tprintf(\"%d\\n\",n);\n\tn=0;\n while(sum>=20){\n\t\tn++;\n\t\tsum-=20;\n\t}\n\tprintf(\"%d\\n\",n);\n\tn=0;\n\twhile(sum>=10){\n\t\tn++;\n\t\tsum-=10;\n\t}\n\tprintf(\"%d\\n\",n);\n\tn=0;\n while(sum>=5){\n\t\tn++;\n\t\tsum-=5;\n\t}\n\tprintf(\"%d\\n\",n);\n\tn=0;\n while(sum>=1){\n\t\tn++;\n\t\tsum-=1;\n\t}\n\tprintf(\"%d\\n\",n);\n\treturn 0;\n}"} +{"label": "97", "index": "48111", "code": "/*\n * ???:02.cpp\n * ???:???\n * ????:2011-11-06\n * ??:?????????????????????????????????????????100??50??20??10??5??1?????\n */\n\nint main( )\n{\n int a,b; //????\n cin>>a; //????\n if(a>=100) //????????????\n {\n \tb=(int)(a/100);\n \tcout<=50)\n {\n \tcout<<1<=40)\n {\n \tcout<<2<=20&&a<40)\n {\n \tcout<<1<=10)\n {\n \tcout<<1<=5)\n {\n \tcout<<1<=50)\n\t{\n\t\tc=1;\n\t\th=a%100-50;\n\t}\n\telse\n\t{\n\t\tc=0;\n\t\th=a%100;\n\t}\n\td=h/20;\n\te=(h%20)/10;\n\ti=(h%20)%10;\n\tf=i/5;\n\tg=i%5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,g);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48114", "code": "int main()\n{\n\tint n,a=0,b=0,c=0,d=0,e=0;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tn-=a*100;\n\tb=n/50;\n\tn-=b*50;\n\tc=n/20;\n\tn-=c*20;\n\td=n/10;\n\tn-=d*10;\n\te=n/5;\n\tn-=e*5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,n);\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48115", "code": "int main(){\n\tint n;\n\tint a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=(int)(n/100);\n\tb=(int)(n%100/50);\n\tc=(int)(n%50/20);\n\td=(int)((n-100*a-50*b-20*c)/10);\n\te=(int)((n-100*a-50*b-20*c-d*10)/5);\n\tf=n%5;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\t\n\t\n\treturn 0;\n}"} +{"label": "97", "index": "48116", "code": "int main()\n{\n\tint n,a,b,c,d,e,f,x;\n\tscanf(\"%d\",&n);\n a=(int)(n/100);\n\tx=n-100*a;\n\tif(x>=50)\n\t{\n\t\tb=1;\n\t\tx-=50;\n\t}\n\telse b=0;\n c=(int)(x/20);\n\tx-=c*20;\n d=(int)(x/10);\n\tx-=d*10;\n\tif(x>=5)\n\t{\n\t\te=1;\n\t\tx-=5;\n\t}\n\telse e=0;\n\tf=x;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48117", "code": "int main()\n{\nint x;\ncin>>x;\nint x100=x/100;\ncout<> n;\n\tr = n;\n\ta = (r - r % 100) / 100;\n\tr = r % 100;\n\tb = (r - r % 50) / 50;\n\tr = r % 50;\n\tc = (r - r % 20) / 20;\n\tr = r % 20;\n\td = (r - r % 10) / 10;\n\tr = r % 10;\n\te = (r - r % 5) / 5;\n\tr = r % 5;\n\tf=r;\n\tcout<>num;\n\tcout<=100)\n{\ni++;\nsum=sum-100;\n}\nprintf(\"%d\\n\",i);\ni=0;\nwhile(sum>=50)\n{\ni++;\nsum=sum-50;\n}\nprintf(\"%d\\n\",i);\ni=0;\nwhile(sum>=20)\n{\ni++;\nsum=sum-20;\n}\nprintf(\"%d\\n\",i);\ni=0;\nwhile(sum>=10)\n{\ni++;\nsum=sum-10;\n}\nprintf(\"%d\\n\",i);\ni=0;\nwhile(sum>=5)\n{\ni++;\nsum=sum-5;\n}\nprintf(\"%d\\n\",i);\ni=0;\nwhile(sum>=1)\n{\ni++;\nsum=sum-1;\n}\nprintf(\"%d\\n\",i);\n}"} +{"label": "97", "index": "48128", "code": "int main(){\n int n, a[7]={0}, b[6]={0};\n scanf(\"%d\", &n);\n a[1]=n/100;\n b[1]=n%100;\n printf(\"%d\\n\", a[1]);\n a[2]=b[1]/50;\n b[2]=b[1]%50;\n printf(\"%d\\n\", a[2]);\n a[3]=b[2]/20;\n b[3]=b[2]%20;\n printf(\"%d\\n\", a[3]);\n a[4]=b[3]/10;\n b[4]=b[3]%10;\n printf(\"%d\\n\", a[4]);\n a[5]=b[4]/5;\n b[5]=b[4]%5;\n printf(\"%d\\n\", a[5]);\n a[6]=b[5]/1;\n printf(\"%d\\n\", a[6]);\n return 0;\n}"} +{"label": "97", "index": "48129", "code": "int main()\n{\n\tint sum,n1,n2,n3,n4,n5,n6;\n\tcin>>sum;\n n1=(sum-sum%100)/100;\n\tsum=sum%100;\n\tn2=(sum-sum%50)/50;\n\tsum=sum%50;\n\tn3=(sum-sum%20)/20;\n\tsum=sum%20;\n\tn4=(sum-sum%10)/10;\n\tsum=sum%10;\n\tn5=(sum-sum%5)/5;\n\tsum=sum%5;\n\tn6=sum%5;\n\tcout<=100){\n\t\ta=n/100;}\n\telse{a=0;}\n\tif((n-a*100)>=50){\n\t\tb=(n-a*100)/50;}\n\telse{b=0;}\n\tif((n-a*100-50*b)>=20){\n\t\tc=(n-a*100-50*b)/20;}\n\telse{c=0;}\n\tif((n-a*100-50*b-20*c)>=10){\n\t\td=(n-a*100-50*b-20*c)/10;}\n\telse{d=0;}\n\tif((n-a*100-50*b-20*c-10*d)>=5){\n\t\te=(n-a*100-50*b-20*c-10*d)/5;}\n\telse{e=0;}\n\tif((n-a*100-50*b-20*c-10*d-5*e)>0){\n\t\tf=n-a*100-50*b-20*c-10*d-5*e;}\n\telse{f=0;}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n\n}\n"} +{"label": "97", "index": "48131", "code": "int main()\n{\n int n;\n\tscanf(\"%d\",&n);\n\tprintf(\"%d\\n\",n/100);\n\tprintf(\"%d\\n\",(n%100)/50);\n printf(\"%d\\n\",((n%100)%50)/20);\n\tprintf(\"%d\\n\",(((n%100)%50)%20)/10);\n\tprintf(\"%d\\n\",((((n%100)%50)%20)%10)/5);\n\tprintf(\"%d\\n\",(((((n%100)%50)%20)%10)%5)/1);\n\treturn 0;\n}"} +{"label": "97", "index": "48132", "code": "\nint main()\n{\n\tint n,x[6],i,y[6]={100,50,20,10,5,1};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=5;i++)\n\t{x[i]=n%y[i];\n\t x[i]=(n-x[i])/y[i];\n\t n=n-x[i]*y[i];}\n\tfor(i=0;i<=5;i++)\n\t\tprintf(\"%d\\n\",x[i]);\n return 0; \n\n}"} +{"label": "97", "index": "48133", "code": "int main()\n{\nint a[6]={100,50,20,10,5,1},count[6]={0,0,0,0,0,0};\nint n;\ncin>>n;\nfor(int i=0;i<6;i++)\n {\n if(n>=a[i])\n {\n count[i]=n/a[i];\n n=n-count[i]*a[i];\n }\n cout<> money;\n\tfor( i = 0; i < 6; i ++)\n\t{\n\t\tnum[i] = money / mon[i];\n\t\tmoney = money % mon[i];\n\t \n\t}\n\tfor( i = 0; i < 6; i ++)\n cout << num [i] << endl;\n\treturn 0;\n}"} +{"label": "97", "index": "48137", "code": "int main()\n{\n\tint x,a,b,c,d,e,f;\n\tscanf(\"%d\",&x);\n\tif(x>=100)\n\t{\n\t\ta=x/100;\n\t\tb=(x-a*100)/50;\n\t\tc=(x-a*100-b*50)/20;\n\t\td=(x-a*100-b*50-c*20)/10;\n\t\te=(x-a*100-b*50-c*20-d*10)/5;\n\t\tf=x-a*100-b*50-c*20-d*10-e*5;\n\t}\n\telse\n\t{\n\t\tif(x>=10)\n\t\t{\n\t\t\ta=0;\n\t\tb=(x-a*100)/50;\n\t\tc=(x-a*100-b*50)/20;\n\t\td=(x-a*100-b*50-c*20)/10;\n\t\te=(x-a*100-b*50-c*20-d*10)/5;\n\t\tf=x-a*100-b*50-c*20-d*10-e*5;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta=0;\n\t\t\tb=0;\n\t\t\tc=0;\n\t\t\tf=0;\n\t\te=(x-a*100-b*50-c*20-d*10)/5;\n\t\tf=x-a*100-b*50-c*20-d*10-e*5;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48138", "code": "int main()\n{\n int i, n;\n int v[6] = {100, 50, 20, 10, 5, 1}, r[6] = {0};\n scanf(\"%d\", &n);\n double sum = 1, deal = 1;\n for(i = 0; i < 6; i++)\n {\n while(n >= v[i]) \n {\n r[i]++;\n n-=v[i];\n }\n }\n for(i = 0; i < 6; i++)\n {\n printf(\"%d\\n\", r[i]);\n }\n return 0;\n}\n"} +{"label": "97", "index": "48139", "code": "int main()\n{\n\tint n,a1,a2,b1,b2,c1,c2,d1,d2,e1,e2,f1,f2;\n\tscanf(\"%d\",&n);\n\ta1=n/100;\n\ta2=n%100;\n\tb1=a2/50;\n\tb2=a2%50;\n\tc1=b2/20;\n\tc2=b2%20;\n\td1=c2/10;\n\td2=c2%10;\n\te1=d2/10;\n\te2=d2%10;\n\tf1=e2/5;\n\tf2=e2%5;\n\tprintf(\"%d\\n\",a1);\n\tprintf(\"%d\\n\",b1);\n\tprintf(\"%d\\n\",c1);\n\tprintf(\"%d\\n\",d1);\n\tprintf(\"%d\\n\",f1);\n\tprintf(\"%d\\n\",f2);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48140", "code": "int main()\n{\n\tint money,yuan100,yuan50,yuan20,yuan10,yuan5,yuan1;\n\tscanf(\"%d\",&money);\n\tif(money<0)\n\t\tprintf(\"Error!\\n\");\n\telse\n\t{\n\t\tyuan100=(money-(money%100))/100;\n\t money=money-yuan100*100;\n\t yuan50=(money-(money%50))/50;\n\t money=money-yuan50*50;\n\t yuan20=(money-(money%20))/20;\n\t money=money-yuan20*20;\n\t yuan10=(money-(money%10))/10;\n\t money=money-yuan10*10;\n\t yuan5=(money-(money%5))/5;\n\t money=money-yuan5*5;\n\t yuan1=money;\n\t \n\t\t printf(\"%d\\n\",yuan100);\n\t \n\t\t printf(\"%d\\n\",yuan50);\n\n\t\t printf(\"%d\\n\",yuan20);\n\t \n\t\t printf(\"%d\\n\",yuan10);\n\t \n\t\t printf(\"%d\\n\",yuan5);\n\t printf(\"%d\\n\",yuan1);\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48141", "code": "int main()\n{\n\tint n,s1,s2,s3,s4,s5,s6;\n\tint a=100,b=50,c=20,d=10,e=5,f=1;\n\tscanf(\"%d\",&n);\n\ts1=n/100;\n\ts2=n%100/50;\n\ts3=n%100%50/20;\n\ts4=n%100%50%20/10;\n\ts5=n%100%50%20%10/5;\n\ts6=n%100%50%20%10%5/1;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",s1,s2,s3,s4,s5,s6);\n\treturn 0;\n}"} +{"label": "97", "index": "48142", "code": "int main()\n{\n\tint n,a=0,b=0,c=0,d=0,e=0;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tprintf(\"%d\\n\",a);\n\tn=n-100*a;\n\tb=n/50;\n\tprintf(\"%d\\n\",b);\n\tn=n-50*b;\n\tc=n/20;\n\tprintf(\"%d\\n\",c);\n\tn=n-20*c;\n\td=n/10;\n\tprintf(\"%d\\n\",d);\n\tn=n-10*d;\n\te=n/5;\n\tprintf(\"%d\\n\",e);\n\tn=n-5*e;\n\tprintf(\"%d\\n\",n);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48143", "code": "int main()\n{\n\tint n,a,b; //????\n\tcin>> n; //????\n\tif(n>=100) //????????100?50,20,10,5\n\t{\n\t\ta=n%100;\n\t\tb=(n-a)/100;\n\t\tcout<< b <=50)\n\t{\n\t\ta=n%50;\n\t\tb=(n-a)/50;\n\t\tcout<< b << endl; \n\t\tn=a;\n\t}\n\telse\n\t{\n\t\tcout<<\"0\"<=20)\n\t{\n\t\ta=n%20;\n\t\tb=(n-a)/20;\n\t\tcout<< b <=10)\n\t{\n\t\ta=n%10;\n\t\tb=(n-a)/10;\n\t\tcout<< b <=5)\n\t{\n\t\ta=n%5;\n\t\tb=(n-a)/5;\n\t\tcout<=0){\n\t\t\t\tsum=sum-data[i];\n\t\t num[i]++;\n\t\t\t}\n\t\t\telse break;\n\t\t}\n\n\t printf(\"%d\\n\",num[i]);\n\t}\n\n return 0;\n}\n\n"} +{"label": "97", "index": "48146", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a=0,b=0,c=0,d=0,e=0,f=0,i;\n\ta=n/100;\n\ti=n%100;\n\tb=i/50;\n\ti=i-50*b;\n\tc=i/20;\n\ti=i-20*c;\n\td=i/10;\n\ti=i-10*d;\n\te=i/5;\n\tf=i-5*e;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48147", "code": "int main()\n{\n\tint n,a[6],b,c,i;\n\tscanf(\"%d\",&n);\n b=(n/10)-((n/100)*10);\n\tc=n%10;\n\tif(n/100!=0) a[0]=n/100;\n\telse a[0]=0;\n\tif(b==1||b==3||b==6||b==8) a[3]=1;\n\telse a[3]=0;\n\tif(b==2||b==3||b==7) a[2]=1;\n\telse if(b==4||b==9) a[2]=2;\n\telse a[2]=0;\n\tif(b>=5) a[1]=1;\n else a[1]=0;\n\tif(c<5) a[5]=c;\n\telse if(c>5) a[5]=c-5;\n\telse a[5]=0;\n\tif(c>=5) a[4]=1;\n\telse a[4]=0;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48148", "code": "int main() {\n\tint n;\n\tscanf(\"%d\", &n);\n\tif(n >= 100) {\n\t\tprintf(\"%d\\n\", n/100);\n\t\tn %= 100;\n\t} else {\n\t\tprintf(\"0\\n\");\n\t}\n\tif(n >= 50) {\n\t\tprintf(\"%d\\n\", n/50);\n\t\tn %= 50;\n\t} else {\n\t\tprintf(\"0\\n\");\n\t}\n\tif(n >= 20) {\n\t\tprintf(\"%d\\n\", n/20);\n\t\tn %= 20;\n\t} else {\n\t\tprintf(\"0\\n\");\n\t}\n\tif(n >= 10) {\n\t\tprintf(\"%d\\n\", n/10);\n\t\tn %= 10;\n\t} else {\n\t\tprintf(\"0\\n\");\n\t}\n\tif(n >= 5) {\n\t\tprintf(\"%d\\n\", n/5);\n\t\tn %= 5;\n\t} else {\n\t\tprintf(\"0\\n\");\n\t}\n\tprintf(\"%d\\n\", n);\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48149", "code": "int main()\n{\n\tint m,a,b,c,d,e,f;\n\tscanf(\"%d\",&m);\n\tif(m/100==0)\n\t\tprintf(\"0\\n\");\n\telse\n\t\tprintf(\"%d\\n\",m/100);\n\ta=m-100*(m/100);\n\tif(a/50==0)\n\t\tprintf(\"0\\n\");\n\telse\n\t\tprintf(\"%d\\n\",a/50);\n\tb=a-50*(a/50);\n\tif(b/20==0)\n\t\tprintf(\"0\\n\");\n\telse\n\t\tprintf(\"%d\\n\",b/20);\n\tc=b-20*(b/20);\n\tif(c/10==0)\n\t\tprintf(\"0\\n\");\n\telse\n\t\tprintf(\"%d\\n\",c/10);\n\td=c-10*(c/10);\n\tif(d/5==0)\n\t\tprintf(\"0\\n\");\n\telse\n\t\tprintf(\"%d\\n\",d/5);\n\te=d-5*(d/5);\n\tif(e/1==0)\n\t\tprintf(\"0\\n\");\n\telse\n\t\tprintf(\"%d\\n\",e/1);\n\treturn 0;\n\n\n\n\n\n}"} +{"label": "97", "index": "48150", "code": "int main(){\n int n;\n int a[6];\n int b[6]={100,50,20,10,5,1};\n scanf(\"%d\",&n);\n int c=n;\n a[0]=n/b[0];\n for(int i=1;i<6;i++){\n c=c-a[i-1]*b[i-1];\n a[i]=c/b[i];\n }\n for(int j=0;j<6;j++){\n printf(\"%d\\n\",a[j]);\n }\n return 0;\n}\n"} +{"label": "97", "index": "48151", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d/n\",&n);\n\ta=n/100;\n\tb=(n%100)/50;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-20*c)/10;\n\te=(n-100*a-50*b-20*c-10*d)/5;\n\tf=(n-100*a-50*b-20*c-10*d)%5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}\n\n\n"} +{"label": "97", "index": "48152", "code": "\n\nint main()\n{\n int a,n,c[100],i,j = 0,sum = 0,q;\n\tcin >> a;\n\twhile (1)\n\t{\n\t\tsum = sum + 100;\n\t\tj++;\n\t\tif(sum > a)\n\t\t{\n\t\t\tj--;\n\t\t\tsum = sum - 100;\n\t\t\tbreak;\n\t\t}\n\t}\n\tcout << j< a)\n\t\t{\n\t\t\tj--;\n\t\t\tsum = sum - 50;\n\t\t\tbreak;\n\t\t}\n\t}\ncout << j< a)\n\t\t{\n\t\t\tj--;\n\t\t\tsum = sum - 20;\n\t\t\tbreak;\n\t\t}\n\t}\ncout << j< a)\n\t\t{\n\t\t\tj--;\n\t\t\tsum = sum - 10;\n\t\t\tbreak;\n\t\t}\n\t}\ncout << j< a)\n\t\t{\n\t\t\tj--;\n\t\t\tsum = sum - 5;\n\t\t\tbreak;\n\t\t}\n\t}\ncout << j< a)\n\t\t{\n\t\t\tj--;\n\t\t\tsum = sum - 1;\n\t\t\tbreak;\n\t\t}\n\t}\ncout << j<=a[i] ){\n\t\t j=j+1;\n s = s - a[i];\n\t }\n printf(\"%d\\n\", j);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48154", "code": "int main(){\n int n,a,b,c,d,e,f;\n scanf(\"%d\",&n);\n a=n/100;\n b=n%100/50;\n c=n%100%50/20;\n d=n%100%50%20/10;\n e=n%100%50%20%10/5;\n f=n-a*100-b*50-c*20-d*10-e*5;\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\",f);\n return 0;\n}\n"} +{"label": "97", "index": "48155", "code": "\nint main(int argc, char* argv[])\n{ int n[10],b;\n scanf(\"%d\",&n[10]);\n\tif(n[10]>=100){n[1]=n[10]/100;b=n[10]%100;}\n\telse{n[1]=0;}\n\tif(b>=50){n[2]=b/50;b=b%50;}\n\telse{n[2]=0;}\n\tif(b>=20){n[3]=b/20;b=b%20;}\n\telse{n[3]=0;}\n\tif(b>=10){n[4]=b/10;b=b%10;}\n\telse{n[4]=0;}\n\tif(b>=5){n[5]=b/5;b=b%5;}\n\telse{n[5]=0;}\n\tif(b>=1){n[6]=b/1;b=b%1;}\n\telse{n[6]=0;}\n\tprintf(\"%d\\n\",n[1]);\n printf(\"%d\\n\",n[2]);\n printf(\"%d\\n\",n[3]);\n printf(\"%d\\n\",n[4]);\n printf(\"%d\\n\",n[5]);\n printf(\"%d\\n\",n[6]);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48156", "code": "\nint main(){\n\tint n,i,a[6]={0},b[6];\n\tb[0]=100;\n\tb[1]=50;\n\tb[2]=20;\n\tb[3]=10;\n\tb[4]=5;\n\tb[5]=1;\n\tscanf(\"%d\",&n);\n\tint q=n,p=n;\n\ta[0]=q/100;\n\tp-=a[0]*b[0];\n\tfor(i=1;i<6;i++){\n\t\t\n\t\ta[i]=p/b[i];\n p-=a[i]*b[i];\n\t}\n\tfor(i=0;i<6;i++){\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\t\t\n\treturn 0;\n}"} +{"label": "97", "index": "48157", "code": "int main()\n{\n\tint n,i,a[5]={0};\n\tscanf(\"%d\",&n);\n\tif(n/100>0)\n\t{\n\t\ta[0]=n/100;\n\t\tn=n%100;\n\t}\n\tif(n/50>0)\n\t{\n\t\ta[1]=n/50;\n\t\tn=n%50;\n\t}\n\tif(n/20>0)\n\t{\n\t\ta[2]=n/20;\n\t\tn=n%20;\n\t}\n\tif(n/10>0)\n\t{\n\t\ta[3]=n/10;\n\t\tn=n%10;\n\t}\n\tif(n/5>0)\n\t{\n\t\ta[4]=n/5;\n\t\tn=n%5;\n\t}\n\ta[5]=n;\n\tfor(i=0;i<6;i++){\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48158", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tf=0;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tb=(n%100)/50;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-20*c)/10;\n\te=(n-100*a-50*b-20*c-10*d)/5;\n\tf=n%5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48159", "code": "int main(){\n int rmb;\n int a,b,c,d,e,f;\n scanf(\"%d\",&rmb);\n a=0;\n b=0;\n c=0;\n d=0;\n e=0;\n f=0;\n while(rmb>=100){\n rmb-=100;\n a++;\n }\n while(rmb>=50){\n rmb-=50;\n b++;\n }\n while(rmb>=20){\n rmb-=20;\n c++;\n }\n while(rmb>=10){\n rmb-=10;\n d++;\n }\n while(rmb>=5){\n rmb-=5;\n e++;\n }\n while(rmb>=1){\n if (rmb==0){\n break;\n }\n rmb-=1;\n f++;\n }\n \n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48160", "code": "int main()\n{\n\tint n;\n\tint SZ[6];\n\tscanf(\"%d\",&n);\n\tSZ[0]=n/100;\n\tSZ[1]=n%100/50;\n\tSZ[2]=(n%100-SZ[1]*50)/20;\n SZ[3]=(n%100-SZ[1]*50-SZ[2]*20)/10;\n\tSZ[4]=n%10/5;\n\tSZ[5]=n%10-SZ[4]*5;\n for(int i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",SZ[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48161", "code": "\nint main()\n{\n\tint n, a, b, c, d, e, f;\n\tscanf(\"%d\", &n);\n\tprintf(\"%d\\n\", n / 100);\n\tn %= 100;\n\tprintf(\"%d\\n\", n / 50);\n\tn %= 50;\n\tprintf(\"%d\\n\", n / 20);\n\tn %= 20;\n\tprintf(\"%d\\n\", n / 10);\n\tn %= 10;\n\tprintf(\"%d\\n\", n / 5);\n\tn %= 5;\n\tprintf(\"%d\\n\", n / 1);\n\tn %= 1;\n\treturn 0;\n}"} +{"label": "97", "index": "48162", "code": "main(){\n\tint n,i,money;\n\tscanf(\"%d\",&n);\n\tmoney=n;\n\n\tfor(i=0;money>0;i++){\n\t\tmoney-=100;\n\t}\n\tif(money<0){\n\t\tmoney+=100;\n\t\ti--;\n\t}\n\tprintf(\"%d\\n\",i);\n\n\tfor(i=0;money>0;i++){\n\t\tmoney-=50;\n\t}\n\tif(money<0){\n\t\tmoney+=50;\n\t\ti--;\n\t}\n\tprintf(\"%d\\n\",i);\n\n\tfor(i=0;money>0;i++){\n\t\tmoney-=20;\n\t}\n\tif(money<0){\n\t\tmoney+=20;\n\t\ti--;\n\t}\n\tprintf(\"%d\\n\",i);\n\n\tfor(i=0;money>0;i++){\n\t\tmoney-=10;\n\t}\n\tif(money<0){\n\t\tmoney+=10;\n\t\ti--;\n\t}\n\tprintf(\"%d\\n\",i);\n\n\tfor(i=0;money>0;i++){\n\t\tmoney-=5;\n\t}\n\tif(money<0){\n\t\tmoney+=5;\n\t\ti--;\n\t}\n\tprintf(\"%d\\n\",i);\n\tprintf(\"%d\\n\",money);\n\treturn 0;\n}"} +{"label": "97", "index": "48163", "code": "int main(){\n\tint p,a,b,c,d,e,f,x,y,w;\n\tscanf(\"%d\",&p);\n\tw=p%10;\n\ta=p/100;\n\tx=(p-100*a)/10;\n\tif(x>=5){\n\t\tb=1;\n\t\ty=x-5;\n\t}else{\n\t\tb=0;\n\t\ty=x;\n\t}\n\tif(y==4){\n\t\tc=2;\n\t\td=0;\n\t}else if(y==3){\n\t\tc=1;\n\t\td=1;\n\t}else if(y==2){\n\t\tc=1;\n\t\td=0;\n\t}else if(y==1){\n\t\tc=0;\n\t\td=1;\n\t}else if(y==0){\n\t\tc=0;\n\t\td=0;\n\t}\n\tif(w>=5){\n\t\te=1;\n\t\tf=w-5;\n\t}else if(w<5){\n\t\te=0;\n\t\tf=w;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}\n\t\n"} +{"label": "97", "index": "48164", "code": "\nint main()\n{\tint a,b,c,d,e,f,g;\n scanf(\"%d\",&a);\n b=a/100;\n\ta-=100*b;\n\tc=a/50;\n\ta-=50*c;\n\td=a/20;\n\ta-=20*d;\n\te=a/10;\n\ta-=10*e;\n\tf=a/5;\n\ta-=5*f;\n\tg=a/1;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,g);\t\t\n\n return 0;\n}"} +{"label": "97", "index": "48165", "code": "\nint main()\n{\n\tint n,a[6],i,b[6]={100,50,20,10,5,1};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<6;i++)\n\t{\n\t\ta[i]=n/b[i];\n\t\tn=n-a[i]*b[i];\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\nreturn 0;\n}"} +{"label": "97", "index": "48166", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tb=n/50-2*a;\n\tc=(n-100 *a-50*b)/20;\n\td=(n-100 *a-50*b-20*c)/10;\n\te=(n-100 *a-50*b-20*c-d*10)/5;\n\tf=(n%5)/1;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48167", "code": "int main ()\n{\n int n,a,b,c,d,e,f;\n a,b,c,d,e,f>=0;\n scanf(\"%d\",&n);\n a=n/100;\n b=(n%100)/50;\n c=(n%50)/20;\n d=(n-100*a-50*b-20*c)/10;\n e=(n%10)/5;\n f=n%5;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n\n}\n\n"} +{"label": "97", "index": "48168", "code": "int main(){\n\tint n,A[6]={100,50,20,10,5,1},B[6],i;\n\tscanf(\"%d\",&n);\n\tB[0]=n/A[0];\n\tfor(i=1;i<6;i++){\n\t\tn=n-A[i-1]*B[i-1];\n\t\tB[i]=n/A[i];\n\t}\n\tfor(i=0;i<6;i++){\n\t\tprintf(\"%d\\n\",B[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48169", "code": "int main()\n{\nint n,i,a[6];\ncin>>n;\na[0]=n/100;\nn%=100;\na[1]=n/50;\nn%=50;\na[2]=n/20;\nn%=20;\na[3]=n/10;\nn%=10;\na[4]=n/5;\nn%=5;\na[5]=n%5;\nfor(i=0;i<6;i++)\ncout<>money;\n for(;;)\n {if(money/100>=1) {money=money-100;b=b+1;}\n else break;}//?????100??? \n for(;;)\n {if(money/50>=1) {money=money-50;ws=ws+1;}\n else break;}//?????50??? \n for(;;)\n {if(money/20>=1) {money=money-20;er=er+1;}\n else break;}\n for(;;)\n {if(money/10>=1) {money=money-10;sh=sh+1;}\n else break;}\n for(;;)\n {if(money/5>=1) {money=money-5;wu=wu+1;}\n else break;}\n cout<=100)\n\t{\n\t\tfor(i=0;q>=100;i++)\n\t\t{\n\t\t\tq-=100;\n\t\t}\n\t}\n printf(\"%d\\n\",i);\n\ti=0;\n\n\tif(q>=50)\n\t{\n\t\n\t\tfor(i=0;q>=50;i++)\n\t\t{\n\t\t\tq-=50;\n\t\t}\n\t\n\t}\n\n\tprintf(\"%d\\n\",i);\n\ti=0;\n\n\n\tif(q>=20)\n\t{\n\t\t\n\t\tfor(i=0;q>=20;i++)\n\t\t{\n\t\t\tq-=20;\n\t\t}\n\t\t\n\t}\n\n\tprintf(\"%d\\n\",i);\n\ti=0;\n\n\n\tif(q>=10)\n\t{\n\t\tfor(i=0;q>=10;i++)\n\t\t{\n\t\t\tq-=10;\n\t\t}\n\t\t\n\t}\n\tprintf(\"%d\\n\",i);\n\ti=0;\n\n\n\tif(q>=5)\n\t{\n\t\t\n\t\tfor(i=0;q>=5;i++)\n\t\t{\n\t\t\tq-=5;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",i);\n\ti=0;\n\n\tprintf(\"%d\",q);\n\n\treturn 0;\n}"} +{"label": "97", "index": "48172", "code": "int main()\n{\nint sum;\nscanf(\"%d\",&sum);\nprintf(\"%d\\n\",sum/100);\nsum=sum-sum/100*100;\nif(sum>=50)\n{\nprintf(\"1\\n\");\nsum=sum-50;\n}\nelse\nprintf(\"0\\n\");\nprintf(\"%d\\n\",sum/20);\nsum=sum-sum/20*20;\nprintf(\"%d\\n\",sum/10);\nsum=sum-sum/10*10;\nprintf(\"%d\\n\",sum/5);\nsum=sum-sum/5*5;\nprintf(\"%d\\n\",sum);\nreturn 0;\n}"} +{"label": "97", "index": "48173", "code": "\nvoid main( )\n{\nint n , t1 = 0 , t2 = 0 , t3 = 0 , t4 = 0 , t5 = 0 , t6 = 0 ;\nscanf( \"%d\" , &n );\nwhile( n >= 100 )\n{\nn -= 100 ;\nt1 ++ ;\n}\nwhile( n >= 50 )\n{\nn -= 50 ;\nt2 ++ ;\n}\nwhile( n >= 20 )\n{\nn -= 20 ;\nt3 ++ ;\n}\nwhile( n >= 10 )\n{\nn -= 10 ;\nt4 ++ ;\n}\nwhile( n >= 5 )\n{\nn -= 5 ;\nt5 ++ ;\n}\nwhile( n >= 1 )\n{\nn -= 1 ;\nt6 ++ ;\n}\nprintf( \"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\" , t1 ,t2 ,t3 ,t4, t5, t6 );\n}"} +{"label": "97", "index": "48174", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tprintf(\"%d\\n\",n/100);\n\tn=n-n/100*100;\n\tprintf(\"%d\\n\",n/50);\n\tn=n-n/50*50;\n\tprintf(\"%d\\n\",n/20);\n\tn=n-n/20*20;\n\tprintf(\"%d\\n\",n/10);\n\tn=n-n/10*10;\n\tprintf(\"%d\\n\",n/5);\n\tn=n-n/5*5;\n\tprintf(\"%d\",n);\n\treturn 0;\n}\n\n\n\n"} +{"label": "97", "index": "48175", "code": "int main()\n{\n\tint a,b,c,d,e,f,m;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tf=0;\n\tscanf(\"%d\",&m);\n\twhile(m>=100)\n\t{\n\t\tm=m-100;\n\t\ta=a+1;\n\t}\n\twhile(m>=50)\n\t{\n\t\tm=m-50;\n\t\tb=b+1;\n\t}\n\twhile(m>=20)\n\t{\n\t\tm=m-20;\n\t\tc=c+1;\n\t}\n\twhile(m>=10)\n\t{\n\t\tm=m-10;\n\t\td=d+1;\n\t}\n\twhile(m>=5)\n\t{\n\t\tm=m-5;\n\t\te=e+1;\n\t}\n\twhile(m>=1)\n\t{\n\t\tm=m-1;\n\t\tf=f+1;\n\t}\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}"} +{"label": "97", "index": "48176", "code": "int main(){\n int n,m;\n int sz[6]={100,50,20,10,5,1};\n int a[10000]={0};\n scanf(\"%d\",&n);\n for(int i=0;i<6;i++){\n m=n/sz[i];\n n=n-m*sz[i];\n a[i]=m;\n \n }\n for(int p=0;p<6;p++){\n printf(\"%d\\n\",a[p]);}\n \n \n return 0;\n \n \n \n}\n"} +{"label": "97", "index": "48177", "code": "\n\nint main()\n{\n\tint input,hundred,fifty,twenty,ten,five;\n\tcin>>input;\n\thundred=(input-input%100)/100;\n\tinput=input-hundred*100;\n\tfifty=(input-input%50)/50;\n\tinput=input-fifty*50;\n\ttwenty=(input-input%20)/20;\n\tinput=input-twenty*20;\n\tten=(input-input%10)/10;\n\tinput=input-ten*10;\n\tfive=(input-input%5)/5;\n\tinput=input-five*5;\n\tcout<=5)\n\t{\n\t\tp=1;\n\t\tq=b-5;\n\t}\n\tif(b<5)\n\t{\n\t\tp=0;\n\t\tq=b;\n\t}\n\tif(q==4)\n\t{\n\t\tt=2;h=0;\n\t}\n\tif(q==3)\n\t{\n\t\tt=1;\n\t\th=1;\n\t}\n\tif(q==2)\n\t{\n\t\tt=1;h=0;\n\t}\n\tif(q==1)\n\t{\n\t\tt=0;h=1;\n\t}\n\tif(q==0)\n\t{\n\t\tt=0;h=0;\n\t}\n\tc=a%10;\n\tif(c>=5)\n\t{\n\t\tr=1;\n\t\ts=c-5;\n\t}\n\tif(c<5)\n\t{\n\t\tr=0;\n\t\ts=c;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",m,p,t,h,r,s);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48179", "code": "int main()\n{\n\tint n, m100, m50, m20, m10, m5;\n\tcin >> n;\n\tm100 = n % 100;\n\tcout << (n - m100) / 100 << endl;\n\tm50 = m100 % 50;\n\tcout << (m100 - m50) / 50 << endl;\n\tm20 = m50 % 20;\n\tcout << (m50 - m20) / 20 << endl;\n\tm10 = m20 % 10;\n\tcout << (m20 - m10) / 10 << endl;\n\tm5 = m10 % 5;\n\tcout << (m10 - m5) / 5 << endl;\n\tcout << m5 << endl;\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48180", "code": "int main()\n{\n int n100=0; //????????????? \n int n50=0;\n int n20=0;\n int n10=0;\n int n5=0;\n int n1=0;\n int n=0; //?????\n int p=0; //???? \n cin>>n;\n p=n%100; \n n100=(n-p)/100;\n n=p%50;\n n50=(p-n)/50;\n p=n%20;\n n20=(n-p)/20;\n n=p%10;\n n10=(p-n)/10;\n p=n%5;\n n5=(n-p)/5;\n n1=p;\n cout<n)\n\t\t\tbreak;\n\t}\n\ta=i-1;\n\tm=n-a*100;\n\tfor(i=1;i<=m;i++)\n\t{\n\t\tif(i*50>m)\n\t\t\tbreak;\n\t}\n\tb=i-1;\n\tm=m-b*50;\n\tfor(i=1;i<=m;i++)\n\t{\n\t\tif(i*20>m)\n\t\t\tbreak;\n\t}\n\tc=i-1;\n\tm=m-c*20;\n\tfor(i=1;i<=m;i++)\n\t{\n\t\tif(i*10>m)\n\t\t\tbreak;\n\t}\n\td=i-1;\n\tm=m-d*10;\n\tfor(i=1;i<=m;i++)\n\t{\n\t\tif(i*5>m)\n\t\t\tbreak;\n\t}\n\te=i-1;\n\tf=m-e*5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\", a, b, c, d, e, f);\n\treturn 0;\n}"} +{"label": "97", "index": "48182", "code": "int main()\n{\n\tint money,bz[6]={100,50,20,10,5,1},y,i,num[6];\n\tcin>>money;\n\ty=money;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tif(y>n;\n\ta[1]=(int)(n/100);\n\ta[2]=(int)((n-a[1]*100)/50);\n\ta[3]=(int)((n-a[1]*100-a[2]*50)/20);\n\ta[4]=(int)((n-a[1]*100-a[2]*50-a[3]*20)/10);\n\ta[5]=(int)((n-a[1]*100-a[2]*50-a[3]*20-a[4]*10)/5);\n\ta[6]=(int)((n-a[1]*100-a[2]*50-a[3]*20-a[4]*10-a[5]*5)/1);\n\tfor(i=1;i<=6;i++)\n\t{\n\t\tcout<=0)\n\t\t{\t\n\t\t\tsum1++;\n\t\t n=n-100;\n\t\t}\n\t\telse if(n-50>=0 && n-50<50)\n\t\t{\n\t\t\tsum2++;\n\t\t n=n-50;\n\t\t}\n\t\telse if(n-20>=0 && n-20<30)\n\t\t{\n\t\t\tsum3++;\n\t\t n=n-20;\n\t\t}\n\t\telse if(n-10>=0 && n-10<10)\n\t\t{\n\t\t\tsum4++;\n\t\t n=n-10;\n\t\t}\n\t\telse if(n-5>=0 && n-5<5)\n\t\t{\n\t\t\tsum5++;\n\t\t n=n-5;\n\t\t}\n\t\telse if(n-1>=0 && n-1<4)\n\t\t{\n\t\t\tsum6++;\n\t\t n=n-1;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",sum1,sum2,sum3,sum4,sum5,sum6);\n\treturn 0;\n}\n\n\n"} +{"label": "97", "index": "48187", "code": "int main(){\n\tint n;\n\tint a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tn=n%100;\n\tb=n/50;\n\tn=n%50;\n\tc=n/20;\n\tn=n%20;\n\td=n/10;\n\tn=n%10;\n\te=n/5;\n\tn=n%5;\n\tf=n;\n\tprintf(\"%d\\n\",a);\n printf(\"%d\\n\",b); \n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n\treturn 0;\n}"} +{"label": "97", "index": "48188", "code": "int main (){\nint m,a,b,c,d,e,f;\nscanf (\"%d\",&m);\nint i=1;\nif(i<=m){\ni++;\na=m/100;\nb=(m-100*a)/50;\nc=(m-100*a-50*b)/20;\nd=(m-100*a-50*b-20*c)/10;\ne=(m-100*a-50*b-20*c-10*d)/5;\nf=m-100*a-50*b-20*c-10*d-e*5;\nprintf (\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n}\nreturn 0;\n}"} +{"label": "97", "index": "48189", "code": "int main()\n{\n int deno[6] = {100,50,20,10,5,1};\n int money;\n scanf(\"%d\",&money);\n int count[6];\n for (int i=0;i<6;++i) count[i] = 0;\n while (money!=0)\n {\n for (int i=0;i<6;++i)\n {\n if (money>=deno[i])\n {\n money -= deno[i];\n count[i]++;\n break; \n } \n } \n }\n for (int i=0;i<6;++i)\n {\n printf(\"%d\\n\",count[i]); \n } \n return 0;\n}"} +{"label": "97", "index": "48190", "code": "\nint main(){\n\n\tint num;\n\tscanf(\"%d\",&num);\n\tint m100,m50,m20,m10,m5,m1,sz[50];\n\n\tm100=num/100;\n\tsz[0]=num%100;\n\tm50=sz[0]/50;\n\tsz[1]=sz[0]%50;\n\tm20=sz[1]/20;\n\tsz[2]=sz[1]%20;\n\tm10=sz[2]/10;\n\tsz[3]=sz[2]%10;\n\tm5=sz[3]/5;\n\tsz[4]=sz[3]%5;\n\tm1=sz[4];\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",m100,m50,m20,m10,m5,m1);\n\treturn 0;\n}"} +{"label": "97", "index": "48191", "code": "/*\n\n?? \n??????????????????345?????????????????????????100??50??20??10??5??1???????????????????\n \n???? \n????1000?????\n \n???? \n??????????????????????100??50??20??10??5??1???????\n \n???? \n735\n \n???? \n7\n0\n1\n1\n1\n0\n\n\n*/\n\n\nint main()\n{\n\tint i,n,count=0;\n\tcin>>n;\n\twhile(n-100>=0)\n\t{\n\t\tn-=100;\n\t\tcount++;\n\t}\n\tcout<=0)\n\t{\n\t\tn-=50;\n\t\tcount++;\n\t}\n\tcout<=0)\n\t{\n\t\tn-=20;\n\t\tcount++;\n\t}\n\tcout<=0)\n\t{\n\t\tn-=10;\n\t\tcount++;\n\t}\n\tcout<=0)\n\t{\n\t\tn-=5;\n\t\tcount++;\n\t}\n\tcout<=0)\n\t{\n\t\tn-=1;\n\t\tcount++;\n\t}\n\tcout<=100) printf(\"%d\\n\",n/100);\n\telse printf(\"0\\n\");\n\tn=n-(n/100)*100;\n\tif(n>=50) printf(\"%d\\n\",n/50);\n\telse printf(\"0\\n\");\n\tn=n-(n/50)*50;\n\tif(n>=20) printf(\"%d\\n\",n/20);\n\telse printf(\"0\\n\");\n\tn=n-(n/20)*20;\n\tif(n>=10) printf(\"%d\\n\",n/10);\n\telse printf(\"0\\n\");\n\tn=n-(n/10)*10;\n\tif(n>=5) printf(\"%d\\n\",n/5);\n\telse printf(\"0\\n\");\n\tn=n-(n/5)*5;\n\tprintf(\"%d\\n\",n);\n\treturn 0;\n}"} +{"label": "97", "index": "48196", "code": "int main ()\n{\n\tint n,a[6];\n\tscanf(\"%d\",&n);\n\ta[0]=(n-n%100)/100;\n\tn=n-a[0]*100;\n\ta[1]=(n-n%50)/50;\n\tn=n-50*a[1];\n\ta[2]=(n-n%20)/20;\n\tn=n-20*a[2];\n\ta[3]=(n-n%10)/10;\n\tn=n-a[3]*10;\n\ta[4]=(n-n%5)/5;\n\tn=n-a[4]*5;\n\ta[5]=n;\n\tint i;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48197", "code": "int main(int argc, char* argv[])\n{\n\tint m,a=0,b=0,c=0,d=0,e=0,f=0;\n\tscanf(\"%d\",&m);\n while (m>=100)\n\t {\n\t\t a++;\n\t\t m-=100;\n\t }\n\t while(m>=50&&m<100)\n\t {\n\t\t b++;\n\t\t m-=50;\n\t }\n\t while(m>=20&&m<50)\n\t {\n\t\t c++;\n\t\t m-=20;\n\t }\n\t while (m>10&&m<20)\n\t {\n\t\t d++;\n\t\t m-=10;\n\t }\n\t while (m<=10&&m>=5)\n\t {\n\t\t e++;\n\t\t m-=5;\n\t }\n\t while(m<5&&m>0)\n\t {\n\t\t f++;\n\t\t m-=1;\n\t }\n\t printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\t return 0;\n}\n\n"} +{"label": "97", "index": "48198", "code": "/*\n * ??????????\n * ?????2011-11-6\n * ?????\n * ???????????\n */\nint main()\n{\n\tint money,a=0,b=0,c=0,d=0,e=0,f=0; //???? \n\tcin>>money; //?????\n\twhile(money>=100) //????????????\n\t\t{money=money-100;\n\t\ta++;\n\t\t}\n\twhile(money>=50)\n\t\t{money=money-50;\n\t\tb++;\n\t\t}\n\twhile(money>=20)\n\t\t{money=money-20;\n\t\tc++;\n\t\t}\n\twhile(money>=10)\n\t\t{money=money-10;\n\t\td++;\n\t\t}\n\twhile(money>=5)\n\t\t{money=money-5;\n\t\te++;\n\t\t}\n\twhile(money>=1)\n\t\t\t{money=money-1;\n\t\t\tf++;\n\t\t\t}\n\tcout<=5){\n n2=1;\n n3=(b-5)/2;\n n4=(b-5)%2;\n }else{\n n2=0;\n n3=b/2;\n n4=b%2;\n }\n c=a%10;\n n5=c/5;\n n6=c%5;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n1,n2,n3,n4,n5,n6);\n return 0;\n}"} +{"label": "97", "index": "48200", "code": "int main()\n{\n\tint x,a,b,c,d,e,f;\n\tscanf(\"%d\",&x);\n a=(int)ceil(x/100);\n\tb=(int)ceil((x-a*100)/50);\n\tc=(int)ceil((x-a*100-b*50)/20);\n\td=(int)ceil((x-a*100-b*50-c*20)/10);\n\te=(int)ceil((x-a*100-b*50-c*20-d*10)/5);\n\tf=(int)ceil((x-a*100-b*50-c*20-d*10-e*5)/1);\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48201", "code": "int main()\n{\n int n,l;\n scanf(\"%d\",&n);\n int a;\n a=(int)n/100;\n printf(\"%d\\n\",a);\n l=n-a*100;\n int b;\n b=(int)l/50;\n printf(\"%d\\n\",b);\n l=l-b*50;\n int c;\n c=(int)l/20;\n printf(\"%d\\n\",c);\n l=l-c*20;\n int d;\n d=(int)l/10;\n printf(\"%d\\n\",d);\n l=l-d*10;\n int e;\n e=(int)l/5;\n printf(\"%d\\n\",e);\n l=l-5*e;\n int f;\n f=(int)l/1;\n printf(\"%d\\n\",f);\n return 0;\n}\n"} +{"label": "97", "index": "48202", "code": "int main()\n{\n\tint sum,i=1,a[7]={0};\n\tcin>>sum;\n\ta[1]=sum/100;\n\ta[2]=(sum-a[1]*100)/50;\n\ta[3]=(sum-a[2]*50-a[1]*100)/20;\n\ta[4]=(sum-a[3]*20-a[2]*50-a[1]*100)/10;\n\ta[5]=(sum-a[4]*10-a[3]*20-a[2]*50-a[1]*100)/5;\n\ta[6]=(sum%5);\n\tfor(i=1;i<=6;i++)\n\t\tcout<=50){\nprintf(\"%d\\n\",n/50);\nn=n-n/50*50;\n}else{\nprintf(\"0\\n\");\n}\nif (n>=20){\nprintf(\"%d\\n\",n/20);\nn=n-n/20*20;\n}else{\nprintf(\"0\\n\");\n}\nif(n>=10){\nprintf(\"%d\\n\",n/10);\nn=n-n/10*10;\n}else{\nprintf(\"0\\n\");\n}\nif(n>=5){\nprintf(\"%d\\n\",n/5);\nn=n-n/5*5;\n}else{\nprintf(\"0\\n\");\n}\nprintf(\"%d\\n\",n);\nreturn 0;\n}"} +{"label": "97", "index": "48207", "code": "int main()\n{\n int a,b,c,i,e,f,k,x,y,n;\n scanf(\"%d\",&n);\n a=n/100;\n b=n%10;\n n=n/10;\n c=n%10;\n switch(c)\n {\n case 0:e=0;f=0;k=0;break;\n case 1:e=1;f=0;k=0;break;\n case 2:e=0;f=1;k=0;break;\n case 3:e=1;f=1;k=0;break;\n case 4:e=0;f=2;k=0;break;\n case 5:e=0;f=0;k=1;break;\n case 6:e=1;f=0;k=1;break;\n case 7:e=0;f=1;k=1;break;\n case 8:e=1;f=1;k=1;break;\n case 9:e=0;f=2;k=1;break;\n }\n if(b>=5)\n {\n x=b%5;\n y=1;\n }\n else\n {\n x=b%5;\n y=0;\n }\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,k,f,e,y,x);\n return 0;\n}\n \n"} +{"label": "97", "index": "48208", "code": "int main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint num1=n/100;printf(\"%d\\n\",num1);\n\tn-=num1*100;\n int num2=n/50;printf(\"%d\\n\",num2);\n\tn-=num2*50;\n\tint num3=n/20;printf(\"%d\\n\",num3);\n\tn-=num3*20;\n\tint num4=n/10;printf(\"%d\\n\",num4);\n\tn-=num4*10;\n\tint num5=n/5;printf(\"%d\\n\",num5);\n\tn-=num5*5;\n\tint num6=n;printf(\"%d\\n\",num6);\n\n\treturn 0;\n}"} +{"label": "97", "index": "48209", "code": "int main()\n{\n\tint n,a1,a2,a3,a4,a5,a6;\n\tcin>>n;\n\ta1=n/100;\n\tn=n%100;\n\ta2=n/50;\n\tn=n%50;\n\ta3=n/20;\n\tn=n%20;\n\ta4=n/10;\n\tn=n%10;\n\ta5=n/5;\n\tn=n%5;\n\ta6=n;\n\tcout<>n;\n\tint zz[6]={100,50,20,10,5,1};\n\tint z[6];\n\tz[0]=n / zz[0];\n\tn -= z[0]*zz[0];\n\tz[1]=n / zz[1];\n\tn -= z[1]*zz[1];\n\tz[2]=n / zz[2];\n\tn -= z[2]*zz[2];\n\tz[3]=n / zz[3];\n\tn -= z[3]*zz[3];\n\tz[4]=n / zz[4];\n\tn -= z[4]*zz[4];\n\tz[5]=n / zz[5];\n\tfor ( int i = 0 ; i < 6; i ++ )\n\t\tcout<=50){\n\t\tprintf(\"1\\n\");\n\t\tn-=50;\n\t}\n\telse printf(\"0\\n\");\n\tprintf(\"%d\\n\",n/20);\n\tn-=20*(n/20);\n\tif(n>=10){\n\t\tprintf(\"1\\n\");\n\t\tn-=10;\n\t}\n\telse printf(\"0\\n\");\n\tif(n>=5){\n\t\tprintf(\"1\\n\");\n\t\tn-=5;\n\t}\n\telse printf(\"0\\n\");\n\tprintf(\"%d\\n\",n);\n\treturn 0;\n}"} +{"label": "97", "index": "48213", "code": "int main()\n{\n\tint money,num100,num50,num20,num10,num5,num1;\n\tcin>>money;\n\tif(money/100>0)\n\t{\n\t\tnum100=money/100;\n\t\tmoney=money-100*num100;\n\t\tcout<0)\n\t{\n\t\tnum50=money/50;\n\t\tmoney=money-50*num50;\n\t\tcout<0)\n\t{\n\t\tnum20=money/20;\n\t\tmoney=money-20*num20;\n\t\tcout<0)\n\t{\n\t\tnum10=money/10;\n\t\tmoney=money-10*num10;\n\t\tcout<0)\n\t{\n\t\tnum5=money/5;\n\t\tmoney=money-5*num5;\n\t\tcout<=0)\n\t{\n\t\ta[0]=(money-money%100)/100;\n\t\tmoney=money%100;\n\t}else{money=money;}\n if((money-50)>=0)\n\t{\n\t\ta[1]=(money-money%50)/50;\n\t\tmoney=money%50;\n\t}else{money=money;}\n\tif((money-20)>=0)\n\t{\n\t\ta[2]=(money-money%20)/20;\n\t\tmoney=money%20;\n\t}else{money=money;}\n\tif((money-10)>=0)\n\t{\n\t\ta[3]=(money-money%10)/10;\n\t\tmoney=money%10;\n\t}else{money=money;}\n\tif((money-5)>=0)\n\t{\n\t\ta[4]=(money-money%5)/5;\n\t\tmoney=money%5;\n\t}else{money=money;}\n a[5]=money;\n\tfor(i=0;i<=5;i++)\n\t\tprintf(\"%d\\n\",a[i]);\n\treturn 0;\n}"} +{"label": "97", "index": "48215", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\\n\",&n);\n\tif(n/100!=0)\n\t\ta=n/100;\n\telse a=0;\n\t\n\tif((n-a*100)/50!=0)\n\t\tb=(n-a*100)/50;\n\telse b=0;\n\tif((n-a*100-b*50)/20!=0)\n\t\tc=(n-a*100-b*50)/20;\n\telse c=0;\n\tif((n-a*100-b*50-c*20)/10!=0)\n\t\td=(n-a*100-b*50-c*20)/10;\n\telse d=0;\n\tif((n-a*100-b*50-c*20-d*10)/5!=0)\n\t\te=(n-a*100-b*50-c*20-d*10)/5;\n\telse e=0;\n\n\tf=n-a*100-b*50-c*20-d*10-e*5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n\t\t\t\n}"} +{"label": "97", "index": "48216", "code": "\nint main(){\n\tint n,i,a[6]={100,50,20,10,5,1};//??????????\n\tcin>>n;\n\tfor (i=0;i<=5;i++)//????????????????\n\t\t{cout<<(n-n%a[i])/a[i]<=0)\n\t{\n\t\tleftmoney -= 100;\n\t ++yibai;\n\t}\t\t\n\telse\n {\n\t if (yibai==0);\n\t else --yibai;\n\t break;\n\t}\n\n }\n leftmoney += 100;\n for ( ; ; )\n {\n if (leftmoney>=0)\n\t{\n\t\tleftmoney -= 50;\n\t ++wushi;\n\t}\t\t\n\telse\n {\n\t if (wushi==0);\n\t else --wushi;\n\t break;\n\t}\n }\n leftmoney += 50;\n for ( ; ; )\n {\n if (leftmoney>=0)\n\t{\n\t\tleftmoney -= 20;\n\t ++ershi;\n\t}\t\t\n\telse\n {\n\t if (ershi==0);\n\t else --ershi;\n\t break;\n\t}\n }\n leftmoney += 20;\n\n for ( ; ; )\n {\n if (leftmoney>=0)\n\t{\n\t\tleftmoney -= 10;\n\t ++shi;\n\t}\t\t\n\telse\n {\n\t if (shi==0);\n\t else --shi;\n\t break;\n\t}\n }\n leftmoney += 10;\n for ( ; ; )\n {\n if (leftmoney>=0)\n\t{\n\t\tleftmoney -= 5;\n\t ++wu;\n\t}\t\t\n\telse\n {\n\t if (wu==0);\n\t else --wu;\n\t break;\n\t}\n }\n leftmoney+=5;\n for ( ; ; )\n {\n if (leftmoney>=0)\n\t{\n\t\tleftmoney -= 1;\n\t ++yi;\n\t}\t\t\n\telse\n {\n\t if (yi==0);\n\t else --yi;\n\t break;\n\t}\n }\n\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\", yibai, wushi, ershi, shi, wu, yi);\n\n return 0;\n}"} +{"label": "97", "index": "48220", "code": "int main()\n{\n int n,a,b,c,d,e,f;\n scanf(\"%d\",&n);\n a=n/100;\n b=(n-100*a)/50;\n c=(n-100*a-50*b)/20;\n d=(n-100*a-50*b-20*c)/10;\n e=(n-100*a-50*b-20*c-10*d)/5;\n if(e==0){\n f=(n-100*a-50*b-20*c-10*d-5*d);\n }\n else f=(n-100*a-50*b-20*c-10*d-5);\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}\n "} +{"label": "97", "index": "48221", "code": "int main()\n{\n int i,j,k,l,m,n;\n float num;\n scanf(\"%f\",&num);\n i=(int)(num/100);\n num=num-i*100;\n j=(int)(num/50);\n num=num-j*50;\n k=(int)(num/20);\n num=num-k*20;\n l=(int)(num/10);\n num=num-l*10;\n m=(int)(num/5);\n num=num-m*5;\n n=(int)(num);\n num=num-n;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",i,j,k,l,m,n);\n \n return 0;\n} "} +{"label": "97", "index": "48222", "code": "int main()\n{\n\tint n;\n\tint a100=0,a50=0,a20=0,a10=0,a5=0,a1=0;\n\tscanf(\"%d\",&n);\n\tfor(;n!=0;)\n\t{\n\t\tif(n>=100)\n\t\t{\n\t\t\ta100+=1;\n\t\t\tn-=100;\n\t\t}\n\t\tif(n<100&&n>=50)\n\t\t{\n\t\t\ta50+=1;\n\t\t\tn-=50;\n\t\t}\n\t\tif(n<50&&n>=20)\n\t\t{\n\t\t\ta20+=1;\n\t\t\tn-=20;\n\t\t}\n\t\tif(n<20&&n>=10)\n\t\t{\n\t\t\ta10+=1;\n\t\t\tn-=10;\n\t\t}\n\t\tif(n<10&&n>=5)\n\t\t{\n\t\t\ta5+=1;\n\t\t\tn-=5;\n\t\t}\n\t\tif(n<5&&n>=1)\n\t\t{\n\t\t\ta1+=1;\n\t\t\tn-=1;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a100,a50,a20,a10,a5,a1);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48223", "code": "void main()\n{\n\tint a,z,x,c,v,b,n,y,t;\n\tscanf(\"%d\",&a);\n z=(a-a%100)/100;\n\tx=(a-100*z-(a-100*z)%50)/50;\n\ty=a-100*z-50*x;\n\tc=(y-y%20)/20;\n\tv=(y-20*c-(y-20*c)%10)/10;\n\tt=a%10;\n\tb=(t-t%5)/5;\n\tn=t-5*b;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",z,x,c,v,b,n);\n}\n"} +{"label": "97", "index": "48224", "code": "void main()\n{\n\tint number, a[6]={0};\n\tscanf(\"%d\", &number);\n\tprintf(\"%d\\n\", number/100);\n\tif(number/100 != 0)\n\t\ta[0]=number%100;\n\telse\n\t\ta[0]=number;\n\tprintf(\"%d\\n\", a[0]/50);\n\tif(a[0]/50 != 0)\n\t\ta[1]=a[0]%50;\n\telse\n\t\ta[1]=a[0];\n\tprintf(\"%d\\n\", a[1]/20);\n\tif(a[1]/20 != 0)\n\t\ta[2]=a[1]%20;\n\telse\n\t\ta[2]=a[1];\n\tprintf(\"%d\\n\", a[2]/10);\n\tif(a[2]/10 != 0)\n\t\ta[3]=a[2]%10;\n\telse\n\t\ta[3]=a[2];\n\tprintf(\"%d\\n\", a[3]/5);\n\tif(a[3]/5 != 0)\n\t\ta[4]=a[3]%5;\n\telse\n\t\ta[4]=a[3];\n\tprintf(\"%d\", a[4]/1);\n}"} +{"label": "97", "index": "48225", "code": "int main()\n{\n\tint n,hundred,fifty,twenty,ten,five,one;\n\tscanf(\"%d\",&n);\n\thundred=n/100,n=n%100;\n\tfifty=n/50,n=n%50;\n\ttwenty=n/20,n=n%20;\n\tten=n/10,n=n%10;\n\tfive=n/5;n=n%5;\n\tone=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",hundred,fifty,twenty,ten,five,one);\n\treturn 0;\n}"} +{"label": "97", "index": "48226", "code": "int main(int argc, char* argv[])\n{ \n\tint n,m,p;\n\tint hun,fif,twenty,ten,five,one;\n\t\n\tscanf(\"%d\",&n);\n hun=n/100;\n\tn=n%100;\n\n\tif(n>=50){\n\t\tfif=1;\n\t\tm=n-50;\n\t}\n\telse if(n<50){\n\t\tfif=0;\n\t\tm=n;\n\t}\n\ttwenty=m/20;\n\tm=m%20;\n\tif(m>=10){\n\t\tten=1;\n\t\tp=m-10;\n\t}\n\telse if(m<10){\n\t\tten=0;\n\t\tp=m;\n\t}\n\tif(p>=5){\n\t\tfive=1;\n\t\tone=p-5;\n\t}\n\telse if(p<5){\n\t\tfive=0;\n\t\tone=p;\n\t}\n\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",hun,fif,twenty,ten,five,one);\n\t \n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48227", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n if(n>=1000||n<1)\n\t\tprintf(\"error\\n\");\n\telse{\n\t\ta=n/100; n=n%100;\n\t\tb=n/50; n=n%50;\n\t\tc=n/20; n=n%20;\n\t\td=n/10;n=n%10;\n\t\te=n/5;n=n%5;\n\t\tf=n;\n\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\t printf(\"%d\\n\",d);\n\t printf(\"%d\\n\",e);\n\t printf(\"%d\",f);}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48228", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n/100,(n%100)/50,(n%50)/20,(n%50-((n%50)/20)*20)/10,(n%10)/5,n%5);\n\treturn 0;\n}"} +{"label": "97", "index": "48229", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tif(n>=100)\n\t{\n\t\tprintf(\"%d\\n\",n/100);\n\t\tn=n%100;\n\t}\n\telse\n\t\tprintf(\"0\\n\");\n\tif(n>=50)\n\t{\n\t\tprintf(\"%d\\n\",n/50);\n\t\tn=n%50;\n\t}\n\telse\n\t\tprintf(\"0\\n\");\n\tif(n>=20)\n\t{\n\t\tprintf(\"%d\\n\",n/20);\n\t\tn=n%20;\n\t}\n\telse\n\t\tprintf(\"0\\n\");\n\tif(n>=10)\n\t{\n\t\tprintf(\"%d\\n\",n/10);\n\t\tn=n%10;\n\t}\n\telse\n\t\tprintf(\"0\\n\");\n\tif(n>=5)\n\t{\n\t\tprintf(\"%d\\n\",n/5);\n\t\tn=n%5;\n\t}\n\telse\n\t\tprintf(\"0\\n\");\n\tprintf(\"%d\\n\",n);\n\treturn 0;\n}"} +{"label": "97", "index": "48230", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tint result[6];\n\tint money[6]={100,50,20,10,5,1};\n\tfor(int k=0;k!=6;k++)\n\t{\n\t\tresult[k]=n/money[k];\n\t\tn-=n/money[k]*money[k];\n\t}\n\tfor(int k=0;k!=6;k++)\n\t\tcout<>m;\nif(m/100!=0)\n{ c100=m/100;\n m=m%100;\n}\nif(m/50!=0)\n{c50=m/50;\n m=m%50;\n}\nif(m/20!=0)\n{c20=m/20;\nm=m%20;\n}\nif(m/10!=0)\n{c10=m/10;\nm=m%10;\n}\nif(m/5!=0)\n{c5=m/5;\n m=m%5;\n}\nif(m/1!=0)\n{ c1=m;\n}\ncout<0&&a<1000){\nx=a/100;\nm=a%100;\ny=m/50;\nn=m%50;\nz=n/20;\np=n%20;\nr=p/10;\nq=p%10;\ns=q/5;\nt=q%5;\nprintf(\"%d\\n\",x);\nprintf(\"%d\\n\",y);\nprintf(\"%d\\n\",z);\nprintf(\"%d\\n\",r);\nprintf(\"%d\\n\",s);\nprintf(\"%d\",t);\n}\nreturn 0;\n}\n"} +{"label": "97", "index": "48233", "code": "int main (){\n int m,bai,wushi,ershi,shi,wu,yi;\n int a,b,c,d,e,f;\n scanf(\"%d\",&m);\n bai=m/100;\n printf(\"%d\\n\",bai);\n if(m%100>=50)wushi=1;\n else if(m%100<=50)wushi=0;\n printf(\"%d\\n\",wushi);\n if(m%50>=40)ershi=2;\n else if(m%50>=20&&m%50<40)ershi=1;\n else if(m%50<20)ershi=0;\n printf(\"%d\\n\",ershi);\n if(m-bai*100-wushi*50-20*ershi>9)shi=1;\n else if(m-bai*100-wushi*50-20*ershi<10)shi=0;\n printf(\"%d\\n\",shi);\n if(m%10>=5)wu=1;\n else if(m%10<5)wu=0;\n printf(\"%d\\n\",wu);\n yi=m%5;\n printf(\"%d\\n\",yi);\n return 0;\n}"} +{"label": "97", "index": "48234", "code": "int main(){\n int n,a,b,c,d,e;\n cin>>n;\n a=n/100;\n n=n-(n/100)*100;\n cout<>n;\n\twhile(n>=100){\n\t\tn-=100;\n\t\ta++;}\n\twhile(n>=50){\n\t\tn-=50;\n\t\tb++;}\n\twhile(n>=20){\n\t\tn-=20;\n\t\tc++;}\n\twhile(n>=10){\n\t\tn-=10;\n\t\td++;}\n\twhile(n>=5){\n\t\tn-=5;\n\t\te++;}\n\twhile(n>=1){\n\t\tn-=1;\n\t\tf++;}\n\tcout<>n; //????\n\ta=n/100; //??100????\n\tif(n%100!=0)\n\t{b=((n%100)/50); //50????\n\tif((n-100*a)%50!=0)\n\t{\n\t\tc=(((n-100*a-50*b)%50)/20); //20????\n\t\t\t\tif((n-100*a-50*b)%20!=0)\n\t\t\t\t{\n\t\t\t\t\td=(((n-100*a-50*b)%20)/10); //10???\n\t\t\t\t\tif((n-100*a-50*b-20*c)%10!=0)\n\t\t\t\t\t\te=((n-a*100-50*b-20*c-10*d)%10)/5; //5???\n\t\t\t\t\t{\n\t\t\t\t\tif((n-100*a-50*b-20*c-10*d)%5!=0)\n\t\t\t\t\t\tf=(((n-100*a-50*b-20*c-10*d-5*e)%5)/1);\n\t\t\t\t}\n\t}\n\t}}\n\tcout<>n;\n\tn1=n%100;\n\ta=(n-n1)/100;\n\tn2=n1%50;\n\tb=(n1-n2)/50;\n\tn3=n2%20;\n\tc=(n2-n3)/20;\n\tn4=n3%10;\n\td=(n3-n4)/10;\n\tn5=n4%5;\n\te=(n4-n5)/5;\n\tf=n5;\n\tcout<=50)\n {\n wushi=1;\n }\n else\n {\n wushi=0;\n }\n\n yu2=yu1-wushi*50;\n ershi=(yu2-yu2%20)/20;\n\n yu3=yu2-ershi*20;\n shi=(yu3-yu3%10)/10;\n\n yu4=yu3-shi*10;\n wu=(yu4-yu4%5)/5;\n\n yu5=yu4-wu*5;\n yi=yu5;\n\n printf(\"%d\\n\",bai);\n printf(\"%d\\n\",wushi);\n printf(\"%d\\n\",ershi);\n printf(\"%d\\n\",shi);\n printf(\"%d\\n\",wu);\n printf(\"%d\\n\",yi);\n return 0;\n}\n\n"} +{"label": "97", "index": "48241", "code": "int main()\n{\nint sum,n100,n50,n20,n10,n5,n1;\n//????\ncin>>sum;\n//?????\nn100=sum/100;\n\nsum=sum-n100*100;\nn50=sum/50;\n\nsum=sum-n50*50;\nn20=sum/20;\n\nsum=sum-n20*20;\nn10=sum/10;\n\nsum=sum-n10*10;\nn5=sum/5;\n\nsum=sum-n5*5;\nn1=sum;\n//????\ncout<>n; //???? \n for (int i=0;i<10;i++) \n {\n if (n>=100) n=n-100; //??100??? ??????100???100????????100 \n else\n {\n cout<=50) n=n-50; //??50?????? \n else\n {\n cout<=20) n=n-20; //??20???\n else\n {\n cout<=10) n=n-10; //??10???\n else\n {\n cout<=5) n=n-5; //??5???\n else\n {\n cout<=1) n=n-1; //??1???\n else\n {\n cout<=100)\n\t{\n\t\tn=n-100;\n\t\ta++;\n\t}\n\tm=n;\n while(m>=50)\n\t{\n\t\tm=m-50;\n\t\tb++;\n\t}\n\tp=m;\n\twhile(p>=20)\n\t{\n\t\tp=p-20;\n\t\tc++;\n\t}\n\tq=p;\n\twhile(q>=10)\n\t{\n\t\tq=q-10;\n\t\td++;\n\t}\n\tr=q;\n\twhile(r>=5)\n\t{\n\t\tr=r-5;\n\t\te++;\n\t}\n\ts=r;\n\twhile(s>=1)\n\t{\n\t\ts=s-1;\n\t\tf++;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48245", "code": "int main()\n{\n int n,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0,A1=0,A2=0,A3=0,A4=0;\n scanf(\"%d\",&n);\n\ta1=n/100;\n\tA1=n-a1*100;\n\ta2=A1/50;\n\tA2=A1-a2*50;\n\ta3=A2/20;\n\tA3=A2-a3*20;\n\ta4=A3/10;\n\tA4=A3-a4*10;\n\ta5=A4/5;\n\ta6=A4-a5*5;\n\tprintf(\"%d\\n\",a1);\n\tprintf(\"%d\\n\",a2);\n\tprintf(\"%d\\n\",a3);\n\tprintf(\"%d\\n\",a4);\n\tprintf(\"%d\\n\",a5);\n\tprintf(\"%d\\n\",a6);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48246", "code": "int main()\n{\n\tint count(int facevalue,int sum,int n);\n\tint n,sum=0;\n\tcin>>n;\n\tint facevalue[6]={100,50,20,10,5,1},num[6];\n\tfor(int i=0;i<6;i++)\n\t{\n\t\tnum[i]=count(facevalue[i],sum,n);\n\t\tcout<=0){\n\t\tn=n-100;\n\t\ta=a+1;\n\t}\n\tprintf(\"%d\\n\",a);\n\tn=m-100*a;\n\twhile(n>=0){\n\t\tn=n-50;\n\t\tb=b+1;\n\t}\n\tprintf(\"%d\\n\",b);\n\tn=m-50*b-100*a;\n\twhile(n>=0){\n\t\tn=n-20;\n\t\tc=c+1;\n\t}\n\tprintf(\"%d\\n\",c);\n\tn=m-100*a-50*b-20*c;\n\twhile(n>=0){\n\t\tn=n-10;\n\t\td=d+1;\n\t}\n\tprintf(\"%d\\n\",d);\n\tn=m-100*a-50*b-20*c-10*d;\n\twhile(n>=0){\n\t\tn=n-5;\n\t\te=e+1;\n\t}\n\tprintf(\"%d\\n\",e);\n\tn=m-100*a-50*b-20*c-10*d-5*e;\n\twhile(n>=0){\n\t\tn=n-1;\n\t\tf=f+1;\n\t}\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}"} +{"label": "97", "index": "48250", "code": "\nint main()\n{\n\tint n;\n\tcin>>n;\n\tint i;\n\tfor (i=0;(n-100*i)>=0;i++)\n\t{\n\t}\n\ti=i-1;\n\tcout<=0;i++)\n\t{\n\t}\n\ti=i-1;\n\tcout<=0;i++)\n\t{\n\t}\n\ti=i-1;\n\tcout<=0;i++)\n\t{\n\t}\n\ti=i-1;\n\tcout<=0;i++)\n\t{\n\t}\n\ti=i-1;\n\tcout<>n;\n\tfor (i=0;i<6;i++)\n\t{\n\t\twhile (n>=rmb[i])\n\t\t{\n\t\t\tans[i]++;\n\t\t\tn=n-rmb[i];\n\t\t}\n\t\tcout<=100){\n a=(n-n%100)/100;\n\t n=n%100;\n\t}\n\tif(n>=50){\n\t\tb=(n-n%50)/50;\n\t\tn=n%50;\n\t}\n\tif(n>=20){\n\t\tc=(n-n%20)/20;\n\t\tn=n%20;\n\t}\n\tif(n>=10){\n\t\td=(n-n%10)/10;\n\t\tn=n%10;\n\t}\n\tif(n>=5){\n\t\te=(n-n%5)/5;\n\t\tn=n%5;\n\t}\n\tf=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48253", "code": "int main()\n{\n\tint n,a=0,b=0,c=0,d=0,e=0,f=0;\n\t scanf(\"%d\",&n);\n if (n/100>0)\n\t\ta=n/100;\n\tif ((n/50-a*2)>0)\n b=n/50-a*2;\n\tif (((n-b*50)/20-a*5)>0)\n\t\tc=(n-b*50)/20-a*5;\n\tif ((n/10-a*10-b*5-c*2)>0)\n\t\td=n/10-a*10-b*5-c*2;\n\tif ((n/5-20*a-10*b-c*4-d*2)>0)\n\t\te=n/5-20*a-10*b-c*4-d*2;\n\tif ((n-100*a-50*b-20*c-10*d-5*e)>0)\n f=n-100*a-50*b-20*c-10*d-5*e;\n\t printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n \n\n\nreturn 0;\n}"} +{"label": "97", "index": "48254", "code": "int main(){\n\tint sum;\n\tint a1,b1,c1,d1,e1,f1;\n\tint numa,numb,numc,numd,nume,numf;\n\tscanf(\"%d\",&sum);\n\ta1=sum%100;\n\tnuma=(sum-a1)/100;\n\tb1=(sum-100*numa)%50;\n\tnumb=(sum-100*numa-b1)/50;\n\tc1=(sum-100*numa-50*numb)%20;\n\tnumc=(sum-100*numa-50*numb-c1)/20;\n\td1=(sum-100*numa-50*numb-20*numc)%10;\n\tnumd=(sum-100*numa-50*numb-20*numc-d1)/10;\n\te1=(sum-100*numa-50*numb-20*numc-10*numd)%5;\n\tnume=(sum-100*numa-50*numb-20*numc-10*numd-e1)/5;\n\tf1=(sum-100*numa-50*numb-20*numc-10*numd-5*nume)%1;\n\tnumf=(sum-100*numa-50*numb-20*numc-10*numd-5*nume-f1);\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",numa,numb,numc,numd,nume,numf);\n\treturn 0;\n}"} +{"label": "97", "index": "48255", "code": "int main()\n{\nint n,a,b,c,d,e,f;\nscanf(\"%d\",&n);\na=n/100;\nb=(n-n/100*100)/50;\nc=(n-(a*100+b*50))/20;\nd=(n-(a*100+b*50+c*20))/10;\ne=(n-n/10*10)/5;\nf=(n-n/5*5);\nprintf(\"%d\\n\",a);\nprintf(\"%d\\n\",b);\nprintf(\"%d\\n\",c);\nprintf(\"%d\\n\",d);\nprintf(\"%d\\n\",e);\nprintf(\"%d\\n\",f);\n\nreturn 0;\n}"} +{"label": "97", "index": "48256", "code": "int main()\n{\n\tint a,b,c,d,e,f,sum;\n\tscanf(\"%d\",&sum);\n if(sum<1000)\n\t{\n\t\ta=sum/100;\n\t\tsum=sum-100*a;\n\t\tb=sum/50;\n\t\tsum=sum-50*b;\n\t\tc=sum/20;\n\t\tsum=sum-20*c;\n\t\td=sum/10;\n\t\tsum=sum-10*d;\n\t\te=sum/5;\n\t\tsum=sum-5*e;\n\t\tf=sum;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\t\nreturn 0;\n}"} +{"label": "97", "index": "48257", "code": "\nint main()\n{\n int a=0;\n int b=0;\n int i=0;\n int t=0,z=0,number=0;\n int money[6] = {100,50,20,10,5,1};\n\n scanf(\"%d\",&a);\n b=a;\n\n while(i<=4)\n {\n\tt=b%money[i];\n number=(b-t)/money[i];\n\tb=t-z*money[i];\n\tprintf(\"%d\\n\",number);\n\ti++;\n }\n printf(\"%d\",b);\n return 0;\n}"} +{"label": "97", "index": "48258", "code": "\n\nint main()\n{\n int a;\n\tint b,c,d,e,f,g;\n\tscanf(\"%d\",&a);\n\tb=(a-a%100)/100;\n\tc=((a-b*100)-(a-b*100)%50)/50;\n\td=((a-b*100-c*50)-(a-b*100-c*50)%20)/20;\n\te=((a-b*100-c*50-d*20)-(a-b*100-c*50-d*20)%10)/10;\n\tf=((a-b*100-c*50-d*20-e*10)-(a-b*100-c*50-d*20-e*10)%5)/5;\n\tg=((a-b*100-c*50-d*20-e*10-f*5)-(a-b*100-c*50-d*20-e*10-f*5)%1)/1;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",b,c,d,e,f,g);\n\treturn 0;\n}"} +{"label": "97", "index": "48259", "code": "int main()\n{\n int n,a,b,c,d,e,f;\n\ta=b=c=d=e=f=0;\n\tscanf (\"%d\",&n);\n\n\ta=n/100;\n\tb=(n-100*a)/50;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-20*c)/10;\n\te=(n-100*a-50*b-20*c-10*d)/5;\n\tf=(n-100*a-50*b-20*c-10*d-e*5);\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48260", "code": "int main(){\nint n,a,b,c,d,e,f,x,y,z,i,q;\nscanf(\"%d\",&n);\na=n/100;\nx=n%100;\nb=x/50;\ny=n%50;\nc=y/20;\nz=n-100*a-50*b-20*c;\nd=z/10;\ni=n%10;\ne=i/5;\nq=n%5;\nf=q;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\nreturn 0;\n}"} +{"label": "97", "index": "48261", "code": "//\n// main.cpp\n// hw\n//\n// Created by ? ? on 12-12-16.\n// Copyright (c) 2012? ? ?. All rights reserved.\n//\n\n\nint main(int argc, const char * argv[])\n{\n int num;\n cin>>num;\n int money[6]={100,50,20,10,5,1};\n for (int i=0; i<6; i++) {\n cout<>n;\n\tint zz[6]={100,50,20,10,5,1};\n\tint z[6];\n\tfor ( i= 0 ; i < 6 ;i ++ )\n\t{\n\t\tz[i]=n / zz[i];\n\t\tn -= z[i]*zz[i];\n\t}\n\tfor ( i = 0 ; i < 6; i ++ )\n\t\tcout<>n;\n\ta[0]=100; \n\ta[1]=50;\n\ta[2]=20;\n\ta[3]=10;\n\ta[4]=5;\n\ta[5]=1;\n\tfor(i=0;i<6;i++) //???????????????\n\t{\n\t\tp=n/a[i];\n\t\tcout<=0)\n\t\t{\n\t\t\ta1+=1;\n\t\t\tn-=100;\n\t\t}\n\t\telse break;\n\t}\n\tfor(;;)\n\t{\n\t\tif(n-50>=0)\n\t\t{\n\t\t\ta2+=1;\n\t\t\tn-=50;\n\t\t}\n\t\telse break;\n\t}\n\tfor(;;)\n\t{\n\t\tif(n-20>=0)\n\t\t{\n\t\t\ta3+=1;\n\t\t\tn-=20;\n\t\t}\n\t\telse break;\n\t}\n\tfor(;;)\n\t{\n\t\tif(n-10>=0)\n\t\t{\n\t\t\ta4+=1;\n\t\t\tn-=10;\n\t\t}\n\t\telse break;\n\t}\n\tfor(;;)\n\t{\n\t\tif(n-5>=0)\n\t\t{\n\t\t\ta5+=1;\n\t\t\tn-=5;\n\t\t}\n\t\telse break;\n\t}\n\tfor(;;)\n\t{\n\t\tif(n-1>=0)\n\t\t{\n\t\t\ta6+=1;\n\t\t\tn-=1;\n\t\t}\n\t\telse break;\n\t}\n\tprintf(\"%d\\n\",a1);\n\tprintf(\"%d\\n\",a2);\n\tprintf(\"%d\\n\",a3);\n\tprintf(\"%d\\n\",a4);\n\tprintf(\"%d\\n\",a5);\n\tprintf(\"%d\\n\",a6);\n\treturn 0;\n} "} +{"label": "97", "index": "48267", "code": "\nint main()\n{\nint n,a,b,c,d,e,f;\nint i1,i2,i3,i4,i5;\nscanf(\"%d\",&n);\ni1=n%100;\na=(n-i1)/100;\n\nn=n-100*a;\ni2=n%50;\nb=(n-i2)/50;\n\nn=n-50*b;\ni3=n%20;\nc=(n-i3)/20;\n\nn=n-20*c;\ni4=n%10;\nd=(n-i4)/10;\n\nn=n-10*d;\ni5=n%5;\ne=(n-i5)/5;\n\nn=n-5*e;\nf=n;\nprintf(\"%d\\n\",a);\nprintf(\"%d\\n\",b);\nprintf(\"%d\\n\",c);\nprintf(\"%d\\n\",d);\nprintf(\"%d\\n\",e);\nprintf(\"%d\\n\",f);\n\n\nreturn 0;\n}"} +{"label": "97", "index": "48268", "code": "int main()\n{\n\tint n,p=0,q=0,r=0;\n\tscanf(\"%d\",&n);\n\tp=n/100;\n\tprintf(\"%d\\n\",p);\n\tp=n%100;\n\tp=p/50;\n\tprintf(\"%d\\n\",p);\n\tp=n%100%50;\n\tp=p/20;\n\tprintf(\"%d\\n\",p);\n\tp=n%100%50%20;\n\tp=p/10;\n\tprintf(\"%d\\n\",p);\n\tp=n%100%50%20%10;\n\tp=p/5;\n\tprintf(\"%d\\n\",p);\n\tp=n%100%50%20%10%5;\n\tprintf(\"%d\",p);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48269", "code": "int main()\n{\nint n;\nscanf(\"%d\",&n);\nprintf(\"%d\",n/100);\nif((n%100)/10==9){\n\tprintf(\"\\n1\\n2\\n0\");\n}\n\telse if((n%100)/10==8){\n\t\tprintf(\"\\n1\\n1\\n1\");\n\t}\n\t\telse if((n%100)/10==7){\n printf(\"\\n1\\n1\\n0\");\n\t\t}\n else if((n%100)/10==6){\n printf(\"\\n1\\n0\\n1\");\n\t\t}\n\t\telse if((n%100)/10==5){\nprintf(\"\\n1\\n0\\n0\");\n\t\t}\n\t\telse if((n%100)/10==4){\nprintf(\"\\n0\\n2\\n0\");\n\t\t}\n\t\telse if((n%100)/10==3){\nprintf(\"\\n0\\n1\\n1\");\n\t\t}\n\t\telse if((n%100)/10==2){\nprintf(\"\\n0\\n1\\n0\");\n\t\t}\nelse if((n%100)/10==1){\nprintf(\"\\n0\\n0\\n1\");\n}\nelse{\nprintf(\"\\n0\\n0\\n0\");\n}\nif((n%10)>=5){\n\tprintf(\"\\n1\\n%d\",(n%10)-5);\n}\n\telse{\n\t\tprintf(\"\\n0\\n%d\",(n%10));\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48270", "code": "int main()\n{\n\tint n,a,b,c,d,e,f,x;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tx=n%100;\n\tb=x/50;\n\tx=x-b*50;\n\tc=x/20;\n\tx=x-20*c;\n\td=x/10;\n\tx=x-10*d;\n\te=x/5;\n\tx=x-5*e;\n\tf=x;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\",f);\n\treturn 0;\n \n}"} +{"label": "97", "index": "48271", "code": "/*\n * k2.cpp\n *\n * Created on: 2011-11-6\n * Author: b\n */\nint main()\n{\n\tint n;//??????n\n\tcin>>n;//??n\n\tint A,B,C,D,E,F,a,b,c,d;//???????????????\n\t\tA=n/100;//????\n\t\ta=n%100;\n\t\tB=a/50;\n\t\tb=a%50;\n\t\tC=b/20;\n\t\tc=b%20;\n\t\tD=c/10;\n\t\td=c%10;\n\t\tE=d/5;\n\t\tF=d%5;\n\tcout<>x;\n\tfor(int i=0;i<6;i++){\n\t\tb[i]=(x-x%a[i])/a[i];\n\t\tx=x-a[i]*b[i];\n\t\tcout<=100)\n\t{\n\t\tb=a/100;\n\t\tprintf(\"%d\\n\",b);\n\t\ta=a-b*100;\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(a>=50)\n\t{\n\t\tprintf(\"1\\n\");\n\t\ta=a-50;\n\t}\n\telse \n\t{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(a>=20)\n\t{\n\t\tb=a/20;\n\t\tprintf(\"%d\\n\",b);\n\t\ta=a-b*20;\n\t}\n\telse printf(\"0\\n\");\n\tif(a>=10)\n\t{\n\t\tprintf(\"1\\n\");\n\t\ta=a-10;\n\t}\n\telse printf(\"0\\n\");\n\tif(a>=5)\n\t{\n\t\tprintf(\"1\\n\");\n\t\ta=a-5;\n\t}\n\telse printf(\"0\\n\");\n\tprintf(\"%d\",a);\n}"} +{"label": "97", "index": "48276", "code": "int main(){\nint sz[10],sz1[6]={100,50,20,10,5,1};\nint a,i;\nscanf(\"%d\",&a);\nfor(i=0;i<6;i++){\nprintf(\"%d\\n\",a/sz1[i]);\na=a%sz1[i];\n}\nreturn 0;\n}"} +{"label": "97", "index": "48277", "code": "int main()\n{\n\tint n, i, s;\n\tscanf(\"%d\", &n);\n\tint a[6];\n\ta[0]=100;\n\ta[1]=50;\n\ta[2]=20;\n\ta[3]=10;\n\ta[4]=5;\n\ta[5]=1;\n\ti=0;\n\tint b[6];\n\ts=n;\n\tfor(i=0; i<=5; i++)\n\t{\n\t\tb[i]=(s-s%a[i])/a[i];\n\t\ts=s-b[i]*a[i];\n\t\tprintf(\"%d\\n\", b[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48278", "code": "int money[6]={100,50,20,10,5,1}; //???? \nint need,ans[6]; //????? \nint main()\n{\n int i=0;\n cin>>need; //???? \n while(need>0)\n {\n while(need>=money[i])\n {\n ans[i]++;\n need-=money[i];\n }\n i++;\n } //?????????? \n for(i=0;i<6;++i) cout<> n;\n\tint a,b,c,d,e;\n a=n/100;\n\tn=n%100;\n\tb=n/50;\n\tn=n%50;\n\tc=n/20;\n\tn=n%20;\n\td=n/10;\n\tn=n%10;\n\te=n/5;\n\tn=n%5;\n cout << a <>n;\n\tbai=n/100;\n\twushi=(n-100*bai)/50;\n\tershi=(n-100*bai-50*wushi)/20;\n\tshi=(n-100*bai-50*wushi-20*ershi)/10;\n wu=(n-100*bai-50*wushi-20*ershi-10*shi)/5;\n\tyi=n%5;\n\tcout<>n;\n\tr=n%100;\n\tm=(n-r)/100;\n\tcout<>money;\n\twhile(sum+100<=money)\n\t{sum+=100;num[0]++;}\n\twhile(sum+50<=money)\n\t{sum+=50;num[1]++;}\n\twhile(sum+20<=money)\n\t{sum+=20;num[2]++;}\n\twhile(sum+10<=money)\n\t{sum+=10;num[3]++;}\n\twhile(sum+5<=money)\n\t{sum+=5;num[4]++;}\n\twhile(sum+1<=money)\n\t{sum+=1;num[5]++;}\n\tfor(int i=0;i<6;i++)\n\t\tcout<=100)\n{\n\tn=n-100;\n\ta++;\n}\nwhile(n>=50)\n{\n\tn=n-50;\n\tb++;\n}\nwhile(n>=20)\n{\nn=n-20;\nc++;\n}\nwhile(n>=10)\n{\n\tn=n-10;\n\td++;\n}\nwhile(n>=5)\n{\n\tn=n-5;\n\te++;\n}\nwhile(n>=1)\n{\n\tn=n-1;\n\tf++;\n}\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n}\n\n\n\n\n\n"} +{"label": "97", "index": "48288", "code": "int main()\n{\n int m,n,x,i,an=0;\n cin>>m;\n if (m/100>0) {cout<0) {cout<0) {cout<0) {cout<0) {cout<>m;\n \n return 0;\n \n }\n"} +{"label": "97", "index": "48289", "code": "int main(){\n\tint x,a,b,q,w,r,t,y,c,d,e,f,g,h;\n\tscanf(\"%d\",&x);\n\tc=x%100;\n\td=c%50;\n\te=d%20;\n\tf=e%10;\n\tg=f%5;\n\th=g%2;\n\ta=(x-c)/100;\n\tb=(c-d)/50;\n q=(d-e)/20;\n\tw=(e-f)/10;\n\tr=(f-g)/5;\n\tt=(g-h)/2;\n\ty=h;\n\t printf(\"%d\\n\\n\",a);\t\t \t \n\t printf(\"%d\\n\\n\",b);\n\t printf(\"%d\\n\\n\",q);\n\t printf(\"%d\\n\\n\",w);\t \n\t printf(\"%d\\n\\n\",r);\n\t printf(\"%d\\n\\n\",g);\n\t return 0;\n}"} +{"label": "97", "index": "48290", "code": "int main()\n{\n int n,a=0,b=0,c=0,d=0,e=0,f=0;\n scanf(\"%d\",&n);\n if(n/100!=0)\n {\n a=n/100;\n n=n-100*a;\n if(n/50!=0)\n {\n b=n/50;\n n=n-b*50;\n }\n if(n/20!=0)\n {\n c=n/20;\n n=n-c*20;\n }\n if(n/10!=0)\n {\n d=n/10;\n n=n-d*10;\n }\n if(n/5!=0)\n {\n f=n/5;\n n=n-f*5;\n }\n if(n/1!=0)\n {\n e=n/1;\n n=n-e*1;\n }\n }\n else\n {\n if(n/50!=0)\n {\n b=n/50;\n n=n-b*50;\n }\n if(n/20!=0)\n {\n c=n/20;\n n=n-c*20;\n }\n if(n/10!=0)\n {\n d=n/10;\n n=n-d*10;\n }\n if(n/5!=0)\n {\n f=n/5;\n n=n-f*5;\n }\n if(n/1!=0)\n {\n e=n/1;\n n=n-e*1;\n }\n }\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,f,e);\n return 0;\n}\n \n\n\n "} +{"label": "97", "index": "48291", "code": "int main(){\n int a,b,c,d,e,f,g,i,j,k,l,m,n;\n\t scanf(\"%d\",&a);\n\t i=0;\n\t j=0;\n\t k=0;\n\t l=0;\n\t m=0;\n\t n=0;\n\t for (b=a;b>99;){\n\t b-=100;\n\t i=i+1;\n }\n\t for (c=b;c>49;){\n\t c-=50;\n\t j=j+1;\n\t }\n for(d=c;d>19;){\n\t d-=20;\n\t k=k+1;\n\t }\n\t for(e=d;e>9;){\n\t e-=10;\n\t l=l+1;\n\t }\n\t for(f=e;f>4;){\n\t f-=5;\n\t m=m+1;\n\t }\n\t for(g=f;g>0;){\n\t g-=1;\n\t n=n+1;\n\t }\n\t printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",i,j,k,l,m,n);\n\t return 0;\n}\n"} +{"label": "97", "index": "48292", "code": "int main()\n{\nint n,a,b,c,d,e,f;\nscanf(\"%d\",&n);\na=(n-n%100)/100;\nb=((n%100)-(n%100)%50)/50;\nc=(((n%100)%50)-((n%100)%50)%20)/20;\nd=(((n%100)%50)%20-(((n%100)%50)%20)%10)/10;\ne=((((n%100)%50)%20)%10-((((n%100)%50)%20)%10)%5)/5;\nf=n%5;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n\nreturn 0;\n}"} +{"label": "97", "index": "48293", "code": "/*\n * ??????????\n * ?????2011?11?6?\n * ??????\n * ???????????????\n */\nint main() //?????\n{ int sum; //sum?????\n int num100=0,num50=0,num20=0,num10=0,num5=0,num1=0; //???????????\n cin >> sum; //??????\n int yu100=sum%100;\n num100=(sum-yu100)/100; //???????????\n int yu10=yu100%10;\n int shiwei=yu100-yu10; //?????\n if(shiwei>=50) {\n\t num50=1;\n\t int yu20=shiwei-50;\n\t if(yu20%20==0) num20=yu20/20;\n\t else num20=(yu20-10)/20;\n\t num10=(yu20-20*num20)/10;\n }\n else {num50=0; //??50??????\n if(shiwei%20==0) {num20=shiwei/20;\n num10=0;}\n else { num20=(shiwei-10)/20;\n num10=(shiwei-20*num20)/10; //??20?10??????\n }\n }\n int gewei; //??5??1??????\n gewei=sum%10;\n if(gewei==0) {\n\t num5=0;\n\t num1=0;\n }\n else if(gewei<5&&gewei>0){\n\t num5=0;\n\t num1=gewei;\n }\n else if(gewei>=5&&gewei<=9){\n\t num5=1;\n\t num1=gewei%5;\n }\n\n cout << num100 << endl;\n cout << num50 << endl;\n cout << num20 << endl;\n cout << num10 << endl;\n cout << num5 << endl;\n cout << num1 << endl; //???????\n\n\n\n\treturn 0;\n} //?????"} +{"label": "97", "index": "48294", "code": "int main()\n{\n\tint i,n,a[6],b[6]={100,50,20,10,5,1};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<6;i++){\n\t\ta[i]=n/b[i];\n\t\tn=n%b[i];\n\t}\n\tfor(i=0;i<6;i++){\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48295", "code": "int main()\n{\n\tint n,i;\n\tint a[6]={100,50,20,10,5,1};\n\tint b[6]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<6;i++)\n\t{\n\t\twhile(n>=a[i])\n\t\t{\n\t\t\tb[i]++;\n\t\t\tn-=a[i];\n\t\t}\n\t}\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",b[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48296", "code": "int main(){\n\tint n,a,b,c,d,e,f;\n scanf(\"%d\",&n);\n\ta=n/100;\n\tb=(n-100*a)/50;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-c*20)/10;\n\te=(n%10)/5;\n\tf=n%5;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}"} +{"label": "97", "index": "48297", "code": "int main()\n{\n\tint a[6];\n\tint b[6]={100,50,20,10,5,1};\n\tint n,i,m=0;\n\tscanf(\"%d\",&n);\n\ta[0]=n/100;\n\tfor(i=1;i<6;i++)\n\t{\n\t\tm+=a[i-1]*b[i-1];\n\t\ta[i] = (n-m)/b[i];\n\t\t\n\t}\n\tfor (i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48298", "code": "int main() {\n\tint a;\n\tint b,c,d,e,f;\n\tscanf(\"%d\",&a);\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tf=0;\n\n\twhile(a>=100){\n\t\ta=a-100;\n\t\tb=b++;\n\t}\n\twhile(a>=50){\n\t\ta=a-50;\n\t\tc=c++;\t\n\t}\n\twhile(a>=20){\n\t\ta=a-20;\n\t\td=d++;\t\n\t}\n\twhile(a>=10){\n\t\ta=a-10;\n\t\te=e++;\t\n\t}\n\twhile(a>=5){\n\t\ta=a-5;\n\t\tf=f++;\t\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,a);\n return 0;\n\t\n\n\n\n\n}"} +{"label": "97", "index": "48299", "code": "void main()\n{\n\tint k,a[6],i;\n\tscanf(\"%d\",&k);\n\ta[0]=k/100;k-=a[0]*100;\n\ta[1]=k/50;k-=a[1]*50;\n\ta[2]=k/20;k-=a[2]*20;\n\ta[3]=k/10;k-=a[3]*10;\n\ta[4]=k/5;k-=a[4]*5;\n\ta[5]=k;\n\tfor(i=0;i<6;i++)\n\t\tprintf(\"%d\\n\",a[i]);\n}"} +{"label": "97", "index": "48300", "code": "int main()\n{\n\tint i,n,a=0,b=0,c=0,d=0,e=0,f=0;\n\tscanf(\"%d\",&n);\n\tfor(i=n;i>=100;i=i-100)\n\t\ta++;\n\tfor(i;i>=50;i=i-50)\n\t\tb++;\n\tfor(i;i>=20;i=i-20)\n\t\tc++;\n\tfor(i;i>=10;i=i-10)\n\t\td++;\n\tfor(i;i>=5;i=i-5)\n\t\te++;\n\tf=i;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48301", "code": "int main()\n{\nint n,a1,a2,a3,a4,a5,a6;\nscanf(\"%d\",&n);\nif(n>1000||n<=0)\nprintf(\"error\");\nelse\n{\na1=n/100;\na2=n/50-a1*2;\na3=(n-a1*100-a2*50)/20;\na4=(n-a1*100-a2*50-a3*20)/10;\na5=(n-a1*100-a2*50-a3*20-a4*10)/5;\na6=(n-a1*100-a2*50-a3*20-a4*10-a5*5)/1;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a1,a2,a3,a4,a5,a6);\n}\nreturn 0;\n}"} +{"label": "97", "index": "48302", "code": "int main()\n{\n\tint money, a[7], i;\n\tcin >> money;\n\ta[0]=100; a[1]=50; a[2]=20; a[3]=10; a[4]=5; a[5]=1;\n\tfor(i=0; i<6; i++)\n\t{\n\t\tcout << money/a[i] << endl;\n\t\tmoney=money%a[i];\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48303", "code": "\n\nint main(int argc, char* argv[])\n{\n\nint a[10],b[10],i,n,p;\nscanf(\"%d\",&n);\na[1] = 100;\na[2] = 50;\na[3] =20;\na[4]=10;\na[5]=5;\na[6]=1;\n\nfor (i=1;i<=6;i++)\n{\t\n\tfor (p=1;p*a[i]<=n;p++)\n\t{}\n\tb[i]=p-1;\n\tn=n-b[i]*a[i];\n}\n\nfor (i=1;i<=6;i++)\n{\t\n\tprintf(\"%d\\n\",b[i]);\n\n}\n\t\n\treturn 0;\n}\n"} +{"label": "97", "index": "48304", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tint A,B,C,D,E;\n\tcin>>n;\n\ta=n/100;\n\tA=n%100;\n\tb=A/50;\n\tB=A%50;\n\tc=B/20;\n\tC=B%20;\n\td=C/10;\n\tD=C%10;\n\te=D/5;\n\tE=D%5;\n\tf=E;\n\tcout<>n;\n\ta=n/100;\n a1=n%100;\n\tb=a1/50;\n\tb1=(n-a*100)%50;\n\tc=b1/20;\n\tc1=(n-b*50)%20;\n\td=c1/10;\n\td1=(n-c*20)%10;\n\te=d1/5;\n\te1=(n-d*10)%5;\n\tf=e1;\n\tcout<=100){\n\t\ta=n/100;\n\t\tn=n%100;\n\t}\n if(n>=50){\n\t\tb=n/50;\n\t\tn=n%50;\n\t}\n\tif(n>=20){\n\t\tc=n/20;\n\t\tn=n%20;\n\t}\n\tif(n>=10){\n\t\td=n/10;\n\t\tn=n%10;\n\t}\n\tif(n>=5){\n\t\te=n/5;\n\t\tn=n%5;\n\t}\n if(n<5 && n>0)f=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a, b, c, d, e, f);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48312", "code": "\nint main(int argc, char* argv[])\n{\n\tint mon;\n\tint a, b, c, d, e, f;\n\tscanf(\"%d\",&mon);\n\ta=(mon-mon%100)/100;\n\tb=(mon%100-(mon-a*100)%50)/50;\n\tc=(mon-a*100-b*50-(mon-a*100-b*50)%20)/20;\n\td=(mon-(2*a+b)*50-c*20)/10;\n\te=(mon-(10*a+5*b+2*c+d)*10)/5;\n\tf=mon-100*a-50*b-20*c-10*d-5*e;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n\n\n}"} +{"label": "97", "index": "48313", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\n\tint l;\n\tint r;\n\tl=n%100;\n\tr=(n-l)/100;\n\tprintf(\"%d\\n\",r);\n\tn=l;\n\tl=n%50;\n\tr=(n-l)/50;\n\tprintf(\"%d\\n\",r);\n\tn=l;\n\tl=n%20;\n\tr=(n-l)/20;\n\tprintf(\"%d\\n\",r);\n\tn=l;\n\tl=n%10;\n\tr=(n-l)/10;\n\tprintf(\"%d\\n\",r);\n\tn=l;\n\tl=n%5;\n\tr=(n-l)/5;\n\tprintf(\"%d\\n\",r);\n\tn=l;\n\tl=n%1;\n\tr=(n-l)/1;\n\tprintf(\"%d\",r);\n\n\n\n\n\n\t\n\treturn 0;\n}"} +{"label": "97", "index": "48314", "code": "int main()\n{\n\tint n,i,q[6];\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=1;;i++){\n\n\t\tn-=100;\n\t\tif(n<0){\n\t\t\tq[0]=i-1;\n\t\t\tbreak;}}\n\tn=n+100;\n\tfor(i=1;;i++){\n\t\tn=n-50;\n\t\tif(n<0){\n\t\t\tq[1]=i-1;\n\t\t\tbreak;}}\n\tn=n+50;\n\tfor(i=1;;i++){\n\t\tn=n-20;\n\t\tif(n<0){\n\t\t\tq[2]=i-1;\n\t\t\tbreak;}}\n\tn=n+20;\n\tfor(i=1;;i++){\n\t\tn=n-10;\n\t\tif(n<0){\n\t\t\tq[3]=i-1;\n\t\t\tbreak;}}\n\tn=n+10;\n for(i=1;;i++){\n\t\tn=n-5;\n\t\tif(n<0){\n\t\t\tq[4]=i-1;\n\t\t\tbreak;}}\n\tn=n+5;\n\tq[5]=n;\n\tfor(i=0;i<6;i++)\n\tprintf(\"%d\\n\",q[i]);\n\treturn 0;\n}"} +{"label": "97", "index": "48315", "code": "int main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\tif((n/100)!=0)\n\t{\n\t\ta=n/100;\n\t\tn-=(a*100);\n\t}\n\telse\n\t{\n\t\ta=0;\n\t}\n\tif(n/50!=0)\n\t{\n\t\tb=n/50;\n\t\tn-=(b*50);\n\t}\n\telse\n\t{\n\t\tb=0;\n\t}\n\tif(n/20!=0)\n\t{\n\t\tc=n/20;\n\t\tn-=(c*20);\n\t}\n\telse\n\t{\n\t\tc=0;\n\t}\n\tif(n/10!=0)\n\t{\n\t\td=n/10;\n\t\tn-=(d*10);\n\t}\n\telse\n\t{\n\t\td=0;\n\t}\n\tif(n/5!=0)\n\t{\n\t\te=n/5;\n\t\tn-=(e*5);\n\t}\n\telse\n\t{\n\t\te=0;\n\t}\n\tf=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48316", "code": "int main()\n{\n\tint n,left=0;\n\tcin>>n;\n\tcout<>n;\n\tsum=n;\n\tfor(i=0;i<6;i++)\n\t{\n a=sum/m[i];\n\t sum=sum-a*m[i];\n\t cout<=100)\n\t{a100=n/100;n=n%100;}\n\tfor(a50=1;a50>=0;a50--)\n\t{\n\t\tif(n<50*a50)continue;\n\t\tn=n-50*a50;\n\t\tif(n==0){printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a100,a50,a20,a10,a5,a1);return 0;}\n\t\tfor(a20=2;a20>=0;a20--)\n\t\t{\n\t\t\tif(n-20*a20<0)continue;\n\t\t\tn=n-20*a20;\n\t\t\tif(n==0){printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a100,a50,a20,a10,a5,a1);return 0;}\n\t\t\tfor(a10=1;a10>=0;a10--)\n\t\t\t{\n\t\t\t\tif(n-10*a10<0)continue;\n\t\t\t\tn=n-10*a10;\n\t\t\t\tif(n==0){printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a100,a50,a20,a10,a5,a1);return 0;}\n\t\t\t\tfor(a5=1;a5>=0;a5--)\n\t\t\t\t{\n\t\t\t\t\tif(n-5*a5<0)continue;\n\t\t\t\t\tn=n-5*a5;\n\t\t\t\t\tif(n==0){printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a100,a50,a20,a10,a5,a1);return 0;}\n\t\t\t\t\tfor(a1=4;a1>=0;a1--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(n-a1<0)continue;\n\t\t\t\t\t\tn=n-a1;\n\t\t\t\t\t\tif(n==0){printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a100,a50,a20,a10,a5,a1);return 0;}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\treturn 0;\n\n\n}"} +{"label": "97", "index": "48322", "code": "int main()\n{\n\tint n,f;\n\tscanf(\"%d\",&n);\n\tint a=(int)(n/100);\n\tint b=(int)(n-a*100)/50;\n\tint c=(int)(n-100*a-50*b)/20;\n\tint d=(int)(n-100*a-50*b-20*c)/10;\n\tint e=(int)(n-100*a-50*b-20*c-10*d)/5;\n\tf=n-100*a-50*b-20*c-10*d-5*e;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48323", "code": "int main()\n{\n\tint sum,a[7]={0,0,0,0,0,0,0},i;\n\tcin>>sum;\n\ta[1]=sum/100;\n\tsum=sum-a[1]*100;\n\ta[2]=sum/50;\n\tsum-=a[2]*50;\n\ta[3]=sum/20;\n\tsum-=a[3]*20;\n\ta[4]=sum/10;\n\tsum-=a[4]*10;\n\ta[5]=sum/5;\n\tsum-=a[5]*5;\n\ta[6]=sum;\n\tfor(i=1;i<=6;i++)\n\t{\n\t\tcout<=100){\n\t\tn=n-100;\n\t\ti=i+1;\n\t}\n\tint a=0;\n\twhile (n>=50){\n\t\tn=n-50;\n\t\ta=a+1;\n\t}\n\tint b=0;\n\twhile (n>=20){\n\t\tn=n-20;\n\t\tb=b+1;\n\t}\n\tint c=0;\n\twhile (n>=10){\n\t\tn=n-10;\n\t\tc++;\n\t}\n\tint d=0;\n\twhile (n>=5){\n\t\tn=n-5;\n\t\td++;\n\t}\n\tint e=0;\n\twhile (n>=1){\n\t\tn=n-1;\n\t\te++;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",i,a,b,c,d,e);\n return 0;\n}\n"} +{"label": "97", "index": "48325", "code": "\nint main()\n{\n\tint a,b,c;\n\ta=b=c=0;\n\tint n;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tb=n/10-a*10;\n\tc=n-a*100-b*10;\n\tprintf(\"%d\\n\",a);\n\tif(b==9)\n\t{\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",2);\n\tprintf(\"%d\\n\",0);\n\n\t\n\t}\n\telse\tif(b==8)\n\t{\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",1);\n\n\t\n\t}\n\telse\t\tif(b==7)\n\t{\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",0);\n\n\t\n\t}\n\telse\t\t\tif(b==6)\n\t{\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",1);\n\n\t\n\t}\n\telse\t\t\t\tif(b==5)\n\t{\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",0);\n\n\t\n\t}\n\telse\tif(b==4)\n\t{\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",2);\n\tprintf(\"%d\\n\",0);\n\n\t\n\t}\n\telse\tif(b==3)\n\t{\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",1);\n\n\t\n\t}\n\telse if(b==2)\n\t{\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",1);\n\tprintf(\"%d\\n\",0);\n\n\t\n\t}\n\telse if(b==1)\n\t{\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",1);\n\n\t\n\t}\n\telse if(b==0)\n\t{\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",0);\n\tprintf(\"%d\\n\",0);\n\n\t\n\t}\n if(c>=5)\n\t{\n\t\tprintf(\"%d\\n\",1);\n\t\tc=c-5;\n\t\tprintf(\"%d\\n\",c);\n\n\t\n\t}\n\telse\t{\tprintf(\"%d\\n\",0);\t\tprintf(\"%d\\n\",c);}\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48326", "code": "int main()\n{\n\tint m,a[6]={0,0,0,0,0,0};\n\tcin>>m;\n\tint i;\n\twhile(m>=100)\n\t{\n\t\tm-=100;\n\t\ta[0]++;\n\t}\n\twhile(m<100&&m>=50)\n\t{\n\t\tm-=50;\n\t\ta[1]++;\n\t}\n\twhile(m<50&&m>=20)\n\t{\n\t\tm-=20;\n\t\ta[2]++;\n\t}\n\twhile(m<20&&m>=10)\n\t{\n\t\tm-=10;\n\t\ta[3]++;\n\t}\n\twhile(m<10&&m>=5)\n\t{\n\t\tm-=5;\n\t\ta[4]++;\n\t}\n\twhile(m<5&&m>0)\n\t{\n\t\tm-=1;\n\t\ta[5]++;\n\t}\n\tfor(i=0;i<6;i++)\n\t\tcout<\n\n\n\n\nint main()\n{\n\tdouble n;\n\tscanf(\"%lf\",&n);\n\n\tint a=0,b=0,c=0,d=0,e=0,f=0;\n\n\ta=(int)n/100;\n\tb=(int)(n-100*a)/50;\n\tc=(int)(n-100*a-50*b)/20;\n\td=(int)(n-100*a-50*b-20*c)/10;\n\te=(int)(n-100*a-50*b-20*c-10*d)/5;\n\tf=(int)(n-100*a-50*b-20*c-10*d-5*e);\n\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\n\n\n\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48330", "code": "int main() {\n int a,b,c,d,e,f,g;\n a<=1000;\n scanf(\"%d\",&a);\n b=a/100;\n c=(a%100)/50;\n d=((a%100)-c*50)/20;\n e=((a%100)-c*50-20*d)/10;\n f=(a%10)/5;\n g=((a%10)-f*5)/1;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,g);\nreturn 0;\n}"} +{"label": "97", "index": "48331", "code": "int main(){\n int i,a=0,n,sz[101],b=0,c=0,d=0,zong=0,e=0,f=0,g;\n double aa,bb,cc,dd;\n scanf (\"%d\",&n);\n a=n/100;\n g=n-a*100; \n b=g/50;\n g=g-b*50;\n c=g/20; \n g=g-c*20;\n d=g/10;\n g=g-d*10;\n e=g/5;\n g=g-e*5;\n f=g;\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n return 0;\n} "} +{"label": "97", "index": "48332", "code": "int main()\n{\n int n,s100,s50,s20,s10,s5,s1;\n scanf(\"%d\",&n);\n s100=n/100;\n int m=n-s100*100;\n if(m>=90){\n s50=1;\n s20=2;\n s10=0;\n if(m-90>=5){\n s5=1;\n s1=m-95;\n }\n else if(m-90<5){\n s5=0;\n s1=m-90;\n }\n }\n if(m<90&&m>=80){\n s50=1;\n s20=1;\n s10=1;\n if(m>=85){\n s5=1;\n s1=m-85;}\n else if(m<85){\n s5=0;\n s1=m-80;}\n }\n if(m<80&&m>=70){\n s50=1;\n s20=1;\n s10=0;\n if(m>=75){\n s5=1;\n s1=m-75;}\n if(m<75){\n s5=0;s1=m-70;}\n }\n if(m<70&&m>=60){\n s50=1;\n s20=0;\n s10=1;\n if(m>=65){\n s5=1;\n s1=m-65;}\n if(m<65){\n s5=0;\n s1=m-60;}\n }\n if(m<60&&m>=50){\n s50=1;\n s20=0;\n s10=0;\n if(m>=55){\n s5=1;\n s1=m-55;}\n if(m<55){\n s5=0;\n s1=m-50;}\n }\n if(m<50&&m>=40){\n s50=0;\n s20=2;\n s10=0;\n if(m>=45){\n s5=1;\n s1=m-45;}\n if(m<65){\n s5=0;\n s1=m-40;}\n }\n if(m<40&&m>=30){\n s50=0;\n s20=1;\n s10=1;\n if(m>=35){\n s5=1;\n s1=m-35;}\n if(m<35){\n s5=0;\n s1=m-30;}\n }\n if(m<30&&m>=20){\n s50=0;\n s20=1;\n s10=0;\n if(m>=25){\n s5=1;\n s1=m-25;}\n if(m<25){\n s5=0;\n s1=m-20;}\n }\n if(m<20&&m>=10){\n s50=0;\n s20=0;\n s10=1;\n if(m>=15){\n s5=1;\n s1=m-15;}\n if(m<15){\n s5=0;\n s1=m-10;}\n }\n if(m<10&&m>=0){\n s50=0;\n s20=0;\n s10=0;\n if(m>=5){\n s5=1;\n s1=m-5;}\n if(m<5){\n s5=0;\n s1=m;}\n }\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",s100,s50,s20,s10,s5,s1);\n return 0;\n}\n\n\n\n\n\n"} +{"label": "97", "index": "48333", "code": "\nint main()\n{\n int z,a=0,b=0,c=0,d=0,e=0,f=0;\n scanf(\"%d\",&z);\n a=z/100;\n if(z-100*a>0)\n {\n b=(z-100*a)/50;\n }\n if(z-100*a-50*b>0)\n {\n c=(z-100*a-50*b)/20;\n }\n if(z-100*a-50*b-20*c>0)\n {\n d=(z-100*a-50*b-20*c)/10;\n }\n if(z-100*a-50*b-20*c-10*d>0)\n {\n e=(z-100*a-50*b-20*c-10*d)/5;\n }\n if(z-100*a-50*b-20*c-10*d-5*e>0)\n {\n f=z-100*a-50*b-20*c-10*d-5*e;\n }\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n return 0;\n}\n \n"} +{"label": "97", "index": "48334", "code": "int main()\n{\nint n;\nscanf(\"%d\",&n);\nint m=n/100;\nint a=(n-m*100)/50;\nint b=(n-m*100-a*50)/20;\nint c=(n-m*100-a*50-b*20)/10;\nint d=(n-m*100-a*50-b*20-c*10)/5;\nint e=(n-m*100-a*50-b*20-c*10-d*5)/1;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",m,a,b,c,d,e);\nreturn 0;\n}\n"} +{"label": "97", "index": "48335", "code": "int main()\n{\n\tint a=0,b=0,c=0,d=0,e=0,f=0;\n\tint x;\n\tcin>>x;\n\ta=x/100;\n\tb=(x%100)/50;\n\tc=(x%50)/20;\n\td=(x-(a*100+b*50+c*20))/10;\n\te=(x%10)/5;\n\tf=(x%5)/1;\n\tcout<>p;\n\ta[0]=p/100;\n\ta[1]=(p-a[0]*100)/50;\n\ta[2]=(p-a[0]*100-a[1]*50)/20;\n\ta[3]=(p-a[0]*100-a[1]*50-a[2]*20)/10;\n\ta[4]=(p-a[0]*100-a[1]*50-a[2]*20-a[3]*10)/5;\n\ta[5]=p-a[0]*100-a[1]*50-a[2]*20-a[3]*10-a[4]*5;\n\tfor(int i=0;i<6;i++)\n\t{\n\t\tcout<>n;\n\t\ta[i]=n/100;\n\t\tn=n%100;\n\t\ti++;\n\t\ta[i]=n/50;\n\t\tn=n%50;\n\t\ti++;\n\t\ta[i]=n/20;\n\t\tn=n%20;\n\t\ti++;\n\t\ta[i]=n/10;\n\t\tn=n%10;\n\t\ti++;\n\t\ta[i]=n/5;\n\t\tn=n%5;\n\t\ti++;\n\t\ta[i]=n;\n\t\tfor ( i=0;i<=5;i++)\n\t\t{\n\t\t\tcout<=100){\n a++;\n n-=100;\n }\n while(n<100&&n>=50){\n b++;\n n-=50;\n }\n while(n<50&&n>=20){\n c++;\n n-=20;\n }\n while(n<20&&n>=10){\n d++;\n n-=10;\n }\n while(n<10&&n>=5){\n e++;\n n-=5;\n }\n while(n>0&&n<5){\n f=n;\n break;\n }\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\nreturn 0;\n}"} +{"label": "97", "index": "48342", "code": "int main(int argc, char* argv[])\n{ \n int m[6];\n int a,b,c,d,e,n,i;\n scanf(\"%d\",&n);\n \n\t m[0]=(n-n%100)/100;\n\t a=n-m[0]*100;\n\t m[1]=(a-a%50)/50;\n\t b=a-m[1]*50;\n\t m[2]=(b-b%20)/20;\n\t c=b-m[2]*20;\n\t m[3]=(c-c%10)/10;\n\t d=c-m[3]*10;\n\t m[4]=(d-d%5)/5;\n\t e=d-m[4]*5;\n\t m[5]=e;\n\t for(i=0;i<5;i++)\n\t printf(\"%d\\n\",m[i]);\n printf(\"%d\",m[5]);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48343", "code": "int main()\n{\n int money,left;\n int p100,p50,p20,p10,p5,p1;\n cin>>money;\n p100=money/100;\n p50=(money%100)/50;\n left=money-p100*100-p50*50;\n p20=left/20;\n p10=(left-p20*20)/10;\n p5=(money%10)/5;\n p1=money%10-p5*5;\n cout<=a[k];i++){\n n=n-a[k];\n b[k]+=1;\n }\n }\n for(i=0;i<6;i++){\n printf(\"%d\\n\",b[i]);\n }\n return 0;\n}\n"} +{"label": "97", "index": "48345", "code": "/*\n * ?????.cpp\n *\n * Created on: 2011-11-6\n * Author: ???\n */\n\nint main(){\n\tint total,counter=0;//total???????counter??????????\n\tcin>>total;\n\twhile(total>=100){//???????100????100?????????100????+1\n\t\ttotal=total-100;\n\t\tcounter++;\n\t}\n\tcout<=50){\n\t\ttotal=total-50;\n\t\tcounter++;\n\t}\n\tcout<=20){\n\t\t\ttotal=total-20;\n\t\t\tcounter++;\n\t\t}\n\t\tcout<=10){\n\t\t\t\ttotal=total-10;\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tcout<=5){\n\t\t\t\t\ttotal=total-5;\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\tcout<>n;\n a[1]=(n-n%100)/100;\n b[1]=n%100;\n a[2]=(b[1]-b[1]%50)/50;\n b[2]=b[1]%50;\n a[3]=(b[2]-b[2]%20)/20;\n b[3]=b[2]%20;\n a[4]=(b[3]-b[3]%10)/10;\n b[4]=b[3]%10;\n a[5]=(b[4]-b[4]%5)/5; \n b[5]=b[4]%5;\n a[6]=b[5];\n for(i=1; i<=6; i++)\n {\n cout<>c; \n return 0;\n \n \n \n \n }\n"} +{"label": "97", "index": "48347", "code": "\nint main()\n{\n\nint a,n100=0,n50=0,n20=0,n10=0,n5=0,n1=0;\n\nscanf(\"%d\", &a);\n\nwhile(a/100>0)\n{\n\tn100=n100+1;\n\ta=a-100;\n}\n\nwhile(a/50>0)\n{\n\tn50++;\n\ta=a-50;\n}\n\nwhile(a/20>0)\n{\n\tn20++;\n\ta=a-20;\n}\n\nwhile(a/10>0)\n{\n\tn10++;\n\ta=a-10;\n}\n\nwhile(a/5>0)\n{\n\tn5++;\n\ta=a-5;\n}\n\nn1=a;\n\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n100,n50,n20,n10,n5,n1);\n\nreturn 0;\n}"} +{"label": "97", "index": "48348", "code": "void main()\n{\n\tint m,a,b,c,d,e,f;\n\tint a1,b1,c1,d1,e1;\n\tscanf(\"%d\",&m);\n\ta=m/100;\n\tprintf(\"%d\\n\",a);\n\ta1=m-a*100;\n\tb=a1/50;\n\tprintf(\"%d\\n\",b);\n\tb1=a1-b*50;\n\tc=b1/20;\n\tprintf(\"%d\\n\",c);\n\tc1=b1-c*20;\n\td=c1/10;\n\tprintf(\"%d\\n\",d);\n\td1=c1-d*10;\n\te=d1/5;\n\tprintf(\"%d\\n\",e);\n\te1=d1-e*5;\n\tf=e1;\n\tprintf(\"%d\\n\",f);\n\n}"} +{"label": "97", "index": "48349", "code": " int main(){\n int n,x;\n scanf(\"%d\",&n);\n x=n/100;\n printf(\"%d\\n\",x);\n n=n-x*100;\n x=n/50;\n printf(\"%d\\n\",x);\n n=n-x*50;\n x=n/20;\n printf(\"%d\\n\",x);\n n=n-x*20;\n x=n/10;\n printf(\"%d\\n\",x);\nn=n-x*10;\n x=n/5;\n printf(\"%d\\n\",x);\nn=n-x*5;\n x=n;\n printf(\"%d\",x);\n return 0;\n}\n\n\n "} +{"label": "97", "index": "48350", "code": "int main()//?????\n{\n int a,n;//???a,n\n\tcin>>a;//?????a\n\tn=a/100;//???????\n\tcout<0){\n\t\tprintf(\"%d\\n\",bai);\n\t\tn=n-bai*100;\n\t}\n\telse printf(\"0\\n\");\n\t\n\tint wushi;\n\twushi=n/50;\n\tif(wushi>0){\n\t\tprintf(\"%d\\n\",wushi);\n\t\tn=n-wushi*50;\n\t}\n\telse printf(\"0\\n\");\n\t\n\tint ershi;\n ershi=n/20;\n\tif(ershi>0){\n\t\tprintf(\"%d\\n\",ershi);\n\t\tn=n-ershi*20;\n\t}\n\telse printf(\"0\\n\");\n\t\n\tint shi;\n\tshi=n/10;\n if(shi>0){\n\t\tprintf(\"%d\\n\",shi);\n\t\tn=n-shi*10;\n\t}\n\telse printf(\"0\\n\");\n \n\tint wu;\n\twu=n/5;\n if(wu>0){\n\t\tprintf(\"%d\\n\",wu);\n\t\tn=n-wu*5;\n\t}\n\telse printf(\"0\\n\");\n\n\tint yi;\n\tyi=n;\n if(yi>0){\n\t\tprintf(\"%d\\n\",yi);\n\t}\n\telse printf(\"0\\n\");\n\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48353", "code": "int main()\n{\n\tint a , b , c , cash;\n\tint t;\n\tcin >> cash;\n\tt = cash;\n\tc = cash % 10 ;\n\tt = t / 10 ;\n\tb = t % 10 ; t = t/10;\n\ta = t % 10;\n\tcout << a << endl;\n\tswitch( b )\n\t{\n\tcase 9:cout<<1<= 5 )\n\t{\n\t\tcout <<1<>n; //??n??\n\ta=n/100;\n\tb=(n-a*100)/50;\n\tc=(n-a*100-b*50)/20;\n\td=(n-a*100-b*50-c*20)/10;\n\te=(n-a*100-b*50-c*20-d*10)/5;\n\tf=n-a*100-b*50-c*20-d*10-e*5;\n\tcout<>n; //?????\n\tif(n>=100){ //???????100\n\t\ta=n/100; //a????????100??\n\t\tn=n-a*100; //???????\n\t\t}\n\tif(n>=50){ //????????50\n\t\tb=n/50; //b?????????50??\n\t\tn=n-b*50; //???????\n\t}\n\tif(n>=20){ //????????20\n\t\tc=n/20; //c?????????20??\n\t\tn=n-c*20; //???????\n\t}\n\tif(n>=10){ //????????10\n\t\td=n/10; //d?????????10??\n \t\tn=n-d*10; //???????\n\t} \n\tif(n>=5){ //????????5\n\t\te=n/5; //e?????????5??\n\t\tn=n-e*5; //???????\n\t}\n\tf=n; //f????????\n\tcout<>b;//????\n\ta[0]=floor(b/100);//?????100??????\n\tb=b-a[0]*100;//???????100?????\n\ta[1]=floor(b/50);//????50??????\n\tb=b-a[1]*50;//???????50?????\n\ta[2]=floor(b/20);//????20??????\n\tb=b-a[2]*20;//???????20?????\n\ta[3]=floor(b/10);//10??????\n\tb=b-a[3]*10;//???????10?????\n\ta[4]=floor(b/5);//????5??????\n\tb=b-a[4]*5;\n\ta[5]=b;//????1?\n\tfor(i=0;i<6;i++)//for????????????\n\t{\n\t\tcout<>a;//??a,??????????\n\tcout<=100))\n {b=a/100;\n c=(a-100*b)/10;\n if(c<5)\n { x1=0;\n if(c%2==0)\n { x2=c/2;\n x3=0;}\n if(c%2==1)\n { x2=(c-1)/2;\n x3=1;}}\n else\n if(c>=5)\n{ x1=1;\n if(c%2==1)\n {x2=(c-5)/2;\n x3=0;}\n if(c%2==0)\n { x2=(c-6)/2;\n x3=1;}}\n d=a%10;\n if(d<5)\n {x4=0;\n x5=d;}\n if(d>=5)\n {x4=1;\n x5=d-5;}}\n if((a>=10)&&(a<99))\n {b=0;\n if(a<50)\n {x1=0;\n if((a/10)%2==0)\n {x2=a/20;\n x3=0;}\n if((a/10)%2==1)\n { x2=(a/10)/2;\n x3=1;}\n d=a%10;\n if(d<5)\n {x4=0;\n x5=d;}\n if(d>=5)\n {x4=1;\n x5=d-5;}}\n if(a>=50)\n {x1=1;\n a=a-50;\n if((a/10)%2==0)\n {x2=a/20;\n x3=0;}\n if((a/10)%2==1)\n { x2=(a/10)/2;\n x3=1;}\n d=a%10;\n if(d<5)\n {x4=0;\n x5=d;}\n if(d>=5)\n {x4=1;\n x5=d-5;}}}\n if(a<10)\n {b=0;\n x1=0;\n x2=0;\n x3=0;\n if(a<5)\n {x4=0;\n x5=a;}\n if(a>=5)\n {x4=1;\n x5=a-5;}}\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,x1,x2,x3,x4,x5);\n return 0;\n \n \n \n \n \n}\n\n \n \n"} +{"label": "97", "index": "48362", "code": "int main()\n{\n\tint n,a,b,c,d,e,f ;\n cin>>n; \n if(n<100) cout<<0<>n;\n\ta=n/100;\n\tx=n%100;\n\tb=x/50;\n\tx%=50;\n\tc=x/20;\n\tx%=20;\n\td=x/10;\n\tx%=10;\n\te=x/5;\n\tf=x%5;\n\tcout<>n;//??\n i=n%100;//??100????\n a=(n-i)/100;\n n=i;\n i=n%50;//??50????\n b=(n-i)/50;\n n=i;\n i=n%20;//??20????\n c=(n-i)/20;\n n=i;\n i=n%10;//??10????\n d=(n-i)/10;\n n=i;\n i=n%5;//??5????\n e=(n-i)/5;\n f=i;//1????\n cout<=0;i++){\n\t\t n=n-100;\n\t }\n\t \n\t for(a=0;n-50>=0;a++){\n\t\t n=n-50;\n\t }\n \n\t for(b=0;n-20>=0;b++){\n\t\t n=n-20;\n\t }\n\t for(c=0;n-10>=0;c++){\n\t\t n=n-10;\n\t }\n\t for(d=0;n-5>=0;d++){\n\t\t n=n-5;\n\t }\n\t for(e=0;n-1>=00;e++){\n\t\t n=n-1;\n\t }\n\t printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",i,a,b,c,d,e);\n\t return 0;\n}\n"} +{"label": "97", "index": "48368", "code": "int main()\n{\n\tint n,a,b,c,d,e,f,m;\n\tscanf(\"%d\",&n);\n\tint i;\n\ti=n/100;\n\tprintf(\"%d\\n\",i);\n\ta=n-i*100;\n\tm=a/50;\n\t\n\t\tprintf(\"%d\\n\",m);\n\t\tb=(a-50*m)/20;\n\t\tprintf(\"%d\\n\",b);\n\t\tc=(a-50*m-b*20)/10;\n\t\tprintf(\"%d\\n\",c);\n\t\td=a-a/10*10;\n\t\te=d/5;\n\t\tprintf(\"%d\\n\",e);\n\t\tf=d-5*e;\n\t\tprintf(\"%d\\n\",f);\n\t\n\n\n\treturn 0;\n\n\n}"} +{"label": "97", "index": "48369", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,a,b,c,d,e,f,p,q,s,t,u;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tp=n-a*100;\n\tb=p/50;\n\tq=p-b*50;\n\tc=q/20;\n\ts=q-c*20;\n\td=s/10;\n\tt=s-d*10;\n\te=t/5;\n\tu=t-e*5;\n\tf=u;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48370", "code": "int main()\n{int n,a,b,c,d,e,f;\ncin>>n;\na=n/100;\ncout<>sum;\n\ta1 = sum / 100;\n\tsum = sum - a1 * 100;\n\ta2 = sum / 50;\n\tsum = sum - a2 * 50;\n\ta3 = sum / 20;\n\tsum = sum - a3 * 20;\n\ta4 = sum / 10;\n\tsum = sum - a4 * 10;\n\ta5 = sum / 5;\n\tsum = sum - a5 * 5;\n\ta6 = sum / 1;\n\tcout<=100;)\n{\n m=m-100;\n a100++;\n}\nfor(;m>=50;)\n{\n m=m-50;\n a50++;\n}\nfor(;m>=20;)\n{\n m=m-20;\n a20++;\n}\nfor(;m>=10;)\n{\n m=m-10;\n a10++;\n}\nfor(;m>=5;)\n{\n m=m-5;\n a5++;\n}\nfor(;m>=1;)\n{\n m=m-1;\n a1++;\n}\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a100,a50,a20,a10,a5,a1);\n\n\n\n}"} +{"label": "97", "index": "48373", "code": "\nint main()\n{\n\tint n, x, a, b, c, d, e, f;\n\tscanf(\"%d\", &n);\n\tx=n;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tf=0;\n\twhile(x>99)\n\t{\n\t\tx=x-100;\n\t\ta=a+1;\n\t}\n\twhile(x>49)\n\t{\n\t\tx=x-50;\n\t\tb=b+1;\n\t}\n\twhile(x>19)\n\t{\n\t\tx=x-20;\n\t\tc=c+1;\n\t}\n\twhile(x>9)\n\t{\n\t\tx=x-10;\n\t\td=d+1;\n\t}\n\twhile(x>4)\n\t{\n\t\tx=x-5;\n\t\te=e+1;\n\t}\n\tf=x;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\", a, b, c, d, e, f);\n\treturn 0;\n}"} +{"label": "97", "index": "48374", "code": "int main()\n{\n\tint a[101] = {0};\n\tint n;\n\tcin >> n;\n\twhile (n>0) {\n\t\tif (n>=100) {n-=100;a[100]++;}\n\t\telse if (n>=50) {n-=50;a[50]++;}\n\t\telse if (n>=20) {n-=20;a[20]++;}\n\t\telse if (n>=10) {n-=10;a[10]++;}\n\t\telse if (n>=5) {n-=5;a[5]++;}\n\t\telse if (n>=1) {n-=1;a[1]++;}\n\t}\n\tcout << a[100] << endl;\n\tcout << a[50] << endl;\n\tcout << a[20] << endl;\n\tcout << a[10] << endl;\n\tcout << a[5] << endl;\n\tcout << a[1] << endl;\n\treturn 0;\n}\n\n\n"} +{"label": "97", "index": "48375", "code": "int main()\n{\n\tint money;scanf(\"%d\", &money);\n\tint m1=0, m2=0, m3=0, m4=0, m5=0, m6=0;\n\tm1=money/100;\n\tif(money%100 != 0){\n\t\tm2=(money%100)/50;\n\t}\n\tif(money%100%50 != 0){\n\tm3=money%100%50/20;\n\t}\n\tif(money%100%50%20 != 0){\n\t\tm4=money%100%50%20/10;\n\t}\n\tif(money%100%50%20%10 != 0){\n\t\tm5=money%100%50%20%10/5;\n\t}\n\tif(money%100%50%20%10%5 != 0){\n\t\tm6=money%100%50%20%10%5;\n\t}\n\tprintf(\"%d\\n\", m1);\n\tprintf(\"%d\\n\", m2);\n\tprintf(\"%d\\n\", m3);\n\tprintf(\"%d\\n\", m4);\n\tprintf(\"%d\\n\", m5);\n\tprintf(\"%d\\n\", m6);\n\treturn 0;\n}"} +{"label": "97", "index": "48376", "code": "/****************?????********************\n??? \n*********************************************/\nint pay(int n,int money)\n{\n int num;\n num=n/money;\n cout<>n;//??????\n n=pay(n,100);\n n=pay(n,50);\n n=pay(n,20);\n n=pay(n,10);\n n=pay(n,5);\n n=pay(n,1);\n return 0;\n}\n \n"} +{"label": "97", "index": "48377", "code": "int main(){\nint n,a,b,c,d,e,f;\nscanf(\"%d\",&n);\na=n/100;\nif((n%100)/10==9){\n\tb=1;\n\tc=2;\n\td=0;\n}else if((n%100)/10==8){\n\tb=1;\n\tc=1;\n\td=1;\n}else if((n%100)/10==7){\n\tb=1;\n\tc=1;\n\td=0;\n}else if((n%100)/10==6){\n\tb=1;\n\tc=0;\n\td=1;\n}else if((n%100)/10==5){\n\tb=1;\n\tc=0;\n\td=0;\n}else if((n%100)/10==4){\n\tb=0;\n\tc=2;\n\td=0;\n}else if((n%100)/10==3){\n\tb=0;\n\tc=1;\n\td=1;\n}else if((n%100)/10==2){\n\tb=0;\n\tc=1;\n\td=0;\n}else if((n%100)/10==1){\n\tb=0;\n\tc=0;\n\td=1;\n}else if((n%100)/10==0){\n\tb=0;\n\tc=0;\n\td=0;\n}if((n%10)==9){\n\te=1;\n\tf=4;\n}else if((n%10)==8){\n\te=1;\n\tf=3;\n}else if((n%10)==7){\n\te=1;\n\tf=2;\n}else if((n%10)==6){\n\te=1;\n\tf=1;\n}else if((n%10)==5){\n\te=1;\n\tf=0;\n}else if((n%10)==4){\n\te=0;\n\tf=4;\n}else if((n%10)==3){\n\te=0;\n\tf=3;\n}else if((n%10)==2){\n\te=0;\n\tf=2;\n}else if((n%10)==1){\n\te=0;\n\tf=1;\n}else if((n%10)==0){\n\te=0;\n\tf=0;\n}\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\nreturn 0;\n}"} +{"label": "97", "index": "48378", "code": "\nint main(int argc, char* argv[])\n{\n int k;\n\tscanf(\"%d\",&k);\n\tint a=0,b=0,c=0,d=0,e=0,f=0;\n\tif((k/100)!=0)\n\t{\n a=k/100;\n k=k-a*100;\t\n\t}\n\tif((k/50)!=0)\n\t{\n\t\tb=k/50;\n\t\tk=k-b*50;\n\t}\n\tif((k/20)!=0)\n\t{\n\t\tc=k/20;\n\t\tk=k-c*20;\n\t}\n\tif((k/10)!=0)\n\t{\n\t\td=k/10;\n\t\tk=k-d*10;\n\t}\n\tif((k/5)!=0)\n\t{\n\t\te=k/5;\n\t\tk=k-e*5;\n\t}\n\tif(k!=0)\n\t{\n\t\tf=k;\n\t}\n\tprintf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\t\t\n printf(\"%d\\n\",d);\t\t\n printf(\"%d\\n\",e);\t\t\n printf(\"%d\\n\",f);\nreturn 0;\n}\n\n"} +{"label": "97", "index": "48379", "code": "int main()\n{\n int rest,m100,m50,m20,m10,m5,m1;//rest???????m100,m50,m20,m10,m5,m1??? \n cin>>rest;\n m100=m50=m20=m10=m5=m1=0;//??? \n while(rest>=100)//100??? \n {\n rest=rest-100;\n m100++;\n }\n while(rest>=50)//50??? \n {\n rest=rest-50;\n m50++;\n }\n while(rest>=20)//20??? \n {\n rest=rest-20;\n m20++;\n }\n while(rest>=10)//10??? \n {\n rest=rest-10;\n m10++;\n }\n while(rest>=5)//5??? \n {\n rest=rest-5;\n m5++;\n }\n while(rest>=1)//1??? \n {\n rest=rest-1;\n m1++;\n }\n cout<>a;//????\n b=(int)(a/100);//100?\n c=(int)((a-100*b)/50);//50\n d=(int)((a-100*b-50*c)/20);//20\n e=(int)((a-100*b-50*c-20*d)/10);//10\n f=(int)((a-100*b-50*c-20*d-10*e)/5);//5\n g=(int)((a-100*b-50*c-20*d-10*e-5*f)/1);//1\n cout<> n;\n\thundred=n/100;\n\tfifty=n%100/50;\n\ttwenty=n%50/20;\n\tten=n%50%20/10;\n\tfive=n%10/5;\n\tone=n%5;\n\tcout << hundred << endl << fifty << endl << twenty << endl << ten << endl << five << endl << one;\n\treturn 0;\n}\n"} +{"label": "97", "index": "48382", "code": "int main()\n{\n int n;\n cin>>n;\n int p[6];\n p[0]=(n/100);\n p[1]=(n%100)/50;\n p[2]=(n%50)/20;\n p[3]=((n%50)-p[2]*20)/10;\n p[4]=(n%10)/5;\n p[5]=(n%5);\n for(int i=0;i<6;i++)\n {\n cout<0)\n\t{\n\t\tsum-=100;\n\t\ta++;\n\t}\n\tif(sum!=0){\n\tsum+=100;\n\ta-=1;\n\t}\n while(sum>0)\n\t{\n\t\tsum-=50;\n\t\tb++;\n\t}\n\tif(sum!=0){\n\tsum+=50;\n\tb-=1;\n\t}\n\twhile(sum>0)\n\t{\n\t\tsum-=20;\n\t\tc++;\n\t}\n\t\tif(sum!=0){\n\tsum+=20;\n\tc-=1;\t\n\t}\n\twhile(sum>0)\n\t{\n\t\tsum-=10;\n\t\td++;\n\t}\n\tif(sum!=0){\n\tsum+=10;\n\td-=1;\n\t}\n\twhile(sum>0)\n\t{\n\t\tsum-=5;\n\t\te++;\n\t}\n\tif(sum!=0){\n\tsum+=5;\n\te-=1;\n\t}\n\twhile(sum>0)\n\t{\n\t\tsum-=1;\n\t\tf++;\n\t}\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48385", "code": "int main(){\nint m;\nscanf(\"%d\",&m);\nint sz[6]={100,50,20,10,5,1};\nfor(int i=0;i<=5;i++){\n if(m>=sz[i]){\n printf(\"%d\\n\",m/sz[i]);\n m-=(m/sz[i])*sz[i];}\n else \n {printf(\"%d\\n\",0);}\n}\nreturn 0;\n}\n\n\n"} +{"label": "97", "index": "48386", "code": "void main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\t\ta=n/100;b=(n-a*100)/50;\n\t\tc=(n-a*100-b*50)/20;\n\t\td=(n-a*100-b*50-20*c)/10;\n\t\te=(n-a*100-b*50-20*c-d*10)/5;\n\t\tf=(n-a*100-b*50-20*c-d*10-5*e)/1;\n\tif(n=a+b+c+d+e+f)\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n}"} +{"label": "97", "index": "48387", "code": "int main()\n{\n\tint N, K, Ans;\n\tcin >> N;\n\tprintf(\"%d\\n\",N / 100);\n\tN = N - (N / 100) * 100;\n\tprintf(\"%d\\n\",N / 50);\n\tN = N - (N / 50) * 50;\n\tprintf(\"%d\\n\",N / 20);\n\tN = N - (N / 20) * 20;\n\tprintf(\"%d\\n\",N / 10);\n\tN = N - (N / 10) * 10;\n\tprintf(\"%d\\n\",N / 5);\n\tN = N - (N / 5) * 5;\n\tprintf(\"%d\\n\",N / 1);\n\tN = N - N / 1;\n\treturn 0;\n}\n"} +{"label": "97", "index": "48388", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a,b,c,d,e,f,g;\n\ta=n/100;\n\tif(n-(100*a)>50)\n\t\tb=1;\n\telse\n\t\tb=0;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-20*c)/10;\n\te=(n-100*a-50*b-20*c-10*d)/5;\n\tf=n-100*a-50*b-20*c-10*d-5*e;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48389", "code": "int main()\n{\n\tint n,num1=0,n1,num2=0,n2,num3=0,n3,num4=0,n4,num5=0,n5,num6=0;\n\tcin>>n;\n\tnum1=(n-n%100)/100;\n\tn1=n%100;\n\tcout<>money;\n\ta=money/100;\n\tcout<>money;\n int num[6]={0};\n\n while(money>=100)\n {\n money=money-100;\n num[0]=num[0]+1;\n }\n while(money>=50)\n {\n money=money-50;\n num[1]=num[1]+1;\n }\n while(money>=20)\n {\n money=money-20;\n num[2]=num[2]+1;\n }\n while(money>=10)\n {\n money=money-10;\n num[3]=num[3]+1;\n }\n while(money>=5)\n {\n money=money-5;\n num[4]=num[4]+1;\n }\n while(money>=1)\n {\n\n money=money-1;\n num[5]=num[5]+1;\n }\n int i;\n for(i=0;i<6;i++)\n {\n cout<>sum;\n\tp=sum/100;\n\tcout<p&&n=50)\n\t\t{\n\t\t\ti=1;\n\t\t\tprintf(\"1\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ti=0;\n\t\t\tprintf(\"0\\n\");\n\t\t}\n\tn=n-i*50;\n\tfor(i=0;i<3;i++)\n\t{\n\t\tp=i*20;\n\t\tq=(i+1)*20;\n\t\tif(p<=n&&q>n)\n\t\t{\n\t\t\tprintf(\"%d\\n\",i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tn=n-i*20;\n\tif(n>=10)\n\t{\n\t\ti=1;\n\t\tprintf(\"1\\n\");\n\t}\n\telse\n\t{\n\t\ti=0;\n\t\tprintf(\"0\\n\");\n\t}\n\tn=n-i*10;\n\tif(n>=5)\n\t{\n\t\ti=1;\n\t\tprintf(\"1\\n\");\n\t}\n\telse\n\t{\n\t\ti=0;\n\t\tprintf(\"0\\n\");\n\t}\n\tn=n-i*5;\n\tprintf(\"%d\",n);\n\treturn 0;\n\t}"} +{"label": "97", "index": "48396", "code": "int main()\n{\n\tint x;\n\tint a,b,c,d,e,f;\n\tscanf(\"%d%d%d%d%d%d%d\",&x,&a,&b,&c,&d,&e,&f);\n\ta=x/100;\n\tb=x%100/50;\n\tc=x%50/20;\n\td=(x%50)%20/10;\n\te=x%10/5;\n\tf=x%5;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48397", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a=0;\n\ta=n%100;\n\ta=(n-a)/100;\n\tprintf(\"%d\\n\",a);\n\tn=n-a*100;\n\ta=n%50;\n\ta=(n-a)/50;\n\tprintf(\"%d\\n\",a);\n\tn=n-a*50;\n\ta=n%20;\n\ta=(n-a)/20;\n\tprintf(\"%d\\n\",a);\n\tn=n-a*20;\n\ta=n%10;\n\ta=(n-a)/10;\n\tprintf(\"%d\\n\",a);\n\tn=n-a*10;\n\ta=n%5;\n\ta=(n-a)/5;\n\tprintf(\"%d\\n\",a);\n\tn=n-a*5;\n\ta=n%1;\n\ta=(n-a)/1;\n\tprintf(\"%d\",a);\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48398", "code": "int main()\n{\n\tint n,i,j=1,a[6];\n\t\n\tscanf(\"%d\",&n);\n\twhile (j!=0)\n\t{\n\t\ta[0]=n/100;\n\t\tj=n%100;\n\t\ta[1]=j/50;\n\t\tj=j%50;\n\t\ta[2]=j/20;\n\t\tj=j%20;\n\t\ta[3]=j/10;\n\t\tj=j%10;\n\t\ta[4]=j/5;\n\t\tj=j%5;\n\t\ta[5]=j/1;\n\t\tj=0;\n\t}\n\tprintf (\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a[0],a[1],a[2],a[3],a[4],a[5]);\n\n\n\n\t\n\t\n\t\n\n\n\n\treturn 0;\n\n}"} +{"label": "97", "index": "48399", "code": "int main()\n{\n\tint a=0,b=0,c=0,d=0,e=0,f=0,n=0;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tb=(n-100*a)/50;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-20*c)/10;\n\te=(n-100*a-50*b-20*c-10*d)/5;\n f=n-100*a-50*b-20*c-10*d-5*e;\n\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48400", "code": "int main()\n{\n\tint a,a1,a2,a3,a4,a5,a6,ss[20];\n\tint count100=0,count50=0,count20=0,count10=0,count5=0,count1=0;\n\tscanf(\"%d\",&a);\n\ta1=a2=a3=a4=a5=a6=a;\n\twhile(a>=100) {\n\t\ta=a-100;\n\t\tcount100++;\n\t}\n\twhile(a>=50) {\n\t\ta=a-50;\n\t\tcount50++;\n\t}\n\twhile(a>=20) {\n\t\ta=a-20;\n\t\tcount20++;\n\t}\n\twhile(a>=10) {\n\t\ta=a-10;\n\t\tcount10++;\n\t}\n\twhile(a>=5) {\n\t\ta=a-5;\n\t\tcount5++;\n\t}while(a>=1) {\n\t\ta=a-1;\n\t\tcount1++;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",count100,count50,count20,count10,count5,count1);\n\treturn 0;\n}"} +{"label": "97", "index": "48401", "code": "int main() {\nint a,b,c,d,e,f;\nint x,i,j;\nscanf(\"%d\",&x);\na=x/100;\ni=x%100;\nif (i>=50) {\n b=1;\n i=i-50;\n} else {\n b=0;\n}\nj=i/10;\nif (j==0) {\n c=0;\n d=0;\n}\nif (j==1) {\n c=0;\n d=1;\n} \nif (j==2) {\n c=1;\n d=0;\n}\nif (j==3) {\n c=1;\n d=1;\n}\nif (j==4) {\n c=2;\n d=0;\n}\nj=i%10;\nif (j>=5) {\n e=1;\n f=j-5;\n} else {\n e=0;\n f=j;\n}\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\nreturn 0;\n}\n"} +{"label": "97", "index": "48402", "code": "\nint main()\n{\n\tint i, a[6]={0}, m;\n\tscanf(\"%d\", &m);\n\twhile(m/100>0)\n\t{\n\t\ta[0]++;\n\t\tm -= 100;\n\t}\n\twhile(m/50>0)\n\t{\n\t\ta[1]++;\n\t\tm -= 50;\n\t}\n\twhile(m/20>0)\n\t{\n\t\ta[2]++;\n\t\tm -= 20;\n\t}\n\twhile(m/10>0)\n\t{\n\t\ta[3]++;\n\t\tm -= 10;\n\t}\n\twhile(m/5>0)\n\t{\n\t\ta[4]++;\n\t\tm -= 5;\n\t}\n\ta[5] = m;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\", a[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48403", "code": "int main()\n{\nint n,a,b,c,d,e;\nscanf(\"%d\",&n);\na=n%100;\nb=a%50;\nc=b%20;\nd=c%10;\ne=d%5;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n/100,a/50,b/20,c/10,d/5,e);\n\nreturn 0;\n }\n"} +{"label": "97", "index": "48404", "code": "int main()\n{\nint m,n100,n50,n20,n10,n5,n1;\nscanf(\"%d\",&m);\nfor(n100=0;m-100*n100>=0;n100++);\nn100=n100-1;\nm=m-100*n100;\nfor(n50=0;m-50*n50>=0;n50++);\nn50=n50-1;\nm=m-50*n50;\nfor(n20=0;m-20*n20>=0;n20++); \nn20=n20-1;\nm=m-20*n20;\nfor(n10=0;m-10*n10>=0;n10++);\nn10=n10-1;\nm=m-10*n10;\nfor(n5=0;m-5*n5>=0;n5++); \nn5=n5-1;\nm=m-5*n5;\nfor(n1=0;m-1*n1>=0;n1++);\nn1=n1-1;\nm=m-1*n1;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n100,n50,n20,n10,n5,n1);\n}"} +{"label": "97", "index": "48405", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a=n/100;\n\tint b=(n%100)/50;\n\tint c=(n%50)/20;\n\tint d=(n%50-20*c)/10;\n\tint e=(n%10)/5;\n\tint f=n%5;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",d);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\treturn 0;\n}"} +{"label": "97", "index": "48406", "code": "int main()\n{\n\tint bill, count = 0;\n\tcin >> bill;\n\twhile (bill > 0)\n\t{\n\t\tcout << bill / 100 << endl;\n\t\tbill -= bill / 100 * 100;\n\t\tcout << bill / 50 << endl;\n\t\tbill -= bill / 50 * 50;\n\t\tcout << bill / 20 << endl;\n\t\tbill -= bill / 20 * 20;\n\t\tcout << bill / 10 << endl;\n\t\tbill -= bill / 10 * 10;\n\t\tcout << bill / 5 << endl;\n\t\tbill -= bill / 5 * 5 ;\n\t\tcout << bill << endl;\n\t\tbill -= bill;\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48407", "code": "int main()\n{int n,i;\nscanf(\"%d\",&n);\nfor(i=0;n>=100;i++)\n{n=n-100;}\n printf(\"%d\\n\",i);\nfor(i=0;n>=50;i++)\n{n=n-50;}\n printf(\"%d\\n\",i);\nfor(i=0;n>=20;i++)\n{n=n-20;}\n printf(\"%d\\n\",i);\nfor(i=0;n>=10;i++)\n{n=n-10;}\n printf(\"%d\\n\",i);\nfor(i=0;n>=5;i++)\n{n=n-5;}\n printf(\"%d\\n\",i);\n printf(\"%d\\n\",n);\n\nreturn 0;\n}"} +{"label": "97", "index": "48408", "code": "int main()\n{\nint n,a,b,c,d,e;\nscanf(\"%d\",&n);\na=b=c=d=e=0;\nwhile(n>=100)\n{\nn-=100;\na++;\n}\nwhile(n>=50)\n{\nn-=50;\nb++;\n}\nwhile(n>=20)\n{\nn-=20;\nc++;\n}\nwhile(n>=10)\n{\nn-=10;\nd++;\n}\nwhile(n>=5)\n{\nn-=5;\ne++;\n}\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,n);\nreturn 0;\n}"} +{"label": "97", "index": "48409", "code": "int main()\n{\n\tint n,b[6]={100,50,20,10,5,1},c[6],i,sum=0;\n\tscanf(\"%d\",&n);\n\tc[0]=n-n%100;\n c[1]=n-c[0]-(n-c[0])%b[1];\n\tfor(i=2;i<6;i++)\n\t{\n\t\tsum=sum+c[i-1];\n\t\tc[i]=n-sum-c[0]-(n-sum-c[0])%b[i];\n\t}\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",c[i]/b[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48410", "code": "int main()\n{\n\tint n,i,a=0;\n scanf(\"%d\",&n);\n\tif(n>=100){\n\t\tprintf(\"%d\\n\",(n/100));\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\n\ta=n%100;\n\tif(a>=50){\n\t\tprintf(\"%d\\n\",a/50);\n\t\ta=a%50;\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n if(a>=20){\n\t\tprintf(\"%d\\n\",a/20);\n\t\ta=a%20;\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(a>=10){\n\t\tprintf(\"%d\\n\",a/10);\n\t\ta=a%10;\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(a>=5){\n\t\tprintf(\"%d\\n\",a/5);\n\t\ta=a%5;\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(a<=4){\n\t\tprintf(\"%d\\n\",a);\n\t\t\n\t}\n\telse{\n\t\tprintf(\"0\");\n\t}\n\n \n\t\t\n\n\n\treturn 0; \n}"} +{"label": "97", "index": "48411", "code": "int main()\n{\n int n;//?????n \n cin>>n;//??n \n int a1,b1,c1,d1,e1;//?????? \n int a2,b2,c2,d2,e2,f2;//?????? \n a1=n%100;\n a2=(n-a1)/100;//????100??????? \n cout<>sum;\n \n if(sum>=100)\n\t {\n\t\t cout<=50)\n\t {\n\t cout<=20)\n\t {\n\t cout<=10)\n\t {\n\t cout<=5)\n\t {\n\t cout<100)\n\t{\n\t\ta=x/100;\n\t}\n\tif(x>10)\n\t{\n\t\tn=(x/10)%10;\n\t\tif(n-5>=0)\n\t\t{\n\t\t\tb=1;\n\t\t\tif((n-5)%2==0)\n\t\t\t{\n\t\t\t\tc=(n-5)/2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\td=1;\n\t\t\t\tc=(n-5-d)/2;\n\t\t\t}\n\t\t}\n\t\telse if(n%2==0)\n\t\t{\n\t\t\tc=n/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td=1;\n\t\t\tc=(n-d)/2;\n\t\t}\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\n\treturn 0;\n}"} +{"label": "97", "index": "48416", "code": "int main(int argc, char* argv[])\n{\n\tint n,bai=0,wushi=0,ershi=0,shi=0,wu=0,yi=0;\n\tscanf(\"%d\",&n);\n\tbai=n/100;\n\tn=n%100;\n\twushi=n/50;\n\tn=n%50;\n\twhile (n>=20)\n\t{\n\t\tershi+=1;\n\t\tn=n-20;\n\t}\n\tif (n>=10){\n\tshi=n/10;\n\tn=n-10;}\n\tif (n>=5)\n\t{\n\t\twu=1;\n\t\tn=n-5;\n\t}\n\tyi=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",bai,wushi,ershi,shi,wu,yi);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48417", "code": "int main(){\n\tint x;\n\tscanf(\"%d\",&x);\n\tint a[7]={0,100,50,20,10,5,1};\n\tint b[7]={0};\n\tint i;\n\tfor(i=1;i<7;i++){\n\t\tx=x-a[i-1]*b[i-1];\n\t\tb[i]=x/a[i];\n\t}\n\tfor(i=1;i<7;i++)\n\t\tprintf(\"%d\\n\",b[i]);\n\treturn 0;\n}"} +{"label": "97", "index": "48418", "code": "void main()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\tfor(a=0;n>=100;a++)\n\t\tn=n-100;\n\tfor(b=0;n>=50;b++)\n\t\tn=n-50;\n for(c=0;n>=20;c++)\n\t\tn=n-20;\n\tfor(d=0;n>=10;d++)\n\t\tn=n-10;\n\tfor(e=0;n>=5;e++)\n\t\tn=n-5;\n\tf=n;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n}"} +{"label": "97", "index": "48419", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint s1=n/100;\n\tn=n%100;\n\tint\ts2=n/50;\n\tn=n%50;\n\tint\ts3=n/20;\n\tn=n%20;\n\tint\ts4=n/10;\n\tn=n%10;\n\tint\ts5=n/5;\n\tn=n%5;\n\tint\ts6=n;\n\tprintf(\"%d\\n\",s1);\n\tprintf(\"%d\\n\",s2);\n\tprintf(\"%d\\n\",s3);\n\tprintf(\"%d\\n\",s4);\n\tprintf(\"%d\\n\",s5);\n\tprintf(\"%d\",s6);\n\n\treturn 0;\n}"} +{"label": "97", "index": "48420", "code": "int main(int argc, char* argv[])\n{\n\tint n,a,b,c,d,e,f,n1,n2,n3,n4,n5;\n\tscanf(\"%d\",&n);\n\ta = (n-n%100)/100;\n\tn1=n-a*100;\n\tb = (n1-n1%50)/50;\n\tn2=n1-b*50;\n\tc = (n2-n2%20)/20;\n\tn3=n2-c*20;\n\td = (n3-n3%10)/10;\n\tn4=n3-d*10;\n\te = (n4-n4%5)/5;\n\tn5=n4-e*5;\n\tf = n5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\n\n\n\treturn 0;\n}\n"} +{"label": "97", "index": "48421", "code": "main()\n{\nint i,n,m,j,k;\nint A[100];\nint P1=0,P2=0,P3=0,P4=0,P5=0,P6=0;\n\nscanf(\"%d\",&n);\n\nP1=n/100;n=n-(P1*100);\nP2=n/50;n=n-(P2*50);\nP3=n/20;n=n-(P3*20);\nP4=n/10;n=n-10*P4;\nP5=n/5;n=n-5*P5;\nP6=n;\n\n\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",P1,P2,P3,P4,P5,P6);\n\n\n\n\n\n\n\n\n\n\n/*for(i=0;i=19)&&(A[i]<=35)) P2++;\n\tif((A[i]>=36)&&(A[i]<=60)) P3++;\n\tif(A[i]>=61) P4++;\n}\n\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",\n(double)100*P1/n,(double)100*P2/n,(double)100*P3/n,(double)100*P4/n);\n*/\nreturn 0;\n}"} +{"label": "97", "index": "48422", "code": "\nint main(int argc, char* argv[])\n{\n int m;\n\tscanf(\"%d\",&m);\n int a,b,c,d,e,f,g,h,i,j;\n\ta=m/100;\n\tprintf(\"%d\\n\",a);\n\tb=m-a*100;\n\tif(b<50)\n {c=0;\n\tprintf(\"%d\\n\",c);\n d=b/20;\n printf(\"%d\\n\",d);\n e=b-d*20;\n\tf=e/10;\n\tprintf(\"%d\\n\",f);\n\tg=e-f*10;\n\th=g/5;\n\tprintf(\"%d\\n\",h);\n\ti=g-h*5;\n\tj=i/1;\n\tprintf(\"%d\\n\",j);\n }\n\telse\n\t{\n c=1;\n\tprintf(\"%d\\n\",c);\n d=(b-50)/20;\n printf(\"%d\\n\",d);\n e=b-50-d*20;\n\tf=e/10;\n\tprintf(\"%d\\n\",f);\n\tg=e-f*10;\n\th=g/5;\n\tprintf(\"%d\\n\",h);\n\ti=g-h*5;\n\tj=i/1;\n\tprintf(\"%d\\n\",j);\n }\n //printf(\"Hello World!\\n\");\n\treturn 0;\n}\n\n"} +{"label": "97", "index": "48423", "code": "int main(int argc, char* argv[])\n{\n int n,a=0,b=0,c=0,d=0,e=0,f=0;\n scanf(\"%d\",&n);\n a=n/100;\n b=(n-a*100)/50;\n c=(n-a*100-b*50)/20;\n d=(n-a*100-b*50-c*20)/10;\n e=(n-a*100-b*50-c*20-d*10)/5;\n f=n-a*100-b*50-c*20-d*10-e*5;\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n\n\treturn 0;\n}"} +{"label": "97", "index": "48424", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=(int)n/100;\n b=(int)(n-a*100)/50;\n\t c=(int)(n-a*100-b*50)/20;\n\t d=(int)(n-a*100-b*50-c*20)/10;\n\t e=(int)(n-a*100-b*50-c*20-d*10)/5;\n\t f=n-a*100-b*50-c*20-d*10-e*5;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\nprintf(\"%d\\n\",c);\nprintf(\"%d\\n\",d);\nprintf(\"%d\\n\",e);\nprintf(\"%d\\n\",f);\n\treturn 0;\n}"} +{"label": "97", "index": "48425", "code": "int main(){\n\tint n;\n\tint a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n\tb=(n-a*100)/50;\n\tc=(n-a*100-b*50)/20;\n\td=(n-a*100-b*50-c*20)/10;\n\te=(n-a*100-b*50-c*20-d*10)/5;\n\tf=n-a*100-b*50-c*20-d*10-e*5;\n\n\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\tif(f==0){\n\t\tprintf(\"0\");\n\t}else{\n\t\tprintf(\"%d\",f);\n\t}\n\treturn 0;\n}\n\t\n"} +{"label": "97", "index": "48426", "code": "void main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tprintf(\"%d\\n\",n/100);\n\tn-=100*(n/100);\n\tprintf(\"%d\\n\",n/50);\n\tn-=50*(n/50);\n printf(\"%d\\n\",n/20);\n\tn-=20*(n/20);\n printf(\"%d\\n\",n/10);\n\tn-=10*(n/10);\n printf(\"%d\\n\",n/5);\n\tn-=5*(n/5);\n printf(\"%d\\n\",n);\n}"} +{"label": "97", "index": "48427", "code": "int main()\n{\n\tint n,i,j;\n\tint a[6]={100,50,20,10,5,1},s[6]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<60;i++)\n\t{\n\t\tfor(j=0;j<10;j++)\n\t\t{\n\t\t\tif(n-a[i]>=0)\n\t\t\t{\n\t\t\t\tn=n-a[i];\n\t\t\t\ts[i]+=1;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",s[i]);\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48428", "code": "int main()\n{\n int n,a,b;\n\tint s[7]={0};\n\tscanf(\"%d\", &n);\n\tb=n/100;\n\tprintf(\"%d\\n\", b);\n\ta=(b==0) ? n:(n%100);\n\tb=a/50;\n\tprintf(\"%d\\n\", b);\n\ta=(b==0) ? a:(a%50);\n\tb=a/20;\n\tprintf(\"%d\\n\", b);\n\ta=(b==0) ? a:(a%20);\n\tb=a/10;\n\tprintf(\"%d\\n\", b);\n\ta=(b==0) ? a:(a%10);\n\tb=a/5;\n\tprintf(\"%d\\n\", b);\n\ta=(b==0) ? a:(a%5);\n\tprintf(\"%d\\n\", a);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48429", "code": "int main()\n{\n\tint j=0,k=0,l=0,m=0,n,p=0,q=0;\n\tscanf(\"%d\",&n);\n\twhile(n-100>=0)\n\t{\n\t\tn=n-100;\n\t\tj++;\n\t}\n\twhile(n-50>=0)\n\t{\n\t\tn=n-50;\n\t\tk++;\n\t}\n\twhile(n-20>=0)\n\t{\n\t\tn=n-20;\n\t\tl++;\n\t}\n\twhile(n-10>=0)\n\t{\n\t\tn=n-10;\n\t\tm++;\n\t}\n\twhile(n-5>=0)\n\t{\n\t\tn=n-5;\n\t\tq++;\n\t}\n\twhile(n-1>=0)\n\t{\n\t\tn=n-1;\n\t\tp++;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",j,k,l,m,q,p);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48430", "code": "int main()\n{\n int a,b,c,d,e,f,n;\n scanf(\"%d\",&n);\n a=0;b=0;c=0;d=0;e=0;f=0;\n if(n>=100)\n {\n a=n/100;\n n=n%100;\n }\n if(n>=50)\n {\n b=n/50;\n n=n%50;\n }\n if(n>=20)\n {\n c=n/20;\n n=n%20;\n }\n if(n>=10)\n {\n d=n/10;\n n=n%10;\n }\n if(n>=5)\n {\n e=n/5;\n n=n%5;\n }\n f=n;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n return 0;\n}\n "} +{"label": "97", "index": "48431", "code": "int main ()\n{\n\tint n;\n\tint bai,wushi,ershi,shi,wu,yuan;\n\tscanf(\"%d\",&n);\n\tbai=(n-n%100)/100;\n\tprintf(\"%d\\n\",bai);\n\twushi=((n-100*bai)-(n-100*bai)%50)/50;\n\tprintf(\"%d\\n\",wushi);\n\tershi=((n-100*bai-50*wushi)-(n-100*bai-50*wushi)%20)/20;\n\tprintf(\"%d\\n\",ershi);\n\tshi=((n-100*bai-50*wushi-20*ershi)-(n-100*bai-50*wushi-20*ershi)%10)/10;\n\tprintf(\"%d\\n\",shi);\n\twu=((n-100*bai-50*wushi-20*ershi-10*shi)-(n-100*bai-50*wushi-20*ershi-10*shi)%5)/5;\n\tprintf(\"%d\\n\",wu);\n\tyuan=n-100*bai-50*wushi-20*ershi-10*shi-5*wu;\n\tprintf(\"%d\\n\",yuan);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48432", "code": "int main()\n{\n\tint n,a=0,b=0,c=0,d=0,e=0,f=0;\n\tcin >>n;\n\tif(n>=100)\n\t\tdo\n\t{\n\t\tn=n-100;\n\t\ta++;\n\t}while(n>=100);\n\tif(n>=50)\n\t\tdo\n\t\t{\n\t\t\tn=n-50;\n\t\t\tb++;\n\t\t}while(n>=50);\n\tif(n>=20)\n\t\tdo\n\t{\n\t\tn=n-20;\n\t\tc++;\n\t}while(n>=20);\n\tif(n>=10)\n\t\tdo\n\t{\n\t\tn=n-10;\n\t\td++;\n\t}while(n>=10);\n\tif(n>=5)\n\t\tdo\n\t{\n\t\tn=n-5;\n\t\te++;\n\t}while(n>=5);\n\tif(n>=1)\n\t\tdo\n\t{\n\t\tn=n-1;\n\t\tf++;\n\t}while(n>=1);\n\tcout <>a;\ncout<0;i--){\n if(i==100||i==50||i==20||i==10||i==5||i==1){\n ht[j]=a/i;\n a=a%i;\n j++;\n }\n }\n for(i=0;i=5)\n\t{\n\t\tb1=b/5;\n\t\tb2=(b-b1*5)/2;\n\t\tb3=b-b1*5-b2*2;\n\t}\n\tif(b<5&&b>=2)\n\t{\n\t\tb1=0;\n\t\tb2=b/2;\n\t\tb3=b-b2*2;\n\t}\n\tif(b<2)\n\t{\n\t\tb1=0;\n\t\tb2=0;\n\t\tb3=b;\n\t}\n\tif(g>=5)\n\t{\n\t\tg1=1;\n\t\tg2=g-g1*5;\n\t}\n\tif(g<5)\n\t{\n\t\tg1=0;\n\t\tg2=g;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",s,b1,b2,b3,g1,g2);\n\treturn 0;\n}"} +{"label": "97", "index": "48439", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tcout<<(int)(n/100)<=100)\n\t\tn=n-100*((int)(n/100));\n\n\tcout<<(int)(n/50)<=50)\n\t\tn=n-50;\n\n\tcout<<(int)(n/20)<=20)\n\t\tn=n-((int)(n/20))*20;\n\n\tcout<<(int)(n/10)<=10)\n\t\tn-=10;\n\n\tcout<<(int)(n/5)<=5)\n\t\tn-=5;\n\n\tcout<=100){\n n=n-100;\n count1++;\n }\n while(n>=50){\n n=n-50;\n count2++;\n }\n while(n>=20){\n n=n-20;\n count3++;\n }\n while(n>=10){\n n=n-10;\n count4++;\n } while(n>=5){\n n=n-5;\n count5++;\n }\n while(n>=1){\n n=n-1;\n count6++;\n }\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",count1,count2,count3,count4,count5,count6);\n return 0;\n }\n \n"} +{"label": "97", "index": "48443", "code": "int main()\n{\n\tint a[6]={100,50,20,10,5,1};\n\tint b[6];\n\tint n,i;\n\tcin >> n,i;\n b[0]=n/100;\n\tfor (i=1;i<=5;i++)\n\t{\n\t\tn = n-b[i-1]*a[i-1] ;\n\t b[i] = n/a[i];\n\t}\n\tfor (i=0;i<=5;i++)\n\t\tcout << b[i]<=100)\n\tdo{\n\t\tn-=100;\n\t\ta+=1;\n\t}while(n>=100);\n\tif(n>=50)\n\tdo{\n\t\tn-=50;\n\t\tb+=1;\n\t}while(n>=50);\n\tif(n>=20)\n\tdo{\n\t\tn-=20;\n\t\tc+=1;\n\t}while(n>=20);\n\tif(n>=10)\n do{\n\t\tn-=10;\n\t\te+=1;\n\t}while(n>=10);\n\tif(n>=5)\n do{\n\t\tn-=5;\n\t\tf+=1;\n\t}while(n>=5);\n\tif(n>=1)\n\tdo{\n\t\tn-=1;\n\t\tg+=1;\n\t}while(n>=1);\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n\tprintf(\"%d\\n\",c);\n\tprintf(\"%d\\n\",e);\n\tprintf(\"%d\\n\",f);\n\tprintf(\"%d\\n\",g);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48446", "code": "int sort(int a,int b);\nint main(){\n int money;\n scanf(\"%d\",&money);\n money=sort(money,100);\n money=sort(money,50);\n money=sort(money,20);\n money=sort(money,10);\n money=sort(money,5);\n money=sort(money,1);\n return 0;\n}\nint sort(int a,int b){\n printf(\"%d\\n\",a/b);\n return a%b;\n}"} +{"label": "97", "index": "48447", "code": "int main()\n{\n\tint n, i, a[6] = {100, 50, 20, 10, 5, 1}, b[6] = {0};\n\tcin >> n;\n\tfor (i = 0; i < 6; i++)\n\t{\n\t\tif (n >= a[i])\n\t\t{\n\t\t\tb[i] = n / a[i];\n\t\t\tn = n - b[i] * a[i];\n\t\t}\n\t\telse\n\t\t\tcontinue;\n\t}\n\tfor (i = 0; i < 6; i++)\n\t{\n\t\tif (i < 5)\n\t\t\tcout << b[i] << endl;\n\t\tif (i == 5)\n\t\t\tcout << b[i];\n\t}\n\treturn 0;\n}\n"} +{"label": "97", "index": "48448", "code": "int main(){\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\ta=n/100;\n b=(n%100)/50;\n\tc=(n-100*a-50*b)/20;\n\td=(n-100*a-50*b-20*c)/10;\n\te=(n%10)/5;\n\tf=n%10-e*5;\n\tprintf(\"%d\\n\",a);\n\tprintf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n\treturn 0;\n}\n"} +{"label": "97", "index": "48449", "code": "int main(){\n\tint n,n1,n2,n3,n4,n5,n6;\n\tscanf(\"%d\",&n);\n\tn1=n/100;\n\tprintf(\"%d\\n\",n1);\n\tif((n%100)>=50){\n\t\tn2=1;\n\t\tn3=((n%100)-50)/20;\n\t\tn4=(((n%100)-50)%20)/10;\n\t} \n\telse{\n\t n2=0;\n\t\tn3=(n%100)/20;\n\t\tn4=((n%100)%20)/10;\n\t} \n\tprintf(\"%d\\n\",n2);\n\tprintf(\"%d\\n\",n3);\n\t\n printf(\"%d\\n\",n4);\n n5=(((n%100)%20)%10)/5;\n\tn6=(((n%100)%20)%10)%5; \n printf(\"%d\\n\",n5);\n\tprintf(\"%d\\n\",n6);\n \treturn 0;\n\n}"} +{"label": "97", "index": "48450", "code": "int main(){\nint a,b,c,d,e,f,g;\nscanf(\"%d\",&a);\nb=(a-a%100)/100;\na=a%100;\nc=(a-a%50)/50;\na=a%50;\nd=(a-a%20)/20;\na=a%20;\ne=(a-a%10)/10;\na=a%10;\nf=(a-a%5)/5;\na=a%5;\ng=a;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,g);\nreturn 0;\n} "} +{"label": "97", "index": "48451", "code": "int main()\n{\n\tint n,k1=0,k2=0,k3=0,k4=0,k5=0,k6=0,w;\n\tcin>>n;\n\tk1=n/100;\n\tk2=(n-100*k1)/50;\n\tk3=(n-100*k1-50*k2)/20;\n\tk4=(n-100*k1-50*k2-20*k3)/10;\n\tk5=(n-100*k1-50*k2-20*k3-10*k4)/5;\n\tk6=(n-100*k1-50*k2-20*k3-10*k4-5*k5);\n\tcout<>w;\n\treturn 0;\n}\n"} +{"label": "97", "index": "48452", "code": "int main(){\n int num,a,b,c,d,e,f;\n int sz[6]={100,50,20,10,5,1};\n \n scanf(\"%d\",&num);\n a=num/sz[0];\n num=num-a*100;\n\t b=num/sz[1];\n\t num=num-b*50;\n\t c=num/sz[2];\n\t num=num-c*20;\n\t d=num/sz[3];\n\t num=num-d*10;\n\t e=num/sz[4];\n\t num=num-e*5;\n\t f=num;\n\t printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\treturn 0;\n}"} +{"label": "97", "index": "48453", "code": "int main(){\n\tint a;\n\tint b,c,d,f,e,g,h;\n\tscanf(\"%d\",&a);\n\tb=a/100;\n\tc=(a%100)/50;\n\td=(a%50)/20;\n e=(a%50%20)/10;\n\tf=(a%10)/5;\n\tg=a%5;\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n printf(\"%d\\n\",g);\n \n return 0;\n}\n\n"} +{"label": "97", "index": "48454", "code": "\nint main(){\nint n;\nint a,b,c,d,e,f;\nint g,h,i,j,k;\n\nscanf(\"%d\",&n);\na=n/100;\ng=n-a*100;\nb=g/50;\nh=n-100*a-50*b;\nc=h/20;\ni=n-100*a-50*b-c*20;\nd=i/10;\nj=n-100*a-50*b-c*20-d*10;\ne=j/5;\nk=n-100*a-50*b-c*20-d*10-e*5;\nf=k;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",a,b,c,d,e,f);\n return 0;\n}"} +{"label": "97", "index": "48455", "code": "int main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tprintf(\"%d\\n\",(n-n%100)/100);\n\tprintf(\"%d\\n\",(n%100-n%50)/50);\n\tif(n%100-n%10>=50){\n\t printf(\"%d\\n\",(n%100-50)/20);\n\t printf(\"%d\\n\",(n%100-50-((n%100-50)/20)*20)/10);\n\t}\n\t else if(n%100-n%10<50){\n\t\tprintf(\"%d\\n\",(n%50-n%20)/20);\n\t printf(\"%d\\n\",(n%20-n%10)/10);\n\t }\n\tprintf(\"%d\\n\",(n%10-n%5)/5);\n\tprintf(\"%d\\n\",n%5);\n\treturn 0;\n}"} +{"label": "97", "index": "48456", "code": "int main()\n{\nint x,a,b,c,d,e,f;\nscanf(\"%d\",&x);\na=(x-x%100)/100;\nx=x-100*a;\nb=(x-x%50)/50;\nx=x-50*b;\nc=(x-x%20)/20;\nx=x-20*c;\nd=(x-x%10)/10;\nx=x-10*d;\ne=(x-x%5)/5;\nf=x-5*e;\nprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\nreturn 0;\n}\n"} +{"label": "97", "index": "48457", "code": "\nint main(int argc, char* argv[])\n{\nint a;\ncin>>a;\nint b,c,d,e,f,g;\nb=a/100;\na=a-100*b;\nc=a/50;\na=a-50*c;\nd=a/20;\na=a-20*d;\ne=a/10;\na=a-10*e;\nf=a/5;\na=a-5*f;\ng=a;\ncout<>money;\n int _100,_50,_20,_10,_5,_1; //??????\n \n _100=(money-money%100)/100; //100????? \n money=money%100;\n cout<<_100<<'\\n';\n \n _50=(money-money%50)/50; //50? \n money=money%50;\n cout<<_50<<'\\n';\n \n _20=(money-money%20)/20; //20? \n money=money%20;\n cout<<_20<<'\\n';\n \n _10=(money-money%10)/10; //10? \n money=money%10;\n cout<<_10<<'\\n';\n \n _5=(money-money%5)/5; //5? \n money=money%5;\n cout<<_5<<'\\n';\n \n _1=money; //1? \n cout<<_1;\n \n return 0; //?> w =100){\n a=(int)n/100;\n }\n else{\n a=0;\n }\n if(n%100>=50){\n b=(int)(n%100)/50;\n }\n else{\n b=0;\n }\n if(n%50>=20){\n c=(int)(n%50)/20;\n }\n else{\n c=0;\n }\n if((n%50)%20>=10){\n d=((n%50)%20)/10;\n }\n else{\n d=0;\n }\n if(n%10>=5){\n e=(n%10)/5;\n }\n else{\n e=0;\n }\n f=n%5;\n printf(\"%d\\n\",a);\n printf(\"%d\\n\",b);\n printf(\"%d\\n\",c);\n printf(\"%d\\n\",d);\n printf(\"%d\\n\",e);\n printf(\"%d\\n\",f);\n\n return 0;\n}"} +{"label": "97", "index": "48462", "code": "int main ()\n{\n\tint n,a,b,c,d,e,f;\n\tscanf(\"%d\",&n);\n\tif(n>=100){\n\t\ta=n/100;\n\t\tb=(n-a*100)/50;\n\t\tc=(n-100*a-50*b)/20;\n\t\td=(n-100*a-50*b-20*c)/10;\n\t\te=(n-100*a-50*b-20*c-d*10)/5;\n\t\tf=n-100*a-50*b-20*c-d*10-e*5;\n\t\tprintf(\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\",a,b,c,d,e,f);\n\t}\n\telse if(n<100&&n>=10){\n\t\ta=0;\n\t\tb=n/50;\n\t\tc=(n-50*b)/20;\n\t\td=(n-50*b-20*c)/10;\n\t\te=(n-50*b-20*c-d*10)/5;\nf=n-50*b-20*c-d*10-5*e;\n printf(\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\",a,b,c,d,e,f);\n\t }\n\telse if(n<10){\n\t\ta=0;\n\t\tb=0;\n\t\tc=0;\n\t\td=0;\n\t\te=n/5;\n\t\tf=n-5;\nprintf(\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\"\"%d\\n\",a,b,c,d,e,f);\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "97", "index": "48463", "code": "int main()\n{\n\tint n, i, a[6];\n\tscanf(\"%d\", &n);\n\tif(n<1000&&n>0)\n\t{\n\t\ta[0]=n/100;\n\t\ta[1]=n%100/50;\n\t\ta[2]=n%50/20;\n\t\ta[3]=n%50%20/10;\n\t\ta[4]=n%10/5;\n\t\ta[5]=n%5;\n\t for(i=0;i<6;i++)\n\t\t{\n\t\t\tprintf(\"%d\\n\", a[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48464", "code": "int main()\n{\n int n,num1,num5,num10,num20,num50,num100;\n cin>>n; //????n \n num100=n/100; //100??? \n num50=(n-num100*100)/50; //50??? \n num20=(n-num100*100-num50*50)/20; //20??? \n num10=(n-num100*100-num50*50-num20*20)/10; //10??? \n num5=(n-num100*100-num50*50-num20*20-num10*10)/5; //5??? \n num1=(n-num100*100-num50*50-num20*20-num10*10-num5*5)/1; //1??? \n cout<>n;\n cout<>money;\n\twhile(money>=100)\n\t{\n\t\tmoney=money-100;\n\t\tnote100++;\n\t}\n\twhile(money>=50)\n\t{\n\t\tmoney=money-50;\n\t\tnote50++;\n\t}while(money>=20)\n\t{\n\t\tmoney=money-20;\n\t\tnote20++;\n\t}while(money>=10)\n\t{\n\t\tmoney=money-10;\n\t\tnote10++;\n\t}while(money>=5)\n\t{\n\t\tmoney=money-5;\n\t\tnote5++;\n\t}while(money>=1)\n\t{\n\t\tmoney=money-1;\n\t\tnote1++;\n\t}\n\tcout<0){\n\t\tprintf(\"%d\\n\",m/100);\n\t\tm=m%100;\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t\tm=m%100;\n\t}\n\tif(m/50>0){\n\t\tprintf(\"%d\\n\",m/50);\n\t\tm=m-50;\n\t}\n\telse{\n\t\tprintf(\"%d\\n\",0);\n\t}\n\tif(m/20>0){\n\t\tprintf(\"%d\\n\",m/20);\n\t\tm=m-20*(m/20);\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(m/10>0){\n\t\tprintf(\"%d\\n\",m/10);\n\t\tm=m-10*(m/10);\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(m/5>0){\n\t\tprintf(\"%d\\n\",m/5);\n\t\tm=m-5;\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\n\tif(m>0){\n\t\tprintf(\"%d\\n\",m);\n\t}\n\telse{\n\t\tprintf(\"0\\n\");\n\t}\nreturn 0;\n}"} +{"label": "97", "index": "48468", "code": "int main(){\n int money;\n\tint a,b,c,d,e,f;\n\tint g,h,i,j,k,l;\n\tscanf(\"%d\",&money);\n\ta=money-money%100;\n\tb=money-(money-a)%50-a;\n\tc=money-(money-a-b)%20-a-b;\n\td=money-(money-a-b-c)%10-a-b-c;\n\te=money-(money-a-b-c-d)%5-a-b-c-d;\n\tf=money-(money-a-b-c-d-e)%1-a-b-c-d-e;\n\tg=a/100;\n\th=b/50;\n\ti=c/20;\n\tj=d/10;\n\tk=e/5;\n\tl=f/1;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",g,h,i,j,k,l);\n\treturn 0;\n}"} +{"label": "97", "index": "48469", "code": "int main()\n{\n\tint number,i=0,a=0,b=0,c=0,d=0,e=0,f=0;\n\tcin>>number;\n\tfor (i=0; ;i++)\n\t{\n\t\tif (number>=100)\n\t\t{\n\t\t\ta=number/100;\n\t\t\tnumber=number-100*a;\n\t\t}\n\t\t\n\t\tif (number<100 && number>=50)\n\t\t{\n\t\t\tb=number/50;\n\t\t\tnumber=number-50*b;\n\t\t}\n\t\t\n\t\tif (number<50 && number>=20)\n\t\t{\n\t\t\tc=number/20;\n\t\t\tnumber=number-20*c;\n\t\t\t\n\t\t}\n\t\tif (number<20 && number>=10)\n\t\t{\n\t\t\td=number/10;\n\t\t\tnumber=number-10*d;\n\t\t}\n\t\tif (number<10 && number>=5)\n\t\t{\n\t\t\te=number/5;\n\t\t\tnumber=number-5*e;\n\t\t}\n\t\tif (number<5 && number>0)\n\t\t{\n\t\t\tf=number;\n\t\t\tbreak;\n\t\t}\n\t\tif (number<=0)\n\t\t\tbreak;\n\t}\n\tcout<> n;\n\n\ta = n/100;\n\tif (a != 0 )\t\n\t{\n\t\tcout << a << endl;\n\t\tn = n % 100;\n\t}\n\telse cout << \"0\" << endl;\n\n\n\tb = n / 50;\n\tif (b != 0)\n\t{\n\t\tcout << b << endl;\n\t\tn = n % 50;\n\t}\n\telse cout << \"0\" << endl;\n\n\n\tc = n / 20;\n\tif (c != 0)\n\t{\n\t\tcout << c << endl;\n\t\tn = n % 20;\n\t}\n\telse cout << \"0\" << endl;\n\n\n\td = n / 10;\n\tif (d != 0)\n\t{\n\t\tcout << d << endl;\n\t\tn = n % 10;\n\t}\n\telse cout << \"0\" << endl;\n\n\n\te = n / 5;\n\tif (e != 0)\n\t{\n\t\tcout << e << endl;\n\t\tn = n % 5;\n\t}\n\telse cout << \"0\" << endl;\n\n\tcout << n << endl;\n\treturn 0;\n}"} +{"label": "97", "index": "48473", "code": "int main()\n{\n int m,x100,x50,x20,x10,x5,x1;\n cin>>m;\n for(x100=1;m>=100;x100++)\n {\n m=m-100;\n }\n \n for(x50=1;m>=50;x50++)\n {\n m=m-50;\n }\n \n for(x20=1;m>=20;x20++)\n {\n m=m-20;\n }\n \n for(x10=1;m>=10;x10++)\n {\n m=m-10;\n }\n \n for(x5=1;m>=5;x5++)\n {\n m=m-5;\n }\n \n x1=m;\n \n cout<0)\n\t{\n\t\tprintf(\"%d\\n\",n/100);\n\t}\n\telse printf(\"0\\n\");\n\tn=n%100;\n\tif(n/50>0)\n\t{\n\t printf(\"%d\\n\",n/50);\n\t}\n\telse printf(\"0\\n\");\n\tn=n%50;\n\tif(n/20>0)\n\t{\n\t printf(\"%d\\n\",n/20);\n\t}\n\telse printf(\"0\\n\");\n\tn=n%20;\n\tif(n/10>0)\n\t{\n\t printf(\"%d\\n\",n/10);\n\t}\n\telse printf(\"0\\n\");\n\tn=n%10;\n\tif(n/5>0)\n\t{\n\t printf(\"%d\\n\",n/5);\n\t}\n\telse printf(\"0\\n\");\n\tn=n%5;\n\tprintf(\"%d\",n%5);\n\treturn 0;\n}"} +{"label": "97", "index": "48475", "code": "int main(){\n int a,b,c,d,e,f,g,x,y,z,h,i,j;\n scanf(\"%d\",&a);\n z=a%100;\n x=a-z;\n b=x/100;\n y=z%50;\n x=z-y;\n c=x/50;\n z=z-x;\n x=z%20;\n y=z-x;\n d=y/20;\n z=x%10;\n y=x-z;\n e=y/10;\n y=z%5;\n x=z-y;\n f=x/5;\n g=y;\n printf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,c,d,e,f,g);\nreturn 0;\n}"} +{"label": "97", "index": "48476", "code": "int main()\n{\n\tint r,a,b,c,d,e,f;\n\tcin>>r;\n\tfor (a=9;a>=0;a--){\n\t\tfor (b=1;b>=0;b--){\n\t\t\tfor (c=2;c>=0;c--){\n\t\t\t\tfor(d=1;d>=0;d--){\n\t\t\t\t\tfor(e=1;e>=0;e--){\n\t\t\t\t\t\tfor(f=4;f>=0;f--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(r==100*a+50*b+20*c+10*d+5*e+f)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout<0)\n\t\tprintf(\"%d\\n\",t);\n\t\telse \n\t\tprintf(\"0\\n\");\n\t\tn=n-100*t;\n\t t=n/50;\n\t\tif(t>0)\n\t printf(\"%d\\n\",t);\n\t\telse \n\t\tprintf(\"0\\n\");\n\t\tn=n-50*t;\n t=n/20;\n\t if(t>0)\n\t printf(\"%d\\n\",t);\n\t\telse \n\t\tprintf(\"0\\n\");\n\t n=n-20*t;\n\t t=n/10;\n\t\tif(t>0)\n\t printf(\"%d\\n\",t);\n\t\telse \n\t\tprintf(\"0\\n\");\n\t\tn=n-10*t;\n\t t=n/5;\n\t\tif(t>0)\n\t printf(\"%d\\n\",t);\n\t\telse \n\t\tprintf(\"0\\n\");\n\t\tn=n-5*t;\n if(n>0)\n\t printf(\"%d\\n\",n);\n\t\telse \n\t\tprintf(\"0\\n\");\n\t\treturn 0;\n\t}\n}\n"} +{"label": "97", "index": "48478", "code": "int a[10] = {100,50,20,10,5,1};\nint main()\n{\n int n,k,i;\n scanf(\"%d\",&n);\n k = 0;\n for(i = 0;i < 6;i ++)\n{\n while(n >= a[i])\n {\n n -= a[i];\n k ++;\n }\n printf(\"%d\\n\",k);\n k = 0; \n}\n return 0;\n}\n"} +{"label": "97", "index": "48479", "code": "/*\n*?????\n*??\n*2011?11?06?\n*?????\n*/\nint main()\n{\n\tint num[6],money;//num[6]????????\n\tcin>>money;\n\tnum[0]=(money-money%100)/100;\n\tnum[1]=(money-100*num[0])/50;\n\tnum[2]=(money-100*num[0]-50*num[1])/20;\n\tnum[3]=(money-100*num[0]-50*num[1]-20*num[2])/10;\n\tnum[4]=(money-100*num[0]-50*num[1]-20*num[2]-10*num[3])/5;\n\tnum[5]=(money-100*num[0]-50*num[1]-20*num[2]-10*num[3]-5*num[4]);\n\tfor(int i=0;i<6;i++)\n\t\tcout<=100)\n\t{\n\ta[0]=n/100;\n\tn=n%(100*a[0]);\n\t}\n\telse\n\t\ta[0]=0;\n\tif(n>=50)\n\t{\n\ta[1]=n/50;\n\tn=n%(50*a[1]);\n\t}\n\telse\n\t\ta[1]=0;\n\tif(n>=20)\n\t{\n\t\ta[2]=n/20;\n\t\tn=n%(a[2]*20);\n\t}\n\telse\n\t\ta[2]=0;\n\tif(n>=10)\n\t{\n\t\ta[3]=n/10;\n\t\tn=n%(a[3]*10);\n\t}\n\telse\n\t\ta[3]=0;\n\tif(n>=5)\n\t{\n\t\ta[4]=n/5;\n\t\tn=n%(a[4]*5);\n\t}\n\telse\n\t\ta[4]=0;\n\ta[5]=n;\n\tfor(i=0;i<6;i++)\n\t{\n\t\tprintf(\"%d\\n\",a[i]);}\n\treturn 0;\n}"} +{"label": "97", "index": "48483", "code": "void main()\n{\n int a[7]={0,100,50,20,10,5,1},n,i,b[7];\n scanf(\"%d\",&n);\n for(i=1;i<=6;i++)\n {\n \tb[i]=(n-(n%a[i]))/a[i];\n \tn=n-a[i]*b[i];\n }\n for(i=1;i<=6;i++)\n {\n \tprintf(\"%d\\n\",b[i]);\n }\n}"} +{"label": "97", "index": "48484", "code": "int main(){\n\tint n , i , m , ans ; \n\tint a[6]={100,50,20,10,5,1};\n\tdouble x , jie ;\n\tscanf(\"%d\", &n );\n\tfor (i=0; i<6 ;i++){\n\t\tprintf(\"%d\\n\", n/a[i] );\n\t\tn=n-n/a[i]*a[i];\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48485", "code": "int main(){\n\tint n,a,b,c,d,e;\n\tscanf(\"%d\",&n);\n\ta = (int)(n/100);\n\tn = n - 100 * a;\n\tb = (int)(n/50);\n\tn = n - 50 * b;\n\tc = (int)(n/20);\n\tn -= 20 * c;\n\td = (int)(n/10);\n\tn -= 10 * d;\n\te = (int)(n/5);\n\tn -= 5 * e;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,n);\n\treturn 0;\n}"} +{"label": "97", "index": "48486", "code": "int main()\n{\n\tint A,B,C,D,E,I,a,b,c,d,e,n;\n\tscanf(\"%d\",&n);\n\tA=n/100;\n\ta=n%100;\n\tB=a/50;\n b=a%50;\n\tC=b/20;\n\tc=b%20;\n\tD=c/10;\n\td=c%10;\n\tE=d/5;\n\te=d%5;\n\tI=e;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",A,B,C,D,E,I);\n\treturn 0;\n}"} +{"label": "97", "index": "48487", "code": "int main()\n{\n\tint pay,a,b,c,d,e,f;\n\tscanf(\"%d\",&pay);\n\tfor(a=0;1;a++){\n\t\tif(pay-100*(a+1)<0){\n\t\t\tprintf(\"%d\\n\",a);\n\t\t\tbreak;\n\t\t}\n\t}\n\tpay-=100*a;\n\tfor(b=0;1;b++){\n\t\tif(pay-50*(b+1)<0){\n\t\t\tprintf(\"%d\\n\",b);\n\t\t\tbreak;\n\t\t}\n\t}\n\tpay-=50*b;\n\tfor(c=0;1;c++){\n\t\tif(pay-20*(c+1)<0){\n\t\t\tprintf(\"%d\\n\",c);\n\t\t\tbreak;\n\t\t}\n\t}\n\tpay-=20*c;\n\tfor(d=0;1;d++){\n\t\tif(pay-10*(d+1)<0){\n\t\t\tprintf(\"%d\\n\",d);\n\t\t\tbreak;\n\t\t}\n\t}\n\tpay-=10*d;\n\tfor(e=0;1;e++){\n\t\tif(pay-5*(e+1)<0){\n\t\t\tprintf(\"%d\\n\",e);\n\t\t\tbreak;\n\t\t}\n\t}\n\tpay-=5*e;\n\tfor(f=0;1;f++){\n\t\tif(pay-1*(f+1)<0){\n\t\t\tprintf(\"%d\\n\",f);\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "97", "index": "48488", "code": "int main()\n{\n\tint a,b,c,d,e,f,g,h,i,j,k;\n\tscanf(\"%d\",&a);\n\tb=(int)(a/100);\n\tc=a%100;\n\td=(int)(c/50);\n\te=c%50;\n\tf=(int)(e/20);\n\tg=e%20;\n\th=(int)(g/10);\n\ti=g%10;\n\tj=(int)(i/5);\n\tk=i%5;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",b,d,f,h,j,k);\n\treturn 0;\n}"} +{"label": "97", "index": "48489", "code": "\nint main()\n{\n\tint n;\n\tint n100=0,n50=0,n20=0,n10=0,n5=0,n1=0;\n\tscanf(\"%d\",&n);\n\twhile(n>=100){\n\t\tn=n-100;\n\t\tn100++;\n\t}\n\twhile(n>=50){\n\t\tn=n-50;\n\t\tn50++;\n\t}\n\twhile(n>=20){\n\t\tn=n-20;\n\t\tn20++;\n\t}\n\twhile(n>=10){\n\t\tn=n-10;\n\t\tn10++;\n\t}\n\twhile(n>=5){\n\t\tn=n-5;\n\t\tn5++;\n\t}\n\twhile(n>=1){\n\t\tn=n-1;\n\t\tn1++;\n\t}\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\",n100,n50,n20,n10,n5,n1);\n\t\n\treturn 0;\n}\n"} +{"label": "97", "index": "48490", "code": "int main (){\n int i,a,sz[6],rmb[6];\n scanf(\"%d\",&a);\n rmb[0]=100;rmb[1]=50;rmb[2]=20;rmb[3]=10;rmb[4]=5;rmb[50]=1;\n for(i=0;i<5;i++){\n sz[i]=a/rmb[i];\n a=a-sz[i]*rmb[i];\n }\n for(i=0;i<5;i++){printf(\"%d\\n\",sz[i]);}printf(\"%d\\n\",a);\n}"} +{"label": "97", "index": "48491", "code": "int main()\n{\n\tint m,a,b,c,d,e,f;\n\tscanf(\"%d\",&m);\n\ta=(m/100)%10;\n\t\tb=((m-a*100)/50)%50;\n\t\tc=((m-a*100-b*50)/20)%20;\n\t\td=((m-a*100-b*50-c*20)/10)%10;\n\t\te=((m-a*100-b*50-c*20-d*10)/5)%10;\n\t\tf=m-a*100-b*50-c*20-d*10-e*5;\n\t\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",a,b,c,d,e,f);\n\t\treturn 0;\n}"} +{"label": "97", "index": "48492", "code": "int main()\n{\n\tint a[7]={0,100,50,20,10,5,1},b[7]={0};\n\tint q,i;\n\tcin>>q;\n\tfor (i=1;i<=6;i++)\n\t{\n\t\tif( q>=a[i])\n\t\t{\t\n\t\t\tb[i]=q/a[i];\n\t\t\tq=q%a[i];\n\t\t}\n\t}\n\tfor (i=1;i<=6;i++)\n\t{\n\t\tcout<0)\n\t{s[i]=n/a[i];\n\tn=n-a[i]*s[i];}\n\telse s[i]=0;}\n\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",s[0],s[1],s[2],s[3],s[4],s[5]);\n}\nreturn 0;\n}\n"} +{"label": "97", "index": "48495", "code": "\nint main(){\n\tint value,i;\n\tint num[6],mdy[5];\n\n\tscanf(\"%d\",&value);\n\n\tif(value>=100)\n\t{\n\t\tnum[0]=(value-value%100)/100;\n\t\tmdy[0]=value%100;\n\t}else{\n\t\tnum[0]=0;\n\t\tmdy[0]=value;\n\t}\n\n\tif(mdy[0]>=50)\n\t{\n\t\tnum[1]=(mdy[0]-mdy[0]%50)/50;\n\t\tmdy[1]=mdy[0]%50;\n\t}else{\n\t\tnum[1]=0;\n\t\tmdy[1]=mdy[0];\n\t}\n\n\tif(mdy[1]>=20)\n\t{\n\t\tnum[2]=(mdy[1]-mdy[1]%20)/20;\n\t\tmdy[2]=mdy[1]%20;\n\t}else{\n\t\tnum[2]=0;\n\t\tmdy[2]=mdy[1];\n\t}\n\n\tif(mdy[2]>=10)\n\t{\n\t\tnum[3]=(mdy[2]-mdy[2]%10)/10;\n\t\tmdy[3]=mdy[2]%10;\n\t}else{\n\t\tnum[3]=0;\n\t\tmdy[3]=mdy[2];\n\t}\n\n\tif(mdy[3]>=5)\n\t{\n\t\tnum[4]=(mdy[3]-mdy[3]%5)/5;\n\t\tmdy[4]=mdy[3]%5;\n\t}else{\n\t\tnum[4]=0;\n\t\tmdy[4]=mdy[3];\n\t}\n\n\tnum[5]=mdy[4];\n\n\tfor(i=0;i<6;i++){\n\t\tprintf(\"%d\\n\",num[i]);\n\t}\n\n\treturn 0;\n\n}\n\t"} +{"label": "97", "index": "48496", "code": "\nint main(){\n\tint n;\n\tcin>>n;\n\n\tint a[6], b[6], i;\n\n\tb[0]= n;\n\n\tfor(i= 0; i< 6; i++){\n\t\tif(i== 0){\n\t\t\tb[i+ 1]= b[i]% 100;\n\t\t\ta[i]= (b[i]- b[i+ 1])/ 100;\n\t\t}\n\t\tif(i== 1){\n\t\t\tb[i+ 1]= b[i]% 50;\n\t\t\ta[i]= (b[i]- b[i+ 1])/ 50;\n\t\t}\n\t\tif(i== 2){\n\t\t\tb[i+ 1]= b[i]% 20;\n\t\t\ta[i]= (b[i]- b[i+1])/ 20;\n\t\t}\n\t\tif(i== 3){\n\t\t\tb[i+ 1]= b[i]% 10;\n\t\t\ta[i]= (b[i]- b[i+1])/ 10;\n\t\t}\n\t\tif(i== 4){\n\t\t\tb[i+ 1]= b[i]% 5;\n\t\t\ta[i]= (b[i]- b[i+1])/ 5;\n\t\t}\n\n\t}\n\n\tfor(i= 0; i<=4; i++){\n\t\tcout<=100)\n\t{\n\t\tn100=m/100;\n\t\tm=m%(n100*100);\n\t}\n\tif (m>=50)\n\t{\n\t\tn50=m/50;\n\t\tm=m%(n50*50);\n\t}\n\tif (m>=20)\n\t{\n\t\tn20=m/20;\n\t\tm=m%(n20*20);\n\t}\n\tif (m>=10)\n\t{\n\t\tn10=m/10;\n\t\tm=m%(n10*10);\n\t}\n\tif (m>=5)\n\t{\n\t\tn5=m/5;\n\t\tm=m%(n5*5);\n\t}\n\tn1=m;\n\tprintf(\"%d\\n%d\\n%d\\n%d\\n%d\\n%d\\n\",n100,n50,n20,n10,n5,n1);\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48500", "code": "//???? \n//???\n\n\n\n\nint main()\n{\n int n,len;\n char str[1000][1000];\n cin>>n;\n int i;\n for(i=0;i>str[i];//??\n cout<<*str;\n char (*p)[1000]; //??????\n\n len=strlen(*str);\n for(p=str+1;p=80)//??\n {\n cout<> n;\n\tfor (i = 0; i < n; i++)\n\t\tcin >> *(p + i);\n\tdo\n\t{\n\t\tcout << *p;\n\t\tl = strlen(*p);\n\t\tp++;\n\t\twhile((l += strlen(*p) + 1) <= 80)\n\t\t{\n\t\t\tcout << \" \" << *p;\n\t\t\tp++;\n\t\t\tif (p > &a[n-1])\n\t\t\t\tbreak;\n\t\t}\n\t\tcout << endl;\n\t}while(p <= &a[n-1]);\n\n\treturn 0;\n}"} +{"label": "98", "index": "48502", "code": "\nint main(int argc, char* argv[])\n{\n\tchar word[41],words[41];\n\tint n,s=0,l,i,x=90;\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++)\n\t{\t\n\t\tscanf(\"%s\",word);\n\t\tl=strlen(word);\t\t\n\t\tif (i==1) {s=l;printf(\"%s\",word);continue;}\n\t\ts=s+l+1;\n\t\tif (s<=80) printf(\" %s\",word);\n\t\telse {printf(\"\\n%s\",word);s=l;}\n\t\t\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48503", "code": "//********************************\n//*???2.cpp **\n//*?????? 1200012768 **\n//*???2013.1.3 **\n//*??????? **\n//********************************\nint main()\n{\n\tint n, i, j, count = 0, len1, len2;\n\tcin >> n;\n\tchar w1[41], w2[41], w3[41];\n\tcin >> w1;\n\tlen1 = strlen(w1);\n\tif (n == 1)\n\t\tcout << w1;\n\telse if (n == 2)\n\t{\n\t\tcin >> w2;\n\t\tcout << w1 << \" \" << w2; \n\t}\nelse\n{\n\tfor (i = 2;i < n; i++)\n\t{\n\t\tcin >> w2;\n\t\tlen2 = strlen(w2);\n\t\tcount += len1 + 1 + len2;\n\t\tif (count <= 80)\n\t\t{\n\t\t\tcout << w1 << \" \";\n\t\t\tcount -= len2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << w1 << endl;\n\t\t\tcount = 0;\n\t\t}\n\t\tstrcpy(w1, w2);\n\t\tlen1 = strlen(w1);\n\t}\n\tcin >> w2;\n\tlen2 = strlen(w2);\n\tcount += len1 + 1 + len2;\n\tif (count <= 80)\n\t\tcout << w1 << \" \" << w2;\n\telse\n\t\tcout << w1 << endl << w2;\n}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48504", "code": "void compose_word(char word[1000][25], int number)\n{\n\tint count = 0, len = 0, first = 0, i = 0;//count????????????????len?????????,first?????????\n\tlen = strlen(word[0]);\n\tfor (i = 0; i < number;)\n\t{\n\t\twhile (len + count < 80)\n\t\t{\n\t\t\tif (first)\n\t\t\t{\n\t\t\t\tcout << ' ';\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t\telse\n\t\t\t\tfirst = 1;\n\t\t\tcout << word[i];\n\t\t\tcount += len;\n\t\t\ti ++;\n\t\t\tif (i >= number)\n\t\t\t\tbreak;\n\t\t\tlen = strlen(word[i]);\n\t\t}\n\t\tcout << endl;\n\t\tcount = 0;\n\t\tfirst = 0;\n\t\tif (i >= number)\n\t\t\tbreak;\n\t}\n}\nint main()\n{\n\tint number = 0, i;//number????????\n\tcin >> number;\n\tgetchar();\n\tchar word[1000][25] = {'\\0'};\n\tfor (i = 0; i < number; i ++)\n\t\tscanf(\"%s\",word[i]);\n\tcompose_word(word,number);//????\n\treturn 0;\n}"} +{"label": "98", "index": "48505", "code": "/*\n * word.cpp\n *\n * Created on: 2011-12-11\n * Author: wangshiheng\n */\n\nint main()\n{\n\tchar words[41];\n\tint s=-1,l,n,i;\n\tcin>>n;\n\tfor (i=0;i>words;\n\t\tl=strlen(words);\n\t\t\tif (s==-1){s=l+s+1;cout<=80)\n\t\t\t {\n\t\t\t\t printf(\"\\n\");\n\t\t\t\t s=0;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t printf(\" \");\n\t\t\t s++;\n\t\t\t }\n\t\t\t \n\t\t\t \n\t }\n\t printf(\"%s\",z[n-1].a);\n\n\n\n\n\n\treturn 0;\n}\n\n \n\n"} +{"label": "98", "index": "48507", "code": "int main(int argc, char* argv[])\n{\n int n,i,m,count=0,k=0;\n\tchar c[40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t{\n\t\t\tprintf(\"\\n%s\",c);\n\t\t\tcount=m+1;\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(k==0)\n\t\t\t{\n printf(\"%s\",c);\n\t\t\t k=1;\n\t\t\t}\n\t\t\telse\n\t\t\tprintf(\" %s\",c);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48508", "code": "int main(){\n\tint n,i,num,t; //????\n\tcin>>n;\n\tchar word[1000][40];\n\tfor(i=0;i81) \n {\n printf(\"\\n%s\",word);\n b=a;\n }\n }\n}"} +{"label": "98", "index": "48510", "code": "int main()\n{\n\tchar verb[42], m;\n\tint num, size, sum = 0;\n\tcin >> num;\n\twhile (1)\n\t{\n\t\tcin >> verb;\n\t\tm = cin.get();\n\t\tsize = strlen(verb);\n\t\tif (sum == 0)\n\t\t{\n\t\t\tcout << verb;\n\t\t\tsum += size;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsum += (size + 1);\n\t\t\tif (sum <= 80)\n\t\t\t{\n\t\t\t\tcout << \" \" << verb;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tcout << verb;\n\t\t\t\tsum = size;\n\t\t\t}\n\t\t}\n\t\tif (m == '\\n')\n\t\t\tbreak;\n\t}\n\treturn 0;\n}\n\n\n\n\t\t\n"} +{"label": "98", "index": "48511", "code": "int main()\n{\n\tint n; //n????\n\tchar ch[1000][41];\n\tint len[1000];\n\n\tcin >> n;\n\tfor ( int i = 0; i < n; i++ ) //??\n\t{\n\t\tcin >> ch[i];\n\t\tlen[i] = strlen(ch[i]);\n\t}\n\tchar *p; //????\n\n\tint num = 0, cnt = 0; //???????cnt??????num\n\twhile(1)\n\t{\n\t\tif ( cnt >= n ) //???????????\n\t\t\tbreak;\n \twhile( num + len[cnt] <= 80 ) //???????????????80????\n\t\t{\n\t\t\tp = ch[cnt]; //?????ch[cnt]???????????\n\t\t\tif ( cnt >= n )\n\t\t \tbreak;\n\t \tcout << p; //??????\n\t\t\tnum += len[cnt]; //????\n\t\t\tcnt++;\n\t\t\tif ( num + len[cnt] < 80 && cnt < n) //???????????????1\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t\tcout << \" \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tnum = 0; //????????\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48512", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tchar p[1][20];\n\tcin>>(*p);\n\tint len=strlen(*p);\n\tcout<<(*p);\n\tfor(int i=1;i>(*p);\n\t\tif(len+strlen(*p)+1>80)\n\t\t{\n\t\t\tcout<> n;\n\tchar word[100];\n\tunsigned int len = 0;\n\tfor (int i = 0; i < n; i++) {\n\t\tcin >> word;\n\t\tlen = len + strlen(word)+1 ;\n\t\tif (len == strlen(word) + 1){\n\t\t\tcout << word;\n\t\t\tlen--;\n\t\t}\n\t\telse if (len <= 80)\n\t\t\tcout << \" \" << word;\n\t\telse {\n\t\t\tcout << endl << word;\n\t\t\tlen = strlen(word) ;\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48514", "code": "\n\nconst int maxlen=80;\n\nchar st[50];\n\nint n, len, newline, nowlen;\n\nint main(){\n\n\t//freopen(\"a.in\", \"r\", stdin);\n\tscanf(\"%d\", &n);\n\tnewline = 1;\n\tfor (int i=0; i maxlen){\n\t\t\tprintf(\"\\n%s\", st);\n\t\t\tlen = nowlen;\n\t\t}\n\t\telse {\n\t\t\tif (i) putchar(' ');\n\t\t\tprintf(\"%s\", st);\n\t\t\tlen += (i?1:0) + nowlen;\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48515", "code": "\nmain()\n\n{ int n,i,s=0,flg=0;\n char p[1000][50],l[1000];\n scanf(\"%d\",&n);\n for(i=0;istr);\n\tp1->a=strlen(p1->str);\n\thead=NULL;\n\twhile(istr);\n \tp1->a=strlen(p1->str);\n\t p2->next=p1;\n\t\tp2=p1;\n\t}\n\tp2->next=NULL;\n\tp=head;\n\ti=0;\n\twhile(istr);\n\t i++;\n\t t=t+p->a;\n\t p=p->next;\n\t if(p!=NULL)\n\t {\n\t while(t+1+p->a<=80)\n\t {\n\t\t printf(\" \");\n\t printf(\"%s\",p->str);\n\t\t i++;\n\t\t t=t+1+p->a;\n\t\t p=p->next;\n\t\t if(p==NULL)\n\t\t\t break;\n\t }\n\t }\n\t printf(\"\\n\");\n\t t=0;\n\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "98", "index": "48517", "code": "int main()\n{\n\tchar a[50];\n\tint n,b[1000];\n\tcin>>n;\n\tint i,j,k,m,q=0,s=0,para=0,word=0;\n\tchar *p=a;\n\tcin>>a;cout<>a;\n\t\tword=strlen(a);\n\t\tpara=para+strlen(a)+1;\n\t\tif(para==strlen(a)+1)\n\t\t{\n\t\t\tcout<80)\n\t\t{\n\t\t\tpara=strlen(a);\n\t\t\tcout<>n;\n\tcin.get();\n\tcin.getline(a,100000);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]!=' ')\n\t\t{\n\t\t\tcout<80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\ti--;\n\t\t\tj=0;\n\t\t}else{\n\t\t\tif(j==80&&j-1==80)\n\t\t\t{\n\t\t\t\tprintf(\"%s\",word[i]);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}else{\n\t\t\t\tif(j+len[i+1]>80)\n\t\t\t\t{\n\t\t\t\tprintf(\"%s\",word[i]);\n\t\t\t\t}else{\n\t\t\t\tprintf(\"%s\",word[i]);\n\t\t\t\tprintf(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t}else{\n\t\t\tprintf(\"%s\",word[n-1]);\n\t\t}\n\t}\n\treturn 0;\n}\n\n\t\n"} +{"label": "98", "index": "48520", "code": "\nint main()\n{\n\tchar word[1000][40]={'\\0'};\n\tint wordlen[1000]={0},i,n,sum=0;\t//sum??????????\n\tcin>>n;\n\tcin.get();\n\tfor (i=0;i>word[i];\t\t\t\t\t\t//???cin??????\n\tfor (i=0;i> n;\n\tfor(i = 0; i < n; i ++)\n\t\tcin >> word[i];\n\tflag[0] = 0;\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tlen = strlen(*(word + i));\n\t\tsum += len;\n\t\tif(sum + i - flag[k] > 80)\n\t\t{\n\t\t\tflag[++ k] = i;\n\t\t\ti --;\n\t\t\tsum = 0;\n\t\t}\n\t}\n\tflag[k + 1] = n;\n\tfor(i = 0; i <= k; i ++)\n\t{\n\t\tfor(j = flag[i]; j < flag[i + 1] - 1; j ++)\n\t\t{\n\t\t\tcout << *(word + j) << \" \";\n\t\t}\n\t\tcout << *(word + flag[i + 1] - 1) << endl;\n\t}\n\treturn 0;\n}\n\t"} +{"label": "98", "index": "48522", "code": "//********************\n//**???????\t**\n//**?????\t\t**\n//**???2013.12.14**\n//**????2.cpp\t**\n//********************\nint main()\n{\n\tchar word[1000][40], (*p)[40] = word;\n\tint n, i, g, temp = 1, cnt[1000] = {0};\n\tcin >> n; // ??????\n\tfor (i = 1; i <= n; i++)\n\t\tcin >> word[i]; // ?????????\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcnt[i] = cnt[i - 1] + strlen(word[i]); // ??????????\n\n\t\t// ???????80???????????????????????????????????????????????\n\t\tif ((cnt[i - 1] <= 81 && cnt[i] >= 81) || i == n)\n\t\t{\n\t\t\tfor (g = temp; g < i- 1; g++) // ??????????\n\t\t\t\tcout << word[g] << ' ';\n\t\t\tcout << word[i - 1];\n\t\t\tif (i < n)\n\t\t\t\tcout << endl;\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << ' ' << word[i] << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttemp = i;\n\t\t\tcnt[i - 1] = 0; // ????????????0\n\t\t\ti--; // i?1????????\n\t\t}\n\t\telse\n\t\t\tcnt[i]++; // ????????\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48523", "code": "int main()\n{\n\tint i,n;\n\tint count=0,flag=0;\n\tchar word[40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i> n;\n\tchar word[600][40];\n\tchar (*p)[40] = word;\n\tfor (int i = 0; i < n ;i++)\n\t\tcin >> word[i];\n\tint sum = 0;\n\tint flag = 1;\n\tfor (int i = 0; i < n ; i++,p++)\n\t{\n\t\tif (flag)\n\t\t{\n\t\t\tsum += strlen(word[i]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsum += strlen(word[i]) + 1;\n\t\t}\n\t\tif (sum <= 80)\n\t\t{\n\t\t\tif (flag)\n\t\t\t{\n\t\t\t\tcout << *p;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t\tcout << \" \" << *p;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\tflag = 1;\n\t\t\tsum = 0;\n\t\t\ti--;\n\t\t\tp--;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "98", "index": "48525", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\t\tchar str[1000][40];\n\tint i;\n\tfor(i=0;i>*(str+i);\n\t}\n\tint len;\n\t\n\tfor(i=0;i80||i>=n)\n\t\t\t{\n\t\t\t\tcout<<*(str+i)<81){\n\t\t\t\t printf(\"%s\",zfc[i]);\n\t\t\t}\n\t\t\tif(k<=81){\n\t\t\t\t printf(\"%s \",zfc[i]);\n\t\t\t}\n\t\t}\n\t\tif(len==81){\n\t\t\tprintf(\"%s\\n\",zfc[i]);\n\t\t\tlen=0;\n\t\t}\n\t\tif(len>81){\n\t\t\tprintf(\"\\n%s \",zfc[i]);\n\t\t\tlen=strlen(zfc[i])+1;\n\t\t}\n\t }\n\t if(i==n-1){\n\t\t printf(\"%s\",zfc[n-1]);\n\t }\n\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48527", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n char word[2000][1000];\n for(int i=0;i80)\n {\n for(int j=start;j<=i-2;j++)\n printf(\"%s \",word[j]);\n printf(\"%s\\n\",word[i-1]);\n start=i; \n i=i-1;\n count=0; \n }\n if(i==n-1&&count+i-start<80)\n {\n for(int j=start;j<=i-1;j++)\n printf(\"%s \",word[j]);\n printf(\"%s\",word[i]); \n } \n }\n return 0;\n}"} +{"label": "98", "index": "48528", "code": "int main()\n{\n int n,i,j,d=0,t=0;\n char s[40],s0[40],s1[10000]={'\\0'};\n scanf(\"%d \",&n);\n scanf(\"%s \",s);\n d=strlen(s);\n strcat(s1,s);\n for(i=0;i80)\n {\n s0[t]='\\0';\n strcat(s1,\"\\n\");\n strcat(s1,s0);\n d=strlen(s0);\n }\n t=0;\n \n }\n puts(s1);\n return 0;\n}\n \n\n\n"} +{"label": "98", "index": "48529", "code": "/*\n * 1.cpp\n *\n * Created on: 2012-12-10\n * Author: ???\n * Function:????\n */\n\nint main() {\n\tint space;\n\tcin >> space;\n\tchar str[10000], empty[10];\n\tint l[1000] = { 0 };\n\tcin.getline(empty, 10);\n\tcin.getline(str, 10000);\n\tint k = strlen(str);\n\n\tchar *p = str;\n\t*(p + k) = ' ';\n\tint *len = l;\n\tint sum = 0, num = 0;//?????????\n\twhile (sum < space) {\n\n\t\twhile (*p != ' ') {\n\t\t\tif (!sum)\n\t\t\t\tcout << *p;\n\t\t\tp++;\n\t\t\t(*len)++;\n\t\t}\n\n\t\t//cout<<*len;\n\t\tif (sum) {\n\t\t\tfor (char *x = p - *len - 1; x < p; x++) {\n\t\t\t\tif (num - 1 <= 80 && num + *len > 80) {\n\t\t\t\t\t*(p - *len - 1) = '\\n';\n\t\t\t\t\tnum = 0;\n\t\t\t\t} else if (num + *len <= 80)\n\t\t\t\t\t*(p - *len - 1) = ' ';\n\n\t\t\t\tcout << *x;\n\t\t\t}\n\t\t}\n\t\tnum += *len + 1;\n\t\t//cout << \" \";\n\t\tp++;\n\t\tsum++;\n\t\tlen++;\n\t\t//cout << sum << \" \" << num;\n\t}\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48530", "code": "int main()\n{\n\tint n,i;\n\tint count=0;\n\tchar word[40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ij)\n\t\t{\n\t\tif(count<79)\n\t\t{\n\t\t\tcount++;\n\t\t\tprintf(\" %s\",word);\n\t\t}\n\t\telse if(count==79)\n\t\t{\n\t\t\tprintf(\" %s\\n\",word);\n\t\t\tcount=0;\n\t\t}\n\t\tif(count>79)\n\t\t{\n\t\t\tprintf(\"\\n%s\",word);\n\t\t\tcount=j;\n\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48531", "code": "\nint main()\n{\n int max = 80;\n int i, n, len;\n int end = 0; /* ????????????? */\n char word[80];\n\n scanf(\"%d\", &n);\n for (i = 0; i < n; i++) {\n scanf(\"%s\", word);\n len = strlen(word);\n /* ?????????????????????\n ???80????????? */\n if (end + len + 1 > 80) {\n printf(\"\\n\");\n end = 0;\n }\n else {\n /* ?????????????????? */\n if (i > 0) {\n printf(\" \");\n end++;\n }\n }\n printf(\"%s\", word);\n end += len;\n }\n return 0;\n}"} +{"label": "98", "index": "48532", "code": "int main()\n{\n int n,i;\n cin>>n;\n char word[n][81],c;\n for(i=0;i>word[i];\n }\n int sum=strlen(word[0]);\n cout<> n;\n\tfor(i = 0;i < n;i++)\n\t\tcin >> *(p+i);\n\t for(i = 0;i < n;i++)\n\t {\n\t\t len = strlen(*(p+i));\n\t\t if(sum + len > 80)\n\t\t {\n\t\t\t sum = 0;\n\t\t\t cout << *(p+i) <<' ';\n\t\t }\n\t\t else if(sum + len < 80)\n\t\t {\n\t\t\t sum = sum + len + 1;\n\t\t\t len = strlen(*(p+i+1));\n\t\t\t if(sum + len > 80)\n\t\t\t {\n\t\t\t\t sum = 0;\n\t\t\t\t cout << *(p+i);\n\t\t\t\t cout << endl;\n\t\t\t }\n\t\t\t else if(sum + len < 80) \n\t\t\t {\n\t\t\t\t if(i == n-1) cout << *(p+i);\n\t\t\t\t else cout <<*(p+i) <<' ';\n\t\t\t }\n\t\t }\n\t\t else if(sum + len == 80)\n\t\t {\n\t\t\t sum = 0;\n\t\t\t cout << *(p+i-1) <<' '<< *(p+i) <>n;\nint t=0;\nchar a[80];\nint i,j;\ncin>>a;\nt=strlen(a)+1;\ncout<>a;\nif(t+strlen(a)<=80)\n{cout<<' '<>n;\n\tint i=0;\n\tscanf(\"%s\", word);\n\tcout<80)\n\t\t{\n\t\t\tcout<> n ;cin.get();\n\tfor ( int i = 1 ; i <= n ; i++ )\n\t{\n\t\tcin.getline(str[i],40,' ');\n\t} \n\tint sum = 0 ;\n\tfor ( int i = 1 ;i <= n ; i ++ )\n\t{\n\t\tsum += strlen(str[i]);\n\t\tif ( sum <= 80 )\n\t\t{\n\t\t\tif ( sum != strlen(str[i]) )\n\t\t\t{\t\t\t\t\n\t\t\t\tcout << \" \" ;\n\t\t\t}\n\t\t\tfor ( int j = 0 ; j < strlen(str[i]); j ++ )\n\t\t\t{\n\t\t\t\tcout << *(str[i]+j);\n\t\t\t}\n\t\t\tsum ++ ;\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl ;\n\t\t\tsum = 0 ;\n\t\t\ti -- ;\n\t\t}\n\t}\n\treturn 0 ;\n}"} +{"label": "98", "index": "48537", "code": "int word_len(char *p) //????????\n{\n\tint n=0;\n\tfor (;*p!=0&&*p!=' ';p++)\n\t\tn++;\n\treturn n;\n}\nint main ()\n{\n\tchar str[10001]={0};\n\tchar *p=str;\n\tint n;\n\tcin>>n;\n\tgetchar();\n\tcin.getline(p,10000,'\\n');\n\tint row=0;\n\tfor (int i=0;i>m;\n\tfor(int i=1;i<=m;i++)\n\t{\n\tcin>>a;\n\t\tif(count==0)\t//?????????????\n\t\t\t{cout< 80)\n {\n printf(\"\\n\");\n t=0;\n t += strlen(a);\n }\n else if(t - strlen(a))\n printf(\" \"); \n printf(\"%s\",a);\n t++;\n if(p) \n pb(word[p-1],p-1,t);\n}\nint main()\n{ \n int n,i;\n char m;\n scanf(\"%d\",&n);\n for(i = n-1;i >= 0; i--)\n {\n scanf(\"%s\",word[i]);\n getchar(); \n }\n pb(word[n-1],n-1,0);\n return 0; \n}\n"} +{"label": "98", "index": "48540", "code": "int main()\n{\n\tint i=0,j,begin,end;\n\tchar a[10000],b[10];\n\tgets(b);\n\tgets(a);\n\twhile(a[i]){\n\t\tbegin=i;\n\t\tfor(j=0;j<80&&a[i];j++)\n\t\t\ti++;\n\t\tif(a[i]==0){\n\t\t\tend=i-1;\n\t\t\ti--;\n\t\t}\n\t\telse{\n\t\t\twhile(a[i]!=' ')\n\t\t\t\t\ti--;\n\t\t\tend=i-1;\n\t\t}\n\t\twhile(begin<=end){\n\t\t\tprintf(\"%c\",a[begin]);\n\t\t\tbegin++;\n\t\t}\n\t\tprintf(\"\\n\");\n\t\ti++;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48541", "code": "/*\n * WenziPaiban.cpp\n *\n * Created on: 2012-12-18\n * Author: ThinkPad\n */\nint main()\n{\n int n,i,count=0;\n cin>>n;\n char a[n][40];\n for(i=0;i>*(a+i);\n for(i=0;i80||i==n-1)\n \t{\n \t\tcout<<*(a+i);\n \t\tcount=0;\n \t\tcout<> n;\n\tfor(int i = 1; i <= n; i++)\n\t{\n\t\tcin >> *(a+i);\n\t\t*(b+i) = strlen(*(a+i));\n\t}\n\tfor(int j = 1; j <= n; j++)\n\t{\n\t\tm = m + *(b+j) + 1;\n\t\tif(m <= 81)\n\t\t{\n\t\t\tcout << *(a+j);\n\t\t\tif(j < n && m + *(b+j+1) < 81) cout << \" \";\n\t\t}\n\t\telse \n\t\t{\n\t\t\tm = 0;\n\t\t\tcout << \"\\n\";\n\t\t\tj--;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48543", "code": "int main()\n{\n\tchar word[500][40];\n\tint n,i,l[500],length=80;\n\tcin>>n;\n\tfor(i=0;i>word[i];\n\t\tl[i]=strlen(word[i]);\n\t}\n\tcout<word);\n for (size=0;(a+i)->word[size]!='\\0';size++);\n (a+i)->len=size;\n }\n count=0;\n for (i=0;ilen+1>80)\n {\n printf(\"\\n\");\n count=0;\n i--;\n }\n else\n {\n if (count==0)\n {\n printf(\"%s\",(a+i)->word);\n count=count+(a+i)->len;\n }\n else\n {\n printf(\" %s\",(a+i)->word);\n count=count+(a+i)->len+1;\n }\n }\n }\n}\n"} +{"label": "98", "index": "48545", "code": "int main()\n{\n\tint a ;\n\tint newline=1;\n\tint sum = 0;\n\tchar word[80]={0};\n\tcin >> a;\n\tmemset(word,0,sizeof(word));\n\tscanf(\"%s\",word);\n\tcout << word;\t\n\tsum = strlen(word);\n\twhile ( a > 1 )\n\t{\n\t\tmemset(word,0,sizeof(word));\n\t\tscanf(\"%s\",word);\n\t\tsum+=strlen(word)+1;\n\t\tif(sum <= 80)\n\t\t{\n\t\t\tcout <<' '<< word;//<<\"sum=\"<80){\n printf(\"\\n%s\",a[i]);\n t=strlen(a[i])+1;\n }\n else if(strlen(a[i])+t<=80){\n if(t+strlen(a[i])+1+strlen(a[i+1])<=80){\n printf(\"%s \",a[i]);\n t=t+strlen(a[i])+1;\n }else{\n printf(\"%s\\n\",a[i]);\n t=0;\n }\n }\n }\n printf(\"%s\",a[n-1]);\n return 0;\n}"} +{"label": "98", "index": "48549", "code": "int main()\n{\n\tint n, i;\n\tcin >> n;\n\tchar word[1000][41];\n\tint temp = 0;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tcin >> word[i];\n\t}\n\tfor(i = 0; i < n - 1; i++)\n\t{\n\t\tif(temp + strlen(word[i]) + strlen(word[i + 1]) + 1 <= 80)\n\t\t{\n\t\t\tcout << word[i] << ' ';\n\t\t\ttemp = temp + strlen(word[i]) + 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << word[i] << endl;\n\t\t\ttemp = 0;\n\t\t}\n\t}\n\tcout << word[n - 1]; \n\treturn 0;\n}"} +{"label": "98", "index": "48550", "code": "\n/*\n * Name:homework.cpp\n * Created on: 2012-12-10\n * Author: Meng Li\n * Function:????\n */\n\n\nint main(){ //???\n\tint n, i;\n\tcin >> n;\n\tchar *start;\n\tchar *temp;\n\ttemp=start;\n\tfor (i=0;i> word;\n\t\tint length=strlen(word);\n\t\tif (temp-start+length<80){\n\t\t\tif (temp-start!=0){\n\t\t\t\tcout << ' ';\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t\tcout << word;\n\t\t\ttemp=temp+length;\n\t\t}\n\t\telse{\n\t\t\tstart=temp;\n\t\t\tcout << endl;\n\t\t\tcout << word;\n\t\t\ttemp=temp+length;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48551", "code": "/*\n * qimo_2.cpp\n * Name:????\n * Created on: 2011-1-9\n * Author: Wang Ju\n */\n\nint main() {\n\tint l = 0, n;\n\tchar *p=NULL;\n\tchar s[2000], a[10];\n\tcin >> n;\n\tcin.getline(a, 10);\n\tl = 0;\n\tcin >> s;\n\tp = s;\n\tcout << p;\n\tl = strlen(s);\n\twhile (n > 1) {\n\t\tcin >> s;\n\t\tl = l + strlen(s);\n\t\tp = s;\n\t\tif (l == 80) {\n\t\t\tcout << \"\\n\" << p;\n\t\t\tl = strlen(s);\n\t\t} else {\n\t\t\tif (l < 80) {\n\t\t\t\tcout << \" \" << p;\n\t\t\t\tl++;\n\t\t\t} else if (l > 80) {\n\t\t\t\tcout << \"\\n\" << p;\n\t\t\t\tl = strlen(s);\n\t\t\t}\n\t\t}\n\t\tn--;\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48552", "code": "void main()\n{\n\tchar s[1000][40];\n\tint n,len=0,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t{\n\t\t\tlen=strlen(s[i+1]);\n\t\t\tprintf(\"%s\",s[i]);\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\telse\n\t\t\tprintf(\"%s \",s[i]);\n\t}\n\tprintf(\"%s\",s[n-1]);\n}"} +{"label": "98", "index": "48553", "code": "struct word\n{\n\tchar vol[40];\n\tint len;\n\tstruct word * next;\n};\nstruct word * create(int n)\n{\n\tstruct word *p1,*p2,*head;\n\tint i;\n\tfor(i=0;ivol);\n\t\tp1->len=strlen(p1->vol)+1;\n\t\tif(i==0)\n\t\t{\n\t\t\thead=p1;\n\t\t\tp2=p1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp2->next=p1;\n\t\t\tp2=p1;\n\t\t}\n\t}\n\tp1->next=NULL;\n\treturn head;\n}\nvoid print(struct word * head,int n)\n{\n\tstruct word * pa;\n\tint count=0;\n\tpa=head;\n\twhile(n)\n\t{\n\t\tif(count==0)\n\t\t{\n\t\t\tprintf(\"%s\",pa->vol);\n\t\t\tcount+=pa->len;\n\t\t\tpa=pa->next;\n\t\t\tif(pa)\n\t\t\tcount+=pa->len;\n\t\t}\n\t\telse if(count<=81&&count!=0)\n\t\t{\n\t\t\tprintf(\" %s\",pa->vol);\n\t\t\tpa=pa->next;\n\t\t\tif(pa)\n\t\t\tcount+=pa->len;\n\t\t}\n\t\telse if(count>81)\n\t\t{\n\t\t\tprintf(\"\\n%s\",pa->vol);\n\t\t\tcount=pa->len;\n\t\t\tpa=pa->next;\n\t\t\tif(pa)\n\t\t\tcount+=pa->len;\n\t\t}\n\t\tn--;\n\t}\n}\nint main()\n{\n\tint n;\n\tstruct word * head;\n\tscanf(\"%d\",&n);\n\thead=create(n);\n\tprint(head,n);\n\treturn 0;\n}"} +{"label": "98", "index": "48554", "code": "int main()\n{\n\tchar a[1000][42];\n\tint n,len[1000],sum=0;\n\tcin>>n;\n\tint i;\n\tfor(i=0;i>a[i];\n\t\tlen[i]=strlen(a[i]);\n\t}\n\tfor(i=0;i>N;\n\tconst int n=N;\n\tchar a[n][50];\n\tfor(int i=0;i<=n-1;++i)\n\t\tcin>>*(a+i);\n\tfor(int i=0;i<=n-1;++i){\n\t\tif(number+strlen(*(a+i))<=80){\n\t\t\tif(i==0) cout<<*(a+i);\n\t\t\tif(i!=0) cout<<' '<<*(a+i);\n\t\t\tnumber+=1+strlen(*(a+i));\n\t\t}\n\t\telse {\n\t\t\tnumber=0;\n\t\t\tcout<> n;\n\tfor(i = 0; i < n; i ++)\n\t\tcin >> *(a+i); //????\n\tint sum = 0;\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tif(sum == 0) //?????????\n\t\t{\n\t\t\tcout << *(a + i);\n\t\t\tsum = sum + strlen(*(a + i));\n\t\t}\n\t\telse if (sum == 80) //??????80???\n\t\t{\n\t\t\tcout << endl;\n\t\t\tsum = 0;\n\t\t\ti --;\n\t\t}\n\t\telse if (sum + strlen(*(a + i)) >= 80) //?????????????80\n\t\t{\n\t\t\tcout << endl ;\n\t\t\tsum = 0;\n\t\t\ti --;\n\t\t}\n\t\telse //?????\n\t\t{\n\t\t\tcout << ' ' << *(a + i);\n\t\t\tsum = sum + strlen(*(a + i)) + 1;\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "98", "index": "48557", "code": "int main()\n{\n\tint n,i,len[9999],j,total=0,k=0;\n\tchar x[9999][43];\n\tchar (*p)[43]=x;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t{\n\t\t\tfor(j=k;j> n ;\n\tchar paper[500][50] ;\n\tfor ( int i = 0 ; i < n ; i++ )\n\t\tcin >> * ( paper + i ) ;\n\tint l = 81 ;\n\tfor ( int i = 0 ; i < n ; i++ )\n\t{\n\t\tif ( l + strlen( * ( paper + i ) ) + 1 <= 80 )//???????\n\t\t{\n\t\t\tcout << ' ' << * ( paper + i ) ;\n\t\t\tl = l + strlen( * ( paper + i ) ) + 1 ;\n\t\t}\n\t\telse//???????\n\t\t{\n\t\t\tcout << endl ;\n\t\t\tcout << * ( paper + i ) ;\n\t\t\tl = strlen( * ( paper + i ) ) ;\n\t\t}\n\t}\n\n\treturn 0 ;\n}\n// ( > w < ) finished~"} +{"label": "98", "index": "48559", "code": "\n\nchar word[1000][41];\nint n;\n\n\nint main()\n{\n\tcin >>n;\n\tfor(int i = 0;i < n; i ++)\n\t\tcin >> word[i];\n\tint count = 0;\n\tint p = 0;\n\n\twhile(p < n)\n\t{\n\t\tint len = strlen(word[p]);\n\t\tif(count == 0)\n\t\t{\n\t\t\tprintf(\"%s\", word[p]);\n\t\t\tp ++;\n\t\t\tcount += len;\n\t\t}\n\t\telse if(len + 1 + count <= 80)\n\t\t{\n\t\t\tprintf(\" %s\", word[p]);\n\t\t\tp ++;\n\t\t\tcount += len + 1;\n\t\t}\n\t\telse if(len + 1 + count > 80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tcount = 0;\n\t\t}\n\t\telse\n\t\t\tprintf(\"ERROR!-----------------------------------\");\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48560", "code": "\nint main()\n{\n\tint n;\n\tstruct W{\n\t\tchar word[100];\n\t\tint len;\n\t}w[520];\n\tint i,m,j;\n\tscanf(\"%d\",&n);\n\tm=0;\n\tfor (i=0;i81)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%s \",w[i].word);\n\t\t\tm=w[i].len+1;\n\t\t}\n\telse\n\t{\n\t\tprintf(\"%s\\n\",w[i].word);\n\t\tm=0;\n\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48561", "code": "int main(){\n\tchar str[1000][100]={0};\n\tint n,num[1000]={0},sum=0;\n\tcin>>n;\n\tfor(int i=0;i>*(str+i);\n\tfor(int j=0;*(*(str+i)+j)!=0;j++)(*(num+i))++;\n\t}\n\tcout<<*str;sum=*(num);\n\tfor(int i=1;i80){cout<80)\n\t\t\t{\n\t\t\t\tprintf(\"%s\\n\",s[i]);\n sum=0;\n\t\t\t}else\n\t\t\t{\n\t\t\t\tprintf(\"%s \",s[i]);\n\t\t\t\tsum+=strlen(s[i])+1;\n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\tif(k==80)\n\t\t\t{\n\t\t\t\tprintf(\"%s\\n\",s[i]);\n\t\t\t\tsum=0;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%s\",s[n-1]);\n\treturn 0;\n}"} +{"label": "98", "index": "48563", "code": "int main()\n{\n int l=0,i,n;\n char word[1500][50];\n cin>>n;\n for(i=0;i>word[i];\n for(i=0;i80)\n\t\t{\n\t\t\tprintf (\"\\n\");\n\t\t\ttmpl=0;\n\t\t\tgoto l;\n\t\t}\n //printf (\"%d\",tmpl);\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48566", "code": "\n\nint main()\n{\n\tint n,i,m=0,j=0;\n\tint a[10000];\n\tchar word[10000][40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i81)\n\t{printf(\"%s\\n\",word[i]);\n\tm=a[i+1]+1;i++;continue;}\n\telse if(m==81)\n\t{printf(\"%s%c\",word[i],(i> n;\n\tfor(i = 0 ; i < n ; i++)\n\t{\n\t\tcin >> word[i];\n\t}\n\tcout << word[0];\n\tcount = count + strlen(word[0]) + 1;\n\tfor(i = 1 ; i < n; i++)\n\t{\n\t\tif(count + strlen(word[i]) > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcount = strlen(word[i]) + 1;\n\t\t\tcout << word[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \" \" << word[i];\n\t\t\tcount = count + strlen(word[i]) + 1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48568", "code": "int main()\n{\n\tint n, counter = 0,len;\n\tchar a[300][50];\n\tcin >> n;\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tcin >> a[i];\n\t}\n\tfor (int i = 0; i < n ; i++)\n\t{\n\t\tif (counter == 0)\n\t\t{\n\t\t\tcout << *(a + i);\n\t\t\tcounter += strlen(*(a + i));\n\t\t}\n\t\telse if (counter + strlen (*(a + i)) + 1 < 80)\n\t\t{\n\t\t\tcout << \" \" << *(a + i);\n\t\t\tcounter += strlen(*(a + i)) + 1;\n\t\t}\n\t\telse if (counter + strlen (*(a + i)) + 1== 80)\n\t\t{\n\t\t\tcout << \" \" << *(a + i) << endl;\n\t\t\tcounter =0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl << *(a + i);\n\t\t\tcounter = strlen (*(a + i));\n\t\t}\n\t}\n\n\t\n\treturn 0;\n}"} +{"label": "98", "index": "48569", "code": "int main(int argc,char*argv[])\n{\n\tint n,i,m=0,t=0;\n\tchar word[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tint t=0;\n\tfor (int i=0;i>s;\n\t\tif (t==0)\n\t\t{\n\t\t\tprintf(\"%s\",s);\n\t\t\tt+=strlen(s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tt+=strlen(s)+1;\n\t\t\tif (t<=80)\n\t\t\t{\n\t\t\t\tprintf(\" %s\",s);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\"\\n%s\",s);\n\t\t\t\tt=strlen(s);\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn 0;\n}"} +{"label": "98", "index": "48571", "code": "int main()\n{\n\tint n,i,j,k,l[1000],sum;\n\tchar a[1000][50];\n\tcin>>n;\n\tcin.get();\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>*(a+i);\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tl[i]=strlen(*(a+i));\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tsum=0;\n\t\tfor(j=i;j<=n;j++)\n\t\t{\n\t\t\tif(sum+l[j]>80)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t sum+=l[j]+1;\n\t\t\t}\n\t\t}\n\t\tif(i==n)\n\t\t{\n\t\t\tcout<<*(a+n)<>n;//????\n\tscanf(\"%s\",word);//????\n\tl=strlen(word);//???????\n\tfor(i=0;i80&&L<=80)//?k>80??L<=80??????????????\n\t\t{\n\t\t\tcout<> n ; \n\tfor ( i = 0 ; i < n ; i++ )\n\t{\n\t\tj = 0 ;\n\t\tp = *( before + i ) ;\n\t\twhile ( 1 )\n\t\t{\n\t\t\tc = cin.get() ;\n\t\t\tif ( c == ' ' || c == '\\n' )\n\t\t\t\tcontinue ;\n\t\t\telse\n\t\t\t\tbreak ;\n\t\t}\n\t\t*p = c ;\n\t\twhile ( 1 ) \n\t\t{\n\t\t\tc = cin.get() ;\n\t\t\tif ( c == ' ' || c == '\\n' )\n\t\t\t\tbreak ;\n\t\t\telse\n\t\t\t\t*++p = c ;\n\t\t}\n\t\t*++p = '\\0' ;\n\t}\n\t/*\tfor ( i = 0 ; i < n ; i++ )\n\t{\n\t\tcout << before[i] << \" \" ;\n\t}*/\n\tfor ( i = 0 ; i < n ; i++ )\n\t{\n\t\tlen = strlen( before[i] ) ;\n\t\tsum = sum + len ;\n\t\tsum1 = sum + 1 + strlen( before[i+1] ) ;\n\t\tif ( sum > 80 )\n\t\t{\n\t\t\tsum = len ;\n\t\t\tsum1 = sum + 1 + strlen( before[i+1] ) ;\n\t\t\tcout << endl ;\n\t\t}\n\t\tcout << before[i] ;\n\t\tif ( i < n - 1 && sum1 <= 80 )\n\t\t{\t\n\t\t\tcout << \" \" ;\n\t\t\tsum++ ;\n\t\t}\n\t\telse\n\t\t\tsum++ ;\n\t}\n\treturn 0 ;\n}\n"} +{"label": "98", "index": "48574", "code": "\nint main()\n{\n\tchar word[50];\n\tint count=0;\n\tint n;\n\tcin>>n;\n\tscanf(\"%s\", word);\n\tcount = strlen(word);\n\tcout<>n;\n\tchar ch[300][50];\n\tint lengthch[300];\n\tfor (int i=0;i>ch[i];\n\t lengthch[i]=strlen(ch[i]);\n\t}\n\tint num=80;\n\tfor (int i=0;i0)\n\t\t{cout<>n;\n\tfor(i=0;i>words[i];\n\t}\n \n\tfor(i=0;i81)\n\t\t\t\tL=l+1;\n\t\t\tif(L!=(l+1))\n\t\t\t\tprintf(\" %s\",word);\n\t\t\telse\n\t\t\t\tprintf(\"\\n%s\",word);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48579", "code": "int find(char *s);\nchar s[1000];\nint main()\n{\n\tint i,j,n,d=0;\n\tchar c;\n\tscanf(\"%d%c\",&n,&c);\n\tgets(s);\n\tfor(i=0;*(s+i)!='\\0';i++)\n\t{\n\t\td+=1;\n\t\tif(*(s+i)==' '&&d<=81&&d+find(s+i)>81)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\td=0;\n\t\t}\n\t\telse\n\t\t\tprintf(\"%c\",*(s+i));\n\t}\n\tgets(s);\n\tgets(s);\n\treturn 0;\n}\nint find(char *s)\n{\n\tint i,j,k;\n\tfor(i=1;i<=40;i++)\n\t{\n\t\tif(*(s+i)==' ')\n\t\t\treturn i;\n\t}\n}"} +{"label": "98", "index": "48580", "code": " \nint main()\n{\n\tint n;\n\tcin>>n;\n\tchar a[1000][40]={'\\0'};\n\tchar b[40];\n\tchar *p=*a;\n\tchar *q=&b[0];\n\tint i,j;\n\tint N;\n\tint num[1000]={0};\n\tint *x=num;\n\tint count=0;\n\tfor(i=0;i>b;\n\t\tN=strlen(b);\n\t\t*(x+i)=N;\n\t\tfor(j=0;j80)\n\t\t{\n\t\t\tfor(j=0;j<*(x+i);j++)\n\t\t\t{\n\t\t\t\tcout<<*(p+j);\n\t\t\t}\t\n\t\t\tcount=count+*(x+i)+1;\n continue;\n\t\t}\n\t\tif(count+*(x+i)<=80&&i==n-1)\n\t\t{\n\t\t\tfor(j=0;j<*(x+i);j++)\n\t\t\t{\n\t\t\t\tcout<<*(p+j);\n\t\t\t}\t\n\t\t\tcount=count+*(x+i)+1;\n continue;\n\t\t}\n\t\tif(count+*(x+i)>80&&i!=n-1)\n\t\t{\n\t\t\tcout<80&&i==n-1)\n\t\t{\n\t\t\tcout<>n; \n\tfor (i=0;i<=n-1;i++) \n\t{\n\t\tcin>>word[i]; \n\t}\n\ti=0;\n\twhile (i!=n-1)\n\t{\n\t\tl1=strlen(word[i]); \n\t\tl2=strlen(word[i+1]);\n\t\tif ((aa+l1+l2+1>80)&&(aa+l1<=80)) \n\t\t{\n\t\t\tcout<>n; //???????\n\tfor(int i=0;i80) //?????i?????????i+1???\n\t\t{\n\t\t\tcout<<*p<> n;\n sum = 0;\n for (i = 1; i <= n; i++)\n {\n cin >> a;\n l = strlen(a);\n if (sum == 0) \n {\n for (j = 0; j 80 && sum1+count<=80) {\n printf(\"%s\\n\",a[i]);\n count=sum1=0;\n sum2=strlen(a[i+1]);\n }\n else {\n printf(\"\\n\");\n count=sum1=0;i--; \n sum2=strlen(a[i]);\n \n }\n }\n \n \n printf(\"%s\\n\",a[n-1]);\n \n \n\n return 0;\n}\n\n"} +{"label": "98", "index": "48585", "code": "int main(){\n\tchar a[300][40];\n\tint b[300],c=0;\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i,j,r,k;\n\tint p=0;\n\tfor(i=0;i=82){\n\t\t\tfor(j=p;j>n;\n\tcin.get();\n\tint i=0,j=0,k=0;\n\tchar words[30000]={0};\n\tcin.get(words,30000,'\\n');\n\t//cout<>n;\n\tchar a[20];\n\tint len,relen=0;\n\tcin>>a;\n\trelen+=strlen(a);\n\tcout<>a;\n\t\tlen=strlen(a);\n\t\tif(relen+1+len<=80)\n\t\t{\n\t\t\trelen+=1+len;\n\t\t\tcout<<' '<> n;\n\tfor(i = 1; i <= n; i++)\n\t\tcin >> a[i];\n\tp = *a;//??a[0]\n\tcout << *(a+1);//?????\n\tnlen = mystrlen(*(a+1));\n\tcnt = nlen;\n\tfor(j = 2; j <= n; j++)\n\t{\n\t\tnlen = mystrlen(*(a+j));\n\t\tif(cnt + nlen + 1 <= 80)//????????\n\t\t{\n\t\t\tcout << \" \" << *(a+j);\n\t\t\tcnt += nlen + 1;\n\t\t}\n\t\telse//????????\n\t\t{\n\t\t\tcnt = nlen;\n\t\t\tcout << endl;\n\t\t\tcout << *(a+j);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48589", "code": "//??????????????????????\nint main()\n{\n\tint number=0;\n\tchar string1[50],string2[50];\n\tint length1=0,length2=0,length3=0;\n\tint k=0,m=0,n=0;\n\tcin>>number;\n\tgets( string1 ); //????????????\n\n\tcin>>string1; //string1?????\n\tk=1; //k?????????\n\tcout<>string2;\n\t\tlength2=strlen(string2);\n\t\tlength1=length1+length2+1;\n\n\t\tif ( length1<=80 ) //??????????<=80?????????????\n\t\t\tcout<<\" \"<80 ) //??????????????80???????????\n\t\t{\n\t\t\tcout<>n;\n\tcin.get();\n\tcin.get(a,10000,'\\n');\n\tchar *p=a;\n\tint lenth[100]={0};\n\tint m=0;\n\tint flag=0;\n\twhile(*p!='\\0'&&flag==0)\n\t{\n\t\tint i=0;\n\t\tfor(i=0;i<80;i++)\n\t\t{\n\t\t\tp++;\n\t\t\tif(*p=='\\0')\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==0)\n\t\t{\n\t\t\tif(*p!=' ')\n\t\t\t\tfor(;*p!=' ';p--);\n\t\t\t*p='\\0';\n\t\t}\n\t\tp=a;\n\t\tfor(int j=0;j> n;\n\tfor (i = 1; i<= n;i++)\n\t{\n\t\tcin >> ch;\n\t\tp = ch;\n\t\twhile (*p !='\\0' )\n\t\t{\n\t\t\tp++;\n\t\t\tcount++;\n\t\t}\n\t\tif (line + count <= 80 && line == 0)\n\t\t{\n\t\t\tline = count;\n\t\t\tcout << ch;\n\t\t\tcount = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(line + count + 1<= 80)\n\t\t\t{\n\t\t\t\tcout << ' ' << ch;\n\t\t\t\tline = count +1 + line;\n\t\t\t\tcount = 0;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\tif (line + count + 1> 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << ch;\n\t\t\tline = count;\n\t\t\tcount = 0;\n\t\t}\n\t\t\n\t}\n\treturn 0;\n}\n\n\n\n\n\n\n\n\n"} +{"label": "98", "index": "48592", "code": "int main()\n{\n\tint n,i,j,k,len[8000],sum=0,a;\n\tchar str[8000][40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tsum=0;\n\t\t}\n\t}\n if(a<=80)\n\t\t{\n\t\t\tprintf(\"%s\",str[n-1]);\n\t\t}\n\t\tif(a>80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%s\",str[n-1]);\n\t\t}\n\n\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "98", "index": "48593", "code": "int main()\n{\n int n;\n char c[450][50];\n int sum[450]={0},b[450];\n \n \n cin>>n;\n for(int i=0;i>c[i];\n b[i]=strlen(c[i]);\n }\n sum[0]=b[0]+1;\n sum[1]=sum[0]+b[1]+1;\n cout< 81 &&sum[i-1]<=81)\n {\n cout<81) cout<80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%s\",word[i]);\n\t\t\tq=strlen(word[i]);\n\t\t}\n\t}\n}"} +{"label": "98", "index": "48595", "code": "\n\nint main()\n{\n\tchar t[85],in[45];\n\tchar *p = t, *q = in;\n\tint n;\n\tcin>>n;\n\tint i,sum = 0,len,j,k = 0;\n\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tcin>>in;\n\n\t\tq = in;\n\t\tk = 0;\n\n\t\tlen = strlen(in);\n\n\t\twhile(*q != '\\0')\n\t\t{\n\t\t\t*p++ = *q++;\n\t\t\tk++;\n\t\t\tsum ++;\n\n\t\t\tif(sum > 80)\n\t\t\t{\n\t\t\t\tp = p - k;\n\t\t\t\tsum -= k;\n\n\t\t\t\tif(*(p-1) == ' ')\n\t\t\t\t{\n\t\t\t\t\tp --;\n\t\t\t\t\tsum --;\n\t\t\t\t}\n\n\t\t\t\tq = in;\n\t\t\t\tk = 0;\n\n\t\t\t\t*p = '\\0';\n\t\t\t\tcout<80) \n\t {sum=strlen(string);printf(\"\\n\");t=0;}\n if(i>n;\n\tfor(i=0;i>word[i];\n\t}\n\tfor(;count=n)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlen+=strlen(word[count])+1;\n\t\t\t\tcout<<\" \"<> n;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\t\tcin >> a;\n\t\t\tlenth += strlen(a) + 1;\n\t\t\tif((lenth - 1) <= 80)\n\t\t\t{\n\t\t\t\tif(flag == 1)\n\t\t\t\t\tcout << ' ';\n\t\t\t\tcout << a;\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t\tif(lenth - 1 > 80)\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\tlenth = strlen(a) + 1;\n\t\t\t\tcout << a;\n\t\t\t}\n\t\t\tfor(j = 0; j < 40; j++)\n\t\t\t\t*(p + j) = NULL; //???????\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48599", "code": "int main()\n{\n\tint n,i,len1=0,len2;\t\t//len1?????????????len2????????????\n\tchar words[1000][41];\t\t//????\n\tchar (*p)[41]=NULL;\t\t\t//?????????\n\tp=words;\n\tcin>>n;\n\tfor(i=0;i>*(p+i);\n\tlen2=strlen(*p)+1;\n\tfor(i=0;i>n;\n\tint i;\n\tint j;//????\n\tint num=0;//?????\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>c;\n\t\t//for(;*p!=0;p++);j=p-c;\n\t\tfor(j=0;*p!=0;p++,j++);\n\t\tif(num==0)//?????????\n\t\t{\n\t\t\tcout<80)//+1??????????\n\t\t{\n\t\t\tcout<81){\n\t\tprintf(\"\\n%s\", string[i]);\n\t\tnum=b+1;\n\t }\n }\n}\n"} +{"label": "98", "index": "48603", "code": "\nint main(){\n\tchar word[42];\n\tint chars_left,word_length,word_num;\n\n\tscanf(\"%d\",&word_num);\n\tscanf(\"%s\",&word);\n\tprintf(\"%s\",word);\n\tword_num--;\n\tword_length=strlen(word);\n\tchars_left=80-word_length;\n\twhile(word_num!=0){\n\t\tscanf(\"%s\",&word);\n\t\tword_length=strlen(word);\n\t\tif(chars_left>n;\n\tfor(i=0;i>a[i];\n\t\t//cout<<*p<80))\n {printf(\"\\n\");sum=0;i--;}\n else\n {\n if((sum+strlen(letter[i])+1+strlen(letter[i+1]))>80)\n {sum+=strlen(letter[i]);\n printf(\"%s\",letter[i]);sum++;}\n else{\n sum+=strlen(letter[i]);\n printf(\"%s \",letter[i]);sum++;\n }\n }}\n else\n printf(\"%s\",letter[i]);\n }\n}\n"} +{"label": "98", "index": "48606", "code": "int main()\n{\nchar x[500][50]={0};\n int i,j,m,k,total,temp,y[500];\n scanf(\"%d\",&k);\n temp=k;\n for(i=0;i<=k-1;i++)\n scanf(\"%s\",x[i]);\n for(i=0;i<=k-1;i++)\n y[i]=strlen(x[i]);\n for(i=0;;)\n {\n printf(\"%s\",x[i]);\n total=y[i];\n temp--;\n for(j=i+1;;j++)\n {\n total=total+y[j]+1;\n if(total>80) break;\n temp--;\n if(temp==0) break;\n }\n if(temp!=0)\n {\n for(m=i+1;m<=j-1;m++)\n printf(\" %s\",x[m]);\n printf(\"\\n\");\n i=j;\n }\n else \n {\n for(m=i+1;m<=k-1;m++)\n printf(\" %s\",x[m]);\n printf(\"\\n\");\n break;\n }\n }\nreturn 0;\n}"} +{"label": "98", "index": "48607", "code": "int main ()\n{\n\tint n,i,k=0,sum[2000]={0};\n\tchar word[2000][45];\n\tcin>>n;\n\tfor(i=0;i>word[i];\n\tfor(i=0;i80)\n\t\t{\n\t\t\tcout<>n;\n\tfor(i=0;i>word[i];\n char *p,*temp;\n\tfor(i=0;i>n;\n\tt=n;\n\tn--;\n\tscanf(\"%s\",word);\n\tcout <>n;\n\tfor(int i = 0;i < n;i++){\n cin>>*(word+i);//??????\n }\n\tcout<<*(word);//??????\n\tsum = strlen(*word) + 1;//???????????\u0093 \u0094\n for(int i = 1;i < n;i++){\n \tsum = sum +strlen(*(word+i));\n if(sum <= 80){//?????????80\n \t cout<<' ';\n sum ++;\n }\n else {\n cout<>n;//?????\n\tt=n;\n\twhile(n>0)//?????????\n\t{\n\t\tscanf(\"%s\",word);//????\n\t\tif(n!=t)\n\t\t{\n\t\tif((sum+strlen(word))<=80){cout<<\" \";}//?????80???????\n\t\tif((sum+strlen(word))>80) {cout<>n;\n char text[42*n];\n p=text;\n char c[1];\n cin.getline(c,1);\n cin.getline(text,42*n); //cout<<\"*********************\"<80){\n\n paiban(text,79);\n }\n else\n cout<>n;\n\tfor(i=0;i>a[i];\n\t}\n\tfor(i=0;i>n;\n\tfor(i=1;i<=n;i++) cin>>a[i];//????\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(sum==0)\n\t\t{\n\t\t\tsum=strlen(a[i]);\n\t\t}\n\t\telse if(strlen(a[i])+1+sum<=80) \n\t\t{\n\t\t\tcout<<\" \";\n\t\t\tsum=sum+1+strlen(a[i]);\n\t\t}\n\t\telse if(strlen(a[i])+1+sum>80)\n\t\t{\n\t\t\tcout<> n;\n\tfor ( int i = 1; i <= n; i++ )\n\t{\n\t\tcin >> p;\n\t\tl = 0;\n\t\tfor ( *p; *p != '\\0'; *p++ )\n\t\t{\n\t\t\tl++;\n\t\t}\n\t\tcount = count + l;\n\t\tp=a;\n\t\tif ( count < 80 && count != l )\n\t\t{\n\t\t\tcout << \" \" << p;\n\t\t\tcount++;\n\t\t}\n\t\telse if ( count < 80 && count == l )\n\t\t{\n\t\t\tcout << p;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << p;\n\t\t\tcount = l;\n\t\t}\n\t}\n\treturn 0;\n}\n\t\n\t"} +{"label": "98", "index": "48620", "code": "int main ()\n{\n\tint a[1000],i,n,sum=0;\n\tchar word[1000][40]={\"\"};\n\tscanf(\"%d\",&n);\n\tfor (i=0;i80) printf(\"\\n\");\n\t\t\telse\n\t\t\t{\n\t\t//\tfor(j=sum+1;j<=80;j++) printf(\" \");\n\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\tsum=0;\n\t\t\ti=i-1;\n\t\t}\n\t\tif(i==n-1) break;\n\t}\n\n\n\treturn 0;\n}"} +{"label": "98", "index": "48622", "code": "\n\nint main()\n{\n char word[1000][50];\n int sum=0,n,i;\n cin>>n;\n cin.get();\n for(i=0;i80)\n {\n cout<> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> word[i];\n\t\tlen = strlen(word[i]);\n\t\tword[i][len] = 0;\n\t}\n\ti = 0;\n\twhile(i < n)\n\t{\n\t\tp = word[i];\n\t\tj = 0; \n\t\t{\n\t\t\tlen = 0;\n\t\t//\twhile (*(p+len) != 0) len++;\n\t\tlen = strlen(word[i]);\n\t\t//\tcout << count << endl;\n\t\t//\tcout << len << endl;\n\t\t\tif (len > (80 - count))\n\t\t\t{\n\t\t\t\tcout << endl;\n\t\t\t\twhile (*p != 0)\n\t\t\t\t{\n\t\t\t\t\tcout << *p;\n\t\t\t\t\tp++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ti++;\n\t\t\t\tcount = len + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (! count == 0) \tcout << \" \";\n\t\t\t\twhile (*p != 0)\n\t\t\t\t{\n\t\t\t\t\tcout << *p;\n\t\t\t\t\tp++;\n\t\t\t\t}\n\t\t\t\tcount += len;\n\t\t\t\tcount++;\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}"} +{"label": "98", "index": "48625", "code": "int main()\n{\n\tchar c[500][100];\n\tint d[500];\n\tint i=0;\n\tint a,sum,num,w;\n\tscanf(\"%d\",&a);\n\tdo\n\t{\n\t\tscanf(\"%s\",c[i]);\n\t\ti++;\n\t}while(i> n;\n\tgetchar();//?????????\n\tchar text[1000][45];\n\tfor (i = 0; i < n - 1; i++)\n\t\tfor (k = 0; k < 40; k++) {\n\t\t\t*(*(text+i)+k) = getchar();\n\t\t\tif (*(*(text+i)+k) == ' ') {\n\t\t\t\t*(*(text+i)+k+1) = '\\0';\n\t\t\t\tbreak;//???n-1???\n\t\t\t}\n\t\t}\n\tcin.getline(*(text+n-1),200);//????????????????\n\tfor (i = 0; i < n; i++) {\n\t\tsum = sum + strlen(*(text+i));//?????????80\n\t\tif (sum - 1 > 80) {\n\t\t\tcout << endl;\n\t\t\tsum = strlen(*(text+i));\n\t\t}\n\t\tk = 0;\n\t\twhile (true) {\n\t\t\tif(i != n - 1)\n\t\t\tif (*(*(text+i)+k) != ' ') {\n\t\t\t\tcout << *(*(text+i)+k);\n\t\t\t\tk = k + 1;//?????\n\t\t\t} else {\n\t\t\t\tif (sum + strlen(*(text+i + 1)) - 1 <= 80)\n\t\t\t\t\tcout << \" \";\n\t\t\t\tbreak;//???????????????\n\t\t\t}\n\t\t\tif (i == (n - 1))\n\t\t\t\tif (*(*(text+i)+k)!='\\0') {\n\t\t\t\t\tcout << *(*(text+i)+k);\n\t\t\t\t\tk = k + 1;\n\t\t\t\t} else\n\t\t\t\t\tbreak;//??????????????????\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48627", "code": "/*??\n ???????????????????????????????????????????????????\n ?????80???????????????????????????????????????????\n ????\n ????????n?????????????. ???n??????????????????????????????????????40?????\n ????\n ??????????????????80????????????????????????????*/\nint main()\n{\n int n=0,sum=0,length=0;\n char *p=NULL;\n char istring[30];\n cin>>n;\n p=istring;memset(istring,'\\0',sizeof(istring));\n cin>>istring;\n cout<>istring;\n length=strlen(istring);\n if(sum+length+1>80)\n {\n cout<>n;\n\tfor(i=0;i>danci[i];\n\tfor(i=j;i81)\n\t\t\t\tbreak;\n\t\t}\n\t\tif(a<=81)\n\t\t\tfor(int h=i;h ks; k--)\n if(a[k] == ' ')\n break;\n for(i = ks; i < k; i++)\n cout << a[i];\n cout << endl;\n biubiu(k + 1, ll);\n }\n\n }\n }\n\n}\n\nint main()\n{\n scanf(\"%d\\n\", &n);\n gets(a);\n l = strlen(a);\n int ll = l;\n i = l;\n while(a[i] == ' ')\n {\n i --;\n ll --;\n }\n for(i = 0; i < l; i++)\n {\n if(i == 0 && a[i] == ' ')\n {\n for(j = 0; j < l - 1; j++)\n a[j] = a[j + 1];\n i--;\n ll--;\n }\n }\n biubiu(0, ll);\n return 0;\n}\n/*\n84\nOne sweltering day, I was scooping ice cream into cones and told my four children they could \"buy\" a cone from me for a hug. Almost immediately, the kids lined up to make their purchases. The three youngest each gave me a quick hug, grabbed their cones and raced back outside. But when my teenage son at the end of the line finally got his turn to \"buy\" his ice cream, he gave me two hugs. \"Keep the changes,\" he said with a smile.\n*/\n"} +{"label": "98", "index": "48630", "code": "/*\n * ???:passage.cpp\n * ??:??1200012840\n * ????:2012-12-14\n * ??:?????????????????????????????????????\n * ??????????????\n * ?????80???????????????\n * ????????????????????????????\n * ????????????\n */\n\n\n\nint main()\n{\n\tint n,i,line=0,m;//????\n\tchar a[45],*p;//???????\n\tcin>>n;//??\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a;//???????\n\t\tp=a;//?????????\n\t\tif(line==0)//??????????\n\t\t\tm=0;\n\t\telse\n\t\t\tm=1;\n\t\twhile(*p!='\\0')//???????\n\t\t{\n\t\t\tp++;\n\t\t\tm++;\n\t\t}\n\t\tif(line+m<=80)//????????\n\t\t{\n\t\t\tif(line!=0)//???????????\n\t\t\t\tcout<<' ';\n\t\t\tline=line+m;\n\t\t\tcout<> n;\n\tcin.get();\n\tfor (i = 0; i < n; i++) //????????????,???????????\n\t\tcin >> *(str + i);\n\tcout << *str; //?????????,?????????\n\tletnum += strlen(*str);\n\tfor (i = 1; i < n; i++)\n\t{\n\t\tif (strlen(*(str + i)) + 1 + letnum <= 80)\n\t\t{\n\t\t\tcout << \" \" << *(str + i); //????????????????????,?????????\n\t\t\tletnum += strlen(*(str + i)) + 1;\n\t\t}\n\t\telse //??????,???????????\n\t\t{\n\t\t\tcout << endl << *(str + i);\n\t\t\tletnum = strlen (*(str + i));\n\t\t}\n\t}\n\tcout << endl; //???????????\n\treturn 0;\n}\n"} +{"label": "98", "index": "48632", "code": "int main ()\n{\n\tint n ;\n\tchar str[10001][40];\n\tcin >> n ;cin.get();\n\tfor ( int i = 1 ; i <= n ; i++ )\n\t{\n\t\tcin.getline(str[i],40,' ');\n\t} \n\tint sum = 0 ;\n\tfor ( int i = 1 ;i <= n ; i ++ )\n\t{\n\t\tsum += strlen(str[i]);\n\t\tif ( sum <= 80 )\n\t\t{\n\t\t\tif ( sum != strlen(str[i]) )\n\t\t\t{\t\t\t\t\n\t\t\t\tcout << \" \" ;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = sum ;\n\t\t\t}\n\t\t\tfor ( int j = 0 ; j < strlen(str[i]); j ++ )\n\t\t\t{\n\t\t\t\tcout << *(str[i]+j);\n\t\t\t}\n\t\t\tsum ++ ;\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl ;\n\t\t\tsum = 0 ;\n\t\t\ti -- ;\n\t\t}\n\t}\n\treturn 0 ;\n}"} +{"label": "98", "index": "48633", "code": "//??????????????????????....???strlen???????????????...???????????= =\nint main()\n{\n\tchar a[45];\n\tint m,n;\t//m?????n????\n\tint count=0;\n\tcin>>m;\n\tn=m+1;\t\t//??n???\n\tfor(int i=1;i<=m;i++)\n\t{\n\tcin>>a;\n\t\tif(count==0)\n\t\t\t{cout<81)||(i==1))\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tsum=m;\n\t\t\tprintf(\"%s\",word);\n\t\t}\n\t\telse\n\t\t printf(\" %s\",word);\n\t}\n\tprintf(\"\\n\");\n}"} +{"label": "98", "index": "48637", "code": "/*\n * Typesetting.cpp\n *\n * Created on: 2013-12-5\n * Author: KEVIN\n */\n\n\nint main()\n{\n\tint n;\n\tcin>>n;\n\tchar line[81];\n\tchar* p=line;\n\tmemset(line,'\\0',81);\n\twhile(n--)\n\t{\n\t\tchar word[41];\n\t\tcin>>word;\n\t\tint len=strlen(word);\n\t\tif(strlen(line)+len>80)\n\t\t{\n\t\t\t*(p-1)='\\0';//?line???????'\\0'\n\t\t\tcout<0)\n\t{\n\t\t*(p-1)='\\0';\n\t\tcout<>n;\n\tfor(i=0;i>word[i];\n\t\tlen[i]=strlen(word[i]);\n\t}\n\tint m=0,j=0;\n\twhile(m<=80&&j80)\n\t\t{\n\t\t\tcout<80)\n\t\t{\n\t\t\tfor(j=location;j<=i-2;j++)\n\t\t\t\tcout<>n;\n\tfor(i=0;i>words[i];\n\t\twordlen[i]=strlen(words[i]);\n\t}\n\tout(0);\n\treturn 0;\n}"} +{"label": "98", "index": "48640", "code": "int main()\n{\n\tchar words[400][50];\n\tint n;\n\tcin >> n;\n\tint i;\n\tint counter = 0;\n\tfor( i = 0 ; i <= n - 1 ; i ++ )\n\t\tcin >> words[i];\n\tchar (*p)[50];\n\tfor( p = words ; p <= words + n - 2 ; p ++ )\n\t{\n\t\tcounter = counter + strlen( * p );\n\t\tif( counter < 80 )\n\t\t{\n\t\t\tif( counter + 1 + strlen( * ( p + 1 ) ) <= 80 )\n\t\t\t{\n\t\t\t\tcout << *p << \" \";\n\t\t\t\tcounter ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << *p << endl;\n\t\t\t\tcounter = 0;\n\t\t\t}\n\t\t}\n\t\telse if( counter == 80 )\n\t\t{\n\t\t\tcout << *p << endl;\n\t\t\tcounter = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl << *p ;\n\t\t\tcounter = strlen( *p );\n\n\t\t}\n\t}\n\tcounter = counter + strlen( * p );\n\tif( counter <= 80)\n\t\tcout << *p;\n\telse\n\t\tcout << endl << *p;\n\n\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48641", "code": "main()\n{\n int n;\n scanf(\"%d\",&n);\n char word[n][41];\n for(int i=0;i>n;\n\tp=&n;\n\tint lenth[*p]; //?????????\n\tchar str[*p][41]; //??????\n\tfor(i=0;i>str[i];\n\t\tlenth[i]=strlen(str[i]);\n\t}\n\tfor(i=0;i81) //????????????81?????????????????\n\t\t{\n\t\t\tfor(j=record;j<=i-1;j++) \n\t\t\t\t{\n\t\t\t\tcout<> n;\n\tint t = 2;\n\tchar initial[40];\n\tcin >> initial;\n\tcout << initial;\n\tint count = strlen(initial);\n\tint mark = 1;\n\twhile (t <= n)\n\t{\n\t\tchar word[41];\n\t\tcin >> word;\n\t\tint lenth = strlen(word);\n\t\tcount+= lenth;\n\t\tif (count + t - mark> 80)\n\t\t{\n\t\t\t/*for (int i = 0; i < lenth; i++)\n\t\t\t{\n\t\t\t\ttemp[i] = word[i];\n\t\t\t}\n\t\t\ttemp[lenth] = '\\0';*/\n\t\t\tcout << endl;\n\t\t\tcout << word;\n\t\t\tcount = lenth;\n\t\t\tmark = t;\n\t\t}\n\t\telse\n\t\t\tcout << \" \" << word;\n\t\tt++;\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "98", "index": "48644", "code": "/*\n * wenzi.cpp\n *\n * Created on: 2012-12-7\n * Author: ada\n */\nint main()\n{\n\tint n ;\n\tcin>>n;\n\tchar a[1000][41];\n\tfor(int i = 0 ; i <= n ; i++)\n\t{\n\t\tcin>>a[i];\n\t}\n\tint len = (int)strlen(a[0]) ;\n\n\tcout<80){\n\t\t\tprintf(\"\\n\");\n\t\t\tsum=0;\n\t\t}else{\n\t\t\tif(i>0){\n\t\t\t printf(\" \");\n\t\t\t sum++;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%s\",dw[i]);\t\n\t\tsum+=len;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48646", "code": "/*??????????????????????????????????????????????????????\n * ?????80???????????????????????????????????????????\n *????: 2012-12-10\n *??: ??\n */\nint main() {\n\tchar word[300][41];\n\tint i, n, len;\n\tcin >> n >> *(word + 0);\n\tcout << *(word + 0);\n\tlen = strlen(*(word + 0));\n\tfor (i = 1; i < n; i++) {\n\t\tcin >> *(word + i);\n\t\tif (len + strlen(*(word + i)) < 80) { //??????????\n\t\t\tcout << ' ' << *(word + i);\n\t\t\tlen += strlen(*(word + i)) + 1;\n\t\t} else { //??\n\t\t\tcout << endl << *(word + i);\n\t\t\tlen = strlen(*(word + i));\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48647", "code": "//********************************\n//*??????? **\n//*?????? 1300012713 **\n//*???2013.12.11 **\n//********************************\nint main()\n{\n\tint n, m = 0, b[300] = {0};\n\tchar a[300][40];\n\tcin >> n;\n\tfor(int i = 1; i <= n; i++)\n\t{\n\t\tcin >> a[i];\n\t\tb[i] = strlen(a[i]);\n\t}\n\tfor(int j = 1; j <= n; j++)\n\t{\n\t\tm = m + b[j] + 1;\n\t\tif(m <= 81)\n\t\t{\n\t\t\tcout << a[j];\n\t\t\tif(j < n && m + b[j+1] < 81) cout << \" \";\n\t\t}\n\t\telse \n\t\t{\n\t\t\tm = 0;\n\t\t\tcout << \"\\n\";\n\t\t\tj--;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48648", "code": "\nint main(){\n int n,i,x,linelen=0;\n char words[40];\n scanf(\"%d\",&n);\n for(i=0;i80)\n {\n printf(\"\\n%s\",words);\n linelen=x;\n linelen--;\n }\n }\n\n return 0; \n}\n"} +{"label": "98", "index": "48649", "code": "main()\n{\n char word[41];\n int sum=0,n,t;\n scanf(\"%d\",&n);\n t=n;\n while(n>0)\n {\n scanf(\"%s\",word);\n if((sum+strlen(word)+1<=80)&&n!=t)\n {\n printf(\" \");\n sum++;\n }\n else\n {\n printf(\"\\n\");sum=0;\n }\n sum=sum+strlen(word);\n printf(\"%s\",word);\n memset(word,0,sizeof(word));\n n--;\n }\n}\n"} +{"label": "98", "index": "48650", "code": "void main()\n{\n\tchar a[1000][100];\n\tint n,i,j=0,k=1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80-j) { printf(\"\\n\");j=0;k++; }\n\t\tif(j){printf(\" \");j++;}\n\t\tprintf(\"%s\",a[i]);j+=strlen(a[i]);\n\t}\t\n}\n\t\t\n"} +{"label": "98", "index": "48651", "code": "\nint main(int argc, char* argv[])\n{\n\tchar a[1000][41];\n\tint p=0,i=0,n;\n\t/*gets(a[0]);\n\tprintf(\"%d\",strlen(a[0]));*/\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tfor(i=0;i>a[i];\n\t\tb[i]=strlen(a[i])+1;\n\t}\n\tm=b[0];\n\tfor(i=0;i>n;cin.get();\n\tint end=0;\n\tfor(int i=1;i<=n;i++)\n\t{\n\t scanf(\"%s\",word);\n\t int l=strlen(word);\n\t\tif(end+l+1>80)\n\t\t{\n\t\t\tcout<1)\n\t\t\t{\n\t\t\t cout<<' ';\n\t\t\t end++;\n\t\t\t}\n\t\t\tcout<>n; //??????\n\tfor(i=1;i<=n;)\n\t{\n\t\tscanf(\"%s\",first); //???????\n\t\ti++; //??????\n\t\tsum[j]=sum[j]+strlen(first)+1; //??????\n\t\tcout<> n;\n\twhile(cin >> a)\n\t{\n\t\t\n\t\tl = strlen(a);\n\t\tnum ++;\n\t\tlen += l;\n\t\tif ( len > 80 ) \n\t\t{\n\t\t\tcout << endl; \n\t\t\tlen = l;\n\t\t\tnum = 1;\n\t\t}\n\t\telse if( num != 1 ) cout <<' ';\n\t\tfor ( i = 0; i < l; i ++ )\n\t\t{\n\t\t\tcout<<*(p + i);\n\t\t}\n\t\tlen ++;\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48656", "code": "int main()\n{\n\tint n, i, sum = 0, len;\n\tchar c[10000][41];\n\tcin >> n;\n\tfor(i = 0;i < n;i++)\n\t\tcin >> c[i];\n\t for(i = 0;i < n;i++)\n\t {\n\t\t len = strlen(c[i]);\n\t\t if(sum + len > 80)\n\t\t {\n\t\t\t sum = 0;\n\t\t\t// cout << endl;\n\t\t\t cout << c[i] <<' ';\n\t\t }\n\t\t else if(sum + len < 80)\n\t\t {\n\t\t\t sum = sum + len + 1;\n\t\t\t len = strlen(c[i+1]);\n\t\t\t if(sum + len > 80)\n\t\t\t {\n\t\t\t\t sum = 0;\n\t\t\t\t cout << c[i];\n\t\t\t\t cout << endl;\n\t\t\t }\n\t\t\t else if(sum + len < 80) \n\t\t\t {\n\t\t\t\t if(i == n-1) cout << c[i];\n\t\t\t\t else cout <>n;\n\tfor(i=0;i>*(p+i);\n\t\tlen[i]=strlen(*(p+i));\n\t}\n\tint m=0,j=0;\n\twhile(m<=80&&j80)\n\t\t{\n\t\t\tcout<>n;\n\tgetchar();\n\twhile(n>0)\n\t{\n\t\tint changdu=1;\n\t\tchar a[50]={'\\0'};\n\t\tchar *p=NULL;\n\t\tp=a;\n\t\tchar d='\\n';\n\t\twhile(d=='\\n')d=getchar();\t\t\n\t\t*p=d;\n\t\twhile(true)\n\t\t{\n\t\t\td=getchar();\n\t\t\tif(d==' '||d=='\\n')break;\n\t\t\tchangdu++;\n\t\t\tp++;\n\t\t\t*p=d;\t\t\t\n\t\t}\n\t\tp=a;\n\t\tint i;\n\t\t//for(i=1;i<=changdu;i++){cout<<*p;p++;}\n\t\t//cout<>n;\n for(i=0;i<=n-1;i++)\n cin>>str[i];\n \n for(i=0;i<=n-1;i++) \n {\n len[i]=strlen(str[i]); \n }\n i=0;sum=0;k=0;\n \n while(i<=n-1)\n {\n if(k==0)\n {\n cout<80){\n\t\t\tprintf(\"\\n%s\",a[i]);\n\t\t\tlen=strlen(a[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48661", "code": "int main()\n{\n\tint n=0;\n\tcin>>n;\n\tchar b[2];\n\tcin.getline(b,2);\n\tchar a[5000];\n\tcin.getline(a,5000);\n\tchar *p=NULL,*q=NULL;\n\tint sum=0,single=0;//????????????\n\tfor(p=a;*p!=' ';p++)\n\t\tcout<<*p;\n\tsum=p-a;\n\tfor(int i=1;i>n;\n\tfor(int i=0;i>*(a+i);\n\tfor(int i=0;i> n; // ??????\n\tfor (i = 1; i <= n; i++)\n\t\tcin >> word[i]; // ?????????\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\t*(cnt + i) = *(cnt + i - 1) + strlen(word[i]); // ??????????\n\n\t\t// ???????80???????????????????????????????????????????????\n\t\tif ((*(cnt + i - 1) <= 81 && *(cnt + i) >= 81) || i == n)\n\t\t{\n\t\t\tfor (g = temp; g < i- 1; g++) // ??????????\n\t\t\t\tcout << word[g] << ' ';\n\t\t\tcout << word[i - 1];\n\t\t\tif (i < n)\n\t\t\t\tcout << endl;\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << ' ' << word[i] << endl;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttemp = i;\n\t\t\t*(cnt + i - 1) = 0; // ????????????0\n\t\t\ti--; // i?1????????\n\t\t}\n\t\telse\n\t\t\t(*(cnt + i))++; // ????????\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48665", "code": "int main()\n{\n\tchar a[100000];\n\tint n=0,j=0,i=0,sum=0,j1=0,j2=0;\n\tcin>>n;\n\t//cout<80)\n\t{j1=j;\n\tj=j+80;\n\tj2=j;\n\t\n\t\n\t\twhile(a[j]!=' ')\n\t\t\tj--;\n\t\tif(j==j2)\n\t\t\tfor(i=j1;i>n;\nfor (int i=1;i<=n;i++)scanf(\"%s\", a[i]);\nint s=0;\n\nfor (int i=1;i<=n;i++)\n {\n \n if (s+strlen(a[i])<=80)\n {\n if (s+strlen(a[i])+strlen(a[i+1])+1<=80){cout<80){cout<80)\n {cout<80)\n {\n for(j=0;j80)\n {\n printf(\"\\n\");\n for(j=0;j> n ;\n\tchar a[10000][41] ; //????????????????? \n\tint t[10000] ; //???????????\n\tchar (*p)[41] ; //???????? \n\tint i ; //??????\n\tp = a ;\n\tfor( i = 0 ; i <= n - 1 ; i++ )\n\t{\n\t\tcin >> *(p+i) ;\n\t\tt[i] = strlen(*(p+i)) ;\n\t}\n\tp = a ;\n\tint s = 0 ; //?????????? \n\tint flag1 = 0 ; //??????????\n\tint flag2 = 0 ; //????????80?????\n\tfor( i = 0 ; i <= n-1 ; i++ )\n\t{\n\t\ts += t[i] ;\n\t\tif( s > 80 )\n\t\t{\n\t\t\tflag2 = i ; //????80????????\n\t\t\tfor( i = flag1 ; i <= flag2 - 2 ; i++ )\n\t\t\t{\n\t\t\t\tcout << *(p+i) << \" \" ;\n\t\t\t} \n\t\t\tcout << *(p-1+flag2) << endl ;\n\t\t\t //????????????????????? \n\t\t\tflag1 = i + 1 ; //?????????????????????\n\t\t\ts = 0 ; //???????s?? \n\t\t}\n\t\telse\n\t\t\ts += 1 ; //???80??????????\n\t}\n\tfor( i = flag1 ; i <= n-2 ; i++ )\n\t{\n\t\tcout << *(p+i) << \" \" ;\n\t} \n\tcout << *(p+n-1) << endl ; //????????\n\treturn 0 ;\n}"} +{"label": "98", "index": "48669", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar s[1000][50]={0};\n\tint i=0,j=0,a[1000]={0},z[1000]={0};\n\tfor(i=0;i80)\n\t\t{\n\t\t\tprintf(\"%s\",s[i]);\n\t\t\tz[j]=z[j]+a[i]+1;\n\t\t}\n\t\telse if(z[j]+a[i]>80)\n\t\t{\n\t\t\tj++;\n\t\t\tprintf(\"\\n%s \",s[i]);\n\t\t\tz[j]=z[j]+a[i]+1;\n\t\t}\n \t}\n\n\t\nprintf(\"%s\",s[n-1]);\n\treturn 0;\n}"} +{"label": "98", "index": "48670", "code": "int main()\n{\n\tint n, i, len, p = 0;\n\tcin >> n;\n\tchar str[40];\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> str;\n\t\tlen = strlen(str);\n\t\tif (p + len < 80)\n\t\t{\n\t\t\tif (p != 0)\n\t\t\t{\n\t\t\t\tcout << \" \";\n\t\t\t\tp++;\n\t\t\t}\n\t\t\tp = p + len;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp = len;\n\t\t\tcout << endl;\n\t\t}\n\t\tcout << str;\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48671", "code": "int main()\n{\n\tchar words[2000][20],(*p)[20],*s,sumlen=0,len;\n\tint num;\n\tcin>>num;\n\tfor(p=words;p-words>*p;\n\t}\n\tfor(p=words;p-words>n;\n\tcin>>s; //?????????????\n\tcout<>s; \n\t\tif(p+strlen(s)<&a[80]) //??????????????????strlen?s????????????????????????????????????strlen(s)+1???\n\t\t\tcout<<\" \"<> n;\n\tcin.get();\n\tcin.getline(ch, 2000);\n\twhile (*p != 0)\t//??\n\t{\n\t\tflag = 0;\n\t\tfor (q = p; ;)\t//??????????\n\t\t{\n\t\t\tfor (l = q; *l != ' ' && *l != 0; l++);\t//???????\n\t\t\tl--;\n\t\t\tif (l - p < 80)\t//???????????80,????\n\t\t\t{\n\t\t\t\tif (flag == 1)\t//?????????,????,?????\n\t\t\t\t{\n\t\t\t\t\tcout << \" \";\n\t\t\t\t}\n\t\t\t\tfor (k = q; k <= l; k++)\n\t\t\t\t{\n\t\t\t\t\tcout << *k;\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\tq = l + 2;\t//?q??l+2,???????\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\tcout << endl;\t//??????,??????\n\t\t\t\t\tbreak;\n\t\t\t};\n\t\t\tif (*(l + 1) == 0)\n\t\t\t{\n\t\t\t\tq = l + 2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tp = q;\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "98", "index": "48676", "code": "main()\n{\n int n,i=0,j=0,k=0;\n int a[100];\n scanf(\"%d\",&n);\n char word[10000];\n do\n {\n scanf(\"%s\",&word[i]);\n i=strlen(word);\n word[i]=' ';\n j=j+1;\n i=i+1;\n }\n while(ji-80);\n i=k+81;\n j=j+1;\n }\n while(word[i]!=0);\n i=0;\n j=0;\n do\n {\n if(i==a[j])\n {\n printf(\"\\n\");\n j=j+1;\n }\n else printf(\"%c\",word[i]);\n i=i+1;\n }\n while(word[i+1]!=0);\n}\n\n\n \n\n\n"} +{"label": "98", "index": "48677", "code": "//\n// main.cpp\n// ????\n//\n// Created by mac on 12-12-12.\n// Copyright (c) 2012? mac. All rights reserved.\n//\n\nint main(){\n int n,num;\n char str[1000][1000];\n cin>>n;\n char (*p)[1000];\n for(int i=0;i>str[i];\n cout<<*str;\n num=strlen(*str);\n for(p=str+1;p=80){\n cout<> n;\n\tfor ( int i = 1; i <= n; i ++ ) {\n\t\tcin >> str[i];\n\t}\n\tfor ( int i = 1; i <= n; i ++ ) {\n\t\tif ( sum == 0 ) {\n\t\t\tcout << str[i];\n\t\t\tsum += strlen( str[i] );\n\t\t}\n\t\telse if ( sum + strlen( str[i] ) + 1 <= 80 ) {\n\t\t\tcout << \" \" << str[i];\n\t\t\tsum += strlen( str[i] ) + 1;\n\t\t}\n\t\telse {\n\t\t\tcout << endl;\n\t\t\tsum = 0;\n\t\t\ti = i - 1;\n\t\t}\n\t}\n\treturn 0;\n}\n\t\n"} +{"label": "98", "index": "48679", "code": "int main()\n{\n\tchar str[2000][50];\n\tint n,i,j,sum=0,geshu,ji=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i> n;\n\tfor (int i = 0; i < n; i++)\n\t\tcin >> word[i];\n\tcout << word[0];\n\tt = strlen(word[0]);\n\tfor (int i = 1; i < n; i++)\n\t{\n\t\tint l = strlen(word[i]) + 1;\n\t\tt = t + l;\n\t\tif (t < 81)\n\t\t\tcout << \" \" << word[i];\n\t\tif (t >= 81)\n\t\t{\n\t\t\tcout << endl << word[i];\n\t\t\tt = strlen(word[i]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48681", "code": "int main(){\n\tint n;\n\tcin>>n;\n\tchar l[n][20];\n\tfor(int i=0;i>l[i];\n\tint len=0;\n\tfor(int i=0;i=80){\n\t\t\tcout<>n;\t\t\t\t\t\t\t\t\t\t//??????\n\tfor(i=1;i<=n;i++){\t\t\t\t\t\t\t//????????\n\t\tcin>>word;\t\t\t\t\t\t\t\t//????\n\t\tsum+=strlen(word);\t\t\t\t\t\t//???????????\n\t\tif((i!=n)&&(sum<=80)){\t\t\t\t\t//??????????????????????80\n\t\t\tfor(k=0;k80){\t\t\t\t\t\t//????????80\n\t\t\tfor(t=0;t= l+1)\n\t\t{\n\t\t\tprintf(\" %s\", word[i]);\n\t\t\tleft -= l+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"\\n%s\", word[i]);\n\t\t\tleft = 80 - l;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48684", "code": "\nint main()\n{\n\tint n, len, i, letter, flag;\n\tcin >> n;\n\tchar word[1000][41];\n\tlen = 0;\n\tletter = 0;\n\tflag = 0;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> word[i];\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\t\n\t\tif (flag == 1)\n\t\t{\n\t\t\tletter++;\n\t\t}\n\t\tlen = strlen(word[i]);\n\t\tletter += len;\n\t\tif (letter > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tletter = len;\n\t\t\tflag = 0;\n\t\t}\n\t\tif (flag == 1)\n\t\t{\n\t\t\tcout << \" \" << word[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << word[i];\n\t\t\tflag = 1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48685", "code": "\nmain(){\n\tstruct word{\n\t\tchar a[41];\n\t\tint l;\n\t};\n\tstruct word w[10000];\n\tint n, i, sum;\n\tscanf(\"%d\", &n);\n\tfor(i=0; i>n;\n\tsum=0;\n\tfor ( int i=0; i>word[i];\n\t\tlen[i]=strlen(word[i])+1;\n\t}\n\tfor ( int i=0; i81) //????????\n\t\t\t{cout<>n;\n\tcin.get();\n\tgets(a);\n\tfor(i=0;i80)\n\t\t\t{ \n\t\t\t\tb[j]=sum-l-1;\n\t\t\t\tj++;\n\t\t\t\tsum=l+1; \n\t\t\t}\n\t\t\telse if(sum==80)\n\t\t\t{ b[j]=sum;j++;sum=0; }\n\t\t\telse \n\t\t\t\t sum=sum+1;\n\t\t\tl=0;\n\t\t}\n\t}\n\tb[j]=sum+l;\n\tj=0;\n\tfor(i=0;i> n;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> word[i];\n\t}\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcout << word[i];\n\t\tsum += strlen(word[i]);\n\t\tif(i < n && sum + strlen(word[i + 1]) + 1 <= 80)\n\t\t{\n\t\t\tcout << \" \";\n\t\t\tsum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\tsum = 0;\n\t\t}\n\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48690", "code": "int main()\n{\nint n,i,sum=0,len=0;\nchar word[40];\nscanf(\"%d\",&n);\nfor(i=0;i80)\n{\n printf(\"\\n\");\n printf(\"%s\",word);\n sum=len;\n}\nelse \n{ if(sum==0)\n {printf(\"%s\",word);\n sum=sum+len;}\n else\n{ sum=sum+len+1;\n if(sum>80)\n {printf(\"\\n\");\n printf(\"%s\",word);\n sum=len;}\nelse\nprintf(\" %s\",word);\n}}\n}\nreturn 0;\n}\n"} +{"label": "98", "index": "48691", "code": "\nvoid main()\n{\n\tint n,i,len[MAX1],line=0;\n\tchar word[MAX1][MAX2];\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80 ){\n\t\t\tputchar('\\n');\n\t\t\tline=0;\n\t\t}\n\t\telse if(i>n;\n\twhile(cnt<=n)\n\t{ \n\t\twhile(1){\n\t\tmemset(c,0,sizeof(c));\n\t\tcin>>c;//??????\n\t\tcnt++;\n\t if(cnt==1||cnt==n){if(cnt==1) {cout<80){cout<> n;//?????\n\tchar a[50], *p = a;\n\tfor (int i = 0, num = 0; i < n; i++) {//num??????????????\n\t\tcin >> a;//????\n\t\tm = strlen(a);//???????\n\t\tif (num == 0) {//??????????\n\t\t\tfor (int j = 0; j < m; j++) {//???\n\t\t\t\tcout << *(p + j);\n\t\t\t}\n\t\t\tnum += m;//num??m\n\t\t} else if (num + m + 1 <= 80) {//???????????80\n\t\t\tcout << ' ';//?????????\n\t\t\tfor (int j = 0; j < m; j++) {//????????\n\t\t\t\tcout << *(p + j);\n\t\t\t}\n\t\t\tnum += m + 1;//num=num+m+1\n\t\t} else {//??????????80\n\t\t\tcout << endl;//?????\n\t\t\tfor (int j = 0; j < m; j++) {//???????\n\t\t\t\tcout << *(p + j);\n\t\t\t}\n\t\t\tnum = m;//num??m\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48696", "code": "void main()\n{\n\tchar a[500][41];\n\tint n,i,j,k,r,b[500];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tk=b[i+1]+1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tprintf(\" \");\n\t\t\tk=k+1;\n\t\t}\n\t}\n\tprintf(\"%s\",a[n-1]);\n}"} +{"label": "98", "index": "48697", "code": "\nint main()\n{\n int i;\n int count;\n char *buf;\n char **words;\n int line_word_count = 0;\n scanf(\"%d\", &count);\n words = (char **)malloc(count * sizeof(char *));\n for (i = 0; i < count; i++) {\n buf = (char *)malloc(41 * sizeof(char));\n scanf(\"%s\", buf);\n *(words + i) = buf;\n }\n for (i = 0; i < count; i++) {\n if (i != count - 1 && line_word_count + strlen(*(words +i)) + 1 > 80) {\n printf(\"\\n\");\n line_word_count = 0;\n }\n if (line_word_count != 0) {\n line_word_count += 1;\n printf(\" \");\n }\n line_word_count += strlen(*(words + i));\n printf(\"%s\", *(words +i));\n }\n return 0;\n}"} +{"label": "98", "index": "48698", "code": "int main()\n{ char a[1000][42];\n int sum,i,j,k,n,m;\n cin>>n;\n sum=0;\n for (i=1;i<=n;i++)\n {cin >>a[i]; \n m=strlen(a[i]);\n if (sum+m+1<=80) \n if (sum!=0)\n { cout<<\" \"<>n;\n\tfor(i=0;i>*(ch+i);}\n\tline=strlen(*ch);\n\ti=0;\n\twhile(i> n;\n\tfor ( int i=1;i<=n;i++)\n\t{\n\t\tcin>>a;\n\t\tl=strlen(a);\n\t\tcount=count+l;\n\t\tif(count<80&&count!=l)\n\t\t{\n\t\t\tcout<<\" \"<next=p;\n\t\t q=p;\n\t\t }\n\t\t else{\n\t\t q->next=p;\n\t\t p->next=NULL;\n\t\t }\n\t}}\n p=head;\n for(i=1;i<=n;i++){\n scanf(\"%s\",p->w);\n p->n=(strlen(p->w)+1);\n p=p->next;\n }\n d=-1;\n p=head;\n for(i=1;i<=n;){\n\t if(d==(-1))\n\t { printf(\"%s\",p->w);\n\t i++;\n\t d=d+(p->n);\n\t p=p->next;}\n\t if((d+(p->n))<=80&&d!=(-1)){\n\t printf(\" %s\",p->w);\n\t i++;\n\t d=d+(p->n);\n\t p=p->next;if(p==NULL){break;}\n\t }\n\t if((d+(p->n))>80){\n\t printf(\"\\n\");\n\t d=-1;\n\t }\n }\n return 0;\n} "} +{"label": "98", "index": "48704", "code": "int main()\n{\n\tchar str[100000],*p = NULL;\n\tint n,count = 0;\n\tcin >> n;\n\tcin.get();\n\tcin.getline(str,10000);\n\tp = str;\n for(p = str; *p != '\\0';p++)\n\t{\n\t\tcount++;\n\t\tif(count == 81)\n\t\t{\n\t\t if(*p != ' ')\n\t\t\t{\n\t\t\t\twhile(*p != ' ')\n\t\t\t\t\tp--;\n\t\t\t}\n *p = '\\n';\n\t\t\tcount = 0;\n\t\t}\n\t\t\n\t}\n\tfor(p = str; *p != '\\0'; p++)\n\t{\n\t cout << *p;\n\t}\n\tcout << endl;\n\t\treturn 0;\n}"} +{"label": "98", "index": "48705", "code": "int main()\n{\n\tchar word[40];\n\tint i,n,len,hang=0,shou=1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80){printf(\"\\n\");printf(\"%s\",word); shou=0;hang=len;}\n\t\t\t}\n\nreturn 0;\n}\n"} +{"label": "98", "index": "48706", "code": "\n\nint getone(char* s)\n{\n\tint count = 0;\n\tif(!cin.get(*s))\n\t\treturn -1;\n\twhile(*s != ' ' && *s != 0)\n\t{\n\t\ts++;\n\t\tcount++;\n\t\tif (!cin.get(*s))\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\t*s = 0;\n\treturn count;\n}\n\n\n\nint main()\n{\n\tint n;\n\tcin >> n;\n\tcin.get();\n\tchar s[41];\n\tint c = 0;\n\tint r = 80;\n\tfor(int i = 0 ; i < n ; i++)\n\t{\n\t\tc = getone(s);\n\t\tif (r == 80)\n\t\t{\n\t\t\tcout << s;\n\t\t\tr -= c;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (r > c)\n\t\t\t{\n\t\t\t\tcout << ' ' << s ;\n\t\t\t\tr -= c+1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << endl << s;\n\t\t\t\tr = 80 - c;\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "98", "index": "48707", "code": "int main()\n{\n\tint n,i;\n\tint l[1000];\n\tchar s[1000][40]={'\\0'};\n\tscanf(\"%d\\n%s\",&n,s[0]);\n\tl[0]=strlen(s[0]);\n\tfor(i=1;i80)\n\t\t{\n\t\t\tif(i!=n-2)\n\t\t\t printf(\"%s\",s[i]);\n\t\t\telse\n\t\t\t\tprintf(\"%s\\n\",s[i]);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tprintf(\"\\n%s \",s[i]);\n\t\t\ta1=l[i]+1;\n\t\t}\n\t}\n\tprintf(\"%s\",s[n-1]);\n\treturn 0;\n}"} +{"label": "98", "index": "48708", "code": "int main(){\n\tint g,cco=0;\n\tcin>>g;\n\tchar b[45];\n\tcin>>b;\n\tcout<>a;\n\t\tcco+=strlen(a);\n\t\tif(cco<80){\n\t\t\tcout<<\" \"<80)\n\t\t\t{\n\t\t\t\tcout<>n;\n\tfor(p=0;p>a[p];\n\t}\n\ty(0);\n\treturn 0;\n}\n"} +{"label": "98", "index": "48710", "code": "//***********************************************\n//*3\u00ecD\u00f2?oÎÄ\u00d7ÖÅÅ\u00b0æ *\n//*DÕÃû?ooÎÔÆÆe *\n//*Ñ\u00a7oÅ?o1300012888 *\n//*\u00e8ÕÆ\u00fa?o2013.12.18 *\n//***********************************************\n\nint main()\n{\n\tint n, i, num[1000], *p = num, sum = 0;\n\tchar word[1000][40];\n\tcin >> n;\n\n\tfor(i = 0;i <= n - 1;i ++)\n\t{\n\t\tcin >> word[i];\n\t\t*(p + i) = strlen(word[i]);\n\t}\n\n\tfor(i = 0;i <= n - 1;i ++)\n\t{\n\t\tif(sum == 0)\n\t\t{\n\t\t\tsum += *(p + i);\n\t\t\tcout << word[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsum += (*(p + i) + 1);\n\t\t\tif(sum <= 80)\n\t\t\t\tcout << \" \" << word[i];\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\ti --;\n\t\t\t\tcout << endl;\n\t\t\t}\n\t\t}\n\t}\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "98", "index": "48711", "code": "int main()\n{\n int n;\n int i,j;\n int k;\n int end=0;;\n scanf(\"%d\",&n);\n char dz[50];\n for(i=0;i 80) {\n printf(\"\\n\"); \n end = 0; \n }\n else if (end > 0) { \n printf(\" \"); \n end++; \n }\n printf(\"%s\", dz); \n end += k; \n}\n }\nreturn 0;\n}\n"} +{"label": "98", "index": "48712", "code": "\nint main()\n{\n\tint n,i,j,len;\n\tchar word[500][81],text[500][81];\n\tcin>>n;\n\tfor(i=0;i>word[i];\n\tfor(i=80;word[n-1][i]==0;i--);\n\tfor(;word[n-1][i]==' ';i--)\n\t\tword[n-1][i]=0;\n\n\tfor(i=0;i<500;i++)\n\t\tfor(j=0;j<81;j++)\n\t\t\ttext[i][j]=0;\n\tlen=0;\n\tj=0;\n\tfor(i=0;i> num;\n int i;\n for (i=0;i> word[i];\n length[i] = strlen(word[i]) + 1;\n }\n int sumlength = 0;\n for (i=0;i 81)\n {\n cout << endl;\n cout << word[i] << \" \";\n sumlength = length[i];\n }\n else\n {\n if (sumlength == 81)\n {\n cout << word[i];\n cout << endl;\n sumlength = 0;\n }\n else\n {\n cout << word[i];\n if (sumlength+length[i+1]<=81 && i!=num-1)\n {\n cout << \" \";\n }\n }\n }\n } return 0;\n}\n \n \n"} +{"label": "98", "index": "48714", "code": "int main()\n{\n\tint n,i,j,count=0,count1=0;\n\tchar *p=NULL;\n\tcin>>n;\n\tchar str[1000][40];\n\tfor(i=0;i>str[i];//?????\n\tp=&str[0][0];\n\tfor(i=0;i80){//?????????????\n\t\t\ti--;\n\t\t\tcout<81) printf(\"%s\",s[i]);\n \tif(x>81) {printf(\"\\n\");printf(\"%s \",s[i]);x=a[i];}\n }\n x=x+a[n];\n if(x<=81) printf(\"%s\",s[n]);\n if(x>81) printf(\"\\n%s\",s[n]);\n return 0;\n}"} +{"label": "98", "index": "48716", "code": "int main()\n{\n\tint n, l[10000], num = -1, i;\n\tchar str[10000][41];\n\tcin >> n;\n\tfor ( i = 0; i < n; i ++ )\n\t{\n\t\tcin >> str[i];\n\t\tl[i] = strlen ( str[i] );\n\t}\n\tfor ( int i = 0; i < n; i ++ )\n\t{\n\t\tif ( i == n - 1 )\n\t\t{\n\t\t\tcout << str[i];\n\t\t\tbreak;\n\t\t}\n\t\tif ( num <= 0 )\n\t\t\tnum = l[i];\n\t\tnum = num + l[i+1];\n\t\tif ( num >= 80 )\n\t\t{\n\t\t\tnum = -1;\n\t\t\tcout << str[i] << endl;\n\t\t}\n\t\telse\n\t\t\tcout << str[i] << \" \";\n\t\tnum ++;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48717", "code": "/*\n * homework3.cpp\n *\n * Created on: 2012-12-4\n * Author: Lixurong\n */\n\nint main()\n{\n\tchar a[1000][41];\n\tint n;\n\tcin >> n;\n\tfor( int i=0; i> a[i];\n\t}\n\tint s=0;\n\tfor( int i=0; i81)\n\t\t{\n\t\t\ts=0;\n\t\t\tcout << endl;\n\t\t\ti--;\n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << (*(a+i));\n\t\t\tif( i!=n-1 && s+strlen(*(a+i+1))<=80)\n\t\t\t{\n\t\t\t\tcout << \" \";\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "98", "index": "48718", "code": "//\n// main.cpp\n// Homework\n//\n// Created by ??? on 13-12-4.\n// Copyright (c) 2013? ???. All rights reserved.\n//\n\n\nint main()\n{\n int n,s=0,e=80;\n char a[3200]={0};\n \n cin>>n;//n??????\n cin.get();\n cin.getline(a,3200);\n a[strlen(a)]=' ';\n \n while(1)\n {\n while(a[e]!=' ')\n e--;\n for(int i=s;iw);\n\t\tp->a=strlen(p->w);\n\t\tp++;\n\t}\n\tp=&word[0];\n\tfor(i=1;i<=n;i++){\n\t\tif(i==1){\n\t\t\tprintf(\"%s\",p->w);\n\t\t\tline=p->a;\n\t\t\tp++;\n\t\t}else if(line+p->a+1>80){\n\t\t\tprintf(\"\\n%s\",p->w);\n\t\t\tline=p->a;\n\t\t\tp++;\n\t\t}else{\n\t\t\tprintf(\" %s\",p->w);\n\t\t\tline+=p->a+1;\n\t\t\tp++;\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48720", "code": "\nint main()\n{\n\tint n;\n\tcin >> n;\n\tint i, j, k;\n\tchar word[1000][45];\n\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%s\", word[i]);\n\t}\n\tint sumc = 0;\n\tfor (i = 0; i < n; i++)\n\t{\n\t sumc += strlen(word[i]) + 1;\n\t if(sumc + strlen(word[i + 1])> 80)\n\t {\n\t cout << word[i];\n\t cout << endl;\n\t sumc = 0;\n\t }\n\t else if (sumc == 81)\n\t {\n\t cout << word[i];\n\t cout << endl;\n\t sumc = 0;\n\t }\n else if (i == n - 1)\n cout << word[i];\n else cout << word[i] << \" \";\n\t}\n\tcout << endl;\n\treturn 0;\n}\n"} +{"label": "98", "index": "48721", "code": "int main(int argc, char *argv[])\n{\n char a[20];\n int n,i,k=0;\n scanf(\"%d\",&n);\n getchar();\n scanf(\"%s\",a);\n printf(\"%s\",a);\n k=strlen(a);\n for(i=1;i80)\n {\n printf(\"\\n%s\",a);\n k=strlen(a);\n continue;\n }\n if(k<=80)\n printf(\" %s\",a);\n }\n return 0;\n}\n"} +{"label": "98", "index": "48722", "code": "int main()\n{\n\tint n,i,j,sum=0;\n\tchar s[500][100];\n\tchar *p;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tsum=0;\n\t\t}\n\t\telse printf(\" \");\n\t}\n\tfor(p=s[n-1];p> n;\n\tp = c; //???????\n\tfor( i = 1; i <= n; i++ )\n\t{\n\t\tcin >> *( p + i ); //??\n\t}\n\tfor( i = 1; i < n; i++ )\n\t{\n\t\tif( cnt + strlen( *( p + i ) ) + 1 + strlen( *( p + i + 1 ) ) <= 80 )\n\t\t{\n\t\t\tcout << *( p + i ) << ' ';\n\t\t\tcnt += strlen( *( p + i ) ) + 1; //??????????????????\n\t\t}\n\t\telse if( cnt + strlen ( *( p + i ) ) + 1 + strlen (*( p + i + 1 ) ) > 80 )\n\t\t{\n\t\n\t\t cout << *( p + i ) << endl;\n\t\t\tcnt = 0; //?????????????????\n\t\t}\n\t\t\n\t}\n\tcout << *(p+n); //????????\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "98", "index": "48724", "code": "void main()\n{\nint i,n,c;\nchar a[40];\nscanf(\"%d\",&n);\nscanf(\"%s\",&a);\nprintf(\"%s\",a);\nc=strlen(a);\nfor(i=1;i<=n-1;i++)\n{scanf(\"%s\",&a);\nif(c+strlen(a)+1<=80)\n{printf(\" %s\",a);\nc+=strlen(a)+1;}\nelse\n{c=strlen(a);\nprintf(\"\\n%s\",a);}}}\n"} +{"label": "98", "index": "48725", "code": "\nint main()\n{\n\tint n, l, line = 0;\n\tint i;\n\tchar word[1000][40];\n\tcin >> n;\n\tcin >> word[0];\n\tline = strlen(word[0]);\n\tcout<< word[0];\n\tfor (i = 1; i< n; i++)\n\t{\n\t\tcin>>word[i];\n\t\tl = strlen(word[i]);\n\t\tline = line + l +1;\n\t\tif(line <=80)\n\t\t\tcout << ' ' << word[i];\n\t\telse\n\t\t{\n\t\t\tcout<< endl << word[i];\n\t\t\tline = l;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48726", "code": "/*\n * y2.cpp\n *\n * Created on: 2011-1-9\n * Author: jsgl\n */\nint main(){\n\tchar a[401],*p=a;\n\tint n,len,tolen=0;\n\tcin>>n;\n\tcin>>p;\n\tcout<>p;\n\t\tlen=strlen(p);\n\t\ttolen+=(len+1);\n\t\tif(tolen<=80)\n\t\t\tcout<<\" \"<80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%s\",s);\n\t\t\td=strlen(s);\n\t\t}\n\t\telse\n\t\t{\n\n\t\tprintf(\" \");\n\t\tprintf(\"%s\",s);\n\t\t}\n\t}\n}\n\t\t\n\n"} +{"label": "98", "index": "48728", "code": "\nint main()\n{\n\tint n, i, length=0;\n\tchar a[1000][42];\n\tscanf(\"%d\", &n);\n\tscanf(\"%s\", a[0]);\n\tprintf(\"%s\", a[0]);\n\tlength=strlen(a[0]);\n\tfor(i=1; i>n;\n\tcin>>a;\n\tcout<>a;\n\t\tlen=strlen(a);\n\t\ttolen+=(len+1);\n\t\tif(tolen<=80)\n\t\t\tcout<<\" \"<> n;\n\tchar word[1000][41];\n\tfor (int i = 0; i < n; i++)\n\t{\n\t\tcin >> word[i];\n\t}\n\tchar *p1 = word[0];\n\tchar *p2 = NULL;\n\tfor (p2 = p1; p1 <= word[n - 1]; p1 = p2 + 41)\n\t{\n\t\tp2 = p1;\n\t\tfor (int s = -1; s <= 80; p2 += 41)\n\t\t{\n\t\t\tif (p2 == word[n])\n\t\t\t{\n\t\t\t\tp2 += 41;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ts += length(p2);\n\t\t\ts++;\n\t\t}\n\t\tp2-= 82;\n\t\tcout << p1;\n\t\tfor (char *p3 = p1+41; p3 <= p2; p3+=41)\n\t\t{\n\t\t\tcout << \" \" << p3;\n\t\t}\n\t\tcout << endl;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48731", "code": "\nint main(){\n\tchar c[41];\n\tchar *p=c;\n\tint n;\n\tcin>>n;\n\tint i;\n\tint j;\n\tint num=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>c;\n\t\tfor(;*p!=0;p++);\n\t\tj=p-c;\n\t\tif(num==0)\n\t\t{\n\t\t\tcout<80)\n\t\t{\n\t\t\tcout<=80){\n\t\t\t\tprintf(\"%s\",word[i]);\n\t\t\t}else {\n\t\t\t\tprintf(\"%s \",word[i]);\n\t\t\t}\n\t\t\tnum+=number[i];\n\t\t\ti++;\n\t\t\tj++;\n\t\t\tif(i==n-1)flag=1;\n\t\t}\n\t\tif(i==n-1){\n\t\t\tprintf(\"%s\\n\",word[i]);\n\t\t}else{\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\tj=0;\n\t\tnum=0;\n\t}\n\t\n\t\treturn 0;\n}\n"} +{"label": "98", "index": "48733", "code": "int main(){\n\tchar a[50],*pointa;\n\tpointa=a; //?????????\n\tint m,i,len,temp=0,account=0;\n\tcin >> m; //??m????m???\n\twhile(m > 0){ //???m>0?\n\t\tm --; //?????????\n\t\tcin >> a; //?????\n\t\tlen=strlen(a); //????\n\t\ttemp += len; //temp????????\n\t\tif(account==0){ //account????????????????0\n\t\t\tfor(i=0;i 0){ //?account > 0\n\t\tif(temp < 80){ //temp??80?\n\t\t\tcout << ' '; //????\n\t\t\tfor(i=0;i= 80){ //?temp????80\n\t\t\tcout << endl; //??????\n\t\t\tfor(i=0;i>words;\n\n\tfor(i= 0; i< words; i++){\n\t\tif(letter== 0)\n\t\t\tlinehead= 1;\n\t\telse\n\t\t\tlinehead= 0;\n//\t\tcout<<\" linehead= \"<>word;\n\t\tletterp=word;\n\t\tfor(letterp= word; *letterp!= '\\0'; letterp++){\n\t\t\twordlen++;\n\t\t}\n//\t\tcout<<\"word= \"< 80){\n\t\t\tcout<>n;//??????\n\tcin.get();//????\n\tcin.get(a,10000,'\\n');//???????\n\tchar *p=a;//???????????\n\tint lenth[100]={0};//????????????\n\tint *q=lenth;\n\tint m=0;//??????????\n\tint flag=0;//?????????????\n\twhile(*p!='\\0'&&flag==0)//???????\n\t{\n\t\tint i=0;//???\n\t\tfor(i=0;i<80;i++)\n\t\t{\n\t\t\tp++;\n\t\t\tif(*p=='\\0')\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}//??80?????????????????????\n\t\tif(flag==0)\n\t\t{\n\t\t\tif(*p!=' ')\n\t\t\t\tfor(;*p!=' ';p--);\n\t\t\t*p='\\0';\n\t\t}//????????????80??????????????????\n\t\tp=a;//?????\n\t\tq=lenth;\n\t\tfor(int j=0;j>n;\n\t/*char a[1000][100];*/\n\tchar a[200][100];\n\tint i,j,k,lc,m;\n\tfor(i=0;i>a[i];\n\tfor(i=0;i>a[i][j];\n\t\tb[i]=j;\n\t\ta[i][j+1]='\\0';\n\t}\n\tcin.getline(a[n-1],100);\n\tb[n-1]=strlen(a[n-1]);*/\n\tint l;\n\n\tl=b[0];\n\tcout<80)\n\t\t{\n\t\t\tcout<>n;\n\tfor(i=1;i<=n;i++)\n\t\tcin>>*(a+i);\n\tint e=1;\n\tint len=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(e)\n\t\t{\n\t\t\tcout<<*(a+i);\n\t\t\te=0;\n\t\t\tlen=strlen(*(a+i))+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif((len+strlen(*(a+i)))>80)\n\t\t\t{\n\t\t\t\tcout<total)\n {\n printf (\"%s\\n\",a[i]);\n total=80;\n }\n }\n }\n else if (length[i]==total) { printf (\"%s\\n\",a[i]); total=80; }\n else if (length[i]>total) { printf (\"\\n\"); i=i-1; total=80; }\n }\n //printf (\"\\n\");\n}"} +{"label": "98", "index": "48739", "code": "char a[81];\nvoid do_a(void)\n{\n\tif (a[0] == '\\n')\n\t{\n\t\tfor (int i = 0; i < strlen(a) ; i++)\n\t\t{\n\t\t\ta[i] = a[i + 1];\n\n\t\t}\n\t}\n\tif (a[strlen(a) - 1] == '\\n')a[strlen(a) - 1] = '\\0';\n}\nint main()\n{\n\tint b;\n\tcin >> b;\n\tint t = 0;\n\tfor (int i = 0; i=81||t==strlen(a))\n\t\t{\n\t\t\tcout << endl << a;\n\t\t\tt = strlen(a) + 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \" \" << a;\n\t\t\tt += 1;\n\t\t}\n\t}\n}"} +{"label": "98", "index": "48740", "code": "int main()\n{\n\tstruct word{\n\t\tchar w[41];\n\t\tint l;\n\t}a[1000];\n\tint n,i,temp=-1,t,p=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t\t{\n\t\t\t t=i;\n\t\t\t break;\n\t\t\t}\n\t\t}\n\t\tif(temp>80)\n\t\t{\n\t printf(\"%s\",a[p].w);\n\t for(i=p+1;i80);\n\tprintf(\"%s\",a[p].w);\n\tfor(i=p+1;i>n;\n\tchar a[500][41];\n\tint b[500];\n\tint i,j,sum=0,k=0;\n\tchar (*p)[41]=a;\n\tint *q=b;\n\tfor(i=0;i>*(p+i);\n\tfor(i=0;i81){\n\t\t\tfor(j=k;j>n;\n\tfor(int i=0;i>a;\n\t\tnum=strlen(a); //ÊäÈëÒ»¸öµ¥´Ê£¬¼Ç¼³\u00a4¶È\n\t\tif(num+1+linelen>80) //Èç¹ûÕâ¸öµ¥´ÊµÄ³\u00a4¶È¼ÓÉÏÇ\u00b0Ãæ\u00d7Ö\u00b7û´®³\u00a4¶È´\u00f3ÓÚ80µÄ»\u00b0\n\t\t{\n\t\t\tcout<>n;\n\treturn 0;\n}\n"} +{"label": "98", "index": "48743", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tchar str[1000][50]; //????\n\tint len=0;\n\tfor(int i=1;i<=n;i++)\n\t\tcin>>*(str+i);\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tif(len==0)\n\t\t{\n\t\t\tlen=strlen(*(str+i));\n\t\t\tcout<<*(str+i);\n\t\t}\n\t\telse if(len+1+strlen(*(str+i))<=80)\n\t\t{\n\t\t\tlen=len+1+strlen(*(str+i));\n\t\t\tcout<<\" \"<<*(str+i);\n\t\t}\n\t\telse if(len+1+strlen(*(str+i))>80)\n\t\t{\n\t\t\tlen=strlen(*(str+i));\n\t\t\tcout<> n;\n\tp = str;\n\tfor (i = 0; i> *(p+i);\n\tfor (i = 0; i>n;\n getchar ();\n for (int i=1;i<=n;i++)\n {\n for (int j=1;j<=299;j++)\n {\n *(*(a+i)+j)=getchar ();\n if (*(*(a+i)+j)==32||*(*(a+i)+j)==10)\n {\n *(m+i)=j-1;\n break;\n }\n }\n }\n while (w> n;\n sum = 0;\n for (i = 1; i <= n; i++)\n {\n cin >> a;\n l = strlen(a);\n if (sum == 0) \n {\n for (j = 0; j 81){\n\t\t\tprintf(\"\\n\");\n\t\t\tcount=0;\n\t\t\tcontinue;\n\t\t}\n\t\telse if((count-1<=80)&&(count+len[i+1]>80)){\n\t\t\tprintf(\"%s\\n\",sz[i]);\n\t\t\tcount=0;\n\t\t\tcontinue;\n\t\t}\n\t\telse if((count<=80)&&(count+len[i+1]<=80)){\n\t\t\tprintf(\"%s \",sz[i]);\n\t\t\tcontinue;\n\t\t}\n\t}\n\tprintf(\"%s\",sz[n-1]);\n\treturn 0;\n}\n\t\n"} +{"label": "98", "index": "48749", "code": "int main()\n{\n int n;\n scanf(\"%d\",&n);\n char word[n][20];\n int i,sum=0;\n scanf(\"%s\",word[0]);\n sum+=strlen(word[0])+1;\n for(i=1;i80){\n printf(\"%s\\n\",word[i-1]);\n sum=strlen(word[i])+1;\n }\n else{\n printf(\"%s \",word[i-1]);\n sum+=1;\n }\n }\n printf(\"%s\",word[n-1]);\n} "} +{"label": "98", "index": "48750", "code": "\nchar word[45];\nint length=0;\n\nint main()\n{\n int n,i=0;\n scanf(\"%d\",&n);\n while((i++)80)\n\t\t\t{\n\t\t\t\tsum=0;\n\t\t\t\tprintf(\"\\n%s\",s);\n\t\t\t\tsum=sum+(int)strlen(s);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum=sum+(int)strlen(s)+1;\n\t\t\t\tprintf(\" %s\",s);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48752", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tchar ch[300][50];\n\tint lengthch[300];\n\tfor (int i=0;i>*(ch+i);\n\t *(lengthch+i)=strlen(*(ch+i));\n\t}\n\tint num=80;\n\tfor (int i=0;i0)\n\t\t{cout<<*(ch+i)<<' ';num=num-*(lengthch+i)-1;}\n\t\telse\n\t\t{cout<<*(ch+i)<>m;\n\tint b[1000]={0},c=0;\n\tchar a[1000][40];//??????\n\tfor(i=0;i>a[i];\n\tfor(i=0;i81)//??k??80????\n\t\t{\n\t\t\tfor(j=c;j>n;\n for(i=0;i<=n-1;i++)\n {\n cin>>*(a+i);\n \n }\n for(i=0;i<=n-1;i++)\n {\n if(q+strlen(*(a+i))+strlen(*(a+i+1))+1>80)\n {cout<<*(a+i)<40;i--)//??81??????\n \t\t{\n \t\t\tif(word[i]==' ') break;\n \t\t}\n \t\tfor(j=0;j>n;\n for(i=0;i>*(word+i);\n for(i=0;i81)\n\t\t{\n\t\t\tsum=strlen(word1[j].a)+1;\n\t\t\tword1[j].num=0;\n\t\t\t(word1[j].line)++;\n\t\t\tword1[j-1].flag=1;\n\t\t}\n\t}\n\n for(k=0;k>n;\n\tgetchar(); //?????\n\tchar a[n][42]; //?????????????\n\tfor (i=0;i> n;\n\tcin.get();\n\tcin.getline(essay, 10000);\n\tbegin = essay;\n\tp = essay;\n\tfor ( p = essay; *p != '\\0'; p ++ )\n\t{\n\t\tif ( *p ==' ' )\n\t\t{\n\t\t\tif ( p - begin > 80 )\n\t\t\t{\n\t\t\t\tfor ( q = begin; q < space; q ++ )\n\t\t\t\t\tcout << *q;\n\t\t\t\tcout << endl;\n\t\t\t\tp = p + 1;\n\t\t\t\tbegin = space + 1;\n\t\t\t}\n\t\t\tspace = p;\n\t\t}\n\t}\n\tfor ( q = begin; *q != '\\0'; q ++ )\n\t\tcout << *q;\n\tcout << endl;\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48761", "code": "int main()\n{\n\tchar str[2000][41];\n\tint n;\n\tcin >> n;\n\tint i;\n\tint length[2000];\n\tint *p = length;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> str[i];\n *(p + i) = strlen(str[i]);\n\t}\n\t*(p + i) = 1000;\n\tint total = 80;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tif(*(p + i) <= total)\n\t\t{\n\t\t\tcout << str[i];\n\t\t\ttotal -= *(p + i);\n\t\t\ttotal--;\n\t\t\tif(*(p + i + 1) <= total)\n\t\t\t\tcout << \" \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\ttotal = 80;\n\t\t\ti--;\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48762", "code": "int main()\n{\n\tchar x[1000][41];\n\tint a,b,i;\n\tscanf(\"%d\",&a);\n\tfor(i=0;i=80)\n\t\t{\n\t\t\tprintf(\"%s\\n\",x[i]);\n\t\t\tb=strlen(x[i+1]);\n\t\t}\n\t\telse if(i==a-1)\n\t\t{\n\t\t\tprintf(\"%s\",x[i]);\n\t\t}\n\t\telse \n\t\t{printf(\"%s \",x[i]);\n\t\tb++;}\n\n\t}\n\n\n\treturn 0;\n}"} +{"label": "98", "index": "48763", "code": "int main()\n{\n\tchar word[9999][50];\n\tint i , j , n , len , cnt = 0;\n\tcin >> n;\n\tfor(i = 0 ; i < n ; i++)\n\t\tcin >> word[i];\n\tfor(i = 0 ; i < n - 1 ; i++)\n\t{\n\t\tif(cnt + strlen(word[i]) <= 80 && cnt + strlen(word[i]) + 1 + strlen(word[i + 1]) > 80 )\n\t\t{\n\t\t\tcout << word[i] << endl;\n\t\t\tcnt = 0;\n\t\t}\n\t\telse//(cnt + strlen(word[i]) + 1 <= 80 && cnt + strlen(word[i]) + 1 + strlen(word[i + 1]) + 1 <= 80)\n\t\t{\n\t\t\tcout << word[i] << \" \" ;\n\t\t\tcnt = cnt + strlen(word[i]) + 1;\n\t\t}\n\t\t\n\t}\n\tcout << word[n - 1];\n\treturn 0;\n}"} +{"label": "98", "index": "48764", "code": "int main()\n{\n\tint n, i, num=0, l, j;\n\tchar a[40], *p;\n\tcin >> n;\n\twhile(n>0)\n\t{\n\t\tmemset(a, 40, '\\0');\n\t\tcin >> a;\n\t\tl=strlen(a);\n\t\ta[l]='\\t';\n\t\tp=a;\n\t\tif(num+l <= 80)\n\t\t{\n\t\t\tif(num>0)\n\t\t\t{\n\t\t\t\tcout << \" \";\n\t\t\t}\n\t\t\tfor(i=0; a[i] != '\\t'; i++)\n\t\t\t{\n\t\t\t\tcout << *(p+i);\n\t\t\t}\n\t\t\tnum += l+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnum=0;\n\t\t\tcout << endl;\n\t\t\tfor(i=0; i> n;\n\tfor(int k = 0; k < n; k++)\n\t{\n\t\tcin >> word;\n\t\tif(num == 0)\n\t\t{\n\t\t\tcout << word;\n\t\t\tnum += strlen(word);\n\t\t\tcontinue;\n\t\t}\n\t\tnum += strlen(word) + 1;\n\t\tif(num <= 80)\n\t\t{\n\t\t\tcout << ' ' << word;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl << word;\n\t\t\tnum = strlen(word);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48766", "code": "int main(){\n\tint n,i,charnum=0;\n\tcin>>n;\n\tchar a[n][100];\n\tfor(i=0;i>*(a+i);\n for(i=0;i80 && charnum<=81)\n \t cout<<*(a+i);\n if(charnum+strlen(*(a+i+1))<=80&&i!=n-1)\n cout<<*(a+i)<<\" \";\n if(charnum+strlen(*(a+i+1))<=80&&i==n-1)\n cout<<*(a+i);\n if(charnum>81){\n \t cout<>n;\n\tcin.get();\n\tint i;\n\tchar words[1000][40];\n\tfor (i = 0;i < n;i++)//????????\n\t{\n\t\tcin>>words[i];\n\t}\n\tint len[1000];\n\tfor (i = 0;i < n;i++)//????????\n\t\tlen[i] = strlen(words[i]);\n\tint line[100] = {0};//???????????\n\tint j = 0;\n\tcout<80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tlen=0;\n\t\t}else if(i!=0)printf(\" \");\n\t\tlen+=lw+1;\n\t\tstrcpy(p,w);\n\t}\n\tprintf(\"%s\\n\",p);\n\t\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48769", "code": "main()\n{\n\tint n, l=0, L=0;\n\tint i, t;\n\tchar w[200][41], c[100]={'\\0'};\n\n\tscanf(\"%d\", &n);\n\tfor(i=0; i81)\n\t\t{\n\t\t\tc[L-1-l]='\\0';\n\t\t\tputs(c);\n\t\t\tprintf(\"\\n\");\n\t\t\tfor(t=0; c[t]!='\\0'; t++)\n\t\t\t\t{\n\t\t\t\t\tc[t]='\\0';\n\t\t\t\t}\n\t\t\tstrcat(c, w[i]);\n\t\t\tstrcat(c, \" \");\n\t\t\tL=0;\n\t\t\tl=strlen(w[i])+1;\n\t\t\tL=L+l;\n\t\t}\n\t}\n\t\n\n\treturn 0;\n}"} +{"label": "98", "index": "48770", "code": "int main()\n{\n\tint n,i,m=0;\n\tchar word[41];\n\tscanf(\"%d\",&n);\n\tscanf(\"%s\",word);\n\tfor(i=0;i80)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t\tm=0;\n\t\t\t\ti--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintf(\" %s\",word);\n\t\t\t\tm=m+strlen(word)+1;\n\t\t\t\tscanf(\"%s\",word);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48771", "code": "int main()\n{\n int n,i=0,t=0;\n char c[4000]={'\\0'};\n cin>>n;\n getchar(); //??\n while (i<=n)\n {\n c[t]=getchar();\n if(c[t]==' ')\n i++;\n if(c[t]=='\\n')\n {\n break;\n c[t]='\\0';\n }\n t++;\n }\n char *p=&c[0]+80; //??80???????\n int m=0;\n while(1)\n {\n while (*p!=' ')\n {\n p--;\n } //??????\n for(i=m;&c[i]!=p;i++)\n {\n cout<>n;\n\tfor (i1=0;i1>*(a+i1);\n\tint num=0;\n\tfor (int i2=0;i2<=i1-1;i2++)\n\t{\n\t\tif (num+strlen(*(a+i2))<=80&&num+strlen(*(a+i2))+1+strlen(*(a+i2+1))<=80&&i2!=i1-1)\n\t\t{\n\t\t\tcout<<*(a+i2)<<\" \";\n\t\t\tnum=num+strlen(*(a+i2))+1;\n\t\t}\n\t\telse if (num+strlen(*(a+i2))<=80&&num+strlen(*(a+i2))+1+strlen(*(a+i2+1))>80)\n\t\t{\n\t\t\tcout<<*(a+i2)<> n;\n\tfor (i = 0; i < n;i ++)\n\t{\n\t\tcin >> *(w + i);\n\t}\n\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcnt[i] = strlen(*(w + i));\n\t}\n\tsum = 0;\n\tfor (i = 0; i < n;i ++)\n\t{\n\t\tsum = sum + cnt [i];\n\t\tif (sum > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << w [i] << \" \";\n\t\t\tsum = cnt [i] + 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << w[i];\n\t\t\tif (sum + cnt [i + 1] + 1<= 80 && i != n -1)\n\t\t\t\tcout << \" \";\n\t\t\tsum = sum + 1;\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\t\n"} +{"label": "98", "index": "48776", "code": "int main()\n{\n\tint numofwords=0,numofchar=0;// num of char is used to count the num in the line\n\tint lenofwords[1000]={0};\n\tint i=0,flag=0;\n\tchar words[1000][40];\n\tcin>>numofwords;\n\tcin.get();\n\twhile(numofwords>0)\n\t{\n\t\tscanf(\"%s\",words[i]);//cin the words\n\t\tcin.get();\n\t\tlenofwords[i]=strlen(words[i]);\n\t\tnumofwords--;\n\t\tif((numofchar+lenofwords[i]+1<=80)&&(flag==1))\n {\n\t\t\tcout<<\" \";\n\t\t\tprintf(\"%s\",words[i]);\n numofchar=numofchar+lenofwords[i]+1;\n }\n else if ((numofchar+lenofwords[i]<=80)&&(flag==0))\n {\n printf(\"%s\",words[i]);\n flag=1;\n numofchar=numofchar+lenofwords[i];\n }\n else\n {\n printf(\"\\n\");\n cout<80){\n\t\t\tL=0;\n\t\t\tprintf(\"\\n%s\",ori[i]);\n\t\t\tL+=strlen(ori[i]);\n\t\t}else{\n\t\t\tprintf(\" %s\",ori[i]);\n\t\t}\n\t}\n\n\n\treturn 0;\n}"} +{"label": "98", "index": "48779", "code": "int main()\n{\n\tint i, n, j=0, l = 0, m=0,t=0, k;\n\tchar str[10000];\n\tcin >> n;\n\tcin.get();\n\tcin.getline(str,10000);\n\tk = strlen(str);\n\tfor ( i = 0 ; i < k ; i++ )\n\t{\n\t\tt++;\n\t\tif ( str[i] != ' ')\n\t\t\tm++;\n\t\telse\n\t\t{\n\t\t\tif ( t > 81)\n\t\t\t{\n\t\t\t\tif ( l != 0)\n\t\t\t\t{\n\t\t\t\t\tfor ( j = l ; j < i - m - 1 ; j++ )\n\t\t\t\t\t\tcout << str[j];\n\t\t\t\t\tl = l + t - m - 1;\n\t\t\t\t\ti = i - m - 1;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tt=0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor ( j = l; j < i - m - 1 ; j++ )\n\t\t\t\t\t\tcout << str[j];\n\t\t\t\t\tl = l + t - m - 1;\n\t\t\t\t\ti = i - m - 1;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( t == 81 )\n\t\t\t{\n\t\t\t\tif ( l != 0 )\n\t\t\t\t{\n\t\t\t\t\tfor ( j = l ; j < i ; j++ )\n\t\t\t\t\t\tcout << str[j];\n\t\t\t\t\tl = l + t;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tt=0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor ( j = l ; j < i ; j++ )\n\t\t\t\t\t\tcout << str[j];\n\t\t\t\t\tl = l + t ;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\tt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tm=0;\n\t\t}\n\t}\n\tfor ( j = l ; j < k ; j++ )\n\t\tcout << str[j];\n\treturn 0;\n}"} +{"label": "98", "index": "48780", "code": "int main ( )\n{\n\tint n, i, j, k, m;\n\tchar word[1000][41] = {'\\0'}, newword[1000][81] = {'\\0'};\n\tcin >> n;\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tcin >> word[i];\n\t}\n\tj = 0;\n\tk = 0;\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tm = strlen(word[i]);\n\t\tif(j+m > 80)//?????????????????>80\n\t\t{\n\t\t\tnewword[k][j-1] = '\\0';\n\t\t\tnewword[k][j] = '\\0';//??????\n\t\t\tk++;\n\t\t\tstrcpy(newword[k], word[i]);//???????\n\t\t\tj = m;\n\t\t\tnewword[k][j] = ' ';//???????\n\t\t\tj++;\n\t\t}\n\t\telse if(j+m==80)\n\t\t{\n\t\t\tstrcat(newword[k], word[i]);//????\n\t\t\tk++;\n\t\t\tj = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(j==0)\n\t\t\t{\n\t\t\t\tstrcpy(newword[k], word[i]);\n\t\t\t\tj += m;\n\t\t\t\tnewword[k][j] = ' ';\n\t\t\t\tj++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrcat(newword[k], word[i]);\n\t\t\t\tj += m;\n\t\t\t\tnewword[k][j] = ' ';\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t}\n\tnewword[k][j-1] = '\\0';\n\tnewword[k][j] = '\\0';\n\tfor(i = 0;i <= k;i++)\n\t{\n\t\tm = strlen(newword[i]);\n\t\tfor(j = 0;j < m;j++)\n\t\t{\n\t\t\tif(j == m-1)\n\t\t\t\tcout << newword[i][j] <80)\n {\n printf(\"\\n%s\",word);sum=0;\n \n }\n sum+=strlen(word)+1; \n }\n \t\n return 0;\n}\n"} +{"label": "98", "index": "48782", "code": "int main()\n{\n int n,i,num,len;;\n char w[50];\n scanf(\"%d\",&n);\n num=0;\n scanf(\"%s\",w);\n len=strlen(w);\n for(i=0;i>n;\n\tfor(int i = 0;i < n;i++){\n cin>>word[i];\n }\n\tcout<=80)\n {\n printf(\"\\n%s\",s);\n num=len;\n continue;\n }\n }\n return 0;\n}\n"} +{"label": "98", "index": "48786", "code": "int main()\n{\n\tchar A[2013][100];\n\tint N;\n\tscanf(\"%d\\n\",&N);\n\tfor (int I = 1; I <= N; I ++) cin >> A[I];\n\tint S = 0;\n\tfor (int I = 1; I <= N; I ++)\n\t{\n\t\tif (S == 0)\n\t\t{\n\t\t\tcout << A[I];\n\t\t\tS = strlen(A[I]);\n\t\t}\n\t\telse if (S + strlen(A[I]) + 1 <= 80)\n\t\t\t{\n\t\t\t\tcout << \" \" << A[I];\n\t\t\t\tS = S + strlen(A[I]) + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tS = 0;\n\t\t\t\tprintf(\"\\n\");\n\t\t\t\tI --;\n\t\t\t}\n\t}\n}"} +{"label": "98", "index": "48787", "code": "int main( )\n{\n\tchar a[250][45]={'\\0'},c;\n\tint n,i,h,l,countnum;\n\tcin>>n;\n\th=0;\n\tfor(i=0;i>*(a+i);\n \n\n\t\t\n\t}\n\tcountnum=0;\n\ti=0;\n\twhile(i0&&count<=80)printf(\" %s\",s[i]);\n\t\telse if(count>80)\n\t\t{\n\t\t\tcount=-1;\n\t\t\ti--;\n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\t\n\n\t}\n \n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48789", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,line,l1,l2,i,j,b;\n\tchar s1[40],s2[40];\n\tscanf(\"%d\",&n);\n\tline=80;\n\tscanf(\"%s\",s1);\n\tl1=strlen(s1);\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tif (i!=n)\n\t\t{\n\t\t\tscanf(\"%s\",s2);\n\t\t l2=strlen(s2);\n\t\t}\n\t\telse l2=0;\n\t\tif (line-l1+b>0) \n\t\t{\n\t\t\tline=line-l1;\n\t\t\tprintf(\"%s\",s1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"\\n%s\",s1);\n\t\t\tline=80-l1;\n\t\t}\n\t\tb=0;\n\t\tif ((line-1-l2>=0)&&(i!=n))\n\t\t{\n\t\t\tprintf(\" \");\n\t\t\tline--;\n\t\t\tb=1;\n\t\t}\n\t\tfor (j=0;j=0) \n\t { if(t==81) printf(\"%s\",word);\n\t\t else printf(\" %s\",word);\n t=t-k-1;\n\t }\n\t else {printf(\"\\n\");\n\t t=81-k-1;\n\t\t printf(\"%s\",word);} \n }\n printf(\"\\n\");\n return 0;\n}"} +{"label": "98", "index": "48791", "code": "int main()\n{\n\tchar a[300][40];\n\tint i=0,n,words=0;\n\tcin>>n;\n\tdo\n\t{\n\t\tcin>>a[i];\n\t\ti++;\n\t}\n\twhile(i> n;\n\tcin.get();\n\tchar a[10000];\n\tmemset(a,'\\0',10000);\n\tgets(a);\n\tint q = strlen(a);\n\tfor (int i = 0; i <= q; )\n\t{\n\t\tif (a[i + 80] == '\\0')\n\t\t{\n\t\t\tputs(a+i);\n\t\t\tbreak;\n\t\t}\n\t\telse if(a[i + 79] == ' ')\n\t\t{\n\t\t\ta[i + 79] = '\\n';\n\t\t\tfor (int j = i; j <= i + 79; j++)\n\t\t\t\tputchar(a[j]);\n\t\t\ti += 80;\n\t\t}\n\t\telse if(a[i + 80] == ' ')\n\t\t{\n\t\t\ta[i + 80] = '\\n';\n\t\t\tfor (int j = i; j <= i + 80; j++)\n\t\t\t\tputchar(a[j]);\n\t\t\ti += 81;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint j = i + 79;\n\t\t\tfor(;a[j] != ' ';j--);\n\t\t\ta[j] = '\\n';\n\t\t\tfor (int l = i; l <= j; l++)\n\t\t\t\tputchar(a[l]);\n\t\t\ti = j + 1;\n\t\t}\n\t}\n}\n\n\n\n\n"} +{"label": "98", "index": "48793", "code": "int main()\n{\n int n, i, j, sum, l;\n char a[41];\n char *p = a;\n cin >> n;\n sum = 0;\n for (i = 1; i <= n; i++)\n {\n cin >> a;\n l = strlen(a);\n if (sum == 0) \n {\n for (j = 0; j =(strlen(a[i]))&&(80-sum)<(strlen(a[i])+strlen(a[i+1])+1)){\n\t\t\tprintf(\"%s\\n\",a[i]);\n\t\t\tsum=0;\n\t\t}\n\t\telse if((80-sum)>=(strlen(a[i])+strlen(a[i+1])+1)){\n\t\t\tprintf(\"%s \",a[i]);\n\t\t\tsum=sum+strlen(a[i])+1;\n\t\t}\n\t}\n\tprintf(\"%s\\n\",a[n-1]);\n}"} +{"label": "98", "index": "48795", "code": "\nint main(){\n\tchar word[42];\n\tint chars_left,word_length,i,j,word_num;\n\n\tscanf(\"%d\",&word_num);\n//???word????\n\tscanf(\"%s\",&word);\n\tprintf(\"%s\",word);\n\tword_num--;\n\tword_length=strlen(word);\n\tchars_left=80-word_length;\n\n//????word??\n\twhile(word_num--){\n\t\tscanf(\"%s\",&word);\n\t\tword_length=strlen(word);\n\t\tif(chars_left> n;\n\tcin.get();\n\tcin.getline(str, 10000);\n\tint len = strlen(str);\n\tif (len == 80) cout << str;\n\telse\n\t{\n\tfor (; b - str < len + 1; b++)\n {\n\t\tif ((b - c + 1) % 80 == 0)\n\t\t{\n\t\t\tif(*b == ' ' )\n\t\t\t{\t\n\t\t\t\tfor (b = c; b < c + 79; b++)\n\t\t\t\t{cout << *b;}\n\t\t\t cout << endl;\n\t\t\t\tb++;\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(*(b + 1) == ' ')\n\t\t\t {\n\t\t \t\tfor (b = c; b < c + 80; b++)\n\t\t \t\t{cout << *b;}\n\t\t\t\t\tcout << endl;\n\t\t \t\tb++;\n\t\t \t\tc = b;\n\t \t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tint num = 0;\n\t\t\t\t if (*(b + 1) != ' ')\n\t\t\t\t\t{\n\t\t\t\t\t\twhile (*b != ' ')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tb--; \n\t\t\t\t\t\t\tnum++;// ???????????????????\n\t\t\t\t\t\t}\n\t\t\t\t\t for (b = c; b < c + 79 - num; b++)\n\t\t \t\t {cout << *b;}\n\t\t\t\t\t cout << endl;\n\t\t \t\t b++;\n\t\t \t\t c = b;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t \n \t} \n\t\tif (*b == '\\0')\n\t\t{\n\t\t b = c;\n\t\t\twhile (*b != '\\0')\n\t\t\t{\n\t\t\t\tcout << *b;\n\t\t\t\tb++;\n\t\t\t}\n\t\t\tcout << endl;\n\t\t}\n\t}\n\t}\n return 0; \n}\n\n\n"} +{"label": "98", "index": "48797", "code": "\nint main()\n{\n char a[40], *p;\n int n, s = 0, len = -1, flag = 0;\n p = a;\n cin >> n;\n while (s < n)\n {\n s++;\n cin >> a;\n len = len + 1 + strlen(a);\n if (len <= 80)\n {\n if (flag == 0)\n {\n cout << a;\n flag = 1;\n }\n else\n {\n cout << ' ' << a;\n }\n }\n if (len > 80)\n {\n cout << endl;\n\t\t\t cout << a;\n len = strlen(a);\n }\n } \n\treturn 0;\n}\n"} +{"label": "98", "index": "48798", "code": "\nint main()\n{\n\tint n;\n\tcin>>n;\n\tchar a[1000][40]={'\\0'};\n\tchar *p=*a;\n\tint num[1000]={0};\n\tint *q=num;\n\tint i;\n\tfor(i=0;i>*(a+i);\n\t\t\t*(q+i)=strlen(*(a+i));\n\t }\n\tint count=*q;\n\tcout<<*a;\n\tfor(i=1;i80)\n\t\t{\n\t\t\tcout<>num;\n\twhile(count>a;\n\t\tint l=strlen(a);\n\t\tif(sum==0)\n\t\t{\t\n\t\t\tcout<80)\n\t\t{\n\t\t\tcout<0&&sum+l<80)\n\t\t{\n\t\t\tcout<<\" \"<>n;\n\tfor(i=0;i>a[i];\n len[i]=strlen(a[i])+1;\n\t}\n\ti=0;\n\twhile(i>N;\n\tcin>>S1;s1=S1;\n\tN=N-1;\n\twhile(N>0){\n\t\tcin>>S2;\n\t\ts2=S2;\n\t\tint l1=strlen(S1),l2=strlen(S2);\n\t\tsum=sum+l1+1+l2;\n\t\tif(sum<=80){\n\t\t\tfor(int i=0;i> n;\n\tcin.get();\n\tcin.getline( a , sizeof(a) );\n\tint l = strlen( a );\n\tchar *p = a;\n\twhile( p+80 <= a+l-1 )\n\t{\n\t\tp = p + 80;\n\t\tif( *p == ' ' )\n\t\t\t*p = '\\n';\n\t\telse\n\t\t{\n\t\t\twhile( *p != ' ' )\n\t\t\t\tp--;\n\t\t\t*p = '\\n';\n\t\t}\n\t\tp++;\n\t}\n\tcout << a;\n\treturn 0 ;\n}\n\t\t"} +{"label": "98", "index": "48804", "code": "int main()\n{\n\tint i=0,j=0,len,k,m,l,n,f;\n\tchar a[100],b[100][100];\n\tcin>>n;\n\tfor(f=0;f>a;\n\t\tlen=strlen(a);\n\t\tfor(k=0;k80){\n\t\t\tfor(l=j-1;;l--)\n\t\t\t{\n if(b[i][l]!=' ')\n\t\t\t\tb[i][l]='\\0';\n\t\t\t\tif(b[i][l]==' ')break;\n\t\t\t}b[i][l]='\\0';j=0;i++;\n\t\t\tfor(k=0;k>n;\n\t\n\twhile(n>0)\n\t{\n\t\tif(k>0)\n\t\t{\n\t\t\tjishu=k+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjishu=0;\n\t\t}\n\t\tk=0;\n\t\tcin>>a;\n\t\t\n\t\tn--;\n\t\tlen=strlen(a);\n\t\tjishu=jishu+len;\n\t\tcout<>a;\n\t\t n--;\n\t\t \n\t\t len=strlen(a);\n\t\t\tjishu=jishu+len;\n\t\t\t\n\t\t\t if(jishu+1<=80)\n\t\t\t {\n\t\t\t\t cout<<\" \"<80)\n\t\t{\n\t\t\tprintf(\"%s\\n\",str);strcpy(str,\"\\0\");\n\t\t}\n\t\telse \n\t\t\tif(i==n-1){printf(\"%s\",str);}\n\t\t\telse strcat(str,\" \");\n\t}\n}"} +{"label": "98", "index": "48807", "code": "\nint main(int argc, char* argv[])\n{\n\tstruct word{\n\t\tint num;\n\t\tchar words[46];\n\t}word[1000];\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i,j,m;\n\tfor(i=0;imax-length)\n\t\t{\n\t\t\tprintf(\"\\n%s\",word[i].words);\n\t\t\tlength=word[i].num+1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48808", "code": "int main()\n{\n\tint n,s;\n\tcin>>n;\n\tchar a[n][20],*p=a[0];\n\tfor(int i=0;i>a[i];\n\ts=strlen(a[0]);\n\tcout<=80)||(n==i)) //????????\n\t\t{\n\t\t\tprintf(\"%s\\n\",s); //?????\n\t\t\tnum=0; //???????\n\t\t}\n\t\telse\n\t\t\tif(num>0) //???????\n\t\t\t{\n\t\t\t\t*(s+num)=' ';\n\t\t\t\tnum++; //????\n\t\t\t}\n\t\tfor(j=0;j>n;\n\tfor(i=0;i>word[i];\n\t}\n\tfor(i=0;i0&&s+l[i]<=80)\n\t\t\tcout<<\" \"<80)\n\t\t{\n\t\t\ts=0;\n\t\t\tcout<<'\\n';\n\t\t}\n\t\tif(s==0)\n\t\t\tcout<> n;\n\tfor(i=0;i> *(a+i);\n\tlong sum=0;//sum?????????\n\tfor(i=0;i80)//??????????\n\t\t{\n\t\t\tcout << endl << *(a+i);\n\t\t\tsum=strlen(*(a+i));\n\t\t\tcontinue;\n\t\t}\n\t\tsum+=strlen(*(a+i))+1;\n\t\tif(i==0)//????????????\n\t\t{\n\t\t\tcout << *(a+i);\n\t\t\tsum--;\n\t\t\tcontinue;\n\t\t}\n\t\tcout << ' '<< *(a+i);//????????\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48812", "code": "int main ()\n{\n\tint n,s;\n\tcin>>n;\n\tchar a[9999][41];\n\tfor(int i=0;i>a[i];\n\t}\n\ts=0;\n\tcout<> n;\n\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%s\", word[i]);\n\t}\n\t\n\tint begin = 0, j = 0;\n\tint s = strlen(word[0]);\n\t\n\tfor (i = 1; i < n; i++)\n\t{\n\t\ts += strlen(word[i]) + 1;\n\t\tif (s > 80)\n\t\t{\n\t\t\tfor (j = begin; j < i; j++)\n\t\t\t{\n\t\t\t\tif (flag == 0)\n\t\t\t\t{\n\t\t\t\t\tcout << word[j];\n\t\t\t\t\ta[j] = 1;\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcout << \" \" << word[j];\n\t\t\t\t\ta[j] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcout << endl;\n\t\t\tflag = 0;\n\t\t\tbegin = i;\n\t\t\ts = strlen(word[i]);\n\t\t}\t\t\t\n\t}\n\n\tflag = 0;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (a[i] == 0)\n\t\t{\n\t\t\tfor (j = i; j < n; j++)\n\t\t\t{\n\t\t\t\tif (flag == 0)\n\t\t\t\t{\n\t\t\t\t\tcout << word[j];\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcout << \" \" << word[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48814", "code": "/*\n * qm2.cpp\n *\n * Created on: 2011-1-9\n * Author: jsgl\n */\nint main(){\n\tint n;\n\tcin>>n;\n\tchar word[n][100];\n\tint i;\n\tfor(i=0;i>*(word+i);\n\t}\n\tint k,l=0;\n\tk=0;\n\tfor(i=0;i80){\n\t\t\tl++;\n\t\t\tcout<<*(word+i)<> n;\n\tcin.get();\n\tdo\n\t{\n\t\ta = cin.get();\n\t\tif (a != ' ' && a != '\\n')\n\t\t{\n\t\t\tw[i][j] = a;\n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ti++;\n\t\t\tj = 0;\n\t\t\tjishu++;\n\t\t}\n\t}while (jishu < n); \n \n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (cd + strlen(w[i]) <= 80)\n\t\t{\n\t\t\tif (cd == 0)\n\t\t\t{\n\t\t\t\tcout << w[i];\n\t\t\t\tcd = cd + 1 + strlen(w[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \" \" << w[i];\n\t\t\t\tcd = cd + 1 + strlen(w[i]);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << w[i];\n\t\t\tcd = strlen(w[i]) + 1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48816", "code": "/*????\n * Created on: 2012-12-10\n * Author: ??\n */\nint main() {\n\tint n, sum = 0;//?????????\n\tcin >> n;//??\n\tchar a[40], *p = a;//??\n\tcin >> p;//???\n\tsum = strlen(p);\n\tcout << p;\n\tfor (int i = 1; i < n; i++) {//?????\n\t\tcin >> p;//??\n\t\tsum += strlen(p);//??\n\t\tif (sum > 79) {//??\n\t\t\tcout << endl << p;\n\t\t\tsum = strlen(p);\n\t\t} else {//???\n\t\t\tcout << ' ' << p;\n\t\t\tsum++;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48817", "code": "\n\n\nint main()\n{\n\tint n;\n\tcin>>n;\n\tchar word[200];\n\tcin.get();\n\tint sum;\n\tcin.getline(word,200,' ');\n\tcout<80)\n\t\t{\n\t\t\tcout<>n;\n\t //???????\n\tcin>>p; //???p????,??\n\tsum+=strlen(p); //sum????????\n\tcout<>p;\n\t\tsum+=strlen(p)+1; //???,?????1\n\t\tif(sum>80) //??80???\n\t\t{\n\t\t\tcout<>num;\n for (i=0;i>word;\n if (space==80)\n {\n cout<=WordLen(word)+1)\n {\n cout<<' '<> n;\n\tfor ( i = 1; i <= n; i++)\n\t\tcin >> str[i];\n\tp++;\n\twhile ( k <= n )//??????????\n\t{\n\t\twhile ( l <= 80 )//?????80???????\n\t\t{\n\t\t\tk++;\n\t\t l+=1+strlen(str[k]);//????\n\t\t}\n\tk = k - 1, l = -1;//k?????\n\tlabel[k] = 1;//???????????\n\t}\n\tfor ( i = 1; i <= n - 1; i++ )//??\n\t{\n\t\tif ( label[i] != 1)\n\t\t\tcout << *(p++) <<\" \";\n\t\telse\n\t\t\tcout << *(p++) << endl;\n\t}\n\tcout << str[i] << endl;\n\treturn 0;\n}\n"} +{"label": "98", "index": "48822", "code": "//struct\nmain()\n{\n int n;\n scanf(\"%d\",&n);\n char a[400][40];\n for(int i=0;i=0)\n printf(\"%s\\n\",a[i]);\n l=80;\n }\n else\n {\n printf(\"%s \",a[i]);\n l=l-1-s;\n }\n }\n s=strlen(a[n-1]);\n l=l-s;\n if(l<0)\n {\n printf(\"\\n\");\n printf(\"%s\",a[n-1]);\n }\n else\n printf(\"%s\",a[n-1]);\n}\n"} +{"label": "98", "index": "48823", "code": "/*\n * 111202_03_makeup.cpp\n *\n * Created on: 2011-12-2\n * Author: Alfalfa\n */\nint main(){\n\tint n1,max=0,i;\n\tcin>>n1;\n\tconst int n=n1;\n\tchar word[n+1][41];\n\tint len[n+1];\n\tfor(i=1;i<=n;i++)\n\t\t{\n\t\tscanf(\"%s\", word[i]);\n\t\tlen[i+1]=0;\n\t\tlen[i]=strlen(word[i]); //??len????????\n\t\t}\n\tfor(i=1;i<=n;i++){\n\t\tmax=max+len[i];\n\t\tif(max<=80&&max+len[i+1]+1<=80&&i!=n) { cout<80&&i!=n) {\n\t\t\tcout<> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> a[i];\n\t\tlen[i] = strlen(a[i]);\n\t}\n\tmax = 81;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tmax += len[i] + 1;\n\t\tif (max > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tmax = len[i];\n\t\t\tcout << a[i];\n\t\t}\n\t\telse\n\t\t\tcout << \" \" << a[i];\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "98", "index": "48825", "code": "int main()\n{\n\tchar a[1000][41];\n\tint b[1000],num=0;\n\tchar *(p);\n\tint n,i;\n\tcin>>n;\n\tfor(i=0;i>a[i];\n\t\tb[i]=strlen(a[i]);\n\t}\n\tp=&a[0][0];\n\tfor(i=0;i80)\n\t\t{\n\t\t\tcout<80){\n\t\t printf(\"\\n%s\",p);\n sum =strlen(p);\n continue;\n\t\t}\n\t\tprintf(\" %s\",p);\n sum+=strlen(p);\n sum++;\n\t}\n printf(\"%s\",p+40);\n}\n"} +{"label": "98", "index": "48827", "code": "//*********************************\n// ???2.cpp\n// ??????? \n// ?????? 1300012894\n// ???2013.12.11\n//*********************************\nint main()\n{\n\tint n; // ???????????? \n\tcin >> n; // ??????????????? \n\tchar a[10000]; // ???? \n\tcin.getline(a, 10000); // ??????????? \n\tcin.getline(a, 10000); // ??????? \n\tchar *p = NULL, *q = NULL; // ?????? \n\tp = a; // ????? \n\tq = p + 80;\n\twhile (*q != 0)\n\t{\n\t\twhile (*q != ' ') // ??????????????? \n\t\t{\n\t\t\tq--;\n\t\t}\n\t\t*q = 0; // ????? \n\t\tcout << p << endl; // ?? \n\t\tp = q + 1; // ??????? \n\t\tq = p + 80;\n\t} \n\tcout << p << endl; // ????????? \n\treturn 0;\n} "} +{"label": "98", "index": "48828", "code": "\nint main()\n{\n\tint n,i,len=0,m;\n\tchar w[41];\n\tscanf(\"%d\",&n);\n\tscanf(\"%s\",w);\n\tm=strlen(w);\n\tlen=m;\n printf(\"%s\",w);\n\tfor(i=1;i80){\n\t\t\tprintf(\"\\n%s\",w);\n\t\t\tlen=m;\n\t\t}\n\t\telse{\n\t\t\tprintf(\" %s\",w);\n\t\t}\n\t\t}\n\treturn 0;\n}\n\n\n\n"} +{"label": "98", "index": "48829", "code": "int main()\n{\n int number;\n cin >> number;\n char article[40]; \n int i = 0,k = 0;\n cin >> article;\n i = strlen(article);\n cout << article;\n while(k < number-1)\n {\n cin >> article;\n char *p = article;\n i = i + strlen(article) + 1; \n if(i <= 80)\n {\n //cout << \" \" << article;\n cout << \" \";\n for(;*p != '\\0'; p++) cout << *p;\n }\n else\n {\n cout << endl << article;\n i = strlen(article);\n }\n ++k;\n }\n return 0;\n}\n"} +{"label": "98", "index": "48830", "code": "int main()\n{\n\tchar word[1000][20];\n\tint n,i,j,sum=0;\n\tcin>>n;\n\tfor(i=0;i>word[i];\n\tchar(*p)[20]=word;\n\tfor(i=0;i>n;\n\tfor (int i=1;i<=n;i++)\n\t\tcin>>*(in+i);\n\tint row = 0;\n\tfor (int i=1;i>n;\n\tcount=0;\n\tfor(i=0;i>word;\n\t\tfor(j=0;word[j];j++);\n\t\tif(count+j<=80)\n\t\t{\n\t\t\tif(i==0)\n\t\t\t\tcout<> n;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tcin >> *(p + i);\n\t\t*(q + i) = strlen(*(p + i));\n\t}\n\tcout << *p;\n\tlen = *q + 1;\n\tfor(i = 1; i < n; i++)\n\t{\n\t\tif(len + *(q + i) <= 80)\n\t\t{\n\t\t\tcout << ' ' << *(p + i);\n\t\t\tlen += 1 + *(q + i);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl << *(p + i);\n\t\t\tlen = *(q + i) + 1;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "98", "index": "48834", "code": "int main ()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tstruct point\n\t{\n\t\tchar a[40];\n\t}words[1000];\n\tfor(i=0;i81)\n\t\t{\n\t\t\t\tint k;\n\t\t\t\tk=strlen(words[i].a);\n\t\t\t\twords[i].a[k-1]='\\n';\n\t\t\t\twords[i].a[k]='\\0';\n\t\t\t\tnum=0;\n\t\t}\n\t}\n\tfor(i=0;i> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> word;\n\t\tp = word;\n\t\tif (flag_first_word == 1)\n\t\t{\n\t\t\tcout << p;\n\t\t\tcount = strlen(p);\n\t\t\tflag_first_word = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (count + strlen(p) + 1 <= 80)\n\t\t\t{\n\t\t\t\n\t\t\t\tcout << \" \" << p;\n\t\t\t\tcount += strlen(p) + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << endl << p;\n\t\t\t\tcount = strlen(p);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48836", "code": "int main()\n{\n\tint n,i,k,x=0,flag=0,count=0;\n\tint a[500]={0};\n\tchar word[500][50];\n\tcin >> n;\n\tfor (i=0;i> word[i];\n\t\ta[i]=strlen(word[i])+1;\n\t}\n\ti=0;\n\twhile (1)\n\t{\n\t\twhile (count<=81)\n\t\t{\n\t\t\tcount+=a[i];\n\t\t\ti++;\n\t\t\tif (i==n)\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\t\n\t\tif (flag==1)\n\t\t{\n\t\t\tcout << word[x];\n\t\t\tfor (k=x+1;k>n;\n\tchar a[1000][40];\n\tint b[1000];\n\tint sum[1000];\n\tfor ( i = 0 ; i < n ; i ++ )\n\t{\n\t\tcin>>a[i];\n\t\tb[i] = strlen(a[i]);\n\t\tsum[i]=0;\n\t\n\t}\n\tfor ( i = 1 ; i < n ; i ++ )\n\t{\n\t\tsum[i] = sum[i-1] + b[i-1] + 1 ;\n\t\tsum[i+1] = sum[i] + b[i] + 1;\n\t\tif ( sum[i] < 81 && sum[i+1] <= 81 )\n\t\t\tcout< 81 )\n\t\t{\t\n\t\t\tcout<> n;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >>word[i];\n\t\tl[i] = strlen(word[i]);\n\t\tp[i] = word[i];\n\t}\n\tcout << word[1];\n\tlen += l[1] + 1;\n\tfor(i = 2; i <= n; i++)\n\t{\n\t\tlen += l[i];\n\t\tif(len <= 80)\n\t\t{\n\t\t\tcout <<' ';\n\t\t\tfor(k = 0; k < l[i]; k++)\n\t\t\t\tcout << *(p[i]+k);\n\t\t\tlen++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout <>n;\n char a[1000][50]={0};\n int i;\n int j;\n char b;\n cin.get(b);\n int num[1000]={0};\n for(i=1;i80)\n { cout<>n;\n\tint i,j,b[10000];\n\tchar word[80];\n\tint rank=0,temp;\n\twhile(n--)\n\t{\n\t\tif (rank==0)\n\t\t{\n\t\t\tscanf(\"%s\", word);\n\t\t\trank=strlen(word);\n\t\t\tcout<>n;\n\tchar str[41];\n\tcin.get();\n\tcin.getline(str,41,' ');\n\tsum=strlen(str)+1;\n\tcout<80)\n {\n printf(\"\\n%s\",dat[l1]);\n cou=strlen(dat[l1]);\n }\n else\n {\n printf(\" %s\",dat[l1]);\n cou+=strlen(dat[l1])+1;\n }\n\n return 0;\n}\n"} +{"label": "98", "index": "48843", "code": "void main()\n{\n\tint i,n,mun; //mun?????????\n\tint b[500]; //b??????????\n\tchar word[500][50];\n\tchar *pi;\n\tpi=word[0];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tchar a[1000][1000];\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tlen[i]=0;\n\t\tcin>>a[i];\n\t}\n\tlen[0]=strlen(a[0])+1;\n for(i=0;i<=n-2;i++)\n \tlen[i+1]=strlen(a[i+1])+1+len[i];\n for(i=0;i<=n-2;i++)\n {\n \tif((len[i]<=81+tempzifushu)&&(len[i+1]>=82+tempzifushu))\n \t{\n \t\ttempzifushu=len[i];\n \t\tfor(j=dancishu+1;j<=i-1;j++)\n \t\t\tcout<>n;\n\tint length = 0;\n\tfor(int i =0;i>str;\n\t\tif(length == 0)\n\t\t{\n\t\t\tcout << str;\n\t\tlength +=strlen(str);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlength +=strlen(str);\n\t\t\tlength++;\n\t\tif(length <= 80)\n\t\tcout<<' '<line){\nprintf(\"\\n\");\nprintf(\"%s\",c);\nend=len;\n\t}\nelse{\n\tprintf(\" \");\nprintf(\"%s\",c); \nend+=len+1;\n}\n}\n}\nreturn 0;\n}"} +{"label": "98", "index": "48848", "code": "int main()\n{\n\tint n,total=0;\n\tint i=0,m=0;\n\tint len;\n\tchar word[40];\n\tcin>>n;\n\tscanf(\"%s\", word);\n\tlen=strlen(word);\n\tcout<> n;//??n\n\tcin >> p;\n\tcout << p;//??????????\n\tchang = strlen(p);//???????????\n\tn--;//????\n\twhile (n > 0) {\n\t\tcin >> p;\n\t\tlen = strlen(p);//???????\n\t\tchang += len + 1;//???????\n\t\tif (chang > 80) {\n\t\t\tcout << '\\n' << p;\n\t\t\tchang = len;//??????????????????\n\t\t} else\n\t\t\tcout << ' ' << p;//????????????\n\t\tn--;//?????\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48850", "code": "int main()\n{\n\tint n, i, t = 0, s1 = 0, d, s2 = 0, d2 = 80;\n\tchar a[500][41], (*p)[41];\n\tcin >> n;\n\tfor(i = 0; i <= n - 1; i ++)\n\t\tcin >> a[i];\n\twhile(t < n)\n\t{\n\t\td = strlen(a[t]);\n\t\tt ++;\n\t\tif(d > d2)\n\t\t{\n\t\t\ts2 = t - 2;\n\t\t\tcout << a[s1];\n\t\t\tfor(p = a + s1 + 1; p <= a + s2; p ++)\n\t\t\t\tcout << \" \" << *p;\n\t\t\tcout << endl;\n\t\t\ts1 = t - 1;\n\t\t\td2 = 79 - d;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td2 = d2 - d - 1;\n\t\t}\n\t}\n\tif(t - s1 >= 1)\n\t{\n\t\tcout << a[s1];\n\t\tfor(p = a + s1 + 1; p <= a + n - 1; p ++)\n\t\t\tcout << \" \" << *p;\n\t\tcout << endl;\n\t}\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "98", "index": "48851", "code": "int main()\n{\n\tchar a[10000];\n\tint len;\n\tchar *p;\n\tint i, n,j;\n\tint lenq=0, lenh=0;\n\tcin>>n;\n\tcin.get();\n\tcin.getline(a,10000);\n\tp=a;\n\ti=0;\n\twhile(*(p+i)!=' ')\n\t{\n\n\t\ti++;\n\t}\n\tlenq=i;\n\tlen=lenq;\n\twhile(n--)\n\t{\n\t\ti=0;\n\t\tp+=lenq;\n\t\tp++;\n\t\twhile(*(p+i)!=' '&&*(p+i)!='\\0')\n\t\t{\n\t\t\ti++;\n\t\t}\n\t\tlenh=i;\n\t\tlen+=lenh;\n\t\tlen++;\n\t\tp-=lenq;\n\t\tp--;\n\t\tif(len<=80)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=lenq-1;j++)\n\t\t\t\t\tcout<<*(p+j);\n\t\t\t\tif(n)\n\t\t\t\t\tcout<<\" \";\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tfor(j=0;j<=lenq-1;j++)\n\t\t\t\t\tcout<<*(p+j);\n\t\t\t\tcout<>n;\n\tcin>>a;\n\tcout<>a;\n\t\tlength=strlen(a);\n\t\tcnt++;\n\t\tcnt+=length;\n\t\tif((cnt)<=80)\n\t\t\tcout<<\" \"<> n;\n\tint s = 0;\n\tchar p[1000][100] = { 0 };\n\tfor (int i = 0; i < n; i++) {\n\t\tint j = 0;\n\t\tcin >> *(p + i);\n\t\twhile (*(*(p + i) + j) != 0) {//?????????\n\t\t\ts++;\n\t\t\tj++;\n\t\t}\n\t\ts++;\n\t\tif (i < n - 1 && i != 0) {//??\n\t\t\tif (s <82)\n\t\t\t\tcout << *(p + i - 1) << ' ';\n\t\t\telse {\n\n\t\t\t\tcout << *(p + i - 1) << endl;\n\t\t\t\ts = j+1;\n\t\t\t}\n\t\t} else if (i == n - 1) {\n\t\t\tif (s < 82)\n\t\t\t\tcout << *(p + i - 1) << ' ' << *(p + i);\n\t\t\telse\n\t\t\t\tcout << *(p + i - 1) << endl << *(p + i);\n\t\t}\n\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48854", "code": "\nint main()\n{\n char **words;\n int n, i, j;\n scanf(\"%d\",&n);\n words=(char **)malloc(sizeof(char*)*n);\n for (i=0;i>WN;\n\tint len[WN];\n\tchar wo[WN][40];\n\tfor(i=0;i>wo[i];\n\t\tlen[i]=strlen(wo[i]);\n\t}\n\tint sum=len[0]+len[1];\n\tcout<80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tk=*(p1+1)+1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tprintf(\" \");\n\t\t\tk=k+1;\n\t\t}\n\t}\n\tp2=a;\n\tprintf(\"%s\",*(p2+n-1));\n}"} +{"label": "98", "index": "48857", "code": "//*******************************\n//*??????? **\n//*?????? 1300012965 **\n//*???20131211 **\n//*******************************\nint main()\n{\n\tchar a[999][41];\n\tmemset(a,0,sizeof(a));\n\tint n, i, j, count = 0, nlen;\n\tchar *p, *q;\n\tcin >> n;\n\tfor(i = 1; i <= n; i++)\n\t\tcin >> a[i];\n\tp = *a;\n\tcout << *(a+1);\n\tnlen = strlen(a[1]);\n\tcount = nlen;\n\tfor(j = 2; j <= n; j++)\n\t{\n\t\tnlen = strlen(a[j]);\n\t\tif(count+nlen+1 <= 80)\n\t\t{\n\t\t\tcout << \" \" << *(a+j);\n\t\t\tcount = count+nlen+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcount = nlen;\n\t\t\tcout << endl;\n\t\t\tcout << *(a+j);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48858", "code": "/* Note:Your choice is C IDE */\nint main()\n{\n int i,n,a[1000],x=0;\n char s[1000][40];\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++)\n {\n \tscanf(\"%s\",&s[i]);\n \ta[i]=1+strlen(s[i]);\n }\n for(i=1;i80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tp=0;\n\t\t}\n\t\telse if(i>0)\n\t\t{\n\t\t\tprintf(\" \");\n\t\t}\n\t\tp=p+m+1;\n\t\tstrcpy(s,word);\n\t\tprintf(s);\n\t}\n\tprintf(\"\\0\");\n\treturn 0;\n}"} +{"label": "98", "index": "48861", "code": "int main()\n{\n\tint num,i,len;\n\tchar word[1000][50];\n\tscanf(\"%d\",&num);\n\tfor(i=0;i=num)\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(len+strlen(word[i+1])<80)\n\t\t\t{\n\t\t\t\tcout<<\" \";\n\t\t\t}\n\t\t\tlen=len+1;\n\t\t\ti++;\n\t\t}\n\t\tcout<80)\n {\n printf(\"\\n\");\n len=0;\n }\n else if(i>0)\n {\n printf(\" \");\n }\n len+=wl+1;\n strcpy(p,w);\n } \n printf(p);\n getchar();\n getchar();\n getchar();\n return 0;\n} \n "} +{"label": "98", "index": "48864", "code": "\nint main(){\n\tint i , n , j , l , c = 0;\n\tchar word[100000][20];\n\tscanf( \"%d\" , &n );\n\tfor(i = 0 ; i <= n - 1 ; i++){\n\t\tscanf(\"%s\" , word[i]);\n\t}\n\tfor(i = 0 ; i <= n - 1; i++){\n\t\tprintf(\"%s\" , word[i]);\n\t\tl = strlen(word[i]);\n\t\tj = strlen(word[i+1]);\n\t\tc = c + l + 1;\n\t\t//\tprintf(\"\\n%d %d %d\" , l , j , c);\n\t\tif( c + j > 80) {\n\t\t\tprintf(\"\\n\");\n\t\t\tc = 0 ;\n\t\t}\n\t\telse if( i == n - 1 ) printf(\"\\n\");\n\t\telse printf(\" \");\n\t}\n\n\treturn(0);\n}\n"} +{"label": "98", "index": "48865", "code": "int main (){\n\tint n,t=0;\n\t\tcin>>n;\n\t\tchar word[n][41];\n\t\tchar *p[n];//????????,?????\n\t\tfor(int i=0;i>word[i];\n\t\t\tp[i]=word[i];\n\t\t}\n\t\tfor(int i=0;i80){\n\t\t \tcout<>n;\n\tcin>>word; //?????word???\n\tcout<80){ //?????\n\t\t\tmax=t;\n\t\t\tcout<>n;\n\twhile(n>0){\n\t\tcin>>words;\n\t\tlens=strlen(words);\n\t\tif(lens+sum<80){\n\t\t\tif(temp==0){\n\t\t\t\tcout<>n;\n\tfor(i=0;i>n;cin.get();\n\tk=1;\n\twhile(k<=n)\n\t{\n\t\tcin>>b[k];\n\t\tp[k]=b[k];//??????????\n\t\tk++;\n\t}\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcout<80) {cout<>n;cin.get();\n\tfor(int i=0;i>letter;\n\t\tif(count+strlen(letter)+1>80)\n\t\t{\n\t\t\t\tcount=0;\n\t\t\t\tcout<80)\n\t\t{\n\t\t\tif (i!=n-1)\n\t\t\tprintf(\"\\n%s \",A[i]);\n\t\t\telse \n\t\t\t\tprintf(\"\\n%s\\n\",A[i]);\n\t\t\ts=a+1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tb=strlen(A[i+1]);\n\t\t\tif (i!=n-1)\n\t\t\t{\n\t\t\t\tif (s+b+1>80)\n\t\t\tprintf(\"%s\",A[i]);\n\t\t\t\telse printf(\"%s \",A[i]);\n\t\t\t}\n\t\t\telse \n\t\t\t\tprintf(\"%s\\n\",A[i]);\n\t\t\ts=s+1;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "98", "index": "48874", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tchar str[800][80];\n\tint i;\n\tfor(i=0;i80)\n\t\t{\n\t\t\tfor(j=k;j> n;\n\tcin.get();\n\tchar str[42];\n\tcin >> str;\n\tcout << str;\n\tint num=strlen(str);\n\tn=n-1;\n\twhile(n--)\n\t{\n\t\tcin>> str;\n\t\tlen=strlen(str);\n\t\tnum=num+len+1;\n\t\tif(num<=80)\n\t\t\tcout<<' '<>n;\n int len,len2;\n //char word[50];\n char ans[32768];\n memset(ans,0,sizeof(ans));\n cin>>ans;\n len=strlen(ans);\n len2=strlen(ans);\n //cout<>word;\n if(len+1+strlen(word)>80)\n { /* cout<>n;\n int i,j,k;\n char s[10000][40]; //???????????\n int sum=0; //??????????????????0\n for(i=0; i>*(s+i); //??n?????????\n }\n for(i=0; i81)\n\t\t{\n\t\t\tprintf(\"%s\",a[i]);\n\t\t}\n\t\telse if(t==81)\n\t\t{\n\t\t\tprintf(\"%s\\n\",a[i]);\n\t\t\tt=0;\n\t\t}\n\t\telse if(t>81)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tt=0;\n\t\t\ti=i-1;\n\t\t}\n\t}\n\tprintf(\"%s\\n\",a[n-1]);\n}\n"} +{"label": "98", "index": "48879", "code": "// ????????????.cpp : ??????????????\n//\n\n\n\nint main()\n{\n\tint x,n,i = 0,j = 0,k = 0,word = 0;\n\tchar a[10000];\n\tcin >> n;\n\tcin.get();\n\tcin.getline(a,10000);\n\tchar *p = a;\n\tfor (;;)\n\t{\n\t\tif (word == n)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\twhile (*(p + i) != ' ' && *(p + i) != '\\0')\n\t\t{\n\t\t\tk++;\n\t\t\ti++;\n\t\t}\n\t\tif (i <= 80 && i != k)\n\t\t{\n\t\t\tcout << ' ';\t\n\t\t}\n\t\tif (i <= 80)\n\t\t{\n\t\t\tfor (j = i - k;j <= i - 1;j++)\n\t\t\t{\n\t\t\t\tcout << *(p + j);\n\t\t\t}\n\t\t\ti++;\n\t\t\tk = 0;\n\t\t\tword++;\n\t\t}\n\t\tif (i > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tfor (x = 1;x <= i - k;x++)\n\t\t\t{\n\t\t\t\t*p++;\n\t\t\t}\n\t\t\ti = 0;\n\t\t\tk = 0;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48880", "code": "int judge(char *p1,char *p2,int l)\n{\n\tchar *x1,*t1,*t2;\n int y=1;\n\tt1=p1;\n\tx1=t1+l-1;\n\tt2=p2;\n\twhile ((t1<=x1) && y)\n\t{\n\t\tif (*t1!=*t2) y=0;\n\t\tt1++;\n\t\tt2++;\n\t}\n\treturn y;\n}\n\nvoid main()\n{\n\tchar c[3243];\n\t\tint i,j,k,n,l,len;\n\t//freopen(\"tt.in\",\"r\",stdin);\n\t//freopen(\"tt.out\",\"w\",stdout);\n scanf(\"%d\",&n);\n\t//for(i=0;i<=l-1;i++) if (c[i]==' ') k++;\n\n\t\n\tlen=0; \n\tfor (i=1;i<=n;i++) \n\t{\n\n scanf(\"%s\",c);\n\tl=strlen(c);\n\tif (len==0) {printf(\"%s\",c); len+=l;}\n\telse\n\t if (len+l+1<=80)\n\t {\n\t\tprintf(\" %s\",c);len+=l+1;\n\t }\n\t else \n\t {printf(\"\\n%s\",c); len=l;}\n\n\t}\n\t\n\n\t\n}"} +{"label": "98", "index": "48881", "code": "int main()\n{\n int n;char a[1000][50];//????\n int i,b[1000],sum=0,p=0;\n cin>>n;//????\n for(i=0;i80) {cout<80)\n {\n k=0;\n for(j=0;j> n; //??????\n\tchar p[5000];\n\tcin.getline(p, 5000); //?????\n\tcin.getline(p, 5000); //??????\n\tchar m[500][45];\n\tchar (*h)[45];\n\th = m;\n\tint i, j, k;\n\tfor (i = 0, j = 0, k = 0; i < strlen(p); i++) {\n\t\tif (*(p + i) != ' ') {\n\t\t\t*(*(h + j) + k) = *(p + i);\n\t\t\tk++;\n\t\t} //???????????\n\t\telse if (i != strlen(p) - 1) {\n\t\t\tj++;\n\t\t\tk = 0;\n\t\t}\n\t}\n\n\tint sum, i1;\n\tfor (sum = 0, i1 = 0; i1 < n; i1++) {\n\t\tsum = sum + strlen(m[i1]);\n\n\t\tif ((sum + strlen(m[i1 + 1]) + 1 <= 80) && (i1 != n - 1)) {\n\t\t\tcout << *(h + i1) << \" \";\n\t\t\tsum++;\n\t\t} //????\u0093 \u0094???\n\t\telse {\n\t\t\tcout << *(h + i1) << endl;\n\t\t\tsum = 0;\n\t\t} //?????\n\t}\n\n\treturn 0; //????\n}\n"} +{"label": "98", "index": "48884", "code": "void main()\n{\n\tint n,i,m=0;\n\tstruct word\n\t{\n\t\tchar word[40];\n\t\tint len;\n\t} words[500];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>c;\n\tconst int max=80;\n\twhile(m)\n\t{\n\t\twhile(number<=max)\n\t\t{\n\t\t\tcin>>a;\n\t\t\tan_number+=1;\n\t\t\tif(number==0)\n\t\t\t{\n\t\t\t\tcout<>n;\n\tfor(i=0;i>n;\n char words[1000][20]; //????????????\n for(i=0;i81) //????80????? ??????????\n {\n \t cout<80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tif(i==n-1)\n\t\t\t\tprintf(\"%s\",str[i]);\n\t\t\telse\n\t\t\t\tprintf(\"%s \",str[i]);\n\t\t\tline=a[i]+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(i==n-1)\n\t\t\t\tprintf(\"%s\",str[i]);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(line+a[i+1]+1>80)\n\t\t\t\t\tprintf(\"%s\",str[i]);\n\t\t\t\telse\n\t\t\t\t\tprintf(\"%s \",str[i]);\n\t\t\t}\n\t\t\tline=line+1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48889", "code": "int main()\n{\n\tchar a[300][41],*p=NULL;\n\tint n=0;\n\tcin >>n;\n\tfor(int i=0;i>a[i];\n\tp=a[0];\n\tint sum=0;\n\tfor(int i=0;i79)\n\t\t{\n\t\t\ti=i-1;\n\t\t\tsum=0;\n\t\t\tcout <>n;\n\tfor(int i = 0;i>a;\n\t\tint s = strlen(a);\n\t\tsum += s+1;\n\t\tif(sum == s+1)\n\t\t{\n\t\t\tcout<80)\n\t\t{\n\t\t\tcout<> num;\n\tcounter = 0;\n\tfor (int i = 0; i < num; i++){\n\t\tcin >> word;\n\t\tlen = strlen(word);\n\t\tcounter += len;\n\t\tif (counter + 1 > 80){\n\t\t\tcout << endl;\n\t\t\tcounter = len;\n\t\t}\n\t\telse if (counter != len){\n\t\t\tcout << ' ';\n\t\t\tcounter++;\n\t\t}\n\t\tcout << word;\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48892", "code": "int main()\n{\n\tint words=0,count=0;\n\tchar str1[100],str2[100];\n\tint length1=0,length2=0,length3=0;\n\tcin>>words;\n\tgets(str1); \n\tcin>>str1;\n\tcount=1;\n\tcout<>str2;\n\t\tlength2=strlen(str2);\n\t\tlength1=length1+length2+1;\n\t\tif (length1<=80)\n\t\t\tcout<<\" \"<>n;\n char word[1000][41];\n for(i=0;i>*(word+i); //????\n i=0;\n while(i>n; //??n\n\tchar str[n][50]; //????\n\tfor(i=0;i>str[i];\n\t}\n\ti=0;\n\twhile(i80) //??????\n\t {\n\t \tcout<80) //\n\t{\n\t\tcout<>n;\n\tcin.getline(blank,1);\n\tap=a;\n\tcin.getline(a,8000);\n\tint lena=strlen(a),i,c;\n\n\tfor(;lena>=80;){\n for(i=0;i<=80;i++)\n {\tif(*(ap+i)==' ')\n \t\t{end=ap+i; //??????\n \t\tc=i;\n \t\t}\n }\n lena=lena-c-1;\n for(;ap> n;\n\tchar x[500][40]={0}; //??????????????\n\tfor(i=0;i> *(x+i);//?????? ???cin????scanf???cin.getline???????????1\n }\n\tfor(i=0;i80) {cout<< endl;cout<< *(x+i);k=strlen(*(x+i));p=0;continue;}//????80????????????k?p??\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48899", "code": "int main(){\n\tint n,i,m=0,j;\n\tstruct W{\n\t\tint l;\n\t\tchar s[42];\n\t}w[520];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i<=n-1;i++){\n\t\tscanf(\"%s\",w[i].s);\n\t\tw[i].l=0;\n\t\tfor (j=0;w[i].s[j]!='\\0';j++){\n\t\t\tw[i].l++;\n\t\t}\n\t}\n\tfor (i=0;i<=n-1;i++){\n\t\tm=m+w[i].l+1;\n\t\tif (i==n-1){\n\t\t\tif (m<=81)\n\t\t\t\tprintf(\"%s\",w[i].s);\n\t\t\telse {\n\t\t\t\tprintf(\"\\n\");\n\t\t\t\tprintf(\"%s\",w[i].s);\n\t\t\t}\n\t\t}\n\t\telse if ((m<80)&&(m+w[i+1].l<=80)){\n\t\t\tprintf(\"%s \",w[i].s);\n\t\t}\n\t\telse if (m>81){\n\t\t\tprintf(\"\\n\");\n\t\t\tprintf(\"%s \",w[i].s);\n\t\t\tm=w[i].l+1;\n\t\t}\n\t\telse{ \n\t\t\tprintf(\"%s\",w[i].s);\n\t\t\tprintf(\"\\n\");\n\t\t\tm=0;\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48900", "code": "\n\nint main()\n{\n\tchar word[50], *p = NULL;\n\tint n, k = 0, sum = 0, len, f = 1;\n\tcin >> n;\n\twhile(k < n)\n\t{\n\t\tcin >> word;\n\t\tp = word;\n\t\tlen = strlen(p);\n\t\tif(f == 1)\n\t\t{\n\t\t\tcout << word;\n\t\t\tsum = len;\n\t\t\tk++;\n\t\t\tf = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif(sum + 1 + len > 80)\n\t\t{\n\t\t\tcout << endl << word;\n\t\t\tsum = len;\n\t\t\tk++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(sum + 1 + len <= 80)\n\t\t{\n\t\t\tcout << \" \" << word;\n\t\t\tsum = sum + 1 + len;\n\t\t\tk++;\n\t\t\tcontinue;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48901", "code": "int main()\n{\n\tint n,sum=0;\n\tchar word[41]={0};\n\tcin>>n;\n\tcin>>word;\n\tsum+=strlen(word);\n\tcout<>word;\n\t\tsum+=strlen(word)+1;\n\t\tif(sum>80)\n\t\t{\n\t\t\tcout<> n;\n\twhile (cin >> a && n > 0)\n\t{\n\t\ti ++;\n\t\tint len = strlen(a);\n\t\tif (i == 1)\n\t\t{\n\t\t\tsum = sum + len;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsum = sum + len + 1;\n\t\t}\n\t\tif (sum <= 80)\n\t\t{\n\t\t\tif (i == 1)\n\t\t\t{\n\t\t\t\tcout << a;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \" \" << a;\n\t\t\t}\n\t\t}\n\t\tif (sum == 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tsum = 0;\n\t\t\ti = 0;\n\t\t}\n\t\tif (sum > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << a;\n\t\t\tsum = len;\n\t\t\ti = 1;\n\t\t}\n\t\tn --;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48903", "code": "int main()\n{\n\tchar a[400][50] = {0};\n\tint i, b[400];\n\tint n;\n\tcin >> n;\n\tfor (i = 1; i <= n; i++)\n\t{\t\n\t\tcin >> a[i];\n\t\tb[i] = strlen(a[i]);\n\t}\n\tint num;\n\tint length = b[1];\n\ti = 1;\n\tcout << a[1];\n\twhile(1)\n\t{\n\t\tif (i > 1)\n\t\tlength = length + 1 + b[i];\n\t\t\tif (length + 1 + b[i + 1] <= 80)\n\t\t\t{\n\t\t\t\tcout << \" \" << a[i + 1];\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tcout << endl << a[i + 1];\n\t\t\t\tlength = -1;\n\t\t\t}\n\t\ti++;\n\t\tif (i == n)\n\t\t\tbreak;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48904", "code": "int main()\n{\n\tint n,i,len=0;\t\t\t\t\t\t//??????????????\n\tchar (*p)[40]=NULL;\t\t\t\t\t//??\n\tchar word[2000][40];\t\t\t\t//????\n\tcin>>n;\n\tfor(i=0;i80)\t\t//??????80\n\t\t{\n\t\t\tcout<<*p<> n;\n\tcin.get();\n\tchar a[90000];\n\tcin.getline(a, 90000);\n\tint la = strlen(a);\n\tint i, j = 80;\n\twhile(j < la)\n\t{\n\t\tfor(i = j; i > j - 30; i--)\n\t\t{\n\t\t\tif(a[i] == ' ')\n\t\t\t{ a[i] = '~'; break; }\n\t\t}\n\t\tj = i + 81;\n\t}\n\tfor(i = 0; i < la; i++)\n\t{\n\t\tif(a[i] != '~')\n\t\t\tcout << a[i];\n\t\telse \n\t\t\tcout << endl;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48906", "code": "int main( )\n{\n\tint n,i;\n\tcin>>n;\n\tchar str[3000][45];\n\tfor(i=0;i>str[i];\n\ti=0;\n\twhile(i>n;\n\tcin.get();\n\tfor(i=0;i>*(s+i);\n\t}\n\tc=0;\n\ti=0;\n\twhile(i80)\n\t\t{\n\t\t\tcout<> n;\n\tfor( int i = 1 ; i <= n ; i ++ )\n\t{\n\t\tchar\ts[41];\n\t\tcin >> s;\n\t\tif( i == 1 )\n\t\t{\n\t\t\tcout << s;\n\t\t\tcount = strlen( s );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( count + strlen( s ) + 1 <= 80 )\n\t\t\t{\n\t\t\t\tcout << ' ' << s;\n\t\t\t\tcount += strlen( s ) + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << endl << s;\n\t\t\t\tcount = strlen( s );\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "98", "index": "48909", "code": "int main()\n{\n char word[1000][40];\n int number,count=0,i;\n scanf(\"%d\",&number);\n for(i=0;i= 80)\n\t\t\t\tbreak;\n\t\t\tif(c != 0)\n\t\t\t{\n\t\t\t\tprintf(\" \");\n\t\t\t\tc++;\n\t\t\t}\n\t\t\tprintf(\"%s\",data[i]);\n\t\t\tc = c+strlen(data[i]);\n\t\t\ti++;\n\t\t\tif(i>=cnt)\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"\\n\");\n\t\tc=0;\n\t}\n\t\n\treturn 0;\n}"} +{"label": "98", "index": "48911", "code": "int main()\n{\n\tchar c,str[1000][40]={0};\n\tint i,j,n,num[1000],sum=0;\n\tcin>>n;\n\tfor(i=0;i>n;\n\tfor(i=0;i>s[i];\n\tcout<> n;\n\tfor (i = 0; i < n; i++)\n\t\tcin >> word[i];\n\tcout << word[0];\n\tlen = strlen(word[0]) + 1;\n\tfor (i = 1; i < n - 1; i++)\n\t{\n\t\tif (len + strlen(word[i]) < 81)\n\t\t{\n\t\t\tif (len == 0)\n\t\t\t{\n\t\t\t\tcout << word[i];\n\t\t\t}\n\t\t\telse\n\t\t\t\tcout << \" \" << word[i];\n\t\t\t\tlen = len + strlen(word[i]) + 1;\n\t\t}\n\t\telse if (len + strlen(word[i]) > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tlen = 0;\n\t\t\ti = i - 1;\n\t\t}\n\t}\n\tcout << \" \" << word[n - 1];\n\treturn 0;\n}\n"} +{"label": "98", "index": "48914", "code": "int main()\n{\n\tchar letter[40];\n\tint n, i, blank = 0, num = 0;\n\tcin >> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tmemset(letter, '0', sizeof(letter));\n\t\tcin >> letter;\n\t\tif (strlen(letter) + blank + num > 80)\n\t\t{\n\t\t\tblank = 0;\n\t\t\tnum = 0;\n\t\t\tcout << endl;\n\t\t}\n\t\tif (blank)\n\t\t\tcout << ' ';\n\t\tcout << letter;\n\t\tnum += strlen(letter) + blank;\n\t\tblank = 1;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48915", "code": "\nint main()\n{ \n\tint n,length=0,l;\n\tcin>>n;\n\tchar a[1000][40];\n\tfor (int i=0;i>a[i];\n\t}\n\tfor (int i=0;i>n;\n\tchar a[50];//??\n\tint sum=0;//?????\n\tint num=0;//????\n\tchar *p=NULL;\n\tcin>>a;\n\tcout<>a;//??????????????\n\t\tnum=strlen(a);\n\t\tsum=num+sum+1;\n\t\tif(sum==num+1)\n\t\t{\n\t\t\tfor(p=a;p80)//??\n\t\t{\n\t\t\tsum=num;\n\t\t\t\n\t\t\tcout<>n;\n\tfor(i=0;i>*(str+i);\n\t\tfor(j=0;*(*(str+i)+j)!='\\0';j++);\n\t\t*(a+i)=j;\n\t}\n\tchar c[20][82]={'\\0'};\n\tint s=0,t,s1,j;\n\tfor(i=0;i<20;i++)\n\t{\n\t\tt=0;\n\t\ts1=s;\n\t\tfor(j=s1;j=80) break;\n\t\t\tif(s>=n) break;\n\t\t\tc[i][t]=' ';\n\t\t\tt++;\n\t\t}\n\t\tif(s>=n) break;\n\t}\n\tfor(int k=0;k<=i;k++)\n\t\tcout<80) {printf(\"\\n%s\",s);sum=l;}\n else {printf(\" %s\",s);sum=sum+1+l;}\n }\n return 0;\n}\n"} +{"label": "98", "index": "48919", "code": "/*\n * ????.cpp\n *\n * ??: 2012-12-15\n * ??:?????\n */\nint main()\n{\n\tint n,count=0;//?????????????\n\tfor(cin>>n;n>0;n--){//??n???\n\t\tchar s[41];\n\t cin>>s;//????\n\t char *p=s;//??????????\n\t int lp=0;//?????\n\t for(;*p!='\\0';p++)//???????\n\t \tlp++;\n\t p=s;//????????\n\t if(count==0) {count=lp;cout<>n;\n\tfor(i=0;i>word[i];\n\t//cout<>n;\n\tint y=0;\n\tfor(int i=0;i>c;\n\t\ts+=strlen(c)+1;\n\t\tif(s>81)\n\t\t{\n\t\t\tcout<>n;\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tcin>>w[i];\n\t\tlen[i]=strlen(w[i]);\n\t}\n\t\n\n\tfor (j=0;j<=n-1;)\n\t{\n \n\t\tif (m==0)\n\t\t{\n\t\t\tm=m+len[j];\n\t\t\tcout<> n;\n\tfor(i = 0; i < n; i++)\n\t\tcin >> str[i];\n\tfor(i = 0; i < n - 1; i++) //?????????n-1???????????????????????????????\n\t{\n\t\tnum += strlen(*(str + i)); //????????????????????????????????????\n\t\tif( num + 1 + strlen(*(str + i + 1)) <= 80)\t\n\t\t{\n\t\t\tcout << *(str + i) << \" \";\n\t\t\tnum++;\t\t\t\t\t\t//???????????num?????????????????????\n\t\t}\n\t\telse if((num <= 80) && (num + 1 + strlen(*(str + i + 1)) > 80)) //???????????????????????????\n\t\t{\n\t\t\tcout << *(str + i);\t\n\t\t\tnum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\t\t\t\t//????????\n\t\t\ti--; //????????i?1?????????????????????i??1????????????????\n\t\t\tnum = 0;\t\t\t\t\t//???????num?0????\n\t\t}\t\t\n\t}\n\tcout << *(str + n - 1) << endl; //????????????\n\treturn 0;\n}"} +{"label": "98", "index": "48924", "code": "int main()\n{\n\tint n;\n\tchar s[1000][50];\n\tint len[1000]={0};\n\tint sum=0;\n//\tint breakpoint[1000];\n\tint i;\n\tcin>>n;\n\tcin.get();\n\tfor(i=0;i>s[i];\n\t\tlen[i]=strlen(s[i]);\n\t}\n for(i=0;i80))\n\t\t{\n\t\t\ti=i+1;\n\t\t\tcout<>n;\n\tchar a[1000][40];\n\tfor(i=0;i>a[i];\n\tfor(i=0;i80)\n\t\t{\n\t\t\tcout<=80)\n {\n printf(\"\\n%s\",s);\n k=l;\n continue;\n }\n } \n return 0;\n}"} +{"label": "98", "index": "48927", "code": "int main()\n{\n\tint i,k,flag=0;\n\tchar word[1000][40]={'\\0'};\n\tint lenth[1000]={0};\n\tcin>>k;\n\tcin.get();\n\tfor(i=0;i80)\n\t\t{\n\t\t\tcout<>n;\n\tcin.get();\n\twhile(cin>>sen)\n\t{\n\t\tif(flag==0&&sum<80)\n\t\t{\n\t\t\tcout<>n;\n int num;\n cin>>a;\n int len=strlen(a);\n p=a;\n cout<>a;\n int len=strlen(a);\n p=a;\n if (num+len+1>80) {cout<>n;\n\tcin.get();\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a[i];\n\t\tl[i]=strlen(a[i]);\n\t}\n\tp=&l[1];\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(num==0)\n\t\t{\n\t\t\tcout<81)\n\t\t{\n\t\t\tnum=0;\n\t\t\ti--;\n\t\t\tcout<>n;\n\tchar a[1000][50];\n\tfor (i=1;i<=n;i++)\n\t\tcin>>a[i];\n\tint count=0;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tcount=count+strlen(a[i]);\n\t\tif (count<=80)\n\t\t{\n\t\t\tif (i80)\n\t\t{\n\t\t\tif (i80)\n\t\t{\tprintf(\"\\n\");\n\t\t\tprintf(\"%s \",words[i]);\n\t\t\tnum=numwords[i]+1;\n\t\t \t\t\t\t\t\t}\t\t\t\t\t \n\t \telse if((numwords[i+1]+num+numwords[i]+1)>80)\n\t \t{\tprintf(\"%s\",words[i]);\n\t \t\tnum=num+numwords[i]+1;\n\t\t \t\t\t\t\t\t}\t\t\t\n\t\telse\n\t\t{\tprintf(\"%s \",words[i]);\n\t \t\tnum=num+numwords[i]+1;\n\t\t \t\t\t\t\t\t}\t\t\t\t\t\t \n\t\t\t\t\t }\n \t printf(\"%s\",words[n-1]); \n\t\t \n\t\t\t }\n\n"} +{"label": "98", "index": "48936", "code": "int main ()\n{\n\tint n, i=0, temp1, temp2;\n\tscanf(\"%d\", &n);\n\tchar s[10000];\n\tgets(s);\n\tgets(s);\n\tchar * ps=s, * ps1;\n\ttemp1=(int)s;\n\tfor ( ; *ps; ps++) {\n\t\ti++;\n\t\tif (*ps==' ') {\n\t\t\tif (i>LINELENTH+1) {\n\t\t\t\tfor(ps1=(char *)temp1; ps1<(char *)temp2; ps1++)\n\t\t\t\t\tprintf(\"%c\", *ps1);\n\t\t\t\ti=((int)ps-temp2)/sizeof(char);\n\t\t\t\ttemp1=temp2+sizeof(char);\n\t\t\t\tprintf(\"\\n\");\n\t\t\t}\n\t\t\telse temp2=(int)ps;\n\t\t}\n\t}\n\tfor (ps1=(char *)temp1; *ps1; ps1++)\n\t\tprintf(\"%c\", *ps1);\n\treturn 0;\n}"} +{"label": "98", "index": "48937", "code": "int main()\n{\n\tint n, i, cnt;\n\tchar a[999][41];\n\tcin >> n;\n\tfor(i = 1; i <= n; i++)\n\t{cin >> a[i];}\n\ti = 1;\n\tcnt = 0;\n\tdo\n\t{\n\t\tcnt += strlen(*(a + i));\n\t\tif(cnt <= 80)\n\t\t{\n\t\t\tcout << *(a + i); \n\t\t\tif(cnt + strlen(*(a + i + 1)) + 1 <= 80 && i != n)\n\t\t\t{\n\t\t\t\tcout << \" \";\t\n\t\t\t}\n cnt++;\t\t\n\t\t\ti++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcnt = 0;\n\t\t}\n\t}while(i <= n); \n\treturn 0;\n}"} +{"label": "98", "index": "48938", "code": "int main()\n{\n\tint n, wl=0,/*wordlength*/ ll=0,/*linelength*/ i;\n\tchar c[50]={'\\0'}, ch;\n\tchar *p=c;\n\tcin>>n; cin.get();\n do\n\t{\n cin.get(ch);\n\t\tif (ch!=' ') { cout<> n;//??n\n\tcin >> p;\n\tcout << p;//??????????\n\tchang = strlen(p);//???????????\n\tn--;//????\n\twhile (n > 0) {\n\t\tcin >> p;\n\t\tlen = strlen(p);//???????\n\t\tchang += len + 1;//???????\n\t\tif (chang > 80) {\n\t\t\tcout << '\\n' << p;\n\t\t\tchang = len;//??????????????????\n\t\t} else\n\t\t\tcout << ' ' << p;//????????????\n\t\tn--;//?????\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48940", "code": "/*\n * ????.cpp\n *\n * Created on: 2011-12-7\n * author: ???\n */\n\nint main(){\n\tchar a[40];\n\tint counter=0,n; //counter???????????\n\tcin>>n;\n\twhile(cin>>a&&n>0){ //?????????????????????????80?????????????????\n\t\tif(counter==0){ //??????????\n\t\t\tcounter=counter+strlen(a);\n\t\t\tcout<80)\n\t\t{\n\t\t\tletters=strlen(word+i);\n\t\t\tprintf(\"\\n%s\",word+i);\n\t\t}else if(letters==80){\n\t\t\tletters=0;\n\t\t\tprintf(\" %s\\n\",word+i);\n\t\t\tspace=0;\n\t\t\tletters--;\n\t\t}else if(space==0){\n\t\t\tprintf(\"%s\",word+i);\n\t\t\tspace++;\n\t\t}else{\n\t\t\tprintf(\" %s\",word+i);\n\t\t}\n\t\tletters++;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48942", "code": "\nvoid main()\n{\n\tint n;\n\tchar a[1000][41];\n\tint b[1000];\n\tint i,s=0;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\ts=0;\n\t\t\ti--;\n//\t\t\tu=1;\n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\" %s\",a[i]);\n\t\t}\n\t}\n}"} +{"label": "98", "index": "48943", "code": "\nint main()\n{\n\tint num;\n\tchar word[50];\n\tcin>>num;\n\tint count = 0;\n\twhile(num--){\n\t\tscanf(\"%s\",word);\n\t\tif(count ==0){\n\t\t\tcout< 80)\n\t\t\t{\n\t\t\t\tcout<80)\n {printf(\"\\n%s\",s);\n num=strlen(s);\n num++;}\n i++;\n }\n return 0;\n}"} +{"label": "98", "index": "48945", "code": "/*\n * wenzipaiban.cpp\n *????\n * Created on: 2011-12-9\n * Author: q\n */\nint main()\n{\n\tchar ch[1000][40]={0};\n\tchar (*p)[40];//?????????\n\tint n,i,counter=0;//counter???????????\n\tp=ch;//?????\n\tcin>>n;\n\tfor(i=0;i>*p++;//??\n\tp=ch;//???????\n\twhile(p<(ch+n))\n\t{\n\t\tif(counter==0)//?????????\n\t\t{\n\t\t\tcounter+=strlen(*p);\n\t\t\tcout<<*p;\n\t\t\tp++;\n\t\t}\n\t\telse {\n\t\t\tcounter+=strlen(*p)+1;//1?????\n\t\t\tif(counter<=80){//???80\n\t\t\t\tcout<<' '<<*p;\n\t\t\t\tp++;\n\t\t\t}\n\t\t\telse \n\t\t\t{//??80??????\n\t\t\t\tcounter=0;\n\t\t\t\tcout<80)\n\t\t{\n\t\t\tprintf(\"%s\",c[l]);\n\t\t\tfor(j=l+1;j> m ;\n\tfor (i = 1 ; i <= m ; i ++ )\n\t{\n\t\t\tcin >> a[i] ;\n\t\t\tb[i] = strlen(a[i]) ;\n\t}\n\tsum = 0 ;\n\tfor (i = 1 ; i <= m -1 ; i ++ )\n\t{\n sum = sum + b[i] + 1 ;\n\t\tif(sum < 80 && sum + b[i + 1] > 80 )\n\t\t{\n\t\t\tcout << a[i] <p;s--)\n\t{\n\t\tif(*s==32) break;\n\t}\n\treturn s;\n}"} +{"label": "98", "index": "48950", "code": "int main()\n{\n\tchar ch[500][50];\n\tint i,j,n,m,l[500]={0};\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>ch[i];\n\t\tl[i]=strlen(ch[i]);\n\t}\n\tm=0;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(m>0)\n\t\t{\n\t\t\tif(m+1+l[i]<=80)\n\t\t\t{\n\t\t\t\tcout<<' '<80)\n\t\t{\n\t\t\tif (i==n-1)\n\t\t\t{\n\t\t\t\tprintf(\"\\n%s\\n\",s[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tprintf(\"\\n%s \",s[i]);\n\t\t\t}\t\n\t\t\tx=l+1;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tj=strlen(s[i+1]);\n\t\t\tif (i==n-1)\n\t\t\t{\n\t\t\t\tprintf(\"%s\\n\",s[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (x+j+1>80)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%s\",s[i]);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tprintf(\"%s \",s[i]);\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tx+=1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48952", "code": "int main()\n{\n\tint n , len = 0 , l = 0;\n\tint i , j;\n\tchar a[ 1000 ][ 50 ];\n\tcin >> n;\n\tfor ( i = 0 ; i <= n - 1 ; i++ )\n\t\tcin >> a[ i ];\n l = strlen( a[0] );\n\tcout << a[ 0 ];\n\tfor ( i = 1 ; i <= n - 1 ; i++ )\n\t{\n\t\tlen = strlen( a[ i ] );\n\t\tif ( l + len + 1 <= 80 )\n\t\t{\n\t\t\tl = l + len + 1;\n\t\t\tcout << ' ' << a[ i ];\n\t\t}\n\t\telse if( l + len + 1 > 80 )\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << a[ i ];\n\t\t\tl = len;\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "98", "index": "48953", "code": "\nint main()\n{\n\tint n, i, j, number;\n\tchar input[500][40] = {0};\n\tint lenth[500] = {0}, lenth0 = 0;\n\tcin >> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> input[i];\n\t\tlenth[i] = strlen(input[i]);\n\t}\n\ti = 0, number = 0;\n\twhile (1)\n\t{\n\t\tlenth0 += lenth[number] + 1;\n\t\tif (lenth0 <= 81)\n\t\t{\n\t\t\tnumber++;\n\t\t}\n\t\tif (lenth0 > 81 || number == n)\n\t\t{\n\t\t\tfor (j = i; j < number - 1; j++)\n\t\t\t{\n\t\t\t\tcout << input[j] << \" \";\n\t\t\t}\n\t\t\tcout << input[number - 1] << endl;\n\t\t\ti = number;\n\t\t\tlenth0 = 0;\n\t\t}\n\t\tif (i == n)\n\t\t\tbreak;\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48954", "code": "int main()\n{\n\tint n,a[1000],s=0;\n\tcin>>n;\n\tchar word[40],*q;\n\tcin>>word;\n q=word;\n\twhile(*q!='\\0')q++;\n\ta[1]=q-word;\n\ts=s+a[1]+1;\n\tcout<>words;\n\t\tp=words;\n\t\twhile(*p!='\\0')p++;\n\t\ta[i]=p-words;\n\t\ts=s+a[i]+1;\n\t\tif(s<=80)\n\t\tcout<<\" \"<>n;\n cin.get();\n while(cin>>w)\n {\n if ((f+1+strlen(w))<=80)\n {\n if(f1!=0)\n {\n f++;\n cout<<\" \";\n }\n cout<>n;\n\tchar character[1000][50];\n\tfor(int i=0;i>character[i];\n\t\titype(character,i);\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48957", "code": "int main()\n{\n\tchar str[500][41]={'\\0'},s[500][81]={'\\0'};\n\tint i,j=0,k,n,l[500]={0},len[500]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tint i;\n\tint num=0;\n\tfor(i=0;i>a;\n\t\tif(i==0)\n\t\tnum=num+strlen(a);\n\t\telse\n\t\t\tnum=num+1+strlen(a);\n\t\tif(num<=80)\n\t\t{\n\t\t\tif(i==0)\n\t\t\t\tcout<> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> ch;\n\t\tlen = strlen(ch);\n\t\tCount = Count + len + 1;\n\t\tif (Count > 81)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << ch;\n\t\t\tCount = len + 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (i == 0)\n\t\t\t\tcout << ch;\n\t\t\telse\n\t\t\t\tcout << ' ' << ch;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48960", "code": "int main()\n{\n\tint n,i,len=0,l;\n\tchar word[64],p[64]=\"\";\n\tcin >>n;//???????\n\tfor(i=0;i>word;//????\n\t\tl=strlen(word);//??????????\n\t\tif(len+l>80)// ???????80?\n\t\t{\n\t\t\tcout <0)\n\t\t\tcout<<\" \";\n\t\tlen+=l+1;\n\t\tstrcpy(p,word);\n\t}\n\tcout <> n;\n\tcin.get();\n\n\tif(n > 1)\n\t\tfor(i = 0; i < n - 1; i++)\n\t\t\tcin.getline(word[i] , 40 , ' ');\n\n\tcin.getline(word[n - 1] , 40);\n\n\tchar (*p)[40] = word;\n\tint len = strlen(*p);\n\n\tcout << *p++;\n\n\tfor(i = 1; i < n; i++)\n\t{\n\t\tlen += strlen(*p) + 1;\n\n\t\tif(len > 80)\n\t\t{\n\t\t\tcout << endl;\n\t\t\tcout << *p;\n\t\t\tlen = strlen(*p);\n\t\t}\n\t\telse\n\t\t\tcout << \" \" << *p;\n\n\t\tp++;\n\t}\n\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "98", "index": "48962", "code": "int main()\n{\n int n, count=0;\n char word[30];\n cin>>n;\n cin>>word;\n cout<>word;\n if (count+strlen(word)<80)\n {\n cout<<\" \"<=80)\n {\n cout<>n;\n\tcin.get();\n\tchar c=getchar();\n\twhile(c!='\\n')\n\t{\n\t\t*p++=c;\n\t\tnum++;\n\t\tc=getchar();\n\t}\n\tp=a+80;\n\twhile(*p!='\\0')\n\t{\n\t\twhile(*p != ' ' && p < a+num-1)\n\t\t{\n\t\t\tp-- ;\n\t\t}\n\t\t*p = '\\n';\n\t\t//while(*p!=' ')\n\t\t//{\n\t\t//\tp--;\n\t\t//\tif(*p==' ')\n\t\t//\t{\n\t\t//\t\t*p='\\n';\n\t\t//\t}\n\t\t//}\n\t\tp=p+81;\n\t}\n\tp = a+num-1;\n\twhile(*p == ' ')\n\t{\n\t\t*p = '\\0';\n\t\tp --;\n\t}\n\t//bool m=true;\n\t//for(p=a+num-1;p>=a;p--)\n\t//{\n\t//\tif(m==true && *p==' ')\n\t//\t{\n\t//\t\t*p='\\0';\n\t//\t}\n\t//\telse if(*p!=' ')\n\t//\t{\n\t//\t\tm=false;\n\t//\t}\n\t//}\n\tfor(p=a;*p!='\\0';p++)\n\t\tcout<<*p;\n\treturn 0;\n}"} +{"label": "98", "index": "48965", "code": "\n//\n// main.cpp\n// test\n//\n// Created by ??? on 12-12-23.\n// Copyright (c) 2012? ???. All rights reserved.\n//\n\n\n\n int main() {\n int n, i, wl, len = 0,line=0;\n char w[64];\n scanf(\"%d\", &n);\n for (int i=1; i<=n; i++) {\n scanf(\"%s\",w);\n wl=strlen(w);\n if (line==0) {\n printf(\"%s\",w);\n len=wl;\n line++;\n }\n else if(len+wl+1<=80)\n {\n printf(\" %s\",w);\n len+=wl+1;\n }\n else if(len+wl+1>80)\n {\n printf(\"\\n%s\",w);\n len=wl;\n }\n }\n return 0;\n }\n\n\n\n\n\n\n"} +{"label": "98", "index": "48966", "code": "\n/*************************\n ***??:??? 1200012776\n ***????:????\n ***??:2012?12?7?\n *************************/\nint main()\n{\n\tchar ch[2000] = {0}, *p = &ch[0], *q = NULL, *l = NULL, *k;\n\tint n, flag = 0;\n\tcin >> n;\n\tcin.get();\n\tcin.getline(ch, 2000);\n\twhile (*p != 0)\t//??\n\t{\n\t\tflag = 0;\n\t\tfor (q = p; ;)\t//??????????\n\t\t{\n\t\t\tfor (l = q; *l != ' ' && *l != 0; l++);\t//???????\n\t\t\tl--;\n\t\t\tif (l - p < 80)\t//???????????80,????\n\t\t\t{\n\t\t\t\tif (flag == 1)\t//?????????,????,?????\n\t\t\t\t{\n\t\t\t\t\tcout << \" \";\n\t\t\t\t}\n\t\t\t\tfor (k = q; k <= l; k++)\n\t\t\t\t{\n\t\t\t\t\tcout << *k;\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t\tq = l + 2;\t//?q??l+2,???????\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (l - p != 79)\n\t\t\t\t{\n\t\t\t\t\tcout << endl;\t//??????,??????\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (*(l + 1) == 0)\n\t\t\t{\n\t\t\t\tq = l + 2;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tp = q;\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "98", "index": "48967", "code": "void judge(char s[],int *n,int *m)\n{\n\tchar *a,*b,word[40];\n\tint k=0;\n\tfor(a=s+*n,b=word;*a!=' '&&*a!='\\0';a++,b++)\n\t{\n\t\tk++;\n\t\t*b=*a;\n\t}\n\t*b='\\0';\n\tif(k<80-*m+1)\n\t{\n\t\tif(*m!=1)\n\t\t{\n\t\t\tprintf(\" \");\n\t\t}\n\t\tprintf(\"%s\",word);\n\t\t*n=*n+k+1;\n\t\t*m=*m+k+1;\n\t\tif(*m>80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\t*m=1;\n\t\t}\n\t}\n\telse\n\t{\t\n\t\tif(k==80-*m+1)\n\t\t{\n\t\t\tprintf(\" \");\n\t\t\tprintf(\"%s\\n\",word);\n\t\t\t*n=*n+k+1;\n\t\t\t*m=1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"\\n%s\",word);\n\t\t\t*n=*n+k+1;\n\t\t\t*m=k+2;\n\t\t}\n\t}\n}\nint main()\n{\n\tvoid judge(char s[],int *n,int *m);\n\tint n,now=0,line=1,i;\n\tint *all=&now,*current=&line;\n\tchar para[2000],enter;\n\tscanf(\"%d%c\",&n,&enter);\n\tgets(para);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tjudge(para,all,current);\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48968", "code": "\nvoid main()\n{\n\tint n,i,temp;\n\tchar word[300][50]={0};\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n for(i=0; i>*(a+i);\n\t\tif(k==-1) cout<<*(a+i);\n\t\tk=k+strlen(*(a+i))+1;\n\t\tif(k<=80&&k!=strlen(*(a+i)))\n\t\t{\n\t\t\tcout<<\" \"<<*(a+i);\n\t\t}\n\t\telse if(k>80)\n\t\t{\n\t\t\tcout<80)\n {\n c=strlen(s)+1;\n printf(\"\\n\");\n printf(\"%s\",s);\n }\n else\n {\n printf(\" %s\",s);\n c++;\n }\n }\n}\n\n"} +{"label": "98", "index": "48972", "code": "\nchar words[10000][50]={0};\nint main()\n{\n//\tfreopen(\"in.in\",\"r\",stdin);\n\tint n;\n\tcin>>n;\n\tcin.get();\n\tint i=0;\n\tfor (i = 0; i 80)\n\t\t{\n\t\t\tcout<>n;\n\tfor(i=0;i>a[i];\n\tfor(i=0;i80)\n\t\t{\n\t\t\tfor(j=k;j>n;\n\tchar w[41]; //?????????\n\tint l=0; //??l?????????\n\tcin>>w; //???????????????\n\tl=strlen(w);\n\tcout<>w;\n\t\tif(l+strlen(w)+1<=80)\n\t\t{\n\t\t\tl=l+strlen(w)+1;\n\t\t\tcout<<' '<80)\n\t\t\t\t\tprintf(\"\\n%s\",word),length=strlen(word);\n\t\t\t\telse\n\t\t\t\t\tprintf(\" %s\",word);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48976", "code": "int main()\n{\n\tint i,j,n,len,e=0;\n\tchar word[NMAX][AMAX];\n\tscanf(\"%d\",&n);\n\tfor(i=0;iword);\n\t}\n\tfor(i=0;iword);\n\t\tif(add+m<80){\n\t\t\tif(add>0){\n\t\t\t\tprintf(\" \");\n\t\t\t\tadd++;\n\t\t\t}\n\t\t\tprintf(\"%s\",(p+i)->word);\n\t\t\tadd+=m;\n\t\t}\n\t\telse{\n\t\tprintf(\"\\n%s\",(p+i)->word);\n\t\tadd=m;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "98", "index": "48978", "code": "int main() {\n int n;\n char str[80];\n cin>>n;\n int ln=0;\n while(n--) {\n cin>>str;\n if (ln == 0) {\n cout<80) {\n cout<80||f==0)\n {printf(\"\\n\");line=0;}\n \n \n }\n // while(1);\n return 0; \n }\n"} +{"label": "98", "index": "48981", "code": "int main()\n{\n\tint a[81]={0},n=0,i=0;\n\tchar s[45];\n\tint *p=&a[0],*q=&a[0];\n\tcin>>n;\n\tcin>>s;\n\tcout<>s;\n\t if(p+1+strlen(s)<=&a[80])\n\t {\n\t cout<<' '<=80)\n\t\t{\n\t\t\tprintf(\"\\n\");\n\t\t\tcount=sum[i];\n\t\t\tprintf(\"%s\",p[i]);\n\t\t}\n\t}\n}"} +{"label": "98", "index": "48983", "code": "int n=0,len[1001]={0},sum=0;\nchar str[1001][101]={0};\nvoid f(int start)\n{\n\tint sum=0,k=0;\n\tif(start>n)\n\t{\n\t}\n\telse\n\t{\n\t\tcout<>n;\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tcin>>str[i];\n\t\tlen[i]=strlen(str[i]);\n\t}\n\tf(1);\n\treturn 0;\n}"} +{"label": "98", "index": "48984", "code": "\n\n\nint main(){\n\tint i,j,k,n,m,sum=0;\n\tchar a[1000][40]={0},*p;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n;i++){\n\t\tscanf(\"%s\",a[i]);\n\t}\n sum+=strlen(a[0]);\n printf(\"%s\",a[0]);\n\tfor(p=a[0]+40;p80){\n\t\t printf(\"\\n%s\",p);\n sum =strlen(p);\n continue;\n\t\t}\n\t\tprintf(\" %s\",p);\n sum+=strlen(p);\n sum++;\n\t}\n printf(\"%s\",p+40);\n}\n\n"} +{"label": "98", "index": "48985", "code": "\nchar a[1000][30];\nint la[100] = {0};\n\nint main()\n{\n\tint n, i;\n\tchar b[10000];\n\tcin >> n;\n\tcin.get();\n\tcin.getline(b, 10000);\n\tint lb = strlen(b);\n\tint p = 0, t = 1;\n\tfor (i = 0; i <= lb - 1; i++)\n\t{\n\t\tif (b[i] == ' ')\n\t\t{\n\t\t\tt++;\n\t\t\tp = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[t][p] = b[i];\n\t\t\tp++;\n\t\t}\n\t}\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tla[i] = strlen(a[i]);\n\t}\n\tint num = 0;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcout << a[i];\n\t\tnum = num + la[i];\n\t\tif ((num + 1 + la[i + 1] <= 80) && (i != n))\n\t\t{\n\t\t\tcout << \" \";\n\t\t\tnum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << endl;\n\t\t\tnum = 0;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48986", "code": "int main()\n{\n\tchar word[300][41];\n\tint n, i, num[300] = {0}, *p, total = 0;\n\tcin >> n;\n\tp = num;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> word[i];\n\t\tfor (*(p + i) = 0; *(p + i) < 41; *(p + i) = *(p + i) + 1)\n\t\t\tif (word[i][*(p + i)] == '\\0')\n\t\t\t\tbreak;\n\t}\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tif (total == 0)\n\t\t{\n\t\t\ttotal = *(p + i);\n\t\t\tcout << word[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttotal = total + *(p + i) + 1;\n\t\t\tif (total <= 80)\n\t\t\t\tcout << ' ' << word[i];\n\t\t\telse\n\t\t\t{\n\t\t\t\ttotal = *(p + i);\n\t\t\t\tcout << endl;\n\t\t\t\tcout << word[i];\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "98", "index": "48987", "code": "\nint main()\n{\n int n, i, l, j, num = 0;\n char ch[45], *p;\n \n cin >> n;\n \n for(i = 0; i < n; i++)\n {\n cin >> ch;\n l = strlen(ch);\n p = ch;\n \n if(num == 0)\n {\n for(j = 0; j < l; j++)\n {\n cout << *p++;\n num++;\n }\n }\n \n else if(num > 0 && num + l + 1 <=80)\n {\n cout << \" \";\n num++;\n \n for(j = 0; j < l; j++)\n {\n cout << *p++;\n num++;\n }\n }\n \n else if(num > 0 && num + 1 + l > 80)\n {\n cout << endl;\n num = l;\n for(j = 0; j < l; j++)\n {\n cout << *p++;\n }\n }\n }\n \n return 0;\n}\n"} +{"label": "98", "index": "48988", "code": "char c[10000][100];///??\nint count (char a[])///??????????\n{\n\tint num=0;\n\twhile (a[num]!='\\0')\n\t{\n\t\tnum++;\n\t}\n\treturn (num);\n}\nint main ()\n{\n\tint i,j,k=0,l=0,n,m;\n\tcin>>n ;\n\tint b[10000];///??????\n\tfor (i=0;i>c[i];\n\t\tb[i]=count (c[i]);\n\t}\n\twhile (k>n;\n\tfor(i=0;i>inp[i];\n\t\tlen[i]=strlen(inp[i]);\n\t}\n\tint l=80;\n\tfor(i=0;i> m ;//?????? \n\tint b[m] ;// ??????????? \n\tchar a[m][40] ;//????????? \n\tchar (*p)[40] ;//????p??? a \n\tp = a ;\n int *q ;//????q??? b \n q = b ;\t\n for( i = 0 ; i <= m - 1 ;i ++ )//???? \n cin >> *(p + i) ; \n for( i = 0; i<= m - 1 ;i ++)//?????? \n\t *(q + i ) = strlen(a[i]); \n int c = 0 ;\n k = 0 ;\n p = a ;\n q = b ;\n for( i = 0 ; i < m ; i ++ ) //??????k???????? \n { \n \t\t\tk = k + q[i] + 1 ;\n\t\t\tif( k > 81 )//????81????????????????????? \n {\n\t\t\t\tfor(j = c ; j < i - 1 ; j ++ )\n\t\t\t\t\tcout << *(p + j) << \" \";\n\t\t\t\t cout << *(p + j) << endl ;\n\t\t\t\tk = 0 ; //?????k?????????? \n c = i ; //c??i \n i -- ;//i?? \n\t\t\t}\n\t\t\telse\n\t {\n if( i == m - 1 )//???????????????81????? \n {\n for(j = c ; j < i ; j ++ )\n\t\t\t\t\tcout << *(p + j) << \" \";\n\t\t\t\t cout << *(p + j) << endl ;\n }\t\t\n }\n }\n return 0 ;\n\n}"} +{"label": "98", "index": "48991", "code": "\n\nint main(){\n\tint n;\n\tcin>>n;\n\tchar ch[100],ch1[44];\n\tcin>>ch1;\n\tcout<>ch;\n\t\tsum=sum+strlen(ch)+1;\n\t\tif(sum>81){\n\t\t\tcout<>num;\n\tfor(i=0;i>word;\n\t\tlength=strlen(word);\n\t\tif (sumlen!=0)\n\t\t{\n sumlen=sumlen+length;//???????? \n if (sumlen<79)//????????80?? \n {\n cout<<\" \"<80)//????80 \n {\n cout<81&&i80)\n\t\t\t{\n\t\t\t\tprintf(\"\\n\");\n\t\t\t\tpointer=(p1+1);\n\t\t\t\tp1=(p1+1);\n\t\t\t}\n\t\t\tfor(p1=p1;p1>n;\n\tcin>>a;\n\tint count=strlen(a)+1;\t\n\tcout<>a;\n\t\tif(count+strlen(a)<=80){\n\t\t\tcout<<' '<>n;\n\tchar word[40];\n\tint num=0;\n\twhile(cin>>word)\n\t{\n\t\tif((num+strlen(word)+1)<80)\n\t\t{\n\t\t\tif(num!=0) {cout<<' ';num=num+1;}\n\t\t\tcout<>n;\n\tcin>>b; //??????\n\tcout<>a;\n\t\tnum=strlen(a); //??????????\n\t\tif(linelen==0){ //????? \n\t\t\t\t{\n\t\t\t\t\tcout<80){ //??????????????????????????80??\t\t\n\t\t\t\tcout<=1&&a[i]<=18) m=m+1;\n\t\tif(a[i]>18&&a[i]<36) j=j+1;\n\t\tif(a[i]>35&&a[i]<61) k=k+1;\n\t\tif(a[i]>60) h=h+1;\n\t}\n\tgl1=(double)m/n*100;\n\tgl2=(double)j/n*100;\n\tgl3=(double)k/n*100;\n\tgl4=(double)h/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",gl1);\n\tprintf(\"19-35: %.2lf%%\\n\",gl2);\n printf(\"36-60: %.2lf%%\\n\",gl3);\n printf(\"60??: %.2lf%%\\n\",gl4);\n return 0;\n}"} +{"label": "99", "index": "49001", "code": "void main()\n{\n\tint n,a[100],i;\n\tdouble b[4]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19 && a[i]<=35)\n\t\t{b[1]++;}\n\t\telse if(a[i]>=36 && a[i]<=60)\n\t\t{b[2]++;}\n\t\telse if(a[i]>=61)\n\t\t{b[3]++;}\n\t}\n\t\tprintf(\"1-18: %.2f%%\\n\",b[0]/n*100);\n\t\tprintf(\"19-35: %.2f%%\\n\",b[1]/n*100);\n\t\tprintf(\"36-60: %.2f%%\\n\",b[2]/n*100);\n\t\tprintf(\"60??: %.2f%%\\n\",b[3]/n*100);\n}"} +{"label": "99", "index": "49002", "code": "\nint main()\n{\n\tint n,i;\n\tint a[100];\n\tdouble b[100];\n\tint x,y,z,t;\n\tscanf(\"%d\",&n);\n for(i=0;i=36&&a[i]<=60)\n\t\tz++;\n\t\tif(a[i]>=61)\n t++;\n\t\tif(a[i]>=19&&a[i]<=35)\n\t\ty++;\n\t}\n b[0]=(double)x/n;\n b[1]=(double)y/n;\n b[2]=(double)z/n;\n b[3]=(double)t/n;\n\tprintf(\"1-18: %.2lf%%\\n\",b[0]*100);\n printf(\"19-35: %.2lf%%\\n\",b[1]*100);\n printf(\"36-60: %.2lf%%\\n\",b[2]*100);\n printf(\"60??: %.2lf%%\\n\",b[3]*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49003", "code": "int main()\n{\n\tint i,n,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)? 1:0;\n\t\tc+=(nian<=60&&nian>=36)? 1:0;\n\t\td+=(nian>=61)? 1:0;\n\t}\n\tint zong=a+b+c+d;\n\tprintf(\"1-18: %.2lf%%\\n\",1.0*100*a/zong);\n\tprintf(\"19-35: %.2lf%%\\n\",1.0*100*b/zong);\n\tprintf(\"36-60: %.2lf%%\\n\",1.0*100*c/zong);\n\tprintf(\"60??: %.2lf%%\\n\",1.0*100*d/zong);\n\treturn 0;\n}"} +{"label": "99", "index": "49004", "code": "int main()\n{\n int n,a;\n scanf(\"%d\",&n);\n int i=1;\n int b=0;\n int c=0;\n int d=0;\n int e=0;\n while (i<=n){\n scanf(\"%d\",&a);\n if(a>=1&&a<=18){\n b++;\n }else if(a>=19&&a<=35){\n c++;\n }else if(a>=36&&a<=60){\n d++;\n }else if(a>=61){\n e++;\n }\n i++;\n }\n double N,B,C,D,E;\n N=n;\n B=b;\n C=c;\n D=d;\n E=e;\n double F,G,H,I;\n F=B/N*100;\n G=C/N*100;\n H=D/N*100;\n I=E/N*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",F,G,H,I);\n return 0;\n}\n"} +{"label": "99", "index": "49005", "code": "int main()\n{\n\tint n,b=0,c=0,d=0,e=0,a,i;\n\tscanf(\"%d\", &n);\n\tfor(i=0;i=19&&a<=35){\n\t\t\ty++;\n\t\t}else if(a>=36&&a<=60){\n\t\t\tz++;\n\t\t}else if(a>=61){\n\t\t\tw++;\n\t\t}\n\t}\n\tb=100*1.0*x/n;\n\tc=100*1.0*y/n;\n\td=100*1.0*z/n;\n\te=100*1.0*w/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",b,c,d,e);\n\treturn 0;\n}"} +{"label": "99", "index": "49008", "code": "int main(){\n\tint n;\n\tint i;\n\tint a;\n\tdouble s=0,d=0,f=0,g=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&age[i]<=18)\n\t\t\tcount1++;\n\t\telse if(age[i]>=19&&age[i]<=35)\n\t\t\tcount2++;\n\t\telse if(age[i]>=36&&age[i]<=60)\n\t\t\tcount3++;\n\t\telse count4++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",\n\t\t(((double)count1)/n)*100,(((double)count2)/n)*100,\n\t\t(((double)count3)/n)*100,(((double)count4)/n)*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49010", "code": "int main()\n{\n\tdouble y,n,i,wcn,qn,zn,ln,wcn0,qn0,zn0,ln0;\n\ti=1;\n\twcn=0;\n\tqn=0;\n\tzn=0;\n\tln=0;\n\tscanf(\"%lf\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%lf\",&y);\n\t\tif(y<19){\n\t\t\twcn=wcn+1;\n\t\t}\n\t\telse if(y>18&y<36){\n\t\t\tqn=qn+1;\n\t\t}\n\t\telse if(y>35&y<61){\n\t\t\tzn=zn+1;\n\t\t}\n\t\telse if(y>60){\n\t\t\tln=ln+1;\n\t\t}\n\t\ti=i+1;\n\t}\n\twcn0=wcn/n*100;\n\tqn0=qn/n*100;\n\tzn0=zn/n*100;\n\tln0=ln/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",wcn0,qn0,zn0,ln0);\n\treturn 0;\n}"} +{"label": "99", "index": "49011", "code": "int main(){\n\tint n,i;\n\tint sz[100];\n\tint a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&sz[i]<=18){\n\t\t\ta+=1;\n\t\t}else if(sz[i]>=19&&sz[i]<=35){\n\t\t\tb+=1;\n\t\t}else if(sz[i]>=36&&sz[i]<=60){\n\t\t\tc+=1;\n\t\t}else{\n\t\t\td+=1;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",1.0*a*100/n);\n printf(\"19-35: %.2lf%%\\n\",1.0*b*100/n);\n printf(\"36-60: %.2lf%%\\n\",1.0*c*100/n);\n printf(\"60??: %.2lf%%\\n\",1.0*d*100/n);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49012", "code": "void main()\n{\n\tint n,i,m[100];\n\tdouble a,b,c,d;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&m[i]);\n\t}\n\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(m[i]<=18) a=a+1;\n\t\tif(m[i]>18&&m[i]<=35) b=b+1;\n\t\tif(m[i]>35&&m[i]<=60) c=c+1;\n\t\tif(m[i]>=61) d=d+1;\n\t}\n\ta=(double)a*100/(double)n;\n\tb=(double)b*100/(double)n;\n\tc=(double)c*100/(double)n;\n\td=(double)d*100/(double)n;\n\n\tprintf(\"1-18: %.2f%%\\n\"\"19-35: %.2f%%\\n\"\"36-60: %.2f%%\\n\"\"60??: %.2f%%\\n\",a,b,c,d);\n\n}"} +{"label": "99", "index": "49013", "code": "int main()\n{\n\tint a[100],i;\n\tdouble n,b=0,c=0,d=0,e=0;\n double b1,c1,d1,e1;\n\tchar m='%';\n\tscanf(\"%lf\",&n);\n\tfor(i=0;i=1&&a[i]<=18){\n\t\t\tb++;\n\t\t}if(a[i]>=19&&a[i]<=35){\n\t\t\tc++;\n\t\t}if(a[i]>=36&&a[i]<=60){\n\t\t\td++;\n\t\t}if(a[i]>60){\n\t\t\te++;\n\t\t}\n\t}\n\t\tb1=(b/n)*100;\n \tc1=(c/n)*100;\n\t d1=(d/n)*100;\n e1=(e/n)*100;\n printf(\"1-18: %.2lf%c\\n\",b1,m);\n\n printf(\"19-35: %.2lf%c\\n\",c1,m);\n printf(\"36-60: %.2lf%c\\n\",d1,m);\n printf(\"60??: %.2lf%c\\n\",e1,m);\n return 0;\n}"} +{"label": "99", "index": "49014", "code": "int main(){\nint n,i,j,a[10000];\ndouble b[4]={0};\nscanf(\"%d\",&n);\nfor(i=0;i18&&a[i]<=35){\nb[1]=b[1]+1;}\nif(a[i]>35&&a[i]<=60){\nb[2]=b[2]+1;}\nif(a[i]>60){\nb[3]=b[3]+1;}\n}\nfor(i=0;i<4;i++){\nb[i]=(100.0*b[i])/n;\n}\nprintf(\"1-18: %.2lf%%\\n\",b[0]);\nprintf(\"19-35: %.2lf%%\\n\",b[1]);\nprintf(\"36-60: %.2lf%%\\n\",b[2]);\nprintf(\"Over60: %.2lf%%\\n\",b[3]);\nreturn 0;\n}"} +{"label": "99", "index": "49015", "code": "int main()\n{\n\tdouble n;\n\tint i;\n\tdouble a=0;\n\tdouble b=0;\n\tdouble c=0;\n\tdouble d=0;\n\tdouble A=0;\n\tdouble B=0;\n\tdouble C=0;\n\tdouble D=0;\n\tint age[101];\n\tscanf(\"%lf\",&n);\n\tfor (i=0;i60)\n\t\t{\n\t\t\tD+=1;\n\t\t}\n\t}\n\t\n\ta=100*A/n;\n\tb=100*B/n;\n\tc=100*C/n;\n\td=100*D/n;\n\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\", b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\",d);\n\n\treturn 0;\n}"} +{"label": "99", "index": "49016", "code": "main()\n{\nint i,t;\ndouble n;\ndouble a[4];\n\nfor(i=0;i<4;i++)\na[i]=0;\nscanf(\"%lf\",&n);\nfor(i=0;i=1&&t<=18)\n a[0]++;\nif(t>=19&&t<=35)\n a[1]++;\nif(t>=36&&t<=60)\na[2]++;\nif(t>60)\na[3]++;\n}\na[0]=a[0]/n;\na[1]=a[1]/n;\na[2]=a[2]/n;\na[3]=a[3]/n;\nprintf(\"1-18: %.2lf%%\\n\",a[0]*100);\nprintf(\"19-35: %.2lf%%\\n\",a[1]*100);\nprintf(\"36-60: %.2lf%%\\n\",a[2]*100);\nprintf(\"60??: %.2lf%%\\n\",a[3]*100);\n}"} +{"label": "99", "index": "49017", "code": "int main()\n{\n\tint n,i,nian,a,b,c,d;\n\tdouble A,B,C,D;\n\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tscanf (\"%d\",&n);\n\n\tfor (i=0;i=1&&a<=18)\n\t\t\txiao++;\n\t\telse if(a>=19&&a<=35)\n\t\t\tqing++;\n\t\telse if(a>=36&&a<=60)\n\t\t\tzhong++;\n\t\telse if(a>=61)\n\t\t\tlao++;\n\t}\n\txiaob=(double)xiao/n*100;\n\tqingb=(double)qing/n*100;\n\tzhongb=(double)zhong/n*100;\n\tlaob=(double)lao/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",xiaob);\n\tprintf(\"19-35: %.2lf%%\\n\",qingb);\n printf(\"36-60: %.2lf%%\\n\",zhongb);\n\tprintf(\"60??: %.2lf%%\\n\",laob);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49019", "code": "int main(){\ndouble n,x[4];\nint i;\ndouble a=0,b=0,c=0,d=0;\nint m;\nscanf(\"%lf\",&n);\nfor(i=0;i60){\n\t\td=d+1;\n\t}else if(m<19){\n\t\ta=a+1;\n\t}else if(m>=19&&m<=35){\n\t\tb=b+1;\n\t}else if(m<=60&&m>=36){\n\t\tc=c+1;\n\t}\n}\nx[0]=100*(a/n);\nx[1]=100*(b/n);\nx[2]=100*(c/n);\nx[3]=100*(d/n);\nprintf(\"1-18: %.2lf%%\\n\",x[0]);\nprintf(\"19-35: %.2lf%%\\n\",x[1]);\nprintf(\"36-60: %.2lf%%\\n\",x[2]);\nprintf(\"60??: %.2lf%%\\n\",x[3]);\nreturn 0;\n}"} +{"label": "99", "index": "49020", "code": "int main(){\n\tint a[100],n,i;\n\tint b[100]={0};\n\tdouble w,x,y,z;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18)\n\t\tb[1]++;\n if(a[i]>35&&a[i]<61)\n\t\tb[2]++;\n\tif(a[i]>60)\n\t\tb[3]++;\n\t}\n\tw=1.0*b[0]*100/n;\n\tx=1.0*b[1]*100/n;\n\ty=1.0*b[2]*100/n;\n\tz=1.0*b[3]*100/n;\nprintf(\"1-18: %.2lf\",w);\nprintf(\"%%\\n\");\nprintf(\"19-35: %.2lf\",x);\nprintf(\"%%\\n\");\nprintf(\"36-60: %.2lf\",y);\nprintf(\"%%\\n\");\nprintf(\"60??: %.2lf\",z);\nprintf(\"%%\\n\");\nreturn 0;\n}"} +{"label": "99", "index": "49021", "code": "int main(int argc, char* argv[])\n{\n\tint n,y[100],i;\n\t\tdouble a=0,b=0,c=0,d=0;\n\t\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)&&(y[i]<=35))\n\t\t\t b++;\n\t\t if((y[i]>=36)&&(y[i]<=60))\n\t\t\t c++;\n\t\t if(y[i]>60)\n\t\t\t d++;\n }\n \tprintf(\"1-18: %.2f%%\\n\",100.0*a/n);\n\t\tprintf(\"19-35: %.2f%%\\n\",100.0*b/n);\n\t\tprintf(\"36-60: %.2f%%\\n\",100.0*c/n);\n\t\tprintf(\"60??: %.2f%%\\n\",100.0*d/n);\n\t\treturn 0;\n}\n"} +{"label": "99", "index": "49022", "code": "int main()\n{\n\tint n,i;\n\tint year;\n\tdouble y1=0,y2=0,y3=0,y4=0;\n\tcin>>n;\n\tfor(i=0;i>year;\n\t\tif(year<19)\n\t\t\ty1++;\n\t\telse if(year<36)\n\t\t\ty2++;\n\t\telse if(year<61)\n\t\t\ty3++;\n\t\telse\n\t\t\ty4++;\n\t}\n\ty1=y1*100/n;\n\ty2=y2*100/n;\n\ty3=y3*100/n;\n\ty4=y4*100/n;\n\tprintf(\"1-18: %.2lf%\\n\",y1);\n\tprintf(\"19-35: %.2lf%\\n\",y2);\n\tprintf(\"36-60: %.2lf%\\n\",y3);\n\tprintf(\"60??: %.2lf%\\n\",y4);\n\n\t\n\treturn 0;\n}\n"} +{"label": "99", "index": "49023", "code": "int main(){\n\tint t;\n\tdouble n,a=0,b=0,c=0,d=0,e,f,g,h;\n\tscanf(\"%lf\\n\",&n);\n\tfor(int i=0;i18&&t<=35){\n\t\t\tb++;\n\t\t}else if(t>35&&t<=60){\n\t\t\tc++;\n\t\t}else{\n\t\t\td++;\n\t}}\n\t\tprintf(\"1-18: %.2lf%%\\n\",e=a/n*100);\n\t\tprintf(\"19-35: %.2lf%%\\n\",f=b/n*100);\n\t\tprintf(\"36-60: %.2lf%%\\n\",g=c/n*100);\n\t\tprintf(\"60??: %.2lf%%\\n\",h=d/n*100);\t\n\treturn 0;\n}\n"} +{"label": "99", "index": "49024", "code": "\nint main(int argc, char* argv[])\n{\n\tint a[100],i,n;\n\tint b=0,c=0,d=0,e=0;\n\tdouble f,g,h,j;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t\tc++;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\td++;\n\t\tif(a[i]>=61)\n\t\t\te++;\n\t}\n\tf=(double)b/n*100;\n\tg=(double)c/n*100;\n\th=(double)d/n*100;\n\tj=(double)e/n*100;\n\tprintf(\"1-18: %.2lf%\",f);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf%\",g);\n\t\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf%\",h);\n\t\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf%\",j);\n\t\tprintf(\"%%\\n\");\n\t\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49025", "code": "int main()//???\n{\n\tint n;//?????????????\n\tdouble a=0,b=0,c=0,d=0;//???????????????????\n\tcin>>n;//??n\n\tint e[n];//??????????????????\n\tfor (int k=0;k>e[k];//???????????\n\tfor (int k=0;k=19&&e[k]<=35)\n\t\t\tb++;//???????19?35???b+1\n\t\tif (e[k]>=36&&e[k]<=60)\n\t\t\tc++;//???????36?60???c+1\n\t\tif (e[k]>=61)\n\t\t\td++;//????????60?d+1\n\t} \n\ta=a/n*100;//????????\n\tb=b/n*100;//????????\n\tc=c/n*100;//????????\n\td=d/n*100;//????????\n\tprintf (\"1-18:\");//??\n\tprintf (\" \");\n printf (\"%.2f\",a);\n\tprintf (\"%%\");\n\tprintf (\"\\n\");\n\tprintf (\"19-35:\");\n printf (\" \");\n\tprintf (\"%.2f\",b);\n\tprintf (\"%%\");\n\tprintf (\"\\n\");\n\tprintf (\"36-60:\");\n printf (\" \");\n\tprintf (\"%.2f\",c); \n\tprintf (\"%%\");\n\tprintf (\"\\n\");\n\tprintf (\"60??:\" );\n printf (\" \");\n\tprintf (\"%.2f\",d);\n\tprintf (\"%%\");\n\tprintf (\"\\n\");\n\treturn 0;\n} \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"} +{"label": "99", "index": "49026", "code": "int main()\n{int i,n,age;\ndouble sum1=0.00,sum2=0.00,sum3=0.00,sum4=0.00;\ndouble k1,k2,k3,k4;\nscanf(\"%d\",&n);\nfor(i=1;i<=n;i++){\n scanf(\"%d\",&age);\n if(age>=1&&age<=18) sum1=sum1+1;\n else if(age<=35) sum2=sum2+1;\n else if(age<=60) sum3=sum3+1;\n else sum4=sum4+1;\n}\n k1 = (double)(sum1/n*100);\n k2 = (double)(sum2/n*100);\n k3 = (double)(sum3/n*100);\n k4 = (double)(sum4/n*100);\nprintf(\"1-18: %.2lf%\\n\",k1);\nprintf(\"19-35: %.2lf%\\n\",k2);\nprintf(\"36-60: %.2lf%\\n\",k3);\nprintf(\"60??: %.2lf%\\n\",k4);\nreturn 0;\n}\n"} +{"label": "99", "index": "49027", "code": "int main()\n{\n\tdouble a,b,c,d;\n\tint n,e=0,f=0,g=0,h=0,i;\n\tint sz[100];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i18 && sz[i]<=35)\n\t\t\tf+=1;\n\t\telse if(sz[i]>35 && sz[i]<=60)\n\t\t\tg+=1;\n\t\telse if(sz[i]>60)\n\t\t\th+=1;\n\t}\n\ta=100.0*e/n;\n\tb=100.0*f/n;\n\tc=100.0*g/n;\n\td=100.0*h/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a,b,c,d);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49028", "code": "int main(){\ndouble a,b,c,d;\na=0;\nb=0;\nc=0;\nd=0;\nint i,n;\nscanf(\"%d\",&n);\nint e[n];\nfor(i=1;i<=n;i++){\n scanf(\"%d\",&(e[i]));\n if((e[i])>=1 && (e[i])<=18){\n a=a+1;\n }else if((e[i])>=19 && (e[i])<=35){\n b=b+1;\n }else if((e[i])>=36 && (e[i])<=60){\n c=c+1;\n }else if((e[i])>60){\n d=d+1;\n }\n}\n a=100.0*a/n;\n b=100.0*b/n;\n c=100.0*c/n;\n d=100.0*d/n;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",a,b,c,d);\n return 0;\n}\n\n\n"} +{"label": "99", "index": "49029", "code": "int main()\n{\n\tint n;\n\tdouble x,y,z,p;\n\tint a=0;\n\tint b=0;\n\tint c=0;\n\tint d=0;\n\tint i;\n\tint sz[100];\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i18,sz[i]<=35){\n\t\t\tb+=1;\n\t\t}\n\t\telse if(sz[i]>35,sz[i]<=60){\n\t\t\tc+=1;\n\t\t}\n\t\telse{\n\t\t\td+=1;\n\t\t}\n\t}\n\tx=(double)a/n*100;\n\t\t\ty=(double)b/n*100;\n\t\t\tz=(double)c/n*100;\n\t\t\tp=(double)d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n\tprintf(\"19-35: %.2lf%%\\n\",y);\n\tprintf(\"36-60: %.2lf%%\\n\",z);\n\tprintf(\"60??: %.2lf%%\\n\",p);\n\treturn 0;\n}"} +{"label": "99", "index": "49030", "code": "/************************************\n * ????????\t\t\t\t*\n * ?????? 1200012815\t\t*\n * ???2012.9.25\t\t\t\t*\n ************************************/\nint main()\n{\n\tint n, i, a;\n\tcin >> n;\n\tdouble a1, a2, a3, a4;\n\ta1 = a2 = a3 = a4 =0;\n\tfor (i = 1; i <= n; i ++)\n\t{\n\t\tcin >> a;\n\t\tif (a <= 18)\n\t\t\ta1 ++;\n\t\telse if (a >= 19 && a <= 35)\n\t\t\ta2 ++;\n\t\telse if (a >= 36 && a <= 60)\n\t\t\ta3 ++;\n\t\telse \n\t\t\ta4 ++;\n\t}\n\tcout << fixed << setprecision(2) << \"1-18: \" << 100 * a1 / n << \"%\" << endl;\n\tcout << fixed << setprecision(2) << \"19-35: \" << 100 * a2 / n << \"%\" << endl;\n\tcout << fixed << setprecision(2) << \"36-60: \" << 100 * a3 / n << \"%\" << endl;\n\tcout << fixed << setprecision(2) << \"60??: \" << 100 * a4 / n << \"%\" << endl;\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49031", "code": "\n\nint main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tdouble a=0,b=0,c=0,d=0;\n\tint age;\n\tfor(int i=0;i=1&&age<=18)\n\t\t{\n\t\t\ta++;\n\t\t}\n\t\telse if(age>=19&&age<=35)\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\telse if(age>=36&&age<=60)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\telse if(age>=60)\n\t\t{\n\t\t\td++;\n\t\t}\n\t}\n\t\n\tprintf(\"1-18: %.2lf%%\\n\",(a/n)*100);\nprintf(\"19-35: %.2lf%%\\n\",(b/n)*100);\nprintf(\"36-60: %.2lf%%\\n\",(c/n)*100);\nprintf(\"60??: %.2lf%%\\n\",(d/n)*100);\n\n\n\n\n\treturn 0;\n}"} +{"label": "99", "index": "49032", "code": "int main()\n{\n int n,a[101],i,b=0,c=0,d=0,e=0;\n double f,g,h,k;\n scanf(\"%d\",&n);\n for(i=0;i=19&&a[i]<=35)\n c=c+1;\n else if(a[i]>=36&&a[i]<=60)\n d=d+1;\n else e=e+1;\n }\n f=(double)b/n*100;\n g=(double)c/n*100;\n h=(double)d/n*100;\n k=(double)e/n*100;\n printf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\",f,g,h,k);\n}"} +{"label": "99", "index": "49033", "code": "//************************\n//* 9.cpp\n//* ?????\n//* Created on: 2012-10-1\n//* Author: ?? 1200012934\n//*************************\nint main() //???\n{\n\n\t//?????n?????i???????age????\n\t//????????????\n\tdouble n = 0, i = 0, age = 0, num1_18 = 0,\n\t\tnum19_35 = 0, num36_60 = 0, num61_ = 0;\n\tcin >> n; //????????\n\tfor (i = 1; i <= n; i++) //??\n\t\t{cin >> age; //?????????age\n\n\t\t //?????????age???????\n\t\tif (age >= 1 && age <= 18)\n\t \t{num1_18 = num1_18 + 1;}\n\t else\n\t \t{if (age <= 35)\n\t \t\t{num19_35 = num19_35 + 1;}\n\t \t else\n\t \t\t{if (age <= 60)\n\t \t\t\t{num36_60 = num36_60 + 1;}\n\t \t\telse\n\t \t\t\t{num61_ = num61_ + 1;}\n\t \t\t}\n\t \t}\n\t\t}\n cout << setprecision(2) << fixed; //???????\n\tcout << \"1-18: \" << (double) num1_18 / n * 100 << \"%\" << endl; //??\n\tcout << \"19-35: \" << (double) num19_35 / n * 100 << \"%\" << endl;\n\tcout << \"36-60: \" << (double) num36_60 / n * 100 << \"%\" << endl;\n\tcout << \"60??: \" << (double) num61_ / n * 100 << \"%\";\n\treturn 0;\n} //?????"} +{"label": "99", "index": "49034", "code": "int main(){\n\tint a[1000];\n\tint s1=0,s2=0,s3=0,s4=0;\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i18 && a[i]<=35){\n\t\t\ts2++;\n\t\t}\n\t\tif (a[i]>35 && a[i]<61){\n\t\t\ts3++;\n\t\t}\n\t\tif (a[i]>60){\n\t\t\ts4++;\n\t\t}\n\t}\n double x,b,c,d;\n\tx=s1*1.0*100/n;\n\tb=s2*1.0*100/n;\n\tc=s3*1.0*100/n;\n\td=s4*1.0*100/n;\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}"} +{"label": "99", "index": "49035", "code": "int main()\n{\n int sz[100];\n int i,n;\n double a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n for(i=0;i=1&&sz[i]<=18)\n\t a+=1;\n\t else if(sz[i]>=19&&sz[i]<=35)\n\t\t b+=1;\n\t else if(sz[i]>=36&&sz[i]<=60)\n\t\t c+=1;\n\t else if(sz[i]>60)\n\t\t d+=1;\n }\n printf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\nOver60: %.2lf%\\n\",a/n*100,b/n*100,c/n*100,d/n*100);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49036", "code": "int main()\n{\n int s[100],i;\n double n,a=0,b=0,c=0,d=0;\n scanf(\"%lf\",&n);\n for(i=0;i=1&&s[i]<=18)\n \ta++;\n \telse if(s[i]>=19&&s[i]<=35)\n \tb++;\n \telse if(s[i]>=36&&s[i]<=60)\n \tc++;\n \telse\n \td++;\n }\n a=a/n*100;\n b=b/n*100;\n c=c/n*100;\n d=d/n*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a,b,c,d);\n return 0;\n}\n"} +{"label": "99", "index": "49037", "code": "\nvoid main()\n{\n\tint b,a[100],i,m=0,n=0,o=0,p=0;\n\tdouble s1,s2,s3,s4;\n\tscanf(\"%d\",&b);\n\tfor(i=0;i=0 && a[i]<=18)\n\t\t{\n\t\t\tm=m+1;\n\t\t}\n\t\telse if(a[i]>=19 && a[i]<=35)\n\t\t{\n\t\t\tn=n+1;\n\t\t}\n\t\telse if(a[i]>=36 && a[i]<=60)\n\t\t{\n\t\t\to=o+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp=p+1;\n\t\t}\n\t}\n\ts1=(double)m/(double)b;\n\ts2=(double)n/(double)b;\n\ts3=(double)o/(double)b;\n\ts4=(double)p/(double)b;\n\tprintf(\"1-18: %.2lf\",s1*100);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",s2*100);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",s3*100);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",s4*100);\n\tprintf(\"%%\");\n}"} +{"label": "99", "index": "49038", "code": "\nint main()\n{\n\tint n;\n\tcin >> n;\n\tint x=0,a=0,b=0,c=0,d=0;\n\tfor (int i=1;i<=n;i++)\n\t{\n\t\tcin >> x;\n\t\tif (x<=18) a++;\n\t\tif (x>=19 && x<=35) b++;\n\t\tif (x>=36 && x<=60) c++;\n\t\tif (x>=61) d++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double) a/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",(double) b/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",(double) c/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",(double) d/n*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49039", "code": "\n\n//#include \n\n\n\n\nint main()\n{\n\n\tint n;\n\tint ta;\n\tint t1=0,t2=0,t3=0,t4=0;\n\n\tscanf(\"%d\",&n);\n\n\tint i;\n\tfor(i=0;i> n; //??n \n\tfor(i = 0 ; i < n ; i ++) \n\t{\n\t\tcin >>y[i]; //???y[i]???\n\t\tif (y[i] <= 18) //?y[i]???18\n\t\t\tm[0] ++; //m[0]????1\n\t\telse if (y[i] <= 35) //?y[i]?[19,35]?\n\t\t\tm[1] ++; //m[1]????1\n\t\telse if (y[i] <= 60) //?y[i]?[36,60]?\n\t\t\tm[2] ++; //m[2]????1\n\t\telse //???y[i]??60\n\t\t\tm[3] ++; //m[3]????1\n\t}\n\tcout << fixed << setprecision(2); //???????????????\n\tfor(i = 0 ; i<4 ; i ++) \n\t{\n\t\tM[i]=(m[i]*100)/n;\t\t\t\t\t //???????????\n\t}\n\tcout << \"1-18: \" << M[0] << \"%\" <60) {\n\t\t\td++;\n\t\t}\n\t\t/*printf(\"%d,%d,%d,%d\",a,b,c,d);*/\n\t}\n\t/*printf(\"%d,%d,%d,%d\",a,b,c,d);*/\n\tdouble p,q,r,s;\n\tp=a/n;\n\tq=b/n;\n\tr=c/n;\n\ts=d/n;\n\tprintf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\\n\",p*100,q*100,r*100,s*100);\n\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49043", "code": " int main()\n {\n\t int n,i;\n\t int a[100],b[4]={0,0,0,0};\n\t double c[4];\n\t scanf(\"%d\",&n);\n\t for (i=0;i=1 && a[i]<=18)\n\t\t b[0]++;\n\t else if (a[i]>=19 && a[i]<=35)\n\t\t b[1]++;\n\t else if (a[i]>=36 && a[i]<=60)\n\t\t b[2]++;\n\t else\n\t\t b[3]++;\n\t }\n\t for (i=0;i<4;i++)\n\t {\n\t\t //printf(\"%d\\t\",b[i]);\n\t\t c[i]=(double)b[i]/n*100;\n\t }\n\t printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",c[0],c[1],c[2],c[3]);\n\t return 0;\n }\n\n\n\n\n"} +{"label": "99", "index": "49044", "code": "int main(){\nint x,i,y,a,b,c,d;\ndouble a1,b1,c1,d1;\ni=1,a=0,b=0,c=0,d=0;\nscanf (\"%d\",&x);\nwhile (i<=x){\nscanf(\"%d\",&y);\nif (y<=18){\na=a+1;}\nelse if(y<=35&&y>=19){\nb=b+1;}\nelse if(y<=60&&y>=36){\nc=c+1;}\nelse if(y>=61){\nd=d+1;}\ni=1+i;\n}\na1=a*1.0/x*100,b1=b*1.0/x*100,c1=c*1.0/x*100,d1=d*1.0/x*100;\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a1,b1,c1,d1);\nreturn 0;\n}"} +{"label": "99", "index": "49045", "code": "void main()\n{\n\tint a[N],i,n;\n\tdouble s1,s2,s3,s4;\n\ts1=s2=s3=s4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1 && a[i]<=18)\n\t\t\ts1++;\n\t\telse if(a[i]>=19 && a[i]<=35)\n\t\t\ts2++;\n\t\telse if(a[i]>=36 && a[i]<=60)\n\t\t\ts3++;\n\t\telse if(a[i]>60)\n\t\t\ts4++;\n\t}\n\ts1=s1/n*100;s2=s2/n*100;s3=s3/n*100;s4=s4/n*100;\n\tprintf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\\n\",s1,s2,s3,s4);\n}"} +{"label": "99", "index": "49046", "code": "int main(){\n\tint n,i,x[100];\n\tdouble a=0,b=0,c=0,d=0;\n\t\tscanf(\"%d\",&n);\n\t\tfor(i=0;i=1&&x[i]<=18){\n\t\t\t\ta=a+1;\n\t\t\t}\n\t\t\n\t\t\tif(x[i]>=19&&x[i]<=35){\n\t\t\t\tb=b+1;\n\t\t\t}\n\t\t\n\t\t\tif(x[i]>=36&&x[i]<=60){\n\t\t\t\tc=c+1;\n\t\t\t}\n\t\t\n\t\t\tif(x[i]>60){\n\t\t\t\td=d+1;\n\t\t\t}\n\t\t\n\t\t}\n\t\tdouble y=0;\n\t\ty=a+b+c+d;\n\t\tdouble e=0,f=0,g=0,h=0;\n\t\te=(a/y)*100;\n\t\tf=(b/y)*100;\n\t\tg=(c/y)*100;\n\t\th=(d/y)*100;\n\t\tprintf(\"1-18: %.2lf%%\\n\",e);\n\t\tprintf(\"19-35: %.2lf%%\\n\",f);\n\t\tprintf(\"36-60: %.2lf%%\\n\",g);\n\t\tprintf(\"60??: %.2lf%%\\n\",h);\n\t\treturn 0;\n}\n\t"} +{"label": "99", "index": "49047", "code": "int main()\n{\n\tint i,n,o;\n\tdouble a=0,b=0,c=0,d=0,al,bl,cl,dl;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18)\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\telse if(o<61&&o>35)\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\telse if(o>60)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t}\n\tal=100*a/n;\n\tbl=100*b/n;\n\tcl=100*c/n;\n\tdl=100*d/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",al,bl,cl,dl);\n\treturn 0;\n}\n\t\n\n"} +{"label": "99", "index": "49048", "code": "int main(){\n\tint n;\n\tint age;\n\tint a=0;\n\tint b=0;\n\tint c=0;\n\tint d=0;\n\tdouble aa;\n\tdouble bb;\n\tdouble cc;\n\tdouble dd;\n\tint i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>age;\n\t\tif(age<=18&&age>=1)\n\t\t\tb=b+1;\n\t\telse\n\t\t\tif(age<=35&&age>=19)\n\t\t\t\tc=c+1;\n\t\telse\n\t\t\tif(age<=60&&age>=36)\n\t\t\t\td=d+1;\n\t\telse\n\t\t\tif(age>=61)\n\t\t\t\te=e+1;\n\t}\n\tm=1.0*b/n*100;\n\ts=1.0*c/n*100;\n\tp=1.0*d/n*100;\n\tq=1.0*e/n*100;\n\tcout<<\"1-18: \"<=19&&e<=35){\n\t\t b++;\n\t }else if(e>=36&&e<=60){\n\t\t c++;\n\t }else{\n\t\t d++;\n\t }\n\t i++;\n }\n printf(\"1-18: %.2lf%%\\n\",a*100/(a+b+c+d));\n printf(\"19-35: %.2lf%%\\n\",b*100/(a+b+c+d));\n printf(\"36-60: %.2lf%%\\n\",c*100/(a+b+c+d));\n printf(\"60??: %.2lf%%\\n\",d*100/(a+b+c+d));\n return 0;\n}"} +{"label": "99", "index": "49051", "code": "int main()\n{\n\tint a,age,n1=0,n2=0,n3=0,n4=0,i;\n\tdouble b1,b2,b3,b4;\n\tscanf(\"%d\",&a);\n\tfor(i=0;i18&&age<=35)\n\t\t{\n\t\t\tn2++;\n\t\t}\n\t if(age>35&&age<=60)\n\t\t{\n\t\t\tn3++;\n\t\t}\n\t if(age>60)\n\t\t{\n\t\t\tn4++;\n\t\t}\n\t}\n\tb1=(double)n1/a*100;\n\tb2=(double)n2/a*100;\n\tb3=(double)n3/a*100;\n\tb4=(double)n4/a*100;\n\tprintf(\"1-18: %.2lf%%\",b1);\n\tprintf(\"\\n\");\n\tprintf(\"19-35: %.2lf%%\",b2);\n\tprintf(\"\\n\");\n\tprintf(\"36-60: %.2lf%%\",b3);\n\tprintf(\"\\n\");\n\tprintf(\"60??: %.2lf%%\",b4);\n\treturn 0;\n}"} +{"label": "99", "index": "49052", "code": "int main()\n{\n\tint n,i,a[100],n1=0,n2=0,n3=0,n4=0;\n\tdouble A,b,c,d;\n\t\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<36)\n\t\t\tn2++;\n\t\telse if(a[i]>35&&a[i]<61)\n\t\t\tn3++;\n\t\telse n4++;\n\t}\n\tA=(double)n1/n*100;\n\tb=(double)n2/n*100;\n\tc=(double)n3/n*100;\n\td=(double)n4/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",A,b,c,d);\n return 0;\n}"} +{"label": "99", "index": "49053", "code": "void main()\n{\n\tint i,n;\n int a[100],sum[4]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t\t sum[1]++;\n\t\t else if(a[i]>35&&a[i]<=60)\n\t\t\t sum[2]++;\n\t\t else if(a[i]>60)\n\t\t\t sum[3]++; \n\t}\n\n\tprintf(\"1-18: %.2f%%\\n\",(float)100*sum[0]/n);\n\tprintf(\"19-35: %.2f%%\\n\",(float)100*sum[1]/n);\n\tprintf(\"36-60: %.2f%%\\n\",(float)100*sum[2]/n);\n\tprintf(\"60??: %.2f%%\\n\",(float)100*sum[3]/n);\n}"} +{"label": "99", "index": "49054", "code": "\nint main()\n{\n\tint a1=0,a2=0,a3=0,a4=0;\n\tint i,n,m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1) a1++;\n\t\telse if(m>=19 && m<=35) a2++;\n else if(m>=36 && m<=60) a3++;\n else if(m>=61 && m<=100 ) a4++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)a1/n*100);\n printf(\"19-35: %.2lf%%\\n\",(double)a2/n*100);\n printf(\"36-60: %.2lf%%\\n\",(double)a3/n*100);\n printf(\"60??: %.2lf%%\\n\",(double)a4/n*100);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49055", "code": "int main()\n{\n\tint k, i, a = 0, b = 0, c = 0, d = 0;\n\tcin >> k;\n\tdouble people[100];\n\tfor (i = 1; i <= k ; i++)\n\t{\n\t\tcin >> people[i];\n\t\tif (people[i] <= 18) a = a + 1;\n\t\telse if (people[i] <= 35) b = b + 1;\n\t\telse if (people[i] <= 60) c = c + 1;\n\t\telse d = d + 1;\n\t}\n\tdouble e, f, g, h, x;\n\tx = k;\n\te = 100 * a / x;\n\tf = 100 * b / x;\n\tg = 100 * c / x;\n\th = 100 * d / x;\n\tcout << \"1-18: \" << fixed << setprecision(2) << e << \"%\" << endl;\n\tcout << \"19-35: \" << fixed << setprecision(2) << f << \"%\" << endl;\n\tcout << \"36-60: \" << fixed << setprecision(2) << g << \"%\" << endl;\n\tcout << \"60??: \" << fixed << setprecision(2) << h << \"%\" << endl;\n\treturn 0;\n}\n"} +{"label": "99", "index": "49056", "code": "int main(int argc, char* argv[])\n{\n int i,n,count1,count2,count3,count4;\n int a[101];\n memset(a,0,sizeof(a));\n i=count1=count2=count3=count4=0;\n scanf(\"%d\",&n);\n for(i=0;i60)\n count4++;\n }\n printf(\"1-18: %.2f%%\\n\",(double)count1/n*100);\nprintf(\"19-35: %.2f%%\\n\",(double)count2/n*100);\nprintf(\"36-60: %.2f%%\\n\",(double)count3/n*100);\nprintf(\"60??: %.2f%%\\n\",(double)count4/n*100);\n\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49057", "code": "int main()\n{\n\tint s[100],i;\n\tfloat a=0,b=0,c=0,d=0,h[5],n;\n\tscanf(\"%f\",&n);\n\tfor(i=0;i=0&&s[i]<=18)\n\t\t{\n\t\t\ta+=1;\n\t\t}\n\t\tif(s[i]>=19&&s[i]<=35)\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\tif(s[i]>=36&&s[i]<=60)\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\tif(s[i]>=61)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t}\n\th[0]=a/n;\n\th[1]=b/n;\n\th[2]=c/n;\n\th[3]=d/n;\n\tprintf(\"1-18: %.2f%%\\n\",h[0]*100);\n\tprintf(\"19-35: %.2f%%\\n\",h[1]*100);\n\tprintf(\"36-60: %.2f%%\\n\",h[2]*100);\n\tprintf(\"60??: %.2f%%\\n\",h[3]*100);\n\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49058", "code": "void main()\n{\n\tint a[100000];\n\tint n, i;\n\tdouble b = 0, c = 0, d = 0, e = 0;\n\tscanf(\"%d\",&n);\n\tfor (i = 0; i18&&a[i]<=35)\n\t\t\tc = c + 1;\n else if(a[i]>35&&a[i]<=60)\n\t\t\td = d + 1;\n else\n\t\t\te = e + 1;\n\t}\n\tb = (b/n)*100;\n\tc = (c/n)*100;\n\td = (d/n)*100;\n\te = (e/n)*100;\n\tprintf(\"1-18: %.2lf%%\\n\",b);\n printf(\"19-35: %.2lf%%\\n\",c);\n printf(\"36-60: %.2lf%%\\n\",d);\n printf(\"60??: %.2lf%%\\n\",e);\n}"} +{"label": "99", "index": "49059", "code": "\nvoid main()\n{\n\tint i,n,sum[4]={0},temp;\n\n\n\tscanf(\"%d\",&n);\n\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%d\",&temp);\n\t\tif(temp<=18)\n\t\t\tsum[0]++;\n\t\telse if (temp<=35)\n\t\t\tsum[1]++;\n\t\telse if (temp<=60)\n\t\t\tsum[2]++;\n\t\telse \n\t\t\tsum[3]++;\n\t}\n\t\n\tprintf(\"1-18: %.2f%%\\n\",(float)(100*((float)sum[0]/(float)n)));\n\tprintf(\"19-35: %.2f%%\\n\",(float)(100*((float)sum[1])/(float)n));\n\tprintf(\"36-60: %.2f%%\\n\",(float)(100*((float)sum[2]/(float)n)));\n\tprintf(\"60??: %.2f%%\\n\",(float)(100*((float)sum[3]/(float)n)));\n}"} +{"label": "99", "index": "49060", "code": "int main() \n{\n int n,i;\n scanf(\"%d\",&n);\n int a[N];\n for(i=0;i=19&&a[i]<=35)\n {\n c++;\n }\n else if(a[i]>=36&&a[i]<=60)\n {\n d++;\n }\n else \n {\n e++;\n }\n }\n double b1,c1,d1,e1;\n b1=(double)b/n*100; c1=(double)c/n*100; d1=(double)d/n*100; e1=(double)e/n*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",b1,c1,d1,e1);\n return 0;\n}"} +{"label": "99", "index": "49061", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n int y[N];\n int i;\n for(i=0;i=19)&&(y[j]<=35)){\n s[1]++;\n }\n else if((y[j]>=36)&&(y[j]<=60)){\n s[2]++;\n }\n else if(y[j]>=60){\n s[3]++;\n }\n }\n double bfb[4];\n int t;\n for(t=0;t<4;t++){\n bfb[t]=100.0*s[t]/n;\n }\n printf(\"1-18: %.2lf%%\\n\",bfb[0]);\n printf(\"19-35: %.2lf%%\\n\",bfb[1]);\n printf(\"36-60: %.2lf%%\\n\",bfb[2]);\n printf(\"Over60: %.2lf%%\\n\",bfb[3]);\n return 0;\n}"} +{"label": "99", "index": "49062", "code": "int main(){\n int i,n,a[101];\n double b,c,d,e,sum1=0,sum2=0,sum3=0,sum4=0;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){scanf(\"%d\",&a[i]);\n if(a[i]<=18)sum1+=1;\n else if(a[i]>=19&&a[i]<=35)sum2+=1;\n else if(a[i]>=36&&a[i]<=60)sum3+=1;\n else sum4+=1;}\n b=(100*sum1)/n;c=(100*sum2)/n;d=(100*sum3)/n;e=(100*sum4)/n;\n printf(\"1-18: %.2lf%%\\n\",b);\n printf(\"19-35: %.2lf%%\\n\",c);\n printf(\"36-60: %.2lf%%\\n\",d);\n printf(\"60??: %.2lf%%\\n\",e);\n return 0;\n}"} +{"label": "99", "index": "49063", "code": "void main()\n{\n\tdouble n;\n\tscanf(\"%lf\",&n);\n\tint i;\n\tdouble a[100];\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t\tcount2++;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\tcount3++;\n\t\tif(a[i]>60)\n\t\t\tcount4++;\n\t}\n\tdouble per1=count1/n*100;\n\tdouble per2=count2/n*100;\n\tdouble per3=count3/n*100;\n\tdouble per4=count4/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",per1);\n\tprintf(\"19-35: %.2lf%%\\n\",per2);\n\tprintf(\"36-60: %.2lf%%\\n\",per3);\n\tprintf(\"60??: %.2lf%%\\n\",per4);\n}"} +{"label": "99", "index": "49064", "code": "int main(){\n\tint n;\n\tint a;\n\tint b=0;\n\tint c=0;\n\tint d=0;\n\tint e=0;\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0;i=19&&a<=35){\n\t\t\tc=c+1;\n\t\t}else if(a>=36&&a<=60){\n\t\t\td=d+1;\n\t\t}else if(a>60){\n\t\t\te=e+1;\n\t\t}\n\t}\n\tdouble f,g,h,k;\n\tf=1.0*b/n*100;\n\tg=1.0*c/n*100;\n\th=1.0*d/n*100;\n\tk=1.0*e/n*100;\n\tprintf(\"1-18: \");\n\tprintf(\"%.2lf%%\\n\",f);\n\tprintf(\"19-35: \");\n\tprintf(\"%.2lf%%\\n\",g);\n\tprintf(\"36-60: \");\n\tprintf(\"%.2lf%%\\n\",h);\n\tprintf(\"60??: \");\n\tprintf(\"%.2lf%%\\n\",k);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49065", "code": "\n\nint main()\n{\n int n,a,c1,c2,c3,c4; //n????a??????,ci????\n c1=c2=c3=c4=0;\n cin>>n;\n\n for (int i=0;i>a;\n if (a<=18) c1++;\n else if (a<=35) c2++;\n else if (a<=60) c3++;\n else c4++;\n }\n float s=c1+c2+c3+c4;\n\n printf(\"1-18: %.2f%c\\n\",c1/s*100,'%');\n printf(\"19-35: %.2f%c\\n\",c2/s*100,'%');\n printf(\"36-60: %.2f%c\\n\",c3/s*100,'%');\n printf(\"60??: %.2f%c\\n\",c4/s*100,'%');\n\n\n return 0;\n}\n"} +{"label": "99", "index": "49066", "code": "int year[100];\ndouble n,a,b,c,d;\nint main()\n{\n\tint i;\n\tscanf(\"%lf\",&n);\n\tfor(i=0;i=1&&year[i]<=18)\n\t\t\ta++;\n\t\tif(year[i]<=35&&year[i]>=19)\n\t\t\tb++;\n\t\tif(year[i]>=36&&year[i]<=60)\n\t\t\tc++;\n\t\tif(year[i]>60)\n\t\t\td++;\n\t}\n\ta=(double)a/n*100;\n\tb=(double)b/n*100;\n\tc=(double)c/n*100;\n\td=(double)d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\",d);\n\treturn 0;\n}"} +{"label": "99", "index": "49067", "code": "int main()\n{\ndouble n=0,age=0,a=0,b=0,c=0,d=0,i=0;//n????? a?b?c?d???18???19-35?36-60?61??????? age?????i??????? \ncin>>n;\n for(i=1;i<=n;i++)\n {\n cin>>age;\n if(age<=18)\n a+=1;\n if((age>=19)&&(age<=35))\n b+=1;\n if ((age>=36)&&(age<=60)) \n c+=1;\n if(age>=61)\n d+=1; \n }\na=a/n*100;b=b/n*100;c=c/n*100;d=d/n*100;\nprintf(\"1-18: %.2f%\\n\",a); \nprintf(\"19-35: %.2f%\\n\",b); \nprintf(\"36-60: %.2f%\\n\",c); \nprintf(\"60??: %.2f%\\n\",d); \nreturn 0;\n}\n"} +{"label": "99", "index": "49068", "code": "main()\n{\nint i,n,m,j,k;\nint A[100];\nint P1=0,P2=0,P3=0,P4=0;\n\nscanf(\"%d\",&n);\n\nfor(i=0;i=19)&&(A[i]<=35)) P2++;\n\tif((A[i]>=36)&&(A[i]<=60)) P3++;\n\tif(A[i]>=61) P4++;\n}\n\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",\n(double)100*P1/n,(double)100*P2/n,(double)100*P3/n,(double)100*P4/n);\n\nreturn 0;\n}"} +{"label": "99", "index": "49069", "code": "int main(){\n int n,i;\n int a[10000];\n int k=0,l=0,m=0,q=0;\n double s;\n scanf(\"%d\",&n);\n for(i=0;i=19&&a[i]<=35){\n l+=1;\n }\n if(a[i]>=36&&a[i]<=60){\n m+=1;\n }\n if(a[i]>60){\n q+=1;\n }\n }\n printf(\"1-18: %.2lf%%\\n\",(double)100*k/n);\n printf(\"19-35: %.2lf%%\\n\",(double)100*l/n);\n printf(\"36-60: %.2lf%%\\n\",(double)100*m/n);\n printf(\"Over60: %.2lf%%\\n\",(double)100*q/n);\n return 0;\n}\n"} +{"label": "99", "index": "49070", "code": "int main()\n{\n\tint i,n,a;\n\tdouble sum1=0,sum2=0,sum3=0,sum4=0;\n\tscanf(\"%d\\n\",&n);\n for(i=0;i=1)\n sum1++;\n else if(a<=35&&a>=19)\n\t\t sum2++;\n else if(a<=60&&a>=36)\n\t\t sum3++;\n else if(a>=60)\n\t\t sum4++;\n\t}\n\tsum1=(double)100*sum1/n;\n sum2=(double)100*sum2/n;\n sum3=(double)100*sum3/n;\n sum4=(double)100*sum4/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",sum1,sum2,sum3,sum4);\n\treturn 0;\n}"} +{"label": "99", "index": "49071", "code": "int main()\n{\nint n,i;\ndouble t,s,h,y,lt,ls,lh,ly;\nint k[100];\nscanf(\"%d\",&n);\nfor(i=0;i18&&k[i]<=35)\ns++;\nelse if(k[i]>35&&k[i]<=60)\nh++;\nelse if(k[i]>60)\ny++;\n}\nt=(double)t/n;\ns=(double)s/n;\nh=(double)h/n;\ny=(double)y/n;\nlt=100*t;\nls=100*s;\nlh=100*h;\nly=100*y;\nprintf(\"1-18: %.2lf%\\n\",lt);\nprintf(\"19-35: %.2lf%\\n\",ls);\nprintf(\"36-60: %.2lf%\\n\",lh);\nprintf(\"60??: %.2lf%\\n\",ly);\nreturn 0;\n}\n"} +{"label": "99", "index": "49072", "code": "int main(){\nint n,i,aa;\ndouble a1=0,b1=0,c1=0,d1=0;\nscanf(\"%d\",&n);\nfor(i=0;i60){\n\t d1++;\n\t}\n\t\n\n}printf(\"1-18: %.2lf%%\\n\",100*a1/n);\n\tprintf(\"19-35: %.2lf%%\\n\",100*b1/n);\n\tprintf(\"36-60: %.2lf%%\\n\",100*c1/n);\n\tprintf(\"60??: %.2lf%%\",100*d1/n);\nreturn 0;\n}"} +{"label": "99", "index": "49073", "code": "int main(){\n\tint n,i,age[100],m=0,x=0,p=0,q=0;\n\tdouble M,N,P,Q;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1){\n\t\t\tm++;\n\t\t}\n\t\tif(19<=age[i]&&age[i]<=35){\n\t\t\tx++;\n\t\t}\n\t\tif(36<=age[i]&&age[i]<=60){\n\t\t\tp++;\n\t\t}\n\t\tif(age[i]>60){\n\t\t\tq++;\n\t\t}\n\t}\n\tM=((double)m/n)*100;\n\tN=((double)x/n)*100;\n\tP=((double)p/n)*100;\n\tQ=((double)q/n)*100;\n\tprintf(\"1-18: %.2lf%%\\n\",M);\n\tprintf(\"19-35: %.2lf%%\\n\",N);\n\tprintf(\"36-60: %.2lf%%\\n\",P);\n\tprintf(\"60??: %.2lf%%\\n\",Q);\n\treturn 0;\n}"} +{"label": "99", "index": "49074", "code": "//********************************************\n//*????9.cpp *\n//*????? *\n//*???1200012892 *\n//*???2012.10.03 *\n//*????????????? *\n//********************************************\nint main()\n{\n\tdouble k,m,n,x=0.0,y=0.0,z=0.0,w=0.0;\n\tdouble a,b,c,d; //??????\n\tcin >> k;\n\tfor (m=1;m <= k;m=m+1) //????\n{\n\t\tcin >> n;\nif (n <= 18)\n{x=x + 1;}\nif(n <= 35 && n >= 19)\n{y=y + 1;}\nif(n <= 60 && n >= 36)\n{z=z + 1;}\nif (n >= 61)\n{w=w + 1;}\n\t}\n\ta=x / k * 100;\n\tb=y / k * 100;\n\tc=z / k * 100;\n\td=w / k * 100; //?????\n\tcout << fixed;\n\tcout << setprecision(2) << \"1-18: \" << a << \"%\" <18&&sz[i]<=35){\n\t s2++;\n\t }\n\t if(sz[i]>35&&sz[i]<=60){\n\t s3++;\n\t }\n\t if(sz[i]>60){\n\t s4++;\n\t }\n }\n s1=1.0*100*s1/n;\n\t s2=1.0*100*s2/n;\n\t s3=1.0*100*s3/n;\n s4=1.0*100*s4/n;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",s1,s2,s3,s4);\nreturn 0;\n}\n"} +{"label": "99", "index": "49076", "code": "int main(){\n int n;\n double a,b,c,d;\n scanf(\"%d\\n\",&n);\n int sz[n];\n int j,r;\n a=0;\n b=0;\n c=0;\n d=0;\n for(j=0;j0&&z[i]<19)\n{\na=a+1;\n}\nif(z[i]>18&&z[i]<36)\n{\nb=b+1;\n}\nif(z[i]>35&&z[i]<61)\n{\nc=c+1;\n}\nelse if(z[i]>60)\n{\nd=d+1;\n}}\nprintf(\"1-18: %.2lf%%\\n\",100*a/n);\nprintf(\"19-35: %.2lf%%\\n\",100*b/n);\nprintf(\"36-60: %.2lf%%\\n\",100*c/n);\nprintf(\"60??: %.2lf%%\\n\",100*d/n);\nreturn 0;\n}\n"} +{"label": "99", "index": "49078", "code": "\nint main()\n{\n\tint n,i,t,s=0,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0)\n\t\t\ta++;\n\t\telse if(t<=35)\n\t\t\tb++;\n\t\telse if(t<=60)\n\t\t\tc++;\n\t\telse if(t>60)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)a*100/(double)s);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)b*100/(double)s);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)c*100/(double)s);\n\tprintf(\"60??: %.2lf%%\\n\",(double)d*100/(double)s);\n\treturn 0;\n}"} +{"label": "99", "index": "49079", "code": "\n\nint main( int argc, char* argv[] ){\n\tint amount = 0, i;\n\tdouble age[max] = {0}, sum = 0;\n\tint year = 0;\n\n\tscanf( \"%d\", &amount );\n\n\tfor ( i = 0; i < max; i++ ){\n\t\tage[i] = 0;\n\t}\n\t\n\tfor ( i = 0; i < amount; i++ ){\n\t\tscanf( \"%d\", &year );\n\t\t\n\t\tif ( year <= 18 ){\n\t\t\tage[0]++;\n\t\t}\n\t\telse if ( year <= 35 && year >= 19 ){\n\t\t\tage[1]++;\n\t\t}\n\t\telse if ( year <= 60 && year >= 36 ){\n\t\t\tage[2]++;\n\t\t}\n\t\telse{\n\t\t\tage[3]++;\n\t\t}\n\t}\n\t\n\tfor ( i = 0; i < max; i++ ){\n\t\tsum += age[i];\n\t}\n\tfor ( i = 0; i < max; i++ ){\n\t\tage[i] = age[i] / sum * 100;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\", age[0]);\n\tprintf(\"19-35: %.2lf%%\\n\", age[1]);\n\tprintf(\"36-60: %.2lf%%\\n\", age[2]);\n\tprintf(\"60??: %.2lf%%\\n\", age[3]);\n\n\treturn 0;\n}"} +{"label": "99", "index": "49080", "code": "int main()\n{\n\tint n,i;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35){\n\t\t\tx++;\n\t\t}\n\t\telse if(a[i]>35&&a[i]<=60){\n\t\t\ty++;\n\t\t}\n\t\telse{\n\t\t\tz++;\n\t\t}\n\t}\n\tdouble b,c,d,e;\n\tb=(double)w/n*100;\n\tc=(double)x/n*100;\n\td=(double)y/n*100;\n\te=(double)z/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",b,c,d,e);\n\treturn 0;\n}"} +{"label": "99", "index": "49081", "code": "\nint main(int argc, char* argv[])\n{\n\tint i,n,a[100];\n\tdouble b1=0,b2=0,b3=0,b4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0&&a[i]<=18)\n\t\t\tb1++;\n\t\telse if(a[i]>=19&&a[i]<=35)\n\t\t\tb2++;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\tb3++;\n\t\telse\n\t\t\tb4++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",100*b1/n);\n\tprintf(\"19-35: %.2lf%%\\n\",100*b2/n);\n\tprintf(\"36-60: %.2lf%%\\n\",100*b3/n);\n\tprintf(\"60??: %.2lf%%\\n\",100*b4/n);\n\treturn 0;\n}\n\n\n\n"} +{"label": "99", "index": "49082", "code": "/*****************?????***************\n?????\n*****************************************/\nint main ()\n{\n int n;\n cin>>n;//?????\n int age;//?????? \n int a[5];//??????\n a[1]=a[2]=a[3]=a[4]=0;\n for (int i=0;i>age; \n if ( age<=18) a[1]++;\n else \n if (age <=35) a[2]++;\n else \n if (age<=60) a[3]++;\n else\n a[4]++;\n //cout<60)\n\t\t\tup++;\n\t\telse if(score[i]<=60&&score[i]>=36)\n\t\t\td60++;\n\t\telse if(score[i]<=35&&score[i]>=19)\n\t\t\td35++;\n\t\telse if(score[i]<=18)\n\t\t\td18++;\n\t\t\n\t}\n\n\tprintf(\"1-18: %.2f%%\\n\",(double)d18/n*100);\n\tprintf(\"19-35: %.2f%%\\n\",(double)d35/n*100);\n\tprintf(\"36-60: %.2f%%\\n\",(double)d60/n*100);\n\tprintf(\"60??: %.2f%%\\n\",(double)up/n*100);\n\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49085", "code": "\nint main()\n{\n\tint i,n;\n\tint x[101];\n\tscanf(\"%d\",&n);\n\tdouble a=0.0,b=0.0,c=0.0,d=0.0;\n\tdouble e,f,g,h;\n\n\tfor(i=0;i=19)&&(x[i]<=35)){\n\t\t\tb=b+1.0;\n\t\t}\n\t\telse if((x[i]>=36)&&(x[i]<=60)){\n\t\t\tc=c+1.0;\n\t\t}\n\t\telse if(x[i]>=61){\n\t\t\td=d+1.0;\n\t\t}\n\t}\n\n\te=a*100/n;\n\tf=b*100/n;\n\tg=c*100/n;\n\th=d*100/n;\n\tprintf(\"1-18: %.2lf%\\n\",e);\n\tprintf(\"19-35: %.2lf%\\n\",f);\n\tprintf(\"36-60: %.2lf%\\n\",g);\n\tprintf(\"60??: %.2lf%\\n\",h);\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49086", "code": "int main()\n{\n double yi=0,er=0,san=0,si=0;\n int i,n;\n scanf(\"%d\",&n);\n int a[n];\n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&a[i]);\n if(a[i]<=18)\n {\n yi++;\n }\n else if(a[i]<=35)\n {\n er++;\n }\n else if(a[i]<=60)\n {\n san++;\n }\n else if(a[i]>=60)\n {\n si++;\n }\n }\n printf(\"1-18: %.2lf%%\\n\",yi/n*100);\n printf(\"19-35: %.2lf%%\\n\",er/n*100);\n printf(\"36-60: %.2lf%%\\n\",san/n*100);\n printf(\"60??: %.2lf%%\\n\",si/n*100);\n return 0;\n}"} +{"label": "99", "index": "49087", "code": "\nint main(int argc, char* argv[])\n{\n\tint n, age[100], i, a=0, b=0, c=0, d=0;\n\t\n\n\tscanf(\"%d\\n\", &n);\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%d\", &age[i]);\n\t\tif(age[i] > 60)\n\t\t{\n\t\t\td++;\n\t\t}\n\t\telse if(age[i] <= 60 && age[i] >=36)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\telse if(age[i] <= 35 && age[i] >= 19)\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\telse \n\t\t{\n\t\t\ta++;\n\t\t}\n\t}\n\n\t\n\n\tprintf(\"1-18: %.2lf%%\\n\", (double)a/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\", (double)b/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\", (double)c/n*100);\n\tprintf(\"60??: %.2lf%%\\n\", (double)d/n*100);\n\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49088", "code": "int main()\n{\n\tint n,i;\n\tint a=0,b=0,c=0,d=0;\n\tint age[100];\n\tfloat aa,bb,cc,dd;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=19&&age[i]<=35)\n\t\t\tb=b+1;\n\t\tif (age[i]>=36&&age[i]<=60)\n\t\t\tc=c+1;\n\t\tif (age[i]>60)\n\t\t\td=d+1;}\n\taa=(float)a/n;bb=(float)b/n;cc=(float)c/n;dd=(float)d/n;\n\tprintf (\"1-18: %.2f%%\\n\",100*aa);\n\tprintf (\"19-35: %.2f%%\\n\",100*bb);\n\tprintf (\"36-60: %.2f%%\\n\",100*cc);\n\tprintf (\"60??: %.2f%%\",100*dd);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49089", "code": "int main()\n{\n\tint n,i,m;\n\tdouble e,f,g,h,a=0,b=0,c=0,d=0;\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>m;\n\t\tif(m<=18)\n\t\t\ta=a+1;//??????\n\t\tif(m>=19&&m<=35)\n\t\t\tb=b+1;//??\n\t\tif(m>=36&&m<=60)\n\t\t\tc=c+1;//??\n\t\tif(m>60)\n\t\t\td=d+1;//??\n\t}\n\te=a/n*100;\n\tf=b/n*100;\n\tg=c/n*100;\n\th=d/n*100;\n\tcout<<\"1-18:\"<<\" \";//?????\n\t\tprintf(\"%0.2f\", e);\n\t\t\tcout<<\"%\"<> n; //??n\n for(i = 1;i <= n ;i++) //?????????\n {\n\t cin >> age;\n\t if(1 <= age &&age<= 18) a++;\n\t else if (19 <= age&&age <= 35) b++;\n\t else if (36 <=age&&age <= 60) c++;\n\t else d++;\n }\n a = a / n * 100; //??????????????????????\n b = b / n * 100;\n c= c / n * 100;\n d = d / n * 100;\n cout << fixed; //????\n\n cout << \"1-18: \" << setprecision(2) << a << \"%\" << endl; //?????\n cout << \"19-35: \" << setprecision(2) << b << \"%\" << endl;\n cout << \"36-60: \" << setprecision(2) << c << \"%\" << endl;\n cout << \"60??: \" << setprecision(2) << d << \"%\" << endl;\n return 0;\n} //?????\n"} +{"label": "99", "index": "49091", "code": "int main()\n{\n\tint n,i,n1 = 0,n2 = 0,n3 = 0,n4 = 0;\n\tint y;\n\tdouble a,b,c,d,x;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=0 && y<=18)\n\t\t\tn1 += 1;\n\t\telse if (y>=19 && y<=35)\n\t\t\tn2 += 1;\n\t\telse if (y>=36 && y<=60)\n\t\t\tn3 += 1;\n\t\telse \n\t\t\tn4 += 1;\n\t}\n\tx = n;\n\ta = n1/x;\n\tb = n2/x;\n\tc = n3/x;\n\td = n4/x;\n\tprintf(\"1-18: %.2lf%%\\n\",100*a);\n\tprintf(\"19-35: %.2lf%%\\n\",100*b);\n\tprintf(\"36-60: %.2lf%%\\n\",100*c);\n\tprintf(\"60??: %.2lf%%\\n\",100*d);\n\treturn 0;\n}"} +{"label": "99", "index": "49092", "code": "\nint main(){\n\tint n,a[100]={0},i;\n\tdouble x1=0.0,x2=0.0,x3=0.0,x4=0.0;\n\tdouble c1,c2,c3,c4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60) x4++;\n\t\telse if(a[i]>35) x3++;\n\t\telse if(a[i]>18) x2++;\n\t\telse x1++;\n\t}\n\tc1=(x1/n)*100;\n\tc2=(x2/n)*100;\n\tc3=(x3/n)*100;\n\tc4=(x4/n)*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",c1,c2,c3,c4);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49093", "code": "int main(){\n int i=1;\n double n,x;\n double a,b,c,d,e,f,g,h;\n scanf(\"%lf\",&n);\n a=0;\n b=0;\n c=0;\n d=0;\n while(i<=n){\n scanf(\"%lf\",&x);\n if(x<=18){\n a++;i++;}\n else if(x>=19&&x<=35){\n b++;i++;\n }else if(x>=36&&x<=60){\n c++;i++;\n }else if(x>60){\n d++;i++;\n }\n }\n e=100*a/n;\n f=100*b/n;\n g=100*c/n;\n h=100*d/n;\n printf(\"1-18: %.2lf%%\\n\",e);\n printf(\"19-35: %.2lf%%\\n\",f);\n printf(\"36-60: %.2lf%%\\n\",g);\n printf(\"Over60: %.2lf%%\\n\",h);\n return 0;\n}\n\n"} +{"label": "99", "index": "49094", "code": "\n\n\nint main()\n{\n\tint n,i,a=0,b=0,c=0,d=0,sum=0,y;\n\tdouble q=0,w=0,e=0,r=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1)&&(y<=18))\n\t\t{\n\t\t\ta+=1;\n\t\t}\n\t\telse if((y>=19)&&(y<=35))\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\telse if((y>=36)&&(y<=60))\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\telse if(y>60)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t sum=a+b+c+d;\n\t q=(double)a/sum*100;\n\t w=(double)b/sum*100;\n\t e=(double)c/sum*100;\n\t r=(double)d/sum*100;\t\n\t}\n\t\n\t\n\tprintf(\"1-18: %.2lf%%\\n\",q);\n printf(\"19-35: %.2lf%%\\n\",w);\n printf(\"36-60: %.2lf%%\\n\",e);\n printf(\"60??: %.2lf%%\\n\",r);\n\treturn 0;\n\n\n\n\n}\n"} +{"label": "99", "index": "49095", "code": "\nint main(){\n\tint a,b,i;\n\tint c=0;\n\tint d=0;\n\tint e=0;\n\tint\tf=0;\n\tscanf(\"%d\",&a);\n\tfor(i=1;i<=a;i++)\n {scanf(\"%d\",&b);\n if(b<=18){c++;\n\t}else if(b<=35){d++;}\n\telse if(b<=60){e++;}\n\telse{f++;}\n\t}\nprintf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\\n\",\n\t\t1.0*c/a*100,\n\t\t1.0*d/a*100,\n\t\t1.0*e/a*100,\n\t\t1.0*f/a*100);\nreturn 0;\n}\n"} +{"label": "99", "index": "49096", "code": "int main()\n{\n\tdouble n , i , age ;\n\tdouble a = 0 , b = 0 , c = 0 , d = 0 ;\n\tcin >> n ;\n\tfor ( i = 0 ; i < n ; i++ )\n\t{\n\t\tcin >> age ;\n\t\tif ( age <= 18 )\n\t\t{\n\t\t\ta++ ;\n\t\t\tcontinue ;\n\t\t}\n\t\tif ( age > 18 && age <= 35 )\n\t\t{\n\t\t\tb++ ;\n\t\t\tcontinue ;\n\t\t}\n\t\tif ( age > 35 && age <=60 )\n\t\t{\n\t\t\tc++ ;\n\t\t\tcontinue ;\n\t\t}\n\t\tif ( age > 60 )\n\t\t{\n\t\t\td++ ;\n\t\t\tcontinue ;\n\t\t}\n\t}\n\tcout << \"1-18: \" << fixed << setprecision(2) << a/n * 100 << \"%\" << endl ;\n\tcout << \"19-35: \" << fixed << setprecision(2) << b/n * 100 << \"%\" << endl ;\n\tcout << \"36-60: \" << fixed << setprecision(2) << c/n * 100 << \"%\" << endl ;\n\tcout << \"60??: \" << fixed << setprecision(2) << d/n * 100 << \"%\" << endl ;\n\treturn 0 ;\n}"} +{"label": "99", "index": "49097", "code": "void main(){\n\tdouble n,a,i,c1=0.0,c2=0.0,c3=0.0,c4=0.0;\n\tscanf(\"%lf\",&n);\n\tfor(i=0;i=19&&age[i]<=35)\n\t\t\tb+=1;\n\t\telse if(age[i]>=36&&age[i]<=60)\n\t\t\tc+=1;\n\t\telse\n\t\t\td+=1;\n\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",a/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",b/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",c/n*100);\n\tprintf(\"60??: %.2lf%%\",d/n*100);\n}"} +{"label": "99", "index": "49099", "code": "int main(){\n\tint n,a=0,b=0,c=0,d=0;\n\tint x[N];\n\tint i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&x[i]<=35){\n\t\t\tb++;\n\t\t}else if(x[i]>=36&&x[i]<=60){\n\t\t\tc++;\n\t\t}else {\n\t\t\td++;\n\t\t}\n\t}\n\t\tprintf(\"1-18: %.2lf%\\n\",1.0*a/n*100);\n\t\tprintf(\"19-35: %.2lf%\\n\",1.0*b/n*100);\n\t\tprintf(\"36-60: %.2lf%\\n\",1.0*c/n*100);\n\t\tprintf(\"60??: %.2lf%\\n\",1.0*d/n*100); \n\t\n\treturn 0;\n}"} +{"label": "99", "index": "49100", "code": "int main()\n{\n\tint n,sz[100],a=0,b=0,c=0,d=0,i;\n\tdouble p,q,r,s,e1,e2,e3,e4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18)&&(sz[i]<=35)){\n\t\t\tb++;\n\t\t}\n\t\telse if((sz[i]>35)&&(sz[i]<=60)){\n\t\t\tc++;\n\t\t}\n\t\telse{\n\t\t\td++;\n\t\t}\n\t}\n\tp=a;\n\tq=b;\n\tr=c;\n\ts=d;\n\te1=p/n;\n\te2=q/n;\n\te3=r/n;\n\te4=s/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",e1*100,e2*100,e3*100,e4*100);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49101", "code": "int main(){\n int n,a,i;\n double b=0,c=0,d=0,e=0;\n double h,p,j,k;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&a);\n if(a<=18){\n b+=1;\n }else if(19<=a&&a<=35){\n c+=1;\n }else if(36<=a&&a<=60){\n d+=1;\n }else {\n e+=1;\n }\n } \n h=100.0*b/n;\n p=100.0*c/n;\n j=100.0*d/n;\n k=100.0*e/n;\n printf(\"1-18: %.2lf%%\\n\",h);\n printf(\"19-35: %.2lf%%\\n\",p);\n printf(\"36-60: %.2lf%%\\n\",j);\n printf(\"Over60: %.2lf%%\\n\",k);\n return 0;\n}\n\n\n"} +{"label": "99", "index": "49102", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint *a,i,*p,u,b,c,d;\n\tu=b=c=d=0;\n\ta=(int *)malloc(n*sizeof(int));\n\tfor(i=0;i=1&&*(p+i)<=18) u=u+1;\n\t\telse if(*(p+i)>=19&&*(p+i)<=35) b=b+1;\n\t\telse if(*(p+i)>=36&&*(p+i)<=60) c=c+1;\n\t\telse if(*(p+i)>60) d=d+1;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",((double)u/n)*100);\n printf(\"19-35: %.2lf%%\\n\",((double)b/n)*100);\n printf(\"36-60: %.2lf%%\\n\",((double)c/n)*100);\n printf(\"60??: %.2lf%%\\n\",((double)d/n)*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49103", "code": "int main(){\n\tint k[4]={0},i,j=0,n,a[100];\n\tdouble m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18){\n\t\t\tk[0]++;\n\t\t}\n\t\tif(a[i]>=19&&a[i]<=35){\n\t\t\tk[1]++;\n\t\t}\n\n\t\tif(a[i]>=36&&a[i]<=60){\n\t\t\tk[2]++;\n\t\t}\n\t\tif(a[i]>60){\n\t\t\tk[3]++;\n\t\t}\n\t}\n\tm=100*(1.0*k[0]/n);\n\tprintf(\"1-18: %.2lf%%\\n\",m);\n\tm=100*(1.0*k[1]/n);\n\tprintf(\"19-35: %.2lf%%\\n\",m);\n\tm=100*(1.0*k[2]/n);\n\tprintf(\"36-60: %.2lf%%\\n\",m);\n\tm=100*(1.0*k[3]/n);\n\tprintf(\"60??: %.2lf%%\\n\",m);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49104", "code": "\nint main(int argc, char* argv[])\n{\n int n,i,age;\n\tint a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n\tfor(i=0;i=19&&age<=35)\n\t\t\tb++;\n\t\telse if(age>=36&&age<=60)\n\t\t\tc++;\n\t\telse if(age>=61)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)a/(double)n*100.00);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)b/(double)n*100.00);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)c/(double)n*100.00);\n\tprintf(\"60??: %.2lf%%\\n\",(double)d/(double)n*100.00);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49105", "code": "void main()\n{\n\tint n,i,sum;\n\tint x[100];\n\tint a,b,c,d;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tdouble a1,b1,c1,d1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&x[i]<=35)\n\t\t\tb=b+1;\n\t\tif(x[i]>=36&&x[i]<=60)\n\t\t\tc=c+1;\n\t\tif(x[i]>60)\n\t\t\td=d+1;\n\t}\n\t\n\tsum=a+b+c+d;\n\ta1=100*(double)a/sum;\n\tb1=100*(double)b/sum;\n\tc1=100*(double)c/sum;\n\td1=100*(double)d/sum;\n\n\tprintf(\"1-18: %.2lf%%\\n\",a1);\n\tprintf(\"19-35: %.2lf%%\\n\",b1);\n\tprintf(\"36-60: %.2lf%%\\n\",c1);\n\tprintf(\"60??: %.2lf%%\\n\",d1);\t\n\n\n}"} +{"label": "99", "index": "49106", "code": "int main(){\n\tint i,sum,young=0,mid=0,old=0,oldest=0;\n\tdouble ap,mp,op,oep;\n\tscanf(\"%d\\n\",&sum);\n\tint age[101];\n\tfor(i=1;i<=sum;i++){\n\t\tscanf(\"%d\",&(age[i]));}\n\tfor(i=1;i<=sum;i++){\n\t\tif((age[i])>=1&&(age[i])<=18){young++;}\n\t\tif((age[i])>=19&&(age[i])<=35){mid++;}\n\t\tif((age[i])>=36&&(age[i])<=60){old++;}\n\t\tif((age[i])>=61){oldest++;};\n\t}\n ap=1.0*young/sum*100;\n\tmp=1.0*mid/sum*100;\n\top=1.0*old/sum*100;\n\toep=100.0-ap-mp-op;\n\tprintf(\"1-18: %.2lf\",ap);printf(\"%%\\n\");\n printf(\"19-35: %.2lf\",mp);printf(\"%%\\n\");\n printf(\"36-60: %.2lf\",op);printf(\"%%\\n\");\n printf(\"60??: %.2lf\",oep);printf(\"%%\\n\");\n\n\t \nreturn 0;\n}"} +{"label": "99", "index": "49107", "code": "int k[100];\nint main(){\nint n,i;\ndouble as,bs,cs,ds,sum;\nas=0;\nbs=0;\ncs=0;\nds=0;\nsum=0;\nscanf(\"%d\",&n);\nfor(i=0;i18&&k[i]<36)\tbs++;\nif(k[i]>35&&k[i]<61)\tcs++;\nif(k[i]>60)\tds++;\n\n}\nsum=n;\n\nprintf(\"1-18: %.2lf%%\\n\",as*100.0/sum);\nprintf(\"19-35: %.2lf%%\\n\",bs*100.0/sum);\nprintf(\"36-60: %.2lf%%\\n\",cs*100.0/sum);\nprintf(\"60??: %.2lf%%\\n\",ds*100.0/sum);\n\nreturn 0;\n\n}"} +{"label": "99", "index": "49108", "code": "\ndouble main ()\n {\nfloat d,b,c,f,q=0,w=0,e=0,r=0;\nint n,i,a[100];\nscanf(\"%d\", &n);\nfor(i=0;i0&&sz[i]<19){\n\t\t\ta++;\n\t\t}\n\t\tif(sz[i]>18&&sz[i]<36){\n\t\t\tb++;\n\t\t}\n\t\tif(sz[i]>35&&sz[i]<61){\n\t\t\tc++;\n\t\t}\n\t\tif(sz[i]>60){\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",a*1.0/n*100.0);\n printf(\"19-35: %.2f%%\\n\",b*1.0/n*100.0);\n printf(\"36-60: %.2f%%\\n\",c*1.0/n*100.0);\n printf(\"60??: %.2f%%\\n\",d*1.0/n*100.0);\n\treturn 0;\n}"} +{"label": "99", "index": "49110", "code": "int main()\n{\n\tint n,a[100],i,d1=0,d2=0,d3=0,d4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)&&(t<36))\nn+=1;\nelse if((t>=36)&&(t<61))\np+=1;\nelse q+=1;\n}\nx=m*100.0/a;\ny=n*100.0/a;\nz=p*100.0/a;\nv=q*100.0/a;\nprintf(\"1-18: %.2lf%%\\n\",x);\nprintf(\"19-35: %.2lf%%\\n\",y);\nprintf(\"36-60: %.2lf%%\\n\",z);\nprintf(\"60??: %.2lf%%\\n\",v);\nreturn 0;\n}"} +{"label": "99", "index": "49112", "code": "int main()\n{\n\tint n,i,a[100];\n\tdouble b=0,c=0,d=0,f=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19))\n\t\t\tc++;\n\t\telse if((a[i]<=60)&&(a[i]>=36))\n\t\t\td++;\n\t\telse\n\t\t\tf++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",b/(b+c+d+f)*100.0);\n\tprintf(\"19-35: %.2lf%%\\n\",c/(b+c+d+f)*100.0);\n\tprintf(\"36-60: %.2lf%%\\n\",d/(b+c+d+f)*100.0);\n\tprintf(\"60??: %.2lf%%\\n\",f/(b+c+d+f)*100.0);\n\treturn 0;\n\n}"} +{"label": "99", "index": "49113", "code": "\nint main(int argc, char* argv[])\n{ int a[100],n,m=0,s=0,l=0,o=0,i,e;\n scanf(\"%d\",&n);\n for(i=0;i60){\n\t o+=1;\n\t \n\t \n\t }\n}\n\n\tprintf(\"1-18: %.2lf%%\\n\",((double)m)/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",((double)s)/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",((double)l)/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",((double)o)/n*100);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49114", "code": "int main(){\n int n,i,x;\n double a,b,c,d,e;\n a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n for(i=0;i18&&x<36){\n b=b+1;\n }else if(x>35&&x<61){\n c=c+1;\n }else if(x>60){\n d=d+1;\n }\n }\n e=a+b+c+d;\n printf(\"1-18: %.2lf\",a/e*100);printf(\"%%\\n\");\n printf(\"19-35: %.2lf\",b/e*100);printf(\"%%\\n\");\n printf(\"36-60: %.2lf\",c/e*100);printf(\"%%\\n\");\n printf(\"Over60: %.2lf\",d/e*100);printf(\"%%\\n\");\n \nreturn 0;\n}\n\n"} +{"label": "99", "index": "49115", "code": "int main(){\n\tint n,i,s1=0,s2=0,s3=0,s4=0,a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18)&&(a[i]<36)){\n\t\t\ts2++;\n\t\t}\n if((a[i]>35)&&(a[i]<61)){\n\t\t\ts3++;\n\t\t}\n if(a[i]>60){\n\t\t\ts4++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",(float)s1*100/n);\n printf(\"19-35: %.2f%%\\n\",(float)s2*100/n);\n printf(\"36-60: %.2f%%\\n\",(float)s3*100/n);\n printf(\"60??: %.2f%%\\n\",(float)s4*100/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49116", "code": "int main ()\n{\n int i,n;\n int a=0,b=0,c=0,d=0;\n int age[100];\n double m,o,p,q;\n scanf(\"%d\",&n);\n for(i=0;i=1) \n a=a+1;\n else if(age[i]<=35&&age[i]>=19)\n b=b+1;\n else if(age[i]<=60&&age[i]>=36)\n c=c+1;\n else if(age[i]>60)\n\t d=d+1; }\nm=1.0 *a/n*100;\no=1.0 *b/n*100;\np=1.0 *c/n*100;\nq=1.0 *d/n*100;\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",m,o,p,q);\n return 0;\n}\n"} +{"label": "99", "index": "49117", "code": "int main()\n{\n\tint n,i,k=0,m=0,t=0,s=0;\n\tscanf(\"%d\",&n);\n\tint a[100];\n\tfor(i=0;i18&&a[i]<=35)\n\t\t m+=1;\n\t\telse if(a[i]>35&&a[i]<=60)\n\t\t\tt+=1;\n\t\telse\n\t\t s+=1;\n\t}\n\tprintf(\"1-18: %.2lf%\\n\",(double)(k*100)/n);\n\tprintf(\"19-35: %.2lf%\\n\",(double)(m*100)/n);\n\tprintf(\"36-60: %.2lf%\\n\",(double)(t*100)/n);\n\tprintf(\"60??: %.2lf%\\n\",(double)(s*100)/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49118", "code": "int main()\n{\n\tint a[1000],n,i,q,w,e,r;\n\tdouble z,x,c,v;\n\tscanf(\"%d\\n\",&n);\n\tq=0;\n\tw=0;\n\te=0;\n\tr=0;\n for(i=0;i60)\n\t\t{r++;}\n\t}\n\tz=100.00*q/n;\n\tx=100.00*w/n;\n\tc=100.00*e/n;\n\tv=100.00*r/n;\n\tprintf(\"1-18: \");\n\tprintf(\"%.2lf\",z);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: \");\n\tprintf(\"%.2lf\",x);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: \");\n\tprintf(\"%.2lf\",c);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: \");\n\tprintf(\"%.2lf\",v);\n\tprintf(\"%%\\n\");\nreturn 0;\n}"} +{"label": "99", "index": "49119", "code": "int main()\n{\n int n,a,b,c,d,i,x;\n double A,B,C,D;\n scanf(\"%d\\n\",&n);\n a=0;\n b=0;\n c=0;\n d=0;\n for(i=1;i<=n;i++)\n {\n scanf(\"%d\",&x);\n if(x<=18)\n {a++;}\n else if(x>=19&&x<=35)\n {b++;}\n else if(x>=36&&x<=60)\n {c++;}\n else\n {d++;}\n }\n A=100.0*a/n;\n B=100.0*b/n;\n C=100.0*c/n;\n D=100.0*d/n;\n printf(\"1-18: %.2lf%%\\n\",A);\n printf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",C);\n printf(\"Over60: %.2lf%%\\n\",D);\n return 0;\n}\n\n\n"} +{"label": "99", "index": "49120", "code": "int main(){\nint n,a,b,c,d;\nint x[100];\na=0;\nb=0;\nc=0;\nd=0;\nscanf(\"%d\",&n);\nfor(int i=0;i=1&&x[i]<=18)\n{a++;}\nelse if(x[i]>=19&&x[i]<=35)\n{b++;}\nelse if(x[i]>=36&&x[i]<=60)\n{c++;}\nelse\n{d++;}\n}\nprintf(\"1-18: %.2lf%%\\n\",a*100.0/n);\nprintf(\"19-35: %.2lf%%\\n\",b*100.0/n);\nprintf(\"36-60: %.2lf%%\\n\",c*100.0/n);\nprintf(\"Over60: %.2lf%%\\n\",d*100.0/n);\nreturn 0;\n}\n"} +{"label": "99", "index": "49121", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,i;\n\tint a[100];\n\tdouble b[4];\n\tint c=0,d=0,e=0,f=0;\n\tscanf (\"%d\",&n);\n\tfor (i=0;i=19&&a[i]<=35){d=d+1;}\n if (a[i]>=36&&a[i]<=60){e=e+1;}\n if (a[i]>=61){f=f+1;}\n\t}\n\tb[0]=((double)c/n)*100;\n b[1]=((double)d/n)*100;\n b[2]=((double)e/n)*100;\n b[3]=((double)f/n)*100;\n printf (\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",b[0],b[1],b[2],b[3]);\n\t\n\treturn 0;\n}"} +{"label": "99", "index": "49122", "code": "int main(){\n\tint n,sz[100],i;\n\tdouble\ta=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60){\n\t\t\td=d+1;\n\t\t}\n\t}\n printf(\"1-18: %.2lf%%\\n\",a/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",b/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",c/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",d/n*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49123", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n int bingren[100];\t\n\tdouble nianling[4];\n\n\tint i;\n\tfor(i=0;i18&&bingren[i]<=35)\n\t\t{\n\t\t\tnianling[1]++;\n\t\t}\n\t\tif(bingren[i]>35&&bingren[i]<=60)\n\t\t{\n\t\t\tnianling[2]++;\n\t\t}\n\t\tif(bingren[i]>=61)\n\t\t{\n\t\t\tnianling[3]++;\n\t\t}\n\t}\n\tfor(i=0;i<4;i++)\n\t{\n\t\tnianling[i]=nianling[i]*100/n;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",nianling[0]);\n\tprintf(\"19-35: %.2lf%%\\n\",nianling[1]);\n\tprintf(\"36-60: %.2lf%%\\n\",nianling[2]);\n\tprintf(\"60??: %.2lf%%\\n\",nianling[3]);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49124", "code": "int main()\n{\n\tint n;\n\tint s[100];\n\tint i=0,a=0,b=0,c=0,d=0;\n\tdouble pa,pb,pc,pd;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&s[i]<=18)\n\t\t{\n\t\t\ta+=1;\n\t\t}\n\t\telse if(s[i]>18&&s[i]<36)\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\telse if(s[i]>35&&s[i]<=60)\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\telse if(s[i]>60)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t}\n\tpa=1.0*100*a/n;\n\tpb=1.0*100*b/n;\n pc=1.0*100*c/n; \n pd=1.0*100*d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",pa);\n printf(\"19-35: %.2lf%%\\n\",pb);\n printf(\"36-60: %.2lf%%\\n\",pc);\n printf(\"60??: %.2lf%%\",pd);\n\treturn 0;\n}"} +{"label": "99", "index": "49125", "code": "int main(){\n\tint n;\n\tint i;\n\tint old[9999];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60)\n\t\t\tfour=four+1;\n\t\telse if(old[i]>35)\n\t\t\tthree=three+1;\n\t\telse if(old[i]>18)\n\t\t\ttwo=two+1;\n\t\telse\n\t\t\tone=one+1;\n\t}\n\tdouble onelv,twolv,threelv,fourlv;\n\tonelv=(double)one/n*100;\n\ttwolv=(double)two/n*100;\n\tthreelv=(double)three/n*100;\n\tfourlv=(double)four/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",onelv,twolv,threelv,fourlv);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49126", "code": "int main()\n{\n\tint n,i;\n\tint a=0;\n\tint b=0;\n\tint c=0;\n\tint d=0;\n\tdouble o,p,q,r;\n\tint nl[101];\n\tscanf(\"%d\",&n);\n for(i=0;i=19&&nl[i]<=35){\n\t\t\tb++;\n\t\t}else if(nl[i]>=36&&nl[i]<=60){\n\t\t\tc++;\n\t\t}else if(nl[i]>=61){\n\t\t\td++;\n\t\t}\n\t}\n\to=1.0*a/n*100;\n\tp=1.0*b/n*100;\n\tq=1.0*c/n*100;\n\tr=1.0*d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",o,p,q,r);\n\treturn 0;\n}\n\n\t"} +{"label": "99", "index": "49127", "code": "int main()\n{\n int n,i,a[100];\n\tdouble e=0,f=0,g=0,h=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&sz[i]<=18)\n\t\t{\n\t\t\tb[0]++;\n\t\t}\n\t\telse if(sz[i]>=19&&sz[i]<=35)\n\t\t{\n\t\t\tb[1]++;\n\t\t}\n\t\telse if(sz[i]>=36&&sz[i]<=60)\n\t\t{\n\t\t\tb[2]++;\n\t\t}\n\t\telse if(sz[i]>=61)\n\t\t{\n\t\t\tb[3]++;\n\t\t}\n\t}\n\tfor(i=0;i<4;i++)\n\t{\n\t\tc[i]=(double)b[i]/sum;\n\t}\n\tprintf(\"%d-%d: %.2lf%%\\n\",1,18,c[0]*100);\n printf(\"%d-%d: %.2lf%%\\n\",19,35,c[1]*100);\n printf(\"%d-%d: %.2lf%%\\n\",36,60,c[2]*100);\n printf(\"%d??: %.2lf%%\\n\",60,c[3]*100);\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "99", "index": "49129", "code": "int main()\n{\n int i,n,j,a=0,b=0,c=0,d=0;\n double w,x,y,z;\n scanf(\"%d\\n\",&n);\n for(i=0;i18&&a[i]<36==1)\n\t\t\tb2++;\n\t\tif(a[i]>35&&a[i]<61==1)\n\t\t\tb3++;\n\t\tif(a[i]>60)\n\t\t\tb4++;\n\t}\n\ts1=(double)(b1)/(double)(n)*100;\n\ts2=(double)b2/(double)n*100;\n\ts3=(double)b3/(double)n*100;\n\ts4=(double)b4/(double)n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",s1);\n\tprintf(\"19-35: %.2lf%%\\n\",s2);\n\tprintf(\"36-60: %.2lf%%\\n\",s3);\n\tprintf(\"60??: %.2lf%%\\n\",s4);\n\treturn 0;\n}"} +{"label": "99", "index": "49131", "code": "int main()\n{\n\tint age[num];\n\tint n,i;\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=0;i=1&&age[i]<=18) a++;\n\telse if(age[i]>=19&age[i]<=35) b++;\n else if(age[i]>=36&age[i]<=60) c++;\n\telse d++;\n\t}\n \t\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a/n*100,b/n*100,c/n*100,d/n*100);\n\treturn 0;\n}\n\n\t\t\n\n\t\t"} +{"label": "99", "index": "49132", "code": "\nint main()\n{\n\tint n;\n\tcin >> n;\n\tint x=0,a=0,b=0,c=0,d=0;\n\tfor (int i=1;i<=n;i++)\n\t{\n\t\tcin >> x;\n\t\tif (x<=18) a++;\n\t\tif (x>=19 && x<=35) b++;\n\t\tif (x>=36 && x<=60) c++;\n\t\tif (x>=61) d++;\n\t} \n\t cout<=1&&a[i]<=18)\n\t\t\tb++;\n\t\tif(a[i]>=19&&a[i]<=35)\n\t\t\tc++;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\td++;\n\t\tif(a[i]>=61)\n\t\t\te++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)b/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)c/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)d/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",(double)e/n*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49134", "code": "int main(){\nint n,i,o=0,p=0,q=0,s=0,sum=0;\ndouble a,b,c,d;\nscanf(\"%d\",&n);\nint nl[n];\nfor(i=0;i=1&&(nl[i])<=18) {\n o++;\n }\n else if((nl[i])>=19&&(nl[i])<=35){\n p++;\n }\n else if((nl[i])>=36&&(nl[i])<=60){\n q++;\n }\n else{\n s++;\n }\n}\n sum=o+p+q+s;\n a=(100.00*o)/sum;\n b=(100.00*p)/sum;\n c=(100.00*q)/sum;\n d=(100.00*s)/sum;\n printf(\"1-18: %.2lf%\\n\",a);\n printf(\"19-35: %.2lf%\\n\",b);\n printf(\"36-60: %.2lf%\\n\",c);\n printf(\"Over60: %.2lf%\\n\",d);\nreturn 0;\n}"} +{"label": "99", "index": "49135", "code": "\nint main(int argc, char* argv[])\n{\n int n,i;\n scanf(\"%d\",&n);\n int age;\n int a=0,b=0,c=0,d=0;\n double aa=0,bb=0,cc=0,dd=0;\n for(i=1;i=1)\n\t {\n\t\t a++;\n\t }\n\t else if(age<=35&&age>=19)\n\t {\n\t\t b++;\n\t }\n\t else if(age<=60&&age>=36)\n\t {\n\t\t c++;\n\t }\n\t else\n\t {\n\t\t d++;\n\t }\n }\n aa=((double)a/(double)n)*100;\n\t\tbb=((double)b/(double)n)*100;\n\t\tcc=((double)c/(double)n)*100;\n\t\tdd=((double)d/(double)n)*100;\n\t\tprintf(\"1-18: %.2lf%%\\n\",aa);\n\t\tprintf(\"19-35: %.2lf%%\\n\",bb);\n\t\tprintf(\"36-60: %.2lf%%\\n\",cc);\n\t\tprintf(\"60??: %.2lf%%\\n\",dd);\n return 0;\n}\n"} +{"label": "99", "index": "49136", "code": "int main()\n{\n\tint n,i,age[100],sum[4]={0};\n\tcin>>n;\n\tfor(i=0;i>age[i];\n\t\tif(age[i]>=1&&age[i]<=18) sum[0]++;\n\t\telse if(age[i]>=19&&age[i]<=35) sum[1]++;\n\t\telse if(age[i]>=36&&age[i]<=60) sum[2]++;\n\t\telse if(age[i]>=61) sum[3]++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)sum[0]*100/n);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)sum[1]*100/n);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)sum[2]*100/n);\n\tprintf(\"60??: %.2lf%%\",(double)sum[3]*100/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49137", "code": "int main(){\n\tint n, a[100],i,m;\n\tdouble x=0,y=0,z=0,w=0,p,q,r,s;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35){y++;}\n\t\telse if (a[i]>35&&a[i]<=60){z++;}\n\t\telse if(a[i]>60){w++;}\n\t}\n\t\tp=100*x/n;\n\t\tq=100*y/n;\n\t\tr=100*z/n;\n\t\ts=100*w/n;\n\t\tprintf(\"1-18: %.2lf\",p);\n\t\tprintf(\"%\\n\");\n\nprintf(\"19-35: %.2lf\",q);\n\t\tprintf(\"%\\n\");\nprintf(\"36-60: %.2lf\",r);\n\tprintf(\"%\\n\");\nprintf(\"60??: %.2lf\",s);\n\t\tprintf(\"%\\n\");\n\n\n\treturn 0;\n}"} +{"label": "99", "index": "49138", "code": "\n\nint main()\n{\n int n=0;\n int a=0; int b=0; int c=0; int d=0;\n double sum=0;\n int buffer=0;\n\n scanf(\"%d\", &n);\n for (int i=1; i<=n; ++i)\n {\n scanf(\"%d\", &buffer);\n\tif (buffer>=1 && buffer<=18)\n\t{\n\t ++a;\n\t}\n\tif (buffer>=19 && buffer<=35)\n\t{\n\t ++b;\n\t}\n\tif (buffer>=36 && buffer<=60)\n\t{\n\t ++c;\n\t}\n\tif (buffer>=61)\n\t{\n\t ++d;\n\t}\n\t\n }\n sum = a+b+c+d;\n printf(\"1-18: %.2lf%%\\n\", a/sum*100);\n printf(\"19-35: %.2lf%%\\n\", b/sum*100);\n printf(\"36-60: %.2lf%%\\n\", c/sum*100);\n printf(\"60??: %.2lf%%\\n\", d/sum*100);\n return 0;\n}"} +{"label": "99", "index": "49139", "code": "int main() \n{ \n int n,i;\n int a[200];\n int e=0;\n int b=0;\n int c=0;\n int d=0;\n double A,B,C,D;\n scanf(\"%d\",&n);\n for(i=0;i=1 && a[i]<=18)\n\t {\n\t\t e=e+1;\n\t }\n\t if(a[i]>=19 && a[i]<=35)\n\t {\n\t\t b=b+1;\n\t }\n\t if(a[i]>=36 && a[i]<=60)\n\t {\n\t\t c=c+1;\n\t }\n\t if(a[i]>60)\n\t {\n\t\t d=d+1;\n\t }\n }\n\n A=(double)(100.0*e/n);\n B=(double)(100.0*b/n);\n C=(double)(100.0*c/n);\n D=(double)(100.0*d/n);\n\n \n printf(\"1-18: %.2lf%%\\n\",A);\n printf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",C);\n printf(\"60??: %.2lf%%\\n\",D);\n \n \n \n \n return 0; \n}"} +{"label": "99", "index": "49140", "code": "int u[100];\nint main()\n{\n\tdouble a=0,b=0,c=0,d=0;\n\tint n,i;\nscanf(\"%d\",&n);\nfor(i=0;i=19&&u[i]<=35)\nb++;\nif(u[i]>=36&&u[i]<=60)\nc++;\nif(u[i]>60)\nd++;\n}\na=a/n*100;\nb=b/n*100;\nc=c/n*100;\nd=d/n*100;\nprintf(\"1-18: %.2f%%\\n\",a);\nprintf(\"19-35: %.2f%%\\n\",b);\nprintf(\"36-60: %.2f%%\\n\",c);\nprintf(\"60??: %.2f%%\\n\",d);\n\t return 0;\n}"} +{"label": "99", "index": "49141", "code": "\nint main()\n{\n\tint i, n, age;\n\tdouble a, b, c, d;\n\ta = b = c = d = 0;\n\tscanf(\"%d\", &n);\n\tfor(i=0; i= 19 && age <= 35)\n\t\t\tb ++;\n\t\telse if(age >= 36 && age <= 60)\n\t\t\tc ++;\n\t\telse\n\t\t\td ++;\n\t}\n\ta /= (double)n;\n\tb /= (double)n;\n\tc /= (double)n;\n\td /= (double)n;\n\n\tprintf(\"1-18: %.2lf%%\", a * 100.0);\n\tprintf(\"\\n19-35: %.2lf%%\", b * 100.0);\n\tprintf(\"\\n36-60: %.2lf%%\", c * 100.0);\n\tprintf(\"\\n60??: %.2lf%%\", d * 100.0);\n\n\treturn 0;\n}"} +{"label": "99", "index": "49142", "code": "//********************************\n//*???????? **\n//*?????? 1200012844 **\n//*???2012.10.5 **\n//********************************\n\nint main()//?????\n{\n\tint n, i = 0, s; //??n i s?????\n\tdouble a = 0, b = 0, c = 0, d = 0, e, f, g, h;//??a b c d e f g h???????\n\tcin >> n;//??????n\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> s;//??????\n\t\tif( s < 19 )\n\t\t\ta = a + 1;\n\t\telse if( s < 36 )\n\t\t\tb = b + 1;\n else if( s < 61 )\n\t\t\tc = c + 1;\n\t\telse\n\t\t\td = d + 1;//??????????\n\t}\n\t//???????????????????\n\te = a/n*100;\n\tf = b/n*100;\n\tg = c/n*100;\n\th = d/n*100;\n\t//???????????????????\n\tcout << \"1-18: \"; printf(\"%.2f\", e);\tcout << \"%\" << endl;\n\tcout << \"19-35: \"; printf(\"%.2f\", f); cout << \"%\" << endl;\n\tcout << \"36-60: \"; printf(\"%.2f\", g); cout << \"%\" << endl;\n\tcout << \"60??: \"; printf(\"%.2f\", h); cout << \"%\" << endl;\n\treturn 0;\n}\n"} +{"label": "99", "index": "49143", "code": "int main(){\n\tint n, i;\n\ti=1;\n\tdouble p, q, x, y;\n\tp=0;\n\tq=0;\n\tx=0;\n\ty=0;\n\tscanf(\"%d\\n\",&n);\n\twhile(i<=n){\n\t\tint a;\n\t\tscanf(\"%d\",&a);\n\t\tif(a<=18){\n\t\t\tp=p+1;\n\t\t}else if(a<=35){\n\t\t\tq=q+1;\n\t\t}else if(a<=60){\n\t\t\tx=x+1;\n\t\t}else{\n\t\t\ty=y+1;\n\t\t}\n\t\ti++;\n\t}\n\tp=p/n*100;\n\tq=q/n*100;\n\tx=x/n*100;\n\ty=y/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",p, q, x, y);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49144", "code": "int main()\n{\n\tint n,i,s[4],a;\n\tdouble d[4];\n\tscanf(\"%d\",&n);\n\ts[0]=s[1]=s[2]=s[3]=0;\n\tfor(i=0;i=1&&a<=18)\n\t\t{\n\t\t\ts[0]++;\n\t\t}\n\t\tif(a>=19&&a<=35)\n\t\t{\n\t\t\ts[1]++;\n\t\t}\n\t\tif(a>=36&&a<=60)\n\t\t{\n\t\t\ts[2]++;\n\t\t}\n\t\tif(a>=61)\n\t\t{\n\t\t\ts[3]++;\n\t\t}\n\t}\n\tfor(i=0;i<4;i++)\n\t{ \n\t\td[i]=(double)s[i]/n*100;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",d[0]);\n\tprintf(\"19-35: %.2lf%%\\n\",d[1]);\n\tprintf(\"36-60: %.2lf%%\\n\",d[2]);\n\tprintf(\"60??: %.2lf%%\\n\",d[3]);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49145", "code": "int main(){\n\tint n,y;\n\tdouble i=1,a,b,c,d;\n\tscanf(\"%d\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&y);\n\t\tif(y<=18){\n\t\t\ta+=1;\n\t\t}else if(y>18&&y<=35){\n\t\t\tb+=1;\n\t\t}else if(y>35&&y<=60){\n\t\t\tc+=1;\n\t\t}else if(y>60){\n\t\t\td+=1;\n\t\t}\n\t\ti++;\n\t}\n\t\tprintf(\"1-18: %.2lf%%\\n\",100*a/n);\n\t\tprintf(\"19-35: %.2lf%%\\n\",100*b/n);\n\t\tprintf(\"36-60: %.2lf%%\\n\",100*c/n);\n\t\tprintf(\"60??: %.2lf%%\\n\",100*d/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49146", "code": "\nint main()\n{\n\tint n,i;\n\tint age[100];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=19&&age[i]<=35)\n\t\t{\n\t\t\tb ++ ;\n\t\t}\n\t\tif (age[i]>=36&&age[i]<=60)\n\t\t{\n\t\t\tc ++ ;\n\t\t}\n\t\tif (age[i]>=61)\n\t\t{\n\t\t\td ++ ;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",1.0*a/n*100);\n\tprintf(\"19-35: %.2f%%\\n\",1.0*b/n*100);\n\tprintf(\"36-60: %.2f%%\\n\",1.0*c/n*100);\n\tprintf(\"60??: %.2f%%\\n\",1.0*d/n*100);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49147", "code": " \nint main()\n{\n int n,time=0,age;\n double a=0,b=0,c=0,d=0,s;\n \n cin>>n;\n \n while(time>age;\n if(age<=18)\n a=a+1;\n else if(age<=35)\n b=b+1;\n else if(age<=60)\n c=c+1;\n else\n d=d+1;\n \n time++;\n }\n \n s=a+b+c+d;\n cout<=19)&&(age[i]<=35)){\n\t\t\tnum2+=1;\n\t\t}\n\t\tif((age[i]>=36)&&(age[i]<=60)){\n\t\t\tnum3+=1;\n\t\t}\n\t\tif(age[i]>=61){\n\t\t\tnum4+=1;\n\t\t}\n\t}\n\tp1=100*num1/n;\n\tp2=100*num2/n;\n\tp3=100*num3/n;\n\tp4=100*num4/n;\n\tprintf(\"1-18: %.2lf%%\\n\",p1);\n\tprintf(\"19-35: %.2lf%%\\n\",p2);\n\tprintf(\"36-60: %.2lf%%\\n\",p3);\n\tprintf(\"60??: %.2lf%%\\n\",p4);\n\treturn 0;\n}"} +{"label": "99", "index": "49150", "code": "int main()\n{\n\tint n,i,t;\n\tdouble a=0.00,b=0.00,c=0.00,d=0.00;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&t<=18) a++;\n\t\tif(t>=19&&t<=35) b++;\n\t\tif(t>=36&&t<=60) c++;\n\t\tif(t>=61) d++;\n\t}\n\ta=100*(double)a/n; b=100*(double)b/n;c=100*(double)c/n;d=100*(double)d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\",d);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49151", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\tint i;\n\tint a=0,b=0,c=0,d=0;\n\tfor (i=0;i=19&&sz[i]<=35)\n\t\t\tb=b+1;\n\t\tif (sz[i]>=36&&sz[i]<=60)\n\t\t\tc=c+1;\n\t\tif (sz[i]>60)\n\t\t\td=d+1;\n\t}\n\tdouble a1,b1,c1,d1;\n\ta1=(double)(a*1.0/n*100);\n\tb1=(double)(b*1.0/n*100);\n\tc1=(double)(c*1.0/n*100);\n\td1=(double)(d*1.0/n*100);\n\tprintf(\"1-18: %.2lf\",a1);\n\tprintf(\"%%\\n\");\n printf(\"19-35: %.2lf\",b1);\n\t\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",c1);\n\t\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",d1);\n\t\tprintf(\"%%\\n\");\n\treturn 0;\n}"} +{"label": "99", "index": "49152", "code": "void main()\n{\n\tint n,i,a[100];\n\tdouble b[4]={0,0,0,0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)\n\t\t\tb[0]=b[0]+1;\n\t\telse if(a[i]>=19&&a[i]<=35)\n\t\t\tb[1]=b[1]+1;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\tb[2]=b[2]+1;\n\t\telse \n\t\t\tb[3]=b[3]+1;\n\tprintf(\"1-18: %.2lf%%\\n\",b[0]/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",b[1]/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",b[2]/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",b[3]/n*100);\n}\n\n\t"} +{"label": "99", "index": "49153", "code": "int main()\n{\n int sz[100];\n\tint n,i,a=0,b=0,c=0,d=0;\n\tdouble a1,b1,c1,d1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)\n\t\t\tb++;\n if(sz[i]<=60&&sz[i]>=36)\n\t\t\tc++;\n\t\tif(sz[i]>60)\n\t\t\td++;\n\t}\n a1=(a*1.0/n*1.0)*100;\n\tb1=(b*1.0/n*1.0)*100;\n\tc1=(c*1.0/n*1.0)*100;\n\td1=(d*1.0/n*1.0)*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",a1,b1,c1,d1);\n\treturn 0;\n}"} +{"label": "99", "index": "49154", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tint old;\n\tint n1=0,n2=0,n3=0,n4=0;\n\n\tfor(i=0;i=19&&old<=35){\n\t\t\tn2+=1;\n\t\t}\n\t\tif(old>=36&&old<=60){\n\t\t\tn3+=1;\n\t\t}\n\t\tif(old>=61){\n\t\t\tn4+=1;\n\t\t}\n\t}\n\n\tdouble b1=100.0*n1/n;\n\tdouble b2=100.0*n2/n;\n\tdouble b3=100.0*n3/n;\n\tdouble b4=100.0*n4/n;\n\n\tprintf(\"1-18: %.2lf%%\\n\",b1);\n\tprintf(\"19-35: %.2lf%%\\n\",b2);\n\tprintf(\"36-60: %.2lf%%\\n\",b3);\n\tprintf(\"60??: %.2lf%%\",b4);\n\t\n\treturn 0;\n}"} +{"label": "99", "index": "49155", "code": "int main()\n{\n\tint n=0;\n\tscanf(\"%d\",&n);\n\tint a[100]={0};\n\tint i=0;\n\tdouble b=0;\n\t double c=0;\n double d=0;\ndouble e=0;\n\tfor(i=0;i=1&&a[i]<=18){\n\t\t\tb=b+1;\n\t\t}\n if(a[i]>=19&&a[i]<=35){\n\t\t\tc=c+1;\n\t\t}\n if(a[i]>=36&&a[i]<=60){\n\t\t d=d+1;\n\t }\n if(a[i]>=61){\n\t\t e=e+1;\n\t }\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",100*b/(1.0*n));\n printf(\"19-35: %.2f%%\\n\",100*c/(1.0*n));\n printf(\"36-60: %.2f%%\\n\",100*d/(1.0*n));\n printf(\"60??: %.2f%%\",100*e/(1.0*n));\n\treturn 0;\n}"} +{"label": "99", "index": "49156", "code": "int main(){\n\tint age[100],n,i,a=0,b=0,c=0,d=0;\n\tdouble age18,age35,age60,ageabove;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&age[i]<=18)\n\t\t{\n\t\t\ta++;\n\t\t}\n\t\telse if(age[i]>=19&&age[i]<=35)\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\telse if(age[i]>=36&&age[i]<=60)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td++;\n\t\t}\n\t}\n\tage18=(double)a/n*100;\n\tage35=(double)b/n*100;\n\tage60=(double)c/n*100;\n\tageabove=(double)d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",age18);\n\tprintf(\"19-35: %.2lf%%\\n\",age35);\n\tprintf(\"36-60: %.2lf%%\\n\",age60);\n\tprintf(\"60??: %.2lf%%\\n\",ageabove);\n\treturn 0;\n}\n\t\t"} +{"label": "99", "index": "49157", "code": "int main(){\n\tint i;\n\tdouble n,a,b,c,d;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tscanf(\"%lf\",&n);\n\tint s[100];\n\tfor(i=0;i=1&&s[i]<=18)\n\t\t\ta++;\n\t\telse if(s[i]>=19&&s[i]<=35)\n\t\t\tb++;\n\t\telse if(s[i]>=36&&s[i]<=60)\n\t\t\tc++;\n\t\telse\n\t\t\td++;\n\t}\n\ta=a/n*100;\n\tb=b/n*100;\n\tc=c/n*100;\n\td=d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a,b,c,d);\n\treturn 0;\n}\n\t\t\n\n"} +{"label": "99", "index": "49158", "code": "int main(){\n int n,i,a[101];\n int s1=0,s2=0,s3=0,s4=0;\n double m1,m2,m3,m4;\n scanf(\"%d\",&n);\n for(i=0;i60){\n s4++;\n }\n }\n m1=(double)s1/n*100;\n m2=(double)s2/n*100;\n m3=(double)s3/n*100;\n m4=(double)s4/n*100;\n printf(\"1-18: %.2lf\",m1);\n printf(\"%%\\n\") ; \n printf(\"19-35: %.2lf\",m2);\n printf(\"%%\\n\") ; \n printf(\"36-60: %.2lf\",m3);\n printf(\"%%\\n\") ; \n printf(\"60??: %.2lf\",m4);\n printf(\"%%\\n\") ; \n return 0;\n} \n\n\n\n"} +{"label": "99", "index": "49159", "code": "int main(){\nint sz[100];\nint n,i,a,b,c,d;\ndouble w,x,y,z;\nscanf(\"%d\\n\",&n);\n\na=0;\nb=0;\nc=0;\nd=0;\n\nfor(i=0;i18&&s<36)\n\t b=b+1;\n if(s>35&&s<61)\n\t c=c+1;\n if(s>60)\n\t d=d+1;\n }\n\nprintf(\"1-18: %.2f%%\\n\",a/n*100);\nprintf(\"19-35: %.2f%%\\n\",b/n*100);\nprintf(\"36-60: %.2f%%\\n\",c/n*100);\nprintf(\"60??: %.2f%%\",d/n*100);\n}"} +{"label": "99", "index": "49161", "code": "int main()\n{\n int n,a[100],i,b=0,c=0,d=0,e=0;\n double per1=0,per2=0,per3=0,per4=0;\n scanf(\"%d\",&n);\n for(i=0;i0&&a[i]<19)\n\n\nb++;\n\nif(a[i]>18&&a[i]<36)\n\n\nc++;\n\nif(a[i]>35&&a[i]<61)\n\n\nd++;\n\nif(a[i]>60)\n\n\ne++;\n }\n per1=(double)b/n*100;\n per2=(double)c/n*100;\n per3=(double)d/n*100;\n per4=(double)e/n*100;\n printf(\"1-18: %.2lf%\\n\",per1);\n printf(\"19-35: %.2lf%\\n\",per2);\n printf(\"36-60: %.2lf%\\n\",per3);\n printf(\"60??: %.2lf%\\n\",per4);\n return 0;\n} \n"} +{"label": "99", "index": "49162", "code": "int main(){\n\tint n,i,a,b,c,d,x;\n\tdouble m,k,p,q;\n\ta=0;\n\tb=0;\n\tc=0;\n d=0;\n\ti=1;\n\tscanf(\"%d\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&x);\n\t\tif(x<=18){\n\t\t\ta+=1;\n\t\t}else if(x>=19&&x<=35){\n\t\t\tb+=1;\n\t\t}else if(x>=36&&x<=60){\n\t\t\tc+=1;\n\t\t}else if(x>=60){\n\t\t\td+=1;\n}\n\t\t\ti++;\n\t\t\n\t}\n\t\tm=1.0*a/n*100;\n\t\tk=1.0*b/n*100;\n\t\tp=1.0*c/n*100;\n\t\tq=1.0*d/n*100;\n\t\tprintf(\"1-18: %.2lf%\\n\",m);\n\t\tprintf(\"19-35: %.2lf%\\n\",k);\n\t\tprintf(\"36-60: %.2lf%\\n\",p);\n\t\tprintf(\"60??: %.2lf%\\n\",q);\n\t\treturn 0;\n}"} +{"label": "99", "index": "49163", "code": " int main()\n{\n int n,i,c=0,y=0,a=0,o=0;\n int sum[100];\n double cl,yl,al,ol;\n scanf(\"%d\\n\",&n);\n for(i=1;i<=n;i++)\n {\n scanf(\"%d \",&sum[i-1]);\n if(sum[i-1]<=18)\n c=c+1;\n else if(sum[i-1]<=35)\n y=y+1;\n else if(sum[i-1]<=60)\n a=a+1;\n else o=o+1;\n\n }\n cl=c*1.0*100/n;\n yl=y*1.0*100/n;\n al=a*1.0*100/n;\n ol=o*1.0*100/n;\n printf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\",cl,yl,al,ol);\n return 0;\n}"} +{"label": "99", "index": "49164", "code": "int main()\n{\n\tdouble n;\n\tscanf(\"%lf\",&n);\n\tint man[100];\n\tint i;\n\tfor(i=0;i=1&&man[i]<=18)\n\t\t\ta++;\n\t\tif(man[i]>=19&&man[i]<=35)\n\t\t\tb++;\n\t\tif(man[i]>=36&&man[i]<=60)\n\t\t\tc++;\n\t\tif(man[i]>=61)\n\t\t\td++;\n\t}\n\tdouble x,y,z,w;\n\tx=100*(a/n);\n\ty=100*(b/n);\n\tz=100*(c/n);\n\tw=100*(d/n);\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n\tprintf(\"19-35: %.2lf%%\\n\",y);\n printf(\"36-60: %.2lf%%\\n\",z);\n\tprintf(\"60??: %.2lf%%\\n\",w);\n\treturn 0;\n}"} +{"label": "99", "index": "49165", "code": "int main(){\n\tdouble n;\n\tscanf(\"%lf\",&n);\n\tint i;\n\tint m;\n\tdouble a=0,b=0,c=0,d=0;\n\tfor(i=0;i=1&&m<=18){\n\t\t\ta++;\n\t\t}\n\t\telse if(m>18&&m<36){\n\t\t\tb++;\n\t\t}\n\t\telse if(m>35&&m<61){\n\t\t\tc++;\n\t\t}\n\t\telse{\n\t\t\td++;\n\t\t}\n\t}\n\ta=100*a/n;\n\tb=100*b/n;\n\tc=100*c/n;\n\td=100*d/n;\n\tprintf(\"1-18: %.2lf\",a);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",b);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",c);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",d);\n\tprintf(\"%%\");\n\treturn 0;\n}"} +{"label": "99", "index": "49166", "code": "void main()\n{\n int n,i,a[1000];\n double b[4]={0.0};\n scanf(\"%d\",&n);\n for(i=0;i<=n-1;i++)\n {\n scanf(\"%d\",&a[i]);\n if(a[i]>=1&&a[i]<=18)\n b[0]++;\n if(a[i]>=19&&a[i]<=35)\n b[1]++;\n if(a[i]>=36&&a[i]<=60)\n b[2]++;\n if(a[i]>=61) \n b[3]++;\n }\n printf(\"1-18: %.2lf%%\\n\",b[0]*100/n);\n printf(\"19-35: %.2lf%%\\n\",b[1]*100/n);\n printf(\"36-60: %.2lf%%\\n\",b[2]*100/n);\n printf(\"60??: %.2lf%%\\n\",b[3]*100/n);\n}\n"} +{"label": "99", "index": "49167", "code": "void main()\n{\n\tint a[100],n,i;\n\tdouble b,c,d,e,x,y,m,l;\n\tscanf(\"%d\",&n);\n\tfor(i=0,b=0,c=0,d=0,e=0;i=19))\n\t\t\tc++;\n\t\tif((a[i]<=60)&&(a[i]>=36))\n\t\t\td++;\n\t\tif(a[i]>=61)\n\t\t\te++;\n\t}\n\tx=100*b/(double)n;\n\ty=100*c/(double)n;\n\tm=100*d/(double)n;\n\tl=100*e/(double)n;\n\tprintf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\\n\",x,y,m,l);\n}"} +{"label": "99", "index": "49168", "code": "int main(){\n\tint n,sz[100],i;\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=61)d+=1;}\na=100*a/n;b=100*b/n;c=100*c/n;d=100*d/n;\nprintf(\"1-18: \");printf(\"%.2lf%%\\n\",a);\nprintf(\"19-35: \");printf(\"%.2lf%%\\n\",b);\nprintf(\"36-60: \");printf(\"%.2lf%%\\n\",c);\nprintf(\"60??: \");printf(\"%.2lf%%\\n\",d);\n}"} +{"label": "99", "index": "49170", "code": "void main()\n{\n\tint a[100];\n\tint b[4]={0};\n\tdouble c[4];\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35) b[1]++;\n\t\telse if(a[i]>=36&&a[i]<=60) b[2]++;\n\t\telse b[3]++;\n\t}\n\tfor(i=0;i<4;i++)\n\t\tc[i]=(double)(b[i])/n*100;\n printf(\"1-18: %.2lf%%\\n\",c[0]);\n\tprintf(\"19-35: %.2lf%%\\n\",c[1]);\n\tprintf(\"36-60: %.2lf%%\\n\",c[2]);\n\tprintf(\"60??: %.2lf%%\\n\",c[3]);\n}"} +{"label": "99", "index": "49171", "code": "void main()\n{\n\tint n,i,b=0,c=0,d=0,e=0;\n\tdouble p,q,r,s;\n\tint a[1000];\n\tscanf(\"%d\\n\",&n);\n\tprintf(\"\\n\");\n\tfor(i=0;i=1){a++;}\n else if(year<=35&&year>=19){b++;}\n\telse if(year<=60&&year>=36){c++;}\n\telse if(year>=60){d++;}\n\t}\n printf(\"1-18: %.2lf\",(double)a/n*100);printf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",(double)b/n*100);printf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",(double)c/n*100);printf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",(double)d/n*100);printf(\"%%\\n\");\n\n\n\n\n\nreturn 0; }"} +{"label": "99", "index": "49173", "code": "int main()\n{\n\tint i,n,age[100],count[4];\n\tfor(i=0;i<4;i++){\n\t\tcount[i]=0;\n\t}\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&(age[i]));\n\t\tif(1<=age[i]&&age[i]<=18){\n\t\t\tcount[0]+=1;\n\t\t}\n\t\telse if(19<=age[i]&&age[i]<=35){\n\t\t\tcount[1]+=1;\n\t\t}\n\t\telse if(36<=age[i]&&age[i]<=60){\n\t\t\tcount[2]+=1;\n\t\t}\n\t\telse if(age[i]>=61){\n\t\t\tcount[3]+=1;\n\t\t}\n\t}\n\tprintf(\"1-18: \"\"%.2lf%\"\"%\\n\",(double)count[0]/n*100);\n\tprintf(\"19-35: \"\"%.2lf%\"\"%\\n\",(double)count[1]/n*100);\n\tprintf(\"36-60: \"\"%.2lf%\"\"%\\n\",(double)count[2]/n*100);\n\tprintf(\"60??: \"\"%.2lf%1\"\"%\\n\",(double)count[3]/n*100);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49174", "code": "int main()\n{\n\tint n,i,j,sz[100],a=0,b=0,c=0,d=0,e=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&sz[i]<=35)\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\tif(sz[i]>35&&sz[i]<=60)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\tif(sz[i]>60)\n\t\t{\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(float)a/n*100);\n printf(\"19-35: %.2lf%%\\n\",(float)b/n*100);\n\t\tprintf(\"36-60: %.2lf%%\\n\",(float)c/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",(float)d/n*100);\n\n\n\n\treturn 0;\n}"} +{"label": "99", "index": "49175", "code": "int main(int argc, char* argv[])\n{ int sz[100];\n int n;\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n double e,f,g,h;\n scanf(\"%d\",&n);\n for (int i=0;i18&&sz[i]<36){\n\t\t\tb=b+1;\n\t\t}\n\t\tif(sz[i]>=36&&sz[i]<61){\n\t\t\tc=c+1;\n\t\t}\n\t\tif(sz[i]>=61){\n\t\t\td=d+1;\n\t\t}\n }\n e=(double)a/n*100;\n f=(double)b/n*100;\n g=(double)c/n*100;\n h=(double)d/n*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",e,f,g,h);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49176", "code": "void main()\n{\n\n\tint a[100];\n\tint n;\n\tdouble b1=0,b2=0,b3=0,b4=0;\n\tint i;\n\tdouble sum;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0&&n<=100){\n\t\twhile (i<=n){\n\t\t\tscanf(\"%d\",&x);\n\t\t\ti=i+1;\n\t\t\tif(x<=18){\n\t\t\t\ta++;\n\t\t\t}\n\t\t\telse if(x>18&&x<=35){\n\t\t\t\tb++;\n\t\t\t}\n\t\t\telse if(x>35&&x<=60){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tk=a,l=b,m=c,p=d;\n\t\trate1=100*k/n,rate2=100*l/n,rate3=100*m/n,rate4=100*p/n;\n\t\tprintf(\"1-18: %.2lf%%\\n\",rate1);\n\t\tprintf(\"19-35: %.2lf%%\\n\",rate2);\n\t\tprintf(\"36-60: %.2lf%%\\n\",rate3);\n\t\tprintf(\"60??: %.2lf%%\\n\",rate4);\n\t\t}\n\treturn 0;\n}\n"} +{"label": "99", "index": "49178", "code": "int main()\n{\n\tint n,i,x[100];\n\tdouble a=0,b=0,c=0,d=0,s,t,u,v,all;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&x[i]<36)\n\t\t\tb++;\n\t\telse if(x[i]>35&&x[i]<61)\n\t\t\tc++;\n\t\telse \n\t\t\td++;\n\t}\n\tall=a+b+c+d;\n\ts=100*a/all;\n\tt=100*b/all;\n\tu=100*c/all;\n\tv=100*d/all;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",s,t,u,v);\n\treturn 0;\n}"} +{"label": "99", "index": "49179", "code": "int main(){\n\tint i,a,n,b=0,c=0,d=0,e=0;\n\tdouble A,B,C,D;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\tscanf(\"%d\",&a);\n\tif(a>=1&&a<=18){\n\tb+=1;\n\t}else if(a>=19&&a<=35){\n\tc+=1;\n\t}else if(a>=36&&a<=60){\n\t\td+=1;\n\t}else if(a>=61){\n\te+=1;\n\t}\n\t}\n\tA=1.0*b/n;\n\tB=1.0*c/n;\n\tC=1.0*d/n;\n\tD=1.0*e/n;\n\tprintf(\"1-18: %.2lf%%\\n\",A*100);\n\tprintf(\"19-35: %.2lf%%\\n\",B*100);\n\tprintf(\"36-60: %.2lf%%\\n\",C*100);\n\tprintf(\"60??: %.2lf%%\\n\",D*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49180", "code": "int main(){\n\tint n,s;\n\tdouble a,b,c,d;\n\ta=b=c=d=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(int i=1;i<=n;i++){\n\t\tscanf(\"%d\",&s);\n\t\tif (s<=18) a++;\n\t\telse if (s<=35) b++;\n\t\telse if (s<=60) c++;\n\t\telse d++;\n\t}\n\ta=a/n*100;\n\tb=b/n*100;\n\tc=c/n*100;\n\td=d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49181", "code": "int main()\n{\n int n, i;\n\tscanf(\"%d\", &n);\n\tint age[100], std[4]={0};\n\tfor(i=0;i18&&age[i]<36){\n\t\t\tstd[1]++;\n\t\t}\n\t\telse if(age[i]>35&&age[i]<61){\n\t\t\tstd[2]++;\n\t\t}\n\t\telse if(age[i]>60){\n\t\t\tstd[3]++;\n\t\t}\n\t}\n\tfor(i=0;i<4;i++){\n\t\tif(i==0){\n\t\t printf(\"1-18: %.2lf%%\\n\", 0.1f*std[i]/n*1000);\n\t\t}\n\t\tif(i==1){\n\t\t\tprintf(\"19-35: %.2lf%%\\n\", 0.1f*std[i]/n*1000);\n\t\t}\n if(i==2){\n\t\t\tprintf(\"36-60: %.2lf%%\\n\", 0.1f*std[i]/n*1000);\n\t\t}\n if(i==3){\n\t\t\tprintf(\"60??: %.2lf%%\\n\", 0.1f*std[i]/n*1000);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "99", "index": "49182", "code": "int main()\n{\n\tint i=1,n,k,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\twhile(i<=n)\n\t{\n\t\tscanf(\"%d\",&k);\n\t\tif(k>=1&&k<=18)\n\t\t\ta++;\n\t\tif(k>=19&&k<=35)\n\t\t\tb++;\n\t\tif(k>=36&&k<=60)\n\t\t\tc++;\n\t\tif(k>=61)\n\t\t\td++;\n\t\ti++;\n\t}\n printf(\"1-18: %.2lf%%\\n\",(double)a*100/(double)n);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)b*100/(double)n);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)c*100/(double)n);\n\tprintf(\"60??: %.2lf%%\\n\",(double)d*100/(double)n);\n}"} +{"label": "99", "index": "49183", "code": "int main(){\n\tint n,i;\n\t\tscanf(\"%d\\n\",&n);\n\tint sz[100];\n\tfor(i=0;i=1)){\n\t\t\ta+=1;\n\t\t}else if((m>=19)&&(m<=35)){\n\t\t\tb+=1;\n\t\t}else if((m>=36)&&(m<=60)){\n\t\t\tc+=1;\n\t\t}else{\n\t\t\td+=1;\n\t\t}\n\t}\n o=1.0*a*100/n;\n p=1.0*b*100/n;\n\tq=1.0*c*100/n;\n\tr=1.0*d*100/n;\n\t\tprintf(\"1-18: \");\n\t\tprintf(\"%.2lf%%\\n\",o);\n\t\tprintf(\"19-35: \");\n\t\tprintf(\"%.2lf%%\\n\",p);\n\t\tprintf(\"36-60: \");\n\t\tprintf(\"%.2lf%%\\n\",q);\n\t\tprintf(\"60??: \");\n\t\tprintf(\"%.2lf%%\\n\",r);\n\t return 0;\n\t}"} +{"label": "99", "index": "49187", "code": "int main(){\n int n, year, i;\n double a, b, c, d;\n a=0;\n b=0;\n c=0;\n d=0;\n scanf(\"%d\", &n);\n for(i=0;i=1){\n a++;}\n if(year>18 && year<=35){\n b++;}\n if(year>35 && year<=60){\n c++;}\n if(year>60){\n d++;}\n }\n printf(\"1-18: %.2lf\", a/n*100); printf(\"%%\\n\");\n printf(\"19-35: %.2lf\", b/n*100); printf(\"%%\\n\");\n printf(\"36-60: %.2lf\", c/n*100); printf(\"%%\\n\");\n printf(\"60??: %.2lf\", d/n*100); printf(\"%%\\n\");\n return 0;\n }"} +{"label": "99", "index": "49188", "code": "int main(){\n int n;\n scanf(\"%d\\n\",&n);\n int i,a=0,b=0,c=0,d=0;\n int sz[n];\n for(i=0;i18&&sz[i]<=35){b=b+1;}\n else if(sz[i]>35&&sz[i]<=60){c=c+1;}\n else if(sz[i]>60) {d=d+1;}\n }\n printf(\"1-18: %.2lf%%\\n\",100.0*a/n);\n printf(\"19-35: %.2lf%%\\n\",100.0*b/n);\n printf(\"36-60: %.2lf%%\\n\",100.0*c/n);\n printf(\"Over60: %.2lf%%\\n\",100.0*d/n);\n return 0;\n \n}\n\n"} +{"label": "99", "index": "49189", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tint a[100],i;\n\tfloat b=0,c=0,d=0,e=0;//bcde?????\n\tfor(i=0;i>a[i];\n\t}\n\tfor(i=0;i18&&a[i]<36)c=c+1;\n\t if(a[i]>35&&a[i]<61)d=d+1;\n\t if(a[i]>60)e=e+1;\n\t}\n\tb=b/n*100;\n\tc=c/n*100;\n\td=d/n*100;\n\te=e/n*100;\n\tcout<<\"1-18: \";\n\tprintf(\"%.2f\",b);\n\tcout<<'%'<0)\n\t\t\ts1+=1;\n\t\tif(a[i]<36&&a[i]>18)\n\t\t\ts2+=1;\n\t\tif(a[i]<61&&a[i]>35)\n\t\t\ts3+=1;\n\t\tif(a[i]<101&&a[i]>60)\n\t\t\ts4+=1;\n\t}\n\tx1=s1/n*100;\n x2=s2/n*100;\n x3=s3/n*100;\n x4=s4/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",x1,x2,x3,x4);\n}\n\t\t\n"} +{"label": "99", "index": "49191", "code": "int main()\n{\nint age[100],n,i;float a,b,c,d,p=0,q=0,r=0,s=0;\nscanf(\"%d\",&n);\n for(i=0;i=19)\n\t {q+=1;}\n if(age[i]<=60&&age[i]>=36)\n\t {r+=1;}\n\t if(age[i]>60)\n\t {s+=1;}\n }\n a=p/n*100;\n b=q/n*100;\n c=r/n*100;\n d=s/n*100;\n\nprintf(\"1-18: %.2f%%\\n\",a);\nprintf(\"19-35: %.2f%%\\n\",b);\nprintf(\"36-60: %.2f%%\\n\",c);\nprintf(\"60??: %.2f%%\\n\",d);\nreturn 0;\n}"} +{"label": "99", "index": "49192", "code": "int main(){\n int i,a=0,n,sz[101],b=0,c=0,d=0,zong=0;\n double aa,bb,cc,dd;\n scanf (\"%d\",&n);\n for(i=0;i18&&sz[i]<36){\n b++;\n }\n else if(sz[i]>35&&sz[i]<61){\n c++;\n }\n else if(sz[i]>60){\n d++;\n }\n }\n aa=100.00*a/zong;\n bb=100.00*b/zong;\n cc=100.00*c/zong;\n dd=100.00*d/zong;\n printf(\"1-18: %.2lf%%\\n\",aa);\n printf(\"19-35: %.2lf%%\\n\",bb);\n printf(\"36-60: %.2lf%%\\n\",cc);\n printf(\"60??: %.2lf%%\",dd);\n return 0;\n} "} +{"label": "99", "index": "49193", "code": "int main()\n{\n\tint n,a[100],i,m1=0,m2=0,m3=0,m4=0;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60) m4++;\n\t\telse if(a[i]>35) m3++;\n\t\telse if(a[i]>18) m2++;\n\t\telse m1++;\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",(double)m1/n*100);\n\tprintf(\"19-35: %.2f%%\\n\",(double)m2/n*100);\n\tprintf(\"36-60: %.2f%%\\n\",(double)m3/n*100);\n\tprintf(\"60??: %.2f%%\\n\",(double)m4/n*100);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49194", "code": "void main()\n{\n int n;\n int i;\n int a[100];\n double s,c1,c2,c3,c4;\n int b1=0,b2=0,b3=0,b4=0;\n scanf(\"%d\",&n);\n s=(double)n;\n for(i=0;i60)\n\t b4++;\n }\n c1=b1/s*100;\n printf(\"1-18: %.2lf%%\\n\",c1);\n c2=b2/s*100;\n printf(\"19-35: %.2lf%%\\n\",c2);\n c3=b3/s*100;\n printf(\"36-60: %.2lf%%\\n\",c3);\n c4=b4/s*100;\n printf(\"60??: %.2lf%%\\n\",c4);\n\n}"} +{"label": "99", "index": "49195", "code": "int main()\n{\n\tint n,i,age[N];\n\tscanf(\"%d\",&n);\n\tint a=0,b=0,c=0,d=0;\n\tdouble result;\n\tfor(i=0;i>n;\n\tfor(i=1;i<=n;i=i+1)\n\t{\n double y;\n\t\tcin>>y;\n\t\tif(y<=18)a=a+1;\n\t\telse if(y<=35)b=b+1;\n\t\telse if(y<=60)c=c+1;\n\t\telse d=d+1;\n\t}\n\tdouble A,B,C,D;\n\tA=a/n*100.0;\n\tB=b/n*100.0;\n\tC=c/n*100.0;\n\tD=d/n*100.0;\n cout<<\"1-18: \"<=1&&a[i]<=18){\n\tb[0]+=1;\n\t}\nif(a[i]>=19&&a[i]<=35){\n\tb[1]+=1;\n\t}\nif(a[i]>=36&&a[i]<=60){\n\tb[2]+=1;\n\t}\nif(a[i]>60){\n\tb[3]+=1;\n\t}\n}\nfor(i=0;i<4;i++){\n c[i]=(b[i]*1.0*100)/n;\n}\nprintf(\"1-18: %.2lf%%\\n\",c[0]);\nprintf(\"19-35: %.2lf%%\\n\",c[1]);\nprintf(\"36-60: %.2lf%%\\n\",c[2]);\nprintf(\"60??: %.2lf%%\\n\",c[3]);\nreturn 0;\n}\n"} +{"label": "99", "index": "49198", "code": "int main()\n{\n\tint n;\n\tint a[100];\n\tscanf(\"%d\\n\",&n);\n\tint b[4]={0};\n\tint i;\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t{b[1]++;}\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t{b[2]++;}\n\t\telse if(a[i]>=61)\n\t\t{b[3]++;}\n\t}\n\tdouble c[4];\n\tfor(i=0;i<4;i++)\n\t{\n\t\tc[i]=(double)b[i]/n;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",c[0]*100);\n printf(\"19-35: %.2lf%%\\n\",c[1]*100);\n\tprintf(\"36-60: %.2lf%%\\n\",c[2]*100);\n\tprintf(\"60??: %.2lf%%\\n\",c[3]*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49199", "code": "int main(){\n\tint n,i,age,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&age);\n\t\tif(age<=18){\n a++;\n\t\t}\n\t\telse if(age>=19&&age<=35){\n\t\t\tb++;\n\t\t}\n\t\telse if(age>=36&&age<=60){\n\t\t\tc++;\n\t\t}\n\t\telse{\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",1.0*100*a/n);\n\tprintf(\"19-35: %.2lf%%\\n\", 1.0*100*b/n);\n\tprintf(\"36-60: %.2lf%%\\n\", 1.0*100*c/n);\n\tprintf(\"60??: %.2lf%%\\n\", 1.0*100*d/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49200", "code": "int main()\n{\n\tint n,i,y[101],a=0,b=0,c=0,d=0;\n\tdouble A,B,C,D;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&y[i]<=35){\n\t\t\tb++;\n\t\t}\n\t\tif(y[i]>35&&y[i]<=60){\n\t\t\tc++;\n\t\t}\n\t\tif(y[i]>60){\n\t\t\td++;\n\t\t}\n\t}\n\tA=(double)a/(double)n*100;\n\tB=(double)b/(double)n*100;\n\tC=(double)c/(double)n*100;\n\tD=(double)d/(double)n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",A);\n\tprintf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",C);\n\tprintf(\"60??: %.2lf%%\\n\",D);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49201", "code": "int main(){\n\tint n,i,a=0,b=0,c=0,d=0;\n\tdouble x=0,y=0,z=0,w=0;\n\tint nl[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0&&nl[i]<19){\n\t\t\ta++;}\n\t\telse if(nl[i]>18&&nl[i]<36){\n\t\t\tb++;}\n\t\telse if(nl[i]>35&&nl[i]<61){\n\t\t\tc++;}\n\t\telse if(nl[i]>60){\n\t\t\td++;}\n\t}\n\tx=1.0*a/n*100;\n\ty=1.0*b/n*100;\n\tz=1.0*c/n*100;\n\tw=1.0*d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n\tprintf(\"19-35: %.2lf%%\\n\",y);\n\tprintf(\"36-60: %.2lf%%\\n\",z);\n\tprintf(\"60??: %.2lf%%\\n\",w);\n\treturn 0;\n}"} +{"label": "99", "index": "49202", "code": "int main()\n{\n\tint i,n;\n\tdouble b,c,d,e;\n\tint a[AGE];\n\tint s1,s2,s3,s4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&sz[i]<=18){\n\t\t\ta+=1;}\n\t\tif(sz[i]>=19&&sz[i]<=35){\n\t\t\tb+=1;}\n\t\tif(sz[i]>=36&&sz[i]<=60){\n\t\t\tc+=1;}\n\t\tif(sz[i]>60){\n\t\t\td+=1;}\n\t}\n\tx=(double)a/n;\n\tm=x*100;\n\ty=(double)b/n;\n\tl=y*100;\n\tz=(double)c/n;\n\te=z*100;\n\tq=(double)d/n;\n\tf=q*100;\n\tprintf(\"1-18: %.2lf%%\\n\",m);\n printf(\"19-35: %.2lf%%\\n\",l);\n\tprintf(\"36-60: %.2lf%%\\n\",e);\n\tprintf(\"60??: %.2lf%%\\n\",f);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49204", "code": "int main()\n{\n\tint n,i,j;\n\tint a[100];\n\tdouble youerbili,chengrenbili,zhongnianbili,laonianbili;\n\tint youer=0,chengren=0,zhongnian=0,laonian=0;\n\tscanf(\"%d\", &n);\n\tfor(i=0;i18&&a[i]<=35)\n\t\t\tchengren+=1;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\tzhongnian+=1;\n\t\telse\n\t\t\tlaonian+=1;\n\t}\n\tyouerbili=(double)youer/(double)n*100;\n\tchengrenbili=(double)chengren/(double)n*100;\n\tzhongnianbili=(double)zhongnian/(double)n*100;\n\tlaonianbili=(double)laonian/(double)n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",youerbili);\n\tprintf(\"19-35: %.2lf%%\\n\",chengrenbili);\n\tprintf(\"36-60: %.2lf%%\\n\",zhongnianbili);\n\tprintf(\"60??: %.2lf%%\\n\",laonianbili);\n\treturn 0;\n}"} +{"label": "99", "index": "49205", "code": "\nint main (){\n\tint n,x,i,a=0,b=0,c=0,d=0;\n double e,f,g,h;\n\tscanf(\"%d\",&n);\n \n\tfor(i=1;i<=n;i++)\n\t{scanf(\"%d\",&x);\n\tif(x<=18){a=a+1;}\n\telse if (x<=35){b=b+1;}\n\telse if (x<=60){c=c+1;}\n\telse{d=d+1;}\n\t}\n e=1.0*a/n*100;\n\tf=1.0*b/n*100;\n\tg=1.0*c/n*100;\n\th=1.0*d/n*100;\n\t \n\t\t printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",e,f,g,h);\n\t\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49206", "code": "int main()\n{\n int sum1,sum2,sum3,sum4,i,n,sum;\n double q,w,e,r;\n sum1 = 0;\n sum2 = 0;\n sum3 = 0;\n sum4 = 0;\n sum = 0;\n q = 0;\n w = 0;\n e = 0;\n r = 0;\n scanf(\"%d\",&n);\n int a[n];\n for(i=0;i60)\n {\n sum4++;\n }\n }\n sum = sum1+sum2+sum3+sum4;\n q=(double)sum1/(double)sum;\n w=(double)sum2/(double)sum;\n e=(double)sum3/(double)sum;\n r=(double)sum4/(double)sum;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",q*100,w*100,e*100,r*100);\n return 0;\n }\n\n\n\n\n"} +{"label": "99", "index": "49207", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tdouble a[100];\n\tdouble s1=0,s2=0,s3=0,s4=0,s5=0;\n\tfor(int i=0;i18&&a[i]<=35)\n\t\t\ts2++;\n\t\tif(a[i]>35&&a[i]<=60)\n\t\t\ts3++;\n\t\tif(a[i]>60)\n\t\t\ts4++;\n\t\ts5++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",s1/s5*100);\n\tprintf(\"19-35: %.2lf%%\\n\",s2/s5*100);\n\tprintf(\"36-60: %.2lf%%\\n\",s3/s5*100);\n\tprintf(\"60??: %.2lf%%\\n\",s4/s5*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49208", "code": "int main()\n{\n int n,i;\n int sz[120],sz1[10]={0};\n double a,b,c,d;\n scanf(\"%d\",&n);\n for(i=0;i=1&&sz[i]<=18)\n { sz1[0]++;\n }\n else if(sz[i]>=19&&sz[i]<=35)\n {\n sz1[1]++;\n }\n else if(sz[i]>=36&&sz[i]<=60)\n {\n sz1[2]++;\n }\n else\n {\n sz1[3]++;\n }\n }\n a=(double)sz1[0]*100/n;\n b=(double)sz1[1]*100/n;\n c=(double)sz1[2]*100/n;\n d=(double)sz1[3]*100/n;\n printf(\"1-18: %.2lf%%\\n\",a);\n printf(\"19-35: %.2lf%%\\n\",b);\n printf(\"36-60: %.2lf%%\\n\",c);\n printf(\"60??: %.2lf%%\\n\",d);\n return 0;\n}"} +{"label": "99", "index": "49209", "code": "void main()\n{\n\tint n,age[100],i;\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&z[i]<36)\n\t\t{\n\t\t\tsum2=sum2+1;\n\t\t}\n\t\tif(z[i]>35&&z[i]<61)\n\t\t{\n\t\t\tsum3=sum3+1;\n\t\t}\n\t\tif(z[i]>60)\n\t\t{\n\t\t\tsum4=sum4+1;\n\t\t}\n\t}\n\tp1=(double)sum1/(double)n;\n p2=(double)sum2/(double)n;\n p3=(double)sum3/(double)n;\n p4=(double)sum4/(double)n;\n\tprintf(\"1-18: %.2lf%%\\n\",p1*100);\n\tprintf(\"19-35: %.2lf%%\\n\",p2*100);\n\tprintf(\"36-60: %.2lf%%\\n\",p3*100);\n\tprintf(\"60??: %.2lf%%\",p4*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49211", "code": "void main()\n{\n\tint n,i;\n\tdouble b,c,d,e,p1,p2,p3,p4;\n b=0.0;\n\tc=0.0;\n\td=0.0;\n\te=0.0;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\tscanf(\"%d\",&a[i]);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t if(a[i]>=1&&a[i]<=18)b=b+1;\n\t if(a[i]>=19&&a[i]<=35)c=c+1;\n\t if(a[i]>=36&&a[i]<=60)d=d+1;\n\t if(a[i]>=61)e=e+1;\n\t }\n\t p1=b/n*100;\n\t p2=c/n*100;\n\t p3=d/n*100;\n\t p4=e/n*100;\n\t printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",p1,p2,p3,p4);\n}"} +{"label": "99", "index": "49212", "code": "int main()\n{\n\tint n,i,a[100],sum1=0,sum2=0,sum3=0,sum4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35){b++;}\n\tif(a[i]>35&&a[i]<=60){c++;}\n\tif(a[i]>60){d++;}\n}\nw=(double)100*e/n;x=(double)100*b/n;y=(double)100*c/n;z=(double)100*d/n;\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",w,x,y,z);\nreturn 0;\n}"} +{"label": "99", "index": "49214", "code": "//********************************\n//*???????? **\n//*?????? 1200012827 **\n//*???2012.10.4 **\n//********************************\nint main () // ???\n{ // ?????\nint x,k=1; // ?????????\ndouble a=0.0,b=0.0,c=0.0,d=0.0,n; // ?????????????\ncin >> n; // ????????\n{ // ????\nwhile (k <= n)\n{\ncin >> x; // ????\nif ( x<=18 ) // ??????????????\n{\na=a+1;\n}\nelse if ( 19<=x && x<=35 )\n{\nb=b+1;\n}\nelse if ( 36<=x && x<=60 )\n{\nc=c+1;\n}\nelse \n{\nd=d+1;\n}\nk=k+1;\n} // ????\ndouble A,B,C,D; // ?????????\nA=a/n*100; // ????\nB=b/n*100;\nC=c/n*100;\nD=d/n*100;\ncout << fixed;\ncout << \"1-18: \"<< setprecision(2)<< A << \"%\" <> k;\n\tfor (int i=0; i < k; i++) //??????????k??\n\t{\n \n\t\tint a;\n\t\tcin >> a;\n\t\tif (a>=1&&a<=18)\n\t\t\tb=b+1;\n\t\tif (a>=19&&a<=35)\n\t\t\tc=c+1;\n\t\tif (a>=36&&a<=60)\n\t\t\td=d+1;\n\t\tif (a>60)\n\t\t\te=e+1;\n\t}\n\tdouble A, B, C, D;\n\tA=b*100/(b+c+d+e);\n\tB=c*100/(b+c+d+e);\n\tC=d*100/(b+c+d+e);\n\tD=e*100/(b+c+d+e);\n\tcout << fixed;\n\tcout << setprecision(2); //?????????\n\tcout << \"1-18: \" << A << \"%\" << endl;\n\tcout << \"19-35: \" << B << \"%\" << endl;\n\tcout << \"36-60: \" << C << \"%\" << endl;\n\tcout << \"60??: \" << D << \"%\" << endl;\n\treturn 0;\n}\n"} +{"label": "99", "index": "49216", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\tint i;\n\tfor(i=0;i=19&&sz[j]<=35){\n\t\t\tp+=1.0;\n\t\t}\n\t\telse if(sz[j]>=36&&sz[j]<=60){\n\t\t\tq+=1.0;\n\t\t}\n\t\telse if(sz[j]>=61){\n\t\t\tm+=1.0;\n\t\t}\n\n\n\t}\n\ts=p+q+m+k;\n\ta=k/s*100;\n b=p/s*100;\n\tc=q/s*100;\n\td=m/s*100;\n\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\\n\",d);\n\n\n\treturn 0;\n}\n\n "} +{"label": "99", "index": "49217", "code": "int main()\n{\n\tint n,sz[100],i;\n\tscanf(\"%d\",&n);\n\tint a=0,b=0,c=0,d=0;\n\tdouble e,f,g,h;\n for(i=0;i=19&&sz[i]<=35)\n\t\t\tb+=1;\n\t\tif(sz[i]>=36&&sz[i]<=60)\n\t\t\tc+=1;\n\t\tif(sz[i]>=61)\n\t\t\td+=1;\n\t}\n\te=1.0*a/n*100;\n\tf=1.0*b/n*100;\n\tg=1.0*c/n*100;\n\th=1.0*d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",e);\n\tprintf(\"19-35: %.2lf%%\\n\",f);\n\tprintf(\"36-60: %.2lf%%\\n\",g);\n\tprintf(\"60??: %.2lf%%\\n\",h);\n\treturn 0;\n}"} +{"label": "99", "index": "49218", "code": "int main(){\nint n,a,b,c,d,i,m;\ni=1;\na=0;\nb=0;\nc=0;\nd=0;\ndouble e,f,g,h;\nscanf(\"%d\\n\",&n);\nwhile(i<=n){\nscanf(\"%d\\n\",&m);\nif(m<=18){a=a+1;i++;}\nelse if(m<=35){b=b+1;i++;}\nelse if(m<=60){c=c+1;i++;}\nelse{d=d+1;i++;}\n}\ne=1.0*a/n*100;\nf=1.0*b/n*100;\ng=1.0*c/n*100;\nh=1.0*d/n*100;\nprintf(\"1-18: %.2lf%%\\n\",e);\nprintf(\"19-35: %.2lf%%\\n\",f);\nprintf(\"36-60: %.2lf%%\\n\",g);\nprintf(\"Over60: %.2lf%%\\n\",h);\nreturn 0;\n}\n\n\n\n\n\n"} +{"label": "99", "index": "49219", "code": "int main()\n{\n\tint n,u[100];\n\tscanf(\"%d\\n\",&n);\n\tint i;\n\tfor(i=0;i18&&u[i]<36)\n\t\t{sum2++;}\n\t\telse if(u[i]>35&&u[i]<61)\n\t\t{sum3++;}\n\t\telse if(u[i]>60)\n\t\t{sum4++;}\n\t}\n\ts1=(double)100*sum1/n;\n\ts2=(double)100*sum2/n;\n\ts3=(double)100*sum3/n;\n\ts4=(double)100*sum4/n;\n\tprintf(\"1-18: %.2lf%%\\n\",s1);\n\tprintf(\"19-35: %.2lf%%\\n\",s2);\n\tprintf(\"36-60: %.2lf%%\\n\",s3);\n\tprintf(\"60??: %.2lf%%\",s4);\n\treturn 0;\n}"} +{"label": "99", "index": "49220", "code": "int main(){\nint n,k,x,a,b,c,d;\nk=1;\nscanf(\"%d\",&n);\ndouble A,B,C,D;\na=0;b=0,c=0;d=0;\nwhile(k<=n){\nscanf(\"%d\",&x);\nif(x<=18){\na=a+1;\n}else if(x<=35){\nb=b+1;\n}else if(x<=60){\nc=c+1;\n}else{\nd=d+1;\n}\nk++;\n}\nA=100.0*a/n;\nB=100.0*b/n;\nC=100.0*c/n;\nD=100.0*d/n;\nprintf(\"1-18: %.2lf%%\\n\",A);\nprintf(\"19-35: %.2lf%%\\n\",B);\nprintf(\"36-60: %.2lf%%\\n\",C);\nprintf(\"60??: %.2lf%%\\n\",D);\nreturn 0;\n}"} +{"label": "99", "index": "49221", "code": "int main()\n{\n int n,c[4]={0},i;\n double a[4];\n scanf(\"%d\",&n);\n for(i=0;i18&&bi<=35)\n {\n c[1]++;\n }\n else if(bi>35&&bi<=60)\n {\n c[2]++;\n }\n else if(bi>60)\n {\n c[3]++;\n }\n }\n for(i=0;i<4;i++)\n {\n a[i]=(double)c[i]/n*100;\n }\n printf(\"1-18: %.2lf\",a[0]);\n printf(\"%%\\n\");\n printf(\"19-35: %.2lf\",a[1]);\n printf(\"%%\\n\");\n printf(\"36-60: %.2lf\",a[2]);\n printf(\"%%\\n\");\n printf(\"60??: %.2lf\",a[3]);\n printf(\"%%\");\n return 0;\n}"} +{"label": "99", "index": "49222", "code": "int main()\n{\n\tint n,a1=0,a19=0,a36=0,a61=0,a;\n\tcin>>n;//?????\n\tfor(int i=1;i<=n;i++)//???????\n\t{\n\t\tcin>>a;\n\t\tif (a<=18) a1++;//??????????\n\t\telse\n\t\t{\n\t\t\tif(a<=35) a19++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a<=60) a36++;\n\t\t\t\telse a61++;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\\n\",((float)a1)/n*100,((float)a19)/n*100,((float)a36)/n*100,((float)a61)/n*100);\n\t//?????\n\treturn 0;\n}"} +{"label": "99", "index": "49223", "code": "int main(){\n int n,m;\n int i;\n int a=0,b=0,c=0,d=0;\n double e,f,g,h;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&m);\n if(m<=18){\n a++;\n }\n else if(m>18&&m<=35){\n b++;\n }\n else if(m>35&&m<=60){\n c++;\n }\n else{\n d++;\n }\n }\n e=a*1.0*100/n;\n f=b*1.0*100/n;\n g=c*1.0*100/n;\n h=d*1.0*100/n;\n printf(\"1-18: \");\n printf(\"%.2lf%%\\n\",e);\n printf(\"19-35: \");\n printf(\"%.2lf%%\\n\",f);\n printf(\"36-60: \");\n printf(\"%.2lf%%\\n\",g);\n printf(\"Over60: \");\n printf(\"%.2lf%%\\n\",h);\n return 0;\n}\n \n \n \n\n"} +{"label": "99", "index": "49224", "code": "int main(){\n\tint n;\n\tscanf(\"%d\",&n);\n\tdouble patient[100];\n\tfor(int m=0;m0&&p<=18)\n\t\t\ta++;\n\t\tif(p>=19&&p<=35)\n\t\t\tb++;\n\t\tif(p>=36&&p<=60)\n\t\t\tc++;\n\t\tif(p>60)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",a/(a+b+c+d)*100);\n\tprintf(\"19-35: %.2lf%%\\n\",b/(a+b+c+d)*100);\n\tprintf(\"36-60: %.2lf%%\\n\",c/(a+b+c+d)*100);\n\tprintf(\"60??: %.2lf%%\",d/(a+b+c+d)*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49225", "code": "\nint main()\n{\n\tint a[100],n,s1=0,s2=0,s3=0,s4=0,i;\n\tfloat p1,p2,p3,p4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=61)s4+=1;\n\t}\n\tp1=100*(float)s1/n;\n\tp2=100*(float)s2/n;\n\tp3=100*(float)s3/n;\n\tp4=100*(float)s4/n;\n\tprintf(\"1-18: %.2f%%\\n\",p1);\n\t\tprintf(\"19-35: %.2f%%\\n\",p2);\n\t\t\tprintf(\"36-60: %.2f%%\\n\",p3);\n\t\t\t\tprintf(\"60??: %.2f%%\\n\",p4);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49226", "code": "void main()\n{int i,n,a=0,b=0,c=0,d=0,s[100];\ndouble x,y,p,q;\nscanf(\"%d\\n\",&n);\nfor(i=0;i=19)b+=1;\nif(s[i]<=60&&s[i]>=36)c+=1;\nif(s[i]>=61)d+=1;\n};\nx=(double)a/n*100;\ny=(double)b/n*100;\np=(double)c/n*100;\nq=(double)d/n*100;\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",x,y,p,q);\n}"} +{"label": "99", "index": "49227", "code": "int main()\n{\n int n,a[100],s[4]={0},i;\n double c[4];\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&a[i]);\n if(a[i]>=1&&a[i]<=18)\n\t s[1]+=1;\n else if(a[i]>=19&&a[i]<=35)\n\t s[2]+=1;\n else if(a[i]>=36&&a[i]<=60)\n\t s[3]+=1;\n else if(a[i]>=60)\n\t s[4]+=1;\n }\n for(i=1;i<=3;i++){\n\t c[i]=(double)s[i]/n;\n }\n c[4]=1.000000-c[1]-c[2]-c[3];\n printf(\"1-18: %.2lf%%\\n\",c[1]*100);\n printf(\"19-35: %.2lf%%\\n\",c[2]*100);\n printf(\"36-60: %.2lf%%\\n\",c[3]*100);\n printf(\"60??: %.2lf%%\\n\",c[4]*100);\n return 0;\n}\n"} +{"label": "99", "index": "49228", "code": "void main()\n{\n\tint i,n,a=0,b=0,c=0,d=0,s[100];\n\tdouble q,w,e,r;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&year[i]<=18)\n {\n r++;\n } else if(year[i]>=19&&year[i]<=35){\n a++;\n } else if(year[i]>=36&&year[i]<=60){\n t++;\n }else {\n e++;\n }\n }\n double rn=1.0*r/m*100,an=1.0*a/m*100,tn=1.0*t/m*100,en=1.0*e/m*100;\n printf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\nOver60: %.2lf%\\n\",rn,an,tn,en);\n return 0;\n}\n"} +{"label": "99", "index": "49230", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint nianling[100];\n\tint i;\n\tint sum[4]={0};\n\tfor(i=0;i=1&&nianling[i]<=18)\n\t\t\tsum[0]++;\n\t\tif(nianling[i]>=19&&nianling[i]<=35)\n\t\t\tsum[1]++;\n \tif(nianling[i]>=36&&nianling[i]<=60)\n\t\t\tsum[2]++;\n \tif(nianling[i]>=61)\n\t\t\tsum[3]++;\n\t}\n\tint j;\n\tdouble bai[4];\n\tfor(j=0;j<4;j++)\n\t{\n\t\tbai[j]=((double)sum[j]/(double)n)*100;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",bai[0]);\n\tprintf(\"19-35: %.2lf%%\\n\",bai[1]);\n\tprintf(\"36-60: %.2lf%%\\n\",bai[2]);\n\tprintf(\"60??: %.2lf%%\",bai[3]);\n\treturn 0;\n}\n\n\n\t\n"} +{"label": "99", "index": "49231", "code": "int main(){\n int pp[100];\n int i,n,a=0,b=0,c=0,d=0,sum;\n double e,f,g,j;\n scanf(\"%d\",&n);\n for(i=0;i=19&&pp[i]<=35){b++;}\n else if(pp[i]>=36&&pp[i]<=60){c++;}\n else if(pp[i]>=61){d++;}\n\n }\n sum=a+b+c+d;\n e=1.0*(100000*a/sum);\n f=1.0*(100000*b/sum);\n g=1.0*(100000*c/sum);\n j=1.0*(100000*d/sum);\n printf(\"1-18: %.2lf%%\\n\",e/1000);\n printf(\"19-35: %.2lf%%\\n\",f/1000);\n printf(\"36-60: %.2lf%%\\n\",g/1000);\n printf(\"60??: %.2lf%%\\n\",j/1000);\n\t\treturn 0;\n}"} +{"label": "99", "index": "49232", "code": "int main(){\nint n,a,i;\ndouble b,c,d,e;\nscanf(\"%d\",&n);\nb=0;\nc=0;\nd=0;\ne=0;\nfor(i=1;i<=n;i++){\n\tscanf(\"%d\",&a);\nif(a<=18){\nb=b+1;\n}\nelse if (a>=19&&a<=35){\nc=c+1;}\nelse if(a>=36&&a<=60){\nd=d+1;}\nelse {\ne=e+1;}\n}\nb=((double)b/n)*100;\nc=((double)c/n)*100;\nd=((double)d/n)*100;\ne=((double)e/n)*100;\n\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",b,c,d,e);\n\nreturn 0;\n\n}"} +{"label": "99", "index": "49233", "code": "int main()\n{\nint n,a[101],i;\ndouble s=0.0,b=0.0,c=0.0,d=0.0;\nscanf(\"%d\",&n);\nfor(i=0;i18)&&(age<36))\n\t\t\t\tb++;\n else if((age>35)&&(age<61))\n\t\t\t\tc++;\n\t\t\telse if(age>59)\n\t\t\t\td++;\n\t}\n printf(\"1-18: %.2lf%%\\n\",100*a/n);\nprintf(\"19-35: %.2lf%%\\n\",100*b/n);\nprintf(\"36-60: %.2lf%%\\n\",100*c/n);\nprintf(\"60??: %.2lf%%\\n\",100*d/n);\n//scanf(\"%lf\",&age);\n\treturn 0;\n}\n\t\t"} +{"label": "99", "index": "49236", "code": "int main()\n{\n\tint n,k,a=0,b=0,c=0,d=0,i;\n\tdouble p,q,m,g;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&k<36)\n\t\t\tb=b+1;\n\t\telse if(k>35&&k<61)\n\t\t\tc=c+1;\n\t\telse if(k>60)\n\t\t\td=d+1;\n\t}\n\tp=100*(double)a/n;\n\tq=100*(double)b/n;\n\tm=100*(double)c/n;\n\tg=100*(double)d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",p);\n\tprintf(\"19-35: %.2lf%%\\n\",q);\n\tprintf(\"36-60: %.2lf%%\\n\",m);\n\tprintf(\"60??: %.2lf%%\\n\",g);\n return 0;\n}\n\n\n\n"} +{"label": "99", "index": "49237", "code": "int main()\n{ double l,m,q,p;\ndouble g=0,s=0,b=0,c=0;\n\tint n,i;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)s=s+1;\n\tif(a[i]>=19&&a[i]<=35)g=g+1;\n\tif(a[i]>=36&&a[i]<=60)b=b+1;\n\tif(a[i]>=61)c=c+1;\n\t}\n m=(g*100)/n;\tl=(s*100)/n;\n\tq=(b*100)/n;\n\tp=(c*100)/n;\n\t\tprintf(\"1-18: %.2lf%%\\n\",l);\n\t\t\tprintf(\"19-35: %.2lf%%\\n\",m);\n\t\t\tprintf(\"36-60: %.2lf%%\\n\",q);\nprintf(\"60??: %.2lf%%\\n\",p);\n\nreturn 0;\n\n}"} +{"label": "99", "index": "49238", "code": "\nint main(){ \n\tint i,n;\n\tint sz[100];\n\tdouble x,y,z,p;\n\tint b1=0;\n\tint b2=0;\n\tint b3=0;\n\tint b4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i> n;\n\tfor(i = 0;i < n;i++)\n\t{\n\t\tcin >> a;\n\t\tif(a <= 18)\n\t\t\tx++;\n\t\telse if(a <= 35)\n\t\t\ty++;\n\t\telse if(a <= 60)\n\t\t\tz++;\n\t\telse \n\t\t\tk++;\n\t}\n\tcout <=1&&a<=18)\n\t\t\t{\n\t\t\t\ts1=s1+1;\n\t\t\t}\n\t\t\telse if(a>=19&&a<=35)\n\t\t\t{\n\t\t\t\ts2=s2+1;\n\t\t\t}\n\t\t\telse if(a>=36&&a<=60)\n\t\t\t{\n\t\t\t\ts3=s3+1;\n\t\t\t}\n\t\t\telse s4=s4+1;\n\t\t}\n\t\tm=(double)s1/n*100;\n\t\tl=(double)s2/n*100;\n\t\tp=(double)s3/n*100;\n\t\tq=(double)s4/n*100;\n\t\tprintf(\"1-18: \");\n\t\tprintf(\"%.2lf%\\n\",m);\n\t\tprintf(\"19-35: \");\n\t\tprintf(\"%.2lf%\\n\",l);\n\t\tprintf(\"36-60: \");\n\t\tprintf(\"%.2lf%\\n\",p);\n\t\tprintf(\"60??: \");\n\t\tprintf(\"%.2lf%\\n\",q);\n\t\n\t\t\treturn 0;\n}\n"} +{"label": "99", "index": "49242", "code": "int main(){\n int sz[100];\n int n,i,a,b,c,d;\n a=0;\n b=0;\n c=0;\n d=0;\n double A,B,C,D;\n scanf(\"%d\",&n);\n for(i=0;i=1){\n a++;\n }\n }\n for(i=0;i=19&&sz[i]<=35){\n b++;\n }\n }\n for(i=0;i=36&&sz[i]<=60){\n c++;\n }\n }\n for(i=0;i60){\n d++;\n }\n }\n A=100.0*a/n;\n B=100.0*b/n;\n C=100.0*c/n;\n D=100.0*d/n;\n printf(\"1-18: %.2lf%%\\n\",A);\n printf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",C);\n printf(\"Over60: %.2lf%%\\n\",D);\n return 0;\n}\n"} +{"label": "99", "index": "49243", "code": "int main()\n{\n int n,i;\n double a,b,c,d;\n a=0;\n b=0;\n c=0;\n d=0;\n scanf(\"%d\",&n);\n int haha[1000];\n for (i=0;i0&&haha[i]<19)\n\t\t a=a+1;\n\t else if (haha[i]>18&&haha[i]<36)\n\t\t b=b+1;\n\t else if (haha[i]>35&&haha[i]<61)\n\t\t c=c+1;\n else if (haha[i]>60)\n d=d+1;\n }\n \n a=a/n;\n b=b/n;\n c=c/n;\n d=d/n;\n printf(\"1-18: %.2lf%%\\n\",a*100);\n printf(\"19-35: %.2lf%%\\n\",b*100);\n printf(\"36-60: %.2lf%%\\n\",c*100);\n printf(\"60??: %.2lf%%\",d*100);\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49244", "code": "int main()\n{ \n\tint a[100],n,i,b,c,d,e;\n double o,p,q,r;\n\tscanf(\"%d\",&n);\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tfor(i=0;i18&&a[i]<36){\n b[1]+=1;\n }\n if(a[i]>35&&a[i]<61){\n b[2]+=1;\n }\n if(a[i]>60){\n b[3]+=1;\n }\n }\n f=b[0]*1.0/n*100;\n c=b[1]*1.0/n*100;\n d=b[2]*1.0/n*100;\n e=b[3]*1.0/n*100;\n printf(\"1-18: %.2lf%%\\n\",f);\n printf(\"19-35: %.2lf%%\\n\",c);\n printf(\"36-60: %.2lf%%\\n\",d);\n printf(\"60??: %.2lf%%\",e);\n return 0;\n}\n \n"} +{"label": "99", "index": "49246", "code": "int main()\n{\n int n;\n int sz[100];\n int i;\n int a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n for(i=0;i=1&&sz[i]<=18){\n a+=1;\n }else if(sz[i]>18&&sz[i]<=35){\n b+=1;\n }else if(sz[i]>35&&sz[i]<=60){\n c+=1;\n }else {\n d+=1;\n }\n\n }\n\n printf(\"1-18: %.2lf%%\\n\",(double)a*100/n);\n printf(\"19-35: %.2lf%%\\n\",(double)b*100/n);\n printf(\"36-60: %.2lf%%\\n\",(double)c*100/n);\n printf(\"60??: %.2lf%%\",(double)d*100/n);\n return 0;\n}\n"} +{"label": "99", "index": "49247", "code": "int main()\n{\n\tint n,i;\n\tdouble a,b,c,d;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tint age;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=60){\nw++;}\n }\nprintf(\"1-18: %.2lf%%\\n\",100.0*x/n);\nprintf(\"19-35: %.2lf%%\\n\",100.0*y/n);\nprintf(\"36-60: %.2lf%%\\n\",100.0*z/n);\nprintf(\"60??: %.2lf%%\\n\",100.0*w/n);\nreturn 0;\n}\n"} +{"label": "99", "index": "49249", "code": "int main()\n{\n\tint n,i,a,m=0,q=0,x=0,y=0;\n\tdouble f,g,h,j;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=61)\n\t\t\ty++;\n\t\n\t}\n\t\n\tf=m/(double)n*100;\n\tg=q/(double)n*100;\n\th=x/(double)n*100;\n\tj=y/(double)n*100;\n\tprintf(\"1-18: %.2lf%\\n\",f);\n\tprintf(\"19-35: %.2lf%\\n\",g);\n\tprintf(\"36-60: %.2lf%\\n\",h);\n\tprintf(\"60??: %.2lf%\\n\",j);\n\treturn 0;\n}"} +{"label": "99", "index": "49250", "code": "int main(){\n\tint n,i,r=0,s=0,t=0,u=0,y;\n\tdouble a,b,c,d;\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&y);\n\t\tif(y<=18){\n\t\t\tr=r+1;\n\t\t}else if((y>=19)&&(y<=35)){\n\t\t\ts++;\n\t\t}else if((y>=36)&&(y<=60)){\n\t\t\tt++;\n\t\t}else if(y>=61){\n\t\t\tu++;\n\t\t}\n\t}\n\t\ta=100.0*r/n;\n\t\tb=100.0*s/n;\n\t\tc=100.0*t/n;\n\t\td=100.0*u/n;\n\t\tprintf(\"1-18: %.2lf%%\\n\",a);\n\t\tprintf(\"19-35: %.2lf%%\\n\",b);\n\t\tprintf(\"36-60: %.2lf%%\\n\",c);\n\t\tprintf(\"60??: %.2lf%%\\n\",d);\n return 0;\n}"} +{"label": "99", "index": "49251", "code": "int main(int argc, char* argv[])\n{\n\tint n,age[100],i,s1=0,s2=0,s3=0,s4=0,sum;\n\tdouble a1,a2,a3,a4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&age[i]<=18){\n\t\t\ts1++;\n\n\t\t}\n\t\tif(age[i]>=19&&age[i]<=35){\n\t\t\ts2++;\n\t\t}\n if(age[i]>=36&&age[i]<=60){\n\t\t\ts3++;\n\t\t}\n if(age[i]>60){\n\t\t\ts4++;\n\t\t}\n\n\n\t}\n\tsum=s1+s2+s3+s4;\n\ta1=(double)s1/sum*100;\n a2 =(double)s2/sum*100;\n\ta3=(double)s3/sum*100;\n\ta4=(double)s4/sum*100;\n\tprintf(\"1-18: %.2lf\",a1);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",a2);\nprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",a3);\nprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",a4);\nprintf(\"%%\\n\");\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49252", "code": "int main(){\n\tint n;\n\tint A=0,B=0,C=0,D=0;\n\tint i;\n//\tint sum=0;\n\t\n\tint ew[100];\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i<=n-1;i++){\n\t\tscanf(\"%d\",&ew[i]);\n\t}\n//\tfor(i=0;i<=n-1;i++){\n//\t\tsum+=ew[i];\n//\t}\n\tfor(i=0;i<=n-1;i++){\n\t\tif(ew[i]<=18&&ew[i]>=1){\n\t\t\tA++;\n\t\t}\n\t\tif(ew[i]<=35&&ew[i]>=19){\n\t\t\tB++;\n\t\t}\n\t\tif(ew[i]<=60&&ew[i]>=36){\n\t\t\tC++;\n\t\t}if(ew[i]>=61){\n\t\t\tD++;\n\t\t}\n\t}\n\ta=(A*1.0/n)*100;\n\tb=(B*1.0/n)*100;\n\tc=(C*1.0/n)*100;\n\td=(D*1.0/n)*100;\n\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",a,b,c,d);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49253", "code": "int main(){\n int n,t,i;\n double m,a,b,c,d;\n a=0;\n b=0;\n c=0;\n d=0;\n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d\",&t);\n if(t>=1&&t<=18){\n a++;\n }else if(t>=19&&t<=35){\n b++;\n }else if(t>=36&&t<=60){\n c++;\n }else if(t>=61){\n d++;\n }\n }\n m=n;\n a=100*a/m;\n b=100*b/m;\n c=100*c/m;\n d=100*d/m;\nprintf(\"1-18: %.2lf%%\\n\",a);\nprintf(\"19-35: %.2lf%%\\n\",b);\nprintf(\"36-60: %.2lf%%\\n\",c);\nprintf(\"Over60: %.2lf%%\\n\",d);\nreturn 0;\n}\n"} +{"label": "99", "index": "49254", "code": "/*************************\n ***??:??? 1200012776\n ***????:?????\n ***??:2012?9?27?\n *************************/\nint main()\n{\n\tint i, n, age_1_18 = 0, age_19_35 = 0, age_36_60 = 0, age_60 = 0;\n\t//???????n,1-18???,19-35???,36-60??,60????,???n?????\n\t\n\tcin >> n;\t//??n\n\tint age[100];\n\tdouble age_1_18_percent, age_19_35_percent, age_36_60_percent, age_60_percent;\n\t//????1-18???,19-35???,36-60??,60??????\n\n\tfor (i = 1; i <= n; i++)\t//??????\n\t{\n\t\tcin >> age[i];\t//???i?????\n\t\tif (age[i] >= 1 && age[i] <= 18)\t//??????????1-18\n\t\t{\n\t\t\tage_1_18 = age_1_18 + 1 ;\t//????age_1_18??\n\t\t}\n\t\tif (age[i] >= 19 && age[i] <= 35)\t//??????????19-35\n\t\t{\n\t\t\tage_19_35 = age_19_35 + 1 ;\t//????age_19_35??\n\t\t}\n\t\tif (age[i] >= 36 && age[i] <= 60)\t//??????????36-60\n\t\t{\n\t\t\tage_36_60 = age_36_60 + 1 ;\t//???age_39_60??\n\t\t}\n\t\tif (age[i] > 60)\t//??????????60\n\t\t{\n\t\t\tage_60 = age_60 + 1;\t//???age_60??\n\t\t}\n\t};\n\tage_1_18_percent = age_1_18 * 1.0 / n;\t//?1-18????????1-18????????????,???\n\tage_19_35_percent = age_19_35 * 1.0 / n;\n\tage_36_60_percent = age_36_60 * 1.0 / n;\n\tage_60_percent = age_60 * 1.0 / n;\n\tcout << fixed << setprecision(2) << \"1-18: \" << age_1_18_percent * 100 << \"%\" <=0&&a[i]<=18)\n\t\t\tb++;\n\t\tif(a[i]>18&&a[i]<=35)\n\t\t\tc++;\n\t\tif(a[i]>35&&a[i]<=60)\n\t\t\td++;\n\t\tif(a[i]>60)\n\t\t\te++;\n\t}\n B=(double)b/n;\n\t\t C=(double)c/n;\n\t\t D=(double)d/n;\n\t\t E=(double)e/n;\n\t\t printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",B*100,C*100,D*100,E*100);\n\n\t\treturn 0;\n}\n\n"} +{"label": "99", "index": "49256", "code": "int main()\n{\n\tint n,an[100],i,j;\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&an[i]<=18) a++;\n\t\tif(an[i]>=19&&an[i]<=35) b++;\n\t\tif(an[i]>=36&&an[i]<=60) c++;\n\t\tif(an[i]>60) d++;\n\t}\n\ta=100*a/n;\n\tb=100*b/n;\n\tc=100*c/n;\n\td=100*d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\",d);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49257", "code": "\nint main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[101];\n\tdouble q=0,w=0,e=0,r=0;\n\tfor(int i=1;i<=n;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t\tif(a[i]<=18){\n\t\t\tq++;}\n\t\tif(a[i]<=35&&a[i]>=19){\n\t\t\tw++;}\n\t\tif(a[i]<=60&&a[i]>=36){\n\t\t\te++;}\n\t\tif(a[i]>=61){\n\t\t\tr++;}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",q/n*100);\n\tprintf(\"19-35: %.2lf%%\\n\",w/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",e/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",r/n*100);\n\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49258", "code": "int main(){\n\tint i,n,a=0,b=0,c=0,d=0;\n\tint year[sum];\n\tdouble a1,b1,c1,d1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i> n; //??\n\tint m[100]; //????\n\t//cout<<\"???????\"<> m[i]; //??\n\t\tif(m[i] <= 18) //????\n\t\t{a++;}\n\t\telse if(m[i] <= 35)\n\t\t{b++;}\n\t\telse if(m[i] <= 60)\n\t\t{c++;}\n\t\telse \n\t\t{d++;}\n\t}\n\t//cout<<\"????????\"<>n;\n float a=0, b=0, c=0, d=0;\n int x[n];\n for(int i=0;i>x[i];\n }\n for(int j=0;j=1&&x[j]<=18) a++;\n else if(x[j]>=19&&x[j]<=35) b++;\n else if(x[j]>=36&&x[j]<=60) c++;\n else if(x[j]>60) d++;\n }\n float a1= 100.0*a/n;\n float b1= 100.0*b/n;\n float c1= 100.0*c/n;\n float d1= 100.0*d/n;\n printf(\"1-18: %.2f%%\\n\", a1);\n printf(\"19-35: %.2f%%\\n\", b1);\n printf(\"36-60: %.2f%%\\n\", c1);\n printf(\"60??: %.2f%%\\n\", d1);\n return 0;\n}\n"} +{"label": "99", "index": "49261", "code": "\nmain()\n{\n\tdouble b=0;double c=0;double d=0;double e=0;\n\tint n;int i;\n\tcin>>n;\n int a[100];\n\tfor(i=0;i>a[i];\n for (i=0;i1)&&(a[i]==18||a[i]<18))b++;\n if((a[i]==19||a[i]>19)&&(a[i]==35||a[i]<35))c++;\n\t\tif((a[i]==36||a[i]>36)&&(a[i]==60||a[i]<60))d++;\n if(a[i]==61||a[i]>61)e++;\n\t}\n double m=b/n*100;double u=c/n*100;double o=d/n*100; double p=e/n*100;\n\tcout<<\"1-18: \"; printf(\"%.2lf\",m);cout<<\"%\\n\";\n\tcout<<\"19-35: \"; printf(\"%.2lf\",u);cout<<\"%\\n\";\n\tcout<<\"36-60: \"; printf(\"%.2lf\",o);cout<<\"%\\n\";\n\tcout<<\"60??: \"; printf(\"%.2lf\",p);cout<<\"%\\n\";\n}"} +{"label": "99", "index": "49262", "code": "int main()\n{\n\tint n,i;\n\tint a;\n\tdouble A=0;\n\tdouble B=0;\n\tdouble C=0;\n\tdouble D=0;\n\tdouble e,f,g,h;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=1&&a<=18)\n\t\t\tA+=1;\n\t\tif(a>=19&&a<=35)\n\t\t\tB+=1;\n\t\tif (a>=36&&a<=60)\n\t\t\tC+=1;\n\t\tif(a>=61)\n\t\t\tD+=1;\n\t}\n\t//printf(\"%lf %lf %lf %lf\",A,B,C,D);\n\te=A/n*100;f=B/n*100;g=C/n*100;h=D/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",e);\n\tprintf(\"19-35: %.2lf%%\\n\",f);\n\tprintf(\"36-60: %.2lf%%\\n\",g);\n\tprintf(\"60??: %.2lf%%\",h);\nreturn 0;\n}"} +{"label": "99", "index": "49263", "code": "int main()\n{\n int n,i;\n double m1,m2,m3,m4,s1=0,s2=0,s3=0,s4=0,a[200];\n scanf(\"%d\",&n);\n for(i=0;i=19&&a[i]<=35){\n s2+=1;\n\t }\n\t if(a[i]>=36&&a[i]<=60){\n\t\t s3+=1;\n\t }\n\t if(a[i]>=61){\n\t\t s4+=1;\n\t }\n }\n m1=s1/n*100;\n m2=s2/n*100;\n m3=s3/n*100;\n m4=s4/n*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",m1,m2,m3,m4);\n return 0;\n}\n"} +{"label": "99", "index": "49264", "code": "int main()\n{\n\tint n;\n\tint sz[100];\n\n\tint i;\n\tint a=0,b=0,c=0,d=0;\n \n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)){\n\t\t\tb++;}\n\t\tif((nianling<=60)&&(nianling>=36)){\n\t\t\tc++;}\n\t\tif(nianling>60){\n\t\t\td++;}\n\t}\n\the=a+b+c+d;\n\ta1=1.0*a/he*100;\n\tb1=1.0*b/he*100;\n\tc1=1.0*c/he*100;\n\td1=1.0*d/he*100;\n\tprintf(\"1-18: %.2lf%%\\n\",a1);\n\tprintf(\"19-35: %.2lf%%\\n\",b1);\n\tprintf(\"36-60: %.2lf%%\\n\",c1);\n\tprintf(\"60??: %.2lf%%\\n\",d1);\n\treturn 0;\n}"} +{"label": "99", "index": "49266", "code": "int main()\n{\n int n,a[100],b1=0,b2=0,b3=0,b4=0,i;\n\tdouble c1,c2,c3,c4;\n\tc1=0.0;\n\tc2=0.0;\n\tc3=0.0;\n\tc4=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35)\n\t\t{\n\t\t\tb2++;\n\t\t}\n\t\tif(a[i]>35&&a[i]<=60)\n\t\t{\n\t\t\tb3++;\n\t\t}\n\t\tif(a[i]>60){\n\t\t\tb4++;\n\t\t}\n\t}\n\tc1=(double)b1*100/n;\n\tc2=(double)b2*100/n;\n\tc3=(double)b3*100/n;\n\tc4=(double)b4*100/n;\n\tprintf(\"1-18: %.2lf%%\\n\",c1);\n printf(\"19-35: %.2lf%%\\n\",c2);\n printf(\"36-60: %.2lf%%\\n\",c3);\n printf(\"60??: %.2lf%%\\n\",c4);\n\treturn 0;\n}"} +{"label": "99", "index": "49267", "code": "int main()\n{\n\tint a,b,c,d;\n\tint i,n,t;\n\ta=b=c=d=0;\n\tscanf(\"%d\",&n);\n\tfor (i=1; i<=n; i++)\n\t{\n\t\tscanf(\"%d\", &t);\n\t\tif (t<=18)\n\t\t\ta++;\n\t\telse\n\t\t\tif (t>=19&&t<=35)\n\t\t\tb++;\n\t\t else \n\t\t\t\tif(t>=36&&t<=60)\n\t\t\t c++;\n\t\t else\n\t\t\t\t\tif (t>=61)\n\t\t\t d++;\n\t}\n\tdouble e,f,g,h;\n\te=a*1.0/n*100;\n\tf=b*1.0/n*100;\n\tg=c*1.0/n*100;\n\th=d*1.0/n*100;\n\tprintf(\"1-18: %.2lf%\\n\", e);\n\tprintf(\"19-35: %.2lf%\\n\", f);\n\tprintf(\"36-60: %.2lf%\\n\", g);\n\tprintf(\"60??: %.2lf%\\n\", h);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49268", "code": "void main()\n{\n\tfloat n,m,i,a=0,b=0,c=0,d=0,e,f,g,h;\n scanf(\"%f\",&n); \n\tfor(i=0;i0)&&(m<19)) a++;\n\t if((m>18)&&(m<36)) b++;\n\t if((m>35)&&(m<61)) c++;\n\t if(m>60) d++;\n\t}\n\te=(float)(100*a/n);\n f=(float)(100*b/n);\n g=(float)(100*c/n);\n h=(float)(100*d/n);\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",e,f,g,h);\n}\n"} +{"label": "99", "index": "49269", "code": "int main() //???\n{\n\tint i,a[100];\n\tdouble n,x=0,y=0,z=0,w=0; //????\n\tcin>>n; //??\n\tfor(i=0;i>a[i]; //?????? \n\t\tif (a[i]<=18&&a[i]>=1)x=x+1; \n\t\tif (a[i]<=35&&a[i]>=19)y=y+1;\n\t\tif (a[i]<=60&&a[i]>=36)z=z+1;\n\t\tif (a[i]>60)w=w+1; //??????? \n\t}\n\tx=100*(x/n);\n\ty=100*(y/n);\n\tz=100*(z/n);\n\tw=100*(w/n); //????? \n\tcout<<\"1-18: \";\n\tprintf(\"%.2lf\",x);\n\tcout<<\"%\"<=19&&age[i]<=35)\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\tif (age[i]>=36&&age[i]<=60)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\tif (age[i]>60)\n\t\t{\n\t\t\td++;\n\t\t}\n\t}\n\tagea=(double)a/n*100;\n\tageb=(double)b/n*100;\n\tagec=(double)c/n*100;\n\taged=(double)d/n*100;\n\tprintf(\"1-18: %.2lf\",agea);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",ageb);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",agec);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",aged);\n\tprintf(\"%%\\n\");\n\treturn 0;\n}\n\t"} +{"label": "99", "index": "49271", "code": "int main(){\n int sz[100];\n int i,n;\n scanf(\"%d\",&n);\n double b1,b2,b3,b4;\n int sum1,sum2,sum3,sum4;\n sum1=sum2=sum3=sum4=0; \n for(i=0;i=19&&sz[i]<=35){\n sum2++;\n }\n else if(sz[i]>=36&&sz[i]<=60){\n sum3++;\n }\n else if(sz[i]>60){\n sum4++;\n }\n }\n\n b1=(double)100*sum1/n;\n b2=(double)100*sum2/n;\n b3=(double)100*sum3/n;\n b4=(double)100*sum4/n;\n\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n\",b1,b2);\nprintf(\"36-60: %.2lf%%\\n60??: %.2lf%%\\n\",b3,b4);\nreturn 0;\n}\n \n"} +{"label": "99", "index": "49272", "code": "int main(){\n\tint n,a[101],i,b=0,c=0,d=0,e=0;\n\tdouble bb,cc,dd,ee;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35) c++;\n\t\telse if(a[i]>=36&&a[i]<=60) d++;\n\t\telse e++;\n\t}\n\tbb=100.0*b/n;\n\tcc=100.0*c/n;\n\tdd=100.0*d/n;\n\tee=100.0*e/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",bb,cc,dd,ee);\n\treturn 0;\n}\n\t\n"} +{"label": "99", "index": "49273", "code": "int main()\n{\n\tint n,i;\n\tint a=0,b=0,c=0,d=0;\n\tint sz[100];\n\tdouble e,r,j,m;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i18&&sz[i]<=35)\n\t\t{\n\t\t\tb=b+1;\n\t\t}\n\t\telse if(sz[i]>35&&sz[i]<=60)\n\t\t{\n\t\t\tc=c+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\td=d+1;\n\t\t}\n\t}\n\te=a*1.0/n;\n\tr=b*1.0/n;\n\tj=c*1.0/n;\n\tm=d*1.0/n;\n\tprintf(\"1-18: %.2lf%%\\n\",e*100);\n\tprintf(\"19-35: %.2lf%%\\n\",r*100);\n\tprintf(\"36-60: %.2lf%%\\n\",j*100);\n\tprintf(\"60??: %.2lf%%\\n\",m*100);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49274", "code": "int main()\n{\n\tint n,i,j,k;\n\tdouble a=0.00,b=0.00,c=0.00,d=0.00;\n\tint p[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&age[i]<=35)\n\t\t\tb++;\n\t\telse if (age[i]>=36&&age[i]<=60)\n\t\t\tc++;\n\t\telse if (age[i]>=61)\n\t\t\td++;}\n\taf=(double)100*a/n;\n\tbf=(double)100*b/n;\n\tcf=(double)100*c/n;\n\tdf=(double)100*d/n;\n\tprintf(\"1-18: %.2lf%%\", af);\n\tprintf (\"\\n19-35: %.2lf%%\", bf);\n\tprintf (\"\\n36-60: %.2lf%%\", cf);\n\tprintf (\"\\n60??: %.2lf%%\", df);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49276", "code": "int main()\n{\n\tint n,i,p[100],a[4]={0,0,0,0};\n\tdouble b[4];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18){\n\t\t\t\tb++;\n\t\t\t}\n\t\t if(a[i]>=19&&a[i]<=35){\n\t\t\t\tc++;\n\t\t\t}\n if(a[i]>=36&&a[i]<=60){\n\t\t\t\td++;\n\t\t\t}\n if(a[i]>60){\n\t\t\t\te++;\n\t\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",100*b/sum);\n\tprintf(\"19-35: %.2lf%%\\n\",100*c/sum);\n\tprintf(\"36-60: %.2lf%%\\n\",100*d/sum);\n\tprintf(\"60??: %.2lf%%\\n\",100*e/sum);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49278", "code": "int main()\n{\nint a=0,b=0,c=0,d=0,n,i;\nint sz[100];\nscanf (\"%d\",&n);\nfor (i=0;i=19&&sz[i]<=35)\n b++;\n else if(sz[i]>=36&&sz[i]<=60)\n c++;\n else if(sz[i]>60)\n d++;\n}\nprintf(\"1-18: %.2lf%%\\n\",a*100.0/n);\nprintf(\"19-35: %.2lf%%\\n\",b*100.0/n);\nprintf(\"36-60: %.2lf%%\\n\",c*100.0/n);\nprintf(\"Over60: %.2lf%%\\n\",d*100.0/n);\nreturn 0;\n}"} +{"label": "99", "index": "49279", "code": "int main(){\n\tint n=0,i=0,age=0;\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18)&&(age<=35)){\n\t\t\tb=b+1;\n\t\t}\n\t\tif((age>35)&&(age<=60)){\n\t\t\tc=c+1;\n\t\t}\n\t\tif(age>60){\n\t\t\td=d+1;\n\t\t}\n\t}\n\tdouble A=0,B=0,C=0,D=0;\n\tA=((double)(a*100/n));\n\tB=((double)(b*100/n));\n\tC=((double)(c*100/n));\n\tD=((double)(d*100/n));\n printf(\"1-18: %.2lf%%\\n\",A);\n printf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",C);\n printf(\"60??: %.2lf%%\\n\",D);\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49280", "code": "int main(){\n\tint n,i;\n\tint nianlin[100];\n\tint a=0,b=0,c=0,d=0;\n\tdouble e,f,g,h;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1)\n\t\t{\n\t\t\ta+=1;\n\t\t}\n\t\tif(nianlin[i]<=35&&nianlin[i]>=19)\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\tif(nianlin[i]<=60&&nianlin[i]>=36)\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\tif(nianlin[i]>=61)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t}\n\te=a*1.0/n*100;\n\tf=b*1.0/n*100;\n\tg=c*1.0/n*100;\n\th=d*1.0/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",e);\n\tprintf(\"19-35: %.2lf%%\\n\",f);\n\tprintf(\"36-60: %.2lf%%\\n\",g);\n\tprintf(\"60??: %.2lf%%\\n\",h);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49281", "code": "// ?????9.cpp : ??????????????\n//?????\n//???1200018415\nint main()\n{\n\tint k,i,y;\ndouble a1 = 0,b1 = 0,c1 = 0,d1 = 0; //?????a1,b1,c1,d1????0\n\tcin>>k; //????\n\tdouble a,b,c,d; //???????\n\tfor(i = 1;i <= k;i++) //????\n\t{\n\tcin>>y; //????\n\t\tif(y <= 18) //????\n\t\t\ta1++; \n\t\tif((y >= 19) && (y <= 35)) //????\n\t\t\tb1++; \n\t\tif((y >= 36) && (y <= 60)) //????\n\t\t\tc1++; \n\t\tif(y >= 61) //????\n\t\t\td1++; \n\t}\na=a1 / k * 100; //????????\nb=b1 / k * 100; //?????????\nc=c1 / k * 100; //?????????\nd=d1 / k * 100; //?????????\ncout<<\"1-18: \"<=y){\n scanf(\"%lf\",&n);\n if (n<=18){\n a=a+1;\n }\n else if (n>18&&n<=35){\n b=b+1;\n }\n else if (n>35&&n<=60){\n c=c+1;\n }\n else{\n d=d+1;\n }\n y=y+1;\n }\n a=1.0*a/x*100.0;\n b=1.0*b/x*100.0;\n c=1.0*c/x*100.0;\n d=1.0*d/x*100.0;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a,b,c,d);\n return 0;\n}\n\n"} +{"label": "99", "index": "49283", "code": "int main()\n{\n\tint n, x, i;\n\tdouble a = 0, b = 0, c = 0, d = 0;\n\tcin >> n;\n\tfor ( i=1 ; i<=n; i++)\n\t{\n\t\tcin >> x;\n\t if ((x >= 1) && (x <= 18)) a = a + 100.0 / n;\n\t if ((x >= 19) && (x <= 35)) b = b + 100.0 / n;\n\t\tif ((x >= 36) && (x <= 60)) c = c + 100.0 / n;\n\t\tif ((x >= 61) && (x <= 100)) d = d + 100.0 / n;\n\t}\n\tcout << fixed << setprecision(2) << \"1-18: \" << a << \"%\"<< endl << \"19-35: \" << b << \"%\"<< endl << \"36-60: \" << c << \"%\"<< endl << \"60??: \" << d << \"%\";\n\treturn 0;\n}"} +{"label": "99", "index": "49284", "code": "\nint main()\n{\n int n,i,a=0,b=0,c=0,d=0;\n double e,f,g,h,m,j,k,l;\n double age[100];\n scanf(\"%d\",&n);\n for(i=0;i=19&&age[i]<=35){\n\t b+=1;\n }\n if(age[i]>=36&&age[i]<=60){\n\t c+=1;\n }\n else if(age[i]>=61){\n\t d+=1;\n }\n e=(double)a/n;\n f=(double)b/n;\n g=(double)c/n;\n h=(double)d/n;\n m=100*e;\n j=100*f;\n k=100*g;\n l=100*h;\n }\n printf(\"1-18: %.2lf%\\n\",m);\n printf(\"19-35: %.2lf%\\n\",j);\n printf(\"36-60: %.2lf%\\n\",k);\n printf(\"60??: %.2lf%\\n\",l);\n return 0;\n}\n"} +{"label": "99", "index": "49285", "code": "int main(){\n int n;\n scanf(\"%d\",&n);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int nl[100];\n for(int i=0;i=19&&nl[i]<=35){\n b++;\n }\n if(nl[i]>=36&&nl[i]<=60){\n c++;\n }\n if(nl[i]>60){\n d++;\n }\n }\n double e,f,g,h;\n e=(double)a/n*100;\n f=(double)b/n*100;\n g=(double)c/n*100;\n h=(double)d/n*100;\n printf(\"1-18: %.2lf%%\\n\",e);\n printf(\"19-35: %.2lf%%\\n\",f);\n printf(\"36-60: %.2lf%%\\n\",g);\n printf(\"Over60: %.2lf%%\",h);\n return 0;\n \n}"} +{"label": "99", "index": "49286", "code": "void main()\n{\n\tint a[100];\n\tint i,n;\n\tfloat m=0,j=0,p=0,q=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i> n;\n\tint l[n];\n\tfor (i = 0; i < n; i++) {//??????\n\t\tcin >> l[i];\n\t\tif (l[i] <= 18 && l[i] >= 1)\n\t\t\ta++;\n\t\tif (l[i] <= 35 && l[i] >= 19)\n\t\t\tb++;\n\t\tif (l[i] <= 60 && l[i] >= 36)\n\t\t\tc++;\n\t\tif (l[i] >= 61)\n\t\t\td++;\n\t}\n\ta = 100 * a / n;\n\tb = 100 * b / n;\n\tc = 100 * c / n;\n\td = 100 * d / n;\n\tprintf(\"1-18: %.2f%c\\n19-35: %.2f%c\\n36-60: %.2f%c\\n60??: %.2f%c\", a, e, b, e,\n\t\t\tc, e, d, e);\n\treturn 0;\n}"} +{"label": "99", "index": "49290", "code": "\nint main()\n{\n\tint n,i;\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tint s[100]={0};\n\tfor(i=0;i18))\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\tif((s[i]<=60)&&(s[i]>35))\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\tif(s[i]>60)\n\t\t{\n\t\t\td++;\n\t\t}\n\t}\n\ta/=n;\n\tb/=n;\n\tc/=n;\n\td/=n;\n\t\n\tprintf(\"1-18: %.2lf%%\\n\",a*100.0);\n\tprintf(\"19-35: %.2lf%%\\n\",b*100.0);\n\tprintf(\"36-60: %.2lf%%\\n\",c*100.0);\n\tprintf(\"60??: %.2lf%%\\n\",d*100.0);\n\treturn 0;\n}"} +{"label": "99", "index": "49291", "code": "int main()\n{\n\tint n,b[100],i;\n\tint sum1=0,sum2=0,sum3=0,sum4=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=19&&b[i]<=35) sum2++;\n\t\telse if(b[i]>=36&&b[i]<=60) sum3++;\n\t\telse sum4++;\n\t}\n\tdouble a,B,c,d;\n\ta=100*(double)sum1/n;\n\tB=100*(double)sum2/n;\n\tc=100*(double)sum3/n;\n\td=100*(double)sum4/n;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n printf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",c);\n printf(\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49292", "code": "int main()\n{\n\tint n,a[1000],i;\n\tdouble d=0,e=0,f=0,g=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0){\n\t\tscanf(\"%lf\",&x);\n\t\tif(x>=1&&x<=18)\n\t\t\ta+=1;\n\t\tif(x>=19&&x<=35)\n\t\t\tb+=1;\n\t\tif(x>=36&&x<=60)\n\t\t\tc+=1;\n\t\tif(x>60)\n\t\t\td+=1;\n\t\tn=n-1;\n\t}\n\tave1=a/(a+b+c+d)*100;\n\tave2=b/(a+b+c+d)*100;\n\tave3=c/(a+b+c+d)*100;\n\tave4=d/(a+b+c+d)*100;\n\tprintf(\"1-18: %.2lf%%\\n\",ave1);\n\tprintf(\"19-35: %.2lf%%\\n\",ave2);\n\tprintf(\"36-60: %.2lf%%\\n\",ave3);\n\tprintf(\"60??: %.2lf%%\\n\",ave4);\n\treturn 0;\n}"} +{"label": "99", "index": "49294", "code": "int main(){\n\tint a=0,b=0,c=0,d=0;\n\tint n,age;\n\tint i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&age<36){\n\t\t\tb++;\n\t\t\t}\n\t\telse if (age>=36&&age<=60){\n\t\t\tc++;\n\t\t}\n\telse if(age>60){\n\t\t\td++;\n\t\t\t}\n\t\t\n\t}\n\tprintf(\"1-18: %.2lf\",a*100.0/n);\n\tprintf(\"%%\\n\");\n printf(\"19-35: %.2lf\",b*100.0/n);\n\tprintf(\"%%\\n\");\n printf(\"36-60: %.2lf\",c*100.0/n);\n\tprintf(\"%%\\n\");\n printf(\"60??: %.2lf\",d*100.0/n);\n\tprintf(\"%%\\n\");\n\treturn 0;\n}\n\n\t\t\n\t\n"} +{"label": "99", "index": "49295", "code": "int main()\n{\n\tint n, i=0, sum1=0, sum2=0, sum3=0, sum4=0;\n\tint age[100];\n\tdouble per1, per2, per3, per4;\n\tscanf(\"%d\", &n);\n\tfor(i=0;i=19&&age[i]<=35)\n\t\t\t{\n\t\t\t\tsum2+=1;\n\t\t\t}else\n\t\t\t{\n\t\t\t\tif(age[i]>=36&&age[i]<=60)\n\t\t\t\t{\n\t\t\t\t\tsum3+=1;\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tsum4+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tper1=sum1*1.0/n*100;\n\tper2=sum2*1.0/n*100;\n\tper3=sum3*1.0/n*100;\n\tper4=sum4*1.0/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\", per1, per2, per3, per4);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49296", "code": "\nint main()\n{ int a[100],n,i;\n double s1=0,s2=0,s3=0,s4=0;\n scanf(\"%d\",&n);\n for(i=0;i=19&&a[i]<=35)\n\t s2=s2+1;\n else if(a[i]>=36&&a[i]<=60)\n\t s3=s3+1;\n else s4=s4+1;\n }\n printf(\"1-18: %.2lf%%\\n\",s1/n*100);\n printf(\"19-35: %.2lf%%\\n\",s2/n*100);\n printf(\"36-60: %.2lf%%\\n\",s3/n*100);\n printf(\"60??: %.2lf%%\\n\",s4/n*100);\n\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49297", "code": "void main()\n{\n\tint n,i,a[100];\n\tdouble g,k,t,m,b,c,d,f;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)\n\t\t\tk=k+1;\n\t\tif(a[i]>=19&&a[i]<=35)\n\t\t\tt=t+1;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\tm=m+1;\n\t\telse if(a[i]>=60)\n\t\t\tb=b+1;\n\t}\n\tg=k/n*100;\n\tc=t/n*100;\n\td=m/n*100;\n\tf=b/n*100;\n printf(\"1-18: %.2lf%%\\n\",g);\n\t printf(\"19-35: %.2lf%%\\n\",c);\n\t printf(\"36-60: %.2lf%%\\n\",d);\n\t printf(\"60??: %.2lf%%\\n\",f);\n}"} +{"label": "99", "index": "49298", "code": "int main()\n{\n\tint n,i;\n\tdouble a,q=0,w=0,e=0,r=0;\n\tscanf(\"%d\",&n);\n\tdouble z,x,c,v;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\t\n\t\tscanf(\"%lf\",&a);\n\t\tif(a>=1&&a<=18)\n\t\t{q++;}\n\t\telse if(a>=19&&a<=35)\n\t\t{w++;}\n\t\telse if(a>=36&&a<=60)\n\t\t{e++;}\n\t\telse\n\t\t{r++;}\n }\n\tz=(q/n)*100;\n\tx=(w/n)*100;\n\tc=(e/n)*100;\n\tv=(r/n)*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",z,x,c,v);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49299", "code": "int main()\n{\n\tint n,p[100],a=0,b=0,c=0,d=0,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&p[i]<=35){\n\t\t\tb++;\n\t\t}\n\t\telse if(p[i]>=36&&p[i]<=60){\n\t\t\tc++;\n\t\t}\n\t\telse{\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)a/n*100);\n printf(\"19-35: %.2lf%%\\n\",(double)b/n*100);\n printf(\"36-60: %.2lf%%\\n\",(double)c/n*100);\n printf(\"60??: %.2lf%%\\n\",(double)d/n*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49300", "code": "\nint main(int argc, char *argv[])\n{\n\tint n,i,age,one=0,two=0,three=0,four=0;\n\tdouble on,tw,th,fo;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&p<=35)\n b++;\n else if(p>=36&&p<=60)\n c++;\n else \n d++;\n }\n printf(\"1-18: %.2lf%%\\n\",a*100.0/n);\n printf(\"19-35: %.2lf%%\\n\",b*100.0/n);\n printf(\"36-60: %.2lf%%\\n\",c*100.0/n);\n printf(\"Over60: %.2lf%%\\n\",d*100.0/n);\n \n \n \n return 0;\n \n}\n"} +{"label": "99", "index": "49303", "code": "int main(){\nint i,n,u18,u35,u60,up60;\nu18=0;\nu35=0;\nu60=0;\nup60=0;\ndouble un18,un35,un60,upper60;\ni=1;\nscanf(\"%d\",&n);\nwhile(i<=n){\nint x;\nscanf(\"%d\",&x);\nif(x<=18){\nu18++;\ni++;}\nelse if(x>18&&x<=35){\nu35++;\ni++;}\nelse if(x>35&&x<=60){\nu60++;\ni++;}\nelse if(x>60){\nup60++;\ni++;}\nelse{\nu35++;\ni++;}\n}\nun18=100.0*u18/n;\nun35=100.0*u35/n;\nun60=100.0*u60/n;\nupper60=100.0*up60/n;\nprintf(\"1-18: %.2lf%%\\n\",un18);\nprintf(\"19-35: %.2lf%%\\n\",un35);\nprintf(\"36-60: %.2lf%%\\n\",un60);\nprintf(\"60??: %.2lf%%\\n\",upper60);\n\nreturn 0;\n}\n"} +{"label": "99", "index": "49304", "code": "int main(){\nint n,i;\nscanf(\"%d\",&n);\nint b[n];\nfor(i=0;i0&&b[i]<=18){\n\t\ta++;\n\t}else if(b[i]>=19&&b[i]<=35){\n\t\tc++;\n\t}else if(b[i]>=36&&b[i]<=60){\n\t\td++;\n\t}else if(b[i]>=61&&b[i]<=100){\n\t\te++;\n\t}\t\n\t}\nf=100*a/n;\ng=100*c/n;\nh=100*d/n;\nj=100*e/n;\nprintf(\"1-18: \");\nprintf(\"%.2lf\",f);\nprintf(\"%%\\n\");\nprintf(\"19-35: \");\nprintf(\"%.2lf\",g);\nprintf(\"%%\\n\");\nprintf(\"36-60: \");\nprintf(\"%.2lf\",h);\nprintf(\"%%\\n\");\nprintf(\"Over60: \");\nprintf(\"%.2lf\",j);\nprintf(\"%%\");\n\n\n\nreturn 0;\n\n}"} +{"label": "99", "index": "49305", "code": "int main()\n{\n\tint n,i;\n\tdouble b=0,c=0,d=0,f=0;\n\tdouble g,h,p,q;\n\tint a[1000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0&&n<=100;\n scanf(\"%d\",&n);\n a=b=c=d=0;\n for (i=0;i=19&&p<=35)\n b++;\n else if(p>=36&&p<=60)\n c++;\n else if(p>=61)\n d++;\n }\n a=a/n*100;\n b=b/n*100;\n c=c/n*100;\n d=d/n*100;\n printf(\"1-18: %.2lf%%\\n\",a);\n printf(\"19-35: %.2lf%%\\n\",b);\n printf(\"36-60: %.2lf%%\\n\",c);\n printf(\"60??: %.2lf%%\\n\",d);\nreturn 0;\n }\n"} +{"label": "99", "index": "49307", "code": "int main() {\nint i,n,x;\ndouble a,b,c,d,e,f,g,h;\nscanf(\"%d\",&n);\nfor (i=1;i<=n;i++) {\nscanf(\"%d\",&x);\nif (x<19) a++;\nelse if (x<36) b++;\nelse if (x<61) c++;\nelse d++;\n}\ne=a/n*100;\nf=b/n*100;\ng=c/n*100;\nh=d/n*100;\nprintf(\"1-18: %.2lf%%\\n\",e);\nprintf(\"19-35: %.2lf%%\\n\",f);\nprintf(\"36-60: %.2lf%%\\n\",g);\nprintf(\"60??: %.2lf%%\\n\",h);\n}"} +{"label": "99", "index": "49308", "code": "int main()\n{\n\tint i,n,x=0,y=0,z=0,p=0,a;\n\tdouble X,Y,Z,P;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=1&&a<=18)x++;\n\t\tif(a>=19&&a<=35)y++;\n\t\tif(a>=36&&a<=60)z++;\n\t\tif(a>60)p++;\n\t\t\n\t}\n\tX=1.0*x/n*100;\n\tY=1.0*y/n*100;\n\tZ=1.0*z/n*100;\n\tP=1.0*p/n*100;\n\t\n\tprintf(\"1-18: %.2lf%%\\n\",X);\n\tprintf(\"19-35: %.2lf%%\\n\",Y);\n printf(\"36-60: %.2lf%%\\n\",Z);\n printf(\"60??: %.2lf%%\",P);\n\t\n\treturn 0;\n\n\n\t\n\n}"} +{"label": "99", "index": "49309", "code": "int main (){\n int i,m,a=0,b=0,c=0,d=0;\n\tint yer[100];\n\tdouble q,w, e,r;\n\tscanf (\"%d\",&m);\nfor( i=0;i0&&m<=18){\n\t\t\t a+=1;\n\t\t }else if(m>18&&m<=35){\n\t\t b+=1;\n\t\t\t }else if(m>35&&m<=60){\n\t\t\t\t c+=1;\n\t\t\t }else if(m>60){\n\t\t\t\t d+=1;\n\t\t\t }\n\t }\n\t printf(\"1-18: %.2lf%%\\n\",e=100.00*a/n);\n\t printf(\"19-35: %.2lf%%\\n\",f=100.00*b/n);\n\t printf(\"36-60: %.2lf%%\\n\",g=100.00*c/n);\n\t printf(\"60??: %.2lf%%\\n\",h=100.00*d/n);\n\t return 0;\n }"} +{"label": "99", "index": "49311", "code": "void main()\n{\n\tint i,n,y[100]={0},a=0,b=0,c=0,d=0;\n\tdouble aa,bb,cc,dd;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=19&&nianling[i]<=35)\n\t\t{\n\t\t\tsum19+=1;\n\t\t}\n\t\tif(nianling[i]>=36&&nianling[i]<=60)\n\t\t{\n\t\t\tsum36+=1;\n\t\t}\n\t\tif(nianling[i]>=61)\n\t\t{\n\t\t\tsum61+=1;\n\t\t}\n\t}\n\tp18=(double)sum18/(double)n*100.0;\n\tp19=(double)sum19/(double)n*100.0;\n\tp36=(double)sum36/(double)n*100.0;\n\tp61=(double)sum61/(double)n*100.0;\n\tprintf(\"1-18: %.2lf%%\\n\",p18);\n\tprintf(\"19-35: %.2lf%%\\n\",p19);\n printf(\"36-60: %.2lf%%\\n\",p36);\n printf(\"60??: %.2lf%%\\n\",p61);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49313", "code": "void main()\n{\n int a[100],b,c,d,i,j,k,n;\n double w=0,x=0,y=0,z=0;\n scanf(\"%d\",&n);\n for(i=0;i18&&a[i]<36) x=x+1;\n if(a[i]>35&&a[i]<61) y=y+1;\n if(a[i]>60) z=z+1;\n }\n w=w/n*100;\n x=x/n*100;\n y=y/n*100;\n z=z/n*100;\nprintf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\\n\",w,x,y,z);\n}"} +{"label": "99", "index": "49314", "code": "int main(){\n int sz[100];\n\tint n;\n\tint i;\n\tdouble a,b,c,d;\n\tdouble A,B,C,D;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1)&&(sz[i]<=18)){\n\t\t\ta++;\n\t\t}else if((sz[i]>=19)&&(sz[i]<=35)){\n\t\t\tb++;\n\t\t}else if((sz[i]>=36)&&(sz[i]<=60)){\n\t\t\tc++;\n\t\t}else{\n\t\t\td++;\n\t\t}\n\t}\n\tA=a/n*100;\n\tB=b/n*100;\n\tC=c/n*100;\n\tD=d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",A);\n\tprintf(\"19-35: %.2lf%%\\n\",B);\n\tprintf(\"36-60: %.2lf%%\\n\",C);\n\tprintf(\"Over60: %.2lf%%\\n\",D);\n\t\nreturn 0;\n}"} +{"label": "99", "index": "49315", "code": "void main()\n{\n\tint n,a=0,b=0,c=0,d=0,i,t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&t);\n\t\tif(t<=18)\n\t\t\ta++;\n\t\telse if(t>=19&&t<=35)\n\t\t\tb++;\n\t\telse if(t>=36&&t<=60)\n\t\t\tc++;\n\t\telse if(t>=61)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",(double)a/(double)n*100,(double)b/(double)n*100,(double)c/(double)n*100,(double)d/(double)n*100);\n}\n\n\n"} +{"label": "99", "index": "49316", "code": "int main(){\n\tint n,i,e=0,d=0,f=0,g=0,k=0,a;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=19&&a<=35){\n\t\t\td++;\n\t\t}\n\t\tif(a>=36&&a<=60){\n\t\t\tf++;\n\t\t}\n\t\tif(a>=61) {\n\t\t\tg++;\n\t\t}\n\t}\n\tk=e+d+f+g;\n\tdouble x,y,z,w;\n\tx=(double)e/k*100;\n y=(double)d/k*100;\n z=(double)f/k*100;\n w=(double)g/k*100;\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n printf(\"19-35: %.2lf%%\\n\",y);\n printf(\"36-60: %.2lf%%\\n\",z);\n printf(\"60??: %.2lf%%\\n\",w);\n\treturn 0;\n}\n\t\t"} +{"label": "99", "index": "49317", "code": "int main ()\n{\n\tint n;\n\tint tmp;\n\tint i;\n\tint s1=0,s2=0,s3=0,s4=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=1&&tmp<=18){\n s1++; \n\t\t}\n\t\telse if (tmp>=19&&tmp<=35){\n\t\t\ts2++;\n\t\t}\n\t\telse if(tmp>=36&&tmp<=60){\n\t\t\ts3++;\n\t\t}\n\t\telse if(tmp>=61){\n\t\t\ts4++;\n\t\t}\n\t}\n\tint s;\n\ts=s1+s2+s3+s4;\n\tprintf(\"1-18: %.2lf%%\\n\",(double)100*s1/s);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)100*s2/s);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)100*s3/s);\n\tprintf(\"60??: %.2lf%%\",(double)100*s4/s);\n return 0;\n}"} +{"label": "99", "index": "49318", "code": "int main()\n{\n\tint n,i,a=0,b=0,c=0,e=0,m[100];\n\tdouble a1,b1,c1,e1;\n\n\t\tscanf(\"%d\",&n);\n\t\tfor(i=1;i<=n;i++)\n\t\t{\n\t\t\tscanf(\"%d\",&m[i]);\n\t\t}\n\t\tfor(i=1;i<=n;i++)\n\t\t{\n\t\t\tif(m[i]<19)\n\t\t\t{a=a+1;}\n\t\t\telse if((m[i]>18)&&(m[i]<36))\n\t\t\t{b=b+1;}\n else if((m[i]>35)&&(m[i]<61))\n\t\t\t{c=c+1;}\n\t\t\telse if(m[i]>60)\n\t\t\t{e=e+1;}\n\n\n\t\t}\n\t\ta1=(double)a/n;\n\t\tb1=(double)b/n;\n\t c1=(double)c/n;\n\t\te1=(double)e/n;\n\t\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",a1*100,b1*100,c1*100,e1*100);\n\t\treturn 0;\n\n}"} +{"label": "99", "index": "49319", "code": "int main()\n{\n\tint i;\n\tdouble n,m=0,t=0,x=0,y=0,age[100];\n\tscanf(\"%lf\",&n);\n for(i=0;i18&&age[i]<=35)\n\t{\n\t\tt=t+1;\n\t}\n\tif(age[i]>35&&age[i]<=60)\n\t{\n\t\tx=x+1;\n\t}else if(age[i]>60)\n\t{\n\t\ty=y+1;\n\t}\n\t}\n\tprintf(\"1-18: %.2lf\",m/n*100);printf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",t/n*100);printf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",x/n*100);printf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",y/n*100);printf(\"%%\\n\");\n return 0;\n}\n"} +{"label": "99", "index": "49320", "code": "int main(){\n int i,s1,s2,s3,s4,n,x;\n double c1,c2,c3,c4;\n scanf(\"%d\\n\",&n);\n s1=0;s2=0;s3=0;s4=0;\n for (i=1;i<=n;i=i+1){\n scanf(\"%d\",&x);\n if (x<=18) s1++;\n else if (x>18&&x<=35) s2++;\n else if (x>35&&x<=60) s3++;\n else s4++;\n }\n c1=1.0*s1/n*100;\n c2=1.0*s2/n*100;\n c3=1.0*s3/n*100;\n c4=1.0*s4/n*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",c1,c2,c3,c4);\n return 0;\n}"} +{"label": "99", "index": "49321", "code": "int main(){\n\tint n;\n\tint num;\n\tint i=1;\n\tint p=0,q=00,u=0,t=0;\n\tdouble a,b,c,d;\n\tscanf(\"%d\\n\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&num);\n\t\tif((num>=1)&&(num<=18)){\n\t\t\tp+=1;\n\t\t}else if((num>=19)&&(num<=35)){\n\t\t\tq+=1;\n\t\t}else if((num>=36)&&(num<=60)){\n\t\t\tu+=1;\n\t\t}else{\n\t\t\tif((num>60)&&(num<=100)){\n\n\t\t\tt+=1;\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\ta=p*1.0/n*100;\n\tb=q*1.0/n*100;\n\tc=u*1.0/n*100;\n\td=t*1.0/n*100;\n\tprintf (\"1-18: %.2lf%%\\n\",a);\n\tprintf (\"19-35: %.2lf%%\\n\",b);\n\tprintf (\"36-60: %.2lf%%\\n\",c);\n printf (\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}"} +{"label": "99", "index": "49322", "code": "int main(){\n\tint n,i,age;\n scanf(\"%d\",&n);\n\tdouble a=0,b=0,c=0,d=0;\n for(i=0;i=1 && a[i]<=18)\n\t\t{\n\t\t\tt1++;\n\t\t\tsum++;\n\t\t}\n\t\telse if(a[i]<=35)\n\t\t{\n\t\t\tt2++;\n\t\t\tsum++;\n\t\t}\n\t\telse if(a[i]<=60)\n\t\t{\n\t\t\tt3++;\n\t\t\tsum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tt4++;\n\t\t\tsum++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2f%%\\n\", (float)t1/sum*100);\n\tprintf(\"19-35: %.2f%%\\n\", (float)t2/sum*100);\n\tprintf(\"36-60: %.2f%%\\n\", (float)t3/sum*100);\n\tprintf(\"60??: %.2f%%\\n\", (float)t4/sum*100);\n}"} +{"label": "99", "index": "49324", "code": "int main(){\nint n,i,e[100];\ndouble a,b,d,c;\nscanf(\"%d\",&n);\nfor(i=0;i=1){\nb++;}\nelse if(e[i]>=19&&e[i]<=35){\na++;}\nelse if(e[i]>=36&&e[i]<=60)\n{\nc++;}\nelse{d++;}\n}\nprintf(\"1-18: %.2lf%%\\n\",b*100/n);\nprintf(\"19-35: %.2lf%%\\n\",a*100/n);\nprintf(\"36-60: %.2lf%%\\n\",c*100/n);\nprintf(\"Over60: %.2lf%%\\n\",100-b*100/n-a*100/n-c*100/n);\nreturn 0;\n}"} +{"label": "99", "index": "49325", "code": "void main()\n{\n\tint n,a[100],i;\n\tdouble b[4]={0};\n\tscanf(\"%d\",&n);\n\tprintf(\"\\n\");\n\tfor(i=0;i=age[index]&&a[i]18&&s[i]<36) b1++;\n\tif(s[i]>35&&s[i]<61) c1++;\n\tif(s[i]>60) d1++;\n }\n a=(double)a1/(double)n*100;\n b=(double)b1/(double)n*100;\n c=(double)c1/(double)n*100;\n d=(double)d1/(double)n*100;\n printf(\"1-18: %.2lf\",a);printf(\"%%\\n\");\n printf(\"19-35: %.2lf\",b);printf(\"%%\\n\");\n printf(\"36-60: %.2lf\",c);printf(\"%%\\n\");\n printf(\"60??: %.2lf\",d);printf(\"%%\\n\");\n}"} +{"label": "99", "index": "49329", "code": "void main()\n{\n\tint n,i,age[100];\n\tint sum1=0;\n\tint sum2=0;\n\tint sum3=0;\n\tint sum4=0;\n\tint a,b,c,d;\n\tdouble percentage1;\n\tdouble percentage2;\n\tdouble percentage3;\n\tdouble percentage4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)\n\t\t\tsum2=sum2+1;\n \tif(age[i]<=60&&age[i]>=36)\n\t\t\tsum3=sum3+1; \n if(age[i]>=61)\n\t\t\tsum4=sum4+1;\n\t}\n\t a=100*sum1;\n\t\tb=100*sum2;\n\t\tc=100*sum3;\n\t\td=100*sum4;\n percentage1=(double)a/n;\n\t\tpercentage2=(double)b/n;\n\t\tpercentage3=(double)c/n;\n\t\tpercentage4=(double)d/n;\n\n\tprintf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\",percentage1,percentage2,percentage3,percentage4);\n}"} +{"label": "99", "index": "49330", "code": "int main()\n{\n\tint n,i=0,s1=0,s2=0,s3=0,s4=0,sz[101];\n\tdouble o1,o2,o3,o4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&sz[i]<=35){s2=s2+1;}\n\t\tif(sz[i]>=36&&sz[i]<=60){s3=s3+1;}\n\t\tif(sz[i]>=61){s4=s4+1;}\n\t}\n\to1=s1*1.0*100/n;\n\to2=s2*1.0*100/n;\n\to3=s3*1.0*100/n;\n\to4=s4*1.0*100/n;\n\tprintf(\"1-18: %.2lf%%\\n\",o1);\n\tprintf(\"19-35: %.2lf%%\\n\",o2);\n\tprintf(\"36-60: %.2lf%%\\n\",o3);\n\tprintf(\"60??: %.2lf%%\",o4);\n\treturn 0;\n}"} +{"label": "99", "index": "49331", "code": "int main()\n{\n\tint n,a[100],i;\n\tdouble w,x,y,z;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&sz[i]<=35){\n\t\tb++;\n\t}else if(sz[i]>35&&sz[i]<=60){\n\t\tc++;\n\t}else{\n\t\td++;\n\t}\n}\nprintf(\"1-18: %.2lf%%\\n\",(1.0*a/n*100));\nprintf(\"19-35: %.2lf%%\\n\",(1.0*b/n*100));\nprintf(\"36-60: %.2lf%%\\n\",(1.0*c/n*100));\nprintf(\"60??: %.2lf%%\\n\",(1.0*d/n*100));\n return 0;\n}\n\n\n"} +{"label": "99", "index": "49333", "code": "int main()\n{\n\tint n,i,x,a,b,c,d;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1)&&(x<=18))\n\t\t{\n\t\t\ta++;\n\t\t}\n\t\telse if(x<=35)\n\t\t{\n\t\t\tb++;\n\t\t}\n\t\telse if(x<=60)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\telse \n\t\t{\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",100.0*a/n);\n\tprintf(\"19-35: %.2lf%%\\n\",100.0*b/n);\n\tprintf(\"36-60: %.2lf%%\\n\",100.0*c/n);\n\tprintf(\"60??: %.2lf%%\\n\",100.0*d/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49334", "code": "int main(){\nint m,n,i,sz[100];\ndouble a,b,c,d;\nscanf(\"%d\",&n);\na=0;b=0;c=0;d=0;\nfor(i=0;i=19&&sz[i]<=35){\n b=b+1;\n }else if(sz[i]>=36&&sz[i]<=60){\n c=c+1;\n }else{\n d=d+1;\n }\n}\na=100*a/n;\nb=100*b/n;\nc=100*c/n;\nd=100*d/n;\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\nOver60: %.2lf%%\\n\",a,b,c,d);\nreturn 0;\n}"} +{"label": "99", "index": "49335", "code": "int main(int argc, char* argv[])\n{\n\tint n,i,p[101],a=0,b=0,c=0,d=0;\n\tdouble A,B,C,D;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i18&&p[i]<36)\n\t\t{b++;}\n\t\tif(p[i]>35&&p[i]<61)\n\t\t{c++;}\n\t\tif(p[i]>60)\n\t\t{d++;}\n\t}\n\tA=(double)a/n*100;\n\tB=(double)b/n*100;\n\tC=(double)c/n*100;\n\tD=(double)d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",A);\n\tprintf(\"19-35: %.2lf%%\\n\",B);\n\tprintf(\"36-60: %.2lf%%\\n\",C);\n\tprintf(\"60??: %.2lf%%\\n\",D);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49336", "code": "int main()\n{\n int n,i;\n cin>>n;\n int A[n];\n double B[4]={0,0,0,0};\n for (i=0;i>A[i]; \n if (A[i]<19)\n B[0]=B[0]+1;\n else \n {\n if (A[i]<36) \n B[1]=B[1]+1;\n else \n {\n if (A[i]<61)\n B[2]=B[2]+1;\n else\n B[3]=B[3]+1; \n } \n }\n } \n cout<=19&&a[i]<=35)\n\t\t\tnd+=1;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\trd+=1;\n\t\telse if(a[i]>=61)\n\t\t\tth+=1;\n\t}\n\tk=(double)less*100/n;\n\tl=(double)nd*100/n;\n\tm=(double)rd*100/n;\n\tt=(double)th*100/n;\n\tprintf(\"1-18: %.2lf\",k);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",l);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",m);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",t);\n\tprintf(\"%%\\n\");\n\treturn 0;\n\n}"} +{"label": "99", "index": "49338", "code": "int main()\n{\nint i;\ndouble n,a=0,b=0,c=0,d=0,x;\nscanf(\"%lf\\n\",&n);\nfor(i=1;i<=n;i++)\n{scanf(\"%lf\",&x);\nif(x<=18){a+=1;}\nif((x>=19)&&(x<=35)){b+=1;}\nif((x>=36)&&(x<=60)){c+=1;}\nif(x>=61){d+=1;}\n}\nprintf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\\n\",100*a/n,100*b/n,100*c/n,100*d/n);\nreturn 0;\n}"} +{"label": "99", "index": "49339", "code": "int main()\n{ \n\tint n,brs[103],i;\n\tdouble a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n\tfor(i=0;i18 && brs[i]<36)\n\t\t{\n\t\t\tb=b+1;\n\t\t}\n\t\tif(brs[i]>35 && brs[i]<61)\n\t\t{\n\t\t\tc=c+1;\n\t\t}\n\t\tif(brs[i]>60)\n\t\t{\n\t\t\td=d+1;\n\t\t}\n\t}\n\ta=(100.0*a)/n;\n\tb=(100.0*b)/n;\n\tc=(100.0*c)/n;\n\td=(100.0*d)/n;\n printf(\"1-18: %.2lf\",a);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",b);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",c);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",d);\n\tprintf(\"%%\\n\");\n\treturn 0;\n}\n\n\t"} +{"label": "99", "index": "49340", "code": "int main()\n{\n\tint n,s[100],i,a=0,b=0,c=0,d=0;\n\tdouble n1,n2,n3,n4;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i18&&s[i]<36){\n\t\t\tb+=1;\n\t\t}\n\t\telse if(s[i]>35&&s[i]<61){\n\t\t\tc+=1;\n\t\t}\n\t\telse if(s[i]>60){\n\t\t\td+=1;\n\t\t}\n\t}\n\tn1=(double)a*100/n;\n\tn2=(double)b*100/n;\n\tn3=(double)c*100/n;\n\tn4=(double)d*100/n;\n\tprintf(\"1-18: %.2lf%%\\n\",n1);\n\tprintf(\"19-35: %.2lf%%\\n\",n2);\n\tprintf(\"36-60: %.2lf%%\\n\",n3);\n\tprintf(\"60??: %.2lf%%\",n4);\n\treturn 0;\n}"} +{"label": "99", "index": "49341", "code": "int main()\n{\n\tdouble n, a=0.0, b=0.0, c=0.0, d=0.0, temp;\n\tscanf(\"%lf\",&n);\n for(int i=0;i18&&temp<=35) b=b+1.0;\n\t\tif(temp>35&&temp<=60) c=c+1.0;\n\t\tif(temp>60) d=d+1.0;\n\t}\n\t\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",100.00*a/n, 100.00*b/n, 100.00*c/n, 100.00*d/n);\n\treturn 0;\n}\n\n\t\t"} +{"label": "99", "index": "49342", "code": "int main(){\n\tint n,i,c[100],a=0,b=0,m=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&age<36)\n\t\t\ts[1]++;\n\t\tif(age>35&&age<61)\n\t\t\ts[2]++;\n\t\tif(age>60)\n\t\t\ts[3]++;\n\t}\n\tfor(i=0;i<4;i++)\n\t\tsj[i]=100.000*s[i]/n;\n printf(\"1-18: %.2lf%%\",sj[0]);\n printf(\"\\n19-35: %.2lf%%\",sj[1]);\n printf(\"\\n36-60: %.2lf%%\",sj[2]);\n printf(\"\\n60??: %.2lf%%\",sj[3]);\n}\n\n"} +{"label": "99", "index": "49344", "code": "int main()\n{\n\tint n,a[100],i;\n\tdouble b[4]={0};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t{\n\t\t\tb[1]+=1;\n\t\t}\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t{\n\t\t\tb[2]+=1;\n\t\t}\n else if(a[i]>60)\n\t\t{\n\t\t\tb[3]+=1;\n\t\t}\n\t}\n\n\t\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",b[0]/n*100,b[1]/n*100,b[2]/n*100,b[3]/n*100);\n\nreturn 0;\n}"} +{"label": "99", "index": "49345", "code": "int main()\n{\n\tint i,n,s[100];\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0&&s[i]<19)\n\t\t\ta=a+1;\n\t\tif(s[i]>18&&s[i]<36)\n\t\t\tb=b+1;\n\t\tif(s[i]>35&&s[i]<61)\n\t\t\tc=c+1;\n\t\tif(s[i]>60)\n\t\t\td=d+1;\n\t}\n\ta=(double)100*a/n;\n\tb=(double)100*b/n;\n\tc=(double)100*c/n;\n\td=(double)100*d/n;\n\tprintf(\"1-18:\");\n\tprintf(\"% .2lf\",a);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35:\");\n\tprintf(\"% .2lf\",b);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60:\");\n\tprintf(\"% .2lf\",c);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??:\");\n\tprintf(\"% .2lf\",d);\n\tprintf(\"%%\");\n\treturn 0;\n}"} +{"label": "99", "index": "49346", "code": "void sort(float a,float b);\nint n,*sz;\nint main(){\n scanf(\"%d\",&n);\n sz=(int*)malloc(n*sizeof(int));\n int i;\n for(i=0;i=a&&sz[i]<=b){\n c++;\n }\n }\n if(b!=1000){\n printf(\"%.0f-%.0f: %.2f%\\n\",a,b,c/n*100);\n }else if(c/n*100!=42.59){\n printf(\"Over60: %.2f%\\n\",c/n*100);\n }else{\n printf(\"60??: %.2f%\\n\",c/n*100);\n }\n}"} +{"label": "99", "index": "49347", "code": "int main()\n{\n\tint a[4]={0},b[100],sum=0;\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&b[i]<36)\n\t\t\ta[1]++;\n else if(b[i]>35&&b[i]<61)\n\t\t\ta[2]++;\n\t\telse \n\t\t\ta[3]++;\n }\n\tsum=n;\n\tprintf(\"1-18: %.2lf%%\\n\",(double)a[0]/(double)sum*100);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)a[1]/(double)sum*100);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)a[2]/(double)sum*100);\n\tprintf(\"60??: %.2lf%%\\n\",(double)a[3]/(double)sum*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49348", "code": "void main()\n{\n\tint a[100],n,i,b=0,c=0,d=0,e=0;\n\tdouble f,g,h,k;\nscanf(\"%d\",&n);\nfor(i=0;i=19&&a[i]<=35)\n\t\tc=c+1;\n\tif(a[i]>35&&a[i]<=60)\n\t\td=d+1;\n\t\n\t\te=n-b-c-d;\n}\nf=((double)b/n)*100;\ng=((double)c/n)*100;\nh=((double)d/n)*100;\nk=((double)e/n)*100;\nprintf(\"1-18: %.2f%%\\n\", f);\nprintf(\"19-35: %.2f%%\\n\", g);printf(\"36-60: %.2f%%\\n\", h);printf(\"60??: %.2f%%\", k);\n\t\t}\n\n"} +{"label": "99", "index": "49349", "code": "int main()\n{\n\tint n,i,x;\n\tdouble a,b,c,d;\n\ti=1;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tscanf(\"%d\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&x);\n\t\tif(x<=18){\n\t\t\ta=a+1;\n\t\t}else if(x<=35){\n\t\t\tb=b+1;\n\t\t}else if(x<=60){\n\t\t\tc=c+1;\n\t\t}else{\n\t\t\td=d+1;\n\t\t}\n\t\ti=i+1;\n\t}\n\ta=100*a/n;\n\tb=100*b/n;\n\tc=100*c/n;\n\td=100*d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n printf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49350", "code": "\nint main()\n{\n\tint n,AGE,i,A1_18=0,A19_35=0,A36_60=0,A_60=0;\n\tfloat a;\n\tscanf(\"%d\",&n);\n\tfor (i=0;i60) A_60++;\n\t\telse if (AGE>18&&AGE<=35) A19_35++;\n\t\telse A36_60++;\n\t}\n\ta=A1_18*100.0/n;\n\tprintf(\"1-18: %.2f%%\\n\",a);\n\ta=A19_35*100.0/n;\n\tprintf(\"19-35: %.2f%%\\n\",a);\n\ta=A36_60*100.0/n;\n\tprintf(\"36-60: %.2f%%\\n\",a);\n\ta=A_60*100.0/n;\n\tprintf(\"60??: %.2f%%\\n\",a);\n}\n\n"} +{"label": "99", "index": "49351", "code": "void main()\n{\n\tint i,a,n,ag1=0,ag2=0,ag3=0,ag4=0;\n\tdouble p1,p2,p3,p4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0&&a[i]<=18)\n\t\t{\n\t\t\tsum=sum+1.0;\n\t\t}\n\t\telse if(a[i]>=19&&a[i]<=35)\n\t\t{\n\t\t\tsum1=sum1+1.0;\n\t\t}\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t{\n\t\t\tsum2=sum2+1.0;\n\t\t}\n\t\telse if(a[i]>=61)\n\t\t{\n\t\t\tsum3=sum3+1.0;\n\t\t}\n\t}\n\tb=(sum/n)*100.0;\n\tc=(sum1/n)*100.0;\n\td=(sum2/n)*100.0;\n\te=(sum3/n)*100.0;\n\tprintf(\"1-18: %.2lf%%\\n\", b);\n\tprintf(\"19-35: %.2lf%%\\n\", c);\n\tprintf(\"36-60: %.2lf%%\\n\", d);\n\tprintf(\"60??: %.2lf%%\\n\", e);\n\t\n\t\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49353", "code": "int main () {\nint i,a,b,c,d,e,n;\na=0;b=0;c=0;d=0;e=0;\nscanf(\"%d\",&n);\nfor(i=0;i=10&&a[i]<=35)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t{\n\t\t\td++;\n\t\t}\n\t\telse if(a[i]>=61)\n\t\t{\n\t\t\te++;\n\t\t}\n\t}\n\t\tb=(double)b/n*100;\n\t\tc=(double)c/n*100;\n d=(double)d/n*100;\n e=(double)e/n*100;\n\t\tprintf(\"1-18: \" \"%.2lf\"\"%%\\n\",b);\n printf(\"19-35: \" \"%.2lf\"\"%%\\n\",c);\n printf(\"36-60: \" \"%.2lf\"\"%%\\n\",d);\n printf(\"60??: \" \"%.2lf\"\"%%\",e);\n\treturn 0;\n}"} +{"label": "99", "index": "49355", "code": "int main(){\nint n;\nscanf(\"%d\",&n);\nint age[100];\nint num[4]={0,0,0,0};\ndouble p[4];\nfor(int i=0;i=19]){\nnum[1]++; \n}\nelse if(age[i]<=60&&age[i]>=36){\nnum[2]++;\n}\nelse{\nnum[3]++;\n}\n}\nfor(int i=0;i<4;i++){\np[i]=num[i]*100.0/(n*1.0);\n}\nprintf(\"1-18: %.2lf%%\\n\",p[0]);\nprintf(\"19-35: %.2lf%%\\n\",p[1]);\nprintf(\"36-60: %.2lf%%\\n\",p[2]);\nprintf(\"Over60: %.2lf%%\",p[3]);\nreturn 0;\n }\n\n"} +{"label": "99", "index": "49356", "code": " int main () {\n int i,f;\n double b,c,d,e;\n int w=0,x=0,y=0,z=0;\n int age[100];\n\tscanf(\"%d\",&f);\n for(i=0;i60){\n z=z+1;}}\n b=1.0*w/f*100;\n c=1.0*x/f*100;\n d=1.0*y/f*100;\n e=1.0*z/f*100;\n printf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\",b,c,d,e);\n return 0;\n}"} +{"label": "99", "index": "49357", "code": "void main()\n{\n\tint n,i,b,c,d,e;\n\tint a[100];\n\tdouble w,x,y,z;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18)c=c+1;\n\t\telse if(a[i]<61&a[i]>35)d=d+1;\n\t\telse e=e+1;\n\t}\n\tw=(double)b*100/n;\n\tx=(double)c*100/n;\n\ty=(double)d*100/n;\n\tz=(double)e*100/n;\n\tprintf(\"1-18: %.2lf%%\\n\",w);\n\tprintf(\"19-35: %.2lf%%\\n\",x);\n\tprintf(\"36-60: %.2lf%%\\n\",y);\n\tprintf(\"60??: %.2lf%%\",z);\n}"} +{"label": "99", "index": "49358", "code": "int main()\n{\n\tint n,i;\n\tdouble a[100];\n\tdouble sum1=0,sum2=0,sum3=0,sum4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1 && a[i]<=18)\n\t\t{\n\t\t\tsum1=sum1+1;\n\t\t}\n\t\tif(a[i]>=19 && a[i]<=35)\n\t\t{\n\t\t\tsum2=sum2+1;\n\t\t}\n\t\tif(a[i]>=36 && a[i]<=60)\n\t\t{\n\t\t\tsum3=sum3+1;\n\t\t}\n\t\tif(a[i]>=61)\n\t\t{\n\t\t\tsum4=sum4+1;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%\\n\",sum1/n*100);\n\tprintf(\"19-35: %.2lf%\\n\",sum2/n*100);\n\tprintf(\"36-60: %.2lf%\\n\",sum3/n*100);\n\tprintf(\"60??: %.2lf%\\n\",sum4/n*100);\n\n\n\n\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49359", "code": "int main()\n{\n\tint n=0;//?????\n\tcin>>n;\n\tint a=0;//????????\n\tfloat s[4]={0,0,0,0};//???????\n\tfor(int i=0;i>a;\n\t\tif(a<19)\n\t\t\ts[0]=s[0]+1;\n\t\telse if(a>18&&a<36)\n\t\t\ts[1]=s[1]+1;\n\t\telse if(a>35&&a<61)\n\t\t\ts[2]=s[2]+1;\n\t\telse\n\t\t\ts[3]=s[3]+1;\n\t}\n\tdouble c[4]={0.0,0.0,0.0,0.0};//???????\n\tc[0]=s[0]*100/n;\n\tc[1]=s[1]*100/n;\n\tc[2]=s[2]*100/n;\n\tc[3]=s[3]*100/n;\n\tcout<<\"1-18: \";\n\tprintf(\"%.2f\",c[0]);\n\tcout<<\"%\"<=19&&age[i]<=35)\n\t\t\t\tb++;\n\t\t\telse\n\t\t\t\tif(age[i]>=36&&age[i]<=60)\n\t\t\t\t\tc++;\n\t\t\t\telse\n\t\t\t\t\td++;\n\t\t\t\t}\n\tprintf(\"1-18: %.2lf%%\\n\",a/m*100);\n\tprintf(\"19-35: %.2lf%%\\n\",b/m*100);\n\tprintf(\"36-60: %.2lf%%\\n\",c/m*100);\n\tprintf(\"60??: %.2lf%%\\n\",d/m*100);\n\treturn 0;\n}\n\n\t\t"} +{"label": "99", "index": "49361", "code": "int main()\n{\n\tint n,sz[100],i;\n\tchar j=0;\n\tdouble a=0.0,b=0.0,c=0.0,d=0.0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i60)\n\t\t\tm++;\n\t}\n j=(x/n)*100;\n\tk=(y/n)*100;\n\tl=(z/n)*100;\n\tf=(m/n)*100;\n\tprintf(\"1-18: \");\n\tprintf(\"%.2lf\",j);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: \");\n\tprintf(\"%.2lf\",k);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: \");\n\tprintf(\"%.2lf\",l);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: \");\n\tprintf(\"%.2lf\",f);\n\tprintf(\"%%\");\n\treturn 0;\n}\n"} +{"label": "99", "index": "49365", "code": "int main(){\n\tint n,age[120],i;\n\tscanf(\"%d\",&n);\n\tdouble a1_18,a19_35,a36_60,a60_;\n\ta1_18=0;\n\ta19_35=0;\n\ta36_60=0;\n\ta60_=0;\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%d\",&age[i]);\n\t\tif(age[i]>=1&&age[i]<=18)\n\t\t\ta1_18++;\n\t\tif(age[i]>=19&&age[i]<=35)\n\t\t\ta19_35++;\n\t\tif(age[i]>=36&&age[i]<=60)\n\t\t\ta36_60++;\n\t\tif(age[i]>60)\n\t\t\ta60_++;\n\t}\n\ta1_18/=(n*0.01);\n\ta19_35/=(n*0.01);\n\ta36_60/=(n*0.01);\n\ta60_/=(n*0.01);\n\tprintf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\\n\",a1_18,a19_35,a36_60,a60_);\n\treturn 0;\n}"} +{"label": "99", "index": "49366", "code": "int main ()\n{\n\tint i,e[100];\n\tdouble n,a=0,b=0,c=0,d=0;\n\tscanf(\"%lf\",&n);\n\tfor(i=0;i=19){\n\t\t\tb[1]++;\n\t\t}\n\t\tif(age[i]<=60&&age[i]>=36){\n\t\t\tb[2]++;\n\t\t}\n\t\tif(age[i]>=61){\n\t\t\tb[3]++;\n\t\t}\n\t}\n for(j=0;j<4;j++){\n\t\tc[j]=100.0*b[j]/n;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\", c[0]);\n printf(\"19-35: %.2lf%%\\n\", c[1]);\n\tprintf(\"36-60: %.2lf%%\\n\", c[2]);\n\tprintf(\"60??: %.2lf%%\\n\", c[3]);\n\treturn 0;\n}"} +{"label": "99", "index": "49368", "code": "int main()\n{\n\tint n=0,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=19&&age<=35)\n\t\t\t\tb=b+1;\n\t\t\telse if(age>=36&&age<=60)\n\t\t\t\tc=c+1;\n\t\t\telse if(age>=61)\n\t\t\t\td=d+1;\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",(float)a*100/n);\n\tprintf(\"19-35: %.2f%%\\n\",(float)b*100/n);\n\tprintf(\"36-60: %.2f%%\\n\",(float)c*100/n);\n\tprintf(\"60??: %.2f%%\\n\",(float)d*100/n);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49369", "code": "int main()\n{\n\tint n,i;\n\tdouble a,b,c,d;\n\tdouble x,y,z,u;\n\tscanf(\"%d\",&n);\n\tint sz[100];\n\tfor(i=0;i=19&&sz[i]<=35)\n\t\t\tb++;\n\t\telse if(sz[i]>=36&&sz[i]<=60)\n\t\t\tc++;\n\t\telse if(sz[i]>=61)\n\t\t\td++;\n\t}\n\tx=(double)(a/n*100);\n\ty=(double)(b/n*100);\n\tz=(double)(c/n*100);\n\tu=(double)(d/n*100);\n\tprintf(\"1-18: %.2lf%\\n19-35: %.2lf%\\n36-60: %.2lf%\\n60??: %.2lf%\\n\",x,y,z,u);\n}"} +{"label": "99", "index": "49370", "code": "void main()\n{\n\tint n,age,u[100],i;double a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&u[i]<=18)a+=1.0/n;\nif(u[i]>=19&&u[i]<=35)b+=1.0/n;\nif(u[i]>=36&&u[i]<=60)c+=1.0/n;\nif(u[i]>60)d+=1.0/n;\n}\nprintf(\"1-18: %.2lf%%\\n\",100*a);\nprintf(\"19-35: %.2lf%%\\n\",100*b);\nprintf(\"36-60: %.2lf%%\\n\",100*c);\nprintf(\"60??: %.2lf%%\\n\",100*d);\n}\n"} +{"label": "99", "index": "49371", "code": "int main(){\n\tint n,i,a[100];\n\tdouble o=0,tw=0,th=0,f=0,z=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<36)tw++;\n\t\tif(a[i]>35&&a[i]<61)th++;\n\t\tif(a[i]>60)f++;\n\t\tz++;\n\t}\n\to=o/z*100;tw=tw/z*100;th=th/z*100;f=f/z*100;\n\tprintf(\"1-18: %.2lf\",o);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",tw);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf%\",th);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",f);\n\tprintf(\"%%\\n\");\n\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49372", "code": "void main()\n{\n\tint n,i,a[100];\n double first=0,second=0,third=0,fourth=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0&&p[i]<=18)\n\t\t\tn1++;\n\t\telse if(p[i]>=19&&p[i]<=35)\n\t\t\tn2++;\n else if(p[i]>=36&&p[i]<=60)\n\t\t\tn3++;\n else if(p[i]>=61)\n\t\t\tn4++;\n\t}\n\tb1=(double)n1/n*100;\nb2=(double)n2/n*100;\nb3=(double)n3/n*100;\nb4=(double)n4/n*100;\nprintf(\"1-18: %.2f\",b1);\nprintf(\"%%\\n\");\nprintf(\"19-35: %.2f\",b2);\nprintf(\"%%\\n\");\nprintf(\"36-60: %.2f\",b3);\nprintf(\"%%\\n\");\nprintf(\"60??: %.2f\",b4);\nprintf(\"%%\");\n}\n\n"} +{"label": "99", "index": "49376", "code": "void main()\n{\n\tint n,i;\n\tint a[100];\n\tdouble b[4],c[4]={0};\n\tdouble m;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35) c[1]++;\n\t\telse if(a[i]>35&&a[i]<=60) c[2]++;\n\t\telse c[3]++;\n\t}\n\tm=n;\n\tfor(i=0;i18&&age[i]<=35)\n\t\t\tb++;\n\t\telse if(age[i]>35&&age[i]<=60)\n\t\t\tc++;\n\t\telse\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf\",(a*1.00)*100/n);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",(b*1.00)*100/n);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",(c*1.00)*100/n);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",(d*1.00)*100/n);\n\tprintf(\"%%\\n\");\n\treturn 0;\n}"} +{"label": "99", "index": "49378", "code": "void main()\n{\n\tint n,i,b=0,c=0,d=0,e=0,a[100]={0};\n\tdouble f,g,h,j;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)b++;\n\t\tif(a[i]>=19&&a[i]<=35)c++;\n\t\tif(a[i]>=36&&a[i]<=60)d++;\n\t\tif(a[i]>=61)e++;\n\t}\n\tf=(double)b/n;\n\tg=(double)c/n;\n\th=(double)d/n;\n\tj=(double)e/n;\n printf(\"1-18: %.2lf\",100*f);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",100*g);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",100*h);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",100*j);\n\tprintf(\"%%\\n\");\n\n}"} +{"label": "99", "index": "49379", "code": "int main(){\n int n,i;\n\tint sz[SIZE];\n\tdouble w,a,s,d;\n\tw=a=s=d=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=1&&a[i]<=18)\n\t\t\t\tm++;\n if(a[i]>=19&&a[i]<=35)\n\t\t\t\tk++;\n if(a[i]>=36&&a[i]<=60)\n\t\t\t\tp++;\n if(a[i]>60)\n\t\t\t\tq++;\n\t\t}\n\t\tprintf(\"1-18: \");\n\t\t\tprintf(\"%.2lf\",(double)m/n*100);\n\t\t\tprintf(\"%%\\n\");\n printf(\"19-35: \");\n\t\t\tprintf(\"%.2lf\",(double)k/n*100);\n printf(\"%%\\n\");\n printf(\"36-60: \");\n\t\t\tprintf(\"%.2lf\",(double)p/n*100);\n printf(\"%%\\n\");\n printf(\"60??: \");\n\t\t\tprintf(\"%.2lf\",(double)q/n*100);\n printf(\"%%\\n\");\n\n\treturn 0;\n}"} +{"label": "99", "index": "49381", "code": "\nint main()\n{\n\tint a[100],n=0;\n\tint i=0,e=0,b=0,c=0,d=0;\n\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0){\n\t\t\te++;\n\t\t}\n\t\telse if(a[i]<36 && a[i]>18){\n\t\t\tb++;\n\t\t}\n\t\telse if(a[i]<61 && a[i]>35){\n\t\t\tc++;\n\t\t}\n\t\telse if(a[i]>60){\n\t\t\td++;\n\t\t}\n\t}\n\tdouble a1=e*100.00/n;\n\tdouble b1=b*100.00/n;\n\tdouble c1=c*100.00/n;\n\tdouble d1=d*100.00/n;\n\n\tprintf(\"1-18: %.2lf%%\\n\",a1);\n printf(\"19-35: %.2lf%%\\n\",b1);\n\tprintf(\"36-60: %.2lf%%\\n\",c1);\n\tprintf(\"60??: %.2lf%%\\n\",d1);\n\n\treturn 0;\n}"} +{"label": "99", "index": "49382", "code": "int main()\n{\n\tint n,i;\n\tint a=0,b=0,c=0,d=0;\n\tdouble rate[4];\n\tscanf(\"%d\",&n);\n\tint *age=(int *)malloc(sizeof(int)*n);\n\t\n\tfor(i=0;i=19&&age[i]<=35)\n\t\t\tb++;\n if(age[i]>=36&&age[i]<=60)\n\t\t\tc++;\n\t\tif(age[i]>=61)\n\t\t\td++;\n\t}\n\trate[0]=(double)a/(double)n*100;\n\trate[1]=(double)b/(double)n*100;\n\trate[2]=(double)c/(double)n*100;\n\trate[3]=(double)d/(double)n*100;\n printf(\"1-18: %.2lf%%\\n\",rate[0]);\n printf(\"19-35: %.2lf%%\\n\",rate[1]);\n printf(\"36-60: %.2lf%%\\n\",rate[2]);\n printf(\"60??: %.2lf%%\\n\",rate[3]);\n\tfree(age);\n\treturn 0;\n}"} +{"label": "99", "index": "49383", "code": "int main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint a[p],i;\n\tdouble x=0.0,y=0.0,z=0.0,t=0.0;\n\tfor(i=0;i18&&a[i]<36)\n\t\t{\n\t\t\ty++;\n\t\t}\n\t\telse if(a[i]>35&&a[i]<61)\n\t\t{\n\t\t\tz++;\n\t\t}\n\t\telse if(a[i]>60)\n\t\t{\n\t\t\tt++;\n\t\t}\n\t}\n\t\tx=100.0*x/n;\n\t\ty=100.0*y/n;\n\t\tz=100.0*z/n;\n\t\tt=100.0*t/n;\n\t\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n\tprintf(\"19-35: %.2lf%%\\n\",y);\n\tprintf(\"36-60: %.2lf%%\\n\",z);\n\tprintf(\"60??: %.2lf%%\\n\",t);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49384", "code": "int main()\n{\nint n,i,nl[100],a=0,b=0,c=0,d=0;\ndouble q,w,e,r;\nscanf(\"%d\",&n);\nfor(i=0;i0&&nl[i]<19)\n\t a++;\n else if (nl[i]>18&&nl[i]<36)\n\t b++;\n else if (nl[i]>35&&nl[i]<61)\n\t\t c++;\n\t else d++;\n}\nq=a*1.0/n;\nw=b*1.0/n;\ne=c*1.0/n;\nr=d*1.0/n;\nprintf(\"1-18: %.2lf%%\\n\",q*100);\nprintf(\"19-35: %.2lf%%\\n\",w*100);\nprintf(\"36-60: %.2lf%%\\n\",e*100);\nprintf(\"60??: %.2lf%%\\n\",r*100);\nreturn 0;\n}\n"} +{"label": "99", "index": "49385", "code": "int main(int argc, char* argv[])\n{\n\tint a[max];\n\tint\tb[4]={0};\n\tint i,m;\n\tfloat c[4];\n\tscanf(\"%d\",&m); //0==1 && a[i]<=18)\n b[0]++;\n\telse if(a[i]>=19 && a[i]<=35)\n\t\t b[1]++;\n\telse if(a[i]>=36 && a[i]<=60)\n\t b[2]++;\n\telse if(a[i]>60)\n b[3]++;\n\t}\n\tfor(i=0;i<4;i++)\n\t{\n\t\tc[i]=b[i]*1.0/m*1.0*100;\n\t}\n printf(\"1-18: %.2f%%\\n\",c[0]);\n\tprintf(\"19-35: %.2f%%\\n\",c[1]);\n printf(\"36-60: %.2f%%\\n\",c[2]);\n\tprintf(\"60??: %.2f%%\",c[3]);\n\treturn 0;\n}"} +{"label": "99", "index": "49386", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,a[1000],i,c[4]={0},l;\n\tdouble t[4];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)\n\t\t\tc[0]=c[0]+1;\n\t\telse if(a[i]>=19&&a[i]<=35)\n\t\t\tc[1]=c[1]+1;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\tc[2]=c[2]+1;\n\t\telse \n\t\t\tc[3]=c[3]+1;\n\t}\n\tl=c[0]+c[1]+c[2]+c[3];\n\tfor(i=0;i<4;i++)\n\tt[i]=((c[i]*1.0)/l)*100;\n\tprintf(\"1-18: %.2lf%%\\n\",t[0]);\n\tprintf(\"19-35: %.2lf%%\\n\",t[1]);\n\tprintf(\"36-60: %.2lf%%\\n\",t[2]);\n\tprintf(\"60??: %.2lf%%\\n\",t[3]);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49387", "code": "int main(){\n\tint i,n,x1=0,x2=0,x3=0,x4=0;\n\tdouble y1,y2,y3,y4;\n\tint sz[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&sz[i]<=35){\n\t\t\tx2=x2++;\n\t}\n\t\telse if(sz[i]>=36&&sz[i]<=60){\n\t\t\tx3=x3++;\n\t\t}\n\t\telse if(sz[i]>=61){\n\t\t\tx4=x4++;\n\t\t}\n\t}\n\ty1=(double)x1*100/n;\n\ty2=(double)x2*100/n;\n\ty3=(double)x3*100/n;\n\ty4=(double)x4*100/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",y1,y2,y3,y4);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49388", "code": "int main()\n{\n\tint n,i,a[1000],b1=0,b2=0,b3=0,b4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19)&&(a[i]<=35))\n\t\t{\n\t\t\tb2+=1;\n\t\t}\n\t\telse if((a[i]>=36)&&(a[i]<=60))\n\t\t{\n\t\t\tb3+=1;\n\t\t}\n\t\telse if(a[i]>60)\n\t\t{\n\t\t\tb4+=1;\n\t\t}\n\t}\n\tint sum=0;\n\tdouble c1,c2,c3,c4;\n\tsum=b1+b2+b3+b4;\n\tc1=(double)b1/sum*100;\n\tc2=(double)b2/sum*100;\n\tc3=(double)b3/sum*100;\n\tc4=(double)b4/sum*100;\n\tprintf(\"1-18: %.2lf%%\\n\",c1);\n\tprintf(\"19-35: %.2lf%%\\n\",c2);\n\tprintf(\"36-60: %.2lf%%\\n\",c3);\n\tprintf(\"60??: %.2lf%%\\n\",c4);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49389", "code": "int main()\n{\n\tint n,i,age[100];\n\tint a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\n\tfor(i=0;i=19)\n\t\t\tb=b+1;\n else if(age[i]<=60&&age[i]>=36)\n\t\t\tc=c+1;\n else if (age[i]>=61)\n\t\t\td=d+1;\n\t}\n\tprintf(\"\\n1-18: %.2f%%\",(double)a/n*100);\n\tprintf(\"\\n19-35: %.2f%%\",(double)b/n*100);\n\tprintf(\"\\n36-60: %.2f%%\",(double)c/n*100);\n\tprintf(\"\\n60??: %.2f%%\",(double)d/n*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49390", "code": "int main(){\n\tint n,i;\n\tint num[4]={0},pat[101]={0};\n\tdouble rate[4];\n\tscanf(\"%d\",&n);\n\tfor (i=0;i=19&&pat[i]<=35)\n\t\t\tnum[1]++;\n\t\tif (pat[i]>=36&&pat[i]<=60)\n\t\t\tnum[2]++;\n\t\tif (pat[i]>=61)\n\t\t\tnum[3]++;\n\t}\n\tfor(i=0;i<4;i++){\n\t\trate[i]=100.0*num[i]/n;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",rate[0],rate[1],rate[2],rate[3]);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49391", "code": "\nint main(int argc, char* argv[])\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i,age[100];\n\tdouble a=0,b=0,c=0,d=0;\n\tfor(i=0;i=19&&age[i]<=35)b++;\n\t\tif(age[i]>=36&&age[i]<=60)c++;\n\t\tif(age[i]>60)d++;\n\t}\n a=a/n*100;\n\tb=b/n*100;\n\tc=c/n*100;\n\td=d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n printf(\"19-35: %.2lf%%\\n\",b);\n printf(\"36-60: %.2lf%%\\n\",c);\n printf(\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49392", "code": "int main(){\n\tint n,a,b,c,d,x,i;\n\tdouble e,f,g,h;\n\ta=0; \n\tb=0; \n\tc=0; \n\td=0;\n scanf(\"%d\\n\",&n);\n\tfor(i=1;i<=n;i+=1){\n scanf(\"%d\",&x);\n\tif(x<=18)\n\t\ta+=1;\n\telse if(x>=19&&x<=35)\n\t\tb+=1;\n\telse if(x>=36&&x<=60)\n\t\tc+=1;\n\telse if(x>=61)\n\t\td+=1;\n\t}\n\te=100*1.0*a/n;\n\tf=100*1.0*b/n;\n\tg=100*1.0*c/n;\n\th=100*1.0*d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",e);\n\tprintf(\"19-35: %.2lf%%\\n\",f);\n printf(\"36-60: %.2lf%%\\n\",g);\n printf(\"60??: %.2lf%%\\n\",h);\n\treturn 0;\n}"} +{"label": "99", "index": "49393", "code": "int main()\n{\n\tint num[100];\n int n,i,j,a,b,c,d;\n\tdouble a1,a2,a3,a4;\n\tscanf(\"%d\",&n);\n\tfor(j=0;j18) b++;\n\t}\n\n\tc=0;\n\t\tfor(j=0;j35) c++;\n\t}\n\td=0;\n\t{ \n\t\tfor(j=0;j60) d++;\n\t}\n\ta1=(double)a/n*100;\n\ta2=(double)b/n*100;\n\ta3=(double)c/n*100;\n\ta4=(double)d/n*100;\n\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a1,a2,a3,a4);\n\treturn 0;\n}"} +{"label": "99", "index": "49394", "code": "void main()\n{\n\tint n,i;\n\tint a[101];\n\tdouble counta,countb,countc,countd,one=0, two=0 ,three=0, four=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35) two++;\n\t\telse if(a[i]>=36&&a[i]<=60) three++;\n\t\telse if(a[i]>=61) four++;\n\t}\ncounta=one/n*100;\ncountb=two/n*100;\ncountc=three/n*100;\ncountd=four/n*100;\n\tprintf(\"1-18: %.2lf\",counta);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",countb);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",countc);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",countd);\n\tprintf(\"%%\");\n\n}\n"} +{"label": "99", "index": "49395", "code": "int main()\n{\n int n;\n double sz[N],fd[N]={0};\n scanf(\"%d\",&n);\n int i;\n\tfor(i=0;i=1)\n\t\t{\n\t\t\tfd[0]++;\n\t\t}else if(sz[i]<=35&&sz[i]>=19)\n\t\t{\n fd[1]++;\n\t\t}else if(sz[i]<=60&&sz[i]>=36)\n\t\t{\n\t\t\tfd[2]++;\n\t\t}else if(sz[i]>=61)\n\t\t{\n\t\t\tfd[3]++;\n\t\t}\n \n\t}\n\tfor(i=0;i<4;i++)\n\t{\n\t\tfd[i]=100*fd[i]/n;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",fd[0]);\n\tprintf(\"19-35: %.2lf%%\\n\",fd[1]);\n printf(\"36-60: %.2lf%%\\n\",fd[2]);\n\tprintf(\"60??: %.2lf%%\\n\",fd[3]);\n\treturn 0;\n}"} +{"label": "99", "index": "49396", "code": "int main()\n{\n\tdouble n;\n\tcin >> n;\n\tint i;\n\tint x;\n\tint a=0, b=0, c=0, d=0;\n\tdouble a1, b1, c1, d1;\n for (i=0;i> x;\n\t if (x<19)\n\t\t\ta=a+1;\n\t\telse if (18=19)\n\t\t\tx_2++;\n\t\tif(by<=60&&by>=36)\n\t\t\tx_3++;\n\t\tif(by>=61)\n\t\t\tx_4++;\n\t}\n\tl1=100*x_1/n;\n\tl2=100*x_2/n;\n\tl3=100*x_3/n;\n\tl4=100*x_4/n;\n\tprintf(\"1-18: %.2lf%%\\n\",l1);\n\tprintf(\"19-35: %.2lf%%\\n\",l2);\n\tprintf(\"36-60: %.2lf%%\\n\",l3);\n\tprintf(\"60??: %.2lf%%\\n\",l4);\n}\n"} +{"label": "99", "index": "49398", "code": "int main()\n{\nint n,num[4]={0},i,a[1000];\ncin>>n;\nfor(i=0;i>a[i];\nfor(i=0;i>n;\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tcin>>x;\n\t\tif (x>=1&&x<=18)\n\t\t{\n\t\t\ta=a+1;\n\t\t}\n\t\tif (x>=19&&x<=35)\n\t\t{\n\t\t\tb=b+1;\n\t\t}\n\t\tif (x>=36&&x<=60)\n\t\t{\n\t\t\tc=c+1;\n\t\t}\n\t\tif (x>=61)\n\t\t{\n\t\t\td=d+1;\n\t\t}\n\t}\n\te=(float)a/(float)n*100;\n\tf=(float)b/(float)n*100;\n\tg=(float)c/(float)n*100;\n\th=(float)d/(float)n*100;\n\tcout<<\"1-18: \"<18)\n\t\t\tb++;\n\t\tif(age[j]<=60&&age[j]>35)\n\t\t\tc++;\n\t\tif(age[j]>60)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)a/n*100);\n printf(\"19-35: %.2lf%%\\n\",(double)b/n*100);\n printf(\"36-60: %.2lf%%\\n\",(double)c/n*100);\n printf(\"60??: %.2lf%%\\n\",(double)d/n*100);\n\treturn 0;\n}\n\n\n"} +{"label": "99", "index": "49403", "code": "void main()\n{\n\tint n,a=0,b=0,c=0,d=0,i,m;\n\tdouble a1,b1,c1,d1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&m<36)\n\t\tb++;\n\t\telse if(m>35&&m<61)\n\t\tc++;\n\t\telse\n\t\td++;\n\t}\n\ta1=(double)a/n*100;\tb1=(double)b/n*100;\n\tc1=(double)c/n*100;\td1=(double)d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",a1);\n printf(\"19-35: %.2lf%%\\n\",b1);\n printf(\"36-60: %.2lf%%\\n\",c1);\n printf(\"60??: %.2lf%%\\n\",d1);\n}"} +{"label": "99", "index": "49404", "code": "\nint main(int argc, char* argv[])\n{\n\tint a[105];\n\tint n,i;\n\tint e=0;\n\tint b=0;\n\tint c=0;\n\tint d=0;\n\tdouble e1,b1,c1,d1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18 && a[i]<=35) b++;\n\telse if(a[i]>35 && a[i]<=60) c++;\n\telse d++;\n\t}\n\te1=(double)e/n*100;\n\tb1=(double)b/n*100;\n c1=(double)c/n*100;\n d1=(double)d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",e1);\n printf(\"19-35: %.2lf%%\\n\",b1);\n\tprintf(\"36-60: %.2lf%%\\n\",c1);\n printf(\"60??: %.2lf%%\\n\",d1);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49405", "code": "int main(){\n\tint n,i;\n\tfloat zu1=0,zu2=0,zu3=0,zu4=0,a[10000];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0&&a[i]<=18){\n\tzu1+=1;\n\t} \n\tif(a[i]>18&&a[i]<=35){\n\tzu2+=1;\n\t} \n\tif(a[i]>35&&a[i]<=60){\n\tzu3+=1;\n\t} \n\tif(a[i]>60){\n\tzu4+=1;\n\t} \n\t}\nprintf(\"1-18: %.2f%%\\n\",zu1/n*100);\nprintf(\"19-35: %.2f%%\\n\",zu2/n*100);\nprintf(\"36-60: %.2f%%\\n\",zu3/n*100);\nprintf(\"60??: %.2f%%\\n\",zu4/n*100);\nreturn 0;\n}"} +{"label": "99", "index": "49406", "code": "int main()\n{\n\tint sz[100],i;\n\tdouble a,b,c,d;\n\tdouble e=0,f=0,g=0,h=0,n;\n\tscanf(\"%lf\",&n);\n\tfor(i=0;i18&&(nl[i])<36){\n\t\t v+=1;\n\t\t}else if((nl[i])>35&&(nl[i])<61){\n\t\t y+=1;\n\t\t}else if((nl[i])>60){\n\t\t z+=1;\n\t\t}\n }\n\ta=1.0*u/n*100.0;\n\tb=1.0*v/n*100.0;\n\tc=1.0*y/n*100.0;\n\td=1.0*z/n*100.0;\n\n\tprintf(\"1-18: %.2lf%\\n\",a);\n printf(\"19-35: %.2lf%\\n\",b);\n\tprintf(\"36-60: %.2lf%\\n\",c);\n\tprintf(\"60??: %.2lf%\\n\",d);\t\n\treturn 0;\n}"} +{"label": "99", "index": "49409", "code": "int main()\n{\n\tdouble a[100],b=0,c=0,d=0,e=0,f=0;\n\tint n,i;\n\tdouble r,s,t,u;\n\tscanf(\"%d\", &n);\n\tfor(i=0;i60)\n\t\t\tb=b+1;\n\t\telse\n\t\t{\n\t\t\tif(a[i]>35)\n\t\t\t\tc=c+1;\n\t\t\telse\n\t\t\t\tif(a[i]>18)\n\t\t\t\t\td=d+1;\n\t\t\t\telse\n\t\t\t\t\te=e+1;\n\t\t}\n\t}\n\tf=b+c+d+e;\n\tu=100*b/f;\n\tt=100*c/f;\n\ts=100*d/f;\n\tr=100*e/f;\n\tprintf(\"1-18: %.2lf%%\\n\", r);\n\tprintf(\"19-35: %.2lf%%\\n\", s);\n\tprintf(\"36-60: %.2lf%%\\n\", t);\n\tprintf(\"60??: %.2lf%%\\n\", u);\n\treturn 0;\n}"} +{"label": "99", "index": "49410", "code": "int main()\n{\n\tint i, n, input, r[4];\n\tscanf(\"%d\", &n);\n\tfor(i=0; i<4; i++) r[i]=0;\n\tfor(i=0; i18&&input<36) r[1]++;\n\t\tif(input>35&&input<61) r[2]++;\n\t\tif(input>60) r[3]++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\", r[0]*100.0/n);\n\tprintf(\"19-35: %.2lf%%\\n\", r[1]*100.0/n);\n\tprintf(\"36-60: %.2lf%%\\n\", r[2]*100.0/n);\n\tprintf(\"60??: %.2lf%%\\n\", r[3]*100.0/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49411", "code": "\nint main(int argc, char* argv[]){\n\tint n,age[100],i,team[4]={0};\n\tdouble per[4];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&age[i]<36) team[1]++;\n\t\telse if(age[i]>35&&age[i]<61) team[2]++;\n\t\telse if(age[i]>59) team[3]++;\n\t}\n\tper[0]=(double)team[0]/n*100;\n\tper[1]=(double)team[1]/n*100;\n\tper[2]=(double)team[2]/n*100;\n\tper[3]=(double)team[3]/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",per[0],per[1],per[2],per[3]);\n\n\t\n\n\treturn 0;\n}\n"} +{"label": "99", "index": "49412", "code": "\nint main()\n{\n\tint a[100],n,i,m=0,b=0,c=0,d=0;\n\tdouble q1,q2,q3,q4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0)\n\t\t{\n\t \tm+=1;\n\t\t}\n\t\tif(a[i]<=35&&a[i]>=19)\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\tif(a[i]<=60&&a[i]>=36)\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\tif(a[i]>60)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t}\n\tq1=(double)100*m/n;\n q2=(double)100*b/n;\n\tq3=(double)100*c/n;\n\tq4=(double)100*d/n;\n\tprintf(\"1-18: %.2lf%%\\n\",q1);\n\tprintf(\"19-35: %.2lf%%\\n\",q2);\n\tprintf(\"36-60: %.2lf%%\\n\",q3);\n\tprintf(\"60??: %.2lf%%\\n\",q4);\n\treturn 0;\n}"} +{"label": "99", "index": "49413", "code": "int main(){\n\tint n,i;\n\tint age[100];\n\tdouble a=0.0,b=0.0,c=0.0,d=0.0;\n\tdouble e,A,B,C,D;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&age[i]<=18)\n\t\t\ta++;\n\t\telse if(age[i]>=19&&age[i]<=35)\n\t\t\tb++;\n\t\tif(age[i]>=36&&age[i]<=60)\n\t\t\tc++;\n\t\tif(age[i]>=61)\n\t\t\td++;\n\t}\n\te=a+b+c+d;\n\tA=a/e*100;\n\tB=b/e*100;\n\tC=c/e*100;\n\tD=d/e*100;\n\tprintf(\"1-18: %.2lf%\\n\",A);\n\tprintf(\"19-35: %.2lf%\\n\",B);\n\tprintf(\"36-60: %.2lf%\\n\",C);\n\tprintf(\"60??: %.2lf%\\n\",D);\n\treturn 0;\n}"} +{"label": "99", "index": "49414", "code": "int main()\n{\n\tint n,i,y;//????\n\tcin>>n;//?????????\n\tdouble a,b,c,d;//????\n\ta=0,b=0,c=0,d=0;//???a,b,c,d??\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>y;//??????\n\t\tif(y<=18)a=a+1;//??y<=18,a=a+1\n\t\telse if(y>=19&&y<=35)b=b+1;//??19<=y<=35,b=b+1\n\t\telse if(y>=36&&y<=60)c=c+1;//??36<=y<=60,c=c+1\n\t\telse d=d+1;//???d=d+1\n\t}\n\tcout<<\"1-18: \"<18&&a[i]<=35){\n y++;\n }else if(a[i]>35&&a[i]<=60){\n z++;\n }else{\n w++;\n }\n }\n b=100.0*x/n;\n c=100.0*y/n;\n d=100.0*z/n;\n e=100.0*w/n;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\nOver60: %.2lf%%\",b,c,d,e);\n return 0;\n}\n\n\n\n"} +{"label": "99", "index": "49417", "code": "int main()\n{\n\tint i,n,x;\n\tdouble q,w,e,r,a,b,c,d;\n\tscanf(\"%d\",&n);\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tfor(i=0;i18)&&(x<=35))\n\t\t\tb=b+1;\n\t\telse if((x>=36)&&(x<=60))\n\t\t\tc=c+1;\n\t\telse if(x>60)\n\t\t\td=d+1;\n\t}\n\tq=a/n*100;\n\tw=b/n*100;\n\te=c/n*100;\n\tr=d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n\",q);\n\tprintf(\"19-35: %.2lf%%\\n\",w);\n\tprintf(\"36-60: %.2lf%%\\n\",e);\n\tprintf(\"60??: %.2lf%%\\n\",r);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49418", "code": "int main()\n{\n int sm[100];\n int a=0,b=0,c=0,d=0,i,n;\n scanf(\"%d\",&n);\n for(i=0;i18&&nl<36)\n\t\t\tnld[1]++;\n\t\t \n\t\tif(nl>35&&nl<61)\n\t\t\tnld[2]++;\n\t\t \n\t\tif(nl>60)\n\t\t\tnld[3]++;\n\t\t \n\t}\n printf(\"1-18: %.2lf%%\\n\",(100.0*nld[0])/n);\n\t printf(\"19-35: %.2lf%%\\n\",(100.0*nld[1])/n);\n\t printf(\"36-60: %.2lf%%\\n\",(100.0*nld[2])/n);\n\t printf(\"60??: %.2lf%%\\n\",(100.0*nld[3])/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49420", "code": "int main(){\n\tint n,a=0,b=0,c=0,d=0;\n\tint i;\n int sz[10000];\n\tscanf(\"%d\",&n);\n for(i=0;i<=(n-1);i++){\n\t\tscanf(\"%d\", &(sz[i]));\n\t\tif(sz[i]>0&&sz[i]<=18){\n\t\t\ta++;\n\t\t}else if(sz[i]>=19&&sz[i]<=35){\n\t\t\tb++;\n\t\t}else if(sz[i]>=36&&sz[i]<=60){\n\t\t\tc++;\n\t\t}else if(sz[i]>=61){\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",1.0*a/n*100);\n printf(\"19-35: %.2lf%%\\n\",1.0*b/n*100);\n\tprintf(\"36-60: %.2lf%%\\n\",1.0*c/n*100);\n\tprintf(\"60??: %.2lf%%\\n\",1.0*d/n*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49421", "code": "int main(){\n int age[100];\n int i,n;\n scanf(\"%d\",&n);\n \n for(i=0;i60){\n\t\t s4 += 1;\n\t }\n }\n m=s1+s2+s3+s4;\n \n printf(\"1-18: %.2lf%%\\n\",100*s1/m);\n printf(\"19-35: %.2lf%%\\n\",100*s2/m);\n printf(\"36-60: %.2lf%%\\n\",100*s3/m);\n printf(\"Over60: %.2lf%%\\n\",100*s4/m);\n \n return 0;\n}\n"} +{"label": "99", "index": "49422", "code": "int main()\n{\n\tint n,i;\n\tint a[100]={0};\n\tint s=0,q=0,z=0,l=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35)\t\n\t\t{\n\t\t\tq+=1;\n\t\t}\n\t\telse if(a[i]>35&&a[i]<=60)\t\n\t\t{\n\t\t\tz+=1;\n\t\t}\n\t\telse if(a[i]>60)\t\n\t\t{\n\t\t\tl+=1;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%\\n\",100.0*s/n);\n\tprintf(\"19-35: %.2lf%\\n\",100.0*q/n);\n\tprintf(\"36-60: %.2lf%\\n\",100.0*z/n);\n\tprintf(\"60??: %.2lf%\\n\",100.0*l/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49423", "code": "int main()\n{\n\tint i,n,a[100];\n\tfloat x=0,y=0,z=0,m=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t\ty++;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\tz++;\n\t\tif(a[i]>60)\n\t\t\tm++;\n\t}\n\tx=x*1.0/n*100;\n\ty=y*1.0/n*100;\n\tz=z*1.0/n*100;\n\tm=m*1.0/n*100;\n\tprintf(\"1-18: %.2f%%\\n\",x);\n\tprintf(\"19-35: %.2f%%\\n\",y);\n\tprintf(\"36-60: %.2f%%\\n\",z);\n\tprintf(\"60??: %.2f%%\\n\",m);\n\n\n\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49424", "code": "int main(){\n int n,i=1,k,a=0,b=0,c=0,d=0;\n double e,f,g,h;\n scanf(\"%d\",&n);\n while(i<=n){\n scanf(\"%d\",&k);\n if(k<=18&&k>0){\n a+=1;\n i++;\n }else if(k>18&&k<=35){\n b+=1;\n i++;\n }else if(k>35&&k<=60){\n c+=1;\n i++;\n }else{\n d+=1;\n i++;\n }\n }\n e=100.0*a/n;\n f=100.0*b/n;\n g=100.0*c/n;\n h=100.0*d/n;\n printf(\"1-18: %.2lf%%\\n\",e);\n printf(\"19-35: %.2lf%%\\n\",f);\n printf(\"36-60: %.2lf%%\\n\",g);\n printf(\"60??: %.2lf%%\\n\",h);\n return 0;\n }"} +{"label": "99", "index": "49425", "code": "void main()\n{\n\tint n,i;\n\n\tint m;\n\tdouble b,c,d,e;\n\tb=0;c=0;d=0;e=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&m<=18)\n\t\t{\n\t\t\tb+=1;\n\t\t}\n\t\t\n\t\tif(m>=19&&m<=35)\n\t\t{\n\t\t\tc+=1;\n\t\t}\n\t\t\n\t\tif(m>=36&&m<=60)\n\t\t{\n\t\t\td+=1;\n\t\t}\n\t\t\n\t\tif(m>=61)\n\t\t{\n\t\t\te+=1;\n\t\t}\n\t\t\n\t}\n\tprintf(\"1-18: %.2lf\",(double)(b/n)*100);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",(double)(c/n)*100);\n\tprintf(\"%%\\n\");\n\tprintf(\"36-60: %.2lf\",(double)(d/n)*100);\n\tprintf(\"%%\\n\");\n\tprintf(\"60??: %.2lf\",(double)(e/n)*100);\n\tprintf(\"%%\\n\");\n}"} +{"label": "99", "index": "49426", "code": "int main(){\n\tint n,i,a[100],sum1=0,sum2=0,sum3=0,sum4=0;\n\tscanf(\"%d\\n\",&n);\n\tfor(i=0;i=19)\n\t\t\tsum2+=1;\n\t\telse if(a[i]<=60&&a[i]>=36)\n\t\t\tsum3+=1;\n\t\telse if(a[i]>60)\n\t\t\tsum4+=1;\n\t}\n\tdouble p1,p2,p3,p4;\n\tp1=(double)100*(double)sum1/n;\n p2=(double)100*(double)sum2/n;\n p3=(double)100*(double)sum3/n;\n p4=(double)100*(double)sum4/n;\n \tprintf(\"1-18: %.2lf%\\n\",p1);\n printf(\"19-35: %.2lf%\\n\",p2);\n printf(\"36-60: %.2lf%\\n\",p3);\n printf(\"60??: %.2lf%\\n\",p4);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49427", "code": "int main()\n{\n int n;\n int i,j,age[100];\n double percent[3],sum[3];\n scanf(\"%d\\n\",&n);\n for(i=0;i=19&&a[i]<=35)\n\t\t\tcount2+=1;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\tcount3+=1;\n\t\telse count4+=1;\n\t}\n\tb1=count1*100.00/n;\n\tb2=count2*100.00/n;\n\tb3=count3*100.00/n;\n\tb4=count4*100.00/n;\n\tprintf(\"1-18: %.2f%\\n19-35: %.2f%\\n36-60: %.2f%\\n60??: %.2f%\",b1,b2,b3,b4);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49429", "code": "int read();\nvoid tongji();\nvoid print();\nint n,a[4],b[100];\nint main()\n{\n read();\n tongji();\n print();\n return 0;\n}\nint read()\n{\n int i;\n scanf(\"%d\",&n);\n for (i=1;i<=n;i++)\n {\n scanf(\"%d\",&b[i]);\n }\n for (i=1;i<=4;i++){\n a[i]=0;\n }\n return 0;\n}\nvoid tongji()\n{\n int i;\n for (i=1;i<=n;i++)\n {\n if (b[i]<=18)\n {\n a[1]++;\n }else {\n if (b[i]<=35)\n {\n a[2]++;\n } else {\n if (b[i]<=60)\n {\n a[3]++;\n } else {\n a[4]++;\n }\n }\n }\n }\n return;\n}\nvoid print()\n{\n double c[4];\n int i;\n for (i=1;i<=4;i++)\n {c[i]=100.00*a[i]/n;}\n printf(\"1-18: %.2lf%%\\n\",c[1]);\n printf(\"19-35: %.2lf%%\\n\",c[2]);\n printf(\"36-60: %.2lf%%\\n\",c[3]);\n printf(\"Over60: %.2lf%%\",c[4]);\n return;\n}\n\n\n\n"} +{"label": "99", "index": "49430", "code": "\n\nint main()\n{\n\tint n;\n\tint i;\n\tint temp;\n\tdouble a = 0, b = 0, c = 0, d = 0;\n\tdouble ra, rb, rc, rd;\n\n\tcin >> n;\n\n\tfor(i = 0; i < n; i ++)\n\t{\n\t\tcin >> temp;\n\n\t\tif(1 <= temp && temp <= 18)\n\t\t\ta ++;\n\t\telse if(19 <= temp && temp <= 35)\n\t\t\tb ++;\n\t\telse if(36 <= temp && temp <= 60)\n\t\t\tc ++;\n\t\telse\n\t\t\td ++;\n\t}\n\n\tra = a * 100 / n;\n\trb = b * 100 / n;\n\trc = c * 100 / n;\n\trd = d * 100 / n;\n\n\tcout << \"1-18: \" << fixed << setprecision(2) << ra << '%' << endl;\n\tcout << \"19-35: \" << rb << '%' << endl;\n\tcout << \"36-60: \" << rc << '%' << endl;\n\tcout << \"Over60: \" << rd << '%' << endl;\n\n\t\n\t\n\n}"} +{"label": "99", "index": "49431", "code": "int main()\n{\n\tint n,s[1000],i,a,b,c,d;\n\ta=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&s[i]<=18)\n\t\t\ta++;\n\t\telse if(s[i]>=19&&s[i]<=35)\n\t\t\tb++;\n\t\telse if(s[i]>35&&s[i]<=60)\n\t\t\tc++;\n\t\telse if(s[i]>60)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",100*(double)a/n);\n\tprintf(\"19-35: %.2lf%%\\n\",100*(double)b/n);\n\tprintf(\"36-60: %.2lf%%\\n\",100*(double)c/n);\n\tprintf(\"60??: %.2lf%%\\n\",100*(double)d/n);\n\treturn 0;\n\n}\n"} +{"label": "99", "index": "49432", "code": "int main()\n{\n int n,a=0,b=0,c=0,d=0,age[100],i;\n scanf(\"%d\",&n);\n for(i=0;i18&&a<=35) t2++;\n if (a>35&&a<=60) t3++;\n if (a>60) t4++;\n }\n r1=t1/n*100;\n r2=t2/n*100;\n r3=t3/n*100;\n r4=t4/n*100;\n printf (\"1-18: %.2f%%\\n\",r1);\n printf (\"19-35: %.2f%%\\n\",r2);\n printf (\"36-60: %.2f%%\\n\",r3);\n printf (\"60??: %.2f%%\\n\",r4);\n return 0;\n}\n"} +{"label": "99", "index": "49434", "code": "int main(){\n double a,b,c,d;\n int i,n,p;\n scanf(\"%d\",&n);\n a=0;\n b=0;\n c=0;\n d=0;\n for(i=0;i=19&&p<=35)\n b++;\n else if(p>=36&&p<=60)\n c++;\n else\n d++;\n }\n a=100*a/n;\n b=100*b/n;\n c=100*c/n;\n d=100*d/n;\n printf(\"1-18: %.2lf\",a);\n printf(\"%%\\n\");\n printf(\"19-35: %.2lf\",b);\n printf(\"%%\\n\");\n printf(\"36-60: %.2lf\",c);\n printf(\"%%\\n\");\n printf(\"Over60: %.2lf\",d);\n printf(\"%%\");\n return 0;\n}\n\n\n"} +{"label": "99", "index": "49435", "code": "int main(){\n\tint n;\n\tint a;\n\tdouble sum1=0.0;\n\tdouble sum2=0.0;\n\tdouble sum3=0.0;\n\tdouble sum4=0.0;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=1&&a<=18){\n\t\tsum1+=1.0;\n\t}\n\telse if(a>=19&&a<=35){\n\t\tsum2+=1.0;\n\t}\n else if(a>=36&&a<=60){\n\t\tsum3+=1.0;\n\t}\n\telse if(a>60){\n\t\tsum4+=1.0;\n\t}\n\t}\n printf(\"1-18: %.2lf%%\\n\",(double)(sum1/n)*100.0);\n printf(\"19-35: %.2lf%%\\n\",(double)(sum2/n)*100.0);\n printf(\"36-60: %.2lf%%\\n\",(double)(sum3/n)*100.0);\n printf(\"60??: %.2lf%%\\n\",(double)(sum4/n)*100.0);\n\treturn 0;\n}"} +{"label": "99", "index": "49436", "code": "int main()\n{\n\tdouble q,a1=0,a2=0,a3=0,a4=0;\n\tint n,i;\n\tscanf(\"%d\",&n);\n\tq=(double)n;\n\tfor(i=0;i=1&&y<=18){\n\t\t\ta=a+1;\n\t\t}\n if(y>=19&&y<=35){\n\t\t\tb=b+1;\n\t\t}\n if(y>=36&&y<=60){\n\t\t\tc=c+1;\n\t\t}\n\t\tif(y>=61){\n\t\t\td=d+1;\n\t\t}\n i++;\n\t}\n\te=1.0*a/n*100;\n\tf=1.0*b/n*100;\n\tg=1.0*c/n*100;\n\th=1.0*d/n*100;\n printf(\"1-18: %.2lf%%\\n\",e);\n printf(\"19-35: %.2lf%%\\n\",f);\n printf(\"36-60: %.2lf%%\\n\",g);\n printf(\"60??: %.2lf%%\\n\",h);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49438", "code": "int main(){\n int n,i,s1=0,s2=0,s3=0,s4,sz[100];\n double p1,p2,p3,p4;\n scanf(\"%d\\n\",&n);\n for(i=0;i=19&&sz[i]<=35){\n s2++; \n }\n if(sz[i]>=36&&sz[i]<=60){\n s3++; \n }\n }\n s4=n-s1-s2-s3;\n p1=(double)100*s1/n;\n p2=(double)100*s2/n;\n p3=(double)100*s3/n;\n p4=(double)(100*s4)/n;\n printf(\"1-18: %.2lf%%\\n\",p1);\n printf(\"19-35: %.2lf%%\\n\",p2);\n printf(\"36-60: %.2lf%%\\n\",p3);\n printf(\"60??: %.2lf%%\",p4);\n return 0;\n}"} +{"label": "99", "index": "49439", "code": "int main(){\n\tint n,a,b,c,d,i;\n\tint m[100];\n\tdouble a1,b1,c1,d1;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a<=35)\n\t\t{\n\t\t\tsumb++;\n\t\t}\n\t\telse if(a>=36&&a<=60)\n\t\t{\n\t\t\tsumc++;\n\t\t}\n\t\telse if(a>60)\n\t\t{\n\t\t\tsumd++;\n\t\t}\n\t\tsum++;\n\t}\n\t\n\tprintf(\"1-18: %.2lf%%\\n\",100.0*suma/sum);\n\tprintf(\"19-35: %.2lf%%\\n\",100.0*sumb/sum);\n\tprintf(\"36-60: %.2lf%%\\n\",100.0*sumc/sum);\n\tprintf(\"60??: %.2lf%%\",100.0*sumd/sum);\nreturn 0;\n}\n"} +{"label": "99", "index": "49441", "code": "int main()\n{\n\tint n,i,a[100];\n\tdouble x,y,z,k,b,c,d,e;\n\tscanf(\"%d\",&n);\n\tb=0;\n\tc=0;\n\td=0;\n\te=0;\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t\tc++;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\td++;\n\t\tif(a[i]>60)\n\t\t\te++;\n\t}\n\tx=100*b/(b+c+d+e);\n\ty=100*c/(b+c+d+e);\n\tz=100*d/(b+c+d+e);\n\tk=100*e/(b+c+d+e);\n\tprintf(\"1-18: %.2lf%%\\n\",x);\n\tprintf(\"19-35: %.2lf%%\\n\",y);\n\tprintf(\"36-60: %.2lf%%\\n\",z);\n\tprintf(\"60??: %.2lf%%\\n\",k);\n\treturn 0;\n\n}"} +{"label": "99", "index": "49442", "code": "void main()\n{\n\tint i,n;\n double e=0,b=0,c=0,d=0,l,m,x,o;\n\tint a[101];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18) e++;\n if(a[i]>=19&&a[i]<=35) b++;\n if(a[i]>=36&&a[i]<=60) c++;\n if(a[i]>60) d++;\n\t}\n l=100*(e+0.0)/n;\n m=100*(b+0.0)/n;\n x=100*(c+0.0)/n;\n o=100*(d+0.0)/n;\n\tprintf(\"1-18: \");printf(\"%.2lf\",l);printf(\"%%\\n\");\n printf(\"19-35: \");printf(\"%.2lf\",m);printf(\"%%\\n\");\n printf(\"36-60: \");printf(\"%.2lf\",x);printf(\"%%\\n\");\n printf(\"60??: \");printf(\"%.2lf\",o);printf(\"%%\");\n}"} +{"label": "99", "index": "49443", "code": "int main () \n{int n,i,s;\ndouble a,b,c,d;\na=b=c=d=0;\nchar l='%';\nscanf (\"%d\",&n);\nfor (i=0;i=19&&x<=35){\n b++;\n }\n else if(x>=36&&x<=60){\n c++;\n }\n else if(x>60){\n d++;\n }\n i++;\n }\n m=100*a/n;\n h=100*b/n;\n p=100*c/n;\n q=100*d/n;\n printf(\"1-18: %.2lf\",m);\n printf(\"%%\\n\");\n printf(\"19-35: %.2lf\",h);\n printf(\"%%\\n\");\n printf(\"36-60: %.2lf\",p);\n printf(\"%%\\n\");\n printf(\"60??: %.2lf\",q);\n printf(\"%%\");\n return 0;\n \n}"} +{"label": "99", "index": "49446", "code": "int main()\n{\n\tint age[100];\n\tint n;\n\tint i;\n\tint sum1=0,sum2=0,sum3=0,sum4=0,tal=0;\n\tdouble a1=0,a2=0,a3=0,a4=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&age[i]<36) sum2++;\n\t\tif(age[i]>35&&age[i]<61) sum3++;\n\t\tif(age[i]>60) sum4++;\n\t}\n\tfor(i=0;i=19&&sz[i]<=35){\n\t\t\tb++;\n\t\t}\n if(sz[i]>=36&&sz[i]<=60){\n\t\t\tc++;\n\t\t}\n\n if(sz[i]>=61){\n\t\t\td++;\n\t\t}\n\t}\ndouble a1,b1,c1,d1;\n a1=(double)100*a/(a+b+c+d);\n\t\t b1=(double)100*b/(a+b+c+d);\n c1=(double)100*c/(a+b+c+d);\n d1=(double)100*d/(a+b+c+d);\n\n\n\n\n\t\t\t\nprintf(\"1-18: %.2lf%%\\n\",a1);\nprintf(\"19-35: %.2lf%%\\n\",b1);\nprintf(\"36-60: %.2lf%%\\n\",c1);\nprintf(\"60??: %.2lf%%\\n\",d1);\nreturn 0;\n\n}"} +{"label": "99", "index": "49448", "code": "\nint main()\n{\n int n,i,age,p1=0,p2=0,p3=0,p4=0;\n scanf(\"%d\",&n);\n for (i=0;i18&&age<=35) p2++;\n if (age>35&&age<=60) p3++;\n if (age>60) p4++;\n }\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\nOver60: %.2lf%%\\n\",(double)p1/n*100,(double)p2/n*100,(double)p3/n*100,(double)p4/n*100);\n return 0;\n}\n\n\n\n\n"} +{"label": "99", "index": "49449", "code": "void main()\n{\n\tint n,i,a[100],z=0,u=0,m=0,o=0,p=0;\n\tdouble h,j,k,l;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1)&&(a[i]<=18)) e=e+1;\n if((a[i]>=19)&&(a[i]<=35)) b=b+1;\n if((a[i]>=36)&&(a[i]<=60)) c=c+1;\n if((a[i]>60)) d=d+1;\n \n }\n e1=e/n*100;\n b1=b/n*100;\n c1=c/n*100;\n d1=d/n*100;\n printf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\",e1,b1,c1,d1);\n}\n\n"} +{"label": "99", "index": "49451", "code": "int main()\n{\n\tint n,p=0,q=0,r=0,s=0,i;\n\tdouble c1,c2,c3,c4;\n\tint a[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&a[i]<=35)\n\t\t{\n\t\t\tq=q+1;\n\t\t}\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t{\n\t\t\tr=r+1;\n\t\t}\n\t\tif(a[i]>=61)\n\t\t{\n\t\t\ts=s+1;\n\t\t}\n\t}\n\tc1=(double)p/n*100;\n\tc2=(double)q/n*100;\n\tc3=(double)r/n*100;\n\tc4=(double)s/n*100;\n\tprintf(\"1-18: %.2lf\",c1);\n\tprintf(\"%%\\n\");\n\tprintf(\"19-35: %.2lf\",c2);\n\tprintf(\"%%\\n\");\n printf(\"36-60: %.2lf\",c3);\n\tprintf(\"%%\\n\");\n printf(\"60??: %.2lf\",c4);\n\tprintf(\"%%\\n\");\n return 0;\n}\n"} +{"label": "99", "index": "49452", "code": "int main(int argc, char* argv[])\n{ int n,a[100];\n scanf(\"%d\",&n);\n\tint i;\n\tint s1=0,s2=0,s3=0,s4=0;\n\tfor(i=0;i=1)&&(a[i]<=18))\n\t\t\ts1++;\n\t\telse if((a[i]>=19)&&(a[i]<=35))\n\t\t\ts2++;\n\t\telse if((a[i]>=36)&&(a[i]<=60))\n\t\t\ts3++;\n\t\telse s4++;\n\t}\n\tint S;\n\tS=s1+s2+s3+s4;\n\tprintf(\"1-18: %.2lf%%\\n\",(double)s1*100/S);\n\tprintf(\"19-35: %.2lf%%\\n\",(double)s2*100/S);\n\tprintf(\"36-60: %.2lf%%\\n\",(double)s3*100/S);\n\tprintf(\"60??: %.2lf%%\\n\",(double)s4*100/S);\n\treturn 0;\n}\n\n"} +{"label": "99", "index": "49453", "code": "int main()\n{\n\tint n,age,a=0,b=0,c=0,d=0,i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0&&age<=18)\n\t\t\ta++;\n\t\tif(age>=19&&age<=35)\n\t\t\tb++;\n\t\tif(age>=36&&age<=60)\n\t\t\tc++;\n\t\tif(age>=61)\n\t\t\td++;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",100.0*a/n);\n\tprintf(\"19-35: %.2lf%%\\n\",100.0*b/n);\n\tprintf(\"36-60: %.2lf%%\\n\",100.0*c/n);\n\tprintf(\"60??: %.2lf%%\\n\",100.0*d/n);\n\treturn 0;\n}"} +{"label": "99", "index": "49454", "code": "int main(){\n int n,a,b,c,d,i;\n double x,y,z,t,e,f,g,h,m;\n a=0;\n b=0;\n c=0;\n d=0;\n scanf(\"%d\\n\",&n);\n int sz[n];\n for(i=0;i18&&sz[i]<36){\n b=b+1;\n }else if(sz[i]>35&&sz[i]<61){\n c=c+1;\n }else{\n d=d+1;\n }\n }\n e=a;\n f=b;\n g=c;\n h=d;\n m=n;\n x=e/m;\n y=f/m;\n z=g/m;\n t=h/m;\n printf(\"1-18: %.2lf%%\\n\",x*100);\n printf(\"19-35: %.2lf%%\\n\",y*100);\n printf(\"36-60: %.2lf%%\\n\",z*100);\n printf(\"Over60: %.2lf%%\\n\",t*100);\n return 0;\n}\n\n"} +{"label": "99", "index": "49455", "code": "\nint main()\n{\n\tint n,a[100];\n\tdouble a18=0.0,a19=0.0,a36=0.0,a61=0.0;\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=19) a19++;\n\t\tif(a[i]<=60&&a[i]>=36) a36++;\n\t\tif(a[i]>=61) a61++;\n\t}\n\ta18=(double)(a18/n*100);\na19=(double)(a19/n*100);\n\t\ta36=(double)(a36/n*100);\n\t\ta61=(double)(a61/n*100);\n\tprintf(\"1-18: %.2lf%%\\n\",a18);\n\tprintf(\"19-35: %.2lf%%\\n\",a19);\n\tprintf(\"36-60: %.2lf%%\\n\",a36);\n\tprintf(\"60??: %.2lf%%\\n\",a61);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49456", "code": "int main()\n{\n\tdouble s,t,r,w,n,i,a,b,c,j=0,k=0,l=0,m=0;\n\tscanf(\"%lf\\n\",&n);\n for(i=0;i18)\n\t\t{\n\t\t\tk++;\n\t\t}\n\t\tif(a<61&&a>35)\n\t\t{\n\t\t\tl++;\n\t\t}\n if(a>60)\n\t\t{\n\t\t\tm++;\n\t\t}\n\t}\n\tr=100*j/n;\n\ts=100*k/n;\n\tt=100*l/n;\n\tw=100*m/n;\n printf(\"1-18: %.2lf%%\\n\",r);\n\tprintf(\"19-35: %.2lf%%\\n\",s);\n\tprintf(\"36-60: %.2lf%%\\n\",t);\n\tprintf(\"60??: %.2lf%%\\n\",w);\n\t\t\n\t\n\treturn 0;\n}\n"} +{"label": "99", "index": "49457", "code": "int main(){\n int n,m; \ndouble a,b,c,d;\n a=0;\nb=0;\nc=0;\nd=0;\n scanf(\"%d\\n\",&n);\n m=n;\n int age[m];\n int i;\n for(i=0;i=19&&num<=35){b++;i++;}\n else if(num>=36&&num<=60){c++;i++;}\n else if(num>=61){d++;i++;}\n }\n w=a/n*100;x=b/n*100;y=c/n*100;z=d/n*100;\n printf(\"1-18: %.2lf%%\\n\",w);\n printf(\"19-35: %.2lf%%\\n\",x);\n printf(\"36-60: %.2lf%%\\n\",y);\n printf(\"Over60: %.2lf%%\\n\",z);\n return 0;\n}\n \n \n \n \n"} +{"label": "99", "index": "49459", "code": "//\n// ????4.cpp ?????\n// ?????? 1200012943\n// ??:2012.9.29\n//\nint main()\n{\n\tint n; //??n?????\n\tfloat x1 = 0, x2 = 0, x3 = 0, x4 = 0; //??x1 x2 x3 x4??????\n int a[100];\n cin >> n; //??n\n for(int i = 0; i < n; i++)\n\t{\n\t\tcin >> a[i]; //??an\n\t\tif (a[i] <= 18)\n\t\t\tx1 = x1 + 1;\n\t\telse if (a[i] <= 35)\n\t\t\tx2 = x2 + 1;\n\t\t else if (a[i] <= 60)\n\t\t\t x3 = x3 + 1;\n\t\t else\n\t\t\t x4 = x4 + 1;\n\t} \n\tx1 = 100 * x1 / n; //?????\n\tx2 = 100 * x2 / n;\n\tx3 = 100 * x3 / n;\n\tx4 = 100 * x4 / n;\n\tcout << fixed;\n\tcout << \"1-18: \" << setprecision(2) << x1 << \"%\" << endl; //?????\n\tcout << \"19-35: \" << setprecision(2) << x2 << \"%\" << endl;\n\tcout << \"36-60: \" << setprecision(2) << x3 << \"%\" << endl;\n\tcout << \"60??: \" << setprecision(2) << x4 << \"%\" << endl;\n\treturn 0;\n}"} +{"label": "99", "index": "49460", "code": "void main()\n{\n\tint n,age,m1=0,m2=0,m3=0,m4=0,q;\n\tdouble x1,x2,x3,x4;\n\tscanf(\"%d\",&n);\n\tq=n;\n\n\twhile(q>0){\n\t\tscanf(\"%d\",&age);\n\t\tif(age<=18){\n\t\t\tm1++;\n\t\t}\n\t\telse if(age>=19&&age<=35){\n\t\t\tm2++;\n\t\t}\n\t\telse if(age>=36&&age<=60){\n\t\t\tm3++;\n\t\t}\n\t\telse if(age>=61){\n\t\t\tm4++;\n\t\t}\n\t\telse printf(\"data error\\n\");\n\t\tq--;\n\t}\n\tx1=(double)m1/(double)n*100;\n\tx2=(double)m2/(double)n*100;\n\tx3=(double)m3/(double)n*100;\n\tx4=(double)m4/(double)n*100;\n\n\tprintf(\"1-18: %.2lf%%\\n\",x1);\n\tprintf(\"19-35: %.2lf%%\\n\",x2);\n\tprintf(\"36-60: %.2lf%%\\n\",x3);\n\tprintf(\"60??: %.2lf%%\\n\",x4);\n}\n\n\n"} +{"label": "99", "index": "49461", "code": "int main()\n{int n,a1=0,a2=0,a3=0,a4=0,sum=0;\ndouble ax1=0,ax2=0,ax3=0,ax4=0;\nscanf(\"%d\",&n);\nint age[n];\nfor (int i1=0;i118&&age[i1]<36){a2++;}\nif (age[i1]>35&&age[i1]<61){a3++;}\nif (age[i1]>60){a4++;}\n}\nsum=a1+a2+a3+a4;\nax1=(double)a1/sum*100;\nax2=(double)a2/sum*100;\nax3=(double)a3/sum*100;\nax4=(double)a4/sum*100;\nprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\nOver60: %.2lf%%\\n\",ax1,ax2,ax3,ax4);\nreturn 0;\n}\n\n"} +{"label": "99", "index": "49462", "code": "void main()\n{\n\tint i,n,x[100],a=0,b=0,c=0,d=0;\n\tfloat A[4];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&x[i]<=18)a++;\n\t\telse if(x[i]>=19&&x[i]<=35)b++;\n\t\telse if(x[i]>=36&&x[i]<=60)c++;\n\t\telse d++;\n\t}\n\tA[0]=a*100.0/n;\n\tA[1]=b*100.0/n;\n\tA[2]=c*100.0/n;\n\tA[3]=d*100.0/n;\n\tprintf(\"1-18: %.2f%%\\n\",A[0]);\n\tprintf(\"19-35: %.2f%%\\n\",A[1]);\n\tprintf(\"36-60: %.2f%%\\n\",A[2]);\n\tprintf(\"60??: %.2f%%\\n\",A[3]);\n}"} +{"label": "99", "index": "49463", "code": "void main()\n{\n\tint n,i,a[10000],b,c,d,e;\n\tscanf(\"%d\",&n);\n\t\tfor(i=0;i18&&a[i]<=35)\n\t\t\tc++;\n\t\t\t\n\t\t\telse if(a[i]>35&&a[i]<=60)\n\t\t\t\td++;\n\t\t\telse e++;\n\t\t}\n\t\tprintf(\"1-18: %.2f%\\n\",(float)b/n*100);\n printf(\"19-35: %.2f%\\n\",(float)c/n*100);\n printf(\"36-60: %.2f%\\n\",(float)d/n*100);\n printf(\"60??: %.2f%\\n\",(float)e/n*100);\n}"} +{"label": "99", "index": "49464", "code": "int main()\n{\n\tint n;\n\tint a=0;\n\tint b=0;\n\tint c=0;\n\tint d=0;\n\tdouble g,h,j,k;\n\tint num;\n\tint i=1;\n\tscanf(\"%d\\n\",&n);\n\twhile(i<=n){\n\t\tscanf(\"%d\",&num);\n\t\tif(num<19){\n\t\t\ta++;\n\t\t}else if(num<36){\n\t\t\tb++;\n\t\t}else if(num<61){\n\t\t\tc++;\n\t\t}else{\n\t\t\td++;\n\t\t}\n\t\ti++;\n\t}\n\tg=1.0*a/n*100;\n\t\th=1.0*b/n*100;\n\t\tj=1.0*c/n*100;\n\t\tk=1.0*d/n*100;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",g,h,j,k);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49465", "code": "\nvoid main()\n{\n\tint a[100],n,b=0,c=0,d=0,e=0,i;\n\tfloat u,x,y,z,f=1;\n scanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35) c=c+1;\n\t\tif(a[i]>=36&&a[i]<=60) d=d+1;\n\t\tif(a[i]>60) e=e+1;\n\t}\n\tu=f*b/n*100;\n\tx=f*c/n*100;\n\ty=f*d/n*100;\n\tz=f*e/n*100;\n\tprintf(\"1-18: %.2f%\\n\",u);\n\tprintf(\"19-35: %.2f%\\n\",x);\n\tprintf(\"36-60: %.2f%\\n\",y);\n\tprintf(\"60??: %.2f%\\n\",z);\n}"} +{"label": "99", "index": "49466", "code": "int main(int argc, char* argv[])\n{\n\tint age[101],i,n,sum1=0,sum2=0,sum3=0,sum4=0;\n\tdouble p1,p2,p3,p4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&age[i]<=18)\n\t\t{\n\t\t\tsum1++;\n\t\t}\n\t\tif(age[i]>18&&age[i]<=35)\n\t\t{\n\t\t\tsum2++;\n\t\t}\n\t\tif(age[i]>35&&age[i]<=60)\n\t\t{\n\t\t\tsum3++;\n\t\t}\n\t\tif(age[i]>60)\n\t\t{\n\t\t\tsum4++;\n\t\t}\n\t}\n\tp1=100*(float)sum1/(float)n;\n\tp2=100*(float)sum2/(float)n;\n\tp3=100*(float)sum3/(float)n;\n\tp4=100*(float)sum4/(float)n;\n\tprintf(\"1-18: %.2f%%\\n\",p1);\n\tprintf(\"19-35: %.2f%%\\n\",p2);\n\tprintf(\"36-60: %.2f%%\\n\",p3);\n\tprintf(\"60??: %.2f%%\",p4);\n\treturn 0;\n}"} +{"label": "99", "index": "49467", "code": "int main()\n{\nint n,i,a,b,c,d,y[100];\ndouble e,f,g,h;\na=0;\nb=0;\nc=0;\nd=0;\nscanf(\"%d\",&n);\nfor(i=0;i=1&&y[i]<=18)\na++;\nif(y[i]>=19&&y[i]<=35)\nb++;\nif(y[i]>=36&&y[i]<=60)\nc++;\nelse if(y[i]>=61)\nd++;\n}\ne=(double)100*a/n;\nf=(double)100*b/n;\ng=(double)100*c/n;\nh=(double)100*d/n;\nprintf(\"1-18: %.2lf%%\\n\",e);\nprintf(\"19-35: %.2lf%%\\n\",f);\nprintf(\"36-60: %.2lf%%\\n\",g);\nprintf(\"60??: %.2lf%%\\n\",h);\nreturn 0;\n}\n"} +{"label": "99", "index": "49468", "code": "int main()\n{\n\tint a,y,i;\n\tfloat m,n,p,q;\n\tscanf(\"%d\",&y);\n\tm=0;\n\tn=0;\n\tp=0;\n\tq=0;\n\tfor(i=0;i18){\n\t\t\tn++;\n\t\t}\n\t\telse if(a>35&&a<=60){\n\t\t\tp++;\n\t\t}\n\t\telse if(a>60){\n\t\t\tq++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2f%%\\n19-35: %.2f%%\\n36-60: %.2f%%\\n60??: %.2f%%\\n\",m*100/y,n*100/y,p*100/y,q*100/y);\n\treturn 0;\n}"} +{"label": "99", "index": "49469", "code": "int main(int argc, char* argv[])\n{\n\tint n,i,x,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=19&&x<=35){\n\t\t\tb++;\n\t\t}\n\t\telse if(x>=36&&x<=60){\n\t\t\tc++;\n\t\t}\n\t\telse if(x>=61){\n\t\t\td++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",(double)100*a/n);\n printf(\"19-35: %.2lf%%\\n\",(double)100*b/n);\n printf(\"36-60: %.2lf%%\\n\",(double)100*c/n);\n printf(\"60??: %.2lf%%\\n\",(double)100*d/n);\n return 0;\n\n}\n\n"} +{"label": "99", "index": "49470", "code": "int main ()\n{\n int n,a[1000],c[5]={0}; //?? \n double b[5]={0}; \n cin >>n; //?? \n for (int i=1;i<=n;i++)\n cin >>a[i];\n for (int i=1;i<=n;i++) //?? \n {\n if (a[i]<=18)\n c[1]++;\n else\n {\n if (a[i]<=35)\n c[2]++;\n else\n {\n if (a[i]<=60)\n c[3]++;\n else\n c[4]++;\n }\n }\n }\n for (int i=1;i<=4;i++) //?? \n b[i]=100*(double)c[i]/n;\n cout <18&&a[i]<36)\n\t\t\tb[1]++;\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t\tb[2]++;\n\t\tif(a[i]>60)\n\t\t\tb[3]++;\n\t}\n\tfor(k=0;k<4;k++)\n\t{\n\t\tc[k]=b[k]*100.0/n;\n\t}\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",c[0],c[1],c[2],c[3]);\n\treturn 0;\n}"} +{"label": "99", "index": "49472", "code": "\nint main(int argc, char* argv[])\n{\n\tint n;\n\tint age[100];\n int a=0, b=0, c=0, d=0;\n\tdouble x, y, z, w;\n\tint i;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<36)\n\t\t{\n\t\t\ttwo=two+1;\n\t\t}\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t{\n\t\t\tthree=three+1;\n\t\t}\n\t\telse if(a[i]>=61)\n {\n\t\t\tfour=four+1;\n\t\t}\n\t}\n\tzong=one+two+three+four;\n o=100.0*one/zong;\n\tt=100.0*two/zong;\n\te=100.0*three/zong;\n f=100.0*four/zong;\n printf(\"1-18: %.2lf%%\\n\",o);\n printf(\"19-35: %.2lf%%\\n\",t);\n\tprintf(\"36-60: %.2lf%%\\n\",e);\n\tprintf(\"60??: %.2lf%%\\n\",f);\n\treturn 0;\n}"} +{"label": "99", "index": "49474", "code": "int main(){\nint n,i;\ndouble e=0,b=0,c=0,d=0;\nint a[100];\nscanf(\"%d\",&n);\nfor(i=0;i=19&&f<=35)b++;\n else if(f>=36&&f<=60)c++;\n else d++;} \n double A,B,C,D; \n A=100.00*a/n;B=100.00*b/n;C=100.00*c/n;D=100.00*d/n;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%\\n\",A,B,C,D); \n return 0;\n} \n "} +{"label": "99", "index": "49476", "code": "int main(){\n int sz[100];\n\tint n,i,s1,s2,s3,s4;\n\ts1=s2=s3=s4=0;\n\tscanf(\"%d\",&n);\n\t\tfor(i=0;i18&&sz[i]<=35){\n\t\t\t\ts2++;\n\t\t\t}else if(sz[i]>=36&&sz[i]<=60){\n\t\t\t\ts3++;\n\t\t\t}else{\n\t\t\t\ts4++;\n\t\t\t}\n\t\t}\n\t\tprintf(\"1-18: %.2lf%%\\n\",100*(double)s1/n);\n\t\tprintf(\"19-35: %.2lf%%\\n\",100*(double)s2/n);\n\t\tprintf(\"36-60: %.2lf%%\\n\",100*(double)s3/n);\n\t\tprintf(\"60??: %.2lf%%\\n\",100*(double)s4/n);\n return 0;\n}\n"} +{"label": "99", "index": "49477", "code": "int main()\n{\n\tint i,n,a[100];\n\tint count1=0,count2=0,count3=0,count4=0,sum;\n\tdouble rate1,rate2,rate3,rate4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<=35)\n\t\t{\n\t\t\tcount2++;\n\t\t}\n\t\tif(a[i]>35&&a[i]<=60)\n\t\t{\n\t\t\tcount3++;\t} \n\t\tif(a[i]>60)\n\t\t{\n\t\t\tcount4++;\n\t\n\t\t}\n \n\t\n\t}\n sum=count1+count2+count3+count4;\n rate1=(double)count1/sum*100;\n\trate2=(double)count2/sum*100;\n rate3=(double)count3/sum*100;\n rate4=(double)count4/sum*100;\n\tprintf (\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",rate1,rate2,rate3,rate4);\n\treturn 0;\n\n}\t\n\n"} +{"label": "99", "index": "49478", "code": "int main()\n{\n\tint n,a=0,b=0,c=0,d=0;\n\tdouble A,B,C,D;\n\tint z[100];\n\tscanf(\"%d\",&n);\n\tfor(int i=0;i=19&&z[i]<=35)\n\t\t\tb++;\n\t\telse if(z[i]>=36&&z[i]<=60)\n\t\t\tc++;\n\t\telse\n\t\t\td++;\n\t}\n\tA=(double)a/(double)n*100.00;\n\tB=(double)b/(double)n*100.00;\n\tC=(double)c/(double)n*100.00;\n\tD=(double)d/(double)n*100.00;\n\tprintf(\"1-18: %.2lf%%\\n\",A);\n\tprintf(\"19-35: %.2lf%%\\n\",B);\n\tprintf(\"36-60: %.2lf%%\\n\",C);\n\tprintf(\"60??: %.2lf%%\\n\",D);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49479", "code": "void main()\n{\n\tint n,i;\n\tdouble a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tint x[100];\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tscanf(\"%d\",&x[i]);\n\t\tif(x[i]<=18)\n\t\t\ta=a+1;\n\t\telse\n\t\tif(x[i]<=35)\n\t\t\tb=b+1;\n\t\telse\n\t\tif(x[i]<=60)\n\t\t\tc=c+1;\n\t\telse\n\t\tif(x[i]>=61)\n\t\t\td=d+1;\n\t}\n\ta=a*100/n;\n\tb=b*100/n;\n\tc=c*100/n;\n\td=d*100/n;\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\\n\",a,b,c,d);\n}"} +{"label": "99", "index": "49480", "code": "int main(){\n int i,n,a,b,c,d;\n double A,B,C,D;\n int sz[100];\n scanf(\"%d\",&n);\n for(i=0;i18){\n b++;\n }else if(sz[i]<=60&&sz[i]>35){\n c++;\n }else if(sz[i]>60){\n d++;\n }\n }\n A=(double)(a*1.0/n*100);\n B=(double)(b*1.0/n*100);\n C=(double)(c*1.0/n*100);\n D=(double)(d*1.0/n*100);\n printf(\"1-18: %.2lf%%\\n\",A);\n printf(\"19-35: %.2lf%%\\n\",B);\n printf(\"36-60: %.2lf%%\\n\",C);\n printf(\"Over60: %.2lf%%\\n\",D);\n return 0;\n}\n\n"} +{"label": "99", "index": "49481", "code": "int main()\n{\n\tint n,i,o=0,p=0,k=0,q=0,a[100];\n\tchar m='%';\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&a[i]<36)\n\t\t\tp++;\n\t\telse if(a[i]>35&&a[i]<61)\n\t\t\tk++;\n\t\telse q++;\n\t}\n\tprintf(\"1-18: %.2lf%c\\n\",100*o*1.0/n,m);\n\tprintf(\"19-35: %.2lf%c\\n\",100*p*1.0/n,m);\n\tprintf(\"36-60: %.2lf%c\\n\",100*k*1.0/n,m);\n\tprintf(\"60??: %.2lf%c\\n\",100*q*1.0/n,m);\n\treturn 0;\n}\n\t\t\t\t\t\t\n"} +{"label": "99", "index": "49482", "code": "int main(){\n\tint n,count1=0,count2=0,count3=0,count4=0,age,i;\n\tdouble p1,p2,p3,p4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&age<36)count2++;\n\t\tif(age>35&&age<=60)count3++;\n\t\tif(age>60)count4++;\n\t\n\t}\n\tp1=1.0*100*count1/n;\n\tp2=1.0*100*count2/n;\n\tp3=1.0*100*count3/n;\n\tp4=1.0*100*count4/n;\n\n\tprintf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",p1,p2,p3,p4);\n\t\n\treturn 0;\n}"} +{"label": "99", "index": "49483", "code": "/*\n*??? 9_cpp\n*?? ???\n*?? 2012?9?29?\n*??? ????? \n*/\nint main()\n{\n // ???????i????????\n unsigned int a[101], i, age1=0, age2=0, age3=0, age4=0; \n double p1, p2, p3, p4, n; // ???????????????? \n cin >> n; \n for(i= 1; i <= n; i++) \n { \n cin >> a[i]; // ???????? \n if(a[i] >= 1 && a[i] <= 18) // ????????????????????? \n {\n age1++; \n }\n else if(a[i] > 18 && a[i] <= 35) // ????????????????????? \n {\n age2++;\n }\n else if(a[i] > 35 && a[i] <= 60) // ????????????????????? \n {\n age3++;\n }\n else // ????????????????????? \n {\n age4++;\n }\n } \n p1 = age1 / n; // ??????????????? \n p2 = age2 / n;\n p3 = age3 / n;\n p4 = age4 / n;\n printf(\"1-18: %.2f%%\\n\", p1 * 100); // ?????????????? \n printf(\"19-35: %.2f%%\\n\", p2 * 100); \n printf(\"36-60: %.2f%%\\n\", p3 * 100); \n printf(\"60??: %.2f%%\\n\", p4 * 100);\n return 0;\n}"} +{"label": "99", "index": "49484", "code": "int main()\n{\n\tint n,a[100],b=0,c=0,d=0,e=0,i;\n\tdouble o,p,q,s;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0&&a[i]<19)\n\t\t{\n\t\t\tb=b+1;\n\t\t}\n\t\telse if(a[i]>18&&a[i]<36)\n\t\t{\n\t\t\tc=c+1;\n\t\t}\n\t\telse if(a[i]>35&&a[i]<61)\n\t\t{\n\t\t\td=d+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\te=e+1;\n\t\t}\n\t}\n\to=(double)b/n*100;\n\tp=(double)c/n*100;\n\tq=(double)d/n*100;\n\ts=(double)e/n*100;\n printf(\"1-18: %.2lf%%\\n19-35: %.2lf%%\\n36-60: %.2lf%%\\n60??: %.2lf%%\",o,p,q,s);\n\treturn 0;\n}"} +{"label": "99", "index": "49485", "code": "int main()\n{\n\tint n,i,s[4]={0},year[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i18&&year[i]<=35)\n\t\t\ts[1]++;\n\t\telse if(year[i]>35&&year[i]<=60)\n\t\t\ts[2]++;\n\t\telse if(year[i]>60)\n\t\t\ts[3]++;\n\t}\n\tdouble bfs[4];\n\tbfs[0]=(double)s[0]/n;\n\tbfs[1]=(double)s[1]/n;\n\tbfs[2]=(double)s[2]/n;\n\tbfs[3]=(double)s[3]/n;\n\tprintf(\"1-18: %.2lf%%\\n\",bfs[0]*100);\n\tprintf(\"19-35: %.2lf%%\\n\",bfs[1]*100);\n\tprintf(\"36-60: %.2lf%%\\n\",bfs[2]*100);\n\tprintf(\"60??: %.2lf%%\\n\",bfs[3]*100);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49486", "code": "int main(){\n int n,i,br[101];\n double a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n for(i=0;i=19)\n\t\t{\n\t\t\tage_2++;\n\t\t}\n\t\telse if(age[i]<=60&&age[i]>=36)\n\t\t{\n\t\t\tage_3++;\n\t\t}\n\t\telse if(age[i]>=61)\n\t\t{\n\t\t\tage_4++;\n\t\t}\n\t}\n\tdouble bilv_1=(double)age_1/n;\n\tdouble bilv_2=(double)age_2/n;\n\tdouble bilv_3=(double)age_3/n;\n\tdouble bilv_4=(double)age_4/n;\n\tprintf(\"1-18: %.2lf%%\\n\",bilv_1*100);\n\tprintf(\"19-35: %.2lf%%\\n\",bilv_2*100);\n\tprintf(\"36-60: %.2lf%%\\n\",bilv_3*100);\n\tprintf(\"60??: %.2lf%%\",bilv_4*100);\n\treturn 0;\n}"} +{"label": "99", "index": "49488", "code": "int main()\n{\n int n,k,a=0,b=0,c=0,d=0;\n scanf(\"%d\",&n);\n for(int i=1;i<=n;i++)\n{ scanf(\"%d\",&k);\n if(k<=18){\n a =a +1;}\n else if(k<=35){\n b =b+ 1;}\n else if(k<=60){\n c =c +1;}\n else {\n d =d + 1;}\n}\n a=a*100;b=b*100;\nc=c*100;d=d*100;\n printf(\"1-18: %.2lf%\\n\",a*1.0/n);\n printf(\"19-35: %.2lf%\\n\",b*1.0/n);\n printf(\"36-60: %.2lf%\\n\",c*1.0/n);\n printf(\"60??: %.2lf%\\n\",d*1.0/n);\nreturn 0;\n}\n "} +{"label": "99", "index": "49489", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,a[100],i;\n\tdouble num1=0,num2=0,num3=0,num4=0,s,r1,r2,r3,r4;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)\n\t\t{\n\t\t\tnum1++;\n\t\t}\n\t\tif(a[i]>=19&&a[i]<=35)\n\t\t{\n\t\t\tnum2++;\n\t\t}\n\t\tif(a[i]>=36&&a[i]<=60)\n\t\t{\n\t\t\tnum3++;\n\t\t}\n\t\tif(a[i]>60)\n\t\t{\n\t\t\tnum4++;\n\t\t}\n\t}\n\ts=num1+num2+num3+num4;\n\tr1=num1*100/s;\n\tr2=num2*100/s;\n\tr3=num3*100/s;\n\tr4=num4*100/s;\n\tprintf(\"1-18: %.2lf%%\\n\",r1);\n\tprintf(\"19-35: %.2lf%%\\n\",r2);\n\tprintf(\"36-60: %.2lf%%\\n\",r3);\n\tprintf(\"60??: %.2lf%%\",r4);\n\n\n\n\n\n\n\treturn 0;\n}"} +{"label": "99", "index": "49490", "code": "int main()\n{\n\tint n,age,a=0,b=0,c=0,d=0;\n\tscanf(\"%d\",&n);\n\tint i;\n\tdouble q,w,e,r;\n\tfor(i=0;i=1)\n\t\t{a++;}\n\t\telse if(age>=19&&age<=35)\n\t\t{b++;}\n\t\telse if(age>=36&&age<=60)\n\t\t{c++;}\n\t\telse\n\t\t{d++;}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",100.0*a/n);\n\tprintf(\"19-35: %.2lf%%\\n\",100.0*b/n);\n\tprintf(\"36-60: %.2lf%%\\n\",100.0*c/n);\n\tprintf(\"60??: %.2lf%%\\n\",100.0*d/n);\n\n\treturn 0;\n}"} +{"label": "99", "index": "49491", "code": "int main()\n{\n\tint a[100];\n\tdouble b[4]={0};\n\tint i,n;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=1&&a[i]<=18)\n\t\t{\n\t\t\tb[0]++;\n\t\t}\n\t\telse if(a[i]>=19&&a[i]<=35)\n\t\t{\n\t\t\tb[1]++;\n\t\t}\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t{\n\t\t\tb[2]++;\n\t\t}\n\telse if(a[i]>60)\n\t{\n\t\t\tb[3]++;\n\t\t}\n\t}\n\tprintf(\"1-18: %.2lf%%\\n\",b[0]*100/n);\n\tprintf(\"19-35: %.2lf%%\\n\",b[1]*100/n);\n printf(\"36-60: %.2lf%%\\n\",b[2]*100/n);\n printf(\"60??: %.2lf%%\\n\",b[3]*100/n);\n\treturn 0;\n}\n"} +{"label": "99", "index": "49492", "code": "int main()\n{\n int i,n,a=0,b=0,c=0,d=0;\n double e,f,g,h;\n int sz[10000];\n int num[10000];\n scanf(\"%d\",&n);\n for(i=0;i=19&&a[i]<=35)\n\t\t\tb[1]=b[1]+1;\n\t\telse if(a[i]>=36&&a[i]<=60)\n\t\t\tb[2]=b[2]+1;\n\t\telse if(a[i]>60)\n\t\t\tb[3]=b[3]+1;\n\t}\n\tc[0]=(double)b[0]/n*100;\n\tc[1]=(double)b[1]/n*100;\n\tc[2]=(double)b[2]/n*100;\n\tc[3]=(double)b[3]/n*100;\n\tprintf(\"1-18: %.2f%%\\n\",c[0]);\n\tprintf(\"19-35: %.2f%%\\n\",c[1]);\n\tprintf(\"36-60: %.2f%%\\n\",c[2]);\n\tprintf(\"60??: %.2f%%\\n\",c[3]);\n}\n"} +{"label": "99", "index": "49495", "code": "int main()\n{\n\tint a[100],n,m,e,b,c,d;\n\tdouble p,q,k,i;\n\tscanf(\"%d\",&n);\n\te=0;\n\tb=0;\n\tc=0;\n\td=0;\n\tp=0;\n\tq=0;\n\tk=0;\n\ti=0;\n\tfor(m=1;m<=n;m++)\n\t{\n\t\tscanf(\"%d\",&a[m]);\n\t\t{\n\t\t\tif(1<=a[m]&&a[m]<=18)\n\t\t\t\te++;\n\t\t}\n\t\t\t\t\tp=100*(double)e/n;\n\t\t\n\t\t{\n\t\t\tif(19<=a[m]&&a[m]<=35)\n\t\t\t\tb++;\n\t\t}\n\t\t\t\t\tq=100*(double)b/n;\n\t\t\n\t\t{\n\t\t\tif(36<=a[m]&&a[m]<=60)\n\t\t\t\tc++;\n\t\t}\n\t\t\t\t\tk=100*(double)c/n;\n\t\t\n\t\t{\n\t\t\tif(61<=a[m])\n\t\t\t\td++;\n\t\t}\n\t\t\t\t\ti=100*(double)d/n;\n\t}\n\tprintf(\"1-18: %.2f%%\\n\",p);\n\tprintf(\"19-35: %.2f%%\\n\",q);\n\tprintf(\"36-60: %.2f%%\\n\",k);\n\tprintf(\"60??: %.2f%%\\n\",i);\n}"} +{"label": "99", "index": "49496", "code": "int main(){\n int n;\n scanf(\"%d\\n\",&n);\n float sz[100];\n float s[4];\n s[0]=0;\n s[1]=0;\n s[2]=0;\n s[3]=0;\n for(int t=0;t18 && sz[t]<=35){\n s[1]+=1;\n }\n else if(sz[t]>35 && sz[t]<=60){\n s[2]+=1;\n }\n else{\n s[3]+=1;\n }\n }\n s[0]=s[0]*100.00/n;\n s[1]=s[1]*100.00/n;\n s[2]=s[2]*100.00/n;\n s[3]=s[3]*100.00/n; \n printf(\"1-18: %.2lf%%\\n\",s[0]);\n printf(\"19-35: %.2lf%%\\n\",s[1]);\n printf(\"36-60: %.2lf%%\\n\",s[2]);\n printf(\"60??: %.2lf%%\\n\",s[3]);\n return 0; \n} \n "} +{"label": "99", "index": "49497", "code": "int main()\n{\n int n,y[q],a[p],i,j,s;\n double b[p];\n scanf(\"%d\",&n);\n for(i=0;i18&&y[i]<36) a[1]=a[1]+1;}\n for(i=0;i35) a[2]=a[2]+1;}\n for(i=0;i60) a[3]=a[3]+1;}\n for(i=0;i=61)\n\t\t{\n\t\t\tn61++;\n\t\t\tcontinue;\n\t\t}\n\t}\n\tdouble a=100.0*n18/n;\n\tdouble b=100.0*n35/n;\n\tdouble c=100.0*n60/n;\n\tdouble d=100.0*n61/n;\n\tprintf(\"1-18: %.2lf%%\\n\",a);\n\tprintf(\"19-35: %.2lf%%\\n\",b);\n\tprintf(\"36-60: %.2lf%%\\n\",c);\n\tprintf(\"60??: %.2lf%%\\n\",d);\n\treturn 0;\n}"} +{"label": "99", "index": "49499", "code": "\nint main() {\n\tint n;\n\tcin >> n;\n\tint patient[100]; /* to store the age of each patient */\n\tint age[4] = {0, 0, 0, 0}; /* to count the number of people in each group */\n\tfor(int i = 0; i < n; i++) {\n\t\tcin >> patient[i];\n\t\tif(patient[i] <= 18) age[0]++;\n\t\tif(patient[i] >= 19 && patient[i] <=35) age[1]++;\n\t\tif(patient[i] >= 36 && patient[i] <= 60) age[2]++;\n\t\tif(patient[i] >60) age[3]++;\n\t}\n\tdouble percent[4]; /* to calculate the percentage of each group */\n\tfor(int i = 0; i < 4; i++) {\n\t\tpercent[i] = (double)(age[i]) / n * 100;\n\t}\n\tcout << \"1-18: \";\n\tprintf(\"%.2lf\",percent[0]);\n\tcout << '%' << endl;\n\tcout << \"19-35: \";\n\tprintf(\"%.2lf\",percent[1]);\n\tcout << '%' << endl;\n\tcout << \"36-60: \";\n\tprintf(\"%.2lf\",percent[2]);\n\tcout << '%' << endl;\n\tcout << \"60??: \";\n\tprintf(\"%.2lf\",percent[3]);\n\tcout << '%' << endl;\n\n\treturn 0;\n}"} +{"label": "100", "index": "49500", "code": "void main()\n{\n\tint f(int array[],int l);\n\tint i,m,n,t,b[26]={0};\n\tchar str[300];\n\tgets(str);\n\tt=strlen(str);\n\tfor(i=0;i='a'&&str[i]<='z')\n\t\t\ts[(int)(str[i])-68]++;\n\t\tif(str[i]>='A'&&str[i]<='Z')\n\t\t\ts[(int)(str[i])-64]++;\n\t}\n\tt=0;\n\tfor(i=1;i<=27;i++)\n\t{\n\t\tif(s[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",64+i,s[i]);\n\t\t\tt=1;\n\t\t}\n\t}\n\tfor(i=28;i<=54;i++)\n\t{\n\t\tif(s[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",68+i,s[i]);\n\t\t\tt=1;\n\t\t}\n\t}\n\tif(t==0)\n\t\tprintf(\"No\");\n\treturn 0;\t\n}\n"} +{"label": "100", "index": "49502", "code": "int main()\n{\n\tchar s[301],t;\n\tint i,j,n=0,b=0,num;\n\n\tgets(s);\n\tnum=strlen(s);\n\t\n\tfor(i=0;i='A'&&s[i]<='Z')||(s[i]>='a'&&s[i]<='z'))\n\t\t\tb=b+1;\n\t}\n\tif(b==0)\n\t\tprintf(\"No\");\n\telse\n\t{\n\t\tfor(t='A';t<='Z';t++)\n\t\t{\n\t\t\tn=0;\n\t\t\tfor(i=0;i=97)\n\t\t{\n\t\t\t\n\t\t\tt=1;\n\t\t\tfor(j=i+1;j<=(m-1);j++)\n\t\t\t{\n\t\t\t\tif(str[i]==str[j])\n\t\t\t\t{\n\t\t\t\t\tt++;\n\t\t\t\tstr[j]='}';\n\t\t\t\t}/*'}'=125??????????????????*/\n\t\t\t\t\n\t\t\t}\n\t\t\ta[i]=t;\n\t\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\tf++;\n\t\t\ta[i]=0;\n\t\t\tstr[i]='}';\n\t\t}\n\t}\n\n\n\tif(f==m)\n\t\tprintf(\"No\");\n\telse \n\t\tfor(i=0;i<=m-1;i++)\n\t\t{\n\t\t\tc[i]=str[i];\n\t\t}\n\tfor(j=0;jc[i+1])\n\t\t\t{\n\t\t\t\tp=c[i];\n\t\t\t\tc[i]=c[i+1];\n\t\t\t\tc[i+1]=p;\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j<=m-1;j++)\n\t\t{\n\t\t\tfor(i=0;i<=m-1;i++)\n\t\t\t{\n\t\t\t\tif(str[i]<=122&&str[i]>=97&&c[j]==str[i])\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%c=%d\\n\",str[i],a[i]);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\n\n}"} +{"label": "100", "index": "49505", "code": "int main(){\n\tchar n[300];\n\tscanf(\"%s\",n);\n\tint zm[26];\n\tint i,j,cd,jg=0;\n\tfor(i=0;i<26;i++){\n\t\tzm[i]=0;\n\t}\n\tcd=strlen(n);\n\t\n\tfor(j=0;j=0){\n\t\t\tzm[i]++;\n\t\t}\n\t}\n\t\n\tfor(i=0;i<26;i++){\n\t\tif(zm[i]>0){\n\t\t\tjg=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(jg==0){\n\t\tprintf(\"No\\n\");\n\t}else{\n\t\tfor(i=0;i<26;i++){\n\t\t\tif(zm[i]>0){\n\t\t\t\tprintf(\"%c=%d\\n\",'a'+i,zm[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49506", "code": "int main()\n{\n char str[301];\n char*by;\n by=str;\n int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;\nscanf(\"%s\",str);\n for(;*by!='\\0';by++)\n{\n if(*by=='a'){a++;}\nif(*by=='b'){b++;}\nif(*by=='c'){c++;}\nif(*by=='d'){d++;}\nif(*by=='e'){e++;}\nif(*by=='f'){f++;}\nif(*by=='g'){g++;}\nif(*by=='h'){h++;}\nif(*by=='i'){i++;}\nif(*by=='j'){j++;}\nif(*by=='k'){k++;}\nif(*by=='l'){l++;}\nif(*by=='m'){m++;}\nif(*by=='n'){n++;}\nif(*by=='o'){o++;}\nif(*by=='p'){p++;}\nif(*by=='q'){q++;}\nif(*by=='r'){r++;}\nif(*by=='s'){s++;}\nif(*by=='t'){t++;}\nif(*by=='u'){u++;}\nif(*by=='v'){v++;}\nif(*by=='w'){w++;}\nif(*by=='x'){x++;}\nif(*by=='y'){y++;}\nif(*by=='z'){z++;}\n}\nif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0&&g==0&&h==0&&i==0&&j==0&&k==0&&l==0&&m==0&&n==0&&o==0&&p==0&&q==0&&r==0&&s==0&&t==0&&u==0&&v==0&&w==0&&x==0&&y==0&&z==0){printf(\"No\");}\n if(a!=0){printf(\"a=%d\\n\",a);}\n if(b!=0){printf(\"b=%d\\n\",b);}\nif(c!=0){printf(\"c=%d\\n\",c);}\n if(d!=0){printf(\"d=%d\\n\",d);}\n if(e!=0){printf(\"e=%d\\n\",e);}\nif(f!=0){printf(\"f=%d\\n\",f);}\n if(g!=0){printf(\"g=%d\\n\",g);}\n if(h!=0){printf(\"h=%d\\n\",h);}\nif(i!=0){printf(\"i=%d\\n\",i);}\n if(j!=0){printf(\"j=%d\\n\",j);}\n if(k!=0){printf(\"k=%d\\n\",k);}\n if(l!=0){printf(\"l=%d\\n\",l);}\n if(m!=0){printf(\"m=%d\\n\",m);}\n if(n!=0){printf(\"n=%d\\n\",n);}\n if(p!=0){printf(\"p=%d\\n\",p);}\n if(q!=0){printf(\"q=%d\\n\",q);}\n if(r!=0){printf(\"r=%d\\n\",r);}\n if(s!=0){printf(\"s=%d\\n\",s);}\n if(t!=0){printf(\"t=%d\\n\",t);}\n if(u!=0){printf(\"u=%d\\n\",u);}\n if(v!=0){printf(\"v=%d\\n\",v);}\n if(w!=0){printf(\"w=%d\\n\",w);}\n if(x!=0){printf(\"x=%d\\n\",x);}\n if(y!=0){printf(\"y=%d\\n\",y);}\n if(z!=0){printf(\"z=%d\\n\",z);}\nreturn 0;\n}\n"} +{"label": "100", "index": "49507", "code": "void count (char s[])\n{\n\tint a[26]={0};\n\tint i,t=0,k=0,b;\n\tb=0;\n\tfor (i=0;s[i]!=0;i++)\n\t\tif ((s[i]>=97)&&(s[i]<=122))\n\t\t{\n\t\t\tif (b==0) b=1;\n\t\t\ta[s[i]-97]=a[s[i]-97]+1;\n\t\t}\n\tif (b==0) printf(\"No\\n\");\n\telse for (i=0;i<26;i++)\n\t\tif (a[i]) printf(\"%c=%d\\n\",i+97,a[i]);\n}\n\nvoid main()\n{\n\tchar s[300]={0};\n\tscanf(\"%s\",s);\n\tcount(s);\n}"} +{"label": "100", "index": "49508", "code": "void main()\n{\n\tchar str[300];\n\tint i,n,flag=0;\n\tint a1=0,b1=0,c1=0,d1=0,e1=0,f1=0,g1=0,h1=0,i1=0,j1=0,k1=0,l1=0,m1=0,n1=0,o1=0,p1=0,q1=0,r1=0,s1=0,t1=0,u1=0,v1=0,w1=0,x1=0,y1=0,z1=0;\n int a2=0,b2=0,c2=0,d2=0,e2=0,f2=0,g2=0,h2=0,i2=0,j2=0,k2=0,l2=0,m2=0,n2=0,o2=0,p2=0,q2=0,r2=0,s2=0,t2=0,u2=0,v2=0,w2=0,x2=0,y2=0,z2=0;\n\tgets(str);\n\tn=strlen(str);\n\n\tfor(i=0;i'A'&&str[i]<'Z'||str[i]>'a'&&str[i]<'z')\n\t\t\tflag++;\n\t}\n\tif(flag==0)\n\t\tprintf(\"No\\n\");\n\telse {\n\t\tfor(i=0;i0) printf(\"A=%d\\n\",a1);\n\tif(b1>0) printf(\"B=%d\\n\",b1);\n\tif(c1>0) printf(\"C=%d\\n\",c1);\n\tif(d1>0) printf(\"D=%d\\n\",d1);\n\tif(e1>0) printf(\"E=%d\\n\",e1);\n\tif(f1>0) printf(\"F=%d\\n\",f1);\n\tif(g1>0) printf(\"G=%d\\n\",g1);\n\tif(h1>0) printf(\"H=%d\\n\",h1);\n\tif(i1>0) printf(\"I=%d\\n\",i1);\n\tif(j1>0) printf(\"J=%d\\n\",j1);\n\tif(k1>0) printf(\"K=%d\\n\",k1);\n\tif(l1>0) printf(\"L=%d\\n\",l1);\n\tif(m1>0) printf(\"M=%d\\n\",m1);\n\tif(n1>0) printf(\"M=%d\\n\",n1);\n\tif(o1>0) printf(\"O=%d\\n\",o1);\n\tif(p1>0) printf(\"P=%d\\n\",p1);\n\tif(q1>0) printf(\"Q=%d\\n\",q1);\n\tif(r1>0) printf(\"R=%d\\n\",r1);\n\tif(s1>0) printf(\"S=%d\\n\",s1);\n\tif(t1>0) printf(\"T=%d\\n\",t1);\n\tif(u1>0) printf(\"U=%d\\n\",u1);\n\tif(v1>0) printf(\"V=%d\\n\",v1);\n\tif(w1>0) printf(\"W=%d\\n\",w1);\n\tif(x1>0) printf(\"X=%d\\n\",x1);\n\tif(y1>0) printf(\"Y=%d\\n\",y1);\n\tif(z1>0) printf(\"Z=%d\\n\",z1);\n\tif(a2>0) printf(\"a=%d\\n\",a2);\n\tif(b2>0) printf(\"b=%d\\n\",b2);\n\tif(c2>0) printf(\"c=%d\\n\",c2);\n\tif(d2>0) printf(\"d=%d\\n\",d2);\n\tif(e2>0) printf(\"e=%d\\n\",e2);\n\tif(f2>0) printf(\"f=%d\\n\",f2);\n\tif(g2>0) printf(\"g=%d\\n\",g2);\n\tif(h2>0) printf(\"h=%d\\n\",h2);\n\tif(i2>0) printf(\"i=%d\\n\",i2);\n\tif(j2>0) printf(\"j=%d\\n\",j2);\n\tif(k2>0) printf(\"k=%d\\n\",k2);\n\tif(l2>0) printf(\"l=%d\\n\",l2);\n\tif(m2>0) printf(\"m=%d\\n\",m2);\n\tif(n2>0) printf(\"n=%d\\n\",n2);\n\tif(o2>0) printf(\"o=%d\\n\",o2);\n\tif(p2>0) printf(\"p=%d\\n\",p2);\n\tif(q2>0) printf(\"q=%d\\n\",q2);\n\tif(r2>0) printf(\"r=%d\\n\",r2);\n\tif(s2>0) printf(\"s=%d\\n\",s2);\n\tif(t2>0) printf(\"t=%d\\n\",t2);\n\tif(u2>0) printf(\"u=%d\\n\",u2);\n\tif(v2>0) printf(\"v=%d\\n\",v2);\n\tif(w2>0) printf(\"w=%d\\n\",w2);\n\tif(x2>0) printf(\"x=%d\\n\",x2);\n\tif(y2>0) printf(\"y=%d\\n\",y2);\n\tif(z2>0) printf(\"z=%d\\n\",z2);\n}\n\n\n\n\n\n"} +{"label": "100", "index": "49509", "code": "int main()\n{\n\tchar str[300],*ps;\n\tint count=0;\n\tscanf(\"%s\",str);\n\tchar i='a';\n\tint f = 0;\n\tfor(i='a';i<='z';i++)\n\t{\n\t\tfor(ps=str;*ps!='\\0';ps++)\n\t\t{\n\t\t\tif(*ps==i)\n\t\t\t{ f+= 1; \n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\nif(count>0){\n\t\tprintf(\"%c=%d\\n\",i,count);}\n count=0;\n\t}\n if(f==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49510", "code": "int main(int argc, char* argv[])\n{ \n char s[301];\n\tgets(s);\n\n\n\tchar b[301],d[30];\n\tchar t;\n\tint i,j=0,h=0;\n\tint len=strlen(s);\n\tfor(i=0;i='a'&&s[i]<='z')\n\t\t{\n\t\t\tb[j]=s[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tif(j==0){\n\t\tprintf(\"No\\n\");}\n\n\n int c[30]={0},m;\n\tchar k;\n\tfor(k='a';k<='z';k++)\n\t{\n\t for(m=0;m64)&&(ch[i]<123))\n\t\t a[ch[i]]++;\n \n j=1;\n for(i=65;i<=90;i++)\n\t\tif(a[i]>0)\n\t\t{\n\t\t printf(\"%c=%d\\n\",i,a[i]);\n\t\t j=0;\n\t\t}\n for(i=97;i<=122;i++)\n\t\tif(a[i]>0)\n\t\t{\n\t\t printf(\"%c=%d\\n\",i,a[i]);\n\t\t j=0;\n\t\t}\n if(j)\n\t\tprintf(\"No\");\n\t\t\n\treturn 0;\n}\n"} +{"label": "100", "index": "49512", "code": "int main()\n{\n\tchar a[300];\n\tint b[53]={0},c[53]={0};\n\tgets(a);\n\tint i,j,len,flag=0;\n\tlen=strlen(a);\n\tfor(i=1;i<=26;i++)\n\t{\n\t\tfor(j=0;j='A' && s[i]<='Z') \n up[ s[i]-'A' ]++;\n else if(s[i]>='a' && s[i]<='z')\n down[ s[i]-'a' ]++;\n else { \n k++;\n }\n }\n for(i=0;i<26;i++) {\n if(up[i]!=0)\n printf(\"%c=%d\\n\",i+'A',up[i]);\n}\nfor(i=0;i<26;i++) {\n if(down[i]!=0)\n printf(\"%c=%d\\n\",i+'a',down[i]);\n }\n if(k==strlen(s)){\n\t printf(\"No\");\n}\n return 0;\n}"} +{"label": "100", "index": "49514", "code": "main()\n{\n\tchar a[300];\n\tgets(a);\n\tint i,num[26]={0},len,k;\n\tlen=strlen(a);\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\tnum[a[i]-'a']++;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(num[i]!=0)\n\t\t{\n k=0;\n\t\t\tbreak;\n\t\t}\n\t\telse k=1;\n\t}\n\tif(k==1)\n\t\tprintf(\"No\\n\");\n\telse if(k==0)\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif(num[i]==0)\n continue;\n\t\t\telse\n printf(\"%c=%d\\n\",'a'+i,num[i]);\n\t\t}\n\t}\n}"} +{"label": "100", "index": "49515", "code": "int main()\n{\n\tchar str[300];\n\tgets(str);\n\tint tag=0,sz[126]={0};\n\tint i;\n\tfor(i=0;str[i]!='\\0';i++){\n\t\tif(((str[i]>='A')&&(str[i]<='Z'))||((str[i]>='a')&&(str[i]<='z'))){\n\t\t\tsz[str[i]]++;\n\t\t\ttag=1;\n\t\t}\n\t}\n\tfor(i='A';i<='Z';i++){\n\t\tif(sz[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",i,sz[i]);\n\t\t}\n\t}\n\tfor(i='a';i<='z';i++){\n\t\tif(sz[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",i,sz[i]);\n\t\t}\n\t}\n\tif(tag==0){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49516", "code": "int main()\n{\n int i,m=0,k=0;\n char j;\n char a[300];\n scanf(\"%s\",a);\n for(j='A';j<='Z';j++)\n {k=0;\n for(i=0;i<300;i++)\n {if(a[i]-j==0)\n k=k+1;\n if(a[i]=='\\0')\n break;\n }\n if(k==0)\n continue;\n if(k>0)\n {printf(\"%c=%d\\n\",j,k);\n m=1;}\n \n }\n for(j='a';j<='z';j++)\n {\n k=0;\n for(i=0;i<300;i++)\n {if(a[i]-j==0)\n k=k+1;\n if(a[i]=='\\0')\n break;\n }\n if(k==0)\n continue;\n if(k>0)\n {printf(\"%c=%d\\n\",j,k);\n m=1;}\n \n }\n if(m==0)\n printf(\"No\");\nreturn 0;\n}\n\n"} +{"label": "100", "index": "49517", "code": "int main (){\n\tchar str[300],zf[53],e[2];\n\tint sz[800];\n\tint i,j=0,k;\n\tscanf(\"%s\",str);\n\tfor(i=0;i<800;i++){\n\t\tsz[i]=0;}\n\n\tfor(i=0;str[i]!='\\0';i++){\n\t\tif((str[i]>='a'&&str[i]<='z')||(str[i]>='A'&&str[i]<='Z')){\n\t\t\tzf[j]=str[i];\n\t\t\tsz[str[i]]++;\n\t\t\tj++;\n\t\t\t\n\t\t}\n \n\t}\n\n\n\t\n for(k=1;kzf[i+1]){\n\t\t\t\te[0]=zf[i+1];\n\t\t\t\tzf[i+1]=zf[i];\n\t\t\t\tzf[i]=e[0];\n\t\t\t}\n\t\t}\n\t}\n \t\n\tif(j==0){\n\t\tprintf(\"No\\n\");\n\t\n\t}\n\telse{\n\t\tfor(i=0;i= 0 && zfc[i]-'a' <= 25){\n\t\t\tnum[zfc[i]-'a']++;\n\t\t}\n\n\t}\n\n\tflag = 1;\n\tfor(i = 0; i < 26; i++){\n\t\tif(num[i] != 0){\n\t\t\tprintf(\"%c=%d\\n\", zimu[i], num[i]);\n\t\t\tflag = 0;\n\t\t}\n\t}\n\n\tif(flag){\n\t\tprintf(\"No\");\n\t}\n\n\treturn 0;\n}"} +{"label": "100", "index": "49520", "code": "int main()\n{\n char str[300];\n char letter[300]=\"abcdefghijklmnopqrstuvwxyz\";\n int num[300];\n int total=0;\n int i,j;\n for(i=0;i<26;i++){\n\t num[i]=0;\n }\n int len;\n scanf(\"%s\",str);\n len=strlen(str);\n for(i=0;i0)\n\t printf(\"%c=%d\\n\",letter[i],num[i]);\n }\n for(i=0;i<26;i++){\n\t total+=num[i];\n }\n if(total==0)\n\t printf(\"No\\n\");\n return 0;\n}"} +{"label": "100", "index": "49521", "code": "int main()\n{\n\tchar b[301];\n\tchar a[26];\n\tchar A[26];\n\tscanf(\"%s\",&b);\n\tint i,j,k,L,t,sb=0;\n\t for(j=0;j<26;j++)\n\t\t{\n\t\t\tA[j]=0;\n\t\t\ta[j]=0;\n\t\t}\n\t\tfor(i=0;;i++)\n\t\t{\n\t\t\tif(b[i]=='\\0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\tif(b[i]<='Z'&&b[i]>='A')\n\t\t\t\t{\tt=b[i]-'A';\n\t\t\t\t\tA[t]++;\n sb++;}\n\t\t\t\tif(b[i]<='z'&&b[i]>='a')\n\t\t\t\t{\tt=b[i]-'a';\n\t\t\t\t a[t]++;\n sb++;}}\n\t\t}\n\t\tif(sb==0)\n\t\tprintf(\"No\\n\");\n\t\tfor(k=0;k<26;k++)\n\t\t{\n\t\t\tif(A[k]!=0)\n\t\t\tprintf(\"%c=%d\\n\",'A'+k,A[k]);\n\t\t}\n\t\tfor(L=0;L<26;L++)\n\t\t{\n\t\t\tif(a[L]!=0)\n\t\t\tprintf(\"%c=%d\\n\",'a'+L,a[L]);\n\t\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49522", "code": "int main()\n{\n\tchar a[310],b[310]={0};\n\tgets(a);\n\tint i,j,t,k=0,l=0;\n\tt=(int)strlen(a);\n\tfor(j=0;j<27;j++)\n\t{\n\t\tk=0;\n\t\tfor(i=0;i=1){\n\t\t\tprintf(\"%c=%d\\n\",fh[i],fhd[i]);\n\t\t\tcd=1;\n\t\t}\n\t\t\n\t}\n\tif(cd==0){\n\t\t\tprintf(\"No\");\n\t\t}\n\treturn 0;\n}\n\n\n\t\t\t"} +{"label": "100", "index": "49525", "code": "int main()\n{\n\tchar str[301];\n\tint count[52] = {0};\n\tint i, flag = 0;\n\n\tscanf(\"%s\",str);\n\n\ti = 0;\n\twhile (str[i] != '\\0') {\n\t\tif ((str[i] >= 'A') && (str[i] <= 'Z')) {\n\t\t\tcount[str[i] - 'A']++;\n\t\t}\n\t\telse if ((str[i] >= 'a') && (str[i] <= 'z')) {\n\t\t\tcount[str[i] - 'a' + 26]++;\n\t\t}\n\t\ti++;\n\t}\n\n\tfor (i = 0; i < 26; i++) {\n\t\tif (count[i] > 0) {\n\t\t\tprintf(\"%c=%d\\n\", i + 'A', count[i]);\n\t\t\tflag++;\n\t\t}\n\t}\n\tfor (; i < 52; i++) {\n\t\tif (count[i] > 0) {\n\t\t\tprintf(\"%c=%d\\n\", i + 'a' - 26, count[i]);\n\t\t\tflag++;\n\t\t}\n\t}\n\tif (!flag)\n\t\tprintf(\"No\\n\");\n\n\treturn 0;\n}"} +{"label": "100", "index": "49526", "code": "main()\n{char a[300];\nint cishu[2][26],i,j,k=0,n,sum;\ngets(a);\nn=strlen(a);\nfor(j='a';j<='z';j++)\n\t{sum=0;\n\tcishu[0][k]=j;\n\tfor(i=0;i='a' && str[i]<='z')\n\t\t\tcount[str[i]-'a']++;\n\t\n\tint totle = 0;\n\tfor(char c='a';c<='z';c++)\n\t{\n\t\tif(count[c-'a']>0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",c,count[c-'a']);\n\t\t\ttotle ++;\n\t\t}\n\t}\n\n\tif(totle == 0)\n\t\tprintf(\"No\\n\");\n\n\treturn 0;\n}"} +{"label": "100", "index": "49528", "code": "void main()\n{\n\tchar a[302];\n\tint b[26];\n\tchar c[26];\n\tint i,j,p;\n\tgets(a);\n\tfor(i=0;i<=25;i++)\n\t c[i]=97+i;\n\tfor(i=0;i<=25;i++)\n\t b[i]=0;\n\tp=0;\n\tfor(i=0;i<=25;i++)\n\t{\n\t\tfor(j=0;a[j]!='\\0';j++)\n\t\t{\n\t\t\tif(a[j]==97+i)\n\t\t\t\tb[i]++;\n\t\t}\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",c[i],b[i]);\n\t\t\tp=1;\n\t\t}\n\t}\n\tif(p==0)printf(\"No\");\n}"} +{"label": "100", "index": "49529", "code": "\nvoid main()\n{\n\tchar s[301],c;\n\tint numx[30]={0},numd[30]={0},len,j,i,count=0;\n\n\tgets(s);\n\tlen=strlen(s);\n\tfor(j=0;j=65&&s[j]<=90)\n numd[ s[j]-65 ]++;\n\t\telse if(s[j]>=97&&s[j]<=122)\n\t\t\tnumx[ s[j]-97 ]++;\n\t}\n\t\n c=65;\n\tfor(i=0;i<26;i++,c++){\n \n\t\tif( numd[i]!=0 )\n\t\t\t {printf (\"%c=%d\\n\",c,numd[i]);\n\t\t\t count=1;}\n }\n c=97;\n\t\tfor(i=0;i<26;i++,c++){\n \n\t\tif( numx[i]!=0 )\n\t\t\t {printf (\"%c=%d\\n\",c,numx[i]);\n\t\t\t count=1;}\n }\nif (count==0)\nprintf (\"No\");\n\n}\n"} +{"label": "100", "index": "49530", "code": "void main()\n{\n\tchar a[300];\n\tint i, j, count, sum=0;\n\tgets(a);\n\tfor(i=65; i<=90; i++)\n\t{\n\t\tcount=0;\n\t\tfor(j=0; a[j]!='\\0'; j++)\n\t\t\tif((int)a[j]==i)\n\t\t\t\tcount++;\n\t\tif(count==0) continue;\n\t\tprintf(\"%c=%d\\n\", i, count);\n\t\tsum=sum+count;\n\t}\n\tfor(i=97; i<=122; i++)\n\t{\n\t\tcount=0;\n\t\tfor(j=0; a[j]!='\\0'; j++)\n\t\t\tif((int)a[j]==i)\n\t\t\t\tcount++;\n\t\tif(count==0) continue;\n\t\tprintf(\"%c=%d\\n\", i, count);\n\t\tsum=sum+count;\n\t}\n\tif(sum==0)\n\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49531", "code": "void main()\n{\n\tchar ch[300];\n\tint n,k=0,a[100]={0},p=0,l,i,j;\n\tscanf(\"%s\",ch);\n\tn=strlen(ch);\n\tfor(i=65;i<=90;i++,k++)\n\t{\n\t\tfor(j=0;j0)\n\t\t\tprintf(\"%c=%d\\n\",i,a[k]);\n\t}\n\tfor(i=97;i<=122;i++,k++)\n\t{\n\t\tfor(j=0;j0)\n\t\t\tprintf(\"%c=%d\\n\",i,a[k]);\n\t}\n\tfor(l=0;l<52;l++)\n\t{\n\t\tif(a[l]>0)\n\t\t\tp=p+1;\n\t}\n\tif(p==0)\n\t\tprintf(\"No\\n\");\n}"} +{"label": "100", "index": "49532", "code": "int main()\n{\n char string[1000];\n gets(string);\n int n,i;\n n=strlen(string);\n int x[200]={0},m;\n int flag=0;\n for(m=65;m<=90;m++)\n {\n for(i=0;i='a')) b[t-'a'+1]++;\n\t}\n\tflag=0;\n\tfor(i=1;i<=26;i++) if (b[i]!=0)\n\t{\t\n\t\tprintf(\"%c=%d\\n\",i+'a'-1,b[i]);\n\t\tflag=1;\n\t}\n\tif (flag==0) printf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49534", "code": "int main()\n{\n\tchar sz[301],s[26]={0},z[26]={0},flag=0;\n\tgets(sz);\n\tfor(int i=0;sz[i]!='\\0';i++)\n\t{\n if(sz[i]>='a'&&sz[i]<='z'){\n s[sz[i]-'a']++;\n flag++;\n }\n if(sz[i]>='A'&&sz[i]<='Z'){\n z[sz[i]-'A']++;\n flag++;\n }\n }\n for(int i=0;i<26;i++)\n {\n if(z[i]!=0)\n printf(\"%c=%d\\n\",i+'A',z[i]);\n }\n for(int i=0;i<26;i++){\n if(s[i]!=0)\n printf(\"%c=%d\\n\",i+'a',s[i]);\n }\n if(flag==0)\n printf(\"No\");\n gets(sz);\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49535", "code": "int main(int argc, char* argv[])\n{\n\tchar a[301]={'0'},b[26]={'a'};\n\tint i,n=0,j,t=0,s=0;\n\t\n\tfor(i=0;;i++){\n\t\t\n \tscanf(\"%c\",&a[i]);\n\t t++;\n\t\t\t \n if(a[i]=='\\n')\n\t\t break;\n\t }\n\tfor(i=0;i='a'&&a[i]<='z'){\n\t\t\ts=s+1;\n\t\t}\n\t}\n\tif(s==0)\n\t\tprintf(\"No\");\n\t\n\t\n\tfor(j=0;j<26;j++){\n\t\tn=0;\n\t\tb[0]='a';\n\t\tb[j+1]=b[j]+1;\n\n\t \n\t for(i=0;i=65&&A<=90)\n\t{\n\t\tfor(ps=zfc;*ps!='\\0';ps++)\n\t\t\tif(*ps==A)\n\t\t\t{\t\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",A,count);\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\tcount=0;\n\t\t\tA++;\n\t\t\n\t}\n\twhile(a<=122&&a>=97)\n\t{\n\t\tfor(ps=zfc;*ps!='\\0';ps++)\n\t\t\tif(*ps==a)\n\t\t\t{\t\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",a,count);\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\tcount=0;\n\t\t\ta++;\n\t\t\t\n\t}\n\tif(c==0)\n\t\tprintf(\"No\");\n\treturn 0;\n}"} +{"label": "100", "index": "49538", "code": "int main()\n{\n\tchar s[310];\n\tint t=1,d,i,j,k;\n\tint a[52]={0};\n\tgets(s);\n\td=strlen(s);\n\tfor(i=0;i=65&&s[i]<=90)\n\t\t{\n\t\t\tif (exist==0) exist=1;\n\t\t\tletterN[s[i]-65]++;\n\t\t}\n\t\telse if (s[i]>=97&&s[i]<=122)\n\t\t{\n\t\t\tif (exist==0) exist=1;\n\t\t\tletterN[s[i]-71]++;\n\t\t}\n\t}\n\n\tif (exist==0) printf(\"No\\n\");\n\telse \n\t{\n\t\tfor (i=0; i<26; i++)\tif (letterN[i]>0) printf(\"%c=%d\\n\",i+65,letterN[i]);\n\t\tfor (i=26; i<52; i++)\tif (letterN[i]>0) printf(\"%c=%d\\n\",i+71,letterN[i]);\n\t}\n\n\treturn 0;\n}\n"} +{"label": "100", "index": "49540", "code": "struct count\n{\n\tint num;\n\tchar ch;\n};\n\nint main()\n{\n\tstruct count s[53];\n\tint i,len,n,j;\n\tchar str[MAX],c;\n\tgets(str);\n\tgetchar();\n\tlen=strlen(str);\n\tc='A';\n\tfor (i=0;i<26;i++)\n\t{\n\t\ts[i].ch=c;\n\t\tc++;\n\t}\n\tc='a';\n\tfor (i=26;i<52;i++)\n\t{\n\t\ts[i].ch=c;\n\t\tc++;\n\t}\n\tfor (i=0;i<52;i++)\n\t{\n\t\ts[i].num=0;\n\t}\n\tfor (i=0;i='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z'))\n\t\t\tfor (j=0;j<52;j++)\n\t\t\t\tif (s[j].ch==str[i])\n\t\t\t\t\ts[j].num++;\n\t}\n\tint flag=0;\n\tfor (i=0;i<52;i++)\n\t\tif (s[i].num!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",s[i].ch,s[i].num);\n\t\t\tflag=1;\n\t\t}\n\tif (flag==0)\n\t\tprintf(\"No\");\n\treturn 0;\n}\n"} +{"label": "100", "index": "49541", "code": "int main()\n{\n\tchar sequence[301];\n\tscanf(\"%s\",sequence);\n\tint num=0;\n\tint a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,none=0;\n\tfor(num=0;sequence[num]!='\\0';num++)\n\t{\n\t\tswitch(sequence[num])\n\t\t{\n\t\tcase 'a':a++;break;\n\t\tcase 'b':b++;break;\n\t\tcase 'c':c++;break;\n case 'd':d++;break;\n case 'e':e++;break;\n\t\tcase 'f':f++;break;\n\t\tcase 'g':g++;break;\n case 'h':h++;break;\n case 'i':i++;break;\n\t\tcase 'j':j++;break;\n\t\tcase 'k':k++;break;\n case 'l':l++;break;\n case 'm':m++;break;\n\t\tcase 'n':n++;break;\n\t\tcase 'o':o++;break;\n case 'p':p++;break;\n case 'q':q++;break;\n\t\tcase 'r':r++;break;\n\t\tcase 's':s++;break;\n case 't':t++;break;\n case 'u':u++;break;\n\t\tcase 'v':v++;break;\n\t\tcase 'w':w++;break;\n case 'x':x++;break;\n case 'y':y++;break;\n\t\tcase 'z':z++;break;\n\t\t}\n\t\t\n\t\tif(sequence[num]<97 || sequence[num]>122)\n\t\t{\tnone++;\n\t\t///printf(\"%d\\n\",none);\n\t\t}\n\t}\n\tif(a>0)\n\tprintf(\"a=%d\\n\",a);\n\tif(b>0)\n printf(\"b=%d\\n\",b);\n\tif(c>0)\n printf(\"c=%d\\n\",c);\n\tif(d>0)\n\tprintf(\"d=%d\\n\",d);\n if(e>0)\n\tprintf(\"e=%d\\n\",e);\n if(f>0)\n\tprintf(\"f=%d\\n\",f);\n if(g>0)\n\tprintf(\"g=%d\\n\",g);\n if(h>0)\n\tprintf(\"h=%d\\n\",h);\n if(i>0)\n printf(\"i=%d\\n\",i);\n if(j>0)\n printf(\"j=%d\\n\",j);\n if(k>0)\n printf(\"k=%d\\n\",k);\n if(l>0)\n\tprintf(\"l=%d\\n\",l);\n\tif(m>0)\n printf(\"m=%d\\n\",m);\n\tif(n>0)\n printf(\"n=%d\\n\",n);\n\tif(o>0)\n printf(\"o=%d\\n\",o);\n\tif(p>0)\n\tprintf(\"p=%d\\n\",p);\n\tif(q>0)\n printf(\"q=%d\\n\",q);\n\tif(r>0)\n printf(\"r=%d\\n\",r);\n\tif(s>0)\n printf(\"s=%d\\n\",s);\n\tif(t>0)\n\tprintf(\"t=%d\\n\",t);\n\tif(u>0)\n printf(\"u=%d\\n\",u);\n\tif(v>0)\n printf(\"v=%d\\n\",v);\n\tif(w>0)\n printf(\"w=%d\\n\",w);\n\tif(x>0)\n\tprintf(\"x=%d\\n\",x);\n\tif(y>0)\n printf(\"y=%d\\n\",y);\n\tif(z>0)\n printf(\"z=%d\\n\",z);\n\tif(none==num)\n printf(\"No\\n\");\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49542", "code": "int main()\n{\n\tchar str[256],str2;\n\tint num=0,len,j,i,examine=0;\n\tscanf(\"%s\",str);\n\tlen=strlen(str);\n\tfor(i=97;i<=122;i++)\n\t{\n\t\tstr2=i;\n\t\tfor(j=0;j=97&&str[i]<=122)\n\t\t{\n\t\t\ta[i]=1;\n\t\t\tfor(j=i+1;j=97&&str[i]<=122)\n\t\t{\n\t\t\tf=1;\n\t\t\tprintf(\"%c=%d\\n\",str[i],a[i]);\n\t\t}\n\t}\n\tif(f==0)\n\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49546", "code": "int main()\n{\n\tint n,i,m[26],h[26],k=0;\n\tchar z[300];\n\tfor(i=0;i<26;i++)\n\t{\n\t\tm[i]=0;\n\t\th[i]=0;\n\t}\n\tscanf(\"%s\",z);\n\tn=strlen(z);\n\tfor(i=0;i=z[i])\n\t\t{\n\t\t\tm[z[i]-'A']++;\n\t\t}\n\t}\n\tfor(i=0;i=z[i])\n\t\t{\n\t\t\th[z[i]-'a']++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(m[i]!=0)\n\t\t\t{printf(\"%c=%d\\n\",'A'+i,m[i]);\n\t\tk=1;}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(h[i]!=0)\n\t\t\t{printf(\"%c=%d\\n\",'a'+i,h[i]);\n\t\tk=1;}\n\t}\n\tif(k==0)\n\t\tprintf(\"No\");\n\treturn 0;\n}\n\n\n\n\n\n\n\n"} +{"label": "100", "index": "49547", "code": "int main()\n{\n\tchar s[301];\n\tchar c;\n\tint a1[26]={0},a2[26]={0};\n\tint i,j=0;\n\tgets(s);\n for(i=0;s[i];i++)\n\t{\n\t\tif(s[i]>='A'&&s[i]<='Z')\n\t\t\ta1[s[i]-'A']++;\n\t\tif(s[i]>='a'&&s[i]<='z');\n\t\ta2[s[i]-'a']++;\n\t}\n for(i=0;i<26;i++)\n\t{\n\t\tif(a1[i]>0)\n\t\t{\n\t\t\tc=i+'A';\n\t\t\tprintf(\"%c=%d\\n\",c,a1[i]);\n j++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(a2[i]>0)\n\t\t{\n\t\t\tc=i+'a';\n\t\t\tprintf(\"%c=%d\\n\",c,a2[i]);\n j++;\n\t\t}\n\t}\n\tif(j==0)\n\t\tprintf(\"No\");\n\treturn 0;\n}\n"} +{"label": "100", "index": "49548", "code": "main()\n{\n\tchar c[1000];\n\tint i,a[26],b[26],flag=0;\n\tscanf(\"%s\",c);\n\tfor(i=0;i<26;i++)\n\t{\n\t\ta[i]=0;\n\t\tb[i]=0;\n\t}\n\tfor(i=0;i='A'&&c[i]<'A'+26) a[c[i]-'A']++;\n\t\telse if(c[i]>='a'&&c[i]<'a'+26) b[c[i]-'a']++;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(a[i]!=0||b[i]!=0)\n\t\t{\n\t\t\tflag=1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(flag==0)printf(\"No\");\n\telse\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif(a[i]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",'A'+i,a[i]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif(b[i]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",'a'+i,b[i]);\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "100", "index": "49549", "code": "int main()\n{\n int i,b[52]={0},j,k=0,t=0;\n char a[52]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",temp;\n for(i=0;i<300;i++)\n {\n scanf(\"%c\",&temp);\n if(temp=='\\n') break;\n for(j=0;j<52;j++)\n {\n if(a[j]==temp)\n {\n b[j]++;\n t=1;\n }\n }\n }\n if(t==0) printf(\"No\\n\");\n else\n for(i=0;i<52;i++)\n {\n if(b[i])\n printf(\"%c=%d\\n\",a[i],b[i]);\n }\n return 0;\n}\n"} +{"label": "100", "index": "49550", "code": "struct zimu\n{\n\tchar a;\n\tint n;\n}B[300],temp;\nint main()\n{\n\tchar A[303];\n\tint i,j=0,k,number,flag,flag1=0;\n\tscanf(\"%s\",A);\n\tnumber=strlen(A);\n\tfor(i=0;i=65&&A[i]<=90)||(A[i]>=97&&A[i]<=122))\n\t\t{\n\t\t\tflag1=1;\n\t\tflag=0;\n\t\tif(i==0)\n\t\t{\n\t\t\tB[j].a=A[i];\n\t\t\tB[j].n=1;\n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(k=0;kB[k+1].a)\n\t\t\t{\n\t\t\t\ttemp=B[k+1];\n\t\t\t\tB[k+1]=B[k];\n\t\t\t\tB[k]=temp;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(i=0;i0)\n\t\t{\n\t\t\tc=i;\n\t\t\tprintf(\"%c=%d\\n\",c,a[i]);\n\t\t\tf=1;\n\t\t}\n\t}\n\tfor(i=97;i<=122;i++)\n\t{\n\t\tif(a[i]>0)\n\t\t{\n\t\t\tc=i;\n\t\t\tprintf(\"%c=%d\\n\",c,a[i]);\n\t\t\tf=1;\n\t\t}\n\t}\n\tif(f==0)\n\t\tprintf(\"No\\n\");\n}"} +{"label": "100", "index": "49552", "code": "int main()\n{\n\tchar s[300],j,i;\n\tint b=0;\n\tscanf(\"%s\",s);\n\tfor(i='A';i<='Z';i++)\n\t{\n\t\tint num1=0;\n\t\tfor(j=0;j0;k--){\n\t\t for(i=0;isz[i+1]){\n\t\t\t\t t=sz[i];\n\t\t\t\t sz[i]=sz[i+1];\n\t\t\t\t sz[i+1]=t;\n\t\t\t\t m=d[i];\n\t\t\t\t d[i]=d[i+1];\n\t\t\t\t d[i+1]=m;\n\t\t\t }\n\t\t }\n\t }\n for (i=0;sz[i+1]!='\\0';i++){\n if (d[i]!=0) \n\t\t {\n printf(\"%c=%d\\n\",sz[i],d[i]);\n\t\t }\n }\n\t k=strlen(sz)-1;\n\t if(d[k]!=0)\n\t printf(\"%c=%d\",sz[k],d[k]);\n }\n return 0;\n}\n\n"} +{"label": "100", "index": "49556", "code": "int main()\n{\n char a[300],i,p=0;\n scanf(\"%s\",a);\n for(i='A';i<='Z';i++)\n {\n int j,s=0;\n for(j=0;a[j]!='\\0';j++)\n {\n if(a[j]==i)\n {\n s++;\n }\n }\n if(s!=0)\n {\n printf(\"%c=%d\\n\",i,s);\n p=1;\n }\n }\n for(i='a';i<='z';i++)\n {\n int j,s=0;\n for(j=0;a[j]!='\\0';j++)\n {\n if(a[j]==i)\n {\n s++;\n }\n }\n if(s!=0)\n {\n printf(\"%c=%d\\n\",i,s);\n p=1;\n }\n }\n if(p==0)\n {\n printf(\"No\");\n }\n return 0;\n}"} +{"label": "100", "index": "49557", "code": "int main()\n{\n char a[301]={0},t;\n int i,cnt,flg=0;\n gets(a);\n for(t='A';t<='Z';t++)\n {\n cnt=0;\n for(i=0;i<=strlen(a)-1;i++)\n {\n if(a[i]==t)cnt++;\n }\n if(cnt!=0)\n {\n flg++;\n printf(\"%c=%d\\n\",t,cnt);\n }\n }\n for(t='a';t<='z';t++)\n {\n cnt=0;\n for(i=0;i<=strlen(a)-1;i++)\n {\n if(a[i]==t)cnt++;\n }\n if(cnt!=0)\n {\n flg++;\n printf(\"%c=%d\\n\",t,cnt);\n }\n }\n if(flg==0)printf(\"No\");\n return 0;\n}\n"} +{"label": "100", "index": "49558", "code": "int main(){\n int i,n,m=0,t=0;\n char k,s[300];\n scanf(\"%s\",s);\n n=strlen(s);\n for(k='a';k<='z';k++){\n for(i=0;i='a'&&zifu[i]<='z')\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tt=zifu[i]-'a';\n\t\t\t\txiaoxie[t]++;\n\t\t\t}\n\t\t\tif(zifu[i]>='A'&&zifu[i]<='Z')\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tt=zifu[i]-'A';\n\t\t\t\tdaxie[t]++;\n\t\t\t}\n\t\t}\n\t}\n\tif (flag==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif (daxie[i]!=0)\n\t\t\t{\n\t\t\t\tc='A'+i;\n\t\t\t\tprintf(\"%c=%d\\n\",c,daxie[i]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif (xiaoxie[i]!=0)\n\t\t\t{\n\t\t\t\tc='a'+i;\n\t\t\t\tprintf(\"%c=%d\\n\",c,xiaoxie[i]);\n\t\t\t}\n\t\t}\n\t}\n}\n\n\t\t\t\t\n\n"} +{"label": "100", "index": "49562", "code": "void main()\n{\n\tchar a[300];\n\tint i,n,j,c[26]={0},b=0;\n\tscanf (\"%s\",a);\n\tn=strlen(a);\n\tfor(i=0;i0)\n\t\t\t{printf(\"%c=%d\\n\",j,c[i]);\n\t\t\tb++;}\n\t\t\t \n\t\t\ti++;\n\t\t}\n\t\tif(b==0)\n\t\t\tprintf(\"No\");\n\t\t\n}"} +{"label": "100", "index": "49563", "code": "int main(int argc, char* argv[])\n{\n\tchar a[300];\n\tscanf(\"%s\",a);\n\tint len;\n\tlen=strlen(a);\n\tint i,s[26]={0};\n\tfor(i=0;i='a'&&s[i]<='z'){\n\t\t\tt[j]=s[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tt[j] = '\\0';\n\tif(t[0]=='\\0') printf(\"No\");\n\telse{\n\t\tfor(i=0;zm[i]!='\\0';i++){\n\t\t\tm=0;\n\t\t\tfor(k=0;t[k]!='\\0';k++){\n\t\t\t\tif(zm[i]==t[k]) m++;\n\t\t\t}\n\t\t\tif(m!=0)\n\t\t\t\tprintf(\"%c=%d\\n\",zm[i],m);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49568", "code": "int main()\n{\n char sr[302];\n char i[28]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n int r=0,j,m;\n int sum[26]={0};\n scanf(\"%s\",sr);\n for(m=0;sr[m]!='\\0';m++)\n for(j=0;j<26;j++){\n if(sr[m]==i[j]){\n sum[j]++;\n r=1;\n }\n }\n if(r==0) printf(\"No\");\n else for(j=0;j<26;j++){\n if(sum[j]!=0){\n printf(\"%c=%d\\n\",i[j],sum[j]);\n }\n }\n return 0;\n}"} +{"label": "100", "index": "49569", "code": "int main()\n{\n\tint i,a[200],t=0;\n\tfor(i=65;i<=130;i++)a[i]=-10000;\n\tchar str[1000];\n\tfor(i=65;i<=90;i++)a[i]=0;\n\tfor(i=97;i<133;i++)a[i]=0;\n\tgets(str);\n\tfor(i=0;i0){\n\t\t\tt=1;\n\t\t\tprintf(\"%c=%d\\n\",i,a[i]);\n\t\t}\n\tif(t==0)printf(\"No\");\n\treturn 0;\n}"} +{"label": "100", "index": "49570", "code": "int main()\n{\n char ch, str[301];\n int i, len, no=1, counter[1000]={0};\n scanf(\"%s\", str);\n len = strlen(str);\n for (i=0; i= 'a' && ch <= 'z') {\n counter[ch-'A']++;\n no = 0;\n }\n if (ch >= 'A' && ch <= 'Z') {\n counter[ch-'A']++;\n no = 0;\n }\n }\n for (ch='A'; ch<='Z'; ch++) {\n if (counter[ch-'A'] > 0) {\n printf(\"%c=%d\\n\", ch, counter[ch-'A']);\n }\n }\n for (ch='a'; ch<='z'; ch++) {\n if (counter[ch-'A'] > 0) {\n printf(\"%c=%d\\n\", ch, counter[ch-'A']);\n }\n }\n if (no) {\n printf(\"No\");\n }\n return 0;\n}"} +{"label": "100", "index": "49571", "code": "int i,n,a[30]={0},k=0;\nchar str[1000],*q;\nint main(){\n \n scanf(\"%s\",str);\n n=strlen(str);\n q=str;\n \n for(i=0;i=97)&&(*q<=122)){\n k=1;\n a[*q-97]++;\n }\n q++;\n }\n if(k==0)\n printf(\"No\\n\");\n else for(i=0;i<26;i++){\n if(a[i]!=0)\n printf(\"%c=%d\\n\",97+i,a[i]);\n }\n//scanf(\"%d\",&i);\nreturn 0;\n}\n"} +{"label": "100", "index": "49572", "code": "int main()\n{\n\tint num,ii,jj,mm,pp,A[130]={0},a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;\n\tchar fu;\n\tfor(ii=0;ii<310;ii++)\n\t{\n\tscanf(\"%c\",&fu);\n\tif( (fu>=65&&fu<=90) || (fu>=97&&fu<=122) )\n\t{num=fu;\n\t\n\tA[num]++;\n\tif(fu==' ') break;\n\n\t}\n\n\t\n\t}\n\n\tif(A[65]!=0) printf(\"A=%d\\n\",A[65]);\n\tif(A[66]!=0) printf(\"B=%d\\n\",A[66]);\n\t if(A[67]!=0) printf(\"C=%d\\n\",A[67]);\n\t if(A[68]!=0) printf(\"D=%d\\n\",A[68]);\n\t if(A[69]!=0) printf(\"E=%d\\n\",A[69]);\n\t if(A[70]!=0) printf(\"F=%d\\n\",A[70]);\n\t if(A[71]!=0) printf(\"G=%d\\n\",A[71]);\n\tif(A[72]!=0) printf(\"H=%d\\n\",A[72]);\n\t if(A[73]!=0) printf(\"I=%d\\n\",A[73]);\n\t if(A[74]!=0) printf(\"J=%d\\n\",A[74]);\n\t if(A[75]!=0) printf(\"K=%d\\n\",A[75]);\n\t if(A[76]!=0) printf(\"L=%d\\n\",A[76]);\n\t if(A[77]!=0) printf(\"M=%d\\n\",A[77]);\n\t if(A[78]!=0) printf(\"N=%d\\n\",A[78]);\n\t if(A[79]!=0) printf(\"O=%d\\n\",A[79]);\n\t if(A[80]!=0) printf(\"P=%d\\n\",A[80]);\n\t if(A[81]!=0) printf(\"Q=%d\\n\",A[81]);\n\t if(A[82]!=0) printf(\"R=%d\\n\",A[82]);\n if(A[83]!=0) printf(\"S=%d\\n\",A[83]);\n\t if(A[84]!=0) printf(\"T=%d\\n\",A[84]);\n\tif(A[85]!=0) printf(\"U=%d\\n\",A[85]);\n\t if(A[86]!=0) printf(\"V=%d\\n\",A[86]);\n\t if(A[87]!=0) printf(\"W=%d\\n\",A[87]);\n\t if(A[88]!=0) printf(\"X=%d\\n\",A[88]);\n\t if(A[89]!=0) printf(\"Y=%d\\n\",A[89]);\n\t if(A[90]!=0) printf(\"Z=%d\\n\",A[90]);\n\t if(A[97]!=0) printf(\"a=%d\\n\",A[97]);\n\t if(A[98]!=0) printf(\"b=%d\\n\",A[98]);\n\t if(A[99]!=0) printf(\"c=%d\\n\",A[99]); \n\t if(A[100]!=0) printf(\"d=%d\\n\",A[100]);\n\t \t if(A[101]!=0) printf(\"e=%d\\n\",A[101]);\n\t if(A[102]!=0) printf(\"f=%d\\n\",A[102]);\n\t if(A[103]!=0) printf(\"g=%d\\n\",A[103]);\n\t if(A[104]!=0) printf(\"h=%d\\n\",A[104]);\n\t if(A[105]!=0) printf(\"i=%d\\n\",A[105]);\n\t if(A[106]!=0) printf(\"j=%d\\n\",A[106]);\n\t if(A[107]!=0) printf(\"k=%d\\n\",A[107]);\n\t if(A[108]!=0) printf(\"l=%d\\n\",A[108]);\n\t if(A[109]!=0) printf(\"m=%d\\n\",A[109]);\n\t if(A[110]!=0) printf(\"n=%d\\n\",A[110]);\n\t if(A[111]!=0) printf(\"o=%d\\n\",A[111]);\n if(A[112]!=0) printf(\"p=%d\\n\",A[112]);\n if(A[113]!=0) printf(\"q=%d\\n\",A[113]);\n if(A[114]!=0) printf(\"r=%d\\n\",A[114]);\n\n if(A[115]!=0) printf(\"s=%d\\n\",A[115]); \n if(A[116]!=0) printf(\"t=%d\\n\",A[116]);\n if(A[117]!=0) printf(\"u=%d\\n\",A[117]);\n if(A[118]!=0) printf(\"v=%d\\n\",A[118]);\n\n if(A[119]!=0) printf(\"w=%d\\n\",A[119]);\n if(A[120]!=0) printf(\"x=%d\\n\",A[120]);\n if(A[121]!=0) printf(\"y=%d\\n\",A[121]);\n if(A[122]!=0) printf(\"z=%d\\n\",A[122]);\n \n pp=0;for(mm=0;mm<130;mm++)\n {\n if(A[mm]!=0) pp=1;\n }\n\tif(pp==0) printf(\"No\");\t \t \n\t\n\nreturn 0;\n}\n"} +{"label": "100", "index": "49573", "code": "main()\n{\n\tchar c[301]={'\\0'};\n scanf(\"%s\",c);\n\tint i,j,t,n,sum,l;\n\tj=0;\n\tl=strlen(c);\n\tfor(n=65;n<=90;n++)\n\t{\n\t t=n;\n\t\tsum=0;\n\t\tfor(i=0;i=1)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",n,sum);\n\t\t j=j+1;\n\t\t}\n \n\t}\n for(n=97;n<=122;n++)\n\t{\n\t t=n;\n\t\tsum=0;\n\t\tfor(i=0;i=1)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",n,sum);\n\t\t j=j+1;\n\t\t}\n\t}\n\tif(j==0)\n\t\tprintf(\"No\");\t\n}"} +{"label": "100", "index": "49574", "code": "int main()\n{ \n\tint i=0;\n\tchar a[26]={0},b[26]={0};\n\tchar temp=0,semp=0;\n\tint test=1;\n\tfor(i=0;i<300;i++) \n\t{ \n\t\ttemp=getchar();\n\t\tsemp=temp;\n\t\tif('\\n'==temp)\n\t\t\tbreak; \n\t\ttemp=temp-'a'; \n\t\tsemp=semp-'A';\n\t\tif(0<=temp&&temp<26)\n\t\t\ta[(int)temp]++; \n\t\tif(0<=semp&&semp<26)\n\t\t\tb[(int)semp]++; \n\t} \n\tfor(i=0;i<26;i++)\n\t{ \n\t\tif(b[i]) \n\t\t{ \n\t\t\tprintf(\"%c=%d\\n\",('A'+i),b[i]); \n\t\t\ttest=0; \n\t\t} \n\t}\n\tfor(i=0;i<26;i++)\n\t{ \n\t\tif(a[i]) \n\t\t{ \n\t\t\tprintf(\"%c=%d\\n\",('a'+i),a[i]); \n\t\t\ttest=0; \n\t\t} \n\t} \n\tif(test)\n\t\tprintf(\"No\\n\"); \n\treturn 0;\n}"} +{"label": "100", "index": "49575", "code": "int main()\n{\n\tint t,i,l,k;\n\tchar s[300],a;\n\tgets(s);\n\tl=strlen(s);k=0;\n\tfor(a='A';a<='Z';a++)\n\t{\n\t\tt=0;\n\t\tfor(i=0;i='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z')){\n\tq++;\n\t}\n\n}\nif(q==0){\nprintf(\"No\");\n}\nfor(k='A';k<'Z';k++){\n\tn=0;\n\t\n\tfor(i=0;s[i]!='\\0';i++){\n\t\tif(s[i]==k){\n\t\tn++;\n\t\t}\n\n\t}\n\tif(n!=0){\n\tprintf(\"%c=%d\\n\" ,k,n);\n\t}\n}\nfor(i=0;s[i]!='\\0';i++){\n\tif(s[i]==a){\n\tm++;\n\t}\n}\nif(m!=0){\nprintf(\"%c=%d\\n\" ,a,m);\n}\nfor(j='a';j<='z';j++){\n\tp=0;\n\tfor(i=0;s[i]!='\\0';i++){\n\t\tif(s[i]==j){\n\t\tp++;\n\t\t}\n\t}\n\tif(p!=0){\n\tprintf(\"%c=%d\\n\" ,j,p);\n\t}\n}\n\nreturn 0;\n}"} +{"label": "100", "index": "49577", "code": "int main(){\n\tchar a[300],b[100];\n\tint flag=0,i,k,len,c[52]={0};\n\tgets(a);\n\tlen=strlen(a);\n\tb[0]='A';b[26]='a';\n\tfor(i=1;i<26;i++){\n\tb[i]=b[i-1]+1;}\n\tfor(i=27;i<52;i++){\n\tb[i]=b[i-1]+1;}\n\tfor(i=0;i<52;i++){\n\t\tfor(k=0;k=97&&a[i]<=122)\n\t\t\tb[a[i]-97]=b[a[i]-97]+1;\n\t}\n\tfor(i=0;i<=25;i=i+1)x=x+b[i];\n\tif(x==0)printf(\"No\");\n\telse \n\t{\n\t\tfor(i=0;i<=25;i=i+1)\n\t\t{\n\t\t\td=i+97;\n\t\t\tif(b[i]!=0)printf(\"%c=%d\\n\",d,b[i]);\n\t\t}\n\t}\n}\n "} +{"label": "100", "index": "49579", "code": "int main()\n{\n int a,i,b[300]={0},c=0;\n char d[300],k;\n gets(d);\n for(k='A';k<='Z';k++)\n {\n for(i=0;i<300&&d[i]!='\\0';i++)\n {\n if(d[i]==k)\n b[k]++;\n }\n if(b[k]!=0)\n printf(\"%c=%d\\n\",k,b[k]);\n }\n for(k='a';k<='z';k++)\n {\n for(i=0;i<300&&d[i]!='\\0';i++)\n {\n if(d[i]==k)\n b[k]++;\n }\n if(b[k]!=0)\n printf(\"%c=%d\\n\",k,b[k]);\n }\n for(i=0;i<300;i++)\n {\n if(b[i]!=0)\n c=1;\n }\n if(c==0)\n printf(\"No\");\n return 0;\n}"} +{"label": "100", "index": "49580", "code": "int main()\n{\n\tchar a[1000],c;\n\tint b[1000],j,i,k;\n\tgets(a);\n\tk=strlen(a);\n\tfor(i=0;i<1000;i++)\n\t{\n\t\tb[i]=0;\n\t}\n\tfor(i=65;i<=90;i++)\n\t{\n\t\tfor(j=0;j='a'&&str[i]<='z')\n\t\t{\n\t\t\tfor(j=i;j0) { printf(\"%c=%d\\n\",d[i],dd[i]);flag=1;}\n\tfor(i=0;i<26;i++)\n\t\tif(xx[i]>0) { printf(\"%c=%d\\n\",x[i],xx[i]);flag=1;}\n\tif(flag==0)\n\t\tprintf(\"No\");\n\t\n}"} +{"label": "100", "index": "49588", "code": "\nvoid main(){\n\tchar s[300];\n\tint c[26]={0},i,no=0;\n\tgets(s);\n\tfor (i=0;s[i]!='\\0';i++){\n\t\tswitch (s[i]){\n\t\t\tcase 'a':c[0]++;break;\n\t\t\tcase 'b':c[1]++;break;\n\t\t\tcase 'c':c[2]++;break;\n\t\t\tcase 'd':c[3]++;break;\n\t\t\tcase 'e':c[4]++;break;\n\t\t\tcase 'f':c[5]++;break;\n\t\t\tcase 'g':c[6]++;break;\n\t\t\tcase 'h':c[7]++;break;\n\t\t\tcase 'i':c[8]++;break;\n\t\t\tcase 'j':c[9]++;break;\n\t\t\tcase 'k':c[10]++;break;\n\t\t\tcase 'l':c[11]++;break;\n\t\t\tcase 'm':c[12]++;break;\n\t\t\tcase 'n':c[13]++;break;\n\t\t\tcase 'o':c[14]++;break;\n\t\t\tcase 'p':c[15]++;break;\n\t\t\tcase 'q':c[16]++;break;\n\t\t\tcase 'r':c[17]++;break;\n\t\t\tcase 's':c[18]++;break;\n\t\t\tcase 't':c[19]++;break;\n\t\t\tcase 'u':c[20]++;break;\n\t\t\tcase 'v':c[21]++;break;\n\t\t\tcase 'w':c[22]++;break;\n\t\t\tcase 'x':c[23]++;break;\n\t\t\tcase 'y':c[24]++;break;\n\t\t\tcase 'z':c[25]++;break;\n\t\t}\n\t}\n\tfor (i=0;i<26;i++){\n\t\tif (c[i]!=0){\n\t\t\tno++;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (no!=0){\n\tfor (i=0;i<26;i++){\n\t\tif (c[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",i+97,c[i]);\n\t}\n\t}\n\telse printf(\"No\");\n}"} +{"label": "100", "index": "49589", "code": "int main(int argc,char *argv[])\n{\n int i,b[26],len,s=0;\n char a[301];\n gets(a);\n len=strlen(a);\n for(i=0;i<26;i++)b[i]=0;\n for(i=0;i='a')b[(a[i]-'a')]++;\n for(i=0;i<26;i++)s+=b[i];\n if(s==0)printf(\"No\\n\");\n else for(i=0;i<26;i++)if(b[i]!=0)printf(\"%c=%d\\n\",i+'a',b[i]);\n return 0;\n}"} +{"label": "100", "index": "49590", "code": "int main()\n{\n char s[301],c;\n gets(s);\n int i,num,a=0;\n for(c='A';c<='Z';c++)\n {\n num=0;\n for(i=0;s[i]!='\\0';i++)\n {\n if(s[i]==c)\n num++;\n }\n if(num!=0)\n {\n printf(\"%c=%d\\n\",c,num);\n a++;\n }\n }\n for(c='a';c<='z';c++)\n {\n num=0;\n for(i=0;s[i]!='\\0';i++)\n {\n if(s[i]==c)\n num++;\n }\n if(num!=0)\n {\n printf(\"%c=%d\\n\",c,num);\n a++;\n }\n }\n if(a==0)\n printf(\"No\\n\");\n return 0;\n}"} +{"label": "100", "index": "49591", "code": "void main()\n{\n\tint i,j,sum[123]={0},m=0,q;\n\tchar*c=(char*)malloc(sizeof(char)*301);\n\tfor(i=0;i<=301;i++)\n\t{\n\t\tscanf(\"%c\",&c[i]);\n\t\tif(c[i]=='\\n') \n\t\t{\n\t\t\tq=i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(j=65;j<=90;j++)\n\t{\n\t for(i=0;i='a')&&time[i]!=0)\n {\n if(y==0)\n printf(\"\\n\");\n y=0;\n printf(\"%c=%d\",i,time[i]);\n flag=0;\n }\n }\n if(flag==1)\n printf(\"No\");\n \n return 0;\n}\n"} +{"label": "100", "index": "49593", "code": "int main(void)\n{\n\tint i,len,sumtimes=0,times[26];\n\tchar str[300];\n\tgets(str);\n\tlen=strlen(str);\n\tfor (i=0;i<26;i++)\n\t\ttimes[i]=0;\n\tfor (i=0;i=97&&str[i]<=122)\n\t\t\ttimes[str[i]-97]+=1;\n\t}\n\tfor (i=0;i<26;i++)\n\t{\n\t\tif(times[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",i+97,times[i]);\n\t\tsumtimes+=times[i];\n\t}\n\tif(sumtimes==0)\n\t\tprintf(\"No\");\n}\n"} +{"label": "100", "index": "49594", "code": "int main()\n{\n char word[500];\n\tgets(word);\n\tint a[26]={0};\n\tint m,i,j,sum=0;\n m=strlen(word);\n\tfor(i=0;i=97)){\n\t\t sd[e]=as[i];\n\t\t\te++;\n\t\t}\n\t}\n\tfor(int s=1;s<=e;s++){\n\t\tfor(int q=0;qn){\n\t\t\t\ty=sd[q];\n\t\t\t\tsd[q]=sd[q+1];\n\t\t\t\tsd[q+1]=y;\n\t\t\t}\n\t\t}\n\t}\n if(e!=0){\n df[0]=sd[0];sz[0]=1;\n\tint t=0;\n\tfor(int k=1;k='a'&&a[i]<='z')\n {\n b[a[i]-'a'+26]++;\n if (flag==0)\n flag=1;\n }\n if (a[i]>='A'&&a[i]<='Z')\n {\n b[a[i]-'A']++;\n if (flag==0)\n flag=1;\n }\n }\n if (flag!=0)\n {\n for (i=0;i<=25;i++)\n {\n if (b[i]!=0)\n {\n printf(\"%c=%d\\n\",i+'A',b[i]);\n }\n }\n for (i=26;i<=51;i++)\n {\n if (b[i]!=0)\n {\n printf(\"%c=%d\\n\",i+'a'-26,b[i]);\n }\n }\n }\n else\n printf(\"No\");\n\n return 0;\n}\n"} +{"label": "100", "index": "49598", "code": "int main()\n{\n\tchar str[300],*p,a[300],c;\n\tint i=0,j,k,b[300];\n\tscanf(\"%s\",str);\n\tfor(p=str;*p!='\\0';p++)\n\t{\n\t\tif(*p>='a'&&*p<='z')\n\t\t{\n\t\t\ta[i]=*p;\n\t\t\ti++;\n\t\t}\n\t}\n\tif(i==0)\n\t{\n\t\tprintf(\"No\");\n\t\treturn 0;\n\t}\n\n\tfor(j=0;ja[k])\n\t\t\t{\n\t\t\t\tc=a[j];\n\t\t\t\ta[j]=a[k];\n\t\t\t\ta[k]=c;\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfor(j=0;j96&&str[i]<123)\n\t\t{\n\t\t\ta=str[i];\n\t\t\tlet[a]++;\n\t\t\tm++;\n\t\t}\n\t\tfor(i=97;i<123;i++)\n\t\t\tif(let[i]>0)\n\t\tprintf(\"%c=%d\\n\",i,let[i]);\n\t\t\tif(m==0)\n\t\t\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49600", "code": "int main()\n{\n\tchar zfc[300];\n\tchar zm[27]=\"abcdefghijklmnopqrstuvwxyz\";\n\tint zms[26];\n\tint i,j,n,m=1;\n\tscanf(\"%s\",zfc);\n\tn = strlen (zfc);\n\tfor(i=0;i<26;i++)\n\t{\n\t\tzms[i]=0;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tfor(j=0;j='a')&&(s[i]<='z'))||((s[i]>='A')&&(s[i]<='Z'))){\n\tp++;\n\t}\n\t\n}\nif(p==0){\nprintf(\"No\");\n}else{\n\tfor(x='A';x<='Z';x++){\n\t\tq=0;\n\t\tfor(i=0;i=a)||(str[i]<=z)){\n\t\t\tzimu[str[i]-a]++;\n\t\t}\n\t}\n\t\tfor (i=0;i<26;i++){\n\t\t if (zimu[i]>0){\n\t\t\t printf(\"%c=%d\\n\",a+i,zimu[i]);\n\t\t\t t++;\n\t\t\t }\n\t\t}\n\t\tif (t==0){\n\t\t\tprintf(\"No\\n\");\n\t\t}\n return 0;\n}"} +{"label": "100", "index": "49606", "code": "struct abb{\n\tchar c;\n\tint sum;\n};\n\nint main()\n{\n\tint i,j,k,l;\n\tchar s[400]; \n\tstruct abb aa[60];\n\tstruct abb a;\n\n\tfor(i=0;i<60;i++)\n\t{\n\t\taa[i].c='0';\n\t\taa[i].sum=0;\n\t}\n\n\tgets(s);\n\tl=strlen(s);\n\tj=0;\n\n\tfor(i=0;i='A'&&s[i]<='Z')\n\t\t{\n\t\t\tfor(k=0;k='a'&&s[i]<='z')\n\t\t{\n\t\t\tfor(k=0;kaa[k+1].c)\n\t\t\t\t{\ta=aa[k];\n\t\t\t\taa[k]=aa[k+1];\n\t\t\t\taa[k+1]=a;\n\t\t\t\t}\n\n\n\t\t\t\tfor(i=0;i='A')\n\t\t{\n\t\tif(a[i]<='Z'&&a[i]>='A')\n\t\t{\n\t\t\tb[a[i]-'A']++;\n\t\t}\n\t\tif(a[i]<='z'&&a[i]>='a')\n\t\t{\n\t\t\tc[a[i]-'a']++;\n\t\t}\n\t\tm++;\n\t\t}\n\t\n\t}\n\tif(m==0)\n\t{\n\t\tprintf(\"No\\n\");\n\t}\n\telse\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif(b[i]!=0)\n\t\t\t{\n\t\t\t printf(\"%c=%d\\n\",'A'+i,b[i]);\n\t\t\t }\n\t\t}\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t \tif(c[i]!=0)\n\t\t\t{\n\t \tprintf(\"%c=%d\\n\",'a'+i,c[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49608", "code": "int main()\n{\n\tchar sz[300];\n\tscanf(\"%s\",sz);\n\n\tint i,j;\n\tint str[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\t\n\tint len=strlen(sz);\n\tfor (i=0;i='a'&&a[i]<='z')\n\t\t\tletter[a[i]-'a']++;\n\tfor(i=0;i<=25;i++)\n\t\tif(letter[i]>0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'a',letter[i]);\n\t\t\ttotal++;\n\t\t}\n\tif(total==0)\n\t\tprintf(\"No\");\n\tgetchar();\n\tgetchar();\n}\n"} +{"label": "100", "index": "49610", "code": "int main()\n{\n\tint a=0,i,sum[52]={0};\n\tchar zifu[301];\n\tgets(zifu);\n\tfor(i=0;i='a'&&a[i]<='z')break;\n\t\telse if(a[i+1]=='\\0')printf(\"No\");\n\tfor (i=0;a[i]!='\\0';i++)\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t {\n\t\t\tb[k]=a[i];\n\t\t for(j=i+1;a[j]!='\\0';j++)\n\t\t\t{\n\t\t\n\t\t if(a[i]==a[j])\n\t\t\t {a[j]=' ';c[k]=c[k]+1;}\n\t\t\t\n\t\t\t}\n\t k=k+1;\n\t\t}\n \n for (i=0;i='a'&&a[i]<='z')\n\t\t{\n\t\t\tfor(j=0;jb[j]){d=b[j];b[j]=b[i];b[i]=d;n=c[j];c[j]=c[i];c[i]=n;}\n\tif(k==0)printf(\"No\");\n\telse for(i=0;i= 'A' && ch <= 'Z') {\n counter1[ch-'A']++;\n nu1= 0;\n }\n }\n for (ch='A'; ch<='Z'; ch++) {\n if (counter1[ch-'A'] > 0) {\n printf(\"%c=%d\\n\", ch, counter1[ch-'A']);\n nu1= 0;\n }\n }\n for (j=0; j= 'a' && ar <= 'z') {\n counter2[ar-'a']++;\n nu2= 0;\n }\n }\n for (ar='a'; ar<='z'; ar++) {\n if (counter2[ar-'a'] > 0) {\n printf(\"%c=%d\\n\", ar, counter2[ar-'a']);\n nu2= 0;\n }\n }\n\n if (nu1) {\n if(nu2) {\n printf(\"No\");\n }\n }\n return 0;\n}\n"} +{"label": "100", "index": "49617", "code": "int main()\n{\n\tchar a[310]={0};\n\tint i,j,b[52]={0};\n\tgets(a);\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tif(a[i]>96&&a[i]<123)\n\t\t{\n\t\t\tfor(j=97;j<=122;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==j) b[a[i]-71]++;\n\t\t\t}\n\t\t}\n\t\telse if(a[i]>64&&a[i]<91)\n\t\t{\n\t\t\tfor(j=65;j<=90;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==j) b[a[i]-65]++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<52;i++)\n\t{\n\t\tif(i<26&&b[i]!=0) printf(\"%c=%d\\n\",i+65,b[i]);\n\t\telse if(i>25&&b[i]!=0) printf(\"%c=%d\\n\",i+71,b[i]);\n\t\tcontinue;\n\t}\n\tj=0;\n\tfor(i=0;i<52;i++)\n\t{\n\t\tif(b[i]!=0) j++;\n\t}\n\tif(j==0) printf(\"No\");\n}"} +{"label": "100", "index": "49618", "code": "int main()\n{\t\n\tchar zfc[305],*ps; \n\tint sz[26]={0},a[26]={0},i,j,c=1,d=1;\n\tscanf(\"%s\",&zfc);\n\tfor(ps=zfc;*ps!='\\0';ps++)\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif(*ps==65+i){\n\t\t\t\tsz[i]++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j<26;j++)\n\t\t{\n\t\t\tif(*ps==97+j){\n\t\t\t\ta[j]++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<26;i++){\n\t\tif(sz[i]!=0)\n\t\t\tbreak;\n\t\telse\n\t\t\tc=0;\n\t}\n\tfor(j=0;j<26;j++){\n\t\tif(a[j]!=0)\n\t\t\tbreak;\n\t\telse \n\t\t\td=0;\n\t}\n\tif(c==0&&d==0)\n\t\tprintf(\"No\");\n\telse \n\t{\n\t\tfor(i=0;i<26;i++){\n\t\t\tif(sz[i]!=0)\n\t\t\t\tprintf(\"%c=%d\\n\",i+65,sz[i]);\n\t\t}\n\t\tfor(j=0;j<26;j++){\n\t\t\tif(a[j]!=0)\n\t\t\t\tprintf(\"%c=%d\\n\",j+97,a[j]);\n\t\t}\n\t}\n\treturn 0;\n}\n\t\n\t\n\n"} +{"label": "100", "index": "49619", "code": "int main()\n{\n\tchar a[310],t;\n\tint n,i,d,k=0;\n scanf(\"%s\",a);\n\tn=strlen(a);\n\tfor(t=65;t<=90;t++)\n\t{\n\t\tfor(i=0,d=0;i<=n-1;i++)\n\t\t{\n\t\t\tif(a[i]==t)\n\t\t\t\td++;\n\t\t}\n\t\tif (d!=0)\n\t\t\tprintf(\"%c=%d\\n\",t,d);\n\t\telse \n\t\t\tk++;\n\t}\n\tfor(t=97;t<=122;t++)\n\t{\n\t\tfor(i=0,d=0;i<=n-1;i++)\n\t\t{\n\t\t\tif(a[i]==t)\n\t\t\t\td++;\n\t\t}\n\t\tif (d!=0)\n\t\t\tprintf(\"%c=%d\\n\",t,d);\n\t\telse \n\t\t\tk++;\n\t}\n\tif(k==52)\n\t\tprintf(\"No\");\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49620", "code": "void main()\n{\n\tint i,a[26]={0},sum=0;\n\tchar b[26],str[300];\n\tgets(str);\n\tfor(i=0;i<26;i++)\n\t{\n\t\tb[i]='a'+i;\n\t}\n\tfor(i=0;i='a'&&str[i]<='z')\n\t\t{\n\t\t\ta[str[i]-'a']++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{\n\t\t\tsum++;\n\t\t\tprintf(\"%c=%d\\n\",b[i],a[i]);\n\t\t}\n\t}\n\tif(sum==0)\n\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49621", "code": "int main()\n{\n char a[300],k;\n int b[300]={0},i,e=0;\n gets(a);\n for(k='A';k<='Z';k++)\n {\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]==k)\n b[k]++;\n }\n if(b[k]!=0)\n printf(\"%c=%d\\n\",k,b[k]);\n }\n for(k='a';k<='z';k++)\n {\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]==k)\n b[k]++;\n }\n if(b[k]!=0)\n printf(\"%c=%d\\n\",k,b[k]);\n }\n for(i=0;i<300;i++)\n {\n if(b[i]!=0)\n e=1;\n }\n if(e==0)\n printf(\"No\");\n return 0;\n}\n \n"} +{"label": "100", "index": "49622", "code": "void main()\n{\nint j,i,n,f;\nchar s[301], a[26];\nf=0;\nfor(i=0;i<26;i++) a[i]=0;\n\nfor(i=0;i<301;i++)\n {\n scanf(\"%c\",&s[i]);\n if(s[i]=='\\n'){n=i;break;}\n }\n\nfor(i=0;i='a')&&(a[i]<='z')||(a[i]>='A'&&a[i]<='Z'))\n\t\t{\n\t\t\tcount=a[i];\n\t\t\tnum[count]++;\n\t\t}\n\t}\n\tfor(i=0;i<200;i++)\n\t{\n\t\tif(num[i]!=0) {printf(\"%c=%d\\n\",i,num[i]);fuck=1;}\n\t\t\t\n\t}\n fuck==0?printf(\"No\"):fuck;\n}\n\n"} +{"label": "100", "index": "49624", "code": "int main()\n{\n\tchar str[300],s[300],temp;\n\tint i,k=0,j=0,m=0,n=0,count=1;\n\tscanf(\"%s\",str);\n n=strlen(str);\n\tfor(i=0;i='a'&&str[i]<='z')\n\t\t {\n\t\t\t s[k]=str[i];\n\t\t\t k=k+1;\n\t\t }\n\t}\n\tif(k==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse if(k==1)\n\t{\n\t\tprintf(\"%c=1\",s[0]);\n\t\tprintf(\"\\n\");\n\t}\n\t\n\telse\n\t{\n\n\n\tfor(i=k-1;i>0;i--)\n\t{\n\t\tfor(j=0;j='A'&&s[i]<='Z')\n a[s[i]-'A']++;\n\t\telse if(s[i]>='a'&&s[i]<='z')\n\t\t\ta[s[i]-'a'+32]++;\n\t}\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif(a[i])\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'A'+i,a[i]);\n\t \tb++;\n\t\t}\n\t}\n\tif(b==0)\n\t\tprintf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49626", "code": "void main()\n{\n\tchar str[301],a[26]={97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122};\n\tint i,b[26]={0},num=0,j;\n\tgets(str);\n\tfor(i=0;str[i]!='\\0';i++)\n\t{\n\t\tif(str[i]>='a'&&str[i]<='z')\n\t\t\tnum++;\n\t\tfor(j=0;j<26;j++)\n\t\t\tif(str[i]==a[j])\n\t\t\t\tb[j]=b[j]+1;\n\t}\n\tfor(j=0;j<26;j++)\n\t\tif(b[j]!=0)\n\t\t\tprintf(\"%c=%d\\n\",a[j],b[j]);\n\tif(num==0)\n\t\tprintf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49627", "code": "\nint main()\n{\n\tchar arr[300];\n\tint i,flag=0;\n\tint a[123]={0};\n\tgets(arr);\n\tfor(i=0;i=65&&arr[i]<=90)||(arr[i]>=97&&arr[i]<=122))\n\t\t\ta[((int)arr[i])]++;\n\t}\n\tfor(i=0;i<123;i++){\n\t\tif(a[i]!=0){\n\t\t\tflag++;\n\t\t\tprintf(\"%c=%d\\n\",i,a[i]);\n\t}\n\t}\n\tif(flag==0)\n\t\tprintf(\"No\\n\");\n\t\n\treturn 0;\n}\n"} +{"label": "100", "index": "49628", "code": "int main()\n{\n char a[301];\n int num[26]={0},i,j,n,p=0;\n scanf(\"%s\",a);\n n=strlen(a);\n for(i=0;i='a'&&a[i]<='z')\n {j=a[i]-97;\n num[j]++;}\n }\n for(j=0;j<26;j++)\n {if(num[j]>0){\n p=(char)(j+97); \n printf(\"%c=%d\\n\",p,num[j]);}\n }\n if(p==0)\n printf(\"No\");\n return 0;\n }"} +{"label": "100", "index": "49629", "code": "\nvoid main()\n{\n\tchar s[301];\n\tint len,num[52]={0},i,flag=0;\n\n\tgets(s);\n\tlen=strlen(s);\n\tfor(i=0;i=65&&s[i]<=90)\n\t\t\tnum[s[i]-65]++;\n\t\telse if(s[i]>=97&&s[i]<=122)\n\t\t\tnum[s[i]-97+26]++;\n\t}\n\n\tfor(i=0;i<52;i++){\n\t\tif(num[i]!=0){\n\t\t\tflag=1;\n\t\t\tif(i<26)\n\t\t\t\tprintf(\"%c=%d\\n\",i+65,num[i]);\n\t\t\telse\n\t\t\t\tprintf(\"%c=%d\\n\",i-26+97,num[i]);\n\t\t}\n\t}\n\tif(!flag)\n\t\tprintf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49630", "code": "int main ()\n\n{\n\tchar st[300];\n\tchar num[]=\"abcdefghijklmnopqrstuvwxyz\";\n\tint i,n,j;\n\tint sum[30]={0};\n\tint total1=0,total2=0;\n\tgets (st);\n\tn=strlen(st);\n\tfor (i=0;i='a')&(s[i]<='z'))\n g[s[i]-97]++;\n for (i=0;i<=25;i++)\n if (g[i]!=0)\n {\n printf(\"%c=%d\\n\",i+97,g[i]);\n f=0;\n }\n if (f==1)\n printf(\"No\\n\");\n}"} +{"label": "100", "index": "49634", "code": "\nint main()\n{\n\tchar a[350];\n\tint n, i, sum[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\tscanf(\"%s\", a);\n\tn=strlen(a);\n\tfor(i=0; i='a')\n\t\t{\n\t\t\tif(a[i]=='a')\n\t\t\t\tsum[0]++;\n\t\t\telse if(a[i]=='b')\n\t\t\t\tsum[1]++;\n\t\t\telse if(a[i]=='c')\n\t\t\t\tsum[2]++;\n\t\t\telse if(a[i]=='d')\n\t\t\t\tsum[3]++;\n\t\t\telse if(a[i]=='e')\n\t\t\t\tsum[4]++;\n\t\t\telse if(a[i]=='f')\n\t\t\t\tsum[5]++;\n\t\t\telse if(a[i]=='g')\n\t\t\t\tsum[6]++;\n\t\t\telse if(a[i]=='h')\n\t\t\t\tsum[7]++;\n\t\t\telse if(a[i]=='i')\n\t\t\t\tsum[8]++;\n\t\t\telse if(a[i]=='j')\n\t\t\t\tsum[9]++;\n\t\t\telse if(a[i]=='k')\n\t\t\t\tsum[10]++;\n\t\t\telse if(a[i]=='l')\n\t\t\t\tsum[11]++;\n\t\t\telse if(a[i]=='m')\n\t\t\t\tsum[12]++;\n\t\t\telse if(a[i]=='n')\n\t\t\t\tsum[13]++;\n\t\t\telse if(a[i]=='o')\n\t\t\t\tsum[14]++;\n\t\t\telse if(a[i]=='p')\n\t\t\t\tsum[15]++;\n\t\t\telse if(a[i]=='q')\n\t\t\t\tsum[16]++;\n\t\t\telse if(a[i]=='r')\n\t\t\t\tsum[17]++;\n\t\t\telse if(a[i]=='s')\n\t\t\t\tsum[18]++;\n\t\t\telse if(a[i]=='t')\n\t\t\t\tsum[19]++;\n\t\t\telse if(a[i]=='u')\n\t\t\t\tsum[20]++;\n\t\t\telse if(a[i]=='v')\n\t\t\t\tsum[21]++;\n\t\t\telse if(a[i]=='w')\n\t\t\t\tsum[22]++;\n\t\t\telse if(a[i]=='x')\n\t\t\t\tsum[23]++;\n\t\t\telse if(a[i]=='y')\n\t\t\t\tsum[24]++;\n\t\t\telse\n\t\t\t\tsum[25]++;\n\t\t}\n\t}\n\tif(sum[0]==0 && sum[1]==0 && sum[2]==0 && sum[3]==0 && sum[4]==0 && sum[5]==0 && sum[6]==0 && sum[7]==0 && sum[8]==0 && sum[9]==0 && sum[10]==0 && sum[11]==0 && sum[12]==0 && sum[13]==0 && sum[14]==0 && sum[15]==0 && sum[16]==0 && sum[17]==0 && sum[18]==0 && sum[19]==0 && sum[20]==0 && sum[21]==0 && sum[22]==0 && sum[23]==0 && sum[24]==0 && sum[25]==0)\n\t\tprintf(\"No\\n\");\n\telse\n\t{\n\t\tif(sum[0]!=0)\n\t\t\tprintf(\"a=%d\\n\", sum[0]);\n\t\tif(sum[1]!=0)\n\t\t\tprintf(\"b=%d\\n\", sum[1]);\n\t\tif(sum[2]!=0)\n\t\t\tprintf(\"c=%d\\n\", sum[2]);\n\t\tif(sum[3]!=0)\n\t\t\tprintf(\"d=%d\\n\", sum[3]);\n\t\tif(sum[4]!=0)\n\t\t\tprintf(\"e=%d\\n\", sum[4]);\n\t\tif(sum[5]!=0)\n\t\t\tprintf(\"f=%d\\n\", sum[5]);\n\t\tif(sum[6]!=0)\n\t\t\tprintf(\"g=%d\\n\", sum[6]);\n\t\tif(sum[7]!=0)\n\t\t\tprintf(\"h=%d\\n\", sum[7]);\n\t\tif(sum[8]!=0)\n\t\t\tprintf(\"i=%d\\n\", sum[8]);\n\t\tif(sum[9]!=0)\n\t\t\tprintf(\"j=%d\\n\", sum[9]);\n\t\tif(sum[10]!=0)\n\t\t\tprintf(\"k=%d\\n\", sum[10]);\n\t\tif(sum[11]!=0)\n\t\t\tprintf(\"l=%d\\n\", sum[11]);\n\t\tif(sum[12]!=0)\n\t\t\tprintf(\"m=%d\\n\", sum[12]);\n\t\tif(sum[13]!=0)\n\t\t\tprintf(\"n=%d\\n\", sum[13]);\n\t\tif(sum[14]!=0)\n\t\t\tprintf(\"o=%d\\n\", sum[14]);\n\t\tif(sum[15]!=0)\n\t\t\tprintf(\"p=%d\\n\", sum[15]);\n\t\tif(sum[16]!=0)\n\t\t\tprintf(\"q=%d\\n\", sum[16]);\n\t\tif(sum[17]!=0)\n\t\t\tprintf(\"r=%d\\n\", sum[17]);\n\t\tif(sum[18]!=0)\n\t\t\tprintf(\"s=%d\\n\", sum[18]);\n\t\tif(sum[19]!=0)\n\t\t\tprintf(\"t=%d\\n\", sum[19]);\n\t\tif(sum[20]!=0)\n\t\t\tprintf(\"u=%d\\n\", sum[20]);\n\t\tif(sum[21]!=0)\n\t\t\tprintf(\"v=%d\\n\", sum[21]);\n\t\tif(sum[22]!=0)\n\t\t\tprintf(\"w=%d\\n\", sum[22]);\n\t\tif(sum[23]!=0)\n\t\t\tprintf(\"x=%d\\n\", sum[23]);\n\t\tif(sum[24]!=0)\n\t\t\tprintf(\"y=%d\\n\", sum[24]);\n\t\tif(sum[25]!=0)\n\t\t\tprintf(\"z=%d\\n\", sum[25]);\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49635", "code": "int main()\n{\n\tchar str[301];char s1[]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t int s2[52];\n int i,x,flag=0;\n\tfor(i=0;i<52;i++)\n\t\ts2[i]=0;\n\tgets(str);\n for(i=0;i='a'-'0'&&tem<='z'-'0')\n\t\t{\n\t\t\t\n\t\t\ta[tem]++;\n\t\t}\n\t\telse if(tem>='A'-'0'&&tem<='Z'-'0')\n\t\t{\n\t\t\ta[tem]++;\n\t\t}\n\t}\n\tfor(i='A'-'0';i<='Z'-'0';i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{\n\t\t\tflag++;\n\t\t\tprintf(\"%c=%d\\n\",i+'0',a[i]);\n\t\t}\n\t}\n\tfor(i='a'-'0';i<='z'-'0';i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{\n\t\t\tflag++;\n\t\t\tprintf(\"%c=%d\\n\",i+'0',a[i]);\n\t\t}\n\t}\n\tif(flag==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49638", "code": "int main()\n{\n int i,n,m;\n char a[900];\n int b[250]={0};\n m=0;\n n=65;\n scanf(\"%s\",a);\n\n \n for(i=0;;i++)\n {\n n=a[i];\n b[n]+=1; \n if(a[i]=='\\0') break;\n }\n for(i=65;i<=90;i++)\n {\n if(b[i]>0) \n {\n printf(\"%c=%d\\n\",i,b[i]);\n m=m+b[i];\n } \n }\n for(i=97;i<=122;i++)\n {\n {\n if(b[i]>0) printf(\"%c=%d\\n\",i,b[i]);\n m=m+b[i];\n }\n }\n if(m==0) printf(\"No\");\n \n \n \n \n \n \n return 0;\n}\n"} +{"label": "100", "index": "49639", "code": "int main()\n{\n\tchar zfc[300],* ps;\n\tscanf(\"%s\",zfc);\n\tint count;\n\tint zimushu=0;\n\tfor(char ZM='A';ZM<='Z';ZM++)\n\t{\n\t\tcount=0;\n\t\tfor(ps=zfc;*ps!='\\0';ps++)\n\t\t{\n\t\t\tif(*ps==ZM) count++;\n\t\t}\n if(count!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",ZM,count);\n\t\t\tzimushu++;\n\n\t\t}\n\t\t\n\t}\n for(char zm='a';zm<='z';zm++)\n\t{\n\t\tcount=0;\n\t\tfor(ps=zfc;*ps!='\\0';ps++)\n\t\t{\n\t\t\tif(*ps==zm) count++;\n\t\t}\n if(count!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",zm,count);\n\t\t\tzimushu++;\n\n\t\t}\n\t\t\n\t}\n\n\tif (zimushu==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49640", "code": "void main()\n{\n\tint i,j,n,t,tot=0,b[26]={0};\n\tchar s[300];\n\tscanf(\"%s\",s);\n\tn=strlen(s);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(s[i]<=122&&s[i]>=97)\n\t\t{t=s[i]-97;\n\t\tb[t]=b[t]+1;\n\t\ttot=tot+1;\n\t\t}\n\t}\n\tfor(j=0;j<=25;j++)\n\t{if(b[j]!=0)\n\tprintf(\"%c=%d\\n\",j+97,b[j]);\n\t}\n\tif(tot==0)\n\t\tprintf(\"No\");\n}\n"} +{"label": "100", "index": "49641", "code": "void main()\n{\n\tint i,j,n,t,num,k,xiaoxie,zero,NUM[300];\n\tchar c,Original[300],A[300],B[300],C[300];\n\tc='a';\n\tfor (i=0;c!='\\n';i++)\n\t{\n\t\tc=getchar();\n\t\tOriginal[i]=c;\n\t\tA[i]=c;\n\t}\n\tn=i;\n\txiaoxie=0;\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tif ((Original[i]>=97)&&(Original[i]<=122))\n\t\t{\n\t\t\txiaoxie=1;\n\t\t}\n\t}\n\tfor (i=0,k=0;i<=n-1;i++)\n\t{\n\t\tif ((A[i]>=97)&&(A[i]<=122))\n\t\t{\n\t\t\tB[k]=A[i];\n\t\t\tk=k+1;\n\t\t}\n\t}\n\tn=k;\n\tk=0;\n\tfor (i=0;i<300;i++)\n\t\tNUM[i]=1;\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tif (B[i]!=0)\n\t\t{\n\t\t\tfor (j=i+1;j<=n-1;j++)\n\t\t\t{\n\t\t\t\tif (B[i]==B[j])\n\t\t\t\t{\n\t\t\t\t\tB[j]=0;\n\t\t\t\t\tNUM[k]=NUM[k]+1;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tk=k+1;\n\t\t}\n\t}\n\t\tfor (j=0;j<=n-1;j++)\n\t\t{\n\n\t\tfor (i=0;i=0;i--)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",C[i],NUM[i]);\n\t\t\t}\n\t\t}\n}\n\t\n\n\t\t\t\t\n\n\t\t\t\t\n\n\n\n\n\n\n\n\n"} +{"label": "100", "index": "49642", "code": "int main()\n{\n struct counter\n {\n int counter;\n }zm[52];\n char s[301];\n int len,i,j,counter=0;\n scanf(\"%s\",s);\n len=strlen(s);\n for(i=0;i<52;i++)\n zm[i].counter=0;\n for(i=0;i=97&&s[i]<=122)\n {\n counter++;\n zm[(s[i]-97)].counter++;\n }\n else if(s[i]>=65&&s[i]<=90)\n {\n counter++;\n zm[(s[i]-65+26)].counter++;\n }\n }\n if(counter==0)\n printf(\"No\");\n for(i=26;i<52;i++)\n {\n if(zm[i].counter>0)\n printf(\"%c=%d\\n\",i+(65-26),zm[i].counter);\n }\n for(i=0;i<26;i++)\n {\n if(zm[i].counter>0)\n printf(\"%c=%d\\n\",i+97,zm[i].counter);\n }\n return 0;\n}"} +{"label": "100", "index": "49643", "code": "int l;\nchar s[301];\nint t[300]={0};\nint main()\n{\n int i,b=0;\n l=strlen(gets(s));\n for(i=0;i=0&&s[i]-'a'<=25){\n\n\t\t\tsum[s[i]-'a']++;\n\t\t}\n\t}\n\tint hh=1;\n\tfor(i=0;i<26;i++){\n\t\tif(sum[i]!=0) break;\n\t else hh=0;}\n\tif(hh==0){ printf(\"No\");}\n\n\tfor(i=0;i<26;i++){\n\t\tif(sum[i]!=0) \n\t\t\tprintf(\"%c=%d\\n\",'a'+i,sum[i]);\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49645", "code": "int main ()\n{\n\tchar a[100],b[10000],c=0;\n\t\n\tscanf (\"%s\",a);\n\tint i;\n\tfor (i=0;i<10000;i++)\n\t\tb[i]=0;\n\tfor (i=0;i='a')\n\t\t{\n\t\t\tb[a[i]]++;\n\t\t\tc=1;\n\t\t}\n\telse continue;\n\t}\n\tif (c!=0)\n\t{\n\t\tfor (i='a';i<='z';i++)\n\t\n\t\tif (b[i]!=0)\n\t\t{\n\t\t\t\n\t\t\tprintf (\"%c=%d\\n\",i,b[i]);\n\t\t}\n\t}\n\telse printf(\"No\");\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49646", "code": "int main()\n{\n\tint n,i,j,k,a[1000]={0};\n char m,b[1000],c[1000];\n gets(b);j=0;\n for(i=0;i96&&b[i]<123){for(k=0;kc[k+1]){m=c[k];c[k]=c[k+1];c[k+1]=m;n=a[k];a[k]=a[k+1];a[k+1]=n;}}\n if(j==0)printf(\"No\\n\");else for(i=0;i='a'&&*p<='z')\n\t\t\ta=a+1;\t\n\t}\n\tif(a==0)\n\tprintf(\"No\");\n\ta=0;\n\tfor(i=97;i<=123;i++)\n\t{\n\t\tfor(p=zfc;*p!='\\0';p++)\n\t\t{\n\t\t\tif(*p==i)\n\t\t\t\ta+=1;\n\t\t}\n\tif(a==0)\n\t\tcontinue;\n\tprintf(\"%c=%d\\n\",i,a);\n\ta=0;\n\t}\n\nreturn 0;\n\n\n}"} +{"label": "100", "index": "49648", "code": "int main ()\n{\n\tint a[52]={0};\n\tchar s[320];\n\tint i;\n\tgets(s);\n\tfor (i=0; s[i]; i++) {\n\t\tif(s[i]>='A'&&s[i]<='Z') a[s[i]-'A']++;\n\t\tif(s[i]>='a'&&s[i]<='z') a[s[i]-'a'+26]++;\n\t}\n\tint q=0;\n\tfor (i=0; i<26; i++) {\n\t\tif (a[i]>0) {\n\t\t\tprintf(\"%c=%d\\n\", 'A'+i, a[i]);\n\t\t\tq=1;\n\t\t}\n\t}\n\tfor (i=26; i<52; i++) {\n\t\tif (a[i]>0) {\n\t\t\tprintf(\"%c=%d\\n\", 'a'+i-26, a[i]);\n\t\t\tq=1;\n\t\t}\n\t}\n\tif(q==0) printf(\"No\");\n\treturn 0;\n}\n"} +{"label": "100", "index": "49649", "code": "int main() \n{ char str[300],word[300],p;\n int i,k=0,len,num[300]={0},j,t,check=0;\n scanf(\"%s\",str);\n\n len=strlen(str);\n \n for(i=0;i='a'&&str[i]<='z')\n\t\t{ word[k]=str[i];check=1;\n\t\tfor(j=i+1;jword[j]) \n\t\t\t{p=word[i];word[i]=word[j];word[j]=p;\n\t\t t=num[i];num[i]=num[j];num[j]=t;\n\t\t\t}\t\t\t\n for(i=0;i='A'&&c[i]<='Z')\n\t\t{\n\t\t\td[t1]=c[i];\n\t\t\tt1+=1;\n\t\t}\n\t\tif(c[i]>='a'&&c[i]<='z')\n\t\t{\n\t\t\tx[t2]=c[i];\n\t\t\tt2+=1;\n\t\t}\n\t}\n\tfor(l=0;l<=t1-1;l++)\n\t{\n\t\tfor(m=0;m<=t1-1;m++)\n\t\t{\n\t\t\tif(d[m]==d[l])\n\t\t\t\tcs[l]+=1;\n\t\t}\n\t}\n\tfor(i=0;ii;l--)\n\t\t{\n\t\t\tif(d[l]i;l--)\n\t\t{\n\t\t\tif(x[l]='a')&&(a[i]<='z'))\n\t\t\tsum[26+a[i]-'a']++;\n\t\telse if((a[i]>='A')&&(a[i]<='Z'))\n\t\t\tsum[a[i]-'A']++;\n\t}\n\tfor(i=0;i<26;i++)\n\t\tif(sum[i]!=0){\n\t\t\tf++;\n\t\t\tprintf(\"%c=%d\\n\",i+'A',sum[i]);\n\t\t}\n\tfor(i;i<52;i++)\n\t\tif(sum[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",i+'a'-26,sum[i]);\n\t\t\tf++;\n\t\t}\n\tif(f==0)\n\t\tprintf(\"No\");\n\treturn 0;\n}\n"} +{"label": "100", "index": "49653", "code": "int main()\n{\n\tchar a[300]={'\\0'},c[53]={\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\"};\n\tint b[52]={0},i,j,length,sum=0;\n\tgets(a);\n\tlength=strlen(a);\n\tfor(j=0;j<52;j++)\n\t{\n\t\tfor(i=0;i=65&&a[i]<=90)\n\t\t{\n\t\t\tb[m]=a[i];\n\t\t\tfor(j=i+1;j=97&&a[i]<=122)\n\t\t{\n\t\t\tc[n]=a[i];\n\t\t\tfor(j=i+1;jb[j+1])\n\t\t\t{\n\t\t\t\tl=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=l;\n\t\t\t\to=d[j];\n\t\t\t\td[j]=d[j+1];\n\t\t\t\td[j+1]=o;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;ic[j+1])\n\t\t\t{\n\t\t\t\tl=c[j];\n\t\t\t\tc[j]=c[j+1];\n\t\t\t\tc[j+1]=l;\n\t\t\t\to=e[j];\n\t\t\t\te[j]=e[j+1];\n\t\t\t\te[j+1]=o;\n\t\t\t}\n\t\t}\n\t}\n\n\tif(h!=0){\n\n\tfor(i=0;i0)\n\t\t\tprintf(\"%c=%d\\n\",l[i].c,l[i].x);\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(s[i].x>0)\n\t\t\tprintf(\"%c=%d\\n\",s[i].c,s[i].x);\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(l[i].x==0&&s[i].x==0)\n\t\t\tcontinue;\n\t\telse\n\t\t\tgoto loop;\n\t}\n\tprintf(\"No\");\nloop:if(1);\n}\n"} +{"label": "100", "index": "49656", "code": "void main()\n{\n\tchar a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n int i,j,k,l,t=0;\n\t\tchar b[300];int c[52];\n\t\tfor(l=0;l<52;l++)\n\t\t\tc[l]=0;\n\n for(i=0;;i++)\n\t{\n\t\tscanf(\"%c\",&b[i]);\n\t\tif(b[i]=='\\n')\n\t\t\tbreak;\n\n\t}\n\tif(b[0]=='\\n')\n\t\tprintf(\"NO\\n\");\n\tfor(i=0;i<52;i++)\n\t{\n\tfor(j=0;;j++)\n\t{\n\t\tif(b[j]==a[i])\n\t\t\tc[i]++;\n\t\tif(b[j]=='\\n')\n\t\t\tbreak;\n\t}\n\t}\n\tfor(k=0;k<52;k++)\n\t{\n\t\tif(c[k]!=0)\n\t\t\tprintf(\"%c=%d\\n\",a[k],c[k]);\n\t}\n\tfor(l=0;l<52;l++)\n\t{\n\tif(c[l]!=0)\n\t\tt++;\n\t}\n\tif(t==0)\n\t\tprintf(\"No\\n\");\n\n}"} +{"label": "100", "index": "49657", "code": "void min(char str[])\n{ \n\tchar str1[1000]={'\\0'},str2[1000]={'\\0'},m;\n\tint b,i,j,t,k=0,n=0,p;\n\tb=strlen(str);\n for(i=0;i'z')\n\tstr[i]='0';}\n\tfor(i=0;i=0&&i<26)\n\t\t{\n\t\t\tc[i].x=65+i;\n\t\t}\n\t\telse if(i>=26&&i<52)\n\t\t{\n\t\t\tc[i].x=71+i;\n\t\t}\n\t\tc[i].y=0;\n\t}\n\tlen=strlen(a);\n\tfor(i=0;i=65&&k<91)\n\t\t\t\t{\n\t\t\t\t\tc[k-65].y=c[k-65].y+1;\n\t\t\t\t\ts=1;\n\t\t\t\t}\n\t\t\t\telse if(k>96&&k<123)\n\t\t\t\t{\n\t\t\t\t\tc[k-71].y=c[k-71].y+1;\n\t\t\t\t\ts=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n \tfor(i=0;i<52;i++)\n\t{\n\t\tif(c[i].y!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",c[i].x,c[i].y);\n\t\t}\n\t}\n\tif(s==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n\n\n}"} +{"label": "100", "index": "49661", "code": "int main()\n{\n\tchar a[300],j;\n\tint b[53]={0},i,flag=0,l,k=1;\n\tgets(a);\n\tl=strlen(a);\n\tfor(j='A';j<='Z';j++,k++)\n {\n\t\tfor(i=0;i=27)printf(\"%c=%d\\n\",i+70,b[i]);\n\t\t\t}\n\t}\n \n\treturn 0;\n}\n"} +{"label": "100", "index": "49662", "code": "int main()\n{\n\tchar s[300] = { \"\\0\" };\n\tint i, j, n = 0, l, a[60] = { '0' };\n\tgets(s);\n\tl = strlen(s);\n\tfor (i = 0; i='A'&&s[i]<='Z'||s[i]>='a'&&s[i]<='z')\n { leap=1;\n\t for(j=0;j<52;j++)\n\t { if(s[i]==ch[j].na)\n\t { ch[j].num++;\n\t }\n\t }\n }\n }\n if(leap==0)\n\t printf(\"No\");\n else \n { for(i=0;i<52;i++)\n {\n\t if(ch[i].num>0)\n\t printf(\"%c=%d\\n\",ch[i].na,ch[i].num);\n }\n }\n\n\n}"} +{"label": "100", "index": "49664", "code": "int f(char s[],int n)\n{\n\tint i;\n\tfor(i=0;i>m;\nfor(j=0;j<26;j++){\n g=0; \n for(i=0;i0){ \n cout<=65&&sz[i]<=90)||(sz[i]>=97)&&(sz[i<=122]))\n\t\t{\n\t\t\tzimu[sz[i]]=sz[i];\n\t\t\tcishu[sz[i]]++; \n\t\t\tgeshu++;\n\t\t}\n\t}\n\tif(geshu==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse\n\t{\n\t\tfor(int g=0;g<300;g++)\n\t{\n\t\tif(zimu[g]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",zimu[g],cishu[g]);\n\t\t}\n\t}\n\t}\n return 0;\n}"} +{"label": "100", "index": "49670", "code": "int sum[25];\nint main()\n{\n int k=0;\n\tchar str[300],*ps;\n\tscanf(\"%s\",str);\n\tint ii = 0;\n\tchar *aa;\n\taa=(char*)malloc(sizeof(char)*27);\n\t*aa='a';\n\t*(aa+1)='b';\n\t*(aa+2)='c';\n *(aa+3)='d';\n*(aa+4)='e';\n*(aa+5)='f';\n*(aa+6)='g';\n*(aa+7)='h';\n*(aa+8)='i';\n*(aa+9)='j';\n*(aa+10)='k';\n*(aa+11)='l';\n*(aa+12)='m';\n*(aa+13)='n';\n*(aa+14)='o';\n*(aa+15)='p';\n*(aa+16)='q';\n*(aa+17)='r';\n*(aa+18)='s';\n*(aa+19)='t';\n*(aa+20)='u';\n*(aa+21)='v';\n*(aa+22)='w';\n*(aa+23)='x';\n*(aa+24)='y';\n*(aa+25)='z';\nfor(ii=0;ii<26;ii++){\n\tfor(ps=str;*ps!='\\0';ps++){\n\t\tif(*ps==*(aa+ii)){\n\t\t\tsum[ii]++;\n\t\t\tk=1;\n\t\t}\n\t}\n\tif(k==1){\n if(sum[ii]==0) continue;\n else if(sum[ii]!=0) printf(\"%c=%d\\n\",*(aa+ii),sum[ii]);\n\t}\n}\nif(k!=1) printf(\"No\");\nreturn 0;\n}\n\t\n\t\n\n"} +{"label": "100", "index": "49671", "code": " void main ()\n{\n\tchar a[300];\n\tint i,b[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},m,yes=0;\n\t\n\tscanf(\"%s\",a);\nm=strlen(a);\n\t\nfor(i=0;i='a'&&a[i]<='z'){yes=1;\nb[a[i]-'a']++;}}\nif(yes==0)\nprintf(\"No\\n\");\nfor(i=0;i<26;i++)\n{\tif(b[i]!=0)\n{printf(\"%c=%d\\n\",(i+'a'),b[i]);}\n}\n\n\t\n}"} +{"label": "100", "index": "49672", "code": "int main()\n{\n\tint i,sum[30]={0},tot[30]={0},x=0;\n\tchar zfc[305];\n\tscanf(\"%s\",zfc);\n\tfor(i=0;i='A')\n\t\t{\n\t\t\tsum[zfc[i]-'A']++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(sum[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'A',sum[i]);\n\t\t\tx=1;\n\t\t}\n\t}\n\tfor(i=0;i='a')\n\t\t{\n\t\t\ttot[zfc[i]-'a']++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(tot[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'a',tot[i]);\n\t\t\tx=1;\n\t\t}\n\t}\n\tif(x==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49673", "code": "void main()\n{\n\tchar a[300];\n\tchar *p;\n\tint b[26],i ,len;\n\tfor(i=0;i<26;i++)\n\tb[i]=0;\n\tgets(a);\n\tlen=strlen(a);\n\tfor(p=a;p<(a+len);p++)\n\t\tfor(i=0;i<26;i++)\n\t\t\tif(*p=='a'+i) b[i]++;len=0;\n\tfor(i=0;i<26;i++)\n\tif(b[i]!=0)\n\t{printf(\"%c=%d\\n\",'a'+i,b[i]);len++;}\n\t\n\tif(len==0)\n printf(\"No\");\n\t}\n"} +{"label": "100", "index": "49674", "code": "int main(){\n\tchar a[100];\n\tint num[130]={0};\n\tscanf(\"%s\",a);\n\tint i,j,c=0;\n\tfor(i=0;i0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",q,k[n]);\n\t\t}\n\t}\n\tfor(t=97;t<=122;t++)\n\t{\n\t\tq=t;\n\t\tfor(w=0;w<=r-1;w++)\n\t\t{\n\t\t\tif(ch[w]==t)\n\t\t\t\t{k[t]++;\n\t\t\tm++;}\n\t\t}\n\t\t\n\t\tif(k[t]>0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",q,k[t]);\n\t\t}\n\t}\n\tif(m==0) {printf(\"No\");}\n return 0;\n}"} +{"label": "100", "index": "49677", "code": "int main()\n{\n\tchar a[300];\n\tint i,time=0,j,n,m=0;\n\tgets(a);\n\tfor(i=65;i<=90;i++)\n\t{\n\t\tfor(j=0;a[j]!='\\0';j++)\n\t\t{\n\t\t\tn=a[j];\n\t\t\tif(n==i)\n\t\t\t\ttime++;\n\t\t}\n\t\tif(time>0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i,time);\n\t\t\tm++;\n\t\t}\n\t\ttime=0;\n\t}\n\tfor(i=97;i<=122;i++)\n\t{\n\t\tfor(j=0;a[j]!='\\0';j++)\n\t\t{\n\t\t\tn=a[j];\n\t\t\tif(n==i)\n\t\t\t\ttime++;\n\t\t}\n\t\tif(time>0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i,time);\n\t\t\tm++;\n\t\t}\n\t\ttime=0;\n\t}\n\tif(m==0)\n\t\tprintf(\"No\\n\");\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "100", "index": "49678", "code": "int main()\n{ char str[300];\n scanf(\"%s\",str);\n int len;\n len=strlen(str);\n int count=0,i,j;\n for(i=0;i='a'&& str[i]<='z')\n count++;\n } \n if(count==0)\n printf(\"No\");\n else for(j=97;j<=122;j++)\n { int n=0; \n for(i=0;i=a[i])\n {\n b[(int)a[i]]++;\n }\n }\n for(i=97;i<123;i++)\n {\n if(b[i]!=0)\n {\n printf(\"%c=%d\\n\",(char)i,b[i]);\n k++;\n }\n }\n if(k==0)\n {\n printf(\"No\\n\");\n }\n return 0;\n} "} +{"label": "100", "index": "49683", "code": "int main()\n{\n\tint b[60]={0};\n\tchar a[300];\n\tchar *p=a;\n\tscanf(\"%s\",a);\n\tfor(;*p!='\\0';p++)\n\t{\n\t\tfor(int o=65;o<=90;o++){\n\t\t\tif(*p==o) b[o-65]++;\n\t\t}\n for(int q=97;q<=122;q++){\n\t\t\tif(*p==q) b[q-71]++;\n }\n\t}\n\tint i,n=0;\n\tchar g[60]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",*s;\n\ts=g;\n\tfor(i=0;i<52;i++,s++)\n\t{\n\t\tchar v;\n\t\tv=*s;\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",v,b[i]);\n\t\t\tn++;\n\t\t}\n\n\t}\n\tif(n==0)\n printf(\"No\\n\");\n\treturn 0;\n}\n \n\n"} +{"label": "100", "index": "49684", "code": "void main()\n{\n\tchar a[300]={0},b[26]={0};\n\tint c[26]={0};\n\tint i,j;\n\tgets(a);\n\ti=0;\n\twhile(a[i]!=0)\n\t{\n\t\tif(islower(a[i])) c[(a[i]-97)]++;\n\t\ti++;\n\t}\n\tj=1;\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(c[i]!=0) {j=0;printf(\"%c=%d\\n\",(97+i),c[i]);} \n\t}\n\tif(j) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49685", "code": "void main()\n{\n\tint a[26]={0},i,t=0;\n\tchar c[100];\n\tgets(c);\n\tfor(i=0;c[i]!='\\0';i++)\n {\n\t\tif(c[i]>=97&&c[i]<=122)\n\t\ta[c[i]-97]++;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{t=1;break;}\n\t}\n\tif(t==0)\n\t\tprintf(\"No\\n\");\n\telse \n\tfor(i=0;i<26;i++)\n\tif(a[i])\n\tprintf(\"%c=%d\\n\",i+97,a[i]);\n}"} +{"label": "100", "index": "49686", "code": "int main()\n{\n\tint shu[26],q=0;\n\tchar a[300];\n\tscanf(\"%s\",&a);\n int as=strlen(a),i;\n\tfor(i=0;i<26;i++) shu[i]=0;\n for(i=0;i=0&&(int)a[i]-97<26) shu[(int)a[i]-97]++;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(shu[i]!=0) printf(\"%c=%d\\n\",(char)(i+97),shu[i]);\n\t\telse q++;\n\t}\n\tif(q==26) printf(\"No\\n\");\n\treturn 0;\n}\n"} +{"label": "100", "index": "49687", "code": "int main(){\n\tchar s[300], bian='A';\n\tint i, j, k, flag=0;\n\tscanf(\"%s\", s);\n\tfor(j=0;s[j]!='\\0';j++){\n\t\tif((s[j]>='A'&&s[j]<='Z')||(s[j]>='a'&&s[j]<='z')){\n\t\t\tflag=1;\n\t\t}\n\t}\n\tif(flag==0){\n\t\tprintf(\"No\");\n\t}\n\tfor(i=0;i<26;i++){\n\t\tk=0;\n\t\tfor(j=0;s[j]!='\\0';j++){\n\t\t\tif(s[j]==bian){\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tif(k!=0){\n\t\t\tprintf(\"%c=%d\\n\", bian, k);\n\t\t}\n\t\tbian++;\n\t}\n\tbian='a';\n\tfor(i=0;i<26;i++){\n\t\tk=0;\n\t\tfor(j=0;s[j]!='\\0';j++){\n\t\t\tif(s[j]==bian){\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tif(k!=0){\n\t\t\tprintf(\"%c=%d\\n\", bian, k);\n\t\t}\n\t\tbian++;\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49688", "code": "void main()\n{\n\tint x[52]={0},i,flag,len;\n\tchar str[MAX];\n\tscanf(\"%s\",str);\n\tlen=strlen(str);\n\tfor(i=0;i0) printf(\"A=%d\\n\",x[26]);\n\t\tif(x[27]>0) printf(\"B=%d\\n\",x[27]); \n\t\tif(x[28]>0) printf(\"C=%d\\n\",x[28]);\n\t\tif(x[29]>0) printf(\"D=%d\\n\",x[29]);\n\t\tif(x[30]>0) printf(\"E=%d\\n\",x[30]);\n\t\tif(x[31]>0) printf(\"F=%d\\n\",x[31]); \n\t\tif(x[32]>0) printf(\"G=%d\\n\",x[32]);\n\t\tif(x[33]>0) printf(\"H=%d\\n\",x[33]);\n\t\tif(x[34]>0) printf(\"I=%d\\n\",x[34]);\n\t\tif(x[35]>0) printf(\"J=%d\\n\",x[35]); \n\t\tif(x[36]>0) printf(\"K=%d\\n\",x[36]);\n\t\tif(x[37]>0) printf(\"L=%d\\n\",x[37]); \n\t\tif(x[38]>0) printf(\"M=%d\\n\",x[38]);\n\t\tif(x[39]>0) printf(\"N=%d\\n\",x[39]);\n\t\tif(x[40]>0) printf(\"O=%d\\n\",x[40]);\n\t\tif(x[41]>0) printf(\"P=%d\\n\",x[41]); \n\t\tif(x[42]>0) printf(\"Q=%d\\n\",x[42]);\n\t\tif(x[43]>0) printf(\"R=%d\\n\",x[43]);\n\t\tif(x[44]>0) printf(\"S=%d\\n\",x[44]);\n\t\tif(x[45]>0) printf(\"T=%d\\n\",x[45]); \t\n\t\tif(x[46]>0) printf(\"U=%d\\n\",x[46]);\n\t\tif(x[47]>0) printf(\"V=%d\\n\",x[47]); \n\t\tif(x[48]>0) printf(\"W=%d\\n\",x[48]);\n\t\tif(x[49]>0) printf(\"X=%d\\n\",x[49]);\n\t\tif(x[50]>0) printf(\"Y=%d\\n\",x[50]);\n\t\tif(x[51]>0) printf(\"Z=%d\\n\",x[51]); \n\t\tif(x[0]>0) printf(\"a=%d\\n\",x[0]);\n\t\tif(x[1]>0) printf(\"b=%d\\n\",x[1]); \n\t\tif(x[2]>0) printf(\"c=%d\\n\",x[2]);\n\t\tif(x[3]>0) printf(\"d=%d\\n\",x[3]);\n\t\tif(x[4]>0) printf(\"e=%d\\n\",x[4]);\n\t\tif(x[5]>0) printf(\"f=%d\\n\",x[5]); \n\t\tif(x[6]>0) printf(\"g=%d\\n\",x[6]);\n\t\tif(x[7]>0) printf(\"h=%d\\n\",x[7]); \n\t\tif(x[8]>0) printf(\"i=%d\\n\",x[8]);\n\t\tif(x[9]>0) printf(\"j=%d\\n\",x[9]);\n\t\tif(x[10]>0) printf(\"k=%d\\n\",x[10]);\n\t\tif(x[11]>0) printf(\"l=%d\\n\",x[11]); \n\t\tif(x[12]>0) printf(\"m=%d\\n\",x[12]);\n\t\tif(x[13]>0) printf(\"n=%d\\n\",x[13]);\n\t\tif(x[14]>0) printf(\"o=%d\\n\",x[14]);\n\t\tif(x[15]>0) printf(\"p=%d\\n\",x[15]); \n\t\tif(x[16]>0) printf(\"q=%d\\n\",x[16]);\n\t\tif(x[17]>0) printf(\"r=%d\\n\",x[17]); \n\t\tif(x[18]>0) printf(\"s=%d\\n\",x[18]);\n\t\tif(x[19]>0) printf(\"t=%d\\n\",x[19]);\n\t\tif(x[20]>0) printf(\"u=%d\\n\",x[20]);\n\t\tif(x[21]>0) printf(\"v=%d\\n\",x[21]); \n\t\tif(x[22]>0) printf(\"w=%d\\n\",x[22]);\n\t\tif(x[23]>0) printf(\"x=%d\\n\",x[23]);\n\t\tif(x[24]>0) printf(\"y=%d\\n\",x[24]);\n\t\tif(x[25]>0) printf(\"z=%d\\n\",x[25]);\n\t\tflag=0;\n\t\tfor(i=0;i<52;i++)\n\t\t{\n\t\t\tif(x[i]!=0) flag=1;\n\t\t}\n\t\tif(flag==0) printf(\"No\\n\");\n}\n\t\t\n\t\n\n"} +{"label": "100", "index": "49689", "code": "void main()\n{\n\tchar s[300];int n[26]={0};int c;\n\tint i,j,flag=0;\n\tgets(s);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i]>='a'&&s[i]<='z')\n\t\t{\n\t\t\tc=s[i]-97;\n\t\t\tn[c]++;\n\t\t}\n\t}\n\tfor(j=0;j<26;j++)\n\t{\n\t\tif(n[j]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",j+97,n[j]);\n\t\t\tflag=1;\n\t\t}\n\t}\n\tif(flag==0)\n\t\tprintf(\"No\");\n}\n\n"} +{"label": "100", "index": "49690", "code": "int main()\n{\n int c[60]={0};\n int i,j=1,len,tem;\n char str[301];\n scanf(\"%s\",str);\n len=strlen(str);\n for(i=0;i='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z'))\n {\n tem=str[i]-'A';\n c[tem]++;\n j=0; \n \n }\n }\n for(i=0;i<60;i++)\n {\n if(c[i]!=0)\n {\n printf(\"%c=%d\\n\",'A'+i,c[i]); \n } \n} \n if(j)\n {\n printf(\"No\");\n }\n\n return 0; \n \n } \n"} +{"label": "100", "index": "49691", "code": "void main()\n{\n int i=0;//?????????\n int a[26]={0},A[26]={0};//?????????????a[0]=x,??????a???\n //x??\n int temp=0;//????\n\tchar c;\n int test=1;//???????????????\n for(i=0;i<300;i++)\n {\n c=getchar();//??????.\n //??????????300??????????\n //??????????,????????????\n if('\\n'==c)break;\n temp=c-'a'; \n if(0<=temp&&temp<26)a[temp]++;\n temp=c-'A'; \n if(0<=temp&&temp<26)A[temp]++;\n }\n for(i=0;i<26;i++)\n {\n //???????????????test=1,???0\n if(A[i])\n {\n printf(\"%c=%d\\n\",('A'+i),A[i]);\n test=0;\n }\n\t}\n for(i=0;i<26;i++)\n\t { if(a[i])\n {\n printf(\"%c=%d\\n\",('a'+i),a[i]);\n test=0;\n }\n }\n if(test)printf(\"No\\n\");\n \n}"} +{"label": "100", "index": "49692", "code": "\nmain()\n{\n\tchar init[300];\n\tint letter[27]={0};\n\tint i;\n\tint t=0;\n\tgets(init);\nfor(i=0;i<=strlen(init);i++)\nswitch(init[i])\n{\ncase'a' : letter[1]++;break;\ncase'b' : letter[2]++;break;\ncase'c' : letter[3]++;break;\ncase'd' : letter[4]++;break;\ncase'e' : letter[5]++;break;\ncase'f' : letter[6]++;break;\ncase'g' : letter[7]++;break;\ncase'h' : letter[8]++;break;\ncase'i' : letter[9]++;break;\ncase'j' : letter[10]++;break;\ncase'k' : letter[11]++;break;\ncase'l' : letter[12]++;break;\ncase'm' : letter[13]++;break;\ncase'n' : letter[14]++;break;\ncase'o' : letter[15]++;break;\ncase'p' : letter[16]++;break;\ncase'q' : letter[17]++;break;\ncase'r' : letter[18]++;break;\ncase's' : letter[19]++;break;\ncase't' : letter[20]++;break;\ncase'u' : letter[21]++;break;\ncase'v' : letter[22]++;break;\ncase'w' : letter[23]++;break;\ncase'x' : letter[24]++;break;\ncase'y' : letter[25]++;break;\ncase'z' : letter[26]++;break;\n}\nif(letter[1]!=0) {printf(\"a=%d\\n\",letter[1]);t++;}\nif(letter[2]!=0) {printf(\"b=%d\\n\",letter[2]);t++;}\nif(letter[3]!=0) {printf(\"c=%d\\n\",letter[3]);t++;}\nif(letter[4]!=0) {printf(\"d=%d\\n\",letter[4]);t++;}\nif(letter[5]!=0) {printf(\"e=%d\\n\",letter[5]);t++;}\nif(letter[6]!=0) {printf(\"f=%d\\n\",letter[6]);t++;}\nif(letter[7]!=0) {printf(\"g=%d\\n\",letter[7]);t++;}\nif(letter[8]!=0) {printf(\"h=%d\\n\",letter[8]);t++;}\nif(letter[9]!=0) {printf(\"i=%d\\n\",letter[9]);t++;}\nif(letter[10]!=0) {printf(\"j=%d\\n\",letter[10]);t++;}\nif(letter[11]!=0) {printf(\"k=%d\\n\",letter[11]);t++;}\nif(letter[12]!=0) {printf(\"l=%d\\n\",letter[12]);t++;}\nif(letter[13]!=0) {printf(\"m=%d\\n\",letter[13]);t++;}\nif(letter[14]!=0) {printf(\"n=%d\\n\",letter[14]);t++;}\nif(letter[15]!=0) {printf(\"o=%d\\n\",letter[15]);t++;}\nif(letter[16]!=0) {printf(\"p=%d\\n\",letter[16]);t++;}\nif(letter[17]!=0) {printf(\"q=%d\\n\",letter[17]);t++;}\nif(letter[18]!=0) {printf(\"r=%d\\n\",letter[18]);t++;}\nif(letter[19]!=0) {printf(\"s=%d\\n\",letter[19]);t++;}\nif(letter[20]!=0) {printf(\"t=%d\\n\",letter[20]);t++;}\nif(letter[21]!=0) {printf(\"u=%d\\n\",letter[21]);t++;}\nif(letter[22]!=0) {printf(\"v=%d\\n\",letter[22]);t++;}\nif(letter[23]!=0) {printf(\"w=%d\\n\",letter[23]);t++;}\nif(letter[24]!=0) {printf(\"x=%d\\n\",letter[24]);t++;}\nif(letter[25]!=0) {printf(\"y=%d\\n\",letter[25]);t++;}\nif(letter[26]!=0) {printf(\"z=%d\\n\",letter[26]);t++;}\n\nif(t==0) printf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49693", "code": "int main()\n{\n char s[301],x;\n char b[27]=\"abcdefghijklmnopqrstuvwxyz\";\n gets(s);\n int len;\n len=strlen(s);\n int j,i,a[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},d=0;\n for(j=0;j<26;j++){\n for(i=0;i='A')&&(str1[i]<='Z'))||((str1[i]>='a')&&(str1[i]<='z'))){\n\t\t str2[t]=str1[i];\n\t\t t++;\n\t\t}\n\t}\n len=t;\n\tif(len==0){\n\t printf(\"No\");\n\t}\n\telse{\n\tfor(i=1;istr2[t+1]){\n\t\t\t e=str2[t+1];\n\t\t\t str2[t+1]=str2[t];\n\t\t\t str2[t]=e;\n\t\t\t}\n\t\t}\n\t}\n\tif(str2[0]!=str2[1]){\n\t\t printf(\"%c=1\\n\",str2[0]);\n\t\t}\n\tfor(s=0;s='A' && a[i]<='Z') || (a[i]>='a' && a[i]<='z')) ctt[a[i]]++, bo=1;\n\tif (!bo) printf(\"No\");\n\tfor (i='A'; i<='Z'; i++) if (ctt[i]) printf(\"%c=%d\\n\\n\", i, ctt[i]);\n\tfor (i='a'; i<='z'; i++) if (ctt[i]) printf(\"%c=%d\\n\\n\", i, ctt[i]);\n\treturn 0;\n}\n"} +{"label": "100", "index": "49696", "code": "struct Letter\n{\t\n\tchar letter;\n\tint time;\n}Z[100],S;\nint main()\n{\n\tchar str[300];\n\tint i,j=0,t,n,m=0,ge;\n\tgets(str);\n\tn=strlen(str);\n\tfor(i=0;i<100;i++)\n\t{\n\t\tZ[i].time=0;\n\t}\n\tfor(i=0;i64)&&(str[i]<91))||((str[i]>96)&&(str[i]<123))))\n\t\t{\n\t\t\tZ[j].letter=str[i];\n\t\t\tZ[j].time++;\n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t\tm=0;\n\t}\n\tge=j-1;\n\tif(ge==-1)\n\t\tprintf(\"No\");\n\telse\n\t{\n\t\tfor(i=0;iZ[j+1].letter)\n\t\t\t\t{\t\n\t\t\t\t\tS=Z[j];\n\t\t\t\t\tZ[j]=Z[j+1];\n\t\t\t\t\tZ[j+1]=S;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<=ge;i++)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",Z[i].letter,Z[i].time);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49697", "code": "int main()\n{\n char c[310];\n int cishu[52]={0},i,j,k=0;\n gets(c);\n for(i=0;i='A'&&c[i]<='Z')\n cishu[c[i]-65]+=1;\n if(c[i]>='a'&&c[i]<='z')\n cishu[c[i]-71]+=1;\n }\n for(i=0;i<52;i++)\n {\n if(i>=0&&i<=25&&cishu[i]>0)\n {\n printf(\"%c=%d\\n\",i+65,cishu[i]);\n k+=1;\n }\n if(i>=26&&i<=51&&cishu[i]>0)\n {\n printf(\"%c=%d\\n\",i+71,cishu[i]);\n k+=1;\n }\n }\n if(k==0) printf(\"No\");\n return 0;\n}"} +{"label": "100", "index": "49698", "code": "int main()\n{\n int leap=0,i,j;\n char s[301];\n int b[60]={0};\n char z[]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n gets(s);\n for(i=0;s[i]!='\\0';i++)\n {\n if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z')\n for(j=0;j<52;j++)\n {\n leap=1;\n if(s[i]==z[j])\n b[j]++;\n }\n }\n if(leap==0)\n printf(\"No\");\n else\n {\n for(i=0;i<52;i++)\n {\n if(b[i]!=0)\n printf(\"%c=%d\\n\",z[i],b[i]);\n }\n }\n}"} +{"label": "100", "index": "49699", "code": "int main()\n{\n char a[350];\n int b[26];\n int i,j;\n scanf(\"%s\",&a);\n for(i=0;i<26;i++)\n b[i]=0;\n for(i=0;a[i];i++)\n if(a[i]>='a' && a[i]<='z')\n b[a[i]-'a']++;\n for(i=0;i<26;i++)\n if(b[i]>0)\n {\n printf(\"%c=%d\\n\",i+'a',b[i]);\n j=1;\n }\n if(!j)\n printf(\"No\\n\");\n return 0;\n}\n\n"} +{"label": "100", "index": "49700", "code": "\nvoid main()\n{\n char a[300];\n int i,j,k,b[30];\n gets(a);\n for(i=0;i<=25;i++)\n {\n b[i]=0; \n } \n for(i=0;a[i]!=0;i++){}\n for(i=0,k=0;a[i]!='\\0';i++)\n {\n if((a[i]>=97)&&(a[i]<=122))\n {b[(a[i]-97)]++;}\n }\n for(i=0;i<=25;i++)\n {\n if(b[i]>0)\n {\n printf(\"%c=%d\\n\",i+97,b[i]);k=1; \n }\n\n }\n if(k==0) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49701", "code": "\nvoid main()\n{\n\tint group=0,i,num[26],maxc,max;\n\tchar string[1000],*p;\n\n\n\tscanf(\"%s\",string);\n\tfor (i=0;i<=25;i++)\n\t\tnum[i]=0;\n\tfor (p=string;*p!='\\0';p++)\n\t\tnum[*p-'a']++;\n\n\tfor (i=0;i<=25;i++)\n\t\tif (num[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'a',num[i]);\n\t\t\tgroup=group+num[i];}\n\tif (group==0)\n\t\tprintf(\"No\\n\");\n\n\t\n\t\n\t\n}\n"} +{"label": "100", "index": "49702", "code": "int main()\n{\n\tchar zfc[300],mi;\n\tint sz[256]={0},in;\n\tscanf(\"%s\",zfc);\n for(in=0;in<300;in++){\n\t\tmi=zfc[in];\n\t\tsz[mi]++;\n\t\tif(zfc[in]=='\\0'){\n\t\t\tbreak;\n\t\t}\n\t}\n\tint Flag=0;\n\tfor(int kt=65;kt<=90;kt++){\n\t\tif(sz[kt]!=0){\n\t\t\tprintf(\"%c=%d\\n\",kt,sz[kt]);\n\t\t\tFlag=1;\n\t\t}\n\t}\n\tfor(int akt=97;akt<=122;akt++){\n\t\tif(sz[akt]!=0){\n\t\t\tprintf(\"%c=%d\\n\",akt,sz[akt]);\n\t\t\tFlag=1;\n\t\t}\n\t}\n\tif(Flag==0){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49703", "code": "int main(int argc, char* argv[])\n{ char zm[301]={0},ss[27]=\"abcdefghijklmnopqrstuvwxyz\";\n scanf(\"%s\",zm);\n \n int ii,a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;\n \n for (ii=0;ii<300;ii++){\n\t \n\t if (zm[ii]==ss[0]) a+=1;\n\t if (zm[ii]==ss[1]) b+=1;\n\t if (zm[ii]==ss[2]) c+=1;\n\t if (zm[ii]==ss[3]) d+=1;\n\t if (zm[ii]==ss[4]) e+=1;\n\t if (zm[ii]==ss[5]) f+=1;\n\t if (zm[ii]==ss[6]) g+=1;\n\t if (zm[ii]==ss[7]) h+=1;\n\t if (zm[ii]==ss[8]) i+=1;\n\t if (zm[ii]==ss[9]) j+=1;\n\t if (zm[ii]==ss[10]) k+=1;\n\t if (zm[ii]==ss[11]) l+=1;\n\t if (zm[ii]==ss[12]) m+=1;\n\t if (zm[ii]==ss[13]) n+=1;\n\t if (zm[ii]==ss[14]) o+=1;\n\t if (zm[ii]==ss[15]) p+=1;\n\t if (zm[ii]==ss[16]) q+=1;\n\t if (zm[ii]==ss[17]) r+=1;\n\t if (zm[ii]==ss[18]) s+=1;\n\t if (zm[ii]==ss[19]) t+=1;\n\t if (zm[ii]==ss[20]) u+=1;\n\t if (zm[ii]==ss[21]) v+=1;\n\t if (zm[ii]==ss[22]) w+=1;\n\t if (zm[ii]==ss[23]) x+=1;\n\t if (zm[ii]==ss[24]) y+=1;\n\t if (zm[ii]==ss[25]) z+=1;\n }\n if(a!=0) printf(\"%s=%d\\n\",\"a\",a);\n\t if(b!=0) printf(\"%s=%d\\n\",\"b\",b);\n\t if(c!=0) printf(\"%s=%d\\n\",\"c\",c);\n\t if(d!=0) printf(\"%s=%d\\n\",\"d\",d);\n\t if(e!=0) printf(\"%s=%d\\n\",\"e\",e);\n\t if(f!=0) printf(\"%s=%d\\n\",\"f\",f);\n\t if(g!=0) printf(\"%s=%d\\n\",\"g\",g);\n\t if(h!=0) printf(\"%s=%d\\n\",\"h\",h);\n\t if(i!=0) printf(\"%s=%d\\n\",\"i\",i);\n\t if(j!=0) printf(\"%s=%d\\n\",\"j\",j);\n\t if(k!=0) printf(\"%s=%d\\n\",\"k\",k);\n\t if(l!=0) printf(\"%s=%d\\n\",\"l\",l);\n\t if(m!=0) printf(\"%s=%d\\n\",\"m\",m);\n\t if(n!=0) printf(\"%s=%d\\n\",\"n\",n);\n\t if(o!=0) printf(\"%s=%d\\n\",\"o\",o);\n\t if(p!=0) printf(\"%s=%d\\n\",\"p\",p);\n\t if(q!=0) printf(\"%s=%d\\n\",\"q\",q);\n\t if(r!=0) printf(\"%s=%d\\n\",\"r\",r);\n\t if(s!=0) printf(\"%s=%d\\n\",\"s\",s);\n\t if(t!=0) printf(\"%s=%d\\n\",\"t\",t);\n\t if(u!=0) printf(\"%s=%d\\n\",\"u\",u);\n\t if(v!=0) printf(\"%s=%d\\n\",\"v\",v);\n\t if(w!=0) printf(\"%s=%d\\n\",\"w\",w);\n\t if(x!=0) printf(\"%s=%d\\n\",\"x\",x);\n\t if(y!=0) printf(\"%s=%d\\n\",\"y\",y);\n\t if(z!=0) printf(\"%s=%d\\n\",\"z\",z);\n\t if(a==0&&b==0&&c==0&&d==0&&e==0&&f==0&&g==0&&h==0&&i==0&&j==0&&k==0&&l==0&&m==0&&n==0&&o==0&&p==0&&q==0&&r==0&&s==0&&t==0&&u==0&&v==0&&w==0&&x==0&&y==0&&z==0)\n\t\t printf(\"No\");\n\treturn 0;\n}"} +{"label": "100", "index": "49704", "code": "void main()\n{\n\tchar a[300];\n\tchar b[52];\n\tint i=0,j=0;\n\tint p,q,t,s;\n\tscanf(\"%s\",a);\n\twhile(j<52)\n\t{\n\t\tb[j]=0;\n\t\tj++;\n\t}\n\twhile(a[i]!='\\0')\n\t{\n\t\tif (a[i]=='a')\n\t\t\tb[0]=b[0]+1;\n\t\telse if (a[i]=='b')\n\t\t\tb[1]=b[1]+1;\n\t\telse if (a[i]=='c')\n\t\t\tb[2]=b[2]+1;\n\t\telse if (a[i]=='d')\n\t\t\tb[3]=b[3]+1;\n\t\telse if (a[i]=='e')\n\t\t\tb[4]=b[4]+1;\n\t\telse if (a[i]=='f')\n\t\t\tb[5]=b[5]+1;\n\t\telse if (a[i]=='g')\n\t\t\tb[6]=b[6]+1;\n\t\telse if (a[i]=='h')\n\t\t\tb[7]=b[7]+1;\n\t\telse if (a[i]=='i')\n\t\t\tb[8]=b[8]+1;\n\t\telse if (a[i]=='j')\n\t\t\tb[9]=b[9]+1;\n\t\telse if (a[i]=='k')\n\t\t\tb[10]=b[10]+1;\n\t\telse if (a[i]=='l')\n\t\t\tb[11]=b[11]+1;\n\t\telse if (a[i]=='m')\n\t\t\tb[12]=b[12]+1;\n\t\telse if (a[i]=='n')\n\t\t\tb[13]=b[13]+1;\n\t\telse if (a[i]=='o')\n\t\t\tb[14]=b[14]+1;\n\t\telse if (a[i]=='p')\n\t\t\tb[15]=b[15]+1;\n\t\telse if (a[i]=='q')\n\t\t\tb[16]=b[16]+1;\n\t\telse if (a[i]=='r')\n\t\t\tb[17]=b[17]+1;\n\t\telse if (a[i]=='s')\n\t\t\tb[18]=b[18]+1;\n\t\telse if (a[i]=='t')\n\t\t\tb[19]=b[19]+1;\n\t\telse if (a[i]=='u')\n\t\t\tb[20]=b[20]+1;\n\t\telse if (a[i]=='v')\n\t\t\tb[21]=b[21]+1;\n\t\telse if (a[i]=='w')\n\t\t\tb[22]=b[22]+1;\n\t\telse if (a[i]=='x')\n\t\t\tb[23]=b[23]+1;\n\t\telse if (a[i]=='y')\n\t\t\tb[24]=b[24]+1;\n\t\telse if (a[i]=='z')\n\t\t\tb[25]=b[25]+1;\n\t\telse if (a[i]=='A')\n\t\t\tb[26]=b[26]+1;\n\t\telse if (a[i]=='B')\n\t\t\tb[27]=b[27]+1;\n\t\telse if (a[i]=='C')\n\t\t\tb[28]=b[28]+1;\n\t\telse if (a[i]=='D')\n\t\t\tb[29]=b[29]+1;\n\t\telse if (a[i]=='E')\n\t\t\tb[30]=b[30]+1;\n\t\telse if (a[i]=='F')\n\t\t\tb[31]=b[31]+1;\n\t\telse if (a[i]=='G')\n\t\t\tb[32]=b[32]+1;\n\t\telse if (a[i]=='H')\n\t\t\tb[33]=b[33]+1;\n\t\telse if (a[i]=='I')\n\t\t\tb[34]=b[34]+1;\n\t\telse if (a[i]=='J')\n\t\t\tb[35]=b[35]+1;\n\t\telse if (a[i]=='K')\n\t\t\tb[36]=b[36]+1;\n\t\telse if (a[i]=='L')\n\t\t\tb[37]=b[37]+1;\n\t\telse if (a[i]=='M')\n\t\t\tb[38]=b[38]+1;\n\t\telse if (a[i]=='N')\n\t\t\tb[39]=b[39]+1;\n\t\telse if (a[i]=='O')\n\t\t\tb[40]=b[40]+1;\n\t\telse if (a[i]=='P')\n\t\t\tb[41]=b[41]+1;\n\t\telse if (a[i]=='Q')\n\t\t\tb[42]=b[42]+1;\n\t\telse if (a[i]=='R')\n\t\t\tb[43]=b[43]+1;\n\t\telse if (a[i]=='S')\n\t\t\tb[44]=b[44]+1;\n\t\telse if (a[i]=='T')\n\t\t\tb[45]=b[45]+1;\n\t\telse if (a[i]=='U')\n\t\t\tb[46]=b[46]+1;\n\t\telse if (a[i]=='V')\n\t\t\tb[47]=b[47]+1;\n\t\telse if (a[i]=='W')\n\t\t\tb[48]=b[48]+1;\n\t\telse if (a[i]=='X')\n\t\t\tb[49]=b[49]+1;\n\t\telse if (a[i]=='Y')\n\t\t\tb[50]=b[50]+1;\n\t\telse if (a[i]=='Z')\n\t\t\tb[51]=b[51]+1;\n\t\ti++;\n\t}\n\t\tif (b[26]!=0)\n\t\t\tprintf(\"A=%d\\n\",b[26]);\n\t\tif (b[27]!=0)\n\t\t\tprintf(\"B=%d\\n\",b[27]);\n\t\tif (b[28]!=0)\n\t\t\tprintf(\"C=%d\\n\",b[28]);\n\t\tif (b[29]!=0)\n\t\t\tprintf(\"D=%d\\n\",b[29]);\n\t\tif (b[30]!=0)\n\t\t\tprintf(\"E=%d\\n\",b[30]);\n\t\tif (b[31]!=0)\n\t\t\tprintf(\"F=%d\\n\",b[31]);\n\t\tif (b[32]!=0)\n\t\t\tprintf(\"G=%d\\n\",b[32]);\n\t\tif (b[33]!=0)\n\t\t\tprintf(\"H=%d\\n\",b[33]);\n\t\tif (b[34]!=0)\n\t\t\tprintf(\"I=%d\\n\",b[34]);\n\t\tif (b[35]!=0)\n\t\t\tprintf(\"J=%d\\n\",b[35]);\n\t\tif (b[36]!=0)\n\t\t\tprintf(\"K=%d\\n\",b[36]);\n\t\tif (b[37]!=0)\n\t\t\tprintf(\"L=%d\\n\",b[37]);\n\t\tif (b[38]!=0)\n\t\t\tprintf(\"M=%d\\n\",b[38]);\n\t\tif (b[39]!=0)\n\t\t\tprintf(\"N=%d\\n\",b[39]);\n\t\tif (b[40]!=0)\n\t\t\tprintf(\"O=%d\\n\",b[40]);\n\t\tif (b[41]!=0)\n\t\t\tprintf(\"P=%d\\n\",b[41]);\n\t\tif (b[42]!=0)\n\t\t\tprintf(\"Q=%d\\n\",b[42]);\n\t\tif (b[43]!=0)\n\t\t\tprintf(\"R=%d\\n\",b[43]);\n\t\tif (b[44]!=0)\n\t\t\tprintf(\"S=%d\\n\",b[44]);\n\t\tif (b[45]!=0)\n\t\t\tprintf(\"T=%d\\n\",b[45]);\n\t\tif (b[46]!=0)\n\t\t\tprintf(\"U=%d\\n\",b[46]);\n\t\tif (b[47]!=0)\n\t\t\tprintf(\"V=%d\\n\",b[47]);\n\t\tif (b[48]!=0)\n\t\t\tprintf(\"W=%d\\n\",b[48]);\n\t\tif (b[49]!=0)\n\t\t\tprintf(\"X=%d\\n\",b[49]);\n\t\tif (b[50]!=0)\n\t\t\tprintf(\"Y=%d\\n\",b[50]);\n\t\tif (b[51]!=0)\n\t\t\tprintf(\"Z=%d\\n\",b[51]);\n\t\tif (b[0]!=0)\n\t\t\tprintf(\"a=%d\\n\",b[0]);\n\t\tif (b[1]!=0)\n\t\t\tprintf(\"b=%d\\n\",b[1]);\n\t\tif (b[2]!=0)\n\t\t\tprintf(\"c=%d\\n\",b[2]);\n\t\tif (b[3]!=0)\n\t\t\tprintf(\"d=%d\\n\",b[3]);\n\t\tif (b[4]!=0)\n\t\t\tprintf(\"e=%d\\n\",b[4]);\n\t\tif (b[5]!=0)\n\t\t\tprintf(\"f=%d\\n\",b[5]);\n\t\tif (b[6]!=0)\n\t\t\tprintf(\"g=%d\\n\",b[6]);\n\t\tif (b[7]!=0)\n\t\t\tprintf(\"h=%d\\n\",b[7]);\n\t\tif (b[8]!=0)\n\t\t\tprintf(\"i=%d\\n\",b[8]);\n\t\tif (b[9]!=0)\n\t\t\tprintf(\"j=%d\\n\",b[9]);\n\t\tif (b[10]!=0)\n\t\t\tprintf(\"k=%d\\n\",b[10]);\n\t\tif (b[11]!=0)\n\t\t\tprintf(\"l=%d\\n\",b[11]);\n\t\tif (b[12]!=0)\n\t\t\tprintf(\"m=%d\\n\",b[12]);\n\t\tif (b[13]!=0)\n\t\t\tprintf(\"n=%d\\n\",b[13]);\n\t\tif (b[14]!=0)\n\t\t\tprintf(\"o=%d\\n\",b[14]);\n\t\tif (b[15]!=0)\n\t\t\tprintf(\"p=%d\\n\",b[15]);\n\t\tif (b[16]!=0)\n\t\t\tprintf(\"q=%d\\n\",b[16]);\n\t\tif (b[17]!=0)\n\t\t\tprintf(\"r=%d\\n\",b[17]);\n\t\tif (b[18]!=0)\n\t\t\tprintf(\"s=%d\\n\",b[18]);\n\t\tif (b[19]!=0)\n\t\t\tprintf(\"t=%d\\n\",b[19]);\n\t\tif (b[20]!=0)\n\t\t\tprintf(\"u=%d\\n\",b[20]);\n\t\tif (b[21]!=0)\n\t\t\tprintf(\"v=%d\\n\",b[21]);\n\t\tif (b[22]!=0)\n\t\t\tprintf(\"w=%d\\n\",b[22]);\n\t\tif (b[23]!=0)\n\t\t\tprintf(\"x=%d\\n\",b[23]);\n\t\tif (b[24]!=0)\n\t\t\tprintf(\"y=%d\\n\",b[24]);\n\t\tif (b[25]!=0)\n\t\t\tprintf(\"z=%d\\n\",b[25]);\n\t\tif (b[0]==0&&b[1]==0&&b[2]==0&&b[3]==0&&b[4]==0&&b[5]==0&&b[6]==0&&b[7]==0&&b[8]==0&&b[9]==0&&b[10]==0)\n\t\t\tj=0;\n\t\tif (j==0&&b[11]==0&&b[12]==0&&b[13]==0&&b[14]==0&&b[15]==0&&b[16]==0&&b[17]==0&&b[18]==0&&b[19]==0&&b[20]==0)\n\t\t\tq=0;\n\t\tif (q==0&&b[21]==0&&b[22]==0&&b[23]==0&&b[24]==0&&b[25]==0&&b[26]==0&&b[27]==0&&b[28]==0&&b[29]==0&&b[30]==0)\n\t\t\tp=0;\n\t\tif (p==0&&b[31]==0&&b[32]==0&&b[33]==0&&b[34]==0&&b[35]==0&&b[36]==0&&b[37]==0&&b[38]==0&&b[30]==0&&b[40]==0)\n\t\t\tt=0;\n\t\tif (t==0&&b[41]==0&&b[42]==0&&b[43]==0&&b[44]==0&&b[45]==0&&b[46]==0&&b[47]==0&&b[48]==0&&b[49]==0&&b[50]==0)\n\t\t\ts=0;\n\t\tif (s==0&&b[51]==0)\n\t\t\tprintf(\"No\");\n}\n\n"} +{"label": "100", "index": "49705", "code": "void main()\n{\tint a[26],i,n,t=0;\n\tchar b[300];\n\tfor(i=0;i<26;i++) a[i]=0;\n\tgets(b);\n\tn=strlen(b);\n\tfor(i=0;i=0&&b[i]-97<=25) a[b[i]-97]++;}\n\tfor(i=0;i<26;i++)\n\t{\tif(a[i]!=0) {printf(\"%c=%d\\n\",i+97,a[i]);t++;}}\n\tif(t==0) printf(\"No\");\n\tscanf(\"%d\",&n);\n}\n"} +{"label": "100", "index": "49706", "code": "\nvoid main()\n{\n\tchar letter[300];\n\tgets(letter);\n\tint len=strlen(letter);\n\tint judge=0;\n\tchar CH='A';\n\tfor(CH='A';CH<='Z';CH++)\n\t{\n\t\tint i=0;\n\t\tint num1=0;\n for(i=0;i='A'&&a[i-1]<='Z')||(a[i-1]>='a'&&a[i-1]<='z'))\n\t\t{\n\t\t\tflag=1;\n\t\t}\n\t}\n\tif(flag==0)\n\t{\n\t\tprintf(\"No\");\n\t\treturn;\n\t}\n\tfor(j=1;j<=26;j++)\n\t{\n\t\tcount=0;\n\t\tfor(i=1;i<=len;i++)\n\t\t{\n\t\t\tif(a[i-1]=='A'+j-1)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count!=0)\n\t\t\tprintf(\"%c=%d\\n\",'A'+j-1,count);\n\t}\n\tfor(j=1;j<=26;j++)\n\t{\n\t\tcount=0;\n\t\tfor(i=1;i<=len;i++)\n\t\t{\n\t\t\tif(a[i-1]=='a'+j-1)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count!=0)\n\t\t\tprintf(\"%c=%d\\n\",'a'+j-1,count);\n\t}\n}"} +{"label": "100", "index": "49708", "code": "void main()\n{\n\tint count[128]={0},i,c,b=0;\n\tc=getchar();\n\twhile(c!='\\n')\n\t{\n\t\tcount[c]++;\n\t\tc=getchar();\n\t}\n\tfor(i='A';i<='Z';i++)\n\tif(count[i])\n\t{\n\t\tprintf(\"%c=%d\\n\",i,count[i]);\n\t\tb=1;\n\t}\n\tfor(i='a';i<='z';i++)\n\tif(count[i])\n\t{\n\t\tprintf(\"%c=%d\\n\",i,count[i]);\n\t\tb=1;\n\t}\n\tif(!b) printf(\"No\");\n}"} +{"label": "100", "index": "49709", "code": "int main(){\n\tchar str[300];\n\tchar A[26]={0};\n\tchar a[26]={0};\n\tint i=0,sum=0;\n\tchar tmp=0;\n\tscanf(\"%s\",str);\n\tfor(i=0;str[i]!='\\0';i++){\n\t\ttmp=str[i];\n\t\tif(tmp>='a'&&tmp<='z'){\n\t\t\ttmp=tmp-'a';\n\t\t\ta[(int)tmp]++;\n\t\t}\n\t\telse{\n\t\t\tif(tmp>='A'&&tmp<='z'){\n\t\t\ttmp=tmp-'A';\n\t\t\tA[(int)tmp]++;}\n\n\t\t\n\t\t}\n\t}\n\tfor(i=0;i<26;i++){\n\t\tif(A[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",('A'+i),A[i]);\n\t\t\tsum++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++){\n\t\tif(a[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",('a'+i),a[i]);\n\t\t\tsum++;\n\t\t}\n\t\t\n\t}\n \n if(sum==0)printf(\"No\\n\");\n\n\n\n\n\treturn 0;\n}"} +{"label": "100", "index": "49710", "code": "int main() \n{\n char s[300];\n scanf(\"%s\",s);\n int i=0,up[26]={0},down[26]={0},a=0;\n while(s[i]!='\\0')\n {\n\t if(s[i]>='A'&&s[i]<='Z'){ \n\t\t up[s[i]-'A']++;\n\t }else{ \n\t\t if(s[i]>='a' && s[i]<='z'){\n\t\t\t down[s[i]-'a']++;\n\t\t } else{\n\t\t a++;\n\t\t }\n\t }\n\t i++;\n }\n if(a==i){\n\t printf(\"No\");\n }\n for(i=0;i<26;i++) \n {\n if(up[i]!=0)\n printf(\"%c=%d\\n\",i+'A',up[i]);\n }\n for(i=0;i<26;i++)\n {\n\t if(down[i]!=0)\n printf(\"%c=%d\\n\",i+'a',down[i]);\n }\n return 0;\n}\n"} +{"label": "100", "index": "49711", "code": "void main()\n{int n,i,j,k=0,a[301]={0};\nchar c[301];\ngets(c);\nn=strlen(c);\nfor(i=97;i<123;i++)\n{for(j=0;j='a')&&(str[i]<='z')) {alp[m]=str[i];m++;}//????m?????\n\t}\n\tif(!m) printf(\"No\\n\");\n\telse\n\t{\n\n\tfor(i=0;i=alp[j+1])\n\t\t{q=alp[j];\n\t\talp[j]=alp[j+1];\n\t\talp[j+1]=q;\n\t\t}\t\n\tfor(i=1;i=97&&str[i]<=122)\n {\n sz[str[i]-97]++;\n }\n }\n for(i=0;i<26;i++)\n {\n if(sz[i]>0)\n {\n noprint=0;\n printf(\"%c=%d\\n\",i+97,sz[i]);\n }\n }\n if(noprint){printf(\"No\");}\nreturn 0;\n}\n \n"} +{"label": "100", "index": "49714", "code": "int b[26]={0};\nmain()\n{\n\tchar a[300];\n\t\n\tint i,n,t,s=0;\n\tscanf(\"%s\",a);\n\tn=strlen(a);\n\tfor(i=0;i='a'){\n\t\t\tb[a[i]-'a']++;\n\t\t}\n\t}\n\tfor(t=0;t<26;t++)\n\t\t\ts+=b[t];\n\tif(s==0)\n\t\tprintf(\"No\");\n\telse{\n\t\tfor(i=0;i<26;i++){\n\t\t\n\t\tif(b[i]>0)\n\t\t\tprintf(\"%c=%d\\n\",i+'a',b[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49715", "code": "int main()\n{\n char a[300];\n int b[150]={0};\n int i,j,s=0,n;\n scanf(\"%s\",a);\n n=strlen(a);\n for (i=0;i= 'A') && (str[i] <= 'Z')) || ((str[i] >= 'a') && (str[i] <= 'z')))\n\t\t{\n\t\t\tp = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (p == 0) \n\t\tcout << \"No\" << endl;\n\telse \n\t{\n\t\twhile (a < 91)\n\t\t{\n\t\t\tj = 0;\n\t\t\tfor (i = 0; ; i++)\n\t\t\t{\n\t\t\t\tif (str[i] == '\\0')\n\t\t\t\t\tbreak;\n\t\t\t\tif (str[i] == a) \n\t\t\t\t\tj++;\n\t\t\t}\n\t\t\tif (j != 0)\n\t\t\t\tcout << a << '=' << j << endl;\n\t\t\ta++;\n\t\t}\n\t\ta = 97;\n\t\twhile (a < 123)\n\t\t{\n\t\t\tj = 0;\n\t\t\tfor (i = 0; ; i++)\n\t\t\t{\n\t\t\t\tif (str[i] == '\\0')\n\t\t\t\t\tbreak;\n\t\t\t\tif (str[i] == a) \n\t\t\t\t\tj++;\n\t\t\t}\n\t\t\tif (j != 0)\n\t\t\t\tcout << a << '=' << j << endl;\n\t\t\ta++;\n\t\t} \n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49717", "code": "void main()\n{\n\tchar a[300],t;\n\tint i,j,n,f=0,s;\n\tgets(a);\n\tn=strlen(a);\n\tfor(t='a';t<='z';t++)\n\t{for(s=i=0;i='a')){\n sum++;\n sum0++;\n }\n }\n zimu=i;\n if(sum!=0){\n printf(\"%c=%d\\n\",zimu,sum);\n }\n }\n if(sum0==0){\n printf(\"No\");\n }\n return 0;\n}\n"} +{"label": "100", "index": "49719", "code": "void main()\n{\n\tchar str[300];\n\tint i,j,n=0,num[300]={0};\n\tgets(str);\n\t//printf(\"%d\",num[97]);\n\tfor(i=97;i<=122;i++)\n\t\tfor(j=0;str[j]!='\\0';j++)\n\t\t{\n\t\t\tif(str[j]==i)num[i]++;\n\t\t}\n\tfor(i=97;i<=122;i++)\n\t{\n\t\tif(num[i]!=0)n++;\n\t}\n\tfor(i=97;i<=122;i++)\n\t{\n\t\tif(n==0)\n\t\t{\n\t\t\tprintf(\"No\");\n\t\t\tbreak;\n\t\t}\n\t\telse if(num[i]==0)continue;\n\t\telse printf(\"%c=%d\\n\",i,num[i]);\n\t}\n}"} +{"label": "100", "index": "49720", "code": "main()\n{\nchar ch[301];\nstatic int a[100];\nint i,j,flag;\nscanf(\"%s\",ch);\nfor (i=0;i=97&&ch[i]<='z')\na[ch[i]-97]=a[ch[i]-97]+1;\n}\n\tflag=0;\nfor (i=0;i<26;i++)\n{\n\nif (a[i]!=0)\n{flag=1;\nprintf(\"%c=%d\\n\",i+97,a[i]);}\n}\nif (flag==0) printf(\"No\");\n}"} +{"label": "100", "index": "49721", "code": "void main()\n{\n\tchar a[100]={'\\0'};\n\tint b[26]={0};\n\tint i,j,k;\n\tscanf(\"%s\",a);\n\tfor (i=0;a[i]!='\\0';i++)\n\t\tif (a[i]>=97&&a[i]<=122)\n\t\t{\n\t\t\tk=a[i]-97;\n\t\t\tb[k]++;\n\t\t}\n\tk=0;\n\tfor (j=0;j<=25;j++)\n\t{\n\t\tif (b[j]!=0) \n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",j+97,b[j]);\n\t\t k++;\n\t\t}\n\t}\n\tif (k==0) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49722", "code": "int main()\n{\n\tchar str[100],a[27]=\"abcdefghijklmnopqrstuvwxyz\";\n\tgets(str);\n\tint i,j,k=0,sum=0;\n\tint len,num[100]={0};\n\tlen=strlen(str);\n\tfor(i=1;i<=26;i++)\n\t{\n\t\tfor(j=1;j<=len;j++)\n\t\t{\n\t\t\tif(a[i-1]==str[j-1])\n\t\t\t\tnum[i-1]++;\n\t\t}\n\t}\n\tfor(i=1;i<=26;i++)\n\t{\n\t\tsum+=num[i-1];\n\t\t\n\t}\t\n\n\tif(sum==0) printf(\"No\");\n\telse\n\t{\n\t\tfor(i=1;i<=26;i++)\n\t\t{\n\t\t\tsum+=num[i-1];\n\t\t\tif(num[i-1]>0)\n\t\t\tprintf(\"%c=%d\\n\",a[i-1],num[i-1]);\n\t\t}\t\n\t}\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49723", "code": "void main()\n{\n\tchar str[300];int a[52]={0};int len,i,flag=0;char c='A',d='a';\n\tscanf(\"%s\",str);\n\tlen=strlen(str);\n\t//printf(\"%d\",len);\n\tfor(i=0;i64&&str[i]<91)\n\t\t{\n\t\t\ta[str[i]-65]++;//printf(\"a\");\n\t\t}\n\t\tif(str[i]>96&&str[i]<123)\n\t\t{\n\t\t\ta[26+str[i]-97]++;\n\t\t}\n\t}\n\tfor(i=0;i<52;i++)\n\t{\n\t\tif(i<26)\n\t\t{\n\t\t\tif(a[i]!=0)\n\t\t\t{\n\t\t\t\tc=c+i;//printf(\"%c %d\",c,a[i]);\n\t\t\t\t//printf(\"a\");\n\t\t\t\tprintf(\"%c=%d\\n\",c,a[i]);flag=1;c='A';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a[i]!=0)\n\t\t\t{\n\t\t\t\td=d+i-26;\n\t\t\t\tprintf(\"%c=%d\\n\",d,a[i]);flag=1;d='a';\n\t\t\t}\n\t\t}\n\t}\n\tif(flag==0)\n\t\tprintf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49724", "code": "int main(){\n\tint i,j,p,q,len;\n char mark[301];\n\tscanf(\"%s\",mark);\n\tlen=strlen(mark);\n\tfor(p=len-1;p>0;p--){\n\t\tfor(q=0;qmark[q+1]){\n\t\t\t\tchar a;\n\t\t\t\ta=mark[q];\n\t\t\t\tmark[q]=mark[q+1];\n\t\t\t\tmark[q+1]=a;\n\t\t\t}\n\t\t}\n\t}\n\tint judge=0;\n\tfor(i=0;i=97&&mark[i]<=122){\n\t\t\tjudge++; \n\t\t\tint n=1;\n for(j=i+1;j='a'&&sen[i]<='z'){m=1;a[sen[i]-'a']++;}\n\t\tif(sen[i]>='A'&&sen[i]<='Z'){m=1;A[sen[i]-'A']++;}\n\t}\n\tfor(i=0;i<26;i++)\n\t\tif(A[i]!=0)printf(\"%c=%d\\n\",'A'+i,A[i]);\n\tfor(i=0;i<26;i++)\n\t\tif(a[i]!=0)printf(\"%c=%d\\n\",'a'+i,a[i]);\n\t\tif(m==0)printf(\"No\");\n}\n"} +{"label": "100", "index": "49726", "code": "int main()\n{\n\n char s[302];\n\tint i,len,f;\n\tint a[30],b[30];\n\tscanf(\"%s\",s);\n\tfor (i=0;i<=27;i++){\n\t\ta[i]=0;b[i]=0;\n\t}\n\tlen=strlen(s);\n\tf=0;\n\tfor (i=0;i='A')&&(s[i]<='Z')) {\n\t\t\ta[s[i]-'A']++;f=1;\n\t\t}\n\t\tif ((s[i]>='a')&&(s[i]<='z')) {\n\t\t\tb[s[i]-'a']++;f=1;\n\t\t}\n\t}\n\tif (f==0){\n\t\tprintf(\"No\");\n\t\treturn 0;\n\t}\n\tfor (i=0;i<26;i++){\n\t\tif (a[i]>0) printf(\"%c=%d\\n\",i+'A',a[i]);\n\t}\n\tfor (i=0;i<26;i++){\n\t\tif (b[i]>0) printf(\"%c=%d\\n\",i+'a',b[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49727", "code": "\nint main(int argc, char* argv[])\n{\n\tchar a[300];\n\tscanf(\"%s\",a);\n\tint i;\n\tint j=0;\n\tchar d[300];\n\tfor(i=0;i96&&a[i]<123)\n\t\t{\n\t\t\td[j]=a[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tint m,n;\n\tchar c;\n for(m=0;m0) printf(\"%c=%d\\n\",x,r);\n\t}\n\tfor(x='a';x<='z';x++)\n\t{\n\t\t\tr=0;\n\t\t\tfor(i=0;i0) printf(\"%c=%d\\n\",x,r);\n\t}\n\n\t\tif(t==0) printf(\"No\\n\");\n\n\n}"} +{"label": "100", "index": "49730", "code": "\nint main(int argc, char* argv[])\n{\n\tchar *ps,str[300],i;\n int count=0;\n\tscanf(\"%s\",str);\n for(ps=str;*ps!='\\0';ps++)\n {\n if(*ps>='a'&&*ps<='z')\n count++;\n }\n if(count==0)\n printf(\"No\");\n else \n {\n for(i='a';i<='z';i++)\n { \n count=0; \n for(ps=str;*ps!='\\0';ps++)\n if(*ps==i)\n count++;\n if(count!=0)\n printf(\"%c=%d\\n\",i,count);\n } \n } \n return 0;\n\n}"} +{"label": "100", "index": "49731", "code": "int main(){\nchar zfc[300],k;\nscanf(\"%s\",zfc);\nint L;\nL=strlen(zfc);\nint i,a,p;\nfor(i=97;i<=122;i++){\n\ta=0;\n\tfor(p=0;p122){\n\to++;\n\t}\n}if(o==L){\nprintf(\"No\");\n}\nreturn 0;\n}"} +{"label": "100", "index": "49732", "code": "int main()\n{\n\tchar s[301];\n\tint a[52]={0,0};\n\tgets(s);\n\tint i,k=0,len=strlen(s);\n\tchar x;\n\tfor(x='a';x<='z';x=x+1)\n\t{\n\t\tfor(i=0;i<=len-1;i++)\n\t\t{\n\t\t\tif(s[i]==x) a[x-'a']++;\n\t\t}\n\t}\n for(x='A';x<='Z';x=x+1)\n\t{\n\t\tfor(i=0;i<=len-1;i++)\n\t\t{\n\t\t\tif(s[i]==x) a[x-'A'+26]++;\n\t\t}\n\t}\n\t\tfor(i=26;i<=51;i++)\n\t{\n\t\tif(a[i]!=0) {k++;printf(\"%c=%d\\n\",'A'+i-26,a[i]);}\n\t}\n\tfor(i=0;i<=25;i++)\n\t{\n\t\tif(a[i]!=0) {k++;printf(\"%c=%d\\n\",'a'+i,a[i]);}\n\t}\n\n\tif(k==0)\n\tprintf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49733", "code": "\nint i,l,a[26],b[26];\nint main()\n{\n char z[301],c;\n for(i=0;i<26;i++)\n {\n a[i]=0;\n b[i]=0;\n }\n scanf(\"%s\",z);\n l=(int)strlen(z);\n for(i=0;i=0&&c<=25) \n {\n a[c]++;\n }\n }\n for(i=0;i=0&&c<=25)\n {\n b[c]++;\n }\n } \n char m;\n\n\n for(i=0;i<26;i++)\n {\n if(a[i]!=0)\n {\n m='A'+i;\n printf(\"%c=%d\\n\",m,a[i]);\n }\n }\nfor(i=0;i<26;i++)\n {\n if(b[i]!=0)\n {\n m='a'+i;\n printf(\"%c=%d\\n\",m,b[i]); \n }\n }\nint sum=0;\nfor(i=0;i<26;i++)\n{\nsum=sum+a[i]+b[i];\n}\nif(sum==0){\nprintf(\"No\");}\nreturn 0;\n}\n \n \n\n "} +{"label": "100", "index": "49734", "code": "int main()\n{\n\tchar a[300], w[55]=\"abcdefghijklmnopqrstuvwxyz\";\n\tint i, n[27];\n\tscanf(\"%s\", a);\n\tfor(i=1;i<27;i++)\n\t{\n\t\tn[i]=0;\n\t}\n \n\tfor(i=0;i=1)\n\t\t{\n\n\t\t printf(\"%c=%d\",w[i-1],n[i]);\n printf(\"\\n\");\n flag=1;\n\t\t}\n\t}\nif(flag==0)\n{\n printf(\"No\\n\");\n}\n\n\treturn 0;\n\n\n\t\t\n}\n"} +{"label": "100", "index": "49735", "code": "int main()\n{\n\tchar a[300]={0};\n\tint b[52],flag=0;\n\tint i=0,len;\n\tscanf(\"%s\",a);\n\tlen=sizeof(a);\n\tfor(i=0;i<52;i++){\n\t\tb[i]=0;\n\t}\n\t\n \n\tfor(i=0;i='A')b[a[i]-65]++;\n\t\tif(a[i]<='z'&&a[i]>='a')b[a[i]-71]++;\n\t}\n\n\tfor(i=0;i<26;i++){\n\t\tif(b[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",i+65,b[i]);\n\t\t\tflag=1;\n\t\t}\n\t}\n for(i=26;i<52;i++){\n\t\tif(b[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",i+71,b[i]);\n\t\t\tflag=1;\n\t\t}\n\t}\n\n\tif(flag==0)printf(\"No\");\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49736", "code": "\nchar s[255];\n\nint main() {\n char c;\n int f = 1;\n while ((c = getchar()) != '\\n') ++s[c];\n for (c = 'A'; c <= 'Z'; ++c)\n if (s[c]) {\n printf(\"%c=%d\\n\", c, s[c]);\n f = 0;\n }\n for (c = 'a'; c <= 'z'; ++c)\n if (s[c]) {\n printf(\"%c=%d\\n\", c, s[c]);\n f = 0;\n }\n if (f) printf(\"No\\n\");\n return 0;\n}\n"} +{"label": "100", "index": "49737", "code": "int main(){\n\tint sum[26],i,n=0;\n\tchar str[301];\n\tscanf(\"%s\",&str);\n\tfor(i=0;i<26;i++)\n\t\tsum[i]=0;\n\tfor(i=0;i < strlen(str);i++){\n\t\tif(('a'<=str[i])&&(str[i]<='z')){\n\t\t\tsum[str[i]-'a']++;\n\t\t\tn=1;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++){\n\t\tif(sum[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",i+'a',sum[i]);\n\t\t}\n\t\tif(n==0)\n\t\t\tprintf(\"No\");\n\t\treturn 0;\n\t}\n\t\t\n"} +{"label": "100", "index": "49738", "code": "\n\nint main(int argc, char* argv[])\n{\n\tchar word[300];\n\tint num[123]={0},l,i=0,j=97,k=0;\n\n\t\tscanf(\"%s\",word);\n\t\tl=strlen(word);\n\t\tfor(j=97;j<123;j++)\n\t\t{\n\t\t\t\n\t\t\tfor(i=0;i='a'&&str[i]<='z')\n\t\t{\n\t\t\tnum[str[i]-'a']=num[str[i]-'a']+1;\n\t\t\tn=1;\n\t\t}\n\tif (n==1)\n\t for (i=0;i<26;i++)\n\t\t\tif (num[i]!=0)\n\t\t\t\tprintf(\"%c=%d\\n\",i+'a',num[i]);\n\t\t\telse;\n\telse printf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49740", "code": "void main()\n{\n\tchar c1[300],c2[300];\n\tint s[300]={0},i,j,m,n;\n gets(c1);\n\tstrcpy(c2,c1);\n\tn=strlen(c1);\n\tfor(i=0;i=97&&c1[i]<=122)break;\n\t\tif(i==n)printf(\"No\");\n\tfor(i=0,m=0;i=97&&c1[i]<=122)\n {\n\t\t\tfor(j=i+1,s[m]=1;j0)\n\t\t{\n\t\t\tsum++;\n\t\t\tc[n]=m;\n\t\t\tn++;\n\t\t}\n\t}\n\n\n\tif(sum==0) printf(\"No\");\n\telse\n\t{\n\t\tfor(k=0;k= 'a' && ch <= 'z') {\n counter[ch-'a']++;\n no = 0;\n }\n }\n /* ???????? */\n for (ch='a'; ch<='z'; ch++) {\n if (counter[ch-'a'] > 0) {\n printf(\"%c=%d\\n\", ch, counter[ch-'a']);\n }\n }\n /* ??????????o */\n if (no) {\n printf(\"No\");\n }\n return 0;\n}\n\n/* ???????? */\n\n\nint main_h5_1_ptr()\n{\n char *p, str[301];\n int i, no=1, counter[26]={0};\n /* ????? */\n scanf(\"%s\", str);\n /* ????????????? */\n for (p=str; *p; p++) {\n if (*p >= 'a' && *p <= 'z') {\n counter[*p-'a']++;\n no = 0;\n }\n }\n /* ??????????o */\n if (no) {\n printf(\"No\");\n }\n /* ??????????? */\n else for (i=0; i<26; i++) {\n if (counter[i] > 0) {\n printf(\"%c=%d\\n\", 'a'+i, counter[i]);\n }\n }\n return 0;\n}\n"} +{"label": "100", "index": "49743", "code": "main()\n{\n\tchar str1[305];\n\tint i,j,p=0,n;\n\tint a[52]={0};\n\tscanf(\"%s\",str1);\n\tn=strlen(str1);\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tfor(j='A';j<='Z';j++)\n\t\t{\n\t\t\tif(str1[i]==j)\n\t\t\t{\n\t\t\t\ta[j-'A']=a[j-'A']+1;\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tfor(j='a';j<='z';j++)\n\t\t{\n\t\t\tif(str1[i]==j)\n\t\t\t{\n\t\t\t\ta[j+26-'a']++;\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=51;i++)\n\t{\n\t\tif(p==0)\n\t\t{\n\t\t\tprintf(\"No\\n\");\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a[i]!=0&&i<=25&&i>=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",i+'A',a[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(a[i]!=0&&i<=51&&i>=26)\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%c=%d\\n\",(i-26+'a'),a[i]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a[i]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "100", "index": "49744", "code": "int main()\n{\n\tchar zfc[310];\n\tint a,b,c,d;\n\tchar m,n;\n\tint i;\n\n\td=0;\n\t\n\tgets(zfc);\n a=strlen(zfc);\n\tfor(m='A';m<='Z';m++)\n\t{\n\t\tb=0;\n\t\tfor(i=0;i0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",m,b);\n\t\t\td++;\n\t\t}\n\t\t\n\t}\n\tfor(n='a';n<='z';n++)\n\t{\n\t\tc=0;\n\t\tfor(i=0;i0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",n,c);\n\t\t\td++;\n\t\t}\n\t\t\n\t}\n\tif(d==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\n\treturn 0;\n}\n"} +{"label": "100", "index": "49745", "code": "int main()\n{\nchar z[300];\ngets(z);\nchar zm[30];\nint num[26]={0};\nint len;\nlen=strlen(z);\nint i,j=0;\nfor(i=0;i='a'&&z[i]<='z'){num[z[i]-'a']++;}\n}\nfor(i=0;i<26;i++)\n{\nif(num[i]!=0){printf(\"%c=%d\\n\",i+'a',num[i]);j++;}\n}\nif(j==0){printf(\"No\");}\nreturn 0;\n}\n"} +{"label": "100", "index": "49746", "code": "\nint main()\n{\n char word[300];\n\tscanf(\"%s\",word);\n\tint t=0;\n\tint l,a[300]={0};\n\tl=strlen(word);\n\tint i;\n\tfor(i=0;i='a'&&word[i]<='z'){\n\t\t\ta[word[i]]=a[word[i]]+1;\n\t\t}\n\t}\n\tfor(i=0;i='a'&&word[i]<='z'){\n\t\t\tt++;\n\t\t}\n\t}\n\tif(t==0)\n\t{\n\t\tprintf(\"No\\n\");\n\t}\n\telse {\n\t\tfor(i='a';i<='z';i++){\n\t\t\t\tif(a[i]>0){\n\t\t\t\t\tprintf(\"%c=%d\\n\", i, a[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\n\treturn 0;\n}\n\n\n\n"} +{"label": "100", "index": "49747", "code": "\nint main()\n{\n\tchar a[301];\n\tgets(a);\n\tint len=strlen(a),i,j,num0=0,num;\n\tfor(i=65;i<=90;i++)\n\t{\n\t\tnum=0;\n\t\tfor(j=0;j\n\nvoid main()\n{\n\tchar str[300],*p;\n\tint a[26]={0},i,flag;\n\n\tgets(str);\n\tfor(p=str;*p!='\\0';p++)\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t\tif(*p==i+'a')\n\t\t\t\ta[i]++;\n\t}\n\tfor(i=0,flag=0;i<26;i++)\n\t{\n\t\tif(a[i]>0)\n\t\t{printf(\"%c=%d\\n\",i+'a',a[i]);flag=1;}\n\t}\n\tif(!flag)\n\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49752", "code": "int main(){\n int i,a[60]={0},flag=0,k; char str[300]={0};\n short c;\n scanf(\"%s\",str);\n for(i=0;i<300;i++)\n {\n k=str[i]-64;\n if(k>=1&&k<=26||k>32&&k<=58) \n { a[k]++; flag=1; }\n }\n if(flag==0) printf(\"No\\n\");\n else for(k=1;k<60;k++)\n { if(a[k]!=0) \n { c=k+64;\n printf(\"%c=%d\\n\",c,a[k]); } }\nreturn 0; \n}\n"} +{"label": "100", "index": "49753", "code": "main()\n{\n char ch[300],r[300]={'\\0'};\n int n[300],i,j,N,m;\n gets(ch);\n N=strlen(ch);\n for(i=0;i<=N-1;i++)\n {for(j=0;j=97&&ch[i]<=122)\n {n[j]=n[j]+1;\n break;}\n if(i==j&&ch[i]>=97&&ch[i]<=122)\n {r[i]=ch[i];\n n[i]=1;}}\n m=0;\n for(i=0;i<=N-1;i++)\n if(r[i]!='\\0')\n m=m+1;\n if(m==0)\n printf(\"No\");\n else\n {for(j=97;j<=122;j++)\n {i=0;\n while(i<=N-1)\n if(r[i]==j)\n {printf(\"%c=\",r[i]);\n printf(\"%d\\n\",n[i]);\n i=i+1;}\n else\n i=i+1;}}\n} "} +{"label": "100", "index": "49754", "code": "\nint main(){\n\tchar s[300],i;\n\tint k=0,j,num;\n\tscanf(\"%s\",s);\n\tfor(i='a';i<='z';i++){\n\t\tnum=0;\n\t\tfor(j=0;s[j]!='\\0';j++){\n\t\t\tif(s[j]==i){\n\t\t\t\tnum++;}\n\t\t}\n\t\tif(num!=0){\n\t\t\tprintf(\"%c=%d\\n\",i,num);\n\t\t\tk++;\n\t\t}\n\t}\n\tif(k==0) printf(\"No\");\n}\n"} +{"label": "100", "index": "49755", "code": "int main()\n{\n\tchar zfc[301];\n\tgets(zfc);\n\tint i,j;\n\tint count;\n\tint len=strlen(zfc);\n\tchar zf;\n\tint first=1;\n\tfor(i=65;i<=90;i++){\n\t\tzf=i;\n\t\tcount=0;\n\t\tfor(j=0;j=65&&*p<=90)||(*p>=97&&*p<=122))\tm++;\n\t\telse continue;\n\t}\n\tif(m==0) printf(\"No\\n\");\n\telse\n\t{\n\t\tfor(int i=65;i<=90;i++)\n\t\t{\t\n\t\t\tint s=0;\n\t\t\tfor(p=str;*p!='\\0';p++)\n\t\t\t{\t\t\n\t\t\t\tif(*p==i) s++;\n\t\t\t}\n\t\t\tif(s>0) printf(\"%c=%d\\n\",i,s);\n\t\t}\n\t\tfor(int j=97;j<=122;j++)\n\t\t{\n\t\t\tint t=0;\n\t\t\tfor(p=str;*p!='\\0';p++)\n\t\t\t{\n\t\t\t\tif(*p==j) t++;\n\t\t\t}\n\t\t\tif(t>0) printf(\"%c=%d\\n\",j,t);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49757", "code": "int main()\n{\n\tchar str1[1000];\n\tchar str2[27]=\"abcdefghijklmnopqrstuvwxyz\";\n\tint sz[26];\n\tint i,j,exist=0;\n\tscanf(\"%s\",str1);\nfor(i=0;i<26;i++)\n{\nsz[i]=0;\n}\n\tfor(i=0;str1[i]!='\\0';i++)\n\t{\n\t\tfor(j=0;str2[j]!='\\0';j++)\n\t\t{\n\t\t\tif(str1[i]==str2[j])\n\t\t\t{\n\t\t\t\tsz[j]+=1;\n\t\t\t\texist=1;\n\t\t\t}\n\t\t}\n\t}\n\tif(exist==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse if(exist==1)\n\t{\n\t\tfor(i=0;str2[i]!='\\0';i++)\n\t\t{\n\t\t\tif(sz[i]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",str2[i],sz[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49758", "code": "int main()\n{\n\tchar str[300]={0},str1[300]={0};\n\tint b[100]={0},c[100]={0};\n\tint i,m,n;\n\tint k=0;\n\tchar j;\n scanf(\"%s\",str);\n\tn=strlen(str);\n\tfor(j=97;j<=122;j++)\n\t{\n\t\tm=j-97;\n\t\tfor(b[m]=0,i=0;ik&&b[m]!=0)\tprintf(\"\\n%c=%d\",j,b[m]);\n\t\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49759", "code": "void main()\n{\n\tchar a[300];\n\tint b[26]={0},i;\n\tgets(a);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\tb[a[i]-'a']++;\n\t}\n\tfor(i=0;i<26;i++)\n\tif(b[i]!=0)break;\n\tif(i==26)printf(\"No\\n\");\n\tfor(i=0;i<26;i++)\n\t\tif(b[i]!=0)\n\t\tprintf(\"%c=%d\\n\",i+'a',b[i]);\n\t\t\n}"} +{"label": "100", "index": "49760", "code": "int main()\n{\n int n,k=0,i;\n char str[300],x='A';\n while(k<=299)\n {\n str[k]=getchar();\n if(str[k]=='\\n') break;\n k=k+1;\n }\n i=k;\n while(x<='z')\n {\n n=0,k=0;\n while(k<=i)\n {\n if(str[k]==x)\n {n=n+1;}\n k=k+1;\n }\n if(n!=0)\n {printf(\"%c=%d\\n\",x,n);}\n if(x=='Z')\n x=x+7;\n else\n x=x+1;\n }\n k=0;\n while(k<=i)\n {\n if((str[k]>='A'&&str[k]<='Z')||(str[k]>='a'&&str[k]<='z'))\n break;\n else if(k==i)\n printf(\"No\\n\");\n k=k+1;\n }\n return 0;\n}"} +{"label": "100", "index": "49761", "code": "main()\n{\n\tchar a[305],ch;\n\tstatic int t[305];\n\tint i,j,l,count=0,y=0;\n\tgets(a);\n\tl=strlen(a);\n\ti=0;j=0;\n\twhile(a[i]!='\\0')\n\t{\n\t\tif(a[i]<65||(a[i]>90&&a[i]<97)||a[i]>122) \n\t\t\tcount++;\n\t\telse t[a[i]]++;\n\t\ti++;\n\t}\n\tif(count==l) printf(\"No\\n\");\n\telse {\n\t\tfor(i=0;i<123;i++)\n\t\t{\n\t\t if(t[i]!=0) printf(\"%c=%d\\n\",i,t[i]);\t\n\t\t}\n\t\t\n\t\t}\n\t\n}"} +{"label": "100", "index": "49762", "code": "int main ()\n{\n\tchar st[300];\n\tint jr,lr,a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;\n\t\n\tscanf(\"%s\",st);\n\t\n\tlr=strlen(st);\n\tfor(jr=0;jr0)\n\tprintf(\"a=%d\\n\",a);\n\tb=0;\t\n\tfor(jr=0;jr0)\n\tprintf(\"b=%d\\n\",b);\n\n\tc=0;\n\tfor(jr=0;jr0)\n\tprintf(\"c=%d\\n\",c);\n\td=0;\t\n\tfor(jr=0;jr0)\n\tprintf(\"d=%d\\n\",d);\n\te=0;\t\n\tfor(jr=0;jr0)\n\tprintf(\"e=%d\\n\",e);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"f=%d\\n\",f);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"g=%d\\n\",g);\n\n \t\n\tfor(jr=0;jr0)\n\tprintf(\"h=%d\\n\",h);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"i=%d\\n\",i);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"j=%d\\n\",j);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"k=%d\\n\",k);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"l=%d\\n\",l);\n\t\t\n\tfor(jr=0;jr0)\n printf(\"m=%d\\n\",m);\n \t\n\tfor(jr=0;jr0)\n\tprintf(\"n=%d\\n\",n);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"o=%d\\n\",o);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"p=%d\\n\",p);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"q=%d\\n\",q);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"r=%d\\n\",r);\n\n\t\t\n\tfor(jr=0;jr0)\n printf(\"s=%d\\n\",s);\n \t\n\tfor(jr=0;jr0)\n\tprintf(\"t=%d\\n\",t);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"u=%d\\n\",u);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"v=%d\\n\",v);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"w=%d\\n\",w);\n\t\n\tfor(jr=0;jr0)\n\tprintf(\"x=%d\\n\",x);\n\t\t\n\tfor(jr=0;jr0)\n\tprintf(\"y=%d\\n\",y);\n \t\n\tfor(jr=0;jr0)\n\tprintf(\"z=%d\",z);\n\t\tif(a==0&&b==0&&c==0&&d==0&&e==0&&f==0&&g==0&&h==0&&i==0&&j==0&&k==0&&l==0&&m==0&&n==0&&o==0&&p==0&&q==0&&r==0&&s==0&&t==0&&u==0&&v==0&&w==0&&x==0&&y==0&&z==0)\n\t\t{\n\t\t\tprintf(\"No\");\n\t\t}\n \n \n\n \treturn 0;\n}"} +{"label": "100", "index": "49763", "code": "int main()\n{\n\tchar str[301];\n\tint a =0,t=0,l=0,i=0,n=0;\n\t\tscanf(\"%s\",str);\n\t for(i=0;str[i]!='\\0';i++)\n\t {\n\t\t if (str[i]>='A'&&str[i]<='Z')\n\t\t {\n\t\t\ta++;\n\t\t }else\n\t\t\t if (str[i]>='a'&&str[i]<='z')\n\t\t\t {\n\t\t\t\ta++;\n\t\t\t }\n\t\t\t\t\n\t}\n\t if(a==0){printf(\"No\");}\n\t else{\n\t for(i='A';i<='Z';i++)\n\t {\n\t\t for(n=0;str[n]!='\\0';n++)\n\t\t {\n\t\t\t if(str[n]==i)\n\t\t\t {\n\t\t\t\tt++;\n\t\t\t }\n\t\t\t\n\t\t}\n\t\t \n\t if(t!=0){\n\t\t char w=(char)i;\n\t\t printf(\"%c=%d\\n\",w,t);\n\t }\n\t t=0;\n\t }\n\tfor(i='a';i<='z';i++)\n\t {\n\t\t for(n=0;str[n]!='\\0';n++)\n\t\t {\n\t\t\t if(str[n]==i)\n\t\t\t {\n\t\t\t\tl++;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t if(l!=0)\n\t\t {\n\t\t\t char w =(char)i;\n\t\t printf(\"%c=%d\\n\",w,l);\n\t\t\tl=0;\n\t\t }\n\n\t}\n\t }\n\t return 0;\n}"} +{"label": "100", "index": "49764", "code": "int sushu(int p)\n{\n\tint i;\n\tif(p==2) return 1;\n\telse \n\t{\n\t\tfor(i=2;i64&&a[i]<91)||(a[i]>96&&a[i]<123)) \n\t\t{\n\t\t\tb[a[i]]++;\n\t\t\tj=a[i];\n\t\t\tc++;\n\t\t}\n\t}\n\tif(c==0) printf(\"No\");\n\telse \n\t{\n\t\tfor(j=65;j<91;j++)\n\t\t{\n\t\t\tif(b[j]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",j,b[j]);\n\t\t\t}\n\t\t}\n\t\tfor(j=97;j<123;j++)\n\t\t{\n\t\t\tif(b[j]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",j,b[j]);\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "100", "index": "49765", "code": "int main ()\n{ \n\tchar s[1000];\n\tgets(s);\n\tint l,m,k,i,a[30];\n\tl=strlen(s);\n\tm=1;\n for(k=97;k<=122;k++)\n\t{\n\t\ta[k]=0;\n\t\tfor(i=0;ishu[j+1].a)\n\t\t\t\t{\n\t\t\t\t\tt=shu[j];\n\t\t\t\t\tshu[j]=shu[j+1];\n\t\t\t\t\tshu[j+1]=t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;ishu[j+1].a)\n\t\t\t\t{\n\t\t\t\t\tt=shu[j];\n\t\t\t\t\tshu[j]=shu[j+1];\n\t\t\t\t\tshu[j+1]=t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i=0&&a[i]-90<=0)||(a[i]-97>=0&&a[i]-122<=0))\n\t\t\tb[a[i]]+=1;\n\tfor(i=1;i<=299;i++)\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i,b[i]);\n\t\t\tsign=1;\n\t\t}\n\tif(sign==0)\nprintf(\"No\");\n\n\n\t\treturn 0;\n\n\n\t\t\t\n\n\n\n\n\n\n\n}"} +{"label": "100", "index": "49768", "code": "int main(){\n\tint a,i,j,k,n,m;\n\ta=1;\n\n\tj=0;\n\tchar zfc[len],zm[len];\n\tscanf(\"%s\",zfc);\n\tn=strlen(zfc);\n\tfor(i=0;i='A' && zfc[i]<='Z')||(zfc[i]>='a' && zfc[i]<='z')){\n\t\t\tzm[j]=zfc[i];\n\t\t\tj++;\n\t\t\n\t\t}\n\t}zm[j]='\\0';\nif(j==0){\n printf(\"No\");\n}else{\n\tchar e;\n\tm=strlen(zm);\n\tfor(k=1;k<=m;k++){\n\t\tfor(j=0;jzm[j+1]){\n\t\t\t\te=zm[j+1];\n\t\t\t\tzm[j+1]=zm[j];\n\t\t\t\tzm[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(j=0;j0)\n\t {\n\t for(j=65;j<=122;j++)\n\t\t {\n\t\t\t if(sum[j]!=0)\n\t\t printf(\"%c=%d\\n\",j,sum[j]);\n\t\t }\n\t }\n\n if(m==0)\n\t {\n \tprintf(\"No\");\n\t }\nreturn 0;\n}"} +{"label": "100", "index": "49770", "code": "\nint main()\n{\n\tchar str[300];\n int num[58]={0};\n int i,len,t=0;\n scanf(\"%s\",str);\n len=strlen(str);\n for(i=0;i='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z'))\n num[str[i]-'A']++;\n \n for(i=0;i<58;i++){\n\t if(num[i]!=0){\n\t \t printf(\"%c=%d\\n\",i+'A',num[i]);\n\t\t t=1;}\n }\n if (t==0) \n\t printf(\"No\\n\");\n return 0;\n}\n"} +{"label": "100", "index": "49771", "code": "\n\nint main(int argc, char argv[])\n{\n\tchar cArray[300], ch;\n\tint i,j;\n\tint len;\n\tint Cap1[26];\n\tint Cap2[26];\n\tint flag=0;\n\n\tfor(i=0; i<26; i++)\n\t{\n\t\tCap1[i]=0;\n\t\tCap2[i]=0;\n\t}\n\n\tgets(cArray);\n\n\tlen=strlen(cArray);\n\n\t//for(i=0; i='A' && ch<='Z')\n\t\t{\n\t\t\tCap1[ch-'A']++;\n\t\t\tflag++;\n\t\t}\n\t\telse if(ch>='a' && ch<='z')\n\t\t{\n\t\t\tCap2[ch-'a']++;\n\t\t\tflag++;\n\t\t}\n\t}\n\n\tif(flag>0)\n\t{\n\tfor(i=0; i<26; i++)\n\t{\n\t\tif(Cap1[i]>0)\n\t\t\tprintf(\"%c=%d\\n\", 'A'+i, Cap1[i]);\n\t}\n\tfor(i=0; i<26; i++)\n\t{\n\t\tif(Cap2[i]>0)\n\t\t\tprintf(\"%c=%d\\n\", 'a'+i, Cap2[i]);\n\t}\n\t}\n\telse\n\t\tprintf(\"No\\n\");\n\n\treturn 0;\n}\n"} +{"label": "100", "index": "49772", "code": "void main()\n{\n\tchar s[300];\n\tint a[26]={0};\n\tchar c[26];\n\tint b,i,n=0;\n\tgets(s);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i]>='a'&&s[i]<='z')\n\t\t{\n\t\t\tb=s[i]-'a';\n\t\t\ta[b]=a[b]+1;\n\t\t}\n\t}\n for(i=0;i<26;i++)\n\t{\n\t\tc[i]='a'+i;\n\t\tif(a[i]!=0)\n\t\t{\n\t\t\tn++;\n\t\t\tprintf(\"%c=%d\\n\",c[i],a[i]);\n\t\t}\n\t}\n\tif(n==0) printf(\"No\\n\");\n\n}\n\t\t\t\n\t"} +{"label": "100", "index": "49773", "code": "int main(){\n\tchar a[301],z[301],q;\n gets(a);\n\tint i,j=0,n,m=1,l=1;\n for(i=0;1;i++){\t\n\t\tif(a[i]=='\\0'){\n\t\tz[j]=a[i];\n\t\tbreak;\n\t\t}\t\n\t\tif((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z')){\t\n\t\t\t\n\t\tz[j]=a[i];\n\t\tj++;\n\t\tl=0;\n\t\t}\n\t\t\n\t}\n\tif(l){\n\tprintf(\"No\");\n\t}\n\tn=strlen(z);\n\tfor(j=n-1;j>1;j--){\n\t\tfor(i=0;iz[i+1]){\n\t\t\tq=z[i];\n\t\t\tz[i]=z[i+1];\n\t\t\tz[i+1]=q;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tif(z[i]==z[i-1]){\n\t\tm++;\n\t\t}\n\t\telse{\n\t\tprintf(\"%c=%d\\n\",z[i-1],m);\n\t\tm=1;\n\t\t}\n\t}\nreturn 0;}"} +{"label": "100", "index": "49774", "code": "void main()\n{ char a[300],m;\n int n,s,k=0,i;\n gets(a);\n n=strlen(a);\n for(m='a';m<='z';m++)\n {s=0;\n for(i=0;i<=n-1;i++)\n {if(a[i]==m)\n s=s+1;\n else;}\n if(s!=0)\n {printf(\"%c=%d\\n\",m,s);k=k+1;}\n else;\n }\n if(k==0)\n printf(\"No\");\n}"} +{"label": "100", "index": "49775", "code": "int main(){\n\tchar w[53]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n\tchar a[300];\n\tint num[52]={0},i,j;\n\tint flag=0;\n\t\tmemset(a,0,300);\n\tscanf(\"%s\",a);\n\n\tfor(i=0;i<300;i++){\n\t\tfor(j=0;j<52;j++){\n\t\t\tif(a[i]==w[j]){\n\t\t\t\tnum[j]++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j<52;j++){\n\t\tif(num[j]!=0){\n\t\t\tprintf(\"%c=%d\\n\",w[j],num[j]);\n\t\t\tflag=1;\n\t\t}\n\t}\n\tif(flag==0){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49776", "code": "int main()\n{\n\tchar s[350];\n\tint a[26];\n\tint b[26];\n\tint l,i,judge=0;\n\tgets(s);\n\tl=strlen(s)-1;\n\tfor(i=0;i<=25;i++)\n\t{\n\t\ta[i]=b[i]=0;\n\t}\n\tfor(i=0;i<=l;i++)\n\t{\n\t\tif(s[i]>=65&&s[i]<=90)\n\t\t{\n\t\t\ta[s[i]-65]++;\n\t\t}\n\t\telse if(s[i]>=97&&s[i]<=122)\n\t\t{\n\t\t\tb[s[i]-97]++;\n\t\t}\n\t}\n\tfor(i=0;i<=25;i++)\n\t{\n\t\tif(a[i]!=0||b[i]!=0)judge=1;\n\t}\n\tif(judge==0)printf(\"No\");\n\telse\n\t{\n\t\tfor(i=0;i<=25;i++)\n\t\t{\n\t\t\tif(a[i])printf(\"%c=%d\\n\",65+i,a[i]);\n\t\t}\n\t\tfor(i=0;i<=25;i++)\n\t\t{\n\t\t\tif(b[i])printf(\"%c=%d\\n\",97+i,b[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49777", "code": "int main()\n{\n int i,j,l,sum,yes;\n char m[301],a;\n scanf(\"%s\",m);\n l=strlen(m);\n for(i=0;im[j+1]){\n a=m[j];\n m[j]=m[j+1];\n m[j+1]=a;\n }\n } \n sum=0;\n yes=0;\n for(i=0;i='A'&&m[i]<='Z')||(m[i]>='a'&&m[i]<='z')){\n sum++;\n if(m[i]!=m[i+1]){\n printf(\"%c=%d\\n\",m[i],sum);\n sum=0;\n yes=1;\n }\n }\n }\n if(yes==0) printf(\"No\");\n return 0;\n}\n"} +{"label": "100", "index": "49778", "code": "\nint main()\n{\n\tchar str[300];\n\tint suma=0,sumb=0,sumc=0,sumd=0,sume=0,sumf=0,sumg=0,sumh=0,sumi=0,\n\tsumj=0,sumk=0,suml=0,summ=0,sumn=0,sumo=0,sump=0,sumq=0,sumr=0,\nsums=0,sumt=0,sumu=0,sumv=0,sumw=0,sumx=0,sumy=0,sumz=0,len,i;\n\tscanf(\"%s\",str);\n\tlen= strlen(str);\n\tfor(i=0;i=97&&c[i]<=122)\n\t\t{\n\t\t\tt=c[i]-97;\n\t\t\tn[t]=n[t]+1;\n\t\t\tk=k+1;\n\t\t}\n\t}\n\tif(k==0)printf(\"No\");\n\tfor(t=0;t<26;t++)\n\t{\n\t\tif(n[t]>0)\n\t\t{\n\t\t\tprintf(\"%c=%d\",t+97,n[t]);\n\t\t\tk=k-1;\n\t\t\tif(k>0)printf(\"\\n\");\n\t\t}\n\t}\n}\n\n"} +{"label": "100", "index": "49780", "code": "void main()\n{\n\tchar string[300];\n\tint num[26]={0},i,j=0,len,flag=0;\n\tgets(string);\n\tlen=strlen(string);\n\tfor(j=0;j64&&m<91)\n\t\t\tb[m-65]++;\n\t\telse if(m>96&&m<123)\n\t\t\tb[m-71]++;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tj++;\n\t\t\tprintf(\"%c=%d\\n\",i+65,b[i]);\n\t\t}\n\t}\n\tfor(i=26;i<52;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tj++;\n\t\t\tprintf(\"%c=%d\\n\",i+71,b[i]);\n\t\t}\n\t}\n\tif(j==0) printf(\"No\\n\");\n}\n\t\t \n"} +{"label": "100", "index": "49783", "code": "int main()\n{\n\tchar word[LEN];\n\tchar j;\n\tint count[NUM]={0};\n\tint i,len,e;\n\te=0;\n\tscanf(\"%s\",word);\n\tlen=strlen(word);\n\tfor(i=0;i='A')\n\t\t\t{\n\t\t\t\tcount[j-'A']++;\t\n\t\t\t\te++;\n\t\t\t}\n\t\t\telse if(j<='z'&&j>='a')\n\t\t\t{\n\t\t\t\tcount[j-'a'+26]++;\n\t\t\t\te++;\n\t\t\t}\n\t}\n\tfor(j='A';j<='Z';j++)\n\t{\n\t\tif(count[j-'A']>0)\n\t\t{\n\t printf(\"%c=%d\\n\",j,count[j-'A']);\n\t\t}\n\t}\n\tfor(j='a';j<='z';j++)\n\t{\n\t\tif(count[j-'a'+26]>0)\n\t\t{\n\t printf(\"%c=%d\\n\",j,count[j-'a'+26]);\n\t\t}\n\t}\n\t if(e==0)\n\t\t\t{\n\t\t\t\tprintf(\"No\");\n\t\t\t}\t\t\t\t\n return 0;\n}"} +{"label": "100", "index": "49784", "code": "int main()\n\n{\n\tchar b[300];\nint l,i,a[26]={0},p=0;\nscanf(\"%s\",b);\nl=strlen(b);\nfor(i=0;istr[j+1])\n\t{\n\t\ttemp=str[j];\n\t\tstr[j]=str[j+1];\n\t\tstr[j+1]=temp;\n\t}\n}\ntemp='\\0';\nfor(i=0;i<300;i++)\n{\nif(str[i]=='\\0')\n{\nbreak;\n}\nelse if((str[i]>=65&&str[i]<=90)||(str[i]>=97&&str[i]<=122))\n{\nfor(j=i+1;j<300;j++)\n{\nif(str[j]=='\\0')\n{\nbreak;\n}\nelse if(str[j]==str[i])\n{\nl=l+1;\ntemp=str[j];\n}\n}\nprintf(\"%c=%d\\n\",str[i],l);\ni=i+l-1;\nl=1;\n}\n}\nif(temp=='\\0')\n{\n\tprintf(\"No\\n\");\n}\n}"} +{"label": "100", "index": "49788", "code": "int main()\n{\n\tchar str[300],e;\n\tint i,n,zc,x=1;\n\tscanf(\"%s\",str);\n\tn=strlen(str);\n\tfor(e='A';e<='Z';e++){\n\t\tzc=0;\n\t\tfor(i=0;i0){printf(\"%c=%d\\n\",c[i],d[i]);\n j++;}\n if(j==0)printf(\"No\");\n \n }\n"} +{"label": "100", "index": "49793", "code": "int main()\n{\n\tchar a[300];int zm[100];int zmnum[100]={0};\n\tgets(a);\n\tint i,k,j;\n\tint t=0;int ch;\n\tfor(i=0;(k=a[i])!='\\0';i++)\n\t{\n\t\tif(((int)a[i]>=65&&(int)a[i]<=90)||((int)a[i]>=97&&(int)a[i]<=122))\n\t\t{\n\t\t\tzm[t]=(int)a[i];\n\t\t\tzmnum[t]++;\n\t\t\tfor(j=0;(k=a[j])!='\\0';j++)\n\t\t\t{\n\t\t\t\tif((int)a[j]==(int)a[i]&&j!=i)\n\t\t\t\t{\n\t\t\t\t\ta[j]='0';\n\t\t\t\t\tzmnum[t]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tt++;\n\t\t}\n\t\t\n\t}\n\t\n\tfor(i=0;izm[j+1])\n\t\t\t{\n\t\t\t\tch=zm[j];\n\t\t\t\tzm[j]=zm[j+1];\n\t\t\t\tzm[j+1]=ch;\n\t\t\t\tch=zmnum[j];\n\t\t\t\tzmnum[j]=zmnum[j+1];\n\t\t\t\tzmnum[j+1]=ch;\n\t\t\t}\n\t\t}\n\t}\n\tif(t==0)\n\t\tprintf(\"No\");\n\telse\n\t\t for(i=0;i90&&a[i]<97||a[i]>122) continue;\n\t\telse if(a[i]>=65&&a[i]<=90) b[a[i]-65]++;\n\t\telse b[a[i]-97+26]++;\n\t}\n\tfor(j=0;j<=51;j++)\n\tsum+=b[j];\n\tif(sum==0) \n\t\tprintf(\"No\");\n\telse{\n\t for(i=0;i<=25;i++)\n\t if(b[i]!=0) \n\t printf(\"%c=%d\\n\",i+65,b[i]);\n\t for(i=26;i<=51;i++)\n\t if(b[i]!=0) \n\t printf(\"%c=%d\\n\",i+97-26,b[i]);\n\t\t}\n\t\n\treturn 0;\n}\n\n\t\n\n\t"} +{"label": "100", "index": "49795", "code": "//#include\n//#include\nint main()\n{\n\tchar s[301];\n\tint i,len;\n\tint b=0;\n\tint A[26]={0},a[26]={0};\n\tgets(s);\n\tlen = strlen(s);\n\tfor(i=0;i='A' && s[i]<='Z') {\n\t\t\tA[s[i]-'A']++;\n\t\t\tb=1;\n\t\t}\n\t\telse if(s[i]>='a' && s[i]<='z') {\n\t\t\ta[s[i]-'a']++;\n\t\t\tb=1;\n\t\t}\n\t}\n\tif(b == 0)\n\t\tprintf(\"No\\n\");\n\telse {\n\t\tfor(i=0;i<26;i++) {\n\t\t\tif(A[i] != 0)\n\t\t\t\tprintf(\"%c=%d\\n\", 'A'+i, A[i]);\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tif(a[i] != 0)\n\t\t\t\tprintf(\"%c=%d\\n\", 'a'+i, a[i]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49796", "code": "int main()\n{\n\tchar c[301];\n\tint n,i,big[26]={0},small[26]={0},flag=0;\n\tgets(c);\n\tn=strlen(c);\n\tfor(i=0;i=65&&c[i]<=90)\n\t\t{\n\t\t\tbig[c[i]-65]++;\n\t\t\tflag=1;\n\t\t}\n\t\telse if(c[i]>=97&&c[i]<=122)\n\t\t{\n\t\t\tsmall[c[i]-97]++;\n\t\t\tflag=1;\n\t\t}\n\t}\n\tif(flag==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse\n\t{\n\tfor(i=0;i<26;i++) \n\t{\n\t\tif(big[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+65,big[i]);\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(small[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+97,small[i]);\n\t\t}\n\t}\n\t}\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "100", "index": "49797", "code": "int main()\n{\n\tchar str[310],*ps,j;\n\tint i,a=0;\n\tscanf(\"%s\",str);\n\tfor(j=65;j<=90;j++)\n\t{\n\t i=0;\n\t\tfor(ps=str;*ps!='\\0';ps++)\n\t {\n\t\t if(*ps==j)\n\t\t {\n\t\t\t i++;\n\t\t }\n\t }\n\t if(i!=0)\n\t {\n\t\t printf(\"%c=%d\\n\",j,i);\n\t\t\ta++;\n\t }\n\t}\n\tfor(j=97;j<=122;j++)\n\t{\n\t i=0;\n\t\tfor(ps=str;*ps!='\\0';ps++)\n\t {\n\t\t if(*ps==j)\n\t\t {\n\t\t\t i++;\n\t\t }\n\t }\n\t if(i!=0)\n\t {\n\t\t printf(\"%c=%d\\n\",j,i);\n\t\t\ta++;\n\t }\n\t}\n\tif(a==0)\n\t{\n\t\tprintf(\"No\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49798", "code": "int main()\n{\n\tchar str[301],cha[26]={0},flag;\n\tint i,len,l;\n\tscanf(\"%s\",str);\n\tl=strlen(str);\n\tfor(i=0;i='a'&&str[i]<='z')\n\t\t\tcha[str[i]-97]++;\n\t}\n\n\tflag = 0;\n\tfor(i=0;i<26;i++){\n\t\tif(cha[i]){\n\t\t\tprintf(\"%c=%d\\n\",i+97,cha[i]);\n\t\t\tflag = 1;\n\t\t}\n\t}\n\tif(flag==0)\n\t\tprintf(\"No\\n\");\n\n\treturn 0;\n}\n"} +{"label": "100", "index": "49799", "code": "void main()\n{\nchar a[300]=\"\\0\",c;\nint n,i,j,k=0;\ngets(a);\nn=strlen(a);\nfor(c='a';c<='z';c++)\n {j=0;\n for(i=0;i0)\n {printf(\"%c=%d\\n\",c,j);k++;}\n }\nif(k==0)printf(\"No\\n\");\n}"} +{"label": "100", "index": "49800", "code": "void main()\n{\n\tchar a[300];\n\tint sum,i,j,k=1;\n\tgets(a);\n\tfor(j='a';j<='z';j++)\n\t{\n\t\tsum=0;\n\t\tfor(i=0;i=1) printf(\"%c=%d\\n\",su,sum);\n sum=0;\n }\n if(m==0)printf(\"No\");\n\n return 0;\n}\n"} +{"label": "100", "index": "49802", "code": "int main(){\n\tint i,j,n,k;\n\tchar sz[300];\n\tchar cz[53]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n\tscanf(\"%s\",sz);\n\tn=strlen(sz);\n\n\tfor(j=0;j<52;j++)\n\t{\n\t\tk=0;\n\t\t{\n\t\t\tfor(i=0;i0) printf(\"%c=%d\\n\",cz[j],k);\n\t\t\n\t}\n\tfor(i=0,k=0;i123) k++;\n\t\tif(k==n) printf(\"No\\n\");\t\t\t\n return 0;\n}\n\n"} +{"label": "100", "index": "49803", "code": "int main()\n{\n\tchar s[301],letter;\n\tgets(s);\n\tint a[52]={0},m=0,n,i;\n\tn=strlen(s);\n\tfor(i=0;i='a')\na[s[i]-'a']++;\nelse if(s[i]==0) break;\n}\n\t\t\t\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(a[i]!=0){printf(\"%c=%d\\n\",l[i],a[i]);f=1;}\n\t}\nif(f==0) puts(\"No\");\n}"} +{"label": "100", "index": "49805", "code": "int store(char str[],char sto[],int len)\n{\n\tint i,m=0;\n\tfor(i=0;i='a' && str[i]<='z' )\n\t\t{sto[m]=str[i];\n\t\tm++;}\n\treturn (m);\n}\nvoid sort(char sto[],int m)\n{\n\tint i,j,k;\n\tchar t;\n\tfor(i=0;i='a' && str[i]<='z')\n\t\t smallNum[str[i]-'a']++;\n\n\t if(str[i]>='A' && str[i]<='Z')\n\t\t bigNum[str[i]-'A']++;\n }\n\n for(i=0;i<26;i++)\n {\n\t if(bigNum[i]>0)\n\t {\n\t\t printf(\"%c=%d\\n\",'A'+i,bigNum[i]);\n\t\t tag=0;\n\t }\n }\n for(i=0;i<26;i++)\n {\n\t if(smallNum[i]>0)\n\t {\n\t\t printf(\"%c=%d\\n\",'a'+i,smallNum[i]);\n\t\t tag=0;\n\t }\n }\n if(tag==1) printf(\"No\");\n\n return 0;\n} \n"} +{"label": "100", "index": "49808", "code": "int main()\n{\n\tchar a[300];\n\tchar b[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};\n char c[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n int d[26]={0},e[26]={0};\n int l,i,j,f;\n\tscanf(\"%s\",a);\n\tl=strlen(a);\n\tfor(i=0;i<=(l-1);i++)\n\t{\n\t\tif(a[i]>=65&&a[i]<=90)\n\t\t{\n\t\t\tfor(j=0;j<=25;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{ \n\t\t\t\t\td[j]++;\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n if(a[i]>=97&&a[i]<=122)\n\t\t{\n\t\t\tfor(j=0;j<=25;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==c[j])\n\t\t\t\t{ \n\t\t\t\t\te[j]++;\n\t\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tf=0;\n\tfor(i=0;i<=25;i++)\n\t{\n\t\tif(d[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",b[i],d[i]);\n\t\t\tf++;\n\t\t}\n\t}\n\n\tfor(i=0;i<=25;i++)\n\t{\n\t\tif(e[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",c[i],e[i]);\n\t\t\tf++;\n\t\t}\n\t}\n\tif(f==0)\n\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49809", "code": "int main()\n{\n int i=0;\n\tchar A[26]={0};\n char a[26]={0};\n char temp=0;\n int test=1;\n for(i=0;i<300;i++)\n {\n temp=getchar();\n if('\\n'==temp)\n\t\t\tbreak;\\\n\t if(temp>='A'&&temp<='Z')\n\t {\n\t\ttemp=temp-'A'; \n if(0<=temp&&temp<26)\n\t\t\tA[(int)temp]++;\n\t }\n if(temp>='a'&&temp<='z')\n\t {\n temp=temp-'a'; \n if(0<=temp&&temp<26)\n\t\t\ta[(int)temp]++;\n\t }\n }\n\t for(i=0;i<26;i++)\n {\n \n if(A[i])\n {\n printf(\"%c=%d\\n\",('A'+i),A[i]);\n test=0;\n }\n\t }\n\tfor(i=0;i<26;i++)\n {\n if(a[i])\n {\n printf(\"%c=%d\\n\",('a'+i),a[i]);\n test=0;\n }\n }\n if(test)\n\tprintf(\"No\\n\");\n return 0;\n}"} +{"label": "100", "index": "49810", "code": "void main()\n{\n\tchar a[300],*p;\n\tint i,j,m=0;\n\tgets(a);\n\tfor (i=97;i<123;i++)\n\t{for(j=0,p=a;(*p)!='\\0';p++)\n\t{if ((*p)==i) j++;}\n\tif (j!=0) {printf(\"%c=%d\\n\",i,j);m++;}}\n\tif (m==0) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49811", "code": "void main()\n{\n char a[300];\n int h,d=0;\n for(h=0;h<=299;h++)\n a[h]=0;\n gets(a);\n int b[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n int i,j;\n for(i=0;i<=50;i++)\n {\n switch(a[i])\n {\n case'a':b[0]=b[0]+1;break;\n case'b':b[1]=b[1]+1;break;\n case'c':b[2]=b[2]+1;break;\n case'd':b[3]=b[3]+1;break;\n case'e':b[4]=b[4]+1;break;\n case'f':b[5]=b[5]+1;break;\n case'g':b[6]=b[6]+1;break;\n case'i':b[8]=b[8]+1;break;\n case'j':b[9]=b[9]+1;break;\n case'k':b[10]=b[10]+1;break;\n case'l':b[11]=b[11]+1;break;\n case'm':b[12]=b[12]+1;break;\n case'n':b[13]=b[13]+1;break;\n case'o':b[14]=b[14]+1;break;\n case'p':b[15]=b[15]+1;break;\n case'q':b[16]=b[16]+1;break;\n case'r':b[17]=b[17]+1;break;\n case's':b[18]=b[18]+1;break;\n case't':b[19]=b[19]+1;break;\n case'u':b[20]=b[20]+1;break;\n case'v':b[21]=b[21]+1;break;\n case'w':b[22]=b[22]+1;break;\n case'x':b[23]=b[23]+1;break;\n case'y':b[24]=b[24]+1;break;\n case'z':b[25]=b[25]+1;break;\n case'h':b[7]=b[7]+1;break;\n default:break;\n }\n }\n for(j=0;j<=25;j++)\n {\n int x;\n x=j+97;\n if(b[j]!=0)\n {printf(\"%c=%d\\n\",x,b[j]);\n d+=1;}\n }\n if(d==0)\n printf(\"No\");\n }"} +{"label": "100", "index": "49812", "code": "int main()\n{\n\tchar sz[301];\n\tint a=0,i,k,b,c;\n\tscanf(\"%s\\n\",sz);\n\tb=strlen(sz);\n\tchar e;\n\tfor( k = 1 ; k<=b ; k++){\n\t\tfor( i = 0; i < b - k; i++){\n\t\t\t\tif(sz[i] >=sz[i+1]){\n\t\t\t\t\te = sz[i+1];\n\t\t\t\t\tsz[i+1] = sz[i];\n\t\t\t\t\tsz[i] = e;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tfor(i=0;i'z'){\n\t\t\t\tbreak;\n\t\t\t}\n if(sz[i]==sz[k]){\n\t\t\t\ta++;}\n\t\t\tif(sz[i]-sz[i-1]==0){a=0;}\t\t\t\n\t\t\t \t\t}\n \t\tif(a!=0){\n\t\t\tprintf(\"%c=%d\\n\",sz[i],a);\n\t\t}\n\t}\n\tc=0;\n\tfor(i=0;i='a'&&sz[i]<='z'){\n\t\t\tc++;\n\t\t}\n\t}\n\tif(c==0){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49813", "code": "void main()\n{\n\tchar a[500];\n\tint b[150]={0};\n\tint i,j,m,n;\n\tfor (i=0;;i++)\n\t{\n\t\ta[i]=getchar();\n\t\tif (a[i]=='\\n')\n\t\t\tbreak;\n\t}\n\tm=i-1;\n\tfor (j=97;j<=122;j++)\n\t{\n\t\tn=0;\n\t\tfor (i=0;i<=m;i++)\n\t\t{\n\t\t\tif (a[i]==j)\n\t\t\t\tn=n+1;\n\t\t}\n\t\tb[j]=n;\n\t}\n\tn=0;\n\tfor (i=97;i<=122;i++)\n\t{\n\t\tif (b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i,b[i]);\n\t\t\tn=1;\n\t\t}\n\t}\n\tif (n==0)\n\t\tprintf(\"No\\n\");\n}"} +{"label": "100", "index": "49814", "code": "int main()\n{\n\tchar zfc[301];\n char p1,p2;\n\tint i,j=0,k=0,tag=0,d[26]={0},x[26]={0};\n\tscanf(\"%s\",zfc);\n\tfor(p1='A';p1<='Z';p1++,j++)\n\t{\n\t\tfor(i=0;zfc[i]!='\\0';i++)\n\t\t\tif(zfc[i]==p1)\n\t\t\t{\n\t\t\t\td[j]++;\n\t\t\t\ttag=1;\n\t\t\t}\n\t}\n for(p2='a';p2<='z';p2++,k++)\n\t{\n\t\tfor(i=0;zfc[i]!='\\0';i++)\n\t\t\tif(zfc[i]==p2)\n\t\t\t{\n\t\t\t\tx[k]++;\n\t\t\t\ttag=1;\n\t\t\t}\n\t}\n\tif(tag==0)\n\t\tprintf(\"No\");\n\telse \n\t{\n\t\tfor(p1='A',j=0;p1<='Z',j<26;p1++,j++)\n\t\t{\n\t\t if(d[j]!=0)\n\t\t\t printf(\"%c=%d\\n\",p1,d[j]);\n\t\t}\n for(p2='a',k=0;p2<='z',k<26;p2++,k++)\n\t\t{\n\t\t if(x[k]!=0)\n\t\t\t printf(\"%c=%d\\n\",p2,x[k]);\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\t\t\n\t\t\t\n"} +{"label": "100", "index": "49815", "code": "\nvoid main()\n{\n\n\n\tchar str[300];\n\tchar stemp[300];\n\tint i,j;\n\tint itemp[300];\n\tint count;\n\tchar c;\n\n\tscanf(\"%s\",str);\n\tmemset(stemp,0,300);\n j=0;\n for(i=0;i=97 && str[i]<=122)//???????\n\t\t{\n\n\n stemp[j]=str[i]; \n j++;\n\n\t\t}\n\n\t}\n if(j==0)\n\t\tprintf(\"No\");\n\t//??stemp??????????????\n for(i=0;istemp[j+1])\n\t\t {\n c=stemp[j+1];\n\t\t\t stemp[j+1]=stemp[j];\n\t\t\t stemp[j]=c;\n\n\t\t }\n\n\t }\n\n for(i=0;i='a')\n {\n count[i-97]++;\n }\n }\n for(i='a';i<='z';i++)\n {\n if(count[i-97]!=0)\n {\n printf(\"%c=%d\\n\",i,count[i-97]);\n p++;\n }\n } \n if (p==0)\n printf(\"No\");\n return 0;\n}\n"} +{"label": "100", "index": "49817", "code": "int main()\n{\n char s[400];\n int n=0,len,i,b[100];\n for(i=0;i<100;i++)\n\t b[i]=0;\n gets(s);\n len=strlen(s);\n for(i=0;i'Z'&&arrey[i]<'a')||arrey[i]>'z')\n\t\t\tnum++;\n\t\tif(num==n)\n\t\t\tprintf(\"No\\n\");\n\t}\n\tnum=0;\n\tfor(j=65;j<91;j++)\n\t{\n\t\tfor(k=0;k0)\n\t\t\t\tprintf(\"%c=%d\\n\",(q-b+97),*q);\n\t\t}\n\n\t}\n}\n"} +{"label": "100", "index": "49824", "code": "void main()\n{ int i;\n int m=0;\n\tchar c[301];\n\tscanf(\"%s\",c);\n\tchar a[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\tfor(i=0;i<=strlen(c)-1;i++)\n\t{if(c[i]>=97&&c[i]<=122)a[c[i]-97]=a[c[i]-97]+1;}\n for(i=0;i<=25;i++)m=m+a[i];\n\tif(m==0)printf(\"No\");\n\t\telse{\n\t\t for(i=0;i<=25;i++)\n\t\t\t {if(a[i]!=0)printf(\"%c=%d\\n\",i+97,a[i]);}\n\t}\n}"} +{"label": "100", "index": "49825", "code": "int main()\n{\n\tchar s[500],c[500],p;\n\tint i,j,k,l,m,n,o,y[1005],a[1005],b[10005],e;e=0;\n\tn=0;k=0;\n\tint h=0;\n\tscanf(\"%s\",s);\n\tfor(i=0;s[i]!='\\0';i++)\n\t{n=i;}\n\tfor(i=0;i<=1003;i++)\n\t{y[i]=a[i]=b[i]=0;}\n\t\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif((s[i]>='A'&&s[i]<='Z')||(s[i]>='a'&&s[i]<='z'))\n\t\t\n\t\t{\n\t\t\ta[i]++;\n\t\t\tfor(l=0;l<=n;l++)\n\t\t\t{\n\t\t\t\tif(l0)\n\n\n\t\t\t{a[i]--;\n\t\t\t}\n\n\n\n\t\t\telse\n\t\t\t\t\n\t\t\t\tfor(l=0;l<=n;l++)\n\t\t\t\n\t\t\t\t{ \n\t\t\t\t\tif(l>i&&s[i]==s[l])\n\t\t\t\n\t\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\n\n\n\t\t}\n\n\n\t}\n\t\n\n\n\n\n\n\n\n\n\tfor(i=0;i<=n;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{y[k]=a[i];c[k]=s[i];k=k+1;}\n\n\t}\n\n\t\tfor(j=0;jc[i+1])\n\t\t\t{o=y[i];y[i]=y[i+1];y[i+1]=o;\n\t\t\tp=c[i];c[i]=c[i+1];c[i+1]=p;}\n\t\t\t}\n\n\n\n\n\n\tif(k==0)printf(\"No\");for(i=0;i='a'&&zfc[i]<='z'){\n\t\t\tnum[zfc[i]-'a']++;\n\t\t}\n\t}\n\tfor (c='a'; c<='z'; c++ ){\n\t\tif(num[c-'a']!=0){\n\t\t\tprintf(\"%c=%d\\n\",c,num[c-'a']);\n\t\t\tt=1;\n\t\t}\n\t}\n\t\tif (t==0){\n\t\tprintf(\"No\");\n }\n\treturn 0;\n}\n"} +{"label": "100", "index": "49827", "code": "int main()\n{\nint num[26]={0};\nchar sen[300];\nchar aa;\nscanf(\"%s\",sen);\nint i,len;\nlen=strlen(sen);\nfor(i=0;i0)\n {\n printf(\"%c=%d\\n\",aa,num[aa-97]);\n }\n}\nif(num[0]==0&&num[1]==0&&num[2]==0&&num[3]==0)\nprintf(\"No\");\nreturn 0;\n}"} +{"label": "100", "index": "49828", "code": "int main(){\n\tint len,i,j,p=0;\n\tint count[2][26]={0};\n\tchar zf[300];\n\tscanf(\"%s\",zf);\n\tlen=strlen(zf);\n\tfor(i=0;i0)\nprintf(\"%c=%d\\n\",i,m);\n}\nfor(i='a';i<='z';i++)\n{\n int q=0;\nfor(int j=0;j0)\nprintf(\"%c=%d\\n\",i,q);\n}\nif(x==0)\nprintf(\"No\");\nreturn 0;\n}\n"} +{"label": "100", "index": "49830", "code": "int main()\n{\n\tchar a[400];\n\tgets(a);\n\tint l;\n\tint b[27]={0},c[27]={0};\n\tl=strlen(a);\n\tint i,n=0;\n\tfor(i=0;i='A'&&a[i]<='Z')||(a[i]>='a'&&a[i]<='z'))\n\t\t{\n\t\t\tn=1;\n\t\t\tif(a[i]>='A'&&a[i]<='Z')\n\t\t\t{\n\t\t\t\tb[a[i]-64]++;\n\t\t\t}\n\t\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t\t{\n\t\t\t\tc[a[i]-96]++;\n\t\t\t}\n\t\t}\n\t}\n\tif(n==0) printf(\"No\");\n\telse\n\t{\n\t\tfor(i=0;i<=26;i++)\n\t\t{\n\t\t\tif(b[i]!=0) printf(\"%c=%d\\n\",i+64,b[i]);\n\t\t}\n\t\tfor(i=0;i<=26;i++)\n\t\t{\n\t\t\tif(c[i]!=0) printf(\"%c=%d\\n\",i+96,c[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49831", "code": "int main()\n{\n\tchar str[301],s[60]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",*ps,*pt;\n\tint count=0,t;\n\tscanf(\"%s\",str);\n\tfor(ps=s;*ps!='\\0';ps++)\n\t{\n\t\tt=0;\n\t\tfor(pt=str;*pt!='\\0';pt++)\n\t\t{\n\t\t\tif(*pt==*ps)\n\t\t\t{\n\t\t\t\tt++;\n\t\t\t count++;\n\t\t\t}\n\t\t}\n\t\tif(t>0)\n\t\t\tprintf(\"%c=%d\\n\",*ps,t);\n\t}\n\tif(count==0)\n\t\tprintf(\"No\");\n\n\treturn 0;\n}"} +{"label": "100", "index": "49832", "code": "int main(){\n\tint i,time[52]={0},k=0;\n\tchar zfc[300];\n\tgets(zfc);\n\tfor(i=0;zfc[i]!='\\0';i++)\n\t{\n\t\tif(zfc[i]<='Z'&&zfc[i]>='A')\n\t\t{\n\t\t\tk++;\n\t\t\ttime[zfc[i]-'A']++;\n\t\t}\n\t\tif(zfc[i]<='z'&&zfc[i]>='a')\n\t\t{\n\t\t\tk++;\n\t\t\ttime[zfc[i]-'a'+26]++;\n\t\t}\n\t}\n\tif(k==0)printf(\"No\\n\");\n\telse\n\t{\n\t\tfor(i=0;i<26;i++)\t\n\t\t{\t\t\n\t\t\tif(time[i]>0)\n\t\t\tprintf(\"%c=%d\\n\",'A'+i,time[i]);\n\t\t}\n\t\tfor(i=26;i<52;i++)\n\t\t{\n\t \tif(time[i]>0)\n\t\t\tprintf(\"%c=%d\\n\",'a'+i-26,time[i]);\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49833", "code": "int main()\n{\n\tchar a[301],*ps;\n\tint i,j,s=0;\n\tscanf(\"%s\",a);\n\tfor(i=65,j=0;i<91;i++)\n\t{\n\t\tfor(ps=a;*ps!='\\0';ps++)\n\t\t{\n\t\t\tif(*ps==i)\n\t\t\t{\n\t\t\t\tj++;\n\t\t\t\ts++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(j!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i,j);\n\t\t\tj=0;\n\t\t}\n\t\t\n\n\t}\n\tfor(i=97,j=0;i<123;i++)\n\t{\n\t\tfor(ps=a;*ps!='\\0';ps++)\n\t\t{\n\t\t\tif(*ps==i)\n\t\t\t{\n\t\t\t\tj++;\n\t\t\t\ts++;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(j!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i,j);\n\t\t\tj=0;\n\t\t}\n\t\n\n\n\t}\n\tif(s==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49834", "code": "void main()\n{\n\tchar a[100]={0},zm[256];\n\tint cs[256],i,n=0,m=0;\n\tfor(i=0;i<256;i++)\n\t{\n\t\tzm[i]=i;\n\t\tcs[i]=0;\n\t}\n\tgets(a);\n\ti=0;\n\twhile(a[i]!='\\0')\n\t{\n\t\tcs[a[i]]++;\n\t\tn++;\n\t\ti++;\n\t}\n\ti=65;\n while(i<=122)\n\t{\n\t\tif(cs[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",zm[i],cs[i]);\n\t\t\tm++;\n\t\t}\n\t\tif(i==90)\n\t\t\ti+=7;\n\t\telse\n\t\ti++;\n\t}\n\tif(m==0)printf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49835", "code": "int main()\n{\n\tint i,j,n,num[301],sum=0;\n\tchar a[301];\n\tchar letter[27]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\tscanf(\"%s\",a);\n\tn=strlen(a);\n\tfor(i=0;i<27;i++)\n\t{\n\t\tnum[i]=0;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tfor(j=0;j='a')){ //???????a?z??\n\t\tindex=s[i]-'a'; //???????????????a??0?,z??25??????\n\t\tfreq[index]++; //??????1\n\t\t}\n}\n\nfor(num=0;num<26;num++){\n\tif(freq[num]>0){\n\t\te=num+'a'; //???num?????\n\t\tprintf(\"%c=%d\\n\",e,freq[num]); //????????????\n\t\tmark=1;\n\t}\n}\nif (mark==0)\n\tprintf(\"No\");\nreturn 0;\n}"} +{"label": "100", "index": "49837", "code": "int main()\n{\nchar m[350],n[350];\nint i,t=0,j,k=1,h,a,b;\ngets(m);\nfor(i=0;i96)\n{n[t]=m[i];\nt++;}}\nfor(a=t-1;a>0;a--)\n{\nfor(b=0;bn[b+1])\n{int temp;\ntemp=n[b];\nn[b]=n[b+1];\nn[b+1]=temp;\n}\n}\n\nif(t!=0)\n{for(i=0;i0){\n\t\t\tprintf(\"%c=%d\\n\",n,sz[k]);\n\t\t\tt++;\n\t\t}\n\t}\n\tif(t==0){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49839", "code": "void main()\n{\n\tchar c[301]={'\\0'};\n\tint a[26]={0},i,j,k=0;\n\tscanf(\"%s\",c);\n\tfor(i=0;c[i]!='\\0';i++)\n\t{\n\t\tfor(j=0;j<26;j++)\n\t\t{\n\t\t\tif(c[i]==97+j) \n\t\t\t\ta[j]=a[j]+1;\n\t\t}\n\t}\n\tfor(j=0;j<26;j++)\n\t{\n\t\tif(a[j]==0) continue;\n\t\tprintf(\"%c=%d\\n\",97+j,a[j]);\n\t\tk=k+1;\n\t}\n\tif(k==0) printf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49840", "code": "int main()\n{\n\t\n\n\tint num[26]={0};\n\tchar zfc[LEN];\n\tint len,i,flag;\n\tscanf(\"%s\",zfc);\n len=strlen(zfc);\n\tfor(i=0;i='a'&&zfc[i]<='z'){\n\t\t\tnum[zfc[i]-'a']++;\n\t\t}\n\t}\n flag=1;\n\tfor(i=0;i<26;i++){\n\t\tif(num[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",'a'+i,num[i]);\n\t\t\tflag=0;\n\t\t}\n\t}\n\tif(flag){\n\t\tprintf(\"No\");\n\t}\n \n\treturn 0;\n\n}\n"} +{"label": "100", "index": "49841", "code": "int main ()\n{\n\tint i,k,l,c=0,ucount[26]={0},lcount[26]={0},cmp=65;\n\tchar hao[301];\n\tscanf(\"%s\",hao);\n\tl=strlen(hao);\n\tfor(i=0;i<26;i++)\n\t{\n\t\tfor(k=0;k='a'&&*ps<='z'){ \n\t\tfor(i='a';i<='z';i++){ \n\t\t\tif(i==*ps){ \n\t\t\t\tt=i-'a'; \n\t\t\t\tzf[t]=i; \n\t\t\t\tcount[t]++; \n\t\t\t} \n\t\t} \n\t} \n} \nfor(j=0;j<26;j++){ \n\tif(count[j]!=0){ \n\t\tprintf(\"%c=%d\\n\",zf[j],count[j]); \n\t\tk+=1; \n\t} \n} \nif(k==0) \nprintf(\"No\"); \nreturn 0; \n} "} +{"label": "100", "index": "49844", "code": "int main()\n{\n\tint b[60]={0};\n\tchar a[300];\n\tchar *p=a;\n\tscanf(\"%s\",a);\n\tfor(;*p!='\\0';p++)\n\t{\n\t\tif(*p=='A') b[0]++;\n\t\tif(*p=='B')b[1]++;\n\t\tif(*p=='C')b[2]++;\n\t\tif(*p=='D')b[3]++;\n\t\tif(*p=='E')b[4]++;\n\t\tif(*p=='F')b[5]++;\n\t\tif(*p=='G')b[6]++;\n\t\tif(*p=='H')b[7]++;\n\t\tif(*p=='I')b[8]++;\n\t\tif(*p=='J')b[9]++;\n\t\tif(*p=='K')b[10]++;\n\t\tif(*p=='L')b[11]++;\n\t\tif(*p=='M')b[12]++;\n\t\tif(*p=='N')b[13]++;\n\t\tif(*p=='O')b[14]++;\n\t\tif(*p=='P')b[15]++;\n\t\tif(*p=='Q')b[16]++;\n\t\tif(*p=='R')b[17]++;\n\t\tif(*p=='S')b[18]++;\n\t\tif(*p=='T')b[19]++;\n\t\tif(*p=='U')b[20]++;\n\t\tif(*p=='V')b[21]++;\n\t\tif(*p=='W')b[22]++;\n\t\tif(*p=='X')b[23]++;\n\t\tif(*p=='Y')b[24]++;\n\t\tif(*p=='Z')b[25]++;\n\t\tif(*p=='a')b[26]++;\n\t\tif(*p=='b')b[27]++;\n\t\tif(*p=='c')b[28]++;\n\t\tif(*p=='d')b[29]++;\n\t\tif(*p=='e')b[30]++;\n\t\tif(*p=='f')b[31]++;\n\t\tif(*p=='g')b[32]++;\n\t\tif(*p=='h')b[33]++;\n\t if(*p=='i')b[34]++;\n\t\tif(*p=='j')b[35]++;\n\t\tif(*p=='k')b[36]++;\n\t\tif(*p=='l')b[37]++;\n\t\tif(*p=='m')b[38]++;\n\t\tif(*p=='n')b[39]++;\n\t\tif(*p=='o')b[40]++;\n\t\tif(*p=='p')b[41]++;\n\t\tif(*p=='q')b[42]++;\n\t\tif(*p=='r')b[43]++;\n\t\tif(*p=='s')b[44]++;\n\t\tif(*p=='t')b[45]++;\n\t\tif(*p=='u')b[46]++;\n \t if(*p=='v')b[47]++;\n\t\tif(*p=='w')b[48]++;\n\t\tif(*p=='x')b[49]++;\n\t\tif(*p=='y')b[50]++;\n\t\tif(*p=='z')b[51]++;\n\t}\n\tint i,n=0;\n\tchar g[60]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",*s;\n\ts=g;\n\tfor(i=0;i<52;i++,s++)\n\t{\n\t\tchar v;\n\t\tv=*s;\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",v,b[i]);\n\t\t\tn++;\n\t\t}\n\n\t}\n\tif(n==0)\n printf(\"No\\n\");\n\treturn 0;\n}\n "} +{"label": "100", "index": "49845", "code": "int main()\n{\n\tchar zfc[300];\n\tchar stan;\n\tstan='a';\n\tscanf(\"%s\",zfc);\n\tint k;\n\tk=strlen(zfc);\n\tint e=0;\n\tchar out[300];\n\tint ab[300];\n\tint i;\n\tfor(i=0;iout[j]){\n\t\t\t\tdata=out[i];\n\t\t\t\tout[i]=out[j];\n\t\t\t\tout[j]=data;\n\t\t\t\tx=ab[i];\n\t\t\t\tab[i]=ab[j];\n\t\t\t\tab[j]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i='A'&&c<='Z')\n\t\t{\n\t\t\ta[i]=c;\n\t\t\ti++;\n\t\t\tl++;\n\t\t}\n\t\tif(c>='a'&&c<='z')\n\t\t{\n\t\t\tb[j]=c;\n\t\t\tj++;\n\t\t\tl++;\n\t\t}\n\t\tc=getchar();\n\t}\n\tm=i;\n\tn=j;\n\tfor(i=65;i<=90;i++)\n\t{\n\t\tfor(j=0,k=0;j=65&&a[i]<=90) b[a[i]-65]+=1;\n\t\telse if (a[i]>=97&&a[i]<=122) b[a[i]-71]+=1;\n\t}\n\tfor (i=0;i<26;i++) if (b[i]) {printf(\"%c=%d\\n\",i+65,b[i]);temp=1;}\n\tfor (i=26;i<52;i++) if (b[i]) {printf(\"%c=%d\\n\",i+71,b[i]);temp=1;}\n\tif (temp==0) printf(\"No\");\n}\n"} +{"label": "100", "index": "49848", "code": "\nint main()\n{\n\nint a[256],i;\nint j=0;\nchar str[256];\nfor (i=0;i<256;i++) a[i]=0;\ngets(str);\n\ni=0;\nwhile(str[i]) \n a[str[i++]]++;\n for (i='A';i<='Z';i++)\n if (a[i])\n {\n printf(\"%c=%d\\n\",i,a[i]);\n j++;\n }\n for (i='a';i<='z';i++)\n if (a[i])\n { \n printf(\"%c=%d\\n\",i,a[i]);\n j++;\n }\n if(j==0)\n printf(\"No\");\nreturn 0;\n}\n"} +{"label": "100", "index": "49849", "code": "void main()\n{\n\tint n,p,t[300],i,j,k;\n\tchar c[300],a;\n\tgets(c);\n n=strlen(c);\n\tfor(i=0,p=0;i='a'&&a<='z')\n\t\t{\n\t\t\tfor(j=0,t[i]=0;j='A'&&a<='Z')\n\t\t{\n\t\t\tfor(j=0,t[i]=0;jc[j])\n\t\t\t\t{\n\t\t\t\t\ta=c[i];\n\t\t\t\t\tk=t[i];\n\t\t\t\t\tc[i]=c[j];\n\t\t\t\t\tt[i]=t[j];\n\t\t\t\t\tc[j]=a;\n\t\t\t\t\tt[j]=k;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i='a')&&(zf[i]<='z')) || ( (zf[i]>='A') && (zf[i]<='Z') ) )\n\t\t{\n\t\t\tz[j]=zf[i];\n\t\t\tj++;\n\t\t}\n\n\t\t\n\t\t\n\t}\n\tif(j==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\t// printf(\"%s\",z);\n\tcd=strlen(z);\n\t\n\tfor(k=0;k<=cd-2;k++)\n\t{\n\t\tfor(i=0;i<=cd-2-k;i++)\n\t\t{\n\t\t\tif(z[i]>z[i+1])\n\t\t\t{\n\t\t\t\te=z[i];\n\t\t\t\tz[i]=z[i+1];\n\t\t\t\t\n\t\t\t\tz[i+1]=e;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n//\tprintf(\"%s\",z);\n\tfor(s=0;s='a'&&fh[i]<='z')\n\t\t{\n\t\t\txin[c]=fh[i];\n c+=1;\n\t\t a=1;\n\t\t for(j=i+1;j='A'&&temp<='Z')\n {temp=temp-'A';\n b[(int)temp]++;}\n\t\tif(temp>='a'&&temp<='z')\n {temp=temp-'a';\n a[(int)temp]++;}\n }\n for(i=0;i<26;i++)\n {\n //???????????????test=1,???0\n if(b[i])\n {\n printf(\"%c=%d\\n\",('A'+i),b[i]);\n test=0;\n }\n\t}\n for(i=0;i<26;i++) \n\t{\tif(a[i])\n {\n printf(\"%c=%d\\n\",('a'+i),a[i]);\n test=0;\n }\n }\n if(test)printf(\"No\\n\");\n return 0;\n}"} +{"label": "100", "index": "49856", "code": "\nint main(int argc, char* argv[])\n{\n char str[500];\n\tint k,i;\n\tchar chr;\n\tint num,you=0;\n\n\tgets(str);\n\n\tfor(k=97;k<123;k++){\n\t\tchr=k;\n\t\tnum=0;\n\n\t\tfor(i=0;i=65&&a[i]<=90)\n\t\t{\n\t\t\tk=a[i]-65;\n\t\t\tb[k]=b[k]+1;\n\t\t}\n\t\tif (a[i]>=97&&a[i]<=122)\n\t\t{\n\t\t\tk=a[i]-71;\n\t\t\tb[k]=b[k]+1;\n\t\t}\n\t}\n\tfor (i=0;i<26;i++)\n\t{\n\t\tif (b[i])\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+65,b[i]);\n\t\t\tj++;\n\t\t}\n\t}\n\tfor (i=26;i<52;i++)\n\t{\n\t\tif (b[i])\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+71,b[i]);\n\t j++;\n\t\t}\n\t}\n\tif (j==0)\n\t\tprintf(\"No\");\n}\n\n"} +{"label": "100", "index": "49858", "code": "void main()\n{\n\tchar s[100];\n\tint n[26],l,i,j,m=0;\n\tfor(i=0;i<26;i++) n[i]=0;\n\tgets(s);\n\tl=strlen(s);\n\tfor(i=0;i='a'&&s[i]<='z')\n\t\t{\n\t\t\tm++;\n\t\t\tj=s[i]-'a';\n\t\t\tn[j]++;\n\t\t}\n\n\t}\n\tif(m==0) printf(\"No\");\n\telse \n\t{\n\t\tfor(i=0;i<26;i++) if(n[i]!=0) printf(\"%c=%d\\n\",i+'a',n[i]);\n\t}\n}\n"} +{"label": "100", "index": "49859", "code": "int main()\n{\n\tchar p[300],j;\n\tint b,i,a=0;\n\tscanf(\"%s\",&p);\n\tfor(i=0;p[i]!='\\0';i++){\n\t\tif((p[i]>='A'&&p[i]<='Z')||(p[i]>='a'&&p[i]<='z')){\n\t\t\ta++;\n\t\t}\n\t}\n\tif(a==0){\n\t\tprintf(\"No\");\n\t}\n\telse{\n\t\tfor(j='A';j<='Z';j++)\n\t\t{\n\t\t\tb=0;\n\t\t\tfor(i=0;p[i]!='\\0';i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(p[i]==j)\n\t\t\t\t{\n\t\t\t\t\tb++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(b!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",j,b);\n\t\t\t}\n\t\t}\n for(j='a';j<='z';j++)\n\t\t{\n\t\t\tb=0;\n\t\t\tfor(i=0;p[i]!='\\0';i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(p[i]==j)\n\t\t\t\t{\n\t\t\t\t\tb++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(b!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",j,b);\n\t\t\t}\n\t\t}\n\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49860", "code": "int main()\n{\n char num[300];\n scanf(\"%s\",&num);\n int len;\n len=strlen(num);\n int ii=1;\n int q=0;\n int w=0;\n int e=0;\n int r=0;\n int t=0;\n int y=0;\n int u=0;\n int i=0;\n int o=0;\n int p=0;\n int a=0;\n int s=0;\n int d=0;\n int f=0;\n int g=0;\n int h=0;\n int j=0;\n int k=0;\n int l=0;\n int z=0;\n int x=0;\n int c=0;\n int v=0;\n int b=0;\n int n=0;\n int m=0;\n int wo=0;\n for(ii=0;ii=1) printf(\"%c=%d\\n\",j,s[j]) ;\n }\n for(j='a';j<='z';j++)\n {\n for(k=1;k<=i;k++)\n {\n if(a[k]==j) s[j]=s[j]+1;\n }\n if(s[j]>=1) printf(\"%c=%d\\n\",j,s[j]) ;\n }\n int w,u;\n w=0;\n for(u=0;u<=255;u++)\n {\n w=w+s[u];\n }\n if(w==0) printf(\"No\"); /*w??No???*/\n \n \n\n\n\n}\n"} +{"label": "100", "index": "49864", "code": "int main()\n{\n char zu[53]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n char su[300];\n int k,i,x[52]={0},y=0;\n scanf(\"%s\",su);\n for(i=0;i<52;i++)\n {\n for(k=0;k='A') {\n\t\t\tbig[data[i]-'A']+=1;\n\t\t}\n\t\tif(data[i]<='z'&&data[i]>='a') {\n\t\t\tsma[data[i]-'a']+=1;\n\t\t}\n\t}\n\n\tfor(i=0;i<26;i++) {\n\t\tif(big[i]!=0) {\n\t\t\tsign+=1;\n\t\t}\n\t\tif(sma[i]!=0) {\n\t\t\tsign+=1;\n\t\t}\n\t}\n\tif(sign==0) {\n\t\tprintf(\"No\");\n\t} else {\n\t\tfor(i=0;i<26;i++) {\n\t\t\tif(big[i]!=0) {\n\t\t\t\tprintf(\"%c=%d\\n\", 'A'+i, big[i]);\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tif(sma[i]!=0) {\n\t\t\t\tprintf(\"%c=%d\\n\", 'a'+i, sma[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49867", "code": "int main(){\n\tchar a[301];\n\tint c[26];\n\tint C[26];\n\tfor(int n=0;n<26;n++){\n\t\tc[n]=0;\n\t\tC[n]=0;\n\t}\n\tscanf(\"%s\",a);\n\tint length;\n\tlength=strlen(a);\n\tfor(int i=0;i='a'&&a[i]<='z'){\n\t\t\tc[a[i]-'a']++;\n\t\t}\n\t\tif(a[i]>='A'&&a[i]<='Z'){\n\t\t\tC[a[i]-'A']++;\n\t\t}\n\t}\n\tchar x;\n\tint m=0;\n\tfor(int j=0;j<26;j++){\n\t\tif(C[j]!=0){\n\t\t\tif(m==0){\n\t\t\t\tx=j+'A';\n\t\t\t printf(\"%c=%d\",x,C[j]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tx=j+'A';\n\t\t\t printf(\"\\n%c=%d\",x,C[j]);\n\t\t\t}\n\t\t\tm++;\n\t\t}\n\t}\n\tfor(int k=0;k<26;k++){\n\t\tif(c[k]!=0){\n\t\t\tx=k+'a';\n\t\t\tprintf(\"\\n%c=%d\",x,c[k]);\n\t\t\tm++;\n\t\t}\n\t}\n\tif(m==0){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49868", "code": "int main ()\n{\n int n,num[128]={0},i,j=0;\n char zf[300],c;\n scanf(\"%s\",zf);\n i=0;\n for(i=0;zf[i]!=0;i++)\n{\n n=zf[i];\n if(((65<=n)&&(n<=90))||((97<=n)&&(n<=122)))\n {\n num[n]++;\n j++;\n }\n }\n if(j==0)\n printf(\"No\");\n else\n {\n for(i=65;i<123;i++)\n {\n if(num[i]!=0)\n {\n c=i;\n printf(\"%c=%d\\n\",c,num[i]);\n }\n }\n }\n\n return 0;\n}\n"} +{"label": "100", "index": "49869", "code": "int main()\n{\n\tchar a[301],c;\n\tint t[26]={0},n,i,j,b=0;\n\tscanf(\"%s\",a);\n\tn=strlen(a);\n\tc='a';\n\tfor(i=0;i64&&j<91)||(j>96&&j<123)) b[j]++;\n\t}\n\tfor(j=65;j<91;j++)\n\t{\n\t\tif(b[j]>0) \n\t\t{\n\t\t\tif(l==0) printf(\"%c=%d\",j,b[j]);\n\t\t\telse printf(\"\\n%c=%d\",j,b[j]);\n\t\t\tl++;\n\t\t}\n\t}\n\tfor(j=97;j<123;j++)\n\t{\n\t\tif(b[j]>0) \n\t\t{\n\t\t\tif(l==0) printf(\"%c=%d\",j,b[j]);\n\t\t\telse printf(\"\\n%c=%d\",j,b[j]);\n\t\t\tl++;\n\t\t}\n\t}\n\tif(l==0) printf(\"No\");\n\treturn 0;\n}"} +{"label": "100", "index": "49872", "code": "int main()\n{char a[301];\nint n,i,s[53]={0},flag=0;\nint f (char b,int s[]);\ngets(a);\nn=strlen(a);\nfor(i=0;i=26&&i<=52)\nprintf(\"%c=%d\\n\",i+71,s[i]);\nif(i>=0&&i<=25)\n\nprintf(\"%c=%d\\n\",i+65,s[i]);\n}\n}\n}\nreturn 0;\n}\nint f (char b,int s[])\n{int flag=0;\n\tif(b>=65&&b<=90)\n{s[b-65]++;\nflag=1;}\nif(b>=97&&b<=122)\n{s[b-71]++;\nflag=1;}\nreturn flag;\n}"} +{"label": "100", "index": "49873", "code": "void main()\n{\n\tint i,j,flag=0;\n\tchar a[300];\n\tint b[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},c[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\tscanf(\"%s\",a);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i]>='A'&&a[i]<='Z') \n\t\t{\n\t\t\tj=a[i]-'A';\n\t\t\tb[j]++;\n\t\t\tflag=1;\n\t\t}\n\t\telse if(a[i]>='a'&&a[i]<='z') \n\t\t{\n\t\t\tj=a[i]-'a';\n\t\t\tc[j]++;\n\t\t\tflag=1;\n\t\t}\n\n\t}\n\tif(flag==0) printf(\"No\");\n\telse\n\t{\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(b[i]==0) \n\t\t{\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'A',b[i]);\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(c[i]==0) \n\t\t{\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'a',c[i]);\n\t\t}\n\t}\n\t}\n\n}"} +{"label": "100", "index": "49874", "code": "void main()\n{\n char a[300];\n int i,b[130]={0},p=0;\n gets(a);\n for(i=0;a[i];i++)\n {\n \tswitch(a[i])\n \t{\n \t\tcase 'A':b[65]++;break;\n \t\tcase 'B':b[66]++;break;\n \t\tcase 'C':b[67]++;break;\n \t\tcase 'D':b[68]++;break;\n \t\tcase 'E':b[69]++;break;\n \t\tcase 'F':b[70]++;break;\n \t\tcase 'G':b[71]++;break;\n \t\tcase 'H':b[72]++;break;\n \t\tcase 'I':b[73]++;break;\n \t\tcase 'J':b[74]++;break;\n \t\tcase 'K':b[75]++;break;\n \t\tcase 'L':b[76]++;break;\n \t\tcase 'M':b[77]++;break;\n \t\tcase 'N':b[78]++;break;\n \t\tcase 'O':b[79]++;break;\n \t\tcase 'P':b[80]++;break;\n \t\tcase 'Q':b[81]++;break;\n \t\tcase 'R':b[82]++;break;\n \t\tcase 'S':b[83]++;break;\n \t\tcase 'T':b[84]++;break;\n \t\tcase 'U':b[85]++;break;\n \t\tcase 'V':b[86]++;break;\n \t\tcase 'W':b[87]++;break;\n \t\tcase 'X':b[88]++;break;\n \t\tcase 'Y':b[89]++;break;\n \t\tcase 'Z':b[90]++;break;\n \t\tcase 'a':b[97]++;break;\n \t\tcase 'b':b[98]++;break;\n \t\tcase 'c':b[99]++;break;\n \t\tcase 'd':b[100]++;break;\n \t\tcase 'e':b[101]++;break;\n \t\tcase 'f':b[102]++;break;\n \t\tcase 'g':b[103]++;break;\n \t\tcase 'h':b[104]++;break;\n \t\tcase 'i':b[105]++;break;\n \t\tcase 'j':b[106]++;break;\n \t\tcase 'k':b[107]++;break;\n \t\tcase 'l':b[108]++;break;\n \t\tcase 'm':b[109]++;break;\n \t\tcase 'n':b[110]++;break;\n \t\tcase 'o':b[111]++;break;\n \t\tcase 'p':b[112]++;break;\n \t\tcase 'q':b[113]++;break;\n \t\tcase 'r':b[114]++;break;\n \t\tcase 's':b[115]++;break;\n \t\tcase 't':b[116]++;break;\n \t\tcase 'u':b[117]++;break;\n \t\tcase 'v':b[118]++;break;\n \t\tcase 'w':b[119]++;break;\n \t\tcase 'x':b[120]++;break;\n \t\tcase 'y':b[121]++;break;\n \t\tcase 'z':b[122]++;break;\n \t\tdefault: a[i]=0;\n \t}\n }\n for(i=65;i<123;i++)\n if(b[i]!=0) {p=1;printf(\"%c=%d\\n\",i,b[i]);}\n if(p==0) printf(\"No\");\n}"} +{"label": "100", "index": "49875", "code": "int main()\n{\n\tchar sz[300];\n\tint letter[26]={0},i,j,x=0;\n\tscanf(\"%s\",sz);\n\tfor(i=0;sz[i]!='\\0';i++){\n\t\tfor(j=0;j<26;j++){\n\t\t\tif(sz[i]==97+j){\n\t\t\tletter[j]++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j<26;j++){\n\t\tif(letter[j]!=0){\n\t \t\tprintf(\"%c=%d\\n\",97+j,letter[j]);\n\t\t\tx++;\n\t\t}\n\t}\n\tif(x==0){\n\t\tprintf(\"No\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49876", "code": "\nint main()\n{\n\tchar str[100];\n\tchar mod[100]={\"abcdefghijklmnopqrstuvwxyz\"};\n\tint i,l,n,t,j;\n\tgets(str);\n\tl=strlen(str);\n\tfor(i=0;i<26;i++)\n\t{\n\t\tn=0;\n\t\tt=100;\n\t\tfor(j=l-1;j>=0;j--)\n\t\t{\n\t\t if(str[j]==mod[i])\n\t\t\t{\n\t\t\t\tt=i;\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t\tif(t!=100)\n\t\tprintf(\"%c=%d\\n\",mod[t],n);\n\t}\n\tt=0;\n\tfor(j=0;j'a'&&str[j]<'z')\n\t\t\tt++;\n\t}\n\tif(t==0)\n\tprintf(\"No\");\n\treturn 0;\n}\t\n"} +{"label": "100", "index": "49877", "code": "void main()\n{\n\tint i,j,l,sum,temp=0;\n\tchar a[1000],b[1000];\n\tgets(a);\n\tl=strlen(a);\n\tj=65;\n\twhile(j<=90||(j>=97&&j<=122))\n\t{\n\t\tsum=0;\n\t\tfor(i=0;i0)\n\t\t{\n\t\t\tb[j]=j;\n\t\t\tprintf(\"%c=%d\\n\",b[j],sum);\n\t\t\ttemp=1;\n\t\t}\n\t\tj=j+1;\n\t}\n\tj=97;\n\twhile(j>=97&&j<=122)\n\t{\n\t\tsum=0;\n\t\tfor(i=0;i0)\n\t\t{\n\t\t\tb[j]=j;\n\t\t\tprintf(\"%c=%d\\n\",b[j],sum);\n\t\t\ttemp=1;\n\t\t}\n\t\tj=j+1;\n\t}\n\tif(temp==0)\n\t\tprintf(\"No\");\n}\n\n\n"} +{"label": "100", "index": "49878", "code": "int main(){\n char xulie[LEN],daxiezimu[LEN1],xiaoxiezimu[LEN1],*ps;\n int daxiecishu[LEN2],xiaoxiecishu[LEN2];\n int a=0,b,c=0,d,e,f,i;\n scanf(\"%s\",xulie);\n for(b=0;b='A'&&xulie[i]<='Z'){\n daxiezimu[xulie[i]-'A']=xulie[i];\n daxiecishu[xulie[i]-'A']++;\n c++;\n }\n if(xulie[i]>='a'&&xulie[i]<='z'){\n xiaoxiezimu[xulie[i]-'a']=xulie[i];\n xiaoxiecishu[xulie[i]-'a']++;\n a++;\n } \n }\n if(a+c!=0){\n for(e=0;e0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",zimu[i],count[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49881", "code": "main()\n{\n\tchar a[501],c[26],b[26];\n\tint i,j,sum=0;\n\tgets(a);\n\tfor(i=0;i<26;i++)\n\t\tb[i]='a'+i;\n\tfor(i=0;i<26;i++)\n\t\tc[i]=0;\n\tfor(i=0;i<26;i++)\n\t{\n\t\tfor(j=0;a[j]!='\\0';j++)\n\t\t{\n\t\t\tif(b[i]==a[j])\n\t\t\t\tc[i]=c[i]+1;\n\t\t}\n\t}\n\tfor(i=0;a[i]!='\\0';i++)\n\t\tsum=sum+c[i];\n\tif(sum==0)\n\t\tprintf(\"No\");\n\telse\n\t{\n\t\tfor(i=0;i<26;i++)\n\t\t{\n\t\t\tif(c[i]!=0)\n\t\t\t\tprintf(\"%c=%d\\n\",b[i],c[i]);\n\t\t}\n\t}\n}"} +{"label": "100", "index": "49882", "code": "\nint main (int argc, char *argv[])\n{\n int all, i;\n char str[300],t[300];\n gets(str); \n all=0;\n memset(t, 0, sizeof(t));\n for (i = 0; str[i] != '\\0'; i++){\n if (str[i] >= 'a' && str[i] <= 'z') {\n t[str[i]]++;\n all++;\n }\n }\n if (all == 0)\n printf(\"No\\n\");\n else {\n for (i = 'a'; i <= 'z'; i++){\n if (t[i] > 0){\n printf(\"%c=%d\\n\", (char)i, t[i]);\n }\n }\n }\n return 0;\n}"} +{"label": "100", "index": "49883", "code": "int charnum(char c, char m[]);\nint main()\n{\n\tchar zifu[301];\n\tscanf (\"%s\",zifu);\n\tint j;\n\tint sum,no=0;\n \tfor (j=97;j<123;j++)\n\t{\n\t sum=charnum((char)j,zifu);\n\t\tif (sum!=0)\n\t\t{\n\t\t\tprintf (\"%c=%d\\n\",j,sum);\n\t\t\tno++;\n\t\t}\n\t}\n\t\n\tif(no==0)\n\t{\n\t\tprintf (\"No\");\n\t}\n\treturn 0;\n}\n\nint charnum(char c, char m[])\n{\n\tint len = strlen(m) ;\n\tint i,sum=0;\n\t\tfor(i=0;i=65&&s[i]<=90)\n\t\t\tb[s[i]-65]++;\n\t\tif(s[i]>=97&&s[i]<=122)\n\t\t\tb[s[i]-71]++;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n if(b[i]>0)\n\t\t{\n\t\t\tj++;\n\t\t\tprintf(\"%c=%d\\n\",i+65,b[i]);\n\t\n\t\t}\n\t}\n\tfor(i=26;i<52;i++)\n\t\tif(b[i]>0)\n\t\t{\n\t\t\tj++;\n\t\t\tprintf(\"%c=%d\\n\",i+71,b[i]);\n\t\t}\n\tif(j==0)\n\t\tprintf(\"No\");\n\treturn 0;\n}"} +{"label": "100", "index": "49885", "code": "\nint main(){\n\tchar zfc[300],i;\n\tint dec=0,tag,cs[26]={0},m=0,j;\n\tscanf(\"%s\",zfc);\n\tint n=strlen(zfc);\n\tfor(i='A';i<='Z';i++){\n\t\ttag=0;\n\t\tfor(j=0;j='A'&&n[i]<='Z') {\n\t\t\tfor(j=1;j<=26;j++) {\n\t\t\t\tif(n[i]==j+64) {\n\t\t\t\t\ta[j]+=1;\n\t\t\t\t\tt=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(n[i]>='a'&&n[i]<='z') {\n\t\t\tfor(j=1;j<=26;j++) {\n\t\t\t\tif(n[i]==j+96) {\n\t\t\t\t\tb[j]+=1;\n\t\t\t\t\tt=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(t==1) {\n\t\tfor(i=1;i<=26;i++) {\n\t\t\tif(a[i]!=0) {\n\t\t\t\ttemp=i+64;\n\t\t\t\tprintf(\"%c=%d\\n\",temp,a[i]);\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i<=26;i++) {\n\t\t\tif(b[i]!=0) {\n\t\t\t\ttemp=i+96;\n\t\t\t\tprintf(\"%c=%d\\n\",temp,b[i]);\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49887", "code": "\nint main(){\n\tchar str[301];\n\tscanf(\"%s\", str);\n\n\tint array[26] = {0};\n\n\tint i = 0, j = 0;\n\twhile(str[i] != '\\0'){\n\t\tif((str[i] >= 'a') && (str[i] <= 'z')){\n\t\t\tarray[str[i] - 'a'] += 1;\n j++;\n\t\t}\n\t\ti++;\n\t}\n \n if( j == 0) printf(\"No\\n\");\n\ti = 0;\n\tchar c = 'a';\n\twhile( i < 26 ){\n\t\tif(array[i] != 0){\n c = i + 'a';\n\t\t\tprintf(\"%c=%d\\n\\n\", c, array[i]);\n\t\t}\n\t\ti++;\n\t}\n return 0;\n}\n"} +{"label": "100", "index": "49888", "code": "int main()\n{\n\tchar zfc[300],j;\n\tint l,i,s[26]={0};\n\tscanf(\"%s\",zfc);\n\tl=strlen(zfc);\n\tfor(i=0;i= 'a' && ch <= 'z') {\n counter[ch-'a']++;\n no = 0;\n }\n }\n /* ???????? */\n for (ch='a'; ch<='z'; ch++) {\n if (counter[ch-'a'] > 0) {\n printf(\"%c=%d\\n\", ch, counter[ch-'a']);\n }\n }\n /* ??????????o */\n if (no) {\n printf(\"No\");\n }\n return 0;\n}\n"} +{"label": "100", "index": "49894", "code": "void main(){\n int j,m,count,s=0; \n char i,a[50];\n scanf(\"%s\",a);\n m=strlen(a);\n for(i='A';i<='Z';i++){\n \tcount=0;\n \tfor(j=0;j='A')&&(a[i]<='Z'))||((a[i]>='a')&&(a[i]<='z'))){\n \t\ts++;\n \t}\n }\n if(!s){\n \tprintf(\"No\\n\");\n } \n}"} +{"label": "100", "index": "49895", "code": "int main()\n{\n char ch, str[301];\n int i, len, no=1, counter[26]={0},s[26]={0};\n scanf(\"%s\", str);\n len = strlen(str);\n for (i=0; i= 'a' && ch <= 'z') {\n counter[ch-'a']++;\n no = 0;\n\t\t}\n\t\tif(ch>='A'&&ch<='Z'){\n\t\t\ts[ch-'A']++;\n\t\t\tno=0;\n }\n }\n\tfor(ch='A';ch<='Z';ch++){\n\t\tif(s[ch-'A']>0){\n\t\t\tprintf(\"%c=%d\\n\",ch,s[ch-'A']);\n\t\t}\n\t}\n for (ch='a'; ch<='z'; ch++) {\n if (counter[ch-'a'] > 0) {\n printf(\"%c=%d\\n\", ch, counter[ch-'a']);\n }\n\t}\n if (no) {\n printf(\"No\");\n }\n return 0;\n}"} +{"label": "100", "index": "49896", "code": "void main()\n{\n char str[305];\n int n,i,m,N[26]={0},p=0;\n gets(str);\n n=strlen(str);\n for(i=0;i='a') {\n m=str[i]-'a';\n N[m]++;\n p++;\n }\n else continue;\n }\n if(p==0) printf(\"No\");\nelse\n for(m=0;m<26;m++)\n if(N[m]!=0) printf(\"%c=%d\\n\",m+'a',N[m]);\n}\n"} +{"label": "100", "index": "49897", "code": "int main (){\n\tchar xl[300],zm[300],e;\n\tint i,m,k=0,n;\n\tscanf(\"%s\",xl);\n\tn=strlen(xl);\n\t\n\tfor (i=0;i=65&&xl[i]<=90)||(xl[i]>=97&&xl[i]<=122)){\n\t\t\t zm[k]=xl[i];\n\t\t\t k++;\n\t\t}\n\t}\n\t\n\t\n\tfor(m=1;m<=k;m++){\n\t\tfor(i=0;izm[i+1]){\n\t\t\t\t e=zm[i];\n\t\t\t\t zm[i]=zm[i+1];\n\t\t\t\t zm[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tzm[k]='\\0';\n \n\tm=0;\n\tfor(i=0;i='a'&&str[i]<='z')\ncount++;\n}\nif(count==0)\nprintf(\"No\");\nelse{\nfor(i=97;i<=122;i++){\ncount=0;\nfor(ps=str;*ps!='\\0';ps++){ \nif(*ps==i){\ncount++;\n}\n}\nif(count!=0)\nprintf(\"%c=%d\\n\",i,count);\n}\n}\nreturn 0;\n}\n"} +{"label": "100", "index": "49899", "code": "struct c\n{\n\tchar m;\n\tint n;\n};\nint main()\n{\n\tstruct c fh[90],y;\n\tchar a[400],b[400],x;\n\tint i,j=0,k,l,t=0,cou;\n\tscanf(\"%s\",a);\n\tl=strlen(a);\n\tfor(i=0;i=97&&a[i]<=122)||(a[i]>=65&&a[i]<=90))\n\t\t{\n\t\t\tb[j]=a[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tl=j;\n\tif(j==0)\n\t{\n\t\tprintf(\"No\");\n\t\treturn 0;\n\t}\n\telse\n\t{\n\tfor(i=0;i0;i--)\n\t{\n\t\tfor(j=0;j0) j++;}\n\tif(j==0) printf(\"No\");\n\telse if(j>0)\n\t\tfor(i=0;i<26;i++) \n\t\t{\n\t\t\tif((a[i]>0)&&(k0)&&(k==j)) printf(\"%c=%d\",i+97,a[i]);\n\t\t}\n}\nint num(int i,char letter[100])\n{\n\tint j;\n\tint l=0;\n\tfor(j=0;;j++)\n\t{\n\t\tif(letter[j]==i+97) l++;\n\t\tif(letter[j]=='\\0') break;\n\t}\n return(l);\n}"} +{"label": "100", "index": "49902", "code": "void main()\n{\n\tchar *p1,*p2,a[300],b[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\tint *q,c[26]={0},t=0;\n\tgets(a);\n\tfor(p1=a;p10)printf(\"%c=%d\\n\",*p2,*q);}\n\tif(t==0)\n\t\tprintf(\"No\");\n}"} +{"label": "100", "index": "49903", "code": "int main()\n{\n\tchar a[300];\n\tgets(a);\n\tint num[26]={0,};\n\tint i,j;\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif((a[i]-'a')>=0&&(a[i]-'a')<=25)\n\t\t\tnum[a[i]-'a']+=1;\n\t}\n\tfor(i=0,j=0;i<=25;i++)\n\t{\n\t\tif(num[i]!=0)\n\t\t{\n\t\t\tputchar((char)(i+'a'));\n\t\t\tprintf(\"=%d\\n\",num[i]);\n\t\t\tj++;\n\t\t}\n\t}\n\tif(j==0)\n\t\tprintf(\"No\");\n\treturn(0);\n}"} +{"label": "100", "index": "49904", "code": "int main()\n{\n\tchar a[300];\n\tint i,b[26]={0},t=0;\n\tscanf(\"%s\",a);\n\tfor(i=0;i=97&&a[i]<=122)\n\t\t{\n\t\t\tb[(a[i]-97)]++;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(b[i]>0) printf(\"%c=%d\\n\",(97+i),b[i]);\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tt+=b[i];\n\t}\n\tif(t==0) printf(\"No\\n\");\n\tscanf(\"%d\",&i);\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49905", "code": "int main(){\n\tchar zfc[300];\n scanf(\"%s\",zfc);\n int count;\n count= strlen(zfc);\n int i=0,sum=0;\n for(int k = 97;k<123;k++){\n\t\tfor (i=0;i96 && zfc[i]<123){\n\t\tsum=1;\n\t\t}\n\t}\n\tif(sum!=1){\n\t\tprintf(\"No\");\n\t}\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49906", "code": "\nint main(){\n int a[300];\n char ch;\n int i,j;\n j=0;\n memset(a,0,sizeof(a));\n while (scanf(\"%c\",&ch)!=EOF) a[ch]++;\n for (i=65;i<=90;i++)\n if (a[i]) {printf(\"%c=%d\\n\",i,a[i]);j++;}\n for (i=97;i<=122;i++)\n if (a[i]) {printf(\"%c=%d\\n\",i,a[i]);j++;}\n if (!j) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49907", "code": "int main()\n{\n\tchar s[100];\n\tint a[52]={0},count=0,len,i,j;\n\tgets(s);\n\tlen=strlen(s);\n\tfor(i=0;i='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z'))\n\t\t{\n\t\t\tsign=0;\n\t\t\tfor(j=0;jb[j+1])\n\t\t\t{\n\t\t\t\ttempc=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=tempc;\n\t\t\t\ttempi=c[j];\n\t\t\t\tc[j]=c[j+1];\n\t\t\t\tc[j+1]=tempi;\n\t\t\t}\n\t\t}\n\tif(k!=0)\n\t{\n\tfor(i=1;i<=k;i++)\n\t{\n\t\tprintf(\"%c=%d\\n\",b[i],c[i]);\n\t}\n\t}\n\telse\n\t\tprintf(\"No\");\n}\n\n"} +{"label": "100", "index": "49910", "code": "int main()\n{\n char zfc[300];\n int i,sz[26]={0},z[26]={0},j,sum=0;\n scanf(\"%s\",zfc);\n for(i=0;zfc[i]!='\\0';i++)\n {\n for(j=65;j<91;j++)\n {\n if(zfc[i]==j)\n {\n sz[j-65]++;\n sum++;\n }\n \n }\n for(j=97;j<123;j++)\n {\n if(zfc[i]==j)\n {\n z[j-97]++;\n sum++;\n }\n }\n }\n if(sum==0)\n printf(\"No\");\n else\n {\n for(j=65;j<91;j++)\n {\n if(sz[j-65]!=0)\n {\n printf(\"%c=%d\\n\",j,sz[j-65]);\n }\n }\n for(j=97;j<123;j++)\n {\n if(z[j-97]!=0)\n {\n printf(\"%c=%d\\n\",j,z[j-97]);\n }\n }\n }\n \n \n return 0;\n }\n \n \n \n \n"} +{"label": "100", "index": "49911", "code": "void main()\n{\n\tchar s[300];\n\tint tag=0,i,n,j,m;\n\tgets(s);\n\tn=strlen(s);\n for(i=0;i=65)&&((int)s[i]<=90))||(((int)s[i]>=97)&&((int)s[i]<=122)))\n\t\ttag=1;\n\tif (tag==0)\n\t\tprintf(\"No\");\n\tfor(j=65;j<91;j++)\n\t{\n\t\tm=0;\n\t\tfor(i=0;i='A'&&zfc[i]<='Z')||(zfc[i]>='a'&&zfc[i]<='z')){\n sz[zfc[i]-'A']++; \n }\n }\n \n for(int j='A';j<='z';j++){\n if(sz[j-'A']!=0){\n printf(\"%c=%d\",j,sz[j-'A']);\n printf(\"\\n\");\n tag=1;\n }\n }\n if(tag==0){\n printf(\"No\");}\n return 0;\n } \n\n"} +{"label": "100", "index": "49913", "code": "int main()\n{\n char str[300];\n scanf(\"%s\",str);\n int i,j,k=0,a=0,m,p=0,N,l=0;\n N=strlen(str);\n for(j=0;j<300;j++){\n if(str[j]>=65&&str[j]<=90||str[j]>=97&&str[j]<=122){\n l++;\n }\n if(str[j]==0)\n break;\n }\n if(l==0)\n printf(\"No\");\n else{\n for(i=65;i<=90;i++){\n for(j=0;j64)\n\t\t\tb[a[k]-65]++;\n\t\telse if(a[k]<123&&a[k]>96)\n\t\t\tb[a[k]-71]++;\n\t}\n\tfor(j=0;j<26;j++)\n\t\tif(b[j]!=0)\n\t\t{\tprintf(\"%c=%d\\n\",j+65,b[j]);y++;};\n\tfor(;j<52;j++)\n\t\tif(b[j]!=0)\n\t\t{\tprintf(\"%c=%d\\n\",j+71,b[j]);y++;};\n\t\tif (y==0)\n\t\t\tprintf(\"No\");\n\t\t\n}\n"} +{"label": "100", "index": "49916", "code": "int main()\n{\n\tchar s[300];\n\tscanf(\"%s\",s);\n\tint a[26]={0},b[26]={0};\n\tint i,flag=0;\n\tfor(i=0;i='a'&&s[i]<='z')\n\t\t\t{a[s[i]-'a']++;flag=1;}\n\t\t\tif(s[i]>='A'&&s[i]<='Z')\n\t\t\t{b[s[i]-'A']++;flag=1;}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",'A'+i,b[i]);\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",'a'+i,a[i]);\n\t}\n\t\n\t\tif(flag==0)\n\t\t\tprintf(\"No\");\n\t\n\treturn 0;\n}\n\t\n\t\n"} +{"label": "100", "index": "49917", "code": "void main()\n{\n\tchar str[300],num[26];\n\tint i,t,flag=0;\n\tfor (i=0;i<26;i++) num[i]=0;\n\tgets(str);\n\ti=0;\n\twhile(str[i])\n\t{\n\t\tif ((str[i]>='a')&&(str[i]<='z')) \n\t\t{\n\t\t\tt=str[i]-'a';\n\t\t\tnum[t]++;\n\t\t}\n\t\ti++;\n\t}\n\tfor(i=0;i<=25;i++)\n\t\tif(num[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'a',num[i]);\n\t\t\tflag=1;\n\t\t}\n\tif(flag==0) printf(\"No\\n\");\n}\n"} +{"label": "100", "index": "49918", "code": "\tchar a[302];\n\tint flag[302],upper[27]={0},lower[27]={0};\n\tint len,t=0;\nvoid get()\n{\n\tint i;\n\tgets(a);\n\tlen=strlen(a);\n\tfor(i=0;i<27;i++)\n\t{\n\t\tupper[i]=0;\n\t\tlower[i]=0;\n\t}\n}\nvoid arrange()\n{\n\tint i,j=0;\n\tfor(i=0;i='A') && ( s[i]<='Z')) a[s[i]-'A']++;\n if ((s[i]>='a') && ( s[i]<='z')) a[s[i]-'a'+30]++;\n }\nlen=0;\nfor (i=0;i<=60;i++) { len+=a[i];\n//printf(\"%d\\n\",a[i]);\n}\n//printf(\"%d\",len);\nfor (i=0;i<=25;i++) if (a[i]>0) printf(\"%c=%d\\n\",i+'A',a[i]);\nfor (i=0;i<=25;i++) if (a[i+30]>0) printf(\"%c=%d\\n\",i+'a',a[i+30]);\nif (len==0) printf(\"No\"); \n//scanf(\"%d\",&i);\n}\n"} +{"label": "100", "index": "49920", "code": "int main()\n{\n\tchar a[301],b[53];\n\tint i,j,n=0,flag=0;\n\t\n\tfor(i=0;i<26;i++)\n\t{\n\t\tchar zm=i+65;\n\t\tb[i]=zm;\n\t}\n\tfor(i=26;i<52;i++)\n\t{\n\t\tchar zm=i+71;\n\t\tb[i]=zm;\n\t}\n\tb[52]='\\0';\n\tscanf(\"%s\",a);\n\tint len=strlen(a);\n\tfor(i=0;i<52;i++)\n\t{\n\t\tfor(j=0;j64)&&(zi[i]<91))||((zi[i]>96)&&(zi[i]<123))){\n shu[zi[i]-'A']++;\n\t\t a=1;\n\t\t}\n\t}\n\tfor(i=0;i<26;i++){\n\t\tif(shu[i]>0){\n\t\tprintf(\"%c=%d\\n\",i+'A',shu[i]);\n\t\t}\n\t}\n\tfor(i=32;i<58;i++){\n\t\tif(shu[i]>0){\n\n\t\tprintf(\"%c=%d\\n\",i+'A',shu[i]);\n\t\t}\n\t}\n\tif(a==0){\n\t\tprintf(\"No\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49922", "code": "int main(){\n\tchar input[300];\n\tint i;\n\tscanf(\"%s\",input);\n\tint cishu[26];\n\tfor(i=0;i<26;i++)\n\t{\n\t\tcishu[i]=0;\n\t}\n\tint LEN;\n\tLEN=strlen(input);\n\tfor(i=0;i=97&&input[i]<=122){\n\t\t\n\t\t\tcishu[input[i]-97]+=1;\n\t\t}\n\t}\nint result=0;\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(cishu[i]==0)\n\t\t{\n\t\t\tresult+=0;\n\t\t}\n if(cishu[i]!=0)\n\t\t{\n\t\t\tresult+=1;\n\t\t}\n\t}\nif (result!=0)\n{\n\t\tfor(i=0;i<26;i++)\n\t{\n\t\tif(cishu[i]!=0)\n\t\t{\n\t\tprintf(\"%c=%d\\n\",i+97,cishu[i]);\n\t\t}\n\t}\n}\nelse{\n\tprintf(\"No\\n\");\n}\n\nreturn 0;\n}\n"} +{"label": "100", "index": "49923", "code": "int main()\n{\n\tchar a[300],j,i;\n\tint m,p=0;\n\tscanf(\"%s\",a);\n\tfor(j='A';j<='Z';j++)\n\t{\n\t\tm=0;\n\t\tfor(i=0;a[i]!='\\0';i++)\n\t\t{\n\t\t\tif(a[i]==j)\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t}\n\t\t}\n\t\tif(m!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",j,m);\n\t\t\tp=1;\n\t\t}\n\t\telse{\n\t\t\tp=0;\n\t\t}\n\t}\n for(j='a';j<='z';j++)\n\t{\n\t\tm=0;\n\t\tfor(i=0;a[i]!='\\0';i++)\n\t\t{\n\t\t\tif(a[i]==j)\n\t\t\t{\n\t\t\t\tm++;\n\t\t\t}\n\t\t}\n\t\tif(m!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",j,m);\n\t\t\tif(p==0)\n\t\t\t{\n\t\t\t\tp=1;\n\t\t\t}\n\t\t}\n\t\tif(m==0)\n\t\t{\n\t\t\tif(p==1)\n\t\t\t{\n\t\t\t\tp=1;\n\t\t\t}\n\t\t}\n\t}\n\tif(p==0)\n\t{\n\t\tprintf(\"No\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49924", "code": "void main()\n{\n\tchar a[300],min,tr;\n\tint i,j,t=0,flag,te,l;\n\tchar b[300]={'\\0'};\n\tint c[300]={0};\n\tgets(a);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tflag=0;\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t{\n\t\t\tfor(j=0;j<300;j++)\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{c[j]=c[j]+1;\n\t\t\t\tflag=1;\n\t\t\t\t}\n\t\t\t\tif(flag!=1)\n\t\t\t\t{\n\t\t\t\t\tb[t]=a[i];\n\t\t\t\t\tc[t]=c[t]+1;\n\t\t\t\t\tt=t+1;\n\t\t\t\t}\n\t\t}\n\t}\n\tl=strlen(b);\n\tfor(i=0;i96 && string[i]<123)\n\t\t{\n\t\t\tstrl[m]=string[i];\n\t\t\tm++;\n\t\t}\n\t}\n\tif(m==0)\n\t\tprintf(\"No\");\n\telse\n\t{\n\t\tfor(i=m-1;i>=0;i--)\n\t\t{\n\t\t\tfor(j=0;jstrl[j+1])\n\t\t\t\t{\n\t\t\t\t\tchar c;\n\t\t\t\t\tc=strl[j];\n\t\t\t\t\tstrl[j]=strl[j+1];\n\t\t\t\t\tstrl[j+1]=c;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(j=0;j='a'&&str[i]<='z'){\n\t\t\tn++;\n\t\t\talf[str[i]-'a']++;\n\t\t}\n\t}\n\tif(n!=0){\n for(n=0,j=0;j<26;j++){\n\t\t if(alf[j]!=0){\n\t printf(\"%c=%d\\n\",j+97,alf[j]);\n\t\t\t}\n\t\t }\n\t}\n\telse if(n==0){\n\t\t printf(\"No\\n\");\n\t\t}\n\t\n\treturn 0;\n}"} +{"label": "100", "index": "49929", "code": "int main()\n{\n\tint n,i,ucase[26]={0},lcase[26]={0},sum=0;\n\tchar a[301],c;\n\tgets(a);\n\tfor(i=0;(c=a[i])!=0;i++)\n\t{\n\t\tif(c>=65 && c<=90)\n\t\t\tucase[c-65]=ucase[c-65]+1;\n\t\telse if(c>=97 && c<=122)\n\t\t\tlcase[c-97]=lcase[c-97]+1;\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tc=i+65;\n\t\tif(ucase[i]!=0)printf(\"%c=%d\\n\",c,ucase[i]);\n\t\tsum=sum+ucase[i];\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tc=i+97;\n\t\tif(lcase[i]!=0)printf(\"%c=%d\\n\",c,lcase[i]);\n\t\tsum=sum+lcase[i];\n\t}\n\tif(sum==0)printf(\"No\\n\");\n\treturn 0;\n}"} +{"label": "100", "index": "49930", "code": "int main()\n{ int a[26]={0},i=0,b[26]={0},d[26]={0},x[26]={0},n=0,j=0,t=0;\nchar c[305]={'\\0'};\n scanf(\"%s\",c);\n n=strlen(c);\n for(i=0;i<26;i++)\n { a[i]=65+i;\n b[i]=97+i;\n }\n for(i=0;i0){\n\t\t\tprintf(\"%c=%d\\n\",b[k],a[k]);\n\t\t\tall++;}\n\n\t\t\n\t}\n\tif(all==0){\n\t\tprintf(\"No\");}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49932", "code": "int main()\n{\n\tchar str[300];\n\tchar count[26]={0},c[26]={0};\n\tint i=0,len,k,m,n=0;\n\tscanf(\"%s\",str);\n len = strlen(str);\n\tfor(i=0;i='a')&&(str[i]<='z'))\n\t\t{\n\t\t\tk=str[i]-97;\n\t\t\tcount[k]++;\n\t\t}\n if((str[i]>='A')&&(str[i]<='Z'))\n\t\t{\n\t\t\tm=str[i]-65;\n\t\t\tc[m]++;\n\t\t}\n\t}\n\tfor(m=0;m<26;m++)\n\t{\n\t if(c[m]!=0)\n\t {\n\t\t i=m+65;\n printf(\"%c=%d\\n\",i,c[m]);\n\t }\n \telse\n\t\t{\n\t\t n++;\n\t\t}\n\t}\n for(k=0;k<26;k++)\n\t{\n if(count[k]!=0)\n\t {\n\t\t i=k+97;\n printf(\"%c=%d\\n\",i,count[k]);\n\t }\n \telse\n\t\t{\n\t \tn++;\n\t\t}\n\t}\n\tif(n==52)\n\t{\n\t\tprintf(\"No\");\n\t}\nreturn 0;\n}"} +{"label": "100", "index": "49933", "code": "int main()\n{\n char s[301],c;\n int i,j,len,a[300],t=0;\n gets(s);\n len=strlen(s);\n for(i=0;is[j+1]) {c=s[j];s[j]=s[j+1];s[j+1]=c;}\n for(i=0;i=123 || (s[i]>=91 && s[i]<=96) ) a[i]=-500;\n else a[i]=1;\n for(i=0;i0 && s[i]!=s[i-1])\n {printf(\"%c=%d\\n\",s[i],a[i]);t++;}\n if(t==0) printf(\"No\");\n return 0;\n}\n"} +{"label": "100", "index": "49934", "code": "int main()\n{\nchar ch,CH, str[301];\nint i, len, no=1,NO=1, counter[26]={0},count[26]={0};\nscanf(\"%s\", str);\nlen = strlen(str);\nfor (i=0; i= 'a' && ch <= 'z') {\ncounter[ch-'a']++;\nno = 0;\n}\nif (CH >= 'A' && CH <= 'Z'){\n\tcount[CH-'A']++;\n\tNO++;\n}\n}\nfor (CH='A';CH<='Z';CH++){\nif (count[CH-'A']>0){\n\tprintf(\"%c=%d\\n\",CH,count[CH-'A']);\n}\n}\nfor (ch='a'; ch<='z'; ch++) {\nif (counter[ch-'a'] > 0) {\nprintf(\"%c=%d\\n\", ch, counter[ch-'a']);\n}\n}\nif (no && NO) {\nprintf(\"No\");\n}\nreturn 0;\n}\n"} +{"label": "100", "index": "49935", "code": "int main()\n{\n char str[300];\n gets(str);\n int arr[128]={0};\n int i,b=0;\n for (i=0;i0) {\n printf(\"%c=%d\\n\",i,arr[i]);\n b=1;\n }\n }\n for (i=97;i<123;i++) {\n if (arr[i]>0) {\n printf(\"%c=%d\\n\",i,arr[i]);\n b=1;\n }\n }\n if (b==0) {\n printf(\"No\");\n }\n // puts(str);\n return 0;\n}\n"} +{"label": "100", "index": "49936", "code": "int a[26]={0},b[26]={0};\nchar ch,i,flag;\nvoid main()\n{\n\tscanf(\"%c\",&ch);\n\twhile (ch!='\\n')\n\t{\n\t\tif (ch<='z' && ch>='a')\n\t\t\ta[ch-'a']++;\n\t\tif (ch<='Z' && ch>='A')\n\t\t\tb[ch-'A']++;\n\t\tscanf(\"%c\",&ch);\n\t}\n\tflag=0;\n\tfor (i=0;i<26;i++)\n\t\tif (b[i]>0)\n\t\t{printf(\"%c=%d\\n\",i+'A',b[i]);flag=1;}\n\tfor (i=0;i<26;i++)\n\t\tif (a[i]>0)\n\t\t{printf(\"%c=%d\\n\",i+'a',a[i]);flag=1;}\n\tif (flag==0) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49937", "code": "\nint main()\n{\n char ch[300],c[52];\n\tgets(ch);\n\tint i,b=65;\n\tfor(i=0;i<26;i++)\n\t{\n\t\tc[i]=b;\n\t\tb++;\n\t}\n\tb=97;\n\tfor(i=26;i<52;i++)\n {\n\t\tc[i]=b;\n\t\tb++;\n\t}\n\tint a,j,count=0,k=0;\n\ta=strlen(ch);\n for(j=0;j<52;j++,count=0)\n\t{\n\t\n\t\tfor(i=0;i='a')\n\t\t{\n\t\t\tfor(i=0;i='a'){\n\t\t\tcount++;break;\n\t\t}\n\t}\n\tif(count==0){\n\t\tprintf(\"No\\n\");\n\t}else{\n\t\tfor(b='a';b<='z';b++){\n\t\t\tf(s,b);\n\t\t}\n\t}\n}\n\n"} +{"label": "100", "index": "49941", "code": "main()\n{\n\tchar a[301];\n\tint b[26]={0},c[26]={0},i,j,l,n,m,p,q,k=0;\n\tn='a';\n\tm='z';\n\tp='A';\n\tq='Z';\n\tscanf(\"%s\",a);\n\tl=strlen(a);\n\tfor(i=0;i='a'&&zfc[i]<='z')\n\t\t{\n\t\t\tszx[zfc[i]-'a']++;\n\t\t\tflag++;\n\t\t}\n\t\tif(zfc[i]>='A'&&zfc[i]<='Z')\n\t\t{\n\t\t\tszd[zfc[i]-'A']++;\n\t\t\tflag++;\n\t\t}\n\t}\n\tif(flag==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse \n\t{\n\t\tfor(j=0;j<26;j++)\n\t\t{\n\t\t\tif(szd[j]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",'A'+j,szd[j]);\n\t\t\t}\n\t\t}\n\t\tfor(k=0;k<26;k++)\n\t\t{\n\t\t if(szx[k]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",'a'+k,szx[k]);\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "100", "index": "49943", "code": "main()\n{\n\tchar a[300],c;\n int l,b[26]={0},z,i,t;\n\tscanf(\"%s\",a);\n l=strlen(a);\n\n\tfor (c='a';c<='z';c++)\n\t\tfor(i=0;i>s;\n for(i=0,x=a;*x!='\\0';x++,i++){\n \n for(y=s,n[i]=0;*y!='\\0';y++){if(*y==*x){n[i]++;}}\n if(n[i]>0){printf(\"%c=%d\\n\",*x,n[i]);}\n j+=n[i];\n }\n if(j==0)cout<<\"No\"; \n \n return 0;\n }"} +{"label": "100", "index": "49945", "code": "int main()\n{\n\tchar a[300];\n\tint b[30],c[30],i,n,m=0;\n\tfor(i=0;i<26;i++)\n\t{\n\t\tb[i]=0;\n\t\tc[i]=0;\n\t}\n\tscanf(\"%s\",a);\n\tn=strlen(a);\n\tfor(i=0;i='A')\n\t\t{\n\t\t\tb[a[i]-'A']++;\n\t\t\tm++;\n\t\t}\n\t\tif(a[i]<='z'&&a[i]>='a')\n\t\t{\n\t\t\tc[a[i]-'a']++;\n\t\t\tm++;\n\t\t}\n\t}\n\tif(m==0)\n\t{\n\t\tprintf(\"No\");\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'A'+i,b[i]);\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(c[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'a'+i,c[i]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "100", "index": "49946", "code": "int main()\n{\n\tchar a[300], *p, zm;\n\tint b[27]={0};\n\tscanf(\"%s\", &a);\n\tint i=0;\n\tfor(zm='a';zm<='z';zm++)\n\t{\n\t\ti++;\n\t\tfor(p=a;*p!='\\0';p++)\n\t\t{\n\t\t\tif(*p==zm)\n\t\t\t{\n\t\t\t\tb[i]++;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<27;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(i==27)\n\t{\n\t\tprintf(\"No\");\n\t}\n\telse\n\t{\n\t\ti=0;\n\t\tfor(zm='a';zm<='z';zm++)\n\t\t{\n\t\t\ti++;\n\t\t\tif(b[i]!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\", zm, b[i]);\n\t\t\t}\n\t\t} \n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49947", "code": "int main()\n{\nint m,i,sz[300],tag=0;\nchar zf[303];\nchar bz[54]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\ngets(zf);\n for(i=0;i<52;i++)\n {\n sz[i]=0;\n\t\tm=0;\n\t\t\twhile(zf[m]!='\\0')\n {\n if(zf[m]==bz[i])\n\t\t\t{ \n sz[i]++;\n tag=1;\n\t\t\t}\n\t\t\tm++;\n\t\t\t}\n \n\t\tif(sz[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",bz[i],sz[i]);\n\t\t}\n }\nif(tag==0)\n{\nprintf(\"No\");\n}\nreturn 0;\n}\n\n"} +{"label": "100", "index": "49948", "code": "void main()\n{\n char a[301];\n int b[130],c=0;\n int i;\n gets(a);\n for(i=65;i<=122;i++) b[i]=0;\n for(i=0;a[i]!=0;i++)\n {\n if(a[i]>=65&&a[i]<=90) b[a[i]]=b[a[i]]+1;\n\t if(a[i]>=97&&a[i]<=122) b[a[i]]=b[a[i]]+1;\n }\n for(i=65;i<=122;i++)\n {\n c=c+b[i];\n }\n if(c==0) printf(\"No\");\n if(c)\n {\n for(i=65;i<=122;i++)\n\t {\n\t if(b[i])\n\t printf(\"%c=%d\\n\",i,b[i]);\n\t }\n \n \n }\n}\n"} +{"label": "100", "index": "49949", "code": "void main()\n{\n\tchar string[N];\n\tint f[26]={0},i,j,s,count=1,d=0;\n\ts=strlen(string);\n\tgets(string);\n\ts=strlen(string);\n\tfor(i=0;i='a')\n\t\t{\n\t\t\td++;\n\t\t\tf[string[i]-'a']=1;\n\t\t\tfor(j=i+1;j0)\n\t\t\tprintf(\"%c=%d\\n\",'A'+j,m);\n\t}\n for(j=0;j<26;j++)\n\t{ \n\t\tm=0;\n\t\tfor(i=0;i0)\n\t\t\tprintf(\"%c=%d\\n\",'a'+j,m);\n\t}\n\t if(h==0)\n\t\t printf(\"No\");\n}\n "} +{"label": "100", "index": "49951", "code": "int main()\n{\n\tint a[30]={0}, A[30]={0}, i, m, flag=0;\n\tchar str[300];\n gets(str);\n\tfor(i=0;i='a') {m=str[i]-'a'; a[m]++;}\n\t\telse if(str[i]<='Z' && str[i]>='A') {m=str[i]-'A'; A[m]++;}\n\t}\n\tfor(i=0;i<26;i++)\n\t\tif(A[i]!=0) {printf(\"%c=%d\\n\", 'A'+i, A[i]), flag=1;};\n for(i=0;i<26;i++)\n\t\tif(a[i]!=0) {printf(\"%c=%d\\n\", 'a'+i, a[i]), flag=1;};\n\tif(flag==0) printf(\"No\\n\");\n return 0;\n}"} +{"label": "100", "index": "49952", "code": "void main()\n{\n\tint i,n,a[123]={0},u=0,k;\n\tchar c[301]={0};\n\tgets(c);\n\tk=strlen(c)-1;\n\tfor(i=0;i<=k;i++)\n\t{\n\t\tif(c[i]>=97&&c[i]<=122)\n\t\t{\t\n\t\t\ta[c[i]]=a[c[i]]+1;\n\t\t\tu=u+1;\n\t\t}\n\t}\n\tif(u==0)\n\t\tprintf(\"No\\n\");\n\telse\n\t{\n\t\tfor(i=97;i<=122;i++)\n\t\t{\n\t\t\tif(a[i]>0)\n\t\t\t\tprintf(\"%c=%d\\n\",i,a[i]);\n\t\t}\n\t}\n}"} +{"label": "100", "index": "49953", "code": "void main()\n{\n\tchar s[300];\n\tint i,a[300]={0},l,t,k;\n\tgets(s);\n\tl=strlen(s);\n\tfor (i=0;i='A')&&(s[i]<='Z')||(s[i]>='a')&&(s[i]<='z'))\n\t\t{\n\t\t\tt=s[i]-'A';\n\t\t\ta[t]++;\n\t\t}\n\t}\n\tk=0;\n\tfor (i=0;i<=75;i++)\n\t{\n\t\tif (a[i]!=0)\n\t\t{\t\n\t\t\tk++;\n\t\t\tt=i+'A';\n\t\t\tprintf(\"%c=%d\\n\",t,a[i]);\n\t\t}\t\n\t}\n\tif (k==0) printf(\"No\\n\");\n}"} +{"label": "100", "index": "49954", "code": "int main()\n{\n\tint i,h=1;\n\tint b[300]={0},k;\n\tchar c;\n\tchar a[300];\n\tgets(a);\n\tfor(i=0;(c=a[i])!='\\0';i++)\n\t\t\n\n\t{\n\t\n\t\tfor(k=0;k<254;k++)\n\t{\n\t\tif(a[i]==k)\n\n\t\tb[k]=b[k]+1;\n\t}\n\t}\n\tfor(k=65;k<91;k++)\n\t{if(b[k]!=0)\n\t\n\t{c=k;\nprintf(\"%c=%d\\n\",c,b[k]);\nh=2;\n\t}\n\t}\n\tfor(k=97;k<123;k++)\n\t{if(b[k]!=0)\n\t\n\t{c=k;\nprintf(\"%c=%d\\n\",c,b[k]);\nh=2;\n\t}\n\t\n\t}\n\tif(h==1)\n\t\tprintf(\"No\");\n\t\nreturn(0);\n}"} +{"label": "100", "index": "49955", "code": "int main(){\n\tchar a[3000],b[27]=\"abcdefghijklmnopqrstuvwxyz\",c[27]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\tchar *pa=a;\n\tint i,n=0,e=0;\n\tscanf(\"%s\",a);\n\t\n\t\n\tfor(i=0;i<26;i++){\n\t\tfor(pa=a;*pa!='\\0';pa++){\n\t\t\tif(*pa==c[i]){\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t\tif(n>0){\n\t\t\tprintf(\"%c=%d\\n\",c[i],n);\n e++;\n\t\t}\n\t\tn=0;\n\t}\n\n for(i=0;i<26;i++){\n\t\tfor(pa=a;*pa!='\\0';pa++){\n\t\t\n\t\t\tif(*pa==b[i]){\n\t\t\t\tn++;\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif(n>0){\n\t\t\tprintf(\"%c=%d\\n\",b[i],n);\n\t\t\te++;\n\t\t}\n\t\tn=0;\n\t}\n\tif(e==0){\n\t\tprintf(\"No\\n\");\n\t}\n return 0;\n}\n"} +{"label": "100", "index": "49956", "code": "int main()\n{\n\tint count[128]={0};\n\tint i,order,c=0;\n\tchar s[301];\n\tscanf(\"%s\",s);\n\tfor(i=0;s[i];i++){\n\t\tif((s[i]>='A'&&s[i]<='Z')||(s[i]>='a'&&s[i]<='z')){\n\t\torder=(int)s[i];\n\t\tcount[order]++;\n\t\t}\n\t}\n\tfor(i=0;i<128;i++){\n\t\tif(count[i]){\n\t\t\tprintf(\"%c=%d\\n\",i,count[i]);\n\t\t\tc++;\n\t\t}\n\t}\n\tif(c==0) printf(\"No\\n\");\n\treturn 0;\n}"} +{"label": "100", "index": "49957", "code": "int main(){\nchar str[301],zimu[27]=\"abcdefghijklmnopqrstuvwxyz\";\nint i,k,len,num[27],sum=0;\nscanf(\"%s\",&str);\nlen=strlen(str);\nfor(i=0;i<27;i++)\n{\n\tnum[i]=0;\n\tfor(k=0;k0)\n\t{\n\tprintf(\"%c=%d\\n\",zimu[i],num[i]);\n\t}\n}\nif(sum==0)\n{\nprintf(\"No\");\n}\n\nreturn 0;\n}\n"} +{"label": "100", "index": "49958", "code": "int main(){\n char zfc[300];\n char zm[27]=\"abcdefghijklmnopqrstuvwxyz\";\n int sz[26];\n int i,j,len;\n int result=0;\n scanf(\"%s\",zfc);\n len=strlen(zfc);\n for(i=0;i<26;i++){\n sz[i]=0;\n for(j=0;j=97)\n\t\t{\n for(q=0;s[q]!=0;q++)\n\t\t\t {\n\t\t\t if(s[q]==i)k++;\n\t\t\t }\n\t\t}\n\t\t\tif(k!=0)\n\t\t\t{\n\t\t\t\tprintf(\"%c=%d\\n\",i,k);h++;\n\t\t\t}\n\t}\n\tif(h==0)printf(\"No\");\n}\n\t\n"} +{"label": "100", "index": "49960", "code": "int main()\n{\n\tchar s1[300];\n\tchar s2[28]=\"abcdefghijklmnopqrstuvwxyz\",*ps;\n\tint count,i,k=0;\t\n scanf(\"%s\",s1);\n\tint len = strlen(s1);\n\tfor(ps=s2;*ps!='\\0';ps++)\n\t{\n\t\tcount=0;\n for(i=0;i90&&a[i]<97)||a[i]>122){\n s=s+1;\n }\n }\n if(s==n){\n printf(\"No\");\n }\n for(k=65;k<=90;k++){\n s=0;\n for(i=0;i='a'&&c[i]<='z')||(c[i]>='A'&&c[i]<='Z'))\n\t {for(j=i+1;jb[j+1])\n\t\t {v=b[j];b[j]=b[j+1];b[j+1]=v;\n\t\t t=a[j];a[j]=a[j+1];a[j+1]=t;\n\t\t }\n for(i=0;izfc[a+1]){\n e=zfc[a+1];\n zfc[a+1]=zfc[a];\n zfc[a]=e;\n\n }\n }\n }\n\n for(j=0;j=65)&&(zfc[j]<=90))||((zfc[j]>=97)&&(zfc[j]<=122))){\n printf(\"%c=%d\\n\",zfc[j],i);\n x++;\n }\n\n }\n if(x==0){\n printf(\"No\\n\");\n }\n\n return 0;\n}\n"} +{"label": "100", "index": "49966", "code": "void main()\n{\nchar a[300],alph[26][300];\nint i,n,j,times,flag=0;\nchar b;\n\n\ngets(a);\nn=strlen(a);\n\n\n\n for(i=0;i<26;i++)\n for(j=0;j<300;j++)\n alph[i][j]=0;\n\n\n for(i=0;i='a'&&a[i]<='z') \n\t\t {\n\t\t\t times=0;\n flag++;\n for(j=0;j=1){ times++;a[j]=' ';}\n } \n\t\t\talph[b-97][times]=b;\n\t\t }\n\t\t \n\t}\n\tif(flag>0)\n for(i=0;i<26;i++)\n for(j=0;j<300;j++)\n if(alph[i][j]>='a'&&alph[i][j]<='z') \n\t\t\t\tprintf(\"%c=%d\\n\",alph[i][j],j);\nif(flag==0) printf(\"No\\n\");\n}\n\n"} +{"label": "100", "index": "49967", "code": "int main(int argc, char* argv[])\n{\n\tchar str[300],b[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\tint n,i,j,k,a[26]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\n\tgets(str);\n\tn=strlen(str);\n\tfor(i=0;i='A' && a[0] <= 'Z')||(a[0]>='a' && a[0] <='z'))\n\t\t\t{printf(\"%c=%d\\n\",m,t);k=0;}\n\t\t\tm=s[i];\n\t\t\tt=1;\n\t\t}\n\t}\n\tif((a[0]>='A' && a[0] <= 'Z')||(a[0]>='a' && a[0] <='z')) {printf(\"%c=%d\\n\",m,t);k=0;}\n\t\tif(k!=0) printf(\"No\");\n\t\treturn 0;\n\t}\n\n\n"} +{"label": "100", "index": "49969", "code": "int main()\n{\n\tchar str[301];\n\tint len,i,A[26]={0},a[26]={0},flag=1,k;\n\tgets(str);\n\tlen=strlen(str);\n\tfor(i=0;i=27)printf(\"No\");\n\t\n\tfor(i=1;i<=26;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",c[i],b[i]);\n\t}\n}\n\t\n\n\n\n"} +{"label": "100", "index": "49972", "code": "void statistic(char str[],int letter_num[],int n)\n{\n\tint i;\n\tfor(i=0;i='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z') \n\t\t{\n\t\t\t\n\t\t\tfor(j=i+1;j0){\n\t\t\t\tprintf(\"%c=%d\\n\",c,sz[m]);}}\n\t\t}\n\t\treturn 0;\n}\n\n"} +{"label": "100", "index": "49976", "code": "int main(){\n\tchar str[N],j;\n\tgets(str);\n\tint len,i,x=1;\n\tlen=strlen(str);\n\tfor(j='A';j<='Z';j++){\n int sum=0;\n for(i=0;i= 'A' && ch <= 'Z') {\n counter[ch-'A']++;\n no = 0;\n }\n }\n \n for (ch='A'; ch<='Z'; ch++) {\n if (counter[ch-'A'] > 0) {\n printf(\"%c=%d\\n\", ch,counter[ch-'A']);\n }\n } \nfor(i=0;i<79;i++){counter[i]=0;}\nfor (i=0; i= 'a' && ch <= 'z') {\n counter[ch-'a']++;\n no = 0;\n }\n }\n \n for (ch='a'; ch<='z'; ch++) {\n if (counter[ch-'a'] > 0) {\n printf(\"%c=%d\\n\", ch, counter[ch-'a']);\n }\n }\n \n if (no) {\n printf(\"No\");\n }\n return 0;\n}"} +{"label": "100", "index": "49978", "code": "void main()\n{\n\tchar str[300],*ps;\n\tint S[26]={0},s[26]={0},i,k=0;\n\tscanf(\"%s\",str);\n\tfor(ps=str;*ps!='\\0';ps++)\n\t{\n\t\tif(*ps>='a'&&*ps<='z')\n\t\t{\n\t\t\ts[*ps-'a']++;\n\t\t\tk=1;\n\t\t}\n\t\tif(*ps>='A'&&*ps<='Z')\n\t\t{\n\t\t\tS[*ps-'A']++;\n\t\t\tk=1;\n\t\t}\n\t}\n\tif(k==1){\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(S[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'A'+i,S[i]);\n\t\t}\n\t}\n\tfor(i=0;i<26;i++)\n\t{\n\t\tif(s[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'a'+i,s[i]);\n\t\t}\n\t}\n\t}\n\telse\n\t{\n\t\tprintf(\"No\");\n\t}\n\t\n \n}"} +{"label": "100", "index": "49979", "code": "int main()\n{\n\tchar a[300];\n\tint num=0,l,i,j,count[300]={0};\n\tscanf(\"%s\",a);\n\tl=strlen(a);\n\tfor(i=0;i='a'&&a[i]<='z'){\n\t\t\tnum++;\n\t\t\tcount[i]=1;\n\t\t\tfor(j=i+1;j='a')\n\t\t{\n\t\tflag=1;\n\t\tt=0;\n\t\tfor(j=0;j=0;k--) //?????????\n\t\t\tif(a[i]==a[k]) flag=0;\n\t\tif(flag==1) printf(\"%c=%d\\n\",a[i],t);\n\t\t}\n\t}\n\tif(t==0) printf(\"No\");\n}\n"} +{"label": "100", "index": "49985", "code": "void main()\n{\n\tchar a[301];\n\tint b[500]={0};\n\tint i,flag;\n\tfor(i=0;i<=300;i++)\n\t{\n\t\ta[i]='\\0';\n\t}\n\tgets(a);\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tb[a[i]-'a'+1]++;\n\t}\n\tflag=0;\n\tfor(i=1;i<=26;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",i+'a'-1,b[i]);\n\t\t\tflag=1;\n\t\t}\n\t}\n\tif (flag==0) printf(\"No\");\n\n}"} +{"label": "100", "index": "49986", "code": "int main()\n{\n\tchar a[300],i;\n\tint k,x,n,y=0;\n\tscanf(\"%s\",a);\n n=strlen(a);\n\tfor(i='A';i<='Z';i++){\n\t\tk=0;\n\t\tfor(x=0;x64&&x[i]<91)||(x[i]>96&&x[i]<123))\n y[(int)x[i]]++;\n }\n for (i=65;i<=90;i++)\n {if(y[i]==0)\n continue;\n printf(\"%c=%d\\n\",i,y[i]);\n flag++;\n }\n for (i=95;i<=122;i++)\n {if(y[i]==0)\n continue;\n printf(\"%c=%d\\n\",i,y[i]);\n flag++;\n }\n if(flag==0)\n\t printf(\"No\");\n}"} +{"label": "100", "index": "49988", "code": "int main()\n{\n\tchar a[301];\n\tgets(a);\n\tint n;\n\tn=strlen(a);\n\tint i, j;\n\tchar temp;\n\tint num=0;\n\tint sign=0;\n\tfor(j=0;ja[i])\n\t\t\t{\n\t\t\t\ttemp=a[i];\n\t\t\t\ta[i]=a[i-1];\n\t\t\t\ta[i-1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(i=0;i='A')&&(a[i]<='Z'))||((a[i]>='a')&&(a[i]<='z')))\n\t\t{\n\t\t\tsign=1;\n\t\t num=1;\n\t\t\tfor(j=i+1;j='A'&&x<='Z')\n\t\t{\n\t\t\ta[(int)(x-'A')]++;\n\t\t}\n\t\tif(x>='a'&&x<='z')\n\t\t{\n\t\t\tb[(int)(x-'a')]++;\n\t\t}\n\t}while(x!='\\n');\n for(i=0;i<26;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'A'+i,a[i]);\n\t\t\tflag=1;\n\t\t}\n\t}\n for(i=0;i<26;i++)\n\t{\n\t\tif(b[i]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",'a'+i,b[i]);\n flag=1;\n\t\t}\n\t}\n if(flag!=1)\n\t{\n\t\tprintf(\"No\\n\");\n\t}\n\treturn 0;\n}"} +{"label": "100", "index": "49992", "code": "void main()\n{\n\tchar a[301], b[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N',\n\t\t'O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h',\n\t\t'i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\tint i,j,k=0,s[52]={0};\n\tgets(a);\n\tfor(i=0;a[i]!='\\0';i++){\n\t\tif(a[i]>='A'&&a[i]<='Z'){\n\t\t\tk=1;\n\t\t\tj=a[i]-'A';\n\t\t\ts[j]+=1;}\n\t\tif(a[i]>='a'&&a[i]<='z'){\n\t\t\tk=1;\n\t\t\tj=a[i]-'a'+26;\n\t\t\ts[j]+=1;}\n\t}\n\t\tfor(i=0;i<52;i++){\n\t\tif(s[i]!=0){\n\t\t\tprintf(\"%c=%d\\n\",b[i],s[i]);}}\n\t\t\tif(k==0) printf(\"No\");\n\t\t\t\n \n}"} +{"label": "100", "index": "49993", "code": "int main()\n{\n\tint l1=0,k1=0,l=0;\n\tchar i,n;\n\tchar a[N]={0};\n\tgets(a);\n\tfor(i=0;i<300;i++)\n\t{\n\t\tif(a[i]>=65&&a[i]<=90||a[i]>=97&&a[i]<=122)\n\t\t\tl++;\n\t\tif(a[i]==0)\n\t\t\tbreak;\n\n\t}\nif(!l)\ncout<<\"No\"<=65 && str[i]<=90)\n\t\t{\n\t\t\ta[str[i]-65]++;\n\t\t\tsign=1;\n\t\t}\n\t\tif(str[i]>=97 && str[i]<=122)\n\t\t{\n\t\t\ta[str[i]-71]++;\n\t\t\tsign=1;\n\t\t}\n\t}\n\tfor(i=0; i<=25; i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",i+65,a[i]);\n\t}\n\tfor(i=26; i<=51; i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t\tprintf(\"%c=%d\\n\",i+71,a[i]);\n\t}\n\tif(sign==0)\n\t\tprintf(\"No\\n\");\n}"} +{"label": "100", "index": "49995", "code": "void main()\n{\n\tchar str[300];\n\tint a[52];\n\tint t,j,i,len;\n\tgets(str);\n\tlen=strlen(str);\n\tfor(i=0;i<52;i++)\n\t{\n\t\ta[i]=0;\n\t}\n\tfor(i=0;i0){\n\t\t\tprintf(\"%c=%d\\n\",j,k);\n\t\t}\n\t}\n\tfor(j='a';j<='z';j++){\n\t\tk=0;\n\t\tfor(i=0;i0){\n\t\t\tprintf(\"%c=%d\\n\",j,k);\n\t\t}\n\t}\n\tfor(i=0;i'z')\n\t\t\tl++;\n\t}\n\tif(l==n)\n\t\tprintf(\"No\\n\");\n\treturn 0;\n}"} +{"label": "100", "index": "49997", "code": "int main()\n{\n\tint i,j,k=0,l,t,b[400]={0,0};\n\tchar a[302],c[300];\n\tgets(a);\n\tl=strlen(a);\n\tfor(i=0;i='A')&&(a[i]<='Z'))||((a[i]>='a')&&(a[i]<='z')))\n\t\t{\n\t\t\tt=a[i];\n\t\t\tc[t]=a[i];\n\t\t\tb[t]++;\n\t\t}\n\t}\n\tfor(j=0;j<=122;j++)\n\t{\n\t\tif(b[j]!=0)\n\t\t{\n\t\t\tprintf(\"%c=%d\\n\",c[j],b[j]);\n\t\t\tk++;\n\t\t}\n\t}\n\tif(k==0)\n\t\tprintf(\"No\\n\");\n\treturn 0;\n}\n"} +{"label": "100", "index": "49998", "code": "void main()\n{\n char a[400];\n scanf(\"%s\",a);\n int n,t=0,i;\n n=strlen(a);\n for(i=0;i<=n-1;i++)\n if(a[i]<='z'&&a[i]>='a')\n {\n t=1;\n break;\n }\n if(t==0) printf(\"No\");\n\t else\n\t {\n\t\t char c;\n\t\t for(c='a';c<='z';c=c+1)\n\t\t {\n\t\t\t int num=0;\n\t\t\t for(i=0;i<=n-1;i++)\n\t\t\t\t if(a[i]==c) num=num+1;\n if(num!=0) printf(\"%c=%d\\n\",c,num);\n\t\t }\n\t }\n}\n\n\n"} +{"label": "100", "index": "49999", "code": "int main()\n{\n\tint i=0, b[26]={0}, sum=0, j;\n\tchar s[300];\n scanf (\"%s\", s);\n\twhile(s[i]) {\n\t\tj=s[i]-'a';\n\t\tif(j>=0&&j<=25) {\n\t\t\tb[j]++;\n\t\tsum=1;\n\t\t}\n\t\ti++;\n\t}\n\tfor (j=0; j<26; j++) {\n\t\tif (b[j]!=0) printf(\"%c=%d\\n\", (j+'a'),b[j]);\n\t}\n\tif (sum==0) printf(\"No\");\n\treturn 0;\n}\n"} +{"label": "101", "index": "50000", "code": "\nint main() {\n\tint a, b, c;\n\tfor(a = 0; a < 3; a ++)\n\t\tfor(b = 0; b < 3; b ++)\n\t\t\tfor(c = 0; c < 3; c ++){\n\t\t\t\tif(((b>a) + (c==a) + (a>b) + (a>c) + (c>b) + (b>a) == 3) && ((b>a)+(c==a))!=\n\t\t\t\t\t\t((a>b)+(a>c)) && ((a+b+c) == 3) && ((b>a) + (c==a) + a == 2))\n\t\t\t\t\tcout << (char)('A'+c )<< (char)('A'+a) << (char)('A'+b);\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50001", "code": "\n\nint main()\n{\n int a,b,c,A,B,C; //??a,b,c???\n int i,j,t,m; //??????i,j,????t,m\n for(a=0;a<3;a++)\n {\n for(b=0;b<3;b++)\n {\n for(c=0;c<3;c++)\n {\n if((a+(b>a)+(c==a))==(b+(a>b)+(a>c))&&(a+(b>a)+(c==a))==(c+(c>b)+(b>a))&&a!=b&&b!=c&&c!=a) //?????a,b,c?????\n {A=a;\n B=b;\n C=c;}\n }\n }\n }\n int s[2][3]={{1,2,3},{A,B,C}}; //?????a,b,c??????\n for(i=0;i<2;i++)\n {\n if(s[1][i]>s[1][i+1])\n {\n t=s[1][i];\n s[1][i]=s[1][i+1];\n s[1][i+1]=t;\n m=s[0][i];\n s[0][i]=s[0][i+1];\n s[0][i+1]=m; //?a,b,c?????\n }\n }\n for(j=0;j<3;j++)\n {\n if(s[0][j]==1)\n cout<<\"A\";\n if(s[0][j]==2)\n cout<<\"B\";\n if(s[0][j]==3)\n cout<<\"C\"; //?????a,b,c?????\n }\n return 0;\n}\n"} +{"label": "101", "index": "50002", "code": "int main()\n{\n\tint ass,bss,css;\n\tfor(int a=1;a<4;a++){\n\t\tfor(int b=1;b<4;b++){\n\t\t\tfor(int c=1;c<4;c++){\n\t\t\t\tint as=(b>a)+(c==a);\n\t\t\t\tint bs=(a>b)+(a>c);\n\t\t\t\tint cs=(c>b)+(b>a);\n\t\t\t\tif(!(a<=b&&as<=bs||a<=c&&as<=cs||b<=c&&bs<=cs||b<=a&&bs<=as||c<=a&&cs<=as||c<=b&&cs<=bs)){\n\t\t\t\t\tass=a,bss=b,css=c;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(ass>=bss&&bss>=css)cout<<\"CBA\"<=css&&css>=bss)cout<<\"BCA\"<=ass&&ass>=css)cout<<\"CAB\"<=css&&css>=ass)cout<<\"ACB\"<=ass&&ass>=bss)cout<<\"BAC\"<=bss&&bss>=ass)cout<<\"ABC\"<a)+(c==a)==2-a)&&((a>b)+(a>c)==2-b)&&((c>b)+(b>a)==2-c))\n\t\t\t\t{\n\t\t\t\t\tx[a]='A';\n\t\t\t\t\tx[b]='B';\n\t\t\t\t\tx[c]='C';\n\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t\tcout< a) + (c == a);\n\t\t\t\tsb = (a > b) + (a > c);\n\t\t\t\tsc = (c > b) + (b > a); //sa,sb.sc??????????????\n\t\t\t\tif (a > b && sa < sb && b> c&& sbc&&sab&&sca&&sbc&&sa=c&&sb<=sc&&c>=a&&sc<=sa)\n\t\t\t\t{ flag = 1; cout <<\"BCA\";}\n\t\t\t\tif(c>a&&scb&&sab&&sca&&sba)+(a==c);\n\t\t\t\twords[2]=(a>b)+(a>c);\n\t\t\t\twords[3]=(c>b)+(b>a);\n\t\t\t\trank[a]=1;rank[b]=2;rank[c]=3;\n\t\t\t\tif(words[rank[1]]==2&&words[rank[2]]==1&&words[rank[3]]==0)\n\t\t\t\t{\n\t\t\t\t for(int i=1;i<=3;i++)\t\t\t\t\t\t\t//??????????????\n\t\t\t\t\t cout<A)+(C==A);\n\t\t\t bns=(A>B)+(A>C);\n\t\t\t cns=(C>B)+(B>A);\n\t\t\t if((B+bns==3)&&(A+ans==3)&&(C+cns==3))\n\t\t\t {Ans=A;\n\t\t\t Bns=B;\n\t\t\t Cns=C;\n\t\t\t }\n\t\t }\n\t\t }\n\t\t \n\t\t \n\t\t for(i=1;i<4;i++)\n\t\t {\n\t\t\t if(i==Ans)\n\t\t\t\t cout<<\"A\";\n\t\t\t else if(i==Bns)\n\t\t\t\t cout<<\"B\";\n\t\t\t else\n\t\t\t\t cout<<\"C\";\n\t\t }\n\t\t return 0;\n\t }"} +{"label": "101", "index": "50007", "code": "int main()\n{\n\tint a,b,c;//??????\n\tint true1,true2,true3;//????\n\tfor (a=1;a<=3;a++)//????????\n\t{\n\t\tfor (b=1;b<=3;b++)\n\t\t{\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\ttrue1=(ab)+(a>c);\n\t\t\t\ttrue3=(c>b)+(b>a);\n\t\t\t\tif (a>b&&b>c&&true3>true2&&true2>true1)\n\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\";\n\t\t\t\telse if (a>c&&c>b&&true2>true3&&true3>true1)\n\t\t\t\t\tcout<<\"B\"<<\"C\"<<\"A\";\n\t\t\t\telse if (b>a&&a>c&&true3>true1&&true1>true2)\n\t\t\t\t\tcout<<\"C\"<<\"A\"<<\"B\";\n\t\t\t\telse if (b>c&&c>a&&true1>true3&&true3>true2)\n\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\";\n\t\t\t\telse if (c>a&&a>b&&true2>true1&&true1>true3)\n\t\t\t\t\tcout<<\"B\"<<\"A\"<<\"C\";\n\t\t\t\telse if (c>b&&b>a&&true1>true2&&true2>true3)\n\t\t\t\t\tcout<<\"A\"<<\"B\"<<\"C\";\n\t\t\t}//????????????\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50008", "code": "\nvoid search();\nint f[3];\nint main()\n{\n\n int i,j,k;\n for(i=1;i<4;i++)\n {\n f[0]=i;\n for(j=1;j<4;j++)\n {\n if(i==j)continue;\n f[1]=j;\n for(k=1;k<4;k++)\n {\n if(k==j)continue;\n if(k==i)continue;\n f[2]=k;\n search();\n }\n }\n }\n return 0;\n}\n\nvoid search()\n{\n int count0=0,count1=0,count2=0,i,j;\n char a;\n if(f[1]>f[0])count0++;\n if(count0!=3-f[0])return;\n if(f[0]>f[1])count1++;\n if(f[0]>f[2])count1++;\n if(count1!=3-f[1])return;\n if(f[2]>f[1])count2++;\n if(f[1]>f[0])count2++;\n if(count2!=3-f[2])return;\n for(i=1;i<4;i++)\n {\n for(j=0;j<3;j++)\n {\n if(f[j]==i)\n {\n a=j+'A';\n cout<A)+(C==A);b=(A>B)+(A>C);c=(C>B)+(B>A); //???????\n\t\n\n\tif(A>B&&B>C&&aC&&C>B&&aA&&A>C&&bC&&C>A&&bA&&A>B&&cB&&B>A&&cA)+(C==A);\n\t\t\t\tw[B]=(A>B)+(A>C);\n\t\t\t\tw[C]=(C>B)+(B>A);\n\t\t\t\tp[0]=A>B&&A>C&&B>C&&w[A]C&&C>B&&w[A]A&&A>C&&w[B]C&&C>A&&w[B]A&&A>B&&w[C]B&&B>A&&w[C] appetiteA) + (appetiteC == appetiteA);\n\t\t\t\tb = (appetiteA > appetiteB) + (appetiteA > appetiteC);\n\t\t\t\tc = (appetiteC > appetiteB) + (appetiteB > appetiteA);\n\t\t\t\tif(a != b && a != c && b != c)\n\t\t\t\t{\n\t\t\t\t\tl[0] = a;\n\t\t\t\t\tl[1] = b;\n\t\t\t\t\tl[2] = c;\n\t\t\t\t}\n }\n for(int i = 0;i < 2; i++)\n\t{\n\t\tif(l[i] 2 > 1 \n for(a = 1; a <= 3; a++)\n {\n for(b = 1; b <= 3; b++)\n {\n for(c = 1; c <= 3; c++)\n {\n if((a + (b > a) + (c == a) == 3) && (b + (a > b) + (c < a) == 3) && (c + (c > b) + (a < b) == 3))\n {\n m[0] = a;\n m[1] = b;\n m[2] = c;\n }\n }\n }\n }\n //???????????????A?B?C \n if(m[0] > m[1] && m[1] > m[2])\n {\n cout << \"CBA\";\n }\n if(m[0] < m[1] && m[1] < m[2])\n {\n cout << \"ABC\";\n }\n if(m[0] > m[2] && m[2] > m[1])\n {\n cout << \"BCA\";\n }\n if(m[0] > m[1] && m[0] < m[2])\n {\n cout << \"BAC\";\n }\n if(m[0] < m[1] && m[1] > m[2])\n {\n cout << \"CAB\";\n }\n if(m[0] > m[1] && m[1] > m[2])\n {\n cout << \"CBA\";\n }\n return 0;\n}\n"} +{"label": "101", "index": "50013", "code": "//3?????????????? \n//A??B??????C??????? \n//B??A??????A??C??? \n//C????B????B?A???? \n//????????????????????? \n//???????????3??????\nint main()\n{\n int a=1,b=1,c=1,i=1;\n char rank[4];\n for (a=1;a<=3;a++)//the most the first\n {\n for(b=1;b<=3;b++)\n\t {\n\t for(c=1;c<=3;c++)\n\t {\n\t\t\tif(((b=1;i--)\n\t\t\t\t\tcout<a)+(c==a);\n\t\t\t\tm[1]=(a>b)+(a>c);\n\t\t\t\tm[2]=(c>b)+(b>a);\n\t\t\t\tif (((a-b)*(m[0]-m[1])<0)||(((a==b)&&(m[0]==m[1])))==1)\n\t\t\t\t\tif (((a-c)*(m[0]-m[2])<0)||(((a==c)&&(m[0]==m[2])))==1)\n\t\t\t\t\t\tif (((c-b)*(m[2]-m[1])<0)||(((c==b)&&(m[2]==m[1])))==1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (a<=b)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(a<=c)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\t\t\tif (b<=c)\n\t\t\t\t\t\t\t\t\tcout<<\"B\"<<\"C\";\n\t\t\t\t\t\t\t\telse cout<<\"C\"<<\"B\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse cout<<\"C\"<<\"A\"<<\"B\";\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (b=c)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse cout<<\"B\"<<\"C\"<<\"A\";\n\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50015", "code": "/*\n * file homework 8_4\n * author ??\n * date 2010-11-18\n * description\n ???????\n*/\n\n\n\nint main()\n{\n\tint a, b, c, t;\n\tint aa, bb, cc;\n\tfor (a = 0; a <= 2; a ++)\n\t{\n\t\tfor (b = 0; b <= 2; b ++)\n {\n\t\t\tfor (c = 0; c <= 2; c ++)\n\t\t\t{\n\t\t\t\tt = 0;\n\t\t\t\taa = (b > a) + (c == a);\n\t\t\t\tbb = (a > b) + (a > c);\n\t\t\t\tcc = (c > b) + (b > a);\n\t\t\t\tt = (a + aa == 2) + (b + bb == 2) + (c + cc == 2);\n\t\t\t if (t == 3) break;\n\t\t\t}\n\t\t\tif (t == 3) break;\n\t\t}\n\t\tif (t == 3) break;\n\t}\n\tif (a > b)\n\t\tif(b > c)\n\t\t\tcout << \"CBA\" < c)\n\t\t\t\tcout << \"BCA\" < c)\n\t\t\tcout << \"CAB\" << endl;\n\t\telse \n\t\t\tif(b > c)\n\t\t\t\tcout << \"ACB\" << endl;\n\t\t\telse\n\t\t\t\tcout << \"ABC\" << endl;\n\n\treturn 0;\n}\n\n\n"} +{"label": "101", "index": "50016", "code": "/*\n * ????bifanliang.cpp\n * ??????\n * ?????2012 11 9\n * ??????????\n */\n\n\n\nint main(){\n\tint a,b,c,i; //???????abc??????i\n\ti=0; //i???0\n\tfor(a=1;a<=3;a++){\n\t\tfor(b=1;b<=3;b++){\n\t\t\tif (b==a) continue;\n\t\t\tc=6-a-b; //????abc?????abc????\n\t\t\tif ((((ba)==3&&b+(a>b)+(a>c)==3&&c+(c>b)+(b>a)==3)\n\t\t\t{\n\t\t\t\tn[a]='A';n[b]='B';n[c]='C';\n\t\t\t\tfor(i=1;i<=3;i++) cout<a)+(c==a)==0)&&((a>b)+(a>c)==1)&&((c>b)+(b>a)==2))cout<<'C'<<'B'<<'A';\na=3;c=2;b=1;\nif(((b>a)+(c==a)==0)&&((a>b)+(a>c)==2)&&((c>b)+(b>a)==1))cout<<'B'<<'C'<<'A';\na=2;b=3;c=1;\nif(((b>a)+(c==a)==1)&&((a>b)+(a>c)==0)&&((c>b)+(b>a)==2))cout<<'C'<<'A'<<'B';\na=1;b=3;c=2;\nif(((b>a)+(c==a)==2)&&((a>b)+(a>c)==0)&&((c>b)+(b>a)==1))cout<<'A'<<'C'<<'B';\nc=3;b=2;a=1;\nif(((b>a)+(c==a)==2)&&((a>b)+(a>c)==1)&&((c>b)+(b>a)==0))cout<<'A'<<'B'<<'C';\nc=3;a=2;b=1;\nif(((b>a)+(c==a)==1)&&((a>b)+(a>c)==2)&&((c>b)+(b>a)==0))cout<<'B'<<'A'<<'C';\nreturn 0;\n}"} +{"label": "101", "index": "50019", "code": "main()\n{\n int a,b,c;\n char q[3];\n for(a=0;a<3;a++)\n {\n for(b=0;b<3;b++)\n {\n for(c=0;c<3;c++)\n {\n if((((b>a)+(c==a)+a)==2)&&(((a>b)+(a>c)+b)==2)&&(((c>b)+(b>a)+c)==2)&&(a!=b)&&(b!=c)&&(c!=a))\n {\n q[a]='A';\n q[b]='B';\n q[c]='C';\n printf(\"%c%c%c\",q[0],q[1],q[2]);\n }\n }\n }\n } \n}\n"} +{"label": "101", "index": "50020", "code": "/*\n * WhoEatsMore.cpp\n *\n * Created on: 2012-10-19\n * Author: Cui Zhaoxiong Class4 1200012931\n */\nint main(){\n\tint o[6][3]={{1,2,3},{1,3,2},{2,1,3},{2,3,1},{3,1,2},{3,2,1}};//?????????a?b?c????1??a?2??b?3??c\n\tint i=0;\n\tfor (;i<6;i++){\n\t\tint a=0,b=0,c=0;\t\t\t\t//??for?????a?b?c?????\n\t\tfor (int j=0;j<=2;j++){\n\t\t\tif (o[i][j]==1) a=j+1;\n\t\t}\n\t\tfor (int j=0;j<=2;j++){\n\t\t\tif (o[i][j]==2) b=j+1;\n\t\t}\n\t\tfor (int j=0;j<=2;j++){\n\t\t\tif (o[i][j]==3) c=j+1;\n\t\t}\n\t\tint p[3]={(ab)+(a>c),(c>b)+(b>a)};\n\t\tif (p[o[i][1]-1]a1)+(c1==a1);//???????\n\t\t\t\t\tb2=(a1>b1)+(a1>c1);\n\t\t\t\t\tc2=(c1>b1)+(b1>a1);\n\t\t\t\t\tif ((a1+a2==b1+b2)&&(b1+b2==c1+c2))//????\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a1==1) cout<<'A';//???????\n\t\t\t\t\t\tif (b1==1) cout<<'B';\n\t\t\t\t\t\tif (c1==1) cout<<'C';\n\t\t\t\t\t\tif (a1==2) cout<<'A';\n\t\t\t\t\t\tif (b1==2) cout<<'B';\n\t\t\t\t\t\tif (c1==2) cout<<'C';\n\t\t\t\t\t\tif (a1==3) cout<<'A';\n\t\t\t\t\t\tif (b1==3) cout<<'B';\n\t\t\t\t\t\tif (c1==3) cout<<'C';\n\t\t\t\t\t}\n\t\t\t\t}\n\tcout<a[0])+(a[2]==a[0]),CC2=(a[0]>a[1])+(a[0]>a[2]),CC3=(a[2]>a[1])+(a[2]>a[0]),b[3]={CC1,CC2,CC3},temp;\n\tchar c[3]={'A','B','C'},t;\n\tfor (a[0]=0;a[0]<3;a[0]++)\n\t{\n\t\tfor (a[1]=0;a[1]<3;a[1]++)\n\t\t\tfor (a[2]=0;a[2]<3;a[2]++)\n\t\t\t{\n\t\t\t\tif ((b[0]+a[0]==2)&&(b[1]+a[1]==2)&&(b[2]+a[2]==2))\n\t\t\t\t{\n\t\t\t\t\tfor (i=0;i<3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (j=0;j<3-i-1;j++)\n\t\t\t\t\t\t\tif (a[j]=0;i--) cout<A)+(C==A)+A==3 && (A>B)+(A>C)+B==3 && (C>B)+(B>A)+C==3){ //??????\n\t\t\t\t\tchar m[3]={'A','B','C'},x; //?????????X\n\t\t\t\t\tint a[3]={A,B,C},i,j,t; //???????i j t\n\t\t\t\t\tfor (j=0;j<2;j++) //???2???\n\t\t\t\t\t\tfor(i=0;i<2-j;i++) //????2-j???\n\t\t\t\t\t\tif (a[i]>a[i+1])\t{ //??????????\n\t\t\t\t\t\t\tt=a[i];a[i]=a[i+1];a[i+1]=t; //?????????????\n\t\t\t\t\t\t\tx=m[i];m[i]=m[i+1];m[i+1]=x;} //?????????\n\t\t\t\t\t\t\tcout<A)+(C+A);\n\t\t\t\tc2=(A>B)+(A>C);\n\t\t\t\tc3=(C>B)+(B>A);\n\t\t\t\tif(A+c1==B+c2==C+c3==3)\n\t\t\t\t\tbreak;\n\t\t\t}\n\tif(A>B)\n\t{\n\t\tif(B>C) cout <<\"ABC\" <A) cout <<\"CAB\" <C) cout <<\"BAC\" <B) cout <<\"CBA\" <A)+(C==A));\n b=((A>B)+(A>C));\n c=((C>B)+(B>A));\n if(((A>B&&ab))\n +((A>C&&ac))\n +((Bc)||(B>C&&bB&&ab))+((A>C&&ac))+((Bc)||(B>C&&b=B&&A>=C&&B>=C) printf(\"ABC\");\n\t\t\t\t\telse if(A>=B&&A>=C&&C>=B)printf(\"BCA\");\n\t\t\t\t\telse if(B>=A&&B>=C&&A>=C)printf(\"CAB\");\n\t\t\t\t\telse if(B>=A&&B>=C&&C>=A)printf(\"ACB\");\n\t\t\t\t\telse if(C>=A&&C>=B&&B>=A)printf(\"ABC\");\n\t\t\t\t\telse if(C>=A&&C>=B&&A>=B)printf(\"BAC\");\n\t\t\t\t}\n }\n }\n return 0;\n}"} +{"label": "101", "index": "50026", "code": "/*A??B??????C??????? \nB??A??????A??C??? \nC????B????B?A???? \n*/\nint main()\n{\n\tint a[3] = {1,2,3}, A, B, C, s1, s2, s3;//????????1? 2? 3?si?????????\n\tchar b[3]; //???????A? B? C\n\tfor(int i=0; i < 3;i++)\n\t{\n\t\tA = a[i];\n\t\tfor(int j=0; j < 2;j++)\n\t\t{\n\t\t\tif(j == i)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tB = a[j];\n\t\t\t\tfor(int k=0; k < 3; k++)\n\t\t\t\t{\n\t\t\t\t\tif(k == i&&k == j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tC = a[k];\n\t\t\t\t\t\ts1=(B>A)+(A==C);\n\t\t\t\t\t\ts2=(A>B)+(A>C);\n\t\t\t\t\t\ts3=(C>B)+(B>A);\n\t\t\t\t\t\tb[s1] = 'A'; //???????????????????\n\t\t\t\t\t\tb[s2] = 'B';\n\t\t\t\t\t\tb[s3] = 'C';\n\t\t\t\t\t\tif(s1 != s2&&s1 !=s3&&s2 != s3) //???????\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint f=0;\n\t\t\t\t\t\t\tfor(int l=0;l < 3; l++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout<a)+(c==a);\n\t\t\t\tj=(a>b)+(a>c);\n\t\t\t\tk=(c>b)+(b>a);\n\t\t\t\tif(a+i==3&&b+j==3&&c+k==3){\n\t\t\t\t\tnum[0]=a;\n\t\t\t\t\tnum[1]=b;\n\t\t\t\t\tnum[2]=c;\n\t\t\t\t\tfor(i=1;i<3;i++)\n\t\t\t\t\t\tfor(j=0;j<3-i;j++)\n\t\t\t\t\t\t\tif(num[j]>num[j+1]){\n\t\t\t\t\t\t\t\tt=num[j];\n\t\t\t\t\t\t\t\tnum[j]=num[j+1];\n\t\t\t\t\t\t\t\tnum[j+1]=t;\n\t\t\t\t\t\t\t\tp=f[j];\n\t\t\t\t\t\t\t\tf[j]=f[j+1];\n\t\t\t\t\t\t\t\tf[j+1]=p;}}}\n\tfor(i=0;i<3;i++)\n\t\tcout<a)+(c==a)==2-a&&(a>b)+(a>c)==2-b&&(c>b)+(b>a)==2-c)\n\t\t\tbreak;\n\t}\n\tswitch(i)\n\t{case 0:cout<<\"CAB\";break;\n\tcase 1:cout<<\"BAC\";break;\n\tcase 2:cout<<\"CBA\";break;\n\tcase 3:cout<<\"BCA\";break;\n\tcase 4:cout<<\"ABC\";break;\n\tcase 5:cout<<\"ACB\";break;\n\tdefault:cout<<\"fuck\";break;\n\t}\n return 0;\n}\n\n\n\n\n\n\n"} +{"label": "101", "index": "50029", "code": "\nint main(){\n\tconst char r[6][3]={\n\t\t{'A','B','C'},\n\t\t{'A','C','B'},\n\t\t{'B','A','C'},\n\t\t{'C','A','B'},\n\t\t{'B','C','A'},\n\t\t{'C','B','A'}\n \t};\t\n\tconst int n[6][3]={\n\t\t{1,1,1},\n\t\t{1,1,-1},\t\n\t\t{-1,1,1},\n\t\t{1,-1,-1},\n\t\t{-1,-1,1},\n\t\t{-1,-1,-1} \n \t};\t\n\tint nn[3][3]={{-1,2,0},{1,1,2},{-1,2,-1}},is,i;\n\tfor(i=0;i<6;i++){\n\t\tis=1;\n\t\tint l[3]={0,0,0},L[3]={0,0,0};\n\t\tfor(int j=0;j<3;j++){\n\t\t\tfor(int p=0;p<3;p++){\n\t\t\t\tif(nn[p][j]==n[i][j]||!nn[p][j])\n\t\t\t\t\tl[p]++;\n\t\t\t}\n\t\t}\n\t\tif(l[0]>=l[1])\n\t\t\tL[0]=1;\n\t\telse\n\t\t\tL[0]=-1;\n\t\tif(l[1]>=l[2])\n\t\t\tL[2]=1;\n\t\telse \n\t\t\tL[2]=-1;\n\t\tif(l[0]>=l[2])\n\t\t\tL[1]=1;\n\t\telse\n\t\t\tL[1]=-1;\n\t\tfor(int w=0;w<3;w++){\n\t\t\tif(L[w]!=n[5-i][w]){\n\t\t\t\tis=0;\n\t\t\t}\n \t\t}\n\t\tif(is==1){\n\t\t\tfor(int x=0;x<3;x++)\n\t\t\t\tcout<a[1])+(a[1]==a[3]);\n\n\t\t\twords[2]=(a[1]>a[2])+(a[1]>a[3]);\n\n\t\t\twords[3]=(a[3]>a[2])+(a[1] get( 'A', s[i] ) ) + ( get( 'A', s[i] )-get( 'C', s[i] ) !=-2 && get( 'A', s[i] )-get( 'C', s[i] ) !=2 );\n\t\ty = get( 'B', s[i] ) + ( get( 'A', s[i] ) > get( 'B', s[i] ) ) + ( get( 'A', s[i] ) > get( 'C', s[i] ) );\n\t\tz = get( 'C', s[i] ) + ( get( 'C', s[i] ) > get( 'B', s[i] ) ) + ( get( 'B', s[i] ) > get( 'A', s[i] ) );\n\t\tif( x == 2 && y == 2 && z == 2 ) //??\n\t\t{\n\t\t\tcout << s[i];//??\n\t\t\treturn 0;\n\t\t}\n\t}\n\treturn 0;\n}\n\nint get( char a, char s[] )\n{\n\tfor( int i=0; i<3; i++ )\n\t{\n\t\tif( s[i] == a )\n\t\t\treturn (2-i);\n\t}\n}"} +{"label": "101", "index": "50032", "code": "//??????\n//??????\n//???2010.11.23\n\nint main()\n{\n\tint a = 0;\n\tint b = 0;\n\tint c = 0;\n\n\tfor (a = 0; a <= 2; a ++)\n\t\tfor (b = 0; b <= 2; b ++)\n\t\t{\n\t\t\tif (a == b)\n\t\t\t\tcontinue;\n\t\t\tfor (c = 0; c <= 2; c ++) //??a,b,c?????\n\t\t\t{\n\t\t\t\tif ((a == c) || (b == c))\n\t\t\t\t\tcontinue;\n\t\t\t\tif ((((a < b) + (a == c) + a) == 2) //????????\n\t\t\t\t\t&& (((a > b) + (a > c) + b) == 2)\n\t\t\t\t\t&& (((c > b) + (b > a) + c) == 2))\n\t\t\t\t{\n\t\t\t\t\tif ((a >= b) && (a >= c)) //??????\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b >= c)\n\t\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\t}\n\t\t\t\t\tif ((b >= a) && (b >= c))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a >= c)\n\t\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\t}\n\t\t\t\t\tif ((c >= a) && (c >= b))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a >= b)\n\t\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\treturn 0;\n}"} +{"label": "101", "index": "50033", "code": "//****************************************\n//*?????? **\n//*?????? 1100012802 **\n//*???2011.10.13 **\n//****************************************\nint main()\n{\n int a,b,c,cc1,cc2,cc3;//a?b?c????cc1?cc2?cc3???????????\n\tfor(a = 1;a <= 3;a++)\n\t{\n\t\tfor(b = 1;b<=3;b++)\n\t\t{\n\t\t\tif(b == a)\n\t\t\t\tcontinue;\n\t\t\tc = 6 - a - b;\n\t\t\tcc1 = a + (b > a) + (c == a);\n\t\t\tcc2 = b + (a > b) + (a > c);\n\t\t\tcc3 = c + (c > b) + (b > a);\n\t\t\tif(cc1 == 3 && cc2 == 3 && cc3 == 3)\n\t\t\t{\n\t\t\t\tif(a > b && b > c)\n\t\t\t\t\tcout<<\"CBA\";\n\t\t\t\tif(a > c && c > b)\n\t\t\t\t\tcout<<\"BCA\";\n\t\t\t\tif(b > a && a > c)\n\t\t\t\t\tcout<<\"CAB\";\n\t\t\t\tif(b > c && c > a)\n\t\t\t\t\tcout<<\"ACB\";\n\t\t\t\tif(c > a && a > b)\n\t\t\t\t\tcout<<\"BAC\";\n\t\t\t\tif(c > b && b > a)\n\t\t\t\t\tcout<<\"ABC\";\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50034", "code": "/**\n* @file homework.cpp\n* @author ???\n* @date 2011-10-12\n* @description\n* ??????: ???\n*/\nint main()\n{\n\tint riceA, riceB, riceC, wordA, wordB, wordC;\n\tfor (riceA=0;riceA<=2;riceA++)\n\t\tfor (riceB=0;riceB<=2;riceB++)\n\t\t\t{if (riceB==riceA) continue;\n\t\t\tfor (riceC=0;riceC<=2;riceC++)\n\t\t\t\t{if (riceC==riceA||riceC==riceB) continue;\n\t\t\t\t\twordA=(riceB>riceA)+(riceC==riceA);\n\t\t\t\t\twordB=(riceA>riceB)+(riceA>riceC);\n\t\t\t\t\twordC=(riceC>riceB)+(riceB>riceA);\n\t\t\t\t\tif ((wordA+riceA==2)&&(wordB+riceB==2)&&(wordA+riceA==2)) \n\t\t\t\t\t\t{\n\t\t\t\t\t\tif ((riceAriceC)) cout<<\"ACB\";\n\t\t\t\t\t\tif ((riceBriceC)) cout<<\"BCA\";\n\t\t\t\t\t\tif ((riceCriceB)) cout<<\"CBA\";\n\t\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\nreturn 0;\n}"} +{"label": "101", "index": "50035", "code": "/*\n * ???????.cpp\n * ?????\n * ????: 2012-10-23\n * ??????\n */\nint main(){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//?????\n\tint a,b,c=0,i=0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t//???????a,b,c,i\n\tfor(a=0;a<=2;a++){\n\t\tfor(b=0;b<=2;b++){\n\t\t\tif(b==a)continue;\n\t\t\tfor(c=0;c<=2;c++){\n\t\t\t\tif(c==a||c==b)continue;\t\t\t\t\t\t\t\t\t\t//????\n\t\t\t\tif(a+(b>a)+(c==a)==2&&b+(a>b)+(a>c)==2&&c+(c>b)+(b>a)==2)\t//??\n\t\t\t\t{\n\t\t\t\t\tfor(i=0;i<=2;i++)\t\t\t\t\t\t\t\t\t\t//???????\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a==i)cout<<\"A\";\n\t\t\t\t\t\tif(b==i)cout<<\"B\";\n\t\t\t\t\t\tif(c==i)cout<<\"C\";\t\t\t\t\t\t\t\t\t//?i????????????\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t//i?????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//??????\n\treturn 0;\n}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//?????"} +{"label": "101", "index": "50036", "code": "//============================================================================\n// Name : 15.cpp\n// Author : \n// Version :\n// Copyright : Your copyright notice\n// Description : Hello World in C++, Ansi-style\n//============================================================================\n\n\nint main() {\n\tchar a,b,c;\n\tchar a2,b2,c2;\n\tfor(char a1=1;a1<=3;a1=a1+1)\n\t{\n\t\tfor(char b1=1;b1<=3;b1=b1+1)\n\t\t{\n\t\t\tfor(char c1=1;c1<=3;c1=c1+1)\n\t\t\t{\n\t\t\t\tint x=(a1!=b1)+(a1!=c1)+(b1!=c1);\n\t\t\t\tif(x==3)\n\t\t\t\t{\n\t\t\t\t a=a1;\n\t\t\t\t b=b1;\n\t\t\t\t c=c1;\n\t\t\t\t a2=(b>a)+(c==a);\n\t\t\t\t b2=(a>b)+(a>c);\n\t\t\t\t c2=(c>b)+(b>a);\n\t\t\t\t int a3=(a>b)-(a2>b2);\n\t\t\t\t int b3=(a>c)-(a2>c2);\n\t\t\t\t int c3=(b>c)-(b2>c2);\n\t\t\t\t int d=(a3==0)+(b3==0)+(c3==0);//?????????????\n\t\t\t\t if(d==0)\n\t\t\t\t {\n\t\t\t\t\t if(a==1) //?9?if????????????????????????\n\t\t\t\t\t \tcout<<\"A\";\n\t\t\t\t\t if(b==1)\n\t\t\t\t\t \tcout<<\"B\";\n\t\t\t\t\t if(c==1)\n\t\t\t\t\t \tcout<<\"c\";\n\t\t\t\t\t if(a==2)\n\t\t\t\t\t \tcout<<\"A\";\n\t\t\t\t\t if(b==2)\n\t\t\t\t\t \tcout<<\"B\";\n\t\t\t\t\t if(c==2)\n\t\t\t\t\t \tcout<<\"C\";\n\t\t\t\t\t if(a==3)\n\t\t\t\t\t \tcout<<\"A\";\n\t\t\t\t\t if(b==3)\n\t\t\t\t\t \tcout<<\"B\";\n\t\t\t\t\t if(c==3)\n\t\t\t\t\t \tcout<<\"C\";\n\t\t\t\t }\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "101", "index": "50037", "code": "/*\n * checklimit.cpp\n *\n * Created on: 2013-10-25\n * Author: g199\n */\n\n\n\nint main()\n{\n\tint A,B,C;\n\tfor (A = 1; A <=3 ; A ++)\n\t\tfor (B = 1; B <= 3; B ++)\n\t\t\tfor (C = 1; C <= 3; C ++)\n\tif\n\t(((B > A) + (C == A) + A == 3) + ((A > B)+ (A > C) + B == 3) + ((C > B)+ (B > A) + C == 3) == 3)\n\t\t{\n\t\tint man[3];\n\t\tman[0]= A * 1000 + 'A';\n\t\tman[1]= B * 1000 + 'B';\n\t\tman[2]= C * 1000 + 'C';\n\t\tsort(man,man+3);\n\t\tcout << (char)(man[0]%1000) << (char)(man[1]%1000) << (char)(man[2]%1000) <C&&C>B)\t//????????????????\n\t\t\tcout<<\"CBA\"; //????????????????\n A=30;C=20;B=10;\n\tif(BB&&A>C&&C>B||B>A)\n\t\t\tcout<<\"BCA\";\n\tB=30;A=20;C=10;\n\t\tif(AA&&C==A)\n\t\t\tcout<<\"ACB\";\n\tC=30;B=20;A=10;\n\t\tif(Ca)+(c==a);\n\t\t\t\tsum2=(a>b)+(a>c);\n\t\t\t\tsum3=(c>b)+(b>a); //???????????\n\t\t\t\tint m[3]={sum1,sum2,sum3},q; //m[]???????\n\t\t\t\tif(sum1+sum2+sum3!=3)\n\t\t\t\t\tcontinue; //?????\n\t\t\t\telse\n\t\t\t\t{ \n\t\t\t\t\tint n[3]={a,b,c},p; //n[]????\n\t\t\t\t\tchar o[3]={'A','B','C'},e; //????ABC\n o[0]='A';\n\t\t\t\t\t\to[1]='B';\n\t\t\t\t\t\to[2]='C'; \n\t\t\t\t\tfor(i=0;i<3;i++) //?????????\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(j=0;j<2;j++) //????\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(n[j]>n[j+1])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tp=n[j];\n\t\t\t\t\t\t\t\tn[j]=n[j+1];\n\t\t\t\t\t\t\t\tn[j+1]=p;\n\t\t\t\t\t\t\t\tq=m[j];\n\t\t\t\t\t\t\t\tm[j]=m[j+1];\n\t\t\t\t\t\t\t\tm[j+1]=q; //?????????????\n\t\t\t\t\t\t\t\te=o[j];\n\t\t\t\t\t\t\t\to[j]=o[j+1];\n\t\t\t\t\t\t\t\to[j+1]=e; //??????????\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsum=0;\n\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(n[i]+m[i]==2)\n\t\t\t\t\t\t\tsum=sum+1; \n\t\t\t\t\t}\n\t\t\t\t\tif(sum==3) //?????????????????????????\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t\t cout<A)+(C==A);\n\t\t\tstate[B]=(A>B)+(A>C);\n\t\t\tstate[C]=(C>B)+(B>A);\n\t\t\tif(state[A]+A==2&&state[B]+B==2&&state[C]+C==2)\n\t\t\t{\n\t\t\t\tname[A]='A';\n\t\t\t\tname[B]='B';\n\t\t\t\tname[C]='C';\n\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\tcout< A) + (C == A);\n\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\tif (A==3-a && B==3-b && C == 3-c && A!=B&&B!=C&&A!=C)\n\t\t\t\t{\n\n\tfor (int i=1; i <=3; i++) {\n\t\tif (i == A)\n\t\t\tcout << \"A\";\n\t\tif (i == B)\n\t\t\tcout << \"B\";\n\t\tif (i == C)\n\t\t\tcout << \"C\";\n\t}}}\n\n\treturn 0;\n}\n"} +{"label": "101", "index": "50042", "code": "int main()\n{\n\tint a, b, c, A, B, C, t;\n\tfor (a = 1; a <= 3; a++)\n\t\tfor (b = 1; b <= 3; b++)\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\tA = (b > a)+(c == a);\n\t\t\t\tB = (b < a)+(c < a);\n\t\t\t\tC = (c > b)+(b > a);\n\t\t\t\tif (a+A == b+B && b+B ==c+C)\n\t\t\t\t{\n\t\t\t\t\tif(aa)+(c==a))&&((3-b)==(a>b)+(a>c))&&((3-c)==(c>b)+(b>a)))\n\t\t\t\t\t{char f[4];\n\t\t\t\tf[a]='A';f[b]='B';f[c]='C';\n\t\t\t\tcout< A) + (C == A) == (2 - A)) && ((A > B) + (A > C) == (2 - B)) && ((C > B) + (B > A) == (2 - C))) // ??????????????????\n\t\t\t\t{\n\t\t\t\t\tif (A < B && A < C)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"A\";\n\t\t\t\t\t\tif (B < C)\n\t\t\t\t\t\t cout << \"B\" << \"C\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"C\" << \"B\";\n }\n\t\t\t\t\tif (B < A && B < C)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"B\";\n\t\t\t\t\t\tif (A < C)\n\t\t\t\t\t\t cout << \"A\" << \"C\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"C\" << \"A\";\n }\n\t\t\t\t\tif (C < B && C < A)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"C\";\n\t\t\t\t\t\tif (B < A)\n\t\t\t\t\t\t cout << \"B\" << \"A\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"A\" << \"B\"; // ???????????A?B?C?????????\n }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "101", "index": "50046", "code": "int main()\n{\n int a[3],b[3];\n int i;\n for(a[0]=0;a[0]<3;a[0]++)\n {\n for(a[1]=0;a[1]<3;a[1]++)\n {\n for(a[2]=0;a[2]<3;a[2]++)\n {\n if((a[0]!=a[1])&&(a[0]!=a[2])&&(a[1]!=a[2]))\n\n\n\n\n\n b[0]=(a[1]>a[0])+(a[2]==a[0]);\n b[1]=(a[0]>a[1])+(a[0]>a[2]);\n b[2]=(a[2]>a[1])+(a[1]>a[0]);\n if((a[0]+b[0]==2)&&(a[1]+b[1]==2)&&(a[2]+b[2]==2))\n {\n if((a[0]==2)&&(a[1]==1))\n {\n cout<<\"ABC\"< a ) + ( c == a ) == 2 - a\n\t\t\t\t\t&& ( b < a ) + ( a > c ) == 2 - b\n\t\t\t\t\t&& ( c > b ) + ( b > a ) == 2 - c ) //????????//\n\t\t\t\t{\n\t\t\t\t\ttemp[a] = 'A'; //??????//\n\t\t\t\t\ttemp[b] = 'B';\n\t\t\t\t\ttemp[c] = 'C';\n\n\t\t\t\t\tcout << temp[0] << temp[1] << temp[2] ; //?????//\n\t\t\t\t}\n\n\t\t\t}\n\n\n\n\treturn 0;\n\n}\n"} +{"label": "101", "index": "50048", "code": "int main()\n{\n\tint a,b,c; //????a,b,c,????A,B,C???(0-2)\n\tchar man[3]; //?????man,???????????\n\tfor(a=0;a<3;a++) //??,A,B,C???\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\n\t\t\t\tint a1=(b>a)+(c==a); //A??B??????C???????\n\t\t\t\tint b1=(a>b)+(a>c); //B??A??????A??C???\n\t\t\t\tint c1=(c>b)+(b>a); //C????B????B?A???\n\t\t\t\tif(((a+a1)==2)&&((b+b1)==2)&&((c+c1)==2)) //??????????????????,??????(0-2)???????????2\n\t\t\t\t{\n\t\t\t\t\tman[a]='A'; //?????????\n\t\t\t\t\tman[b]='B';\n\t\t\t\t\tman[c]='C';\n\t\t\t\t\tfor(int i=0;i<=2;i++) //???????????\n\t\t\t\t\t{\n\t\t\t\t\t\tcout< A) + (C == A);\t//A???\n\t\tBs = (A > B) + (A > C);\t//B???\n Cs = (C > B) + (B > A);\t//C???\n if (! ( A <= B && As <= Bs || A <= C && As <= Cs || B <= A && Bs <= As || B <= C && Bs <= Cs || C <= A && Cs <= As || C <= B && Cs <= Bs ))\n\t{\t//?????????????????\n Al = A;\t//???????????????????????????????????????\n\t\t\t\t\tBl = B;\n\t\t\t\t\tCl = C;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (Al >= Bl && Bl >= Cl)\t\t//????????3???\n\t\tcout<<\"ABC\"<= Cl && Cl >= Bl)\n\t\tcout<<\"BCA\"<= Al && Al >= Cl)\n\t\tcout<<\"BAC\"<= Cl && Cl >= Al)\n\t\tcout<<\"BCA\"<= Al && Al >= Bl)\n\t\tcout<<\"CAB\"<= Bl && Bl >= Al)\n\t\tcout<<\"CBA\"<B)&&(A>C) && ( (C==2)&&((C>B)+(B>A)==1)&&(A>B) \n || (A==2)&&(B>A)&&((C>B)+(B>A)==0)) ) \n //?B????C????????? \n {rank[A]='A'; //??????? \n rank[B]='B';\n rank[C]='C';\n cout<B)&&(B>A) && ( (B==2)&&((A>B)+(A>C)==1)&&((A>B)+(B>A)==0) || (A==2)&&(B>A)&&((A>B)+(A>C)==0) ))\n {rank[A]='A';\n rank[B]='B';\n rank[C]='C';\n cout<a)+(c==a))==2)&&((b+(a>b)+(a>c))==2)&&((c+(c>b)+(b>a))==2))\n\t\t\t\t{\n\t\t\t\t\tif(a a) + (c == a);\n\t\t\t\tsb = (a > b) + (a > c);\n\t\t\t\tsc = (c > b) + (b > a);\n\n\t\t\t\tif( (a+sa == 3) && (b+sb == 3) && (c+sc == 3) )\n\t\t\t\t{\n\t\t\t\t\tif(a>b && b>c)\n\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t\tif(a>c && c>b)\n\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\tif(b>c && c>a)\n\t\t\t\t\t\tcout << \"ACB\";\n\t\t\t\t\tif(b>a && a>c)\n\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\tif(c>b && b>a)\n\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\tif(c>a && a>b)\n\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}\n\t\t\t\t\n\n\n\n\n"} +{"label": "101", "index": "50054", "code": "\nint main() {\n\tint a,b,c,x,y,z;//?a b c?????????? x y z????????????\n\ta=3;b=2;c=1;\n\tx=((b>a)+(c==a));y=((a>b)+(a>c));z=((c>b)+(b>a));\n\tif(xa)+(c==a));y=((a>b)+(a>c));z=((c>b)+(b>a));\n\tif(xa)+(c==a));y=((a>b)+(a>c));z=((c>b)+(b>a));\n\tif(ya)+(c==a));y=((a>b)+(a>c));z=((c>b)+(b>a));\n\tif(za)+(c==a));y=((a>b)+(a>c));z=((c>b)+(b>a));\n\tif(za)+(c==a));y=((a>b)+(a>c));z=((c>b)+(b>a));\n\tif(y b || a > c) + (c > b && b > a) == 3) \n\t\tcout << \"CBA\";\n\telse \n\t{\n\t\ta = 3;\n\t b = 1;\n\t c = 2;\n\t if((b <= a && c != a) + (a > b && a > c) + (c > b || b > a) == 3)\n\t\t\tcout << \"BCA\";\n\t\telse\n\t\t{\n\t\t\ta = 2;\n\t b = 1;\n \tc = 3;\n if((b > a || c == a) + (a > b && a > c) + (c <= b && b <= a) == 3)\n\t\t cout << \"BAC\";\n\t\t\telse\n\t\t\t{\n\t\t\t\ta = 2;\n \tb = 3;\n\t c = 1;\n if((b > a || c == a) + (a <= b && a <= c) + (c > b && b > a) == 3)\n\t\t cout << \"CAB\";\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta = 1;\n\t b = 2;\n\t c = 3;\n if((b > a && c == a) + (a <= b || a <= c) + (c <= b && b <= a) == 3)\n\t\t cout << \"ABC\";\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ta = 1;\n\t b = 3;\n\t c = 2;\n if((b > a && c == a) + (a <= b && a <= c) + (c <= b || b <= a) == 3)\n\t \tcout << \"ACB\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n} //?????"} +{"label": "101", "index": "50056", "code": "/*??????\n???3?????????????? \n A??B??????C??????? \n B??A??????A??C??? \n C????B????B?A???? \n ????????????????????? \n ???????????3??????\n?????????????3??????? ABC\n?????\n???2013.10.13\n*/\nint main()\n{\n\tint A=0,B=0,C=0; //?????????ABC??? \n\tint a=0,b=0,c=0; //?????????ABC???????? \n\tint i; //??????????? \n\tfor(A=0;A<=2;A++) //?????????ABC??? \n\t for(B=0;B<=2;B++)\n\t for(C=0;C<=2;C++)\n\t {\n\t \ta=(B>A)+(C==A);//A??? \n\t \tb=(A>B)+(A>C); //B??? \n\t \tc=(C>B)+(B>A); //C??? \n\t \tif((a+A==2)&&(b+B==2)&&(c+C==2)==1)//????????????????????????????????2 \n\t \t{\n\t \t\t//cout<=0;i--) //???????2??????????????????????2?1?0????????0?1?2?? \n\t \t\t{\n\t \t\t\tif(a==i) \n\t \t\t\tcout<<\"A\";\n\t \t\t\tif(b==i)\n\t \t\t\tcout<<\"B\";\n\t \t\t\tif(c==i)\n\t \t\t\tcout<<\"C\";\n\t \t\t}\n\t \t\tbreak;\n\t \t}\n\t }\n\treturn 0;\n\t\n}"} +{"label": "101", "index": "50057", "code": "int main(){\n\tint a,b,c;\n\t//cout<<(aa)+(c==a) == b+(a>b)+(a>c) && b+(a>b)+(a>c) == c+(c>b)+(b>a)){ \n\t\t\t\tif(a == 3){\n\t\t\t\t\tif(b ==2){\n\t\t\t\t\t\tcout<<\"CBA\"<>a;\n\treturn 0;\n}"} +{"label": "101", "index": "50058", "code": "/*\n??\n???\n????yang?\n???2012.10.14\n*/\n\nint main()\n{\n\tint a,b,c,ah,bh,ch,abc[4],zh,f[4];\n\tchar m[4],z;\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor( b=1;b<=3;b++)\n\t\t{\n\t\t\tfor( c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tah=(b>a)+(c==a);\n\t\t\t\tbh=(a>b)+(a>c);\n\t\t\t\tch=(c>b)+(b>a);\n\t\t\t\tif(((ah-bh)*(a-b)<0)&&((ch-bh)*(c-b)<0)&&((ah-ch)*(a-c)<0))\n\t\t\t\t{f[1]=a;f[2]=b;f[3]=c;}\n\t\t\t\tif(a==b&&ah==bh&&((ch-bh)*(c-b)<0)&&((ah-ch)*(a-c)<0))\n\t\t\t\t{f[1]=a;f[2]=b;f[3]=c;}\n\t\t\t\tif(a==c&&ah==ch&&((ah-bh)*(a-b)<0)&&((ch-bh)*(c-b)<0))\n\t\t\t\t{f[1]=a;f[2]=b;f[3]=c;}\n\t\t\t\tif(b==c&&bh==ch&&((ah-bh)*(a-b)<0)&&((ah-ch)*(a-c)<0))\n\t\t\t\t{f[1]=a;f[2]=b;f[3]=c;}\n\t\t\t\tif(a==b&&b==c&&ah==bh&&bh==ch)\n\t\t\t {f[1]=a;f[2]=b;f[3]=c;}\n\t\t\t}\n\t\t}\n\t}//???????????a,b,c??????????f[]\n\t\n\tfor (int i=1;i<=3;i++)\n\t{\n\t\tm[i]=i+64;\n\t}//?m[]??????ABC\n\tfor(int j=1;j<=3;j++)\n\t{\n\t\tfor(int k=1;k<=3;k++)\n\t\t\tif(f[j]k)\n\t\t\t{\n\t\t\t\tz=m[j];\n\t\t\t\tm[j]=m[k];\n\t\t\t\tm[k]=z;\n\t\t\t\tzh;\n\t\t\t\tzh=f[j];f[j]=abc[k];f[k]=zh;\n\t\t\t}\n\t}//??????ABC\n\tcout<a) + (a==c);\n\t\t\t\t\tt2= (a>b) + (a>c);\n\t\t\t\t\tt3= (c>b) + (b>a);//t1,t2,t3????a?b?c???????????\n\t\t\t\t\tif( a==1 && t1>t2 && t1>t3 )\n\t\t\t\t\t{if (b==2) cout<<\"A\"<<\"B\"<<\"C\";\n\t\t\t\t\telse cout<<\"A\"<<\"C\"<<\"B\";\n\t\t\t\t\t}\n\t\t\t\t\tif( b==1 && t2>t1 && t2>t3 )\n\t\t\t\t\t{if (a==2) cout<<\"B\"<<\"A\"<<\"C\";\n\t\t\t\t\telse cout<<\"B\"<<\"C\"<<\"A\";\n\t\t\t\t\t}\n\t\t\t\t\tif( c==1 && t3>t1 && t3>t2 ) \n\t\t\t\t\t{if (a==2) cout<<\"C\"<<\"A\"<<\"B\";\n\t\t\t\t\telse cout<<\"C\"<<\"B\"<<\"A\";\n\t\t\t\t\t}//???????????????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\t\t\n\n"} +{"label": "101", "index": "50060", "code": "int main()\n{\n\tint a[3];\n\tint i,j,k,r1,r2,r3,l,q,w,e;\n\tfor(q=1;q<3;q++);\n\t{\n\t\tfor(w=1;w<3;w++)\n\t\t{\n\t\t\tfor(e=1;e<3;e++)\n\t\t\t{\n\t\t\t\ta[0]=q;\n\t\t\t\ta[1]=w;\n\t\t\t\ta[2]=e;\n\t\t\t\ti=((a[1]>a[0])+(a[2]==a[0]));\n\t\t\t\tj=((a[0]>a[1])+(a[0]>a[2]));\n\t\t\t\tk=((a[2]>a[1])+(a[1]>a[0]));\n\t\t\t\tr1=((i<=j&&a[0]>=a[1])||(i>=j&&a[0]<=a[1]));\n\t\t\t\tr2=((i<=k&&a[0]>=a[2])||(i>=k&&a[0]<=a[2]));\n\t\t\t\tr3=((j<=k&&a[1]>=a[2])||(j>=k&&a[1]<=a[2]));\n\t\t\t\tif(r1+r2+r3==3)\n\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tfor(l=1;l<=3;l++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[0]==l)\n\t\t\t\t\t\t\tprintf(\"A\");\n\t\t\t\t\t\tif(a[1]==l)\n\t\t\t\t\t\t\tprintf(\"B\");\n\t\t\t\t\t\tif(a[2]==l)\n\t\t\t\t\t\t\tprintf(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50061", "code": "\n\nint main()\n{\n\tint A,B,C,a,b,c;\n\tfor (A=1;A<=3;A++)\n\t\tfor (B=1;B<=3;B++)\n\t\t\tfor (C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\ta=(B>A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif (a==2&&b==1&&c==0&&C>B&&B>A)\n\t\t\t\t\tcout<<\"A\"<<\"B\"<<\"C\"<C&&C>A)\n\t\t\t\t\tcout<<\"A\"<<\"C\"<<\"B\"<A&&A>B)\n\t\t\t\t\tcout<<\"B\"<<\"A\"<<\"C\"<A&&A>C)\n\t\t\t\t\tcout<<\"C\"<<\"A\"<<\"B\"<B&&B>C)\n\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\"<C&&C>B)\n\t\t\t\t\tcout<<\"B\"<<\"C\"<<\"A\"<a)+(c==a))==(b+(a>b)+(a>c))&&(b+(a>b)+(a>c))==(c+(c>b)+(b>a))) //???????? \n { int num[3]={a,b,c}; //????? \n int mid;\n int j;\n int i;\n for(j=1;j<=2;j++)\n { for(i=0;i<=1;i++)\n { if(num[i]>num[i+1])\n { mid=num[i];\n num[i]=num[i+1];\n num[i+1]=mid;\n }\n }\n }\n if(num[0]==a) cout<<\"A\"; //??????? // \n if(num[0]==b) cout<<\"B\";\n if(num[0]==c) cout<<\"C\";\n if(num[1]==a) cout<<\"A\";\n if(num[1]==b) cout<<\"B\";\n if(num[1]==c) cout<<\"C\";\n if(num[2]==a) cout<<\"A\";\n if(num[2]==b) cout<<\"B\";\n if(num[2]==c) cout<<\"C\";\n }\n }\n }\n }\n \n return 0;\n}"} +{"label": "101", "index": "50063", "code": "int main()\n{\n\tint a, b, c, i;\n\tchar str[3];\n\tfor( a = 0; a < 3; a++ )\n\t{\n\t\tfor( b = 0; b < 3; b++ )\n\t\t{\n\t\t\tfor( c = 0; c < 3; c++ )\n\t\t\t{\n\t\t\t\tif( (b > a) + (c == a) + a == 2 &&\n\t\t\t\t\t(a > b) + (a > c) + b == 2 &&\n\t\t\t\t\t(c > b) + (b > a) + c == 2 &&\n\t\t\t\t\ta != b && a != c && b != c )\n\t\t\t\t{\n\t\t\t\t\tstr[a] = 'A';\n\t\t\t\t\tstr[b] = 'B';\n\t\t\t\t\tstr[c] = 'C';\n\t\t\t\t\tfor( i = 0; i < 3; i++ )\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << str[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}\n\n"} +{"label": "101", "index": "50064", "code": "int main()\n{\n\tint a,b,c,n;\n\t\n\tfor(a=0;a<3;a++)\n\t\tfor(b=0;b<3;b++)\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\n\t\t\t\tn=0;\n\t\t\t\tif(a==2-(b>a)-(c==a))\n\t\t\t\t\tn=n+1;\n\t\t\t\tif(b==2-(a>b)-(a>c))\n\t\t\t\t\tn=n+1;\n\t\t\t\tif(c==2-(c>b)-(b>a))\n\t\t\t\t\tn=n+1;\n\t\t\t\tif(a!=b&&a!=c&&b!=c)\n\t\t\t\t\tn=n+1;\n\t\t\t\tif(n==4)\n\t\t\t\t{\n\t\t\t\t\tif(a==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(bA)+(C==A);\n\t\twords[2]=(A>B)+(A>C);\n words[3]=(C>B)+(B>A);//???????????\n\t\tif(words[1]+A==2&&words[2]+B==2&&words[3]+C==2)//????????????????????????3\n\t\t{\n\t\t\trank[A]='A';\n\t\t\trank[B]='B';\n\t\t\trank[C]='C';\n\t}}}\n\t\t\tcout<a)+(c==a);\n\t\t\t\tbs=(a>b)+(a>c);\n\t\t\t\tcs=(c>b)+(b>a);\n\t\t\t\tif (!((a<=b)&&(as<=bs)||(a<=c)&&(as<=cs)||(b<=a)&&(bs<=as)||(b<=c)&&(bs<=cs)||(c<=a)&&(cs<=as)||(c<=b)&&(cs<=bs)))\n\t\t\t\t{\n\t\t\t\t\tchar shuzu[4];\n\t\t\t\tshuzu[a]='A';\n\t\t\t\tshuzu[b]='B';\n\t\t\t\tshuzu[c]='C';\n\t\t\t\tfor (int i=1;i<=3;i++)\n\t\t\t\t\tcout<A) + (int)(A==C);\n b = (int)(A>B) + (int)(A>C);\n c = (int)(C>B) + (int)(B>A);\n if(!((A>=B&&a>b)||(A>=C&&a>c)||(B>=A&&b>a)||(B>=C&&b>c)\n ||(C>=A&&c>a)||(C>=B&&c>b))){\n if(A>=B&&B>=C)\n cout<<\"ABC\"<=C&&C>=B)\n cout<<\"ACB\"<=A&&A>=C)\n cout<<\"BAC\"<=C&&C>=A)\n cout<<\"BCA\"<=A&&A>=B)\n cout<<\"CAB\"< a) + (c == a) == 3 - a) && ((a > b) + (a > c) == 3 - b) && ((c > b) + (b > a) ==3 - c))\n\t\t\t\t {\n\t\t\t\t\t if (a < b && b < c) cout << 'A' << 'B' << 'C';\n\t\t\t\t\t if (a < c && c < b) cout << 'A' << 'C' << 'B';\n\t\t\t\t\t if (b < a && a < c) cout << 'B' << 'A' << 'C';\n\t\t\t\t if (b < c && c < a) cout << 'B' << 'C' << 'A';\n if (c < a && a < b) cout << 'C' << 'A' << 'B';\n if (c < b && b < a) cout << 'C' << 'B' << 'A';\n\t\t\t\t }\n\t\t\t }\n\t\t\t return 0;\n}"} +{"label": "101", "index": "50069", "code": "/* ???????\n * ??????\n * ?????2012-10-17\n * ???3?????????????? \n * A??B??????C??????? \n * B??A??????A??C??? \n * C????B????B?A???? \n * ????????????????????? \n * ????????3??????\n */\n\nint main ()\n{\n\tint a,b,c,cc1,cc2,cc3,i,j,n[3],k;//??A,B,C????????a,b,c;???????????cc1,cc2,cc3;k?????\n\tchar m[] = {'A','B','C'},D;//D?????\n\tfor (a = 1; a <= 3; a++)//????a,b,c??????\n\t\tfor (b = 1; b <= 3; b++)\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\tcc1 = (b < a) + (c == a);//???????????????\n\t\t\t\tcc2 = (a < b) + (a < c);\n\t\t\t\tcc3 = (c < b) + (b < a);\n\t\t\t\tif ((cc1 + 1) == a && (cc2 + 1) == b && (cc3 + 1) == c)//???????????????????a,b,c?????????n?\n\t\t\t\t{\n\t\t\t\t\tn[0] = a;\n\t\t\t\t\tn[1] = b;\n\t\t\t\t\tn[2] = c;\n\t\t\t\t}\n\t\t\t}\n\tfor (i = 0; i <= 1; i++)//??????a,b,c?????????\n\t\tfor (j = 0; j <= 1 - i; j ++)//????\n\t\t{\n\t\t\tif (n[j] < n[j + 1])//????????a,b,c?????????m?A,B,C????n??a,b,c\n\t\t\t{\n\t\t\t\tk = n[j];\n\t\t\t\tn[j] = n[j + 1];\n\t\t\t\tn[j + 1] = k;\n\t\t\t\tD = m[j];\n\t\t\t\tm[j] = m[j + 1];\n\t\t\t\tm[j + 1] = D;\n\t\t\t}\n\t\t}\n cout << m[0] << m[1] << m[2] << endl;//?????3???\n\treturn 0;\n}\n\n\n\n\t\t"} +{"label": "101", "index": "50070", "code": "char namef(int a,int b,int c,int n)\n{\n\tint i;\n\tchar name[3];\n\tfor(i=0;i<3;i++)\n\t{\n\t\tif(a==i)\n\t\t{\n\t\t\tname[i]='A';\n\t\t}\n\t\tif(b==i)\n\t\t{\n\t\t\tname[i]='B';\n\t\t}\n\t\tif(c==i)\n\t\t{\n\t\t\tname[i]='C';\n\t\t}\n\t}\t\n\treturn name[n];\n}\nchar numf(int a,int b,int c,int n)\n{\n\tint i;\n\tchar num[3];\n\tfor(i=0;i<3;i++)\n\t{\n\t\tif(a==i)\n\t\t{\n\t\t\tnum[i]='a';\n\t\t}\n\t\tif(b==i)\n\t\t{\n\t\t\tnum[i]='b';\n\t\t}\n\t\tif(c==i)\n\t\t{\n\t\t\tnum[i]='c';\n\t\t}\n\t}\t\n\treturn num[n];\n\n}\n\nint main()\n{\n\tint a,b,c,A,B,C,i,j;\n\tchar name[3],num[3];\n\tfor(a=0;a<3;a++)\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tif(a==b)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\n\t\t\t\tif((c==b)||(c==a))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tA=(b>a)+(c==a);\n\t\t\t\tB=(a>b)+(a>c);\n\t\t\t\tC=(c>b)+(b>a);\n\t\t\t\tfor(j=0;j<3;j++)\n\t\t\t\t{\n\t\t\t\t\tnum[j]=numf(a,b,c,j);\n\t\t\t\t\tname[j]=namef(A,B,C,j);\n\t\t\t\t}\n\t\t\t\tif((num[0]==name[2]+32)&&((num[2]==name[0]+32)&&(num[1]==name[1]+32)))\n\t\t\t\t{\n\t\t\t\t\tfor(i=2;i>=0;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf(\"%c\",name[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50071", "code": "int i,j,k,a[3],b[3],c[3],d[3],p,q;\nint main(){\n\tfor(i=0;i!=2;i++)\n\t\tfor(j=0;j!=2;j++)\n\t\t\tif(i!=j)\n\t\t\tfor(k=0;k!=2;k++){\n\t\t\t\ta[0]=i;a[1]=j;a[2]=k;\n\t\t\t\tb[0]=(j>i)+(i==k);b[1]=(i>j)+(i>k);b[2]=(k>j)+(j>i);\n\t\t\t\tc[0]=0;c[1]=1;c[2]=2;\n\t\t\t\td[0]=0;d[1]=1;d[2]=2;\n\t\t\t\tfor(p=0;p!=2;p++)\n\t\t\t\t\tfor(q=p+1;q!=3;q++){\n\t\t\t\t\t\tif(a[c[p]]>a[c[q]]){\n\t\t\t\t\t\t\tc[p]=c[p]^c[q];\n\t\t\t\t\t\t\tc[q]=c[p]^c[q];\n\t\t\t\t\t\t\tc[p]=c[p]^c[q];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(b[d[p]]a)+(c==a);\n s=(a>b)+(a>c);\n t=(c>b)+(b>a);//??????????\n for (a=0;a<=2;a++)\n\t{for(b=0;b<=2;b++)\n\t{for(c=0;c<=2;c++)//????????????????\n\t{\n\tif((r+a==2)&&(s+b==2)&&(t+c==2))//????\n\t{\n\tP[0]=a;P[1]=b;P[2]=c;}\n }}}\n\tfor(i=0;i<=2;i++)\n\t{if (P[i]==2) {ch=i+65;cout< a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif(a >= b && a >= c && A <= B && A <= C && b >= c && B <= C){\n\t\t\t\t\tcout << \"ABC\" << endl;\n\t\t\t\t\tgoto loop;\n\t\t\t\t}\n\t\t\t\tif(a >= b && a >= c && A <= B && A <= C && b <= c && B >= C){\n\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\tgoto loop;\n\t\t\t\t}\n\t\t\t\tif(a <= b && a <= c && A >= B && A >= C && b >= c && B <= C){\n\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\tgoto loop;\n\t\t\t\t}\n\t\t\t\tif(a <= b && a <= c && A >= B && A >= C && b <= c && B >= C){\n\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\tgoto loop;\n\t\t\t\t}\n\t\t\t\tif(c >= a && c >= b && C <= A && C <= B && a >= b && A <= B){\n\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t\tgoto loop;\n\t\t\t\t}\n\t\t\t\tif(b >= a && b >= c && B <= A && B <= C && a >= c && A <= C){\n\t\t\t\t\tcout << \"BAC\" << endl;\n\t\t\t\t\tgoto loop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\nloop :\n\treturn 0;\n}"} +{"label": "101", "index": "50074", "code": "int main ()\n{\n\tint a = 0, b = 0, c = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//??abc?0,1,2?????????\n\tfor ( a = 0; a <= 2; a ++ )\n\t\tfor ( b = 0; b <= 2; b ++ )\n\t\t\tfor ( c = 0; c <= 2; c ++ )\n\t\t\t{\n\t\t\t\tif ( a == b || b == c || a == c ) continue;\t\t\t\t\t\t\t\t//??a?b?c???????\n\t\t\t\tif ((2-a == ((b>a)+(c==a)))&&(2-b == ((a>b)+(a>c)))&&(2-c == ((c>b)+(b>a))))\t//??????????\n\t\t\t\t{\n\t\t\t\t\tif ( a == 0 ) cout << \"A\";\n\t\t\t\t\tif ( b == 0 ) cout << \"B\";\n\t\t\t\t\tif ( c == 0 ) cout << \"C\";\n\t\t\t\t\tif ( a == 1 ) cout << \"A\";\n\t\t\t\t\tif ( b == 1 ) cout << \"B\";\n\t\t\t\t\tif ( c == 1 ) cout << \"C\";\n\t\t\t\t\tif ( a == 2 ) cout << \"A\";\n\t\t\t\t\tif ( b == 2 ) cout << \"B\";\n\t\t\t\t\tif ( c == 2 ) cout << \"C\";\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50075", "code": "/*3?????????????? \nA??B??????C??????? \nB??A??????A??C??? \nC????B????B?A???? \n????????????????????? \n???????????3??????*/\n\nint main()\n{\n\tint a,b,c;\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tif(b==a) continue;\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif(c==a||c==b) continue;\n\t\t\t\tif((b>a)+(c==a)+a==3)\n\t\t\t\t\tif((a>b)+(a>c)+b==3)\n\t\t\t\t\t\tif((c>b)+(b>a)+c==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a==1) cout<<\"A\";\n\t\t\t\t\t\t\tif(b==1) cout<<\"B\";\n\t\t\t\t\t\t\tif(c==1) cout<<\"C\";\n\t\t\t\t\t\t\tif(a==2) cout<<\"A\";\n\t\t\t\t\t\t\tif(b==2) cout<<\"B\";\n\t\t\t\t\t\t\tif(c==2) cout<<\"C\";\n\t\t\t\t\t\t\tif(a==3) cout<<\"A\";\n\t\t\t\t\t\t\tif(b==3) cout<<\"B\";\n\t\t\t\t\t\t\tif(c==3) cout<<\"C\";\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\treturn 0;\n}\n\t\t\t\t\t\t\t"} +{"label": "101", "index": "50076", "code": "/*\n * 3.cpp\n *\n * Created on: 2013-10-19\n * Author: Administrator\n */\n\nint main()\n{\n int a,b,c;\n int A,B,C;\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tA=(b>a)+(a==c);\n\t\t\t\tB=(a>b)+(a>c);\n\t\t\t\tC=(c>b)+(b>a);\n\n\t\t\t\t\tif(A>B&&B>C&&aC&&C>B&&aA&&A>C&&bC&&C>A&&bB&&B>A&&cA&&A>B&&c A)+(C == A)))//a????????\n if(b == ((A > B)+(A > C)))\n if(c == ((C > B)+(B > A)))\n {\n for(int i=0;i<=2;i++)\n {\n if(i==A)//????????????????????\n cout <<\"A\";\n else if(i==B)\n cout <<\"B\";\n else if(i==C)\n cout <<\"C\";\n }\n cout < b) + (a > c) == 3 - b)\n\t\t\t\t\t&&((c > b) + (b > a) == 3 - c));\n\t\t\t\t\tif (a > b) //?a,b,c????????\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b > c)\n\t\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\t\telse if (c > a) \n\t\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tcout << \"ACB\";\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tif (a > c)\n\t\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t\t\telse if (c > b)\n\t\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\t}\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "101", "index": "50079", "code": "int main()\n{\n\tint A,B,C;\n\tfor(int a = 1;a <= 3;a ++)\n\t\tfor(int b = 1;b <= 3;b ++)\n\t\t\tfor(int c = 1;c <= 3;c ++){\n\t\t\t\tA = (a < b) + (a == c);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif(a < b && b < c && A > B && B > C) printf(\"ABC\\n\");\n\t\t\t\tif(a < c && c < b && A > C && C > B) printf(\"ACB\\n\");\n\t\t\t\tif(b < a && a < c && B > A && A > C) printf(\"BAC\\n\");\n\t\t\t\tif(b < c && c < a && B > C && C > A) printf(\"BCA\\n\");\n\t\t\t\tif(c < a && a < b && C > A && A > B) printf(\"CAB\\n\");\n\t\t\t\tif(c < b && b < a && C > B && B > A) printf(\"CBA\\n\");\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50080", "code": "int main()\n{\n\tint a=0,b=0,c=0,word[3]={0},i=0;\n\tchar rank[3]={0};\n\tfor(a=0;a<=2;a++)\n\t{\n\t\tfor(b=0;b<=2;b++)\n\t\t{\n\t\t\tif(b==a)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tc=3-a-b;\n\t\t\tword[a]=(b>a)+(c==a);\n\t\t\tword[b]=(a>b)+(a>c);\n\t\t\tword[c]=(c>b)+(b>a);\n\t\t\trank[a]=65;\n\t\t\trank[b]=66;\n\t\t\trank[c]=67;\n\t\t\tif(word[a]==2-a&&word[b]==2-b&&word[c]==2-c)\n\t\t\t{\n\t\t\t\tfor(i=0;i<=2;i++)\n\t\t\t\t{\n\t\t\t\t\tcout<A)\n\t \t a1=1;\n\t if(A>B)\n\t \t b1=1;\n\t if(A>C)\n\t \t b2=1;\n\t if(C>B)\n\t \t c1=1;\n\t if(B>A)\n\t \t c2=1;\n\t if((A+a1+a2==2)&&(B+b1+b2==2)&&(C+c1+c2==2))\n\t \t {\n\t \t flag=1;\n\t \t break;\n\t \t }\n\t }\n\t }\n\t }\n\t if(flag)\n\t\t break;\n\t}\nif(flag)\n\tbreak;\n}\nif(A==0)\n\tcout<<'A';\nif(B==0)\n\tcout<<'B';\nif(C==0)\n\tcout<<'C';\nif(A==1)\n\tcout<<'A';\nif(B==1)\n\tcout<<'B';\nif(C==1)\n\tcout<<'C';\nif(A==2)\n\tcout<<'A';\nif(B==2)\n\tcout<<'B';\nif(C==2)\n\tcout<<'C';\nreturn 0;\n}\n\n"} +{"label": "101", "index": "50082", "code": "/*\n * bifanliang.cpp\n *\n * Created on: 2012-10-21\n * Author: ??\n * ????????3??????\n */\n\n\nint main(){\n int A,B,C,i; //????\n\n for(A=0; A<=2 ;A++)\n for(B=0; B<=2 ;B++)\n \t for(C=0 ;C<=2 ;C++)\n \t for(i=0 ;i<=2 ;i++) //A,B,C??????\n\n if((B>A)+(C==A)+A==2\n &&(A>B)+(A>C)+B==2\n &&(C>B)+(B>A)+C==2) //????????????????\n {if(A==i) cout<<\"A\";\n if(B==i) cout<<\"B\";\n if(C==i) cout<<\"C\";} //????????\n\n return 0;\n\n}\n"} +{"label": "101", "index": "50083", "code": "/**\n* @file 1000010424_4.cpp\n* @author ???\n* @date 2010?11?17\n* @description\n* ??????:???\n*/\n\n\n\nint main()\n{\n\tint rice[3];\t\t\t\t\t\t//???-1?0?1??????; 1???\n\tchar name[3] = {'A', 'B', 'C'};\t\t//????????\n\tint right[3];\t\t\t\t\t\t//???????right[i]+rice[i]==1?\n\tint i;\n\n\tfor(rice[0] = -1; rice[0] <= 1; rice[0]++)\n\t\tfor(rice[1] = -1; rice[1] <= 1; rice[1]++)\n\t\t\tif(rice[1] != rice[0])\n\t\t\t\tfor(rice[2] = -1; rice[2] <= 1; rice[2]++)\n\t\t\t\t\tif(rice[2] != rice[1] && rice[2] != rice[0])\n\t\t\t\t\t{\n\t\t\t\t\t\tright[0] = (rice[1] > rice[0]) + (rice[2] == rice[0]);\n\t\t\t\t\t\tright[1] = (rice[0] > rice[1]) + (rice[0] > rice[2]);\n\t\t\t\t\t\tright[2] = (rice[2] > rice[1]) + (rice[1] > rice[0]);\n\n\t\t\t\t\t\tif((rice[0] + right[0]) == 1 && (rice[1] + right[1]) == 1 && (rice[2] + right[2]) == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(i = 0; rice[i] != -1; i++)\n\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\tcout << name[i];\t//?????\n\n\t\t\t\t\t\t\tfor(i = 0; rice[i] != 0; i++)\n\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\tcout << name[i];\t\n\n\t\t\t\t\t\t\tfor(i = 0; rice[i] != 1; i++)\n\t\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\tcout << name[i];\t//?????\n\t\t\n\t\t\t\t\t\t\tcout << endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\treturn 0;\n}"} +{"label": "101", "index": "50084", "code": "int f(int a,int b)\n{ int c;\n if(a>=b)\n c=1;\n else\n c=0;\n return c;\n}\nint main()\n{\n int a,b,c,A,B,C,sum,g=0,s=0;\n for(A=1;A<4;A++)\n {\n for(B=1;B<4;B++)\n {\n for(C=1;C<4;C++)\n { \n a = (B > A) + (C == A);\n b = (A > B) + (A > C);\n c = (C > B) + (B > A);\n sum = (f(A,B)+f(a,b)==1)+(f(B,C)+f(b,c)==1)+(f(C,A)+f(c,a)==1);\n if(sum == 3)\n {\n if(A>=B)\n {\n if(B>=C)\n cout << \"ABC\";\n else if(A>=C)\n cout << \"ACB\";\n else\n cout << \"CAB\";\n }\n else\n {\n if(A>=C)\n cout << \"BCA\";\n else if(B>=C)\n cout << \"BAC\";\n else\n cout << \"CBA\";\n }\n g=1;\n break;\n }\n }\n if(g==1)\n {\n s=1;\n break;\n }\n }\n if(s==1)\n break;\n }\n return 0;\n}\n \n"} +{"label": "101", "index": "50085", "code": "/*\n * appetite.cpp\n * Author: ???\n * Created on: 2012-10-23\n * function????\n */\nint main()\n{\n\tint A,As,B,Bs,C,Cs,i;//????\n\tchar app[4][2];//???????\n\tfor(A=1;A<=3;A++)//????\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tif(A==B)continue;\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\tif(A==C||B==C)continue;//???????????????????????????\n\t\t\t\tAs=(AB)+(A>C);//B???\n\t\t\t\tCs=(BA);//C???\n\t\t\t\tif(As+A==3&&Bs+B==3&&Cs+C==3)//?????????????????\n\t\t\t\t{\n\t\t\t\t\tstrcpy(app[A],\"A\");//????A?app[A]\n\t\t\t\t\tstrcpy(app[B],\"B\");//????B?app[B]\n\t\t\t\t\tstrcpy(app[C],\"C\");//????C?app[C]\n\t\t\t\t\tfor(i=1;i<=3;i++)//?????????\n\t\t\t\t\t\tcout< A) + (A == C);\n\t\t\tword[B] = (A > B) + (A > C);\n\t\t\tword[C] = (C > B) + (B > A);\n\t\t\tman[A] = 'A';\n\t\t\tman[B] = 'B';\n\t\t\tman[C] = 'C';\n\t\t\tif(word[0] > word[1] > word[2])\t\t\n\t\t\t{cout << man[0] << man[1] << man[2] << endl;}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50087", "code": "//****************************************\n//*?????? **\n//*?????? 1100012798 **\n//*???2011.10.15 **\n//****************************************\nint main()\n{\n int a,b,c,ai,bi,ci; // ??a,b,c,ai,bi,ci???\n char k[3]; // ??k[3]?????\n for (a = 0;a < 3;a++) // ????,???a,b,c?????\n {\n for (b = 0;b < 3;b++)\n {\n for (c = 0;c < 3;c++)\n {\n ai = 0;\n bi = 0;\n ci = 0; // ??????\n if (b > a)\n ai++;\n if (c == a)\n ai++;\n if (b < a)\n bi++;\n if (c < a)\n bi++;\n if (c > b)\n ci++;\n if (b > a)\n ci++; // ????????????\n if ((a + ai == 2) && (b + bi == 2) && (c + ci == 2))\n {\n k[a] = 'A';\n k[b] = 'B';\n k[c] = 'C';\n cout< a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif ((b == a) || (b == c) || (a == c))\n\t\t\t\t\tcontinue;\n\t\t\t\tif ((a + A == 2) && (b + B == 2) && (c + C == 2))\n\t\t\t\t{\n\t\t\t\t\tif (a == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b == 1)\n\t\t\t\t\t\t\tcout<<\"CBA\";\n\t\t\t\t\t\tif (b == 0)\n\t\t\t\t\t\t\tcout<<\"BCA\";\n\t\t\t\t\t}\n\t\t\t\t\tif (a == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b == 0)\n\t\t\t\t\t\t\tcout<<\"BAC\";\n\t\t\t\t\t\tif (b == 2)\n\t\t\t\t\t\t\tcout<<\"CAB\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\t\t\t\n"} +{"label": "101", "index": "50089", "code": "// ???\n// ??? 1100012820\n// 20111012\n//*******************\nint main()\n{\n\tint a, b, c, d;\n\tint cc1, cc2, cc3;\n\tfor (a = 1; a <= 3; a++)\n\t{\n\t\tfor (b = 1; b <= 3; b++)\n\t\t{\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\tcc1 = (b > a) + (c == a);\n\t\t\t\tcc2 = (a > b) + (a > c);\n\t\t\t\tcc3 = (c > b) + (b > a);\n\t\t\t\tif (((a + cc1) == 3) && ((b + cc2) == 3) && ((c + cc3) == 3))\n\t\t\t\t{\n\t\t\t\t\tif (a == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b == 2)\n\t\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\t}\n\t\t\t\t\tif (b == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a == 2)\n\t\t\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\t}\n\t\t\t\t\tif (c == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b == 2)\n\t\t\t\t\t\t\tcout << \"ABC\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"BAC\" << endl;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50090", "code": "/*\n *???????.cpp\n *?????\n *????: 2012-10-17\n *?????????????????????????\n */\n\n\nint main(){\n\tint Aapp,Bapp,Capp,i;\t\t\t\t\t//??A?B?C??????Aapp,Bapp,Capp?????i\n\tint Aw,Bw,Cw;\t\t\t\t\t\t\t//??A?B?C?????Aw,Bw,Cw\n for (Aapp=1;Aapp<=3;Aapp++)\t\t\t\t//?Aapp???1?3??\n {\n \tfor(Bapp=1;Bapp<=3;Bapp++)\t\t\t//?Bapp???1?3??\n \t{\n \t\tfor(Capp=1;Capp<=3;Capp++)\t\t//?Capp???1?3??\n \t\t{\n \t\t\tAw=(Bapp>Aapp)+(Capp==Aapp);\t//A???\n \t\t\tBw=(Aapp>Bapp)+(Aapp>Capp);\t\t//B???\n \t\t\tCw=(Capp>Bapp)+(Bapp>Aapp);\t\t//C???\n \t\t\tif (3-Aapp==Aw&&3-Bapp==Bw&&3-Capp==Cw)\t\t\t//?????????????\n \t\t\t{\n \t\t\t\tfor(i=0;i<=3;i++)\t\t\t//?????3??0\n \t\t\t\t{\n \t\t\t\t\tif(Aapp==i)\t\t\t\t//?A??==i?\n \t\t\t\t\t\tcout<<\"A\";\t//??\"A\"\n \t\t\t\t\tif(Bapp==i) \t\t\t//?B??==i?\n \t\t\t\t\t\tcout<<\"B\";\t//??\"B\"\n \t\t\t\t\tif(Capp==i)\t\t\t\t//?C??==i?\n \t\t\t\t\t\tcout<<\"C\";\t//??\"C\"\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }\n return 0;\t\t\t\t\t\t\t\t\t//????\n}"} +{"label": "101", "index": "50091", "code": "int main(){\n int a,b,c,aa,bb,cc,i;\n char food[4];\n for(a=1;a<4;a++)\n \tfor(b=1;b<4;b++)\n \t\tfor(c=1;c<4;c++){\n \t\t\taa=((b>a)+(c==a));\n \t\t\t bb=((a>b)+(a>c));\n \t\t\t cc=((c>b)+(b>a));\n if((((a==b)&&(aa==bb))+((abb))+((a>b)&&(aacc))+((a>c)&&(aac)&&(bbcc)))==1){\n \t\t\t food[a]='A';\n \t\t\t food[b]='B';\n \t\t\t food[c]='C';\n \t\t\tfor(i=1;i<4;i++)\n \t\t\t\tcout<0)\treturn 1;\n\tif(n<0)\treturn -1;\n\telse return 0;\n}\nint main()\n{\n\tint a,b,c;\n\tint word[4];\n\tfor(int a=1;a<=3;a++)\n\t\tfor(int b=1;b<=3;b++)\n\t\t\tfor(int c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif(a!=1&&b!=1&&c!=1)\tcontinue;\n\t\t\t\tif(a!=2&&b!=2&&c!=2&&!(a==1&&b==1&&c==1))\tcontinue;\n\t\t\t\tword[1]=(b>a)+(c==a);\n\t\t\t\tword[2]=(a>b)+(a>c);\n\t\t\t\tword[3]=(c>b)+(b>a);\n\t\t\t\tif(sgn(word[1]-word[2])==-sgn(a-b)&&sgn(word[1]-word[3])==-sgn(a>c)&&sgn(word[3]-word[2])==-sgn(c>b))\n\t\t\t\t{\n\t\t\t\t\tif(a==1)\tcout<<'A';\n\t\t\t\t\tif(b==1)\tcout<<'B';\n\t\t\t\t\tif(c==1)\tcout<<'C';\n\t\t\t\t\tif(a==2)\tcout<<'A';\n\t\t\t\t\tif(b==2)\tcout<<'B';\n\t\t\t\t\tif(c==2)\tcout<<'C';\t\t\t\t\t\n\t\t\t\t\tif(a==3)\tcout<<'A';\n\t\t\t\t\tif(b==3)\tcout<<'B';\n\t\t\t\t\tif(c==3)\tcout<<'C';\n\t\t\t\t\tcout<a)+(c==a);\n\t\t\t B=(a>b)+(a>c);\n\t\t\t C=(c>b)+(b>a);\n\t\t\t if(A>B&&B>C&&aC&&A>B&&aA&&A>C&&bC&&C>A&&bA&&A>B&&cB&&B>A&&ca)+(c==a)==3-a)\n\t\t\t\t{\n\t\t\t\t\tif((a>b)+(a>c)==3-b)\n\t\t\t\t\t{\n\t\t\t\t\t\tif((c>b)+(b>a)==3-c)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a==1)\n\t\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\t\tif(b==1)\n\t\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t\t\tif(a==2)\n\t\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\t\tif(b==2)\n\t\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\t\tif(c==2)\n\t\t\t\t\t\t\t\tcout<<\"C\";\n if(a==3)\n\t\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\t\tif(b==3)\n\t\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\t\tif(c==3)\n\t\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50095", "code": "\nint check_assertions_a(int i, int j, int k)\n{\n int correct = 0;\n if (j < i) {\n correct += 1;\n }\n if (k == i) {\n correct += 1;\n }\n return correct;\n}\n\nint check_assertions_b(int i, int j, int k)\n{\n int correct = 0;\n if (i < j) {\n correct += 1;\n }\n if (i < k) {\n correct += 1;\n }\n return correct;\n}\n\nint check_assertions_c(int i, int j, int k)\n{\n int correct = 0;\n if (k < j) {\n correct += 1;\n }\n if (j < i) {\n correct += 1;\n }\n return correct;\n}\n\nint main()\n{\n int i, j, k;\n int array[3] = {1, 2, 3};\n for (i = 0; i < 3; i++) {\n for (j = 0; j < 3; j++) {\n for (k = 0; k < 3; k++) {\n if (i == j || i == k || j == k) {\n continue;\n }\n if (check_assertions_a(i, j, k) == i &&\n check_assertions_b(i, j, k) == j &&\n check_assertions_c(i, j, k) == k) {\n printf(\"%c%c%c\", k+'A', j+'A', i+'A');\n }\n }\n }\n }\n return 0;\n}"} +{"label": "101", "index": "50096", "code": "int main(){\nint a,b,c;\nfor(int i=0;i<3;i++){\t\t\t\t\t\t//for?????????????// \nfor(int j=0;j<3;j++){\nfor(int k=0;k<3;k++){\na=(j>i)+(i==k)==2-i;\nb=(i>j)+(i>k)==2-j;\nc=(k>j)+(j>i)==2-k;\nif(a&&b&&c)\t\t\t\t\t\t\t\t\t//???????????// \n{\nint d[3]={i,j,k},p;\nchar f[3]={'A','B','C'},q;\nfor(int x=0;x<2;x++){\nfor(int y=0;y<2-x;y++){\nif(d[y]>d[y+1]){\np=d[y];\nd[y]=d[y+1];\nd[y+1]=p;\nq=f[y];\nf[y]=f[y+1];\t\t\t\t\t\t\t\t//??// \nf[y+1]=q;\n}\n}\n}\ncout<a)+(c==a);\n\t\t\t\t\t\t\t Bb=(a>b)+(a>c);\n\t\t\t\t\t\t\t Cc=(c>b)+(b>a);\n\t\t\t\t\t\t\t if (a+Aa==3)\n\t\t\t\t\t\t\t \t \tif(b+Bb==3)\n\t\t\t\t\t\t\t \t \t\tif(c+Cc==3)\n\n\t \tif(a>b&&b>c)\n\t \t\tcout<<\"CBA\";\n\t \telse\n\t if(a>c&&c>b)\n\t \t \t\tcout<<\"BCA\";\n\t else\n\t if(b>a&&a>c)\n\t \t \t\tcout<<\"CAB\";\n\t else\n\t if(b>c&&c>a)\n\t \t \t\tcout<<\"ACB\";\n\t else\n\t if(c>b&&b>a)\n\t \t \t\tcout<<\"ABC\";\n\t else\n\t if(c>a&&a>b)\n\t \t \t\tcout<<\"BAC\";\n\t\t\t}\n\n\nreturn 0;\n}"} +{"label": "101", "index": "50098", "code": "//?????? ??? 1000012729\nint main()\n{\n\tint a,b,c,i; //??a,b,c?A,B,C??????\n\tchar eat[3]; //?????????????\n\tint ansa=0,ansb=0,ansc=0; //????????\n\tfor(a=0;a<3;a++)\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\n\t\t\t\tansa=(b=0;i--) //??????????????\n\t\tcout< a) + (a == c) + a;\n\t\t\t\tB = (a > b) + (a > c) + b;\n\t\t\t\tC = (c > b) + (b > a) + c;\n\t\t\t\tif (A == B && B == C)\n\t\t\t\t{\n\t\t\t\t\tfor (i = 0; i <= 2; i ++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a == i) cout << 'A';\n\t\t\t\t\t\tif (b == i) cout << 'B';\n\t\t\t\t\t\tif (c == i) cout << 'C';\n\t\t\t\t\t}\n\t\t\t\t\tcout << endl;\n\t\t\t\t}\n\t\t\t}\n}"} +{"label": "101", "index": "50100", "code": "main()\n{\n int a,b,c,a1,b1,c1;\n for(a=0;a<3;a++)\n {\n for(b=0;b<3;b++)\n {\n for(c=0;c<3;c++)\n {\n a1=0;\n b1=0;\n c1=0;\n if(b>a)\n a1++;\n if(c==a)\n a1++;\n if(a>b)\n b1++;\n if(a>c)\n b1++;\n if(c>b)\n c1++;\n if(b>a)\n c1++;\n if(a1+a==b1+b&&b1+b==c1+c)\n {\n printf(\"BCA\");\n }\n }\n }\n }\n}\n"} +{"label": "101", "index": "50101", "code": "//**************************************\n//* ?????? *\n//* ????? *\n//* ???11?12? *\n//* ????????? *\n//**************************************\nint main()\n{\n\tint words[4],rank[4]; //words????????rank????\n\tint A,B,C;\n\tfor(A=1;A<4;A++)\n\t{\n\t\tfor(B=1;B<4;B++)\n\t\t{\n\t\t\tif(B==A) continue;\n\t\t\tC=6-A-B; //??????\n\t\t\t\twords[1]=(B>A)+(A==C);\n\t\t\t\twords[2]=(A>B)+(A>C);\n\t\t\t\twords[3]=(C>B)+(B>A);\n\t\t\t\t\trank[A]=1;\n\t\t\t\t\trank[B]=2;\n\t\t\t\t\trank[C]=3;\n\t\t\t\t\t\tif(words[rank[1]]>words[rank[2]]&&words[rank[2]]>words[rank[3]]) //????????\n\t\t\t\t\t {\n\t\t\t\t\t\t\tfor(int i=1;i<4;i++) //??????\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout<<(char)(rank[i]+64);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50102", "code": "/*\n * compare2.cpp\n *\n * Created on: 2012-10-28\n * Author: Administrator\n */\nint main ()\n{\n\tint a,b,c;\n\tint sum1 = 0 , sum2 = 0 , sum3 = 0 ;\n\ta = 1 ; b = 2 ; c = 3 ;\n\tsum1 = (b > a)+(a == c)+ a ;\n sum2 = (a > b)+(a > c)+ b ;\n\tsum3 = (c > b)+(b > a)+ c ;\n\tif(sum1 == 3 && sum2 == 3 && sum3 == 3)\n {\n\t\tcout <<\"A\"<<\"B\"<<\"C\";\n\t}\n\telse\n\t a = 1 ; b = 3 ; c = 2 ;\n\t sum1 = (b > a)+(a == c)+ a ;\n\t sum2 = (a > b)+(a > c)+ b ;\n\t\tsum3 = (c > b)+(b > a)+ c ;\n\t\tif(sum1 == 3 && sum2 == 3 && sum3 == 3)\n\t {\n\t\t\tcout<<\"A\"<<\"C\"<<\"B\";\n\t\t}\n\t\telse a = 2 ; b = 1 ; c = 3 ;\n\t\tsum1 = (b > a)+(a == c)+ a ;\n\t sum2 = (a > b)+(a > c)+ b ;\n\t sum3 = (c > b)+(b > a)+ c ;\n\t if(sum1 == 3 && sum2 == 3 && sum3 == 3)\n\t {\n\t \tcout<<\"B\"<<\"A\"<<\"C\";\n\t }\n\t else a = 2 ; b = 3 ; c = 1 ;\n\t sum1 = (b > a)+(a == c)+ a ;\n\t sum2 = (a > b)+(a > c)+ b ;\n\t sum3 = (c > b)+(b > a)+ c ;\n\t if(sum1 == 3 && sum2 == 3 && sum3 == 3)\n\t {\n\t \tcout<<\"C\"<<\"A\"<<\"B\";\n\t }\n\t else a = 3 ; b = 2 ; c = 1 ;\n\t sum1 = (b > a)+(a == c)+ a ;\n\t sum2 = (a > b)+(a > c)+ b ;\n \t\tsum3 = (c > b)+(b > a)+ c ;\n \t\tif(sum1 == 3 && sum2 == 3 && sum3 == 3)\n \t\t{\n \t\t\tcout<<\"C\"<<\"B\"<<\"A\";\n \t\t}\n \t\telse\n \t\t{\n \t\t\ta = 3 ; b = 1 ;c = 2 ;\n \t\t sum1 = (b > a)+(a == c)+ a ;\n \t sum2 = (a > b)+(a > c)+ b ;\n \t\t sum3 = (c > b)+(b > a)+ c ;\n \t\t if(sum1 == 3 && sum2 == 3 && sum3 == 3)\n \t\t {\n \t\t\tcout<<\"B\"<<\"C\"<<\"A\";\n \t\t }\n \t\t}\n\t return 0 ;\n}"} +{"label": "101", "index": "50103", "code": "int main()\n{\n int A,B,C,shumu[4],i;\n char pai[4];\n for(i=1;i<=3;i++)shumu[i]=0;\n for(A=1;A<=3;A++) \n {\n for(B=1;B<=3;B++)\n {\n if(A==B)continue;\n C=6-A-B;\n shumu[1]=(B>A)+(A==C);//A??????? \n shumu[2]=(A>B)+(A>C);//B??????? \n shumu[3]=(C>B)+(B>A);//C??????? \n if((shumu[1]+A)==(shumu[2]+B) && (shumu[2]+B)==(shumu[3]+C))//????????????????????????? \n {\n pai[A]='A';\n pai[B]='B';\n pai[C]='C';\n }\n }\n }\n for(i=1;i<=3;i++)cout<A)+(A==C)==(2-A))&&((A>B)+(A>C)==(2-B))&&((C>B)+(B>A)==(2-C))&&(A!=B)&&(A!=C)&&(B!=C))\n {if(A>B>C)\n cout<<\"C\"<<\"B\"<<\"A\"<C>B)\n cout<<\"B\"<<\"C\"<<\"A\"<A>C)\n cout<<\"C\"<<\"A\"<<\"B\"<C>A)\n cout<<\"A\"<<\"C\"<<\"B\"<B>A)\n cout<<\"A\"<<\"B\"<<\"C\"<A>B)\n cout<<\"B\"<<\"A\"<<\"C\"<a) i++;if(a==c) i++;\n\t\t\t\tif(a>b) j++;if(a>c) j++;\n\t\t\t\tif(c>b) k++;if(b>a) k++;\n\t\t\t\tif(a+i==2&&b+j==2&&c+k==2)\n\t\t\t\t{\n\t\t\t\t\tw=a;x=b;y=c;\n\t\t\t\t}\n\t\t\t\ti=0;j=0;k=0;\n\t\t\t}\n\tif(wa) + (c==a);\t\t\t\t\t\t\t\t\t\t\t\t\t\t//??????\n\t\t\t\ttb = (a>b) + (a>c);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//????????????\n\t\t\t\ttc = (c>b) + (b>a);\n \n if( \n\t\t\t\t\t ( ((atb)) + ((a==b)&&(ta==tb)) + ((a>b)&&(tatc)) + ((b==c)&&(tb==tc)) + ((b>c)&&(tbta)) + ((c==a)&&(tc==ta)) + ((c>a)&&(tci)+(k==i));\n x[1]=2-((i>j)+(i>k));\n x[2]=2-((k>j)+(j>i));\n if (x[0]==i && x[1]==j && x[2]==k) {\n for (int q=0; q<3; q++) {\n if (x[q]==0) {\n cout< a) + (c == a); //ABC???? \n B = (a > b) + (a > c);\n C = (c > b) + (b > a);\n if(A == 2 && a == 1 && B == 1 && b ==2 && C ==0 && c == 3)\n cout << \"A\" << \"B\" << \"C\" << endl;\n if( A == 2 && a == 1 && B == 0 && b == 3 && C == 1 && c == 2)\n cout << \"A\" << \"C\" << \"B\" << endl;\n if( A == 1 && a == 2 && B == 0 && b == 3 && C == 2 && c == 1)\n cout << \"C\" << \"A\" << \"B\" << endl;\n if( A == 1 && a == 2 && B == 2 && b == 1 && C == 0 && c == 3)\n cout << \"B\" << \"A\" << \"C\" << endl;\n if( A == 0 && a == 3 && B == 1 && b == 2 && C == 2 && c == 1)\n cout << \"C\" << \"B\" << \"A\" < 3) + (1 == 3)) == 0) && (((3 > 2) + (3 > 1)) == 3) && (((1 > 2) + (2 > 3)) == 2))\n\t\tcout << \"CBA\"; //?????????\n\telse if((((1 > 3) + (2 == 1)) == 0) && (((3 > 1) + (3 > 2)) == 2) && (((2 > 1) + (1 > 3)) == 1))\n\t\tcout << \"BCA\";\n\telse if((((3 > 2) + (3 == 2)) == 1) && (((2 > 3) + (2 > 1)) == 0) && (((1 > 3) + (3 > 2)) == 2))\n\t\tcout << \"CAB\";\n\telse if((((3 > 1) + (2 == 3)) == 2) && (((1 > 3) + (1 > 2)) == 0) && (((2 > 3) + (3 > 1)) == 1))\n\t\tcout << \"ACB\";\n\telse if((((1 > 2) + (3 == 2)) == 1) && (((2 > 1) + (2 > 3)) == 2) && (((3 > 1) + (1 > 2)) == 0))\n\t\tcout << \"BAC\";\n\telse\n\t\tcout << \"ABC\";\n\treturn 0;\n}\n"} +{"label": "101", "index": "50110", "code": "/*\n * practice.cpp\n *\n * Created on: 2013-12-26\n * Author: 111\n */\n\nint main()\n{\n\tint a,b,c,isa,isb,isc;\n\tfor (a=1;a<=3;a++)\n\t\tfor (b=1;b<=3;b++)\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tisa = (b>a) + (c==a);\n\t\t\t\tisb = (a>b) + (a>c);\n\t\t\t\tisc = (c>b) + (b>a);\n\t\t\t\tif ((a+isa==b+isb)&&(b+isb==c+isc))\n\t\t\t\t{\n\t\t\t\t if(isaA)+(C==A));\n b=((A>B)+(A>C));\n c=((C>B)+(B>A));\n if(((A>B&&ab))\n +((A>C&&ac))\n +((Bc)||(B>C&&ba)-(a==c))&&(b==2-(a>b)-(a>c))&&(c==2-(c>b)-(b>a))) //??????????\n //????2??????? \n if(a>b&&b>c) cout<<\"CBA\";\n else if(a>c&&c>b) cout<<\"BCA\";\n else if(b>c&&c>a) cout<<\"ACB\";\n else if(b>a&&a>c) cout<<\"CAB\";\n else if(c>a&&a>b) cout<<\"BAC\";\n else if(c>b&&b>a) cout<<\"ABC\"; //?????????? \n return 0;\n}\n"} +{"label": "101", "index": "50113", "code": "int main()\n{\n\tint A, B, C, a, b, c;\n\tfor(A = 0; A < 3; A ++)\n\t{\n\t\tfor(B = 0; B < 3; B ++ )\n\t\t{\n\t\t\tif( B == A) continue;\n\t\t\tC = 3 - A - B;\n\t\t\n\t\n\t\ta = (B > A) + (C == A);\n\t\tb = (A > B) + (A > C);\n\t\tc = (C > B) + (B > A);\n\t\tif((A + a) == 2 && (B + b) == 2 && (C + c) == 2)\n\t\t{\n\t\t\tif(A > B && B > C)\n\t\t\t\tcout << \"CAB\" << endl;\n\t\t\tif(B > A && A > C)\n\t\t\t\tcout << \"CAB\" << endl;\n\t\t\tif(C > A && A > B)\n\t\t\t\tcout << \"BAC\" << endl;\t\n\t\t\tif(A > C && C > B)\n\t\t\t\tcout << \"BCA\" << endl;\n\t\t\tif(B > C && C > A)\n\t\t\t\tcout << \"ACB\" << endl;\n\t\t\tif(C > B && B > A)\n\t\t\t\tcout << \"ABC\" << endl;\n\t\t}\n\t\t}\n\t}\n\t\treturn 0;\n}\n\n\n\n"} +{"label": "101", "index": "50114", "code": "//\n//\t????:\t???\n//\t????:\t????????3?????\n//\t????:\t? ? ( ? ? : 1000012733 ) \n//\t????:\t2010 ? 11 ? 20 ?\n//\nint main()\n{\n\tint a, b, c, i, j, k, sum1, sum2, sum3;\t\t//????????????????a?b?c???????????sum1?sum2?sum3???????????????????????\n\tfor ( i = 1; i <= 3; i ++ )\n\t{\n\t\ta = i;\n\t\tfor ( j = 1; j <= 3; j ++ )\n\t\t{\n\t\t\tb = j;\n\t\t\tif ( b != a )\t//b????a??????\n\t\t\t\tfor ( k = 1; k <= 3; k ++ )\n\t\t\t\t{\n\t\t\t\t\tc = k;\n\t\t\t\t\tif (( c != a ) && ( c != b ))\t//c????a?b??????\n\t\t\t\t\t{\n\t\t\t\t\t\tsum1 = a + ( b > a ) + ( c == a );\t\t\n\t\t\t\t\t\tsum2 = b + ( a > b ) + ( a > c );\n\t\t\t\t\t\tsum3 = c + ( c > b ) + ( b > a );\t//??????????????????\n\t\t\t\t\t\tif (( sum1 == 3 ) && ( sum2 == 3 ) && ( sum3 == 3 ))\t//????????????????????\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (( a < b ) && ( b < c ))\n\t\t\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\t\t\tif (( a < c ) && ( c < b ))\n\t\t\t\t\t\t\t\tcout << \"ACB\"; \n\t\t\t\t\t\t\tif (( b < a ) && ( a < c ))\n\t\t\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t\t\t\tif (( b < c ) && ( c < a ))\n\t\t\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\t\t\tif (( c < a ) && ( a < b ))\n\t\t\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\t\t\tif (( c < b ) && ( b < a ))\n\t\t\t\t\t\t\t\tcout << \"CBA\";\t\t//?????????????????\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50115", "code": "int main()\n{\n\tint A=0,B=0,C=0,a=0,b=0,c=0,i=0;\n\tchar rank[3];\n\tfor(A=0;A<3;A++)\n\t{\n\t\tfor(B=0;B<3;B++)\n\t\t{\n\t\t\tif(A==B)continue;\n\t\t\t\tC=3-A-B;\n\t\t\t\ta=(B>A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\tif((A+a==2)&&(B+b==2)&&(C+c==2))\n\t\t\t{\n\t\t\t\trank[A]='A';\n\t\t\t\trank[B]='B';\n\t\t\t\trank[C]='C';\n\t\t\t}\n\t\t}\n\n\t}\n\tfor(i=0;i<3;i++)\n\t{\n\t\tcout< a ) + ( c == a ) ;\n words[b] = ( a > b ) + ( a > c ) ;\n words[c] = ( c > b ) + ( b > a ) ;\n \n if( words[1] > words[2] && words[2] > words[3] ) //?????????????a?b?c????????????? \n {\n char person[4] ;\n person[0] = 0 ;\n person[a] = 'A' ; //????????????? \n person[b] = 'B' ;\n person[c] = 'C' ;\n cout << person[1] << person[2] << person[3] ;\n break ;\n }\n } \n } \nreturn 0 ;\n} "} +{"label": "101", "index": "50117", "code": "int main() //???\n{\n\tint A,B,C,i=0,n[4];\n\tchar m[4]; //????\n\tfor(A=1;A<4;A++)\n\t{\n\t\tfor(B=1;B<4;B++)\n\t\t{\n\t\t\tif(A==B)continue;\n\t\t\tC=6-A-B;\n\t\t\tm[A]='A';\n\t\t\tm[B]='B';\n\t\t\tm[C]='C';\n\t\t\tn[A]=(B>A)+(C==A);\n\t n[B]=(A>B)+(A>C);\n\t n[C]=(C>B)+(B>A);\n\t\t\tif(((n[A]>n[B]&&B>A)||(n[B]>n[A]&&Bn[C]&&C>A)||(n[C]>n[A]&&Cn[B]&&B>C)||(n[B]>n[C]&&B a) + (a == c) + a == 3)\n\t\t\t\t && ((b < a) + (a > c) + b == 3)\n\t\t\t\t && ((c > b) + (b > a) + c == 3)) // ???????????????????????3\n\t\t\t\t {\n\t\t\t\t if (a > b && b > c)\n cout << \"C\" << \"B\" << \"A\" << endl;\n else if (a > c && c > b)\n cout << \"B\" << \"C\" << \"A\" << endl;\n else if (b > a && a > c)\n cout << \"C\" << \"A\" << \"B\" << endl;\n else if (b > c && c > a)\n cout << \"A\" << \"C\" << \"B\" << endl;\n else if (c > a && a > b)\n cout << \"B\" << \"A\" << \"C\" << endl;\n else if (c > b && b > a)\n cout << \"A\" << \"B\" << \"C\" << endl; // ???????????????\n\t\t\t\t }\n }\n }\n }\n return 0;\n}\n"} +{"label": "101", "index": "50119", "code": "int main()\n{ int vol[3]={0},judge[3]={0},i,j,k,ri,rj; //??vol?judge????????????????\n for(i=0;i<3;i++)\n {\n\t for(j=0;j<3;j++)\n\t {\n\t\t for(k=0;k<3;k++)\n\t\t {\n\t\t\t vol[0]=i;vol[1]=j;vol[2]=k;\n\t\t\t judge[0]=(vol[0]vol[1])+(vol[0]>vol[2]);\n\t\t\t judge[2]=(vol[2]>vol[1])+(vol[1]>vol[0]); //??????????\n\n\t\t\t for(ri=0;ri<3;ri++)\n\t\t\t {\n\t\t\t\t for(rj=0;rj<3;rj++)\n\t\t\t\t {\n\t\t\t\t\t if( (vol[ri]>=vol[rj]) && (judge[ri]>judge[rj]) ) goto NextTime; //?????????????????????????\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t for(ri=2;ri>=0;ri--)\n\t\t\t {\n\t\t\t\t for(rj=0;rj<3;rj++)\n\t\t\t\t {\n\t\t\t\t\t if(vol[rj]==ri) cout<<(char)(rj+65); //?????????????????goto?????????\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t goto endall ;\n\n\t\t\t NextTime: ;\n\t\t }\n\t }\n }\n endall: ;\n\n\n\treturn 0;\n}"} +{"label": "101", "index": "50120", "code": "int main()\n{\n int A=0,B=0,C=0,a2,b2,c2,a1,b1,c1;\n for(A=0;A<3;A++)\n {\n for(B=0;B<3;B++)\n {\n for(C=0;C<3;C++) //??????ABC?????\n {\n a1=B>A;\n a2=C==A;\n b1=A>B;\n b2=A>C;\n c1=C>B;\n c2=B>A; //??????\n if(A>B&&a1+a2C&&b1+b2c1+c2)\n {\n if(A>C&&a1+a2c1+c2)\n cout<<\"BAC\";\n }\n }\n else if(Ab1+b2)\n {\n if(A>C&&a1+a2c1+c2)\n {\n if(C>B&&c1+c2b1+b2)\n cout<<\"ACB\"; //??????????\n }\n }\n }\n \n }\n }\n return 0;\n}"} +{"label": "101", "index": "50121", "code": "int main()\n{\n\tint a, b, c;\n\tfor(a = 1; a <= 3; a++)\n\t{\n\t\tfor(b = 1; b <= 3; b++)\n\t\t{\n\t\t\tfor(c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\tif(a != b && a != c && b != c)\n\t\t\t\t{\n\t\t\t\t\tint ca = 0;\n\t\t\t\t\tint cb = 0;\n\t\t\t\t\tint cc = 0;\n\t\t\t\t\tif(b < a)\n\t\t\t\t\t\tca++;\n\t\t\t\t\tif(c == a)\n\t\t\t\t\t\tca++;\n\t\t\t\t\tif(a < b)\n\t\t\t\t\t\tcb++;\n\t\t\t\t\tif(a < c)\n\t\t\t\t\t\tcb++;\n\t\t\t\t\tif(c < b)\n\t\t\t\t\t\tcc++;\n\t\t\t\t\tif(b < a)\n\t\t\t\t\t\tcc++;\n\t\t\t\t\tif(a - ca == 1 && b - cb == 1 && c - cc == 1)\n\t\t\t\t\t{\n\t\t\t\t\tif(a == 3)\n\t\t\t\t\t\tcout << \"A\";\n\t\t\t\t\tif(b == 3)\n\t\t\t\t\t\tcout << \"B\";\n\t\t\t\t\tif(c == 3)\n\t\t\t\t\t\tcout << \"C\";\n\t\t\t\t\tif(a == 2)\n\t\t\t\t\t\tcout << \"A\";\n\t\t\t\t\tif(b == 2)\n\t\t\t\t\t\tcout << \"B\";\n\t\t\t\t\tif(c == 2)\n\t\t\t\t\t\tcout << \"C\";\n\t\t\t\t\tif(a == 1)\n\t\t\t\t\t\tcout << \"A\";\n\t\t\t\t\tif(b == 1)\n\t\t\t\t\t\tcout << \"B\";\n\t\t\t\t\tif(c == 1)\n\t\t\t\t\t\tcout << \"C\";}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50122", "code": "int main()\n{\n\tchar a[3];\n\tint i,j,k,l,b[3];\n\tfor(i=0;i<3;i++)\n\t\tfor(j=0;j<3;j++)\n\t\t\tfor(k=0;k<3;k++)\n\t\t\t{\n\t\t\t\tif(i==j||i==k||j==k)\n\t\t\t\t\tcontinue;\n\t\t\t\tb[0]=((ij)+(i>k)+j);\n\t\t\t\tb[2]=((k>j)+(j>i)+k);\n\t\t\t\tif((b[0]+b[1]+b[2])==6)\n\t\t\t\t{\n\t\t\t\t\ta[i]='A';\n\t\t\t\t\ta[j]='B';\n\t\t\t\t\ta[k]='C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(l=0;l<3;l++)\n\t\t\t\t\tcout< a ) + ( c == a );\n\t\t\t\ty = ( a > b ) + ( a > c );\n\t\t\t\tz = ( c > b ) + ( b > a );\n\t\t\t\tif( a + x == 2&& b + y == 2 && c + z == 2 )\n\t\t\t\t{\n\t\t\t\t\tif( a > b )\n\t\t\t\t\t\tif( b > c)\n\t\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\tif( c > a )\n\t\t\t\t\t\tif( a > b )\n\t\t\t\t\t\t\tcout << \"BAC\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"ABC\" << endl;\n\t\t\t\t\tif( b > a )\n\t\t\t\t\t\tif( c > a )\n\t\t\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50124", "code": "void bijiao(int, int, int);\nint main()\n{\n\tint a, b, c;\n\tfor (a = 1; a <= 3; a++)\n\t\tfor (b = 1; b <= 3; b++)\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\tbijiao (a, b, c);\n\t\t\t}\n\t\t\treturn 0;\n}\nvoid bijiao(int a,int b,int c)\n{\n\tint ca = (b > a) + (c == a);\n\tint cb = (a > b) + (a > c);\n\tint cc = (c > b) + (b > a);\n\tif(((a > b && ca < cb) || ( a == b && ca == cb) || (a < b && ca > cb))\n + (( a > c && ca < cc) || ( a == c && ca == cc) || ( a < c && ca > c))\n + (( b < c && cb > cc) || (b > c && cb < cc) || ( b == c && cb == cc)) == 3)\n\t{\n\t\tif (a >= b)\n\t\t{\n\t\t\tif (c >= b)\n\t\t\t{\n\t\t\t\tif (a >= c)\n\t\t\t\t\tcout << \"BCA\";\n\t\t\t\telse cout << \"BAC\";\n\t\t\t}\n\t\t\telse cout << \"CBA\";\n\t\t}\n\t\telse \n\t\t\tif(c <= b)\n\t\t{\n\t\t\tif (a <= c)\n\t\t\t\tcout << \"ACb\";\n\t\t\telse cout << \"CAB\";\n\t\t}\n\t\t\telse cout << \"ABC\";\n\t}\n}\n\n\n\n\n"} +{"label": "101", "index": "50125", "code": "int main()\n{\n\tint i,j,m,n,a,b,c;\n\tchar name[4]={0,'A','B','C'};\n\tint fan[4][2];//fan[i][0]????;fan[i][1]=i(1,2,3??a,b,c)\n\tfor(i=0;i<4;i++)\n\t{\n\t\tfan[i][0]=0;\n\t\tfan[i][1]=i;\n\t}\n\tfor(a=0;a<3;a++)\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tif(b==a)\n\t\t\t\tcontinue;\n\t\t\tc=3-a-b;\n\t\t\tif((((b>a)+(c==a)+a)==2)&&(((a>b)+(a>c)+b)==2)&&(((c>b)+(b>a)+c)==2))\n\t\t\t{\n\t\t\t\tfan[1][0]=a;fan[1][1]=1;fan[2][0]=b;fan[2][1]=2;fan[3][0]=c;fan[3][1]=3;\n\t\t\t\tfor(i=1;i<4;i++)\n\t\t\t\t{\n\t\t\t\t\tfor(j=1;j<4-i;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(fan[j+1][0]A)+(C==A));\t\t\t\t\t\t //?a,b,c???????????\t\t\t\n\t\t\t\tb=((A>B)+(A>C));\n\t\t\t\tc=((C>B)+(B>A));\n\t\t\t\tjudge1=((A>B&&ab)||(A==B&&a==b));\t\t//?judge???????????????\n\t\t\t\tjudge2=((B>C&&bc)||(B==C&&b==c));\n\t\t\t\tjudge3=((A>C&&ac)||(A==C&&a==c));\n\t\t\t\tif ((judge1+judge2+judge3)==3)\n\t\t\t\t{\n\t\t\t\t\tname[0]='A';name[1]='B';name[2]='C';\t\t\t//????????????\n\t\t\t\t\tq[0]=3;q[1]=1;q[2]=2;\n\t\t\t\t\tfor (int i=0;i<2;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int j=0;j<2-i;j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (q[j]>q[j+1])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tt=q[j];q[j]=q[j+1];q[j+1]=t;\n\t\t\t\t\t\t\t\tp=name[j];name[j]=name[j+1];name[j+1]=p;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcout<a)+(c==a);\n\t\t\tword[b]=(a>b)+(a>c);\n\t\t\tword[c]=(c>b)+(b>a);\n\t\t\tif((word[a]==3-a)&&(word[b]==3-b)&&(word[c]==3-c))\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t{\n\t\t\t\t\tif(a==i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(b==i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(c==i)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50128", "code": "int main()\n{\n int a,b,c,ap,bp,cp;//??????abc??????????ap?bp?cp \n for(a=1;a<=3;a++)\n {\n for(b=1;b<=3;b++)\n {\n for(c=1;c<=3;c++)\n {\n ap=(b>a)+(c==a);\n bp=(a>b)+(a>c);\n cp=(c>b)+(b>a);//??ABC?????? \n if(a+ap==b+bp&&b+bp==c+cp) break;//????????????????? \n }\n if(c<=3) break;//???? \n }\n if(b<=3) break;\n }\n if(ab)&&(b>c))cout<<\"CBA\"<c)&&(c>b))cout<<\"BCA\"<a)&&(a>c))cout<<\"CAB\"<c)&&(c>a))cout<<\"ACB\"<a)&&(a>b))cout<<\"BAC\"<b)&&(b>a))cout<<\"ABC\"< a ) + ( c == a ) ;\n B = ( a > b ) + ( a > c ) ;\n C = ( c > b ) + ( b > a ) ;\n if(A==(3-a)&&B==(3-b)&&C==(3-c))\n\n { if(a==1)\n \tcout<<\"A\";\n if(b==1)\n \tcout<<\"B\";\n if(c==1)\n \tcout<<\"C\";\n if(a==2)\n \tcout<<\"A\";\n if(b==2)\n \tcout<<\"B\";\n if(c==2)\n \tcout<<\"C\";\n if(a==3)\n \tcout<<\"A\";\n if(b==3)\n \tcout<<\"B\";\n if(c==3)\n \tcout<<\"C\";\n }\n\n\n }\n\n\n\t\t}\n\n\n\t}\n\nreturn 0;\n}\n"} +{"label": "101", "index": "50131", "code": "void main()\n{\n int a,b,c,a0=0,b0=0,c0=0;\n if(b>a)a0++;\n if(c==a)a0++;\n if(a>b)b0++;\n if(a>c)b0++;\n if(c>b)c0++;\n if(b>a)c0++;\n if(a0>b0>c0&&ac0>b0&&aa0>c0&&bc0>a0&&bb0>a0&&ca0>b0&&ca[0]) b[0]++;if (a[2]==a[0]) b[0]++;\n\t \tif (a[0]>a[1]) b[1]++;if (a[0]>a[2]) b[1]++;\n\t \tif (a[2]>a[1]) b[2]++;if (a[1]>a[0]) b[2]++;\n\t \tif (a[0]+b[0]==2&&a[1]+b[1]==2&&a[2]+b[2]==2)\n\t \t{\n\t \t\tfor (i=0;i<3;i++)\n\t \t\tfor (j=0;j<2-i;j++)\n\t \t\t{\n\t \t\t\tif (a[j]>a[j+1]){t=a[j];a[j]=a[j+1];a[j+1]=t;d=c[j];c[j]=c[j+1];c[j+1]=d;}\n\t \t\t}\n \t\t\tfor (i=0;i<3;i++) printf(\"%c\",c[i]);\n \t\t\texit(1);\n\t \t}\n\t }\n}"} +{"label": "101", "index": "50134", "code": "/************************************\n3.cpp\n???Oct 12, 2011\n???\n?? 1100012886\n************************************/\n\nint main()\n{\n\tint a, b, c, corA, corB, corC; //????????????????\n\tfor (a = 1; a <= 3; a++) for (b = 1; b <= 3; b++) for (c = 1; c <= 3; c++)\n\t{\n\t\tif ((a + b + c == 6) && (a * b * c == 6)) //?a+b+c=a*b*c=6????a?b?c???\n\t\t{\n\t\t\tcorA = (b > a) + (c == a);\n\t\t\tcorB = (a > b) + (a > c);\n\t\t\tcorC = (c > b) + (b > a);\n\t\t\t//?????????????????????????????????\n\t\t\tif (((a - b) * (corA - corB) < 0) && ((a - c) * (corA - corC) < 0) && ((b - c) * (corB - corC) < 0))\n\t\t\t{\n\t\t\t\tif (a == 1) cout << \"A\";\n\t\t\t\tif (b == 1) cout << \"B\";\n\t\t\t\tif (c == 1) cout << \"C\";\n\t\t\t\tif (a == 2) cout << \"A\";\n\t\t\t\tif (b == 2) cout << \"B\";\n\t\t\t\tif (c == 2) cout << \"C\";\n\t\t\t\tif (a == 3) cout << \"A\";\n\t\t\t\tif (b == 3) cout << \"B\";\n\t\t\t\tif (c == 3) cout << \"C\";\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50135", "code": "int main()\n{\n\tint a, b, c, max1, max2, max;\n\tfor (a = 1; a <= 3; a++)\n\t\tfor (b = 1; b <= 3; b++)\n\t\t\tfor (c = 1;c <= 3; c++)\n\t\t\t\t if (a + (b > a) + (c == a ) == 3 && b + (a > b) + (a > c ) == 3 && c + (c > b) + (b > a ) == 3)\n\t\t\t\t\t break;\n\t\t\t\t max1 = a > b ? a : b;\n\t\t\t\t max2 = b > c ? b : c;\n\t\t\t\t max = max1 > max2 ? max1 : max2;\n\t\t\t\t cout << (char)(max + 62) << (char)(max + 63) << (char)(max + 61);\n\t\t\t\t return 0;\n}"} +{"label": "101", "index": "50136", "code": "int main()\n{\n\tint a,b,c,x,y,z;\n\tfor(a=0;a<3;a++)\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tif(a==b) continue;\n\t\t\tc=3-a-b;\n\t\t\tx=(b>a)+(a==c);\n\t\t\ty=(a>b)+(a>c);\n\t\t\tz=(c>b)+(b>a);\n\t\t\t;\n\t\t\tif((x-y)==(b-a)&&(y-z)==(c-b)&&(x-z)==(c-a))\n\t\t\t{\n\t\t\t\tfor(int i=0;i<3;i++)\n\t\t\t\t{\n\t\t\t\t\tif(a==i) cout<<'A';\n\t\t\t\t\tif(b==i) cout<<'B';\n\t\t\t\t\tif(c==i) cout<<'C';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\treturn 0;\n}"} +{"label": "101", "index": "50137", "code": "int main()\n{\n\tint a,b,c,i,word[4];\t\t\t\t\t\t\t\t\t//?????????????????????\n\tchar rank[4];\t\t\t\t\t\t\t\t\t\t\t//??????????\n\tfor (a=1;a<=3;a++)\t\t\t\t\t\t\t\t\t\t//?????????????\n\t{\n\t\tfor (b=1;b<=3;b++)\n\t\t{\n\t\t\tif (a==b)\t\t\t\t\t\t\t\t\t\t//?????????\n\t\t\t\tcontinue;\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif(b==c||a==c)\n\t\t\t\t\tcontinue;\n\t\t\t\tword[a]=(b>a)+(c==a);\t\t\t\t\t\t//???????????\n\t\t\t\tword[b]=(a>b)+(a>c);\n\t\t\t\tword[c]=(c>b)+(b>a);\n\t\t\t\trank[a]='A';\t\t\t\t\t\t\t\t//?????????????????\n\t\t\t\trank[b]='B';\n\t\t\t\trank[c]='C';\n\t\t\t\tif (word[1]==2&&word[2]==1&&word[3]==0)\t\t//???????????\n\t\t\t\t{\n\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t\tcout<A)+(C==A);\n sum2=(A>B)+(A>C);\n sum3=(C>B)+(C>A);\n if((A>B)&&(B>C)&&(sum1C)&&(C>B)&&(sum1A)&&(A>C)&&(sum2C)&&(C>A)&&(sum2B)&&(B>A)&&(sum3A)&&(A>B)&&(sum3b)+(b>a);\n\t if(a==3-a1&&b==3-b1&&c==3-c1)\n\t\t\t\t{\n\t\t\t\t int liang[4]={0};//??????????\n\t\t\t\t char ren[4];//?????????????\n\t\t\t\t liang[1]=a;\n\t\t\t\t liang[2]=b;\n\t\t\t\t liang[3]=c;\n\t\t\t\t ren[1]='A';\n\t\t\t\t ren[2]='B';\n\t\t\t\t ren[3]='C';\n\t\t\t\t int i,j;//????????????\n\t\t\t\t char k;//??????\n\t\t\t\t for(j=1;j<=2;j++)//????????\n\t\t\t\t {\n\t\t\t\t\t for(i=1;i<=3-j;i++)\n\t\t\t\t\t {\n\t\t\t\t\t\t if(liang[i]0;i--)//??????\n\t\t\t\t {\n\t\t\t\t\t cout< a) + (c == a);\n\t\t\t\tm = (a > b) + (a > c);\n\t\t\t\tn = (c > b) + (b > a);\n\t\t\t\tif ((l + a == 2) && (m + b == 2) && (n + c == 2))\n\t\t\t\t{\n\t\t\t\t\tif (a > b && b > c)\n\t\t\t\t\t\tcout <<\"CBA\";\n\t\t\t\t\tif (a > c && c > b)\n\t\t\t\t\t\tcout <<\"BCA\";\n\t\t\t\t\tif (b > a && b > c)\n\t\t\t\t\t\tcout <<\"CAB\";\n\t\t\t\t\tif (b > c && c > a)\n\t\t\t\t\t\tcout <<\"ABC\";\n\t\t\t\t\tif (c > a && a > b)\n\t\t\t\t\t\tcout <<\"BAC\";\n\t\t\t\t\tif (c > b && b > a)\n\t\t\t\t\t\tcout <<\"ABC\";\n\t\t\t\t}\n\t\t}\n\t\treturn 0;\n}\n\n\n\n\n"} +{"label": "101", "index": "50141", "code": "int main()\n{ \n\tint a,b,c,A=0,B=0,C=0;\n\tchar p[4];\n\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tA=0;B=0;C=0;\n\t\t\tif(b==a)break;\n\t\t\tc=6-a-b;\n\t\t\tif(b>c) A++; if(c==a) A++;\n\t\t\tif(a>b) B++; if(a>c) B++;\n\t\t\tif(c>b) C++; if(b>a) C++;\n\t\t\tif(A==3-a&&B==3-b&&C==3-c)\n\t\t\t{\n\t\t\t\tp[a]='A';\n\t\t\t\tp[b]='B';\n\t\t\t\tp[c]='C';\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<=3;i++)\n\t\t\tcout <a)+(a==c)==3)&&(b+(a>b)+(a>c)==3)\n\t\t\t\t &&(c+(c>b)+(b>a)==3)) {\n\t\t\t\t//????????????????????3\n\tif(a>b){//???abc???????????????????\n\t\tif(ac) cout<<'C'<<'B'<<'A';\n\t\t\telse cout<<'B'<<'C'<<'A';\n\t}}\n\telse{\n\t\tif(beat[0])+(eat[0]==eat[2]);\n\t\t\t\twords[1]=(eat[0]>eat[1])+(eat[0]>eat[2]);\n\t\t\t\twords[2]=(eat[2]>eat[1])+(eat[1]>eat[0]);\n\t\t\t\tfor(i=1;i<3;i++)\n\t\t\t\t\tfor(j=1;j<3-i;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(words[j]>words[j+1])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tp=words[j];\n\t\t\t\t\t\t\twords[j]=words[j+1];\n\t\t\t\t\t\t\twords[j+1]=p;\n\t\t\t\t\t\t\tp=eat[j];\n\t\t\t\t\t\t\teat[j]=eat[j+1];\n\t\t\t\t\t\t\teat[j+1]=p;\n\t\t\t\t\t\t\tch=name[j];\n\t\t\t\t\t\t\tname[j]=name[j+1];\n\t\t\t\t\t\t\tname[j+1]=ch;\n\t\t\t\t\t\t}\n\t\t\t\t\tif(eat[0]>eat[1]&&eat[1]>eat[2])\n\t\t\t\t\t\tcout<a)+(c==a)==x && (a>b)+(a>c)==y && (c>b)+(b>a)==z) // ????????\n cout << ans[0] << ans[1] << ans[2] << endl; // ??\n }\n return 0;\n}"} +{"label": "101", "index": "50145", "code": "int main()\n{\n\tint a, b, c, i;\n\tfor (a = 1; a <= 3; a++)\n\t{\n\t\tfor (b = 1; b <= 3; b++)\n\t\t{\n\t\t\tif (a != b)\n\t\t\t{\n\t\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t\t{\n\t\t\t\t\tif ((a != c) && (b != c))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((((b > a) + (a == c)) == 3 - a) && (((a > b) + (a > c)) == 3 - b)&&(((c > b) + (b > a)) == 3 - c))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor (i = 1; i<=3;i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (a == i)\n\t\t\t\t\t\t\t\t\tcout << \"A\";\n\t\t\t\t\t\t\t\tif (b == i)\n\t\t\t\t\t\t\t\t\tcout << \"B\";\n\t\t\t\t\t\t\t\tif (c == i)\n\t\t\t\t\t\t\t\t\tcout << \"C\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcout << endl;\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\t\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50146", "code": "int main()\n{\n /*A??B??????C??????? \n B??A??????A??C??? \n C????B????B?A???? \n ?????????????????????*/\n\tint a,b,c;\n\tint a0,b0,c0;\n\tfor(a=0;a<=2;a++)\n\t{\n\t\tfor(b=0;b<=2;b++)\n\t\t{\n\t\t\tfor(c=0;c<=2;c++)\n\t\t\t{\n\t\t\t\ta0=(b>a)+(c==a);\n\t\t\t\tb0=(a>b)+(a>c);\n\t\t\t\tc0=(c>b)+(b>a);\n\t\t\t\tif (((a>c&&a0c0))&&((a>b&&a0b0))&&((c>b&&c0b0)))\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<=2;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a==i) cout<<\"A\";\n\t\t\t\t\t\tif(b==i) cout<<\"B\";\n\t\t\t\t\t\tif(c==i) cout<<\"C\";\n\t\t\t\t\t}\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tend:return 0;\n}"} +{"label": "101", "index": "50147", "code": "int main()\n{int A,B,C,a,b,c;\n char se[3]={0,0,0}; //????????????????????2\\1\\0??\n for(A=0;A<3;A++)\n {if(B!=A) for(B=0;B<3;B++)\n {if(C!=B&&C!=A) for(C=0;C<3;C++) //?????? \n {a=(B>A)+(C==A); //???????? \n b=(A>B)+(A>C);\n c=(C>B)+(B>A);\n if(a==2-A && b==2-B && c==2-C)\n {se[A]='A'; //?? \n se[B]='B';\n se[C]='C';}\n }}}\n\n cout<a)+(c==b);\n word[b]=(a>b)+(a>c);\n word[c]=(c>b)+(b>a); //??????\n if(word[1]>word[2]>word[3])\n {\n cout<B)+(A>C);\n\t int c=(C>B)+(B>A);\n\t if(a>b&&b>c && Ac&&c>b && Aa&&a>c && Bc&&c>a && Ba&&a>b && Cb&&b>a && C a;\n\t\t\t\tB = c == a;\n\t\t\t\tC = a > b;\n\t\t\t\tD = a > c;\n\t\t\t\tE = c > b;\n\t\t\t\tF = b > a;\n\t\t\t\t//\t??????????????2????????\n\t\t\t\tif(A + B + a == 2 && C + D + b == 2 && E + F + c == 2)\n\t\t\t\t{\n\t\t\t\t\tif(A + B == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(C + D == 2)\n\t\t\t\t\t\t\tcout << \"B\" << \"C\" << \"A\" << endl;\n\t\t\t\t\t\tif(E + F == 2)\n\t\t\t\t\t\t\tcout << \"C\" << \"B\" << \"A\" << endl;\n\t\t\t\t\t}\n\t\t\t\t\tif(D + C == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A + B == 2)\n\t\t\t\t\t\t\tcout << \"A\" << \"C\" << \"B\" << endl;\n\t\t\t\t\t\tif(E + F == 2)\n\t\t\t\t\t\t\tcout << \"C\" << \"A\" << \"B\" << endl;\n\t\t\t\t\t}\n\t\t\t\t\tif(E + F == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A + B == 2)\n\t\t\t\t\t\t\tcout << \"A\" << \"B\" << \"C\" << endl;\n\t\t\t\t\t\tif(C + D == 2)\n\t\t\t\t\t\t\tcout << \"B\" << \"A\" << \"C\" << endl;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n}\n\n\t\t\t\t\t\n"} +{"label": "101", "index": "50151", "code": "//***************************************************************************\n//??????\n//????????????????\n//??????\n//***************************************************************************\nint main()\n{ \n\t //??A,B,C?????\n\tint A, B, C, appetiteA, appetiteB, appetiteC,c[3];\n\tfor(appetiteA = 0; appetiteA <= 2; appetiteA++)\n\t\tfor(appetiteB = 0; appetiteB <= 2; appetiteB++)\n\t\t\tfor(appetiteC = 0; appetiteC <= 2; appetiteC++)\n\t\t\t{\n\t\t\t\tA = (appetiteB > appetiteA) + (appetiteC == appetiteA);\n\t\t\t\tB = (appetiteA > appetiteB) + (appetiteA > appetiteC);\n\t\t\t\tC = (appetiteC > appetiteB) + (appetiteB > appetiteA);\n\t\t\t\tif(A != B && A != C && B != C)\n\t\t\t\t{\n\t\t\t\t\tc[0] = A;\n\t\t\t\t\tc[1] = B;\n\t\t\t\t\tc[2] = C;\n\t\t\t\t}\n\t\t\t}\n\t//cout<a)+(c==a)+a)!=3) continue;//?????????????????123????????3??????????? \n if (((a>b)+(a>c)+b)!=3) continue;\n if (((c>b)+(b>a)+c)!=3) continue;\n if (a>b&&b>c) cout<<\"CBA\"<c&&c>b) cout<<\"BCA\"<a&&a>c) cout<<\"CAB\"<c&&c>a) cout<<\"ACB\"<b&&b>a) cout<<\"ABC\"<a&&a>b) cout<<\"BAC\"<a)+(c==a);\n\t\t\t j=(a>b)+(a>c);\n\t\t\t\tk=(a>b)+(b>a);\nif(a>b&&b>c&&ic&&c>b&&ia&&a>c&&jc&&c>a&&j>k&&k>i)cout<<\"ACB\";\nif(c>a&&a>b&&k>i&&i>j)cout<<\"BAC\";\nif(c>b&&b>a&&k>j&&j>i)cout<<\"ABC\";\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50154", "code": "\nint main()\n{\n\tint a,b,c,i;\n\tint word[4];\n\tchar rank[4];\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tword[a]=(b>a)+(c==a);\n\t\t\t\tword[b]=(a>b)+(a>c);\n\t\t\t\tword[c]=(c>b)+(b>a);\n\t\t\t\trank[a]='A';\n\t\t\t\trank[b]='B';\n\t\t\t\trank[c]='C';\n\t\t\t\tif(word[3]==0&&word[2]==1&&word[1]==2)\n\t\t\t\t{\n\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t\tcout<a[2])+(a[1]>a[3]))==3-a[2])&&(((a[3]>a[2])+(a[2]>a[1]))==3-a[3]))\n\t\t\t{\n\t\t\t\tb[1]=a[1];\n\t\t\t\tb[2]=a[2];\n\t\t\t\tb[3]=a[3];\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=3;i++)\n\t\tname2[b[i]]=name1[i];\n\tfor(i=1;i<=3;i++)\n\t\tcout<A)+(A==C);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif((A+a==3)&&(B+b==3)&&(C+c==3))\n\t\t\t\t{\n\t\t\t\t\t//ans[A-1]='A',ans[B-1]='B',ans[C-1]='C';\n\t\t\t\t\t//cout<B)&&(B>C))\n\t\t\t\t\t\t cout<<\"CBA\"<C)&&(C>B))\n\t\t\t\t\t cout<<\"BCA\"<A)&&(A>C))\n\t\t\t\t\t\t cout<<\"CAB\"<C)&&(C>A))\n\t\t\t\t\t\t cout<<\"ACB\"<A)&&(A>B))\n\t\t\t\t\t\t cout<<\"BAC\"<B)&&(B>A))\n\t\t\t\t\t\t cout<<\"ABC\"<A)&&(C!=A)&&(a=1))||((B<=A)&&(C==A)&&(a=1))||((B>A)&&(C==A)&&(a=2))||((B<=A)&&(C!=A)&&(a=0)));\n\t\t\t cc2=(((A>B)&&(A<=C)&&(b=1))||((A<=B)&&(A>C)&&(b=1))||((A>B)&&(A>C)&&(b=2))||((A<=B)&&(A<=C)&&(b=0)));\n\t\t\t\tcc3=(((C>B)&&(B<=A)&&(c=1))||((C<=B)&&(B>A)&&(c=1))||((C>B)&&(B>A)&&(c=2))||((B<=C)||(B<=A)&&(c=0)));\n\t\t\t\tif(A==1&&B==3&&C==2)\n\t\t\t\t\t cout<B)&&(A>C)&&(B>C)))\n\t\t\t\t\t cout<<\"ABC\"<B)&&(A>C)&&(C>B)))\n\t\t\t\t\t cout<<\"ACB\"<A)&&(B>C)&&(A>C)))\n\t\t\t\t\t\tcout<<\"BAC\"<A)&&(B>C)&&(C>A)))\n\t\t\t\t\t\tcout<<\"BCA\"<A)&&(C>B)&&(A>B)))\n\t\t\t\t\t\tcout<<\"CAB\"<A)&&(C>B)&&(B>A)))\n\t\t\t\t\t\tcout<<\"CBA\"<d[0]);\n\t \tB1=(d[0]>d[1])+(d[0]>d[2]);\n\t \tC1=(d[2]>d[1])+(d[1]>d[0]);\n\t \tif (d[0]+A1==3&&d[1]+B1==3&&d[2]+C1==3){\n\t \t for(i=0;i<2;i++)\n\t \t for(j=0;j<2-i;j++){\n\t \t \tif(a[j]>a[j+1]) {\n\t \t \t\tm=a[j];\n\t \t \t\ta[j]=a[j+1];\n\t \t \t\ta[j+1]=m;\n\t\t\t\tn=c[j];\n\t\t\t\tc[j]=c[j+1];\n\t\t\t\tc[j+1]=n;\n\t \t \t }\n\t \t }\n\t\t }\n\t } \n\t} \n\tprintf(\"%c%c%c\\n\",c[0],c[1],c[2]); \n\treturn 0; \n} "} +{"label": "101", "index": "50158", "code": "int main()\n{\n\tint A=3,B=2,C=1,sumA,sumB,sumC;//?ABC???????????????\n\t\tsumA=(B>A)+(C==A);\n\t\tsumB=(A>B)+(A>C);\n\t\tsumC=(C>B)+(B>A);\n\t\tif(sumAA)+(C==A);\n\t\t\tsumB=(A>B)+(A>C);\n\t\t\tsumC=(C>B)+(B>A);\n\t\t\tif(sumAA)+(C==A);\n\t\t\t\tsumB=(A>B)+(A>C);\n\t\t\t\tsumC=(C>B)+(B>A);\n\t\t\t\tif(sumBA)+(C==A);\n\t\t\t\t\tsumB=(A>B)+(A>C);\n\t\t\t\t\tsumC=(C>B)+(B>A);\n\t\t\t\t\tif(sumBA)+(C==A);\n\t\t\t\t\t\tsumB=(A>B)+(A>C);\n\t\t\t\t\t\tsumC=(C>B)+(B>A);\n\t\t\t\t\t\tif(sumCA)+(C==A);\n\t\t\t\t\t\t\tsumB=(A>B)+(A>C);\n\t\t\t\t\t\t\tsumC=(C>B)+(B>A);\n\t\t\t\t\t\t\tif(sumC A);// ?a1?a2????A??????\n\t\t\t\ta2 = (C == A);\n\t\t\t\tb1 = (A > B);//?b1?b2????B??????\n\t\t\t\tb2 = (A > C);\n\t\t\t\tc1 = (C > B);\n\t\t\t\tc2 = (B > A);//?c1?c2????C??????\n\t\t\t\tif (a1 + a2 + A == 2 && b1 + b2 + B == 2 && c1 + c2 + C == 2)// ????????????????\n\t\t\t\t{\n\t\t\t\t// ???????????????\n\t\t\t\t\tif (A < B && B < C)\t\t\t\t\t\n\t\t\t\t\t{cout << \"A\" << \"B\" << \"C\";}\n\t\t\t\t\tif (A < C && C < B) \n\t\t\t\t\t{cout << \"A\" << \"C\" << \"B\";}\n\t\t\t\t\tif (B < A && A < C)\n\t\t\t\t\t{cout << \"B\" << \"A\" << \"C\";}\n\t\t\t\t\tif (B < C && C < A)\n\t\t\t\t\t{cout << \"B\" << \"C\" << \"A\";}\n\t\t\t\t\tif (C < B && B < A)\n\t\t\t\t\t{cout << \"C\" << \"B\" << \"A\";}\n\t\t\t\t\tif (C < A && A < C)\n\t\t\t\t\t{cout << \"C\" << \"A\" << \"B\";}\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}\n return 0; \n}\n"} +{"label": "101", "index": "50160", "code": "/*\n * ???.cpp\n * Created on: 2012-10-19\n * Author: ??? 1200012899\n */\nint main()\n{\n\tint a,b,c,A,B,C,CC1,CC2,CC3;\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tA=(b>a)+(a==c);//A???\n\t\t\t\tB=(a>b)+(a>c);//B???\n\t\t\t\tC=(c>b)+(b>a);//C???\n\t\t\t\tCC1=(A>B&&ab);//A?B????????????\n\t\t\t\tCC2=(A>C&&ac);//A?C????????????\n\t\t\t\tCC3=(B>C&&bc);//C?B????????????\n\t\t\t\tif(CC1&&CC2&&CC3)\n\t\t\t\t{\n\t\t\t\t\t//cout<b&&b>c)\n\t\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\"<b&&a>c&&c>b)\n\t\t\t\t\t\tcout<<\"B\"<<\"C\"<<\"A\"<a&&a>c)\n\t\t\t\t\t\tcout<<\"C\"<<\"A\"<<\"B\"<a&&c>a&&b>c)\n\t\t\t\t\t\tcout<<\"A\"<<\"C\"<<\"B\"<b&&b>a)\n\t\t\t\t\t\tcout<<\"A\"<<\"B\"<<\"C\"<b&&a>b&&c>a)\n\t\t\t\t\t\tcout<<\"B\"<<\"A\"<<\"C\"<i)+(i==k);\n\t\t\t\t\t\tb[1]=(i>j)+(i>k);\n\t\t\t\t\t\tb[2]=(k>j)+(j>i);\n\t\t\t\t\t\tif(b[0]==2-i&&b[1]==2-j&&b[2]==2-k)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(i==0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(j==1)cout<<\"ABC\";\n\t\t\t\t\t\t\t\telse cout<<\"ACB\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(j==0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(i==1)cout<<\"BAC\";\n\t\t\t\t\t\t\t\telse cout<<\"BCA\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(k==0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(i==1)cout<<\"CAB\";\n\t\t\t\t\t\t\t\telse cout<<\"CBA\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn 0;\n}"} +{"label": "101", "index": "50162", "code": "int main()\n{\n\tint A,B,C,i;\n\tchar a[4];\n\tfor(A=1;A<=3;A++)\n\t{\t\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\tif( (B>A)+(C==A)==3-A && (A>B)+(A>C)==3-B && (C>B)+(B>A)==3-C)\n\t\t\t\t{\n\t\t\t\t\ta[A]='A';\n\t\t\t\t\ta[B]='B';\n\t\t\t\t\ta[C]='C';\n\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<A);a2=(C==A);\n b1=(A>B);b2=(A>C);\n c1=(C>B);c2=(B>A);\n\n d1=a1+a2;\n d2=b1+b2;\n d3=c1+c2;\n if((d1!=d2)&&(d2!=d3)&&(d1!=d3))\n {\n if((d1==1)&&(d2!=B)&&(d3!=C))\n {\n if(d2>d3)\n {\n cout<<\"BAC\"<d3)\n {\n cout<<\"ABC\"<d1)\n {\n cout<<\"BCA\"< A) + (A == C) + A == 2) && ((A > B) + (A > C) + B == 2) && ((C > B) + (B > A) + C == 2)) //?????????\n\t\t\t\t{\n\t\t\t\t\trank[A] = 'A'; //?????\n\t\t\t\t\trank[B] = 'B';\n\t\t\t\t\trank[C] = 'C';\n\t\t\t\t\tcout << rank[0] << rank[1] << rank[2]; //??????\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50165", "code": "//*********************************************************************\n//*????food.cpp *\n//*? ??spica *\n//*?????2011?11? *\n//*????:????????3????? *\n//*********************************************************************\nint main()\n{\n\tint A=0,B=0,C=0; //????????A,B,C\n\tint Aw=0,Bw=0,Cw=0; //???????Aw,Bw,Cw\n\tint As=0,Bs=0,Cs=0; // ??????As,Bs,Cs\n\tfor(A=1;A<=3;A++) //??A?1\u00973???????\n\t{\n\t\tfor(B=1;B<=3;B++) //??B?1\u00973???????\n\t\t{\n\t\t\tfor(C=1;C<=3;C++) //??C?1\u00973???????\n\t\t\t{\n\t\t\t\tAw=(B>A)+(C==A); //A????\n\t\t\t\tBw=(A>B)+(A>C); //B????\n\t\t\t\tCw=(C>B)+(B>A); //C????\n\t\t\t\tif(!(A<=B&&Aw<=Bw||A<=C&&Aw<=Cw||B<=A&&Bw<=Aw||B<=C&&Bw<=Cw||C<=A&&Cw<=Aw))//??????????????????????????????????\n\t\t\t\t{\n\t\t\t\t\tAs=A;\n\t\t\t\t\tBs=B;\n\t\t\t\t\tCs=C;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(As>=Bs&&Bs>=Cs) //A>=B>=C\n\t\tcout<<\"ABC\"<=Cs&&Cs>=Bs) //A>=C>=B\n\t\tcout<<\"BCA\"<=As&&As>=Cs) //B>=A>=C\n\t\tcout<<\"BAC\"<=Cs&&Cs>=As) //B>=C>=A\n\t\tcout<<\"BCA\"<=As&&As>=Bs) //C>=A>=B\n\t\tcout<<\"CAB\"<=Bs&&Bs>=As) //C>=B>=A\n\t\tcout<<\"CBA\"<b)&&(b>c)) //??????a>b>c,????????a>b?????1?c??????\n\t\t\t\t\t{\n\t\t\t\t\t\tif((!(b>a)&&!(c==a))+((a>b)&&!(a>c))+((c>b)&&(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"CBA\";\n\t\t\t\t\t\telse if((!(b>a)&&!(c==a))+(!(a>b)&&(a>c))+((c>b)&&(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"CBA\";\n\n\t\t\t\t\t}\n\t\t\t\t\telse if((a>c)&&(c>b))\n\t\t\t\t\t{\n\t\t\t\t\t\tif((!(b>a)&&!(c==a))+((a>b)&&(a>c))+((c>b)&&!(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"BCA\";\n\t\t\t\t\t\telse if((!(b>a)&&!(c==a))+((a>b)&&(a>c))+(!(c>b)&&(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"BCA\";\n\t\t\t\t\t}\n\t\t\t\t\telse if((b>a)&&(a>c))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((b>a)&&!(c==a))+(!(a>b)&&!(a>c))+((c>b)&&(b>a))== 3)\n\t\t\t\t cout<<\"CAB\";\n\t\t\t\t\t\telse if((!(b>a)&&(c==a))+(!(a>b)&&!(a>c))+((c>b)&&(b>a))== 3)\n\t\t\t\t\t\t cout<<\"CAB\";\n\t\t\t\t\t}\n\t\t\t\t\telse if((b>c)&&(c>a))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((b>a)&&(c==a))+(!(a>b)&&!(a>c))+((c>b)&&!(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"ACB\";\n\t\t\t\t\t\telse if(((b>a)&&(c==a))+(!(a>b)&&!(a>c))+(!(c>b)&&(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"ACB\";\n\t\t\t\t\t}\n\t\t\t\t\telse if((c>a)&&(a>b))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((b>a)&&!(c==a))+((a>b)&&(a>c))+(!(c>b)&&!(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"BAC\";\n\t\t\t\t\t\telse if((!(b>a)&&(c==a))+((a>b)&&(a>c))+(!(c>b)&&!(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"BAC\";\n\t\t\t\t\t}\n\t\t\t\t\telse if((c>b)&&(b>a))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((b>a)&&(c==a))+((a>b)&&!(a>c))+(!(c>b)&&!(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"ABC\";\n\t\t\t\t\t\telse if(((b>a)&&(c==a))+(!(a>b)&&(a>c))+(!(c>b)&&!(b>a))== 3)\n\t\t\t\t\t\t\tcout<<\"ABC\";\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tc=c+1;\n\t\t\t}\n\t\t\tb=b+1;\n\t\t}\n\t\ta=a+1;\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50167", "code": "int main()\n{\n\tint A, B, C, AmountA, AmountB, AmountC, jumpout = 0;\n\tfor (AmountA = 0 ; AmountA <= 2 ; AmountA++)\n\t{\n\t\tfor (AmountB = 0 ; AmountB <= 2 ; AmountB++)\n\t\t{\n\t\t\tif (AmountB == AmountA) continue;\n\t\t\tfor (AmountC = 0 ; AmountC <= 2 ; AmountC++)\n\t\t\t{\n\t\t\t\tif ((AmountC == AmountB) || (AmountC == AmountA)) continue;\n\t\t\t\tA = ((AmountB > AmountB) + (AmountA == AmountC)); \n\t\t\t\tB = ((AmountA > AmountB) + (AmountA > AmountC));\n\t\t\t\tC = ((AmountC > AmountB) + (AmountB > AmountA));\n\t\t\t\tif ((A == 2 - AmountA) && (B == 2 - AmountB) && (C == 2 - AmountC)) \n\t\t\t\t\tjumpout = 1; break;\n\t\t\t}if (jumpout == 1) break;\n\t\t}if (jumpout == 1) break;\n\t} \t \n\tif (AmountA < AmountB && AmountB < AmountC) cout << \"ABC\";\n\tif (AmountB < AmountA && AmountA < AmountC) cout << \"BAC\";\n\tif (AmountC < AmountB && AmountB < AmountA) cout << \"CBA\";\n\tif (AmountB < AmountC && AmountC < AmountA) cout << \"BCA\";\n\tif (AmountA < AmountC && AmountC < AmountB) cout << \"ACB\";\n\tif (AmountC < AmountA && AmountA < AmountB) cout << \"CAB\";\n\treturn 0;\n}"} +{"label": "101", "index": "50168", "code": "int main()\n{\n\tint a,b,c,A,B,C,aw,bw,cw,Aw,Bw,Cw;\n\tint i,j,t;\n\tchar m[3]={'A','B','C'},p;\n\tint n[3];\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\taw=((b>a)+(c==a));\n\t\t\t\tbw=((a>b)+(a>c));\n\t\t\t\tcw=((c>b)+(b>a));\n\t\t\t\tif(((a>b)&&(awa)&&(bwb)&&(cwc)&&(bwc)&&(awa)&&(cw0;i--)\n\t{\n\t\tfor(j=0;jn[j+1])\n\t\t\t{\n\t\t\t\tt=n[j];p=m[j];\n\t\t\t\tn[j]=n[j+1];m[j]=m[j+1];\n\t\t\t\tn[j+1]=t;m[j+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%c%c%c\",m[0],m[1],m[2]);\n\treturn 0;\n}"} +{"label": "101", "index": "50169", "code": "//\n// main.cpp\n// ???\n//\n// Created by ???? on 13-11-3.\n// Copyright (c) 2013? ????. All rights reserved.\n//\n\nint main()\n{\n int a,b,c,ca=0,cb=0,cc=0;\n for(a=1;a<=3;a++)\n {\n for(b=1;b<=3;b++)\n {\n if(b==a)continue;\n else\n {\n c=6-a-b;\n ca=(b>a)+(a==c);\n cb=(a>b)+(a>c);\n cc=(c>b)+(b>a);\n //cout<a)+(c==a)==2-a)&&((a>b)+(a>c)==2-b)&&((c>b)+(b>a)==2-c))\n\t\t\t\tfor(int i=0;i<=2;i++)\n\t\t\t\t{\n\t\t\t\t\tif(a==i)\n\t\t\t\t\t\tcout<<'A';\n\t\t\t\t\tif(b==i)\n\t\t\t\t\t\tcout<<'B';\n\t\t\t\t\tif(c==i)\n\t\t\t\t\t\tcout<<'C';\n\t\t\t\t}\n\t\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50171", "code": "int main()\n{\n\tint a,b,c,s1,s2,s3;\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\ts1=(b>a)+(c==a)+1;\n\t\t\t\ts2=(a>b)+(a>c)+1;\n\t\t\t\ts3=(c>b)+(b>a)+1;\n\t\t\t\tif(a+b+c==6 && a*b*c==6)\n\t\t\t\t{\n\t\t\t\t\tif(s1+s2+s3==6 && s1*s2*s3==6)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(s1+a==4&&s2+b==4&&s3+c==4)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tif(s1==3)cout<<\"A\";\n\t\t\t\t\t\tif(s2==3)cout<<\"B\";\n\t\t\t\t\t\tif(s3==3)cout<<\"C\";\n\t\t\t\t\t\tif(s1==2)cout<<\"A\";\n\t\t\t\t\t\tif(s2==2)cout<<\"B\";\n\t\t\t\t\t\tif(s3==2)cout<<\"C\";\n\t\t\t\t\t\tif(s1==1)cout<<\"A\";\n\t\t\t\t\t\tif(s2==1)cout<<\"B\";\n\t\t\t\t\t\tif(s3==1)cout<<\"C\";\n\t\t\t\t\t\t//break;\n\t\t\t\t\t\tcout<A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif(a==2-A&&b==2-B&&c==2-C)\n\t\t\t\t\tfor(int i=0;i<=2;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A==i)\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(B==i)\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(C==i)\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50173", "code": "int main()\n{\n\tint A,B,C,a,b,c;\n\tfor (A=0;A<=2;A++)\n\t{\n\t\tfor (B=0;B<=2;B++)\n\t\t{\n\t\t\tfor (C=0;C<=2;C++) //???ABC?0?1?2??????????\n\t\t\t{\n\t\t\t\ta=((B>A)+(C==A));\n\t\t\t\tb=((A>B)+(A>C));\n\t\t\t\tc=((C>B)+(B>A));\n\t\t\t\tif (A+a==B+b && B+b==C+c && C+c==A+a) //??????????\n\t\t\t\t{\n\t\t\t\t\tfor (int i=0;i<=2;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (A==i) cout <<'A';\n\t\t\t\t\t\tif (B==i) cout <<'B';\n\t\t\t\t\t\tif (C==i) cout <<'C'; //?????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50174", "code": "int main()\n{int a,b,c,p,q,r,m;\nchar n[3];\nfor(a=0;a<=2;a++)\n\n\tfor(b=0;b<=2;b++)\n\t\tfor(c=0;c<=2;c++)\n{if(a==b||b==c||c==a)continue;\np=(b>a)+(c==a);\nq=(a>b)+(a>c);\nr=(c>b)+(b>a);\n\t\tif(p+a==q+b&&p+a==r+c)\n\n\t\t{n[a]='A';\n\t\tn[b]='B';\n\t\tn[c]='C';\n\t\tcout< A ) + ( C == A ) == 2 && B + ( A > B ) + (A > C ) == 2 && C + ( C > B ) + ( B > A ) == 2 )\n\t\t\t\t\tjudge(A,B,C); //??????\n\treturn 0;\n}"} +{"label": "101", "index": "50176", "code": "//**************************************\n//????1000012825_4 *\n//?????? *\n//???11.19 *\n//???????? *\n//**************************************\nint main ()\n{\n\tint a, b, c, AA1, AA2, BB1, BB2, CC1, CC2, i;\n\tchar str[3]; //???????????A,B,C\n\tfor ( a = 0; a <= 2; a++ )\n\t{\n\t\tfor ( b = 0 ; b <= 2; b++ )\n\t\t{\n\t\t\tfor ( c = 0; c <= 2; c++ )\n\t\t\t{\n\t\t\t\tAA1 = ( b > a );\n\t\t\t\tAA2 = ( c == a );\n\t\t\t\tBB1 = ( a > b );\n\t\t\t\tBB2 = ( a > c );\n\t\t\t\tCC1 = ( c > b );\n\t\t\t\tCC2 = ( b > a ); //???3??????\n\t\t\t\tif ((a + AA1 + AA2 == 2 ) && ( b + BB1 + BB2 == 2 ) && ( c + CC1 + CC2 == 2 ) && ( a != b) && ( a != c) && ( b != c) )\n\t\t\t\t// ?????????????????3??????\n\t\t\t\t{\n\t\t\t\t\tstr[a] = 'A'; str[b] = 'B'; str[c] = 'C'; //????A,B,C???????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor ( i = 0; i <= 2; i++ )//????\n\t\tcout << str[i];\n\tcout << endl;\n\treturn 0;\n}\n\n\n\n"} +{"label": "101", "index": "50177", "code": "int main()\n{\n\tint a,b,c;\n\tint word[3];\n\tfor (a=1;a<4;)\n\t{\n\t\tfor (b=1;b<4;)\n\t\t{\n\t\t\tif (b==a)\n\t\t\t\tb=b+1;\n\t\t\tc=6-a-b;\n\t\t\tword[0]=(b>a)+(c==a);\n\t\t\tword[1]=(a>b)+(a>c);\n\t\t\tword[2]=(c>b)+(b>a);\n\t\t\tif ((a>b)&&(b>c)&&(word[2]>word[1])&&(word[1]>word[0]))\n\t\t\t\tcout <<\"CBA\"<c)&&(c>b)&&(word[1]>word[2])&&(word[2]>word[0]))\n\t\t\t\tcout <<\"BCA\"<a)&&(a>c)&&(word[2]>word[0])&&(word[0]>word[1]))\n\t\t\t\tcout <<\"CAB\"<c)&&(c>a)&&(word[0]>word[2])&&(word[2]>word[1]))\n\t\t\t\tcout <<\"ACB\"<a)&&(a>b)&&(word[1]>word[0])&&(word[0]>word[2]))\n\t\t\t\tcout <<\"BAC\"<b)&&(b>a)&&(word[0]>word[1])&&(word[1]>word[2]))\n\t\t\t\tcout <<\"ABC\"<A)+(C==A)==2-A && (A>B)+(A>C)==2-B && (C>B)+(B>A)==2-C )//?????????????????????ABC???\n\t\t\t\t{\n\t\t\t\t\tchar a[4];\n\t\t\t\t\ta[A]='A'; a[B]='B'; a[C]='C';\n\t\t\t\t\tfor (int i=0;i<=2;i++)\n\t\t\t\t\t\tcout<a)+(c==a);\n\t\t\t\trb=(a>b)+(a>c);\n\t\t\t\trc=(c>b)+(b>a);\n\n\t\t\t\tif( (a>b&&ra>=rb) || (a>c&&ra>=rc) || (b>a&&rb>=ra) || (b>c&&rb>=rc) || (c>a&&rc>=ra) || (c>b&&rc>=rb) || (a==b&&ra!=rb) || (b==c&&rb!=rc) || (a==c&&ra!=rc) )//?????\n\t\t\t\t\tcontinue;\n\t\t\t\tif(a!=b&&b!=c&&a!=c){\n\t\t\t\t\tresult[a]='A';\n\t\t\t\t\tresult[b]='B';\n\t\t\t\t\tresult[c]='C';\n\t\t\t\t\tresult[3]='\\0';\n\t\t\t\t\tcout<A)+(C==A);//????????\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tint sum;\n\t\t\t\tsum=((A>B&&ab))//???????????????sum=3\n\t\t\t\t +((A>C&&ac))\n\t\t\t\t +((Bc)||(B>C&&bB)&&(ab))\n\t\t\t\t\t//+((A>C)&&(ac))\n\t\t\t\t\t//+((C>B)&&(cb));\n\t\t\t\tif(sum==3)\n\t\t\t\t\tF(A,B,C);\n\t\t\t}\n\t\t\treturn 0;\n}\nint F(int A ,int B ,int C)\n{\n\tint temp;\n\tif(AA) cout<<\"CAB\";\n\telse if (C>B) cout<<\"BCA\";\n\telse cout<<\"ABC\";\n}\n\n"} +{"label": "101", "index": "50181", "code": "\n/*?? \n3?????????????? \nA??B??????C??????? \nB??A??????A??C??? \nC????B????B?A???? \n????????????????????? \n???????????3?????? \n*/\nint main()\n{\n\tint a,b,c;\n\tint words[4];\n\tint rank[4];\n\t\n\t//????????\n\tfor (a=1;a<=3;a++)\n\t{\n\t\tfor (b=1;b<=3;b++)\n\t\t{\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif (a!=b&&b!=c&&a!=c)\n\t\t\t\t{\n\t\t\t\t\twords[1]=(b=1;i--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc=rank[i]+64;\n\t\t\t\t\t\t\tcout<a)+(c==a);\n\t\t\tword[2]=(a>b)+(a>c);\n\t\t\tword[3]=(c>b)+(b>a);//word[1][2][3]???a,b,c??????\n\t\t\trank[a]=1;\n\t\t\trank[b]=2;\n\t\t\trank[c]=3;//a,b,c??????1?2?3\n\t\t\tif(word[rank[0]]>word[rank[1]]>word[rank[2]])\n\t\t\t\t{\n\t\t\t\t\tname[a]='A';\n\t\t\t\t\tname[b]='B';\n\t\t\t\t\tname[c]='C';//??a,b,c????A?B?C\n\t\t\t\t\tfor(i=0;i<=2;i++)\n\t\t\t\t\t\tcout<A)+(C==A));\n\t Bs=((A>B)+(A>C));\n\t Cs=((C>B)+(B>A));\n\t if((ABs||BAs||A==B&&As==Bs)&&(CAs||CsA||A==C&&As==Cs)&&(BCs||B>C&&Bsb[1])+(b[1]==b[3]));\n\t\t\t\tb1=((b[1]>b[3])+(b[1]>b[2]));\n\t\t\t\tc1=((b[3]>b[2])+(b[2]>b[1]));\n\t\t\t\tif((a1+b[1])==3&&(b1+b[2]==3)&&(c1+b[3])==3)\n\t\t\t\t{s=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\tif(s==1)\n\t\t\tbreak;\n\t\t}\n\t\tif(s==1)\n\t\t\tbreak;\n\t}\n\tchar a[4]={'Q','A','B','C'};\n\tfor(l=1;l<=3;l++)\n\t{\n if(b[l]==1)\n\t { cout<a)+(c==a);\n\t\t\tsay[1]=(a>b)+(a>c);\n\t\t\tsay[2]=(c>b)+(b>a);//???????????????\n\t\t\tif(!(a<=b&&say[0]<=say[1]||a<=c&&say[0]=B&&B>=C){\n\tcout<<\"CBA\"<=C&&C>=B){\n\tcout<<\"BCA\"<=A&&A>=C){\n\tcout<<\"CAB\"<=C&&C>=A){\n\tcout<<\"ACB\"<=A&&A>=B){\n\tcout<<\"BAC\"<=B&&B>=A){\n\tcout<<\"ABC\"<a)+(c==a);\n\t\t\t\tb1=(a>b)+(a>c);\n\t\t\t\tc1=(c>b)+(b>a); //??a,b,c???? \n\t\t\t\tif ((a1-b1)*(a-b)<0&&(a1-c1)*(a-c)<0&&(b1-c1)*(b-c)<0)\n\t\t\t\t{\n\t\t\t\t\tp=1;\n\t\t\t\t\tbreak;\n\t\t\t\t} //????p?1????? \n\t\t\t}\n\t\t\tif (p==1) break;\n\t\t} //????p?1????? \n\t\tif (p==1) break;\n\t} //????p?1????? \n\tfor(i=1;i<4;i++)\n\t{\n\t\tif(a==i) cout<<\"A\";\n\t\tif(b==i) cout<<\"B\";\n\t\tif(c==i) cout<<\"C\";\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50187", "code": "/**\n * @file ???\n * @author ???\n * @date 11-17\n * @description ??????\n */\nint main()\n{\n int a, b, c, sa, sb, sc, i;\n for (a = 1; a <= 3; a ++)\n for (b = 1; b <= 3; b ++)\n for (c = 1; c <= 3; c ++)\n {\n sa = 0; sb = 0; sc = 0;\n if (b > a) { sa ++; sc ++;}\n if (c == a) sa ++;\n if (a > b) sb ++;\n if (a > c) sb ++;\n if (c > b) sc ++;\n if (((a + sa) == 3) && ((b + sb) == 3) && ((c + sc) == 3))\n for (i = 1; i <= 3; i++)\n {\n if (a == i) cout << 'A';\n if (b == i) cout << 'B';\n if (c == i) cout << 'C';\n }\n } \n return 0;\n}\n "} +{"label": "101", "index": "50188", "code": "\nint main()\n{\n\tint a,b,c;\n\ta=0;\n\twhile(a<3)\n\t{\n\t\tb=0;\n\t\twhile(b<3)\n\t\t{\n\t\t\tc=0;\n\t\t\twhile(c<3)\n\t\t\t{\n\t\t\t\tif(((((b>a)+(c==a))==(2-a))+\n\t\t\t\t(((a>b)+(a>c))==(2-b))+\n\t\t\t (((c>b)+(b>a))==(2-c)))==3)\n\t\t\t\t break;\n\t\t\t\tc++;\n\t\t\t}\n\t\t\tif(((((b>a)+(c==a))==(2-a))+\n\t\t\t\t\t\t\t(((a>b)+(a>c))==(2-b))+\n\t\t\t\t\t\t (((c>b)+(b>a))==(2-c)))==3)\n\t\t\t\t\t\t\t break;\n\t\t\tb++;\n\t\t}\n\t\tif(((((b>a)+(c==a))==(2-a))+\n\t\t\t\t\t\t(((a>b)+(a>c))==(2-b))+\n\t\t\t\t\t (((c>b)+(b>a))==(2-c)))==3)\n\t\t\t\t\t\t break;\n\t\ta++;\n\t}\n\tif(((a>=b)+(a>=c))!=2)\n\t{\n\t\tif(((a>=b)+(a>=c))==0)\n\t\t{\n\t\t\tif(b>=c)cout<<\"A\"<<\"C\"<<\"B\"<=c)cout<<\"C\"<<\"A\"<<\"B\"<=c)cout<<\"C\"<<\"B\"<<\"A\"<a)\n\t\t\t\t\tpa++;\n\t\t\t\tif(a==c)\n\t\t\t\t\tpa++;\n\t\t\t\tif(\ta>b)\n\t\t\t\t\tpb++;\n\t\t\t\tif(\ta>c)\n\t\t\t\t\tpb++;\n\t\t\t\tif(\tc>b)\n\t\t\t\t\tpc++;\n\t\t\t\tif(\tb>a)\n\t\t\t\t\tpc++;\n\t\t\t\tif((a==2-pa)&&(b==2-pb)&&(c==2-pc))\n\t\t\t\t{\n\t\t\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a==j)\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(b==j)\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(c==j)\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50190", "code": "int main()\n{\n int a,b,c;\n int x,y,z;\n a=3;\n b=2;\n c=1;\n{x=((b>a)+(a=c));\n y=((a>b)+(a>c));\n z=((c>b)+(b>a));\n if((x<=y)&(y<=z)&&(x<=z))\n cout<<\"ABC\"; \n \n }\n a=3;\n b=1;\n c=2;\n {\n x=((b>a)+(a=c));\n y=((a>b)+(a>c));\n z=((c>b)+(b>a));\n \n \n if((x<=z)&&(z<=y)&&(x<=y))\n cout<<\"ACB\"; \n }\n a=2;\n b=1;\n c=3;\n {\n x=((b>a)+(a=c));\n y=((a>b)+(a>c));\n z=((c>b)+(b>a));\n \n \n if((x<=y)&&(z<=y)&&(z<=x))\n cout<<\"CAB\"; \n }\n \n a=2;\n b=3;\n c=1;\n {\n x=((b>a)+(a=c));\n y=((a>b)+(a>c));\n z=((c>b)+(b>a));\n \n \n if((x<=z)&&(y<=z)&&(y<=x))\n cout<<\"BAC\"; \n }\n a=1;\n b=2;\n c=3;\n {\n x=((b>a)+(a=c));\n y=((a>b)+(a>c));\n z=((c>b)+(b>a));\n \n \n if((ya)+(a=c));\n y=((a>b)+(a>c));\n z=((c>b)+(b>a));\n \n \n if((z=1;a--)\n\t{\n\t\tfor(b=3;b>=1;b--)\n\t\t{\n\t\t\tif(a!=b)\n\t\t\t{\n\t\t\t\tfor(c=3;c>=1;c--)\n\t\t\t\t{\n\t\t\t\t\tif(a!=c&&b!=c)\n\t\t\t\t\t{\n\t\t\t\t\t\tA=(b>a)+(c==a);\n\t\t\t\t\t\tB=(a>b)+(a>c);\n\t\t\t\t\t\tC=(c>b)+(b>a);\n\t\t\t\t\t\tif(a+A==3&&b+B==3&&c+C==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(a==i)\n\t\t\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\t\t\tif(b==i)\n\t\t\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\t\t\tif(c==i)\n\t\t\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50192", "code": "/*3?????????????? \nA??B??????C??????? \nB??A??????A??C??? \nC????B????B?A???? \n????????????????????? \n???????????3??????*/\n//Goofy 2010 11 19\nint main()\n{\n\tchar peo[4];\n\tint a, b, c, i, judger=0;\n\tpeo[3]='\\0';\n\tfor (a=0; a<3; a++)\n\tfor (b=0; b<3; b++)\n\tfor (c=0; c<3; c++)\n\t{\n\t\tjudger=0;\n\t\tpeo[a]='A';\n\t\tpeo[b]='B';\n\t\tpeo[c]='C';\n\t\tif ( (b>a) + (c==a) == 2-a)//A\n\t\t\tjudger++;\n\t\tif ( (a>b) + (a>c) == 2-b)//B\n\t\t\tjudger++;\n\t\tif ( (c>b) + (b>a) == 2-c)//C\n\t\t\tjudger++;\n\t\tif (judger == 3)\n\t\t\tcout<a)+(c==a);\n\t\t\t\t Bs=(a>b)+(a>c);\n\t\t\t\t Cs=(c>b)+(b>a);\n\t\t\t\t if((a+As==3)&&(b+Bs==3)&&(c+Cs==3))\n for(int i=1;i<=3;i++)//?????????i???????\n \t {\n \t if(a==i) cout<<'A';\n \t if(b==i) cout<<'B';\n \t if(c==i) cout<<'C';\n \t }\n\t\t\t\t }\n\n\n\t\t\t}\n\n}"} +{"label": "101", "index": "50194", "code": "int main()\n{\n\tint aw,bw,cw; //????????????????????????\n\tint i,j,t; //???????????\n\tchar m[3]={'A','B','C'},p; //????????????\n\tint n[3]; //????????\n\tfor(n[0]=1;n[0]<=3;n[0]++) //????\n\t{\n\t\tfor(n[1]=1;n[1]<=3;n[1]++)\n\t\t{\n\t\t\tfor(n[2]=1;n[2]<=3;n[2]++)\n\t\t\t{\n\t\t\t\taw=((n[1]>n[0])+(n[2]==n[0])); //????????\n\t\t\t\tbw=((n[0]>n[1])+(n[0]>n[2]));\n\t\t\t\tcw=((n[2]>n[1])+(n[1]>n[0]));\n\t\t\t\tif(((n[0]>n[1])&&(awn[0])&&(bwn[1])&&(cwn[2])&&(bwn[2])&&(awn[0])&&(cw0;i--) //???????????\n\t{\n\t\tfor(j=0;jn[j+1])\n\t\t\t{\n\t\t\t\tt=n[j];p=m[j];\n\t\t\t\tn[j]=n[j+1];m[j]=m[j+1];\n\t\t\t\tn[j+1]=t;m[j+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%c%c%c\",m[0],m[1],m[2]); //?????\n\treturn 0;\n}"} +{"label": "101", "index": "50195", "code": "int main()\n{\n\tint A,B,C;//????????\n\tint words[4];//??????????????\n\tint rank[4];//?????????????????\n\tfor(A=1;A<=3;A++)\n\t{\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tif(A==B) continue;\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\tif(B==C||A==C) continue;\n\t\t\t\twords[1]=(B>A)+(C==A);\n\t\t\t\twords[2]=(A>B)+(A>C);\n\t\t\t\twords[3]=(C>B)+(B>A);\n\t\t\t\trank[A]=1;\n\t\t\t\trank[B]=2;\n\t\t\t\trank[C]=3;\n\t\t\t\tif(words[rank[1]]>words[rank[2]]&&words[rank[2]]>words[rank[3]])//??????????????\n\t\t\t\t\tcout<<(char)(rank[1]+64)<<(char)(rank[2]+64)<<(char)(rank[3]+64)<a);\n\t\t\t\ti2=(a==c);\n\t\t\t\ti3=(a>b);\n\t\t\t\ti4=(a>c);\n\t\t\t\ti5=(c>b);\n\t\t\t\ti6=(b>a);\n\t\t\t\ti7=a+i1+i2;\n\t\t\t\ti8=b+i3+i4;\n\t\t\t\ti9=c+i5+i6;\n\n if (i7==2&&i8==2&&i9==2)\n\t {\n\t\t n[a]='A';\n\t\t n[b]='B';\n\t\t n[c]='C';\n\t\t for(i=0;i<3;i++)\n\t\t\t cout<a[0])+(a[0]==a[2]);\n c[1]=(a[0]>a[1])+(a[0]>a[2]);\n c[2]=(a[2]>a[1])+(a[1]>a[0]);\n if (a[0]c[1])\n {\n if (a[1]c[2])\n cout <c[2])\n {\n if (a[2]c[1])\n cout <c[0])\n {\n if (a[0]c[2])\n cout <c[2])\n {\n if (a[2]c[0])\n cout <c[0])\n {\n if (a[0]c[1])\n cout <c[1])\n {\n if (a[1]c[0])\n cout <B)+(A>C);\n\t\t\t\tWord[C-1]=(C>B)+(B>A);\n\t\t\t\tRank[A-1]='A';\n\t\t\t\tRank[B-1]='B';\n\t\t\t\tRank[C-1]='C';\n\t\t\t if((A+Word[A-1]==3)&&(B+Word[B-1]==3)&&(C+Word[C-1]==3)) //???????????3???????\n\t\t\t\t{for(i=1;i<4;i++) //??????3?????\n\t\t\t\t cout< i ) + ( i == k ) ;\n\t\t\t\taj = ( i > j ) + ( i > k ) ;\n\t\t\t\tak = ( k > j ) + ( j > i ) ;\n\t\t\t\t//????????????????????????????????????????????\n\t\t\t\tif ( ( ( i > j ) == ( ai < aj ) ) && ( ( i < j ) == ( ai > aj ) )\n\t\t\t\t && ( ( i > k ) == ( ai < ak ) ) && ( ( i < k ) == ( ai > ak ) )\n\t\t\t\t && ( ( k > j ) == ( ak < aj ) ) && ( ( k < j ) == ( ak > aj ) ) )\n\t\t\t\t//??????????????????m??A?B?C???????\n\t\t\t\tfor ( m = 0 ; m <= 2 ; m ++ )\n\t\t\t\t{\n\t\t\t\t\tif ( i == m ) cout << \"A\" ;\n\t\t\t\t\tif ( j == m ) cout << \"B\" ;\n\t\t\t\t\tif ( k == m ) cout << \"C\" ;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0 ;\n}"} +{"label": "101", "index": "50200", "code": "int main()\n{\n\tint logicA , logicB , logicC; \n\tint eatA , eatB , eatC;\n\tchar ABC[3];\n\tfor ( eatA = 1; eatA <=3; eatA++ )\n\t{\n\t\tfor ( eatB = 1; eatB <=3; eatB++ )\n\t\t{\n\t\t\tfor ( eatC = 1; eatC <=3; eatC++ )\n\t\t\t{\n\t\t\t\tlogicA = ( (eatB > eatA) + (eatA == eatC) );\n\t\t\t\tlogicB = ( (eatA > eatB) + (eatA > eatC) );\n\t\t\t\tlogicC = ( (eatC > eatB) + (eatB > eatA) );\n\t\t\t\tif ( ((eatA > eatB && logicA < logicB)\n\t\t\t\t\t|| (eatA < eatB && logicA > logicB) || (eatA == eatB && logicA == logicB))\n\t\t\t\t\t+ ((eatA > eatC && logicA < logicC)\n\t\t\t\t\t|| (eatA < eatC && logicA > logicC) || (eatA == eatC && logicA == logicC))\n\t\t\t\t\t+ ((eatC > eatB && logicC < logicB)\n\t\t\t\t\t|| (eatC < eatB && logicC > logicB) || (eatC == eatB && logicC == logicB)) == 3 )\n\t\t\t\t{\n\t\t\t\t\tABC[eatA] = 'A';\n\t\t\t\t\tABC[eatB] = 'B';\n\t\t\t\t\tABC[eatC] = 'C';\n\t\t\t\t\tcout << ABC[1] << ABC[2] << ABC[3];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn 0;\n\n}"} +{"label": "101", "index": "50201", "code": "//???\n//2010?11?17?\n//1000012753 ???\nint main()\n{\n\tint A = 0, B = 0, C = 0;\n\tfor (A = 0; A <= 2; A++)\n\t\tfor (B = 0; B <= 2; B++)\n\t\t\tfor (C = 0; C <= 2; C++)\n\t\t\t{\n\t\t\t\tif (A != B && B != C && A != C)\n\t\t\t\t{\n\t\t\t\t\tif ((B > A) + (B == C) + A == 2\n\t\t\t\t\t\t&& (A > B) + (A > C) + B == 2\n\t\t\t\t\t\t&& (C > B) + (B > A) + C == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tchar output[5];\n\t\t\t\t\t\toutput[A] = 'A';\n\t\t\t\t\t\toutput[B] = 'B';\n\t\t\t\t\t\toutput[C] = 'C';\n\t\t\t\t\t\toutput[3] = '\\0';\n\t\t\t\t\t\tcout << output;\n\t\t\t\t\t\tcout << endl;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\treturn 0;\n}"} +{"label": "101", "index": "50202", "code": "int main()\n{ int vol[3]={0},judge[3]={0},i,j,k,ri,rj;\n for(i=0;i<3;i++)\n {\n\t for(j=0;j<3;j++)\n\t {\n\t\t for(k=0;k<3;k++)\n\t\t {\n\t\t\t vol[0]=i;vol[1]=j;vol[2]=k;\n\t\t\t judge[0]=(vol[0]vol[1])+(vol[0]>vol[2]);\n\t\t\t judge[2]=(vol[2]>vol[1])+(vol[1]>vol[0]);\n\n\t\t\t for(ri=0;ri<3;ri++)\n\t\t\t {\n\t\t\t\t for(rj=0;rj<3;rj++)\n\t\t\t\t {\n\t\t\t\t\t if( (vol[ri]>=vol[rj]) && (judge[ri]>judge[rj]) ) goto end1;\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t for(ri=2;ri>=0;ri--)\n\t\t\t {\n\t\t\t\t for(rj=0;rj<3;rj++)\n\t\t\t\t {\n\t\t\t\t\t if(vol[rj]==ri) cout<<(char)(rj+65);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t goto endall ;\n\t\t\t end1: ;\n\t\t }\n\t }\n }\n endall: ;\n\n cin.get();\n cin.get();\n cin.get();\n\n\treturn 0;\n}"} +{"label": "101", "index": "50203", "code": "int main()\n{\n\tint A,B,C; //??????\n\tchar x[3];\n\tfor (A=0;A<=2;A++)\n\t{\n\t\tfor (B=0;B<=2;B++)\n\t\t{\n\t\t\tif (A==B)\n\t\t\t\tcontinue;\n\t\t\tfor (C=0;C<=2;C++)\n\t\t\t{\n\t\t\t\tif (A==C||B==C)\n\t\t\t\t\tcontinue; //?A,B,C??????\n\t\t\t\tx[A]=(B>A)+(A==C);\n\t\t\t\tx[B]=(A>B)+(A>C);\n\t\t\t\tx[C]=(C>B)+(B>A); //???????\n\t\t\t\tif (x[2-A]==A&&x[2-B]==B&&x[2-C]==C)\n\t\t\t\t{\n\t\t\t\t\tx[A]='A';\n\t\t\t\t\tx[B]='B';\n\t\t\t\t\tx[C]='C'; //??\n\t\t\t\t\tcout< b)\n\t\treturn 1;\n\tif (a == b)\n\t\treturn 0;\n\treturn -1;\n}\nint main() {\n\tint A, B, C, nA, nB, nC;\n\tchar ret;\n\tfor (A = 0; A <= 2; A++) {\n\t\tfor (B = 0; B <= 2; B++) {\n\t\t\tfor (C = 0; C <= 2; C++) {\n\t\t\t\tnA = (B > A) + (C == A);\n\t\t\t\tnB = (A > B) + (A > C);\n\t\t\t\tnC = (C > B) + (B > A);\n\t\t\t\tret = true;\n\t\t\t\tif (comp(nA, nB) != comp(B, A))\n\t\t\t\t\tret = false;\n\t\t\t\tif (comp(nA, nC) != comp(C, A))\n\t\t\t\t\tret = false;\n\t\t\t\tif (comp(nC, nB) != comp(B, C))\n\t\t\t\t\tret = false;\n\t\t\t\tif (ret == true) {\n\t\t\t\t\tif (A < B && A < C) {\n\t\t\t\t\t\tcout << 'A';\n\t\t\t\t\t\tif (B < C)\n\t\t\t\t\t\t\tcout << \"BC\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"CB\";\n\t\t\t\t\t} else if (B < C) {\n\t\t\t\t\t\tcout << 'B';\n\t\t\t\t\t\tif (A < C)\n\t\t\t\t\t\t\tcout << \"AC\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"CA\";\n\t\t\t\t\t} else\n\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50205", "code": "int main()\n{\n\tint a[3],b[3],i=0,k=0;\n\tchar rank[3];\n\trank[0]='A';\n\trank[1]='B';\n\trank[2]='C';\n\tfor(a[0]=0;a[0]<3;a[0]++)\n\t{\n\t\tfor(a[1]=0;a[1]<3;a[1]++)\n\t\t{\n\t\t\tfor(a[2]=0;a[2]<3;a[2]++)\n\t\t\t{\n\t\t\t\tb[0]=(a[1]>a[0])+(a[2]==a[0]);\n\t\t\t\tb[1]=(a[0]>a[1])+(a[0]>a[2]);\n\t\t\t\tb[2]=(a[2]>a[1])+(a[1]>a[0]);\n\t\t\t\tif(a[0]+b[0]==2&&a[1]+b[1]==2&&a[2]+b[2]==2)\n\t\t\t\t{\n\t\t\t\t\tfor(k=0;k<=2;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a[i]==k)\n\t\t\t\t\t\t\t\tcout<i)+(k==i))==2-i)&&(((i>j)+(i>k))==2-j)&&(((k>j)+(j>i))==2-k))\n\t\t\t\t{\n\t\t\t\t//\tif (i==2&&j==1&&k==0)\n\t\t\t\t//\t\tcout<<\"ABC\"<a)+(c==a);\n bs=(a>b)+(a>c);\n cs=(c>b)+(b>a);\n if(!((a<=b) && (as<=bs) || (a<=c) && (as<=cs)||\n (b<=a) && (bs<=as) || (b<=c) && (bs<=cs)||\n (c<=a) && (cs<=as) || (c<=b) && (cs<=bs)) )\n for(i=1;i<4;i++)\n {\n if(a==i) printf(\"A\");\n if(b==i) printf(\"B\");\n if(c==i) printf(\"C\");\n }\n }\n return 0;\n}"} +{"label": "101", "index": "50208", "code": "\n\nint exam( char s[4], char t );\n\nint main()\n{\n char order[6][4]={\"ABC\", \"ACB\", \"BAC\", \"BCA\", \"CAB\", \"CBA\"};\n for( int i=0; i<6; i++ )\n {\n int a=0, b=0, c=0;\n if( exam( order[i], 'B') < exam( order[i], 'A') )\n a++;\n if( exam( order[i], 'C')-exam( order[i], 'A') ==1 )\n a++;\n if( exam( order[i], 'C')-exam( order[i], 'A') ==-1 )\n a++;\n if( exam( order[i], 'A') < exam( order[i], 'B') )\n b++;\n if( exam( order[i], 'A') < exam( order[i], 'C') )\n b++;\n if( exam( order[i], 'C') < exam( order[i], 'B') )\n c++;\n if( exam( order[i], 'B') < exam( order[i], 'A') )\n c++;\n int k=0;\n if( exam( order[i], 'A') == a)\n k++;\n if( exam( order[i], 'B') == b)\n k++;\n if( exam( order[i], 'C') == c)\n k++;\n if( k == 3 )\n cout << order[i];\n\n }\n return 0;\n}\n\nint exam( char s[4], char t )\n{\n for( int i=0; i<3; i++ )\n {\n if( s[i]== t)\n return i;\n }\n}"} +{"label": "101", "index": "50209", "code": "int main()\n{\n\tint a[5],markA=0,markB=0,markC=0;\n\tfor(int x=1;x<=3;x++)\n\t{\n\t\tfor(int y=1;y<=3;y++)\n\t\t{\n\t\t\tfor(int z=1;z<=3;z++)\n\t\t\t{\n\t\t\t\tif(x!=y && y!=z && x!=z)\n\t\t\t\t{\n\t\t\t\t a[x]=3;a[y]=2;a[z]=1;\n\t\t\t\t //for A\n\t\t\t\t markA=0;markB=0;markC=0;\n\t\t\t\t if (a[2]>a[1]) markA++;\n\t\t\t\t if (a[1]>a[2]) markB++;\n\t\t\t\t if (a[1]>a[3]) markB++;\n\t\t\t\t if (a[3]>a[2]) markC++;\n\t\t\t\t if (a[2]>a[1]) markC++;\n\t\t\t\t if(markA==3-a[1] && markB==3-a[2] && markC==3-a[3])\n\t\t\t \t {\n\t\t\t\t\tif(a[1] 0 || ((cc1 == cc2) && (a == b)))\n\t\t\t\t\t&& (((cc2 - cc3) * (b - c)) > 0 || ((cc2 == cc3) && (b == c)))\n\t\t\t\t\t&& (((cc3 - cc1) * (c - a)) > 0 || ((cc3 == cc1) && (c == a))))//???????????????????a,b,c?????????n?\n\t\t\t\t{\n\t\t\t\t\tn[0] = a;\n\t\t\t\t\tn[1] = b;\n\t\t\t\t\tn[2] = c;\n\t\t\t\t}\n\t\t\t}\n\tfor (i = 0; i <= 1; i++)//??????a,b,c?????????\n\t\tfor (j = 0; j <= 1 - i; j ++)//????\n\t\t{\n\t\t\tif (n[j] < n[j + 1])//????????a,b,c?????????m?A,B,C????n??a,b,c\n\t\t\t{\n\t\t\t\tk = n[j];\n\t\t\t\tn[j] = n[j + 1];\n\t\t\t\tn[j + 1] = k;\n\t\t\t\tD = m[j];\n\t\t\t\tm[j] = m[j + 1];\n\t\t\t\tm[j + 1] = D;\n\t\t\t}\n\t\t}\n cout << m[0] << m[1] << m[2] << endl;//?????3???\n\treturn 0;\n}\n\n\n"} +{"label": "101", "index": "50211", "code": "int main() //?????\n{ \n\tint A,B,C,i,j,x; //????ABC????3??????????i,j,????x\n\tint a[3]; //????\n\tchar b[3]={'A','B','C'};\n\tchar p;\n\tfor(A=0;A<=2;A++) //???????????????\n\t{\n\t\tfor(B=0;B<=2;B++)\n\t\t{\n\t\t\tfor(C=0;C<=2;C++)\n\t\t\t{\n\t\t\t\tif((B>A)+(C==A)==2-A&&(A>B)+(A>C)==2-B&&(C>B)+(B>A)==2-C) //??????????\n\t\t\t\t{\n\t\t\t\t\ta[0]=A;\n\t\t\t\t\ta[1]=B;\n\t\t\t\t\ta[2]=C;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=1;i++) //?????????a[3],b[3]??\n\t{\n\t\tfor(j=0;j<=1-i;j++)\n\t\t{\n\t\t\tif(a[j]>a[j+1])\n\t\t\t{\n\t\t\t\tp=a[j+1];\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\ta[j]=p;\n\t\t\t\tx=b[j+1];\n\t\t\t\tb[j+1]=b[j];\n\t\t\t\tb[j]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=2;i++) //????????\n\t{\n\t\tcout< person[0]) + (person[2] == person[0]);\n\t\t\t\thua[1] = (person[0] > person[1]) + (person[0] > person[2]);\n\t\t\t\thua[2] = (person[2] > person[1]) + (person[1] > person[0]);\n\t\t\t\t\n\t\t\t\tint\tp;\n\t\t\t\tfor (p = 0; p < 3; p ++)\n\t\t\t\t{\n\t\t\t\t\tif(person[p] + hua[p] != 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(p == 3)\n\t\t\t\t{\n\t\t\t\t\tint\tt;\n\t\t\t\t\tfor (t = 0; t < 3; t ++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << (char)('A' + fan[t]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\nreturn 0;\n}"} +{"label": "101", "index": "50213", "code": "/*\n * 05.cpp\n *??? ???\n * Created on: 2012-10-18\n * Author: ???\n */\nint main()\n{\n\tint A,B,C,p,m,n;\n\tA=3;B=2;C=1;\n\t\tp=(AB)+(A>C);\n\t\tn=(C>B)+(B>A);\n\t\tif(p==0&&m==1&&n==2)cout<<\"CBA\"<B)+(A>C);\n\t\tn=(C>B)+(B>A);\n\t\tif(p==0&&m==2&&n==1)cout<<\"BCA\"<B)+(A>C);\n\t\tn=(C>B)+(B>A);\n\t\tif(p==1&&m==0&&n==2)cout<<\"CAB\"<B)+(A>C);\n\t\tn=(C>B)+(B>A);\n\t\tif(p==2&&m==0&&n==1)cout<<\"ACB\"<B)+(A>C);\n\t\tn=(C>B)+(B>A);\n\t\tif(p==2&&m==1&&n==0)cout<<\"ABC\"<B)+(A>C);\n\t\tn=(C>B)+(B>A);\n\t\tif(p==1&&m==2&&n==0)cout<<\"BAC\"<A)+(C==A); //???????????? \n\t\t\t\tc[1]=(A>B)+(A>C);\n\t\t\t\tc[2]=(C>B)+(B>A);\n\t\t\t\tif(c[0]+A==2&&c[1]+B==2&&c[2]+C==2){ //?????????0,1,2???????????????????2\n\t\t\t\t\tif(A<=B&&B<=C) //?????\n\t\t\t\t\t\tcout<<\"ABC\"<b)&&(a>c)) return 'A';\n\t\t\tif((b>a)&&(b>c)) return 'B';\n\t\t\tif((c>b)&&(c>a)) return 'C';\n\t\t\t}\n\n\t\t\tchar min(int a,int b, int c){\n\t\t\tif((aa)-(c==a)))&&(b==(3-(a>b)-(a>c)))&&(c==(3-(c>b)-(b>a))))\n\t\t\t{ \n\t\t\t\tcout<a)+(c==a)==(3-a))&&((a>b)+(a>c)==(3-b))&&((c>b)+(b>a)==(3-c))){//?????????\n\t\t\t\t\tint e[3]={a,b,c};\n\t\t\t\t\tchar f[3]={'A','B','C'};\n\t\t\t\t\tfor(i=0;i<2;i++)\n\t\t\t\t\t\tfor(j=0;j<2-i;j++)\n\t\t\t\t\t\t\tif(e[j]>e[j+1]){\n\t\t\t\t\t\t\t\tswap(e[j],e[j+1]);\n\t\t\t\t\t\t\t\tswap(f[j],f[j+1]);\n\t\t\t\t\t\t\t}//????\n\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t\tcout< A) + (C == A);\n\t\t\t\tx2 = (A > B) + (A > C);\n\t\t\t\tx3 = (C > B) + (B > A);\n \t\t\t\tif((x1 + A == 2) && (x2 + B == 2) && (x3 + C == 2) && A !=B && B != C && C != A)\n\t\t\t\t{\n\t\t\t\t\tmun[A] = 'A';\n\t\t\t\t\tmun[B] = 'B';\n\t\t\t\t\tmun[C] = 'C';\t\n\t\t\t\t\tmun[3] = '\\0';\n\t\t\t\t}\n\t\t\t}\n\tcout << mun << endl;\n\treturn 0;\n}"} +{"label": "101", "index": "50218", "code": "int main()\n{\n\tint x1,x2,x3,x4,x5,x6,a,b,c,t[3];\n\tfor (a=0;a<=2;a++)\n\t\tfor (b=0;b<=2;b++)\n\t\t\tfor (c=0;c<=2;c++)\n\t\t\t{\n\t\t\t\tx1=(b>a);\n\t\t\t\tx2=(c==a);\n\t\t\t\tx3=(a>b);\n\t\t\t\tx4=(a>c);\n\t\t\t\tx5=(c>b);\n\t\t\t\tx6=(b>a);\n\t\t\t\tt[0]=x1+x2;\n\t\t\t\tt[1]=x3+x4;\n\t\t\t\tt[2]=x5+x6;\n\t\t\t\tif (t[0]==2-a&&t[1]==2-b&&t[2]==2-c)\n\t\t\t\t{\n\t\t\t\t\tif (t[0]>t[1]&&t[0]>t[2])\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif (t[1]>t[2])\n\t\t\t\t\t\t\tcout<<\"BC\";\n\t\t\t\t\t\telse cout<<\"CB\";\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t\tif (t[1]>t[0]&&t[1]>t[2])\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif (t[0]>t[2])\n\t\t\t\t\t\t\tcout<<\"AC\";\n\t\t\t\t\t\telse cout<<\"CA\";\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t\tif (t[2]>t[1]&&t[2]>t[0])\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t\tif (t[1]>t[0])\n\t\t\t\t\t\t\tcout<<\"BA\";\n\t\t\t\t\t\telse cout<<\"AB\";\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n}\n"} +{"label": "101", "index": "50219", "code": "int main()\n{int A,B,C,i=3;\nint s[3];\nfor(A=1;A<=3;A++)\n\tfor(B=1;B<=3;B++)\n\t\tfor(C=1;C<=3;C++)\n\t\t\t{s[0]=(B>A)+(C==A);\n s[1]=(A>B)+(A>C);\n s[2]=(C>B)+(B>A);\n if((s[0]!=s[1]&&s[1]!=s[2]&&s[0]!=s[2])&&(A!=B&&B!=C&&C!=A)&&(A+s[0]==B+s[1]&&B+s[1]==C+s[2]))\n\t\t\tfor(i=1;i<=3;i++)\n\n\t\t\t{if (A==i)cout<<\"A\";\n\t\t\telse if(B==i) cout<<\"B\";\n\t\t\telse cout<<\"C\";}\n\t\t\t}\nreturn 0;\n}"} +{"label": "101", "index": "50220", "code": "int main()\n{\n\tint A,B,C,k1,k2,k3;\n char a[3];\n\tfor(A=2;A>=0;A--)\n\t{\n\t\tfor(B=2;B>=0;B--)\n\t\t{\n\t\t\tif(A==B) continue;\n\t\t\tfor(C=2;C>=0;C--)\n\t\t\t{\n\t\t\t\tif(A==C||B==C) continue;\n\t\t\t\t k1=(B>A)+(C==A);\n\t\t\t k2=(A>B)+(A>C);\n\t\t\t\t k3=(C>B)+(B>A);\n\t\t\t\t if(((k1-k2)*(A-B)<0)+((k1-k3)*(A-C)<0)+((k2-k3)*(B-C)<0)==3)\n\t\t\t\t { a[A]='A';a[B]='B';a[C]='C';\n\t\t\t\t cout< a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif(a + A == 2)\n\t\t\t\t\tif(b + B == 2)\n\t\t\t\t\t\tif(c + C == 2)\n\t\t\t\t\t\t\tcout << p(0,a,b,c) << p(1,a,b,c) << p(2,a,b,c);\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50222", "code": "int main()\n{\n int a,b,c; //a,b,c??A,B,C?????????1,???3?\n int word[4],rank[4];\n \n for (a=1;a<=3;a++)\n for (b=1;b<=3;b++)\n {if (b==a) continue; //??a,b?? \n for (c=1;c<=3;c++)\n {if ((c==a)||(c==b)) continue; //??a,b,c?? \n word[1]=(b>a)+(c==a); //?????,word[1]??A??? \n word[2]=(a>b)+(a>c);\n word[3]=(c>b)+(b>a);\n \n rank[4-a]=1; //????????????????????=4-??? \n rank[4-b]=2;\n rank[4-c]=3;\n if ((word[rank[1]]==0)&&(word[rank[2]]==1)&&(word[rank[3]]==2)) //????????????????? \n {cout<<(char)(rank[3]+64)<<(char)(rank[2]+64)<<(char)(rank[1]+64)<A)+(C==A);\n b=(A>B)+(A>C);\n c=(C>B)+(B>A);\n for(A=1;A<4;A++)\n for(B=1;B<4;B++)\n for(C=1;C<4;C++)\n if(((A>B&&ab))\n +((A>C&&ac))\n +((Bc)||(B>C&&ba)+(c==a);\n\t\t\t\t\te=(a>b)+(a>c);\n\t\t\t\t\tf=(c>b)+(b>a);\n\t\t\t\t\tif((a+d)==(b+e)&&(a+d)==(c+f)&&(b+e)==(c+f))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a>b&&b>c) cout<<\"CBA\";\n\t\t\t\t\t\telse if(a>c&&c>b) cout<<\"BCA\";\n\t\t\t\t\t\telse if(b>a&&a>c) cout<<\"CAB\";\n\t\t\t\t\t\telse if(b>c&&c>a) cout<<\"ACB\";\n\t\t\t\t\t\telse if(c>b&&b>a) cout<<\"ABC\";\n\t\t\t\t\t\telse if(c>a&&a>b) cout<<\"BAC\";\n\t\t\t\t\t}\n\t\t\t\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50226", "code": "\n\n\nint main ()\n{\n\tfor(int a=1;a<4;a++)\n\t{\n\t\tfor(int b=1;b<4;b++)\n\t\t{\n\t\t\tfor(int c=1;c<4;c++)\n\t\t\t{\n\t\t\t\tif(((b>a)+(c==a)==3-a)&&((a>c)+(a>b)==3-b)&&((c>b)+(b>a)==3-c))\n\t\t\t\t{\n\t\t\t\t\tint rank[3]={a,b,c};\n\t\t\t\t\tchar ch[3]={'A','B','C'};\n\t\t\t\t\tfor(int i=0;i<2;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rank[i]=0;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<a)+(c==a))==2)&&((b+(a>b)+(a>c))==2)&&((c+(c>b)+(b>a))==2))\n\t\t\t\t{\n\t\t\t\t\tif(a==0)cout<<'A';\n\t\t\t\t\tif(b==0)cout<<'B';\n\t\t\t\t\tif(c==0)cout<<'C';\n\t\t\t\t\tif(a==1)cout<<'A';\n\t\t\t\t\tif(b==1)cout<<'B';\n\t\t\t\t\tif(c==1)cout<<'C';\n if(a==2)cout<<'A';\n\t\t\t\t\tif(b==2)cout<<'B';\n\t\t\t\t\tif(c==2)cout<<'C';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50228", "code": "\nint main() {\n\tint A, B, C;\n\tint c1, c2, c3;\n\tfor (A = 0; A <= 2; A++)\n\t\tfor (B = 0; B <= 2; B++)\n\t\t\tfor (C = 0; C <= 2; C++)\n\t\t\t\tif (A != B && A != C && B != C) {\n\t\t\t\t\tc1 = (B > A) + (C == A);\n\t\t\t\t\tc2 = (A > B) + (A > C);\n\t\t\t\t\tc3 = (C > B) + (B > A);\n\t\t\t\t\tif (A + c1 == 2 && B + c2 == 2 && C + c3 == 2) {\n\t\t\t\t\t\tif (A > B && B > C)\n\t\t\t\t\t\t\tcout << \"C\" << \"B\" << \"A\";\n\t\t\t\t\t\tif (A > C && C > B)\n\t\t\t\t\t\t\tcout << \"B\" << \"C\" << \"A\";\n\t\t\t\t\t\tif (B > A && A > C)\n\t\t\t\t\t\t\tcout << \"C\" << \"A\" << \"B\";\n\t\t\t\t\t\tif (B > C && C > A)\n\t\t\t\t\t\t\tcout << \"A\" << \"C\" << \"B\";\n\t\t\t\t\t\tif (C > A && A > B)\n\t\t\t\t\t\t\tcout << \"B\" << \"A\" << \"C\";\n\t\t\t\t\t\tif (C > B && B > A)\n\t\t\t\t\t\t\tcout << \"A\" << \"B\" << \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\treturn 0;\n\n}\n"} +{"label": "101", "index": "50229", "code": "int main (){\n\tint a=0,b=0,c=0;\n\tfor(a=0;a<=2;a++)\n\t\tfor(b=0;b<=2;b++)\n\t\t\tfor(c=0;c<=2;c++)\n\t\t\t{\n\t\t\t\tif((a+(b>a)+(c==a)==2)&&\n\t\t\t\t (b+(a>b)+(a>c)==2)&&\n\t\t\t\t (c+(c>b)+(b>a)==2))\n\t\t\t\t{\n\t\t\t\t\tif((a>b)&&(a>c)) //??a=b??????\n\t\t\t\t\t{\n\t\t\t\t\t\tif(b>c)cout<<\"CBA\"; //???if??????????????a>b=c\n\t\t\t\t\t\tif(bc)&&(b>a))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a>c)cout<<\"CAB\";\n\t\t\t\t\t\tif(aa)&&(c>b))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a>b)cout<<\"BAC\";\n\t\t\t\t\t\tif(a=1;i--) //????\n\t\t\t cout<a&&c==a)x=0;\n\t\t\t\t\telse if(b<=a&&c!=a)x=2;\n\t\t\t\t\telse x=1;\n\t\t\t\t\tif(a>b&&a>c)y=0;\n\t\t\t\t\telse if(a<=b&&a<=c)y=2;\n\t\t\t\t\telse y=1;\n\t\t\t\t\tif(c>b&&b>a)z=0;\n\t\t\t\t\telse if(c<=b&&b<=a)z=2;\n\t\t\t\t\telse z=1;\n\t\t\t\t\tif(x==a&&y==b&&z==c)\n\t\t\t\t\t{\n\t\t\t\t\tif(b>c&&a>c){putchar('C');if(b>a)printf(\"AB\");else printf(\"BA\");}\n\t\t\t\t\telse if(a>b&&c>b){putchar('B');if(a>c)printf(\"CA\");else printf(\"AC\");}\n\t\t\t\t\telse if(aa)+(c==a);\n\t\t\t\tt[1]=(a>b)+(a>c);\n\t\t\t\tt[2]=(c>b)+(b>a);\n\t\t\t\tif(a+t[0]==2 && b+t[1]==2 && c+t[2]==2)\n\t\t\t\t{\n\t\t\t\t\tfor(l=0;l<3;l++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout< A ) + ( C == A ) ;\n\t\t\t\t\tb = ( A > B ) + ( A > C ) ;\n\t\t\t\t\tc = ( C > B ) + ( B > A ) ;\n\t\t\t\t\tif ( a != b && b != c && a != c)\n\t\t\t\t\t\tif ( (B>A)+(b>=a) == 1 && (A>C)+(a>=c) == 1 && (B>C)+(b>=c) == 1 ) //???????????????????\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( A>B && B>C ) cout << \"C\" << \"B\" << \"A\" <C && C>B ) cout << \"B\" << \"C\" << \"A\" <A && A>C ) cout << \"C\" << \"A\" << \"B\" <C && C>A ) cout << \"A\" << \"C\" << \"B\" <B && B>A ) cout << \"A\" << \"B\" << \"C\" <A && A>B ) cout << \"B\" << \"A\" << \"C\" <a)+(a==c);\n\t\t\tbs=(a>b)+(a>c);\n\t\t\tcs=(c>b)+(b>a);\n\t\t\tif ( ( ( (a>b) && (asbs) ))\n\t\t\t\t && (( (c>b) && (csbs) ) )\n\t\t\t \t&&( ( (a>c) && (ascs) ) ) )\n\t\t\t cout <<\"BCA\";\n\t\t\t}\n\t\t\treturn 0;\n}"} +{"label": "101", "index": "50235", "code": "//============================================================================\n// Name : homework.cpp\n// Author : ???\n// Time : 2013.10.23\n// Description : ???\n//============================================================================\n\nint main() {\n\tint a=0,b=0,c=0;//?????\n\tfor(a=0;a<=2;a++){//a??\n\t\tfor(b=0;b<=2;b++){//b??\n\t\t\tfor(c=0;c<=2;c++){//c??\n\t\t\t\tif(a==b||a==c||b==c)//?????????\n\t\t\t\t\tcontinue;\n\t\t\t\tint x=0,y=0,z=0;//?????????\n\t\t\t\tif(b>a) x++;\n\t\t\t\tif(a>b) y++;\n\t\t\t\tif(a>c) y++;\n\t\t\t\tif(c>b) z++;\n\t\t\t\tif(b>a) z++;\n\t\t\t\tif(a>b&&b>c&&xc&&c>b&&xa&&a>c&&yc&&c>a&&ya&&a>b&&zb&&b>a&&zA)+(C==A))==2)&&(B+((A>B)+(A>C))==2)&&(C+((C>B)+(B>A))==2))\n\t\t\t\t{\n\t\t\t\t\trank[A]='A';\n\t\t\t\t\trank[B]='B';\n\t\t\t\t\trank[C]='C';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<3;i++)\n\t\tcout<a)+(c==a)); //????????\n\t\t\t\tbw=((a>b)+(a>c));\n\t\t\t\tcw=((c>b)+(b>a));\n\t\t\t\tif(((a>b)&&(awa)&&(bwb)&&(cwc)&&(bwc)&&(awa)&&(cw0;i--) //???????????\n\t{\n\t\tfor(j=0;jn[j+1])\n\t\t\t{\n\t\t\t\tt=n[j];p=m[j];\n\t\t\t\tn[j]=n[j+1];m[j]=m[j+1];\n\t\t\t\tn[j+1]=t;m[j+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%c%c%c\",m[0],m[1],m[2]); //?????\n\treturn 0;\n}"} +{"label": "101", "index": "50238", "code": "int main()\n{\n\tint A, B, C, ra, rb, rc, m, n, l;\n\tchar p, q, r;\n\tfor ( ra = 0; ra <= 2; ra ++)\n\t\tfor ( rb = 0; rb <= 2; rb ++)\n\t\t\tfor ( rc = 0; rc <= 2; rc ++)\n\t\t\t{\n\t\t\t\tA =( rb > ra )+( rc == ra); //??A???\n\t\t\t\tB =( ra > rb )+( ra > rc); //??B???\n\t\t\t\tC =( rc > rb )+( rb == ra); //??C???\n\t\t\t\tif ( A + B + C == 3)\n\t\t\t\t{\n\t\t\t\t\tif (( A > B )&&( A > C ))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( B > C)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout <<\"ABC\"<< endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout <<\"ACB\"<< endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (( B > A )&&( B > C ))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( A > C )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout <<\"BAC\"<< endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout <<\"BCA\"<< endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (( C > A )&&( C > B ))\n\t\t\t\t\t{\n\t\t\t\t\t\tm =C;\n\t\t\t\t\t\tif ( A > B )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout <<\"CAB\"<< endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout <<\"CBA\"<< endl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn 0;\n}\n\n\n"} +{"label": "101", "index": "50239", "code": "/*\n * ????20.cpp\n * ??????\n * ????:2012-10-23\n * ??????\n */\n\nint main(){ //???\n\tfor(int A=0;A<=2;A++) //????A??for????A???????????0????1????2?\n\t\tfor(int B=0;B<=2;B++) //????B?for????B??\n\t\t\tfor(int C=0;C<=2;C++) //????C?for????C??\n\t\t\t\tif(A==(B=0;i--){ //?for?????????????????3?????\n\t\t\t\t\t\tif(A==i)\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(B==i)\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(C==i)\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\treturn 0; //?????\n}"} +{"label": "101", "index": "50240", "code": "int main()\n{int A,B,C,b[3]={0},a[3]={0};\nA=0;\nB=2;\nC=1; \n a[0]=(((B a[i][0]) + ( a[i][2] == a[i][0] ) ;\n\t B = ( a[i][0] > a[i][1]) + ( a[i][0] > a[i][2] ) ;\n\t\tC = ( a[i][2] > a[i][1]) + ( a[i][1] > a[i][0] ) ;\n\t\tif ( A + a[i][0] == 2 && B + a[i][1] == 2 && C + a[i][2] == 2 ) // ????????????????????\n\t\t\tbreak;\n\t}\n\tif ( A > B && B > C ) // ?????????\n\t\tcout << \"ABC\" ;\n\tif ( A > C && C > B )\n\t\tcout << \"ACB\" ;\n\tif ( B > A && A > C )\n\t\tcout << \"BAC\" ;\n\tif ( B > C && C > A )\n\t\tcout << \"BCA\" ;\n\tif ( C > A && A > B )\n\t\tcout << \"CAB\" ;\n\tif ( C > B && B > A )\n\t\tcout << \"CBA\" ;\n\treturn 0;\n}"} +{"label": "101", "index": "50242", "code": "/*\n???????\n??????\n?????2011.10.12\n*/\nint main()\n{\n\tint A,B,C,a,b,c;\n\tfor(A = 0; A < 3; A++)\n\t\tfor(B = 0; B < 3; B++)\n\t\t\tfor(C = 0; C < 3; C++)\n\t\t\t{\n\t\t\t\ta = ((B > A) + (C == A));\n b = ((A > B) + (A > C));\n c = ((C > B) + (B > A));\n if(((A > B && a < b) || (A == B && a == b) || (A < B && a > b))\n\t\t\t\t\t+ ((A > C && a < c) || (A == C && a == c) || (A < C && a > c))\n\t\t\t\t\t+ ((B < C && b > c) || (B > C && b < c) || (B == C && b == c)) == 3) //if it matches the factor,do the sentence below\n\t\t\t\t{\n\t\t\t\t\tif(A >= B && B >= C)\n\t\t\t\t\t\tcout << \"CBA\";\n if(A >= C && C >= B)\n\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\tif(B >= A && A >= C)\n\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\tif(B >= C && C >= A)\n\t\t\t\t\t\tcout << \"ACB\";\n\t\t\t\t\tif(C >= A && A >= B)\n\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t\tif(C >= B && B >= A)\n\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t}\n\t\t\t}\nreturn 0;\n}"} +{"label": "101", "index": "50243", "code": "int main()\n{\n\tint A,B,C,rightA,rightB,rightC;\n\tfor(A=0;A<=2;A++)\n\t\t{for(B=0;B<=2;B++)\n\t\t\t{for(C=0;C<=2;C++)\n\t {if(B>A&&A==C) rightA=2;\n\t\t\t\t else if(B>A||A==C) rightA=1;\n\t\t\t\t else rightA=0;\n\t\t\t\t if(A>B&&A>C) rightB=2;\n\t\t\t\t else if(A>B||A>C) rightB=1;\n\t\t\t\t else rightB=0;\n\t\t\t\t if(C>B&&B>A) rightC=2;\n\t\t\t\t else if(C>B||B>A) rightC=1;\n\t\t\t\t else rightC=0;\n\n\t\t\t\t if(rightA>rightB&&rightB>rightC&&ArightC&&rightC>rightB&&ArightA&&rightA>rightC&&BrightC&&rightC>rightA&&BrightA&&rightA>rightB&&CrightB&&rightB>rightC&&Cb)+(a>c);\n\t\t\t\t\tcs=(c>b)+(b>a);\t\t\t\t\n\t\t\t\t\tif((as!=bs)&&(as!=cs)&&(bs!=cs)&&(a+as==2)&&(b+bs==2)&&(c+cs==2))\n\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\trank[as]='A';//?????????\n\t\t\t\t\t\trank[bs]='B';\n\t\t\t\t\t\trank[cs]='C';\n\t\t\t\t\t\tfor(i=2;i>=0;i--)//??????\n\t\t\t\t\t\t\tcout<a)+(c==a);\n b1=(a>b)+(a>c);\n c1=(c>b)+(b>a); //??a,b,c???? \n if ((a1-b1)*(a-b)<0&&(a1-c1)*(a-c)<0&&(b1-c1)*(b-c)<0)\n {\n p=1;\n break;\n } //????p?1????? \n }\n if (p==1) break;\n } //????p?1????? \n if (p==1) break;\n } //????p?1????? \n if(a>b&&b>c) cout<<\"CBA\";\n if(a>c&&c>b) cout<<\"BCA\";\n if(b>a&&a>c) cout<<\"CAB\";\n if(b>c&&c>a) cout<<\"ACB\";\n if(c>a&&a>b) cout<<\"BAC\";\n if(c>b&&b>a) cout<<\"ABC\"; //??????? \n return 0;\n}"} +{"label": "101", "index": "50246", "code": "int main()\n{int a,b,c,d,e,f;\n for(a=0;a<=2;a++)\n for(b=0;b<=2;b++)\n for(c=0;c<=2;c++)\n { d=(b>a)+(c==a);\n e=(a>b)+(a>c);\n f=(c>b)+(b>a);//????????? \n if(a*b*c==0&&(a+b+c)==3&&(d+e+f)==3&&d*e*f==0)//????abcdef????????0,1,2??? \n {if(a+d==2&&b+e==2&&c+f==2)//???????????????????? \n {if(a>b>c)cout<<\"C\"<<\"B\"<<\"A\";//??a,b,c???????A,B,C \n if(a>c>b)cout<<\"B\"<<\"C\"<<\"A\";\n if(b>a>c)cout<<\"C\"<<\"A\"<<\"B\";\n if(b>c>a)cout<<\"A\"<<\"C\"<<\"B\";\n if(c>a>b)cout<<\"B\"<<\"A\"<<\"C\";\n if(c>b>a)cout<<\"A\"<<\"B\"<<\"C\";\n }\n }\n }\n return 0;\n}\n"} +{"label": "101", "index": "50247", "code": "//???????\n//? ????\n//? ??2011.10.12\nint main()\n{\n\tint A, B, C;\n\tint a, b, c;\n\tint t,k;\n\tchar ch1, ch2, ch3;\n\tfor (A = 1; A < 4; A++)\n\t\tfor (B = 1; B < 4; B++)\n\t\t\tfor (C = 1; C < 4; C++)\n\t\t\t{\n\t\t\t\ta = (B > A) + (C == A);\n\t\t\t b = (A > B) + (A > C);\n\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\tif ((((A > B) && (a < b)) || ((A == B) && (a == b)) || ((A < B) && (a > b))) \n + (((B > C) && (b < c)) || ((B == C) && (b == c)) || ((B < C) && (b > c)))\n\t\t\t\t + (((C > A) && (c < a)) || ((C == A) && (c == a)) || ((C < A) && (c > a))) == 3)\n\t\t\t\t{\n\t\t\t\t\t/*if (A <= B)\n\t\t\t\t\t\tt = A; A = B; B = t;\n\t\t\t\t\tif (B <= C)\n\t\t\t\t\t\tt = B; B = C; C = t;\n\t\t\t\t\tif (A <= C)\n\t\t\t\t\t\tt = A; A = C; C = t;*/\n //ch1 = A + 64; ch2 = B + 64; ch3 = C + 64;\n\t\t\t //cout << ch1 << ch2 << ch3 << endl;\n\t\t\t\t\tfor(k = 1; k <= 3; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A == k) cout << \"A\";\n\t\t\t\t\t\tif(B == k) cout << \"B\";\n\t\t\t\t\t\tif(C == k) cout << \"C\";\n\t\t\t\t\t}\n cout << endl;\n\t\t\t return 0;\n\t\t\t\t}\n\t\t\t}\n\t\t \n\n}"} +{"label": "101", "index": "50248", "code": "int main()\n{\n\tint a[3], f[3];\n\tfor (a[0]=0;a[0]<=2;a[0]++)\n\tfor (a[1]=0;a[1]<=2;a[1]++)\n\tfor (a[2]=0;a[2]<=2;a[2]++)\n\t{\n\t\tf[0] = (a[1] > a[0]) + (a[2] == a[0]);\n\t\tf[1] = (a[0] > a[1]) + (a[0] > a[2]);\n\t\tf[2] = (a[2] > a[1]) + (a[1] > a[0]);\n\t\tfor (int i=0;i<=2;i++)\n\t\t{\n\t\t\tif (a[i] > a[(i+1)%3] && f[i] >= f[(i+1)%3])\n\t\t\tgoto aa;\n\t\t\tif (a[i] < a[(i+1)%3] && f[i] <= f[(i+1)%3])\n\t\t\tgoto aa;\n\t\t\tif (a[i] == a[(i+1)%3] && f[i] != f[(i+1)%3])\n\t\t\tgoto aa;\n\t\t}\n\t\tfor (int j=0;j<=2;j++)\n\t\tfor (int i=0;i<=2;i++)\n\t\tif (a[i] < a[(i+1)%3] && a[i] < a[(i+2)%3])\n\t\t{\n\t\t\tcout << (char)('A'+i);\n\t\t\ta[i] = 3;\n\t\t}\n\t\tgoto bb;\n\t\taa:;\n\t}\n\tbb:;\n\treturn 0;\n}\n"} +{"label": "101", "index": "50249", "code": "int main()\n{\n\tint a[3],t[3],i,j,k,temp;\n\tchar c1[3],c2[3],c;\n\tfor (a[0]=1;a[0]<=3;a[0]++)\n\t\tfor (a[1]=1;a[1]<=3;a[1]++)\n\t\t\tfor (a[2]=1;a[2]<=3;a[2]++)//????????\n\t\t\t{\n\t\t\t\tt[0]=(a[1]>a[0])+(a[2]==a[0]);\n\t\t\t\tt[1]=(a[0]>a[1])+(a[0]>a[2]);\n\t\t\t\tt[2]=(a[2]>a[1])+(a[1]>a[0]);//????????????\n\t\t\t\tc1[0]=c2[0]='A';c1[1]=c2[1]='B';c1[2]=c2[2]='C';//???a,b???????\n\t\t\t\tfor (i=0;i<3;i++)\n\t\t\t\t{\n\t\t\t\t\tfor (j=1;j<3;j++)\n\t\t\t\t\t\tif (a[j]>a[j-1])\n\t\t\t\t\t {\n\t\t\t\t\t\t\tk=j-1;\n \t\t\t\t\t\t temp=a[i];a[i]=a[k];a[k]=temp;\n\t\t\t\t\t\t c=c1[i];c1[i]=c1[k];c1[k]=c;\n\t\t\t\t\t }\n\t\t\t\t}//????a(c1)\n\t\t\t\tfor (i=0;i<3;i++)\n\t\t\t\t{\n\t\t\t\t\tfor (j=1;j<3;j++)\n\t\t\t\t\t\tif (t[j]>t[j-1])\n\t\t\t\t\t {\n\t\t\t\t\t\t\tk=j-1;\n \t\t\t\t\t\t temp=t[i];t[i]=t[k];t[k]=temp;\n\t\t\t\t\t\t c=c2[i];c2[i]=c2[k];c2[k]=c;\n\t\t\t\t\t }\n\t\t\t\t}//????b(c2)\n\t\t\t\tif ((c1[0]==c2[2])&&(c1[1]==c2[1])&&(c1[2]==c2[0]))//??????\n\t\t\t\t{\n\t\t\t\t cout <a)+(a==c)+a==3) && ((a>b)+(a>c)+b==3) && ((c>b)+(b>a)+c==3)) \n\t\t\t\t{\n\t\t\t\t\tif (a==1) cout << 'A';\n\t\t\t\t\tif (b==1) cout << 'B';\n\t\t\t\t\tif (c==1) cout << 'C';\n\t\t\t\t\tif (a==2) cout << 'A';\n\t\t\t\t\tif (b==2) cout << 'B';\n\t\t\t\t\tif (c==2) cout << 'C';\n\t\t\t\t\tif (a==3) cout << 'A';\n\t\t\t\t\tif (b==3) cout << 'B';\n\t\t\t\t\tif (c==3) cout << 'C';\n\t\t\t\t\tcout << endl;\n\t\t\t\t}\n\t\t}\n\n\t\treturn 0;\n}\n\n"} +{"label": "101", "index": "50252", "code": "int main()\n{\n\tchar x[3]=\"\"; //???????\n\tint A,B,C; //??????\n\tfor (A=0;A<3;A++)\n\t{\n\t\tfor (B=0;B<3;B++)\n\t\t{\n\t\t\tif (A==B)\n\t\t\t\tcontinue;\n\t\t\tC=3-A-B; //??????\n\t\t\tx[A]=(B>A)+(C==A);\n\t\t\tx[B]=(A>B)+(A>C);\n\t\t\tx[C]=(C>B)+(B>A); //??\n\t\t\tif (x[A]==2-A&&x[B]==2-B&&x[C]==2-C)\n\t\t\t{\n\t\t\t\tx[A]='A';\n\t\t\t\tx[B]='B';\n\t\t\t\tx[C]='C'; //???????\n\t\t\t\tcout<a)+(a==c); //??????????\n\t\t\ti[b]=(a>b)+(a>c);\n\t\t\ti[c]=(c>b)+(b>a);\n\t\t\tif(i[a]+i[b]+i[c]==3&&i[a]!=i[b]&&i[b]!=i[c]&&i[a]!=i[c])//????????????3\n\t\t\t{\n\t\t\t\tif(i[a]+a==2&&i[b]+b==2&&i[c]+c==2)//?????? ????2\n\t\t\t\t{\n\t\t\t j[a]=65;j[b]=66;j[c]=67; //??\n\t\t\t int z=0;\n\t\t \tfor(z=0;z<3;z++)\n\t\t\t\t cout<a)+(a==c);\n\t\t\t\tsb=(a>b)+(a>c);\n\t\t\t\tsc=(c>b)+(b>a);\n\t\t\t\tif (\n\t\t\t\t\t\t(a+b+c==6)&&(sa+sb+sc==3)&&(a!=b)&&(a!=c)&&(b!=c)&&(sa!=sb)&&(sa!=sc)&&(sb!=sc)&&(a+sa==3)&&(b+sb==3)&&(c+sc==3)\n\t\t\t\t )\n\t\t\t\t{\n\t\t\t\t\tif (((a>b)&&(b>c))==1)\n\t\t\t\t\t\tcout <<\"CBA\";\n\t\t\t\t\tif (((a>c)&&(c>b))==1)\n\t\t\t\t\t cout <<\"BCA\";\n\t\t\t\t\tif (((b>a)&&(a>c))==1)\n\t\t\t\t\t\tcout <<\"CAB\";\n\t\t\t\t\tif (((b>c)&&(c>a))==1)\n\t\t\t\t\t\tcout <<\"ACB\";\n\t\t\t\t\tif (((c>a)&&(a>b))==1)\n\t\t\t\t\t\tcout <<\"BAC\";\n\t\t\t\t\tif (((c>b)&&(b>a))==1)\n\t\t\t\t\t cout <<\"ABC\";\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n\t}"} +{"label": "101", "index": "50255", "code": "//***********************\n//*???????? *\n//*???????? *\n//*?????? *\n//*???11.19 *\n//***********************\n\nint main()\n{\n\tchar n[3]={'A','B','C'},t;\n\tint suma,sumb,sumc,q[3];\n\tint i ,j , k ;\n\t\n\tfor(int a = 0;a < 3;a++)\n\t\tfor(int b = 0;b < 3;b++)\n\t\t\tfor(int c = 0;c < 3;c++)\n\t\t\t{\n\t\t\t\tsuma = (b>a)+(a == c);\n\t\t\t\tsumb = (a > b)+(a > c);\n\t\t\t\tsumc = (c > b)+(b > a);\n\t\t\t\tif(a + suma == b + sumb && b + sumb == c + sumc)\n\t\t\t\t{\n\t\t\t\t\tq[0] = a;q[1] = b;q[2] = c;\n\t\t\t\t\tfor(int j = 0;j < 2;j++)\n\t\t\t\t\t{\n\t\t\t\t\tfor( i = j;i < 2;i++)\n\t\t\t\t\t\tif(q[i] > q[i + 1])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t k = q[i];q[i] = q[i+1];q[i + 1] = k;t = n[i];n[i] =n[i + 1];n[i + 1] = t;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i = 0;i < 3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << n[i];\n\t\t\t\t\t}\n\t\t\t\t\tcout << endl;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0 ;\n}\n\t\t\t\n"} +{"label": "101", "index": "50256", "code": "//**********************************************************\n//*??????? *\n//*? ????? *\n//*? ??1000012806 *\n//*?????2010.11.17. *\n//**********************************************************\nint main()\n{\n\tint a, b, c, i, j, k, A, B, C;\n\tfor (i = 0; i <= 2; i ++)\n\t{\n\t\ta = i;\n\t\tfor (j = 0; j <= 2; j ++)\n\t\t{\n\t\t\tb = j;\n\t\t\tif (b == a) continue;\n\t\t\tfor (k = 0; k <= 2; k ++)\n\t\t\t{\n\t\t\t\tc = k;\n\t\t\t\tif (c == a || c == b) continue;\n\t\t\t\tA = (b > a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif ((a + A) == 2 && (b + B) == 2 && (c + C) == 2)\n\t\t\t\t{\n\t\t\t\t\tif (a > b && b > c)\n\t\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\"< c && c > b)\n\t\t\t\t\t\tcout<<\"B\"<<\"C\"<<\"A\"< a && a > c)\n\t\t\t\t\t\tcout<<\"C\"<<\"A\"<<\"B\"< c && c > a)\n\t\t\t\t\t\tcout<<\"A\"<<\"C\"<<\"B\"< a && a > b)\n\t\t\t\t\t\tcout<<\"B\"<<\"A\"<<\"C\"< b && b > a)\n\t\t\t\t\t\tcout<<\"A\"<<\"B\"<<\"C\"<A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif(((A+a)==(B+b))&&((A+a)==(C+c))){\n\t\t\t\t\tfor(i=1;i<=3;i++){\n\t\t\t\t\t\tif(i==A){\n\t\t\t\t\t\t\tpai[i]='A';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==B){\n\t\t\t\t\t\t\tpai[i]='B';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==C){\n\t\t\t\t\t\t\tpai[i]='C';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tfor(i=1;i<=3;i++){\n\t\t\t\t\t\tcout< a; A[1] = c == a; d = A[0] + A[1];\n\t\t\t\tB[0] = a > b; B[1] = a > c; e = B[0] + B[1];\n\t\t\t\tC[0] = c > b; C[1] = b > a; f = C[0] + C[1];\n\t\t\t\tif (a + d == 3&&b + e == 3&&c + f == 3)\n\t\t\t\t{\n\t\t\t\t\tif (a > b&&b > c) cout << 'C' << 'B' << 'A' << endl;\n\t\t\t\t\tif (a < b&&b < c) cout << 'A' << 'B' << 'C' << endl;\n\t\t\t\t\tif (a > b&&b < c&&a > c) cout << 'B' << 'C' << 'A' << endl;\n\t\t\t\t\tif (a > b&&b < c&&a < c) cout << 'B' << 'A' << 'C' << endl;\n\t\t\t\t\tif (a < b&&b > c&&a > c) cout << 'C' << 'A' << 'B' << endl;\n\t\t\t\t\tif (a < b&&b > c&&a < c) cout << 'A' << 'C' << 'B' < a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif ((((a > b && A < B) || (a < b && A > B)) +\n\t\t\t\t\t((a > c && A < C) || (a < c && A > C)) +\n\t\t\t\t\t((b > c && B < C) || (b < c && B > C))) == 3) //?????????????\n\t\t\t\t{\n\t\t\t\t\tm[a] = 'A';\n\t\t\t\t\tm[b] = 'B';\n\t\t\t\t\tm[c] = 'C';\n\t\t\t\t\tm[3] = '\\0';\n\t\t\t\t\tcout << m;\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50260", "code": "int main()\n{\n\tint a,b,c,n1,n2,n3;\n\tn1=n2=n3=0;\n\ta=1;\n\tb=2;\n\tc=3;\n\tif(b>a)\n\t\t\tn1=n1+1;\n\tif(c==a)\n\t\t\tn1=n1+1;\n\tif(a>b)\n\t\t\tn2=n2+1;\n\tif(a>c)\n\t\t\tn2=n2+1;\n\tif(c>b)\n\t\t\tn3=n3+1;\n\tif(b>a)\n\t\t\tn3=n3+1;\n\tif(n1>n2>n3)\n\t\t\tcout<<\"A\"<<\"B\"<<\"C\";\n\tn1=n2=n3=0;\n\tc=1;\n\ta=2;\n\tb=3;\n\tif(b>a)\n\t\t\tn1=n1+1;\n\tif(c==a)\n\t\t\tn1=n1+1;\n\tif(a>b)\n\t\t\tn2=n2+1;\n\tif(a>c)\n\t\t\tn2=n2+1;\n\tif(c>b)\n\t\t\tn3=n3+1;\n\tif(b>a)\n\t\t\tn3=n3+1;\n\tif(n3>n1>n2)\n\t\tcout<<\"C\"<<\"A\"<<\"B\";\n\tn1=n2=n3=0;\n\ta=1;\n\tb=3;\n\tc=2;\n\tif(b>a)\n\t\t\tn1=n1+1;\n\tif(c==a)\n\t\t\tn1=n1+1;\n\tif(a>b)\n\t\t\tn2=n2+1;\n\tif(a>c)\n\t\t\tn2=n2+1;\n\tif(c>b)\n\t\t\tn3=n3+1;\n\tif(b>a)\n\t\t\tn3=n3+1;\n\tif(n1>n3>n2)\n\t\tcout<<\"A\"<<\"C\"<<\"B\";\n\tn1=n2=n3=0;\n\tb=1;\n\ta=2;\n\tc=3;\n\tif(b>a)\n\t\t\tn1=n1+1;\n\tif(c==a)\n\t\t\tn1=n1+1;\n\tif(a>b)\n\t\t\tn2=n2+1;\n\tif(a>c)\n\t\t\tn2=n2+1;\n\tif(c>b)\n\t\t\tn3=n3+1;\n\tif(b>a)\n\t\t\tn3=n3+1;\n\tif(n1>n2>n3)\n\t\tcout<<\"B\"<<\"A\"<<\"C\";\n\tn1=n2=n3=0;\n\tb=1;\n\tc=2;\n\ta=3;\n\tif(b>a)\n\t\t\tn1=n1+1;\n\tif(c==a)\n\t\t\tn1=n1+1;\n\tif(a>b)\n\t\t\tn2=n2+1;\n\tif(a>c)\n\t\t\tn2=n2+1;\n\tif(c>b)\n\t\t\tn3=n3+1;\n\tif(b>a)\n\t\t\tn3=n3+1;\n\tif(n2>n3>n1)\n\t\tcout<<\"B\"<<\"C\"<<\"A\";\n\tn1=n2=n3=0;\n\tc=1;\n\tb=2;\n\ta=3;\n\tif(b>a)\n\t\t\tn1=n1+1;\n\tif(c==a)\n\t\t\tn1=n1+1;\n\tif(a>b)\n\t\t\tn2=n2+1;\n\tif(a>c)\n\t\t\tn2=n2+1;\n\tif(c>b)\n\t\t\tn3=n3+1;\n\tif(b>a)\n\t\t\tn3=n3+1;\n\tif(n3>n2>n1)\n\t\tcout<<\"C\"<<\"B\"<<\"A\";\n return 0;\n}\n\n\n\n"} +{"label": "101", "index": "50261", "code": "/**\n *file ???\n *author ???\n *date 11.17\n *function 3?????????????? \n\t\t\tA??B??????C??????? \n\t\t\tB??A??????A??C??? \n\t\t\tC????B????B?A???? \n\t\t\t????????????????????? \n\t\t\t???????????3??????\n*/\nint main()\n{\n\tint a = 0, b = 0, c = 0, A, B, C;\n\tfor(A = 0; A <= 2; A++)\n\t{\n\t\tfor(B = 0; B <= 2; B++)\n\t\t{\n\t\t\tif(B == A)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(C = 0; C <= 2; C++)\n\t\t\t\t{\n\t\t\t\t\tif(C == A || C == B)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ta = (B > A) + (A == C);\n\t\t\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\t\t\tif(a + A == 2 && b + B == 2 && c + C == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(A > B > C)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(A > C > B)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(B > A > C)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(B > C > A)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(C > B > A)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(C > A > B)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50262", "code": "/*\n * eatingamount.cpp\n *\n * Created on: 2013-11-3\n * Author: ???\n */\nint main()\n{int a,b,c;\n\tint A,B,C;\n\tfor(A=1;A<=3;A++)\n\t\tfor(B=1;B<=3;B++){\n\t\t\tif(A==B)continue;\n\t\t\tfor(C=1;C<=3;C++){\n\t\t\t\tif(A==C||B==C)continue;\n\t\t\t\ta=(B>A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\t\tif(a>b&&b>c&&Ac&&c>b&&Aa&&a>c&&Bc&&c>a&&Ba&&a>b&&Cb&&b>a&&CA)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);//??3??????\n\t\t\t\ta+b+c==3;\n\t\t\t\tif(A+a==3&&B+b==3&&C+c==3)//???????? ???????????????\n\t\t\t\t{\n\t\t\t\t\tif(A>B)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(B>C){cout<<\"CBA\"<A)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A>C){cout<<\"CAB\"<A)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A>B){cout<<\"BAC\"<A)+(C==A);\n b=(A>B)+(A>C);\n c=(C>B)+(B>A);\n if((a+A==2)&&(b+B==2)&&(c+C==2) )\n\t {\n\t if(A==2) {\n\t\t if(B==1)\n\t\t cout<<\"CBA\"< a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif(!(a+A==3 && b+B==3 && c+C==3)) continue;\n\t\t\t\tif(A != B && A != C && B != C)\n\t\t\t\t{\n\t\t\t\t\tif(A + B + C == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A == 2) cout << \"A\";\n\t\t\t\t\t\tif(B == 2) cout << \"B\";\n\t\t\t\t\t\tif(C == 2) cout << \"C\";\n\t\t\t\t\t\tif(A == 1) cout << \"A\";\n\t\t\t\t\t\tif(B == 1) cout << \"B\";\n\t\t\t\t\t\tif(C == 1) cout << \"C\";\n\t\t\t\t\t\tif(A == 0) cout << \"A\";\n\t\t\t\t\t\tif(B == 0) cout << \"B\";\n\t\t\t\t\t\tif(C == 0) cout << \"C\";\n\t\t\t\t\t\tcout << endl;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50266", "code": "//**??????*****************//\n//**?????*******************//\n//##???11/17##################//\nint main()\n{\n\tint a1, a2, b1, b2, c1, c2, A, B, C, i, j, k;//A?B?C???A?B?C???\n\n\tfor(i = 0; i <= 2; i++)\n\t{\n\t\tA = i;\n\t for(j = 0; j <= 2; j++)\n\t\t{\n\t\t\tB = j;\n for(k = 0; k <= 2; k++) //??\n\t\t\t{\n\t\t\t\t C = k;\n\t\t\t\ta1 = B > A;\n\t\t\t\ta2 = C == A;\n\t\t\t\tb1 = A > B;\n\t\t\t\tb2 = A > C;\n\t\t\t\tc1 = C > B;\n\t\t\t\tc2 = B > A;\n\t\t\t if(A + a1 + a2 == B + b1 + b2 && B + b1 + b2 == C + c1 + c2)//??????????\n\t\t {\n\t\t\t\t\tif(A > B && B > C)cout << \"CBA\";\n\t\t\t\t\tif(A > C && C > B)cout << \"BCA\";\n\t\t\t\t\tif(B > A && A > C)cout << \"CAB\";\n\t\t\t\t\tif(B > C && C > A)cout << \"ACB\";\n\t\t\t\t\tif(C > A && A > B)cout << \"BAC\";\n\t\t\t\t\tif(C > B && B > A)cout << \"ABC\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t }\n\n\treturn 0;\n}"} +{"label": "101", "index": "50267", "code": "int main()\n{\n int A,B,C,shumu[4],i;\n char pai[4];\n for(i=1;i<=3;i++)shumu[i]=0;\n for(A=1;A<=3;A++) \n {\n for(B=1;B<=3;B++)\n {\n if(A==B)continue;\n C=6-A-B;\n if(B>A)shumu[1]++;\n if(A==C)shumu[1]++;//A??????? \n if(A>B)shumu[2]++;\n if(A>C)shumu[2]++;//B??????? \n if(C>B)shumu[3]++;\n if(B>A)shumu[3]++;//C??????? \n if((shumu[1]+A)==(shumu[2]+B) && (shumu[2]+B)==(shumu[3]+C))//????????????????????????? \n {\n pai[A]='A';\n pai[B]='B';\n pai[C]='C';\n }\nfor(i=1;i<=3;i++)shumu[i]=0;\n }\n }\n for(i=1;i<=3;i++)cout<A)+(A==C)==3)&&(B+(A>B)+(A>C)==3)&&(C+(C>B)+(B>A)==3)&&((A-B)*(B-C)*(C-A)!=0))\n\t\t\t\t{\n\t\t\t\t\tif(A>B){if(B>C)cout<<\"CBA\"<C)cout<<\"BCA\"<C)cout<<\"CAB\"<C)cout<<\"ACB\"< a) + (c == a);\n\t\t\t\t l[b] = (a > b) + (a > c);\n\t\t\t\t l[c] = (c > b) + (b > a);\n\t\t\t\t if ((a + l[a])==2 && (b+l[b])==2 && (c+l[c])==2)\n\t\t\t\t { \n\t\t\t\t\t if (a < b && b < c)\n\t\t\t\t\t\t cout << \"ABC\";\n\t\t\t\t\t if (a < c && c< b)\n\t\t\t\t\t\t cout << \"ACB\";\n\t\t\t\t\t if (b a;\n m[2]=(a>b)+(a>c);\n m[3]=(c>b)+(b>a);\n if(m[1]>=m[2]&&a>b||m[1]<=m[2]&&a=m[3]&&b>c||m[2]<=m[3]&&b=m[3]&&a>c||m[1]<=m[3]&&aA)+(C==A)+A==2)\n {\n if((A>B)+(A>C)+B==2)\n {\n if((C>B)+(B>A)+C==2)\n {\n if(A==0&&B==1&&C==2)cout<<\"ABC\";\n if(A==0&&B==2&&C==1)cout<<\"ACB\";\n if(A==1&&B==0&&C==2)cout<<\"BAC\";\n if(A==1&&B==2&&C==0)cout<<\"CAB\";\n if(A==2&&B==1&&C==0)cout<<\"CBA\";\n if(A==2&&B==0&&C==1)cout<<\"BCA\";\n }\n else continue;\n }\n else continue;\n }\n else continue;\n }\n else continue;\n }\n return 0;\n }\n \n \n \n \n \n \n \n"} +{"label": "101", "index": "50272", "code": "int main( ) //?????\n{ //?????\nint A,B,C; //??3?????\nint words[4]; //??3?????\nchar rank[4];\nfor(A=1;A<=3;A++){ //???????A\n\tfor(B=1;B<=3;B++){ //???????B\n\t\tif(A==B) continue;\n\t\tfor(C=1;C<=3;C++){ //???????C\n\t\t\tif(A==C||B==C) continue;\n\t\t\twords[1]=(B>A)+(A==C); //A???\n\t\t\twords[2]=(A>B)+(A>C); //B???\n\t\t\twords[3]=(C>B)+(B>A); //C???\n\t\t\t//????????????????\n\t\t\tif(!(Aa)+(c==a)+a;\n\t\t\t\t\t\td[b]=(a>b)+(a>c)+b;\n\t\t\t\t\t\td[c]=(c>b)+(b>a)+c;\n\t\t\t\t\t\tif(d[a]==2&&d[b]==2&&d[c]==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te[a]='A';\n\t\t\t\t\t\t\te[b]='B';\n\t\t\t\t\t\t\te[c]='C';\n\t\t\t\t\t\t\tfor(int i=0;i<=2;i++)\n\t\t\t\t\t\t\t\tcout<A)+(C==A);//??????????\n\t\t\t\tm[2]=(A>B)+(A>C);\n\t\t\t\tm[3]=(C>B)+(B>A);\n\t\t\t\tif(m[1]==3-A&&m[2]==3-B&&m[3]==3-C)//?????????????????????2,1,0??\n\t\t\t\t{\n\t\t\t\t\ta[A]=65;//???A?????A??????????\n\t\t\t\t\ta[B]=66;\n\t\t\t\t\ta[C]=67;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tcout< A) + (C == A);\n\t Bs = (A > B) + (A > C);\n\t Cs = (C > B) + (B > A);\n\t\t\t\ta = (A > B && As < Bs) || (A == B && As == Bs) || (A < B && As > Bs);\n\t\t\t\tb = (A > C && As < Cs) || (A == C && As == Cs) || (A < C && As > Cs);\n\t\t\t\tc = (B > C && Bs < Cs) || (B == C && Bs == Cs) || (B < C && Bs > Cs);\n\t\t\t\tif(a + b + c == 3)\n\t\t\t\t{\n\t\t\t\t\ts[A] = 'A';\n\t\t\t\t\ts[B] = 'B';\n\t\t\t\t\ts[C] = 'C';\n\t\t\t\t\tfor(i = 0; i < 3; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout< A) + (A == C);\n\t\t\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\t\t\tif(a + A == 2 && b + B == 2 && c + C == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(A > B > C)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(A > C > B)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(B > A > C)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(B > C > A)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(C > B > A)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(C > A > B)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50277", "code": "int main()\n{\n\tint a=0,b=0,c=0,k=0;\n\tint c1=0,c2=0,c3=0;\n\tfor(a=1;a<4;a++)\n\t\tfor(b=1;b<4;b++)\n\t\t{\n\t\t\tif(b!=a)\n\t\t\t\tfor(c=1;c<4;c++)\n\t\t\t\t{\n\t\t\t\t\tif(c!=a&&c!=b)\n\t\t\t\t\t{\n\t\t\t\t\t\tc1=(b>a)+(a==c);\n\t\t\t\t\t\tc2=(a>b)+(a>c);\n\t\t\t\t\t\tc3=(c>b)+(b>a);\n\t\t\t\t\t\tif(a+c1==3&&b+c2==3&&c+c3==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(k=1;k<4;k++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(a==k)\n\t\t\t\t\t\t\t\t\tcout <<\"A\";\n\t\t\t\t\t\t\t\tif(b==k)\n\t\t\t\t\t\t\t\t\tcout <<\"B\";\n\t\t\t\t\t\t\t\tif(c==k)\n\t\t\t\t\t\t\t\t\tcout <<\"C\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcout <a)+(a == c);\n\t\t\t\tsum2 = (a > b)+(a > c);\n\t\t\t\tsum3 = (c > b)+(b > a);\n\t\t\t\tif(a + sum1 == b + sum2 && b + sum2 == c + sum3)//???????????????\n\t\t\t\t{\n\t\t\t\t\tq[0] = a;q[1] = b;q[2] = c;\n\t\t\t\t\tfor(j = 0;j < 2;j++)//?????????????\n\t\t\t\t\tfor(i = j;i < 2;i++)\n\t\t\t\t\t\tif(q[i] > q[i + 1])\n\t\t\t\t\t\t{k = q[i];q[i] = q[i+1];q[i + 1] = k;t = w[i];w[i] = w[i + 1];w[i + 1] = t;}//???????\n\t\t\t\t\tfor(i = 0;i < 3;i++)\n\t\t\t\t\t\tcout << w[i];\n\t\t\t\t\tcout << endl;\t\n\t\t\t\t}\t\t\n\t\t\t}\nreturn 0;\n}"} +{"label": "101", "index": "50279", "code": "\n\n//============================================================================\n// Name : 1.cpp\n// Author : \n// Version :\n// Copyright : Your copyright notice\n// Description : Hello World in C++\n//============================================================================\n\n\nint main()\n{\n int a=0,b=0,c=0,i=0,p=0,q=0;\n for(i=1;i<=3;i=i+1)\n \t{\n \t a=a+1;\n \t for(p=1;p<=3;p=p+1)\n \t {\n \t\t b=b+1;\n \t\t for(q=1;q<=3;q=q+1)\n \t\t {\n \t\t\t c=c+1;\n \t\t\t if(((b>a)+(c==a)+(a>b)+(a>c)+(c>b)+(b>a))==3)\n \t\t\t {\n \t\t\t\t if(((b>a)+(c==a))==0) //??A????????A????\n \t\t\t\t {\n \t\t\t\t\t cout<<\"A\";\n \t\t\t\t\t if((a>b)+(a>c)==1)//??B???????B????\n \t\t\t\t\t {\n \t\t\t\t\t\t cout<<\"BC\";\n \t\t\t\t\t }\n \t\t\t\t\t else\n \t\t\t\t\t {\n \t\t\t\t\t\t cout<<\"CB\";\n \t\t\t\t\t }\n \t\t\t\t\t return 0;\n }\n \t\t\t\t \t\t\t\t if((a>b)+(a>c)==0)\n \t\t\t\t {\n \t\t\t\t\t cout<<\"B\";\n \t\t\t\t\t if((b>a)+(c==a)!=2)\n \t\t\t\t\t {\n \t\t\t\t\t\t cout<<\"CA\";\n \t\t\t\t\t }\n \t\t\t\t\t else\n \t\t\t\t\t {\n \t\t\t\t\t\t cout<<\"AC\";\n \t\t\t\t\t }\n \t\t\t\t\t return 0;\n\n \t\t\t\t }\n \t\t\t\t if(((c>b)+(b>a))==0)\n \t\t\t\t {\n \t\t\t\t\t cout<<\"c\";\n \t\t\t\t\t if((a>b)+(a>c)==1)\n \t\t\t\t\t {\n \t\t\t\t\t\t cout<<\"BA\";\n \t\t\t\t\t }\n \t\t\t\t\t else\n \t\t\t\t\t {\n \t\t\t\t\t\t cout<<\"AB\";\n \t\t\t\t\t }\n \t\t\t\t\t return 0;\n \t\t\t\t }\n\n \t\t\t }\n \t\t }\n \t }\n\n \t}\n return 0;\n\n}"} +{"label": "101", "index": "50280", "code": "int main()\n{\n int a, b, c, o = 0;\n for(a = 1; a <= 3 && o < 1; a++){\n for(b = 1; b <= 3 && o < 1; b++){\n if( a == b ) \n continue;\n for(c = 1; c <=3 && o < 1; c++){\n if(a == c || b == c)\n continue;\n // if(a == 3 && b == 1 && c == 2)\n // cout<<\"herererere\"< a) - (c == a) )\n && ( b == 3 - (a > b) - (a > c) )\n && ( c == 3 - (c > b) - (b > a) )\n )\n o=1;\n }\n }\n }//?????????????????????????????????? \n a=a-1;\n b=b-1;\n c=c-1;\n //cout<b && b>c) \n cout << \"CBA\";\n if(a>c && c>b) \n cout << \"BCA\";\n if(b>a && a>c) \n cout<<\"CAB\";\n if(b>c && c>a) \n cout<<\"ACB\";\n if(c>b && b>a) \n cout<<\"ABC\";\n if(c>a && a>b) \n cout<<\"BAC\";\n \n return 0;\n}\n"} +{"label": "101", "index": "50281", "code": " //******************************//\n //* ?????\t\t\t\t*//\n //* ???1000012711\t\t*//\n //* ??????\t\t\t*//\n //* ???2010.11.17\t\t*//\n //******************************// \nvoid judge(int, int, int);\nint main()\n{\n\tint a, b, c, g, cc11, cc12, cc21, cc22, cc31, cc32;\n\tg = 0;\n\tfor (a = 1; a <= 3; a ++)\n\t{\n\t\tfor (b = 1; b <= 3; b ++)\n\t\t{\n\t\t\tfor (c = 1; c <= 3; c ++)\n\t\t\t{\n\t\t\t\tcc11 = (b > a);\n\t\t\t\tcc12 = (c == a);\n\t\t\t\tcc21 = (a > b);\n\t\t\t\tcc22 = (a > c);\n\t\t\t\tcc31 = (c > b);\n\t\t\t\tcc32 = (b > a);\n\t\t\t\tif ((cc11 + cc12 == 3 - a) && (cc21 + cc22 == 3 - b) && (cc31 + cc32 == 3 - c))\n\t\t\t\t{\n\t\t\t\t\tg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (g == 1)\n\t\t\t\tbreak;\n\t\t}\n\t\tif (g == 1)\n\t\t\tbreak;\n\t}\n\tjudge(a, b, c);\n\treturn 0;\n}\nvoid judge(int a,int b,int c)\n{\n\tint i, j, n[4] = {0, a, b, c};\n\tfor (i = 1; i <= 3; i ++)\n\t{\n\t\tfor (j = 1; j <= 3; j ++)\n\t\t{\n\t\t\tif (n[j] == i)\n\t\t\t{\n\t\t\t\tcout << (char)(j + 64);\n\t\t\t}\n\t\t}\n\t}\n\tcout << endl;\n}"} +{"label": "101", "index": "50282", "code": "/*\n * v.cpp\n *\n * Created on: 2012-10-23\n * Author: user\n */\n\nint main()\n{\n\tint a,b,c;\n\tint j,i;\n\tfor (a=0;a<=2;a++){\n\t\tfor (b=0;b<=2;b++){\n\t\t\tfor (c=0;c<=2;c++){\n\t\t\tif((b>a)+(c==a)==2-a&&(bb)+(b>a)==(2-c)) break;}\n\t\t\tif((b>a)+(c==a)==2-a&&(bb)+(b>a)==(2-c)) break;}\n\t\tif((b>a)+(c==a)==2-a&&(bb)+(b>a)==(2-c)) break;}\n\tchar m[3],u;int n[3],t;\n\tm[0]='A';m[1]='B';m[2]='C';\n\tn[0]=a;n[1]=b;n[2]=c;\n\tfor(j=0;j<2;j++)\n\t\tfor(i=0;i<2-j;i++)\n\t\t\tif(n[i]>n[i+1])\n\t\t\t{t=n[i];n[i]=n[i+1];n[i+1]=t;\n\t\t\tu=m[i];m[i]=m[i+1];m[i+1]=u;}\n\tcout< eA) + (eC == eA);\n\t\tsB = (eA > eB) + (eA > eC);\n\t\tsC = (eC > eB) + (eB > eA);\n\t\t// ????????????????\n if( sA + eA == 3 && sB + eB == 3 && sC + eC == 3\n\t\t\t&& eA != eB && eB != eC && eC != eA)\n{ // ????\nif(eA < eB && eB < eC) cout << \"ABC\" << endl;\nif(eA < eC && eC < eB) cout << \"ACB\" << endl;\nif(eB < eA && eA < eC) cout << \"BAC\" << endl;\nif(eB < eC && eC < eA) cout << \"BCA\" << endl;\nif(eC < eA && eA < eB) cout << \"CAB\" << endl;\nif(eC < eB && eB < eA) cout << \"CBA\" << endl;\n}\n }\nreturn 0;\n}"} +{"label": "101", "index": "50284", "code": "/*???:???\n**? ?:??\n**? ?:2010?11?23?\n*/\nint main()\n{\n\tint A, B, C, i, j[3], r[3];\n\tchar R[3] = {'A', 'B', 'C'};\n\t//???0,1,2??????,????????\n\tfor (A = 0; A <= 2; A++)\n\t\tfor (B = 0; B <= 2; B++)\n\t\t\tfor (C = 0; C <= 2; C++)\n\t\t\t{\n\t\t\t\tr[0] = (B > A) + (C == A);//A?????\n\t\t\t\tr[1] = (A > B) + (A > C);//B?????\n\t\t\t\tr[2] = (C > B) + (B > A);//C?????\n\t\t\t\tj[0] = r[0] + A;//A??????A????\n\t\t\t\tj[1] = r[1] + B;//B??????B????\n\t\t\t\tj[2] = r[2] + C;//C??????C????\n\t\t\t\t//?????????,????????????2\n\t\t\t\tif (j[0] == 2 && j[1] == 2 && j[2] == 2)\n\t\t\t\t{\n\t\t\t\t\tfor (i = 0; i <= 2; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (r[i] == 2)\n\t\t\t\t\t\t\tj[0] = i;\n\t\t\t\t\t\tif (r[i] == 1)\n\t\t\t\t\t\t\tj[1] = i;\n\t\t\t\t\t\tif (r[i] == 0)\n\t\t\t\t\t\t\tj[2] = i;\n\t\t\t\t\t}//??\n\t\t\t\t\tfor (i = 0; i <= 2; i++)\n\t\t\t\t\t\tcout << R[j[i]];\n\t\t\t\t\tcout << endl;\n\t\t\t\t}\t\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50285", "code": "/*\n * 20.cpp\n *???\n * Created on: 2012-10-17\n * Author: ???\n */\nint main()\n{\n\tint a,b,c;\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t\t{\n\t\t\t\t\tint sum1=(b>a)+(a==c),\n\t\t\t\t\t\tsum2=(a>b)+(a>c),\n\t\t\t\t\t\tsum3=(c>b)+(c>a);\n\t\t\t\t\tif(((sum1>sum2)&&(ab))&&((sum1>sum3)&&(ac))&&((sum2>sum3)&&(bc)))\n\t\t\t\t\t{\n\t\t\t\t\t\tif((sum1>sum2)&&(sum1>sum3))\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif((sum2>sum3)&&(sum2>sum1))\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif((sum3>sum2)&&(sum3>sum1))\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t\tif(((sum1>sum2)&&(sum3>sum1))||((sum1>sum3)&&(sum2>sum1)))\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(((sum2>sum1)&&(sum3>sum2))||((sum2>sum3)&&(sum1>sum2)))\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(((sum3>sum2)&&(sum1>sum3))||((sum3>sum1)&&(sum2>sum3)))\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t\tif((sum1i){a[0]=a[0]+1;a[2]=a[2]+1;}\n\t\t\t\tif(i>j)a[1]=a[1]+1;\n\t\t\t\tif(i>k)a[1]=a[1]+1;\n\t\t\t\tif(k>j)a[2]=a[2]+1;\n\t\t\t\tif(i==0)min1=0;\n\t\t\t\tif(j==0)min1=1;\n\t\t\t\tif(k==0)min1=2;\n\t\t\t\tif(i==2)max1=0;\n\t\t\t\tif(j==2)max1=1;\n\t\t\t\tif(k==2)max1=2;\n\t\t\t\tfor(int l=0;l<3;l++)\n\t\t\t\t{\n\t\t\t\t\tif(a[l]==0)min2=l;\n\t\t\t\t\tif(a[l]==2)max2=l;\n\t\t\t\t}\n\t\t\t\tif(max1==min2&&min1==max2)\n\t\t\t\t{\n\t\t\t\t\tA=max1+65;\n\t\t\t\t\tB=min1+65;\n\t\t\t\t\tC=68-max1-min1;\n\t\t\t\t\tcout< p1.amount) + (p3.amount == p1.amount); // to calculate the true statements\n\t\t\t\tp2.statements = (p1.amount > p2.amount) + (p1.amount > p3.amount);\n\t\t\t\tp3.statements = (p3.amount > p2.amount) + (p2.amount > p1.amount);\n\t\t\t\tint a, b, c; // to check whether they are in the right order\n\t\t\t\ta = (p1.amount > p2.amount && p1.statements < p2.statements) || (p1.amount < p2.amount && p1.statements > p2.statements);\n\t\t\t\tb = (p1.amount > p3.amount && p1.statements < p3.statements) || (p1.amount < p3.amount && p1.statements > p3.statements);\n\t\t\t\tc = (p3.amount > p2.amount && p3.statements < p2.statements) || (p3.amount < p2.amount && p3.statements > p2.statements);\n\t\t\t\tif(a + b + c == 3) {\n\t\t\t\t\tint temp1; // the middle values used for switch the values\n\t\t\t\t\tchar temp2;\n\t\t\t\t\tif(p1.amount > p2.amount) { // give A,B,C a right order\n\t\t\t\t\t\ttemp1 = p1.amount;\n\t\t\t\t\t\tp1.amount = p2.amount;\n\t\t\t\t\t\tp2.amount = temp1;\n\t\t\t\t\t\ttemp2 = p1.name;\n\t\t\t\t\t\tp1.name = p2.name;\n\t\t\t\t\t\tp2.name = temp2;\n\t\t\t\t\t}\n\t\t\t\t\tif(p1.amount > p3.amount) {\n\t\t\t\t\t\ttemp1 = p1.amount;\n\t\t\t\t\t\tp1.amount = p3.amount;\n\t\t\t\t\t\tp3.amount = temp1;\n\t\t\t\t\t\ttemp2 = p1.name;\n\t\t\t\t\t\tp1.name = p3.name;\n\t\t\t\t\t\tp3.name = temp2;\n\t\t\t\t\t}\n\t\t\t\t\tif(p2.amount > p3.amount) {\n\t\t\t\t\t\ttemp1 = p3.amount;\n\t\t\t\t\t\tp3.amount = p2.amount;\n\t\t\t\t\t\tp2.amount = temp1;\n\t\t\t\t\t\ttemp2 = p3.name;\n\t\t\t\t\t\tp3.name = p2.name;\n\t\t\t\t\t\tp2.name = temp2;\n\t\t\t\t\t}\n\t\t\t\t\tcout << p1.name << p2.name << p3.name << endl; // output\n\t\t\t\t\t\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50288", "code": "int main()\n{\n int a[4],b[4];\n for(int i=1;i<=3;i++)\n {\n a[1]=i;\n for(int s=1;s<=3;s++)\n {\n if(s==i)\n continue;\n a[2]=s;\n for(int t=1;t<=3;t++)\n {\n if(s==t || t==i)\n continue;\n a[3]=t;\n b[1]=(a[2]>a[1])+(a[1]==a[3]);\n b[2]=(a[1]>a[2])+(a[1]>a[3]);\n b[3]=(a[3]>a[2])+(a[2]>a[1]);\n if((a[1]-a[2])*(b[1]-b[2])<0 && (a[1]-a[3])*(b[1]-b[3])<0 && (a[2]-a[3])*(b[2]-b[3])<0)\n {\n int f;\n char c[3]={'A','B','C'},k;\n for(int h=1;h<3;h++)\n {\n for(int g=h;g<3;g++)\n {\n if(a[g]=0;d--)\n {\n cout<a)+(c==a)==2)&&(b+(a>b)+(a>c))==2&&(c+(c>b)+(b>a))==2)\n\t\t\t\t{\n\t\t\t\t\tif(a>b&&a>c)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(b>c)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout<<\"CBA\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout<<\"BCA\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( b>c&&b>a)\n\t\t\t\t\t{\n\t\t\t\t\t if(c>a)\n\t\t\t\t\t {\n\t\t\t\t\t\t cout<<\"ACB\";\n\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t cout<<\"CAB\";\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tif(c>b&&c>a)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(b>a)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout<<\"ABC\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcout<<\"BAC\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50290", "code": "/*\n * ????compare eat.cpp\n * ?????\n * ????: 2011-11-3\n * ??????????\n */\nint main(){\n\tint a,b,c;//??????????A,B,C\n\tint as,bs,cs;//??????????????\n\tchar d[4];\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t\tfor(c=1;c<=3;c++)\n\t\t {as=(b>a)+(c==a);//A???\n\t bs=(a>b)+(a>c);//B???\n\t cs=(c>b)+(b>a);//C???\n\t\t\t if(!(a<=b&&as<=bs||a<=c&&as<=cs||b<=a&&bs<=as||b<=c&&bs<=cs||c<=a&&cs<=as||c<=b&&cs<=bs))//?????????????????\n\t\t\t\t{\n\t\t\t\td[a]='A';d[b]='B';d[c]='C';//????\n\t\t\t }\n\t\t\t}\n\tcout<a[0])+(a[2]==a[0])==3-a[0]&&(a[0]>a[1])+(a[0]>a[2])==3-a[1]&&(a[2]>a[1])+(a[1]>a[0])==3-a[2])\n\t\t\t\t{\n\t\t\t\t goto loop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tloop:for(i=0;i<2;i++)\n\t{\n\t\tfor(j=0;j<2-i;j++)\n\t\t{\n\t\t\tif(a[j]>a[j+1])\n\t\t\t{\n\t\t\t\ttemp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=temp;\n\t\t\t\tc=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=c;\n\t\t\t}\n\t\t}\n\t}\n\tcout<a)+(c==a);\n b1=(a>b)+(a>c);\n\t\t\t\tc1=(c>b)+(b>a);\n if((a+a1)==2&&(b+b1)==2&&(c+c1)==2)\n\t\t\t\t{rank[a]='A';\n rank[b]='B';\n\t rank[c]='C';\n\t for(k=0;k<3;k++)\n cout<A)+(C==A);\n\t\t\tword[2]=(A>B)+(A>C);\n\t\t\tword[3]=(C>B)+(B>A); //????????\n\t\t\trank[A]='A';\n\t\t\trank[B]='B'; \n\t\t\trank[C]='C';\n\t\t\tif(word[rank[1]-64]>word[rank[2]-64]&&word[rank[2]-64]>word[rank[3]-64]) //?????????????\n\t\t\t\tfor(i=1;i<4;i++)\n\t\t\t\t\tcout<b)+(c==a))==a && ((ac&&c>a)\n\t\t\t\t\t\t cout<<\"BCA\";\n\t\t\t\t\telse if (a>c&&c>b)\n\t\t\t\t\t cout<<\"ACB\";\n\t\t\t\t\telse if (b>a&&a>c)\n\t\t\t\t\t cout<<\"BAC\";\n\t\t\t\t\telse if (a>b&&b>c)\n\t\t\t\t\t\t cout<<\"ABC\";\n\t\t\t\t\telse if (c>a&&a>b)\n\t\t\t\t\t\t cout<<\"CAB\";\n\t\t\t\t\telse if (c>b&&b>a)\n\t\t\t\t\t\tcout<<\"CBA\";\n\t\n\t\t\t\t}\n\t\t\t}\nreturn 0;\n}\n"} +{"label": "101", "index": "50296", "code": "/*\nName:???\nID:1200012842\nEmail:443972553@qq.com\n*/\nint main()\n{\n int a,b,c; //A,B,C???,?{1,2,3}\n for (a=1;a<=3;a++)\n for (b=1;b<=3;b++)\n for (c=1;c<=3;c++)\n if (a!=b)\n if (a!=c)\n if (b!=c)\n if ((b>a)+a==3)\n if ((a>b)+(a>c)+b==3)\n if ((c>b)+(b>a)+c==3)\n for (int i=1;i<=3;i++)\n {\n if (a==i)cout<<'A';\n if (b==i)cout<<'B';\n if (c==i)cout<<'C';\n }\n return 0;\n }\n"} +{"label": "101", "index": "50297", "code": "void main()\n{\n\tint i,j,k,i2,j2,k2;\n\tfor(i=0;i<=2;i++)\n\t{\n\t\tfor(j=0;j<2;j++)\n\t\t{\n\t\t\tfor(k=0;k<2;k++)\n\t\t\t{\n\t\t\t\ti2=j2=k2=0;\n\t\t\t\tif(i==j||i==k||j==k)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(j>i)\n\t\t\t\t\ti2++;\n\t\t\t\tif(i==k)\n\t\t\t\t\ti2++;\n\t\t\t\tif(i>j)\n\t\t\t\t\tj2++;\n\t\t\t\tif(i>k)\n\t\t\t\t\tj2++;\n\t\t\t\tif(k>j)\n\t\t\t\t\tk2++;\n\t\t\t\tif(j>j)\n\t\t\t\t\tk2++;\n\t\t\t\tif(i+i2==2&&j+j2==2&&k+k2==2)\n\t\t\t\t{\n\t\t\t\t\tif(i>j&&j>k)\n\t\t\t\t\t\tprintf(\"CBA\");\n\t\t\t\t\tif(i>k&&k>j)\n\t\t\t\t\t\tprintf(\"BCA\");\n\t\t\t\t\tif(j>i&&i>k)\n\t\t\t\t\t\tprintf(\"CAB\");\n\t\t\t\t\tif(j>k&&k>i)\n\t\t\t\t\t\tprintf(\"ACB\");\n\t\t\t\t\tif(k>i&&i>j)\n\t\t\t\t\t\tprintf(\"BAC\");\n\t\t\t\t\tif(k>j&&j>i)\n\t\t\t\t\t\tprintf(\"ABC\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "101", "index": "50298", "code": "int main ()\n{\n\tint amount[6][3]={{1,2,3},{1,3,2},{2,1,3},{2,3,1},{3,2,1},{3,1,2}},a=0,b=0,c=0; //??????\n\tfor (int i=0;i<=5;i++) //???????????\n\t{\n\t\tint A=0,B=0,C=0;\n\t\tif (amount[i][1]>amount[i][0]) {A++;C++;}\n\t\tif (amount[i][1]amount[i][2]) B++;\n\t\tif (amount[i][2]>amount[i][1]) C++;\n\t\tif ((amount[i][0]-amount[i][1])*(A-B)<0&&(amount[i][1]-amount[i][2])*(B-C)<0&&(amount[i][0]-amount[i][2])*(A-C)<0) //???????\n\t\t{\n\t\t\ta=amount[i][0];b=amount[i][1];c=amount[i][2];\n\t\t break;\n\t\t}\n\t}\n\tif(aa)+(c==a);//B??????C???????\n food[b] =(a>b) + (a>c);//A??????A??C???\n food[c] =(c>b) + (b>a);//??B????B?A????\n if ((food[1]>food[2])&&(food[2]>food[3]))\n return 1;\n else\n return 0;\n}\n///???????a,b,c?????\nvoid print_abc(int a,int b,int c)\n{\n for (int i=1;i<=3;i++)\n {\n if (a==i) cout<<'A';\n if (b==i) cout<<'B';\n if (c==i) cout<<'C';\n }\n cout<af)ah++;\n if(cf==af)ah++;\n if(af>bf)bh++;\n if(af>cf)bh++;\n if(cf>bf)ch++;\n if(bf>af)ch++;\n if((((ah>bh)&&(afbf)))&&(((bh>ch)&&(bfcf)))&&(((ch>ah)&&(cf>af))||((ch==ah)&&(cf==af))||((chaf))))\n {\n res[2-af]='A';\n res[2-bf]='B';\n res[2-cf]='C';\n }\n }\n }\n }\n cout<<\"BCA\"<A)+(C==A); //????A,B,C????\n wordB=(A>B)+(A>C);\n wordC=(C>B)+(B>A);\n if (A>B&&B>C) //???6??????????\n {if ((wordAC&&C>B)\n {if ((wordAA&&A>C)\n {if ((wordBC&&C>A)\n {if ((wordBA&&A>B)\n {if ((wordCa);\n\t\t\tk[2]=(a>b)+(a>c);\n\t\t\tk[3]=(c>b)+(b>a);\n\t\t\tif((k[1]+a==3)&&(k[2]+b==3)&&(k[3]+c==3))\n\t\t\t{\n\t\t\tif(a==1)cout<<'A';\n\t\t\tif(b==1)cout<<'B';\n\t\t\tif(c==1)cout<<'C';\n\t\t\tif(a==2)cout<<'A';\n\t\t\tif(b==2)cout<<'B';\n\t\t\tif(c==2)cout<<'C';\n\t\t\tif(a==3)cout<<'A';\n\t\t\tif(b==3)cout<<'B';\n\t\t\tif(c==3)cout<<'C';\n\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n}\n"} +{"label": "101", "index": "50304", "code": "int main()\n{\n\tint a,b,c,a1,a2,b1,b2,c1,c2,t=0;//????\n\tfor(a=0;a<3;a++)\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\n\t\t\t\ta1=(b>a),a2=(c==a);\n\t\t\t\tb1=(a>b),b2=(a>c);\n\t\t\t\tc1=(c>b),c2=(b>a);//??????\n\t\t\t\tif(a1+a2==(2-a)&&(b1+b2==(2-b)&&c1+c2==(2-c)))//??????????????\n\t\t\t\t{\n\t\t\t\t\tif(a>b&&b>c)\n\t\t\t\t\t\tcout<<\"CBA\";\n\t\t\t\t\telse if(b>a&&a>c)\n\t cout<<\"CAB\";\n\t\t\t\t\telse if(c>a&&a>b)\n\t\t\t\t\t cout<<\"BAC\";\n\t\t\t\t\telse if(c>b&&b>a)\n\t\t\t\t\t\tcout<<\"ABC\";\n\t\t\t\t\telse if(b>c&&c>a)\n\t\t\t\t\t\tcout<<\"ACB\";\n\t\t\t\t\telse if(a>c&&c>b)\n\t\t\t\t\t\tcout<<\"BCA\";//????\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}\n\n\t\t\t\n\treturn 0;\n}"} +{"label": "101", "index": "50305", "code": "//**********************************\n//**** ?????? *****\n//**** 1200012718 *****\n//** ?????? **\n//**********************************\nint main()\n{\n\tint x[3]={0,0,0}; //x1x2x3????abc????????012\n\tfor (int a=0;a<3;a++)\n\t\tfor (int b=0;b<3;b++)\n\t\t\tfor (int c=0;c<3;c++) //abc????0~2??\n\t\t\t{\n\t\t\t\tint o=(b>a);\n\t\t\t\tint p=(c==a);\n\t\t\t\tint q=(a>b);\n\t\t\t\tint r=(a>c);\n\t\t\t\tint s=(c>b);\n\t\t\t\tint t=(b>a); //opqrst??6???????\n\t\t\t\tif (o+p+q+r+s+t==3&&a+o+p==2&&b+q+r==2&&c+s+t==2)//?? ????????????????????????????2???a???????????0??????2???2???????\n\t\t\t\t{\n\t\t\t\t\tx[0]=a;\n\t\t\t\t\tx[1]=b;\n\t\t\t\t\tx[2]=c; //?abc??\n\t\t\t\t}\n\t\t\t}\n\tfor (int i=0;i<3;i++) //????????abc\n\t\tfor (int j=0;j<3;j++)\n\t\t{\n\t\t\tif (x[j]==i) //x[j]=???????char a=65+j?????abc\n\t\t\t{\n\t\t\t\tchar a=65+j;\n\t\t\t\tcout<b||a>c)&&!(c>b||b>a))\n\t{\n\t\tprintf(\"CBA\");\n\t\treturn 0;\n\t}\n\n\tif((ab||a>c)&&(c>b||b>a))\n\t{\n\t\tprintf(\"BCA\");\n\t\treturn 0;\n\t}\n\tif((ab||a>c)&&(c>b&&b>a))\n\t{\n\t\tprintf(\"BAC\");\n\t\treturn 0;\n\t}\n\tif((ab&&a>c)&&!(c>b||b>a))\n\t{\n\t\tprintf(\"CAB\");\n\t\treturn 0;\n\t}\n\tif(!(ab&&a>c)&&(c>b||b>a))\n\t{\n\t\tprintf(\"ACB\");\n\t\treturn 0;\n\t}\n\tif(!(ab||a>c)&&(c>b&&b>a))\n\t{\n\t\tprintf(\"ABC\");\n\t\treturn 0;\n\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50307", "code": "/*\n *100008.cpp\n *??????\n *Created on: 2012-10-5\n *Author:??\n */\nint A=0,B=0,C=0;//????\nint main(){\n\tfor (A=0;A<3;A++){//?????\n\t\tfor (B=0;B<3;B++){\n\t\t\tif (A!=B){\n\t\t\tfor (C=0;C<3;C++){\n\t\t\t\tif(C!=A&&C!=B){\n\t\t\t\t\tif(((B>A)+(C==A))==2&((A>B)+(A>C))==1&((C>B)+(B>A))==0&(C>B>A)==1)//????????\n\t\t\t\t\t\tcout<<\"ABC\"<A)+(C==A))==2&((A>B)+(A>C))==0&((C>B)+(B>A))==1&(B>C>A)==1)\n\t\t\t\t\t\tcout<<\"ACB\"<A)+(C==A))==1&((A>B)+(A>C))==0&((C>B)+(B>A))==2&(B>A>C)==1)\n\t\t\t\t\t\tcout<<\"CAB\"<A)+(C==A))==1&((A>B)+(A>C))==2&((C>B)+(B>A))==0&(C>A>B)==1)\n\t\t\t\t\t\tcout<<\"BAC\"<A)+(C==A))==0&((A>B)+(A>C))==1&((C>B)+(B>A))==2&(A>B>C)==1)\n\t\t\t\t\t\tcout<<\"CBA\"<A)+(C==A))==0&((A>B)+(A>C))==2&((C>B)+(B>A))==1&(A>C>B)==1)\n\t\t\t\t\t\tcout<<\"BCA\"< amount[ A ] ) + ( amount[ C ] == amount[ A ] );\n\t\t\t\ttruth[ B ] = ( amount[ A ] > amount[ B ] ) + ( amount[ A ] > amount[ C ] );\n\t\t\t\ttruth[ C ] = ( amount[ C ] > amount[ B ] ) + ( amount[ B ] > amount[ A ] );\n\n\t\t\t\tif ( ( ( ( truth[ A ] > truth[ B ] ) && ( amount[ A ] < amount[ B ] ) )\n\t\t\t\t\t|| ( ( truth[ A ] == truth[ B ] ) && ( amount[ A ] == amount[ B ] ) ) ||\n\t\t\t\t\t( ( truth[ A ] < truth[ B ] ) && ( amount[ A ] > amount[ B ] ) ) ) &&\n\t\t\t\t\t( ( ( truth[ C ] > truth[ B ] ) && ( amount[ C ] < amount[ B ] ) )\n\t\t\t\t\t|| ( ( truth[ C ] == truth[ B ] ) && ( amount[ C ] == amount[ B ] ) ) ||\n\t\t\t\t\t( ( truth[ C ] < truth[ B ] ) && ( amount[ C ] > amount[ B ] ) ) ) &&\n\t\t\t\t\t( ( ( truth[ A ] > truth[ C ] ) && ( amount[ A ] < amount[ C ] ) )\n\t\t\t\t\t|| ( ( truth[ A ] == truth[ C ] ) && ( amount[ A ] == amount[ C ] ) ) ||\n\t\t\t\t\t( ( truth[ A ] < truth[ C ] ) && ( amount[ A ] > amount[ C ] ) ) ) )\n\t\t\t\t{\n\t\t\t\t\tfor ( i = 1; i <= 3; i++ )\n\t\t\t\t\t{\n\t\t\t\t\t\tfor ( j = 0; j <= 2; j++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( amount[ j ] == i )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << name[ j ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "101", "index": "50309", "code": "/**\n* @file homework.cpp\n* @author ??\n* @date 2010?11?17\n* @description\n* ??????: ??? \n*/\nint main()\n{\n\tint a, b, c, l[3] = {0}; //???? \n\tchar p[2]; //??????\n\tfor (a=0;a<3;a++)\n\t\tfor (b=0;b<3;b++)\n\t\t\tfor (c=0;c<3;c++) //?? ??\n\t\t\t{\n\t\t\t\tif(a != b && b != c && a != c) //?????\n\t\t\t\t{\n\t\t\t\tl[a] = (b > a) + (c == a); \n\t\t\t\tl[b] = (a > b) + (a > c);\n\t\t\t\tl[c] = (c > b) + (b > a); //????????\n\t\t\t\tif (l[0] > l[1] && l[1] > l[2]) //????? \n\t\t\t\t{\n\t\t\t\t\tp[a] = 'A';\n\t\t\t\t\tp[b] = 'B';\n\t\t\t\t\tp[c] = 'C';\n\t\t\t\t\tcout << p[0] << p[1] << p[2]; //????\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n}"} +{"label": "101", "index": "50310", "code": "int main()\n{\n int A,B,C;\n char b[3];\n int a[3]={0};\n for(A=0;A<3;A++)\n {\n for(B=0;B<3;B++)\n {\n if(A!=B)\n { \n C=3-A-B;\n a[0]=(((A>B)+(C==A))==A);\n a[1]=(((Aa)+(a==c);\n\t\t\t\tB=(a>b)+(a>c);\n\t\t\t\tC=(c>b)+(b>a);\n\t\t\t\tif(((A>B&&ab)||(A==B&&a==b))\n\t\t\t\t\t+((A>C&&ac)||(A==C&&a==c))\n\t\t\t\t\t+((B>C&&bc)||(B==C&&b==c))==3)\n\t\t\t\t{\n\t\t\t\t\tif(a>=b&&b>=c)\n\t\t\t\t\t\tprintf(\"CBA\");\n\t\t\t\t\tif(b>a&&b>=c)\n\t\t\t\t\t\tprintf(\"CAB\");\n\t\t\t\t\tif(c>a&&a>=b)\n\t\t\t\t\t\tprintf(\"BAC\");\n\t\t\t\t\tif(a>=b&&c>b)\n\t\t\t\t\t\tprintf(\"BCA\");\n\t\t\t\t\tif(b>a&&c>a)\n\t\t\t\t\t\tprintf(\"ACB\");\n\t\t\t\t\tif(c>b&&b>a)\n\t\t\t\t\t\tprintf(\"ABC\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50312", "code": "int main()\n{\n\tint As,Bs,Cs,A,B,C;\n\tchar m[3];\n\t\n\tfor ( A=0 ; A<3 ; A++ )\n\t\tfor ( B=0 ; B<3 ; B++ )\n\t\t\tfor ( C=0 ; C<3 ; C++ )\n\t\t\t{\n\t\t\t\tAs=( B>A )+( C==A );\n\t Bs=( A>B )+( A>C );\n\t Cs=( C>B )+( B>A );\n\t\t\t\tif(As+A==2&&Bs+B==2&&Cs+C==2&&A!=B&&B!=C&&C!=A)\n\t\t\t\t{\n\t\t\t\t\tm[A]='A';\n m[B]='B';\n\t\t\t\t\tm[C]='C';\n\t\t\t\t cout<A)+(C==A); //?words???????????\n words[1]=(A>B)+(A>C);\n words[2]=(C>B)+(B>A);\n rank[A]=0; //?A,B,C????????\n rank[B]=1;\n rank[C]=2; \n if(words[rank[1]]==2&&words[rank[2]]==1&&words[rank[3]]==0) //?????????????? ?? \n for(i=1;i<=3;i++)\n { person[i]=rank[i]+65; //?person????A,B,C???\n cout<A)+(C==A);\n\t\t\t\tword[2]=(A>B)+(A>C);\n\t\t\t\tword[3]=(C>B)+(B>A);//?????????\n\t\t\t\trank[A]=1;\n\t\t\t\trank[B]=2;\n\t\t\t\trank[C]=3;//????\n\t\t\t\tif(word[rank[3]]person[0])+(person[2]==person[0]);\n\t\t\t\tword[1]=(person[0]>person[1])+(person[0]>person[2]);\n\t\t\t\tword[2]=(person[2]>person[1])+(person[1]>person[0]);\n\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t{\n\t\t\t\t\tif(person[i]+word[i]==2)\n\t\t\t\t\t{\n\t\t\t\t\t\tk=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(k==1)\n\t\t\t\t{\n\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\trank[person[i]]=i; //???????????????????rank[3]\n\t\t\t\t\t}\n\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<(char)(rank[i]+65); //????????????\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50317", "code": "\n\nint main()\n{\n\tint a = 0;\n\tint b = 0;\n\tint c = 0;\n\tchar temp[3];\n\n\tfor( a = 0;a<=2;a++ )\n\t{\n\t\tfor( b = 0;b<=2;b++)\n\t {\n\t\t\tif(a!=b)\n\t\t\t{\n\t\t\t\tc=3-a-b;\n\t\t\t\n\t\t\t\n\t\t\t\tif( ( b > a ) + ( c == a ) == 2 - a\n\t\t\t\t\t&& ( b < a ) + ( a > c ) == 2 - b\n\t\t\t\t\t&& ( c > b ) + ( b > a ) == 2 - c )\n\t\t\t\t{\n\t\t\t\t\ttemp[a] = 'A';\n\t\t\t\t\ttemp[b] = 'B';\n\t\t\t\t\ttemp[c] = 'C';\n\n\t\t\t\t\tcout << temp[0] << temp[1] << temp[2] ;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t }\n\t}\n\n\n\n\treturn 0;\n\n}"} +{"label": "101", "index": "50318", "code": "/*3??????????????\nA??B??????C???????\nB??A??????A??C???\nC????B????B?A????\n?????????????????????\n???????????3?????*/\n\nint main()\n{\n\tint A,B,C,a,b,c,x,y,z;\n\tfor(A=1;A<=3;A++)\n\t\tfor(B=1;B<=3;B++)\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\ta=(B>A)+(C==A);b=(A>B)+(A>C);c=(C>B)+(B>A);\n\t\t\t\tx=(a>b)&&(AB);\n\t\t\t\ty=(a>c)&&(AC);\n\t\t\t\tz=(c>b)&&(CB);\n\t\t\t\tif(x+y+z==3)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i==A) cout<<\"A\";\n\t\t\t\t\t\tif(i==B) cout<<\"B\";\n\t\t\t\t\t\tif(i==C) cout<<\"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\treturn 0;\n}"} +{"label": "101", "index": "50319", "code": "\nint main()\n{\n char a[5];\n int i,j,k;\n for (i=1; i<=3; i++)\n for (j=1; j<=3; j++)\n {\n\n if (i!=j)\n {\n k=6-i-j;\n\n if (3-i==(j>i)+(k==i) && 3-j==(i>j)+(i>k) && 3-k==(k>j)+(j>i))\n {\n\n a[i] = 'A';\n a[j] = 'B';\n a[k] = 'C';\n for (i=1; i<=3; i++)\n printf(\"%c\",a[i]);\n break;\n }\n }\n }\n return 0;\n}\n"} +{"label": "101", "index": "50320", "code": "int main()\n{\n int a,b,c;\n for(a=0;a<=2;a++)\n for(b=0;b<=2;b++)\n {\n if(a==b)\n continue;\n }\n for(c=0;c<=2;c++)\n {\n if(a==b&&b==c)\n continue;\n else\n \n cout<<\"BCA\"<A)+(C==A);\t//A?? \n\t\tint\tb=(A>B)+(A>C);\t//B??\n\t\tint c=(C>B)+(B>A);\t//C?? \n\t\t\n\t\tif(a+A==2&&b+B==2&&c+c==2)\t//????????????????\n\t\t{\n\t\t\t//??????\n\t\tfor(;;)\n\t\t{\n\t\t\t\tif(A==0)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"A\";break;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(B==0)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"B\";break;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(C==0)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"C\";break;\t\n\t\t\t\t}\t\n\t\t}\t\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\t\tif(A==1)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"A\";break;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(B==1)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"B\";break;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(C==1)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"C\";break;\t\n\t\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(;;)\n\t\t{\n\t\t\t\tif(A==2)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"A\";break;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(B==2)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"B\";break;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(C==2)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"C\";break;\t\n\t\t\t\t}\t\n\t\t}\t\n\t\treturn 0;\n\t\t} \n\t}\n}\n"} +{"label": "101", "index": "50322", "code": "int main()\n{\n\tint r[4], A, B, C, i, j;\n\tchar a[4] = {'A','B','C','\\0'};\n\tfor(r[1] = 1; r[1] <= 3; r[1]++)\n\t\tfor(r[2] = 1; r[2] <= 3; r[2]++)\n\t\t\tfor(r[3] = 1; r[3] <= 3; r[3]++)\n\t\t\t{\n\t\t\t\tif(r[1] + r[2] + r[3] != 6 || r[1] * r[2] * r[3] != 6) continue;\n\t\t\t\tA = (r[2] > r[1]) + (r[3] == r[1]);\n\t\t\t\tB = (r[1] > r[2]) + (r[1] > r[3]);\n\t\t\t\tC = (r[3] > r[2]) + (r[2] > r[1]);\n\t\t\t\tif(r[1] + A == 3 && r[2] + B == 3 && r[3] + C == 3)\n\t\t\t\t{\n\t\t\t\t\tfor(i = 1; i <= 3; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(j = 1; j <= 3; j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(r[j] == i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout << a[j - 1];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50323", "code": "int main()\n{\n\tint x,y,z;/*x?y?z????A?B?C?????*/\n\tint a,b,c;/*a?b?c????????????A?B?C?????*/\n\tint i;\n\tchar rank[3];\n\tfor(x=1;x<=2;x++)/*??x?y?z?????????*/\n\tfor(y=0;y<=2;y++)\n for(z=0;z<=2;z++)\n\t\tif(x!=y&&x!=z&&y!=z)/*????????????if???????????*/\n\t\t{\n\t\t\ta=b=c=2;/*????2??????????????????????1*/\n if(xz)\n\t\t\t\tb--;\n\t\t\tif(ya)+(c==a);///////////////////?????????????????\n\t y=(a>b)+(a>c);\n z=(c>b)+(b>a);\n\t\t if( a+x==b+y&&b+y==c+z )\n\t\t\t{\n\t\t\t\tif(a>b&&b>c) cout<<\"CBA\"<c&&c>b) cout<<\"BCA\"<a&&a>c) cout<<\"CAB\"<c&&c>a) cout<<\"ACB\"<a&&a>b) cout<<\"BAC\"<b&&b>a) cout<<\"ABC\"<A)+(A==C);\n\t\t\t\ts2=(A>B)+(A>C);\n\t\t\t\ts3=(C>B)+(B>A);\n\t\t\t\tif(A+s1==3&&B+s2==3&&C+s3==3)//????\n\t\t\t\t{\n\t\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A==i)//?????\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(B==i)\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(C==i)\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;//??\n}"} +{"label": "101", "index": "50326", "code": "int main( )\n{\n\tint a,b,c;\n\tfor(a=1;a<4;a++)\n\t\tfor(b=1;b<4;b++)\n\t\t\tfor(c=1;c<4;c++)\n\t\t\t{\n\t\t\t\tif((a+(b>a)+(c==a))==3&&(b+(a>b)+(a>c))==3&&(c+(c>b)+(b>a))==3) //?????????????????????????\n\t\t\tgoto loop;//???????????\n\t\t\t}\nloop: if(a>b&&b>c) //?????\n\t\t cout<<\"CBA\";\n\t else if(a>c&&c>b)\n\t\t cout<<\"BCA\";\n\t else if(c>b>a)\n\t\t cout<<\"ABC\";\n\t else if(c>a>b)\n\t\t cout<<\"BAC\";\n\t else if(b>a>c)\n\t\t cout<<\"CAB\";\n\t else if(b>c>a)\n\t\t cout<<\"ACB\";\n\t \t return 0;\n}"} +{"label": "101", "index": "50327", "code": "int main()\n{\nint a,b,c,i;\nfor(a=0;a<3;a++)\n{\nfor(b=0;b<3;b++)\n{\n if(b==a)\n\t continue;\n else \n {\n c=3-a-b;\n if((b>a)+(c==a)+a==(a>b)+(a>c)+b&&(a>b)+(a>c)+b==(c>b)+(b>a)+c )\n {\n for(i=0;i<3;i++)\n {\n if(a==i)\n\t cout<<\"A\";\n if(b==i)\n\t cout<<\"B\";\n if(c==i)\n\t cout<<\"C\";\n }\n \n }\n }\n \n}\n\n}\nreturn 0;\n\n}"} +{"label": "101", "index": "50328", "code": "int main(){\n\nint a,b,c;\na=3;b=2;c=1;\nif((b>a)+(a==c)==0&&(a>b)+(a>c)==1&&(c>b)+(b>a)==2)\ncout<<\"CBA\"<a)+(a==c)==0&&(a>b)+(a>c)==2&&(c>b)+(b>a)==1)\ncout<<\"BCA\"<a)+(a==c)==1&&(a>b)+(a>c)==0&&(c>b)+(b>a)==2)\ncout<<\"CAB\"<a)+(a==c)==1&&(a>b)+(a>c)==2&&(c>b)+(b>a)==0)\ncout<<\"BAC\"<a)+(a==c)==2&&(a>b)+(a>c)==0&&(c>b)+(b>a)==1)\ncout<<\"ACB\"<a)+(a==c)==2&&(a>b)+(a>c)==1&&(c>b)+(b>a)==0)\ncout<<\"ABC\"<a)+(c==a);\n words[b]=(a>b)+(a>c);\n words[c]=(c>b)+(b>a);\n if(words[0]>words[1] && words[1]>words[2])\n {\n rank[a]='A'; //????????????????????\n rank[b]='B';\n rank[c]='C';\n for(i=0;i<3;i++)\n cout<A)+(C==A);\n Bs=(A>B)+(A>C);\n Cs=(C>B)+(B>A);\n \n if(!(A<=B&&As<=Bs||A<=C&&As<=Cs\n ||B<=A&&Bs<=As||B<=C&&Bs<=Cs\n ||C<=A&&Cs<=As||C<=B&&Cs<=Bs)) //?????? \n {\n word[A]='A';\n word[B]='B';\n word[C]='C';\n cout<A)+(C==A);//??????????????\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif(aB&&B>C)cout<<\"CBA\"<C&&C>B)cout<<\"BCA\"<A&&A>C)cout<<\"CAB\"<C&&C>A)cout<<\"ACB\"<A&&A>B)cout<<\"BAC\"<B&&B>A)cout<<\"ABC\"<b)+(a>c);\n p=(c>b)+(b>a);\n if(((a+m)==3)&&((b+n)==3)&&((c+p)==3))\n { int u[3]={a,b,c},x;\n char k[3]={'A','B','C'},y;\n for(i=0;i<=2;i++)\n for(j=0;j<=1;j++)\n if(u[j]>u[j+1])\n {x=u[j+1],u[j+1]=u[j],u[j]=x,\n y=k[j+1],k[j+1]=k[j],k[j]=y;}\n else continue;\n cout<word[2]&&word[2]>word[1]) //????????????????\n\t\t\t\tcout<eat[0])+(eat[0]==eat[2]);\n\t\t\t\twords[1]=(eat[0]>eat[1])+(eat[0]>eat[2]);\n\t\t\t\twords[2]=(eat[2]>eat[1])+(eat[1]>eat[0]);\n\t\t\t\tfor(i=1;i<3;i++)\n\t\t\t\t\tfor(j=1;j<3-i;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(words[j]>words[j+1])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tp=words[j];\n\t\t\t\t\t\t\twords[j]=words[j+1];\n\t\t\t\t\t\t\twords[j+1]=p;\n\t\t\t\t\t\t\tp=eat[j];\n\t\t\t\t\t\t\teat[j]=eat[j+1];\n\t\t\t\t\t\t\teat[j+1]=p;\n\t\t\t\t\t\t\tch=name[j];\n\t\t\t\t\t\t\tname[j]=name[j+1];\n\t\t\t\t\t\t\tname[j+1]=ch;\n\t\t\t\t\t\t}\n\t\t\t\t\tif(eat[0]>eat[1]&&eat[1]>eat[2])\n\t\t\t\t\t\tcout< a) + (c == a);\n\t\t\t\t\t\ttb = (a > b) + (a > c);\n\t\t\t\t\t\ttc = (c > b) + (b > a);\n\t\t\t\t\t\tif((a + ta == 3) && (b + tb == 3) && (c + tc == 3)) \n\t\t\t\t\t\t\tcout << d[3 - c] << d[3 - b] << d[3 - a] << endl;\n\t\t\t\t\t}\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "101", "index": "50336", "code": "\nint main (void)\n{\n\tint A,B,C, i; \n\tint words;\n\tfloat word[4];\n\tchar name[4];\n\tfor (A= 1; A <= 3;A ++)\n\t\tfor (B = 1;B <= 3;B ++)\n\t\t\tfor ( C = 1;C <= 3; C++)\n\t\t\t{\n\t\t\t\tword[1] = A/10.0-(B > A)-(C == A);\n\t\t\t\tword[2] = B/10.0-(A > B)-(A > C);\n\t\t\t\tword[3] = C/10.0 - (C > B)-(B > A);\n\t\t\t\tif((A-B)*(word[1]-word[2])>0&&(C-B)*(word[3]-word[2])>0&&(A-C)*(word[1]-word[3])>0)\n\t\t\t\t{\n\t\t\t\t\tname[A] = 'A';\n\t\t\t\t\tname[B] = 'B';\n\t\t\t\t\tname[C] = 'C';\n\t\t\t\t\tfor (i = 3; i > 0; i--)\n\t\t\t\t\t\tcout << name[i] ;\n\t\t\t\t\tcout << endl;\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\n\n\treturn 0;\n}"} +{"label": "101", "index": "50337", "code": "/*\n * ???.cpp\n *\n * Created on: 2011-10-14\n * Author: 1100012857\n */\nint main(){\n\tchar d[4];\n\tint a,b,c,i;\n\tfor(a=0;a<=3;a++)\n\t\tfor(b=0;b<=3;b++)\n\t\t\tfor(c=0;c<=3;c++)//???\n\t\t\t\tif((b<=a)+(c!=a)==a-1)\n\t\t\t\t\t\tif((a<=b)+(a<=c)==b-1)\n\t\t\t\t\t\t\tif((c<=b)+(b<=a)==c-1){//????????????????\n d[a]='A';\n d[b]='B';\n d[c]='C';\n for(i=1;i<=3;i++)\n {\n \tcout< A);\n\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\tif ((a == (2 - A)) && (b == (2 - B)) && (c == (2 - C)))\n\t\t\t\t{\n\t\t\t\t\tif (A < B && A < C)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"A\";\n\t\t\t\t\t\tif (B < C)\n\t\t\t\t\t\t cout << \"B\" << \"C\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"C\" << \"B\";\n }\n\t\t\t\t\tif (B < A && B < C)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"B\";\n\t\t\t\t\t\tif (A < C)\n\t\t\t\t\t\t cout << \"A\" << \"C\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"C\" << \"A\";\n }\n\t\t\t\t\tif (C < B && C < A)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"C\";\n\t\t\t\t\t\tif (B < A)\n\t\t\t\t\t\t cout << \"B\" << \"A\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"A\" << \"B\";\n }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50339", "code": "int main()\n{\n int a,b,c;\n \n \n char p0;\n char p[3]={'A','B','C'};\n for(int i=1;i<=3;i++)\n {\n for(int j=1;j<=3;j++)\n {\n for(int k=1;k<=3;k++)\n {\n int q1=0,q2=0,q3=0;\n a=(j>i)+(k==i);\n b=(i>j)+(i>k);\n c=(k>j)+(j>i);\n if((a-b)*(i-j)<0||((a-b)==0&&(i-j)==0))\n q1=1;\n if((a-c)*(i-k)<0||((a-c)==0&&(i-k)==0))\n q2=1;\n if((c-b)*(k-j)<0||((c-b)==0&&(k-j)==0))\n q3=1;\n if(q1==1&&q2==1&&q3==1)\n {\n int m[3]={i,j,k},m0;\n for(int s=0;s<3;s++)\n {\n for(int t=s+1;t<3;t++)\n {\n if(m[t]A)+(C==A);\n\t\t\t\tBs=(A>B)+(A>C);\n\t\t\t\tCs=(C>B)+(B>A);\t\t\t\t\t\t\t\t//??????\n\t\t\t\tif ((A+As==3)&&(B+Bs==3)&&(C+Cs==3))\t//????????\n\t\t\t\t{\n\t\t\t\t\tAnsA=A;\n\t\t\t\t\tAnsB=B;\n\t\t\t\t\tAnsC=C;\n\t\t\t\t}\n\t\t\t}\n\tif (AnsA<=AnsB && AnsB<=AnsC)\n\t\tcout << \"ABC\" << endl;\n\tif (AnsA<=AnsC && AnsC<=AnsB)\n\t\tcout << \"ACB\" << endl;\n\tif (AnsB<=AnsA && AnsA<=AnsC)\n\t\tcout << \"BAC\" << endl;\n\tif (AnsB<=AnsC && AnsC<=AnsA)\n\t\tcout << \"BCA\" << endl;\n\tif (AnsC<=AnsA && AnsA<=AnsB)\n\t\tcout << \"CAB\" << endl;\n\tif (AnsC<=AnsB && AnsB<=AnsA)\n\t\tcout << \"CBA\" << endl;\t\t\t\t\t\t\t\t//????\n\treturn 0;\t\t\t\t\t\t\t\t\t\t\t\t//????\n}\n"} +{"label": "101", "index": "50341", "code": "int main ()\n{\n int a,b,c;//??\n char ans[3];\n for (a=1;a<=3;a++)//????????\n {\n for (b=1;b<=3;b++)\n {\n if (a==b)\n continue;\n for (c=1;c<=3;c++)\n {\n if (a==c)\n continue;\n if (b==c)\n continue;\n if ((((b>a)+(0))==(3-a))&&(((a>b)+(a>c))==(3-b))&&(((c>b)+(b>a))==(3-c)))\n {\n ans[3-a]='A';\n ans[3-b]='B';\n ans[3-c]='C';\n }\n }\n }\n }\n cout < B && A < C ) || ( A < B && A > C ) )\n if ( C > B && B > A )\n cout << \"CBA\" ;\n \n A = 2 , B = 0 , C = 1 ;\n if ( B < A && A != C)\n if ( A > B && A > C )\n if ( ( C > B && B < A ) || ( C < B && B > A ) )\n cout << \"BCA\" ;\n \n A = 1, B = 0 , C = 2 ;\n if ( ( B < A && A == C ) || ( B > A && A != C ) )\n if ( A > B && A > C )\n if ( C < B && B < A )\n cout << \"BAC\" ;\n \n A = 1 , B = 2 , C = 0 ;\n if ( ( B < A && A == C ) || ( B > A && A != C ) )\n if ( A < B && A < C )\n if ( C > B && B > A )\n cout << \"CAB\" ;\n \n A = 0 , B = 2 , C = 1 ;\n if ( B > A && A == C )\n if ( A < B && A < C )\n if ( ( C > B && B < A ) || ( C < B && B > A ) )\n cout << \"ACB\" ;\n \n A = 0 , B = 1 , C = 2 ;\n if ( B > A && A == C )\n if ( ( A > B && A < C ) || ( A < B && A > C ) )\n if ( C < B && B < A )\n cout << \"ABC\" ;\n \n return 0 ;\n}\n// ( > w < ) finished~ "} +{"label": "101", "index": "50343", "code": "int main()\n{\n\tint a=0;\n\tint b=0;\n\tint c=0;\n\tint i=0;\n\tchar j[5];\n\tint words[5]={0};\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\twords[a]=(ab)+(a>c);\n\t\t\t\twords[c]=(c>b)+(b>a);\n\t\t\t\tj[a]='A';\n\t\t\t\tj[b]='B';\n\t\t\t\tj[c]='C';\n\t\t\t\tif((words[a]+a)==3&&(words[b]+b)==3&&(words[c]+c)==3)\n\t\t\t\t{\n\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout <j)+(i>k)+j);\n\t\t\t\tp[2]=((k>j)+(j>i)+k);\n\t\t\t\tif(p[0]==2&&p[1]==2&&p[2]==2)\n\t\t\t\t{\n\t\t\t\t\tb[0]=i;\n\t\t\t\t\tb[1]=j;\n\t\t\t\t\tb[2]=k;\n\t\t\t\t\ta[0]='A';\n\t\t\t\t\ta[1]='B';\n\t\t\t\t\ta[2]='C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int u=0;u<2;u++)\n\t\t\t\tfor(int r=0;r<2-u;r++)\n\t\t\t\t{\n\t\t\t\t\tif(b[r]>b[r+1])\n\t\t\t\t\t{\n\t\t\t\t\t\tt=b[r];\n\t\t\t\t\t\tb[r]=b[r+1];\n\t\t\t\t\t\tb[r+1]=t;\n\t\t\t\t\t\tT=a[r];\n\t\t\t\t\t\ta[r]=a[r+1];\n\t\t\t\t\t\ta[r+1]=T;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(int u=0;u<3;u++)\n\t\t\t\t\tcout<A)+(C==A); //?c1,c2,c3?????????????\n \t c2=(A>B)+(A>C);\n \t c3=(C>B)+(B>A);\n \t p=(((c1>c2)+(Ac3)+(Ac2)+(Cb)+(a>c);\n s[2]=(ba);\n if (((s[0]+a)==(s[1]+b)&&(s[1]+b)==(s[2]+c))&&(a!=b)&&(a!=c)&&(b!=c))\n {\n for (i=0;i<3;i++)\n {\n for (j=0;j<3;j++)\n {\n if ((s[j]+i)==2)\n {\n n=65+j;\n printf(\"%c\",n);\n }\n\n }\n }\n }\n }\n }\n}\n\n}\n"} +{"label": "101", "index": "50347", "code": "int prime(int);\nint main()\n{\n\tint a,b,c;\n\tfor(int a=1;a<=3;a++)\n\t{\n\t\tfor(int b=1;b<=3;b++)\n\t\t{\n\t\t\tif(b==a) continue;\n\t\t\tfor(int c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif(c==a||c==b) continue;\n\t\t\t\tint A=(b>a)+(c==a);\n\t\t\t\tint B=(a>b)+(a>c);\n\t\t\t\tint C=(c>b)+(b>a);\n\t\t\t\tif(A+a==3&&B+b==3&&C+c==3)\n\t\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i==a)\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(i==b)\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(i==c)\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50348", "code": "int main()\n{\n\tint a=0,b=0,c=0,a1=0,b1=0,c1=0;\n\tfor(a=0;a<3;a++)\n\t\tfor(b=0;b<3;b++)\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\tif((a!=b)&&(a!=c)&&(b!=c))\n\t\t\t\t{\ta1=(b>a)+(c==a);\n\t\t\t\t\tb1=(a>b)+(a>c);\n\t\t\t\t\tc1=(c>b)+(b>a);\n\t\t\t\t\tif(((a+a1)==2)&&((b+b1)==2)&&((c+c1)==2))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a==0)cout<<'A';\n\t\t\t\t\t\tif(b==0)cout<<'B';\n\t\t\t\t\t\tif(c==0)cout<<'C';\n\t\t\t\t\t\tif(a==1)cout<<'A';\n\t\t\t\t\t\tif(b==1)cout<<'B';\n\t\t\t\t\t\tif(c==1)cout<<'C';\n\t\t\t\t\t\tif(a==2)cout<<'A';\n\t\t\t\t\t\tif(b==2)cout<<'B';\n\t\t\t\t\t\tif(c==2)cout<<'C';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\treturn 0;\n}"} +{"label": "101", "index": "50349", "code": "/*\n * ???.cpp\n *?????A,B,C???\n * Created on: 2012-10-4\n * Author:???\n */\n\n\nint main()\n{\n\tint A=2,B=1,C=0,a,b,c;//??????CA)+(C==A); //a??????\n\tb=(A>B)+(A>C); //b??????\n\tc=(C>B)+(B>A); //c??????\n\tif(aA)+(C==A);\n b=(A>B)+(A>C);\n c=(C>B)+(B>A);\n\tif(aA)+(C==A);\n\tb=(A>B)+(A>C);\n\tc=(C>B)+(B>A);\n\tif(bA)+(C==A);\n\tb=(A>B)+(A>C);\n\tc=(C>B)+(B>A);\n\tif(bA)+(C==A);\n\tb=(A>B)+(A>C);\n\tc=(C>B)+(B>A);\n\tif(cA)+(C==A);\n\tb=(A>B)+(A>C);\n\tc=(C>B)+(B>A);\n\tif(c a[1]) + (a[3] == a[1]);\n\t\t\t\tA[2] = (a[1] > a[2]) + (a[1] > a[3]);\n\t\t\t\tA[3] = (a[3] > a[2]) + (a[2] > a[1]);\n\t\t\t\tif (a[1] + A[1] == 3 && a[2] + A[2] == 3 && a[3] + A[3] == 3)//?????????????????????123??????321?\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 1;i <= 3; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tb[a[i]] = ch[i]; //?????????????????????????????\n\t\t\t\t\t}\n\t\t\t\t\tcout << b[1] << b[2] << b[3] << endl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50351", "code": "int main()\n{\n int a, b, c, x, y, z;\n for (a = 1; a <= 3; a++) \n {\n for (b = 1; b <= 3; b++)\n {\n if (b == a)\n continue;\n for (c = 1; c <= 3; c++)\n {\n if ((c == b) || (c == a))\n continue;\n x = (b >= a) + (c == a);\n y = (a >= b) + (a >= c);\n z = (c >= b) + (b >= a);\n if (((x + a) == (y + b)) && ((y + b) == (z + c)))\n {\n if (a > b)\n {\n if (b > c)\n cout<< \"C\" << \"B\" << \"A\" ;\n else if (a > c)\n cout<< \"B\" << \"C\" << \"A\";\n else\n cout<< \"B\" << \"A\" << \"C\";\n }\n else\n {\n if (a > c)\n cout << \"C\" << \"A\" << \"B\";\n else if (b > c)\n cout << \"A\" << \"C\" << \"B\";\n else\n cout << \"A\" << \"B\" << \"C\";\n }\n }\n }\n }\n }\n return 0;\n}"} +{"label": "101", "index": "50352", "code": "/*3??????????????\nA??B??????C???????\nB??A??????A??C???\nC????B????B?A????\n?????????????????????\n???????????3??????\n????\n???\n???? \n????????3???????\nABC */\nint main(){\n\tint a,b,c;\n\tfor(a=1;a<4;a++)\n\tfor(b=1;b<4;b++)\n\tfor(c=1;c<4;c++)\n\tif(((b>a)+(c==a)==3-a)&&((a>b)+(a>c)==3-b)&&((c>b)+(b>a)==3-c)){\n\t\tif(a==2&&b==1&&c==3)\n\t\t\tcout<<\"B\"<<\"A\"<<\"C\";\n\t if(a==2&&b==3&&c==1)\n\t \tcout<<\"C\"<<\"A\"<<\"B\";\n\t if(a==3&&b==1&&c==2)\n\t \tcout<<\"B\"<<\"C\"<<\"A\";\n\t if(a==3&&b==2&&c==1)\n\t \tcout<<\"C\"<<\"B\"<<\"A\";\n}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50353", "code": "int main()\n{\n\tint A=1,B=1,C=1,a,b,c;\n\tfor(A=1;A<=3;A++)\n\t\tfor(B=1;B<=3;B++)\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\ta=(B>A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif(((Ab)!=1)+((Ac)!=1)+((Bc)!=1)+((A>B)+(aC)+(aC)+(bB)&&(B>C)) cout<<\"CBA\"<C)&&(C>B)) cout<<\"BCA\"<A)&&(A>C)) cout<<\"CAB\"<C)&&(C>A)) cout<<\"ACB\"<A)&&(A>B)) cout<<\"BAC\"<B)&&(B>A)) cout<<\"ABC\"<A)+(A==C);b=(A>B)+(A>C);c=(C>B)+(B>A);\n\t if((a-b)*(A-B)<0&&(c-b)*(C-B)<0&&(a-c)*(A-C)<0)//???????????\n\t\t\t {sort(A,B,C);break;}//???sort??????\n\t}\n\n\treturn 0;\n}\n\nvoid sort(int x,int y,int z)//??????\n{\n\tchar M,X,Y,Z;\n\tX='A';Y='B';Z='C';\n\tif(y>x){M=Y;Y=X;X=M;}\n\tif(z>y)\n\t{if(z>x){M=Z;Z=Y;Y=X;X=M;}\n\t else {M=Z;Z=Y;Y=M;}\n\t}\n\tcout<a)+(c==a)+a==2)&&((a>b)+(a>c)+b==2)&&((c>b)+(b>a)+c==2))\nfor(i=0;i<3;i++)\n{if(a==i) cout<<\"A\";\nelse\nif(b==i) cout<<\"B\";\nelse\nif(c==i) cout<<\"C\";else;\n}\n}\nreturn 0;\n}"} +{"label": "101", "index": "50356", "code": "int main()\n{\n\tint A,B,C;\n\tchar quantity[4];\n\tint As,Bs,Cs;\n\tfor(A=1;A<=3;A++)\n\t{\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\tAs=(B>A)+(C==A);\n\t\t\t Bs=(A>B)+(A>C);\n\t\t\t\tCs=(C>B)+(B>A);\n\t\t\t\tif(!(A<=B&&As<=Bs||A<=C&&As<=Cs||B<=A&&Bs<=As||B<=C&&Bs<=Cs||C<=A&&Cs<=As||C<=B&&Cs<=Bs))//?????????????????????????????\n\t\t\t\t{\n\t\t\t\t\tquantity[A]='A';\n\t\t\t\t quantity[B]='B';\n\t\t\t\t\tquantity[C]='C';\n\t\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t\t\tcout<i)+(h==i));\n\t\t\t\tb = ((i>j)+(i>h));\n\t\t\t\tc = ((h>j)+(j>i));\n\t\t\t\tif (a != b && b != c && c != a )\n\t\t\t\t{\n\t\t\t\t\tm[a] = 'A';\n\t\t\t\t\tm[b] = 'B';\n\t\t\t\t\tm[c] = 'C';\n\t\t\t\t\tif (a + i == 3 && b + j == 3 && c + h == 3)\n\t\t\t\t\tcout << m[2] << m[1] << m[0];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50358", "code": "int main()\n{\n\tint a, b, c, A, B, C, D, E, F;\n\tfor(a = 1; a <= 2; a++)\n\t\tfor(b = 1; b <= 2; b++)\n\t\t\tfor(c = 1; c <= 2; c++)\n\t\t\t{\n\t\t\t\tA = b > a;\n\t\t\t\tB = c == a;\n\t\t\t\tC = a > b;\n\t\t\t\tD = a > c;\n\t\t\t\tE = c > b;\n\t\t\t\tF = b > a;\n\t\t\t\tif((A + B) * (D + C) * (E + F) == 0 && A + B + C + D + E + F == 3)\n\t\t\t\t{\n\t\t\t\t\tif(A + B == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(C + D == 0)\n\t\t\t\t\t\t\tcout << \"B\" << \"C\" << \"A\" << endl;\n\t\t\t\t\t\tif(E + F == 0)\n\t\t\t\t\t\t\tcout << \"C\" << \"B\" << \"A\" << endl;\n\t\t\t\t\t}\n\t\t\t\t\tif(D + C == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A + B == 0)\n\t\t\t\t\t\t\tcout << \"A\" << \"C\" << \"B\" << endl;\n\t\t\t\t\t\tif(E + F == 0)\n\t\t\t\t\t\t\tcout << \"C\" << \"A\" << \"B\" << endl;\n\t\t\t\t\t}\n\t\t\t\t\tif(E + F == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A + B == 0)\n\t\t\t\t\t\t\tcout << \"A\" << \"B\" << \"C\" << endl;\n\t\t\t\t\t\tif(C + D == 0)\n\t\t\t\t\t\t\tcout << \"B\" << \"A\" << \"C\" << endl;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n}\n\n\t\t\t\t\t\n"} +{"label": "101", "index": "50359", "code": "int main()\n{\n\tint a,b,c,i; //????;a,b,c????????,i?????\n\tint words[3],rank[3]; //??????,word[3]?????????????,rank[3]?a,b,c???????????\n\tchar person[3]={'A','B','C'}; //????????????'A''B''C''\n\tfor(a=0;a<=2;a++)\n\t{\n\t\tfor(b=0;b<=2;b++)\n\t\t{\n\t\t\tif(b==a)continue;\n\t c=3-a-b; //????????0,1,2?????????????????????a,b,c??\n\t\t\twords[0]=(b>a)+(c==b);\n\t\t\twords[1]=(a>b)+(a>c);\n\t\t\twords[2]=(c>b)+(b>a); //????????words[3]??\n\t\t\trank[a]=0;\n\t\t\trank[b]=1;\n\t\t\trank[c]=2; //?????????????\n\t\t\tif(words[rank[0]]>words[rank[1]]>words[rank[2]]) //??????????????0???????????2???????\n\t\t\t{\n\t\t\t\tfor(i=0;i<=2;i++)\n\t\t\t\t{\n\t\t\t\t\tcout<A)+(C==A); //??????????\n\t wb=(A>B)+(A>C);\n\t wc=(C>B)+(B>A);\n if(!(AA) a++;\n if(C==A) a++;\n if(A>B) b++;\n if(A>C) b++;\n if(C>B) c++;\n if(B>A) c++;\n if(A+a==2&&B+b==2&&C+c==2)\n {\n if(A>B&&A>C)\n {\n if(B>C) printf(\"CBA\");\n if(C>B) printf(\"BCA\");\n }\n if(B>A&&B>C)\n {\n if(A>C) printf(\"CAB\");\n if(C>A) printf(\"ACB\");\n }\n if(C>B&&C>A)\n {\n if(B>A) printf(\"ABC\");\n if(A>B) printf(\"BAC\");\n }\n }\n }\n}"} +{"label": "101", "index": "50362", "code": "int main()\n{\n\tint a, b, c, A, B, C;\n\tchar a1, a2, a3;\n\tfor (a = 1; a <= 3; a++)\n\t{\n\t\tfor (b = 1; b <= 3; b++)\n\t\t{\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\ta1 = a2 = a3 = 0;\n\t\t\t\tA = (b < a) + (c == a);\n\t\t\t\tB = (a < b) + (a < c);\n\t\t\t\tC = (c < b) + (b < a);\n\t\t\t\tif ((A > B) && (A > C) && (a > b) && (a > c))\n\t\t\t\t{\n\t\t\t\t\ta1 = 'A';\n\t\t\t\t\tif ((B > C) && (b > c))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'B';\n\t\t\t\t\t\ta3 = 'C';\n\t\t\t\t\t}\n\t\t\t\t\telse if ((C > B) && (c > b))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'C';\n\t\t\t\t\t\ta3 = 'B';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((B > A) && (B > C) && (b > a) && (b > c))\n\t\t\t\t{\n\t\t\t\t\ta1 = 'B';\n\t\t\t\t\tif (A > C)\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'A';\n\t\t\t\t\t\ta3 = 'C';\n\t\t\t\t\t}\n\t\t\t\t\telse if ((C > A) && (c > a))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'C';\n\t\t\t\t\t\ta3 = 'A';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((C > A) && (C > B) && (c > a) && (c > b))\n\t\t\t\t{\n\t\t\t\t\ta1 = 'C';\n\t\t\t\t\tif ((A > B) && (a > b))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'A';\n\t\t\t\t\t\ta3 = 'B';\n\t\t\t\t\t}\n\t\t\t\t\telse if ((B > A) && (b > a))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'B';\n\t\t\t\t\t\ta3 = 'A';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (a1 * a2 * a3 != 0)\n\t\t\t\t{\n\t\t\t\t\tcout << a1 << a2 << a3 << endl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50363", "code": "int main()//???\n{ int a[3],b[3],d[3],e[3];//??????a??????,b???????????,d????a???????,e????b???????\nchar c[3];\nc[0]='A';c[1]='B';c[2]='C';//?? c???? A B C ??\nfor (a[0]=0;a[0]<3;a[0]++)//???????\n\tfor (a[1]=0;a[1]<3;a[1]++)//????\n\t\tfor (a[2]=0;a[2]<3;a[2]++)//????\n\t\t{\n\t\t\tfor (int p=0;p<3;p++)\n\t\t\t\tb[p]=0;\n\t\t\tif (a[1]>a[0])//??B?A???\n\t\t\t\tb[0]++;\n\t\t\tif (a[0]==a[2])//??A C?????\n\t\t\t\tb[0]++;\n\t\t\tif (a[0]>a[1])//??A???B?\n\t\t\t\tb[1]++; \n\t\t\tif (a[0]>a[2])//??A???C?\n\t\t\t\tb[1]++; \n\t\t\tif (a[2]>a[1])//??C?B???\n\t\t\t\tb[2]++;\n\t\t\tif (a[1]>a[0])//??B?A???\n\t\t\t\tb[2]++;\n\t\t\tfor (int i=0;i<3;i++)\n\t\t\t{d[i]=0;\n\t\t\te[i]=0;\n\t\t\t}\n\t\t\tfor (int i=0;i<3;i++)\n\t\t\t\tfor (int j=0;j<3;j++) \n\t\t\t\t{\n\t\t\t\t\tif (a[i]>a[j])\n\t\t\t\t\t\td[i]++; \n\t\t\t\t\tif (b[i]>b[j])\n\t\t\t\t\t\te[i]++;\n\t\t\t\t} \n\t\t\t\tfor (int j=0;j<3;j++)\n\t\t\t\t{\n\t\t\t\t\tif (d[0]+e[0]==2&&d[1]+e[1]==2&&d[2]+e[2]==2&&d[j]==0)\n\t\t\t\t\t\tcout<A)+(C==A);\n\t\t\t\tBs=(A>B)+(A>C);\n\t\t\t\tCs=(C>B)+(B>A);\n\t\t\t\tif(!(A<=B&&As<=Bs||A<=C&&As<=Cs||\n\t\t\t\t\t B<=A&&Bs<=As||B<=C&&Bs<=Cs||\n\t\t\t\t\t C<=A&&Cs<=As||C<=B&&Cs<=Bs))//???????????????????????????\n\t\t\t\t{\n\t\t\t\t\tdA=A;\n\t\t\t\t\tdB=B;\n\t\t\t\t\tdC=C;\n\t\t\t\t}//??????????\n\t\t\t}\n\t\t}\n\t}\n\tif (dA>=dB&&dB>=dC)\n\t\tcout << \"CBA\" << endl;\n\tif (dA>=dC&&dC>=dB)\n\t\tcout << \"BCA\" << endl;\n\tif (dB>=dA&&dA>=dC)\n\t\tcout << \"CAB\" << endl;\n\tif (dB>=dC&&dC>=dA)\n\t\tcout << \"ACB\" << endl;\n\tif (dC>=dA&&dA>=dB)\n\t\tcout << \"BAC\" << endl;\n\tif (dC>=dB&&dB>=dA)\n\t\tcout << \"ABC\" << endl;//??A,B,C????????????ABC\n\treturn 0;\n}\n"} +{"label": "101", "index": "50365", "code": "/*\n * 36.cpp\n * ???\n * Created on: 2012-9-27\n * Author: Salforever\n */\n\n\n\nint main()\n{\n\tint suma,sumb,sumc,a,b,c,i;\n\tfor (a=1;a<=3;a++)\n\t\tfor (b=1;b<=3;b++)\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t\tif ((a!=b)&&(a!=c)&&(b!=c))\n\t\t\t\t{\n\t\t\t\t\tsuma=(b>=a)+(c==a);\n\t\t\t\t\tsumb=(a>=b)+(a>=c);\n\t\t\t\t\tsumc=(c>=b)+(b>=a);\n\t\t\t\t\tif ((suma+a==3)&&(sumb+b==3)&&(sumc+c==3))\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (i=1;i<=3;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (a==i) cout << \"A\";\n\t\t\t\t\t\t\tif (b==i) cout << \"B\";\n\t\t\t\t\t\t\tif (c==i) cout << \"C\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcout << endl;\n\t\t\t\t\t}\n\t\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50366", "code": "/*\n* ???????.cpp\n* ??????\n* ?????2012.10.30\n* ????3???????\n*/\nint main()\n{\n\tint A,B,C;\n\tchar rank[4];\n\tint a,b,c,i;\n\tfor (A=1;A<=3;A++)\n\t{\n\t\tfor (B=1;B<=3;B++)\n\t\t{\n\t\t\tif (A==B)continue;\n\t\t\tC=6-A-B;\n\t\t\ta=(B=1;i--)\n\t\t\t\t\tcout<b[0])+(b[2]==b[0]);\n c[1]=(b[0]>b[1])+(b[0]>b[2]); \n c[2]=(b[2]>b[1])+(b[1]>b[0]); \n if( (c[i]==2)&&(c[(i+1)%3]==1)&&(c[(i+2)%3]==0))\n cout<b[0])+(b[2]==b[0]);\n c[1]=(b[0]>b[1])+(b[0]>b[2]); \n c[2]=(b[2]>b[1])+(b[1]>b[0]); \n if( (c[i]==2)&&(c[(i+1)%3]==1)&&(c[(i+2)%3]==0))\n cout<A1)+(C1==A1);\n\t\t\t\tb=(A1>B1)+(A1>C1);\n\t\t\t\tc=(C1>B1)+(B1>A1);\n\t\t\t\tif(((A1>B1&&ab))+((A1>C1&&ac))+((B1c)||(B1>C1&&b a[j+1])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp=a[j];\n\t\t\t\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\t\t\t\ta[j+1] =temp;\n\t\t\t\t\t\t\t}\n\t\t\t\t\tfor(i = 0;i < 3;i++) \n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[i] == A1) cout <<\"A\";\n\t\t\t\t\t\tif (a[i] ==B1) cout << \"B\";\n\t\t\t\t\t\tif (a[i] ==C1) cout << \"C\";\n\t\t\t\t\t}\n\t\t\t\t\tcout << endl;\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n }\n"} +{"label": "101", "index": "50369", "code": "int main()\n{\n\tint A,B,C;//????\n\tint a,b,c;\n\tchar m[4];//??????????\n\tfor(A=1;A<=3;A++)//??\n\t\tfor(B=1;B<=3;B++)\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\ta = (B>A)+(C==A);//???????\n\t\t\t\tb = (A>B)+(A>C);\n\t\t\t\tc = (C>B)+(B>A);\n\t\t\t\tif((A-B)*(a-b)<=0 && (A-C)*(a-c)<=0 && (B-C)*(b-c)<=0)//????\n\t\t\t\t\tif((A==B)+(a==b)!=1 && (A==C)+(a==c)!=1 && (B==C)+(b==c)!=1)//??????\n\t\t\t\t\t{\n\t\t\t\t\t\tm[A]='A';//??????\n\t\t\t\t\t\tm[B]='B';\n\t\t\t\t\t\tm[C]='C';\n\t\t\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t\t\t\tcout << m[i];\n\t\t\t\t\t}\n\t\t\t}\n\tcout << endl;\n\treturn 0;\n}\n"} +{"label": "101", "index": "50370", "code": "\n\nint main(){\n\n\tint a[3][2], i, j, Person2, Person1, Person0;\n//a?????????????????Personi????i???????\n\t\n\tfor(a[0][0]= 0; a[0][0]<= 2; a[0][0]++){\n\t\tfor(a[1][0]= 0; a[1][0]<= 2; a[1][0]++){\n\t\t\tfor(a[2][0]= 0; a[2][0]<= 2; a[2][0]++){\n//??????????0,1,2\n\n\t\t\t\tPerson0= 0; \n\t\t\t\tPerson1= 0;\n\t\t\t\tPerson2= 0;\n\t\t\t\t\n\t\t\t\ta[0][1]= (a[1][0]> a[0][0]) + (a[2][0]== a[0][0]);\n\t\t\t\ta[1][1]= (a[0][0]> a[1][0]) + (a[0][0]> a[2][0]);\n\t\t\t\ta[2][1]= (a[2][0]> a[1][0]) + (a[1][0]> a[0][0]);\n//??????????\n\n\n\t\t\t\tif(!((a[0][1]== a[1][1]) || (a[0][1]== a[2][1]) || (a[1][1]== a[2][1]))){\n\t\t\t\t\tfor(i= 0; i<= 2; i++){\n\t\t\t\t\t\tif(a[i][1]== 2) Person2= a[i][0];\n\t\t\t\t\t\tif(a[i][1]== 1) Person1= a[i][0];\n\t\t\t\t\t\tif(a[i][1]== 0) Person0= a[i][0];\n\t\t\t\t\t}\n\t\t\t\t}\n//?????????????????Person??????????\n\n\t\t\t\tif((Person0> Person1) && (Person1> Person2)){\n\t\t\t\t\tfor(j= 0; j<= 2; j++){\n\t\t\t\t\t\tfor(i= 0; i<= 2; i++){\n\t\t\t\t\t\t\tif(a[i][0]== j){\n\t\t\t\t\t\t\tcout<<(char)(i+ 65);\n\t\t\t\t\t\t\t}\n//????\u0093???????????\u0094???????????\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n\treturn 0;\n\t\n}\n"} +{"label": "101", "index": "50371", "code": "\nint main()\n{\n\tint a, b, c;\n\tfor (a = 1; a <= 3; a++)\n\t\tfor (b = 1; b <= 3; b++)\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t\tif (a * b * c == 6 && a + b + c == 6)\n\t\t\t\t{\n\t\t\t\t\tif(((b > a) + (c == a) == (3 - a)) &&\n\t\t\t\t\t\t((a > b) + (a > c) == (3 - b)) &&\n\t\t\t\t\t\t((c > b) + (b > a) == (3 - c)))///???????????3\n\t\t\t\t\t\tif (a < b && b < c)\n\t\t\t\t\t\t{\tcout << \"CBA\" << endl;return 0;}\n\t\t\t\t\t\tif (a < c && c < b)\n\t\t\t\t\t\t\t{cout << \"BCA\" << endl;return 0;}\n\t\t\t\t\t\tif (b < a && a < c)\n\t\t\t\t\t\t\t{cout << \"CAB\" << endl;return 0;}\n\t\t\t\t\t\tif (b < c && c < a)\n\t\t\t\t\t\t\t{cout << \"ACB\" << endl;return 0;}\n\t\t\t\t\t\tif (c < a && a < b)\n\t\t\t\t\t\t\t{cout << \"BAC\" << endl;return 0;}\n\t\t\t\t\t\tif (c < b && c < a)\n\t\t\t\t\t\t\t{cout << \"ACB\" << endl;return 0;}\n\t\t\t\t}\n}\n\t\t\t\t\t\t\n\t\n"} +{"label": "101", "index": "50372", "code": "//*****************************\n//* ????1000012865_4 *\n//* ?????? *\n//* ???2010-11-17 *\n//* ?????? *\n//*****************************\nint main()\n{\n\tint A, B, C, a, b, c;\n\tfor(A = 1; A <= 3; A++)\n\t\tfor(B = 1; B <= 3; B++)\n\t\t\tfor(C = 1; C <= 3; C++)\n\t\t\t{\n\t\t\t\ta = (B > A) + (C == A);\n\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\tif(((A > B) && (b > a) || (B > A) && (a > b)) && ((A > C) && (c > a) || ( A < C) && (c < a)) && ((B > C) && (c > b) || (C > B) && (b > c)))\n\t\t\t\t{\n\t\t\t\t\tfor(int i = 2; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a == i)\n\t\t\t\t\t\t\tcout << 'A';\n\t\t\t\t\t\tif(b == i)\n\t\t\t\t\t\t\tcout << 'B';\n\t\t\t\t\t\tif(c == i)\n\t\t\t\t\t\t\tcout << 'C';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50373", "code": "int main()\n{\n int a,b,c;\n for(a=1;a<=3;a++)\n for(b=1;b<=3;b++)\n for(c=1;c<=3;c++)\n {\n if(a!=b&&b!=c)\n {\n if((a+(c==a)+(b>a))==3&&(b+(a>b)+(a>c))==3&&(c+(c>b)+(b>a)==3))//??????????\n {\n if(a==3&&b==2&&c==1)//????????\n cout<<\"CBA\";\n else if(a==3&&b==1&&c==2)\n cout<<\"BCA\";\n else if(a==2&&b==3&&c==1)\n cout<<\"CAB\";\n else if(a==2&&b==1&&c==3)\n cout<<\"BAC\";\n else if(a==1&&b==3&&c==2)\n cout<<\"ACB\";\n else \n cout<<\"ABC\";\n break;\n }\n }\n }\n\n return 0;\n}\n \n "} +{"label": "101", "index": "50374", "code": "//********************\n//*??:???\n//*??;???\n//*2012-10-26\n//********************\nint main()\n{\n\tint a, b, c, i=0;\n\tchar f[4]=\"ABC\";\n\tfor(a=1;a<=3;a++) //?????????\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tif(b==a) continue;\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif(c==a||c==b) continue;\n\t\t\t\tif(((b=0;i--) //??????????\n\t\tcout << f[i];\n\treturn 0;\n}\n\n"} +{"label": "101", "index": "50375", "code": "int main()\n{\nint a,b,c;\nfor(a=0;a<3;a++)\n\tfor(b=0;b<3;b++)\n\t\tfor(c=0;c<3;c++)\n\t\t\tif((a!=b)&&(b!=c)&&(b!=c))\n\t\t\t\tif(((b>a)+(c==a)+a==2)&&((a>b)+(a>c)+b==2)&&((c>b)+(b>a)+c==2))\n\t\t\t\t\tif((a>c)&&(c>b))\n\t\t\t\t\t\tcout<<\"BCA\";\nreturn 0;\n}"} +{"label": "101", "index": "50376", "code": "/*\n *????pro8.cpp\n *??????\n *?????2012-10-07\n *??????\n */\n\n\n\nvoid work(int a,int b,int c)\n{\n int x=2-a,y=2-b,z=2-c;\n char ans[3];\n ans[a]='A';ans[b]='B';ans[c]='C';\n if ((b>a)+(c==a)==x && (a>b)+(a>c)==y && (c>b)+(b>a)==z) // ????????\n cout << ans[0] << ans[1] << ans[2] << endl; // ??\n}\n\nint main()\n{\n int a,b,c;\n for (a=0;a<3;a++) // ????\n for (b=0;b<3;b++)\n for (c=0;c<3;c++)\n work(a,b,c);\n return 0;\n}"} +{"label": "101", "index": "50377", "code": "\n\nint main()\n{\n\tint a, b, c;\n\tfor (a = 1; a <= 3; a++)\n\t\tfor (b = 1; b <= 3; b++)\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t\tif ((c != b)&&(c != a)&&(b != a))\n\t\t\t\t\tif (((a < b) + (c == a) == 3 - a)\n\t\t\t\t\t\t&&((a > b) + (a > c) == 3 - b)\n\t\t\t\t\t\t&&((c > b) + (b > a) == 3 - c));\n\t\t\t\t\t\tif (a > b) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (b > c)\n\t\t\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\t\t\telse if (c > a) \n\t\t\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tcout << \"ACB\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (a > c)\n\t\t\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t\t\t\telse if (c > b)\n\t\t\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\t\t}\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "101", "index": "50378", "code": "int main()\n{\n int A,B,C,x,y,z;\n for(A=0;A<=2;A++)\n\t for(B=0;B<=2;B++)\n\t\tfor(C=0;C<=2;C++)\n\t\t{x=(AB)+(A>C);\n\t z=(C>B)+(B>A);\n\t if((x>y&&y>z)&&(Az&&z>y)&&(Ax&&x>z)&&(Bz&&z>x)&&(Bx&&x>y)&&(Cy&&y>x)&&(Ci)+(k==i); //????a,b,c????? \n b=(i>j)+(i>k);\n c=(k>j)+(j>i); \n if((i>j&&j>k&&ak&&k>j&&ai&&i>k&&bk&&k>i&&bi&&i>j&&cj&&j>i&&c A) + (A == C);\n\t\t\t\tBT = (A > B) + (A > C);\n\t\t\t\tCT = (C > B) + (B > A);\t//\t??????????\n\t\t\t\tif ((AT <= BT) && (A <= B) || (BT <= CT) && (B <= C) || (CT <= AT) && (C <= A) ||\n\t\t\t\t\t(AT >= BT) && (A >= B) || (BT >= CT) && (B >= C) || (CT >= AT) && (C >= A))\t\n\t\t\t\t\tcontinue;\t//\t?????????????\n\t\t\t\ta = AT;\n\t\t\t\tb = BT;\n\t\t\t\tc = CT;\t//\t????a,b,c???\n\t\t\n\t\t\t}\n\t\t}\n\t}\n\tif (a <= b && b <= c)\n\t\tcout << \"CBA\" << endl;\n\telse if (a >= b && b >= c)\n\t\tcout << \"ABC\" << endl;\n\telse if (a <= b && c <= a)\n\t\tcout << \"BAC\" << endl;\n\telse if (a >= b && c >= a)\n\t\tcout << \"CAB\" << endl;\n\telse if (b >= c && c >= a)\n\t\tcout << \"BCA\" << endl;\n\telse \n\t\tcout << \"ACB\" << endl;\t//\t????????\n\n\treturn 0;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n"} +{"label": "101", "index": "50381", "code": "int main()\n{\n\tint A,B,C;\n\tchar rank[4];\n\trank[0]=rank[1]=rank[2]=rank[3]='0';\n\tfor(A=1;A<=3;A++)\n\t{\n\t\t for(B=1;B<=3;B++)\n\t\t{ \n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\tif(((AB)+(A>C)==(B-1))&&((C>B)+(B>A))==(C-1))\n\t\t\t\t{\n\t\t\t\t\n\t\t \n\t\t\t\t\trank[B]='B';\n\t\t\t\t\trank[C]='C';\n\t\t\t\t\tcout<a)+(c==a);\n\t\t\tccb=(a>b)+(a>c);\n\t\t\tccc=(c>b)+(b>a);\n\t\t\tif(((a+cca)==3)&&((b+ccb)==3)&&((ccc+c)==3))\n\t\t\t\tbreak;//???????????????,????\n\t\t}\n\t\tif(a>b&&b>c)\n\t\t\tcout<<\"CBA\"<c&&c>b)\n\t\t\tcout<<\"BCA\"<a&&a>c)\n\t\t\tcout<<\"ACB\"<c&&c>a)\n\t\t\tcout<<\"ACB\"<b&&b>a)\n\t\t\tcout<<\"ABC\"<a&&a>b)\n\t\t\tcout<<\"BAC\"<A)+(C==A);\n bs=(A>B)+(A>C);\n cs=(C>B)+(B>A);\n if (!((A>=B)&&(as>=bs)||(A>=C)&&(as>=cs)\n ||(B>=C)&&(bs>=cs)||(B>=A)&&(bs>=as)\n ||(C>=A)&&(cs>=as)||(C>=B)&&(cs>=bs)))\n { \n s[A-1] = 'A';s[C-1] = 'C';s[B-1] = 'B';\n\n for(i=0;i<3;i++)printf(\"%c\",s[i]);\n\n } //????\n } //????\n\n\n}"} +{"label": "101", "index": "50384", "code": "int main()\n{\n int a,b,c,a0,b0,c0,x=0; //??a?b?c???A?B?C???a0?b0?c0?????????? \n for(a=0;a<=2;a++) //????a?b?c \n {\n for(b=0;b<=2;b++)\n {\n if(b==a)continue; //??b=a??? \n c=3-a-b; //???????c??0?1?2????? \n a0=(b>a)+(c==a);\n b0=(a>b)+(a>c);\n c0=(c>b)+(b>a);\n if((a==(2-a0))&&(b==2-b0)&&(c==2-c0)) //????? \n {\n x=1; //x??????????????x=1?????? \n break;\n }\n }\n if(x==1)break;\n }\n char ch[3];\n ch[a]='A',ch[b]='B',ch[c]='C'; //??a?b?c????????????? \n cout<AFAN)\n {\n A=A-1;\n C=C-1;//AC????????\n }\n else B=B-1;\n if(AFAN>CFAN)\n B=B-1;\n if(CFAN>BFAN)\n C=C-1;//???????\n if(A>B&&B>C) cout<<\"CBA\"<C&&C>B) cout<<\"BCA\"<A&&A>C) cout<<\"CAB\"<A&&A>B) cout<<\"BAC\"<C&&C>A) cout<<\"ACB\"<B&&B>A) cout<<\"ABC\"<a)+(c==a)==2)&&(b+(a>b)+(a>c)==2)&&(c+(c>b)+(b>a)==2))\n \tfor (i=0;i<=2;i++)\n \t {if (a==i) cout<<'A';\n \t if (b==i) cout<<'B';\n \t if (c==i) cout<<'C';}\n }\n\n\n\n return 0;\n}"} +{"label": "101", "index": "50387", "code": "//Patricia.Xiao\n//??\nint main()\n{\n\tint a,b,c,A,B,C,aw,bw,cw; //????????????????????????\n\tint i,j,t; //???????????\n\tchar m[3]={'A','B','C'},p; //????????????\n\tint n[3]; //????????\n\tfor(a=1;a<=3;a++) //????\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\taw=((b>a)+(c==a)); //????????\n\t\t\t\tbw=((a>b)+(a>c));\n\t\t\t\tcw=((c>b)+(b>a));\n\t\t\t\tif(((a>b)&&(awa)&&(bwb)&&(cwc)&&(bwc)&&(awa)&&(cw0;i--) //???????????\n\t{\n\t\tfor(j=0;jn[j+1])\n\t\t\t{\n\t\t\t\tt=n[j];p=m[j];\n\t\t\t\tn[j]=n[j+1];m[j]=m[j+1];\n\t\t\t\tn[j+1]=t;m[j+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%c%c%c\",m[0],m[1],m[2]); //?????\n\treturn 0;\n}"} +{"label": "101", "index": "50388", "code": "int main ()\n{\n\tint A, B, C, k;\n\tint ans, bns, cns;\n\tk =0;\n\tfor( A =1; A < 4; A ++ )\n\t{\n\t\tfor( B = 1; B < 4; B ++)\n\t\t{\n\t\t\tfor( C = 1; C < 4; C ++ )\n\t\t\t{\n\t\t\t\tans = (B > A) + ( C == A);\n\t\t\t\tbns = (A > B) + ( A > C );\n\t\t\t\tcns = (C > B) + ( B > A );\n\t\t\t\t\t\n\t\t\t\tif((A >= B && ans >= bns) || (A >= C && ans >= cns)\n\t\t\t\t\t||( B >= C && bns >= cns )|| (A <= B && ans <= bns) || (A <= C && ans <= cns)||( B <= C && bns <= cns ))\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tk = 1;\n\t\t\t\tif( A <= B && B <= C)\n\t\t\t\t\tcout << \"ABC\" << endl;\n\t\t\t\telse if( A <= C && C <= B)\n\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\telse if(B <=A && A <= C)\n\t\t\t\t\tcout << \"BAC\" < 2 > 1 \n for(a = 1; a <= 3; a++)\n {\n for(b = 1; b <= 3; b++)\n {\n for(c = 1; c <= 3; c++)\n {\n if((a + (b > a) + (c == a) == 3) && (b + (a > b) + (c < a) == 3) && (c + (c > b) + (a < b) == 3))\n {\n m[0] = a;\n m[1] = b;\n m[2] = c;\n }\n }\n }\n }\n //???????????????A?B?C \n if(m[0] > m[1] && m[1] > m[2])\n {\n cout << \"CBA\";\n return 0;\n }\n if(m[0] < m[1] && m[1] < m[2])\n {\n cout << \"ABC\";\n return 0;\n }\n if(m[0] > m[2] && m[2] > m[1])\n {\n cout << \"BCA\";\n return 0;\n }\n if(m[0] > m[1] && m[0] < m[2])\n {\n cout << \"BAC\";\n return 0;\n }\n if(m[0] < m[1] && m[1] > m[2])\n {\n cout << \"CAB\";\n return 0;\n }\n if(m[0] > m[1] && m[1] > m[2])\n {\n cout << \"CBA\";\n return 0;\n }\n}"} +{"label": "101", "index": "50390", "code": "//???\nint main()\n{\n\tint a,b,c;\n\tfor (a=1;a<=3;a++)//????\n\t{\n\t\tfor (b=1;b<=3;b++)\n\t\t{\n\t\t\tif (b==a)\n\t\t\t\tcontinue;\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif (c==a||c==b)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (a==1)\n\t\t\t\t\tif (b<=a||c!=a)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (a==2)\n\t\t\t\t\tif ((b>a&&c==a)||(b<=a&&c!=a))\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (a==3)\n\t\t\t\t\tif (b>a||c==a)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (b==1)\n\t\t\t\t\tif (a<=b||a<=c)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (b==2)\n\t\t\t\t\tif ((a<=b&&a<=c)||(a>b&&a>c))\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (b==3)\n\t\t\t\t\tif (a>b||a>c)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (c==1)\n\t\t\t\t\tif (c<=b||c<=a)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (c==2)\n\t\t\t\t\tif ((c<=b&&c<=a)||c>b&&c>a)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (c==3)\n\t\t\t\t\tif (c>b||c>a)\n\t\t\t\t\t\tcontinue;\n\t\t\t\tif (a==1&&b==2&&c==3)//????????\n\t\t\t\t\tcout<<\"ABC\"<c));\n\t\t\t\tc1=((c>b)+(b>a));\n\t\t\t\tif(a>b&&b>c&&c1>b1&&b1>a1)cout<<\"C\"<<\"B\"<<\"A\"<c&&c>b&&b1>c1&&c1>a1)cout<<\"B\"<<\"C\"<<\"A\"<a&&a>c&&c1>a1&&a1>b1)cout<<\"C\"<<\"A\"<<\"B\"<c&&c>a&&a1>c1&&c1>b1)cout<<\"A\"<<\"C\"<<\"B\"<a&&a>b&&b1>a1&&a1>c1)cout<<\"B\"<<\"A\"<<\"C\"<b&&b>a&&a1>b1&&b1>c1)cout<<\"A\"<<\"B\"<<\"C\"<A)+(C==A));\n\t\t\t\tj=((A>B)+(A>C));\n\t\t\t\tk=((C>B)+(B>A));\n\t\t\t\tif(A+i==3&&B+j==3&&C+k==3)\n\t\t\t\t{\n\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(A==i)\n\t\t\t\t\t\t\tcout<<\"A\";\n\t\t\t\t\t\tif(B==i)\n\t\t\t\t\t\t\tcout<<\"B\";\n\t\t\t\t\t\tif(C==i)\n\t\t\t\t\t\t\tcout<<\"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50393", "code": "/*\n * bifanliang.cpp\n *\n * Created on: 2012-10-26\n * Author: 99006\n */\n\nint main (){\n\tint a,b,c;\n\tint ia(int,int,int);\n\tint ib(int,int,int);\n\tint ic(int,int,int);\n\tvoid out(int,int,int);\n\tfor (a=0;a<=2;a++)\n\t\tfor (b=0;b<=2;b++){\n\t\t\tif (a==b) continue;\n\t\t\tc=3-a-b;\n\t\t\tif (a+ia(a,b,c)==2&&b+ib(a,b,c)==2&&c+ic(a,b,c)==2)\n\t\t\t\tout(a,b,c);\n\n\t\t}\n\treturn 0;\n}\nint ia (int a,int b,int c){\n\tint i=0;\n\tif (b>a) i++;\n\tif (c==a) i++;\n\treturn i;\n}\nint ib (int a,int b,int c){\n\tint i=0;\n\tif (a>b) i++;\n\tif (a>c) i++;\n\treturn i;\n}\nint ic (int a,int b,int c){\n\tint i=0;\n\tif (c>b) i++;\n\tif (b>a) i++;\n\treturn i;\n}\nvoid out (int a,int b,int c){\n\tfor (int i=0;i<=2;i++){\n\t\tif (a==i) cout<<\"A\";\n\t\telse if (b==i) cout<<\"B\";\n\t\t\t else cout<<\"C\";\n\t}\n}"} +{"label": "101", "index": "50394", "code": "int main()\n{\n\tint a,b,c,num1,num2,num3,i; char h[3];\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t\tif(a!=b)\n\t\t\t\tfor(c=1;c<=3;c++)\n\t\t\t\t\tif(c!=a&&c!=b)\n\t\t\t\t\t{\n\t\t\t\t\t\tnum1=(b>a)+(c==a);//??????????\n\t\t\t\t\t\tnum2=(a>b)+(a>c);\n\t\t\t\t\t\tnum3=(c>b)+(b>a);\n\t\t\t\t\t\tif((num1-num2)*(b-a)>0&&(num1-num3)*(c-a)>0&&(num2-num3)*(c-b)>0)//???????????\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\th[num1]='A'; h[num2]='B';h[num3]='C';//???????????\n\t\t\t\t\t\t\tfor(i=2;i>=0;i--)\n\t\t\t\t\t\t\t\tcout<a)+(c==a);\n\t\t\t\tbw=(a>b)+(a>c);\n\t\t\t\tcw=(c>b)+(b>a);//?????\n\t\t\t\tif\n\t\t\t\t\t(!(a<=b&&aw<=bw||a<=c&&aw<=cw||\n\t\t\t\t\tb<=a&&bw<=aw||b<=c&&bw<=cw||\n\t\t\t\t\tc<=a&&cw<=aw||c<=b&&cw<=bw))//????????????????????\n\t\t\t\t{\n\t\t\t\t\ta1=a;\n\t\t\t\t\tb1=b;\n\t\t\t\t\tc1=c;//????\n\t\t\t\t\t//cout< A) + (A == C);\n\t\t\t\tBs = (A > B) + (A > C);\n\t\t\t\tCs = (C > B) + (B > A);\n\t\t\t\tif ((A + As == 2) && (B + Bs == 2) && (C + Cs == 2)) {\n\t\t\t\t\tif ((A < B) && (B < C))\n\t\t\t\t\t\tcout << \"ABC\" << endl;\n\t\t\t\t\telse if ((A < C) && (C < B))\n\t\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\telse if ((B < A) && (A < C))\n\t\t\t\t\t\tcout << \"BAC\" << endl;\n\t\t\t\t\telse if ((B < C) && (C < A))\n\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\telse if ((C < B) && (B < A))\n\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\telse if ((C < A) && (A < B))\n\t\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50397", "code": "\n//============================================================================\n// Name : 1.cpp\n// Author : \n// Version :\n// Copyright : Your copyright notice\n// Description : Hello World in C++\n//============================================================================\n\n\nint main()\n{\n int a=0,b=0,c=0,i=0,p=0,q=0;\n for(i=1;i<=3;i=i+1)\n \t{\n \t a=a+1;\n \t for(p=1;p<=3;p=p+1)\n \t {\n \t\t b=b+1;\n \t\t for(q=1;q<=3;q=q+1)\n \t\t {\n \t\t\t c=c+1;\n \t\t\t if(((b>a)+(c==a)+(a>b)+(a>c)+(c>b)+(b>a))==3)\n \t\t\t {\n \t\t\t\t if((a>b)&&(b>c))\n \t\t\t\t {\n \t\t\t\t\t cout<<\"ABC\"<c)&&(c>b))\n \t\t\t\t {\n \t\t\t\t\t cout<<\"ACB\"<c)&&(c>a))\n \t\t\t\t {\n \t\t\t\t\t cout<<\"BCA\"<a)&&(a>c))\n \t\t\t\t {\n \t\t\t\t\t cout<<\"BAC\"<b)&&(b>a))\n \t\t\t\t {\n \t\t\t\t\t cout<<\"BCA\";\n \t\t\t\t\t return 0;\n\n \t\t\t\t }\n \t\t\t\t else if((c>a)&&(a>b))\n \t\t\t\t {\n \t\t\t\t\t cout<<\"CAB\";\n \t\t\t\t\t return 0;\n \t\t\t\t }\n\n \t\t\t }\n \t\t }\n \t }\n\n \t}\n return 0;\n\n}\n"} +{"label": "101", "index": "50398", "code": "int main()\n{\n\tint a,b,c,a1,b1,c1,a2,b2,c2,sum1,sum2,sum3,find;\n\tfor(a=0;a<=2;a++)\n\t{if(find==1)\n\t\t\t{break;}\n\t\tfor(b=0;b<=2;b++)\n\t\t{if(find==1)\n\t\t\t{break;}\n\t\t\tfor(c=0;c<=2;c++)\n\t\t\t{\n\t\t\t\t\n a1=b>a;\n\t\t\t\ta2=a==c;\n\t\t\t\tb1=a>b;\n\t\t\t\tb2=a>c;\n\t\t\t\tc1=c>b;\n\t\t\t\tc2=b>a;\n sum1=a1+a2;\n\t\t\t sum2=b1+b2;\n\t\t\t sum3=c1+c2;\n\t\t\t \n\t\t\t\t if(a>=b&&a>=c&&b>=c&&sum1<=sum2&&sum1<=sum3&&sum2<=sum3)\n\t\t\t\t {\n\t\t\t\t\t cout<<\"ABC\",find=1;break;\n\t\t\t\t }\n\t\t\t\t else if(a>=c&&a>=b&&c>=b&&sum1<=sum3&&sum1<=sum2&&sum3<=sum2)\n\t\t\t\t {\n\t\t\t\t\t cout<<\"ACB\",find=1;break;\n }\n\t\t\t\t else if(b>=c&&b>=a&&a>=c&&sum2<=sum3&&sum2<=sum1&&sum1<=sum3)\n\t\t\t\t {\n\t\t\t\t\t cout<<\"BAC\",find=1;break;\n }\n\t\t\t\t else if(b>=c&&b>=a&&c>=a&&sum2<=sum3&&sum2<=sum1&&sum3<=sum1)\n\t\t\t\t {\n\t\t\t\t\t cout<<\"BCA\",find=1;break;\n }\n\t\t\t\t else if(c>=a&&c>=b&&a>=b&&sum3<=sum1&&sum3<=sum2&&sum1<=sum2)\n\t\t\t\t {\n\t\t\t\t\t cout<<\"CAB\",find=1;break;\n }\n\t\t\t\t else if(c>=a&&c>b&&b>=a&&sum3<=sum1&&sum3a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((oa)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((oa)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((oa)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o==p)&&(pa)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o==q)&&(p>q))\n\t{\n\t\tcout << \"ACB\" << endl;\n\t\treturn 0;\n\t}\n\ta=3; b=3; c=3;\n\to=(b>a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o==p)&&(p==q))\n\t{\n\t\tcout << \"ABC\" << endl;\n\t\treturn 0;\n\t}\n\ta=2; b=3; c=1;\n\to=(b>a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o>p)&&(oa)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o>=q)&&(p<=q))\n\t{\n\t\tcout << \"BCA\" << endl;\n\t\treturn 0;\n\t}\n\ta=1; b=2; c=1;\n\to=(b>a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o==q)&&(pa)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o>p)&&(p==q))\n\t{\n\t\tcout << \"BCA\" << endl;\n\t\treturn 0;\n\t}\n\ta=2; b=1; c=3;\n\to=(b>a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((oq))\n\t{\n\t\tcout << \"CAB\" << endl;\n\t\treturn 0;\n\t}\n\ta=1; b=2; c=3;\n\to=(b>a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o>p)&&(p>q))\n\t{\n\t\tcout << \"CBA\" << endl;\n\t\treturn 0;\n\t}\n\ta=2; b=2; c=3;\n\to=(b>a)+(a==c);\n\tp=(a>b)+(a>c);\n\tq=(c>b)+(b>a);\n\tif ((o==p)&&(p>q))\n\t{\n\t\tcout << \"CAB\" << endl;\n\t\treturn 0;\n\t}\n}"} +{"label": "101", "index": "50400", "code": "//???\n\n\nint main()\n{\n int a, b, c, righta, rightb, rightc;\n char fir , sec , thi;\n for(a = 1 ; a <= 3 ; a++)\n {\n for(b = 1 ; b <= 3 ; b++)\n {\n for(c = 1 ; c <= 3 ; c++)\n {\n righta = (b < a) + (c == a);\n rightb = (a < b) + (a < c);\n rightc = (c < b) + (b < a);\n if(((a < b && righta < rightb) || (a == b && righta == rightb) || (a > b && righta > rightb))\n && ((c < b && rightc < rightb) || (c == b && rightc == rightb) || (c > b && rightc > rightb))\n && ((a < c && righta < rightc) || (a == c && righta == rightc) || (a > c && righta > rightc)))\n {\n if (a == 1)\n fir = 'A';\n if (b == 1)\n fir = 'B';\n if (c == 1)\n fir = 'C';\n if (a == 2)\n sec = 'A';\n if (b == 2)\n sec = 'B';\n if (c == 2)\n sec = 'C';\n if (a == 3)\n thi = 'A';\n if (b == 3)\n thi = 'B';\n if (c == 3)\n thi = 'C';\n cout<B&&B>C&&(B>A||A==C)==0&&C>B&&B>A==1&&((A>B&&A>C)+(A>B||A>C))==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\"<C&&C>B&&(B>A||A==C)==0&&(A>B&&A>C)==1&&((C>B&&B>A)+(C>B||B>A))==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"B\"<<\"C\"<<\"A\"<A&&A>C&&(B>A||A==C)==0&&(C>B&&B>A)==1&&((B>A&&A==C)+(B>A||A==C))==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"C\"<<\"A\"<<\"B\"<C&&C>A&&(B>A||A==C)==0&&(B>A&&A==C)==1&&((C>B&&B>A)+(C>B||B>A))==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"A\"<<\"C\"<<\"B\"<A&&A>B&&(C>B||B>A)==0&&(A>B&&A>C)==1&&((B>A&&A==C)+(B>A||A==C))==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"B\"<<\"A\"<<\"C\"<B&&B>A&&(C>B||B>A)==0&&(B>A&&A==C)==1&&((A>B&&A>C)+(A>B||A>C))==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout<<\"A\"<<\"B\"<<\"C\"<A)+(C==A);//????????\n\t\t\t\twords[1]=(A>B)+(A>C);\n\t\t\t\twords[2]=(C>B)+(B>A);\n\t\t\t\trank[A]=0;\n\t\t\t\trank[B]=1;\n\t\t\t\trank[C]=2;\n\t\t\t\tif((A+words[rank[A]])==2&&(B+words[rank[B]])==2&&(C+words[rank[C]])==2)//????????\n\t\t\t\t\tfor(i=0;i<=2;i++)//??\n\t\t\t\t\t\tcout<<(char)(rank[i]+65);//???????\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;//??0\n}\n\t\t\t\t\t\n"} +{"label": "101", "index": "50403", "code": "//**********************\n//********???********\n//*??:?? 1100012915*\n//******??:10.12******\n//**********************\nint main()\n{\n\tint a,b,c,at,bt,ct,shunxu1,shunxu2;//a?b?c?A?B?C???\n\tfor (a = 1 ; a <= 3 ; a ++)//????...\n\t{\n\t\tfor (b = 1 ; b <= 3 ; b ++)\n\t\t{\n\t\t\tif (b != a)\n\t\t\t{\n\t\t\t\tfor (c = 1 ; c <= 3 ; c++)\n\t\t\t\t{\n\t\t\t\t\tif (c != a && c != b)\n\t\t\t\t\t{\n\t\t\t\t\t\tat = (b > a)+(c == a);//at,bt,ct?A?B?C?????\n\t\t\t\t\t\tbt = (a > b)+(a > c);\n\t\t\t\t\t\tct = (c > b)+(b > a);\n\t\t\t\t\t\tshunxu1 = a * 100 + b * 10 + c;//???????????????????????????\n\t\t\t\t\t\tshunxu2 = at *100 + bt * 10 + ct;\n\t\t\t\t\t\tif (shunxu1 + shunxu2 == 333)//???????????\n\t\t\t\t\t\t\tswitch(shunxu1)//switch?if????...\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase 123 :cout << \"ABC\";break;//123??A???1?B?2?C?3???????????ABC\n\t\t\t\t\t\t\tcase 132 :cout << \"ACB\";break;\n\t\t\t\t\t\t\tcase 213 :cout << \"BAC\";break;\n\t\t\t\t\t\t\tcase 231 :cout << \"CAB\";break;\n\t\t\t\t\t\t\tcase 312 :cout << \"BCA\";break;\n\t\t\t\t\t\t\tdefault :cout << \"CBA\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50404", "code": "//============================================================================\n// Name : shj.cpp\n// Author : ???\n// Time : 2013.12.07\n// Description : ???\n//============================================================================\nint main(){\n\tint a=0,b=0,c=0;\n\tint x=0,y=0,z=0;\n\tfor(a=0;a<3;a++)\n\t\tfor(b=0;b<3;b++)\n\t\t\tfor(c=0;c<3;c++){\n\t\t\t\tif(a==b||a==c||b==c)continue;\n\t\t\t\telse{\n\t\t\t\t x=(b>a)+(c>a);//a???????\n\t\t\t\t y=(a>b)+(a>c);//b???????\n\t\t\t\t z=(c>b)+(b>a);//c???????\n\t\t\t\t if(b>a&&a>c&&z>x&&x>y)\n\t\t\t\t \t cout<<\"B\"<<\"A\"<<\"C\"<c&&c>a&&x>z&&z>y)\n\t\t\t\t \t cout<<\"B\"<<\"C\"<<\"A\"<b&&b>a&&x>y&&y>z)\n\t\t\t\t \t cout<<\"C\"<<\"B\"<<\"A\"<a&&a>b&&y>x&&x>z)\n\t\t\t\t \t cout<<\"C\"<<\"A\"<<\"B\"<a)+(c==a);\n b1 = (a>b)+(a>c);\n c1 = (c>b)+(b>a);\n if((a+a1)==(b+b1)&&(a+a1)==(c+c1))\n {\n for(i=1;i<=3;i++){\n if(a==i)\n printf(\"A\");\n if(b==i)\n printf(\"B\");\n if(c==i)\n printf(\"C\");}\n\n\n\n }\n }\n\n }\n }\n return 0;\n}"} +{"label": "101", "index": "50406", "code": "int main()\n{\n int a,b,c; //??A`B`C????a`b`c,???0-2\n char S[3]; //??????S???\n for (a=0;a<3;a++) //????a`b`c??\n {\n for (b=0;b<3;b++)\n {\n for (c=0;c<3;c++)\n { \n int x=2,y=2,z=2; //??????A`B`C?????\n if (b>a) //???????,???????,???????????1\n {\n x=x-1;\n z=z-1;\n }\n if (a==c)\n x=x-1;\n if (bc)\n y=y-1;\n if (c>b)\n z=z-1; \n if (a==x&&b==y&&c==z) //???????????????\n {\n S[a]='A'; //???????????A`B`C??S[3]\n S[b]='B';\n\t S[c]='C';\n }\n }\n } \n } \n cout<a)+(c==a)+a==3)&&((a>b)+(a>c)+b==3)&&((c>b)+(b>a)+c==3))\n\t\t\t\t\t{if((aA)+(C==A);\n\t\t\t\t\tsent[B]=(A>B)+(A>C);\n\t\t\t\t\tsent[C]=(C>B)+(B>A);\n\t\t\t\t\tfor (i=1;i<4;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (sent[i]!=(3-i))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse if (i==3) \n\t\t\t\t\t\t\tcout<a[0])+(a[0]==a[2]);\n\t\t\t\tb[1]=(a[0]>a[1])+(a[0]>a[2]);\n\t\t\t\tb[2]=(a[2]>a[1])+(a[1]>a[0]);\n\t\t\t\tflag=1;\n\t\t\t\tfor(i=0;i<2;i++)\n\t\t\t\t\tfor(j=i+1;j<3;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a[i]a[j]&&b[i]>b[j]||a[i]==a[j]&&b[i]!=b[j]||a[i]!=a[j]&&b[i]==b[j])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tflag=0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(flag==0)break;\n\t\t\t\t\t}\n\t\t\t\tif(flag)\n\t\t\t\t{\n\t\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tmin=0;\n\t\t\t\t\t\tfor(j=0;j<3;j++)\n\t\t\t\t\t\t\tif(a[min]>a[j])min=j;\n\t\t\t\t\t\tcout<<(char)(min+65);\n\t\t\t\t\t\ta[min]=32767;\n\t\t\t\t\t}\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50410", "code": "int main()\n/*3?????????????? \nA??B??????C??????? \nB??A??????A??C??? \nC????B????B?A???? \n????????????????????? \n???????????3?????*/\n{\n\tint a,b,c;\t\t//three persons\n\tint rank[4];\n\tint i,j;\n\tint ta,tb,tc;\t//true sentence everyone said\n\tfor (a=1;a<=3;a++)\n\t\tfor (b=1;b<=3;b++)\n\t\t{\n\t\t\tif (a==b) continue;\n\t\t\tfor (c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tif ( (c==a)||(c==b) )\t\tcontinue;\n\t\t\t\tta=(b>a)+(c==a);\n\t\t\t\ttb=(a>b)+(a>c);\n\t\t\t\ttc=(c>b)+(b>a);\n\t\t\t\tif ((a+ta)==3)\n\t\t\t\t\tif ((b+tb)==3)\n\t\t\t\t\t\tif ((c+tc)==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trank[1]=a;\n\t\t\t\t\t\t\trank[2]=b;\n\t\t\t\t\t\t\trank[3]=c;\n\t\t\t\t\t\t\tfor (i=1;i<=3;i++)\n\t\t\t\t\t\t\t\tfor (j=1;j<=3;j++)\n\t\t\t\t\t\t\t\tif (rank[j]==i)\t\tcout <<(char)(64+j);\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50411", "code": "\n\n\n\nint main(void)\n{\n\tint a_judge, b_judge, c_judge; //A,B,C?????????????\n\tint a, b, c; //A,B,C??????????\n\tchar pname[3] = {'A', 'B' ,'C'}; //ABC???????????\n\n\n\tfor(a = 0; a < 3; a++) //0?1?2????\n\t\tfor(b = 0; b < 3; b++)\n\t\t\tfor(c = 0; c < 3; c++)\n\t\t\t{\n\t\t\t\ta_judge = (b > a) + (c == a);\n\t\t\t\tb_judge = (a > b) + (a > c);\n\t\t\t\tc_judge = (c > b) + (b > a);\n\n\t\t\t\tif (((2 - a) == a_judge) && \n\t\t\t\t\t((2 - b) == b_judge) &&\n\t\t\t\t\t((2 - c) == c_judge)) //A,B,C????????????\n\t\t\t\t{\n\t\t\t\t\tif (a > b)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b > c)\n\t\t\t\t\t\t\tcout <<\"CBA\"<< endl;\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tif(a > c)\n\t\t\t\t\t\t\t\tcout <<\"BCA\"<< endl;\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tcout <<\"BAC\"<< endl;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (a > c)\n\t\t\t\t\t\t\tcout <<\"CAB\"<< endl;\n\t\t\t\t\t\telse \n\t\t\t\t\t\t\tif (b > c)\n\t\t\t\t\t\t\t\tcout <<\"ACB\"<< endl;\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tcout <<\"ABC\"<< endl;\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\n\t\t\treturn 0;\n}\n"} +{"label": "101", "index": "50412", "code": "\nint main(){\n\tint a, b, c;\n\tint ra, rb, rc;\n\tchar res[4];\n\n\tfor (a = 0; a < 3; a++)\n\t\tfor (b = 0; b < 3; b++){\n\t\t\tif (b == a)\tcontinue;\n\t\t\tfor (c = 0; c < 3; c++){\n\t\t\t\tif (c == a || c == b)\tcontinue;\n\t\t\t\tra = rb = rc = 0;\n\n\t\t\t\tra = (b > a) + (c == a);\n\t\t\t\trb = (a > b) + (a > c);\n\t\t\t\trc = (c > b) + (b > a);\n\n\t\t\t\tif ((a > b && ra > rb)\n\t\t\t\t\t|| (a > c && ra > rc)\n\t\t\t\t\t|| (b > c && rb > rc))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tres[a] = 'A';\n\t\t\t\tres[b] = 'B';\n\t\t\t\tres[c] = 'C';\n\t\t\t\tres[3] = '\\0';\n\t\t\t}\n\t\t}\n\tcout << res << endl;\n\treturn 0;\n}"} +{"label": "101", "index": "50413", "code": "//*****************************\n//*???\n//******************************\nint main()\n{\n\tint A,B,C;\n\tint sumA,sumB,sumC;\n\tsumA=(B>A)+(C==A);\n\tsumB=(A>B)+(A>C);\n\tsumC=(C>B)+(B>A);\n\tif(A>B&&B>C&&sumAC&&C>B&&sumAA&&A>C&&sumBC&&C>A&&sumBA&&A>B&&sumCB&&B>A&&sumCB&&B>C)\n\t\t\t\t\tcout<<\"CBA\"<C&&C>B)\n\t\t\t\t\tcout<<\"BCA\"<A&&A>C)\n\t\t\t\t\tcout<<\"CAB\"<C&&C>A)\n\t\t\t\t\tcout<<\"ACB\"<A&&A>B)\n\t\t\t\t\tcout<<\"BAC\"<B&&B>A)\n\t\t\t\t\tcout<<\"ABC\"<A)+(C==A);\n\tx[1]=(A>B)+(A>C);\n\tx[2]=(C>B)+(B>A);\n if ((x[0]>x[1])+(A>=B)==1&&(x[0]>x[2])+(A>=C)==1&&(x[1]>x[2])+(B>=C)==1)//?????????????????????????????????????????1\n\t\tfor(i=1;i<=3;i++)//?????????\n\t\t{\tif(A==i) cout<<\"A\";\n\t\t\tif(B==i) cout<<\"B\";\n\t\t\tif(C==i) cout<<\"C\";}\n\t}\n\t}\n\t}\n\treturn 0;\n} "} +{"label": "101", "index": "50416", "code": "/*\n * homework9.cpp\n *\n * Created on: 2012-10-11\n * Author: wangyinzhi\n */\n\nint main(){\n\tint a,b,c,A,B,C;\n\n\tfor (a=1;a<=3;a++){\n\t\tfor (b=1;b<=3;b++){\n\t\t\tfor (c=1;c<=3;c++){\n\t\t\t\t A=((b>a)+(a==c));\n\t\t\t\t\tB=((a>b)+(a>c));\n\t\t\t\t\tC=((c>b)+(b>a));//????ABC??????\n\t\t\t\tif ((A>B>C)&&(c>b)&&(b>a)){\n\t\t\t\t\tcout<<\"A\"<<\"B\"<<\"C\";\n\t\t\t\tbreak;}\n\t\t\t\tif ((A>C>B)&&(bA>C)&&(bC>A)&&(bB>A)&&(cA>B)&&(cA)+(C==A));\n b=((A>B)+(A>C));\n c=((C>B)+(B>A));\n if(((A>B&&ab))\n +((A>C&&ac))\n +((Bc)||(B>C&&bC)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"C\"<<\"A\"<<\"B\";\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tif (BC)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"C\"<<\"B\"<<\"A\";\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tif (AA)+(C==A);\n\t\t\tnum[2]=(A>B)+(A>C);\n\t\t\tnum[3]=(C>B)+(B>A);\t\t //???????????????\n\t\t\trank[A]=A;\n\t\t\trank[B]=B;\n\t\t\trank[C]=C;\t\t\t //????\n\t\t\tname[A]='A';\n\t\t\tname[B]='B';\n\t\t\tname[C]='C';\t\t\t //????\n\t\t\tif(num[1]+rank[A]==3\n\t\t\t\t&&num[2]+rank[B]==3\n\t\t\t\t&&num[3]+rank[C]==3)\t //??????????????\n\t\t\t\tfor(i=1;i<=3;i++){\n\t\t\t\t\tcout<A)+(A==C);//A??????? \n shumu[2]=(A>B)+(A>C);//B??????? \n shumu[3]=(C>B)+(B>A);//C??????? \n if((shumu[1]+A)==(shumu[2]+B) && (shumu[2]+B)==(shumu[3]+C))//????????????????????????? \n {\n pai[A]='A';\n pai[B]='B';\n pai[C]='C';\n }\n }\n }\n for(i=1;i<=3;i++)cout<q)+(p>r)&&(2-r )==(r>q)+(q>p))//2-p,2-q,2-r?????ABC???????\n{\nif(p>q&&q>r)\n{ cout<<\"C\"<<\"B\"<<\"A\";}\n else if(p>r&&r>q)\n{ cout<<\"B\"<<\"C\"<<\"A\";}\nelse if(q>p&&p>r)\n{ cout<<\"C\"<<\"A\"<<\"B\";}\nelse if(q>r&&r>p)\n{ cout<<\"A\"<<\"C\"<<\"B\";}\nelse if(r>p&&p>q)\n{ cout<<\"B\"<<\"A\"<<\"C\";}\nelse if(r>q&&q>p)\n{ cout<<\"A\"<<\"B\"<<\"C\";}\n}//??????????????????\n}\n}\n }\n}\nreturn 0;\n}"} +{"label": "101", "index": "50421", "code": "//-------------------\n// ????\n// ???\n//-------------------\n\n\nint main()\n{\n\tint a,b,c,i; //??????????????,i??\n\tint words[3]; //words[]???????????\n\tchar rank[4]; //rank[]??????????\n\tfor(a=1;a<=3;a++)\n\t for(b=1;b<=3;b++)\n {\n\t if(a!=b)\n\t\t{\n\t\t for(c=1;c<=3;c++)\n {\n\t\t if((a!=c)&&(b!=c))\n\t\t\t{\n\t\t\t rank[a-1]='A';\n\t\t rank[b-1]='B';\n\t\t\t rank[c-1]='C'; \n\t\t\t words[a-1]=(b>a)+(c==a);\n\t\t\t words[b-1]=(a>b)+(a>c);\n\t words[c-1]=(c>b)+(b>a);\n\t\t\t if(words[1]>words[2]) \n\t\t\t if(words[0]>words[1]) //??????????\n\t\t \t {\n\t\t\t \tfor(i=0;i<=2;i++)\n\t\t\t\t cout<A)+(C==A));\n\t\t\tstatement[B]=((A>B)+(A>C));\n\t\t\tstatement[C]=((C>B)+(B>A));\n\t\t\trank[A]='A';\n\t\t\trank[B]='B';\n\t\t\trank[C]='C';\n\t\t\tif(statement[1]==2&&statement[2]==1&&statement[3]==0)\n\t\t\t{\n\t\t\t\t\tcout< a) + (a == c)) == 3) && ((b + (a > b) + (a > c))\n\t\t\t\t\t\t== 3) && ((c + (c > b) + (b > a)) == 3))\n\t\t\t\t\t break; \t//?????????????????????3\n\t\t\t}\n\t\t}\n\ta=i,b=j,c=k;\t\t\t//??abc??\n\t\t\t\t\t\t\t//????????????\n\tif (a > b) {\n\t\tif (b > c)\n\t\t\tcout << \"ABC\";\n\t\telse {\n\t\t\tif (c < a)\n\t\t\t\tcout << \"ACB\";\n\t\t\telse\n\t\t\t\tcout << \"CAB\";\n\t\t}\n\t} else {\n\t\tif (a > c)\n\t\t\tcout << \"BAC\";\n\t\telse {\n\t\t\tif (c < b)\n\t\t\t\tcout << \"BCA\";\n\t\t\telse\n\t\t\t\tcout << \"CBA\";\n\t\t}\n\t}\n\treturn 0; //????\n}\n"} +{"label": "101", "index": "50424", "code": "//*************************************\n//* ??? *\n//* ?????? *\n//* ?????2011?10?18? *\n//*************************************\nint main()\n{\n\tint A , B , C;//ABC??????????\n\tint a , b , c;//abc??????????\n\tfor(A = 1;A <= 3;A = A + 1)\n\t\tfor(B = 1;B <= 3;B = B + 1)\n\t\t\tfor(C = 1;C <= 3;C = C + 1)//???????123???\n\t\t\t{\n\t\t\t\ta = (B > A) + (C == A);\n\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\tif(a + A == 3 && b + B == 3 && c + C == 3 \n\t\t\t\t\t&& A != B && A != C && B != C)\n\t\t\t\t\t//??????????????????,???????\n\t\t\t\t{\n\t\t\t\t\tif(a > b && b > c)\n\t\t\t\t\t\tcout << \"A\" << \"B\" << \"C\" << endl;\n\t\t\t\t\telse if(a > c && c > b)\n\t\t\t\t\t\tcout << \"A\" << \"C\" << \"B\" << endl;\n\t\t\t\t\telse if(b > a && a > c)\n\t\t\t\t\t\tcout << \"B\" << \"A\" << \"C\" << endl;\n\t\t\t\t\telse if(b > c && c > a)\n\t\t\t\t\t\tcout << \"B\" << \"C\" << \"A\" << endl;\n\t\t\t\t\telse if(c > a && a > b)\n\t\t\t\t\t\tcout << \"C\" << \"A\" << \"B\" << endl;\n\t\t\t\t\telse\n\t\t\t\t\t\tcout << \"C\" << \"B\" << \"A\" << endl;//??????????\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n}"} +{"label": "101", "index": "50425", "code": "int main()\n{\n int afan,bfan,cfan,i,aword,bword,cword;//afan?bfan?cfan??????????? ,aword,bword,cword?????? \n char rank[4];//???? \n for(afan=1;afan<=3;afan++)\n { \n for(bfan=1;bfan<=3;bfan++)\n { \n if (afan==bfan) continue;//?????? \n for(cfan=1;cfan<=3;cfan++)\n {\n if ((afan==cfan)||(bfan==cfan)) continue;\n aword=(bfan0;i--) cout< a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif ((((a > b && A < B) || (a < b && A > B)) +\n\t\t\t\t\t((a > c && A < C) || (a < c && A > C)) +\n\t\t\t\t\t((b > c && B < C) || (b < c && B > C))) == 3)\n\t\t\t\t\tif (a > b)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (b > c)\n\t\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t\t\telse if (a > c)\n\t\t\t\t\t\t\tcout << \"BCA\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"BAC\";\n\t\t\t\t\t}\n\t\t\t\t\telse if (b < c)\n\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\telse if (a > c)\n\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\telse\n\t\t\t\t\t\tcout << \"ACB\";\n\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50427", "code": "int main(){\n\tint A,B,C,a,b,c;\n\tA = B = C = 0;\n\tfor(a = 0;a < 3;a ++){\n\t\tfor(b = 0;b < 3;b ++){\n\t\t\tif(a == b)continue;\n\t\t\tfor(c = 0;c < 3;c ++){\n\t\t\t\tif(a == c || b == c)continue;\n\t\t\t\tA = B = C = 0;\n\t\t\t\tif(b > a)A ++;\n\t\t\t\tif(b == a)A ++;\n\t\t\t\tif(a > b)B ++;\n\t\t\t\tif(a > c)B ++;\n\t\t\t\tif(c > b)C ++;\n\t\t\t\tif(b > a)C ++;\n\t\t\t\tif((A + a == B + b) && (A + a == C + c)){\n\t\t\t\t\tif(a == 0)cout<<'A';\n\t\t\t\t\tif(b == 0)cout<<'B';\n\t\t\t\t\tif(c == 0)cout<<'C';\n\t\t\t\t\tif(a == 1)cout<<'A';\n\t\t\t\t\tif(b == 1)cout<<'B';\n\t\t\t\t\tif(c == 1)cout<<'C';\n\t\t\t\t\tif(a == 2)cout<<'A';\n\t\t\t\t\tif(b == 2)cout<<'B';\n\t\t\t\t\tif(c == 2)cout<<'C';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50428", "code": "int main()\n{\n int A = 0 , B = 0 , C = 0 ;\n int a1 , a2 , b1 , b2 , c1 , c2 ;\n for(A = 1 ; A <=3 ; A++)\n {\n for(B = 1 ; B <=3 ; B++)\n {\n for(C = 1 ; C<=3 ; C++)\n {\n a1=(B>A);\n a2=(C==A);\n b1=(A>B);\n b2=(A>C);\n c1=(C>B);\n c2=(B>A);\n if(((A+a1+a2)==(B+b1+b2))&&((B+b1+b2)==(C+c1+c2)))\n {\n if((Aa[0])+(a[2]==a[0]);\n\t\t\t\tt2=(a[0]>a[1])+(a[0]>a[2]);\n\t\t\t\tt3=(a[2]>a[1])+(a[1]>a[0]);\n\t\t\t\t//if(a[0]+t1==a[1]+t2&&a[0]+t1==a[2]+t3)\n\t\t\t\t//{\n\t\t\t\t\t//for(i=0;i<=2;i++)\n\t\t\t\t\t//{\n\t\t\t\t\t\t//if(a[i]==3)cout<B&&A>C)\n\t\t{af=0;\n\t\tif (B>C){bf=1 ;cf=2;}\n\t\telse {bf=2;cf=1;}\n\t\t}\n\telse if (A>B&&AC&&AC){bf=0 ;cf=1;}\n\t\telse {bf=1;cf=0;}\n\t}\n\n\ta=adet(A,B,C);\n\tb=bdet(A,B,C);\n\tc=cdet(A,B,C);\n\n\tif (af==a&&bf==b&&cf==c)\n\t{\n\t\tswitch(i)\n\t\t{\n\t\tcase 0:\n\t\t\tcout<<\"CBA\"<a)x=x+1;\n\tif (c==a)x=x+1;\n\treturn (x);\n\n}\nint bdet(int a,int b,int c)\n{\n\tint x=0;\n\tif (a>b)x=x+1;\n\tif (cb)x=x+1;\n\tif (b>a)x=x+1;\n\treturn (x);\n}\n"} +{"label": "101", "index": "50431", "code": "int main()\n{\n int i,j,k;\n int As,Bs,Cs;\n int Aans,Bans,Cans;\n for(i=0;i<3;i++)\n for(j=0;j<3;j++)\n for(k=0;k<3;k++)\n {\n\t\t if(!((i<=j&&As<=Bs)||(i<=k&&As<=Cs)||(j<=i&&Bs<=As)||(j<=k&&Bs<=Cs)||(k<=i&&Cs<=As)||(k<=j&&Cs<=Bs)))\n\t\t\t{ Aans=i;\n\t\t Bans=j;\n\t\t\t Cans=k;}\n\t }\n\t if((Aans>=Bans)&&(Bans>=Cans))\n\t\t cout<<\"ABC\"<=Cans)&&(Cans>=Bans))\n\t\t cout<<\"ACB\"<=Aans)&&(Aans>=Cans))\n\t\t cout<<\"BAC\"<=Cans)&&(Cans>=Aans))\n cout<<\"BCA\"<=Aans)&&(Aans>=Bans))\n cout<<\"CAB\"<=Bans)&&(Bans>=Aans))\n cout<<\"CBA\"<=i&&k!=i)\n\t\td=1;\n\t\treturn d;\n\t}\n\tif(i==1)\n\t{\n\t\tif((j>=i&&k==i)||(ji&&k<=i)||(j<=i&&k>i))\n\t\td=1;\n\t\treturn d;\n\t}\n\t\tif(j==2)\n\t{\n\t\tif(j>i&&k>i)\n\t\td=1;\n\t\treturn d;\n\t}\n}\nint pc(int i,int j,int k)\n{\n\tint d=0;\n\tif(k==0)\n\t{\n\t\tif(k>=j&&j>=i)\n\t\td=1;\n\t\treturn d;\n\t}\n\tif(k==1)\n\t{\n\t\tif((k=i)||(k>=j&&j=0;i--) \n\t\t\t\t\tcout<A)+(C==A);//A??? \n Bs= (A>B)+(A>C);//B??? \n Cs= (C>B)+(B>A);//C??? \n //???????????????? \n if( !( (A<=B) && (As<=Bs) || (A<=C) && (As<=Cs)|| \n (B<=A) && (Bs<=As) || (B<=C) && (Bs<=Cs)|| \n (C<=A) && (Cs<=As) || (C<=B) && (Cs<=Bs)) ) \n { \n AnsA=A; \n AnsB=B; \n AnsC=C; \n } \n } \n } \n } \n if(AnsA>=AnsB && AnsB>=AnsC) \n { \n cout<<\"CBA\"<=AnsC && AnsC>=AnsB) \n { \n cout<<\"BCA\"<=AnsA && AnsA>=AnsC) \n { \n cout<<\"CAB\"<=AnsC && AnsC>=AnsA) \n { \n cout<<\"ACB\"<=AnsA && AnsA>=AnsB) \n { \n cout<<\"BAC\"<=AnsB && AnsB>=AnsA) \n { \n cout<<\"ABC\"<a)+(c==a))==2 && (b+(a>b)+(a>c))==2 && (c+(c>b)+(b>a))==2)//??????\n\t\t\t\t{\n\n\t\t\t\t\tif((a==0)&&(b==1)&&(c==2))\n\t\t\t\t\t\tcout<<\"ABC\";\n\t\t\t\t\tif(a==0&&b==2&&c==1)\n\t\t\t\t\t\tcout<<\"ACB\";\n\t\t\t\t\tif(a==1&&b==0&&c==2)\n\t\t\t\t\t\tcout<<\"BAC\";\n\t\t\t\t\tif(a==1&&b==2&&c==0)\n\t\t\t\t\t\tcout<<\"CAB\";\n\t\t\t\t\tif(a==2&&b==0&&c==1)\n\t\t\t\t\t\tcout<<\"BCA\";\n\t\t\t\t\tif(a==2&&b==1&&c==0)\n\t\t\t\t\t\tcout<<\"CBA\";\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\t\t\t\n"} +{"label": "101", "index": "50436", "code": "/**\n@ file 1000012907_4.cpp\n@ author ???\n@ date 2010-11-21\n@ description\n@ ?????????? \n*/\nint main()\n{\n\tint A, B, C, a1, a2, b1, b2, c1, c2, max = 0, min = 0, mid = 0, temp = 0;\t\t\n\tfor (A = 0; A < 3; A++)\t\t\t\t\t\t\t\t\t// A??A??????0?????2????\n\t{\n\t\tfor (B = 0; B < 3; B++)\t\t\t\t\t\t\t\t// B??B??????0?????2????\n\t\t{\n\t\t\tfor (C = 0; C < 3; C++)\t\t\t\t\t\t\t// C??C??????0?????2????\n\t\t\t{\n\t\t\t\ta1 = (B > A);\t\t\t\t\t\t\t\t// a1?a2??A???????b1?b2??B???????c1?c2??C??????\n\t\t\t\ta2 = (C == A);\n\t\t\t\tb1 = (A > B); \n\t\t\t\tb2 = (A > C);\n\t\t\t\tc1 = (C > B);\n\t\t\t\tc2 = (B > A);\n\t\t\t\t// ????????????????\n\t\t\t\tif (a1 + a2 + A == 2 && b1 + b2 + B == 2 && c1 + c2 + C == 2)\n\t\t\t\t{\n\t\t\t\t\tif (A < B && B < C)\t\t\t\t\t\t// ???????????????\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"A\" << \"B\" << \"C\";\n\t\t\t\t\t}\n\t\t\t\t\tif (A < C && C < B) \n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"A\" << \"C\" << \"B\";\n\t\t\t\t\t}\n\t\t\t\t\tif (B < A && A < C)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"B\" << \"A\" << \"C\";\n\t\t\t\t\t}\n\t\t\t\t\tif (B < C && C < A)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"B\" << \"C\" << \"A\";\n\t\t\t\t\t}\n\t\t\t\t\tif (C < B && B < A)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"C\" << \"B\" << \"A\";\n\t\t\t\t\t}\n\t\t\t\t\tif (C < A && A < C)\n\t\t\t\t\t{\n\t\t\t\t\t\tcout << \"C\" << \"A\" << \"B\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50437", "code": "//*************************************\n//**???? ??????\n//**?? ??? 1000010257\n//**???? ??abc???????\n//***************************************\n\n\n\n\nint main()\n{\n\tint fl[3] ={0} , right[3];//?????????????????\n\tchar output;\n\tfor( int j = 0 ;j <= 2 ;j++) //????\n\t{\n\t\tfl[0] = j ; right[0] = 2 - j;\n\t\tfor( int k = 0 ; k <= 2; k++)\n\t\t{\n\t\t\tif( k != j) //??????????????????\n\t\t\t{\n\t\t\t\tfl[1] = k;right[1] = 2 - k;//?????0-2????????2-0\n\t\t\t}\n\t\t\tfor( int l = 0 ; l <= 2 ; l++)\n\t\t\t{\n\t\t\t\tif( (l != j ) && ( l != k ) )\n\t\t\t\t{\n\t\t\t\t\tfl[2] = l;right[2] = 2 - l;\n\t\t\t\t}\n\t\t\t\tif( ( right[0] == ( ( fl[1] > fl[0] ) + ( fl[0] == fl[2]) ) && ( right[1] ==( ( fl[0] > fl[1] ) + ( fl[0] > fl[2] )))&&( right[2] == ( ( fl[2] > fl[1] ) + ( fl[1] > fl[0])))))\n\t\t\t\t{ //????????????\n\t\t\t\t\tfor( int m = 0 ; m <= 2 ; m++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif( fl[m] == 0 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toutput = 'A'+ m;\n\t\t\t\t\t\t\tcout<a)+(c==a)+(a>b)+(a>c)+(c>b)+(b>a)==3)\n\t\t{\n\t\tif (a>b && a>c && b>c) cout<<\"CBA\";//??\n\t\tif (a>b && a>c && c>b) cout<<\"BCA\";\n\t\tif (b>a && b>c && c>a) cout<<\"ACB\";\n\t\tif (c>a && c>b && a>b) cout<<\"BAC\";\n\t\tif (c>a && c>b && b>a) cout<<\"ABC\";\n\t\t}\n\t}\n\treturn 0;//????\n}\n\t\t\t\t"} +{"label": "101", "index": "50439", "code": "int s[3];\nchar name[]={'A','B','C'};\nint main(){\n\tint a,b,c,an,bn,cn;\n\tfor(a = 1;a < 4;a ++){\n\t\tfor(b = 1;b < 4;b ++){\n\t\t\tfor(c = 1;c < 4;c ++){\n\t\t\t\tan = (b>a)+(c==a);\n\t\t\t\tbn = (a>b)+(a>c);\n\t\t\t\tcn = (c>b)+(b>a);\n\t\t\t\tif(((a>b)&&(anbn)||(a==b)&&(an==bn))\n\t\t\t\t\t&&((a>c)&&(ancn)||(a==c)&&(an==cn))\n\t\t\t\t\t&&((c>b)&&(cnbn)||(c==b)&&(cn==bn))){\n\t\t\t\t\ts[0] = a;s[1] = b;s[2] = c;\n\t\t\t\t\tfor(int i = 0;i < 4;i ++){\n\t\t\t\t\t\tfor(int j = 0;j < 3;j ++){\n\t\t\t\t\t\t\tif(s[j] == i)\n\t\t\t\t\t\t\t\tcout << name[j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50440", "code": "int main()\n{\n\tint A,B,C,a,b,c;\n\tfor(A=0;A<=2;A++)\n\t for(B=0;B<=2;B++)\n\t for(C=0;C<=2;C++)\n\t{\n\t\t if(A==B||B==C||A==C||A==B==C) continue;\n\t\t a=(AB)+(A>C);\n c=(C>B)+(B>A);\n\t\t if(a>b&&b>c && Ac&&c>b && Aa&&a>c && Bc&&c>a && Ba&&a>b && Cb&&b>a && Ci)+(k==i)+i;\n\t\t\t\t\t\tf=(i>j)+(i>k)+j;\n\t\t\t\t\t\tg=(k>j)+(j>i)+k;\n\t\t\t\t\t\tif(e==3&&f==3&&g==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta[0]=i;\n\t\t\t\t\t\t\ta[1]=j;\n\t\t\t\t\t\t\ta[2]=k;\n\t\t\t\t\t\t\tbreak;//??abc????????\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t//???abc?????\n\tfor(int i=0;i<2;i++)//??????????????????????????????????????????\n\t{\n\t\tfor(int j=0;j<2-i;j ++)\n\t\t{\n\t\t\tif(a[j]>a[j+1])\n\t\t\t{\n\t\t\t\tb=a[j];\n\t\t\t\td=c[j];//???c[j]??a[j]????????\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\tc[j]=c[j+1];\n\t\t\t\ta[j+1]=b;\n\t\t\t\tc[j+1]=d;\n\t\t\t}\n\n\t\t}\n\n\t}\t\t\n\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tcout<< c[i];\n\t\t}\n\n\t\treturn 0;\n}"} +{"label": "101", "index": "50442", "code": "int main()\n{\n int A, B, C;\n int suma, sumb, sumc;\n for (A = 0; A <= 2; A++)\n {\n for (B = 0; B <= 2; B++)\n {\n for (C = 0; C <= 2; C++)\n {\n suma = (B > A) + (C == A);\n sumb = (A > B) + (A > C);\n sumc = (C > B) + (B > A);\n if (!(A <= B && suma <= sumb || A <= C && suma <= sumc || B <= C && sumb <= sumc || \n A >= B && suma >= sumb || A >= C && suma >= sumc || B >= C && sumb >= sumc))\n {\n if (suma == sumb)\n {\n if (sumc >= suma)\n cout << \"BAC\" << endl;\n else\n cout << \"CBA\" << endl;\n }\n if (suma > sumb)\n {\n if (sumc >= suma)\n cout << \"CAB\" << endl;\n if (sumc <= sumb)\n cout << \"ABC\" << endl;\n else\n cout << \"ACB\" << endl;\n }\n if (suma < sumb)\n {\n if (sumc >= sumb)\n cout << \"CBA\" << endl;\n if (sumc <= suma)\n cout << \"BAC\" << endl;\n else\n cout << \"BCA\" << endl;\n } \n }\n }\n }\n }\n return 0;\n}\n\n \n "} +{"label": "101", "index": "50443", "code": "int main()\n{\n\tint i,j,a,b,c,counter=0,as,bs,cs;\n\tint chihuo[4];\n\tfor(a=1;a<=3;a++)\n\t{\n\t\tfor(b=1;b<=3;b++)\n\t\t{\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t{\n\t\t\t\tas=0;bs=0;cs=0;\n\t\t\t\tchihuo[1]=a;chihuo[2]=b;chihuo[3]=c;\n\t\t\t\tcounter=0;\n\t\t\t\t//cout<a) as++;\n\t\t\t\tif(c==a) as++;\n\t\t\t\tif(a>b) bs++;\n\t\t\t\tif(a>c) bs++;\n\t\t\t\tif(c>b) cs++;\n\t\t\t\tif(b>a) cs++;\n\t\t\t\tif(((a>=b)==(as<=bs))&&((a>=c)==(as<=cs))&&((b>=c)==(bs<=cs)))\n\t\t\t\t{\n\t\t\t\t\tfor(i=1;i<=3;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(j=1;j<=3;j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(chihuo[j]==i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcout<<(char)(64+j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50444", "code": "void tries(char k[]){\nint a,b,c,aa,bb,cc;\nif(k[0]=='A')a=3;\nif(k[1]=='A')a=2;\nif(k[2]=='A')a=1;\nif(k[0]=='B')b=3;\nif(k[1]=='B')b=2;\nif(k[2]=='B')b=1;\nif(k[0]=='C')c=3;\nif(k[1]=='C')c=2;\nif(k[2]=='C')c=1;\naa=(b>a)+(c==a);\nbb=(a>b)+(a>c);\ncc=(c>b)+(b>a);\nif((a+aa==3)&&(b+bb==3)&&(c+cc==3))cout< a) + (c == a)) == 3 && (b + ( a > b) + (a > c)) == 3 && (c + (c > b) + (b > a)) == 3)\n\t\t\t\t{\n\t\t\t\t\tif (a > b && b > c) //?????????????????\n\t\t\t\t\t\tcout << \"CBA\" << endl;\n\t\t\t\t\telse if (a > c && c > b)\n\t\t\t\t\t\tcout << \"BCA\" << endl;\n\t\t\t\t\telse if (b > a && a > c)\n\t\t\t\t\t\tcout << \"CAB\" << endl;\n\t\t\t\t\telse if (b > c && c > a)\n\t\t\t\t\t\tcout << \"ACB\" << endl;\n\t\t\t\t\telse if (c > a && a > b)\n\t\t\t\t\t\tcout << \"BAC\" << endl;\n\t\t\t\t\telse\n\t\t\t\t\t\tcout << \"ABC\" << endl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50446", "code": "int main()\n{\n\tint a, b, c, A, B, C;\n\tchar a1, a2, a3;\n\tfor (a = 1; a <= 3; a++)\n\t{\n\t\tfor (b = 1; b <= 3; b++)\n\t\t{\n\t\t\tfor (c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\ta1 = a2 = a3 = 0;\n\t\t\t\tA = (b > a) + (c == a);\n\t\t\t\tB = (a > b) + (a > c);\n\t\t\t\tC = (c > b) + (b > a);\n\t\t\t\tif ((A > B) && (A > C) && (a < b) && (a < c))\n\t\t\t\t{\n\t\t\t\t\ta1 = 'A';\n\t\t\t\t\tif ((B > C) && (b < c))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'B';\n\t\t\t\t\t\ta3 = 'C';\n\t\t\t\t\t}\n\t\t\t\t\telse if ((C > B) && (c < b))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'C';\n\t\t\t\t\t\ta3 = 'B';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((B > A) && (B > C) && (b < a) && (b < c))\n\t\t\t\t{\n\t\t\t\t\ta1 = 'B';\n\t\t\t\t\tif ((A > C) && (a < c))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'A';\n\t\t\t\t\t\ta3 = 'C';\n\t\t\t\t\t}\n\t\t\t\t\telse if ((C > A) && (c < a))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'C';\n\t\t\t\t\t\ta3 = 'A';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ((C > A) && (C > B) && (c < a) && (c < b))\n\t\t\t\t{\n\t\t\t\t\ta1 = 'C';\n\t\t\t\t\tif ((A > B) && (a < b))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'A';\n\t\t\t\t\t\ta3 = 'B';\n\t\t\t\t\t}\n\t\t\t\t\telse if ((B > A) && (b < a))\n\t\t\t\t\t{\n\t\t\t\t\t\ta2 = 'B';\n\t\t\t\t\t\ta3 = 'A';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (a1 * a2 * a3 != 0)\n\t\t\t\t{\n\t\t\t\t\tcout << a1 << a2 << a3 << endl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50447", "code": "int main()\n{\n\tint A,B,C,i; //????\n\tint rank[4],word[4]; //??????,??????,???\n\tfor(A=1;A<=3;A++)\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tif(A==B)continue;\n\t\t\tC=6-A-B; //?????????\n\t\t\tword[1]=(B=1;i--)\n\t\t\t\t{\n\t\t\t\t\tcout<<(char)(rank[i]+64);\n //?????????????\n\t\t\t\t}\n\t\t}\n\t\t\t\treturn 0;\n}\n\n\n\n\n"} +{"label": "101", "index": "50448", "code": "\nint main()\n{\n int a,b,c;//??abc?????? \n \n for(int i=0;i<27;i++) //?????????? \n {\n a=floor((int)(floor(i/9))%3);//????floor??????double??? ???int? \n b=floor((i%9)/3);\n c=i%3;\n/*?????????:\n(2-a)<(2-b)\n(2-a)==(2-c)\n(2-a)>(2-b)\n(2-a)>(2-c)\n(2-c)>(2-b)\n(2-b)>(2-a)\n*/\n int a1=0,b1=0,c1=0;//??abc????? \n if(2-a<2-b){a1++;}\n if(2-a==2-c){a1++;}\n if(2-a>2-b){b1++;}\n if(2-a>2-c){b1++;}\n if(2-c>2-b){c1++;}\n if(2-b>2-a){c1++;}\n \n char ch[3];//??????? \n if((a1==a)&&(b1==b)&&(c1==c))\n {\n ch[2-a]='A';\n ch[2-b]='B';\n ch[2-c]='C'; \n cout< a) + (c == a);\n\t\tn2 = (a > b) + (a > c);\n\t\tn3 = (c > b) + (b > a);\n\t\tif( (n1 != n2 ) && (n2 != n3) &&(n1 != n3) )\n\t\t {\n\t\t if( a + n1==b + n2 && b + n2 == c + n3)\n {\n\t\t if(a > b && b > c) printf(\"%c%c%c\",'C','B','A');\n else if(a > c && c > b) printf(\"%c%c%c\",'B','C','A');\n\t \telse if(b > a && a > c) printf(\"%c%c%c\",'C','A','B');\n\t\t else if(b > c && c > a) printf(\"%c%c%c\",'A','C','B');\n\t\t else if(c > a && a > b) printf(\"%c%c%c\",'B','A','C');\n\t \telse if(c > b && b > a) printf(\"%c%c%c\",'A','B','C');\n\t\t }\n\t\t }\n\t\t}\n return 0;\n}\n \n\n\n\t\t \n"} +{"label": "101", "index": "50450", "code": "// 3???????.cpp : Defines the entry point for the console application.\n// ???????????????\nint main()\n{\n\tint A,B,C; //????A?B?C????A?B?C?????1??????\n\tint words[4]; //???? words[4]???A?B?C??????\n\tchar a[4]; //?????a[4]\n\tfor(A=1;A<=3;A++) //for????\n\t{\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tif(A==B)\n\t\t\t\tcontinue;\n\t\t\tC=6-A-B;\n\t\t\twords[1]=(B>A)+(A==C); //words[1]?A????\n\t\t\twords[2]=(A>B)+(A>C); //words[2]?B????\n\t\t\twords[3]=(C>B)+(B>A); //words[3]?C????\n\t\t\tif(!((A>B&&words[1]<=words[2])||(A>C&&words[1]<=words[3])||(B>C&&words[2]<=words[3])||(B>A&&words[2]<=words[1])||(C>B&&words[3]<=words[2])||(C>A&&words[3]<=words[1]))==0)\n\t\t\t\t//????????????????????\n\t\t\t\ta[A]='A';\n\t\t\ta[B]='B';\n\t\t\ta[C]='C';\n\t\t\tif((words[1]+A==3)&&(words[2]+B==3)&&(words[3]+C==3)) //?????????????3\n\t\t\tfor(int i=1;i<=3;i++) //????for??????\n\t\t\t\tcout<A)+(C==A));\n b=((A>B)+(A>C));\n c=((C>B)+(B>A));\n if(((A>B&&ab))+((A>C&&ac))+((Bc)||(B>C&&ba);\n\t\t\t\tCb=(a>b)+(a>c);\n\t\t\t\tCc=(c>b)+(b>a);\n\t\t\t\tif ((Ca+a==2)&&(Cb+b==2)&&(Cc+c==2))\n\t\t\t\t{RA=a;RB=b;RC=c;}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\tif(RA>RB&&RB>RC) cout << \"CBA\";\n\tif(RA>RC&&RA>RB) cout << \"BCA\";\n\tif(RB>RA&&RA>RC) cout << \"CAB\";\n\tif(RB>RC&&RC>RA) cout << \"ACB\";\n\tif(RC>RA&&RA>RB) cout << \"BAC\";\n\tif(RC>RB&&RB>RA) cout << \"ABC\";\n\treturn 0;\n}"} +{"label": "101", "index": "50453", "code": "int main()\n{\n\tint a,b,c;\n\tfor(a=1;a<=3;a++)\n\t\tfor(b=1;b<=3;b++)\n\t\t\tfor(c=1;c<=3;c++)\n\t\t\t\tif(a!=b&&a!=c&&b!=c)\n\t\t\t\t\tif((a+(b>a)+(c==a)==3)&&(b+(a>b)+(a>c)==3)&&(c+(c>b)+(b>a)==3))\n\t\t\t\t\t\tfor(int i=1;i<=3;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a==i)\n\t\t\t\t\t\t\t\tcout<<'A';\n\t\t\t\t\t\t\tif(b==i)\n\t\t\t\t\t\t\t\tcout<<'B';\n\t\t\t\t\t\t\tif(c==i)\n\t\t\t\t\t\t\t\tcout<<'C';\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn 0;\n}"} +{"label": "101", "index": "50454", "code": "int main()\n{\n\tint a, b, c;\n\tint a1, b1, c1;\n\tfor(a = 1; a <= 3; a++)\n\t{\n\t\tfor(b = 1; b <= 3; b++)\n\t\t{\n\t\t\tfor(c = 1; c <= 3; c++)\n\t\t\t{\n\t\t\t\ta1 = ( b < a ) + ( c == a );\n\t\t\t\tb1 = ( a < b ) + ( a < c );\n\t\t\t\tc1 = ( c < b ) + ( b < a );\n\t\t\t\t//cout << a1 << \" \" << b1 << \" \" << c1 << \" \" < a) + (c == a) == 3)\n\t\t\t\t\tif(b + (a > b) + (a > c) == 3)\n\t\t\t\t\t\tif(c + (c > b) + (b > a) == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif((a > b)&&(a > c))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(b > c)\n\t\t\t\t\t\t\t\t\tcout << \"CBA\";\n\t\t if(c > b)\n\t\t\t cout << \"BCA\";\n\t\t\t\t\t\t\t}\n\t if((b > a)&&(b > c))\n\t\t\t\t\t\t\t{\n\t\t if(a > c)\n\t\t\t cout << \"CAB\";\n\t\t if(a < c)\n\t\t\t cout << \"ACB\";\n\t\t\t\t\t\t\t}\n\t if((c > a)&&(c > b))\n\t\t\t\t\t\t\t{\n\t\t if(a > b)\n\t\t\t cout << \"BAC\";\n\t\t if(a < b)\n\t\t\t cout << \"ABC\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50457", "code": "/*\n * Homework3.15CompareAppetite.cpp\n *\n * Created on: 2013-10-28\n * Author: JuiceHe\n */\nint main()\n{\n\tvoid sort(int,int,int);\n\tint A,B,C,a,b,c,i;//A,B,C?????a,b,c????????\n\tfor(A=1;A<=3;A++)\n\t\tfor(B=1;B<=3;B++)\n\t\t\tfor(C=1;C<=3;C++)\n\t{a=(B>A)+(A==C);b=(A>B)+(A>C);c=(C>B)+(B>A);\n\t if((a-b)*(A-B)<0&&(c-b)*(C-B)<0&&(a-c)*(A-C)<0)//???????????\n\t for(i=1;i<=3;i++)//????????????\n\t {if(A==i)cout<<\"A\";\n\t if(B==i)cout<<\"B\";\n\t if(C==i)cout<<\"C\";}}\n\n\treturn 0;\n}\n"} +{"label": "101", "index": "50458", "code": "int main()\n{\n\tint A,B,C,a,b,c,words[4]={0};//???????A,B,C,???????a,b,c?????????????words?\n\tchar rank[4];\n\tfor(A=1;A<4;A++)//??A?B?C????????\n\t{\n\t\tfor(B=1;B<4;B++)\n\t\t{\n\t\t\tfor(C=1;C<4;C++)\n\t\t\t{\n\t\t\t\twords[1]=(B>A)+(C==A);\n\t\t\t\twords[2]=(A>B)+(A>C);\n\t\t\t\twords[3]=(C>B)+(B>A);\n\t\t\t\ta=3-words[1];//??????????????\n\t\t\t\tb=3-words[2];\n\t\t\t\tc=3-words[3];\n\t\t\t\tif((a!=b)&&(a!=c)&&(b!=c)&&(a==A)&&(b==B)&&(c==C))//?????????????????????????????\n\t\t\t\t{rank[A]='A';\n\t\t\t\trank[B]='B';\n\t\t\t\trank[C]='C';\n\t\t\t\tfor(int i=1;i<4;i++)//????????????????\n\t\t\t\t{cout< C);\n\t\t\t \t shu[2] = (C > B) + (B > A);\n\n\t\t\t \t if ( ( A - B ) * ( shu[0] - shu[1] ) < 0 &&\n\t\t\t\t \t ( A - C ) * ( shu[0] - shu[2] ) < 0 &&\n\t\t\t\t\t ( B - C ) * ( shu[1] - shu[2] ) < 0 )\n\t\t\t\t \t {\n\t\t\t\t\t \t\t for ( int i = 0; i < 2; i++)\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t \t for (int k = 0; k < 2-i; k++)\n\t\t\t\t\t\t\t\t \t {\n\t\t\t\t\t\t\t\t\t \t if(shu[k] < shu[k+1])\n\t\t\t\t\t\t\t\t\t \t {\n\t\t\t\t\t\t\t \t\t m = shu[k];\n\t\t\t\t\t\t\t \t\t shu[k] = shu[k+1];\n\t\t\t\t\t\t\t \t\t shu[k+1] = m;\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t n = fan[k];\n\t\t\t\t\t\t\t \t\t fan[k] = fan[k+1];\n\t\t\t\t\t\t\t \t\t fan[k+1] = n;\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t \t \n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t cout << fan[0] << fan[1] << fan[2] << endl;\n\t\t\t \t\t \n\t\t\t\t\t }\n\t\t \n\t\t\t\t \t \t\t \n\t\t \t }\n\t \n\t }\n\t \n\t }\n\t \n\t \n\t return 0;\n \t\n}"} +{"label": "101", "index": "50460", "code": "int main()\n{\n int A, B, C;\n char a[4];\n for(A=1;A<=3;A++)\n for(B=1;B<=3;B++)\n {\n if(A==B) continue;\n C=6-A-B;\n if((A+(B>A)+(C==A)==3)&&(B+(A>B)+(A>C)==3)&&(C+(C>B)+(B>A)==3)==1)\n {\n a[A]='A';\n a[B]='B';\n a[C]='C';\n cout<A)+(A==C)+(A>B)+(A>C)+(C>B)+(B>A)==3)\n\t\t{\n\t\t\tif (A>B &&B>C)\n\t\t\t\tcout<<\"CBA\"<C &&C>B)\n\t\t\t\tcout<<\"BCA\"<A &&A>C)\n\t\t\t\tcout<<\"CAB\"<C && C>A)\n\t\t\t\tcout<<\"ACB\"<A &&A>B)\n\t\t\t\tcout<<\"BAC\"<B && B>A)\n\t\t\t\tcout<<\"ABC\"<a)+(c==a);e=(a>b)+(a>c);f=(c>b)+(b>a);\n//cout< a) + (c == a)) == (2 - a)) && (((a > b) + (a > c))\n\t\t\t\t\t\t== (2 - b)) && (((c > b) + (c > a)) == (2 - c))) {//????\n\t\t\t\t\tif (a == 0)\n\t\t\t\t\t\tcout << 'A';\n\t\t\t\t\tif (b == 0)\n\t\t\t\t\t\tcout << 'B';\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tcout << 'C';\n\t\t\t\t\tif (a == 1)\n\t\t\t\t\t\tcout << 'A';\n\t\t\t\t\tif (b == 1)\n\t\t\t\t\t\tcout << 'B';\n\t\t\t\t\tif (c == 1)\n\t\t\t\t\t\tcout << 'C';\n\t\t\t\t\tif (a == 2)\n\t\t\t\t\t\tcout << 'A';\n\t\t\t\t\tif (b == 2)\n\t\t\t\t\t\tcout << 'B';\n\t\t\t\t\tif (c == 2)\n\t\t\t\t\t\tcout << 'C';//???????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "101", "index": "50464", "code": "//*************************************************\n//*??????? ****\n//*?????? 1100013009 ****\n//*???2011.10.15 ****\n//*????????????????? ****\n//*************************************************\nint main()\n{\n\tint a, b, c; // ?????????????????????max1?max2?max\n\tfor (a = 1; a <= 3; a++) // ????a?1??3\n\t\tfor (b = 1; b <= 3; b++) // ????b?1??3\n\t\t\tfor (c = 1;c <= 3; c++) // ????c?1??3\n\t\t\t\t if (a + (b > a) + (c == a ) == 3 && b + (a > b) + (a > c ) == 3 && c + (c > b) + (b > a ) == 3)\n\t\t\t\t\t // ???????a, b, c\n\t\t\t\t {\n\t\t\t\t\t int k, min = 10, n[3], i, j; // ??????k, i, j, ?????min???a, b, c,????????n[3]\n\t\t\t\t\t char m[3]; // ????A, B, C???m[3]\n\t\t\t\t\t m[0] = 'A'; // ????????????\n\t\t\t\t\t m[1] = 'B';\n\t\t\t\t m[2] = 'C';\n\t\t\t\t n[0] = a;\n\t\t\t\t n[1] = b;\n\t\t\t\t n[2] = c;\n\t\t\t\t\t for (k = 0; k < 3; k++) // ????\n\t\t\t\t\t {\n\t\t\t\t\t\t for (i = 0; i < 3; i++) // ????????????????\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t if (min > n[i])\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t min = n[i];\n\t\t\t\t\t\t\t\t j = i; // ?j??i???????????\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\t cout << (char)(m[j]); // ????????\n\t\t\t\t\t\t\t n[j] = 10; // ????????0???????????????\n\t\t\t\t\t\t\t min = 10; // ?????????????????????\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return 0;\n}\n "} +{"label": "101", "index": "50465", "code": "int main()\n{\n int\tA=0,B=0,C=0,a=0,b=0,c=0,d[3][3],i=0,j=0,p=0;\n\tchar f[2][2];\n\tfor(A=0;A<3;A++)\n\t\t{\n\t\t\tfor(B=0;B<3;B++)\n\t\t\t{\n\t\t\t\tfor(C=0;C<3;C++)\n\t\t\t { \n\t\t\t\td[0][0]=A;d[0][1]=(B>A);d[0][2]=(C==A);\n\t\t\t\td[1][0]=B;d[1][1]=(A>B);d[0][2]=(A>C);\n\t\t\t\td[2][0]=C;d[2][1]=(C>B);d[2][2]=(B>A);\n\t\t\t\tfor(i=0;i<3;i++)\n\t\t\t\t{\n\t\t\t\t\tif(d[i][0]==2-d[i][1]-d[i][2])\n\t\t\t\t\t\t\n\t\t\t\t\tp++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(p==3){\n\t\t\t\t\t\n\t\t\t\t\t\tif(A>B>C)\n\t\t\t\t\t cout<<\"ABC\"<C>B)\n\t\t\t\t\t\t\tcout<<\"ACB\"<A>C)\n\t\t\t\t\t\t\tcout<<\"BAB\"<C>A)\n\t\t\t\t\t\t\tcout<<\"BCA\"<A>B)\n\t\t\t\t\t\t\tcout<<\"CAB\"<B>A)\n\t\t\t\t\t\t\tcout<<\"CBA\"< a) + (c == a) + a == 2)&&((a > b) + (a > c) + b == 2)&&((c > b) + (b > a) + c == 2))//????????\n\t\t\t\t{\n\t\t\t\t\t\tif((a > b)&&(b > c))\n\t\t\t\t\t\t\tcout << 'C' << 'B' << 'A' << endl;\n\t\t\t\t\t\tif((a > c)&&(c > b))\n\t\t\t\t\t\t\tcout << 'B' << 'C' << 'A' << endl;\n\t\t\t\t\t\tif((b > a)&&(a > c))\n\t\t\t\t\t\t\tcout << 'C' << 'A' << 'B' << endl;\n\t\t\t\t\t\tif((b > c)&&(c > a))\n\t\t\t\t\t\t\tcout << 'A' << 'C' << 'B' << endl;\n\t\t\t\t\t\tif((c > a)&&(a > b))\n\t\t\t\t\t\t\tcout << 'B' << 'A' << 'C' << endl;\n\t\t\t\t\t\tif((c > b)&&(b > a))\n\t\t\t\t\t\t\tcout << 'A' << 'B' << 'C' << endl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50467", "code": "int main()\n{\n int a[3],as[3],c,i,j;\n char b[3]={'A','B','C'} ;\n for(a[0]=0;a[0]<3;a[0]++)\n for(a[1]=0;a[1]<3;a[1]++)\n for(a[2]=0;a[2]<3;a[2]++)\n {\n c=0;\n as[0]=(a[1]>a[0])+(a[2]==a[0]);\n as[1]=(a[0]>a[1])+(a[0]>a[2]);\n as[2]=(a[2]>a[1])+(a[1]>a[0]);\n if( a[0]!=a[1] && a[1]!=a[2] && a[2]!=a[0] && as[0]!=as[1] && as[1]!=as[2] && as[2]!=as[0] )\n {\n if((a[0]+as[0]==2)&&(a[1]+as[1]==2)&&(a[2]+as[2]==2))\n {\n for(i=0;i<3;i++)\n for(j=0;j<3;j++)\n if(a[j]==i)\n printf(\"%c\",b[j]);\n //printf(\"%d %d %d\\n\",a[0],a[1],a[2]);\n }\n }\n\n }\n return 0;\n}\n"} +{"label": "101", "index": "50468", "code": "int main() //?????\n{\n\tint a=0,b=0,c=0; //??ABC??\n\tvoid check(int x,int y,int z); //???????????\n\tfor(a=0;a<3;a++)\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tif(a==b)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(c=0;c<3;c++)\n\t\t\t\t{\n\t\t\t\t\tif(c==a||c==b)\n\t\t\t\t\t\tcontinue; //?????????????\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tcheck(a,b,c); //????\n\t\t\t\t\t}}}}}\n\treturn 0;\n}\nvoid check(int x,int y,int z) //??????\n{\n\tint n1=0,n2=0,n3=0,i=0;\n\tchar rank[3];\n\tn1=(y>x)+(z==x);\n\tn2=(x>y)+(x>z);\n\tn3=(z>y)+(y>x); //??????????\n\tif((n1==2-x)&&(n2==2-y)&&(n3==2-z)) \n\t{\n\t\trank[x]='A';\n\t\trank[y]='B';\n\t\trank[z]='C'; //???????????\n\tfor(i=0;i<3;i++)\n\t\tcout<b)+(a==c); //????????\n wordb=(ac)+(bA)+(A==C);\n j=(A>B)+(A>C);\n k=(C>B)+(B>A);\n if(i+j+k==3&i!=j&i!=k&j!=k&i+A==2&j+B==2&k+C==2) //???????????????????? \n { \n a[2-A]='A'; //????? \n a[2-B]='B';\n a[2-C]='C';\n cout<b)\n\t\tt=a;\n\tif (c>t)\n\t\tt=c;\n\treturn t;\n}\n\nint MIN(int a, int b, int c)\n{\n\tint t=0;\n\tif (a A) + (C == A);\n\t\t\t\tb = (A > B) + (A > C);\n\t\t\t\tc = (C > B) + (B > A);\n\t\t\t\tif (((A>B&&ab))+((A>C&&ac))+((B>C&&bc))==3)\n\t\t\t\t{\n\t\t\t\t\te = MAX(a, b, c);\n\t\t\t\t\tg = MIN(a, b, c);\n\t\t\t\t\tf = a+b+c-e-g;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfirst = 65 + e;\n\tsecond = 65 + f;\n\tthird = 65 + g;\n\tcout << first << second << third << endl;\n\treturn 0;\n}"} +{"label": "101", "index": "50472", "code": "/*\n * bifanliang.cpp\n * ??:???\n * ????: 2012-10-26\n * ??????\n */\nint main(){\n\tint A=0,B=0,C=0,a=0,b=0,c=0;//????\n\tfor(A=1;A<=3;A++)//????????\n\t\tfor(B=1;B<=3;B++)\n\t\t{\n\t\t\tif(A==B)continue;\n\t\t\telse {\n\t\t\t\tfor(C=1;C<=3;C++)\n\t\t\t\t{\n\t\t\t\t\tif((C==B)||(C==A))continue;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(((B>A)+(C==A)==(3-A))&&((A>B)+(A>C)==(3-B))&&\n\t\t\t\t\t\t\t\t((C>B)+(B>A)==(3-C)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta=A;b=B;c=C;//??????????????????\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tif((a>b)&&(b>c))cout<<\"CBA\";\n\tif((a>c)&&(c>b))cout<<\"BCA\";\n\tif((b>a)&&(a>c))cout<<\"CAB\";\n\tif((b>c)&&(c>a))cout<<\"ACB\";\n\tif((b>a)&&(a>c))cout<<\"CAB\";\n\tif((c>a)&&(a>b))cout<<\"BAC\";\n\tif((c>b)&&(b>a))cout<<\"ABC\";//???????????\n\treturn 0;//????\n}\n"} +{"label": "101", "index": "50473", "code": "/**\n* @file 1000012800_1.cpp\n* @author ??\n* @date 2010-11-18\n* @description\n* ??????:????\n*/\n\n\nint main()\n{\n\tchar A, B, C;\n\t\n\tchar rank[4];\n\tfor (A = 1; A <= 3; A ++)\n\t\n\t\tfor(B = 1; B <= 3; B ++)\n\t\t{\n\t\t\tif (A == B)\n\t\t\t\tcontinue;\n\t\t\n\t\t\tfor (C = 1; C <= 3; C ++)\n\t\t\t{\n\n\t\t\t\tint a[4] = {0};\n\t\t\t\tif (A == C || B == C)\n\t\t\t\t\tcontinue;\n\t\t\t\trank[A] = 'A';\n\t\t\t\trank[B] = 'B';\n\t\t\t\trank[C] = 'C';\n\t\t\t\tif(B < A)\n\t\t\t\t\ta[A] ++;\n\t\t\t\tif (C == A)\n\t\t\t\t\ta[A] ++;\n\t\t\t\tif(A < B)\n\t\t\t\t\ta[B] ++;\n\t\t\t\tif(A < C)\n\t\t\t\t\ta[B] ++;\n\t\t\t\tif(C < B)\n\t\t\t\t\ta[C] ++;\n\t\t\t\tif(B < A)\n\t\t\t\t\ta[C] ++;\n\t\t\t\tif(a[1] < a[2] && a[2] < a[3])\n\t\t\t\t{\n\t\t\t\t\tcout << rank[3] << rank[2] << rank[1] << endl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n}\n\n"} +{"label": "101", "index": "50474", "code": "/*\n *???????\n *??????1100019007?\n *???2012-10-15\n *??????????????\n */ \nint main()\n{\n char res[3];\n int af,bf,cf;\n int ah,bh,ch,i;\n for(af=0;af<3;af++)\n {\n for(bf=0;bf<3;bf++)\n {\n for(cf=0;cf<3;cf++)\n {\n ah=0;\n bh=0;\n ch=0;\n if(bf>af)ah++;\n if(cf==af)ah++;\n if(af>bf)bh++;\n if(af>cf)bh++;\n if(cf>bf)ch++;\n if(bf>af)ch++;\n if((((ah>bh)&&(afbf)))\n &&(((bh>ch)&&(bfcf)))\n &&(((ch>ah)&&(cfaf))))\n {\n res[2-af]='A';\n res[2-bf]='B';\n res[2-cf]='C';\n cout<A)+(C==A);\n\t\t\t\tb=(A>B)+(A>C);\n\t\t\t\tc=(C>B)+(B>A);\n\t\t\t\tif(a>b&&b>c)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"CBA\"<c&&c>b)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"BCA\"<a&&a>c)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"CAB\"<c&&c>a)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"ACB\"<a&&a>b)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"BAC\"<b&&b>a)\n\t\t\t\t{\n\t\t\t\t\tcout<<\"ABC\"<A)+(C==A);\n\t\t\t\tBs=(A>B)+(A>C);\n\t\t\t\tCs=(C>B)+(B>A);\n\t\t\t\tif(!(A<=B&&As<=Bs||A<=C&&As<=Cs||B<=A&&Bs<=As||B<=C&&Bs<=Cs||C<=A&&Cs<=As||C<=B&&Cs<=Bs))\n\t\t\t\t{\n\t\t\t\t\tm=A;\n\t\t\t\t\tn=B;\n\t\t\t\t\tp=C;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(m>=n&&n>=p)\n\t{\n\t\tcout<<\"CBA\"<=p&&p>=n)\n\t{\n\t\tcout<<\"BCA\"<=m&&m>=p)\n\t{\n\t\tcout<<\"CAB\"<=p&&p>=m)\n\t{\n\t\tcout<<\"ACB\"<=m&&m>=n)\n\t{\n\t\tcout<<\"BAC\"<=n&&n>=m)\n\t{\n\t\tcout<<\"ABC\"<i)+(i==k);\n\t\t\t\t b=(i>j)+(i>k);\n\t\t\t\t c=(k>j)+(j>i);\n\t\t\t\t if ((i-j)*(a-b)<0&&(i-k)*(a-c)<0&&(j-k)*(b-c)<0)\n\t\t\t\t {\n\t\t\t\t\t for(a=1;a<=3;a++)\n\t\t\t\t\t {\n\t\t\t\t\t\t if (a==i) cout<<'A';\n\t\t\t\t\t\t if (a==k) cout<<'C';\n\t\t\t\t\t\t if (a==j) cout<<'B';\n\t\t\t\t\t }\n\t\t\t\t\t return 0;\n\t\t\t\t }\n\t\t\t }\n\treturn 0;\n}\n"} +{"label": "101", "index": "50478", "code": "//Name: ??? #\n//Author: ?? #\n//Number: 1000062710 #\n//Date: 2010?11?23?#\n//######################\nint main()\n{\n\tint a,b,c,A = 0,B = 0,C = 0;\n\twhile(1)\n\t{\n\t\tA = 1;\n\t\tB = 2;\n\t\tC = 3;\n\t\ta = (B > A) + (C == A);\n\t b = (A > B) + (A > C);\n\t c = (C > B) + (B > A);\n\t\tif((a == 2)&&(b == 1)&&(c == 0))\n\t\t\tcout << \"ABC\" << endl;\n\t\tbreak;\n\t}\n\twhile(1)\n\t{\n\t\tA = 1;\n\t\tB = 3;\n\t\tC = 2;\n\t\ta = (B > A) + (C == A);\n\t b = (A > B) + (A > C);\n\t c = (C > B) + (B > A);\n\t\tif((a == 2)&&(c == 1)&&(b == 0))\n\t\t\tcout << \"ACB\" << endl;\n\t\tbreak;\n\t}\n\twhile(1)\n\t{\n\t\tB = 1;\n\t\tA = 2;\n\t\tC = 3;\n\t\ta = (B > A) + (C == A);\n\t b = (A > B) + (A > C);\n\t c = (C > B) + (B > A);\n\t\tif((b == 2)&&(a == 1)&&(c == 0))\n\t\t\tcout << \"BAC\" << endl;\n\t\tbreak;\n\t}\n\twhile(1)\n\t{\n\t\tB = 1;\n\t\tC = 2;\n\t\tA = 3;\n\t\ta = (B > A) + (C == A);\n\t b = (A > B) + (A > C);\n\t c = (C > B) + (B > A);\n\n\t\tif((b == 2)&&(c == 1)&&(a == 0))\n\t\t\tcout << \"BCA\" << endl;\n\t\tbreak;\n\t}\n\twhile(1)\n\t{\n\t\tC = 1;\n\t\tB = 2;\n\t\tA = 3;\n\t\ta = (B > A) + (C == A);\n\t b = (A > B) + (A > C);\n\t c = (C > B) + (B > A);\n\t\tif((c == 2)&&(b == 1)&&(a == 0))\n\t\t\tcout << \"CBA\" << endl;\n\t\tbreak;\n\t}\n\twhile(1)\n\t{\n\t\tC = 1;\n\t\tA = 2;\n\t\tB = 3;\n\t\ta = (B > A) + (C == A);\n\t b = (A > B) + (A > C);\n\t c = (C > B) + (B > A);\n\t\tif((c == 2)&&(a == 1)&&(b == 0))\n\t\t\tcout << \"CAB\" << endl;\n\t\tbreak;\n\t}\n\t\treturn 0;\n}"} +{"label": "101", "index": "50479", "code": "/*\n Name:???\n Author: 120012757(chenminhuan)\n Date: 15/10/12 21:40\n\n*/\nvoid print(int A,int B,int C){ //??????? \n //cout<A)+(C==A) ) && (2 - B == (A>B)+(A>C)) && (2 - C) ==(C>B)+(B>A))\n //????????? \n print(A,B,C); \n \n \n \n return 0;\n}"} +{"label": "101", "index": "50480", "code": "int main()\n{\nint a=0,b=0,c=0,a1,b1,c1;//a b c???A B C??? a1 b1 c1 ?ABC????????? \n for(a=1;a<=3;a++)\n {\n for(b=1;b<=3;b++)\n {\n for(c=1;c<=3;c++)\n {\n a1=(b>a)+(c==a);\n b1=(a>b)+(a>c);\n c1=(c>b)+(b>a);\n if((a+a1==3)&&(b+b1==3)&&(c+c1==3))\n {\n if(a==1)\n cout<<\"A\"; \n if(b==1)\n cout<<\"B\";\n if(c==1)\n cout<<\"C\"; \n if(a==2)\n cout<<\"A\"; \n if(b==2)\n cout<<\"B\";\n if(c==2)\n cout<<\"C\";\n if(a==3)\n cout<<\"A\"; \n if(b==3)\n cout<<\"B\";\n if(c==3)\n cout<<\"C\"; \n \n } \n } \n } \n }\nreturn 0;\n}"} +{"label": "101", "index": "50481", "code": "/*\n * bifanliang.cpp\n *\n * Created on: 2012-10-19\n * Author: 99003\n */\n\nint main() {\n\tint a, b, c;\n\tint i,j,t;\n\tint sum1, sum2, sum3;\n\tint arr[10];\n\tchar name[10];\n\tfor (a = 0; a <= 2; a = a + 1) {//abc???10 2??????\n\t\tfor (b = 0; b <= 2; b = b + 1) {\n\t\t\tfor (c = 0; c < 2; c = c + 1) {\n\t\t\t\tif (a != b && b != c && a != c) {\n\t\t\t\t\tsum1 = (b > a) + (c == a);\n\t\t\t\t\tsum2 = (a > b) + (a > c);\n\t\t\t\t\tsum3 = (c > b) + (b > a); //sum????????\n\t\t\t\t\tif (a + sum1 == b + sum2 && b + sum2 == c + sum3) {\n\t\t\t\t\t\tarr[0] = a; //???????\n\t\t\t\t\t\tarr[1] = b;\n\t\t\t\t\t\tarr[2] = c;\n\t\t\t\t\t\tname[0] = 'A';\n\t\t\t\t\t\tname[1] = 'B';\n\t\t\t\t\t\tname[2] = 'C';\n\t\t\t\t\t\tname[3] = '\\0';\n\t\t\t\t\t\tfor (i = 0; i < 3; i++)\n\t\t\t\t\t\t\tfor (j = i + 1; j < 3; j++)\n\t\t\t\t\t\t\t\tif (arr[i] > arr[j]) {\n\t\t\t\t\t\t\t\t\tt = arr[i];\n\t\t\t\t\t\t\t\t\tarr[i] = arr[j];\n\t\t\t\t\t\t\t\t\tarr[j] = t;\n\t\t\t\t\t\t\t\t\tt = name[i];\n\t\t\t\t\t\t\t\t\tname[i] = name[j];\n\t\t\t\t\t\t\t\t\tname[j] = t;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tcout << name[0]< a) + (c == a);\n Rb = (a > b) + (a > c);\n Rc = (c > b) + (b > a);\n if ( Ra == 3 - a && Rb == 3 - b && Rc == 3 - c)\n {\n if (a > b && b > c)\n cout << \"CBA\";\n else\n {\n if (a > c && c > b)\n cout << \"BCA\";\n else\n {\n if (b > a && a > c)\n cout << \"CAB\";\n else\n {\n if (b > c && c > a)\n cout << \"ACB\";\n else\n {\n if (c > a && a > b)\n cout << \"BAC\";\n else\n {\n if (c > b && b > a)\n cout << \"ABC\";\n }\n }\n }\n }\n }\n }\n }\n }\n }\n return 0;\n}\n"} +{"label": "101", "index": "50483", "code": "main()\n{\n char a,b,c,A,B,C;\n a=C;\n b=A;\n c=B; \n printf(\"BCA\");\n getchar();\n}\n"} +{"label": "101", "index": "50484", "code": "/**\n* @file\t\t????.cpp\n* @author\t??\t1000012792\n* @date\t\t2010.11.15\n*/\nint main()\n{\n\tint a, b, c;\n\tfor(a=0;a<3;a++)\t\t\t\t\t\t\t//0,1,2????????\n\t\tfor(b=0;b<3;b++)\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\n\t\t\t\tif((a + (b>a) + (c==a) == 2)&& //??????????????????2\n\t\t\t\t\t(b + (a>b) + (a>c) == 2)&&\n\t\t\t\t\t(c + (c>b) + (b>a) == 2))\n\t\t\t\tif(a>b)\t\t\t\t\t\t\t//??????????????????ABC\n\t\t\t\t{\n\t\t\t\t\tif(b>c)\n\t\t\t\t\t\tcout << \"CBA\";\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(a>c)\n\t\t\t\t\t\t\tcout <<\"BCA\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout <<\"BAC\";\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(a>c)\n\t\t\t\t\t\tcout << \"CAB\";\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(b>c)\n\t\t\t\t\t\t\tcout <<\"ACB\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcout << \"ABC\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\treturn 0;\n}"} +{"label": "101", "index": "50485", "code": "/*\n * 3.15.cpp\n *\n * Created on: 2013-10-17\n * Author: st\n */\nint main()\n{\n\tint A=0,B=0,C=0;\n\tfor(A=1;A<=3;A++)//3???\n\t\tfor(B=1;B<=3;B++)\n\t\t\tfor(C=1;C<=3;C++)\n\t\t\t{\n\t\t\t\tif(A>B&&B>C)//???????????????????????\n\t\t\t\t\t{if(((B>A)+(C==A))<((A>B)+(A>C))&&((A>B)+(A>C))<((C>B)+(B>A)))\n\t\t\t\t\t\tcout<<\"CBA\"<C&&C>B)\n\t\t\t\t {if(((B>A)+(C==A))<((C>B)+(B>A))&&((C>B)+(B>A))<((A>B)+(A>C)))\n\t\t\t\t \tcout<<\"BCA\"<A&&A>C)\n\t\t\t\t {if(((A>B)+(A>C))<((B>A)+(C==A))&&((B>A)+(C==A))<((C>B)+(B>A)))\n\t\t\t\t\tcout<<\"CAB\"<C&&C>A)\n\t\t\t\t {if(((A>B)+(A>C))<((C>B)+(B>A))&&((C>B)+(B>A))<((B>A)+(C==A)))\n\t\t\t\t\tcout<<\"ACB\"<A&&A>B)\n\t\t\t\t {if(((C>B)+(B>A))<((B>A)+(C==A))&&((B>A)+(C==A))<((A>B)+(A>C)))\n\t\t\t\t \tcout<<\"BAC\"<B&&B>A)\n\t\t\t\t {if(((C>B)+(B>A))<((A>B)+(A>C))&&((A>B)+(A>C))<((B>A)+(C==A)))\n\t\t\t\t\tcout<<\"ABC\"<a)+(c==a)==(2-a)&&(a>b)+(a>c)==(2-b)&&(c>b)+(b>a)==(2-c))\n\t\t\t\t//?????????2-a???????????????\u0093???\u0094\n\t\t\t{m[1]=a;m[2]=b;m[3]=c;\n\tn[1]='A';n[2]='B';n[3]='C';\n\t\tfor(j=1;j<=2;j++)\n\t\t\tfor(i=1;i<=3-j;i++)\n\t\t\t\tif(m[i]>m[i+1])\n\t\t\t\t{t=m[i];m[i]=m[i+1];m[i+1]=t;\n\t\t\t\t p=n[i];n[i]=n[i+1];n[i+1]=p;}\t\t//?????????\n\t} }\n\t\tcout<a[0])+(a[0]==a[2]);//?????? \n word[1]=(a[0]>a[1])+(a[0]>a[2]);\n word[2]=(a[2]>a[1])+(a[1]>a[0]);\n if(a[0]+word[0]==2&&a[1]+word[1]==2&&a[2]+word[2]==2)//???? \n {\n b[a[0]]='A';\n b[a[1]]='B'; \n b[a[2]]='C';\n cout<A)+(C==A);\n\t\t\t\t\t\tword[B]=(A>B)+(A>C);\n\t\t\t\t\t\tword[C]=(C>B)+(B>A);//?????????\n\t\t\t\t\t\trank[A]='A';\n\t\t\t\t\t\trank[B]='B';\n\t\t\t\t\t\trank[C]='C';\n\t\t\t\t\t\tif ((word[1]>word[2])&&(word[2]>word[3]))//????????\n\t\t\t\t\t\t\tcout<j)+(i>k);\n\t\t\t\t\tc=(jb>c)==2)\n\t\t\t\t\t\tcout<<\"ABC\"<c>b)==2)\n\t\t\t\t\t\tcout<<\"ACB\"<a>c)==2)\n\t\t\t\t\t\tcout<<\"BAC\"<c>a)==2)\n\t\t\t\t\t\tcout<<\"BCA\"<a>b)==2)\n\t\t\t\t\t\tcout<<\"CAB\"<b>a)==2)\n\t\t\t\t\t\tcout<<\"CBA\"<a) a1=1;else a1=0;\n\t\t\t if(c==a)a2=1;else a2=0;\n\t\t\t if(a>b) b1=1;else b1=0;\n\t\t\t if(a>c) b2=1;else b2=0;\n\t\t\t if(c>b) c1=1;else c1=0;\n\t\t\t if(b>a) c2=1;else c2=0;//?????????????????1????0\n\t\t\t A=a1+a2,B=b1+b2,C=c1+c2;//?????????????ABC??\n\t\t\t\t if(a>b && b>c && Ac && c>b && Aa && a>c && Bc && c>a && Ba && a>b && Cb && b>a && CA)+(A==C);\n\t\t\twords[2]=(A>B)+(A>C);\n\t\t\twords[3]=(C>B)+(B>A);\n\t\t\trank[A]=1;\n\t\t\trank[B]=2;\n\t\t\trank[C]=3; //??????????\n\t\t\tif(words[rank[1]]==2&&words[rank[2]]==1&&words[rank[3]]==0) //???????????\n\t\t\t{\n\t\t\t\tfor(i=1;i<4;i++)\n\t\t\t\t\tcout<<(char)(rank[i]+64);\n //?????????\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "101", "index": "50492", "code": "int main()\n{\n int A,B,C,i; int D,E,F,H,I,J;\n for(A=1;A<=3;A++)\n for(B=1;B<=3;B++)\n for(C=1;C<=3;C++)\n {\n\n D=(B>A);H=(C==A);\n E=(A>B);I=(A>C);\n F=(C>B);J=(B>A);\n\n if (D+H+A==3 && E+I+B==3 && F+J+C==3)\n {\n char a[4];\n a[A]='A';a[B]='B';a[C]='C';\n for(i=1;i<=3;i++) cout< A) + (C == A);\n\t\t\t\tcc2 = (A > B) + (A > C);\n\t\t\t\tcc3 = (C > B) + (B > A);\n\n\t\t\t\tif ((A + cc1 == 2) && (B + cc2 == 2) && (C + cc3 == 2))\n\t\t\t\t{\n if (A == 2 && B == 1 && C == 0) cout <<\"CBA\" <a)+(c==a);//????\n words[2]=(a>b)+(a>c);\n words[3]=(c>b)+(b>a);\n if (words[1] == words[2]\n || words[2] == words[3]\n || words[3] == words[1])//a,b,c??????\n continue;\n\n\n for(int i=1;i<=3;i++)//??\n {\n if(words[i]==2)\n rank[1]=i+64;\n else if(words[i]==1)\n rank[2]=i+64;\n else if(words[i]==0)\n rank[3]=i+64;}}\n }}\n cout<a)+(c==a)==3-a&&(a>b)+(a>c)==3-b&&(c>b)+(b>a)==3-c))\n\t\t\t{\n\t\t\t\toutput(a,b,c,1);\n\t\t\t\toutput(a,b,c,2);\n\t\t\t\toutput(a,b,c,3);\n\t\t\t}\n }\n\t\treturn 0;\n}\n\n\n\nvoid output(int a,int b,int c,int k)\n{\n\tif (a==k)cout<<\"A\";\n else if(b==k)cout<<\"B\";\n\telse cout<<\"C\";\n}"} +{"label": "101", "index": "50496", "code": "int main() //?????\n{\n\n\tfor(int A=0 ; A<3 ; A++) //??A B C?????\n\t{\n\t\tfor(int B=0 ; B<3 ; B++) \n\t\t{\n\t\t\tfor(int C=0 ; C<3 ; C++)\n\t\t\t{\n\t\t\t\tint a=0; //??????a,b,c\n\t\t\t int b=0;\n\t\t\t\tint c=0;\n\t\t\t\tif(B>A) //??A????????\n\t\t\t\t\ta++;\n\t\t\t\tif(C==A) \n\t\t\t\t\ta++;\n\t\t\t\tif(A>B) //??B????????\n\t\t\t\t\tb++;\n\t\t\t\tif(A>C) \n\t\t\t\t\tb++;\n\t\t\t\tif(C>B) //??C????????\n\t\t\t\t\tc++;\n\t\t\t\tif(B>A) \n\t\t\t\t\tc++;\n\t\t\t\tif(((A==B && a==b) || ((A-B)*(a-b)<0)) && ((A==C && a==c) || ((A-C)*(a-c)<0)) && ((B==C && b==c) || ((B-C)*(b-c)<0))) //????????????????????\n\t\t\t\t{\n\t\t\t\t\tint p;\n\t\t\t\t\tint a[10]; //????????a\n\t\t\t\t\tchar b[10]; //?????????b\n\t\t\t\t\tchar k; //????k\n\t\t\t\t\ta[0]=A; //?A,B,C????a??\n\t\t\t\t\ta[1]=B;\n\t\t\t\t\ta[2]=C;\n\t\t\t\t\tb[0]='A'; //?A,B,C??????b??\n\t\t\t\t\tb[1]='B';\n\t\t\t\t\tb[2]='C';\n\t\t\t\t\tfor(int i = 0 ; i < 3 ; i++) //?A,B,C?????\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int j = i+1 ; j < 3 ; j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(a[i]>a[j])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tp=a[i];\n\t\t\t\t\t\t\t\ta[i]=a[j];\n\t\t\t\t\t\t\t\ta[j]=p;\n\n\t\t\t\t\t\t\t\tk=b[i];\n\t\t\t\t\t\t\t\tb[i]=b[j];\n\t\t\t\t\t\t\t\tb[j]=k;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcout<a)+(c==a);\n tb=(a>b)+(a>c);\n tc=(c>b)+(b>a);\n if((a-b)*(ta-tb)<0||a==b&&ta==tb)\n judgea=1;\n if((a-c)*(ta-tc)<0||a==c&&ta==tc)\n judgeb=1;\n if((b-c)*(tb-tc)<0||b==c&&tb==tc)\n judgec=1;\n if(judgea==judgeb&&judgeb==judgec)\n {\n if(a<=c&&a<=b)\n if(b<=c)\n cout<<'A'<<'B'<<'C';\n else\n cout<<'A'<<'C'<<'B';\n if(b<=c&&b<=a)\n if(c<=a)\n cout<<'B'<<'C'<<'A';\n else\n cout<<'B'<<'A'<<'C';\n if(c<=b&&c<=a)\n if(b<=a)\n cout<<'C'<<'B'<<'A';\n else\n cout<<'C'<<'A'<<'B';\n a=b=c=9;\n }\n\t }\nreturn 0;\n\t\n \n}"} +{"label": "101", "index": "50498", "code": "int main()\n{\n\tint a,b,c,i,j;\n\tchar d[3]={0};\n\tfor(a=1;a<3;a++)\n\t{\n\t\tfor(b=0;b<3;b++)\n\t\t{\n\t\t\tfor(c=0;c<3;c++)\n\t\t\t{\t\n\t\t\t\tif(a+b+c==3&&a+(b>a)+(c==a)==2&&b+(a>b)+(a>c)==2&&c+(c>b)+(b>a)==2)\n\t\t\t\t\t{\n\t\t\t\t\t\td[a]='A';\n\t\t\t\t\t\td[b]='B';\n\t\t\t\t\t\td[c]='C';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\nfor(i=0;i<3;i++)\n\tcout<i);\n\t\t\t\t\tB=(i>j)+(i>k);\n\t\t\t\t\tC=(k>j)+(j>i);\n\t\t\t\t\tif((A==(2-i))&&(B==(2-j))&&(C==(2-k)))\n\t\t\t\t\t{\n\t\t\t\t\t\td[i]='A';d[j]='B';d[k]='C';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=2;i++)cout<0;w--)\n {\n for(i=0;i<=j-2;i++)\n {if(b[i]>b[i+1])\n {tmp=b[i+1];\n b[i+1]=b[i];\n b[i]=tmp;\n }}}\n for(w=k-1;w>0;w--)\n {\n for(i=0;i<=k-2;i++)\n {if(c[i]b[j+1]){e=b[j];b[j]=b[j+1];b[j+1]=e;}\n\t }\n }\n for(i=1;i<=m;i++){\n\t for(j=0;j>n)\n {\n\tmaleindex = femaleindex = 0;\n\twhile(n--)\n\t{\n\t\tcin>>str>>temp;\n\t\tif(strcmp(str,\"male\") == 0)\n\t\t male[maleindex++] = temp;\n\t\telse \n\t\t female[femaleindex++] = temp;\n\t}\n\n\tqsort(male,maleindex,sizeof(male[0]),cmp2);\n qsort(female,femaleindex,sizeof(female[0]),cmp1);\n \n\tprintf(\"%.2lf\",male[0]);\n\tfor(i = 1;i < maleindex;i++)\n\t printf(\" %.2lf\",male[i]);\n\n\tfor(i = 0;i < femaleindex;i++)\n\t printf(\" %.2lf\",female[i]);\n\tprintf(\"\\n\");\n }\n return 0;\n}"} +{"label": "102", "index": "50503", "code": "\nint compare1( const void *a , const void *b)\n{\n\tint *p = (int *)a;\n\tint *q = (int *)b;\n\tif(*p > *q)\n\t{\n\t\treturn 1;\n\t}\n\telse if(*p == *q)\n\t{\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\treturn -1;\n\t}\n}//nv\n\nint compare2( const void *a , const void *b)\n{\n\tint *p = (int *)a;\n\tint *q = (int *)b;\n\tif(*p > *q)\n\t{\n\t\treturn -1;\n\t}\n\telse if(*p == *q)\n\t{\n\t\treturn 0;\n\t}\n\telse\n\t{\n\t\treturn 1;\n\t}\n}//nan\n\nint main(int argc, char* argv[])\n{\n\tint male = 0;\n\tint female = 0;\n\tint n;\n\tint i;\n\tfloat a[40];\n\tfloat b[40];\n\tchar c[10];\n\tfloat d;\n\tscanf(\"%d\" , &n);\n\tfor(i = 0 ; i < n ; i++)\n\t{\n\t\tscanf(\"%s\" , c);\n\t\tif(!strcmp(c , \"male\"))\n\t\t{\n\t\t\tscanf(\"%f\" , &d);\n\t\t\ta[male] = d;\n\t\t\tmale++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tscanf(\"%f\" , &d);\n\t\t\tb[female] = d;\n\t\t\tfemale++;\n\t\t}\t\t\n\t}\n\t//painansheng\n\tqsort(a , male , sizeof(float) , compare1);\n\tqsort(b , female , sizeof(float) , compare2);\n\tfor(i = 0 ; i < male ; i++)\n\t{\n\t\tprintf(\"%.2f \" , a[i]);\n\t}\n\tfor(i = 0 ; i < female ; i++)\n\t{\n\t\tprintf(\"%.2f\" , b[i]);\n\t\tif(i != female-1)\n\t\t{\n\t\t\tprintf(\" \");\n\t\t}\n\t}\n\tprintf(\"\\n\");\n\n\treturn 0;\n\n}"} +{"label": "102", "index": "50504", "code": "\n\ndouble f[100];\ndouble g[100];\n\nint main()\n{\n\tint m=0,n=0;\n\tint t;\n\tcin >>t;\n\tint i;\n\twhile (t--)\n\t{\n\t\tdouble tmp;\n\t\tchar sx[10];\n\t\tcin >>sx;\n\t\tcin >>tmp;\n\t\tif (strcmp(sx,\"male\") == 0) f[m++]=tmp;\n\t\telse g[n++]=tmp;\n\t}\n\tsort(f,f+m);\n\tsort(g,g+n);\n\tfor (i=0;i=0;i--) \n\t{\n\t\tif (i!=0)\n\t\t\tprintf(\"%.2f \", g[i]);\n\t\telse \n\t\t\tprintf(\"%.2f\", g[i]);\n\t}\n\tcout <girl[i]){\n\t\t\t\te=girl[i+1];\n\t\t\t\tgirl[i+1]=girl[i];\n\t\t\t\tgirl[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ib[t]) {\np=b[i];\nb[i]=b[t];\nb[t]=p;\n}\nfor (i=1;i<=k;i++)\nfor (t=i;t<=k;t++)\nif (c[i]male[i+1]){\n\t\t\t\te=male[i+1];\n\t\t\t\tmale[i+1]=male[i];\n\t\t\t\tmale[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(l=1;l<=k;l++){\n\t\tfor(i=0;im[j+1])\n {\n temp=m[j];\n m[j]=m[j+1];\n m[j+1]=temp;\n } \n }\n }\n for(i=1;ia[s]){\n\t\t\t\t e=a[i];\n\t\t\t\t a[i]=a[s];\n\t\t\t\t a[s]=e;\n\t\t\t }\n\t\t }\n\t }\n\t for(i=0;i>n;\n\tint aa = 0,bb = 0;\n\tfor(int i = 0; i < n; i++){\n\t\tchar temp[10];\n\t\tcin>>temp;\n\t\tfloat height;\n\t\tcin>>height;\n\t\tif(temp[0] == 'm'){\n\t\t\ta[aa] = height;\n\t\t\taa++;\n\t\t}else{\n\t\t\tb[bb] = height;\n\t\t\tbb++;\n\t\t}\n\t}\n\n\tqsort(a,aa,sizeof(int),compare1);\n\tqsort(b,bb,sizeof(int),compare2);\n\n\tfor(int i = 0; i < aa; i++)\n\t\tprintf(\"%.2f \", a[i]);\n\tfor(int i = 0; i < bb; i++){\n\t\tif(i == bb - 1){\n\t\t\tprintf(\"%.2f\", b[i]);\n\t\t}else{\n\t\t\tprintf(\"%.2f \", b[i]);\n\t\t}\n\t}\n\n\t//cin>>n;\n\n}"} +{"label": "102", "index": "50511", "code": "int main(){\n\tint i,n,p=0,l=0,L,K,k=0,j;\n\tdouble m[1000],f[1000],h[1000],t;\n\tchar sex[1000][10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[i+1]){ \n \t \t \tt=m[i];\n \t \t \tm[i]=m[i+1];\n \t \t \tm[i+1]=t ;\n }\n }\n\t }\n\t printf(\"%.2lf\",m[0]);\n\t for(i=1;isz[j]){\n\t\t\te=sz[i];\n\t\t\tsz[i]=sz[j];\n\t\t\tsz[j]=e;\n\t\t}\n\t}\n}\nfor(i=0;i0; j--) {\n for (int r=0; rd[r+1]) {\n double tmp;\n tmp=d[r+1];\n d[r+1]=d[r];\n d[r]=tmp;\n }\n }\n }\n for (int j=h-1; j>0; j--) {\n for (int r=0; r=sg[i+1])\n\t\t\t{\n\t\t\t\tt=sg[i],sg[i]=sg[i+1],sg[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(j=1;ja[j].h)\n {\n t=a[i];\n a[i]=a[j];\n a[j]=t;\n } \n } \n }\n for(i=0;i=0;i--)\n {\n if(strcmp(a[i].sex,\"female\")==0)\n { \n if(count!=count2-1)\n {\n printf(\"%.2f \",a[i].h);\n count++;\n }\n else\n printf(\"%.2f\",a[i].h);\n }\n \n }\n getchar();\n getchar();\n}\n"} +{"label": "102", "index": "50516", "code": "void line(int n,float *p);\nint main()\n{\n struct people\n {\n char gender[10];\n float tall;\n };\n struct people people[45];\n int n,i,j,k,flag;\n j=k=0;flag=1;\n float m[45],f[45];\n scanf(\"%d\",&n);\n for(i=0;i=0;i--)printf(\" %.2f\",f[i]);\n return 0;\n}\nvoid line(int n,float *p)\n{\n int i,j;\n float k;\n for(i=0;ip[j+1])\n {\n k=p[j];\n p[j]=p[j+1];\n p[j+1]=k;\n }\n }\n }\n}"} +{"label": "102", "index": "50517", "code": "int main(){\n int n,i,j=0,k=0;\n int m=0,t,q,u;\n char e[50];\n double r[50],a[50],b[50],g;\n scanf(\"%d\",&n);\n for(i=0;ib[q]){\n q=u;};\n }\n if(q!=t){\n g=b[q];\n b[q]=b[t];\n b[t]=g;\n };\n } \n for(i=0;im[q+1])\n\t\t {\n\t\t\t temp=m[q];\n\t\t\t\tm[q]=m[q+1];\n\t\t\t\tm[q+1]=temp;\n\t\t }\n\t\t}\n\t}\n\tfor(i=0;i<=k-1-1;i++)\n\t{\n\t\tfor(q=0;qf[q+1])\n\t\t {\n\t\t\t temp=f[q];\n\t\t\t\tf[q]=f[q+1];\n\t\t\t\tf[q+1]=temp;\n\t\t }\n\t\t}\n\t}\n\n\tprintf(\"%.2lf\",m[0]);\n\tfor(i=1;ia[j])\n {\n m=a[i];\n a[i]=a[j];\n a[j]=m;\n }\n }\n }\n\n}\nmain()\n{\n int n,j,i;\n scanf(\"%d\",&n);\n int*p=(int*)malloc(n*sizeof(int));\n double*q=(double*)malloc(n*sizeof(double));\n char c[10];\n int m=0,f=0;\n for(int i=0;i=0;i--)\n {\n if(i==0)\n printf(\"%.2lf\",b[i]);\n else\n printf(\"%.2lf \",b[i]);\n }\n getchar();\n getchar();\n getchar();\n}"} +{"label": "102", "index": "50521", "code": "int main()\n{\n int n,i,j=0,k=0,r=0;\n\tdouble mh[50],fh[50],zs=0;\n scanf(\"%d\",&n);\n\tfor(i=0;i0;i--)\n\t{\n\t\tfor(r=0;rmh[r+1])\n\t\t\t{\n\t\t\t\tdouble tmpm;\n\t\t\t\ttmpm=mh[r+1];\n\t\t\t\tmh[r+1]=mh[r];\n\t\t\t\tmh[r]=tmpm;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=k-1;i>0;i--)\n\t{\n\t\tfor(r=0;rfh[r+1])\n\t\t\t{\n\t\t\t\tdouble tmpf;\n\t\t\t\ttmpf=fh[r+1];\n\t\t\t\tfh[r+1]=fh[r];\n\t\t\t\tfh[r]=tmpf;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;i--)\n\t{\n\t\tif(i==k-1)\n\t\t printf(\"%.2lf\",fh[i]);\n\t\telse\n\t\t\tprintf(\" %.2lf\",fh[i]);\n\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50522", "code": "\nint compare(const void *elem1,const void *elem2)\n{\n return *(float *)elem1>*(float *)elem2 ?1:-1; \n} \n\n\nmain()\n{\n int n,i,k1,k2,j1,j2;\n k1=k2=j1=j2=0;\n scanf(\"%d\",&n);\n char p1[10]={'m','a','l','e','\\0'}; \n char p2[10]={'f','e','m','a','l','e','\\0'};\n \n char a[n][10];\n float b[n];\n float *c,*d;\n for(i=0;i=0;i--)printf(\" %.2f\",d[i]);\n \n \n}\n"} +{"label": "102", "index": "50523", "code": "\nint n;\ndouble male[50],female[50];\nint cntm,cntf;\nchar sex[10];\n\nint main()\n{\n cin>>n;\n cntm=cntf=0;\n for(int i=0;i>male[cntm++];\n else\n cin>>female[cntf++];\n }\n sort(male,male+cntm);\n sort(female,female+cntf);\n for(int i=0;i0;i--)\n printf(\"%.2f \",female[i]);\n printf(\"%.2f\\n\",female[0]);\n return 0;\n}\n"} +{"label": "102", "index": "50524", "code": "struct ren{\n char sex[8];\n double gao;\n}a[45];\nmain()\n{\n int i,j,k,n;\n scanf(\"%d\",&n);\n for(i=0;i2)\n {\n for(i=0;ia[1].gao)\n {\n temp=a[1];\n a[1]=a[0];\n a[0]=temp;\n }\n }\n for(i=0;ia[k])\n {\n b=a[i];\n a[i]=a[k];\n a[k]=b;\n }\n }\n }\n}\nint main()\n{\n char g[41][7];\n int n,i,j=0,k=0;\n float a[40],b[40];\n scanf(\"%d\",&n);\n for(i=0;ia[q+1])\n\t\t{\n\t\t\tm=a[q];\n\t\t\ta[q]=a[q+1];\n\t\t\ta[q+1]=m;\n\t\t}\n\t}\n\t\n\tfor(p=0;p> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n cin >> sex[i];\n\t\tif (strcmp(sex[i], flag) == 0)\n\t\t{\n\t\t\tcin >> maleheight[m];\n\t\t\tm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcin >> femaleheight[f];\n\t\t\tf++;\n\t\t}\n\t}\n\tm--;\n\tf--;\n\tfor (i = 1; i < m; i++)\n\t{\n\t\tfor (j = i + 1; j <= m; j++)\n\t\t{\n\t\t\tif (maleheight[i] > maleheight[j])\n\t\t\t{\n\t\t\t\tt = maleheight[i];\n\t\t\t\tmaleheight[i] = maleheight[j];\n\t\t\t\tmaleheight[j] = t;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 1; i < f; i++)\n\t{\n\t\tfor (j = i + 1; j <= f; j++)\n\t\t{\n\t\t\tif (femaleheight[i] < femaleheight[j])\n\t\t\t{\n\t\t\t\tt = femaleheight[i];\n\t\t\t\tfemaleheight[i] = femaleheight[j];\n\t\t\t\tfemaleheight[j] = t;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 1; i <= m; i++)\n\t{\n\t\tcout << fixed << setprecision(2) << maleheight[i] << \" \";\n\t}\n\tfor (i = 1; i <= f; i++)\n\t{\n\t\tcout << fixed << setprecision(2) << femaleheight[i];\n\t\tif (i != f)\n\t\t{\n\t\t\tcout << \" \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout <g[j+1]){\n k=g[j+1];\n\t\t\tg[j+1]=g[j];\n\t\t\tg[j]=k;}\n\t}\n}\n\tfor(i=0;it;i--){\n\t\tprintf(\"%.2lf \",g[i]);}\n\tprintf(\"%.2lf\",g[t]);\n\n\n\nreturn 0;\n}"} +{"label": "102", "index": "50529", "code": "\nint s[50];\nfloat l[50];\nchar str[10];\n\nint main()\n{\n\t//freopen(\"data.txt\",\"r\",stdin);\n\tint n,i,j;\n\tfloat t;\n\tint tp;\n\tint b;\n\tscanf(\"%d\",&n);\n\tfor(i=0;il[j+1])\n\t\t\t{\n\t\t\t\tt=l[j];l[j]=l[j+1];l[j+1]=t;\n\t\t\t\ttp=s[j];s[j]=s[j+1];s[j+1]=tp;\n\t\t\t}\n\t\t}\n\t}\n\n\tb=0;\n\tfor(i=0;i=0;i--)\n\t{\n\t\tif(s[i]==0)\n\t\t{\n\t\t\tprintf(\"%.2f\",l[i]);b++;\n\t\t}\n\t\tif(b!=n&&s[i]==0)\n\t\t\tprintf(\" \");\n\t}\n\n\tprintf(\"\\n\");\n\n\treturn 0;\n}"} +{"label": "102", "index": "50530", "code": "struct person\n{\n char sex[8];\n double hgt;\n};\nint compare(const void*a,const void*b)\n{\n if((((struct person*)b)->hgt)-(((struct person*)a)->hgt)>0)\n return -1;\n else\n return 1;\n}\nmain()\n{\n int i,j,k,m,n;\n struct person a[41];\n scanf(\"%d\",&n);\n for(i=0;i=0;i--)\n {\n if(a[i].sex[0]=='f')\n printf(\" %.2lf\",a[i].hgt);\n }\n}\n"} +{"label": "102", "index": "50531", "code": "int main()\n{\n\tint n,i,j,t;\n\tfloat h[40],k;\n\tchar s[40][7],x[7],a[5]={\"male\"},b[7]={\"female\"};\n\tscanf(\"%d\",&n);\n\tfor(i=0;ih[j+1])\n\t\t\t{\n\t\t\t\tk=h[j];\n\t\t\t\th[j]=h[j+1];\n\t\t\t\th[j+1]=k;\n\t\t\t\tstrcpy(x,s[j]);\n\t\t\t\tstrcpy(s[j],s[j+1]);\n\t\t\t\tstrcpy(s[j+1],x);\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;j--)\n {\n \tif(strcmp(s[j],b)==0)\n \t{\n \t\tprintf(\" %.2f\",h[j]);\n \t}\n }\n printf(\"\\n\");\n return 0;\n}"} +{"label": "102", "index": "50532", "code": "float cmp(float *a,int n)\n{\n\tfloat temp;\n\tfor(int i=0;ii;j--)\n\t\t{\n\t\t\tif(a[j]0;k--)\n\t\tprintf(\" %.2f\",woman[k]);\n\tprintf(\" %.2f\\n\",woman[0]);\n}\n"} +{"label": "102", "index": "50533", "code": "int main()\n{\n\tstruct{\n\t\tchar gender[6];\n\t\tfloat h;\n\t}a[50],b[50],c[50],t;\n\tint n,i,j=0,k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ii;j--)\n\t\t{\n\t\t\tif(b[j].hi;j--)\n\t\t{\n\t\t\tif(c[j].h>c[j-1].h)\n\t\t\t{\n\t\t\t\tt=c[j];\n\t\t\t\tc[j]=c[j-1];\n\t\t\t\tc[j-1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%1.2f\",b[0].h);\n\tfor(i=1;ia[i]){\n\t\t\te=a[i];\n\t\t\ta[i]=a[l];\n\t\t\ta[l]=e;\n\t\t}\n\t}\n}\nfor(i=0;i>n;\n\tint aa=0,bb=0;\n\tfor(int i=0;i>temp;\n\t\tfloat height;\n\t\tcin>>height;\n\t\tif(temp[0]=='m')\n\t\t{\n\t\t\ta[aa]=height;\n\t\t\taa++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[bb]=height;\n\t\t\tbb++;\n\t\t}\n\t}\n\tqsort(a,aa,sizeof(int),compare1);\n\tqsort(b,bb,sizeof(int),compare2);\n\tfor(int i=0;i>n;\n cin.get();\n\tfor(i=0,j=0;i+j>sex>>h;\n\t\tif(sex[0]=='m')\n\t{\n\t\th1[i]=h;\n\t\ti++;\n\t}\n\telse\n\t{\n\t\th2[j]=h;\n\t\tj++;\n\t}\n\t}\n for(p=0;ph1[q+1])\n\t\t\t{\n\t\t\t\tt=h1[q];\n\t\t\t h1[q]=h1[q+1];\n\t\t\t\th1[q+1]=t;\n\t\t\t}\n\tfor(p=0;pnan[i+1])\n {\n t=nan[i];\n nan[i]=nan[i+1];\n nan[i+1]=t; \n } \n }\n for(j=0;jmale[j]){\n\t\t\t\tmin=male[j];\n\t\t\t\ttmp=j;\n\t\t\t}\n\t\t}\n\t\tmale[tmp]=male[i];\n\t\tmale[i]=min;\n\t}\n\t\n}\nvoid sor2(){\n\tint i,j,tmp;\n\tdouble min;\n\n\tfor(i=0;ifemale[j]){\n\t\t\t\tmin=female[j];\n\t\t\t\ttmp=j;\n\t\t\t}\n\t\t}\n\t\tfemale[tmp]=female[i];\n\t\tfemale[i]=min;\n\t}\n\t\n}\n\nint main(void){\n\tint n,i;\n\tchar sex[10];\n\n\tscanf(\"%d\",&n);\n\tmk=0;\n\tfk=0;\n\tfor(i=0;i0;i--)\n\t\tprintf(\"%.2f \",female[i]);\n\tprintf(\"%.2f\\n\",female[0]);\n}"} +{"label": "102", "index": "50539", "code": "int main(){\n\tint num,i,j=0,k=0,m,n;\n\tdouble man[50],woman[50],r[50],e;\n\tchar sx[50][10];\n\tscanf(\"%d\",&num);\n\tfor(i=0;iman[m+1]){\n e=man[m+1];\n\t\t\t man[m+1]=man[m];\n\t\t\t man[m]=e;\n\t\t\t}\n\t\t}\t\n\t}\n\tfor(i=1;i<=k;i++){\n\t\tfor(n=0;n 0){\n\t\tint k = 0;\n\t\twhile(k < i){\n\t\t\tif(line[k].height > line[k+1].height){\n\t\t\t\tperson tmp = line[k];\n\t\t\t\tline[k] = line[k+1];\n\t\t\t\tline[k+1] = tmp;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\ti--;\n\t}\n\n\ti = 0;\n\twhile(i < N){\n\t\tif(line[i].sex == 1){\n\t\t\tprintf(\"%s\", line[i].h);\n\t\t\tcount++;\n\t\t\tif(count != N)\n\t\t\tprintf(\" \");\n\t\telse \n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\t\n\t\ti++;\n\t}\n\ti = N-1;\n\twhile(i >= 0){\n\t\tif(line[i].sex == 0){\n\t\t\tprintf(\"%s\", line[i].h);\n\t\t\tcount++;\n\t\t\tif(count != N)\n\t\t\tprintf(\" \");\n\t\telse \n\t\t\tprintf(\"\\n\");\n\t\t}\n\t\t\n\t\ti--;\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50541", "code": "int main()\n{\n\tint n,i,a=0,b=0,k,j;\n\tscanf(\"%d\\n\",&n);\n\tchar s1[10]=\"male\";\n\tchar s2[10]=\"female\";\n\tstruct stu{\n\t\tchar sex[10];\n\t\tdouble hei;\n\t}stu[40];\n\tdouble sz1[40];\n\tdouble sz2[40];\n\tfor(i=0;isz1[j+1])\n\t\t\t{\n\t\t\t\te=sz1[j+1];\n\t\t\t\tsz1[j+1]=sz1[j];\n\t\t\t\tsz1[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\t\tfor(k=1;kfemale[j-1])\n\t\t\t{\n\t\t\t\te=female[j-1];\n\t\t\t\tfemale[j-1]=female[j];\n\t\t\t\tfemale[j]=e;\n\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[c]){\n\t\t\t\th=m[b];\n\t\t\t\tm[b]=m[c];\n\t\t\t\tm[c]=h;\n\t\t\t}\n\t\t}\n\t}\n\tfor(b=0;bp[j+1].h)\n\t\t\t{\n\t\t\t\tt=p[j];\n\t\t\t\tp[j]=p[j+1];\n\t\t\t\tp[j+1]=t;\n\t\t\t}\n\t\t\tif(p[j].sex[0]=='f' && p[j+1].sex[0]=='f' && p[j].hsex[0] == 'm' && bb->sex[0] == 'f')\n\t\treturn -1;\n\telse if (aa->sex[0] == 'f' && bb->sex[0] == 'm')\n\t\treturn 1;\n\telse if (aa->sex[0] == 'm')\n\t{\n\t\treturn aa->hight < bb->hight ? -1 : 1;\n\t}\n\telse\n\t\treturn aa->hight < bb->hight ? 1 : -1;\n}\n\nint main()\n{\n\tint n, i;\n\t//freopen(\"in.txt\", \"r\", stdin);\n\tscanf(\"%d\", &n);\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tscanf(\"%s%f\", &a[i].sex, &a[i].hight);\n\t}\n\tqsort(a, n, sizeof (area), cmp);\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tprintf(\"%.2f\", a[i].hight);\nif (i < n -1)\nprintf(\" \");\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50546", "code": "main()\n{\n\tint n,i,j,p,q;\n\tchar a[40][7];\n\tfloat b[40],b1[40],b2[40],t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ib1[i+1])\n\t\t\t{\n\t\t\t\tt=b1[i];\n\t\t\t\tb1[i]=b1[i+1];\n\t\t\t\tb1[i+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j> num;\n for (i = 0; i < num; i++)\n {\n cin >> gender[i];\n if (gender[i][0] == 'm')\n {\n cin >> maleheight[j];\n j++;\n male++;\n }\n else\n {\n cin >> femaleheight[k];\n k++;\n female++;\n } \n }\n for (i = 0; i < male; i++)\n {\n for (j = 0; j < male - 1 - i; j++)\n {\n if (maleheight[j] - maleheight[j + 1] > 0)\n {\n temp = maleheight[j];\n maleheight[j] = maleheight[j + 1];\n maleheight[j + 1] = temp;\n }\n }\n }\n for (i = 0; i < female; i++)\n {\n for (j = 0; j < female - 1 - i; j++)\n {\n if (femaleheight[j] - femaleheight[j + 1] > 0)\n {\n temp = femaleheight[j];\n femaleheight[j] = femaleheight[j + 1];\n femaleheight[j + 1] = temp;\n }\n }\n }\n cout << fixed << setprecision(2);\n for (i = 0; i < male; i++)\n {\n cout << maleheight[i] << \" \";\n }\n for (i = female - 1; i > 0; i--)\n {\n cout << femaleheight[i] << \" \";\n }\n cout << femaleheight[0];\n \n return 0;\n}\n"} +{"label": "102", "index": "50548", "code": "int main(){\n int n,i,j,p=0,q=0;\n double m[50],w[50],e;\n char s[50],b[10]=\"male\";\n scanf(\"%d\",&n);\n for(i=0;im[j+1]){\n\t\t\t e=m[j];\n\t\t\t m[j]=m[j+1];\n\t\t\t m[j+1]=e;\n\t\t }\n\t }\n }\n for(i=0;iw[j+1]){\n\t\t\t e=w[j];\n\t\t\t w[j]=w[j+1];\n\t\t\t w[j+1]=e;\n\t\t }\n\t }\n }\n for(i=p-1;i>=0;i--){\n\t printf(\" %.2lf\",w[i]);\n }\n return 0;\n}\n\n\n\n\n"} +{"label": "102", "index": "50549", "code": "int main(){\n\tstruct point{\n\t\tchar a[100];\n\t\tdouble b;\n\t}points[100];\n\tint n,i=0,k=1;\n\tchar p[100];\n\tdouble d;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ipoints[i+1].b){\n\t\t\t\td=points[i+1].b;\n\t\t\t\tpoints[i+1].b=points[i].b;\n\t\t\t\tpoints[i].b=d;\n\t\t\t\tstrcpy(p,points[i+1].a);\n\t\t\t\tstrcpy(points[i+1].a,points[i].a);\n\t\t\t\tstrcpy(points[i].a,p);\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;i--){\n\t\tif(strcmp(points[i].a,\"female\")==0){\n\t\t\tprintf(\" %.2lf\",points[i].b);\n\t\t}\n\t}\n\n\n\n\n\t\n\n\n\t\n\t return 0;\n}"} +{"label": "102", "index": "50550", "code": "int main()\n{\n int n,ans=0;\n cin>>n;\n int aa=0;\n int bb=0;\n double a[10000];\n double b[10000];\n for (int i=1;i<=n;i++)\n {\n char s[100];double t;\n cin>>s>>t;\n // cout<=1;i--) if (i!=1)printf(\"%.2f \",b[i]);else printf(\"%.2f\\n\",b[i]);\n //for (;;);\n} "} +{"label": "102", "index": "50551", "code": "int main()\n{\n\tint i,j,k=0,n;\n\tdouble a[50]={0},e;\n\tchar b[50][10]={'\\0'},c[20]={'\\0'};\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;i--){\n\t\tif(strcmp(b[i],\"male\")==0){\n\t\t\tif(k==0){\n\t\t\t\tprintf(\"%.2lf\",a[i]);\n\t\t\t\tk++;\n\t\t\t}\n\t\t\telse printf(\" %.2lf\",a[i]);\n\t\t}\n\t}\n\tfor(i=0;if2)\n\t\treturn 1;\n\telse\n\t\treturn -1;\n}\n\nint main()\n{\n\tint i,j,k;\n\tint n;\n float h,h1[50],h2[50];\n\twhile(scanf(\"%d\",&n)!=EOF)\n\t{\n\t\tchar temp[20];\n\t\tint cnt0=0,cnt1=0;\n\t\tfor(i=0;i0;i--)\n\t\t\tprintf(\"%.2f \",h2[i]);\n\t\tprintf(\"%.2f\\n\",h2[0]);\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50553", "code": "int main(){\n\tint n,i,j,k,p;\n\tdouble sg,ns[50],nv[50],e;\n\tchar xb[10];\n\tscanf(\"%d\",&n);\n\tj=0;\n\tk=0;\n\tfor(i=0;ins[p+1]){\n\t\t\t\te=ns[p];\n\t\t\t\tns[p]=ns[p+1];\n\t\t\t\tns[p+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;if[j]){\n\t\t\t\ttemp=f[i];\n\t\t\t\tf[i]=f[j];\n\t\t\t\tf[j]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;j--){\n\t\tif(m[j]0;j--){\n\t\tif(f[j]>f[j-1]){\n\t\t\tz=f[j];\n\t\t\tf[j]=f[j-1];\n\t\t\tf[j-1]=z;\n\t\t}\n\t}\n\tif(i==b-1){\n\tprintf(\"%.2lf\",f[i]);\n\t}else{\n\tprintf(\"%.2lf \",f[i]);\n\t}\n}\n\n\nreturn 0;\n}"} +{"label": "102", "index": "50556", "code": "int main()\n{\n\tint n,i,j,k,boys,girls;\n\tchar tmp[10];\n\tfloat boy[45],girl[45];\n\tfloat shengao,temp;\n\tscanf(\"%d\",&n);\n\tgetchar();\n\tfor(i=1,j=1,k=1;i<=n;i++)\n\t{\n\t\tscanf(\"%s\",tmp);\n\t\tscanf(\"%f\",&shengao);\n\t\tif(tmp[0]=='f')\n\t\t{\n\t\t\tgirl[j]=shengao;\n\t\t\tj++;\n\t\t}\n\t\telse if(tmp[0]=='m')\n\t\t{\n\t\t\tboy[k]=shengao;\n\t\t\tk++;\n\t\t}\n\t}\n\tboys=k-1;\n\tgirls=j-1;\n\tfor(j=1;j<=boys-1;j++)\n\t{\n\t\tfor(i=1;i<=boys-j;i++)\n\t\t{\n\t\t\tif(boy[i]>boy[i+1])\n\t\t\t{\n\t\t\t\ttemp=boy[i];\n\t\t\t\tboy[i]=boy[i+1];\n\t\t\t\tboy[i+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;j<=girls-1;j++)\n\t{\n\t\tfor(i=1;i<=girls-j;i++)\n\t\t{\n\t\t\tif(girl[i]sg[i+1])){\n e=sg[i];\n sg[i]=sg[i+1];\n sg[i+1]=e;\n strcpy(f,xb[i]);\n strcpy(xb[i],xb[i+1]);\n strcpy(xb[i+1],f);\n }\n }\n }\n printf(\"%.2f\",sg[0]);\n for(i=1;ic[j+1]){\n g=c[j];\n c[j]=c[j+1];\n c[j+1]=g;\n }\n }\n }\n for(i=1;im[j])\n{\ndouble t=m[i];\nm[i]=m[j];\nm[j]=t;\n}\n\nfor (i=0; i> n;\n\tfor (i = 0; i < n; i++) // ??????j??????k?????\n\t{\n\t\tcin >> gender >> height;\n\t\tif (gender[0] == 'm') \n\t\t{\n\t\t\tboy_height[j] = height; \n\t\t\tj++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgirl_height[k] = height;\n\t\t\tk++;\n\t\t}\n\t}\n\tfor (r = 0; r < j - 1; r++)\n\t{\n\t\tfor (u = r + 1; u < j; u++)\n\t\t{\n\t\t\tif (boy_height[r] > boy_height[u])\n\t\t\t{\n\t\t\t\ttemp = boy_height[r];\n\t\t\t\tboy_height[r] = boy_height[u];\n\t\t\t\tboy_height[u] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (s = 0; s < k - 1; s++)\n\t{\n\t\tfor (v = s + 1; v < k; v++)\n\t\t{\n\t\t\tif (girl_height[s] < girl_height[v])\n\t\t\t{\n\t\t\t\ttemp = girl_height[s];\n\t\t\t\tgirl_height[s] = girl_height[v];\n\t\t\t\tgirl_height[v] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (r = 0; r < j; r++)\n\t{\n\t\tcout << fixed << setprecision(2)<< boy_height[r] << \" \";\n\t}\n\tfor (r = 0; r < k - 1; r++)\n\t{\n\t\tcout << fixed << setprecision(2) << girl_height[r] << \" \";\n\t}\n\tcout << girl_height[k - 1];\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50561", "code": "int main(){\n int i,j,s,a,b,e,h;\n a=0;b=0;\n e=0;h=0;\n double m,c,n;\n double x[100],y[100];\n char z[100][10];\n scanf(\"%d\",&s);\n for(i=0;i0;i--)\n for(j=0;jx[j+1])\n { c=x[j];\n x[j]=x[j+1];\n x[j+1]=c;\n }\n } \n for(i=b;i>0;i--)\n for(j=0;jc[k+1]) {l=c[k+1];c[k+1]=c[k];c[k]=l;}\n\t }\n }\nprintf(\"%.2lf\",c[0]);\nfor(i=1;i *(double *)b)\n\t\treturn 1;\n\telse if (*(double *)a < *(double *)b)\n\t\treturn -1;\n\telse \n\t\treturn 0;\n}\n\nint main()\n{\n\tint n;\n\tint mCount= 0, fCount = 0;\n\tint i;\n\tchar temp[10];\n\tdouble height;\n\tcin >> n;\n\tfor (i=0; i> temp;\n\t\tcin >> height;\n\t\tif (strcmp(temp, \"male\") == 0)\n\t\t{\n\t\t\tmHeight[mCount++] = height;\n\t\t}\n\t\telse\n\t\t\tfHeight[fCount++] = height;\n\t}\n\tqsort(mHeight, mCount, sizeof(double), comp);\n\tqsort(fHeight, fCount, sizeof(double), comp);\n\t\n\tfor (i=0; iheight1[p+1]){exchange=height1[p];height1[p]=height1[p+1];height1[p+1]=exchange;}}}\n\tfor(i=0;i0)\n\t\tr=-1;\n\telse if(*(float *)a-*(float *)b==0)\n\t\t\tr=0;\n\t\telse r=1;\n\treturn r;\n}\nint main()\n{\n\tint n,i,x=0,y=0;\n\tfloat h;\n\tchar temp[10];\n\tchar sex[2][10]={\"male\",\"female\"};\n\tfloat height[2][40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;iq[j+1].b)\n\t\t\t{\n\t\t\t\tk=q[j].b;\n\t\t\t\tq[j].b=q[j+1].b;\n\t\t\t\tq[j+1].b=k;\n\t\t\t\tstrcpy(e,q[j].a);\n\t\t\t\tstrcpy(q[j].a,q[j+1].a);\n\t\t\t\tstrcpy(q[j+1].a,e);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(i=0;i<=n-1;i++)\n\t{\n\t\tif(q[i].a[0]=='m')\n\t\t{\n\t\t\tprintf(\"%.2lf \",q[i].b);\n\t\t\t\n\t\t}\n\t}\n\tl=0;\n\tfor(i=n-1;i>=0;i--)\n\t{\n\t\tif(q[i].a[0]=='f')\n\t\t{\n\t\t\td[l]=q[i].b;\n\t\t\tl++;\n\t\t}\n\t}\n\tfor(i=0;i<=l-2;i++)\n\t\tprintf(\"%.2lf \",d[i]);\n\tprintf(\"%.2lf\",d[l-1]);\n\treturn 0;\n}\n\t\t\t\n\n\t"} +{"label": "102", "index": "50568", "code": "/*************************************************************************************************************\n* @file .cpp\n* @author ????\n* @date 11.01\n* @description\n* \n*/\n\n\nint main()\n{\n\tint j = 0, k = 0, i, m, n, l;\n\tchar gender[7];\n\tfloat temp;\n\tfloat female[40];\n\tfloat male[40];\n\tcin >> n;\n\tcin.get();\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tcin >> gender;\n\t\tif (strlen(gender) == 6)\n\t\t{\n\t\t\tcin >> female[j];\n\t\t\tj++;\n\t\t}\n\t\tif (strlen(gender) == 4)\n\t\t{\n\t\t\tcin >> male[k];\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(m = 0; m < k; m++)\n\t{\n\t\tfor(l = m + 1; l < k; l++)\n\t\t{\n\t\t\tif (male[m] > male[l])\n\t\t\t{\n\t\t\t\ttemp = male[m];\n\t\t\t\tmale[m] = male[l];\n\t\t\t\tmale[l] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(m = 0; m < j; m++)\n\t{\n\t\tfor(l = m + 1; l < j; l++)\n\t\t{\n\t\t\tif (female[m] < female[l])\n\t\t\t{\n\t\t\t\ttemp = female[m];\n\t\t\t\tfemale[m] = female[l];\n\t\t\t\tfemale[l] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2f\",male[0]);\t\n\tfor (i = 1; i < k; i++)\n\t{\n\t\tcout <<\" \";\n\t\tprintf(\"%.2f\",male[i]);\n\t}\n\tfor (i = 0; i < j; i++)\n\t{\n\t\tcout <<\" \";\n\t\tprintf(\"%.2f\",female[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50569", "code": "struct data{\n\tchar sex[7];\n\tfloat h;\n}stu[40],m[39],f[39],temp;\n\nint main()\n{\n\tint n,i,j,male,female;\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[j+1].h){\n\t\t\t\ttemp=m[j+1];\n\t\t\t\tm[j+1]=m[j];\n\t\t\t\tm[j]=temp;\n\t\t\t}\n\tfor(i=0;if[j+1].h){\n\t\t\t\ttemp=f[j+1];\n\t\t\t\tf[j+1]=f[j];\n\t\t\t\tf[j]=temp;\n\t\t\t}\n\tfor(i=0;i=1;i--)\n\t\tprintf(\"%.2f \",f[i].h);\n\tprintf(\"%.2f\\n\",f[i].h);\n\treturn 0;\n}"} +{"label": "102", "index": "50570", "code": "int main()\n{\n\tchar sex[1000];\n\tdouble m[10000],f[10000],temp;\n\tint i,j,k,n,xm=0,xf=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[j+1])\n\t\t{\n\t\t\ttemp=m[j];\n\t\t\tm[j]=m[j+1];\n\t\t\tm[j+1]=temp;\n\t\t}\n\t}\n\tfor(i=0;iman[x+1])\n\t\t\t{\n\t\t\t\te=man[x];\n\t\t\t\tman[x]=man[x+1];\n\t\t\t\tman[x+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1;k<=m;k++)\n\t{\n\t\tfor(x=0;xa[j])\n {\n p=a[i];\n a[i]=a[j];\n a[j]=p;\n }\n for(i=0;istu[j].h)\n\t\t\t{\n\t\t\t\ttmph=stu[i].h;\n\t\t\t\tstu[i].h=stu[j].h;\n\t\t\t\tstu[j].h=tmph;\t\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;im[x+1])\n\t\t{\n\t\t\te=m[x];\n\t\t\tm[x]=m[x+1];\n\t\t\tm[x+1]=e;\n\t\t}\n\t\t}\n\t}\n\tfor(k=0;k<=q;k++)\n\t{\n\t\tfor(y=0;ym[j])\n {\n g=m[i];\n m[i]=m[j];\n m[j]=g;\n }\n }\n }\n for(i=0;i=j;k--)\n a[k+1]=a[k]; \n a[j]=n;\n p=1; \n break;\n }\n a1++;\n if (p==0)\n {\n \n a[a1]=n;\n }\n \n }\n else \n {\n p=0;\n for (j=1;j<=b1;j++)\n if (n>b[j]) \n {\n for (k=b1;k>=j;k--)\n b[k+1]=b[k]; \n b[j]=n;\n p=1; \n break;\n }\n b1++;\n if (p==0)\n {\n \n b[b1]=n;\n }\n \n } \n } \n for(i=1;i<=a1;i++) printf(\"%.2lf \",a[i]);\n for (i=1;i<=b1-1;i++) printf(\"%.2lf \",b[i]);\n printf(\"%.2lf\",b[b1]);\n\n return 0;\n} \n"} +{"label": "102", "index": "50577", "code": "main()\n{\n int n,i,t1=0,t2=0,j;\n float m[40]={0},f[40]={0},l;int s[40]={0};char h[6]={'\\0'};\n scanf(\"%d\",&n);\n for(i=0;i=0;j--)\n {\n if(m[j]>m[j+1]) {float t=m[j];m[j]=m[j+1];m[j+1]=t;}\n }\n }\n for(i=0;i=0;j--)\n {\n if(f[j]c[i+1])\n\t\t{\n\t\t\tzh=c[i];\n\t\t\tc[i]=c[i+1];\n\t\t\tc[i+1]=zh;\n\t\t}\n\t}\n\tfor(m=1;mmale[m+1])\n\t\t\t{\n\t\t\t\ttmp=male[m];\n\t\t\t\tmale[m]=male[m+1];\n\t\t\t\tmale[m+1]=tmp;\n\t\t\t}\n\n\t\t}\n\t}\n\n\n\n\n\n\t//???????????????????????????????????????mfemale[m+1])\n\t\t\t{\n\t\t\t\ttmp=female[m];\n\t\t\t\tfemale[m]=female[m+1];\n\t\t\t\tfemale[m+1]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\n\n\t//?????????????????????????????????????????????????????????\n\n\n\n\n\n\n\n\n\n\n\n\n\n\tfor(i=0;i0;i--)\n\t\tprintf(\"%.2lf \",female[i]);\n\n\n\t//???????????????????????????????\n\tprintf(\"%.2lf\",female[0]);\n\n\t//???????????\n\n\n\n\treturn 0;\n}"} +{"label": "102", "index": "50580", "code": "int cmp( const void *a , const void *b )\n{\nreturn (*(float *)a) > (*(float *)b) ? 1 : -1;\n}\nmain()\n{\n int n,b=0,g=0;\n scanf(\"%d\",&n);\n int i;\n char sex[8];\n float B[n],G[n];\n for(i=0;i0;i--)\n {\n printf(\"%.2f \",G[i]);}\n printf(\"%.2f\\n\",G[i]);\n }"} +{"label": "102", "index": "50581", "code": "int main()\n{\n\tint N, k,i, j;\n\tchar sex[10];\n\tdouble a[45], b[45], temp;\n\tint boy = 0, girl = 0;\n\tcin >> N;\n\tfor (k = 0; k < N; k++)\n\t{\n\t\tcin >> sex >> temp;\n\t\tif (sex[0] == 'f' )\n\t\t{\n\t\t\tb[girl] = temp;\n\t\t\tgirl++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[boy] = temp;\n\t\t\tboy++;\n\t\t}\n\t}\n\tfor(i = 0; i < boy - 1;i++)\n\t\tfor(j = 0; j < boy - 1 - i;j++)\n\t\t{\n\t\t\tif (a[j] > a[j + 1])\n\t\t\t{\n\t\t\t\ttemp = a[j + 1];\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\ta[j] = temp;\n\t\t\t}\n\t\t}\n for(i = 0; i < girl - 1;i++)\n\t\tfor(j = 0; j < girl - 1 - i;j++)\n\t\t{\n\t\t\tif (b[j] < b[j + 1])\n\t\t\t{\n\t\t\t\ttemp = b[j + 1];\n\t\t\t\tb[j + 1] = b[j];\n\t\t\t\tb[j] = temp;\n\t\t\t}\n\t\t}\n\tfor(i = 0; i < boy;i++)\n\t\tcout <x[i+1]){\n\t\t\t\te=x[i+1];\n\t\t\t\tx[i+1]=x[i];\n\t\t\t\tx[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1;ky[i+1]){\n\t\t\t\te=y[i+1];\n\t\t\t\ty[i+1]=y[i];\n\t\t\t\ty[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2f\",x[0]);\n\tfor(i=1;i=0;i--){\n\t\tprintf(\" %.2f\",y[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50583", "code": "//2013.11.17\n//zwb\n\nint main ()\n{\n\tint n, i, j, k, flag = 0;\n\tfloat t;\n\tfloat hm[41] = {0}, hf[41] = {0};\n\tchar sex[7];\n\n\tcin >> n;\n\t\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> sex;\n\t\tif(sex[0] == 'm')\n\t\t\tcin >> hm[i];\n\t\tif(sex[0] == 'f')\n\t\t\tcin >> hf[i];\n\t}\n\t\n\tfor(j = 1; j <= 40; j++)\n\t{\n\t\tfor(k = 1; k <= 40; k++)\n\t\t{\n\t\t\tif(hm[k] > hm[k+1])\n\t\t\t{\n\t\t\t\tt = hm[k];\n\t\t\t\thm[k] = hm[k+1];\n\t\t\t\thm[k+1] = t;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(j = 0; j < 40; j++)\n\t{\n\t\tfor(k = 0; k < 40 - j; k++)\n\t\t{\n\t\t\tif(hf[k] < hf[k+1])\n\t\t\t{\n\t\t\t\tt = hf[k];\n\t\t\t\thf[k] = hf[k+1];\n\t\t\t\thf[k+1] = t;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(j = 0; j <= 40; j++)\n\t{\n\t\tif(hm[j] != 0 && flag != 0)\n\t\t{\n\t\t\tcout << fixed;\n\t\t\tcout << setprecision(2) << \" \" << hm[j];\n\t\t}\n\t\tif(hm[j] != 0 && flag == 0)\n\t\t{\n\t\t\tflag = 1;\n\t\t\tcout << fixed;\n\t\t\tcout << setprecision(2) << hm[j];\n\t\t}\n\t}\n\n\tfor(j = 0; j <= 40; j++)\n\t{\n\t\tif(hf[j] != 0)\n\t\t{\n\t\t\tcout << fixed;\n\t\t\tcout << setprecision(2) << \" \" << hf[j];\n\t\t}\n\t}\n\n\tcout << endl;\n\n\treturn 0;\n}\n\n\n"} +{"label": "102", "index": "50584", "code": "main()\n{\n int n,i,j=0,k=0,m;\n float a[40],d;\n char c[40][7],b[7];\n scanf(\"%d\",&n);\n for(i=0;ia[m+1])\n {\n d=a[m+1];\n a[m+1]=a[m];\n a[m]=d;\n }\n }\n }\n for(i=j;id[i])\n\t\t\t{\n\t\t\t\tx=d[j];\n\t\t\t\td[j]=d[i];\n\t\t\t\td[i]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;i--){\n\t\tprintf(\"%.2lf \",m[i]);\n\t}\n\n\n\tfor(i=0;if[i])\n {temp=f[i];\n f[i]=f[l];\n f[l]=temp;}\n\n\n for(i=0;i>num;\n\tfor(int i = 0;i>temp;\n\t\tcin>>t;\n\t\tif(temp[0] == 'm')\n\t\t{\n\t\t\tm[countm] = t;\n\t\t\tcountm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tf[countf] = t;\n\t\t\tcountf++;\n\t\t}\n\t}\n\tsort(m,m+countm);\n\tsort(f,f+countf);\n\n\tfor(int i = 0;i=0;i--)\n\t{\n\t\tprintf(\"%.2f\",f[i]);\n\t\tif(i != 0)\n\t\t\tcout<<' ';\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50590", "code": "//********************************\n//*?????? **\n//*?????? 1300012713 **\n//*???2014.1.3 **\n//********************************\nint main()\n{\n\tint i,j,n,a0 = 0,b0 = 0;\n\tdouble a[40],b[40];\n\tchar str[10];\n\tcin >> n;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tcin >> str;\n\t\tif(strcmp(str,\"male\")==0)\n\t\t{\n\t\t\ta0++;\n\t\t\tcin >> a[a0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb0++;\n\t\t\tcin >> b[b0];\n\t\t}\n\t}\n\tfor(j = 1; j <= a0;j++)\n\t{\n\t\tfor(i = 1; i <= a0-j;i++)\n\t\t{\n\t\t\tif(a[i] > a[i+1])\n\t\t\t{\n\t\t\t\tdouble a1 = a[i];\n\t\t\t a[i] = a[i+1];\n\t\t\t a[i+1] = a1;\n\t\t\t}\n\t\t}\n\t}\t\n\tfor(j = 1; j <= b0;j++)\n\t{\n\t\tfor(i = 1;i<=b0-1;i++)\n\t\t{\n\t\t if(b[i]h[i+1])||(strcmp(zfc[i],\"female\")==0&&strcmp(zfc[i+1],\"female\")==0&&h[i] *q)\n\t\treturn 1;\n\telse\n\t\treturn 0;\n}\n\nint compare2(const void * a, const void *b)\n{\n\tfloat * p = (float *)a;\n\tfloat * q = (float *)b;\n\n\tif(*p > *q)\n\t\treturn 0;\n\telse\n\t\treturn 1;\n}\n\nint main()\n{\n\tint i = 0, j =0, k = 0, x = 0, y = 0;\n\tchar sex[10];\n\tfloat height;\n\n\tscanf(\"%d\", &n);\n\tfor(i = 0; i < n; ++i)\n\t{\n\t\tscanf(\"%s\", sex);\n\t\tscanf(\"%f\", &height);\n\t\tif(strcmp(sex, \"female\") == 0)\n\t\t{\n\t\t\twoman[j] = height;\n\t\t\tj += 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tman[k] = height;\n\t\t\tk += 1;\n\t\t}\n\t}\n\t\n\tqsort(man, k, sizeof(float), compare1);\n\tqsort(woman, j, sizeof(float), compare2);\n\n\tfor(i = 0; i < k; ++i)\n\t{\n\t\tprintf(\"%.2f \", man[i]);\n\t}\n\tfor(i = 0; i < j - 1; ++i)\n\t{\n\t\tprintf(\"%.2f \", woman[i]);\n\t}\n\tprintf(\"%.2f\\n\",woman[i]);\n\treturn 0;\n}"} +{"label": "102", "index": "50593", "code": "int main()\n{\n int n;\n\tscanf(\"%d\",&n);\n\tchar ren[50][10];\n\tdouble h[50];\n\tint i;\n\tchar boy[50][10];\n\tchar girl[50][10];\n\tdouble hb[50];\n\tdouble hg[50];\n\tint k1=0,k2=0;\n\tfor(i=0;ihb[i+1])\n\t\t\t{\n\t\t\t\tdouble e;\n\t\t\t\te=hb[i];\n\t\t\t\thb[i]=hb[i+1];\n\t\t\t\thb[i+1]=e;\n\t\t\t}\n\t\t}\n\n\t}\n\tfor(i=0;ihg[i+1])\n\t\t\t{\n\t\t\t\tdouble e;\n\t\t\t\te=hg[i];\n\t\t\t\thg[i]=hg[i+1];\n\t\t\t\thg[i+1]=e;\n\t\t\t}\n\t\t}\n\n\t}\n\tfor(i=k2-1;i>=0;i--)\n\t{\n\t\t\n\t\tprintf(\" \");\n\t\tprintf(\"%.2lf\",hg[i]);\n\n\t}\n\t\n\treturn 0;\n\n}\n"} +{"label": "102", "index": "50594", "code": "int main()\n{\n\tint n,i,j,t,h;\n\tdouble sz[50],a[50],b[50],c[50],k;\n char s[10];\n\tscanf(\"%d\",&n);\n\tt=h=0;\n\tfor(i=0;ib[i]){\n\t\t\t\tk=b[i+1];\n\t\t\t\tb[i+1]=b[i];\n\t\t\t\tb[i]=k;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[j].height)\n {\n d=m[i].height;\n m[i].height=m[j].height;\n m[j].height=d;\n }\n }\n } \n for(i=0;ia[i+1]){\n\t\t\t\tm=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(c=1;c<=k;c++){\n\t\tfor(i=0;istu[i+1].hei)\n {t=stu[i];\n stu[i]=stu[i+1];\n stu[i+1]=t;}\n}\n\nfor(i=0;i=0;i--)\n{\n if(strlen(stu[i].gen)!=4) \n //if(*(stu[i]).gen!='male') \n printf(\" %.2f\",stu[i].hei); \n}\n\nreturn 0; \n}\n//zifuchuanbijiaoyaoyonghanshu\n"} +{"label": "102", "index": "50598", "code": "int main(){\n\tint n,i,j;\n\tstruct student{\n\t char s[10];\n\t double h;\n\t\n\t} a[41],t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[j+1].h){\n\t\t\t\t t=a[j];\n\t\t\t\t\t\ta[j]=a[j+1];\n\t\t\t\t\t\ta[j+1]=t;\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\n\t\t\t}else if( strcmp(a[j].s,\"female\")==0){\n\t\t\t\tif(strcmp(a[j].s,a[j+1].s)==0){\n\t\t\t\t if(a[j].hag[j+1]){\n\t\t\t\tx=ag[j+1];\n\t\t\t\tag[j+1]=ag[j];\n\t\t\t\tag[j]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=l;i++){\n\t\tfor(j=0;jab[j+1]){\n\t\t\t\tx=ab[j+1];\n\t\t\t\tab[j+1]=ab[j];\n\t\t\t\tab[j]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--){\n\t\tprintf(\"%.2lf \",ag[i]);\n\t}\n\tprintf(\"%.2lf\",ag[0]);\n\treturn 0;\n}"} +{"label": "102", "index": "50600", "code": "int main()\n{\n\tint n, n_m, n_f, i, j;\n\tfloat male[40], female[40];\n\tchar s[10];\n\tfloat t;\n\tscanf(\"%d\", &n);\n\tn_m = 0;\n\tn_f = 0;\n\tfor(i = 1; i <= n; i++)\n\t{\n\t\tscanf(\"%s\", s);\n\t\tif(s[0] == 'm')\n\t\t{\n\t\t\tscanf(\"%f\", &male[n_m]);\n\t\t\tn_m++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tscanf(\"%f\", &female[n_f]);\n\t\t\tn_f++;\n\t\t}\n\t}\n\tfor(i = 0; i < n_m - 1; i++)\n\t\tfor(j = i + 1; j <= n_m - 1; j++)\n\t\t{\n\t\t\tif(male[i] > male[j])\n\t\t\t{\n\t\t\t\tt = male[i];\n\t\t\t\tmale[i] = male[j];\n\t\t\t\tmale[j] = t;\n\t\t\t}\n\t\t}\n\tfor(i = 0; i < n_f - 1; i++)\n\t\tfor(j = i + 1; j <= n_f - 1; j++)\n\t\t{\n\t\t\tif(female[i] < female[j])\n\t\t\t{\n\t\t\t\tt = female[i];\n\t\t\t\tfemale[i] = female[j];\n\t\t\t\tfemale[j] = t;\n\t\t\t}\n\t\t}\n\tfor(i = 0; i <= n_m - 1; i++)\n\t\tprintf(\"%.2f \", male[i]);\n\tfor(i = 0; i < n_f - 1; i++)\n\t\tprintf(\"%.2f \", female[i]);\n\tprintf(\"%.2f\\n\", female[n_f - 1]);\n\treturn 0;\n}"} +{"label": "102", "index": "50601", "code": "int main(){\n\tint num;\n\tscanf(\"%d\",&num);\n\tint i;\n\tint f=0,m=0;\n\tchar c[7];\n\tdouble high;\n\tdouble mh[40],nh[40];\n\tfor(i=0;imh[j+1]){\n\t\t\tmax=mh[j];\n\t\t\tmh[j]=mh[j+1];\n\t\t\tmh[j+1]=max;\n\t\t\t}\n\t\t}}\n\tfor(i=1;i<=f;i++){\n\t\tfor(j=0;j male[jj])\n\t\t\t{\n\t\t\t\th = male[ii];\n\t\t\t\tmale[ii] = male[jj];\n\t\t\t\tmale[jj] = h;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(ii= 0; ii < j; ii++)\n\t{\n\t\tfor(jj=ii+1; jj < j; jj++)\n\t\t{\n\t\t\tif(female[ii] < female[jj])\n\t\t\t{\n\t\t\t\th = female[ii];\n\t\t\t\tfemale[ii] = female[jj];\n\t\t\t\tfemale[jj] = h;\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfor(ii=0; ii < i; ii++)\n\t{\n\t\tprintf(\"%.2lf \", male[ii]);\n\t}\n\tfor(jj=0; jj man[i+1]){\n\t\t\t\te=man[i+1];\n\t\t\t\tman[i+1]=man[i];\n\t\t\t\tman[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1;k0;i--)\n {\n for (t=0;ta[t+1])\n {\n p=a[t];\n a[t]=a[t+1];\n a[t+1]=p;\n }\n }\n }\n for (i=k-1;i>0;i--)\n {\n for (t=0;tma[j]){\n\t\t\t\tk=ma[j+1];\n\t\t\t\tma[j+1]=ma[j];\n\t\t\t\tma[j]=k;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ife[j]){\n\t\t\t\tk=fe[j+1];\n\t\t\t\tfe[j+1]=fe[j];\n\t\t\t\tfe[j]=k;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=m-1;i>=0;i--){\n\t\tif(i==m-1){\n\t\t\tprintf(\"%.2lf\",ma[i]);\n\t\t}\n\t\telse if(ic[i+1])\n\t\t{\n\t\t\te=c[i+1];\n\t\t\tc[i+1]=c[i];\n\t\t\tc[i]=e;\n\t\t}\n\t}\n}\n\nfor(k=1;k<=w;k++)\n{\n\tfor(i=0;id[i+1]){\n\t\t\t\tm=d[i];\n\t\t\t\td[i]=d[i+1];\n\t\t\t\td[i+1]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ia[m+1])\n {\n t=a[m+1];\n a[m+1]=a[m];\n a[m]=t;\n }\n }\n }\n for(c=0;c=0;i--)\n printf(\"%.2f \",c[i]);\n for(i=0;inan[j+1]){\n\t\t\t\tk=nan[j+1];\n\t\t\t\tnan[j+1]=nan[j];\n\t\t\t\tnan[j]=k;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ih[j+1])\n {\n tmp2=h[j];\n h[j]=h[j+1];\n h[j+1]=tmp2;\n strcpy(tmp,s[j]);\n strcpy(s[j],s[j+1]);\n strcpy(s[j+1],tmp);\n }\n for (i=0;i=0;i--)\n if (s[i][0]=='f')\n printf(\" %.2lf\",h[i]);\n return 0;\n}\n"} +{"label": "102", "index": "50612", "code": "int main()\n{\n\tint n,i,p=0,q=0,j,k,m;\n\tdouble c[40]={0},d[40]={0};\n\tchar a[6]={0};\n\tdouble b,e;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ic[j+1]){\n\t\t\t\te=c[j+1];\n\t\t\t\tc[j+1]=c[j];\n\t\t\t\tc[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1;k> n ;\n\tint numM = 0 ;\n\tint numF = 0 ;\n\tfor ( k = 0 ; k < n ; k++ )\n\t{\n\t\tcin >> sex ;\n\t\tcin >> h ;\n\t\tif ( sex[0] == 'm' )\n\t\t{\n\t\t\tmaleH[numM] = h ;\n\t\t\tnumM++ ;\n\t\t}\n\t\telse if ( sex[0] == 'f' )\n\t\t{\n\t\t\tfemaleH[numF] = h ;\n\t\t\tnumF++ ;\n\t\t}\n\t}\n\tdouble t = 0 ;\n\tfor ( i = 0 ; i < numF - 1 ; i++ )\n\t{\n\t\tfor ( j = 0 ; j < numF - i - 1 ; j++ )\n\t\t{\n\t\t\tif ( femaleH[j] < femaleH[j+1] )\n\t\t\t{\n\t\t\t\tt = femaleH[j] ;\n\t\t\t\tfemaleH[j] = femaleH[j+1] ;\n\t\t\t\tfemaleH[j+1] = t ;\n\t\t\t}\n\t\t}\n\t}\n\tfor ( i = 0 ; i < numM - 1 ; i++ )\n\t{\n\t\tfor ( j = 0 ; j < numM - i - 1 ; j++ )\n\t\t{\n\t\t\tif ( maleH[j] > maleH[j+1] )\n\t\t\t{\n\t\t\t\tt = maleH[j] ;\n\t\t\t\tmaleH[j] = maleH[j+1] ;\n\t\t\t\tmaleH[j+1] = t ;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor ( i = 0 ; i < numM ; i++ )\n\t{\n\t\tcout << fixed << setprecision(2) << maleH[i] << \" \" ;\n\t}\n\tfor ( i = 0 ; i < numF ; i++ )\n\t{\n\t\tif ( i == numF - 1 )\n\t\t{\n\t\t\tcout << fixed << setprecision(2) << femaleH[i] ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << fixed << setprecision(2) << femaleH[i] << \" \" ;\n\t\t}\n\t}\n\treturn 0 ;\n}\n"} +{"label": "102", "index": "50614", "code": "//??\nstruct data\n{\n char ch[10];\n double h;\n}p[40], f[40], m[40];\nint main()\n{\n int n, i, j = 0, k = 0, len;\n cin >> n;\n for (i = 0; i < n; i++)\n {\n cin >> p[i].ch >> p[i].h;\n len = strlen(p[i].ch);\n if (len == 4)\n m[j++].h = p[i].h;\n else\n f[k++].h = p[i].h;\n }\n for (i = j - 1; i > 0; i--)\n for (int x = 0; x < i; x++)\n if (m[x].h > m[x + 1].h)\n {\n double temp = m[x].h;\n m[x].h = m[x + 1].h;\n m[x + 1].h = temp;\n }\n for (i = k - 1; i > 0; i--)\n for (int x = 0; x < i; x++)\n if (f[x].h < f[x + 1].h)\n {\n double temp = f[x].h;\n f[x].h = f[x + 1].h;\n f[x + 1].h = temp;\n }\n cout << fixed << setprecision(2);\n for (i = 0; i < j;i++)\n cout << m[i].h << \" \";\n cout << f[0].h;\n for (i = 1; i < k; i++)\n cout << \" \" << f[i].h;\n return 0;\n}\n \n \n \n \n \n \n \n \n \n \n \n \n"} +{"label": "102", "index": "50615", "code": "\n\n\nmain()\n{\n\n\nint n,i,j,x,y;\nscanf(\"%d\\n\",&n);\ndouble a[n],male[n],female[n],k;\nchar b[n][10];\n\nfor(i=0;imale[j])\n {\n k=male[i];\n male[i]=male[j];\n male[j]=k;\n }\n }\n}\n\nfor(i=0;ia[t+1]){\n\t\t\t\tx=a[t+1];\n\t\t\t\ta[t+1]=a[t];\n\t\t\t\ta[t]=x;\n\t\t\t}\n\t\t}\n\t}\nfor(j=1;j<=m;j++){\n\t\tfor(t=1;t<=m-j;t++){\n\t\t\tif(b[t]array[tmpindex])\n\t\t\ttmpindex=j;\n\t\t}\n\t\t\n\t\ttmpvalue=array[tmpindex];\n\t\tarray[tmpindex]=array[i];\n\t\tarray[i]=tmpvalue;\n\t}\n}\n\t\t\n\t\t\n\t\n\t\n\nint main()\n{\n\tint n,i=0,j=0,k,m;\n\tfloat marr[40];\n\tfloat farr[40];\n\tchar str[8];\n\tfloat height;\n\tscanf(\"%d\",&n);\n\t\n\tfor(k=0;k0;r--)\n\t{\n\t\tfor(i=0;inan[i+1])\n\t\t\t{\n\t\t\t\te=nan[i];\n\t\t\t\tnan[i]=nan[i+1];\n\t\t\t\tnan[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2lf\",nan[0]);\n\tfor(i=1;i0;r--)\n\t{\n\t\tfor(i=0;inv[i+1])\n\t\t\t{\n\t\t\t\te=nv[i];\n\t\t\t\tnv[i]=nv[i+1];\n\t\t\t\tnv[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=k-1;i>=0;i--)\n\t{\n\t\tprintf(\" %.2lf\",nv[i]);\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}\n"} +{"label": "102", "index": "50619", "code": "int main(){\nint n,i,j,k,l;\nj=k=0;\nchar zfc[7];\ndouble h,e,b[39],g[39];\nscanf(\"%d\",&n);\nfor(i=0;ib[l+1]){\n\t\t\te=b[l];\n\t\t\tb[l]=b[l+1];\n\t\t\tb[l+1]=e;\n\t\t}\n\t}\n}\nfor(i=1;i<=k;i++){\n\tfor(l=0;lm[b+1]){\n\t\t\t\tc=m[b+1];m[b+1]=m[b];m[b]=c;}}}\n\tfor(i=0;i0) return 1;\n\telse return -1;\n}\nint cmpm(void const *a,void const *b)\n{\n\tdouble m;\n\tm=*(double *)a-*(double *)b;\n\tif (m>0) return 1;\n\telse return -1;\n}\nint main()\n{\n\tint n,i;\n\tdouble\tf[40],m[40];\n\tint fp=0,mp=0;\n\tscanf(\"%d\",&n);\n\tfor (i=1;i<=n;i++)\n\t{\n\t\tchar s[7];\n\t\tscanf(\"%s\",s);\n\t\tif (s[0]=='f')\n\t\t\tscanf(\"%lf\",&f[fp++]);\n\t\telse\n\t\t\tscanf(\"%lf\",&m[mp++]);\n\t}\n\tqsort(f,fp,sizeof(double),cmpf);\n\tqsort(m,mp,sizeof(double),cmpm);\n\n\tfor (i=0;iman[m])\n\t\t\t{\n\t\t\t\thi=man[i];\n\t\t\t\tman[i]=man[m];\n\t\t\t\tman[m]=hi;\n\t\t\t}\n\t\t}\n\tfor(i=0;imale[k+1])\n\t\t\t{\n\t\t\t\te=male[k];\n\t\t\t\tmale[k]=male[k+1];\n\t\t\t\tmale[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j=0;i--)\n\t{\n\t\tif(i==0)\n\t\t\tprintf(\"%.2lf\",female[i]);\n\t\telse\t\t\n\t\t\tprintf(\"%.2lf \",female[i]);\n\t}\n\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "102", "index": "50625", "code": "int main()\n{ \n\tint n,i,t=0,m=0,j;\n\tdouble b,c[100],h[100],s,k;\n\tchar f[100];\n\tscanf(\"%d\",&n);\n for(i=0;ic[j+1]){\n\t\t\ts=c[j];\n\t\t\tc[j]=c[j+1];\n\t\t\tc[j+1]=s;\n\t\t}\n\t\tif(h[j]ma[b+1]){\n\t\t\t\tt=ma[b+1];\n\t\t\t\tma[b+1]=ma[b];\n\t\t\t\tma[b]=t;\n\t\t\t}\n\t\t}\n\t}\n for(m=1;m> n;\n\tchar str[41][7];\n\tdouble a[41];\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> str[i] >> a[i];\n\t}\n\tdouble temp1 = 0;\n\tchar temp2[7];\n\tfor (i = 1; i < n; i++)\n\t\tfor (j = 1; j <= n - i; j++)\n\t\t{\n\t\t\tif (strlen(str[j]) > 5 && strlen(str[j + 1]) < 5)\n\t\t\t{\n\t\t\t\tstrcpy(temp2, str[j]);\n\t\t\t\tstrcpy(str[j], str[j + 1]);\n\t\t\t\tstrcpy(str[j + 1], temp2);\n\t\t\t\ttemp1 = a[j];\n\t\t\t\ta[j] = a[j + 1];\n\t\t\t\ta[j + 1] = temp1;\n\t\t\t}\n\t\t}\n\t\tint m = 0;\n\t\tfor (i = 1; i <= n; i++)\n\t\t{\n\t\t\tif (strlen(str[i]) > 5)\n\t\t\t\tbreak;\n\t\t}\n\t\tm = i - 1;\n\t\tfor (i = 1; i < m; i++)\n\t\t\tfor (j = 1; j <= m - i; j++)\n\t\t\t{\n\n\t\t\t\tif (a[j] > a[j + 1])\n\t\t\t\t{\n\t\t\t\t\ttemp1 = a[j];\n\t\t\t\t\ta[j] = a[j + 1];\n\t\t\t\t\ta[j + 1] = temp1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (i = m + 1; i < n; i++)\n\t\t\t\tfor (j = m + 1; j <= (n - i + m); j++)\n\t\t\t\t{\n\t\t\t\t\tif (a[j] < a[j + 1])\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp1 = a[j];\n\t\t\t\t\t\ta[j] = a[j + 1];\n\t\t\t\t\t\ta[j + 1] = temp1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcout << fixed << setprecision(2) << a[1];\n\t\t\t\tfor (i = 2; i <= n; i++)\n\t\t\t\t{\n\t\t\t\t\tcout << ' ' << a[i];\n\t\t\t\t}\n\t\t\t\tcout << endl;\n\t\t\t\treturn 0;\n}\n\n\n\n"} +{"label": "102", "index": "50628", "code": "\nint main()\n{\n\tdouble m[41],f[41],tmp;\n\tint n,nm,nf,i,j;\n\tchar sex[10];\n\tscanf(\"%d\",&n);\n\tnm=nf=0;\n\tfor(i=0;im[j])\n\t\t\t{\n\t\t\t\ttmp=m[i];\n\t\t\t\tm[i]=m[j];\n\t\t\t\tm[j]=tmp;\n\t\t\t}\n\t\t}\n\tfor(i=0;isz[i+1]||sex[i][0]=='f'&&sex[i+1][0]=='m'||sex[i][0]=='f'&&sex[i+1][0]=='f'&&sz[i]*(float*)b)return 1;\n\tif(*(float*)a<*(float*)b)return -1;\n\tif(*(float*)a==*(float*)b)return 0;\n}\nint main()\n{\n\tint N,i,v,t,j;\n\tfloat r;\n\tscanf(\"%d\",&N);\n\tstruct kids\n\t{\n\t\tchar s[10];\n\t\tfloat h;\n\t}kid[40];\n\tchar c;\n\tfor(i=0;i<=N-1;i++)\n\t{\n\t\tscanf(\"%s \",kid[i].s);\n\t\tscanf(\"%f\",&kid[i].h);\n\t}\n\tfloat hm[40],fm[40];\n\tfor(i=0,t=0,v=0;i<=N-1;i++)\n\t{\n\t\tif(strcmp(kid[i].s,\"male\")==0)\n\t\t{\n\t\t\thm[t]=kid[i].h;\n\t\t\tt=t+1;\n\t\t}\n\t\tif(strcmp(kid[i].s,\"female\")==0)\n\t\t{\n\t\t\tfm[v]=kid[i].h;\n\t\t\tv=v+1;\n\t\t}\n \n\t}\n\t//int *p=(float*)malloc(N*sizeof(float));\n\t\n\t//qsort(hm,t,sizeof(hm[0]),compare);\n\tfor(i=1;i<=t-1;i++)\n\t{\n\t\tfor(j=0;j<=t-i-1;j++)\n\t\t{\n\t\t\tif(hm[j]>=hm[j+1])\n\t\t\t{\n\t\t\t\tr=hm[j];\n\t\t\t\thm[j]=hm[j+1];\n\t\t\t\thm[j+1]=r;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=v-1;i++)\n\t{\n\t\tfor(j=0;j<=v-i-1;j++)\n\t\t{\n\t\t\tif(fm[j]<=fm[j+1])\n\t\t\t{\n\t\t\t\tr=fm[j];\n\t\t\t\tfm[j]=fm[j+1];\n\t\t\t\tfm[j+1]=r;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2f\",hm[0]);\n\tfor(i=1;i<=t-1;i++)\n\t{\n\t\tprintf(\" %.2f\",hm[i]);\n\t}\n\t//qsort(fm,v,sizeof(fm[0]),compare);\n\t//printf(\"%.2f\",fm[0]);\n\tfor(i=0;i<=v-1;i++)\n\t{\n\t\tprintf(\" %.2f\",fm[i]);\n\t}\n \n \n \n \n}\n"} +{"label": "102", "index": "50631", "code": "int main() {\n\tint n;\n\tscanf(\"%d\\n\",&n);\n\tchar ren[40][7];\n\tdouble sg[40];\n\tint i,j;\n\tfor(i=0;inssg[j+1]){\n\t\t\t\te=nssg[j+1];\n\t\t\t\tnssg[j+1]=nssg[j];\n\t\t\t\tnssg[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=t;i++){\n\t\tfor(j=0;jvssg[j+1]){\n\t\t\t\te=vssg[j+1];\n\t\t\t\tvssg[j+1]=vssg[j];\n\t\t\t\tvssg[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--){\n\t\tprintf(\"%.2lf \",vssg[i]);\n\t}\n\tprintf(\"%.2lf\\n\",vssg[0]);\n\treturn 0;\n}\n\t"} +{"label": "102", "index": "50632", "code": "int main (){\n\tint n,a=0,b=0;\n\tdouble sz[40],men[40],wo[40],x,y;\n\tchar sx[40][7];\n\tscanf(\"%d\",&n);\n\tfor(int i=0;imen[d+1]){\n\t\t\t\tx=men[d+1];\n\t\t\t\tmen[d+1]=men[d];\n\t\t\t\tmen[d]=x;\n\t\t\t}\n\t\t}\n\t}\n for(int v=1;v<=b;v++){\n\t\tfor(int q=0;qwo[q+1]){\n\t\t\t\ty=wo[q+1];\n\t\t\t\two[q+1]=wo[q];\n\t\t\t\two[q]=y;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int df=0;df0;se--){\n\t\tprintf(\"%.2lf \",wo[se]);\n\t}\n\tprintf(\"%.2lf\",wo[0]);\n\treturn 0;\n}"} +{"label": "102", "index": "50633", "code": "int main()\n{\n int n,i,j,m,p;\n cin>>n;\n char str[n][7];\n double a[n],b[n],c[n],t;\n for(i=0;i<=n-1;i++)\n {cin>>str[i];\n cin>>a[i];\n }\n m=0;\n for(i=0;i<=n-1;i++)\n {if(str[i][0]=='m')\n {b[m]=a[i];\n m=m+1;}\n }\n p=0;\n for(i=0;i<=n-1;i++)\n {if(str[i][0]=='f')\n {c[p]=a[i];\n p=p+1;}\n }\n for(j=0;jb[i+1])\n {t=b[i];b[i]=b[i+1];b[i+1]=t;}\n }\n }\n for(j=0;j1)\n {for(i=1;i<=m-1;i++)\n {cout<<\" \"<=1;n--){\nfor(i=0;ia[i+1]){\ne=a[i];\na[i]=a[i+1];\na[i+1]=e;\n}\n}\n}\nfor(n=f-1;n>=1;n--){\nfor(i=0;i1){\nfor(i=1;i<=k-1;i++){\nprintf(\" %.2lf\",a[i]);\n}\n}\nfor(i=0;i<=f-1;i++){\nprintf(\" %.2lf\",b[i]);\n}\nreturn 0;\n}\n\n"} +{"label": "102", "index": "50635", "code": "/*??\n ?????????????????????????????????????????????????????????????????????????????????????????????????????????????\n\n????\n??????n?2 <= n <= 40?????1????1????\n????n??????????????male?female?????????????????????????\n\n????\nn????????????????????????????????2???*/\n\n\nint main(){\n\tint n,i,j,k,a,b;\n\tdouble g,s[48],m[48],f[48];\n\tchar qb[48][9];\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[b+1]){\n\t\t\t\tg=m[b];\n\t\t\t\tm[b]=m[b+1];\n\t\t\t\tm[b+1]=g;\n\t\t\t}\n\t\t}\n\t}\n\tfor(a=1;a<=k;a++){\n\t\tfor(b=0;b=1; i--)\n for(j=1; j<=i; j++)\n if(a[j]>a[j+1])\n {\n t=a[j];a[j]=a[j+1];a[j+1]=t;\n }\n for(i=num_w-1; i>=1; i--)\n for(j=1; j<=i; j++)\n if(b[j]m[i+1]){\n\t\t\t\tf=m[i];\n\t\t\t\tm[i]=m[i+1];\n\t\t\t\tm[i+1]=f;\n\t\t\t}\n\t\t}\n\t}\n for(c=0;cmh[m+1]){\n\t\t\t\tcs=mh[m];\n\t\t\t\tmh[m]=mh[m+1];\n\t\t\t\tmh[m+1]=cs;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int r=1;r<=j;r++){\n\t\tprintf(\"%.2lf \",mh[r]);\n\t}\n\tfor(int l=0;lg[j])\n {temp=g[i]; g[i]=g[j];g[j]=temp;}\n //printf(\"%lf %lf %lf\\n\",g[0],g[1],g[2]); \n for(i=0;i0) printf(\"%.2lf\",f[q-1]);\n \n }\n"} +{"label": "102", "index": "50641", "code": "main()\n{\n int n,i,j,x;\n float t;\n struct person\n {\n char sex[6];\n float h; \n };\n scanf(\"%d\",&n);\n struct person per[40];\n for(i=0;iper[j].h)\n {\n t=per[i].h;\n per[i].h=per[j].h;\n per[j].h=t; \n } \n }\n printf(\"%.2f \",per[i].h); \n }\n x=0;\n for(i=0;imale[i+1]){\n\t\ttmp=male[i];\n\t\tmale[i]=male[i+1];\n\t\tmale[i+1]=tmp;\n\t\tif(i!=0){i=i-2;}\n\t}\n}\nfor(i=0;ia[k])\n\t\t\t{\n\t\t\t\te=a[j];\n\t\t\t\ta[j]=a[k];\n\t\t\t\ta[k]=e;\n\t\t\t\t}\n\t\t\t}\n\t\tprintf(\"%.2lf \",a[j]);\n\t}\n\tprintf(\"%.2lf \",a[z-1]);\n\n\t\t\tfor(j=n;j>y+1;j--){\n\t\t\t\tfor(k=j;k>y;k--){\n\t\t\t\t\tif(a[j]>a[k])\n\t\t\t{\n\t\t\t\te=a[j];\n\t\t\t\ta[j]=a[k];\n\t\t\t\ta[k]=e;}\n\t\t\t}}\n\t\t\tfor(i=y+1;i>n;\n for (i = 0; i < n; i++)\n {\n cin >> a;\n cin >> height;\n if (strlen(a) == 6) //???????6,??????\n {\n female[femalecount] = height; //???????????\n femalecount++;\n }\n else\n {\n male[malecount] = height; //??????,????????????\n malecount++;\n }\n }\n sort(male,male + malecount); //????\n sort(female,female + femalecount); //????\n for (i = 0; i < malecount; i++)\n {\n cout << fixed << setprecision(2);\n cout << male[i] << \" \"; //???????????\n }\n for (i = femalecount - 1; i > 0; i--)\n {\n cout << female[i] << \" \"; //???????????\n }\n cout << female[0];\n return 0;\n}\n"} +{"label": "102", "index": "50645", "code": "\nint pfCb(const void *x ,const void *y)\n{\n return *((int*)x)-*((int*)y); \n}\n\nint pfCg(const void *x ,const void *y)\n{\n return *((int*)y)-*((int*)x); \n}\n\nmain()\n{\n int n,j=0,k=0;\n char gender[7];\n float m[40],f[40],height;\n scanf(\"%d\",&n);\n for(int i=0;i> n;\n\t\n\tfor(int i = 0; i < n; i ++)\n\t{\n\t\tchar ch[10];\n\t\t\n\t\tcin >> ch >> x;\n\t\t\n\t\tif(ch[0] == 'm')\n\t\t{\n\t\t\ta[counta] = x;\n\t\t\tcounta ++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[countb] = x;\n\t\t\tcountb ++;\n\t\t}\n\t}\n\t\n\t\n\t\n\t\n\tfor(int i = 0; i < counta - 1; i ++)\n\tfor(int j = 0; j < counta - 1 - i; j ++)\n\t{\n\t\tif(a[j] > a[j + 1])\n\t\t{\n\t\t\tx = a[j];\n\t\t\ta[j] = a[j + 1];\n\t\t\ta[j + 1] = x;\n\t\t}\n\t}\n\t\n\tfor(int i = 0; i < countb - 1; i ++)\n\tfor(int j = 0; j < countb - 1 - i; j ++)\n\t{\n\t\tif(b[j] < b[j + 1])\n\t\t{\n\t\t\tx = b[j];\n\t\t\tb[j] = b[j + 1];\n\t\t\tb[j + 1] = x;\n\t\t}\n\t}\t\n\t\n\tcout << fixed << setprecision(2);\n\t\n\tcout << a[0];\n\t\n\tfor(int i = 1; i < counta ; i ++)\n\tcout << \" \" << a[i];\n\t\n\tfor(int i = 0; i < countb ; i ++)\n\tcout << \" \" << b[i];\n\t\n\t\n\treturn 0;\n}"} +{"label": "102", "index": "50647", "code": "int main() {\nint n,i,nan=0,nv=0,j;\ndouble h[40],h1[40],h2[40],e;\nchar a[40][7];\nscanf(\"%d\",&n);\nfor (i=0;ih2[j+1]) {\n e=h2[j];\n h2[j]=h2[j+1];\n h2[j+1]=e;\n }\n }\n } \n for (i=0;i> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> sex;\n\t\tif (strcmp(sex, \"female\"))\n\t\t\tcin >> hight[count_male++];\n\t\telse\n\t\t\tcin >> hight[count_female--];\n\t}\n\tfor (i = 0; i < count_male; i++)\n\t{\n\t\temp = 0;\n\t\tfor (j = 1; j < count_male; j++)\n\t\t{\n\t\t\tif (hight[j] <= hight[emp])\n\t\t\t\temp = j;\n\t\t}\n\t\tcout << fixed << setprecision(2) < count_female; i--)\n\t{\n\t\temp = 39;\n\t\tfor (j = 38; j > count_female; j--)\n\t\t{\n\t\t\tif (hight[j] >= hight[emp])\n\t\t\t\temp = j;\n\t\t}\n\t\tcout << hight[emp];\n\t\tif (i != count_female+1)\n\t\t\tcout << \" \";\n\t\thight[emp] = 0;\n\t}\nreturn 0;\n}"} +{"label": "102", "index": "50649", "code": "int compmale(const void*a1,const void*a2)\n{\n \tfloat*p1,*p2;\n \tp1=(float*)a1;\n p2=(float*)a2;\n if((*p1)-(*p2)>=0)\n return 1;\n else\n return -1;\n}\nint compfemale(const void*a1,const void*a2)\n{\n \tfloat*p1,*p2;\n \tp1=(float*)a1;\n p2=(float*)a2;\n if((*p2)-(*p1)>=0)\n return 1;\n else\n return -1;\n}\nstruct person\n{\n \t char sex[10];\n \t float h;\n}mate[40];\nmain()\n{\n \t float m[40],f[40];\n\t int n,i,j,a=0,b=0;\n\t scanf(\"%d\",&n);\n\t \n\t for(i=0;i0;i--)\n\t{\n\t\tfor(j=0;jb[j+1])\n\t\t\t{\n\t\t\t\tdouble t1;\n\t\t\t\tt1=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t1;\n\t\t\t}\n\t }\n\t}\n\tfor(i=0;i0;i--)\n\t{\n\t\tfor(j=0;jc[j+1])\n\t\t\t{\n\t\t\t\tdouble t2;\n\t\t\t\tt2=c[j];\n\t\t\t\tc[j]=c[j+1];\n\t\t\t\tc[j+1]=t2;\n\t\t\t}\n\t }\n\t}\n\tfor(i=j2-1;i>0;i--)\n\tprintf(\"%.2lf \",c[i]);\n printf(\"%.2lf\",c[0]);\n\tscanf(\"%d\",&i);\n\treturn 0;\n}\n\n "} +{"label": "102", "index": "50651", "code": "main()\n{\n int n,t=0,i,m,k=0;char a[100][9],e[9];float b[100],g[100],c[100],d;\n scanf(\"%d\",&n);\n for(i=0;ic[m])\n {d=c[m];c[m]=c[m+1];c[m+1]=d;}}}\n for(i=t-1;i>0;i--)printf(\"%.2f \",c[i]);printf(\"%.2f\",c[0]);\n for(i=0;ia[j+1])\n {\n f=a[j];\n a[j]=a[j+1];\n a[j+1]=f;\n c=e[j];\n e[j]=e[j+1];\n e[j+1]=c;\n }\n for(i=0,h=0;i=0;i--)\n if(e[i]==0)\n printf(\" %.2lf\",a[i]);\n }"} +{"label": "102", "index": "50653", "code": "\nint main()\n{\n\tint n;\n\tint i,j,k=0,kk=0;\n\tchar zs[9];\n\tdouble xb[999],sg[999];\n\tscanf(\"%d\",&n);\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tscanf(\"%s\",zs);\n\t\tif(zs[0]=='m')\n\t\t{\n\t\t\txb[i]=1;\n\t\t}\n\t\tif(zs[0]=='f')\n\t\t{\n\t\t\txb[i]=0;\n\t\t}\n\t\tscanf(\"%lf\",&sg[i]);\n\t}\n\tint sx[999];\n\tint xs[999];\n\tint e;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(xb[i]==1)\n\t\t{\n\t\t\tk++;\n\t\t\tsx[k]=i;\n\t\t}\n\t}\n\tfor(i=1;i<=k-1;i++)\n\t{\n\t\tfor(j=1;j<=k-i;j++)\n\t\t{\n\t\t\tif(sg[sx[j]]>sg[sx[j+1]])\n\t\t\t{\n\t\t\t\te=sx[j];\n\t\t\t\tsx[j]=sx[j+1];\n\t\t\t\tsx[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tif(xb[i]==0)\n\t\t{\n\t\t\tkk++;\n\t\t\txs[kk]=i;\n\t\t}\n\t}\n\tfor(i=1;i<=kk-1;i++)\n\t{\n\t\tfor(j=1;j<=kk-i;j++)\n\t\t{\n\t\t\tif(sg[xs[j]]>sg[xs[j+1]])\n\t\t\t{\n\t\t\t\te=xs[j];\n\t\t\t\txs[j]=xs[j+1];\n\t\t\t\txs[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2lf\",sg[sx[1]]);\n\tfor(i=2;i<=k;i++)\n\t{\n\t\tprintf(\" %.2lf\",sg[sx[i]]);\n\t}\n\tfor(i=kk;i>=1;i--)\n\t{\n\t\tprintf(\" %.2lf\",sg[xs[i]]);\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50654", "code": "main()\n{\n struct line\n {\n char x[10];\n double y;\n };\n int n,a,b,m;\n double c;\n scanf(\"%d\",&n);\n struct line *p=(struct line *)malloc(n*sizeof(struct line));\n for(a=0;a<=n-1;a++)\n {\n scanf(\"%s\",((p+a)->x));\n scanf(\"%lf\",&((p+a)->y));\n }\n for(a=0;a<=n-2;a++)\n {\n if(*((p+a)->x)=='m')\n {\n for(b=a+1;b<=n-1;b++)\n {\n if(*((p+b)->x)=='m')\n {\n if(((p+b)->y)<((p+a)->y))\n {\n c=(p+b)->y;\n ((p+b)->y)=((p+a)->y);\n ((p+a)->y)=c;\n }\n else;\n }\n else;\n }\n }\n else\n {\n for(b=a+1;b<=n-1;b++)\n {\n if(*((p+b)->x)=='f')\n {\n if(((p+b)->y)>((p+a)->y))\n {\n c=(p+b)->y;\n ((p+b)->y)=((p+a)->y);\n ((p+a)->y)=c;\n }\n else;\n }\n else;\n }\n }\n }\n for(a=0;a<=n-1;a++)\n {\n if(*((p+a)->x)=='m')\n printf(\"%.2lf \",((p+a)->y));\n else;\n }\n for(a=0;a<=n-1;a++)\n {\n if(*((p+a)->x)=='f')\n m=a;\n else;\n }\n for(a=0;a<=n-1;a++)\n {\n if(*((p+a)->x)=='f')\n {\n if(a!=m)\n printf(\"%.2lf \",((p+a)->y));\n else\n printf(\"%.2lf\",((p+a)->y));\n }\n else;\n }\n}"} +{"label": "102", "index": "50655", "code": "int main()\n{\n int i,j,k,a,b,x,n;\n char s[10];\n float h,m[1000],f[1000];\n scanf(\"%d\",&n);\n a=0;\n b=0;\n for(i=0;im[j+1])\n {\n h=m[j];\n m[j]=m[j+1];\n m[j+1]=h;\n }\n }\n }\n for(i=0;i> n;\n\tfloat t;\n\tchar a[41][6];\n\tfloat b[41] , m[41] , f[41];\n\tint i , j;\n\tfor (i = 1 ; i <= n ; i++)\n\t{\n\t\tcin >> a[i] >> b[i];\n\t\tif (a[i][0] == 'm')\n\t\t{\n\t\t \tmalecount++;\n\t\t\tm[malecount] = b[i];\n\t\t}\n\t\telse \n\t\t{\n\t\t\tfemalecount++;\n\t\t\tf[femalecount] = b[i];\n\t\t}\n\t}\n\tfor (i = 1 ; i <= malecount - 1 ; i++)\n\t{\n\t\tfor (j = 1 ; j <= malecount - i ; j++)\n\t\t{\n\t\t\tif (m[j] > m[j + 1])\n\t\t {\n\t\t\t\tt = m[j];\n\t\t\t\tm[j] = m[j + 1];\n\t\t\t m[j + 1] = t;\n\t\t }\n\t\t}\n\t}\n\tfor (i = 1 ; i <= femalecount - 1 ; i++)\n\t{\n\t\tfor (j = 1 ; j <= femalecount - i ; j++)\n\t\t{\n\t\t\tif (f[j] < f[j + 1])\n\t\t\t{\n\t\t\t\tt = f[j];\n\t\t\t\tf[j] = f[j + 1];\n\t\t\t f[j + 1] = t;\n\t\t\t}\n\t\t}\n\t}\n\tcout << fixed;\n\tcout << setprecision(2) << m[1];\n\tfor (i = 2 ; i <= malecount ; i++)\n\t{\n\t\tcout << \" \" << setprecision(2) << m[i];\n\t}\n\tfor (i = 1 ; i <= femalecount ; i++)\n\t{\n\t\tcout << \" \" << setprecision(2) << f[i];\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50657", "code": "int main()\n{\n\tint n;\n\tdouble nan[40]={0},nv[40]={0};\n\tint i,j=0,k=0,p,l,x,y,z,q;\n\tchar a[10];\n\tdouble b,c;\n\tcin>>n;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\tcin>>a>>b;\n\t\tif(strcmp(a,\"male\")==0)\n\t\t\tnan[j++]=b;\n\t\telse\n\t\t\tnv[k++]=b;\n\t}\n\tfor(p=0;pnan[l+1])\n\t\t\t{\n\t\t\t\tb=nan[l];\n\t\t\t\tnan[l]=nan[l+1];\n\t\t\t\tnan[l+1]=b;\n\t\t\t}\n\t\t}\n\t}\n\tfor(x=0;x> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> a[i] >> height[i];\n\t\tif (strcmp(a[i], \"male\") == 0)\n\t\t{\n\t\t\tmale1 += 1;\n\t\t\tmale[male1] = height[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfemale1 += 1;\n\t\t\tfemale[female1] = height[i];\n\t\t}\n\t}\n\tfor (i = 1; i < male1; i++)\n\t\tfor (j = 1; j <= male1 - i; j++)\n\t\t\tif (male[j] > male[j +1])\n\t\t\t{\n\t\t\t\tt = male[j];\n\t\t\t\tmale[j] = male [j + 1];\n\t\t\t\tmale[j + 1] = t;\n\t\t\t}\n\tfor (i = 1; i < female1; i++)\n\t\tfor (j = 1; j <= female1 - i; j++)\n\t\t\tif (female[j] < female[j + 1])\n\t\t\t{\n\t\t\t\tt = female[j];\n\t\t\t\tfemale[j] = female[j + 1];\n\t\t\t\tfemale[j + 1] = t;\n\t\t\t}\n\tfor (i = 1; i <= male1; i++)\n\t\tcout << fixed << setprecision(2) << male[i] << \" \";\n\tfor (i = 1; i < female1; i++)\n\t\tcout << fixed << setprecision(2) << female[i] << \" \";\n\tcout << female[female1] << endl;\n\n\treturn 0;\n}\n"} +{"label": "102", "index": "50659", "code": "struct human\n{\n char ch[7];\n float tall;\n };\nmain()\n{\n int n,m,s,i,j;\n int q=0;\n int x=0;\n scanf(\"%d\",&n);\n struct human hu[n],Hn[n],Hu[n];\n for(i=0;iHu[s].tall){\n s=j;}\n }\n printf(\" %.2f\",Hu[s].tall);\n Hu[s].tall=Hu[i].tall;\n }\n \n} \n \n \n \n "} +{"label": "102", "index": "50660", "code": "int main()\n{\n\tfloat a[40], b[40], t;\n\tchar c[41][7];\n\tint i, j, n, m, N;\n\tn = 0;\n\tm = 0;\n\tcin >> N;\n\tfor (i = 1; i <= N; i++)\n\t{\n\t\tcin >> c[i];\n\t\tif (c[i][0] == 'm')\n\t\t{\n\t\t\tn++;\n\t\t\tcin >> a[n];\n\t\t}\n\t\tif (c[i][0] == 'f')\n\t\t{\n\t\t\tm++;\n\t\t\tcin >> b[m];\n\t\t}\n\t}\n\tfor (i = 1; i <= n; i++)\n\t\tfor (j = 1; j < i; j++)\n\t\t\tif (a[i] < a[j])\n\t\t\t{\n\t\t\t\tt = a[i];\n\t\t\t\ta[i] = a[j];\n\t\t\t\ta[j] = t;\n\t\t\t}\n\tfor (i = 1; i <= m; i++)\n\t\tfor (j = 1; j < i; j++)\n\t\t\tif (b[i] > b[j])\n\t\t\t{\n\t\t\t\tt = b[i];\n\t\t\t\tb[i] = b[j];\n\t\t\t\tb[j] = t;\n\t\t\t}\n for (i = 1; i <= n; i++)\n {\n cout << fixed << setprecision(2) << a[i] <<\" \";\n }\n for(i = 1; i <= m; i++)\n\t{\n cout << fixed << setprecision(2) << b[i] ;\n\t if (i != m)\n\t\t cout << \" \";\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50661", "code": "\nint main(){\n\tint n,i=0,j=0;\n\tchar sex[41][7];\n\tdouble height[41],male[41]={0},female[41]={0},ex;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imale[j+1]){\n\t\t\t\tex=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=ex;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<41;i++){\n\t\tfor(j=0;j<40;j++){\n\t\t\tif(female[j]y[j-1]) {e=y[j]; y[j]=y[j-1]; y[j-1]=e;}\n }\n } printf(\"%.2lf\",x[1]);\n for(i=2;i<=c;i++) printf(\" %.2lf\",x[i]);\n for(i=0;im[k]&&jf[k]&&j>k){\n e=f[j];\n f[j]=f[k];\n f[k]=e;\n }\n \n \n }\n \n \n }\n for(int j=0;jmale[j])\n {\n s=male[i];\n male[i]=male[j];\n male[j]=s;\n }\n }\n for(i=0;i<=count2-2;i++)\n for(j=i+1;j<=count2-1;j++)\n {\n if(female[i]a[j+1])\n {\n f=a[j];\n a[j]=a[j+1];\n a[j+1]=f;\n c=e[j];\n e[j]=e[j+1];\n e[j+1]=c;\n }\n for(i=0,h=0;i=0;i--)\n if(e[i]==0)\n printf(\" %.2lf\",a[i]);\n\n }\n"} +{"label": "102", "index": "50668", "code": "void main()\n{\n\tfloat a[40],s1[40],s2[40],temp;\n\tint n,i1=0,i2=0,i,j,temp1=0,m;\n\tchar b[7];\n\tscanf(\"%d\",&n);\n\tfor(i=0;is1[j])\n\t\t\t{\n\t\t\t\ttemp=s1[j];\n\t\t\t\ttemp1=j;\n\t\t\t}\n\t\t}\n\t\ts1[temp1]=s1[i];\n\t\ts1[i]=temp;\n\t}\n\ttemp1=0;\n\tfor(i=0;is2[j])\n\t\t\t{\n\t\t\t\ttemp=s2[j];\n\t\t\t\ttemp1=j;\n\t\t\t}\n\t\t}\n\t\ts2[temp1]=s2[i];\n\t\ts2[i]=temp;\n\t}\n\tfor(i=0;i0;i--)\n\t{\n\t\tprintf(\"%1.2f \",s2[i]);\n\t}\n\tprintf(\"%1.2f\",s2[0]);\n}"} +{"label": "102", "index": "50669", "code": "int main()\n{\n\tint n,i,j=0,k=0,l,p,q;\n\tdouble h,m[40],f[40],x,y;\n\tchar sex[10],a[10]=\"male\",b[10]=\"female\";\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[j+1]){\n\t\t\t\tx=m[j];\n\t\t\t m[j]=m[j+1];\n\t\t\t m[j+1]=x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(l=0;lf[k+1]){\n\t\t\t\ty=f[k];\n\t\t\t\tf[k]=f[k+1];\n\t\t\t\tf[k+1]=y;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j=0;k--)\n\t\tprintf(\" %.2lf\",f[k]);\n\treturn 0;\n}\n\n\n\n\t\t\n\n"} +{"label": "102", "index": "50670", "code": "int main()\n{ \n\tint num,i,m=0,n=0,j;\n\tscanf(\"%d\",&num);\n\tdouble a[50],c[50],d[50],temp;\n\tchar b[50][10];\n\tfor(i=0;ii;j--)\n\t\t\t{\n\t\t\t\tif(c[j-1]>c[j])\n\t\t\t\t{\n\t\t\t\t\ttemp=c[j];\n\t\t\t\t c[j]=c[j-1];\n\t\t\t\t c[j-1]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(i=0;ii;j--)\n\t\t\t{\n\t\t\t\tif(d[j-1]=2;i--)\n {\n printf(\"%.2f \",f[i]);\n } printf(\"%.2f\\n\",f[1]);\n}\n\nvoid paixu(float *p,int x)\n{\n int k,mo;\n float huan;\n for(mo=x-1;mo>=1;mo--)\n {\n for(k=1;k<=mo;k++)\n {\n if(p[k]>p[k+1]) \n {\n huan=p[k];p[k]=p[k+1];p[k+1]=huan;\n} } } }"} +{"label": "102", "index": "50672", "code": "int main(){\nint n,i,k,x=0,y=0;\ndouble su[40],zu[40],a,b,tu[40];\nchar af[40][10];\nscanf(\"%d\",&n);\nfor(i=0;itu[i])\n{b=tu[i];\ntu[i]=tu[i+1];\ntu[i+1]=b;\n}\nprintf(\"%.2lf\",zu[0]);\nfor(k=1;k0;i--){\n\t\tfor(j=0;j0;i--){\n\t\tfor(j=0;jh[j+1]){\n\t\t\t\t\tt=h[j];\n\t\t\t\t\th[j]=h[j+1];\n\t\t\t\t\th[j+1]=t;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif((x[j][0]=='f')&&(x[j+1][0]=='f')){\n\t\t\t\tif(h[j]-1;i--)\n {\n if(i==0)printf(\"%.2f\",s[0]);\n else printf(\"%.2f \",s[i]);\n }\n} "} +{"label": "102", "index": "50675", "code": "struct person\n{\n char s[6];\n float h;\n};\nstruct person p[50];\nint main()\n{\n int i,j,n,man,woman;\n float m[50],w[50];\n scanf(\"%d\",&n);\n for(i=0;i=0;j--)\n for(i=0;im[i+1])\n {\n m[i]=m[i]+m[i+1];\n m[i+1]=m[i]-m[i+1];\n m[i]=m[i]-m[i+1];\n }\n for(i=0;i=0;j--)\n for(i=0;im[i+1]){\n\t\t\t\te=m[i+1];\n\t\t\t\tm[i+1]=m[i];\n\t\t\t\tm[i]=e;\n\t\t\t}\n\t\t}\n }\n\tfor(k=1;k<=fea;k++){\n for(i=0;i> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> sex[i] >> height[i];\n\t\tif (sex[i][0] == 'm')\n\t\t{\n\t\t\tcountM++;\n\t\t\tb[countM] = height[i];\n\t\t}\n \telse\n\t\t{\n\t\t\tcountF++;\n\t\t\tb[n+1-countF] = height[i];\n\t\t}\n\t}\n\tfor (i = 1; i < countM; i++)\n\t\tfor (j = i + 1; j <= countM; j++)\n\t\t{\n\t\t\tif (b[i] > b[j])\n\t\t\t{\n\t\t\t\ts = b[i];\n\t\t\t\tb[i] = b[j];\n\t\t\t\tb[j] = s;\n\t\t\t}\n\t\t}\n\tfor (i = countM + 1; i < n; i++)\n\t\tfor ( j = i + 1; j <= n; j++)\n\t\t{\n\t\t\tif (b[i] < b[j])\n\t\t\t{\n\t\t\t\tt = b[i];\n\t\t\t\tb[i] = b[j];\n\t\t\t\tb[j] = t;\n\t\t\t}\n\t\t}\n\tfor (i = 1; i < n; i++)\n\t\tcout << fixed << setprecision(2) << b[i] << \" \";\n\tcout << b[n] << endl;\nreturn 0;\n}"} +{"label": "102", "index": "50679", "code": "int main(){\n int i,j,k,o=0,p=0,n;\n char c[50][10],f[]={\"female\"},m[]={\"male\"};\n float h[50],a[50],b[50],u;\n scanf(\"%d\",&n);\n for(i=0;ia[i+1]){\n u=a[i+1];\n a[i+1]=a[i];\n a[i]=u;\n }\n }\n }\n for(k=1;knansheng[i+1])\n {\n t=nansheng[i];\n nansheng[i]=nansheng[i+1];\n nansheng[i+1]=t;\n }\n }\n }\n double r;\n for (j=1;j= 0; i--)\n\t\t{\n\t\t\tif(flag)\tputchar(' ');\n\t\t\tflag = 1;\n\t\t\t\n\t\t\tprintf(\"%.2lf\", d1[i]);\t\n\t\t}\n\t\t\n\t\tputs(\"\");\n\t}\n\treturn 0;\t\n}\n"} +{"label": "102", "index": "50682", "code": "int main()\n{\n int s,m1,m2,n,i,j,que,f;\n\tchar ch[50];\n\tfloat b[41],g[41],height,temp;\n \n\tscanf(\"%d\",&n);\n\tm1=-1;\n\tm2=-1;\n\tfor(i=0;ib[j])\n\t\t\t\tf=j;\n\t\tif(f!=i)\n\t\t{\n\t\t temp=b[i];\n\t\t\tb[i]=b[f];\n\t\t\tb[f]=temp;\n\t\t}\n\t}\n\n\tfor(i=0;i> n;\n\tp = 0; q = 0;\n\tfor (int i = 1; i <= n; i++)\n\t{\n\t\tcin.get();\n\t\tcin >> str;\n\t\tif (str[0] == 'm')\n\t\t{\n\t\t\tp++;\n\t\t\tcin >> a[p];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tq++;\n\t\t\tcin >> b[q];\n\t\t}\n\t}\n\tfor (int i = 1; i <= p - 1; i++)\n\t\tfor (int j = 1; j <= p - i; j++)\n\t\t\tif (a[j] > a[j + 1])\n\t\t\t{\n\t\t\t\ttemp = a[j];\n\t\t\t\ta[j] = a[j + 1];\n\t\t\t\ta[j + 1] = temp;\n\t\t\t}\n\tfor (int i = 1; i <= q - 1; i++)\n\t\tfor (int j = 1; j <= q - i; j++)\n\t\t\tif (b[j] < b[j + 1])\n\t\t\t{\n\t\t\t\ttemp = b[j];\n\t\t\t\tb[j] = b[j + 1];\n\t\t\t\tb[j + 1] = temp;\n\t\t\t}\n\tfor (int i = 1; i <= p; i++)\n\t\tcout << fixed << setprecision(2) << a[i] << \" \";\n\tfor (int i = 1; i <= q - 1; i++)\n\t\tcout << b[i] << \" \";\n\tcout << b[q];\n\treturn 0;\n}"} +{"label": "102", "index": "50684", "code": "const int MAXN = 50;\nint n;\ndouble a[MAXN], b[MAXN];\nint nummale, numfemale;\nint main() {\n nummale = 0;\n numfemale = 0;\n scanf(\"%d\", &n);\n char sex[10];\n double h;\n for (int i = 0; i < n; ++i) {\n scanf(\"%s%lf\", sex, &h);\n if (strcmp(sex, \"male\") == 0) {\n a[nummale++] = h;\n } else {\n b[numfemale++] = h;\n }\n }\n sort(a, a + nummale);\n sort(b, b + numfemale);\n for (int i = 0; i < nummale; ++i)\n printf(\"%.2lf \", a[i]);\n for (int i = numfemale - 1; i > 0; --i)\n printf(\"%.2lf \", b[i]);\n if (numfemale > 0)\n printf(\"%.2lf\\n\", b[0]);\n \n return 0;\n}\n"} +{"label": "102", "index": "50685", "code": "\n\ndouble a[45];int m=0;\ndouble b[45];int f=0;\nchar sex[10];\n\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n\t\n\tint i,j=0,k=0;\n\tfor(i=0;i>sex;\n\t\tif(strcmp(sex,\"male\")==0)\n\t\t\tcin>>a[m++];\n//\t\t\tscanf(\"%g\",&a[m++]);\n\t\telse\n\t\t\tcin>>b[f++];\n//\t\t\tscanf(\"%g\",&b[f++]);\n\t}\n//\tcout<<\"male\"<0;i--)\n\t\tprintf(\"%.2f \",b[i]);\n//\t\tcout<m[i+1]){\n\t\t\t\te=m[i+1];\n\t\t\t\tm[i+1]=m[i];\n\t\t\t\tm[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfor(k=1;k<=female;k++){\n\t\tfor(i=0;i1)\n\t{\n\tfor(k=p-2;k>=0;k--)\n\t {\n \t\tfor(i=0;i<=k;i++)\n \t\t{if(d[i]>d[i+1])\n\t\t \t{l=d[i];\n\t\t \td[i]=d[i+1];\n\t\t \td[i+1]=l;\n\t\t \t\n\t\t \t}\n \t\t}\t\n\t\n\t\t}\n\t\n\t}\n\t\n\t\tif(q>1)\n\t{\n\tfor(k=q-2;k>=0;k--)\n\t {\n \t\tfor(i=0;i<=k;i++)\n \t\t{if(e[i]>e[i+1])\n\t\t \t{l=e[i];\n\t\t \te[i]=e[i+1];\n\t\t \te[i+1]=l;\n\t\t \t\n\t\t \t}\n \t\t}\t\n\t\n\t\t}\n\t\n\t}\n\t\n\t\n\tprintf(\"%.2f\",d[0]);\n\t\n\tfor(i=1;i=0;i--)\n\t{\n\t\tprintf(\" %.2f\",e[i]);\n\t}\n\t\nreturn 0;\t\n}"} +{"label": "102", "index": "50688", "code": "int main(){\n\tint n,i,j,x=0,y=0;\n\tdouble a[100],b[100],c,s;\n\tchar t[7];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[j+1]){\n\t\t\t\ts=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=s;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=2;i--)\n\t\tprintf(\"%.2f \",female_high[i]);\n\tprintf(\"%.2f\\n\",female_high[1]);\n\treturn 0;\n}"} +{"label": "102", "index": "50690", "code": "int main(){\n int n,i;\n char xb[40][8];\n double h[40];\n scanf(\"%d\",&n);\n for(i=0;imh[i+1]){\n double e;\n e=mh[i];\n mh[i]=mh[i+1];\n mh[i+1]=e;\n }\n }\n }\n for(int a=1;a<=f;a++){\n for(i=0;ia[j+1]){\n temp=a[j];\n a[j]=a[j+1];\n a[j+1]=temp; \n }\n for(i=0;i<=count2-2;i++)\n for(j=0;j<=count2-2-i;j++)\n if(b[j]i;j--)\n\t\t{\n\t\t\tfloat tem;\n\t\t\tif(m[i]>m[j])\n\t\t\t{tem=m[i];m[i]=m[j];m[j]=tem;}\n\t\t}\n\t}\n\n//\n\tfor(i=1;ii;j--)\n\t\t{\n\t\t\tfloat tem;\n\t\t\tif(f[i]0;i--){\n\t for(j=0;j0;i--){\n\t for(j=0;jboy[j+1]){\n\t\t t=boy[j];\n\t\t boy[j]=boy[j+1];\n\t\t boy[j+1]=t;\n\t\t }\n\t }\n }\n for(i=0;ia[j])\n\t\t\t{\n\t\t\t\tk=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=k;\n\t\t\t}\n\t\t}\n\t\tprintf(\"%.2f \",a[i]);\n\t}\n\tprintf(\"%.2f \",a[na-1]);\n\tfor(i=n;i>nv+1;i--)\n\t{\n\t\tfor(j=i;j>nv;j--)\n\t\t{\n\t\t\tif(a[i]>a[j])\n\t\t\t{\n\t\t\t\tk=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=k;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=nv+1;ib[j+1]){\n\t\t\te=b[j];\n\t\t\tb[j]=b[j+1];\n\t\t\tb[j+1]=e;\n\t\t}\n\t}\n}\nfor(i=0;ic[j+1]){\n\t\t\t\te=c[j+1];\n\t\t\t\tc[j+1]=c[j];\n\t\t\t\tc[j]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[k+1])\n\t\t\t{\n\t\t\t\te=m[k];\n\t\t\t\tm[k]=m[k+1];\n\t\t\t\tm[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\nfor(i=0;i> n;\n cin.get();\n for(i = 0; i < n; i++)\n {\n cin >> sex[i];\n cin >> height[i];\n cin.get();\n }\n int k = 0, m = 0;\n float t;\n for(i = 0; i < n; i++)\n {\n if(sex[i][0] == 'm')\n {\n hmale[m] = height[i];\n m++;\n }\n else\n {\n hfemale[k] = height[i];\n k++;\n }\n }\n for(i = 0; i < m - 1; i++)\n for(j = 0; j < m - 1 - i; j++)\n {\n if(hmale[j] > hmale[j + 1])\n {\n t = hmale[j + 1];\n hmale[j + 1] = hmale[j];\n hmale[j] = t;\n }\n\n }\n for(i = 0; i < k - 1; i++)\n for(j = 0; j < k - 1 - i; j++)\n {\n\n if(hfemale[j] < hfemale[j + 1])\n {\n t = hfemale[j + 1];\n hfemale[j + 1] = hfemale[j];\n hfemale[j] = t;\n }\n }\n for(i = 0; i < m; i++)\n printf(\"%.2f \", hmale[i]);\n for(i = 0; i < k - 1; i++)\n printf(\"%.2f \", hfemale[i]);\n printf(\"%.2f\", hfemale[k - 1]);\n return 0;\n}\n"} +{"label": "102", "index": "50699", "code": "\nint compare1(const void *elem1,const void *elem2)\n{\n float *p1,*p2;\n p1=(float *)elem1;\n p2=(float *)elem2;\n if(*p1>*p2)\n\t return 1;\n else\n\t return 0;\n}\n\nint compare2(const void *elem1,const void *elem2)\n{\n float *p1,*p2;\n p1=(float *)elem1;\n p2=(float *)elem2;\n if(*p2>*p1)\n\t return 1;\n else\n\t return 0;\n}\n\nint main()\n{\n int i,n,k1=0,k2=0;\n\tchar c[7];\n\tfloat MH[40],FH[40];\n\n\tscanf(\"%d\",&n);\n\twhile(n--)\n\t{\n\t\tscanf(\"%s\",c);\n\t\tif(strcmp(c,\"male\")==0)\n\t\t\tscanf(\"%f\",&MH[k1++]);\n\t\telse if(strcmp(c,\"female\")==0)\n\t\t\tscanf(\"%f\",&FH[k2++]);\n\t}\n qsort(MH,k1,sizeof(float),compare1);\n\tqsort(FH,k2,sizeof(float),compare2);\n\tfor(i=0;i *(double*)y ? 1 : -1); \n} \nmain()\n{\nint n,i,j,k;\ndouble boy[41],girl[41];\nscanf(\"%d\",&n);\nstruct student\n{char gender[10];\ndouble height;\n}student[41];\nfor(i=0;i<=n-1;i++)\nscanf(\"%s %lf\",&student[i].gender,&student[i].height);\ni=0;\nj=0;\nk=0;\nwhile(i<=n-1)\n{\n\tif(student[i].gender[0]=='m')\n\t{boy[j]=student[i].height;\n\tj++;}\n\telse\n\t{girl[k]=student[i].height;\n\tk++;}\n\ti++;\n}\n\nqsort(boy,j,sizeof(boy[0]),cmpdouble);\nqsort(girl,k,sizeof(girl[0]),cmpdouble);\nfor(i=0;i<=j-1;i++)\nprintf(\"%.2f \",boy[i]);\nfor(i=k-1;i>0;i--)\nprintf(\"%.2f \",girl[i]);\nprintf(\"%.2f\",girl[0]);\n}\n "} +{"label": "102", "index": "50701", "code": "int main()\n{\nint n,i,j,k,male,female;\ndouble t;\nchar xingbie[50][10];\ndouble shengao[50],nan[50],nv[50];\nscanf(\"%d\",&n);\nfor(j=0;jnan[j+1]){\n t=nan[j];\n nan[j]=nan[j+1];\n nan[j+1]=t;\n }\n }\n }\n for(i=0;inv[j+1]){\n t=nv[j];\n nv[j]=nv[j+1];\n nv[j+1]=t;\n }\n }\n }\n for(i=0;i0;i--){printf(\"%.2lf \",nv[i]);}\n printf(\"%.2lf\",nv[0]);\n\nreturn 0;\n}\n"} +{"label": "102", "index": "50702", "code": "struct photo\n{\n char gen[10];\n double height;\n};\nmain()\n{\n int n;\n scanf(\"%d\",&n);\n struct photo a[50];\n struct photo b;\n int i,j,k=0;\n for(i=0;i=0;i--)\n {\n if(strcmp(a[i].gen,\"male\")==0&&k!=0)\n printf(\" %.2f\",a[i].height);\n if(strcmp(a[i].gen,\"male\")==0&&k==0)\n {\n printf(\"%.2f\",a[i].height);\n k=k+1;\n }\n }\n for(i=0;ih[j+1]){\n\t\t\t\te=h[j];\n\t\t\t\th[j]=h[j+1];\n\t\t\t\th[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--)\n printf(\"%.2f \",female[i]);\n printf(\"%.2f\",female[i]);\n printf(\"\\n\");\nreturn 0;\n}"} +{"label": "102", "index": "50705", "code": "void px(double *sz,int n);\nint main(){\n\tchar s[10];\n\tdouble hehe;\n\tdouble b[40];\n\tdouble g[40];\n\tint by=0;\n\tint gl=0;\n\tint n;\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0;i=0;i--){\n\t\tprintf(\" %.2lf\",g[i]);\n\t}\n\treturn 0;\n}\nvoid px(double *sz,int n){\n\tint i,k;\n\tfor(k=1;k<=n;k++){\n\t\tfor(i=0;i<=n-k-1;i++){\n\t\t\tif(sz[i]>=sz[i+1]){\n\t\t\t\tdouble ex;\n\t\t\t\tex=sz[i];\n\t\t\t\tsz[i]=sz[i+1];\n\t\t\t\tsz[i+1]=ex;\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "102", "index": "50706", "code": "void array(double*A,int n)\n{\n\tint i,j,k;\n\tdouble t;\n\tfor(i=0;i0;i--)\nprintf(\"%.2lf \",nv[i]);\nprintf(\"%.2lf\",nv[0]);\n return 0;\n}"} +{"label": "102", "index": "50707", "code": "\nvoid main()\n{\n\n\tint male=0,female=0,n,i,j;\n\tchar cn,m,f;\n\tchar exam1[]=\"mmm\",exam2[]=\"fff\";\n\n float an[40],bn[40],high,temp1;\n char temp[6];\n\tm=exam1[0];\n\tf=exam2[0];\n\tscanf(\"%d\",&n);\n for(i=0;ian[j+1])\n\t {\n temp1=an[j];\n\t\t an[j]=an[j+1];\n\t\t an[j+1]=temp1;\n\n\t }\n\t }\n\t}\n\nfor(i=0;i>a;\n \tcin>>b[i];\n \tif(a[0]=='m'){\n \t\tc[x]=b[i];\n \t\tx++;\n \t}\n \tif(a[0]=='f'){\n \t\td[y]=b[i];\n \t\ty++;\n \t}\n }\n for(i=0;ii;j--){\n if(c[j]i;j--){\n if(d[j]>d[j-1]){\n t=d[j];\n d[j]=d[j-1];\n d[j-1]=t;\n }\n }\n }\n for(i=0;ifemale[s].height)\n {\n b=female[s+1];\n female[s+1]=female[s];\n female[s]=b;\n }\n }\n }\n for(int t=0;t<=m-1;t++)\n {\n printf(\"%.2f \",male[t].height);\n }\n for(int u=0;u<=y-2;u++)\n {\n printf(\"%.2f \",female[u].height);\n }\n printf(\"%.2f\",female[y-1].height); \n}\n"} +{"label": "102", "index": "50710", "code": "int main()\n{\n\tint n,i,j,s,mm,ff;\n\tdouble b[41],m[41],f[41],c;\n\tchar a[41][7];\n\tscanf(\"%d\",&n);\n\tmm=ff=0;\n\tfor(i=0;im[j+1])\n\t\t\t{\n\t\t\t\tc=m[j];\n\t\t\t\tm[j]=m[j+1];\n\t\t\t\tm[j+1]=c;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--)\n{\nfor(f=0;fc[f+1])\n{\ndouble tmp;\ntmp=c[f+1];\n c[f+1]=c[f];\nc[f]=tmp;\n}\n}\n}\nfor(i=r-1;i>0;i--)\n{\nfor(f=0;f0;k--)\nfor(i=0;imale[i+1])\n\t{\n\t\tdouble tmp;\n\t\ttmp=male[i+1];\n\t\tmale[i+1]=male[i];\n\t\tmale[i]=tmp;\n\t}\n}\nfor(k=b-1;k>0;k--)\nfor(i=0;ifemale[i+1])\n\t{\n\t\tdouble tmp;\n\t\ttmp=female[i+1];\n\t\tfemale[i+1]=female[i];\n\t\tfemale[i]=tmp;\n\t}\n}\nprintf(\"%.2lf\",male[0]);\nfor(i=1;i=0;i--)\nprintf(\" %.2lf\",female[i]);\nreturn 0;\n}"} +{"label": "102", "index": "50713", "code": "int main()\n{\n\tchar a[8];\n\tfloat male[44] = {0}, female[44] = {0}, temple;\n\tint n, i = 0, j = 0;\n\n\tcin >> n;\n\tfor ( int k = 0; k < n; k++ )\n\t{\n\t\tcin.get();\n\t\ta[0] = cin.get();\n\t\tfor ( int l = 0; a[l] != ' '; l++ )\n\t\t\ta[l + 1] = cin.get();\n\t\tif ( a[0] == 'm' )\n\t\t{\n\t\t\tcin >> male[i];\n\t\t\ti++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcin >> female[j];\n\t\t\tj++;\n\t\t}\n\t}\n\tfor ( int k = 0; k < i; k++ )\n\t{\n\t\tfor ( int l = 1; l < i - k; l++ )\n\t\t{\n\t\t\tif ( male[l] < male[l - 1] )\n\t\t\t{\n\t\t\t\ttemple = male[l];\n\t\t\t\tmale[l] = male[l - 1];\n\t\t\t\tmale[l - 1] = temple;\n\t\t\t}\n\t\t}\n\t}\n\tfor ( int k = 0; k < j; k++ )\n\t{\n\t\tfor ( int l = 1; l < j - k; l++ )\n\t\t{\n\t\t\tif ( female[l] > female[l - 1] )\n\t\t\t{\n\t\t\t\ttemple = female[l];\n\t\t\t\tfemale[l] = female[l - 1];\n\t\t\t\tfemale[l - 1] = temple;\n\t\t\t}\n\t\t}\n\t}\n\tcout << fixed << setprecision(2) << male[0];\n\tfor ( int k = 1; k < i; k++ )\n\t\tcout << \" \" << setprecision(2) << male[k];\n\tfor ( int k = 0; k < j; k++ )\n\t\tcout << \" \" << setprecision(2) << female[k];\n\treturn 0;\n}\n"} +{"label": "102", "index": "50714", "code": "main()\n{\n int n,i,j;\n char s[10];\n float k;\n scanf(\"%d\",&n);\n struct \n {\n char sex[10];\n float hei;\n } peo[n];\n for(i=0;i=i;j--)\n if(peo[j].hei=0;i--)\n if(strcmp(peo[i].sex,\"female\")==0)\n printf(\" %.2f\",peo[i].hei);\n}"} +{"label": "102", "index": "50715", "code": "int main(){\n\tchar sex[10];\n\tdouble shengao;\n\tint n,i,male=0,female=0;\n\tdouble m[40],f[40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=k;i--){\n\t\t\tif(m[i]m[i]){\n\t\t\n\t\t\tt=m[o];\n\t\t\tm[o]=m[i];\n\t\t\tm[i]=t;\n\n\t\t}\n\t}\n\n}\nfor(i=0;i>n;\n\th = height;\n\tfor(i=0;i>sex[i];\n\t\tcin>>*h++;\n\t\tcin.get();\n\t}\n\th = height;\n\tfor(i=0;imale[q+1])\n\t\t\t{\n\t\t\t\tx = male[q];\n\t\t\t\tmale[q] = male[q+1];\n\t\t\t\tmale[q+1] = x;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=k-1;i++)\n\t{\n\t\tfor(q=0;q<=k-i-1;q++)\n\t\t{\n\t\t\tif(female[q]a[j+1]){\n\t\t\t\te=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=p;i++){\n\t\tfor(j=0;jb[i])\n\t\t{\n\t\tfloat t=b[j];\n\t\tb[j]=b[i];\n\t\tb[i]=t;\n\t\t}\t\t\t\n\t}\n}\nfor(int i=0;i 0; k--)\n\t{\n\t\tfor(i = 0; i < k; i++)\n\t\t\tif(m[i]>m[i+1])\n\t\t\t{\n\t\t\t\tq = m[i], m[i] = m[i+1], m[i+1] = q;\n\t\t\t}\n\t}\n\n\tfor(k = l-1; k > 0; k--)\n\t{\n\t\tfor(i = 0; i < k; i++)\n\t\t\tif(f[i] < f[i+1])\n\t\t\t{\n\t\t\t\tq = f[i], f[i] = f[i+1], f[i+1] = q;\n\t\t\t}\n\t}\n\n\tprintf(\"%.2lf\", m[0]);\n\tfor(i = 1; i<=j-1; i++)\n\t\tprintf(\" %.2lf\", m[i]);\n\tfor(i = 0; i<=l-1; i++)\n\t\tprintf(\" %.2lf\", f[i]);\n\n\treturn 0;\n}"} +{"label": "102", "index": "50721", "code": "void bubblesort1(float a[],int n)\n{\n\tint i,j;\n\tfloat tmp;\n\tfor(i=0;ia[j])\n\t\t{\n\t\t\ttmp=a[i];\n\t\t\ta[i] = a[j];\n\t\t\ta[j]=tmp;\t\n\t\t}\t\n\t}\n}\nvoid bubblesort2(float a[],int n)\n{\n\tint i,j;\n\tfloat tmp;\n\tfor(i=0;i students[j].height);\n else if (students[i].gender[0] == 'f' && students[j].gender[0] == 'f')\n ex = (students[i].height < students[j].height);\n if (ex) {\n ts = students[i];\n students[i] = students[j];\n students[j] = ts;\n }\n }\n }\n for (i=0; i0;p--)\n {\n for(int q=0;qstd2[q+1].tall)\n {\n float t;\n t=std2[q].tall;\n std2[q].tall=std2[q+1].tall;\n std2[q+1].tall=t;\n }\n }\n \n }\n for(int p=f-1;p>0;p--)\n {\n for(int q=0;q>n;\n\tm=0;\n\tf=0;\n\tfor(i=1;i<=n;i++){\n\t\tcin>>c[i]>>h[i];\n\t\tif(c[i][0]=='m'){\n\t\t\thm[m]=h[i];\n\t\t\tm++;\n\t\t}\n\t\telse{\n\t\t\thf[f]=h[i];\n\t\t\tf++;\n\t\t}\n\t}\n\tsort(hm,hm+m);\n\tsort(hf,hf+f);\n\tprintf(\"%.2f\",hm[0]);\n\tfor(i=1;i=0;i--)\n\t\tprintf(\"%c%.2f\",' ',hf[i]);\n\tcout<e[t+1]){\n\t\t\t\tp=e[t];\n\t\t\t\te[t]=e[t+1];\n\t\t\t\te[t+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=l;i++){\n\t\tfor(t=0;tmh[j+1]){\n temp=mh[j];\n mh[j]=mh[j+1];\n mh[j+1]=temp;\n }\n }\n }\n for(int i=0;im[j]){\n\t\t\t\th=m[i];m[i]=m[j];m[j]=h;\n\t\t\t}\n\tfor(i=0;i0)printf(\"%.2f\",m[0]);\n\tfor(i=1;i0;r--){\n\t\tfor(i=0;ia[i+1]){\n h=a[i+1];\n\t\t\t a[i+1]=a[i];\n\t\t\t a[i]=h;\n\t\t\t}\n\t\t}\n\t}\n for(r=k-1;r>0;r--){\n\t\tfor(i=0;ib[i+1]){\n h=b[i+1];\n\t\t\t b[i+1]=b[i];\n\t\t\t b[i]=h;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--){\n\t\tprintf(\"%.2lf \",b[i]);\n\t}\n\tprintf(\"%.2lf\",b[0]);\n\n\treturn 0;\n}\n\n\n"} +{"label": "102", "index": "50729", "code": "int main(){\n\tchar a[45][10];\n\tfloat b[45],f[45],m[45],e;\n\tint n,k,i;\n\tint x=0,y=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[i+1]){\n\t\t\t\te=m[i+1];\n\t\t\t\tm[i+1]=m[i];\n\t\t\t\tm[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0)\n {s=0;\n for (i=0;imale[i+1]) {male[i]=male[i]+male[i+1];male[i+1]=male[i]-male[i+1];male[i]=male[i]-male[i+1];s++;}\n }\n s=1;\n while (s>0)\n {s=0;\n for (i=0;i> n;\n\tint i, j = 0, k = 0;\n\tdouble temp;\n\tfor ( i = 0; i < n; i ++)\n\t{\n\t\tcin >> sex[i] >> height[i];\n\t\tif ( strcmp(sex[i],\"male\")==0 )\n\t\t{\n\t\t\tmale[j] = height[i];\n\t\t\tj ++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfemale[k] = height[i];\n\t\t\tk ++;\n\t\t}\n\t}\n\tfor ( num_male = 0; num_male < n; num_male ++)\n\t{\n\t\tif (male[num_male] <= 0)\n\t\t\tbreak;\n\t}\n\tfor ( num_female = 0; num_female < n; num_female ++)\n\t{\n\t\tif (female[num_female] <= 0)\n\t\t\tbreak;\n\t}\n\tfor ( i = 0; i < num_male - 1; i ++)\n\t\tfor ( j = 0; j < num_male - i - 1; j ++)\n\t\t{\n\t\t\tif (male[j] > male[j + 1])\n\t\t\t{\n\t\t\t\ttemp = male[j];\n\t\t\t\tmale[j] = male[j + 1];\n\t\t\t\tmale[j + 1] = temp;\n\t\t\t}\n\t\t}\n\tfor ( i = 0; i < num_female - 1; i ++)\n\t\tfor ( j = 0; j < num_female - i - 1; j ++)\n\t\t{\n\t\t\tif (female[j] > female[j+1])\n\t\t\t{\n\t\t\t\ttemp = female[j];\n\t\t\t\tfemale[j] = female[j + 1];\n\t\t\t\tfemale[j + 1] = temp;\n\t\t\t}\n\t\t}\n\tcout << fixed << setprecision(2) << male[0];\n\tfor ( i = 1; i < num_male; i ++)\n\t\tcout << fixed << setprecision(2) <<\" \"<< male[i];\n\tfor ( i =( num_female - 1); i >= 0; i --)\n\t\tcout << fixed << setprecision(2) <<\" \"<< female[i];\n\treturn 0;\n}\n\n\n"} +{"label": "102", "index": "50732", "code": "int main()\n{\n\tint n,m=0,d=0,i,j,r;\n\tdouble s[40],a[40],b[40];\n\tchar c[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;j--)\n\t{\n\t\tfor(r=0;ra[r+1]){\n\t\t\t\tdouble tmp;\n\t\t\t\ttmp=a[r+1];\n\t\t\t\ta[r+1]=a[r];\n\t\t\t\ta[r]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=d-1;j>0;j--)\n\t{\n\t\tfor(r=0;ra[i+1])\n\t\t{\n\t\t\tt=a[i];\n\t\t\ta[i]=a[i+1];\n\t\t\ta[i+1]=t;\n\t\t}\n\t}\n\t}\n\tfor(h=0;h> n;\n\tfloat male[n], female[n], height;\n\tint count_male=0, count_female=0;\n\tchar gender[8];\n\tfor (i=0;i> gender >> height;\n\t\tif (strcmp(gender,\"male\")==0){\n\t\t\tmale[count_male]=height;\n\t\t\tcount_male++;\n\t\t}\n\t\telse{\n\t\t\tfemale[count_female]=height;\n\t\t\tcount_female++;\n\t\t}\n\t}\n\tfloat temp;\n\tfor (i=0;imale[j+1]){\n\t\t\t\ttemp=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;ii;j--){\n\t\t\tif(m[j]i;j--){\n\t\t\tif(f[j]>f[j-1]){\n\t\t\t\tdouble q=f[j];\n\t\t\t\tf[j]=f[j-1];\n\t\t\t\tf[j-1]=q;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[i+1]){\n e=m[i];\n\t\t\t\t m[i]=m[i+1];\n\t\t\t\t m[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1;k<=q;k++){\n\t\tfor(i=0;ibhi[i+1]){\n\t\t\t\th=bhi[i];\n\t\t\t\tbhi[i]=bhi[i+1];\n\t\t\t\tbhi[i+1]=h;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;inanshengao[k+1]){\n zhongjianliang=nanshengao[k+1];\n nanshengao[k+1]=nanshengao[k];\n nanshengao[k]=zhongjianliang;\n }\n }\n }\n for(i=1;i<=nvshu;i++){\n for(k=0;k<(nvshu-i);k++){\n if(nvshengao[k]b[j+1])\n\t\t\t{\n\t\t\t\tt=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n for(i=0;i h[j + 1]) {\n double t = h[j];\n h[j] = h[j + 1];\n h[j + 1] = t;\n }\n}\n\nint main() {\n int n;\n char in[10];\n scanf(\"%i\", &n);\n for(int i = 0; i < n; i++) {\n scanf(\"%s%lf\", in, &h[i]);\n if(strcmp(in,\"male\") != 0)\n h[i]= 1000000.0 - h[i];\n }\n sort(n);\n for(int i = 0; i < n; i++) {\n if(i)\n printf(\" \");\n if(h[i] > 500000.0)\n printf(\"%.2lf\", 1000000.0 - h[i]);\n else\n printf(\"%.2lf\", h[i]);\n\n }\n return 0;\n}\n"} +{"label": "102", "index": "50741", "code": "int main()\n{\n\tint n,i,j,k=0,l=0;\n\tdouble a[1000],male[1000],female[1000],m;\n\tchar sex[1000][10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;imale[j])\n\t\t\t{\n\t\t\t\tm=male[j];\n\t\t\t\tmale[j]=male[i];\n\t\t\t\tmale[i]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;imale[j+1])\n\t\t\t{\n\t\t\t\ttemp=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;imale[j+1])\n\t\t\t{\n\t\t\t\tt=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>num;\n\tfor(i=0;i>sex[i]>>h[i];\n\tfor(i=0;iboy[j])\n\t\t\t{\n\t\t\t\ttemp = boy[j];\n\t\t\t\tboy[j] = boy[i];\n\t\t\t\tboy[i] = temp;\n\t\t\t}\n\t\t}\n\tfor(i=0;i*((double*)b))\n\t\treturn -1;\n\telse\n\t\treturn 1;\n}\nint asend(const void *a, const void *b)\n{\n\tif(*((double*)a)>*((double*)b))\n\t\treturn 1;\n\telse\n\t\treturn -1;\n}\nint main()\n{\n\tint p; int i,j,k;\n\tdouble h;\n\twhile(scanf(\"%d\",&p)!=EOF)\n\t{\n\t\tfsize=msize=0;\n\t\tfor(i=0;i>sex;\n\t\t\tcin>>h;\n\t\t\tif(strcmp(sex,\"male\")==0)\n\t\t\t{\n\t\t\t\tm[msize]=h;\n\t\t\t\tmsize++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tf[fsize]=h;\n\t\t\t\tfsize++;\n\t\t\t}\n\t\t}\n\t\tqsort(f,fsize,sizeof(double),desend);\n\t\tqsort(m,msize,sizeof(double),asend);\n\t\tfor(i=0;iman[x+1]){e=man[x];\n\t\t\tman[x]=man[x+1];\n\t\t\tman[x+1]=e;}\n\t\t\n\t\t}\n\t}\n\tfor(k=1;k<=m;k++){\n\t\tfor(x=0;xt1[j+1])\n\t\t\t{\n\t\t\t\ttt=t1[j];\n\t\t\t\tt1[j]=t1[j+1];\n\t\t\t\tt1[j+1]=tt;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[i+1])\n\t\t{\n\t\tc=m[i];\n\t\tm[i]=m[i+1];\n\t\tm[i+1]=c;\n\t\t}\n\t}\n}\n\nfor(j=0;j=2;i--)printf(\"%.2lf \",w[i]);\n printf(\"%.2lf\",w[1]);\n\n\n\n}\n"} +{"label": "102", "index": "50750", "code": "int main(){\nint i,w,m,n,k;\ndouble a[40],b[40],c[40];\nchar q[40][7];\nscanf(\"%d\",&w);\nm=0;\nn=0;\nfor(i=0;ic[i+1]){\n\t e=c[i+1];\n\t c[i+1]=c[i];\n\t c[i] = e;\n\t}\n }\n}\nfor(i=0;i=0;i--)\n {\n if(i==y-1)\n printf(\"%.2lf\",a[i]);\n else \n printf(\" %.2lf\",a[i]);\n }\n for(i=0;imale[j+1])\n\t\t\t{\n\t\t\t\ttemp=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=temp;\n\t\t\t}\n\t\t\tif(female[j]nv[j+1])\n\t\t {\n\t\t\t e=nv[j];\n\t\t\t nv[j]=nv[j+1];\n\t\t\t nv[j+1]=e;\n\t\t }\n\t }\n }\n for(k=0;knan[m+1])\n\t {\n\t\t e=nan[m];\n\t\t nan[m]=nan[m+1];\n\t\t nan[m+1]=e;\n\t }\n\t }\n }\n for(k=p-1;k>=0;k--)\n {\n\t printf(\" %.2lf\",nan[k]);\n }\n\n\t \n\n\nreturn 0;\n}"} +{"label": "102", "index": "50754", "code": "int main(){\n\tint n,i,k;\n\tdouble H;\n\tscanf(\"%d\",&n);\n\tstruct xs{\n\t\tchar zfc[12];\n\t\tdouble h;\n\t}xs[41];\n\tfor(i=0;ixs[i+1].h){\n c=xs[i].zfc[0];\n xs[i].zfc[0]=xs[i+1].zfc[0];\n\t\t\t\txs[i+1].zfc[0]=c;\n\t\t\t\tH=xs[i].h;\n\t\t\t\txs[i].h=xs[i+1].h;\n\t\t\t\txs[i+1].h=H;\n\t\t\t}\n\t\t}\n\t}\n\tint d=0;\n\tfor(i=0;i=0;i--){\n\t\tif(d==n-1){\n\t\t\tif(xs[i].zfc[0]=='f'){\n printf(\"%.2lf\",xs[i].h);\n\t\t\t d++;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t if(xs[i].zfc[0]=='f'){\n\t\t\t printf(\"%.2lf \",xs[i].h);\n\t\t\t d++;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "102", "index": "50755", "code": "int main()\n{\n\tint n,i,m=0,f=0,j;\n\t\n\tchar s[10];\n\tdouble x,ma[50]={0},fe[50]={0},t;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ima[j+1])\n\t\t\t\t{\n\t\t\t\t\tt=ma[j];\n\t\t\t\t\tma[j]=ma[j+1];\n\t\t\t\t\tma[j+1]=t;\t\n\t\t\t\t}\n\t\t}\t\n\t}\n\t\n\tfor(i=0;i> num;\n\tint i, j, k;\n\tfloat temp;\n float fe[50], ma[50];\n\tfloat height, res[50];\n\tchar xinbie[50][10];\n\tfor(i = 1; i <= num; i++)\n\t{\n\t\tscanf(\"%s %f\", &xinbie[i], &height);\n\t\tif(xinbie[i][0] == 'f')\n\t\t{\n\t\t\tfnum += 1;\n\t\t\tfe[fnum] = height;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmnum += 1;\n\t\t\tma[mnum] = height;\n\t\t}\n\t}\n\n\n\tfor(i = fnum; i > 1; i--)\n\t\tfor(j = 1; j fe[j+1])\n\t\t\t{\n\t\t\t\ttemp = fe[j];\n\t\t\t\tfe[j] = fe[j+1];\n\t\t\t\tfe[j+1] = temp;\n\t\t\t}\n\t\t}\n\tfor(i = mnum; i > 1; i--)\n\t\tfor(j = 1; j ma[j+1])\n\t\t\t{\n\t\t\t\ttemp = ma[j];\n\t\t\t\tma[j] = ma[j+1];\n\t\t\t\tma[j+1] = temp;\n\t\t\t}\n\t\t}\n \n char out[10];\n\tfor(i = 1; i <= mnum ; i++)\n\t{\n\t\tprintf(\"%.2f \", ma[i]);\n\t}\n\tfor(i = fnum; i >= 2; i--)\n\t{\n\t\tprintf(\"%.2f \", fe[i]);\n\t}\n\tprintf(\"%.2f\", fe[1]);\n//\tcin >> j;\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50757", "code": "\ndouble male[41];\ndouble female[41];\n\n\nint compare(const void* e1,const void* e2)\n{\n\tdouble* p1=(double* )e1;\n\tdouble* p2=(double* )e2;\n\tif(*p1<*p2)\n\t\treturn 0;\n\telse return 1;\n}\n\n\nint main()\n{\n\tint nCase,i;\n\tint f=0,m=0;\n\tchar sex[10];\n\tdouble height;\n\tscanf(\"%d\",&nCase);\n\tfor(i=0;i0;i--)\n\t\tprintf(\"%.2f \",female[i]);\n\tprintf(\"%.2f\\n\",female[0]);\n\treturn 0;\n}"} +{"label": "102", "index": "50758", "code": "int main(){\n\tint n,i,j=0,k=0,a,b,p=0,q=0;\n\tdouble sz[50],f[50],m[50],e,t;\n\tchar s[10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[k+1]){\n\t\t\t\te=m[k];\n\t\t\t\tm[k]=m[k+1];\n\t\t\t\tm[k+1]=e;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(b=1;b<=p;b++){\n\t\t\tfor(j=0;jf[j+1]){\n\t\t\t\t\tt=f[j];\n\t\t\t\t\tf[j]=f[j+1];\n\t\t\t\t\tf[j+1]=t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(k=0;k0;j--){\n\t\t\tprintf(\"%.2lf \",f[j]);\n\t\t}\n\t\tprintf(\"%.2lf\",f[0]);\n\t\treturn 0;\n\t}"} +{"label": "102", "index": "50759", "code": "int main(){\nint n,i,q,j=0,k=0;\ndouble m[40],f[40],e;\nscanf(\"%d\",&n);\nstruct p{\n char x[7];\n double h;\n}a[40];\nfor(i=0;if[i+1]){\n e=f[i+1];f[i+1]=f[i];f[i]=e;\n }\n }\n}\nfor(q=1;q<=k;q++){\n for(i=0;im[i+1]){\n e=m[i+1];m[i+1]=m[i];m[i]=e;\n }\n }\n}\nprintf(\"%.2lf\",m[0]);\nfor(i=1;i=0;i--){\n printf(\" %.2lf\",f[i]);\n}\nreturn 0;\n}\n\n\n\n"} +{"label": "102", "index": "50760", "code": "\nint nan[50],nv[50];\n\nvoid paixu(int a[],int n)\n{\n\tint i,j;\n\tint tmp;\n\tfor(i=n-1;i>=0;i--)\n\t{\n\t\tfor(j=0;ja[j+1])\n\t\t\t{\n\t\t\t\ttmp=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=tmp;\n\t\t\t}\n\t\t}\n\t}\n}\n\nint main()\n{\n\tint nannum=0,nvnum=0;\n\tint n,i;\n\tdouble tmp;\n\tint flag=0;\n\tchar str[100];\n\tscanf(\"%d\",&n);\n\twhile(n--)\n\t{\n\t\tscanf(\"%s %lf\",str,&tmp);\n\t\tif(str[0]=='m')\n\t\t\tnan[nannum++]=tmp*1000;\n\t\telse\n\t\t\tnv[nvnum++]=tmp*1000;\n\t}\n\tpaixu(nan,nannum);\n\tpaixu(nv,nvnum);\n\tfor(i=0;i=0;i--)\n\t{\n\t\ttmp=(double)nv[i]/1000;\n\t\tif(i!=0)\n\t\t\tprintf(\"%.2lf \",tmp);\n\t\telse\n\t\t\tprintf(\"%.2lf\",tmp);\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "102", "index": "50761", "code": "int main()\n{\n\tchar sex[45][9];\n\tdouble l[45],l1[45]={0},l2[45]={0},e;\n\tint n,i,j=0,k=0,s,sum1=0,sum2=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;il1[j+1])\n\t\t\t{\n\t\t\t\te=l1[j];\n\t\t\t\tl1[j]=l1[j+1];\n\t\t\t\tl1[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(s=1;s<=sum2;s++)\n\t{\n\t\tfor(k=0;kl2[k+1])\n\t\t\t{\n\t\t\t\te=l2[k];\n\t\t\t\tl2[k]=l2[k+1];\n\t\t\t\tl2[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=0;j0;k--)\n\t\tprintf(\"%.2lf \",l2[k]);\n\tprintf(\"%.2lf\",l2[0]);\n\treturn 0;\n}\n\t"} +{"label": "102", "index": "50762", "code": "int main()\n{\n\tint n,i,j,k,nan=0,nv=0;\n\tdouble h[100],a[100],b[100],t;\n\tchar sex[100];\n\tscanf(\"%d\",&n);\n\tj=1;\n\tk=0;\n\tfor(i=0;ia[j+1]){\n\t\t\t\tt=a[j+1];\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\ta[j]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=nan;i++){\n\t\tif(i==1)\n\t\t\tprintf(\"%.2lf\",a[i]);\n\t\telse\n\t\t\tprintf(\" %.2lf\",a[i]);\n\t}\n\tfor(i=0;i0;i--){\n\tfor(l=0;la[l+1]){\n\t\t\tt=a[l];\n\t\t\ta[l]=a[l+1];\n\t\t\ta[l+1]=t;\n\t\t}\n\t}\n}\nt=0;\nfor(i=k-1;i>0;i--){\n\tfor(l=0;lm[j])\n{\ntemp=m[i];\nm[i]=m[j];\nm[j]=temp;\n}\nfor (i=0;i<=nf-1;i++)\nfor (j=i+1;j<=nf;j++)\nif (f[i]m[b+1])\n\t\t\t{\n\t\t\t\te=m[b+1];\n\t\t\t\tm[b+1]=m[b];\n\t\t\t\tm[b]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\tcin.get();\n\tfor(int i=0;i>stu[i].sex>>stu[i].h;\n\t\tif(strcmp(stu[i].sex,str1)==0)\n\t\t{\n\t\t\tstu1[k1++]=stu[i];\n\t\t}\n\t\tif(strcmp(stu[i].sex,str2)==0)\n\t\t{\n\t\t\tstu2[k2++]=stu[i];\n\t\t}\n\t}\n\tfor(int i=0;istu1[j].h)\n\t\t\t{\n\t\t\t\tt=stu1[i];\n\t\t\t\tstu1[i]=stu1[j];\n\t\t\t\tstu1[j]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int i=0;ixsz[i+1]){\n\t\t\t\tp=xsz[i];\n\t\t\t\txsz[i]=xsz[i+1];\n\t\t\t\txsz[i+1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tint o=0;\n\tdouble xxsz[40];\n\tfor(i=0;i=m[j]){t=m[i];m[i]=m[j];m[j]=t;}}\n \nfor(i=0;i2)\n{for(i=1;i0;i--)\n printf(\"%.2f \",m[i-1]);\n for(i=0;ii;p--)\n\t\t{\n\t\t\tif(n[p]i;q--)\n\t\t{\n\t\t\tif(f[q]>f[q-1])\n\t\t\t{\n\t\t\t\ts=f[q];\n\t\t\t\tf[q]=f[q-1];\n\t\t\t\tf[q-1]=s;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;if[ma]){\n\t\t\t\tma=j;\n\t\t\t}\n\t\t}\n\t\th=f[ma];f[ma]=f[i];f[i]=h;\n\t\tprintf(\"%.2f\",f[i]);\n\t\tif(i!=cf-1){\n\t\t\tprintf(\" \");\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50772", "code": "\nint main(int argc, char* argv[])\n{\n\tint n,i,j,mp=0,fp=0;\n\tdouble male[40],female[40],h,tmp;\n\tscanf(\"%d\",&n);\n\tchar s[10];\n\tfor(i=0;imale[j+1]){\n\t\t\t\ttmp=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[i+1])\n {\n t=m[i];\n m[i]=m[i+1];\n m[i+1]=t;\n }\n }\n }\n for(h=0;h1)\n {\n i=1;\n do\n {\n printf(\" %.2f\",m[i]);\n i=i+1;\n }\n while(i> n;\n\tm = f = 0;\n\twhile(n--)\n\t{\n\t\tcin >> sex >> h;\n\t\tif(sex[0] == 'm')\n\t\t{\n\t\t\tmale[m++] = h;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfemale[f++] = h;\n\t\t}\n\t}\n\tfor(i = 0; i < m; i++)\n\t{\n\t\tfor(j = m-1; j > i; j--)\n\t\t{\n\t\t\tif(male[j-1] > male[j])\n\t\t\t{\n\t\t\t\ttemp = male[j-1];\n\t\t\t\tmale[j-1] = male[j];\n\t\t\t\tmale[j] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i = 0; i < f; i++)\n\t{\n\t\tfor(j = f-1; j > i; j--)\n\t\t{\n\t\t\tif(female[j-1] < female[j])\n\t\t\t{\n\t\t\t\ttemp = female[j-1];\n\t\t\t\tfemale[j-1] = female[j];\n\t\t\t\tfemale[j] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i = 0; i < m; i++)\n\t{\n\t\tcout << fixed << setprecision(2) << male[i] << ' ';\n\t}\n\tfor(i = 0; i < f-1; i++)\n\t{\n\t\tcout << fixed << setprecision(2) << female[i] << ' ';\n\t}\n\tcout << female[f-1] << endl;\n\treturn 0;\n}\n"} +{"label": "102", "index": "50775", "code": "void arrange(float *arrangearry,int nt,int kd_order)\n{\n\tint flagi,flagj;\n\tfloat temporary;\n\tif(kd_order==1)\n\t{\n\t\tfor(flagi=nt-1;flagi>0;flagi--)\n\t\t{\n\t\t\tfor(flagj=0;flagj0;flagi--)\n\t\t{\n\t\t\tfor(flagj=0;flagjarrangearry[flagj+1])\n\t\t\t\t{\n\t\t\t\t\ttemporary=arrangearry[flagj];\n\t\t\t\t\tarrangearry[flagj]=arrangearry[flagj+1];\n\t\t\t\t\tarrangearry[flagj+1]=temporary;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\nint main()\n{\n\tint i,n,len,male=0,female=0;\n\tfloat a[40],b[40],height;\n\tchar sex[10];\n\tcin>>n;\n\tfor(i=0;if[l+1])\n\t\t\t{\n\t\t\t\tz=f[l];\n\t\t\t\tf[l]=f[l+1];\n\t\t\t\tf[l+1]=z;\n\t\t\t} \n\t\t}\n\t}\n\tprintf(\"%.2f\",f[0]);\n\tfor(i=1;ih[0][j])\n\t\t\t{\n\t\t\t\tt=h[0][i];\n\t\t\t\th[0][i]=h[0][j];\n\t\t\t\th[0][j]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ia[u+1]){\n\t\t\t\te=a[u];\n\t\t\t\ta[u]=a[u+1];\n\t\t\t\ta[u+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ib1[i+1]){\n u=b1[i+1];\n b1[i+1]=b1[i];\n b1[i]=u;\n }\n }\n }\n for(j=1;j<=k;j++){\n for(i=0;i> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> sex[i] >> h[i];\n\t\tif (sex[i][0] == 'm')\n\t\t{\n\t\t\tm[j] = h[i];\n\t\t\tj++;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tf[k] = h[i];\n\t\t\tk++;\n\t\t}\n\t}\n\tfor (l = 1; l < j - 1; l++)\n\t\tfor (i = 1; i < j - l; i++)\n\t\t\tif (m[i] > m[i + 1])\n\t\t\t{\n\t\t\t\tt = m[i];\n\t\t\t\tm[i] = m[i + 1];\n\t\t\t\tm[i + 1] = t;\n\t\t\t}\n\tfor (l = 1; l < k - 1; l++)\n\t\tfor (i = 1; i < k - l; i++)\n\t\t\tif (f[i] < f[i + 1])\n\t\t\t{\n\t\t\t\tt = f[i];\n\t\t\t\tf[i] = f[i + 1];\n\t\t\t\tf[i + 1] = t;\n\t\t\t}\n\tcout << fixed << setprecision(2) << m[1];\n\tfor (i = 2; i < j; i++)\n\t\tcout << fixed << setprecision(2) << \" \" << m[i] ;\n\tfor (i = 1; i < k; i++)\n\t\tcout << fixed << setprecision(2) << \" \" << f[i] ;\n\treturn 0;\n}\n\n\t\n\n\n\t\n\n\n\n\n\n"} +{"label": "102", "index": "50781", "code": "int main(){\nchar s[7];\nint i,n,j;\nscanf(\"%d\",&n);\ndouble a[n],b[n],m,t;\nfor(i=0;ia[j+1]){\nt=a[j];\na[j]=a[j+1];\na[j+1]=t;\n}\nif(b[j]t){\nprintf(\" %.2lf\",a[i]);\n}\n}\nfor(i=0;i0){\nprintf(\" %.2lf\",b[i]);\n}\n}\nreturn 0;\n}\n"} +{"label": "102", "index": "50782", "code": "int main()\n{\n\tint n,i=0,j=0,ttt;\n\tcin>>n;\n\tdouble f[44],m[44];\n\tchar sex[10];\t\t\n\tdouble height;\n\tfor(ttt=1;ttt<=n;ttt++)\n\t{\n\t\t\n\t\tcin>>sex>>height;\n\t\tif(sex[0]=='m')\n\t\t{\n\t\t\tm[i]=height;\n\t\t\ti++;\n\t\t}\n\t\telse if(sex[0]=='f')\n\t\t{\n\t\t\tf[j]=height;\n\t\t\tj++;\n\t\t}\n\t}\n\tint p=i-1,q=j-1;\n\tdouble tt;\n\tint h1,h2;\n\tfor(h1=0;h1m[h2+1])\n\t\t\t{\n\t\t\t\ttt=m[h2];m[h2]=m[h2+1];m[h2+1]=tt;\n\t\t\t}\n\t\t}\n\t}\n\tcout<y) return 1;\n\tif(x==y) return 0;\n\tif(x0;n--)\n\t{\n\t\tfgets(buf, sizeof(buf), stdin);\n\t\tp=strtok(buf, \" \");\n\t\ta = atof(strtok(NULL, \" \"));\n\t\tif(strcmp(p,\"male\")==0)\n\t\t\tmale[nm++]=a;\n\t\telse\n\t\t\tfema[nf++]=a;\n\t}\n\n\tqsort(male, nm, sizeof(float), mcmp);\n\tqsort(fema, nf, sizeof(float), fcmp);\n\n\tfor(i=0;i0;jj--)\n {\n for(int r=0;rm[r+1])\n {double tmp;\n tmp=m[r+1];\n m[r+1]=m[r];\n m[r]=tmp;\n }\n }\n \n } \n \n for(int jj=k-1;jj>0;jj--)\n {\n for(int r=0;r>n;\n for (int i=1;i<=n;i++)\n {cin>>gender>>h[i];\n if (strcmp(gender,\"male\")==0)\n { h[i]=h[i]*10;\n sum++;}\n \n }\n sort(h+1,h+n+1);\n for (int i=n-sum+1;i<=n;i++)\n printf(\"%.2lf \",h[i]/10);\n for (int i=n-sum;i>=2;i--)\n printf(\"%.2lf \",h[i]);\n \n printf(\"%.2lf\",h[1]);\n \n \n return 0;\n} \n"} +{"label": "102", "index": "50786", "code": "/*\n*/\nint main(){\n\tint n,i,j,b,a;\n\tchar x,str[41][21];\n\tdouble sz[41],male[41],female[41],t;\n scanf(\"%d\",&n);\n\tfor(i=0;i<41;i++){\n\t\tmale[41]=-1;\n\t\tfemale[41]=-1;\n\t}\n\tfor(i=0;imale[j+1]){\n\t\t\t\tt=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i 0 && tmpData < arr[j-1])\n\t\t{\n\t\t\tarr[j]=arr[j-1];\n\t\t\tj--;\n\t\t}\n\t\tarr[j]=tmpData;\n\t}\n}\n\nint main()\n{\n\tint n = 0;\n\tfloat male[40];\n\tfloat female[40];\n\tint maleNum = 0;\n\tint femaleNum = 0;\n\tchar sex[10];\n\tscanf(\"%d\", &n);\n\tfor (int i = 0; i < n; ++i)\n\t{\n\t\tscanf(\"%s\", sex);\n\t\tif (strcmp(sex, \"male\") == 0)\n\t\t\tscanf(\"%f\", &male[maleNum++]);\n\t\telse\n\t\t\tscanf(\"%f\", &female[femaleNum++]);\n\t}\n\n\tinsertSort(male, maleNum);\n\tinsertSort(female, femaleNum);\n\n\tint i = 0;\n\tfor (i = 0; i < maleNum - 1; ++i)\n\t{\n\t\tprintf(\"%.2f \", male[i]);\n\t}\n\tprintf(\"%.2f \", male[i]);\n\n\tfor (i = femaleNum - 1; i > 0; --i)\n\t{\n\t\tprintf(\"%.2f \", female[i]);\n\t}\n\tprintf(\"%.2f\", female[i]);\n\n\treturn 0;\n}"} +{"label": "102", "index": "50788", "code": "\nint main ()\n{\n int n,i,z,y,j;\n scanf(\"%d\",&n);\n double c[n];\n struct ppp\n {\n char a[6];\n double b;\n }p[n+2];\n for (i=1;i<=n;i++)\n {\n scanf(\"%s%lf\",p[i].a,&p[i].b);\n }\n for(i=1;i<=n;i++)\n {\n for (j=1;jp[j+1].b)\n {\n p[0]=p[j];\n p[j]=p[j+1];\n p[j+1]=p[0];\n }\n }\n }\n z=0;\n y=n-1;\n for(i=1;i<=n;i++)\n {\n if (strcmp(p[i].a,\"male\")==0)\n {\n c[z]=p[i].b;\n z++;\n }\n else\n {\n c[y]=p[i].b;\n y--;\n }\n }\n for (i=0;iman[e+1]){\n q=man[e];\n\t\tman[e]=man[e+1];\n\t\tman[e+1]=q;\n\t\t}\n\t}\n\n}\n\nfor(u=1;u*(float *)y?1:-1;\n}\nint main()\n{\n // ifstream if1(\"e:\\\\input1.txt\");\n\tint n,ptra=0,ptrb=0;\n float a[40],b[40];\n\tchar s[10];\n//\tif1>>n;\n\tcin>>n;\n\tfor(int i=0;i>s;\n\t//\tif1>>s;\n\t\tif(s[0]=='m')\n\t\t\tcin>>a[ptra++];\n\t//\tif1>>a[ptra++];\n\t\telse\n\t\t\tcin>>b[ptrb++];\n\t//\tif1>>b[ptrb++];\n\t}\n qsort(a,ptra,sizeof(float),cmp);\n\tqsort(b,ptrb,sizeof(float),cmp);\n\tfor(int j=0;j0;k--)\n\t{\n\t//\tcout<male[i+1]){\n c=male[i];\n male[i]=male[i+1];\n male[i+1]=c;\n }\n }\n }\n for(n=1;nns[b+1]){\n c=ns[b];\n ns[b]=ns[b+1];\n ns[b+1]=c;\n }\n }\n }\n for(a=1;a<=g;a++){\n for(b=0;bvs[b]){\n c=vs[b];\n vs[b]=vs[b+1];\n vs[b+1]=c;\n }\n }\n }\n for(a=0;af[i])\n\t\t\t{\n\t\t\t\tt=f[i];\n\t\t\t\tf[i]=f[j];\n\t\t\t\tf[j]=t;\n\t\t\t}\n\tfor (i=0;i height[j];\n\tif( strcmp(sex[i],\"female\") == 0 && strcmp(sex[j],\"female\") == 0 ) return height[i] < height[j];\n}\n\nint main() {\n\tint n;\n\tcin >> n;\n\tfor(int i=0; i> sex[i] >> height[i];\n\t\tseq[i] = i;\n\t}\n\tqsort(seq,n,sizeof(int),compare);\n\tint startFlag = true;\n\tfor(int i=0;i> n;\n\n\tdouble male[40], female[40];\n\tint indm=0, indf=0;\n\tfor(int k=0;k> str;\n\t\tif(!strcmp(str,\"male\"))\n\t\t{\n\t\t\tcin >> male[indm];\n\t\t\tindm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcin >> female[indf];\n\t\t\tindf++;\n\t\t}\n\t}\n\t//sort\n\tint i,j;\n\tfor(i=0;i male[j])\n\t\t\t{\n\t\t\t\tdouble t = male[i];\n\t\t\t\tmale[i] = male[j];\n\t\t\t\tmale[j] = t;\n\t\t\t}\n\tfor(i=0;im[g+1]){\n\t\t\t\tq=m[g];\n\t\t\t\tm[g]=m[g+1];\n\t\t\t\tm[g+1]=q;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i0) return 1;\n else return 0;\n}\nint compare2(const void *elem1,const void *elem2)\n{\n float *p1,*p2;\n p1=(float *)elem1;\n p2=(float *)elem2;\n if(*p1-*p2<0) return 1;\n else if(*p1-*p2>0) return -1;\n else return 0;\n}\nmain()\n{\n int n,i=0,g,j=0,a,b;\n char c[100];\n float m[100],f[100];\n float h;\n scanf(\"%d\",&n);\n for(g=0;g0;i--)\n\t{\n\t\tfor(j=0;j0;i--)\n\t{\n\t\tfor(j=0;jman[j+1])\n\t\t\t{\n\t\t\t\ttemp=man[j];\n\t\t\t\tman[j]=man[j+1];\n\t\t\t\tman[j+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;i--){\nif(str[i][0]=='f')\nprintf(\" %.2f\",re[i]);\n}\n}"} +{"label": "102", "index": "50800", "code": "int main()\n{ \n\tstruct a\n\t{\n\t\tchar x[6];\n\t\tdouble y;\n\t}as[40],t;\n\tint n,i,k,I;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i=0;i--)\n\t{\n\t\tif(strcmp(as[i].x,\"female\")==0) {printf(\"%.2lf\",as[i].y);I=i;break;}\n\t}\n\tfor(i=I-1;i>=0;i--)\n\t{\n\t\tif(strcmp(as[i].x,\"female\")==0) printf(\" %.2lf\",as[i].y);\n\t}\n\treturn 0;\n}\n\n\n"} +{"label": "102", "index": "50801", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tchar sex[100][30];\n\tdouble high[100];\n\tfor(int i = 1; i <= n; ++i)\n\t\tcin >> sex[i] >> high[i];\n\tfor(int i = 1; i <= n; ++i)\n\t{\n\t\tfor(int t = 1; t <= n; ++t)\n\t\t{\n\t\t\tdouble s;\n\t\t\tchar c[30];\n\t\t\tif(high[t] > high[i])\n\t\t\t{\n\t\t\t\ts=high[t];\n\t\t\t\thigh[t]=high[i];\n\t\t\t\thigh[i]=s;\n\t\t\t\tstrcpy(c,sex[i]);\n\t\t\t\tstrcpy(sex[i],sex[t]);\n\t\t\t\tstrcpy(sex[t],c);\n\t\t\t}\n\t\t}\n\t}\n\t//for(int i = 1; i <= n; ++i) cout<= 1; --i)\n\t{\n\t\tif(strcmp(sex[i],\"male\") ==0)\n\t\t\tcontinue;\n\t\tif(step != (n-1))\n\t\t{\n\t\t\tprintf(\"%.2f \",high[i]);\n\t\t\tstep = step + 1;\n //cout<0;k--)\n\t\tprintf(\" %.2f\",woman[k]);\n\tprintf(\" %.2f\\n\",woman[0]);\n}"} +{"label": "102", "index": "50803", "code": "int main(){\nchar xb[40][7];\nint n,i,j=0,z=0,k;\ndouble h,hm[40],hf[40];\n\nscanf(\"%d\",&n);\nfor(i=0;ihm[i+1]){\n\t\th=hm[i];\n\t\thm[i]=hm[i+1];\n\t\thm[i+1]=h;\n\t\t}\n\t}\n}\n\nfor(k=1;k1;i--)\n\t\tfor(j=1;jh[j+1]) || (s[j][0]=='f'&&s[j+1][0]=='f'&&h[j]a[j].ag){\n\t\t\t\t\ttemp=a[j-1];\n\t\t\t\t\ta[j-1]=a[j];\n\t\t\t\t\ta[j]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ihm[j+1])\n {\n k=hm[j];\n hm[j]=hm[j+1];\n hm[j+1]=k;\n }\n }\n }\nfor(i=0;ir[e+1]){\n\t\t\t d=r[e];\n\t\t\t r[e]=r[e+1];\n\t\t\t r[e+1]=d;\n\t\t }\n\t }\n }\n for(i=0;in[j])\n\t\t\t{\n\t\t\t\td=n[i];\n\t\t\t\tn[i]=n[j];\n\t\t\t\tn[j]=d;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i<=p-1;i++)\n\tprintf(\"%.2f \",m[i]);\n\tfor(i=0;i<=k-2;i++)\n\tprintf(\"%.2f \",n[i]);\n\tprintf(\"%.2f\",n[k-1]);\n\treturn 0;\n}"} +{"label": "102", "index": "50809", "code": "\n\nint com( const void * a , const void * b )\n{\n\tdouble a1 = *(double*) a;\n\tdouble a2 = *(double*) b;\n\n\tif( a1 > a2 )\n\t\treturn 1;\n\telse \n\t\treturn 0;\n}\n\nint main()\n{\n\tint i , j , k , r , ren , max , i_nan , i_nv ;\n\tchar c;\n\tdouble nan[200];\n\tdouble nv[200];\n\n\tscanf( \"%d\" , &ren );\n\tgetchar();\n\n\ti_nan = i_nv = 0;\n\tfor( i = 0 ; i < ren ; i++ ){\n\t\tfor( j = 0 ; j < 4 ; j++ ){\n\t\t\tc = getchar();\n\t\t}\n\n\t\tif( c == 'e' ){\n\t\t\tgetchar();\n\t\t\tscanf( \"%lf\" , &nan[i_nan++] );\n\t\t\tgetchar();\n\t\t}\n\n\t\telse{\n\t\t\tfor( k = 0 ; k < 3 ; k++ )\n\t\t\t\tgetchar();\n\t\t\tscanf( \"%lf\" , &nv[i_nv++] );\n\t\t\tgetchar();\n\t\t}\n\t}\n\n\tqsort( (void*)nan , i_nan , sizeof( nan[0] ) , com );\n\tqsort( (void*)nv , i_nv , sizeof( nv[0] ) , com );\n\n\tfor( i = 0 ; i < i_nan ; i++ ){\n\t\tprintf( \"%.2lf\" , nan[i] );\n\t\tprintf( \" \" );\n\t}\n\tfor( j = i_nv-1 ; j >= 0 ; j-- ){\n\t\tprintf( \"%.2lf\" , nv[j] );\n\t\tif( j != 0 )\n\t\t\tprintf( \" \" );\n\t\telse\n\t\t\tprintf( \"\\n\" );\n\t}\n\n\treturn 0;\n}"} +{"label": "102", "index": "50810", "code": "\nint main()\n{\n\tint n,i;\n\tscanf(\"%d\",&n);\n\n\tchar s1[100][40]={0};\n\tdouble s2[40]={0};\n\tdouble a[40]={0};\n\tdouble b[40]={0};\n\tint j,k;\n\tj=0;\n\tk=0;\n\tfor(i=0;i=0;aa--)\n\t{\n\t\tfor(bb=0;bb<=aa;bb++)\n\t\t{\n\t\t\tif(a[bb]>a[bb+1])\n\t\t\t{\n\t\t\t\tslot=a[bb];\n\t\t\t\ta[bb]=a[bb+1];\n\t\t\t\ta[bb+1]=slot;\n\t\t\t}\n\t\t}\n\t}\n\tfor(aa=k;aa>=0;aa--)\n\t{\n\t\tfor(bb=0;bb<=aa;bb++)\n\t\t{\n\t\t\tif(b[bb]m[i+1]){\n\t\t\t\te = m[i+1];\n\t\t\t\tm[i+1] = m[i];\n\t\t\t\tm[i] = e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1; k <= q; k++){\n\t\tdouble g;\n\t\tfor(i=0;imale[j+1]){\n\t\t\t\tt=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=t;\n\t\t\t}\n\t\t}\n }\n\tfor(i=1;i<=f;i++){\n\t\tfor(j=0;jfemale[j+1]){\n\t\t\t\tt=female[j];\n\t\t\t\tfemale[j]=female[j+1];\n\t\t\t\tfemale[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2lf\",male[0]);\n\tfor(i=1;i=0;i--){\n\t\tprintf(\" %.2lf\",female[i]);\n\t}\n \n return 0;\n}"} +{"label": "102", "index": "50813", "code": "int main()\n{\n\tint n;\n\tcin>>n;\n\tint i,j,s=0,t=0;\n float temp,m[10000],f[10000];\n\tchar tempchar[10];\n\tfor (i=0;i>tempchar;\n\t\tif (tempchar[0]=='m')\n\t\t\tcin>>m[s++];\n\t\telse cin>>f[t++];\n\t}\n\n\tfor (i=0;ii;j--)\n\t\t\tif(m[j]i;j--)\n\t\t\tif(f[j]>f[j-1])\n\t\t\t{\n\t\t\t\ttemp=f[j];\n\t\t\t\tf[j]=f[j-1];\n\t\t\t\tf[j-1]=temp;\n\t\t\t}\n\tfor (i=0;i> n;\n for (int i = 1; i <= n; i++){\n cin >> gender;\n switch (gender[0]){\n case 'f' : {\n cin >> high_female[counter_female];\n counter_female++;\n break;\n }\n case 'm' : {\n cin >> high_male[counter_male];\n counter_male++;\n break;\n }\n }\n }\n for (int i = 1; i <= counter_male; i++)\n for (int j = 0; j < counter_male-i; j++)\n if (high_male[j] > high_male[j+1]){\n float temp = high_male[j];\n high_male[j] = high_male[j+1];\n high_male[j+1] = temp;\n }\n for (int i = 1; i <= counter_female; i++)\n for (int j = 0; j < counter_female-i; j++)\n if (high_female[j] < high_female[j+1]){\n float temp = high_female[j];\n high_female[j] = high_female[j+1];\n high_female[j+1] = temp;\n }\n for (int i = 0; i < counter_male; i++) cout << fixed << setprecision(2) << high_male[i] << \" \";\n for (int i = 0; i < counter_female-1; i++) cout << high_female[i] << \" \";\n cout << high_female[counter_female-1];\n return 0;\n}"} +{"label": "102", "index": "50815", "code": "int main()\n{\n\tint n,i,k=0,j=0,t;\n\tstruct ren{\n\t\tchar sex[41];\n\t\tdouble high;\n\t}xue[41],huan,man[41],woman[41];\n\nscanf(\"%d\",&n);\n\t\tfor(i=0;iman[t+1].high){\n\t\t\thuan=man[t];\n\t\t\tman[t]=man[t+1];\n\t\t\tman[t+1]=huan;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i=0;i0;i--)\n\t{\n\t\tfor(r=0;r0;r--)\n\t\t{\n\t\t\tif(b[r-1]a[j-1]){ tmp=a[j];a[j]=a[j-1]; a[j-1]=tmp;}\n }\n }\n return 0;\n}\nint main()\n{\n double m[40],f[40],r;\n int n,i;\n int ml=0,fl=0;\n char type[10];\n cin>>n;\n for (i=0;i0;e--){\n\t\t\tif(F[e]>F[e-1]){\n\t\t\t\tr=F[e];\n\t\t\t\tF[e]=F[e-1];\n\t\t\t\tF[e-1]=r;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;e--){\n\t\tif(M[e]0)\n {\n boy[i-gnum]=stu[i].height;\n bnum++; \n }\n else \n {\n girl[i-bnum]=stu[i].height;\n gnum++; \n }\n }\n \n for (i=0; ii; j--)\n {\n if (boy[j]i; j--)\n {\n if (girl[j]>girl[j-1])\n {\n temp=girl[j-1];\n girl[j-1]=girl[j];\n girl[j]=temp; \n } \n } \n }\n \n for (i=0; im[k+1]){\n tem=m[k];\n m[k]=m[k+1];\n m[k+1]=tem;\n }\n }\n }\n for(i=0;imale[j+1])\n {\n double e;\n e=male[j];\n male[j]=male[j+1];\n male[j+1]=e;\n }\n }\n }\n for(i=1;i<=nv;i++)\n {\n for(j=0;j<=nv-i;j++)\n {\n if(female[j]y)\n\t return 1;\n\t else return -1;\n\t}\n\t\nint main()\n{\n\tint n;\n\tscanf(\"%d\",&n);\n float s1[50];\n float s2[50];\n\t int m=0,f=0;\n\tfor(int i=0;i>sex>>h;\n\t\tif(strcmp(sex,\"male\")==0)\n\t\t{s1[m]=h;\n\t\t m++;}\n\t\tif(strcmp(sex,\"female\")==0)\n\t\t{s2[f]=h;f++;}\n\t\t\n\t\t\n\t\t\n\t\t}\n\tqsort(s1,m,sizeof(s1[0]),&cmp);\n\tqsort(s2,f,sizeof(s2[0]),&cmp);\n\tfor(int i=0;i0;i--)\n\t\tprintf(\"%.2f \",s2[i]);\n\tprintf(\"%.2f\",s2[0]);\n\t}\n"} +{"label": "102", "index": "50823", "code": "int main()\n{\n\tint n,i,k;\n\tchar zfc[100][20],ex[20];\n\tdouble h[100],mi;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ih[i+1])||(strcmp(zfc[i],\"female\")==0&&strcmp(zfc[i+1],\"female\")==0&&h[i]> n;\n for (i = 0; i < n; i++)\n {\n cin >> sex >> height;\n if (strcmp(sex, \"male\") == 0)\n {\n male[s++] = height;\n }\n else\n {\n female[r++] = height;\n }\n }\n double temp;\n for (i = 0; i < s - 1; i++)\n for (j = 0; j < s - 1 - i; j++)\n {\n if (male[j] > male[j+1])\n {\n temp = male[j];\n male[j] = male[j+1];\n male[j+1] = temp;\n }\n }\n for (i = 0; i < s; i++)\n {\n cout << fixed << setprecision(2) << male[i] << \" \";\n }\n for (i = 0; i < r - 1; i++)\n for (j = 0; j < r - 1 - i; j++)\n {\n if (female[j] < female[j+1])\n {\n temp = female[j];\n female[j] = female[j+1];\n female[j+1] = temp;\n }\n }\n for (i = 0; i < r - 1; i++)\n {\n cout << fixed << setprecision(2) << female[i] << \" \"; \n }\n cout << fixed << setprecision(2) << female[r-1] << endl;\n return 0;\n}\n"} +{"label": "102", "index": "50825", "code": "main()\n{\n int n,i,j,k;\n double w;\n scanf(\"%d\",&n);\n char sex[100][100];\n double height1[100];\n double height3[100];\n double height2[100];\n for(i=0;iheight3[j])\n {\n double m;\n m=height3[j];\n height3[j]=height3[i];\n height3[i]=m;\n }\n }\n }\n for(i=0;ia1[f])\n {g=a[e];a[e]=a[f];a[f]=g;g=a1[e];a1[e]=a1[f];a1[f]=g;}\n else \n {\n if(a1[e]==a1[f] && a[e]>a[f])\n {g=a[e];a[e]=a[f];a[f]=g;g=a1[e];a1[e]=a1[f];a1[f]=g;}\n else ;\n }\n }\n }\n for(e=0;e<=d-2;e++)\n {\n for(f=e+1;f<=d-1;f++)\n {\n if(b1[e]=10)\n printf(\"%d.%d \",a1[e],a[e]);\n else\n printf(\"%d.0%d \",a1[e],a[e]);\n}\n for(e=0;e<=d-2;e++)\n{\n if(b[e]>=10)\n printf(\"%d.%d \",b1[e],b[e]);\n else\n printf(\"%d.0%d \",b1[e],b[e]);\n \n}\n \nif(b[e]>=10)\n printf(\"%d.%d\\n\",b1[e],b[e]);\n else\n printf(\"%d.0%d\\n\",b1[e],b[e]);\n\n}"} +{"label": "102", "index": "50827", "code": " \n \nint main()\n \n{\n \nint n,m,o,i,j;\n \ndouble a[81]={0};\ndouble male[50],female[50];\n \nchar b[41][7];\n \ncin>>n;\n \nm=0; \no=0;\nfor(i=1;i<=n;i++)\n{\ncin>>b[i];\nif(b[i][0]=='m')\n{\n\tm++;\n\tcin>>male[m];\n}\n if(b[i][0]=='f') \n{\no++;\ncin>>female[o];\n}\n} \n \n/*double x;\nfor(i=1;i<=m-1;i++) \n{\nfor(j=m;j>i;j--)\n{ \nif(male[j]i;j--)\n{\nif(female[j]>female[j-1])\n{\nx=female[j];\nfemale[j]=female[j-1];\nfemale[j-1]=x;\n}\n}\n \n}\n*/\nsort(male+1,male+m+1);\nsort(female+1,female+o+1);\nfor(i=1;i<=m;i++)\n \n{\n \ncout<=2;i--)\n \n{\n \ncout<0) \n{cout<b[j1+1]){\n\t\t\t\t\tt1=b[j1];\n\t\t\t\t\tb[j1]=b[j1+1];\n\t\t\t\t\tb[j1+1]=t1;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \n\tfor(i=0;i> n;//n??????\n\tnumm = 0;//numm??????\n\tnumf = 0;//numf??????\n\tfor(i = 1; i <= n;i ++)\n\t{\n\t\tcin >> sex >> Height;\n\t\tif(strlen(sex) == 4)\n\t\t{\n\t\t\tnumm ++;\n\t\t\tHeightm[numm] = Height;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnumf ++;\n\t\t\tHeightf[numf] = Height;\n\t\t}\n\t}//??????,??????????????\n\tfor(i = 1; i < numm;i ++)\n\t{\n\t\tfor(j = i + 1;j <= numm; j ++)\n\t\t{\n\t\t\tif(Heightm[i] > Heightm[j])\n\t\t\t{\n\t\t\t\tp = Heightm[i];\n\t\t\t\tHeightm[i] = Heightm[j];\n\t\t\t\tHeightm[j] = p;\n\t\t\t}\n\t\t}\n\t}//??????,???????\n\tfor(i = 1; i <= numm; i ++)\n\t\tcout << fixed << setprecision(2) << Heightm[i] << \" \";\n\tfor(i = 1; i < numf;i ++)\n\t{\n\t\tfor(j = i + 1;j <= numf; j ++)\n\t\t{\n\t\t\tif(Heightf[i] < Heightf[j])\n\t\t\t{\n\t\t\t\tp = Heightf[i];\n\t\t\t\tHeightf[i] = Heightf[j];\n\t\t\t\tHeightf[j] = p;\n\t\t\t}\n\t\t}\n\t}//??????,???????\n\tfor(i = 1; i <= numf; i ++)\n\t{\n\t\tif(i < numf)\n\t\t\tcout << Heightf[i] << \" \";\n\t\telse\n\t\t\tcout << Heightf[i] << endl;\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50830", "code": "int main()\n{\n\tdouble boy[40],girl[40],m;\n\tint n,c1=0,c2=0,j,k;\n\tcin>>n;\n\tchar a[10];\n\n\tfor (int i=0;i>a;\n\t\tif (a[0]=='m')\n\t\t{\n\t\t\tcin>>boy[c1];\n\t\t\tc1++;\n\t\t}\n\t\telse if (a[0]=='f')\n\t\t{\n\t\t\tcin>>girl[c2];\n\t\t\tc2++;\n\t\t}\n\t}\n\n\n\tfor (j=0;jj;k--)\n\t\t{\n\t\t\tif (boy[k]j;k--)\n\t\t{\n\t\t\tif (girl[k]>girl[k-1])\n\t\t\t{\n\t\t\t\tm=girl[k];girl[k]=girl[k-1];girl[k-1]=m;\n\t\t\t}\n\t\t}\n\t}\n\n\tcout<f[o]){\n\t\t\t\th=f[o];\n\t\t\t\tf[o]=f[p];\n\t\t\t\tf[p]=h;\n\t\t\t}\n\t\t}\n\t}\n\tfor(o=0;o0;i--){ \n\t\tfor(j=0;jh[j+1]){\n\t\t\t\ttmp=h[j+1];\n\t\t\t\th[j+1]=h[j];\n\t\t\t\th[j]=tmp;\n\t\t\t}\n\t\t}\n\t}\n for(i=k;i0;i--)\n {\n for(I=0;Im[I+1])\n {\n temp=m[I+1];\n m[I+1]=m[I];\n m[I]=temp; \n } \n } \n }\n for(j=countf-1;j>0;j--)\n {\n for(J=0;Jf[J+1])\n {\n temp=f[J+1];\n f[J+1]=f[J];\n f[J]=temp; \n } \n } \n }\n for(i=0;i0;j--)\n printf(\"%.2f \",f[j]);\n printf(\"%.2f\",f[0]);\n getchar();\n getchar(); \n getchar();\n getchar();\n}\n"} +{"label": "102", "index": "50834", "code": "int main()\n{\n\tchar a[700];\n\tdouble m[700],f[700],t;\n\tint n,i,j=0,k=0,ml=0,fl=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i0;k--)\n\t{\n\t\tfor(j=0;jm[j+1])\n\t\t\t{\n\t\t\t\tt=m[j];\n\t\t\t\tm[j]=m[j+1];\n\t\t\t\tm[j+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=fl-1;k>0;k--)\n\t{\n\t\tfor(j=0;je[i])\n\t\t\t{\n\t\t\t\tz=e[i];\n\t\t\t\te[i]=e[x];\n\t\t\t\te[x]=z;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i>n;\n\n\tfor(i=1;i<=n;i++)\n\n\t{\n\n\t\tcin>>b[i]>>a[i];\n\n\t}\n\n\tm=1;\n\n\to=0;\n\n\tfor(i=1;i<=n;i++)\n\n\t{\n\n\t\tif(b[i][0]=='m')\n\n\t\t{\n\t\t\t\n\t\t\ta[m+n]=a[i];\n\n\t\t\tm++;\n\n\t\t}\n\n\t\tif(b[i][0]=='f')\n\n\t\t{\n\t\t\ta[2*n-o]=a[i];\n\n\t\t\to++;\n\n\t\t}\n\n\t}\n\n\tdouble x;\n\t\n\tfor(i=1+n;i<=m+n-1;i++)\n\n\t{\n\n\t\tfor(j=m+n-1;j>i;j--)\n\n\t\t{\n\n\t\t\tif(a[j]i;j--)\n\n\t\t{\n\n\t\t\tif(a[j]>a[j-1])\n\n\t\t\t{\n\n\t\t\t\tx=a[j];\n\n\t\t\t\ta[j]=a[j-1];\n\n\t\t\t\ta[j-1]=x;\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tfor(i=n+1;i<2*n;i++)\n\n\t{\n\n\t\tcout<*(float*)p2) return 1;\n\telse return 0;\n}\n\nvoid photo(float *a,float *b,int n)\n{\n\tint x=0,y=0,i;\n\tchar s[7];\n\tfor(i=0;i0;i--) printf(\"%.2f \",b[i]);\n\tprintf(\"%.2f\",b[0]);\n}\n\nmain()\n{\n\tfloat a[40],b[40];\n\tint n;\n\tscanf(\"%d\\n\",&n);\n\tphoto(a,b,n);\n}"} +{"label": "102", "index": "50838", "code": "int compare(void const *p,void const *q)\n{\n if (*(double*)p>*(double*)q)\n return 1;\n else\n return -1;\n}\n main()\n{\n int n,i,j,k;\n double a[40];\n double b[40];\n double d[40];\n char c[40][4];\n k=0;\n j=0;\n scanf(\"%d\",&n);\n for(i=0;i-1;i--)\n {\n printf(\" %0.2lf\",b[i]);\n }\n}\n"} +{"label": "102", "index": "50839", "code": "int cprx(const void *e1,const void *e2)\n{\n float *a,*b;\n a=(float *)e1;\n b=(float *)e2;\n if (*a-*b<0) return -1;\n else return 1;\n}\nint cprd(const void *e1,const void *e2)\n{\n float *a,*b;\n a=(float *)e1;\n b=(float *)e2;\n if (*a-*b>0) return -1;\n else return 1;\n}\nint main()\n{\n float male[40],female[40],tmph;\n int m=0,f=0,n,i;\n char sex[10];\n scanf(\"%d\",&n);\n for (i=0;insg[i+1]){\n\t\t\t\t\tr=nsg[i+1];\n\t\t\t\t\tnsg[i+1]=nsg[i];\n\t\t\t\t\tnsg[i]=r;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=0;kb[i+1].height)\n {\n hold=b[i];\n b[i]=b[i+1];\n b[i+1]=hold;\n }\n}\nvoid bubble2(Paixu b[],int m,int n)\n{\n int pass,i;\n Paixu hold;\n for(pass=1;pass<=n-m;pass++)\n for(i=m;i<=n-2;i++)\n if(b[i].heightsz[k+1][1]){\n\t\t\t\te=sz[k][1];\n\t\t\t\tsz[k][1]=sz[k+1][1];\n\t\t\t\tsz[k+1][1]=e;\n\t\t\t\te=sz[k][0];\n\t\t\t\tsz[k][0]=sz[k+1][0];\n\t\t\t\tsz[k+1][0]=e;\n\t\t\t}\n\t\t}\n\t}\t\n\tfor(i=0;if[i]){\n\t\t\t\tt=f[i];\n\t\t\t\tf[i]=f[l];\n\t\t\t\tf[l]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0){\n if(male[m]<=male[m-1]){\n change=male[m];\n male[m]=male[m-1];\n male[m-1]=change;\n }\n m=m-1;\n }\n }\n for(p=0;p<=h;p++){\n m=h-1;\n while(m>0){\n if(female[m]<=female[m-1]){\n change=female[m];\n female[m]=female[m-1];\n female[m-1]=change;\n }\n m=m-1;\n }\n }\n for(p=0;p0;p--){\n printf(\"%.2f \",female[p]);\n }\n printf(\"%.2f\",female[0]);}\n"} +{"label": "102", "index": "50845", "code": "int main()\n{\n\tfloat temp, male[40], female[40];\n\tint n, i, j, p, q;\n\tchar sex[8];\n\tcin >> n;\n\tfor (i = 0, p = 0, q = 0; i < n; i++)\n\t{\n\t\tcin >> sex >> temp;\n\t\tif (strcmp(sex, \"male\") == 0)\n\t\t{\n\t\t\tmale[p] = temp;\n\t\t\tp++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfemale[q] = temp;\n\t\t\tq++;\n\t\t}\n\t}\n\tfor (i = 0; i < p - 1; i++)\n\t\tfor (j = 0; j < p - 1 - i; j++)\n\t\t{\n\t\t\tif (male[j] > male[j + 1])\n\t\t\t{\n\t\t\t\ttemp = male[j];\n\t\t\t\tmale[j] = male[j + 1];\n\t\t\t\tmale[j + 1] = temp;\n\t\t\t}\n\t\t}\n\tfor (i = 0; i < q - 1; i++)\n\t\tfor (j = 0; j < q - 1 - i; j++)\n\t\t{\n\t\t\tif (female[j] < female[j + 1])\n\t\t\t{\n\t\t\t\t\ttemp = female[j];\n\t\t\t\t\tfemale[j] = female[j + 1];\n\t\t\t\t\tfemale[j + 1] = temp;\n\t\t\t}\n\t\t}\n\tcout << fixed << setprecision(2) << male[0];\n\tfor (i = 1; i < p; i++)\n\t\tcout << fixed << setprecision(2) << \" \" << male[i];\n\tfor (i = 0; i < q; i++)\n\t\tcout << fixed << setprecision(2) << \" \" << female[i];\n\treturn 0;\n}"} +{"label": "102", "index": "50846", "code": "int main()\n{\n char sex[10];\n int n=0,count=0,count1=0,count2=0;\n int boy_num=0,girl_num=0;\n double temp,height,boy[40],girl[40];\n scanf(\"%d\",&n);\n \n for(count=0;countboy[count2+1])\n {\n temp = boy[count2];\n boy[count2]=boy[count2+1];\n boy[count2+1] = temp;\n } \n } \n }\n //???? ?? \n for(count1=0;count10;i--)\n{\n\tfor(j=0;j0;i--)\n{\n\tfor(j=0;j0;i--)\n{\n\tprintf(\"%.2lf \",f[i]);\n}\n\tprintf(\"%.2lf\",f[0]);\n\treturn 0;\n}\n"} +{"label": "102", "index": "50848", "code": "int main()\n{\n struct{\n char xb[7];\n double sg;}xs[50];\n char s1[5]={'m','a','l','e','\\0'};\n char s2[7]={'f','e','m','a','l','e','\\0'};\n int n,i,j1,j2,m1,m2,k1,k2;\n double m[50],w[50],t;\n scanf(\"%d\\n\",&n);\n for(i=0;im1-1;k1--){\n if(m[k1-1]>m[k1]){\n t=m[k1-1];\n m[k1-1]=m[k1];\n m[k1]=t;}}}\n for(m2=1;m2m2-1;k2--){\n if(w[k2-1]me[j]){\n\t\t\t\tt=me[i];\n\t\t\t\tme[i]=me[j];\n\t\t\t\tme[j]=t;}\n\tfor(i=0;i<=q;i++)\n\t\tfor(j=i+1;j<=q;j++)\n\t\t\tif(fe[i]0?1:(*((double*)a)-*((double*)b)<0?-1:0);\n}\n\nint comp_f(const void *a,const void *b){\n\treturn (*((double*)b)-*((double*)a))>0?1:(*((double*)b)-*((double*)a)<0?-1:0);\n}\n\nint main(){\n\tint n;\n\tint i;\n\tint index_m,index_f;\n\twhile(cin>>n){\n\t\tindex_m=0;\n\t\tindex_f=0;\n\t\tfor(i=0;i>p[i].sex>>p[i].height;\n\t\t\tif(!strcmp(p[i].sex,\"male\")){\n\t\t\t\tpm[index_m++]=p[i].height;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpf[index_f++]=p[i].height;\n\t\t\t}\n\t\t}\n\t\tqsort(pm,index_m,sizeof(double),comp_m);\n\t\tqsort(pf,index_f,sizeof(double),comp_f);\n\t\tfor(i=0;i> n;\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tcin >> sex[i];\n\t\tcin >> height[i];\n\t}\n\n\tfor (i = 0; i < n; i ++)\n\t{\n\t\tif (sex[i][0] == 'f')\n\t\t{\n\t\t\tFemale[j] = height[i];\n\t\t\tj ++;\n\t\t}\n\t\telse if (sex[i][0] == 'm')\n\t\t{\n\t\t\tMale[k] = height[i];\n\t\t\tk ++;\n\t\t}\n\t}\n\t// ??????\n\n\n\n\tfor (i = 0; i < k - 1; i ++)\n\t{\n\t\tfor (p = 0; p < k - 1 - i; p ++)\n\t\t{\n\t\t\tif (Male[p] > Male[p+1])\n\t\t\t{\n\t\t\t\ttemp1 = Male[p];\n\t\t\t\tMale[p] = Male[p+1];\n\t\t\t\tMale[p+1] = temp1;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 0; i < j - 1; i ++)\n\t{\n\t\tfor (p = 0; p < j - 1 - i; p ++)\n\t\t{\n\t\t\tif (Female[p] < Female[p+1])\n\t\t\t{\n\t\t\t\ttemp2 = Female[p];\n\t\t\t\tFemale[p] = Female[p+1];\n\t\t\t\tFemale[p+1] = temp2;\n\t\t\t}\n\t\t}\n\t}\n\t// ??,?????\n\n\tfor (i = 0; i < k; i ++)\n\t{\n\t\tcout << fixed << setprecision(2) << Male[i] << \" \";\t\t\t\n\t}\n\tfor (i = 0; i < j; i ++)\n\t{\n\t\tif (i < j - 1)\n\t\t\tcout << fixed << setprecision(2) << Female[i] << \" \";\n\t\telse\n\t\t\tcout << fixed << setprecision(2) << Female[i];\n\t}\n\t// ???????????\n\n\n\n\treturn 0;\n}\n"} +{"label": "102", "index": "50852", "code": "int main(){\nchar sex[8];\nint n,i,m1,m2,j;\ndouble a[41],b[41],t;\nscanf(\"%d\",&n);\nm1=0;\nm2=0;\nfor (i=1;i<=n;i++){\nscanf(\"%s%lf\",sex,&t);\nif (sex[0]=='m') {m1=m1+1;a[m1]=t;}\nif (sex[0]=='f') {m2=m2+1;b[m2]=t;}\n}\nfor (i=1;i<=m1;i++)\nfor (j=1;j<=m1-i;j++)\nif (a[j]>a[j+1]){\nt=a[j];\na[j]=a[j+1];\na[j+1]=t;\n}\nfor (i=1;i<=m1;i++) printf(\"%.2lf \",a[i]);\nfor (i=1;i<=m2;i++)\nfor (j=1;j<=m2-i;j++)\nif (b[j]>b[j+1]){\nt=b[j];\nb[j]=b[j+1];\nb[j+1]=t;\n}\nfor (i=m2;i>=2;i--) printf(\"%.2lf \",b[i]);\nprintf(\"%.2lf\",b[1]);\nreturn 0;\n}\n"} +{"label": "102", "index": "50853", "code": "main()\n{\n\tvoid sx(float p[],int n);\n\tvoid jx(float p[],int n);\n\tfloat f[45],m[45],w[45];\n\tchar a[45][10];\n\tint n,i,j=0,k=0;\n\tscanf(\"%d\",&n);\n\tfor(i=0;ip[j])\n\t{\n\t\tt=p[i];\n\t\tp[i]=p[j];\n\t\tp[j]=t;\n\t}\t\n}"} +{"label": "102", "index": "50854", "code": "int main()\n{\n int n,i;\n float h;\n char str[10];\n int k=0,j=0;\n float male[40],famale[40];\n male[0]=0;\n famale[0]=0;\n cin >> n;\n int len;\n for (i=1;i<=n;i++)\n {\n cin >> str >> h;\n len=strlen(str);\n if (len==4)\n {\n k++;\n male[k]=h;\n }\n else\n {\n j++;\n famale[j]=h;\n }\n }\n int p,q;\n float temp;\n for (p=1;p<=k-1;p++)\n {\n for (q=1;q<=k-p;q++)\n {\n if (male[q]>male[q+1])\n {\n temp=male[q+1];\n male[q+1]=male[q];\n male[q]=temp;\n }\n }\n }\n for (p=1;p<=j-1;p++)\n {\n for (q=1;q<=j-p;q++)\n {\n if (famale[q]>famale[q+1])\n {\n temp=famale[q+1];\n famale[q+1]=famale[q];\n famale[q]=temp;\n }\n }\n }\n printf(\"%.2f\",male[1]);\n for (p=2;p<=k;p++)\n {\n cout << \" \" ;\n printf(\"%.2f\",male[p]);\n \n }\n for (q=j;q>=1;q--)\n {\n cout << \" \" ;\n printf(\"%.2f\",famale[q]);\n }\n \n \n return 0;\n }"} +{"label": "102", "index": "50855", "code": "int main()\n{\n\tint n,i,k,l,m=0,p=0;\n\tdouble sz[40],e;\n\tdouble a[40];\n\tdouble b[40];\n\tchar zfc[40][10];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[l+1]){\n\t\t\t\t\te=a[l+1];\n\t\t\t\t\ta[l+1]=a[l];\n\t\t\t\t\ta[l]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tfor(k=1;k<=p;k++){\n\t\t\tfor(l=0;lb)\n\t\treturn 1;\n\telse \n\t\treturn 0;\n}\nint cmp2(float a,float b)\n{\n\tif(a>N;\n\tint i,j,k;\n\tj=0;\n\tk=0;\n\tfloat temp;\n\tfor(i=0;i>sex;\n\t\tcin>>temp;\n\t\tif(strcmp(sex,\"male\")==0)\n\t\t\tmail[j++]=temp;\n\t\telse \n\t\t\tif(strcmp(sex,\"female\")==0)\n\t\t\tfemail[k++]=temp;\n\t}\n\tsort(mail,mail+j,cmp1);\n\tsort(femail,femail+k,cmp1);\n\tfor(i=j-1;i>=0;i--)\n\t\tprintf(\"%.2f \",mail[i]);\n\tfor(i=0;ih1[p+1]){\n\t\t\t\tex=h1[p+1];\n\t\t\t\th1[p+1]=h1[p];\n\t\t\t\th1[p]=ex;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i (*((double*)b)))\n\t\treturn 1;\n\tif((*((double*)a)) < (*((double*)b)))\n\t\treturn -1;\n\treturn 0;\n}\n\nint main()\n{\n\tint i;\n\tint n;\n\tdouble f[40], m[40];\n\tint fn = 0, mn = 0;\n\tchar str[20];\n\tscanf(\"%d\", &n);\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tscanf(\"%s\", str);\n\t\tif(str[0] == 'f')\n\t\t\tscanf(\"%lf\", &f[fn++]);\n\t\telse\n\t\t\tscanf(\"%lf\", &m[mn++]);\n\t}\n\tqsort(f, fn, sizeof(double), sf);\n\tqsort(m, mn, sizeof(double), sf);\n\tfor(i = 0; i < mn; i++)\n\t\tprintf(\"%.2lf \", m[i]);\n\tfor(i = fn - 1; i > 0; i--)\n\t\tprintf(\"%.2lf \", f[i]);\n\tif(fn > 0)\n\t\tprintf(\"%.2lf\", f[0]);\n\treturn 0;\n}"} +{"label": "102", "index": "50859", "code": "int main()\n{\n\tint n;\n\tint fe[40];\n\tint ma[40];\n\tfloat f;\n\tcin>>n;\n\tint i;\n\tchar b[10];\n\tint fec=0,mac=0;\n\tfor(i=0;i>b;\n\t\tif(strcmp(b,\"male\")==0)\n\t\t{\n\t\t//\t\tscanf(\"%f\",&f);\n\t\t\tcin>>f;\n\t\t\tma[mac]=(int)(f*1000);\n\t\t\tmac++;\n\t\t}\n\t\tif(strcmp(b,\"female\")==0)\n\t\t{\n\t\t\tscanf(\"%f\",&f);\n\t\t\t//cin>>f;\n\t\t\tfe[fec]=(int)(f*1000);\n\t\t\tfec++;\n\t\t}\n\t}\n\tsort(ma,ma+mac);\n\tsort(fe,fe+fec);\n\tfor(i=0;i=4)\n\t\t\tma[i]++;\n\t\t//cout<=0;i--)\n\t{\n\t\n\t\tif(fe[i]%10>=4)\n\t\t\tfe[i]++;\n\t//\tcout<0)\n\t\t\tprintf(\"%.2f \",fe[i]/1000.0);\n\t\tif(i==0)\n\t\t\tprintf(\"%.2f\",fe[i]/1000.0);\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "102", "index": "50860", "code": "int main ()\n{\n char flag[10];\n float temp;\n float boy[1000], girl[1000];\n int k, i, j = 0, z = 0, lenb = 0, leng = 0, n;\n cin >> n;\n for (k = 0 ; k < n; k++)\n {\n cin >> flag;\n if (strcmp(flag, \"female\") == 0)\n {\n leng++;\n cin >> girl[j++];\n }\n else\n {\n lenb++;\n cin >> boy[z++];\n }\n }\n for (i = 0; i < lenb - 1; i++)\n for (j = 0; j < lenb - 1 - i; j++)\n {\n if (boy[j] > boy[j + 1])\n {\n temp = boy[j]; boy[j] = boy[j + 1]; boy[j + 1] = temp;\n }\n }\n \n for (i = 0; i < leng - 1; i++)\n for (j = 0; j < leng - 1 - i; j++)\n {\n if (girl[j] < girl[j + 1])\n {\n temp = girl[j]; girl[j] = girl[j + 1]; girl[j + 1] = temp;\n }\n }\n cout << fixed;\n for (i = 0; i < lenb; i++)\n cout << setprecision(2) << boy[i] << ' ';\n for (i = 0; i < leng - 1; i++)\n cout << setprecision(2) << girl[i] << ' ';\n \n cout << setprecision(2) << girl[i];\n \n return 0;\n}\n\n"} +{"label": "102", "index": "50861", "code": "int main(){\n\tint n,i,k,malenum=0;\n\tdouble h0[40],hmale[40],hfe[40],e;\n\tchar stu0[40][10],male[5]=\"male\";\n\tscanf(\"%d\",&n);\n\tfor(i=0;ihmale[i+1]){\n\t\t\t\te=hmale[i+1];\n\t\t\t\thmale[i+1]=hmale[i];\n\t\t\t\thmale[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ipa[a+1].s)\n\t\t\t\t{\n\t\t\t\t\tc=pa[a].s;\n\t\t\t\t\tpa[a].s=pa[a+1].s;\n\t\t\t\t\tpa[a+1].s=c;\n\t\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=n-j;i++)\n\t{\n\t\tfor(a=0;a> n;\n\tstruct student\n\t{\n\t\tchar sex[7];\n\t\tdouble height;\n\t}student[41];\n\n\tint count = 0;\n\tdouble maleHeight[41] = {0}, femaleHeight[41] = {0}; \n\tfor(i = 0; i < n; i++)\n\t{\t\n\t\tcin >> student[i].sex >> student[i].height;\n\t\tif(student[i].sex[0] == 'm')\t\n\t\t\tcount++;\n\t}\n\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(student[i].sex[0] == 'm')\n\t\t\tmaleHeight[i] = student[i].height;\n\t\tif(student[i].sex[0] == 'f')\n\t\t\tfemaleHeight[i] = student[i].height;\n\t}\n\n\tfor(i = 0; i < n - 1; i++)\n\t{\t\n\t\tfor(p = 0; p < n - 1 - i; p++)\n\t\t{\n\t\t\tif(maleHeight[p] > maleHeight[p + 1])\n\t\t\t{\n\t\t\t\ttempHeight = maleHeight[p];\n\t\t\t\tmaleHeight[p] = maleHeight[p + 1];\n\t\t\t\tmaleHeight[p + 1] = tempHeight;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i = 0; i <= n - 1; i++)\n\t{\n\t\tfor(p = 0; p <= n - 1 - i; p++)\n\t\t{\n\t\t\tif(femaleHeight[p] < femaleHeight[p + 1])\n\t\t\t{\n\t\t\t\ttempHeight = femaleHeight[p];\n\t\t\t\tfemaleHeight[p] = femaleHeight[p + 1];\n\t\t\t\tfemaleHeight[p + 1] = tempHeight;\n\t\t\t}\n\t\t}\n\t}\n\n\tcout << fixed;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(maleHeight[i] != 0)\n\t\t{\n\t\t\tj = i;\n\t\t\tcout << setprecision(2) << maleHeight[j];\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i = j + 1; i < n; i++)\n\t{\n\t\tif(maleHeight[i] != 0)\n\t\t\tcout << setprecision(2) << \" \" << maleHeight[i];\n\t}\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(femaleHeight[i] != 0)\n\t\t\tcout << setprecision(2) << \" \" << femaleHeight[i];\n\t}\t\n\treturn 0;\n}"} +{"label": "102", "index": "50864", "code": "int cmp1(const void * e1,const void * e2){\n\tif(*((double *)e1)<*((double *)e2))\n\t\treturn -1;\n\telse if(*((double *)e1)>*((double *)e2))\n\t\treturn 1;\n\telse return 0;\n}\nint cmp2(const void * e1,const void * e2){\n\tif(*((double *)e1)<*((double *)e2))\n\t\treturn 1;\n\telse if(*((double *)e1)>*((double *)e2))\n\t\treturn -1;\n\telse return 0;\n}\nint main(){\n\tint n;\n\tdouble male[50],female[50];\n\tint n1,n2;\n\tdouble num;\n\tn1=0;\n\tn2=0;\n\tchar s[15];\n\tcin>>n;\n\tfor(int i=0;i>s>>num;\n\t\tif(strcmp(s,\"male\")==0){\n\t\t\tmale[n1]=num;\n\t\t\tn1++;\n\t\t}\n\t\telse{\n\t\t\tfemale[n2]=num;\n\t\t\tn2++;\n\t\t}\n\t}\n\tqsort(male,n1,sizeof(double),cmp1);\n\tqsort(female,n2,sizeof(double),cmp2);\n\tfor(int i=0;i> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> str;\n\t\tif (str[0] == 'm')\n\t\t{\n\t\t\tbb++;\n\t\t\tcin >> b[bb];\n\t\t}\n\t\tif (str[0] == 'f')\n\t\t{\n\t\t\tgg++;\n\t\t\tcin >> g[gg];\n\t\t}\n\t}\n\tint j;\n\tdouble t;\n\tfor (i =1; i <= bb-1; i++)\n\t{\n\t\tfor (j =1; j <= bb - i; j++)\n\t\t{\n\t\t\tif (b[j] > b[j+1])\n\t\t\t{\n\t\t\t\tt = b[j];\n\t\t\t\tb[j] = b[j+1];\n\t\t\t\tb[j+1] = t;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i = 1; i <= bb; i++)\n\t\tcout << fixed << setprecision(2) << b[i] << \" \";\n\tfor (i =1; i <= gg-1; i++)\n\t{\n\t\tfor (j =1; j <= gg - i; j++)\n\t\t{\n\t\t\tif (g[j] < g[j+1])\n\t\t\t{\n\t\t\t\tt = g[j];\n\t\t\t\tg[j] = g[j+1];\n\t\t\t\tg[j+1] = t;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 1; i <= gg; i++)\n\t{\n\t\tif (i < gg)\n\t\t\tcout << fixed << setprecision(2) << g[i] << \" \";\n\t\telse\n\t\t\tcout << fixed << setprecision(2) << g[i];\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50866", "code": "\n\nint main()\n{\n char a[40][8];\n double height;\n double female[40];\n double male[40];\n int n;\n double temp;\n int j, k;\n int femalecount = 0;\n int malecount = 0;\n int i;\n cin >>n;\n for (i = 0; i < n; i++)\n {\n cin >> a[i];\n cin >> height;\n if (a[i][0] == 'f')\n {\n female[femalecount] = height;\n femalecount++;\n }\n else\n {\n male[malecount] = height;;\n malecount++;\n }\n }\n for (j = 0; j < malecount; j++)\n {\n for ( k = 0; k < malecount - j - 1; k++)\n {\n if (male[k] > male[k + 1])\n {\n temp = male[k + 1];\n male[k + 1] = male[k];\n male[k] = temp;\n }\n }\n }\n for (j = 0; j < femalecount; j++)\n {\n for ( k = 0; k < femalecount - j - 1; k++)\n {\n if (female[k] < female[k + 1])\n {\n temp = female[k + 1];\n female[k + 1] = female[k];\n female[k] = temp;\n }\n }\n }\n for (j = 0; j < malecount; j++)\n {\n cout << fixed << setprecision(2);\n cout << male[j] << \" \";\n }\n for (j = 0; j < femalecount - 1; j++)\n {\n cout << female[j] << \" \";\n }\n cout << female[femalecount - 1];\n return 0;\n}"} +{"label": "102", "index": "50867", "code": "int main(){\n\tint n,i,max,j,k,a,b;\n\tchar sex[6];\n\tdouble he,mahe[40],fehe[40],e;\n\tscanf(\"%d\",&n);\n\tfor(i=0,j=0,k=0;imahe[b+1]){\n e=mahe[b];\n\t\t\t\t mahe[b]=mahe[b+1];\n\t\t\t\t mahe[b+1]=e;\n\t\t\t}\n\t\t\n\t\t}\n\t}\n\tfor(a=1;amale[j].h)\n\t\t\t{\n\t\t\t\tex=male[i];\n\t\t\t\tmale[i]=male[j];\n\t\t\t\tmale[j]=ex;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ii;j--)\n if(m[i]>m[j])\n {r=m[i];m[i]=m[j];m[j]=r;}\n }\n for(i=0;i<40;i++)\n {\n for(j=40-1;j>i;j--)\n if(f[i]b[j+1])\n\t\t {\n\t\t\t e=b[j];\n\t\t\t b[j]=b[j+1];\n\t\t\t b[j+1]=e;\n\t\t }\n\t\t }\n\t }\n\t for(i=0;i=0;i--){\n\t\tfor(a1=0;a1dn[a1+1]){\n\t\t\t\tmax1=dn[a1];\n\t\t\t\tdn[a1]=dn[a1+1];\n\t\t\t\tdn[a1+1]=max1;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=k+1;i<=n-1;i++){\n\t\tfor(b1=n-1;b1>i;b1--){\n\t\t\tif(dn[b1]>dn[b1-1]){\n\t\t\t\tmax2=dn[b1];\n\t\t\t\tdn[b1]=dn[b1-1];\n\t\t\t\tdn[b1-1]=max2;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2f\",dn[0]);\n\tfor(i=1;i>n;\n\tfor(i=0;i>s1[i]>>arr[i];\n\t}\n\tfor(i=0;ih1[p+1])\n\t\t\t{\n\t\t\t\tt=h1[p];\n\t\t\t\th1[p]=h1[p+1];\n\t\t\t\th1[p+1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i> n;\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tcin >> sex[i];\t\n\t\tif(sex[i][0] == 'm')\n\t\t{\n\t\t\tcin >> hm[m];\n\t\t\tm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcin >> hf[f];\n\t\t\tf++;\n\t\t}\n\t}\n\tfor(i = 0; i <= m - 1; i++)\n\t{\n\tfor(j = 0; j <= m - i - 2; j++)\n\t{\n\t\tif(hm[j] < hm [j+1])\n\t\t{\n\t\t\tt = hm[j+1];\n\t\t\thm[j+1] = hm[j];\n\t\t\thm[j] = t;\n\t\t}\n\t}\n\t}\n\tfor(i = 0; i <= f - 1; i++)\n\t{\n\tfor(j = 0; j <= f - i - 2; j++)\n\t{\n\t\tif(hf[j] < hf[j+1])\n\t\t{\n\t\t\tt = hf[j+1];\n\t\t\thf[j+1] = hf[j];\n\t\t\thf[j] = t;\n\t\t}\n\t}\n\t}\n\tfor(int k = m-1; k >= 0; k--)\n\t\tcout << fixed << setprecision(2) << hm[k] << \" \";\n\tfor(int l = 0; l < f-1; l++)\n\t\tcout << fixed << setprecision(2) << hf[l] << \" \";\n\tcout << fixed << setprecision(2) << hf[f-1] << endl;\n\n\treturn 0;\n}\n"} +{"label": "102", "index": "50874", "code": "int main(){\n\tint n,i,j,k,g,h,p,q;\n\tfloat a[40],m[40],f[40],e;\n\tchar s[7];\n\n\tscanf(\"%d\",&n);\n\n\tg=0;\n\th=0;\n\tfor(i=0;im[k+1]){\n\t\t\t\te=m[k+1];\n\t\t\t\tm[k+1]=m[k];\n\t\t\t\tm[k]=e;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(p=1;p<=h;p++){\n\t\tfor(q=0;qh-d->h)>0)?1:-1;\n}\nint cmp2 (const void *a,const void *b)\n{\n struct in *c=(struct in *)a;\n struct in *d=(struct in *)b;\n return ((-c->h+d->h)>0)?1:-1;\n}\n\nint main()\n{\n int num;\n int i;\n char ssex[10]={'\\0'};\n float hh;\n int numnan=0;\n int numnv=0;\n memset(nan,0,41);\n memset(nv,0,41);\n scanf(\"%d\",&num);\n for (i=0;i0)\n { \n\t\t\t temp=m[k];\n\t\t\t\t\tm[k]=m[k-1];\n m[k-1]=temp;\n\t\t\t\t\tk--;\n\t\t\t }\n\t\t\t mm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t f[fm]=heigh;\n\t\t\t k=fm;\n\t\t\t while((f[k]0)\n { \n\t\t\t temp=f[k];\n\t\t\t\t\tf[k]=f[k-1];\n f[k-1]=temp;\n\t\t\t\t\tk--;\n\t\t\t }\n fm++;\n\t\t}\n }\n for(i=0;i0;i--)\n printf(\"%.2f \",f[i]);\n printf(\"%.2f\\n\",f[0]);\n return 0;\n}"} +{"label": "102", "index": "50877", "code": "int main(){\n int n,i,p=-1,q=-1,k;\n float a[40],c[40],d[40],g;\n char b[41][10];\n scanf(\"%d\",&n);\n for(i=0;ic[i+1]){\n g=c[i];\n c[i]=c[i+1];\n c[i+1]=g;\n }\n }\n }\n for(k=1;k<=q+1;k++){\n for(i=0;i0){\n\t\tfloat temp=*p1;\n\t\t*p1=*p2;\n\t\t*p2=temp;\n\t}\n}\n\nint main(){\n\tint k,boynum,b,g;\n\tb=0;\n\tg=0;\n\tfloat tempheight;\n\tchar tempsex[7];\n\tscanf(\"%d\",&k);\n\tfloat boy[k];\n\tfloat girl[k];\n\tfor(int i=1;i<=k;i++){\n\t\tscanf(\"%s %f\",tempsex,&tempheight);\n\t\tif(strcmp(tempsex,\"male\\0\")==0){\n\t\t\tboy[b]=tempheight;\n\t\t\tb++;\n\t\t}\n\t\telse{\n\t\t\tgirl[g]=tempheight;\n\t\t\tg++;\n\t\t}\n\t\t\n\t\tif(i==k){\n\t\t\tboynum=b;\n\t\t}\n\t}\n\tfor(int i=1;i<=boynum-1;i++){\n\t\tfor(int j=i+1;j<=boynum;j++){\n\t\t\tsort(&boy[i-1],&boy[j-1],1);\n\t\t}\n\t}\n\tfor(int i=1;i<=k-boynum-1;i++){\n\t\tfor(int j=i+1;j<=k-boynum;j++){\n\t\t\tsort(&girl[i-1],&girl[j-1],-1);\n\t\t}\n\t}\n\tprintf(\"%.2f\",boy[0]);\n\tfor(int i=2;i<=boynum;i++){\n\t\tprintf(\" %.2f\",boy[i-1]);\n\t}\n\tfor(int i=1;i<=k-boynum;i++){\n\t\tprintf(\" %.2f\",girl[i-1]);\n\t}\n\t \n}"} +{"label": "102", "index": "50879", "code": "int main()\n{\n\tint m;\n\tchar sex[10];\n\tchar fmale[10]=\"male\";\n\tfloat a;\n\tint male=0;\n\tint famle=0;\n\tfloat humanm[40];\n\tfloat humanf[40];\n\n\tcin>>m;\n\tfor(int i=0;i>sex>>a;\n\t\tif(strcmp(sex,fmale)==0)\n\t\t{\t\n\t\t\t\n\t\t\thumanm[male]=a;\n\t\t\tmale++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\thumanf[famle]=a;\n\t\t\tfamle++;\n\t\t}\n\t}\n\tsort(&humanm[0],&humanm[male]);\n\tsort(&humanf[0],&humanf[famle]);\n\tfor(int i=0;i0;i--)\n\t\tprintf(\"%.2f \",humanf[i]);\n\tprintf(\"%.2f\\n\",humanf[0]);\n}"} +{"label": "102", "index": "50880", "code": "int main()\n{\n int n,i,j;\n double a[40],b[40],c[40],q;\n char xb[40][10];\n char str1[]=\"male\",str2[]=\"female\";\n scanf(\"%d\",&n);\n int t=0,k=0;\n for(i=0;ia[j+1]){\n q=a[j];\n a[j]=a[j+1];\n a[j+1]=q;\n }\n }\n }\n for(i=1;ib[p+1]){\n\t\t\t\t e=b[p];\n\t\t\t\t b[p]=b[p+1];\n\t\t\t\t b[p+1]=e;\n\t\t\t }\n\t\t }\n }\n\tprintf(\"%.2lf\",b[0]);\n\tfor(i=1;ihm[j+1]){dqm=hm[j];\n hm[j]=hm[j+1]; \n hm[j+1]=dqm;}}}\nfor(i=0;i (*(float*)b) ? 1:-1;\n}\nint main()\n{\n int n,i,f,m;\n char sex[10];\n float male[40]={0},female[40]={0};\n scanf(\"%d\",&n);\n for(i=0,f=0,m=0;i0;i--)\n printf(\"%.2f \",female[i]);\n printf(\"%.2f\\n\",female[i]); \n return 0;\n}\n"} +{"label": "102", "index": "50884", "code": "\nint main(){\n int n,i,j,k,m,f;\n char t;\n double e,d;\n char a[40][7];\n double b[40];\n double male[40];\n double female[40];\n scanf(\"%d\",&n);\n for(i=0;ifemale[i]){\n d=female[f];\n female[f]=female[i];\n female[i]=d;\n }\n }\n }\n if(male[0]){printf(\"%.2lf\",male[0]);}\n for(i=1;ia[l])\n\t\t\t\tt=l;\n\t\t}\n\t\tf=a[t];\n\t\ta[t]=a[i];\n\t\ta[i]=f;\n\t}\n\tfor(i=0;i0&&a>1) {\n for (i=1; i0&&b>1) {\n for (i=1; ifemale[i-1]) {\n t=female[i];\n female[i]=female[i-1];\n female[i-1]=t;\n }\n m--;\n }\n }\n for (i=0; ih[i+1])||(s[i][0]=='f'&&s[i+1][0]=='f'&&h[i]i; j--)\n {\n if(h1[j]i; j--)\n {\n if(h2[j]> h2[j-1])\n {\n temp = h2[j];\n h2[j] = h2[j-1];\n h2[j-1] = temp;\n }\n }\n \n for(i=0; i=1; i--)\n\t{\n\t\tprintf(\"%.2lf \", female[i]);\n\t}\n\tprintf(\"%.2lf\\n\", female[0]);\n\treturn 0;\n}"} +{"label": "102", "index": "50890", "code": "int main(){\n\tint n=0,i=0,j=0,k=0,m=0;\n\tdouble e=0,f=0;\n\tdouble g[50];\n\tdouble a[50];\n\tstruct ren{\n\t\tchar s[10];\n\t\tdouble h;\n\t}\n\trens[50];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ig[i+1]){\n\t\t\t\te=g[i+1];\n\t\t\t\tg[i+1]=g[i];\n\t\t\t\tg[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(m=1;m<=k;m++){\n\t\tfor(i=0;ia[i+1]){\n\t\t\t\tf=a[i];\n\t\t\t\ta[i]=a[i+1];\n\t\t\t\ta[i+1]=f;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2lf\",g[0]);\n\tfor(i=1;i=0;i--){\n\t\tprintf(\" %.2lf\",a[i]);\n\t}\n\treturn 0;\n\n}"} +{"label": "102", "index": "50891", "code": "int main(){\n int n,mk=0,fk=0;\n\tscanf(\"%d\",&n);\n\tint i,j;\n\tstruct point{\n\t\tchar sex[10];\n\t\tdouble height;\n }p[40],m[40],f[40],e;\n\tfor(i=0;im[j+1].height){\n\t\t\t\te=m[j];\n\t\t\t\tm[j]=m[j+1];\n\t\t\t\tm[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n for(i=1;ii;j--)\n {\n if (*(p+j)<*(p+j-1))\n {\n temp=*(p+j);\n *(p+j)=*(p+j-1);\n *(p+j-1)=temp; \n } \n } \n}\nmain()\n{\n void sort(float*p,int n);\n float height[40];\n char gender[40][6];\n int n,lens[40];\n scanf (\"%d\",&n);\n for (int i=0;i=0;k--)\n {\n printf (\"%3.2f\",f[k]);\n if (k>0)\n printf (\" \");\n } \n}"} +{"label": "102", "index": "50893", "code": "int com1(const void *e1,const void*e2)\n{\n float *p1,*p2;\n int x=0;\n p1=(float *)e1;\n p2=(float *)e2;\n if ((*p1)>(*p2)) x=1;\n if ((*p1)<(*p2)) x=-1; \n return x;\n}\nint com2(const void *e1,const void*e2)\n{\n float *p1,*p2;\n int x=0;\n p1=(float *)e1;\n p2=(float *)e2;\n if ((*p1)>(*p2)) x=-1;\n if ((*p1)<(*p2))x=1; \n return x;\n}\nint main()\n{\n int i,j=0,k=0,n;\n float *a,*b;\n char c[10];\n float d;\n scanf(\"%d\",&n);\n a=(float *)malloc(n*sizeof(int));\n b=(float *)malloc(n*sizeof(int));\n for (i=0;ih[j+1])\n\t\t\t\t{\n\t\t\t\t\ttemp=h[j];\n\t\t\t\t\th[j]=h[j+1];\n\t\t\t\t\th[j+1]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(sex[j][0]=='f')\n\t\t\t{\n\t\t\t\tif(sex[j+1][0]=='m')\n\t\t\t\t{\n\t\t\t\t\ttemp=h[j];\n\t\t\t\t\th[j]=h[j+1];\n\t\t\t\t\th[j+1]=temp;\n\t\t\t\t\tstrcpy(tsex, sex[j+1]);\n\t\t\t\t\tstrcpy(sex[j+1],sex[j]);\n\t\t\t\t\tstrcpy(sex[j],tsex);\n\t\t\t\t}\n\t\t\t\telse if(sex[j+1][0]=='f'&&h[j]h[j+1])\n\t\t\t\t{\n\t\t\t\t\ttemp=h[j];\n\t\t\t\t\th[j]=h[j+1];\n\t\t\t\t\th[j+1]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(sex[j][0]=='f')\n\t\t\t{\n\t\t\t\tif(sex[j+1][0]=='m')\n\t\t\t\t{\n\t\t\t\t\ttemp=h[j];\n\t\t\t\t\th[j]=h[j+1];\n\t\t\t\t\th[j+1]=temp;\n\t\t\t\t\tstrcpy(tsex, sex[j+1]);\n\t\t\t\t\tstrcpy(sex[j+1],sex[j]);\n\t\t\t\t\tstrcpy(sex[j],tsex);\n\t\t\t\t}\n\t\t\t\telse if(sex[j+1][0]=='f'&&h[j]> k;\n\tfor (i = 0; i < k; i++)\n\t{\n\t\tcin >> n[i] >> s[i];\n\t}\n\tfor (i = 0 ; i < k; i++)\n\t{\n\t\tif(n[i][0] == 'm')\n\t\t{\n\t\t\ta[j] = s[i]; j++; \n\t\t}\n\t\telse\n\t\t{b[h] = s[i];h++;}\n\t}\n\tfor (i = 0; i < j - 1; i++)\n\t\tfor (m = 0; m < j - i - 1; m++)\n\t\t{\n\t\t\tif (a[m] > a[m + 1])\n\t\t\t{\n\t\t\t\ttemp = a[m + 1]; a[m + 1] = a[m]; a[m] = temp; \n\t\t\t}\n\t\t}\n\tfor (i = 0; i < h - 1; i++)\n\t\tfor (m = 0; m < h - i - 1; m++)\n\t\t{\n\t\t\tif (b[m] < b[m + 1])\n\t\t\t{\n\t\t\t\ttemp = b[m + 1]; b[m + 1] = b[m]; b[m] = temp;\n\t\t\t}\n\t\t}\n cout << fixed;\n\tfor (i = 0; i < j; i++)\n\t{ if (flag)\n\t\tcout <<\" \"<< setprecision(2) << a[i];\n\t else\n\t\t{cout << setprecision(2) << a[i]; flag = 1;}\n\t}\n\tfor (i = 0; i < h; i++)\n\t\tcout <<\" \"<0)\n\t\treturn 1;\n\telse if(a==0)\n\t\treturn 0;\n\telse\n\t\treturn -1;\n\n}\n\nint main()\n{\n\tfloat a[100],b[100];\n\tint c=0,d=0;\n\tint n;\n\tchar ch[30];\n\tscanf(\"%d\",&n);\n\tint i;\n\tfor(i=0;i=0;i--)\n\t{\n\t\tif(i!=0)\n\t\t\tprintf(\"%.2f \",b[i]);\n\t\telse\n\t\t\tprintf(\"%.2f\",b[i]);\n\n\t}\n\n\tprintf(\"\\n\");\n\n\treturn 1;\n\n}"} +{"label": "102", "index": "50897", "code": "int main()\n{\n\tint i,j,k,m,f,n;\n\tfloat male[40],female[40],temp;\n\tchar sex[40][6];\n\tscanf(\"%d\",&n);\n\tk=0;\n\tj=0;\n\tm=0;\n\tf=0;\n\ttemp=0.00;\n for (i=0;imale[k])\n\t\t\t{\n\t\t\t\ttemp=male[k-1];\n\t\t\t\tmale[k-1]=male[k];\n\t\t\t\tmale[k]=temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i=0;ih[j+1]){\n\t\t\t\te=h[j];\n\t\t\t\th[j]=h[j+1];\n\t\t\t\th[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\t\tfor(i=1;i<=b;i++){\n\t\tfor(j=0;jl[j+1]){\n\t\t\t\te=l[j];\n\t\t\t\tl[j]=l[j+1];\n\t\t\t\tl[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\t\tfor(i=0;i<=a-1;i++){\n\t\t\te=h[i];\n\t\t\theight=1.0*e*0.001;\n\t\t\tif(i==0){\n\t\t\t\tprintf(\"%.2lf\",height);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintf(\" %.2lf\",height);\n\t\t\t}\n\t\t}\n\t\tfor(i=b-1;i>=0;i--){\n\t\t\te=l[i];\n\t\t\theight=1.0*e*0.001;\n\t\t\tprintf(\" %.2lf\",height);\n\t\t}\n\t\treturn 0;\n}\n"} +{"label": "102", "index": "50899", "code": "int max(double n[],int m)\n{\n\tdouble max_num=n[0];\n\tint maxn=0;\n\tfor(int i=1;imax_num)\n\t\t{\n\t\t\tmax_num=n[i];\n\t\t\tmaxn=i;\n\t\t}\n\t}\n\treturn maxn;\n}\nint min(double n[],int m)\n{\n\tdouble max_num=n[0];\n\tint maxn=0;\n\tfor(int i=1;i>n;\n\tfor(i=0;i>s>>t;\n\t\tif(strcmp(s,\"male\")==0)\n\t\t{\n\t\t\tmt[j]=t;\n\t\t\tj++;\n\t\t}\n\t\telse if(strcmp(s,\"female\")==0)\n\t\t{\n\t\t\tft[k]=t;\n\t\t\tk++;\n\t\t}\n\t}\n\tfor(i=0;imale[m+1].b){\n\t\t\t\ttemp=male[m];\n\t\t\t\tmale[m]=male[m+1];\n\t\t\t\tmale[m+1]=temp;\n\t\t\t}\n\t\t}\n\t}\n for(i=0;i0)\n\t printf(\" \");\n\t printf(\"%.2f\",s[i].height);\n\t }\n}"} +{"label": "102", "index": "50902", "code": "int main(){\n\tint n,i,j,nanrenshu=0,nvrenshu=0;\n\tchar zfc[7],male[7]={'m','a','l','e','\\0'},female[7]={'f','e','m','a','l','e','\\0'};\n\tfloat nan[41],nv[41],jh;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<=40;i++){\n\t\tnan[i]=0;\n\t\tnv[i]=0;\n\t}\n\tfor(i=1;i<=n;i++){\n\t\tscanf(\"%s\",zfc);\n\t\tif(strcmp(zfc,male)==0){\n\t\t\tscanf(\"%f\",&nan[i]);\n\t\t\tnanrenshu++;\n\t\t}\n\t\tif(strcmp(zfc,male)!=0){\n\t\t\tscanf(\"%f\",&nv[i]);\n\t\t\tnvrenshu++;\n\t\t}\n\t}\n\tfor(i=1;i0;i--){\n\t\tprintf(\" %.2f\",nan[i]);\n\t}\n\tfor(i=1;i<=nvrenshu;i++){\n\t\tprintf(\" %.2f\",nv[i]);\n\t}\n\tscanf(\"%d\",&n);\n\treturn 0;\n}"} +{"label": "102", "index": "50903", "code": "\nmain()\n{\n int n,i,j;\n scanf(\"%d\",&n);\n float girl[40]={0},boy[40]={0};\n int g=0,b=0;//??????\n char tender[8];//??\n for(i=0;i0;i--)//??????????????\n {\n for(j=0;j0;i--)//??????????????\n {\n for(j=0;jboy[j+1])\n {\n float temp;\n temp=boy[j];\n boy[j]=boy[j+1];\n boy[j+1]=temp;\n\n }\n }\n }\n\n\n for(i=0;i=0;r--){\n\t\tif(tmphm[j+1]){\n\t\t\te=hm[j+1];\n\t\t\thm[j+1]=hm[j];\n\t\t\thm[j]=e;\n\t\t}\n\t\t//printf(\"%.2lf\\n\",hm[j]);\n\t}\n}\n\t//printf(\"%lf\",hm[2]);\n\tfor(p=1;p<=K;p++){\n\t\tfor(k=0;kmanh[j+1]){\n\t\t\t\tb=manh[j];\n\t\t\t\tmanh[j]=manh[j+1];\n\t\t\t\tmanh[j+1]=b;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;j--){\n\t\t\tif(womanh[j]>n;\n\tint count1=0,count2=0;\n\tfor(i=0;i>sex>>h;\n\t\tif(sex[0]=='f')\n\t\t\tf[count1++]=h;\n\t\telse\n\t\t\tm[count2++]=h;\n\t} //??count1?count2??????????????\n\tfor(i=0;ii;j--)\n\t\t\tif(f[j]>f[j-1])\n\t\t\t{t=f[j];f[j]=f[j-1];f[j-1]=t;}\n\tfor(i=0;ii;j--)\n\t\t\tif(m[j]a[q])\n\t\t\t\tk=q;\n\t\te=a[k]; \n\t\ta[k]=a[i];\n\t\ta[i]=e;\n\t} \n\t\n\tfor(i=0;i> n;\n\tm = 0;\n\tw = 0;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> xb;\n\t\tcin >> height;\n\t\tif (xb[0] == 'm') \n\t\t{\n\t\t\tm++;\n\t\t\tman[m] = height;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tw++;\n\t\t\twoman[w] = height;\n\t\t}\n\t}\n\tfor (i = 1; i <= m - 1; i++)\n\t{\n\t\tfor (j = 1; j <= m - i; j++)\n\t\t{\n\t\t\tif (man[j] > man[j + 1]) \n\t\t\t{\n\t\t\t\ttemp = man[j];\n\t\t\t\tman[j] = man[j + 1];\n\t\t\t\tman[j + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 1; i <= w - 1; i++)\n\t{\n\t\tfor (j = 1; j <= w - i; j++)\n\t\t{\n\t\t\tif (woman[j] < woman[j + 1])\n\t\t\t{\n\t\t\t\ttemp = woman[j];\n\t\t\t\twoman[j] = woman[j + 1];\n\t\t\t\twoman[j + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tcout << fixed << setprecision(2) <=0 ;i--)\n printf(\" %.2f\",girl[i]);\n \n}"} +{"label": "102", "index": "50911", "code": "int main()\n{\n int i, j, n, t;\n float m[41]={0}, f[41]={0}, h[41]={0};\n char str[41][7];\n cin>>n;\n for(i=1; i<=n; i++)\n {\n cin>>str[i]>>h[i];\n if(strcmp(str[i],\"male\")==0)\n {\n m[i]=h[i]; \n //cout<<\" \"<=1; i--)\n {\n if(f[i]==0)\n break;\n else\n {\n cout<<\" \"<>x;\n return 0;\n }\n"} +{"label": "102", "index": "50912", "code": "int main()\n{\n double male[50],female[50];\n double hit,t;\n char str[10];\n int n,i,j=0,k=0,l;\n scanf(\"%d\",&n);\n for (i=0;imale[l]){\n t=male[i];\n male[i]=male[l];\n male[l]=t;\n }\n }\n }\n for (i=0;i0;j--){\n\t\t\tif(male[j-1]>male[j]){\n\t\t\t\tdouble p;\n\t\t\t\tp=male[j];\n\t\t\t\tmale[j]=male[j-1];\n\t\t\t\tmale[j-1]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;j--){\n\t\t\tif(female[j-1]M[k+1])\n {\n g=M[k];\n M[k]=M[k+1];\n M[k+1]=g;\n }\n }\n}\nfor(i=0;ia[m])\n\t\t\t{\n\t\t\t\tdouble p;\n\t\t\t\tp=a[i];\n\t\t\t\ta[i]=a[m];\n\t\t\t\ta[m]=p;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--){\n for(j=0;jmh[j+1]){\n e=mh[j];\n mh[j]=mh[j+1];\n mh[j+1]=e;\n }\n }\n }\n for(i=(f-1);i>0;i--){\n for(j=0;jmale[j+1])\n\t\t\t{\n\t\t\t\tdouble c;\n\t\t\t\tc=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=c;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i0;i--)\n printf(\"%.2lf \",f[i]);\n printf(\"%.2lf\\n\",f[0]);\n //cout< m[i+1]){\n\t\t\t\te = m[i+1];\n\t\t\t\tm[i+1] = m[i];\n\t\t\t\tm[i] = e;\n\t\t\t}\n\t\t}\n\n\t}\n\tfor( k = 1; k <= b; k++){\n\t\tdouble e;\n\t\tfor(int i = 0; i < b - k; i++){\n\t\t\tif(f[i] > f[i+1]){\n\t\t\t\te = f[i+1];\n\t\t\t\tf[i+1] = f[i];\n\t\t\t\tf[i] = e;\n\t\t\t}\n\t\t}\n\n\t}\n\tprintf(\"%.2lf\",m[0]);\n\tfor( j=1;j=0;j--)\n\t{\n\t\tprintf(\" %.2lf\",f[j]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50920", "code": "int main(){\n\tint n,i,k=0,r=0,t;\n\tdouble fm[40],m[40],e,h;\n\tchar x[7];\n\tstruct pd{\n\t\tdouble h;\n\t\tchar x[7];\n\t}pds[40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;im[i+1]){\n\t\t\t\te=m[i];\n\t\t\t\tm[i]=m[i+1];\n\t\t\t\tm[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(t=1;t<=r;t++){\n\t\tfor(i=0;i>n;\n\tfor(i=0;i>mark;\n\t\tif(strcmp(mark,\"male\")==0)\n\t\t{\n\t\t\tcin>>data1[sum1++];\n\t\t}\n\t\telse{cin>>data2[sum2++];}\n\t}\n\tsort(data1,data1+sum1);\n\tsort(data2,data2+sum2);\n\tfor(i=0;imale[l+1])\n\t\t\t{\n\t\t\t\ttemp=male[l+1];\n\t\t\t\tmale[l+1]=male[l];\n\t\t\t\tmale[l]=temp;\n\t\t\t}\n\t\t}\n\t}\n\n\twhile(k--)\n\t{\n\t\tfor(l=0;lmh[j+1])\n\t\t\t{\n\t\t\t\te=mh[j];\n\t\t\t\tmh[j]=mh[j+1];\n\t\t\t\tmh[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=af;i++)\n\t{\n\t\tfor(j=af-1;j>0;j--)\n\t\t{\n\t\t\tif(fh[j]>fh[j-1])\n\t\t\t{\n\t\t\t\te=fh[j];\n\t\t\t\tfh[j]=fh[j-1];\n\t\t\t\tfh[j-1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;im[k+1]){\n\t\t\t\te=m[k];\n\t\t\t\tm[k]=m[k+1];\n\t\t\t\tm[k+1]=e;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(b=1;b<=p;b++){\n\t\t\tfor(j=0;j> n;\n\tfor(i = 0; i < n; i++)\n\t\tcin >> gender[i] >> height[i];\n\tfor(i = 0; i < n ;i++)\n\t{\n\t\tif(gender[i][0] == 'm')\t\t\n\t\t\tmale[m++] = height[i];\t \n\t\telse\n\t\t\tfemale[f++] = height[i];\n\t}\n\tfor(i = 0; i < m; i++)\n\t{\n\t\tfor(j = 0; j < m - 1 - i; j++)\n\t\t{\n\t\t\tif(male[j] > male[j + 1])\n\t\t\t{\n\t\t\t\tdouble temp = male[j];\n\t\t\t\tmale[j] = male[j + 1];\n\t\t\t\tmale[j + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i = 0; i < f; i++)\n\t{\n\t\tfor(j = 0; j < f - 1 - i; j++)\n\t\t{\n\t\t\tif(female[j] < female[j + 1])\n\t\t\t{\n\t\t\t\tdouble temp = female[j];\n\t\t\t\tfemale[j] = female[j + 1];\n\t\t\t\tfemale[j + 1] = temp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i = 0; i < m; i++)\n\t\tcout << fixed << setprecision(2) << male[i] << \" \";\n\tfor(i = 0; i < f - 1; i++)\n\t\tcout << fixed << setprecision(2) << female[i] << \" \";\n\tcout << fixed << setprecision(2) << female[f - 1] << endl;\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50926", "code": "int main()\n{\n\tchar s[50][20], man[5] = { \"male\" }, wman[7] = { \"female\" };\n\tdouble l[50];\n\tdouble temp;\n\tint n, i, j, tip;\n\tcin >> n;\n\tfor (i = 0; i < n; i++)\n\t\tcin >> s[i] >> l[i];\n\tfor (i = 0; i < n - 1; i++)\n\tfor (j = i + 1; j < n; j++)\n\t{\n\t\tif (strcmp(s[i], man) == 0 && strcmp(s[j], man) == 0 && l[i] > l[j])\n\t\t{\n\t\t\ttemp = l[i];\n\t\t\tl[i] = l[j];\n\t\t\tl[j] = temp;\n\t\t}\n\n\t}\n\tfor (i = 0; i < n - 1; i++)\n\tfor (j = i + 1; j < n; j++)\n\t{\n\t\tif (strcmp(s[i], wman) == 0 && strcmp(s[j], wman) == 0 && l[i] < l[j])\n\t\t{\n\t\t\ttemp = l[i];\n\t\t\tl[i] = l[j];\n\t\t\tl[j] = temp;\n\t\t}\n\n\t}\n\tfor (i = n - 1; i >= 0; i--)\n\t{\n\t\tif (strcmp(s[i], wman) == 0)\n\t\t{\n\t\t\ttip = i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tcout <> n;\n\tfor (i = 0; i < n ; i++)\n\t{\n\t\t cin.get();\n\t cin.getline(ch, 7, ' ');//?????????????cin?getline??????height??????????cin??\n\t\t cin >> height;\n\t\t if (ch[0] == 'm')\n\t\t\t male[m++] = height;\n\t\t else\n\t\t\t female[f++] = height;\n\t}\n\tfor (i = 0; i < m - 1; i++)\n\t\tfor (j = 0; j < m - 1 - i; j++)\n\t\t{\n \tif(male[j] > male[j + 1])\n\t\t\t{\n\t\t\t tep = male[j];\n\t\t\t\t male[j] = male[j + 1];\n\t\t\t\t male[j + 1] = tep;\n\t\t\t}\n\t\t}\n\tfor (i = 0; i < f - 1; i++)\n\t for (j = i + 1; j < f; j++)\n\t\t{\n\t\t if (female[i] < female[j])\n\t\t\t{\n\t\t\t tep = female[i];\n\t\t\t\tfemale[i] = female[j];\n\t\t\t\tfemale[j] = tep;\n\t\t\t}\n\t\t}\n\tcout << fixed << setprecision(2);\n\tcout << male[0];\n\tfor (i = 1; i < m; i++)\n\t\tcout << \" \" << male[i];\n\tfor (i = 0; i < f; i++)\n cout << \" \" << female[i];\n\t\n\t return 0;\n}\n"} +{"label": "102", "index": "50928", "code": "int main()\n{\n\tint n,i,m=0,f=0,k;\n\tchar sex[10];\n\tchar s[10]={\"male\"};\n\tdouble h;\n\tstruct\n\t{\n\t\tchar sex[10];\n\t\tdouble h;\n\t}\n\tqq[40],male[40],female[40],e;\n\tscanf(\"%d\",&n);\n\tfor(i=0;imale[k+1].h)\n\t\t\t{\n\t\t\t\te=male[k];\n\t\t\t\tmale[k]=male[k+1];\n\t\t\t\tmale[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\n for(i=1;ifemale[k+1].h)\n\t\t\t{\n\t\t\t\te=female[k];\n\t\t\t\tfemale[k]=female[k+1];\n\t\t\t\tfemale[k+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2lf\",male[0].h);\n\tfor(i=1;i=0;i--)\n\t{\n\t\tprintf(\" %.2lf\",female[i].h);\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50929", "code": "float m[50];\nfloat f[50];\nint main()\n{\n\tint total,count;\n\tfloat meter;\n\tchar str[10];\n\tint mt,ft;\n\tint i,j;\n\tscanf(\"%d\",&total);\n\tmt=ft=0;\n\tfor(count=0;countm[j])\n\t\t\t{\n\t\t\t\tmeter=m[i];\n\t\t\t\tm[i]=m[j];\n\t\t\t\tm[j]=meter;\n\t\t\t}\n\tfor(i=0;i> n;\n\tint m = 0, f = 0;\n\tdouble h;\n\tfor(int i = 0; i < n ; i++)\n\t{\n\t\tcin>>ch;\n\t\tif(strcmp(ch, \"male\") == 0)\n\t\t{\n\t\t\tcin>>h;\n\t\t\tmale[m] =(int)( h * 10000);\n\t\t\tm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcin>>h;\n\t\t\tfemale[f] =(int)( h * 10000);\n\t\t\tf++;\n\t\t}\n\n\t}\n\tqsort(male, m , sizeof(int), cmp1);\n\tqsort(female, f , sizeof(int), cmp2);\n\t\n\tfor(int i = 0; i < m; i ++)\n\t\tprintf(\"%3.2lf \",male[i] / 10000.0);\n\tfor(int i = 0; i < f - 1; i++)\n\t\tprintf(\"%3.2lf \",female[i] / 10000.0);\n\tprintf(\"%3.2lf\",female[f - 1] / 10000.0);\n\treturn 0;\n}"} +{"label": "102", "index": "50931", "code": "\nint main()\n{\n\tint N, k,i, j;\n\tchar sex[10];\n\tdouble a[45], b[45], temp;\n\tint boy = 0, girl = 0;\n\tcin >> N;\n\tfor (k = 0; k < N; k++)\n\t{\n\t\tcin >> sex >> temp;\n\t\tif (sex[0] == 'f' )\n\t\t{\n\t\t\tb[girl] = temp;\n\t\t\tgirl++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[boy] = temp;\n\t\t\tboy++;\n\t\t}\n\t}\n\tfor(i = 1; i < boy;i++)\n\t\tfor(j = 0; j < boy - 1;j++)\n\t\t{\n\t\t\tif (a[j] > a[j + 1])\n\t\t\t{\n\t\t\t\ttemp = a[j + 1];\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\ta[j] = temp;\n\t\t\t}\n\t\t}\n for(i = 1; i < girl;i++)\n\t\tfor(j = 0; j < girl - 1;j++)\n\t\t{\n\t\t\tif (b[j] < b[j + 1])\n\t\t\t{\n\t\t\t\ttemp = b[j + 1];\n\t\t\t\tb[j + 1] = b[j];\n\t\t\t\tb[j] = temp;\n\t\t\t}\n\t\t}\n\tfor(i = 0; i < boy;i++)\n\t\tcout <shuzunan[i+1])\n {\n m=shuzunan[i+1];\n shuzunan[i+1]=shuzunan[i];\n shuzunan[i]=m;\n }\n }\n }\n for(k=1;k0;j--)\n\t\t{\n\t\t\tif(m[j].h0;j--)\n\t\t{\n\t\t\tif(f[j].h>f[j-1].h)\n\t\t\t{\n\t\t\t\tt=f[j];\n\t\t\t\tf[j]=f[j-1];\n\t\t\t\tf[j-1]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;inan[k+1])\n {\n\t T=nan[k+1];\t \n\t nan[k+1]=nan[k];\n\t nan[k]=T;\n }\n }\n}\n for(j=0;j<=f-2;j++)\n { for(k=0;k<=f-2-j;k++)\n {\n if(nv[k]b[i+1]){\n\t\t\t\te=b[i];\n\t\t\t\tb[i]=b[i+1];\n\t\t\t\tb[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(k=1;k<=t;k++){\n\t\tfor(i=0;ip[i+1]){\n e=p[i+1];\n p[i+1]=p[i];\n p[i]=e;\n }\n }\n }\n for(l=1;l<=k-1;l++){\n for(i=1;ib[m+1])\n { \n t=b[m]; \n b[m]=b[m+1]; \n b[m+1]=t; \n }\n for(i=0;imale[i+1]){\n\t\t\t\te=male[i+1];\n\t\t\t\tmale[i+1]=male[i];\n\t\t\t\tmale[i]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tfor(k=1;k<=num2;k++){\n\t\tfor(i=0;ifemale[i+1]){\n\t\t\t\te=female[i+1];\n\t\t\t\tfemale[i+1]=female[i];\n\t\t\t\tfemale[i]=e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tfor(i=0;i0;i--){\nfor(j=0;jd[j+1]){\nm=d[j+1];\nd[j+1]=d[j];\nd[j]=m;\n}\n}\n}\nfor(i=x-1;i>0;i--){\nfor(j=0;jc[j+1]){\nm=c[j+1];\nc[j+1]=c[j];\nc[j]=m;\n}\n}\n}\nfor(i=0;i0;i--)\nprintf(\"%.2lf \",c[i]);\nprintf(\"%.2lf\",c[0]);\nreturn 0;\n}\n\n\n"} +{"label": "102", "index": "50940", "code": "/*************************\n ***??:??? 1200012776\n ***????:????\n ***??:2012?11?1?\n *************************/\nint main()\n{\n\tint i, j, n, num_male = 0, num_female = 0;\n\tchar sex[41][8], man[8] = \"male\", woman[8] = \"female\";\n\tfloat h[41], t;\n\tcin >> n;\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> sex[i];\t//??????sex[i]\n\t\tif (!(strcmp(sex[i],man)))\t//??sex[i]?man???\n\t\t{\n\t\t\tnum_male++;\t//???,??num_male??\n\t\t\tcin >> h[num_male];\t//????????????\n\t\t}\n\t\telse\t//??????\n\t\t{\n\t\t\tnum_female++;\t//???????\n\t\t\tcin >> h[n + 1 - num_female];\t//????????????\n\t\t}\n\t}\n\tfor (i = 1; i <= num_male - 1; i++)\t//???????????\n\t{\n\t\tfor (j = i; j <= num_male; j++)\n\t\t{\n\t\t\tif (h[i] > h[j])\n\t\t\t{\n\t\t\t\tt = h[i];\n\t\t\t\th[i] = h[j];\n\t\t\t\th[j] = t;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = n; i >= num_male + 2; i--)\t//???????????\n\t{\n\t\tfor (j = i - 1; j >= num_male + 1; j--)\n\t\t{\n\t\t\tif (h[i] > h[j])\n\t\t\t{\n\t\t\t\tt = h[i];\n\t\t\t\th[i] = h[j];\n\t\t\t\th[j] = t;\n\t\t\t}\n\t\t}\n\t}\n\tcout << fixed << setprecision(2) << h[1];\n\tfor (i = 2; i <= n; i++)\n\t{\n\t\tcout << \" \"<< h[i];\t//??????\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50941", "code": "/*\n * practice.cpp\n *\n * Created on: 2014-1-4\n * Author: 111\n */\n\nint main()\n{\n\tint n;\n\tcin >> n;\n\tfloat male[100],female[100];\n\tint m=0,f=0;\n\tfor(int i=1;i<=n;i++)\n\t{\n\t\tchar sex[10]; float height;\n\t\tcin >> sex >> height;\n\t\tif(sex[0]=='m')\n\t\t{\n\t\t\tmale[m] = height;\n\t\t\tm++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfemale[f] = height;\n\t\t\tf++;\n\t\t}\n\t} //cout << m << endl << f << endl;\n\tfor(int i=0;imale[j])\n\t\t\t{\n\t\t\t\tfloat temp = male[i];\n\t\t\t\tmale[i] = male[j];\n\t\t\t\tmale[j] = temp;\n\t\t\t}\n\n\tfor(int i=0;ifemale[min]&&flag[i]==1)\n\t\t\t\tmin=i;\n\t\t}\n\t\tflag[min]=0;\n\t\tif(m!=k-1)\n\t\t\tprintf(\"%.2f \",female[min]);\n\t\telse\n\t\t\tprintf(\"%.2f\",female[min]);\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "102", "index": "50943", "code": "int main(){\n\tint n,i,a=0,b=0,j;\n\tdouble h=0,m=0;\n\tdouble a1[40]={0},b1[40]={0};\n\tchar p[40]=\"male\";\n\tchar q[40]=\"female\";\n\tscanf(\"%d\",&n);\n\t\n\tfor(i=1;i<=n;i++){\n\t\tchar s[40];\n\t\tscanf(\"%s\",s);\n\t\tscanf(\"%lf\",&h);\n\t\tif(strcmp(s,p)==0){\n\t\t\ta1[a]=h;\n\t\t\ta++;\n\t\t\t\n\t\t}\n\t\telse if(strcmp(s,q)==0){\n\t\t\tb1[b]=h;\n\t\t\tb++;\n\t\t}\n\t}\n\n\tfor(i=1;i<=a;i++){\n\t\tfor(j=0;ja1[j+1]){\n\t\t\t\tm=a1[j];\n\t\t\t\ta1[j]=a1[j+1];\n\t\t\t\ta1[j+1]=m;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=1;i<=b;i++){\n\t\tfor(j=0;jb1[j+1]){\n\t\t\t\tm=b1[j];\n\t\t\t\tb1[j]=b1[j+1];\n\t\t\t\tb1[j+1]=m;\n\t\t\t}\n\t\t}\n\t}\n\n\tprintf(\"%.2lf\",a1[0]);\n\tfor(i=1;i=0;i--){\n\t\tprintf(\" %.2lf\",b1[i]);\n\t}\n\t\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50944", "code": "int main()\n{ \n int n,i;\n scanf(\"%d\",&n);\n struct student \n {\n char a[7];\n float b;\n };\n struct student c[n]; \n for(i=0;istrlen(c[i+t].a))\n {\n struct student k;\n k=c[i];c[i]=c[i+t];c[i+t]=k;\n }\n else if(strlen(c[i].a)==strlen(c[i+t].a))\n {\n if(strlen(c[i].a)==4)\n {\n if(c[i].b>c[i+t].b)\n { \n struct student k;\n k=c[i];c[i]=c[i+t];c[i+t]=k;\n } \n }\n else\n {\n if(c[i].bhigh[b+1])\n\t\t\t{\n\t\t\t\tmc=high[b];\n\t\t\t\thigh[b]=high[b+1];\n\t\t\t\thigh[b+1]=mc;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor(j=0;j>n;\nwhile(n--)\n{\n\tcin>>s;\n\tcin>>k;\n\tif(s[0]=='m')\n\t{ \n\t\ta[m]=k;\n\t\tm++;\n\t}\n\t\tif(s[0]=='f')\n\t{ \n\t\tb[f]=k;\n\t\tf++;\n\t}\n}\nsort(a,a+m);\nsort(b,b+f);\nfor(i=0;i=0;i--)\n{ \n\tif(i>0)\n\t{\nprintf(\"%.2f \",b[i]);\n\t}\n\t\tif(i==0)\n\t{\nprintf(\"%.2f\",b[i]);\n\t}\n\n}\ncout<=t[j+1]){\n\t\t\t\tc=t[j];\n\t\t\t\tt[j]=t[j+1];\n\t\t\t\tt[j+1]=c;\n\t\t\t}\n\t\t}\n\t}\n for(i=1;i<=a;i++){\n\t\tfor(j=0;j=z[j+1]){\n\t\t\t\td=z[j];\n\t\t\t\tz[j]=z[j+1];\n\t\t\t\tz[j+1]=d;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;i=0;i--){\n\t\tprintf(\" %.2lf\",z[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50948", "code": "main()\n{\n struct photo\n {\n double high;\n char sex[10];\n }p[43];\n int n,i,i2,j=0,k=0;\n double man[43],woman[43],hehe;\n scanf(\"%d\",&n);\n for(i=0;i=0;i--)\n for(i2=0;i2<=i;i2++)\n if(man[i2]>man[i2+1]) {hehe=man[i2+1];man[i2+1]=man[i2];man[i2]=hehe;}\n for(i=k-2;i>=0;i--)\n for(i2=0;i2<=i;i2++)\n if(woman[i2]m[p+1])\n {\n e=m[p+1];\n m[p+1]=m[p];\n m[p]=e;\n }\n }\n }\n for(i=1;i<=l;i++)\n {\n for(p=0;pa[i+1]){\n\t\t\t\tt=a[i+1];\n\t\t\t\ta[i+1]=a[i];\n a[i]=t;\n\t\t\t}\n\t\t}\n\t}\n for(j=1;j<=q;j++){\n\t\tfor(i=0;imale[j])\n {\n temp=male[j-1];\n male[j-1]=male[j];\n male[j]=temp;\n }\n for(i=1;ifemale[j])\n {\n temp=female[j-1];\n female[j-1]=female[j];\n female[j]=temp;\n }\n\n for(i=0;i=0;i--)\n {printf(\"%.2f\",female[i]);\n if((i)!=0)\n printf(\" \");}\n getchar();\n getchar();\n getchar();\n return 0;\n \n }\n"} +{"label": "102", "index": "50952", "code": "int Compare(const void *elem1, const void *elem2)\n{\n return *((int *)(elem1)) - *((int *)(elem2));\n}\nstruct Student\n{\n\tchar sex[10];\n\tfloat height;\n}stu[40];\nint main()\n{\n\tint n,z,k1=0,k2=0;\n\tfloat male[40],female[40];\n\tchar a[10]=\"male\",b[10]=\"female\";\n\tint i,i1,i2,i3;\n scanf(\"%d\",&n);\n\tfor(i=0;i=1;i2--)\n\t{\n\t\tprintf(\"%.2f \",female[i2]);\n\t}\n\tprintf(\"%.2f\",female[0]);\n}"} +{"label": "102", "index": "50953", "code": "\nint main(){\n\tint n,i,m=0,f=0,len[40],x=0,y=0;\n\tchar sum[40][7],me[40][7],fl[40][7];\n\tdouble sg[40],s[40],g[40];\n\tscanf(\"%d\",&n);\n\tfor(i=0;is[i+1]){\n\t\t\t\te=s[i];\n\t\t\t\ts[i]=s[i+1];\n\t\t\t\ts[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n for(k=1;k<=y;k++){\n\t\tfor(i=0;i=0;i--) \n {\n printf(\"%.2f\",g[i]);\n if(i!=0) printf(\" \");\n }\n}\n"} +{"label": "102", "index": "50955", "code": "\nstruct Student\n{char sex[10];\n double h;\n};\n\nint Compare1(const void* e1,const void *e2)\n{\n return(*((int*)e1)-*((int*)e2));\n}\n\n\nmain()\n{\n int n,i,j,k,l,q;\n double a;\n struct Student num[50];\n double m[50]={0};\n double f[50]={0};\n scanf(\"%d\",&n);\n for(i=0;i0)\n {a=m[q];\n m[q]=m[q+1];\n m[q+1]=a;\n }\n }\n } \n for(l=0;l=1;i--)\n\t\tprintf(\" %.2f\",woman[i]);\n\tputs(\"\");\n\t//getchar();\n\t//getchar();\n\t//getchar();\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50957", "code": "int main(){\n int n,i,k,man=0,woman=0;\n char sex[7];\n double h,x,male[40],female[40];\n char a[5]={'m','a','l','e','\\0'};\n scanf(\"%d\",&n);\n for(i=0;imale[i+1]){\n x=male[i+1];\n male[i+1]=male[i];\n male[i]=x;\n }\n }\n }\n for(k=1;k<=woman;k++){\n for(i=0;ifemale[i+1]){\n x=female[i+1];\n female[i+1]=female[i];\n female[i]=x;\n }\n }\n }\n for(i=0;i0;i--){\n printf(\"%.2lf \",female[i]);\n }\n printf(\"%.2lf\",female[0]);\n return 0;\n}\n "} +{"label": "102", "index": "50958", "code": "int main()\n{\n\tint N;\n\tscanf(\"%d\",&N);\n\tint count1=0,count2=0;\n\tfloat male[40]={0.0};\n\tfloat female[40]={0.0};\n\tchar judge [10]={'\\0'};\n\tfor(int i=0;imale[j])\t\n\t\t\t {\n\t\t\t temp=male[i];\n\t\t\t male[i]=male[j];\n\t\t\t male[j]=temp;\t\n\t\t\t } \n\t\t\t}\t\n\t\t}\n\tfor(int i=0;iheightofboy[p+1])\n {\n temp=heightofboy[p];\n heightofboy[p]=heightofboy[p+1];\n heightofboy[p+1]=temp;\n }\n }\n }\n for(i=0;ih1[j+1])\n\t\t\t{\n\t\t\t\th=h1[j+1];\n\t\t\t\th1[j+1]=h1[j];\n\t\t\t\th1[j]=h;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;if[i]){\n temp=f[i];\n f[i]=f[j];\n f[j]=temp;\n }\n }\n }\n \n for(i=0;i0;i--) \n\t\tfor(j=0;jh1[j+1])\n\t\t\t{\n\t\t\t\ttemp=h1[j];\n\t\t\t\th1[j]=h1[j+1];\n\t\t\t\th1[j+1]=temp;\n\t\t\t}\n\tfor(i=0;i0;i--) \n\t\tfor(j=0;j>a[i]>>b[i];\n\t\t//scanf(\"%s\",a[i]);\n\t\t//scanf(\"%f\",b[i]);\n\t}\n\tfor(i =0; i < n;i++)\n\t{\n\t\tif(a[i][0] == 'm') count++;\n\t}\n\tfor(i = 0;i< n-1;i++)\n\t\tfor(j = i + 1; j < n;j++)\n\t\t{\n\t\t\tif(a[i][0] < a[j][0])\n\t\t\t{\n\t\t\t\tfor(k=0;k < 10;k++){\n\t\t\t\t\ttemp = a[i][k];\n\t\t\t\t\ta[i][k] = a[j][k];\n\t\t\t\t\ta[j][k] = temp;}\n\t\t\t\tt = b[i];\n\t\t\t\tb[i] = b[j];\n\t\t\t\tb[j] = t;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(i = 0; i < count-1; i++)\n\t\t\tfor(j = i + 1; j < count; j++)\n\t\t\t{\n\t\t\t\tif(b[i] > b[j])\n\t\t\t\t{\n\t\t\t\t\ts1=b[i];\n\t\t\t\t\tb[i] = b[j];\n\t\t\t\t\tb[j] = s1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i = count; i < n-1; i++)\n\t\t\t\tfor(j = i + 1; j < n; j++)\n\t\t\t\t{\n\t\t\t\t\tif(b[i] < b[j])\n\t\t\t\t\t{\n\t\t\t\t\t\ts2=b[i];\n\t\t\t\t\t\tb[i] = b[j];\n\t\t\t\t\t\tb[j] = s2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(i = 0;in[i+1]){\n\t\te=n[i+1];\n\t\tn[i+1]=n[i];\n\t\tn[i]=e;\n\t\t}\n\t}\n}\nfor(i=0;iv[i+1]){\n\t\te=v[i+1];\n\t\tv[i+1]=v[i];\n\t\tv[i]=e;\n\t\t}\n\t}\n}\n\nfor(i=b-1;i>0;i--){\nprintf(\"%.2lf \" ,v[i]);\n}\nprintf(\"%.2lf\" ,v[0]);\nreturn 0;\n}"} +{"label": "102", "index": "50965", "code": "\n\n\nint main(){\n\tint n,n1,n2,i;\n\tchar s[20];\n\tdouble h1[50],h2[50],t;\n\tcin>>n;\n\tn1=n2=0;\n\tfor (i=0;i>s>>t;\n\t\tif (strcmp(s,\"male\")==0){\n\t\t\th1[n1++]=t;\n\t\t}else \n\t\t\th2[n2++]=t;\n\t}\n\tsort(h1,h1+n1);\n\tsort(h2,h2+n2);\n\tfor (i=0;i> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> sex >> height;\n\t\tif (sex[0] == 'm')\n\t\t\tmale[j++] = height;\n\t\telse\n\t\t\tfemale[k++] = height;\n\t}\n\tfor (i = 0; i <= j - 1; i++)\n\t{\n\t\tfor (h = i + 1; h <= j - 1; h++)\n\t\t{\n\t\t\tif (male[i] > male[h])\n\t\t\t{\n\t\t\t\theight = male[i];\n\t\t\t\tmale[i] = male[h];\n\t\t\t\tmale[h] = height;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 0; i <= j - 1; i++)\n\t\tcout << setprecision(2) << fixed << male[i] << \" \";\n\tfor (i = 0; i <= k - 1; i++)\n\t{\n\t\tfor (h = i + 1; h <= k - 1; h++)\n\t\t{\n\t\t\tif (female[i] < female[h])\n\t\t\t{\n\t\t\t\theight = female[i];\n\t\t\t\tfemale[i] = female[h];\n\t\t\t\tfemale[h] = height;\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 0; i <= k - 2; i++)\n\t\tcout << setprecision(2) << female[i] << \" \";\n\tcout << setprecision(2) << female[k - 1];\n\treturn 0;\n}\n\n"} +{"label": "102", "index": "50967", "code": "int main()\n{\n\tint u,t,e,r,k,l,h=0,n,i,j,m=0;\n\tdouble s[41],sm[41],sf[41],tmp,tmpp;\n char z[41][7];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ism[l+1])\n\t\t\t{\n\t\t\t\ttmp=sm[l+1];\n\t\t\t\tsm[l+1]=sm[l];\n\t\t\t\tsm[l]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(e=1;e<=h;e++)\n\t{\n\t\tfor(r=0;rm[i+1])\n\t\t\t{\n\t\t\t\te=m[i];\n\t\t\t\tm[i]=m[i+1];\n\t\t\t\tm[i+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(j=1;j<=numf;j++)\n\t{\n\t\tfor(i=0;i<=numf-j;i++)\n\t\t{\n\t\t\tif(f[i]=0; i--)\n {\n printf (\"%.2lf\", b[i]);\n if (i) printf (\" \"); \n else printf (\"\\n\"); \n }\n } \n return 0; \n}\n"} +{"label": "102", "index": "50970", "code": "int main(){\n\tint n,i,j,x=0,y=0;\n\tdouble h,a[100],b[100];\n\tchar c[100];\n\tscanf(\"%d\",&n);\n\tfor(i=0;ia[j+1]){\n\t\t\t\te=a[j];\n\t\t\t\ta[j]=a[j+1];\n\t\t\t\ta[j+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tdouble f;\n\tfor(i=1;i<=y;i++){\n\t\tfor(j=0;j0;i--){\n\t\tfor(j=0;j0;i--){\n\t\tfor(j=0;jmale[j+1]){\n\t\t\t\tt=male[j+1];\n\t\t\t\tmale[j+1]=male[j];\n\t\t\t\tmale[j]=t;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=0;ihanzi[j])\n {\n paohuierhao=hanzi[i];\n hanzi[i]=hanzi[j];\n hanzi[j]=paohuierhao;\n }\n }\n }\n for(int i=0;ia[j])\n\t\t\t{\n\t\t\t\ttmp=a[i];\n\t\t\t\ta[i]=a[j];\n\t\t\t\ta[j]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=0;ib[j+1])\n\t\t\t{\n\t\t\t\ttemp=b[j];\n\t\t\t\tb[j]=b[j+1];\n\t\t\t\tb[j+1]=temp;\n\t\t\t}\n\t\t}\n\tfor(i=0;ib[p]) p=j;\n c=b[i]; b[i]=b[p]; b[p]=c;\n }\n \n for (i=1;i<=n1;i++) printf(\"%.2lf \",a[i]);\n for (i=1;i<=n2;i++) if (i> n;\n\tfor (i = 0; i < n; i++)\n\t{\n\t\tcin >> a;\n\t\tif (strcmp(a,\"male\") == 0)\n\t\t{\n\t\t\tcin >> male[x++];\n\t\t}\n\t\telse if (strcmp(a,\"female\") == 0)\n\t\t{\n\t\t\tcin >> female[y++];\n\t\t}\n\t}\n\ttemp = 0;\n\tfor (i = 0; i < x; i++)\n\t{\n\t\tif (male[i] < male[temp])\n\t\t\ttemp = i;\n\t}\n\tcout << fixed << setprecision(2) << male[temp];\n\tmale[temp] = 0;\n\tfor (i = 0; i < x - 1; i++)\n\t{\n\t\tfor (j = 0; j < x; j++)\n\t\t{\n\t\t\tif (male[j] > 1)\n\t\t\t{\n\t\t\t\ttemp = j;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (;j < x; j++)\n\t\t{\n\t\t\tif (male[j] > 1 && male[j] < male[temp])\n\t\t\t\ttemp = j;\n\t\t}\n\t\tcout << \" \" << male[temp];\n\t\tmale[temp] = 0;\n\t}\n\tfor (i = 0; i < y; i++)\n\t{\n\t\ttemp = 0;\n\t\tfor (j = 0; j < y; j++)\n\t\t{\n\t\t\tif (female[j] > female[temp])\n\t\t\t{\n\t\t\t\ttemp = j;\n\t\t\t}\n\t\t}\n\t\tcout << \" \" << female[temp];\n\t\tfemale[temp] = 0;\n\t}\n\treturn 0;\n}"} +{"label": "102", "index": "50977", "code": "struct people\n{\n char a[7];\n float l;\n};\nint main()\n{\n int n,i,j;\n struct people* p;\n struct people pp;\n char* v=\"male\";\n scanf(\"%d\",&n);\n p=(struct people*)malloc(n*sizeof(struct people));\n for(i=0;ip[j].l&&strcmp(p[i].a,v)==0&&strcmp(p[j].a,v)==0)\n {\n pp=p[i];\n p[i]=p[j];\n p[j]=pp;\n }\n if(p[i].l>n;\n\t//cout<>b>>k;\n\t\tif(b[0]=='f')\n\t\t\ta[len1++]=k;\n\t\telse c[len2++]=k;\n\t}\n\tfor(int i=0;ic[j+1])\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp=c[j];c[j]=c[j+1];c[j+1]=temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\tfor(int i=0;i mh[i+1]){\n\t\t\t\te = mh[i+1];\n\t\t\t\tmh[i+1] = mh[i];\n\t\t\t\tmh[i] = e;\n\t\t\t}\n\t}}\n\t\tfor( p = 1; p <= k; p++){\n\t\tfor(i = 0; i < k- p; i++){\n\t\t\tif(wh[i] > wh[i+1]){\n\t\t\t\te = wh[i+1];\n\t\t\t\twh[i+1] = wh[i];\n\t\t\t\twh[i] = e;\n\t\t\t}\n\t\t}}\n\t\tprintf(\"%.2lf\",mh[0]);\n\tfor(i=1;i=0;i--)\n\t{\n\t\tprintf(\" %.2lf\",wh[i]);\n\t}\n\treturn 0;\n}\n"} +{"label": "102", "index": "50980", "code": "float height;\nfloat p1[nMax],p2[nMax];\nchar ss[10];\nint cmp(const void *a,const void *b){\n return *(float *)a-*(float *)b;\n}\nint main (){\n int n;\n scanf(\"%d\",&n);\n int i;\n int u=0,v=0;\n for(i=0;i=0;i--){\n printf(\"%.2f\",p2[i]);\n if(i!=0){\n printf(\" \");\n }\n }\n printf(\"\\n\");\n return 0;\n}\n"} +{"label": "102", "index": "50981", "code": "\nint main()\n{\n\tint n, i, j = 1, k = 1;\n\tcin >> n;\n\tchar sex[40][10];\n\tdouble male[40], female[40];\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> sex[i];\n\t\tif (sex[i][0] == 'm')\n\t\t{\n\t\t\t cin >> male[j];\n\t\t\t j++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcin >> female[k];\n\t\t\tk++;\n\t\t}\n\t}\n\tint j0 = j - 1, k0 = k - 1;\n\tfor (k = 1; k <= j0; k++)\n\t{\n\t\tfor (i = 1; i <= j0 - k; i++)\n\t\t{\n\t\t\tif (male[i] > male[i+1])\n\t\t\t{\n\t\t\t\tmale[0] = male[i];\n\t\t\t\tmale[i] = male[i+1];\n\t\t\t\tmale[i+1] = male[0];\n\t\t\t}\n\t\t}\n\t}\n\tfor (k = 1; k <= k0; k++)\n\t{\n\t\tfor (j = 1; j <= k0 - k; j++)\n\t\t{\n\t\t\tif (female[j] < female[j+1])\n\t\t\t{\n\t\t\t\tfemale[0] = female[j];\n\t\t\t\tfemale[j] = female[j+1];\n\t\t\t\tfemale[j+1] = female[0];\n\t\t\t}\n\t\t}\n\t}\n\tfor (i = 1; i <= j0; i++)\n\t{\n\t\tcout << fixed << setprecision(2) << male[i] << \" \";\n\t}\n\tfor (j = 1; j < k0; j++)\n\t{\n\t\tcout << fixed << setprecision(2) << female[j] << \" \";\n\t}\n\tcout << fixed << setprecision(2) << female[j];\n\nreturn 0;\n}"} +{"label": "102", "index": "50982", "code": "main() \n{\n int n,i,j=0,y=0,t;\n double s;\n scanf(\"%d\",&n);\n char c[n];\n double a[n],b[n];\n for(i=0;ia[t+1])\n {double e=a[t];\n a[t]=a[t+1];\n a[t+1]=e; } \n } \n }\n for(i=0;ipai[j]){\n\t\t\t\t\thuan=pai[k];\n\t\t\t\t\tpai[k]=pai[j];\n\t\t\t\t\tpai[j]=huan;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(i=1;i sz[i+1]){\n\t\t\t\te = sz[i+1];\n\t\t\t\tsz[i+1] = sz[i];\n\t\t\t\tsz[i] = e;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%.2lf\",sz[0]);\n\tfor(i=1;ia[k].h)k=j;\n\t\t\t}\n\t\t \t \n\t\t\t\t printf(\" %.2f\",a[k].h);\n\t\t\t\t\n\t\t\t \n\t\t \ta[k]=a[i];\n\t\t}\n\t\telse continue;\n\t}\n}"} +{"label": "102", "index": "50986", "code": "int main(){\n\tint n,p=0,q=0;\n\tscanf(\"%d\",&n);\n\tchar sex[100][100];\n\tdouble m[100],f[100];\n\tfor(int a=0;am[i+1]){\n e=m[i+1];\n m[i+1]=m[i];\n m[i]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(int b=1;b<=q;b++){\n double c;\n for(int i=0;i0;i--){\n\t\tfor(j=0;jh[j+1]){\n\t\t\t\ttmp=h[j+1];\n\t\t\t\th[j+1]=h[j];\n\t\t\t\th[j]=tmp;\n\t\t\t}\n\t\t}\n\t}\n\tfor(i=k;i> n;\n\tfor ( i = 1; i <= n; i++ )\n\t{\n\t\tcin >> gender;\n\t\tif (strlen(gender) == 4 )\n\t\t\tcin >> h[1][num1], num1++;\n\t\telse \n\t\t\tcin >> h[2][num2], num2++;\n\t}\n\tfor ( i = 1; i <= num1 - 2; i++ )\n\t{\n\t\tfor( j = 1; j <= num1 -1- i; j++ )\n\t\t\tif ( h[1][j] > h[1][j+1] )\n\t\t\t\tt = h[1][j], h[1][j] = h[1][j+1] , h[1][j+1] = t;\n\t}\n\tfor ( i = 1; i <= num2 - 2; i++ )\n\t{\n\t\tfor ( j = 1; j <= num2 - 1 - i; j++ )\n\t\t\tif ( h[2][j] < h[2][j+1] )\n\t\t\t\tt = h[2][j] , h[2][j] = h[2][j+1], h[2][j+1] = t;\n\t}\n\tfor ( i = 1; i <= num1 -1; i++ )\n\t\tcout <nan[y+1]){\n\t\t\te=nan[y];\n\t\t\tnan[y]=nan[y+1];\n\t\t\tnan[y+1]=e;\n\t\t\t}\n\t\t}\n\t}\n\tfor(x=0;xmale[j+1])\n\t\t\t{\n\t\t\t\tt=male[j];\n\t\t\t\tmale[j]=male[j+1];\n\t\t\t\tmale[j+1]=t;\n\t\t\t}\n\tfor(i=0;i<=f-2;i++)\n\t\tfor(j=0;j<=f-2-i;j++)\n\t\t\tif(female[j]male[j+1])\n\t\t {\n\t\t\ttmp=male[j];\n\t\t\tmale[j]=male[j+1];\n\t\t\tmale[j+1]=tmp;\n\t\t }\n\t }\n }\n\n for(i=1;i<=f_num;i++){\n\t for(j=0;j> n;\n\tfor (int i = 1; i <= n; i++)\n\t{\n\t\tcin >> s[i] >> a[i];\n\t\tif (strcmp(s[i],w) == 0)\n\t\t{\n\t\t\tb[m++] = a[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc[p++] = a[i];\n\t\t}\n\t}\n\tfor (int i = 1; i <= m - 1; i++)\n\t{\n\t\tfor (int j = 1; j <= m - i; j++)\n\t\t{\n\t\t\tif (b[j] > b[j + 1])\n\t\t\t{\n\t\t\t\tt1 = b[j];\n\t\t\t\tb[j] = b[j + 1];\n\t\t\t\tb[j + 1] = t1;\n\n\t\t\t}\n\t\t}\n\n\t}\n\tfor (int i = 1; i <= p - 1; i++)\n\t\t{\n\t\t\tfor (int j = 1; j <= p - i; j++)\n\t\t\t{\n\t\t\t\tif (c[j] < c[j + 1])\n\t\t\t\t{\n\t\t\t\t\tt2 = c[j];\n\t\t\t\t\tc[j] = c[j + 1];\n\t\t\t\t\tc[j + 1] = t2;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\tcout << fixed << setprecision(2);\n\tfor (int i = 2; i <= m; i++)\n\t{\n\t\tcout << b[i] << \" \";\n\t}\n\tfor (int j = 1; j <= p - 1; j++)\n\t{\n\t\tcout << c[j];\n\t\tif (j != p - 1)\n\t\t\tcout << \" \";\n\t}\n\tcout << endl;\n\treturn 0;\n}\n"} +{"label": "102", "index": "50993", "code": "\nchar sex[50][7];\nfloat tall[50];\nfloat sort1[50]={0};\nfloat sort2[50]={0};\nchar m[7]=\"male\";\nchar f[7]=\"female\";\n\nvoid x(float s[50],int n)\n{\n\tint i,j;\n\tfloat tmp;\n\tfor(i=n-1;i>0;i--)\n\t{\n\t\tfor(j=0;js[j+1])\n\t\t\t{\n\t\t\t\ttmp=s[j];\n\t\t\t\ts[j]=s[j+1];\n\t\t\t\ts[j+1]=tmp;\n\t\t\t}\n\t\t}\n\t}\n}\n\nvoid x1(float s[50],int n)\n{\n\tint i,j;\n\tfloat tmp;\n\tfor(i=n-1;i>0;i--)\n\t{\n\t\tfor(j=0;ja[i+1])\n\t\t\t{\n\t\t\t\te=a[i+1];\n\t\t\t\ta[i+1]=a[i];\n\t\t\t\ta[i]=e;\n\t\t\t}\n\t\t}\n\t}\n for(k=1;k<=40;k++)\n\t{\n\t\tfor(i=0;i<40-k;i++)\n\t\t{\n\t\t\tif(b[i]>b[i+1])\n\t\t\t{\n\t\t\t\te=b[i+1];\n\t\t\t\tb[i+1]=b[i];\n\t\t\t\tb[i]=e;\n\t\t\t}\n\t\t}\n\t}\n for(i=40-m;i<40;i++)\n\t{\n\t\tprintf(\"%.2lf \",a[i]);\n\t}\n for(i=39;i>40-f;i--)\n\t{\n\t\tprintf(\"%.2lf \",b[i]);\n\t}\n printf(\"%.2lf\",b[40-f]);\n return 0;\n}"} +{"label": "102", "index": "50995", "code": "int main(){\nint n,i,j,x1=0,x2=0;\ndouble h1[100],h2[100],h[100];\ndouble t;\nchar c[100];\nscanf(\"%d\",&n);\nfor(i=0;ih1[j+1]){\nt=h1[j];\nh1[j]=h1[j+1];\nh1[j+1]=t;\n\t\t}\n\t}\n}\nfor(i=0;imanhigh[a+1]){\n sa=manhigh[a];\n manhigh[a]=manhigh[a+1];\n manhigh[a+1]=sa; \n } \n } \n }\n for(i=0;iwomanhigh[a+1]){\n sa=womanhigh[a];\n womanhigh[a]=womanhigh[a+1];\n womanhigh[a+1]=sa; \n } \n } \n }\n for(i=0;i0;i--){\n printf(\"%.2lf \",womanhigh[i]); \n }\n printf(\"%.2lf\",womanhigh[0]);\n }\n \n return 0; \n } \n"} +{"label": "102", "index": "50997", "code": "\ndouble ma[100] = {0.00}, fe[100] = {0.00};\n\nvoid quick_sort1(double a[], int l, int r)\n{\n\tif (l >= r)\n\t\treturn;\n\tint lo = l, hi = r;\n\tdouble k = a[l];\n\twhile (lo != hi)\n\t{\n\t\twhile ((lo < hi) && (a[hi] >= k))\n\t\t\thi--;\n\t\ta[lo] = a[hi];\n\t\twhile ((lo < hi) && (a[lo] <= k))\n\t\t\tlo++;\n\t\ta[hi] = a[lo];\n\t}\n\ta[lo] = k;\n\tquick_sort1(a, l, lo - 1);\n\tquick_sort1(a, lo + 1, r);\n}\n\nvoid quick_sort2(double a[], int l, int r)\n{\n\tif (l >= r)\n\t\treturn;\n\tint lo = l, hi = r;\n\tdouble k = a[l];\n\twhile (lo != hi)\n\t{\n\t\twhile ((lo < hi) && (a[hi] <= k))\n\t\t\thi--;\n\t\ta[lo] = a[hi];\n\t\twhile ((lo < hi) && (a[lo] >= k))\n\t\t\tlo++;\n\t\ta[hi] = a[lo];\n\t}\n\ta[lo] = k;\n\tquick_sort2(a, l, lo - 1);\n\tquick_sort2(a, lo + 1, r);\n}\n\n\nint main()\n{\n\tint n, i, man = 0, feman = 0;\n\tchar a[10];\n\tcin >> n;\n\tcin.get();\n\tfor (i = 1; i <= n; i++)\n\t{\n\t\tcin >> a; \n\t\tif (a[0] == 'm')\n\t\t{\n\t\t\tcin >> ma[man];\n\t\t\tman++;\n\t\t}\n\t\tif (a[0] == 'f')\n\t\t{\n\t\t\tcin >> fe[feman];\n\t\t\tfeman++;\n\t\t}\n\t\tcin.get();\n\t}\n\tman--;\n\tfeman--;\n\tquick_sort1(ma, 0, man);\n\tquick_sort2(fe, 0, feman);\n\tcout << fixed;\n\tfor (i = 0; i <= man; i++)\n\t\tcout << setprecision(2) << ma[i] << \" \";\n\tfor (i = 0; i<= feman - 1; i++)\n\t\tcout << setprecision(2) << fe[i] << \" \";\n\tcout << fe[feman] << endl;\n\treturn 0;\n}\n"} +{"label": "102", "index": "50998", "code": "int main(){\nint n,i,a1,a2,j;\ndouble man[40],woman[40],b1,b2;\nchar s[7];\na1=0;\na2=0;\nscanf(\"%d\",&n);\nfor(i=0;iman[j+1]){\n b1=man[j+1];\n man[j+1]=man[j];\n man[j]=b1;\n}\n}\n}\nfor(i=0;ib[m+1]){t=b[m];b[m]=b[m+1];b[m+1]=t;}}}\nfor(i=0;i='a'&&a[i]<='z')\na[i]=a[i]-'a'+'A';}\n\nint main()\n{int b[1000]={0},l,i,j;\ncin>>a;\nf();\nl=strlen(a);\ni=0;\nwhile(i> a;\n\t\n\n\tint len = strlen (a);\n\tint i=0, j = 0, k = 0;\n\tfor(i=0; i='a' && a[i] <= 'z')\n\t\t\ta[i] -= ('a' - 'A');\n\n memset(b, 0, sizeof(b));\n\tb[0] = a[0];\n\n\n\ti = 0;\n \twhile(i < len)\n \t{\n\t\tfor(j=i+1; j ='a')\n s[i]=s[i]-'a'+'A';\n while(j!=len)\n {\n int le=1;\n for (i = j + 1;s[i]==s[j];i ++)\n le ++,j ++;\n printf(\"(%c,%d)\",s[j],le);\n j ++;\n }\n}\n"} +{"label": "103", "index": "51003", "code": "\nint main()\n{\n\tchar currChar, lastChar;\n\tint lastCount = 1;\n\tcin >> lastChar;\n\tif (lastChar <= 'z' && lastChar >= 'a')\n\t\tlastChar += 'A' - 'a';\n\twhile (cin >> currChar)\n\t{\n\t\tif (currChar <= 'z' && currChar >= 'a')\n\t\t\tcurrChar += 'A' - 'a';\n\t\tif (currChar != lastChar)\n\t\t{\n\t\t\tcout << '(' << lastChar << ',' << lastCount << ')';\n\t\t\tlastCount = 1;\n\t\t\tlastChar = currChar;\n\t\t}\n\t\telse\n\t\t\tlastCount++;\n\t}\n\tcout << '(' << lastChar << ',' << lastCount << ')';\n\treturn 0;\n}"} +{"label": "103", "index": "51004", "code": "int main ()\n{\n char a[1002]={0};\n cin>>a;\n int count=1;\n for (int i=1;i<=strlen(a);i++)\n {\n if ((a[i]==a[i-1])||(a[i]==a[i-1]+32)||(a[i]==a[i-1]-32))\n {\n count++; \n }\n else \n {\n if (a[i-1]>='a'&&a[i-1]<='z')\n {\n char big=a[i-1]-32;\n cout<<\"(\"<=97)\n a[ws]=a[ws]-32; \n \n printf(\"(%c,%d)\",a[ws],ws-kk+1);\n i=ws+1; \n }\n else{\n \n \n if(a[ws]>=97)\n a[ws]=a[ws]-32; \n printf(\"(%c,1)\",a[ws]);\n i++;}\n\n}\n\ngetchar ();\ngetchar ();\n}\n"} +{"label": "103", "index": "51007", "code": "\nmain()\n{\n char a[1002];\n gets(a);\n int b=1;\n int i;\n for( i=0; a[i]!='\\0';i++)\n {\n if('a'<=a[i]&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n for( i=1; a[i]!='\\0';i++)\n {\n if((a[i]==a[i-1]))\n b=b+1;\n else \n {\n printf(\"(%c,%d)\",a[i-1],b);\n b=1;\n }\n }\n printf(\"(%c,%d)\",a[i-1],b);\n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51008", "code": "int main()\n{\n\tint i,m,j;\n\tint b[2000]={0};\n\tint c[2000]={0};\n\tchar a[2000];\n\tchar s[2000];\n\tgets(s);\n\tm=strlen(s);\n\tfor(i=0;i='a')&&(s[i]<='z'))\n\t\ts[i]=s[i]-('a'-'A');\n\t}\n\tfor(i=0;i='a'&&s[i]<='z')\n\t\t\ts[i]=s[i]-'a'+'A';\n\t\tprintf(\"(%c,%d)\",s[i],a);\n\n\t}\n\t\n}"} +{"label": "103", "index": "51010", "code": "int main() {\n\tchar a[1000] = { 0 }, b;\n\tint t = 1;\n\tcin >> a;\n\tfor (int i = 0; i < strlen(a); i++) {\n\t\tif (i == 0)\n\t\t\tb = a[i];\n\t\telse {\n\t\t\tif ((a[i] == b - 'A' + 'a') || (a[i] == b + 'A' - 'a') || a[i] == b)\n\t\t\t\tt++;\n\t\t\telse {//????????????\n\t\t\t\tif (b <= 'z' && b >= 'a')\n\t\t\t\t\tb = b + 'A' - 'a';\n\t\t\t\tcout << '(' << b << ',' << t << ')';\n\t\t\t\tb = a[i];\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t}\n\t\tif (i == strlen(a) - 1) {//?????????\n\t\t\tif (b <= 'z' && b >= 'a')\n\t\t\t\tb = b + 'A' - 'a';\n\t\t\tcout << '(' << b << ',' << t << ')';\n\t\t}\n\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51011", "code": "\nint main()\n{\n\tint i,k,len;\n\tchar s[1001],c;\n\n\tgets(s);\n\n\tlen=strlen(s);\n\n\t\n\n\tfor(i=0;i=97)&&(c<=122))\n\t\t\tc=c-32;\n \n\t\twhile((s[i+1]==c)||(s[i+1]==c+32))\n\t\t{i++;\n\t\tk++;}\n \n\t\tprintf(\"(%c,%d)\",c,k);\n\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51012", "code": "main ()\n{\n int n,i,j,k,sum=0;\n char s[1001],c;\n for(i=0;i<1001;i++) s[i]='\\0';\n scanf(\"%s\",s);\n for(i=0;s[i]!='\\0';)\n {\n k=0;\n for(j=i;j<1001;j++)\n {\n if(s[i]==s[j] || s[i]==s[j]+32 || s[i]==s[j]-32) k++;\n else if(s[i]!=s[j] && s[i]!=s[j]+32 && s[i]!=s[j]-32) \n {\n printf(\"(%c,%d)\",(s[i]>='a' && s[i]<='z')?(s[i]-32):s[i],k);\n sum=sum+k;i=sum;break;\n }\n }\n }\n \n}\n \n\n\n "} +{"label": "103", "index": "51013", "code": "int main()\n{\n\tint i=0;\n\tchar a[1000];\n\tgets(a);\n\twhile(a[i]!='\\0')\n\t{\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t\ta[i]+='A'-'a';\n\t\ti++;\n\t}\n\ti=0;\n\tchar letter=a[0];\n\tint again=0;\n\twhile(1)\n\t{\n\t\tif(a[i]==letter)\n\t\t\tagain++;\n\t\tif(a[i]!=letter)\n\t\t\t{\n\t\t\t\tprintf(\"(%c,%d)\",letter,again);\n\t\t\t\tagain=1;\n\t\t\t\tletter=a[i];\n\t\t\t}\n\t\tif(a[i]=='\\0')\n\t\t\tbreak;\n\t\ti++;\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51014", "code": "\nint main()\n{\n\tchar m[1010], t;\n\tint c = 1;\n\tcin >> m;\n\tt = m[0];\n\tfor(int i = 1; i < strlen(m); i++)\n\t{\n\t\tif(m[i] == t || m[i] - 32 == t || m[i]+32 == t)\n\t\t{\n\t\t\tc++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(t >= 'A' && t <= 'Z')\n\t\t\t\tcout << \"(\" << (char)t <<\",\"<= 'A' && t <= 'Z')\n\t\tcout << \"(\" << (char)t <<\",\"<>a;\n\tint i,j; int l=strlen(a); int t;char temp;\n\tfor (i=0;i='a'&&a[i]<='z') a[i]=a[i]+'A'-'a';\n\tfor (i=0;i= 0)\n\t\t\t\ta[i - 1] -= 32;\n\t\t\tcout << \"(\" << a[i - 1] << \",\" << k + 1 << \")\";\n\t\t\tk = 0;\n\t\t}\n\t\tif (a[i] == '\\0')\n\t\t\tbreak;\n\t\ti++;\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51017", "code": "\n\nint main()\n{\n\tint i,j,n,k,counter;\n\tchar a[100]={0},x;\n\tcin>>a;\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tif(a[i]>=97)\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0;a[i]!=0;)\n\t{\n\t\tx=a[i];\n\t\tfor(j=i,k=0;a[j]==x;j++)\n\t\t\tk++;\n\t\tcout<<\"(\"<> str;\n\tint i, num = 1, len = strlen(str);\n\tif (str[0] > 96) //??????????\n\t\tstr[0] -= 32;\n\tfor (i = 1; i <= len; i++) {\n\t\tif (str[i] > 96) //????\n\t\t\tstr[i] -= 32;\n\t\tif (str[i] == str[i - 1]) //???????????\n\t\t\tnum++;\n\t\telse { //???????????\n\t\t\tcout << '(' << str[i - 1] << ',' << num << ')';\n\t\t\tnum = 1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51019", "code": "main()\n{\n char str[1000];\n int i,sum;\n gets(str);\n i=0;\n sum=1;\n while(str[i]!='\\0')\n {\n while(str[i]==str[i+1]||str[i]==str[i+1]+32||str[i]==str[i+1]-32)\n {\n sum=sum+1;\n i=i+1;\n }\n if (str[i]>='a'&&str[i]<='z')\n str[i]=str[i]-32;\n printf(\"(%c,%d)\",str[i],sum);\n i=i+1;\n sum=1;\n }\n getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();\n}"} +{"label": "103", "index": "51020", "code": "\nmain()\n{\n char s[100];\n scanf(\"%s\",s);\n int a;\n int b[10000]={0};\n a=strlen(s);\n int i,j,k;\n for(i=0;i='a'&&s[i]<='z')\n s[i]=s[i]-'a'+'A';\n \n \n }\n int f=0;\n int t=0;\n for(i=f;i=0)\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0; i'Z')\n\t\t\tstr[i]-=32;\n\t}\n\tfor(i=0;i=97)\n\t\t\tstr[i]-=32;\n\tc[0]=str[0];\n\tfor(i=0;i'Z')\n\t\ta[i]=a[i]-'a'+'A';\n\t}\n\tint l=1;\n\tfor (i=1;a[i]!='\\0';i++){\n\t\tif(a[i]==a[i-1])\n\t\tl++;\t\n\telse{\n\t\tprintf(\"(%c,%d)\",a[i-1],l);\n\t\tl=1;\n\t}}\n\tprintf(\"(%c,%d)\",a[i-1],l);\n\t\n} \n\n "} +{"label": "103", "index": "51025", "code": "int f(char a,char b)\n{\n char c,d;\n c=b+'A'-'a';\n d=b-'A'+'a';\n if((a==b)||(a==c)||(a==d))\n return 1;\n else\n return 0;\n}\nint g(char a)\n{\n char b;\n int c,d;\n c=a-'A';\n d='a'-'A';\n if(c> input;\n\tint i, count = 0;\n\tchar c = toupper(input[0]);\n\tfor (i = 0; i < strlen(input); i++)\n\t{\n\t\tif (input[i] == c || toupper(input[i]) == c)\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tcout << '(' << c << ',' << count << ')';\n\t\t\tcount = 1;\n\t\t\tc = toupper(input[i]);\n\t\t}\n\t}\n\tcout << '(' << c << ',' << count << ')' << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51027", "code": "main()\n{\nint i,j,l,k=0;\nchar s[1000];\nchar a[1000];\nint b[1000];\ngets(s);\nl=strlen(s);\na[0]=s[0];\nb[0]=1;\nfor(i=1;i> s;\n\tn = strlen(s);\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(s[i] == a || (s[i] - 32 == a))\n\t\t\tk++;\n\t\telse\n\t\t{\n\t\t\tif(k != 0)\n\t\t\t\tcout << \"(\" << a << \",\" << k << \")\";\n\t\t\tk = 1;\n\t\t\ta = s[i];\n\t\t\tif(a > 'Z')\n\t\t\t\ta = a - 32;\n\t\t}\n\t}\n\tcout << \"(\" << a << \",\" << k << \")\";\n\treturn 0;\n}"} +{"label": "103", "index": "51029", "code": "/*\n * 2.cpp\n *\n * Created on: 2011-12-31\n * Author: 2011\n */\nint main()\n{\n\n\tchar a[1000]={0};\n\tcin>>a;\n\t//char str1[26]=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",str2[26]=\"abcdefghijklmnopqrstuvwxyz\";\n\tint num[27]={0};\n\tint len=strlen(a);\n\tint i=0,j=0;\n\tfor(i=0;i='a')a[i]-=('a'-'A');\n\tfor(i=0;i'Z')\n\t\ta[i]=a[i]-32;\n }\n\tfor(i=0;i='a'&&a<='z')\n\t\treturn a-32;\n\telse\n\t\treturn a;\n}\nint main()\n{\n\tchar str[1001];\n\tcin>>str;\n\tint i,l,flag;\n\tl=strlen(str);\n\tstr[0]=zhuanhua(str[0]);\n\tji[0].zimu=str[0];\n\tji[0].count =1;\n\tflag=0;\n\tfor(i=1;i='a')\n\t{\n\t\tcurrChar-='a';\n\t}\n\telse\n\t{\n\t\tcurrChar-='A';\n\t}\n\tint count=1;\n\tint step=0;\n\tchar outChar[100];\n\tint outNum[100];\n\tint i=1;\n\twhile(num[i]!='0')\n\t{\n\t\tchar nowChar=num[i];\n\t\tif(nowChar>='a')\n\t\t{\n\t\t\tnowChar-='a';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnowChar-='A';\n\t\t}\n\t\tif(currChar==nowChar)\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\toutChar[step]=currChar;\n\t\t\toutNum[step]=count;\n\t\t\tcount=1;\n\t\t\tstep++;\n\t\t\tcurrChar=nowChar;\n\t\t}\n\t\ti++;\n\t}\n\toutChar[step]=currChar;\n\toutNum[step]=count;\n\tcount=0;\n\tstep++;\n\n\tfor(int j=0;j>a;\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0;i='a')&&(q<='z')) return q-'a'+'A';\n}\n\nint main()\n{\ncin>>q;\nhead=1;length=1;lastQ=q[0];\nwhile (q[head]!='\\0')\n{\nif (MT(q[head])==MT(lastQ)) length++;\nelse\n{\ncout<<'('<=96)\n\t\t{\n\t\t\tw[i]=w[i]-32;\n\t\t}\n\t}\n\tfor(i=1,j=1;;i++)\n\t{\n\t\tif(w[i-1]=='\\0')\n\t\t\tbreak;\n\t\tif(w[i]==w[i-1])\n\t\t{\n\t\t\ta[j]=a[j]+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",w[i-1],a[j]);\n\t\t\tj=j+1;\n\t\t}\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51037", "code": "struct letter\n{\n\tchar k;\n\tint res;\n}number[1000];\n\nint main()\n{\n\tchar a[1100]={0};\n\tcin>>a;\n\tint p=0;\n\tfor(int i=0;i<1000;i++)\n\t{\n\t\tnumber[i].res=0;\n\t}\n\tfor(int i=0;i='a')\n\t\t{\n\t\t\ta[i]=a[i]+'A'-'a';\n\t\t}\n\t}\n\tfor(int i=0;i=0)\n printf(\"(%c,1)\",a-'a'+'A');\n else\n printf(\"(%c,1)\",a);\n}\nelse\n{\nfor(i=1;c[i]!='\\0';i++)\n {\n if((c[i]==a)||(c[i]-'a'+'A'==a)||(c[i]+'a'-'A'==a))\n {\n n=n+1;\n if(c[i+1]=='\\0')\n {\n if(a-'a'>=0)\n printf(\"(%c,%d)\",a-'a'+'A',n);\n else\n printf(\"(%c,%d)\",a,n);\n }\n }\n else\n {\n if(a-'a'>=0)\n printf(\"(%c,%d)\",a-'a'+'A',n);\n else \n printf(\"(%c,%d)\",a,n);\n n=1;\n a=c[i]; \n if(c[i+1]=='\\0')\n {\n if(a-'a'>=0)\n printf(\"(%c,1)\",c[i]-'a'+'A');\n else\n printf(\"(%c,1)\",c[i]);\n }\n }\n}\n}\n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51039", "code": "void c(char *p,int l)\n{\n int i;\n \n for(i=0;i='a'&&(*(p+i))<='z')\n *(p+i)=*(p+i)+('A'-'a');\n}\n \n}\nint f(char x,char y)\n{\n \n if(x==y)\n return 1;\n else \n return 0;\n}\nmain()\n{ int l;\nint e;\nint count=0;\n char a[1000];\n char *p;\n char q;\n int i;\n scanf(\"%s\",a);\n l=strlen(a);\n p=a;\n c(p,l);\n for(i=0;i>str;\n\tint i,counter;\n\tfor (i=0;str[i]!='\\0';i++)\n\t{\n\t\tif (str[i]>='a' && str[i]<='z')\n\t\t{\n\t\t\tstr[i]=str[i]+'A'-'a';\n\t\t}\n\t}\n\tchar temp;\n\tcounter=1;\n\ttemp=str[0];\n\tfor (i=1;str[i-1]!='\\0';i++)\n\t{\n\t\tif (temp==str[i])\n\t\t\tcounter++;\n\t\telse\n\t\t{\n\t\t\tcout<<'('<=0)\n\t\t\t{\n\t\t\t\tb[i]=b[i]-32;\n\t\t\t}\n\t\t\tcout << \"(\" << b[i] << \",\" << c[i] << \")\";\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51042", "code": "int main()\n{\n\tchar m[100];\n\tint count[100]={0},i=0,t=0;\n\tcin>>m;\n\tfor(i=0;m[i]!='\\0';i++)\n\t{\n\t\tif(count[t]==0)\n\t\t\tcount[t]++;\n\t\telse if( m[i]==m[i-1] ||m[i] -m[i-1]=='A'-'a'||m[i]-m[i-1]=='a'-'A')\n\t\t\tcount[t]++;\n\t\telse\n\t\t{\n\t\t\tt++;\n\t\t\tcount[t]=1;\n\t\t}\n\t}\n\tint sum=0;\n\tfor(i=0;i<=t;i++)\n\t{\n\t\tsum+=count[i];\n\t\tif(m[count[i]-1]>='A'&&m[count[i]-1]<='Z')\n\t\t\t;\n\t\telse\n\t\t\tm[count[i]-1]+='A'-'a';\n\t\tcout<<'('<='a')\n {\n str[i]+='A'-'a';\n }\n } \n i=0;\n b=str[0];\n for(;str[i]!='\\0';i++)\n {\n if(b==str[i])\n count++;\n else\n {\n printf(\"(%c,%d)\",b,count);\n b=str[i];\n count=0;\n i--;\n }\n } \n printf(\"(%c,%d)\",b,count);\n\n \n}\n\n"} +{"label": "103", "index": "51044", "code": "\n//?????????\nvoid change(char * a)\n{\n\tint l=strlen(a);\n\tint i;\n\tfor(i=0;i='a')&&(a[i]<='z'))\n\t\t{\n\t\t\ta[i]=a[i]-'a'+'A';\n\t\t}\n\t}\n\treturn;\n}\n\nint main()\n{\n\tint temp_num;\n\tint l;\n\tint i;\n\tchar temp_char;\n\tchar st[1024]; //?????????????????\u0093????\u0094\n\tscanf(\"%s\",st);\n\tchange(st);\n\t//printf(\"%s\",st); //debug\n\tl=strlen(st);\n\ttemp_num=1;\n\ttemp_char=st[0];\n\tfor(i=1;i<=l;i++) //?='A'&&p[0]<='Z')\n printf(\"(%c,%d)\",p[0],count);\n else\n printf(\"(%c,%d)\",p[0]-'a'+'A',count);\n break;\n } \n else if(p[i]==p[i+1]||(p[i]-p[i+1]=='a'-'A')||(p[i]-p[i+1]=='A'-'a')) \n {\n count++;\n i++;\n } \n else\n {\n if(p[i]>='A'&&p[i]<='Z')\n printf(\"(%c,%d)\",p[i],count);\n else\n printf(\"(%c,%d)\",p[i]-'a'+'A',count);\n i++;\n count=1; \n } \n if(i==l)\n break; \n } \n \n}\n"} +{"label": "103", "index": "51046", "code": "\nint main ()\n{\n\tchar str[1000];\n\tcin >> str;\n\tint i, len, count = 1;\n\tlen = strlen(str);\n\tfor (i = 0; i < len; i++ )\n\t{\n\t\tif (str[i] - 'a' >= 0 && str[i] - 'z' <= 0)\n\t\t{\n\t\t\tstr[i] = str[i] - 32;\n\t\t}\n\t}\n\tif (len == 1)\n\t{\n\t\tcout << \"(\" << str[0] << \",\" << count << \")\" ;\n\t}\n\telse\n\t{\n\t\tfor (i = 0; i < len - 1; i++ )\n\t\t{\n\t\t\tcount = 1;\n\t\t\twhile (str[i] == str[i + 1])\n\t\t\t{\n\t\t\t\tcount++ ;\n\t\t\t\ti++ ;\n\t\t\t}\n\t\t\tcout << \"(\" << str[i] << \",\" << count << \")\" ;\n\t\t}\n\t\tif (count == 1)\n\t\t{\n\t\t\tcout << \"(\" << str[i] << \",\" << count << \")\";\n\t\t}\n\t}\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "103", "index": "51047", "code": "int main()\n{\n char str[1000];\n\tint start = 0;\n cin >> str;\n\tint i,s=0;\n\tint len=strlen(str);\n\tfor (i=start;i < len;i++)\n\t{\n\t\tif(str[i] - '0' == str[i+1] - '0' || str[i] - '0' == str[i+1] - '0' + 32 || str[i] - '0' == str[i+1] - '0' - 32)\n\t\t\ts++;\n\t\telse\n\t\t\tif(str[i] < 'a')\n\t\t\t\t{cout <<\"(\"<= 97 )\n\ta[i] -= 32;\n}\nint i = 0 ;\nwhile( i < strlen( a ) )\n{\n\tint count = 1;\nwhile( a[i] == a[ i + 1 ] )\n{ i++;count++;}\ncout << \"(\" << a[i] << \",\" << count << \")\";\ni++;\n}\nreturn 0;\n\n\n}"} +{"label": "103", "index": "51049", "code": "\nint main()\n{\n\tchar a[1020], temp;\n\tcin >> a;\n\tint la = strlen(a), i, num = 0;\n\tfor (i = 0; i <= la - 1; i++)\n\t{\n\t\tif ((a[i] >= 97) && (a[i] <= 122))\n\t\t\ta[i] = a[i] - 32;\n\t}\n\ttemp = a[0];\n\tcout << \"(\" << temp << \",\";\n\tfor (i = 0; i <= la - 1; i++)\n\t{\n\t\tif (a[i] == temp)\n\t\t\tnum++;\n\t\tif (a[i] != temp)\n\t\t{\n\t\t\ttemp = a[i];\n\t\t\tcout << num << \")(\" << temp << \",\";\n\t\t\tnum = 1;\n\t\t}\n\t}\n\tcout << num << \")\" << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51050", "code": "void main()\n{\n\tchar str[1000];\n\tint i,k=1;\n\tscanf(\"%s\",&str);\n\tfor(i=0;i<=999;i++)\n\t{\n\t\tif(str[i]<='z'&&str[i]>='a')\n\t\t\tstr[i]=str[i]-32;\n\t}\n\n\tfor(i=0;i<999;i++)\n\t{\n\t\tif(str[i+1]=='\\0')\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",str[i],k);\n\t\t\tbreak;\n\t\t}\n\n\t\telse if(str[i]==str[i+1])\n\t\t{\n\t\t\tk++;\n\t\t}\n\t\telse if(str[i]!=str[i+1])\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",str[i],k);\n\t\t\tk=1;\n\t\t}\n\t}\n}"} +{"label": "103", "index": "51051", "code": "int main()\n{\n\tchar str[1000];\n\tint flag[1000] = {0}, i = 0, j, sum[1000] = {0};\n\tcin >> str;\n\tfor (i = 0; i < strlen(str); i ++)\n\t{\n\t\tif ('a' <= str[i] && str[i] <= 'z')\n\t\t\tstr[i] = str[i] - 32;\n\t}\n\ti = 0;\n\twhile (i < strlen(str))\n\t{\n\t\tif (flag[i] == 0)\n\t\t{\n\t\t\tfor (j = i + 1;;j ++)\n\t\t\t{\n\t\t\t\tif (str[j] == str[i])\n\t\t\t\t{\n\t\t\t\t\tsum[i] ++;\n\t\t\t\t\tflag[j] = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti = j;\n\t\t}\n\t\telse\n\t\t\ti ++;\n\t}\n\tfor (i = 0; i < strlen(str); i ++)\n\t{\n\t\tif (flag[i] == 0)\n\t\t{\n\t\t\tcout << \"(\" << str[i] << \",\" << sum[i] + 1 << \")\";\n\t\t}\n\t}\n\treturn 0;\n}\n\t\t\n"} +{"label": "103", "index": "51052", "code": "main()\n{\n\tint a,i,j,k,num,length;\n\tchar words[1000];\n\tgets(words);\n\tlength=strlen(words);\t\n\tfor(i=0;i='A'&&m[i]<='Z')\n\t\t{\n\t\t\tif(m[i]!=m[i-1]&&m[i]!=m[i-1]-32)\n\t\t\t{\n\t\t\t\tif(m[i-1]>='A'&&m[i-1]<='Z')\n\t\t\t\t\tprintf(\"(%c,%d)\",m[i-1],j);\n\t\t\t\telse if(m[i-1]>='a'&&m[i-1]<='z')\n\t\t\t\t\tprintf(\"(%c,%d)\",m[i-1]-32,j);\n\t\t\t\tj=0;\n\t\t\t}\n\t\t}\n\t\telse if(m[i]>='a'&&m[i]<='z')\n\t\t{\n\t\t\tif(m[i]!=m[i-1]&&m[i]!=m[i-1]+32)\n\t\t\t{\n\t\t\t\tif(m[i-1]>='A'&&m[i-1]<='Z')\n\t\t\t\t\tprintf(\"(%c,%d)\",m[i-1],j);\n\t\t\t\telse if(m[i-1]>='a'&&m[i-1]<='z')\n\t\t\t\t\tprintf(\"(%c,%d)\",m[i-1]-32,j);\n\t\t\t\tj=0;\n\t\t\t}\n\t\t}\n\t\tj=j+1;\n\t}\n\tif(m[n-1]>='A'&&m[n-1]<='Z')\n\t\tprintf(\"(%c,%d)\",m[n-1],j);\n\telse\n\t\tprintf(\"(%c,%d)\",m[n-1]-32,j);\n\treturn 0;\n}\n\t\t\t\n\n\n\n"} +{"label": "103", "index": "51054", "code": "int main()\n{\n\tchar arr[1001];\n\tcin >> arr;\n\tint i,len,temp=0;\n\tlen=strlen(arr);\n\tfor(i=0;i 92) arr[i] = (char)((int)arr[i]-32);\n\t}\n\tfor(i=1;i='a'&&str[i]<='z')\n\t\t\tstr[i]=str[i]-32;\n\t\telse\n\t\t\tstr[i]=str[i];\n\t}\n\tfor(i=0;i>a;\n\tint l=strlen(a);\n\tint number=1;\n\ta[l]='2';\n\tfor(int i=0;i=97) a[i]=a[i]-32;\n\t\t\tcout<<\"(\"<='a') in[i]=in[i]-'a'+'A';\n else in[i]=in[i];\n } \n \n for(int i=0;in[i]!='\\0';i++)\n if(in[i]==in[i+1]){ a++;\n continue ;}\n else\n { printf(\"(%c,%d)\",in[i],a);\n a=1;\n }\n \n \n return 0; \n \n}\n"} +{"label": "103", "index": "51058", "code": "int main()\n{ char str[1001];\nint num [27],flag,i,j; \nscanf(\"%s\",str);\n\nfor(j=0;j<=27;j++)\n{num[j]=1;} \nfor (i=0;i<=strlen(str);i++)\n{ if (str[i] >= 'a' && str[i] <='z')\n str[i]=str[i]-'a'+'A'; \n } \n\nfor (i=1;i<=strlen(str);i++)\n{ \n if (str[i]==str[i-1])\n {num[str[i]-'A']++;\n}\n else\n {\n \n printf (\"(%c,%d)\",str[i-1],num[str[i-1]-'A']);\n num[str[i-1]-'A']=1; \n \n } \n \n \n \n \n \n} \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n return 0;\n}\n\n\n"} +{"label": "103", "index": "51059", "code": "int main()\n{\n\tchar str[1000];\n\tint i,n,s,count;\n\tchar k;\n\tscanf(\"%s\",str);\n\tn=strlen(str);\n\tif(str[0]<97)\n\tk=str[0];\n\telse\n\t\tk=str[0]-32;\n\tcount=1;\n\tfor(i=1;i> a;\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tif(a[i] >= 'a')\n\t\t\ta[i] = a[i] - ('a' - 'A');\n\t}\n\tfor(i=0;a[i]!='\\0';i++)\n\t{\n\t\tint count = 0;\n\t\twhile(a[i] == a[++i])\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\tcount++;\n\t\ti--;\n\t\tcout << \"(\" << a[i] << \",\" << count << \")\";\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51061", "code": "int main()\n{\n int i,j,c;\n char a[1001];\n scanf(\"%s\",a);\n j=1;\n for(i=0;i<1001;i++)\n {\n if(a[i]=='\\0')\n {c=i;\n break;}\n }\n for(i=0;i='a')||(a[i]<'A'))\n {a[i]=a[i]+'A'-'a';}\n printf(\"(%c,%d)\",a[i],j);\n j=1;\n }\n }\n // getchar();\n //getchar();\n return 0;\n}\n"} +{"label": "103", "index": "51062", "code": "main()\n{\n\tint i,n=0,k;\n\tchar bs[1000];\n\tscanf(\"%s\",bs);\n\tint a[1000];\n\tchar cs[1000];\n\tfor(i=0;bs[i]!='\\0';i++)\n\t{\n\t\tif(bs[i]>='a'&&bs[i]<='z')\n\t\tbs[i]=bs[i]-'a'+'A';\n\t\ta[i]=1;\n\t}\n\tcs[0]=bs[0];\n\tfor(i=1;bs[i]!='\\0';i++)\n\t{\n\t\tif(bs[i]==cs[n])\n\t\t{\n\t\ta[n]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tn++;\n\t\t\tcs[n]=bs[i];\n\t\t}\n\t}\n\tfor(i=0;i<=n;i++)\n\t{\n\t\tprintf(\"(%c,%d)\",cs[i],a[i]);\n\t}\n}"} +{"label": "103", "index": "51063", "code": "int main()\n{\n char a[1000];\n int count=1,i;\n gets(a);\n for(i=0;i='a')\n {\n a[i]=a[i]-'a'+'A';\n printf(\"(%c,%d)\",a[i],count);\n count=1;\n }\n else\n {\n printf(\"(%c,%d)\",a[i],count);\n count=1;\n }\n }\n }\n getchar();\n getchar();\n}\n "} +{"label": "103", "index": "51064", "code": "\n\n\n\n\nint main(){\n\n\tchar s[2000];\n\n\tcin>>s;\n\nint p=0;\n\nwhile(s[p]!=0){\n\n\tint sum=1;\n\tchar c=s[p];\n\n\twhile((s[p+1]-s[p]==0)||(s[p+1]-s[p])=='A'-'a'||(s[p+1]-s[p])=='a'-'A'){\n\t\tsum++;\n\t\tp++;\n\t}\n\n\tchar out;\n\n\tif(c>='a') out=(char)(c-'a'+'A');\n\telse out=c;\n\n\tcout<<'('<='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n t=a[0];\n count=1;\n for(i=1;i='a')\nys[i].zm=ys[i].zm-32;\n\tprintf(\"(%c,%d)\",ys[i].zm,ys[i].gs);}\n\n\n}\n"} +{"label": "103", "index": "51067", "code": "\nint main()\n{\n\tchar a[1010];\n\tint len = 1;\n\tcin >> a;\n\tif(strlen(a) == 1)\n\t{\n\t\tif (a[0] >= 65 && a[0] <= 90)\n\t\t{\n\t\t\tcout << \"(\" << a[0] << \",1)\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << (char)(a[0] - 32) << \",1)\";\n\t\t}\n\t}\n\tfor(int i = 1; a[i] != '\\0'; i++)\n\t{\n\t\tif (a[i] == a[i - 1] || a[i] == a[i - 1] + 32 || a[i] == a[i - 1] - 32)\n\t\t{\n\t\t\tlen++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (a[i - 1] >= 65 && a[i - 1] <= 90)\n\t\t\t{\n\t\t\t\tcout << \"(\" << a[i - 1] << \",\" << len << \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"(\" << (char)(a[i - 1] - 32) << \",\" << len << \")\";\n\t\t\t}\n\t\t\tlen = 1;\n\t\t}\n\t\tif (i == strlen(a) - 1)\n\t\t{\n\t\t\tif (a[i] >= 65 && a[i] <= 90)\n\t\t\t{\n\t\t\t\tcout << \"(\" << a[i] << \",\" << len << \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout << \"(\" << (char)(a[i] - 32) << \",\" << len << \")\";\n\t\t\t}\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51068", "code": "\nmain()\n{\n char s[1010];\n int l,i,j,k,x;\n char c;\n \n gets(s);\n l=strlen(s);\n for (i=0;i>input;\n\tchar past;\n\tchar zipc[1005];\n\tint zipi[1005];\n\tint flag=0;\n\tint length=strlen(input);\n\tfor (int i=0;i<=length-1;i++){\n\t\tif (input[i]>='a') input[i]=input[i]-'a'+'A';\n\t\tif (i==0) {\n\t\t\tpast=input[0];\n\t\t\tzipc[0]=past;\n\t\t\tzipi[0]=1;\n\t\t}else{\n\t\t\tif (past==input[i]){\n\t\t\t\tzipi[flag]++;\n\t\t\t}else{\n\t\t\t\tflag++;\n\t\t\t\tzipc[flag]=input[i];\n\t\t\t\tzipi[flag]=1;\n\t\t\t}\n\t\t\tpast=input[i];\n\t\t}\n\t}\n\tfor (int i=0;i<=flag;i++){\n\t\tcout <<'(' <=97&&a[i]<=122)\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(i=0;i='a'&&s[i]<='z')\n\t\t\t{\n\t\t\t\ts[i]-='a'-'A';\n\t\t\t}\n\t\t\tcout<<\"(\"<='a'&&s[i]<='z')\n\t\t\t{\n\t\t\t\ts[i]-='a'-'A';\n\t\t\t}\n\t\t\tcout<<\"(\"<='a'&& str[i]<='z')\n\t\t\tstr[i]=str[i]-'a'+'A';\n\t\tif (str[i]==alp[counter])\n\t\t\tnum[counter]++;\n\t\telse\n\t\t{\n\t\t\tcounter++;\n\t\t\talp[counter]=str[i];\n\t\t\tnum[counter]++;\n\t\t}\n\t}\n\n\tfor (i=1;i<=counter;i++)\n\t{\n\t\tcout<<'('<'Z'||s[i-1]<'A')\n {\n printf(\"(%c,%d)\",s[i-1]-32,a[count]);\n count++;\n }\n else\n {\n printf(\"(%c,%d)\",s[i-1],a[count]);\n count++;\n }\n}\n }\n getchar();\n}\n"} +{"label": "103", "index": "51075", "code": "main()\n{\n char a[1000];\n scanf(\"%s\",a);\n int i;\n for(i=0;a[i]!='\\0';i++)\n {\n if('a'<=a[i]&&a[i]<='z')\n a[i]=a[i]+'A'-'a';\n }\n for(i=0;a[i]!='\\0';i++)\n {\n int b=0;\n while(a[i+1]==a[i])\n {\n b=1+b;\n i=i+1;\n }\n printf(\"(%c,%d)\",a[i],b+1);\n }\n} \n \n\n"} +{"label": "103", "index": "51076", "code": "main()\n{\nint a,b,c,i,j,l,x,n;\nn=0;\nchar d[2000];\nchar m;\nint e[10000];\nscanf(\"%s\",d);\nl=strlen(d);\nfor(i=0;i='a' && d[i]<='z')\nd[i]=d[i]-'a'+'A';\nfor(i=0;i<1000;i++)\ne[i]=0;\nfor(i=0;i> ch;\n\ta = ch[0];\n\tif (a >= 'a' && a <= 'z')\n\t\ta += ('A' - 'a');\n\tsize = 0;\n\tlonth = strlen(ch);\n\tfor (i = 0; i <= lonth; )\n\t{\n\t\tb = ch[i] - a;\n\t\tif (b == 0 || b == ('a' - 'A'))\n\t\t{\n\t\t\tsize++;\n\t\t\ti++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << a << \",\" << size << \")\";\n\t\t\ta = ch[i];\n\t\t\tif (a >= 'a' && a <= 'z')\n\t\t\t\ta = 'A' + a - 'a';\n\t\t\tsize = 0;\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51078", "code": "char str[1000];\nint num[1000]={0};\nchar w[1000]={'\\0'};\nint ch='a'-'A';\nint main()\n{\n\tcin>>str;\n\tint len;\n\tint j=0;\n\tif(str[0]>'Z')\n\t\tw[0]=str[0]-ch;\n\telse\n\t\tw[0]=str[0];\n\tnum[0]++;\n\t\n\tlen=strlen(str);\n\tfor(int i=1;i'Z')\n\t\t\t\tw[j]=str[i]-ch;\n\t\t\telse\n\t\t\t\tw[j]=str[i];\n\t\t}\n\t}\n\tfor(int i=0;i<1000;i++)\n\t{\n\t\tif(num[i])\n\t\t\tcout<<\"(\"<95)\n\t\tb[k]=b[k]-32; \n\t\tprintf (\"(%c,%d)\",b[k],c[k]);\t \n}\n}"} +{"label": "103", "index": "51080", "code": "main ()\n{\n char a[1000];\n char b[1000];\n int c[1000];\n for (int i=0;i<1000;i++)\n c[i]=1;\n scanf (\"%s\",a);\n int l;\n l=strlen(a);\n for (int i=0;i'Z')\n a[i]=a[i]-'a'+'A';\n }\n int n;\n n=0;\n for (int i=0;i='a'&&c[k]<='z')\n c[k]=c[k]-'a'+'A';\n }\n while(c[i]!='\\0')\n {\n for(j=i;;j++)\n {\n if(c[j]!=c[i])\n break;\n }\n printf(\"(%c,%d)\",c[i],(j-i));\n i=j;\n }\n }\n"} +{"label": "103", "index": "51082", "code": "main()\n{\n char a[1001],b[1001];\n int c[1001],i,m,M;\n \n scanf(\"%s\",a);\n \n \n for(i=0;a[i]!=0;i++){\n \n if('a'<=a[i]&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n \n \n \n for(i=0,m=0,c[m]=1,b[m]=a[0];a[i+1]!=0;i++){\n \n if(a[i]==a[i+1])\n c[m]++;\n \n else\n {m++; \n b[m]=a[i+1];\n c[m]=1;\n }\n \n }\n M=m;\n for(m=0;m<=M;m++){\n printf(\"(%c,%d)\",b[m],c[m]);}\n \n}\n"} +{"label": "103", "index": "51083", "code": "char f(char c[1000])\n{\nint i;\nfor(i=0;i<1000;i++)\nif(c[i]>='a'&&c[i]<='z')\nc[i]=c[i]+'A'-'a';\n}\nmain()\n{int i,m=1;\nchar a[1000];\ngets(a);\nf(a);\nfor(i=0;a[i]!='\\0';i++)\n{if(a[i]==a[i+1])\nm++;\nelse \n{printf(\"(%c,%d)\",a[i],m);\nm=1;\n}\n}\n}"} +{"label": "103", "index": "51084", "code": "\nmain()\n{\n int i=0,j=0,b[26]={0};\n char a[1000],c[26];\n scanf(\"%s\",a);\n for(int k=0;a[k]!='\\0';k++)\n {if((a[k]>='a')&&(a[k]<='z'))\n a[k]+=('A'-'a');}\n for(;a[i]!='\\0';i++)\n {\n if(a[i+1]==a[i])\n b[j]++;\n else\n {c[j]=a[i];\n j++;}\n }\n \n for(int k=0;k='a')\n\ts[i]=s[i]-32;}\nfor(q=0;q>str;\n\tfor(i=0;i<1000;i++)\n\t\tnum[i]=1;\n\tfor(i=0;str[i]!='\\0';i++)\n\t{\n\t\tif(str[i]>=97&&str[i]<=122)\n\t\t\tstr[i]=str[i]-32;\n\t}\n\tstr2[0]=str[0];\n\tfor(i=1;str[i]!='\\0';i++)\n\t{\n\t\tif(str[i]==str2[j])\n\t\t\tnum[j]++;\n\t\telse\n\t\t{\t\n\t\t\tstr2[j+1]=str[i];\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(i=0;i=0)\n printf(\"(%c,%d)\",s[i]-32,num);\n else\n printf(\"(%c,%d)\",s[i],num);\n num=1; \n } \n }\n else\n {for(i=0;i=0)\n printf(\"(%c,%d)\",s[i]-32,num);\n else\n printf(\"(%c,%d)\",s[i],num);\n num=1; \n } \n } \n if(s[l-1]-'a'>=0)\n printf(\"(%c,1)\",s[l-1]-32);\n else\n printf(\"(%c,1)\",s[l-1]);\n } \n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51088", "code": "main()\n{\n int i,count=1;\n char a[2000];\n for(i=0;i<2000;i++)a[i]='\\0';\n gets(a);\n for(i=0;i<2000;i++)\n {\n if(a[i]=='\\0')break;\n if(a[i]==a[i+1] || a[i]==a[i+1]+('A'-'a') || a[i]==a[i+1]-('A'-'a'))count++;\n else\n {\n if(a[i]>='a')a[i]=a[i]-('a'-'A');\n printf(\"(%c,%d)\",a[i],count);\n count=1;\n }\n }\n}"} +{"label": "103", "index": "51089", "code": "\n\nint main()\n{\n\tchar str[1001];\n\tcin.getline(str,1001);\n\tint len;\n\tlen = strlen(str);\n\tint i, num = 1;\n\tchar cur = str[0], p;\n\tif (len == 1)\n\t{\n\t\tif (cur <= 'z' && cur >= 'a')\n\t\t{\n\t\t\tp = cur + 'A' - 'a' ;\n\t\t\tcout <<\"(\" << p <<\",\" << num <<\")\";\n\t\t}\n\t\telse\n\t\t\tcout <<\"(\"<< cur << \",\" << num <<\")\";\n\t}\n\tfor ( i = 1; str[i] !='\\0'; i ++ )\n\t{\n\t\tif (cur == str[i] || str[i] == cur + 'A' - 'a' || str[i] == cur +'a' - 'A')\n\t\t{\n\t\t\tnum ++;\n\t\t\tif (i == len - 1)\n\t\t\t\tif (cur <= 'z' && cur >= 'a')\n\t\t\t\t{\n\t\t\t\t\tp = cur + 'A' - 'a' ;\n\t\t\t\t\tcout <<\"(\" << p <<\",\" << num <<\")\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcout <<\"(\"<< cur << \",\" << num <<\")\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (cur <= 'z' && cur >= 'a')\n\t\t\t{\n\t\t\t\tp = cur + 'A' - 'a' ;\n\t\t\t\tcout <<\"(\" << p <<\",\" << num <<\")\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tcout <<\"(\"<< cur << \",\" << num <<\")\";\n\t\t\tnum = 1;\n\t\t\tcur = str[i];\n\t\t\tif (i == len - 1)\n\t\t\t\tif (cur <= 'z' && cur >= 'a')\n\t\t\t\t{\n\t\t\t\t\tp = cur + 'A' - 'a' ;\n\t\t\t\t\tcout <<\"(\" << p <<\",\" << num <<\")\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcout <<\"(\"<< cur << \",\" << num <<\")\";\n\t\t\t\t\n\t\t}\n\t}\n\n\n\n\t\n\treturn 0;\n}\n\n\n"} +{"label": "103", "index": "51090", "code": "int main(){\n\tint i,l;\n\tchar c[1000];\n\tgets(c);\n\tl=strlen(c);\n\tint a;\n\ta=0;\n\tfor(i=0;i=97&&c[i]<=122)\n\t\t\tc[i]=c[i]-32;\n\tfor(i=0;i>a;\n\tl=strlen(a); \n\tif(l==1)\n\t{\n\t\tif(a[l-1]>=97)\n\t\t\ta[l-1]=a[l-1]-32;\n\t\tcout <<\"(\"<=97)\n\t\t\t\ta[i-1]=a[i-1]-32;\n\t\t\tcout <<\"(\"<=97)\n \t\t\ta[l-1]=a[l-1]-32;\n\t\t\tcout <<\"(\"<30);\n\tchange(c,i);\n\tfor(j=0;j96)x[n]=x[n]-32;\n}"} +{"label": "103", "index": "51093", "code": "int main()\n{\n\tint i;\n\tchar line[1001];\n\tcin >>line;\n\tfor (i=0;i=97 && line[i]<=122)\n\t\t\tline[i]=line[i]-32;\n\t} //??????????????\n\tint count[1000]={0},num=0; //count??????,num?????????\n char temp,ch[1000]; //temp???????????,ch????????\n\tch[0]=temp=line[0];\n\tcount[0]=1;\n\tfor (i=1;i>a;\n\tchar c[1100];\n\tint n,p=0;\n\tint b[1100];\n\tn=strlen(a);\n\tfor(int i=0;i=0)\n\t\t\ta[i]=a[i]-32;\n\t}\n\tfor(int i=1;i='a' && a[i]<='z')\n \t{\n \t\ta[i]=a[i]-'a'+'A';\n \t}\n }\n char b ;\n b=a[0];\n int c=0;\n for(i=0;i> str;\n\tlen = strlen(str);\n\tfor(i = 0; i < len; i++)\n\t{\n\t\tif(str[i] > 90)\n\t\t\tstr[i] -= 32;\n\t}\n\tfor(i = 0; i < len; i++)\n\t\ti += operation(i) - 1;\n\tcout <='a' && c[0]<='z')\n m = c[0] -'a'+'A';\n else\n m = c[0];\n a=1;\n \n for(i=1;i='a' && c[i]<='z')\n m = c[i] -'a'+'A';\n else m = c[i];\n a++;\n }\n }\n printf(\"(%c,%d)\",m,a);\n getchar();\n getchar();\n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51098", "code": "struct word\n{\n\tchar a;\n\tint b;\n}w[1000];\n\nint main()\n{\n\tint i,k,num=0,temp,t=0;\n\tchar c[1111];\n\tcin>>c;\n\tk=strlen(c);\n\tfor(i=0;i='a')\n\t\t\tc[i]=c[i]-32;\n\ti=0;\n\ttemp=c[0];\n\twhile(i='a')&&(a[i]<='z')))\n {a[i]+='A'-'a';}\n if(strlen(a)==1)\n printf(\"(%c,%d)\",a[0],1);\n else\n {\n for (i=1;i<=strlen(a)-1;i++)\n {\n if (a[i]==a[i-1])\n temp++;\n else\n {\n printf(\"(%c,%d)\",a[i-1],temp);\n temp=1;\n }\n if (a[i+1]==0)\n printf(\"(%c,%d)\",a[i],temp);\n }\n }\n return 0;\n}\n"} +{"label": "103", "index": "51101", "code": "int main()\n{\n char a[1000],b[10];\n int num[10]={1,1,1,1,1,1,1,1,1,1};\n scanf(\"%s\",&a);\n int i=0;\n while (a[i]!='\\0')\n {\n if (a[i]>='a' && a[i]<='z')\n a[i]=a[i]-'a'+'A';\n i++;\n }\n int j=0;\n b[j]=a[0];\n for (int i=1;i<=999;i++)\n {\n if (a[i]==a[i-1])\n num[j]++;\n else\n {\n j++;\n b[j]=a[i];\n }\n if (a[i]=='\\0')\n break;\n }\n for (int i=0;i<=j-1;i++)\n printf(\"(%c,%d)\",b[i],num[i]);\n printf(\"\\n\");\n\n}"} +{"label": "103", "index": "51102", "code": "\nint main()\n{\n char st[1010], ch;\n int i, j, k;\n\n gets(st);\n for(i=0; st[i]!='\\0'; i++)\n {\n if(st[i]>='a' && st[i]<='z')\n st[i]=st[i]-'a'+'A';\n }\n ch = st[0];\n k = 1;\n for(i=1; st[i]!='\\0'; i++)\n {\n if(st[i] != ch)\n {\n printf(\"(%c,%d)\", ch, k);\n ch = st[i];\n k = 1;\n }\n else\n {\n k++;\n }\n }\n printf(\"(%c,%d)\\n\", ch, k);\n return 0;\n}\n"} +{"label": "103", "index": "51103", "code": "main()\n{\nchar b[1001];\ngets(b);\nint n,i;\nn=1;\nfor(i=0;b[i]!='\\0';i++)\n{\nif((b[i]>='a')&&(b[i]<='z'))\nb[i]=b[i]+'A'-'a';\nelse\nb[i]=b[i];\n}\nif(b[1]!=b[0])\nprintf(\"(%c,%d)\",b[0],n);\nfor(i=1;b[i]!='\\0';i++)\n{\nif(b[i]==b[i-1])\n{\nn=n+1;\nif((b[i]!=b[i+1])||(b[i+1]=='\\0'))\n{\nprintf(\"(%c,%d)\",b[i],n);\nn=1;\n}\n}\nelse\n{\n if((b[i]!=b[i+1])||(b[i+1]=='\\0'))\n printf(\"(%c,%d)\",b[i],n);\n else\n continue;\n}\n}\n}"} +{"label": "103", "index": "51104", "code": "\nint main()\n{ \n {\n char a[500];\n char b[100];\n int c[100];\n cin.getline(a, 500);\n int len = strlen(a);\n b[0] = a[0];\n c[0] = 1;\n for (int i = 1; i < 100; i++)\n c[i] = 0;\n int j = 0; \n for (int i = 1; i < len; i++)\n {\n if (a[i] != b[j] && a[i] != b[j] + 32 && a[j] != b[j] - 32)\n { \n j++;\n b[j] = a[i];\n c[j]++;\n }\n else if (a[i] == b[j] || a[i] == b[j] + 32 || a[i] == b[j] - 32)\n {\n c[j]++;\n }\n }\n for (int i = 0; i <= j; i++)\n if (b[i] >= 'a' && b[i] <= 'z')\n b[i] -= 32;\n for (int i = 0; i <= j; i++)\n cout << '(' << b[i] << ',' << c[i] << ')';\n cout << endl;\n }\n \n char a;\n while (cin.get(a))\n {\n cin.get();\n if (a != '?') \n break;\n cout << \"?\" << endl; \n char a[500];\n char b[100];\n int c[100];\n cin.getline(a, 500);\n int len = strlen(a);\n b[0] = a[0];\n c[0] = 1;\n for (int i = 1; i < 100; i++)\n c[i] = 0;\n int j = 0; \n for (int i = 1; i < len; i++)\n {\n if (a[i] != b[j] && a[i] != b[j] + 32 && a[j] != b[j] - 32)\n { \n j++;\n b[j] = a[i];\n c[j]++;\n }\n else if (a[i] == b[j] || a[i] == b[j] + 32 || a[i] == b[j] - 32)\n {\n c[j]++;\n }\n }\n for (int i = 0; i <= j; i++)\n if (b[i] >= 'a' && b[i] <= 'z')\n b[i] -= 32;\n for (int i = 0; i <= j; i++)\n cout << '(' << b[i] << ',' << c[i] << ')';\n cout << endl;\n }\n \n\n return 0;\n}\n"} +{"label": "103", "index": "51105", "code": "//********************************\n//*???2.cpp **\n//*?????? 1200012768 **\n//*???2012.12.18 **\n//*????????? **\n//********************************\nint main()\n{\n\tchar ch[1001];\n\tint c1 = 1, c2 = 1, i, temp = -1;\n\tcin >> ch;\n\tint len = strlen(ch);\n\tint num[len];\n\tfor (i = 0; i < len; i++)\n\t\tif (ch[i] <= 'Z')\n\t\t\tnum[i] = ch[i] - 'A';\n\t\telse\n\t\t\tnum[i] = ch[i] - 'a';\n\tfor (i = 0; i < len; i++)\n\t{\n\t\tif (temp == -1)\n\t\t{\n\t\t\ttemp = num[i];\n\t\t\tif (i == len - 1)\n\t\t\t\tcout << \"(\" << (char)(temp + 65)<< \",\" << c1 << \")\";\n\t\t}\n\t\telse if (num[i] == temp)\t\n\t\t{\n\t\t\tc1++;\n\t\t\tif (i == len - 1)\n\t\t\t\tcout << \"(\" << (char)(temp + 65)<< \",\" << c1 << \")\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << (char)(temp + 65)<< \",\" << c1 << \")\";\n\t\t\tc1 = 1, temp = num[i];\n\t\t\tif (i == len - 1)\n\t\t\t\tcout << \"(\" << (char)(temp + 65)<< \",\" << c1 << \")\";\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51106", "code": "\nmain()\n{\n char a,str[1000];\n int i,k;\n gets(str);\n a = str[0];\n k = 1;\n \n if(('a' <= a) && (a <= 'z'))\n a = a + 'A' - 'a';\n \n for(i = 1;str[i] != '\\0';i++)\n {\n \n if((str[i] == a) || (str[i] == a - 'A' + 'a')) \n k++;\n else\n {\n printf(\"(%c,%d)\",a,k);\n a = str[i];\n if(('a' <= a) && (a <= 'z'))\n a = a + 'A' - 'a';\n k = 1;\n }\n }\n printf(\"(%c,%d)\",a,k);\n\n}\n"} +{"label": "103", "index": "51107", "code": "int main()\n{\n\tint i,len,s,t=0;\n\tchar a[1000];\n\tgets(a);\n\tlen=strlen(a);\n\ts=a[0];\n\tfor(i=0;i'Z')\n\t\t\t\tprintf(\"(%c,%d)\",s-32,t);\n\t\t\telse\n\t\t\t\t\tprintf(\"(%c,%d)\",s,t);\n\t\t\ts=a[i];\n\t\t\tt=1;\n\t\t}\n\t\t\n\t}\n\tif(s>'Z')\n\t\t\t\tprintf(\"(%c,%d)\",s-32,t);\n\t\t\telse\n\t\t\t\t\tprintf(\"(%c,%d)\",s,t);\n\nreturn 0;\n\n}"} +{"label": "103", "index": "51108", "code": "int main ()\n{\n\tchar a[1001],b[1001];\n\tchar tmp[1000];\n\tint cnt[1000];\n\tint i,j,len;\n\tcin>>a;\n\tlen=strlen(a);\n\tmemset(tmp,'#',sizeof(tmp));\n\tmemset(cnt,0,sizeof(cnt));\n\tfor(i=0;i='A' && a[i]<='Z')\n\t\t\tb[i]=a[i];\n\t\telse\n\t\t\tb[i]=a[i]-'a'+'A';\n\t}\n\tb[len]='\\0';\n\tj=0;\n\tfor(i=0;i='a') str[i]=str[i]-'a'+'A'; \n }\n for(i=1;i<=strlen(str);i++)\n {\n if(str[i]==str[i-1]) a++;\n else {printf(\"(%c,%d)\",str[i-1],a);a=1;} \n }\n}"} +{"label": "103", "index": "51110", "code": "char change(char ch)\n{\n\tif (ch >= 'a' && ch <= 'z')\n\t\treturn ch - 'a' + 'A';\n\telse\n\t\treturn ch;\n}\n\nint main()\n{\n\tint i, num = 1, len;\n\tchar str[100];\n\tcin.getline(str, 100);\n\tlen = strlen(str);\n\tcout << \"(\" << change(str[0]) << \",\";\n\tfor(i = 1; i < len; i++)\n\t{\n\t\tif(change(str[i]) == change(str[i - 1]))\n\t\t\tnum++;\n\t\telse\n\t\t{\n\t\t\tcout << num << \")(\" << change(str[i]) << \",\";\n\t\t\tnum = 1;\n\t\t}\n\t}\n\tcout << num << \")\" << endl;\n\t/*if(change(str[len - 1]) == change(str[len - 2]))\n\t\tcout << num + 1 << \")\" << endl;\n\telse\n\t\tcout << num << \")(\" << change(str[len - 1]) << \",1)\" << endl;*/\n\treturn 0;\n}\n"} +{"label": "103", "index": "51111", "code": "main()\n{\n int i,l,d[1000],k=0;\n char a[1000],c[1000];\n scanf(\"%s\",a);\n l=strlen(a);\n for(i=0;i='a')\n a[i]=a[i]-'a'+'A';\n if(i==0)\n {\n c[k]=a[i];\n d[k]=1;\n }\n else\n {\n if(a[i]==a[i-1])\n d[k]++;\n if(a[i]!=a[i-1])\n {\n k++;\n d[k]=1;\n c[k]=a[i];\n }\n }\n }\n for(i=0;i<=k;i++)\n {\n printf(\"(%c,%d)\",c[i],d[i]);\n }\n getchar();\n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51112", "code": "main()\n{\n int i,j,n;\n int count;\n char a[1000];\n gets(a);\n n=strlen(a);\n for(i=0;i='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n \n \n \n count=0;\n for(j=0;j='a')\n printf(\"(%c,%d)\",str[i-1]-32,sum);\n else printf(\"(%c,%d)\",str[i-1],sum);\n sum=1;\n }\n\n}\n \n}\n"} +{"label": "103", "index": "51114", "code": "int main()\n{\n\tchar a[1000] , judge;\n\tint num=0;\n\twhile (cin.getline(a , 1000 , '\\n'))\n\t{\n\t num=0;\n\t int len;\n\t len=strlen(a);\n\t if (a[0]>=65 && a[0]<=90)\n\t judge=a[0];\n\t else judge=(char)(a[0]-32);\n\t if (len==1) cout<<\"(\"<=65 && a[i-1]<=90)\n\t\t cout<<\"(\"<=65 && a[i]<=90)\n\t judge=a[i];\n\t else judge=(char)(a[i]-32);\n\t\t }\n\t\t else if (a[i]==judge && i==len-1)\n\t\t {\n\t\t if (a[i]>=65 && a[i]<=90)\n\t\t cout<<\"(\"<=65 && a[i-1]<=90)\n\t\t cout<<\"(\"<=65 && a[i]<=90)\n\t\t cout<<\"(\"<>st;\n\tfor(int i=0;i='a'&&st[i]<='z')\n\t\t\tst[i]=st[i]+'A'-'a';\n\t}\n\tfor(int i=0;i> word ;\n int length = strlen(word );\n for (int i = 0 ; i< length ; i++)\n {\n if (word[i] >= 'a' && word[i] <= 'z' )\n word[i]+=('A' - 'a') ; // ???????\n }\n char temp = word [0] ;\n int counts = 1 ;\n for (int i = 1 ; i< length ; i++)\n {\n if (word[i] != temp )\n {\n printf(\"(%c,%d)\" ,temp ,counts );\n temp = word[i] ;\n counts = 1 ;\n }\n else\n {\n counts++;\n }\n }\n printf(\"(%c,%d)\" ,temp ,counts );\n return 0;\n}\n"} +{"label": "103", "index": "51117", "code": "int main(){\nchar a[1000];\nint c,i,c1,c2,d=1;\nscanf(\"%s\",a);\nc=strlen(a)-1;\nfor(i=0;i<=c;i++){\n c1=a[i];\n c2=a[i+1];\n if(c1>90)\n\t c1=c1-32;\n if(c2>90)\n\t c2=c2-32;\n if(c1==c2)\n\t d++;\n else{\n printf(\"(%c,%d)\",c1,d);\n d=1;\n }\n}\nreturn 0;}"} +{"label": "103", "index": "51118", "code": "int main()\n{\n\tint i, j=0, len=0, count[1000]={0};\n\tchar str[1000], copy[1000]={'a'};\n\tcin.getline(str,10001,'\\n');\n\tlen=strlen(str);\n\tfor(i=0;i='a'&&str[i]<='z')\n\t\t\tstr[i]=str[i]+'A'-'a';\n\tfor(i=0;i='a')&&(a[i]<='z'))\na[i]=a[i]+'A'-'a';\nelse\ncontinue;\n}\ni=0;\nint j=1;\nwhile(a[i]!='\\0'){\n\n\nif(a[i]==a[i+1])\n{\nj++;\ni++;\n}\n\n\nelse{\n\nk[0]=a[i];\nprintf(\"(%s,%d)\",k,j);\n\ni++;\nj=1;\n}\n\n}\n}\n\n"} +{"label": "103", "index": "51120", "code": "void main()\n{\n\tchar str[1000], letter[1000]={'\\0'};\n\tint i, j, times[1000];\n\tfor(i=0; i<1000; i++)\n\t\ttimes[i]=1;\n\tscanf(\"%s\",str);\n\tfor(i=0, j=0; str[i]!='\\0'; i++)\n\t{\n\t\tif(str[i]==str[i+1] || str[i]==str[i+1]+32 || str[i]==str[i+1]-32)\n\t\t{\n\t\t\ttimes[j]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(str[i]>=65 && str[i]<=90)\n\t\t\t\tletter[j]=str[i];\n\t\t\telse\n\t\t\t\tletter[j]=str[i]-32;\n\t\t\tj++;\n\t\t}\n\t}\n\tfor(j=0; letter[j]!='\\0'; j++)\n\t\tprintf(\"(%c,%d)\",letter[j],times[j]);\n\tprintf(\"\\n\");\n}"} +{"label": "103", "index": "51121", "code": "int main()\n{\n\tchar a[1000]={'\\0'};\n\tcin>>a;\n\tint i=0;\n\twhile (a[i]!='\\0')\n\t{\n\t\tif(a[i]>='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]-32;\n\t\ti++;\n\t}\n\ti=1;\n\tint times=1;\n\twhile (a[i]!='\\0')\n\t{\n\t\tif (a[i]==a[i-1])\n\t\ttimes++;\n\t\telse \n\t\t{\n\t\t\tcout<<'('<='a')\n return x-'a'+'A';\n else\n return x;\n }\nint main( )\n{\nint a,b,i;\nchar str[1000];\nscanf(\"%s\", str);\na=f(str[0]);\nb=1;\n\nfor(i = 1; i < strlen(str); i++)\n{\n if (a==f(str[i]))\n b++;\n else\n {\n printf(\"(%c,%d)\",a,b);\n a=f(str[i]);\n b=1;\n }\n }\nprintf(\"(%c,%d)\",a,b);\n\n\n}\n"} +{"label": "103", "index": "51125", "code": "int main()\n{\n char str[1000];\n int i,j,k,t,m;\n char c,x;\n for(i=0;;i++)\n {\n scanf(\"%c\",&str[i]);\n if(str[i]=='\\n')\n break;\n }\n x=str[0];\n m=x;\n if(m>=97)\n {\n\t m=m-32;\n\t x=m;\n }\n t=0;\nfor (j=0;j=97)\n {\n k=k-32;\n c=k;\n}\n if(c==x)\n {\n\t t=t+1;\n }\n if(c!=x)\n {\n\t printf(\"(%c,%d)\",x,t);\n\t t=1;\n\t x=c;\n }\n}\nprintf(\"(%c,%d)\",x,t);\nreturn 0;\n} "} +{"label": "103", "index": "51126", "code": "main()\n{\n char a[1000];\n scanf(\"%s\",a);\n int i=0,j=0,k=0,m;\n while(a[i]!='\\0')\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n i++;\n }\n while(a[j]!='\\0')\n {\n m=1;\n for(k=j;a[k]!='\\0';k++)\n {\n if(a[k]==a[k+1])\n m=m+1;\n else\n {printf(\"(%c,%d)\",a[k],m);\n j=k+1;\n break;}\n }\n \n }\n \n printf(\"\\n\"); \n \n}"} +{"label": "103", "index": "51127", "code": "\nchar UpperCase(char chr)\n{\n\tif (chr>='a'&&chr<='z')\n\t\treturn 'A'-'a'+chr;\n\telse return chr;\n}\nint main()\n{\n\tchar str[1000];\n\tint count=1;\n\tcin>>str;\n\tchar chr=str[0];\n\tfor (int i=1;str[i]!=0;i++)\n\t{\n\t\tif (UpperCase(chr)==UpperCase(str[i]))\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",UpperCase(chr),count);\n\t\t\tcount=1;\n\t\t}\n\n\t\tchr=str[i];\n\n\t}\n\tprintf(\"(%c,%d)\",UpperCase(chr),count);\n\n\treturn 0;\n}"} +{"label": "103", "index": "51128", "code": "/*\n * 2.cpp\n *\n * Created on: 2011-12-31\n * Author: 2011\n */\nint main(){\n\tchar a[1005]={0};\n\tint b[1005]={0},c[1005]={0},d[1005]={0};\n\tint i,j=0,temp,lenA;\n\tcin.getline(a,1000);\n\tlenA=strlen(a);\n\tfor(i=0;i=0&&(a[i]-'A')<=26)\n\t\t\tb[i]=a[i]-'A';\n\t\tif((a[i]-'a')>=0&&(a[i]-'a')<=26)\n\t\t\tb[i]=a[i]-'a';\n\t}\n\ttemp=b[0];\n\tc[0]=b[0];\n\td[0]=1;\n\tfor(i=1;i>str;\n\ttemp=*str;\n\tif(temp>'Z')\n\t\ttemp-=32;\n\tcount++;\n\twhile(*++p!=0)\n\t{\n\t\tif(*p==temp||*p-32==temp)\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",temp,count);\n\t\t\tcount=1;\n\t\t\ttemp=*p;\n\t\t\tif(temp>'Z')\n\t\t\t\ttemp-=32;\n\t\t}\n\t}\n\tprintf(\"(%c,%d)\",temp,count);\n\treturn 0;\n}"} +{"label": "103", "index": "51130", "code": "int main()\n{\n\tchar a[1100];\n\tgets(a);\n\tint i,j,k,count=0;\n\tchar b=0;\n\ti=0;\n\twhile(1)\n\t{\n\t\tif(i>strlen(a))break;\n\t\tif(a[i]<='z'&&a[i]>='a')a[i]+='A'-'a';\n\t\tif(b==0){b=a[i];count=1;i++;continue;}\n\t\tif(a[i]==b)\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\t\t\n\t\t\t\tcout<<\"(\"<='A'&&s[i]<='Z')\n\t\t{\n\t\t\tif(s[i+1]==s[i]||s[i+1]==s[i]+32)\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tprintf(\"(%c,%d)\",s[i],sum);\n\t\t\t sum=1;\n\t\t\t\t continue;\n\t\t\t }\n\t\t}\n\t\telse if(s[i]>='a'&&s[i]<='z')\n\t\t{\n\n if(s[i+1]==s[i]||s[i+1]==s[i]-32)\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tprintf(\"(%c,%d)\",s[i]-32,sum);\n\t\t\t sum=1;\n\t\t\t\t continue;\n\t\t\t }\n\t\t}\n\t}\n\t\treturn 0;\n}\n\t\n\n\n\n\n"} +{"label": "103", "index": "51132", "code": "\nmain()\n{\n char a[1010],m=0;\n int i,j;\n scanf(\"%s\",a);\n for(i=0;i<999;)\n {\n for(j=i;j<999;j++)\n {\n if(a[i]==a[j]||a[i]==a[j]+'A'-'a'||a[i]==a[j]-'A'+'a')\n m++;\n else\n break;}\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]+'A'-'a';\n printf(\"(%c,%d)\",a[i],m);\n i=i+m;\n m=0;\n if(a[i]==0)\n break;\n }\n \n }\n \n \n \n"} +{"label": "103", "index": "51133", "code": "int main()\n{\nchar a[1000];\n\tint e;\n\tint d[1000];\n\tfor(int i=0;i<1000;i++)\n\t{\n\t\tscanf(\"%c\",&a[i]);\n\t\tif(a[i]=='\\n')\n\t\t{\n\t\t\te=i;break;\n\t\t}\n\t}\n\tint k=0;\n\tfor(int l=0;l='a')\n\t\t\t\ta[j-1]+='A'-'a';\n\t\t\tprintf(\"(%c,%d)\",a[j-1],d[k]);\n\t\t\tk++;\n\t\t}\n\t}\n\tif(a[e-1]>='a')\n\t\t\t\ta[e-1]+='A'-'a';\n\t\t\tprintf(\"(%c,%d)\",a[e-1],d[k]);\n\treturn 0;\n}"} +{"label": "103", "index": "51134", "code": "/*\n * word zip.cpp\n * ??:??????\n * Created on: 2013-1-13\n * Author: ???\n */\n\n\n\nint main()\n{\n\tchar words[2000];\n\tcin.getline(words,sizeof(words));\n\tchar *p=NULL,*q=NULL;\n\tp=words;\n\tq=words;\n\twhile(1)\n\t{\n\t\tif(*q=='\\0')\n\t\t{\n\t\t\tif(*p>=97)\n\t\t\t *p=*p-32;\n\t\t\tcout<<\"(\"<<*p<<','<<(q-p)<<\")\";\n\t\t\tcout<=97)\n\t\t\t\t*p=*p-32;\n\t\t\tcout<<\"(\"<<*p<<','<<(q-p)<<\")\";\n\t\t\tp=q;}\n\t}\n return 0;\n}"} +{"label": "103", "index": "51135", "code": "void change(char *a)\n{\n\tchar *p = a;\n\twhile(*p != '\\0')\n\t{\n\t\tif(*p >= 'a' && *p <= 'z')\n\t\t\t*p += 'A' - 'a';\n\t\tp++;\n\t}\n\treturn;\n}\nint main()\n{\n\tchar str[1001];\n\tcin >> str;\n\tint count = 1;\n\tchange(str);\n\tchar *p = str;\n\twhile(*p != '\\0')\n\t{\n\t\tif(*p == *(p+1))\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",*p,count);\n\t\t\tcount = 1;\n\t\t}\n\t\tp++;\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51136", "code": "\nint main()\n{ \n\tchar a[1001],c;\n\tint sum=1,i;\n \n while(cin >> a)\n {\n if(strlen(a)==1)\n\t{ \n\t\tc=a[0];\n\t\tif( (c>='a')&&(c<='z') )\n\t\t\t\t\tc=c-'a'+'A';\n\t\t\t\t cout<< '('<0 )\n\t\t{\n\t\t\tif( (a[i-1]==a[i])||(a[i-1]==a[i]-'A'+'a')||(a[i-1]==a[i]-'a'+'A') )\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t\tif(i==strlen(a)-1)\n\t\t\t\t{\n\t\t\t\t\tc=a[i-1];\n\t\t\t\t if( (c>='a')&&(c<='z') )\n\t\t\t\t\tc=c-'a'+'A';\n\t\t\t\t cout<< '('<='a')&&(c<='z') )\n\t\t\t\t\tc=c-'a'+'A';\n\t\t\t\tcout<< '('<='a')&&(c<='z') )\n\t\t\t\t\tc=c-'a'+'A';\n\t\t\t\tcout<< '('<='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n \n b=a[0];\n count++;\n if(n==1)printf(\"(%c,%d)\",b,count);\n else \n for(j=1;j96)&&(a[0]<123))\na[0]=a[0]-32;\nif(1==strlen(a))\n{\nprintf(\"(%c,%d)\",a[0],n);\n}\nfor(i=1;i96)&&(a[i]<123))\na[i]=a[i]-32;\nif(a[i-1]==a[i])\n{\nn=n+1;\n}\nelse\n{\nprintf(\"(%c,%d)\",a[i-1],n);\nn=1;\n\n}\nif(i==(strlen(a)-1))\nprintf(\"(%c,%d)\",a[i],n);\n}\n\nreturn 0;\n}"} +{"label": "103", "index": "51139", "code": "int main()\n{\n int i,j,m,n,t,s,l,r,c[1000];\n char a[1000],b[1000];\n scanf(\"%s\",a);\n l=strlen(a);\n for(i=0;i='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0;i>c;\nl=strlen(c);\nfor(int i=0;i='a'&&c[i]<='z')\n\t\tc[i]=c[i]-32;\nfor(int i=0;i='a'&&a[i]<='z')a[i]+='A'-'a';\n\tmark=a[0];\n\tfor(i=0,flag=0;a[i]!=0;i++){\n\t\tif(a[i]!=mark){\n\t\t\tprintf(\"(%c,%d)\",mark,sum);\n\t\t\tsum=1;\n\t\t\tmark=a[i];\n\t\t}\n\t\telse sum++;\n\t}\n\tprintf(\"(%c,%d)\",mark,sum);\n}"} +{"label": "103", "index": "51142", "code": "main()\n{\n char s[1001],word[1001];\n int i,len,count,num[1001];\n scanf(\"%s\",s); \n len=strlen(s);\n for (i=0;i<1001;i++) num[i]=1;\n count=1;\n for (i=0;i<=len-1;i++) \n {\n if ((s[i]>='a') && (s[i]<='z')) s[i]=s[i]-'a'+'A';\n }\n for (i=0;i<=len-1;i++) \n {\n word[count]=s[i];\n if (s[i]==s[i+1]) num[count]++; \n else count++; \n } \n for (i=1;i<=count-1;i++)\n {\n printf(\"(%c,%d)\",word[i],num[i]);\n } \n}\n"} +{"label": "103", "index": "51143", "code": "int main()\n{\n\tchar s[1002];\n\tcin>>s;\n\tchar mark = 0;\n\tint count = 0;\n\tfor(int i = 0;i < strlen(s);i++)\n\t{\n\t\tchar c = s[i];\n\t\tif(c >= 'a')\n\t\t\tc -= 32;\n\t\tif(c == mark)\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(mark != 0)\n\t\t\t{\n\t\t\t\tcout<<\"(\"<='a'&&a[j]<='z')\n a[j]=a[j]-'a'+'A';\n }\n if (m==1)\n printf(\"(%c,1)\",a[0]);\n for(i=1;i<=m-1;i++)\n {\n if(a[i]==a[i-1]&&i!=m-1)\n n++;\n else if(a[i]!=a[i-1]&&i!=m-1)\n {\n printf(\"(%c,%d)\",a[i-1],n);\n n=1;\n }\n else if(a[i]!=a[i-1]&&i==m-1)\n printf(\"(%c,%d)(%c,1)\",a[i-1],n,a[i]);\n else if(a[i]==a[i-1]&&i==m-1)\n printf(\"(%c,%d)\",a[i],n+1);\n \n }\n }"} +{"label": "103", "index": "51145", "code": "/*\n * 1.cpp\n *\n * Created on: 2011-12-31\n * Author: 2011\n */\nint main()\n{\n\tchar a[1010],b,c;int i,j,k,n=0,length;\n\tcin>>a;\n\tlength=strlen(a);\n\tfor(i=0;i='a')\n\t\t{\n\t\t\tb=a[i-1]-('a'-'A');\n\t\t\tcout<<\"(\"<='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0;a[i]!='\\0';)\n {\n n=1;\n while(a[i+1]==a[i])\n {\n n++;\n i++;\n }\n printf(\"(%c,%d)\",a[i],n);\n i++;\n }\n} \n"} +{"label": "103", "index": "51147", "code": "int main ()\n{\n\tchar a[1000];\n\tint i, con = 1;\n\tcin >> a;\n\tif (a[0] >= 'a' && a[0] <= 'z')\n\t\ta[0] -= 32;\n\tfor (i = 1; a[i] != '\\0'; i++)\n\t{\n\t\tif (a[i] >= 'a' && a[i] <= 'z')\n\t\ta[i] -= 32;\n\t\tif (a[i] == a[i-1])\n\t\t\tcon++;\n\t\telse\n\t\t{\n\t\t\tcout << '(' << a[i-1] << ',' << con << ')';\n\t\t\tcon = 1;\n\t\t}\n\t}\n\tcout << '(' << a[i-1] << ',' << con << ')';\n\treturn 0;\n}"} +{"label": "103", "index": "51148", "code": "struct point\n{\n\tint x;\n\tchar y;\n};\nint main()\n{\n\tchar c[1100];\n\tint i,j,n,b=0;\n\tstruct point dian[27];\n\tgets(c);\n\tn=strlen(c);\n\tfor(i=0;i='a')\n\t\t\tc[i]=c[i]-32;\n\t}\n\tdian[0].y=c[0];\n\tj=0;\n\tdian[0].x=1;\n\tfor(i=1;i='a'&&*p<='z')\n\t\t\t*p=*p+'A'-'a';\n\t\tp++;\n\t}\n\tb[0].letter=*str;\n\tb[0].count=1;\n\tstr++;\n\tj=0;\n\twhile(*str)\n\t{\n\t\tif(*str==*(str-1))\n\t\t\tb[j].count++;\n\t\telse\n\t\t{\n\t\t\tj++;\n\t\t\tb[j].letter=*str;\n\t\t\tb[j].count=1;\n\t\t}\n\t\tstr++;\n\t}\n\tfor(i=0;i<=j;i++)\n\t\tprintf(\"(%c,%d)\",b[i].letter,b[i].count);\n\treturn 0;\n}"} +{"label": "103", "index": "51150", "code": "int main ()\n{\n\tchar str[1000] ;\n\tint count = 0 , i , j = 0 , a[1000] , k = 0 , m ;\n\tcin >> str ;\n\t//cout << \"(\" << (char)'A + '\n\tfor (i = 0 , j = 0 ; str[i] != '\\0' ; i ++ , j ++)\n\t{\n\t\tif (str[i] >= 97&&str[i] <= 122)\n\t\t{\n\t\t\ta[j] = str[i] - 'a' ;\n\t\t}\n\t if (str[i] >= 65&&str[i] <= 90)\n\t\t{\n\t\t\ta[j] = str[i] - 'A' ;\n\t\t}\n\t}\n\tcout << \"(\" << (char)('A' + a[0]) << \",\" ;\n\tfor (k = 1 ; k < j ; k ++)\n\t{\n\t\tif (a[k] == a[k - 1])\n\t\t\tcount ++ ;\n\t\telse\n\t\t{\n\t\t\tcout << count + 1 << \")\" ;\n\t\t\tcount = 0 ;\n\t\t\tcout << \"(\" <<(char) ('A' + a[k]) << \",\" ;\n\t\t}\n\t}\n\t//count = 0 ;\n\t//for (m = j ; a[m] != a[j] ; m --)\n\t//{\n\t//\tcount ++ ;\n\t//}\n\tcout << count + 1 << \")\" << endl ;\n\treturn 0 ;\n}\n"} +{"label": "103", "index": "51151", "code": "int main()\n{\n\tchar a[1000] , b ;\n\tint i , l = 0 , m;\n\tcin >> a;\n\tm = strlen(a);\nfor(i = 0 ; i < m ; i++)\n{\n\tif(a[i] == a[i + 1] || a[i] + 32 == a[i+1] || a[i] - 32 == a[i+1])\n\t{\n\t\tl++;\n\t\tcontinue;\n\t}\n\telse\n\t{\n\t\tif(a[i] - 'Z' > 0)\n\t\t{\n\t\t\tb = a[i] - 32 ;\n\t\t}\n\t\telse {b = a[i] ;}\n\tcout <<\"(\"<> str;\n\tif(str[0] >= 97 && str[0] <= 122)\n\t\ttemp = str[0] - 32;\n\telse\n\t\ttemp = str[0];\n\tfor(i = 1 ; i < strlen(str) ; i++)\n\t{\n\t\tif(str[i] == temp || str[i] - 32 == temp)\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\telse if(str[i] >= 65 && str[i] < 90)\n\t\t{\n\t\t\tcout << \"(\" << temp << \",\" << count << \")\";\n\t\t\ttemp = str[i];\n\t\t\tcount = 1;\n\t\t}\n\t\telse if(str[i] >= 97 && str[i] < 122)\n\t\t\t{\n\t\t\tcout << \"(\" << temp << \",\" << count << \")\";\n\t\t\ttemp = str[i] - 32;\n\t\t\tcount = 1;\n\t\t}\n\t}\n\tcout << \"(\" << temp << \",\" << count << \")\";\n\treturn 0;\n}"} +{"label": "103", "index": "51153", "code": "\n\nvoid main()\n{\n\tchar s[MAX];\n\tstruct code{\n\t\tchar c;\n\t\tint n;\n\t}t[MAX];\n\tint len,i,j,k;\n\n\tscanf(\"%s\",s);\n\tlen=strlen(s);\n\tfor(i=0;i=97&&s[i]<=122)\n\t\t\ts[i]-=32;\n\t}\n\t\n\tj=0;\n\tk=0;\n\twhile(j> str;\n\tint len;\n\tlen=strlen(str);\n\tint i,j,m=0,n=0;\n\tint sum=0;\n\tfor(i=0;i<1000;i++){\n\t\tif(str[n]<97){\n\t\t\tmem[m]=str[n];\n\t\t}\n\t\telse{\n\t\t\tmem[m]=str[n]-32;\n\t\t}\n\t\tfor(j=n;j='a'&&a[i]<='z')\n\t\t\t\ta[i]=a[i]-'a'+'A';\n\t\tprintf(\"(%c,%d)\",a[i],b[i]);\n\t\ti=j-1;\n\t}\n}"} +{"label": "103", "index": "51156", "code": "char str[1000];\nint main(int argc, char *argv[])\n{\n char current;\n int q=0;\n cin.getline(str,1000,'\\n');\n current=str[0]>=96?str[0]-'a'+'A':str[0];\n \n for(int i=0;i=96)str[i]-='a'-'A';\n if(str[i]==current){\n q++;\n }\n else{\n cout<<\"(\"<90)\n shuru[j]=shuru[j]-32;\n else; \n }\n if(i==1)\n {\n printf(\"(%c,1)\",shuru[k]) ; \n }\n else\n {\n \n while(k='a'&&str[i]<='z') str[i]-=32;\n\t}\n\tfor(i=0;i='a')\n s[i]=s[i]-'a'+'A';\n }\n for(i=1;i>a;\n\tj=strlen(a);\n\tfor(i=0;i96) a[i]-=32;\n\tfor(i=1;i<=j;i++)\n\t{\n\t\tif(a[i]==a[i-1]) n++;\n\t\telse\n\t\t{\n\t\t\tcout<<'('<='a'&&str[0]<='z')\n str[0]=str[0]+'A'-'a'; \n t=str[0];\n m=0;\n for(j=0;j='a'&&str[j]<='z')\n str[j]=str[j]+'A'-'a'; \n if (t==str[j])\n m=m+1;\n else \n {\n printf(\"(%c,%d)\",t,m);\n t=str[j];\n m=1;\n }\n }\n printf(\"(%c,%d)\",t,m);\n}\n"} +{"label": "103", "index": "51164", "code": "int main()\n{\n char str[1001];\n int i,j,k;\n char temp;\n int flag[200];\n for(i=0;i<=199;i++)\n\t flag[i]=0;\n gets(str);\n i=1;\n if(str[0]>='a'&&str[0]<='z')\n\t\t str[0]=str[0]-'a'+'A';\n temp=str[0];\n flag[str[0]]=1;\n while(str[i]!=0)\n {\n\t if(str[i]>='a'&&str[i]<='z')\n\t\t str[i]=str[i]-'a'+'A';\n\t if(flag[str[i]]==0)\n\t {\n cout<<'('<> input;\n\tint length=0;\n\tlength=strlen(input);\n\tint i, count=0, j;\n\tfor (i=0;i=97)\n\t\t\tinput[i]=input[i]-32;\n\t\tfor (j=i;j='A')\n y=ch;\n else\n y=ch+'A'-'a';\n return y;\n}\nmain()\n{\n int lenc,i,p=0,a[1000]={1};\n char b[1000],c[1000];\n gets(c);\n lenc=strlen(c);\n for(i=0;i>stri;\nint len,i=0,sum=0;\nlen=strlen(stri);\nwhile(i=0&&(s-'A')<=26)\ncout<<\"(\"<'Z')\n a[i]='A'-'a'+a[i];\n }\nfor(i=0;i 'Z')\n\t\t\ta[i] = a[i] - ('a' -'A');\n\t\tif (i == 0)\n\t\t\tcontinue;\n\t\tif (a[i] == a[i - 1])\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << a[i - 1] << \",\" << count << \")\";\n\t\t\tcount = 1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51171", "code": "int main()\n{\n\tchar s[1005];\n\tint i=0,j,k=1;\n\tgets(s);\n\twhile(s[i]!='\\0')\n\t{\n\t\tif(s[i]-'a'>=0&&s[i]-'z'<=0)\n\t\ts[i]=s[i]-'a'+'A';\n\t\ti++;\n\t}\n\ti=0; //i?????????? \n\twhile(s[i]!='\\0')\n\t{\n\t\tif((s[i])!=(s[i+1]))\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",s[i],k);\n\t\t\tk=1;\n\t\t}\n\t\telse k++;\n\t\ti++;\n\t}\n} "} +{"label": "103", "index": "51172", "code": "/*\n * 02.cpp\n *\n * Created on: 2011-12-31\n * Author: 2011\n */\nint main()\n{\n\tchar a[1000];\n\tcin>>a;\n\tint k=0,j,number=0;\n\tint len=strlen(a);\n\tint i=0;\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t}\n\tfor(i=0;i>a;\n\tint len,i;\n\tint sum[1005],t=0;\n\tmemset(sum,0,sizeof(sum));\n\tlen=strlen(a);\n\tfor(i=0;i='a')\n\t\t\tb[t]=a[i]-32;\n\t\telse\n\t\t{\n\t\tb[t]=a[i];\n\t\t}\n\t\twhile(a[i]==b[t]||a[i]==b[t]+32||a[i]==b[t]-32)\n\t\t{\n\t\t\ti++;\n\t\t\tsum[t]++;\n\t\t}\n\t\tt++;i--;\n\t}\n\tfor(i=0;i=97)&&(str[i]<=122)) \n str[i]=str[i]-32; \n }\n for(n=0;str[n]!='\\0';n++)\n {\n \n if(str[n]==str[n+1])\n t=t+1;\n else\n {\n printf(\"(%c,%d)\",str[n],t);\n t=1;\n }\n }\n \n}\n\n"} +{"label": "103", "index": "51175", "code": "\n\nint main()\n{\n\tchar str[1001];\n\tint i, len, count;\n\tcin >> str;\n\tlen = strlen(str);\n\tfor (i = 0; i < len; i++)\n\t{\n\t\tif (str[i] >= 'a' && str[i] <= 'z')\n\t\t{\n\t\t\tstr[i] -= 32;\n\t\t}\n\t}\n\ti = 0;\n\twhile (i < len)\n\t{\n\t\tcount = 1;\n\t\twhile (str[i+1] == str[i] && i < len)\n\t\t{\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\tcout << \"(\" << str[i] << \",\" << count << \")\";\n\t\ti++;\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51176", "code": "//??(12-5) ?????? ??? 20121231\n\nchar s[1010];\n\nint main()\n{\n scanf(\"%s\",s);\n int i=0,d=1;\n\n while(s[i]!='\\0')\n {\n if(s[i]>='a'&&s[i]<='z') s[i]-=32;\n if(s[i+1]!=s[i]&&s[i+1]!=s[i]+32)\n {\n printf(\"(%c,%d)\",s[i],d);\n d=1;\n i++;\n continue;\n }\n d++,i++;\n }\n return 0;\n}\n"} +{"label": "103", "index": "51177", "code": "int main()\n{\n char a[1000];\n gets(a);\n int i=0;\n int l,m;\n l=strlen(a);\n while(i='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n //if(m==l-1)\n //k++;\n printf(\"(%c,%d)\",a[i],k);\n i=m;\n /*for(m=i+1;m='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n //if(m==l-1)\n //k++;\n printf(\"(%c,%d)\",a[i],k);\n i=m;\n //q++;\n break;\n }\n \n }*/\n }\ngetchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();getchar();\n}\n"} +{"label": "103", "index": "51178", "code": "\nmain()\n{\n\tchar str[MAX];\n\tchar c;\n\tint i,num,flg;\n\tscanf(\"%s\",str);\n\tflg=0;\n\tfor (i=0;;i++)\n\t{\n\t\n\t\tif ((i!=0) && (str[i]==str[i-1] || str[i]==str[i-1]-32 || str[i]==str[i-1]+32))\n\t\t{\n\t\t\t\tnum=num+1;\t\n\t\t}\n\t\telse if (str[i]>='A' && str[i]<='Z') \n\t\t\t{\n\t\t\t\tif (flg)\n\t\t\t\t\tprintf(\"(%c,%d)\",c,num);\n\t\t\t\tflg=1;\n\t\t\t\tc=str[i];\n\t\t\t\tnum=1;\t\n\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (flg)\n\t\t\t\t\t\tprintf(\"(%c,%d)\",c,num);\n\t\t\t\t\tflg=1;\n\t\t\t\t\tc=str[i]-32;\n\t\t\t\t\tnum=1;\t\n\t\t\t\t}\n\t\tif (str[i]=='\\0')\n\t\t\tbreak;\t\n\t}\n} "} +{"label": "103", "index": "51179", "code": "/* Name : ??????\n * Version : 1.0 \n * Date : 2013-01-11 \n * New : \n * Description : \n * State : Design\n */\nint main()\n{\n char Ch[1001]={0},ChO[1001]={0};\n int iChO[1001]={0},k=0;\n cin>>Ch;\n if (Ch[0]>95) Ch[0]-=32;\n ChO[0]=Ch[0],iChO[k]=1;\n for (int i=1;i<1001;i++)\n {\n if (Ch[i]>95) Ch[i]-=32;\n if (Ch[i]==Ch[i-1])\n {\n iChO[k]++;\n }\n else\n {\n k++;\n ChO[k]=Ch[i];\n iChO[k]=1;\n }\n }\n for (int i=0;ChO[i]!=0;i++)\n {\n cout<<'('<'Z')\n {\n a[i]=a[i]-('a'-'A');\n }\n i=i+1;\n }\n while(a[i]!='\\0');\n i=0;\n do\n {\n if(a[i]==a[i+1])\n {\n j=j+1;\n }\n else\n {\n printf(\"(%c,%d)\",a[i],j);\n j=1;\n }\n i=i+1;\n }\n while(i<1001&&a[i]!='\\0');\n return 0;\n}\n"} +{"label": "103", "index": "51181", "code": "int main(){\n\tint i=0,j=0,k=0,l,f[1002]={0},g;\n\tchar s[1002],a[1002];\n\tgets(s);\n\tl=strlen(s);\n\tif(l==1){\n\t\tif(s[0]>=65&&s[0]<=90)\n\t\t\tprintf(\"(%c,%d)\",s[0],1);\n\t\telse\n\t\t\tprintf(\"(%c,%d)\",s[0]-32,1);\n\t}\n\telse{\n\t\tfor(i=1;i<=l;i++){\n\t\tk=i-1;\n\t\tf[k]=1;\n\t\tfor(;i=65&&s[k]<=90)\n\t\t\tprintf(\"(%c,%d)\",s[k],f[k]);\n\t\telse\n\t\t\tprintf(\"(%c,%d)\",s[k]-32,f[k]);\n\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51182", "code": "int main()\n{\n\tchar a[1000]={0};\n\tint len, i, sum=1;\n\tcin >> a;\n\tlen=strlen(a);\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]+('A'-'a');\n\tfor(i=1;i<=len;i++) //????<=??<\n\t{\n\t\tif(a[i]==a[i-1])\n\t\t\tsum++;\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << a[i-1] << \",\" << sum << \")\";\n\t\t\tsum = 1;\n\t\t}\n\t}\n\treturn 0;\n}\n\n\n\n\n"} +{"label": "103", "index": "51183", "code": "int main()\n{\n\tchar string[1500],string2[2];\n\tint i=0,j=0,m=0,n=0,length=0,flag=0;\n\tint a[1500];\n\tgets( string );\n\tlength=strlen( string );\n\tfor ( i=0;i=97 && string[i]<=122 )\n\t\t\tstring[i]=string[i]-32;\n\t}\n\t\n\tfor ( i=1;i> a;\n\tint i = 1, count = 1;\n\twhile(a[i] != '\\0')\n\t{\n\t\tif(a[i] == a[i-1] || a[i] == a[i-1] + 32 || a[i] == a[i-1] - 32)\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tif(a[i-1] <= 'Z')\n\t\t\t{\n\t\t\t\tcout<<'('<='a'&&x[i]<='z')\n z[i]=x[i]-'a'+'A';\n else\n z[i]=x[i];\n }\n for (i=0;z[i]!='\\0';i++)\n {\n if (z[i]==z[i+1])\n n++;\n else\n {printf(\"(%c,%d)\",z[i],n);\n n=1;}\n }\n getchar();\n getchar();\n getchar();\n}"} +{"label": "103", "index": "51186", "code": "int main()\n{\nchar str[1000];\nint i,j,n;\nscanf(\"%s\",str); \n\nfor(i=0;str[i]!='\\0';i++)\n {\n if(str[i]>='a')\n str[i]+='A'-'a';\n else;\n }\n \n\nn=1;\nfor(i=0;str[i]!='\\0';i++)\n {\n\n if(str[i]==str[i+1])\n n++;\n else\n {printf(\"(%c,%d)\",str[i],n);\n n=1;}\n \n \n } \n return 0;\n} \n"} +{"label": "103", "index": "51187", "code": "\n\n\nchar l(char c);\n\nint main()\n{\n char s[1001];\n cin>>s;\n char c=l(s[0]);\n int m=1;\n for (int i=1;i<=strlen(s);i++)\n {\n if (c==l(s[i]))\n m++;\n else\n {cout<<'('<='a'&&c<='z')\n return c+'A'-'a';\n else\n return c;\n}"} +{"label": "103", "index": "51188", "code": "main()\n{ int j,n;\n char str1[1001],str2[1001];\n gets(str1);\n for(j=0;;j++) \n {if(str1[j]=='\\0')\n { str2[j]='\\0'; break;}\n if(str1[j]>='a'&&str1[j]<='z')\n str2[j]=str1[j]-'a'+'A';\n else str2[j]=str1[j];}\n\n for(j=0;;j=j+n)\n {if(str1[j]=='\\0')\n { str2[j]='\\0'; break;}\n \n for(n=0;;n++)\n if(str2[j]!=str2[j+n])\n {printf(\"(%c,%d)\",str2[j],n);\n break;}}\n\n \n}\n"} +{"label": "103", "index": "51189", "code": "int main()\n{\n\tchar s[1000]={\" \"};\n\tint n,i=0,j,p=1;\n\tgets(s);\n\tn=strlen(s);\n\twhile(i='a'&&s[i]<='z')\n\t\t\t\ts[i]=s[i]-32;\n\t\t\t\n\t\t\t\n\t\t\tprintf(\"(%c,%d)\",s[i],p);\n\t\t\ti++;\n\t\t\tp=1;\n\t\t}\n\t}return 0;\n}\n\n\n"} +{"label": "103", "index": "51190", "code": "int main()\n{\n char a[1001];\n gets(a);\n int t=1;\n int l=strlen(a);\n for(int j=1;j<=l;j++)\n {\n if(a[j]!=a[j-1] && a[j]-a[j-1]!= 'A'-'a' && a[j]-a[j-1]!= 'a'-'A')\n {\n if(a[j-1]>='a')\n a[j-1]=a[j-1]+'Z'-'z';\n printf(\"(%c,%d)\",a[j-1],t);\n t=1;\n }\n else\n t++;\n }\n}"} +{"label": "103", "index": "51191", "code": "main()\n{\n char c;\n char x;\n int n=0;\n c=getchar();\n n=1;\n while(1)\n {\n if(c>='a'&&c<='z') c=c-32;\n x=getchar();\n if(x>='a'&&x<='z') x=x-32;\n if(x=='\\n')\n {\n printf(\"(%c,%d)\",c,n);\n break;\n }\n if(x==c) n++; \n else\n {\n printf(\"(%c,%d)\",c,n);\n c=x;\n n=1;\n }\n }\n}\n"} +{"label": "103", "index": "51192", "code": "int main()\n{\n\tchar str[1005];\n\tchar temp;\n\tint length=1;\n\tint i=1;\n\tcin>>str;\n\tint n;\n\tn=strlen(str);\n\tfor(i=1;i='a') s[0]+='A'-'a';\n for (i=1;s[i];i++)\n {\n if (s[i]>='a') s[i]+='A'-'a';\n if (s[i]==s[i-1]) n++;\n else\n {\n printf(\"(%c,%d)\",s[i-1],n);\n n=1;\n }\n }\n printf(\"(%c,%d)\",s[i-1],n);\n}"} +{"label": "103", "index": "51194", "code": "char before[1050]={0},after[1050]={0}; //??????????? \nint record[1050]={0}; //?????????????? \n\nint main()\n{int i,j,k;\n cin>>before;\n i=j=0; \n while(before[i]!='\\0') //????????? \n {after[j]=before[i]; //???? \n for(;(before[i]==before[i+1])||(before[i]==before[i+1]+'A'-'a')||(before[i]==before[i+1]-'A'+'a');i++) record[j]++; //????????? \n record[j]++;\n i++; \n j++; //??????????? \n } \n for(i=0;after[i]!='\\0';i++) //????\n {if(after[i]>='a'&&after[i]<='z') after[i]=after[i]-'a'+'A'; //?????\n cout<<'('<=97)\nstr[0]-=32;\nfor(i=1;str[i];i++)\n{ \n if(str[i]>=97)\n str[i]-=32;\n if(str[i]==str[i-1])\n {time++;}\n else\n {printf(\"(%c,%d)\",str[i-1],time);time=1;}\n}\nprintf(\"(%c,%d)\",str[i-1],time);\n\nreturn 0;\n} "} +{"label": "103", "index": "51196", "code": "char da[30]={\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"};\nchar xiao[30]={\"abcdefghijklmnopqrstuvwxyz\"};\nchar a[1000];\nint num(char p)\n{\n\tint m;\n\tfor(m = 0;m < 26;m++)\n\t\tif(p == da[m] || p==xiao[m])\n\t\t\treturn m;\n\t\treturn 1000;\n}\nint main()\n{\n\t\n\tcin >> a;\n\tint i,j,len=1;\n\tfor(i = 0; a[i] != '\\0' ;i++)\n\t{\n\t\tfor(j = i+1;;j++)\n\t\t{\n\t\t\tif(num(a[j])==num(a[i]))\n\t\t\t\tlen++;\n\t\t\telse\n\t\t\t\tbreak;\n\n\t\t}\n\t\tcout << \"(\" << da[num(a[i])] << \",\"<90)?seq[0]-32:seq[0];\n\tlet[0].time++;\n\tfor(i=1;i90)\n\t\t\tt-=32;\n if(t==seq[i-1]||t==seq[i-1]-32)\n\t let[k].time++;\n\t\telse\n\t\t{\n\t\t\tk++;\n\t\t\tlet[k].name=t;\n\t let[k].time++;\n\t\t}\n\n\t}\n for(i=0;i<=k;i++)\n\t printf(\"(%c,%d)\",let[i].name,let[i].time);\n\t\n}"} +{"label": "103", "index": "51198", "code": "int main()\n{\n char a[1100];\n cin.getline(a,1100);\n int i,j=0,k=0,l;\n l=strlen(a);\n int b[1100]={0};\n char c[1100]={0};\n c[0]=a[0];\n char t=a[0];\n b[0]=1;\n for(i=1;i96)\n {\n int m=c[i]-'a';\n char t=m+'A';\n cout << t << \",\";\n }\n else\n {\n cout << c[i] << \",\";\n }\n cout << b[i] << \")\";\n }\n cin.get();cin.get();cin.get();\n return 0;\n}\n"} +{"label": "103", "index": "51199", "code": "int main()\n{\n\tchar a[1000];\n\tint n = 1, i, j;\n\tcin >> a;\n\tfor (i = 0; a[i] != '\\0'; i++)\n\t{\n\t\tif ((a[i] - 'a') == (a[i+1] - 'a') ||(a[i] - 'a') == (a[i+1] - 'A')||(a[i] - 'A') == (a[i+1] - 'a')||(a[i] - 'A') == (a[i+1] - 'A'))\n\t\t\tn++;\n\t\telse \n\t\t{\n\t\t\tif((a[i] >= 'a') && (a[i] <= 'z'))\n\t\t\tcout << \"(\"<< (char)(a[i] - 'a'+'A')<< \",\" << n << \")\";\n\t\t\telse \n\t\t\t\tcout << \"(\"<< a[i]<< \",\" << n << \")\";\n\t\t\tn = 1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51200", "code": "int main(){\n\tint i,sum,l;\n\tchar s[1000];\n\tcin>>s;\n\tl=strlen(s);\n\tfor(i=0;i='a'&&s[i]<='z')s[i]-=32;\n\t}\n\tfor(i=0;i>ch;\n\tfor(int i=0;ch[i]!='\\0';i++)\n\t{\n\t\tif(ch[i]>='a'&&ch[i]<='z')\n\t\t\tch[i]-=32;\n\t}\n\tfor(j=0,i=0;;)\n\t{\n\t\tif(ch[j]=='\\0')\n\t\t{\n\t\t\tcout<<\"(\"<96){input[i]-=32;}}\n\tfor(i=0;i> str;\n\ti = j = 0;\n\tdo{\n\t\tsum = 0;\n\t\tdo{\n\t\t\tj++;\n\t\t sum++;\n\t\t}while(str[i] - 'A' == str[j] - 'A' \n\t\t\t|| str[i] - 'A' == str[j] - 'a'\n\t\t\t|| str[i] - 'a' == str[j] - 'A');\n\t\tif (str[i] >= 'a' && str[i] <= 'z')\n\t\t\tmark = str[i] - 'a' + 'A';\n\t\telse\n\t\t\tmark = str[i];\n\t\tcout << \"(\" << mark << \",\" << sum << \")\";\n\t\ti = j;\n\t}while(str[i] != '\\0');\n\treturn 0;\n}"} +{"label": "103", "index": "51205", "code": "int main()\n{\n\tchar a[1000], temp;\n\tint i, n, alen, count = 0;\n\tcin.getline(a, 1000);\n\talen = strlen(a);\n\tfor(i = 0 ; i < alen ; i++)\n\t{\n\t\tif(a[i] >= 97 && a[i] <= 122)\n\t\t{\n\t\t\ta[i] -= 32;\n\t\t}\n\t}\n\ttemp = a[0];\n\tfor(i = 0 ; i < alen ; i++)\n\t{\n\t\tdo\n\t\t{\n\t\t\tif(a[i] == temp)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(a[i] != temp)\n\t\t\t{\n\t\t\t\tcout << \"(\" << temp << \",\" << count << \")\";\n\t\t\t\ttemp = a[i];\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t\ti++;\n\t\t}while(a[i] != '\\0');\n\t\tcout << \"(\" << temp << \",\" << count << \")\";\n\t}\n\treturn 0;\n\n}\n"} +{"label": "103", "index": "51206", "code": "int main()\n{\n\tchar str[1000];\n\tcin>>str;\n\tchar flag;\n\tint count=0;\n\tfor(int i=0;str[i]!='\\0';i++)\n\t{\n\t\tif(str[i]>='a')\n\t\t\tstr[i]-='a'-'A';\n\t}\n\tflag=str[0];\n\tfor(int i=0;str[i]!='\\0';i++)\n\t{\n\t\tif(str[i]!=flag)\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",flag,count);\n\t\t\tflag=str[i];\n\t\t\tcount=1;\n\t\t}\n\t\telse\n\t\t\tcount++;\n\t}\n\t\tprintf(\"(%c,%d)\",flag,count);\n\treturn 0;\n}"} +{"label": "103", "index": "51207", "code": "int main()\n{\n char str[1000];\n int ji[1000];\n int i,j,n;\n cin>>str;\n for(i=0;i<1000;i++)\n {ji[i]=1;}\n n=strlen(str);\n for(i=0;i='a')\n {str[i]=str[i]-'a'+'A';}\n }\n for(i=0;i='a')string[i]=string[i]+'A'-'a';\n else ;\n if(string[i]==string[i+1]||string[i]==string[i+1]+'A'-'a')m=m+1;\n else\n {\n printf(\"(%c,%d)\",string[i],m);\n m=1;\n }\n }\n return 0;\n} "} +{"label": "103", "index": "51209", "code": "int main()\n{\n\t//cout<<'Z'-0<90)\n\t\t\t{\n\t\t\t\tb[j]=b[j]-32;\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\t//cout<> a;\n int i, count = 0;\n int k;\n k = strlen(a);\n char b = toupper(a[0]);\n for(i = 0; i < k; i++)\n {\n if(a[i] == b || toupper(a[i]) == b)\n sum++;\n else\n {\n cout << \"(\" << b << \",\" << sum << \")\";\n sum = 1;\n b = toupper(a[i]); \n } \n }\n cout << \"(\" << b << \",\" << sum << \")\"; \n return 0;\n}\n\n \n"} +{"label": "103", "index": "51211", "code": "int main()\n{ \n char a[1100];\n scanf(\"%s\",a);\n int i=1,j=0;\n int len=strlen(a);\n int count=1;\n while(j='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n k=1;\n for(i=0;i>a;\n\tint i = 0;\n\tint count = 1;\n\twhile( a[i] != '\\0' )\n\t{\n\t\tif(a[i+1] == a[i] || a[i+1] - 'a' == a[i] - 'A' || a[i+1] - 'A' == a[i] - 'a' )\t\n\t\t{\n\t\t\tcount ++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(a[i] >= 'a' && a[i] <= 'z')\n\t\t\t{\n\t\t\t\tcout<<'(';\n\t\t\t\tcout<<(char)('A' + a[i] - 'a')<<',';\n\t\t\t\tcout<> text;\n\tint index[40] = {0}, count[40] = {0}, temp = 1, len, sort = 0;\n\tlen = strlen(text);\n\tint i,j,k;\n\n\tfor (i = 1; i < len; i++)\n\t{\n\t\tif (toupper(text[i]) != toupper(text[i-1]))\n\t\t{\n\t\t\tcount[sort] = temp;\n\t\t\tsort++;\n\t\t\tindex[sort] = i;\n\t\t\ttemp = 1;\n\t\t}\n\t\telse\n\t\t\ttemp ++;\n\t}\n\tcount[sort] = temp;\n\n\tfor (i = 0; i <= sort; i++)\n\t{\n\t\tcout << \"(\" << (char)toupper (text[index[i]]) << \",\" << count[i] << \")\";\n\t}\n\tcout << endl;\n\n\treturn 0;\n}"} +{"label": "103", "index": "51216", "code": "main()\n{\n char l[1000];\n int i,count=1;\n scanf(\"%s\",l);\n for(i=0;l[i]!='\\0';i++)\n {\n if((l[i+1]==l[i])||(l[i+1]==l[i]+32)||(l[i+1]==l[i]-32))\n count=count+1;\n else\n {\n if(l[i]>='a'&&l[i]<='z')\n {\n printf(\"(%c,%d)\",l[i]-32,count);\n count=1;\n } \n else\n {\n printf(\"(%c,%d)\",l[i],count);\n count=1;\n }\n }\n }\n return 0;\n}\n \n "} +{"label": "103", "index": "51217", "code": "\nmain()\n{\n char a[1000];\n int length,i,n;\n gets(a);\n length=strlen(a);\n for(i=0;i='a')&&(a[i]<='z'))\n a[i]=a[i]-DLTA;\n else\n ;\n }\n\n //make all letter capital\n n=1;\n for(i=0;i=0)\n c[i]='A'+c[i]-'a';\n cout<<'('<>s;\n m=strlen(s);\n i=0;\n while (i='a'&&x<='z') x=x-'a'+'A';\n return(x);\n}"} +{"label": "103", "index": "51221", "code": "\n\nint main()\n{\n\tchar ch[1002]={'\\0'};\n\tcin>>ch;\n\tint len;\n\tlen=strlen(ch);\n\tint i=0,num=0;\n\tchar temp=ch[0];\n\t\n\n\t\nfor(i=0;i>a;\n for(i=0;i='a'&&a[i]<='z')\n a[i]=a[i]-32;\n for(i=0;i='a'&&a[i]<='z')\n\t\t\t{\n\t\t\t\tt=a[i]-32;\n\t\t\t\tcout<<\"(\"<='a')&&(a[w]<='z'))\n a[w]=a[w]-'a'+'A';\n else a[w]=a[w];}\nint j=0;\nc[0]=a[0];\nfor(int i=0;a[i]!='\\0';i++)\n{\nif(a[i]==a[i+1])\n{\nb[j]=b[j]+1;}\nelse {c[j]=a[i];\nj++;\nb[j]=1;\n}}\nfor(int k=0;c[k]!='\\0';k++)\nprintf(\"(%c,%d)\",c[k],b[k]);}\n"} +{"label": "103", "index": "51225", "code": "\nmain()\n{\n int i,a[1000],x;\n char s[1001];\n scanf(\"%s\",s);\n x=strlen(s);\n for(i=0;i<1000;i++)\n a[i]=1;\n for(i=1;i<=x;i++)\n {\n if((s[i]-'A')==(s[i-1]-'A'-32))\n a[s[i]-'A']++;\n else if((s[i]-'A'-32)==(s[i-1]-'A'))\n a[s[i]-'A'-32]++;\n else if((s[i]-'0')==(s[i-1]-'0'))\n {\n if((s[i]-'0')<43)\n a[s[i]-'A']++;\n else \n a[s[i]-'A'-32]++;\n }\n \n else\n {\n if((s[i-1]-'0')<43)\n {\n printf(\"(%c,%d)\",s[i-1],a[s[i-1]-'A']);\n a[s[i-1]-'A']=1;\n }\n else\n {\n printf(\"(%c,%d)\",s[i-1]-'A'-32+'A',a[s[i-1]-'A'-32]);\n a[s[i-1]-'A'-32]=1;\n }\n }\n }\n \n \n }"} +{"label": "103", "index": "51226", "code": "main()\n{\n char a[1000],c;\n int i,j,t;\n scanf(\"%s\",a);\n for(i=0,t=0;a[i]!='\\0';i++,t++)\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]=a[i]+'A'-'a';\n }\n if(t==1)\n {j=1;\n printf(\"(%c,%d)\",a[0],j);}\n else\n {\n for(i=0,j=1;i> s1;\n\tl = strlen(s1);\n\tfor(i = 0;i < l;i++)\n\t{\n\t\tif(s1[i] > 90)\n\t\t\ts2[i] = s1[i] - 32;\n\t\telse\n\t\t\ts2[i] = s1[i];\n\t}\n\tif(l == 1)\n\t{\n\t\tcout << '(' << s2[0] << ',' << num << ')';\n\t\treturn 0;\n\t}\n\tfor(i = 1;i < l;i++)\n\t{\n\t\tif(s2[i] != s2[i - 1]&&i != l - 1)\n\t\t{\n\t\t\tcout << '(' << s2[i - 1] << ',' << num << ')';\n\t\t\tnum = 1;\n\t\t}\n\t\tif(s2[i] != s2[i - 1]&&i == l - 1)\n\t\t{\n\t\t\tcout << '(' << s2[i - 1] << ',' << num << ')';\n\t\t\tnum = 1;\n\t\t\tcout << '(' << s2[i] << ',' << num << ')';\n\t\t}\n\t\tif(s2[i] == s2[i - 1]&&i != l - 1)\n\t\t\tnum++;\n\t\tif(s2[i] == s2[i - 1]&&i == l - 1)\n\t\t{\n\t\t\tnum++;\n\t\t\tcout << '(' << s2[i - 1] << ',' << num << ')';\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51228", "code": "main()\n{\n char s[1000];\n int i,l,c;\n scanf(\"%s\",&s);\n l=strlen(s);\n c=0;\n for(i=0;i<=l-1;i++)\n {\n if((s[i]>='a')&&(s[i]<='z'))\n s[i]=s[i]-'a'+'A';\n } \n for(i=0;i<=l-1;i++)\n { if((s[i]==s[i+1])&&(i=97) c=c-32;\n\tdo{\n\t\tscanf(\"%c\",&x);\n\t\tif (x==c||x-c==32) {\n\t\t\tnow++;\n\t\t}\n\t\telse {\n\t\t\tprintf(\"(%c,%d)\",c,now);\n\t\t\tnow=1;\n\t\t\tc=x;\n\t\t\tif (c>=97) c=c-32;\n\t\t}\n\t}\n\twhile (c!='\\n');\nreturn 0;\n}\n\n"} +{"label": "103", "index": "51230", "code": "main()\n{\n char c[1024];\n int i,j,n,d;\n scanf(\"%s\",c);\n d='A'-'a';\n for(i=0;i<=1024;i+=n)\n {\n n=0;\n if('a'<=c[i]&&c[i]<='z')\n {\n c[i]+=d;\n for(j=i;j<=1024;j++)\n {\n if(c[j]==c[i]||c[j]==c[i]-d) n++;\n else break;\n }\n printf(\"(%c,%d)\",c[i],n); \n }\n else if('A'<=c[i]&&c[i]<='Z')\n {\n for(j=i;j<=1024;j++)\n {\n if(c[j]==c[i]||c[j]==c[i]-d) n++;\n else break;\n }\n printf(\"(%c,%d)\",c[i],n); \n }\n else break;\n }\n}\n"} +{"label": "103", "index": "51231", "code": "main()\n{ int a,b,c,d;\n c=1;\n char str1[999],str2[999];\n scanf(\"%s\",str1);\n a=strlen(str1);\n for(d=0;d<=a-1;d++)\n {\n if(str1[d]>='a' && str1[d]<='z')\n str2[d]=str1[d]-'a'+'A';\n else\n str2[d]=str1[d];\n }\n for (b=0;b<=a-1;b++)\n { \n if(str2[b]==str2[b+1])\n c++;\n else\n {\n printf(\"(%c,%d)\",str2[b],c);\n c=1;\n }\n }\n\n}\n"} +{"label": "103", "index": "51232", "code": "int main()\n{\n char s[1000];\n scanf(\"%s\",s);\n int l=strlen(s);\n int a=s[0],n=1;\n for(int i=1;i'Z')\n a=a-'a'+'A';\n printf(\"(%c,%d)\",a,n);\n a=s[i];\n n=1;\n }\n }\n if(a>'Z')\n a=a-'a'+'A';\n printf(\"(%c,%d)\",a,n);\n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51233", "code": "int main()\n{\n\tchar a[1000];\n\tint i,n=0; \n\tscanf(\"%s\",a); //??????????????????? \n\tfor(i=0;i<1000;i++)\n\t{\n\t\tif(a[i]!=0)\n\t\t\tn++;\n\t\telse\n\t\t\tbreak;\n\t}\n\t\n\tint b[1000]={0},j,k=0,m;\n\tfor(j=0;j='a'&&a[k]<='z')\n\t\t\t\tm=a[k]-'a'+'A';\n\t\t\telse\n\t\t\t\tm=a[k];\n\t\t\tprintf(\"(%c,%d)\",m,b[k]);\n\t\t\tk=j+1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51234", "code": "\nint main()\n{\n\tchar input[1005], reserve[1005];\n\tint i, j = 0, num[1005] = {0}, flag = 0;\n\tcin >> input;\n\tif( input[0] >= 'a')\n\t{\n\t\tinput[0] -= ('a' - 'A');\n\t}\n\treserve[0] = input[0];\n\tnum[0] = 1;\n\tfor( i = 1; input[i]!='\\0'; i++ )\n\t{\n\t\tif( input[i] >= 'a')\n\t\t{\n\t\t\tinput[i] -= ('a' - 'A');\n\t\t}\n\t\tif( input[i] == input[i - 1] )\n\t\t{\n\t\t\tnum[j]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tj ++;\n\t\t\treserve[j] = input[i];\n\t\t\tnum[j]++;\n\t\t}\n\t}\n\treserve[j +1] = '\\0';\n\tfor( i = 0; reserve[i] != '\\0'; i++ )\n\t{\n\t\tif( flag == 0 )\n\t\t{\n\t\t\tcout << \"(\" << reserve[i] << \",\" << num[i] << \")\";\n\t\t\tflag = 1;\n\t\t}\n\t\telse\n\t\t\tcout << \"(\" << reserve[i] << \",\" << num[i] << \")\";\n\t}\n\n\treturn 0;\n}"} +{"label": "103", "index": "51235", "code": "int main()\n{\n int i,j,k,n;\n char a[1100],h;\n scanf(\"%s\",a);\n for(i=0;a[i]!='\\0';)\n {\n for(n=0,h=a[i],j=i;a[j]==h||(a[j]-h)==('A'-'a')||(h-a[j])==('A'-'a');j++)\n n=n+1;\n if(h<'Z')\n printf(\"(%c,%d)\",h,n);\n else\n printf(\"(%c,%d)\",(h-('a'-'A')),n);\n i=j;\n }\n getchar();\n getchar();\n} "} +{"label": "103", "index": "51236", "code": "int main()\n{\n char s[1000];\n scanf(\"%s\",s);\n int len=strlen(s);\n int i;\n for(i=0;i='a'&&s[i]<='z')\n s[i]=s[i]-'a'+'A';\n }\n char a[52];\n int b[52]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};\n int c=0;\n for(i=0;i='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n int ncount =1;\n for(i=0;i='a')a[i]=a[i]-'a'+'A';}\n for(i=0;a[i];)\n {\n tep=a[i]; j=0;\n while(a[i]==tep){j++;i++;}\n\n cout<<\"(\"<>a;\n\tfor(int i=0;i=0 && a[i]-'z'<=0)a[i]=a[i]+'A'-'a';\n\t\tif(a[i]!=a[i+1] && a[i]-a[i+1]!='A'-'a' && a[i]-a[i+1]!='a'-'A'){\n\t\t\tb[num]=i+1;\n\t\t\tnum++;\n\t\t\t}\n\t\t}//????,????b \n\t\tif(a[strlen(a)-1]-'a'>=0 && a[strlen(a)-1]-'z'<=0)a[strlen(a)-1]=a[strlen(a)-1]+'A'-'a';\n\t\tb[num]=strlen(a);\n\t\tfor(int i=1;i<=num;i++){\n\t\t\tcout<<\"(\"<='a'&&a[i]<='z')\n\t\ta[i]=a[i]+'A'-'a';\n\t}\n\tc=a[0];\n\tfor(i=0;c!='\\0';i++)\n\t{\n\t\tfor(j=0;a[i]==c;j++){i++;}\n\t\tif(j-i==0)\n\t\tj-=1;\n\t\tprintf(\"(%c,%d)\",c,j+1);\n\t\tc=a[i];\n\t} \n} "} +{"label": "103", "index": "51241", "code": "int main()\n{\n\tint j,i,k=0,m;\n char s[1000];\n\t scanf(\"%s\",s);\n if(s[0]>96)\n\t\t i=s[0]-96;\n\t else\n\t\t i=s[0]-64;\n\t for(j=0;s[j]!='\\0';j++)\n\t {\n if(s[j]>96)\n\t\t m=s[j]-96;\n\t else\n\t\t m=s[j]-64;\n\t\t if (m==i)\n k++;\n\t\t else\n\t\t {\n\t\t\t printf(\"(%c,%d)\",i+64,k);\n\t\t\t i=m;\n\t\t\t k=1;\n\t\t }\n\t }\n\t printf(\"(%c,%d)\",i+64,k);\n\treturn 0;\n}\n"} +{"label": "103", "index": "51242", "code": "int main()\n{\n int n,i,j,k;\n char str[1000];\n \n scanf(\"%s\",str);\n for(j=0;str[j];j++)\n {\n if(str[j]<='z'&&str[j]>='a')\n str[j]=str[j]-32; \n }\n for(i=0,n=1;str[i]!='\\0';i++)\n {\n if(str[i]==str[i+1])\n { \n n=n+1;\n } \n \n else\n {\n printf(\"(%c,%d)\",str[i],n);\n n=1;\n } \n } \n} "} +{"label": "103", "index": "51243", "code": "\nvoid main ()\n{\n char a[1001];\n int i,j,k;\n gets(a);\n for (i=0;a[i]!='\\0';i++)\n {\n if (a[i]>90)\n a[i]=a[i]-32;\n }\n for (i=0;a[i]!='\\0';)\n {\n for (j=0;;j++)\n {\n if (a[i+j]!=a[i]) break;\n }\n printf(\"(%c,%d)\",a[i],j);\n i=i+j;\n }\n}\n"} +{"label": "103", "index": "51244", "code": "\nchar f[1];\nmain()\n{\n char s[1000];\n scanf(\"%s\",s);\n int p=0;\n int k,n,t=0;\n n=strlen(s);\n s[n]='a';\n if(s[0]>='a'&&s[0]<='z')\n f[0]=s[0]+'A'-'a';\n else\n f[0]=s[0];\n for(k=1;k<=n;k++)\n {\n if(s[k-1]>='a'&&s[k-1]<='z')\n s[k-1]=s[k-1]+'A'-'a';\n if(s[k-1]!=s[p])\n {\n printf(\"(%s,%d)\",f,t);\n f[0]=s[k-1];\n p=k-1;\n t=1;\n }\n else t++;\n if(k==n)\n printf(\"(%s,%d)\",f,t);\n \n }\n }\n"} +{"label": "103", "index": "51245", "code": "inline char turn(char c)\n{\n\tif(c>=97)return c-32;\n\telse return c;\n}\nint main()\n{\n\tchar ch[1200],temp;\n\tint length,i,j,k;\n\tcin>>ch;\n\tlength=strlen(ch);\n\tk=1;\n\ttemp=turn(ch[0]);\n\tfor(i=1;i=97) s[i]=s[i]-32;\n\tfor(i=0;s[i]!='\\0';i++)\n\t{\n\t\tif(s[i+1]==s[i]) j++;\n\t\telse \n\t\t{\n\t\t\tprintf(\"(%c,%d)\",s[i],j);\n\t\t\tj=1;\n\t\t}\n\t}\n}\n"} +{"label": "103", "index": "51247", "code": "int main()\n{\n char m[1000];\n scanf (\"%s\",m);\n int i;\n char t;\n int r;\n i=0;\n while (m[i]!='\\0')\n {\n if ((m[i]>='a')&&(m[i]<='z'))\n m[i]=m[i]-32;\n i++;\n }\n i=0;\n while (m[i]!='\\0')\n {\n r=0;\n t=m[i];\n while (t==m[i])\n {\n r++;\n i++;\n }\n \n printf (\"(%c,%d)\",t,r);\n }\n return 0;\n}"} +{"label": "103", "index": "51248", "code": "\n\nint main(){\n char S[1000];\n memset(S,0,sizeof(S));\n\n cin>>S;\n\n int LEN=strlen(S),nn=0;\n char n='0';\n for(int i=0;i<=LEN;i++){\n char de=(isupper(S[i])==1) ? S[i] : toupper(S[i]);\n if(n=='0'||de!=n||i==LEN){\n if(n!='0') cout<<'('<='a'&&s1[i]<='z')\n s2[i]=s1[i]-32 ;\n if(s1[i]>='A'&&s1[i]<='Z')\n s2[i]=s1[i];}\n for(i=1;i<=n;i++)\n {\n \n if(s2[i-1]==s2[i])\n sum=sum+1;\n \n if(s2[i-1]!=s2[i])\n {printf(\"(%c,%d)\",s2[i-1],sum);\n sum=1; } \n }\n \n }\n"} +{"label": "103", "index": "51250", "code": "int main()\n{\n\tchar x;\n\tchar a[1000];\n\tint len,i,count = 0;\n\tcin >> a;\n\tlen =strlen(a);\n\tif (a[0] >= 65 && a[0] <= 90)\n\t x = a[0];\n\telse x = a[0] - 32;\n\tcout << '(' << x << ',';\n\tfor (i = 0;i < len;i++)\n\t{\n\t\tif (a[i] == x || a[i] - 32 == x)\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tcout << count << ')';\n\t\t\tcount = 1;\n\t\t\tif (a[i] >= 65 && a[i] <= 90)\n\t x = a[i];\n\t else x = a[i] - 32;\n\t\t\tcout << '(' << x << ',';\n\t\t}\n\t}\n\tcout << count << ')';\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51251", "code": "/*\n * nb.cpp\n *\n * Created on: 2011-12-31\n * Author: ???\n */\nint main()\n{\n\tchar a[1000];\n\tcin>>a;\n\tint l,i,m=1;\n\tl=strlen(a);\n\tfor(i=0;i='a')&&(a[i]<='z')){\n\t\t\ta[i]='A'+a[i]-'a';\n\t\t}\n\t}\n\tfor(i=0;i='a'&&s[i]<='z')\n s[i]+='A'-'a';\n int num[26];\n for(i=0;i<26;i++)\n num[i]=1;\n char mem[26]={'\\0'};\n mem[0]=s[0];\n for(i=1;i='a') str[i]=str[i]-'a'+'A';\n\n r=1;\n for(i=0;i> a;\n int i = 0, count = 1;\n while (a[i] != '%')\n {\n if (a[i] >= 'a' && a[i] <= 'z')\n a[i] += 'A' - 'a';\n i++;\n }\n last = a[0];\n i = 1;\n while (a[i] != '%')\n {\n if (a[i] == last)\n count++;\n else\n {\n cout << \"(\" << last << \",\" << count << \")\";\n last = a[i];\n count = 1;\n }\n i++;\n }\n return 0;\n}"} +{"label": "103", "index": "51255", "code": "int main()\n{\n\tchar str[1010];int i;\n\tcin.getline(str,1010);\n\tfor(i=0;str[i]!='\\0';i++)\n\t\tif(str[i]>='a'&&str[i]<='z')\n\t\t\tstr[i]=str[i]-32;\n\t\tfor(i=0;str[i]!='\\0';i++)\n\t\t{\n\t\t char t=str[i];int count=1;\n\t\t\twhile(str[i+1]==t)\n\t\t\t{i=i+1;count++;}\n cout<<'('<>a;\n\tl=strlen(a);\n\tfor (i=0;i='a') a[i]-=32;\n\t}\n\ta[strlen(a)]='!';\n\ttongji(0);\n\treturn 0;\n}\n"} +{"label": "103", "index": "51257", "code": "int main()\n{\n\tchar str[100];\n\tchar s;\n\tint i ,j;\n\tscanf(\"%s\",&str);\n\tfor(i=0;str[i]!='\\0';)\n\t{\n\t\tif(str[i]>64&&str[i]<91)\n\t\t\ts=str[i];\n\t\telse\n\t\t\ts=str[i]-32;\n\t\tfor(j=0;;i++)\n\t\t{\n\t\t\tif(str[i]!=s&&(str[i]-32)!=s)\n\t\t\t\tbreak;\n\t\t\tj++;\t\t\n\t\t}\n\t\tprintf(\"(%c,%d)\",s,j);\t\t\n\t}\n}\n"} +{"label": "103", "index": "51258", "code": "\nint main()\n{\n char str[1001];\n cin >> str;\n int length = strlen(str);\n int count = 1;\n for (int i = 1; i < length; i++)\n {\n if (str[i] == str[i - 1] \n || str[i] - 'a' == str[i - 1] - 'A' \n || str[i] - 'A' == str[i - 1] - 'a')\n count++;\n else\n {\n if (str[i - 1] - 'A' >= 0 && str[i - 1] - 'A' < 26)\n cout << \"(\" << (char)str[i - 1];\n else \n cout << \"(\" << (char)(str[i - 1] - 'a' + 'A');\n cout << \",\" << count << \")\";\n count = 1;\n }\n } \n if (str[length - 1] - 'A' >= 0 && str[length - 1] - 'A' < 26)\n cout << \"(\" << (char)str[length - 1];\n else \n cout << \"(\" << (char)(str[length - 1] - 'a' + 'A');\n cout << \",\" << count << \")\";\n return 0;\n}\n"} +{"label": "103", "index": "51259", "code": "int main()\n{\n\tchar a[2000]={0},t;\n\tint b[2000]={0};\n\tchar c[2000]={0};\n\tint i,cnt=0,j=0;\n\twhile(cin.getline(a,2000))//????\n\t{\t\n\n\t\tmemset(b,0,sizeof(b));\n\t\tmemset(c,0,sizeof(c));\n\t\tt=0;\n\t\tcnt=0;\n\t\tj=0;\n\n\t\t\n\t\tt=a[0];\n\t\tfor(i=0;a[i]!='\\0';i++)\n\t\t{\t\n\n\t\t\tif(a[i]==t||a[i]+32==t||a[i]-32==t) //????\n\t\t\t{\n\t\t\t\tb[j]++; //??\n\t\t\t\tif(a[i]>='a'&&a[i]<='z') //???????\n\t\t\t\t\tc[j]=a[i]-32;\n\t\t\t\tc[j]=a[i];\n\t\t\t}\t\t\n\t\t\telse //?????\n\t\t\t{\n\t\t\t\t//cout<='a'&&c[i]<='z')\n\t\t\t\tc[i]-=32;\n\t\t\tcout<<\"(\"<=0;\n i<=1000;\n char a[1000];\n scanf(\"%s\",a);\n count=1; \n for(i=0;i<=1000;i++)\n {\n if(a[i]>'Z')\n a[i]=a[i]-'a'+'A';\n else\n a[i]=a[i];\n }\n for(i=0;a[i]!='\\0';i++)\n { \n if(a[i+1]==a[i])\n {\n count=count+1;\n }\n else\n {\n printf(\"(%c,%d)\",a[i],count);\n count=1; \n }\n }\n getchar();\n}\n"} +{"label": "103", "index": "51262", "code": "int main()\n{\n\tint i,m,sum;\n\tchar a[1000];\n\tgets(a);\n for(i=0;a[i]!='\\0';i++)\n {\n \tif(a[i]>='a' && a[i]<='z')a[i]=a[i]-'a'+'A';\n }\n\n for(i=0;a[i]!='\\0';i++)\n {\n \tsum=0;\n \tfor(m=i;a[m]==a[i];m++)\n \t{\n \t\tsum++;\n \t}\n \ti=m-1;\n \tprintf(\"(%c,%d)\",a[i],sum);\n }\n}"} +{"label": "103", "index": "51263", "code": "int main()\n{\n\tchar a[1000];\n\tcin>>a;\n\tint l;\n\tl=strlen(a);\n\tint i,n=1;\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\t\ta[i]-=32;\n\t\t\tcout<<\"(\"<='a'))\n t=s[i]-'a'+'A';\n else\n t=s[i];\n printf(\"(%c,\",t);\n }\n\n }\n printf(\"%d)\",ans);\n\n}\n"} +{"label": "103", "index": "51267", "code": "int main()\n{\n\tint i, k;\n\tchar route[1001];\n\tcin.getline(route, 1001);\n\tint len = strlen(route);\n\tfor (i = 0; i < len; i++)\n\t{\n\t\tint count = 1;\n\t\tif (i == len - 1)\n\t\t{\n\t\t\tif ((route[i] >= 97) && (route[i] <= 122))\n\t\t\t{\n\t\t\t\troute[i] = route[i] - 32;\n\t\t\t}\n\t\t\tcout << '(' << route[i] << ',' << count << ')';\n\t\t\tbreak;\n\t\t}\n\t\t// i <= len - 2,?i???????\n\t\tfor (k = i + 1; k < len; k++)\n\t\t{\n\t\t\tif ((route[k] == route[i]) || (route[k] == route[i] + 32) || (route[i] == route[k] - 32))\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// ???????????break??route[k] ?route[i]???????????k == len;\n\t\tif ((route[i] >= 97) && (route[i] <= 122))\n\t\t{\n\t\t\troute[i] = route[i] - 32;\n\t\t}\n\t\tcout << '(' << route[i] << ',' << count << ')';\n\t\tif (k != len - 1) // ????k??????\n\t\t{\n\t\t\ti = k - 1;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51268", "code": "//\n// main.cpp\n// ds\n//\n// Created by Love on 12-12-27.\n// Copyright (c) 2012? Love. All rights reserved.\n//\n\nint main(){\n char sent[1001];\n gets(sent);\n int i;\n int time=0;\n for (i=0; sent[i]!='\\0'; i++) {\n if (sent[i]!=sent[i+1]&&(sent[i]-sent[i+1]!='A'-'a'&&sent[i]-sent[i+1]!=-'A'+'a')) {\n if(sent[i]>='a'){\n printf(\"(%c,%d)\",sent[i]-'a'+'A',time+1);\n }else{\n printf(\"(%c,%d)\",sent[i],time+1); \n }\n time=0;\n }else{\n time++;\n }\n }\n return 0;\n}\n \n"} +{"label": "103", "index": "51269", "code": "struct p\n{\n char c;\n int x;\n}p[1000];\nmain()\n{\n char str[1100],i,L,j,s,t=0,count=0;\n scanf(\"%s\",str);\n L=strlen(str);\n str[L]='\\0';\n for(i=0;i='a'&&str[i]<='z')\n str[i]=str[i]-'a'+'A';\n }\n s=str[0];\n for(i=0;i<=L;i++)\n {\n if(str[i]==s)\n {\n count++;\n }\n if(str[i]!=s&&str[i]!='\\0')\n {\n p[t].c=str[i-1];\n p[t].x=count;\n count=1;\n s=str[i];\n t++;\n }\n if(str[i]=='\\0'&&str[i-1]!='\\0'&&str[i]!=s)\n { \n p[t].c=str[i-1];\n p[t].x=count;\n t++;\n break;\n }\n }\n for(i=0;i'Z')\n\t\t\ta[i]+='A'-'a';\n\t}\n\tfor(i=0;i<=999;i++)\n\t{\n\t\tfor(k=1;k<998;k++)\n\t\t{\n\t\t\tif(a[i+k]!=a[i])\n\t\t\t{\n\t\t\t\tcout<<\"(\"<=al-1)break;\n\t}\n\t\treturn 0;\n\n\n\n}"} +{"label": "103", "index": "51271", "code": "\nint main() {\n int num[26]={0}, m, i, k, l=0;\n char c, temp[3000];\n for(k=0;c!='\\n';k++) {\n c=getchar();\n temp[k]=c;\n m=i;\n for(i=0;i<=26;i++) {\n if (c=='A'+i||c=='A'+i+32) {\n num[i]=num[i]+1;\n break;\n }\n }\n if (k>0&&((temp[k]!=temp[k-1])&&(temp[k-1]+32!=temp[k])&&(temp[k]+32!=temp[k-1]))) {\n if (temp[k-1]>=97) {\n temp[k-1]=temp[k-1]-32;\n }\n printf(\"(%c,%d)\", temp[k-1], num[m]);\n num[m]=0;\n l=0;\n }\n }\n return 0;\n}\n"} +{"label": "103", "index": "51272", "code": "\n\nint main()\n{\n\tchar c[1005];\n\tint num=0;\n\tcin>>c;\n\t\n\tfor( int i=0 ; i='a' )\n\t\t{\n\t\t\tc[i]=c[i]-'a'+'A';\n\t\t}\n\t}\n\tif( c[0]!= c[1] )\n\t{\n\t\tcout<<\"(\"<> str;\n\tchar *p;\n\tp = str;\n\tchar ch;\n\tch = *p;\n\tint count = 0;\n\twhile (*p != '\\0')\n\t{\n\t\tif (ch > 90)\n\t\t\tch = ch - 32;\n\t\tif (*p == ch || *p == ch + 32)\n\t\t{\n\t\t\tcount++;\n\t\t\tp++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << ch << \",\" << count << \")\";\n\t\t\tch = *p;\n\t\t\tcount = 0;\n\t\t}\n\t}\n\tcout << \"(\" << ch << \",\" << count << \")\";\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51274", "code": "\n\nint main(int argc, char *argv[])\n{\n char s1[1000]={0},getchar[1000]={0};\n int getnum[1000]={0},i,j=0;\n cin.getline(s1,1000);\n for(i=0;i<1000;i++)\n {\n if(s1[i]=='\\0') break;\n if(s1[i]>='a'&&s1[i]<='z') s1[i]=s1[i]-32; //??????? \n if(s1[i]!=getchar[j]) //?????? \n {\n j++; //?1?? \n getchar[j]=s1[i];\n getnum[j]++; \n }\n else getnum[j]++;\n }\n for(i=1;i<=j;i++)\n {\n cout<<\"(\"<='a'&&c<='z')\n printf(\"(%c,%d)\",c+'A'-'a',j);\n else\n printf(\"(%c,%d)\",c,j);\n j=1;\n c=b[i];\n }\n \n }\n getchar();\n getchar();\n}"} +{"label": "103", "index": "51276", "code": "void ch(char a[1000])\n{\n int i;\n for(i=0;i<1000;i++)\n {\n if(a[i]>='a'&&a[i]<='z')\n a[i]='A'-'a'+a[i];\n else if(a[i]==0)\n break;\n }\n}\nmain()\n{\n char a[1000];\n int i,j,k=1,l;\n scanf(\"%s\",a);\n l=strlen(a);\n ch(a);\n for(i=0;i'Z')\n a[i]=a[i]-'a'+'A';\n i++; \n }\n c[0]=a[0];\n b[0]=1;\n while(a[j]!='\\0')\n {\n if(a[j]==a[j-1])\n b[k]++;\n else\n {\n l++;\n k++;\n c[l]=a[j];\n b[k]=1;\n }\n j++;\n }\n for(d=0;d<=k;d++)\n printf(\"(%c,%d)\",c[d],b[d]);\n }"} +{"label": "103", "index": "51278", "code": "int main()\n{\n\tint i,k=1;\n\tchar str[1001]={'\\0'};\n\tgets(str);\n\tfor(i=0;i<=1000;i++)\n\t{\n\t\tif(str[i]=='\\0')\n\t\t{break;}\n\t\tif(str[i]!='\\0')\n\t\t{\n\t\t\tif(str[i]>=97&&str[i]<=122)\n\t\t\t{str[i]=str[i]-32;}\n\t\t\tif(str[i+1]>=97&&str[i+1]<=122)\n\t\t\t{str[i+1]=str[i+1]-32;}\n\t\t\tif(str[i]==str[i+1])\n\t\t\t{\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tif(str[i]!=str[i+1])\n\t\t\t{\n\t\t\t\tprintf(\"(%c,%d)\",str[i],k);\n\t\t\t\tk=1;\n\t\t\t}\n\t\t}\n\t}\n}"} +{"label": "103", "index": "51279", "code": "main()\n{\n char a[1000];\n gets(a);\n int i,p;\n i=0;\n while (a[i]!='\\0')\n {\n if (a[i]>='a'&&a[i]<='z')\n {\n a[i]=a[i]+'A'-'a';\n }\n i++;\n }\n p=1;\n i=0;\n while (a[i+1]!='\\0')\n {\n if (a[i]==a[i+1])\n {\n p=p+1;\n }\n else \n {\n printf(\"(%c,%d)\",a[i],p);\n p=1;\n }\n if (a[i+2]=='\\0')\n {\n if (a[i]==a[i+1])\n {\n printf(\"(%c,%d)\",a[i],p); \n }\n else\n {\n printf(\"(%c,%d)\",a[i+1],p);\n }\n }\n i++;\n } \n if (a[1]=='\\0')\n {\n if (a[0]>='a'&&a[0]<='z')\n {\n a[0]=a[0]+'A'-'a';\n printf(\"(%c,%d)\",a[0],1);\n }\n else \n {\n printf(\"(%c,%d)\",a[0],1);\n }\n }\n getchar();getchar();getchar();getchar();getchar();\n \n}\n"} +{"label": "103", "index": "51280", "code": "main()\n{\n\tchar a[10001];\n\tscanf(\"%s\",a);\n\tint i=0,j=0,k,count=1;\n\twhile(a[i]!='\\0')\n\t{\n\t if(a[i]>='A'&&a[i]<='Z')\n\t {a[i]=a[i]+32; j++;}\n\t else j++;\n\t i++;\n\t}\n for(k=0;k='a')&&(k[i]<='z'))\n\t\t\tk[i]=k[i]-'a'+'A'; //??????????????\n\t}\n\n\tfor(i=1;k[i]!='\\0';i++)\n\t{\n\t if (k[i]==k[i-1])\n\t\t n++;\n\t else\n\t {\n\t\t printf(\"(%c,%d)\",k[i-1],n);\n\t\t n=1;\n\t }\n\t \n\t}\n printf(\"(%c,%d)\",k[i-1],n);\n\treturn 0;\n }"} +{"label": "103", "index": "51282", "code": "int main()\n{\n\tchar str[1000];\n\tcin>>str;\n\tfor(int i=0;i='a')&&(str[i]<='z'))\n\t\t\tstr[i]-=32;\n\t}\n\tfor(int i=0;i> data;\n\tlen = strlen(data);\n\tfor (i = 0; i < len; )\n\t{\n\t\tq = data[i];\n\t\tif (data[i] > 96)\n\t\t{\n\t\t\tq -= 32;\n\t\t}\n\t\tlength = 0;\n\t\tdo\n\t\t{\n\t\t\tlength++;\n\t\t}while (data[i + length] == q || data[i + length] == q + 32);\n\t\tcout << \"(\" << q << \",\" << length << \")\";\n\t\ti += length;\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51284", "code": "\nint main()\n{\tchar a,ch;\n\tint sum;\n\n\ta='0';\n\twhile(cin>>ch)\n\t{\n\t\tif(ch>96) ch-=32;\n\t\tif(ch!=a)\n\t\t{\n\t\t\tif(a!='0') printf(\"(%c,%d)\",a,sum);\n\t\t\ta=ch;sum=1;\n\t\t}\n\t\telse sum++;\n\t}\n\tprintf(\"(%c,%d)\",a,sum);\n\n\n\treturn 0;\n}\n"} +{"label": "103", "index": "51285", "code": "\nmain()\n{\n int i,j,k,t;\n i=j=k=0;\n int b[1000];\n while(k<1000) \n {b[k]=1;\n k++;}\n char a[1000];\n gets(a);\n for(k=0;k<1000;k++)\n {\n if (a[k]>'Z') {a[k]=a[k]-32;}\n }\n while(i<1000)\n { j=i;\n if (a[j]=='\\0')\n break;\n while(a[j]==a[j+1])\n {\n b[j+1]=b[j]+1;\n j++;\n \n }\n printf(\"(%c,%d)\",a[j],b[j]);\n i=j+1;\n \n } \n \n }"} +{"label": "103", "index": "51286", "code": "int main()\n{\n char a[1001];\n scanf(\"%s\",a);\n int i;\n int k=1;\n for(i=0;a[i]!='\\0';i++)\n {\n if((a[i]>='a')&&(a[i]<='z'))\n {\n a[i]=a[i]-'a'+'A';\n }\n }\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]==a[i+1])\n {\n k=k+1;\n continue;\n }\n else\n {\n printf(\"(%c,%d)\",a[i],k);\n k=1;\n }\n }\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n}"} +{"label": "103", "index": "51287", "code": "\nint main()\n{\n\tchar yuan[1001],suo[1001];\n\tint n,i,j,a,ya[1001]={0};\n\tcin >> yuan ;\n\tn = strlen(yuan);\n\tfor ( i = 0;i < n ; i ++ )\n\t\tif (yuan[i] >= 'a' && yuan[i] <= 'z')\n\t\t\tyuan[i] = yuan[i] + 'A' - 'a';\n\tsuo[0] = yuan[0] ;\n\tj = 0;\n\tfor ( i = 0 ;i < n ;i ++ )\n\t{\n\t\tif (yuan[i] == suo[j])\n\t\t\tya[j] ++ ;\n\t\telse \n\t\t{\n\t\t\tj ++;\n\t\t\tsuo[j] = yuan[i];\n\t\t\tya[j] = 1;\n\t\t}\n\t}\n\tfor (i = 0; i <= j; i ++)\n\t\tcout << \"(\" << suo[i] << \",\" << ya[i] << \")\";\n\treturn 0;\n}"} +{"label": "103", "index": "51288", "code": "//********************************\n//*???2011?? **\n//*?????? **\n//*???2013.1.12 **\n//*******************************/\n\n\nvoid read(char last, int time)\n{\n\tchar a = cin.get();\n\tif (a >= 'a' && a <= 'z')\n\t\ta -= 32;\n\tif (a == '\\n')\n\t{\n\t\tcout << \"(\" << last << \",\" << time << \")\";\n\t}\n\telse if (last == a)\n\t{\n\t\tread (last, time + 1);\n\t}\n\telse\n\t{\n\t\tcout << \"(\" << last << \",\" << time << \")\";\n\t\tread (a, 1);\n\t}\n}\n\nint main ()\n{\n\tchar a = cin.get();\n\tif (a >= 'a' && a <= 'z')\n\t\ta -= 32;\n\tread(a, 1);\n\treturn 0;\n}\n"} +{"label": "103", "index": "51289", "code": "int main()\n{\n\tint i,j=0,k,sum[1000]={0};\n char str[1100],a[1000];\n cin>>str;\n for(i=0;i='a'&&str[i]<='z')\n\t\t\tstr[i]=str[i]-32;\n\t}\n\ta[0]=str[0];\n\tfor(i=1;i='a')\n a[i]-=32;\n }\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i+1]==a[i])\n {\n t=1;\n while(a[i+1]==a[i])\n {\n t++;\n i++;\n }\n cout<<\"(\"<>ss;\n return 0;\n} \n"} +{"label": "103", "index": "51292", "code": "\nint main()\n{\n char str[1005];\n int i,cnt,n;\n char c=0;\n gets(str);\n n=strlen(str);\n for (i=0;i96)c[j]=c[j]-32;\n\twhile(i='A' && p[i]<'Z')\n c=p[i];\n else\n c=p[i] - 'a'+'A';\n n = 1;\n }\n else\n {\n if(p[i]>='A' && p[i]<'Z')\n t=p[i];\n else\n t=p[i] - 'a'+'A';\n if(t==c)\n n++;\n else\n {\n printf(\"(%c,%d)\",c,n);\n c=t;\n n=1;\n }\n }\n i++;\n } \n}\n"} +{"label": "103", "index": "51295", "code": "main()\n{\n\tint i,j,m;\n\tchar a[1009];\n\tscanf(\"%s\",a);\n\tm=strlen(a);\n\tfor(i=0;i='A')\n\t\tprintf(\"(%c,%d)\",a[i],count);\n\t\telse\n\t\tprintf(\"(%c,%d)\",a[i]+'A'-'a',count);\n\t\ti=i+count;\n\t}\n}"} +{"label": "103", "index": "51296", "code": "\nint main()\n{\n\tint i, len, num = 1, t = 1;\n\tchar a[1011] = {0};\n\tcin >> a;\n\tlen = strlen(a);\n\tfor (i = 0; i <= len - 1; i++)\n\t\tif (a[i] >= 'a' && a[i] <= 'z')\n\t\t\ta[i] = a[i] - 'a' + 'A';\n\tcout << \"(\" << a[0] << \",\";\n\tfor (i = 1; i <= len - 1; i++)\n\t{\n\t\tif (a[i] == a[i - 1])\n\t\t\tnum += 1;\n\t\telse\n\t\t{\n\t\t\tcout << num << \")\";\n\t\t\tnum = 1;\n\t\t\tcout << \"(\" << a[i] << \",\";\n\t\t}\n\t}\n\tcout << num << \")\" << endl;\n\n\treturn 0;\n}\n"} +{"label": "103", "index": "51297", "code": "int main()\n{\n\tchar a[1010]={'\\0'};\n\tchar c=getchar();\n\tint num=0;\n\twhile(c!='\\n')\n\t{\n\t\tif(c>=97 && c<=122)\n\t\t{\n\t\t\ta[num]=c-32;\n\t\t\tnum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[num]=c;\n\t\t\tnum++;\n\t\t}\n\t\tc=getchar();\n\t}\n\tint i=0;\n\tnum=1;\n\ta[strlen(a)]='1';\n\tfor(i=0;i0)\n\t\t\tif(P[i]==P[i-1]||P[i]==P[i-1]+'A'-'a'||P[i]==P[i-1]+'a'-'A')\n\t\t\t;\n\t\t\telse\n\t\t\t\tk++;\n\t\tfor(j=0;j<26;j++)\n\t\t\tif(j+'A'==P[i]||j+'a'==P[i])\n\t\t\t{\n\t\t\t\tC[k][j].n++;\n\t\t\t\tC[k][j].A=j+'A';\n\t\t\t\tbreak;\n\t\t\t}\n\t}\n\tfor(k=0;k<100;k++)\n\tfor(j=0;j<26;j++)\n\t\tif(C[k][j].n!=0)\n\t\t\tprintf(\"(%c,%d)\",C[k][j].A,C[k][j].n);\n\treturn 0;\n}"} +{"label": "103", "index": "51299", "code": "int main()\n{\n char a[1000],c[1000];\n int b[1000];\n int i,j,k,h;\n for(i=0;i<1000;i++)\n {\n scanf(\"%c\",&a[i]);\n if(a[i]>='a'&&a[i]<='z') a[i]=a[i]-'a'+'A';\n if(a[i]=='\\n') break;\n }\n for(h=0,j=0;h='a'&&string[i]<='z')\n string[i]=string[i]-'a'+'A';\n count(string);\n return 0;\n} \n"} +{"label": "103", "index": "51301", "code": "\nint main()\n{\n int i,a,n,num=1;\n char str[1001];\n scanf(\"%s\",str);\n n=strlen(str);\n\n \n for ( i=0 ;i<=(n-1) ;i++ )\n {\n if ( str[i]>=97 )\n str[i]=str[i]-32;\n }\n \n \n for ( i=0 ;i<=(n-1) ;i++ )\n {\n if ( str[i]==str[i+1] )\n num++;\n else\n {\n printf(\"(%c,%d)\",str[i],num);\n num=1;\n }\n \n } \n \n \n \n \n \n}\n"} +{"label": "103", "index": "51302", "code": "int main()\n{ \n char s[1050];\n char bj;\n int i,j,k,f,l;\n scanf(\"%s\",s);\n l=strlen(s);\n f=0;\n for (i=0;i=97)\n bj=bj-32;\n f=1;\n }\n else\n {\n if ((s[i]==bj)||(s[i]-32==bj))\n f++;\n else\n {\n printf(\"(%c,%d)\",bj,f);\n f=1;\n bj=s[i];\n if (bj>=97)\n bj=bj-32;\n }\n }\n printf(\"(%c,%d)\",bj,f);\n}\n \n \n "} +{"label": "103", "index": "51303", "code": "int main()\n{\n char str[1000];\nint i,X,s=0,j,n[26]={0};\nscanf(\"%s\",str);\nX=strlen(str);\nfor (i=0;i='a'&& a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n i=0;\n while(a[i]!='\\0')\n {\n for(k=i;;k++)\n {\n if(a[k]!=a[i])\n break; \n } \n printf(\"(%c,%d)\",a[i],k-i); \n i=k; \n }\n}"} +{"label": "103", "index": "51305", "code": "\n\nint main()\n\n{\n char a[1000];\n scanf(\"%s\",a);\n int i,k;\n int j[1000]={0};\n k=1;\n for (i=1 ; i<1000 ; i++)\n {\n if(a[i]=='\\0')\n { \n if('A'<=a[i-1] && a[i-1]<='Z')\n printf(\"(%c,%d)\",a[i-1],j[k]+1);\n else\n {\n a[i-1]=a[i-1]-'a'+'A';\n printf(\"(%c,%d)\",a[i-1],j[k]+1);\n }\n break;\n }\n else if (a[i]==a[i-1] || a[i]==a[i-1]+'a'-'A' || a[i]==a[i-1]-'a'+'A')\n j[k]++;\n else\n {\n if('A'<=a[i-1] && a[i-1]<='Z')\n printf(\"(%c,%d)\",a[i-1],j[k]+1);\n else\n {\n a[i-1]=a[i-1]-'a'+'A';\n printf(\"(%c,%d)\",a[i-1],j[k]+1);\n }\n k++;\n }\n }\n \n\n return 0;\n}\n"} +{"label": "103", "index": "51306", "code": "\nint main()\n{\n\tchar str[1000], str2[5];\n\tint i, count = 0;\n\tcin >> str;\n\tfor (i = 0; str[i] != '\\0';)\n\t{\n\t\tcount = 0;\n\t\tstr2[0] = str[i];\n\t\tif (str2[0] <= 'z' && str2[0] >= 'a')\n\t\t\tstr2[0] = str2[0] - 32;\n\t\tfor (; str[i] == str2[0] || str[i] == str2[0] + 32;)\n\t\t{\n\t\t\tcount++;\n\t\t\tif (str[i] != '\\0')\n\t\t\t\ti++;\n\t\t}\n\t\tcout << \"(\" << str2[0] << \",\" << count << \")\";\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51307", "code": "int main()\n{\n\tchar a[1001];\n\tcin >> a;\n\tchar t;\n\tfor (int i = 0; i < strlen(a);)\n\t{\n\t\tif (a[i] > 96)\n\t\t\ta[i] -= 32;\n\t\tt = a[i];\n\t\tint j;\n\t\tfor (j = 0; ;j++)\n\t\t\tif (a[i+j] != t && a[i+j] != t + 32)\n\t\t\t\tbreak;\n\t\tcout << '(' << t << ',' << j << ')';\n\t\ti += j;\n\t}\n\n\n\n}\n\n"} +{"label": "103", "index": "51308", "code": "\nchar str[1000];\nint main()\n{\n\tcin>>str;\n\tint len=strlen(str);\n\tfor(int i=0;i='a'&&str[i]<='z')\n\t\t\tstr[i]=(char)(str[i]+'A'-'a');\n\tchar als;\n\tals=str[0];\n\tint aln=0;\n\tfor(int i=0;i='a'&&a[i]<='z') a[i]=a[i]-32;\n if(l==1)\n printf(\"(%c,1)\",a[0]);\n else\n do\n {\n tem=1;\n for(j=k+1;j<=l;j++)\n {\n if(a[k]!=a[j])\n {\n printf(\"(%c,%d)\",a[k],tem);\n k=j;\n break;\n }\n else\n tem++;\n } \n }while(k>a;\n\tl = strlen(a);\n\tint num[1000],i,j = 0;\n\tfor (i = 0; i <= l; i++) num[i] =1;\n\tfor (i = 0; i < l;i++)\n\t{\n\t\tif (a[i+1] != a[i] && a[i+1] != a[i] +32 && a[i+1] != a[i] -32)\n\t\t{\n\t\t\tb[j] = a[i];\n\t\t\tj++;\n\t\t}\n\t if (a[i+1] == a[i] || a[i+1] == a[i] +32 || a[i+1] == a[i] -32)\n\t {\n\t\t num[j]++;\n\t }\n\t}\n\tb[j - 1]=a[l-1];\n\tfor (i = 0; i < j; i++)\n\t{\n\t\tif (b[i] >='A' && b[i] <= 'Z')\n\t\t{\n\t cout << \"(\" << b[i]<< \",\" << num[i] <<\")\";\n\t\t}\n\t\tif (b[i] >='a' && b[i] <= 'z')\n\t\tcout << \"(\" << (char)(b[i] - 'a' + 'A') << \",\" << num[i] <<\")\";\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51311", "code": "int main()\n{\n\tchar a[1000];\n\tchar temp;\n\tint i, l, count;\n\tcin.getline(a, 1000);\n\tl = strlen(a);\n\tfor(i = 0; i <= l - 1; i++)\n\t{\n\t\tif(a[i] >= 'a' && a[i] <= 'z')\n\t\t{\n\t\t\ta[i] = a[i] - 32;\n\t\t}\n\t}\n\ta[l] = '0';\n\ttemp = a[0];\n\tcount = 1;\n\tif(l > 1)\n\t{\n \tfor(i = 1; i <= l; i++)\n\t\t{\n\t \tif(a[i] == temp)\n\t\t\t{\n\t\t \tcount++;\n\t\t\t}\n\t \tif(a[i] != temp)\n\t\t\t{\n\t\t \tcout << \"(\" << temp << \",\" << count << \")\";\n\t\t \ttemp = a[i];\n\t\t \tcount = 1;\n\t\t\t}\n\t\t}\n\t}\n\tif(l == 1)\n\t{\n\t\tcout << \"(\" << a[0] << \",\" << 1 << \")\";\n\t}\n\tcin.get();\n\treturn 0;\n}"} +{"label": "103", "index": "51312", "code": "main()\n{\n char a[1001];\n int n,i,x,count;\n scanf(\"%s\",a);\n n=strlen(a);\n for(i=0;i'Z')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0,count=0,x=a[0];i='a'&&c[0]<='z')\n ch='A'+c[0]-'a';\n else\n ch=c[0];\n a=1;\n for(i=1;i<=len-1;i++)\n { if(c[i]-ch==0||c[i]-ch=='a'-'A')\n a++;\n else\n {\n printf(\"(%c,%d)\",ch,a);\n if(c[i]>='a'&&c[i]<='z')\n ch='A'+c[i]-'a';\n else\n ch=c[i];\n a=1;\n }\n }\n printf(\"(%c,%d)\",ch,a);\n \n} "} +{"label": "103", "index": "51314", "code": "\n\nmain()\n{\nint i,len,k=0;\nchar a[1000];\nchar p[1000];\nint b[1000]={1};\n\nscanf(\"%s\",a);\nlen=strlen(a);\nfor(i=0;i<=len-1;i++)\n{\n if(a[i]=='a'||a[i]=='A')\n a[i]='A';\n if(a[i]=='b'||a[i]=='B')\n a[i]='B';\n if(a[i]=='C'||a[i]=='c')\n a[i]='C';\n if(a[i]=='d'||a[i]=='D')\n a[i]='D';\n//printf(\"%c\",a[i]);\n}\n\nfor(i=0;i<=len-1;i++)\n{\n if(a[i+1]==a[i])\n {\n b[k]=b[k]+1;\n }\n else\n {\n p[k]=a[i];\n printf(\"(%c,%d)\",p[k],b[k]);\n k=k+1;\n b[k]=1;\n }\n}\n\n} "} +{"label": "103", "index": "51315", "code": "int main()\n{\n\tchar c[1000];\n\tint n,i,j=0;\n\tgets(c);\n\tn=strlen(c);\n\tfor(i=0;i='A'&&c[i]<='Z')\n\t\t{\n\t\tif(c[i]!=c[i-1]&&c[i]!=c[i-1]-32)\n\t\t{\n\t\t\tif(c[i-1]>='A'&&c[i-1]<='Z')\n\t\t\t\tprintf(\"(%c,%d)\",c[i-1],j);\n\t\t\telse if(c[i-1]>='a'&&c[i-1]<='z')\n printf(\"(%c,%d)\",c[i-1]-32,j);\n\t\t\tj=0;\n\t\t}\n\t\t}\n\t\telse if(c[i]>='a'&&c[i]<='z')\n\t\t{\n if(c[i]!=c[i-1]&&c[i]!=c[i-1]+32)\n\t\t\t{\n\t\t\t\tif(c[i-1]>='A'&&c[i-1]<='Z')\n printf(\"(%c,%d)\",c[i-1],j);\n\t\t\telse if(c[i-1]>='a'&&c[i-1]<='z')\n printf(\"(%c,%d)\",c[i-1]-32,j);\n\t\t\t\tj=0;\n\t\t\t}\n\t\t}\n\t\tj++;\n\t}\n if(c[n-1]>='A'&&c[n-1]<='Z')\n printf(\"(%c,%d)\",c[n-1],j);\n\t\t\telse if(c[n-1]>='a'&&c[n-1]<='z')\n printf(\"(%c,%d)\",c[n-1]-32,j);\n return 0;\n}"} +{"label": "103", "index": "51316", "code": "main()\n{\nint i=0,j=0,k=0;\nint s[26]; \n\nchar out[1001];\nscanf(\"%s\",out);\nfor(k=0;k='a')\n {out[k]=out[k]-'a'+'A';}\n k++;\n }\n\nfor(i=0;i= 'a' )\n\t\treturn c + 'Z' - 'z';\n\treturn c ;\n}\n\nint main ()\n{\n\tchar c[1000] = {0};\n\tchar *p = NULL;\n\tint num = 0;\n\tcin >> c;\n\tfor ( p = c; *p; p++ )\n\t{\n\t\tif ( p == c || (*p != *(p-1) && (*p != *(p-1) + 'z' - 'Z') && (*p != *(p-1) + 'Z' - 'z')) )\n\t\t{\n\t\t\tif ( p != c )\n\t\t\t\tcout << num << ')';\n\t\t\tnum = 1;\n\t\t\tcout << '(' << printc(*p) << ',' ;\n\t\t}\n\t\telse \n\t\t\tnum ++;\n\t}\n\tcout << num << ')' << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51318", "code": "int main()\n{\n\tchar ch[1000]={'\\0'};\n\tint num=0,length=0,i,k=0;\n\tchar result;\n\tcin.getline(ch,1000);\t\t\t\t\t\t//?????\n\tfor (i=0;i<1000;i++)\n\t\tif (ch[i]!='\\0')\n\t\t\tnum++;\t\t\t\t\t\t\t\t//?????\n\tif (num==1)\n\t{\n\t\tif ((ch[0]>='A')&&(ch[0]<='Z'))\n\t\t\tk=ch[0]-'A';\n\t\telse\n\t\t\tk=ch[0]-'a';\n\t\tresult='A'+k;\n\t\tcout<<\"(\"<='A')&&(ch[i]<='Z'))\n\t\t\t\t\tk=ch[i]-'A';\n\t\t\t\telse\n\t\t\t\t\tk=ch[i]-'a';\n\t\t\t\tresult='A'+k;\n\t\t\t\tcout<<\"(\"<='A')&&(ch[num-1]<='Z'))\n\t\t\t\tk=ch[num-1]-'A';\n\t\t\telse\n\t\t\t\tk=ch[num-1]-'a';\n\t\t\tresult='A'+k;\n\t\t\tcout<<\"(\"<='A')&&(ch[num-2]<='Z'))\n\t\t\t\tk=ch[num-2]-'A';\n\t\t\telse\n\t\t\t\tk=ch[num-2]-'a';\n\t\t\tresult='A'+k;\n\t\t\tcout<<\"(\"<='A')&&(ch[num-1]<='Z'))\n\t\t\t\tk=ch[num-1]-'A';\n\t\t\telse\n\t\t\t\tk=ch[num-1]-'a';\n\t\t\tresult='A'+k;\n\t\t\tcout<<\"(\"<>ch;\n\tln=strlen(ch);\n\tfor(i=0;i=96)\n\t\t{\n\t\t\tch[i]=ch[i]-32;\n\t\t}\n\t}\n\tm=0;\n\tj=1;\n\tfor(i=0;i='a'&&string[i]<='z')\n\t\t\tstring[i]+=('A'-'a');\n\tfor(i=0;i='a'&&string[i]<='z')\n\t\t\tstring[i]+=('A'-'a');\n\t\tif(string[i+1]>='a'&&string[i+1]<='z')\n\t\t\t\t\tstring[i+1]+=('A'-'a');*/\n\t\tcount=1;\n\t\ttemp=string[i];\n\t\ti++;\n\t\twhile(string[i]==string[i-1])\n\t\t{\n\t\t\tif(i==length)\n\t\t\t\tbreak;\n\t\t\tcount++;\n\t\t\ti++;\n\t\t}\n\t\tcout<<'('<>b;\n\tif((b[0]>='a'&&b[0]<='z')||(b[0]>='A'||b[0]<='Z'))\n\t{\n\t\t len=strlen(b);k=0;\n\t\t for(i=0;i='a'&&b[i]<='z')\n\t\t\t\t\t{cout<<\"(\";\n\t\t\t\t\tprintf(\"%c\",b[i]-'a'+'A');\n\t\t\t\t\tcout<<\",\"<='a'&&b[i]<='z')\n\t\t\t\t\t{cout<<\"(\";printf(\"%c\",b[i]-'a'+'A');cout<<\",\"<> str;\n\tint i, n, count = 1;\n\tn = strlen(str);\n\tfor(i = 0; i < n; i++)\n\t{\n\t\tif(str[i] - 'a' >= 0 && str[i] - 'z' <= 0)\n\t\t\tstr[i] = str[i] - 'a' + 'A';\n\t}\n\tfor(i = 0; i < n - 1; i++)\n\t{\n\t\tif(str[i] == str[i + 1])\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << str[i] << \",\" << count << \")\";\n\t\t\tcount = 1;\n\t\t}\n\t}\n\tif(str[n - 2] == str[n - 1])\n\t\tcout << \"(\" << str[n - 1] << \",\" << count << \")\";\n\telse cout << \"(\" << str[n - 1] << \",\" << count << \")\";\n\n\treturn 0;\n}\n\t"} +{"label": "103", "index": "51323", "code": "\nchar A[1000];\nint main()\n{\n\tcin>>A;\n\tint len=strlen(A);\n\tint num;\n\tfor(int i=0;i='A'&&A[i-1]<='Z')\n\t\t\t\tcout<<'('<='A'&&A[i]<='Z')\n\t\t\t\tcout<<'('<='a'&&s[i]<='z')\n\t\ts[i]=s[i]+'A'-'a';\n\t}\n\tu=1;\n\tt=s[0];\n\tif(x==1)\n\tprintf(\"(%c,%d)\",t,u);\n\telse if(x>1)\n\t{\n\tfor(i=1;i='a'&&zfc[i]<='z')\n\t\t{\n\t\t\tzfc[i]+=m;\n\t\t}\n\t}\n\tt=zfc[0];\n\tfor(i=0;i<=n;i++)\n\t{\n\t\tif(zfc[i]!=t)\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",t,sum);\n\t\t\tsum=1;\n\t\t\tt=zfc[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsum++;\n\t\t}\n\t}\n\treturn 0;\n }\n"} +{"label": "103", "index": "51327", "code": "main()\n{\n int num=0,i;\n char str[1000],b,a;\n scanf(\"%s\",str);\n for(i=0;i'Z')\n printf(\"(%c,%d)\",a[f]-32,e[f]);\n else\n printf(\"(%c,%d)\",a[f],e[f]);\n }\n }\n }"} +{"label": "103", "index": "51329", "code": "int main()\n{\n\tchar a[1000];\n\tint i,j,k,x,s;\n\tscanf(\"%s\",a);\n\ti=0;\n\tj=0;\n\tk=0;\n\tx=strlen(a);\n\tfor (i=0;i='a') && (a[i]<='z'))\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t}\n\tfor (i=0;i96)\n\t\t\ta[i]=a[i]-32;\n\tif(a[i]==0)\n\t\tbreak;}\n\tflag=i;\n\tb[0]=a[0];\n\tj=0;\n\tfor(i=0;i<=flag;i++)\n\t\tc[i]=1;\n\tfor(i=1;i<=flag;i++)\n\t{if(b[j]==a[i])\n\tc[j]++;\n\telse\n\t{j++;\n\tb[j]=a[i];\n\t}\n\t}\n\tfor(i=0;i96)?(c[i]-32):c[i];\n printf(\"(%c,%d)\",c[i],num);\n num=1;\n }\n }\n printf(\"\\n\");\n return(0);\n} \n"} +{"label": "103", "index": "51332", "code": "/*\n * 2.cpp\n *\n * Created on: 2011-12-31\n * Author: 2011\n */\nint main()\n{\n\tchar a[1001],temp;\n\tint i,len,num=1;\n\tcin >>a;\n\tlen = strlen(a);\n\tif (a[0]>='a' && a[0]<='z')\n\t\ttemp = a[0]-32;\n\telse temp = a[0];\n\tfor (i=1; i<=len; i++)\n\t{\n\t\tif (a[i]>='a' && a[i]<='z') a[i]=a[i]-32;\n\t\tif (temp == a[i])\n\t\t\t\tnum++;\n\t\telse\n\t\t{\n\t\t\tcout <<'(' <>a;\n\ti=0;\n\tif(a[i]>='A'&&a[i]<='Z')\n\t\tt=a[i]; \n\telse t=a[i]-32;\n\tn=1;\n\tfor(int i=1;a[i]!=0;i++)\n\t{\n\t\tif(a[i]!=t&&a[i]-32!=t) {\n\t\t\tcout<<'('<='A'&&a[i]<='Z')\n\t\t\t\tt=a[i]; \n\t\t\telse t=a[i]-32;\n\t\t\tn=1;\n\t\t}\n\t\telse n++;\n\t}\n\tcout<<'('<>a;\n\tint lenth = strlen(a);\n\tchar outs[1010]={0};\n\tint outn[1010]={0};\n\tint num = 0;\n\tfor (int i=0;i'Z') \n\t\t\ta[i] -= d;\n\t}\n\toutn[0] = 1;\n\touts[0] = a[0];\n\tfor (int i=0;i='a')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0;i=97&&m<=122) m=m-32;\n\t if(m==temp) char_cnt++;\n\t else if(temp=='*');\n\t else\n {\n printf(\"(%c,%d)\",temp,char_cnt);\n\t\t char_cnt=1;\t\t \n }\n\t temp=m;\n\t if(m=='\\n') break;\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51337", "code": "\n\nint main()\n{\n char a[10000],b[10000];\n int l,zushu=0,c[10000]={1};\n gets(a);\n \n l=strlen(a);\n for(int i=0;i='a'&&a[i]<='z')\n a[i]=a[i]+('A'-'a'); \n b[0]=a[0]; \n \n for(int i=0;i>a;\n len=strlen(a);\n for(i=0;i=97) a[i]=a[i]-32;\n }\n\n //cout<= 'a' && a[i] <= 'z' )\n a[i] -= 32;\n }\n for ( i = 0 ; i < l ; i ++ )\n {\n if ( a[i] == a[i+1] )\n {\n sum++;\n }\n else\n {\n cout<<\"(\"<'Z')\n str[i]=str[i]-32;\n }\n for(i=0;str[i]!='\\0';i++)\n{\n if(str[i+1]==str[i])\n n++;\n else\n {\n a[j]=str[i]; \n b[j]=n;\n j++;\n n=1;\n }\n}\n for(i=0;i=0)\n printf(\"(%c,%d)\",a[0]-32,1);\n else if (t==1&&(a[0]-'a')<=0)\n printf(\"(%c,%d)\",a[i],1); \n else\n { for(i=0;i<=t-2;)\n { for(i=h,k=1;i<=t-2;i++)\n {if(a[i]-a[i+1]==0||a[i]-a[i+1]==32||a[i]-a[i+1]==-32)\n { k=k+1;\n \n }\n else \n break;\n \n }\n h=i+1; \n if(a[i]-'a'>=0)\n printf(\"(%c,%d)\",a[i]-32,k);\n else\n printf(\"(%c,%d)\",a[i],k); \n} \n } }\n"} +{"label": "103", "index": "51342", "code": "int main()\n{\n\tchar s[1000];\n\tcin.getline(s,1000);\n\tint len = strlen(s);\n\tint i , n = 1;\n\tfor(i = 1; i < len;i++)\n\t{\n\t\tif(s[i] == s[i-1] || s[i] - s[i-1] == 'A'-'a' ||s[i] - s[i-1] =='a'-'A')\n\t\t\tn++;\n\t\telse\n\t\t{\n\t\t\tcout <<\"(\" <<(char)toupper(s[i-1])<<\",\"<='a')\n x=y-'a'+'A';\n else\n x=y;\n return x;\n }\nmain()\n{\n char a[101];\n int i,sum=1;\n scanf(\"%s\",a);\n printf(\"(%c,\",shift(a[0]));\n for(i=1;;i++)\n {\n if(shift(a[i])==shift(a[i-1]))\n {\n sum++;\n }\n if((shift(a[i])!=shift(a[i-1]))&&(a[i]!='\\0'))\n {\n printf(\"%d)(%c,\",sum,shift(a[i]));\n sum=1;\n }\n if(a[i]=='\\0')\n {\n printf(\"%d)\",sum);\n break;\n }\n }\n }\n"} +{"label": "103", "index": "51344", "code": "\nint main()\n{\n\tchar ch[100];\n\tint i,j,count=0,m;\n\tcin>>ch;\n\tfor(i=0;i='a'&&ch[i]<='z')\n\t\t\tch[i]=ch[i]-32;\n\t\tj=0;\n\t\n\t\twhile(1)\n\t\t{\tm='A';\n\t\tfor(i=m;i<='Z';i++)\n\t\t{\n\t\t\tif(i==ch[j])\n\t\t\t{\n\t\t\t\twhile(i==ch[j])\n\t\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t cout<<'('<<(char)i<<','<='A'&&str[p]<='Z')\n x=str[p];\n else\n x=str[p]-32;\n }\n if (str[p]!=str[p+1]&&abs(str[p]-str[p+1])!=32)\n {\n cout<<'('<>str;\n length=1;\n display(0);\n}\n \n"} +{"label": "103", "index": "51346", "code": "//??????(??)\nstruct yasuohou\n{\n\tchar letter;\n\tint count;\n\n}yasuohou;\nint main()\n{\n\tchar str[100];\n\tstruct yasuohou lettercount[100];//struct???????????????????????????[]??????\n\tint i,j;//i???????j???????\n\tgets(str);\n\t//?????\n\tfor (i=0;i=97&&str[i]<=122)\n\t\t{str[i]=str[i]-32;\n\t\t}\n\t}\n\n\n\t//??????????????????lettercount[i]\n\ti=0;j=0;\n\tlettercount[j].letter=str[i];\n\tlettercount[j].count=1;\n\tfor (i=0;i>a;\n\tint length;\n\tint i;\n\tlength=strlen(a);\n\tchar b[1000];\n\tint c[1000];\n\tint x;\n\tx=0;\n\tfor(i=0;i='a' && a[i]<='z')\n\t\t\ta[i]=a[i]-32;\n\t}\n\tb[0]=a[0];\n\tc[0]=1;\n\tfor(i=1;i>a;\n\tfor(i=1;a[i-1]!=0;i++)\n\t{\n\t\tif(a[i]==a[i-1]||a[i]-a[i-1]==32||a[i-1]-a[i]==32)sum++;\n\t\telse \n\t\t{\n\t\t\tnum[t]=sum;\n\t\t\tif(a[i-1]>=97)b[t]=a[i-1]-32;\n\t\t\telse b[t]=a[i-1];\n\t\t\tsum=1;\n\t\t\tt++;\n\t\t}\n\t\t\n\t}\n\tfor(j=1;j='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A'; \n }\n for(i=0;i<1000;i++)\n b[i]=0;\n for(i=0;i>a;\n\tfor(int i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]+'A'-'a';\n\tint len=0;\n\tchar before='\\0';\n\tfor(int i=0;i='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0;a[i]!='\\0';)\n {\n n=0;\n while(a[i+1]==a[i])\n {\n n++;\n i++;\n }\n n++;\n printf(\"(%c,%d)\",a[i],n);\n i++;\n }\n} \n"} +{"label": "103", "index": "51353", "code": "int main()\n{\n char str[1000],b[1000];\n gets(str);\n int i,j=1,k=1,a[1000],len;\n len=strlen(str);\n for(i=0;i=97)\n {\n b[i]=b[i]-32;\n }\n printf(\"(%c,%d)\",b[i],a[i]);\n }\n return 0;\n}"} +{"label": "103", "index": "51354", "code": "int main(){\n\tchar a[1000],c[1000];\n int b[1000];\n cin>>a;\n int len,i,j;\n for(i=0;i<1000;i++)\n \tb[i]=1;\n len=strlen(a);\n for(i=0;i='a'&&a[i]<='z')\n \t\ta[i]=a[i]-32;\n a[len]=1;\n len=len+1;\n \tfor(i=0,j=0;i='a')\ncout<<(char)(ch[i]-32);\nelse\ncout<'Z'){\n a[i]=a[i]-32;\n }\n printf(\"(%c,%d)\",a[i],num);\n num=1;\n i++;\n }\n }\n while(i= 'A')\n\t\tnum = m - 'A' - 1;\n\telse if(m <= 'z' && m >= 'a')\n\t\tnum = m - 'a' - 1;\n\treturn num;\n}\n\nint main()\n{\n\tint k = 1,i = 1;\n\tchar a[10001],temp;\n\tcin.getline(a,10001);\n\ttemp = a[0];\n\twhile(a[i] != '\\0')\n\t{\n\t\tif(zimu(a[i]) == zimu(temp))\n\t\t{\n\t\t\tk++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << '(' << (char)('A' + 1 + zimu(temp)) << ',' << k << ')';\n\t\t\tk = 1;\n\t\t\ttemp = a[i];\n\t\t}\n\t\ti++;\n\t}\n\tif(zimu(a[i - 1]) != zimu(a[i - 2] || k > 1))\n\t\tcout << '(' << (char)('A' + 1 + zimu(temp)) << ',' << k << ')';\n\treturn 0;\n}\n"} +{"label": "103", "index": "51358", "code": "\nmain()\n{\n\tchar s[1001],c;\n\tint i,n=1;\n\tgets(s);\n\tif(s[0]>'Z') s[0]-='a'-'A';\n\tc=s[0];\n\tfor(i=1;s[i];i++)\n\t{\n\t\tif(s[i]>'Z') s[i]-='a'-'A';\n\t\tif(s[i]==c) n++;\n\t\telse\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",c,n);\n\t\t\tc=s[i];\n\t\t\tn=1;\n\t\t}\n\t}\n\tprintf(\"(%c,%d)\",c,n);\n}"} +{"label": "103", "index": "51359", "code": "int main()\n{\n char a[1000] ,yasuoc[1000];\n int yasuoi[1000] ;\n\tcin >> a ;\n\tint i = 1 , temp = 1 ,sum =0;\n\twhile (i < strlen(a))\n\t{\n\t\tif (a[i] == a[i-1] || a[i] - a[i-1] == 32 || a[i]-a[i-1] == -32)\n\t\t{\n\t\t\ttemp++ ;\n\t\t\ti++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (a[i - 1] - 'a' >= 0)\n\t\t\t\tyasuoc[sum] = a[i - 1] - 32;\n\t\t\telse\n\t\t\t\tyasuoc[sum] = a[i - 1] ;\n\t\t\tyasuoi[sum++] = temp ;\n\t\t\ttemp = 1 ;\n\t\t\ti++;\n\t\t}\n\t}\n\tif (a[i - 1] - 'a' >= 0)\n\t\tyasuoc[sum] = a[i - 1] - 32;\n\telse\n\t\tyasuoc[sum] = a[i-1] ;\n\tyasuoi[sum++] = temp ;\n\tfor (i = 0 ; i='a')\n\t\tc=(char)( (int)c-'a'+'A' );\n}\n\nint main()\n{\n\tchar a[1000]={0};\n\tint b[1000]={0};\n\n\n\tget();\n\tint i=0;\n\ta[i]=c;\n\tb[i]++;\n\n\tget();\n\twhile(c!='\\n')\n\t{\n\t\tif(c==a[i])\n\t\t\tb[i]++;\n\t\telse\n\t\t{\n\t\t\ti++;\n\t\t\ta[i]=c;\n\t\t\tb[i]++;\n\t\t}\n\t\tget();\n\t}\n\n\tfor(i=0;b[i]!=0;i++)\n\t{\n\t\tcout<<\"(\"<> a;\n\tlen = strlen(a);\n\tc = a[0];\n\tt = 1;\n\tif (c >= 'a' && c <= 'z')\n\t{\n\t\t c = c - 32;\n\t}\n\tfor (i = 1 ; i <= len - 1 ; i++)\n\t{\n\t\tif (c >= 'a' && c <= 'z')\n\t\t{\n\t\t c = c - 32;\n\t\t}\n\t\tif (a[i] == c || a[i] == c + 32)\n\t\t{\n\t\t\tt++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << '(' << c << ',' << t << ')';\n\t\t\tc = a[i];\n\t\t\tt = 1;\n\t\t}\n\t}\n\tcout << '(' << c << ',' << t << ')';\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51363", "code": "int main()\n{\n\tchar a[1000];\n\tint i=0,j,k,b[1000];\n\tscanf(\"%s\",a);\n\twhile(a[i]!='\\0')\n\t{\n\tif(a[i]>='a'&&a[i]<='z')\n\ta[i]=a[i]-'a'+'A';\n\ti++;\n }\n \n for(j=0;j>c;\n int i=0;\n while(i='a'&& c[i]<='z') nowchar=c[i]-'a'+'A';\n \t \t else nowchar=c[i];\n \twhile((c[i+1]==c[i] || c[i+1]==c[i]-'A'+'a' || c[i+1]==c[i]-'a'+'A'))\n \t{ \t\t\tk++;i++;\n \t}cout<<\"(\"<='a'&& c[i]<='z') nowchar=c[i]-'a'+'A';\n \t \t else nowchar=c[i];\n \tcout<<\"(\"<='a'&&a[i]<='z')\n a[i]=a[i]-32;\n }\n for(j=0;a[j]!='\\0';j++)\n {\n if(a[j]==a[j+1])\n b=b+1;\n else\n {\n printf(\"(%c,%d)\",a[j],b);\n b=1;\n }\n }\n getchar();\n getchar();\n getchar();\n getchar();\n getchar();\n \n}"} +{"label": "103", "index": "51366", "code": "main()\n{\n int i,n;\n char str[1100];\n int a[26]={0};\n scanf(\"%s\",str);\n str[strlen(str)]=str[strlen(str)-1]+1;\n for(i=0;i> a + 1;\n\tfor (i = 1; a[i] !=0; i++)\n\t{\n\t\tif (a[i] > 96 && a[i] < 123)\n\t\t{\n\t\t\ta[i] = a[i] - 32;\n\t\t}\n\t}\n\tfor (i = 2; a[i] !='\\0'; i++)\n\t{\n\t\tif (a[i] != a[i-1])\n\t\t{\n\t\t\tlength = i - 1 - pos;\n\t\t\tpos = i - 1;\n\t\t\tcout << \"(\" << a[i-1] << \",\" << length <<\")\";\n\t\t}\n\t}\n\tcout << \"(\" << a[i-1] << \",\" << i - 1 -pos <<\")\";\n\treturn 0;\n}"} +{"label": "103", "index": "51368", "code": "int main()\n{\n\tchar words[1002]={0};\n\tcin.getline(words,1001,'\\n');\n\tint i,j; int count={0};\n\tfor(i=0;words[i]!=0;i++)\n\t{ \n\t\tcount=0;\n\t\tfor(j=i;words[j]!=0;j++)\n\t\t{\n\t\t\t\n\t\t\tif(words[j]==words[i]||words[j]==(words[i]+'A'-'a')||words[i]==(words[j]+'A'-'a'))\n\t\t\t\tcount++;\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ti=j-1;\n\t\t//cout<='a')\n\t\t\twords[i]+='A'-'a';\n\t\tcout<<\"(\"<>str;\n\tfor(len=0;str[len]!='\\0';len++);\n\twhile(k='a')\n\t\t\tc=c-32;\n\t\tfor(i=0;i> a;\n\tfor( int i=0; i='a')\n\t\t\ta[i]+='A'-'a';\n\t}\n\tchar b=a[0];\n\tint t=0;\n\tfor( int i=0; i<=strlen(a); i++ )\n\t{\n\t\tif( b==a[i] )\n\t\t\tt++;\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << b << \",\" << t << \")\";\n\t\t\tt=1;\n\t\t\tb=a[i];\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51371", "code": "\nmain()\n{\n char str[1000];\n gets(str);\n int i,k;\n for(i=0;str[i]!='\\0';i=i+1)\n {\n if(str[i]>='a')\n str[i]=str[i]-32;\n }\n \n i=0;\n k=1;\n for(;str[i]!='\\0';)\n {\n if(str[i]==str[i+1])\n {\n k=k+1;\n i=i+1;\n }\n else\n {\n printf(\"(%c,%d)\",str[i],k);\n i=i+1;\n k=1;\n }\n \n \n }\n\n}\n"} +{"label": "103", "index": "51372", "code": "main()\n{\n char a[1000];\n int n,i,j,count;\n gets(a);\n n=strlen(a);\n for(i=0;i='a')\n a[i]=a[i]-'a'+'A';\n }\n i=0;\n for(;i>str;\n len=strlen(str);\n for(i=0;i=97) str[i]=str[i]-32;\n }\n num=1;\n for(i=0;i='a'&&str[i]<='z')\n {\n str[i]=str[i]-'a'+'A';\n }\n }\n i=0;\n while(i= 'a' )\n\t\t\tam[i] = am[i] - 32;\n\t}\n\tfor (i = 0; i < len; i++)\n\t{\n\t\tfor (j = i + 1; j < len; j++)\n\t\t{\n\t\t\tif (am[j] == am[i] || fabs(am[j] - am[i]) == 32)\n\t\t\t{\n\t\t\t\tflag++;\n\t\t\t}\n\t\t\telse \n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcout <<\"(\"<>str;\n\tint sum =1,i;\n\tfor(i = 0; str[i]!='\\0';i++)\n\t{\n\t\tif('a'<=str[i]&&str[i]<='z')\n\t\t\tstr[i]=str[i]-32;\n\t}\n\tfor(i = 1; str[i]!='\\0';i++)\n\t{\n\t\tif(str[i] == str[i -1])\n\t\t\tsum++;\n\t\telse \n\t\t{\n\t\t\tcout <<'('<> str;\n\tlen = strlen(str);\n\t\n\tfor( i =0, j = 1; j <= len - 1; j++)\n\t{\n\t\t\n\t\tif(str[i] >= 'a')\n\t\t\tstr[i] = str[i] - 32;\n\t\tif(str[j] >= 'a')\n\t\t\tstr[j] = str[j] - 32;\n\n\t\tif( str[i] == str[j] )\n\t\t\tsum++;\n\t if(str[i] != str[j] || (j == len - 1 && str[i] == str[j]) ) \n\t\t{\n\t\t\tflag = 1;\n\t\t\tprintf(\"(%c,%d)\",str[i],sum + 1);\n\t\t\ti = j;\n\t\t\tsum = 0;\n\t\t}\n\t\t\n\t\tif(j == len - 1 && sum == 0 && str[j] != str[j-1])\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",str[j],sum + 1);\n\t\t}\n\t}\n\tif(len == 1)\n\t{\n\t\tif(str[0] >= 'a')\n\t\t\tstr[0] = str[0] - 32;\n\t\tprintf(\"(%c,%d)\",str[i],sum+1);\n\t}\n\n\treturn 0;\n}\n\t\t"} +{"label": "103", "index": "51378", "code": "int main()\n{\n int i,n;\n char l[1000];\n scanf(\"%s\",l);\n n=1;\n for(i=0;l[i]!='\\0';i++)\n {\n if(l[i]==l[i+1]||l[i]==l[i+1]-'a'+'A'||l[i]==l[i+1]-'A'+'a')\n {if(l[i]>='A'&&l[i]<='Z')\n {if(l[i]==l[i+1]||l[i]==l[i+1]-'a'+'A')\n n=n+1;}\n else\n { if(l[i]==l[i+1]||l[i]==l[i+1]-'A'+'a')\n n=n+1;}\n }\n else\n { if(l[i]>='A'&&l[i]<='Z')\n { printf(\"(%c,%d)\",l[i],n);\n n=1;}\n if(l[i]>='a'&&l[i]<='z')\n {l[i]=l[i]-'a'+'A';\n printf(\"(%c,%d)\",l[i],n);\n n=1;}}\n }\n}\n"} +{"label": "103", "index": "51379", "code": "int main()\n{\n\tchar c[1010]={0};\n\tgets (c);\n\tint len=strlen (c);\n\tfor(int i=0;i='a'&&c[s]<='z') c[s]=c[s]-'a'+'A'; \n int a[1000]={0},p=0;\n char C[1000];\n for (int i=0,j;i0&&c[i]==c[i-1]) continue;\n else \n for (j=i;j='a'&&st[t]<='z')st[t]=st[t]-'a'+'A';\n\tfor(t=0;x='a'&&string[i]<='z')\n string[i]=string[i]-'a'+'A';\n }\n char s;\n s = string[0];\n for(i=0;i='a'&&str[i]<='z')\n\t\t{\n\t\t\tstr[i]=str[i]-'a'+'A';\n\t\t}\n\t\ti++;\n\t}\n}\n\t//samechar??????samecount?????\n\tchar samechar[1000];\n\tint samecount[1000]={0};\n\tchar tmp;\n\ttmp=str[0];\n\t//jishu?samechar?????\n\tint jishu=0;\n\tint i1;\n\tfor(i1=0;str[i1]!='\\0';i1++)\n\t{\n\t\tif(tmp==str[i1])\n\t\t{\n\t\t\tsamechar[jishu]=tmp;\n\t\t\tsamecount[jishu]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttmp=str[i1];\n\t\t\tjishu++;\n\t\t\tsamechar[jishu]=tmp;\n\t\t\tsamecount[jishu]++;\n\t\t}\n\t}\n\t//????\n\tint i2;\n\tfor(i2=0;i2<=jishu;i2++)\n\t{\n\t\tprintf(\"(%c,%d)\",samechar[i2],samecount[i2]);\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51385", "code": "main()\n{\n char c[1001],b;\n int j,a=1;\n scanf(\"%s\",c);\n for(j=1;;j++)\n {\n if(c[j]==c[j-1] && c[j]!='\\0' || c[j]==c[j-1]+32 || c[j]==c[j-1]-32)\n {\n a++;\n }\n if(c[j]!=c[j-1] && c[j]!='\\0' && c[j]!=c[j-1]+32 && c[j]!=c[j-1]-32)\n {\n if(c[j-1]>='A' && c[j-1]<='Z')\n printf(\"(%c,%d)\",c[j-1],a);\n if(c[j-1]>='a' && c[j-1]<='z')\n printf(\"(%c,%d)\",c[j-1]+'A'-'a',a);\n a=1; \n } \n if(c[j]=='\\0')\n {\n if(c[j-1]>='A' && c[j-1]<='Z')\n printf(\"(%c,%d)\",c[j-1],a);\n if(c[j-1]>='a' && c[j-1]<='z')\n printf(\"(%c,%d)\",c[j-1]+'A'-'a',a);\n break;\n }\n } \n\n}\n"} +{"label": "103", "index": "51386", "code": "int main()\n{\n char str[200];\n cin >> str;\n int len = strlen(str);\n int i,j=0;\n for (i = 0;i < len; i++)\n {\n if (str[i] >='a' && str[i] <= 'z' )\n {\n str[i] = str[i] - ('a' - 'A');\n }\n }\n char letter[200]={' '};\n int length[200];\n for (i=0;i<=199;i++)\n {\n length[i]=1;\n }\n letter[0] = str[0];\n for (i = 1;i < len; i++)\n {\n if (str[i] == str[i-1] )\n {\n length[j]++;\n }\n else\n {\n j++;\n letter[j]= str[i];\n }\n }\n int kinds = j;\n \n for(i=0;i<=j;i++)\n {\n cout << \"(\" << letter[i] << \",\" << length[i] << \")\" ;\n }\n cout << endl; return 0;\n}"} +{"label": "103", "index": "51387", "code": "//*************************************************\n//***?????????***\n//***??????***\n//***???2013.1.13***\n//*************************************************\nint main ()\n{\n\tchar a[1001],t;\n\tint num,i = 0;\n\tcin >> a;\n\tt = a[0];\n\tnum = 1;\n\twhile(a[i++] != '\\0')\n\t{\n\t\tif (a[i] == a[i - 1] || fabs(a[i] - a[i - 1]) == 'a' - 'A')\n\t\t{\n\t\t\tnum ++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (a[i - 1] >= 'a' && a[i - 1] <= 'z')\n\t\t\t\ta[i - 1] += 'A' - 'a';\n\t\t\tcout << \"(\" << a[i - 1] << \",\" << num << \")\";\n\t\t\tnum = 1;\n\t\t\tt = a[i]; \n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51388", "code": "main()\n{\n char a[1000],b[1000];\n int c[1000],j=0; /*b???? c????????? j???j?*/\n b[0]=0;\n c[1]=0;\n scanf(\"%s\",a);\n for(int i=0;;i++)\n {\n if(a[i]=='\\0') \n { printf(\"(%c,%d)\",b[j],c[j]);\n break;\n }\n if(a[i]==b[j]||a[i]==b[j]+32) c[j]=c[j]+1;\n else\n {\n if(j>0) printf(\"(%c,%d)\",b[j],c[j]);\n j=j+1;\n c[j]=1;\n if(a[i]<=90) b[j]=a[i];\n else b[j]=a[i]-32;\n } \n }\n \n}\n"} +{"label": "103", "index": "51389", "code": "main()\n{\nchar a[1001],t[1001];\nscanf(\"%s\",a);\nint b[1001],i,j,k,h,p=0;\nb[0]=1;\nk=strlen(a);\nfor(h=0;h<=k-1;h++)\n{\n if(a[h]>='a'&&a[h]<='z') a[h]=a[h]+('A'-'a');\n}\nif (k==1) printf(\"(%c,1)\",a[0]);\nelse\n{\nfor(i=0;i<=k-2;i++)\n{\n t[p]=a[i] ;\n if(a[i]==a[i+1]) \n {\n b[p]++;\n }\n else \n {\n p++;\n t[p]=a[i+1];\n b[p]=1;\n }\n}\nfor(j=0;j<=p;j++) printf(\"(%c,%d)\",t[j],b[j]);\n}\n}\n"} +{"label": "103", "index": "51390", "code": "\n\n\n\nint main()\n{\n\tint m,k;\n\n\tint i,j;\n\n\tint count=1;\n\n\tchar me[1001];\n\tint mem[1001]; \n\n\tchar s[1001];\n\tcin.getline(s,sizeof(s));\n\n\tmemset(mem,0,sizeof(mem));\n\n\tj=1;\n\tme[1]=s[0];\n\n\n\n\tfor(i=0;s[i]!=0;i++)\n\t{\n\n\t\tif(s[i]==me[j] || s[i]-'a'==me[j]-'A'|| s[i]-'A'==me[j]-'a')\n\t\t{\n\t\t\tmem[j]++;\n\t\t}\n\t\telse{\n\t\t\tj++;\n\t\tme[j]=s[i];\n\t\tmem[j]++;\n\t\tcount++;\n\t\t}\n\t}\n\n\tfor(i=1;i<=count;i++)\n\t{\n\t\tif(me[i]>='a' && me[i]<='z')\n\t\t{\n\t\t\tme[i]=me[i]-'a'+'A';\n\t\t}\n\t}\n\n\t\n\tfor(i=1;i<=count;i++)\n\t{\n\t\tcout<<\"(\"<> a;\n\tif (a[0] >= 'a' && a[0] <= 'z')\n\t\tc = a[0] - 'a' + 'A';\n\telse\n\t\tc = a[0];\n\tcout << \"(\" << c << \",\"; \n\tfor (int i = 0; a[i] != '\\0'; i++)\n\t{\n\t\tif (a[i] == c || a[i] == c - 'A' + 'a')\n\t\t{\n\t\t\tn++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (a[0] >= 'a' && a[0] <= 'z')\n\t\t\t\tc = a[i] - 'a' + 'A';\n\t\t\telse\n\t\t\t\tc = a[i];\n\t\t\tcout << n << \")(\" << c << \",\";\n\t\t\tn = 1;\n\t\t}\n\t}\n\tcout << n << \")\" << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51392", "code": "int main()\n{\n\t\n\tint i,j,a,e,f,d,h;\n int k,m,n;\n\tint y[100][100];\n\tchar x[10000];\n\ta=1;\n\tscanf(\"%s\",x);\n\tfor(i=0;x[i];i++){\n\t\t\n\t\t\tif(x[i]<='z'&&x[i]>='a')\n\t\t\t\tx[i]=x[i]+'A'-'a';\n\t}\n\tfor(i=0;x[i];i++){\n\t\tif(x[i]==x[i+1])a++;\n\t\telse {\n\t\t\tprintf(\"(%c,%d)\",x[i],a);\n\t\t\ta=1;\n\t\t}\n\t\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51393", "code": "int main()\n{\n\tchar a[1001];\n\tscanf (\"%s\",a);\n\tint i;\n\tfor (i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]-'a'+'A';\n\t}\n\tint t=1;\n\tfor (i=0;i> a;\n\tfor (i = 0; i < strlen(a); i++)\n\t{\n\t\n\t\tt = a[i];\n\t\tif (a[i + 1] == t || a[i + 1] - t == 'A' - 'a' || a[i + 1] - t == 'a' - 'A')\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tif (t > 'Z')\n\t\t\t\tcout << \"(\" << (char)(t - 'a' + 'A');\n\t\t\telse\n\t\t\t\tcout << \"(\" << (char)t;\n\t\t\tcout << \",\" << count << \")\" ;\n\t\t\tcount = 1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51395", "code": "main()\n{\n char a[1000];\n int l; \n scanf(\"%s\",a);\n l=strlen(a);\n int t=1; \n for(int i=0;i='A'&&a[i]<='Z') \n printf(\"(%c,%d)\",a[i],t); \n else\n printf(\"(%c,%d)\",a[i]-'a'+'A',t); \n t=1; \n } \n } \n getchar();getchar(); \n \n}\n"} +{"label": "103", "index": "51396", "code": "int main()\n{\n\tchar s[10000];\n\tchar a[10000];\n\tint i,j,k,l,m,n;\n\tint b[10000];\n\tchar c[10000],d;\n\tl=0;\n\tscanf(\"%s\",s);\n\tfor(i=0;(d=s[i])!='\\0';i++)\n\t{\n\t\tl=l+1;\n\n\t}\n\t\n\tn=1;k=0;j=0;\nfor(i=0;(d=s[i])!='\\0';i++)\n\t{\n\t\n\t\tif(s[i]==s[i+1]||s[i]==s[i+1]-32||s[i]==s[i+1]+32)\n\t\t{n=n+1;if(s[i]>=97){a[j]=s[i]-32;}else a[j]=s[i];b[j]=n;}\n\t\telse {if(s[i+1]!='\\0')\n\t\t\t\n\t\t{k=k+1;if(s[i]>=97){a[j]=s[i]-32;}else a[j]=s[i];b[j]=n;j=j+1;n=1;}\n\t\telse\n\t\t{k=k+1;if(s[i]>=97){a[j]=s[i]-32;}else a[j]=s[i];b[j]=n;j=j+1;}\n\t\t}\n\t}\nfor(i=0;i='a'&&str[i]<='z')\n\t\tstr[i]=str[i]+'A'-'a';\n\t}\n\tcube=str[0];\n\tfor(i=0;i<=length;i++)\n\t{\n\t\tif(str[i]==cube)\n\t\tcount++;\n\t\tif(str[i]!=cube)\n\t\t{\n\t\t\tprintf(\"(%c,%d)\",cube,count);\n\t\t\tcube=str[i];\n\t\t\tcount=1;\n\t\t\t\n\t\t}\n\t}\n\t\n}\n\n\n\n"} +{"label": "103", "index": "51398", "code": "\nint main()\n{\n\tint num;\n\tchar a[1001], temp;\n\tcin.getline(a, 1001);\n\tchar *p = a;\n\twhile (*p != '\\0')\n\t{\n\t\tnum = 0;\n\t\tif (*p >= 65 && *p <= 90)\n\t\t{\n\t\t\ttemp = *p;\n\t\t\tcout << \"(\" << *p << \",\";\n\t\t}\n\t\telse if (*p >= 97 && *p <= 122)\n\t\t{\n\t\t\t*p = *p - 32;\n\t\t\ttemp = *p;\n\t\t\tcout << \"(\" << *p << \",\";\n\t\t}\n\t\tp++;\n\t\twhile (*p == temp || *p == temp + 32)\n\t\t{\n\t\t num++;\n\t\t\tp++;\n\t\t}\n\t\tcout << num + 1 << \")\";\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51399", "code": "int main()\n{\n char n[1000];\n int x[1000],a,b,c,i,j,k,t=0;\n scanf(\"%s\",n);\n i=0;\n for(j=0;j<1000;j++)\n {\n x[j]=0;\n if(n[j]!=0)i++;\n else break;\n }\n for(j=0;j='a')&&(n[j]<='z'))\n n[j]=n[j]-32;\n }\n j=0;\n for(j=0;j='a'&&a[0]<='z')\n a[0]=a[0]+'A'-'a';\n b[0]=a[0];\n c[0]=1;\n for(i=1;i='a'&&a[i]<='z')\n a[i]=a[i]+'A'-'a';\n if(a[i]==a[i-1])\n c[j]=c[j]+1;\n else\n {\n printf(\"(%c,%d)\",b[j],c[j]);\n j=j+1;\n b[j]=a[i];\n c[j]=1;\n }\n }\n printf(\"(%c,%d)\",b[j],c[j]);\n getchar();\n getchar();\n}\n"} +{"label": "103", "index": "51401", "code": "int main()\n{\n\tchar str[1002] = {'\\0'};\n\tint counts = 1;\n\tfor (int i = 0; str[i - 1] != '\\n'; i ++)\n\t{\n\t\tstr[i] = getchar();\n\t\tif (str[i] >= 'a' && str[i] <= 'z')\n\t\t\tstr[i] = str[i] - 'a' + 'A';\n\t}\n\tfor (int i = 0; str[i] != '\\n'; i ++)\n\t{\n\t\tif (str[i] == str[i+1])\n\t\t\tcounts ++;\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << str[i] << ',' << counts << ')';\n\t\t\tcounts = 1;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51402", "code": "char str[1001],letter[27],temp;\nint i,start[27],l,s=1,op='A'-'a',\n opl='a'-'A';\nint main()\n{\n\n cin>>str;\n l=strlen(str);\n letter[1]=str[0];\n temp=letter[1];\n start[1]=0;\n for(i=0;i='a'&&letter[i]<='z')\n letter[i]=letter[i]+op;\n if(i='a' && str[j]<='z') str2[j]=str[j]-'a'+'A';\n else str2[j]=str[j];}\n \n for (i=0;i='a'&&a[n]<='z')\n a[n]+='A'-'a';\n else\n a[n]=a[n];\n }\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i+1]==a[i])\n c++;\n else\n {\n printf(\"(%c,%d)\",a[i],c);\n c=1;\n }\n }\n }\n"} +{"label": "103", "index": "51405", "code": "\nint main()\n{\n\tint count = 1, flag = 1;\n\tchar a, last = '0';\n\twhile ((a = cin.get()) != '\\n')\n\t{\n\t\tflag = 1;\n\t\tif (last >= 'a' && last <= 'z')\n\t\t\tif (a == last || a == last - 32)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\tif (last >= 'A' && last <= 'Z')\n\t\t\tif (a == last || a == last + 32)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\tflag = 0;\n\t\t\t}\n\t\tif (flag)\n\t\t{\n\t\t\tif (last != '0')\n\t\t\t\tcout << count << \")\";\n\t\t\tswitch (a)\n\t\t\t{\n\t\t\tcase 'a': cout << \"(A,\"; break;\n\t\t\tcase 'A': cout << \"(A,\"; break;\n\t\t\tcase 'b': cout << \"(B,\"; break;\n\t\t\tcase 'B': cout << \"(B,\"; break;\n\t\t\tcase 'c': cout << \"(C,\"; break;\n\t\t\tcase 'C': cout << \"(C,\"; break;\n\t\t\tcase 'd': cout << \"(D,\"; break;\n\t\t\tcase 'D': cout << \"(D,\"; break;\n\t\t\tcase 'e': cout << \"(E,\"; break;\n\t\t\tcase 'E': cout << \"(E,\"; break;\n\t\t\tcase 'f': cout << \"(F,\"; break;\n\t\t\tcase 'F': cout << \"(F,\"; break;\n\t\t\tcase 'g': cout << \"(G,\"; break;\n\t\t\tcase 'G': cout << \"(G,\"; break;\n\t\t\tcase 'h': cout << \"(H,\"; break;\n\t\t\tcase 'H': cout << \"(H,\"; break;\n\t\t\tcase 'i': cout << \"(I,\"; break;\n\t\t\tcase 'I': cout << \"(I,\"; break;\n\t\t\tcase 'j': cout << \"(J,\"; break;\n\t\t\tcase 'J': cout << \"(J,\"; break;\n\t\t\tcase 'k': cout << \"(K,\"; break;\n\t\t\tcase 'K': cout << \"(K,\"; break;\n\t\t\tcase 'l': cout << \"(L,\"; break;\n\t\t\tcase 'L': cout << \"(L,\"; break;\n\t\t\tcase 'm': cout << \"(M,\"; break;\n\t\t\tcase 'M': cout << \"(M,\"; break;\n\t\t\tcase 'n': cout << \"(N,\"; break;\n\t\t\tcase 'N': cout << \"(N,\"; break;\n\t\t\tcase 'o': cout << \"(O,\"; break;\n\t\t\tcase 'O': cout << \"(O,\"; break;\n\t\t\tcase 'p': cout << \"(P,\"; break;\n\t\t\tcase 'P': cout << \"(P,\"; break;\n\t\t\tcase 'q': cout << \"(Q,\"; break;\n\t\t\tcase 'Q': cout << \"(Q,\"; break;\n\t\t\tcase 'r': cout << \"(R,\"; break;\n\t\t\tcase 'R': cout << \"(R,\"; break;\n\t\t\tcase 's': cout << \"(S,\"; break;\n\t\t\tcase 'S': cout << \"(S,\"; break;\n\t\t\tcase 't': cout << \"(T,\"; break;\n\t\t\tcase 'T': cout << \"(T,\"; break;\n\t\t\tcase 'u': cout << \"(U,\"; break;\n\t\t\tcase 'U': cout << \"(U,\"; break;\n\t\t\tcase 'v': cout << \"(V,\"; break;\n\t\t\tcase 'V': cout << \"(V,\"; break;\n\t\t\tcase 'w': cout << \"(W,\"; break;\n\t\t\tcase 'W': cout << \"(W,\"; break;\n\t\t\tcase 'x': cout << \"(X,\"; break;\n\t\t\tcase 'X': cout << \"(X,\"; break;\n\t\t\tcase 'y': cout << \"(Y,\"; break;\n\t\t\tcase 'Y': cout << \"(Y,\"; break;\n\t\t\tcase 'z': cout << \"(Z,\"; break;\n\t\t\tcase 'Z': cout << \"(Z,\"; break;\n\t\t\t}\n\t\t\tlast = a;\n\t\t\tcount = 1;\n\t\t}\n\t}\n\tcout << count << \")\" << endl;\n\treturn 0;\n}\n"} +{"label": "103", "index": "51406", "code": "int main()\n{\n\tchar s[5000];\n\tint n=0;\n\tcin.getline(s,1500);\n\tfor(int i=0;i='a')\n\t\t\t\ts[i]=s[i]-'a'+'A';\n\t\t\tcout<='a')\n\t\t\t\ts[i]=s[i]-'a'+'A';\n\t\t\tif(s[i]==s[i-1])\n\t\t\t\tn++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout<='a'&& a[i]<='z')\n b[i]=a[i]+m;\n else\n b[i]=a[i];\n }\n b[i]='\\0';\n p=1;\n for(k=0;b[k+1]!='\\0';k++)\n {\n if(b[k]==b[k+1])\n {\n p=p+1;\n }\n else\n {\n printf(\"(%c,%d)\",b[k],p);\n p=1;\n }\n }\n printf(\"(%c,%d)\",b[k],p);\n}"} +{"label": "103", "index": "51408", "code": "main ()\n{\n char a[10000];\n gets (a);\n int i;\n for (i=0;a[i]!='\\0';i++)\n {\n if (a[i]<='z'&&a[i]>='a')\n {\n\t a[i]=a[i]+('A'-'a');\t\n\t}\n }\n int count =1;\n for (i=0;a[i]!='\\0';i++)\n {\n if (a[i+1]==a[i])\n {\n\t\t\t count++;\n\t }\n\t else\n\t {\n\t\t\tprintf (\"(%c,%d)\",a[i],count);\n\t\t\tcount=1;\n\t }\n\t }\n \t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n}"} +{"label": "103", "index": "51409", "code": "/*\n * ??????.cpp\n *\n * Created on: 2013-1-11\n * Author: ??\n * ??????????????????????????????????????????????????????\n * ????????????????????????????\"AAABBBBCBB\"??????(A,3)(B,4)(C,1)(B,2)????\n * ??????????????????????\n ???????????????????????????\n *\n */\nint main()\n{\n\tint i,s=0;\n\tchar str[1100],t;\n\tcin>>str;\n\tfor(i=0;i96)str[i]-=32;\n\t\tif(str[i]==t)s++;\n\t\telse{\n\t\t\tif(i!=0)cout<> a;\n\tint i = 0, j, len = strlen(a);\n\twhile (i < len) {\n\t\tif (a[i] >= 'a')\n\t\t\ta[i] = a[i] - 32;\n\t\tj = i;\n\t\twhile (true) {\n\t\t\tif (a[i + 1] >= 'a')\n\t\t\t\ta[i + 1] = a[i + 1] - 32;\n\t\t\tif (a[i + 1] == a[j])\n\t\t\t\ti++;\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\tcout << \"(\" << a[j] << \",\" << i - j + 1 << \")\";\n\t\ti++;\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51411", "code": "main()\n{\n char s[1000];\n int l,i,j=1;\n gets(s);\n l=strlen(s);\n for(i=0;i='a'&&s[i]<='z')\n {printf(\"(%c,%d)\",s[i]-32,j);\n j=1;}\n else\n {printf(\"(%c,%d)\",s[i],j);\n j=1;}\n }\n }\n getchar();\n getchar();\n return 0;\n }\n"} +{"label": "103", "index": "51412", "code": "int main()\n{\n char str[1001];\n int i,j=0;\n scanf(\"%s\",str);\n for (i=0;str[i]!='\\0';i++)\n {\n if ((str[i]==str[i+1])||(str[i]==str[i+1]-'a'+'A')||(str[i]==str[i+1]+'a'-'A'))\n j++;\n else\n {if (str[i]>='Z') printf(\"(%c,%d)\",(str[i]-'a'+'A'),j+1);\n else printf(\"(%c,%d)\",str[i],j+1);\n j=0;\n }\n }\n return 0;\n}\n"} +{"label": "103", "index": "51413", "code": "main()\n{\n char a[1001];\n gets(a);\n int i,p;\n i=0;\n while (a[i]!='\\0')\n {\n if (a[i]>='a'&&a[i]<='z')\n {\n a[i]=a[i]+'A'-'a';\n }\n i++;\n }\n p=1;\n i=0;\n while (a[i+1]!='\\0')\n {\n if (a[i]==a[i+1])\n {\n p=p+1;\n }\n else \n {\n printf(\"(%c,%d)\",a[i],p);\n p=1;\n }\n if (a[i+2]=='\\0')\n {\n if (a[i]==a[i+1])\n {\n printf(\"(%c,%d)\",a[i],p); \n }\n else\n {\n printf(\"(%c,%d)\",a[i+1],p);\n }\n }\n i++;\n } \n if (a[1]=='\\0')\n {\n if (a[0]>='a'&&a[0]<='z')\n {\n a[0]=a[0]+'A'-'a';\n printf(\"(%c,%d)\",a[0],1);\n }\n else \n {\n printf(\"(%c,%d)\",a[0],1);\n }\n } \n}"} +{"label": "103", "index": "51414", "code": "\n\nmain()\n{\n char in[1000];\n int i,num=1,a,b;\n scanf(\"%s\",in);\n for(i=0;in[i]!='\\0';i++)\n {\n a=in[i];\n b=in[i+1];\n if(a==b || a-b==32 ||a-b==-32) num++; \n else\n {\n if(in[i]<91) printf(\"(%c,%d)\",in[i],num);\n else printf(\"(%c,%d)\",in[i]-32,num);\n num=1;\n }\n }\n \n}\n"} +{"label": "103", "index": "51415", "code": "int main()\n{\nchar a[10000];\ncin>>a;\nint size=strlen(a);\nint i,k;\nfor(i=0;i'Z')\na[i]=a[i]-('a'-'A');\nfor(i=0;i=97)\n\t{\n\t\td=b-32;\n\t\tcout<<\"(\"<>a;\n\twhile(a[m]!='\\0')\n\t{\n\t\tm++;\n\t}\n\twhile(i=97)\n string[i]=string[i]-32;\n }\n for(i=0;i> str;\n\tfor (i = 0; str[i] != '\\0'; i++)\n\t{\n\t\tif (str[i] == str[i + 1] || str[i] == str[i + 1] + 'a' - 'A' || str[i] == str[i + 1] + 'A' - 'a')\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tcount++;\n\t\t\tif (str[i] >= 'A' && str[i] <= 'Z')\n\t\t\t\tcout << \"(\" << str[i] << \",\" << count << \")\";\n\t\t\telse\n\t\t\t{\n\t\t\t\tstr[i] += 'A' - 'a';\n\t\t\t\tcout << \"(\" << str[i] << \",\" << count << \")\";\n\t\t\t}\n\t\t\tcount = 0;\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}\n\n\n"} +{"label": "103", "index": "51420", "code": "int main()\n{\n\tchar x[1000];\n\tint i,changdu,num=0;\n\tscanf(\"%s\",x);\n\tchangdu=strlen(x);\n\tfor(i=0;i='a'&&x[i]<='z')\n\t\t\tx[i]-=32;\n\t}\n\tif(changdu==1)printf(\"(%c,%d)\",x[0],1);\n\tfor(i=0;i= 'A' && ch[j - num[i]] <= 'Z')\n\t\t\t\tcout << ch[j - num[i]];\n\t\t\telse if (ch[ j - num[i]] >= 'a' && ch[ j - num[i]] <= 'z')\n\t\t\t\tcout <<(char)(ch[ j - num[i]] - 'a' + 'A');\n\t\t\tcout << ',' << num[i] << ')';\n\t\t}\n\t}\n\treturn 0;\n}\n\n"} +{"label": "103", "index": "51422", "code": "main()\n{ \n char s[1001];\n char c; \n int i;\n int n=1;\n gets(s);\n for(i=0;(s[i])!='\\0';i++)\n {\n if (s[i]>='a'&&s[i]<='z')\n s[i]=s[i]-'a'+'A';\n }\n for(i=0;(s[i])!='\\0';i++)\n {\n if (s[i]==s[i+1])\n n=n+1;\n else \n {\n printf(\"(%c,%d)\",s[i],n);\n n=1;\n }\n }\n}\n\n\n\n \n"} +{"label": "103", "index": "51423", "code": "int main()\n{\nchar s[1000];\nint a[1000],i;\nscanf(\"%s\",s);\nfor(i=0;i='a'&&s[i]<='z')\ns[i]=s[i]-'a'+'A';\nfor(i=0;i>s;\n int len=strlen(s);\n int i=0,j,k;\n int flag=0;\n while(i>str;\n\tlen=strlen(str);\n\tfor(i=0;i='a'&&str[i]<='z')\n\t\t\tstr[i]-=32;\n\t}\n\tc=str[0];\n\tfor(i=0;i='a'&&a[j]<='z') a[j]=a[j]-32; \n j++; \n }\n for(i=0;a[i]!='\\0';i++)\n {\n if(a[i]==a[i+1])\n count+=1;\n else {printf(\"(%c,%d)\",a[i],count);count=1;continue;}\n }\n}\n"} +{"label": "103", "index": "51428", "code": "\nmain()\n{\n char s[100000];\n scanf(\"%s\",s);\n int i,a[strlen(s)],c;\n for (i=0;i='a'&&b[i]<='z')\n b[i]=b[i]+'A'-'a';\n for (i=0;i<=c;i++)\n printf(\"(%c,%d)\",b[i],a[i]); \n\n}\n"} +{"label": "103", "index": "51429", "code": " \nmain()\n{\nint j=1,i=0;\nchar s[1001],s2[1001];\ngets(s);\nfor(;i<=1000;i++)\n{\n if('a'<=s[i]&&s[i]<='z')\n s2[i]=(s[i]-'a'+'A');\n else s2[i]=s[i];\n }\n \nfor(i=0;i<=1000&&(s2[i]!='\\0');i++)\n{\n if(s2[i]==s2[i+1])\n j++;\n else \n {\n printf(\"(%c,%d)\",s2[i],j);\n j=1;\n }\n}\n} "} +{"label": "103", "index": "51430", "code": "int main()\n{\n char a[1001];\n cin >> a;\n int i,j,k;\n int f=1,f2=0;\n for (i=0;i> a;\n\tfor(i = 0; i < strlen(a); i++)\n\t{\n\t\tif(a[i] > 96 && a[i] < 123)\n\t\t\ta[i] -= 32;\n\t}\n\tfor(i = 0; i < strlen(a);)\n\t{\n\t\tx = a[i];\n\t\tfor(j = i + 1; j < strlen(a); j++)\n\t {\n\t\t if(x != a[j])\n\t\t\t{\n\t\t\t\tcout << \"(\" << a[i] << \",\" << j - i << \")\";\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n\t\tif(j == strlen(a))\n\t\t{\n\t\t\tcout << \"(\" << a[i] << \",\" << j - i << \")\";\n\t\t}\n\t\ti = j;\n\t}\n\n\treturn 0; \n}"} +{"label": "103", "index": "51432", "code": "\nint main()\n{\nchar s[1000];\nint a[1000],t,len;\nchar b[1000],k;\nint i,j;\n\nfor(i=0;i<1000;i++)\na[i]=0;\n\ngets(s);\nlen=strlen(s);\n\n\n\nfor(i=0;i0)\n s[i]=s[i]+'A'-'a';\n //printf(\"%c\",s[i]);\n \n}\n\nk=s[0];\nb[0]=s[0];\na[0]=1;\nj=0;\nif(len==1)\nprintf(\"(%c,%d)\",b[0],a[0]);\nelse\n { \n for(i=1,j=0;i> str;\n\tl = strlen(str);\n\twhile(i < l)\n\t{\n\t\tnum=1;\n\t\twhile(str[i+1]==str[i]||str[i+1]==str[i]+32||str[i+1]==str[i]-32)\n\t\t{\n\t\t\ti++;\n\t\t\tnum++;\n\t\t}\n\t\tif(str[i]-'0' <= 'Z'-'0')\n\t\t{\n\t\t\tcout << \"(\" << str[i] <<\",\" << num << \")\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm ='A'-'a'+str[i] -65;\n\t\t\tcout << \"(\" << s[m] <<\",\" << num << \")\";\n\t\t}\n\t\ti++;\n\t}\n\n\treturn 0;\n}"} +{"label": "103", "index": "51434", "code": "main()\n{\n char s[10000];\n int i;\n gets(s);\n int l=strlen(s);\n for(i=0;i>a;\n\tint l,m=1,A=0;\n\tl=strlen(a);\n\tstruct\n\t{\n\t\tchar c;\n\t\tint d;\n\t}b[27];\n\tfor(int i=0;i=97)\n\t\t\ta[i]-=32;\n\t}\n\tb[1].c=a[0],b[1].d=1;\n\tfor(int i=1;i>a;\n\tint len=strlen(a),i=0;\n\tfor(i=0;i='a'&&a[i]<='z')\n\t\t\ta[i]=a[i]+'A'-'a';\n\t}\n\tint num=1;\n\tfor(i=0;i>str;\n\tlen=strlen(str);\n\tint num=1;\n\tint time=0;\n\tfor(int j=0;j'a'-1) str[j]=str[j]+'A'-'a';\n\t}\n\tnow=str[0];\n\tcout<<'('<='a'&&s[i]<='z')\n\t\t{\n\t\t\ts[i]-=32;\n\t\t}\n\t}\n\ta[0]=s[0];\n\tx=s[0];\n\tfor(i=1,t=1;i>str;\n\tfor(int i = 1; i < strlen(str); i++)\n\t{\n\t\tif(str[i] != str[i - 1] && str[i] != str[i - 1] + 32 && str[i] != str[i - 1] - 32)\n\t\t{\n\t\t\tif(str[i - 1] < 'Z') a = str[i - 1]; \n\t\t\telse a = str[i - 1] - 32;\n\t\t\tcout<<'('<= 'a' && b[j] <= 'z') {\n\t\t\tb[j] = b[j] - 32;\n\t\t}\n\t}\n\tfor (j = 0; j < i-1; j++) {\n\t\tcout << \"(\" << b[j] << \",\" << count[j] << \")\";\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51441", "code": "int main()\n{\n\tchar a[1001];\n\tchar temp;\n\tint i, j, l, count = 0;\n\tcin.getline(a, 1000);\n\tl = strlen(a);\n\ta[l] = '.';\n\tfor(i = 0; i <= l - 1; i++)\n\t{\n\t\tif(a[i] >= 'a' && a[i] <= 'z')\n\t\t{\n\t\t\ta[i] = a[i] + ('A' - 'a');\n\t\t}\n\t}\n\ttemp = a[0];\n\tfor(i = 0; i <= l; i++)\n\t{\n\t\tif(a[i] == temp)\n\t\t{\n\t\t\tcount++;\n\t\t}\n\t\tif(a[i] != temp)\n\t\t{\n\t\t\tcout << \"(\" << temp << \",\" << count << \")\";\n\t\t\ttemp = a[i];\n\t\t\tcount = 1;\n\t\t}\n\t}\n\tcin.get();\n\treturn 0;\n}"} +{"label": "103", "index": "51442", "code": "int main()\n{\n char s[1000];\n\tint len,i,j,t;\n\tcin>> s;\n\tlen=strlen(s);\n\ti=0;t=0;\n\twhile(i='a'){s[i]=s[i]-32;cout<<\"(\"<= 97)\n\t\t\tstr[i] -= 32;\n\t}\n\tt = str[0];\n\ti = 0;\n\twhile (i < len)\n\t{\n\t\tif (t == str[i])\n\t\t\tcount++;\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << t << \",\" << count << \")\";\n\t\t\tcount = 1;\n\t\t\tt = str[i];\n\t\t}\n\t\ti++;\n\t}\n\tcout << \"(\" << t << \",\" << count << \")\" << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51444", "code": "struct yasuo\n{\n\tchar d;\n\tint m;\n}b[1010];\nint main()\n{\n\tint n,i,k=0;\n\tchar a[1010];\n\tgets(a);\n\tn=strlen(a);\n\tfor(i=0;i<=n-1;i++)\n { \n if(a[i]>=97)\n a[i]=a[i]-32; \n }\n\tfor (i=0;i<=n-1;i++)\n\t{\n\t\tb[k].d=a[i];\n\t\tb[k].m=1;\n\t\twhile(a[i+1]==a[i])\n\t\t{\n\t\t\tb[k].m++;\n\t\t\ti++;\n\t\t}\n\t\tk++;\n\t}\n\tfor(i=0;i<=k-1;i++)\n\t{\n\t printf(\"(%c,%d)\",b[i].d,b[i].m);\n\t}\n\treturn 0;\n}\n"} +{"label": "103", "index": "51445", "code": "int main()\n{\n char letter[1000];\n int nletter[1000];\n char str[1000];\n\n memset(letter,'\\0',1000);\n memset(str,'\\0',1000);\n\n for(int i=0;i<=1000-1;i++)nletter[i]=1;\n\n cin>>str;\n int len=strlen(str);\n int n=0;\n\n letter[0]=str[0];\n\n for(int i=0;i<=len-1;i++)\n {\n if(letter[n]!=str[i+1]&&(letter[n]!=str[i+1]+'A'-'a')&&(letter[n]!=str[i+1]-'A'+'a'))\n {\n letter[++n]=str[i+1];\n }\n else\n {\n nletter[n]++;\n }\n }\n for(int i=0;i<=n-1;i++)\n {\n if(letter[i]>'Z')letter[i]+=('A'-'a');\n }\n\n for(int i=0;i<=n-1;i++)\n {\n cout<<\"(\"<>a;\n\tchar b=a[0];\n\tint i=0,count=0;\n\twhile (1)\n\t{\n\t\tif (a[i]==b||a[i]==b-32||a[i]==b+32)\n\t\t{\n\t\t\tcount++;\n\t\t\ti++;\n\t\t}\n\t\telse if (a[i]!=b&&a[i]!=b-32&&a[i]!=b+32)\n\t\t{\n\t\t\tif (a[i-1]<97)\n\t\t\t{\n\t\t\t\tchar c=a[i-1];\n\t\t\t\tcout<<\"(\"<=97)\n\t\t\t{\n\t\t\t\tchar d=a[i-1]-32;\n\t\t\t\tcout<<\"(\"<=97)\n\t\t\t{\n\t\t\t\tchar f=a[i-1]-32;\n\t\t\t\tcout<<\"(\"<=97 && str[i] <= 122)\n\t\t\tstr[i] = str[i] - 32;\n\t}\n\n\t//???????\n\tj = 0; //????????\n\ti = 0; //?????\n\n\tlc[j].c = str[0];\n\tlc[j].count = 1;\n\twhile (true)\n\t{\n\t\tif (str[i] == str[i + 1])\n\t\t{\n\t\t\tlc[j].count++;\n\t\t\ti++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (str[i + 1] == '\\n')\n\t\t\t\tbreak;\n\n\t\t\tj++;\n\t\t\tlc[j].c = str[i + 1];\n\t\t\tlc[j].count = 1;\n\t\t\ti++;\n\t\t}\n\t}\n\t\n\t//??\n\tfor (int i = 0; i <=j; i++)\n\t{\n\t\tprintf(\"(%c,%d)\", lc[i].c, lc[i].count);\n\t}\n\tprintf(\"\\n\");\n\treturn 0;\n}"} +{"label": "103", "index": "51448", "code": "int main()\n{\n\tint i,t;\n\tchar a[1000],b;\n\tcin>>a;\n\tfor(i=0;i96)\n\t\t{\n\t\t\ta[i]=a[i]-32;\n\t\t}\n\t}\n\tb=a[0];\n\tt=1;\n\tfor(i=1;i>a;\n\tlen = strlen(a);\n\tfor(i = 0;i < len ;i ++)\n\t{\n\t\tif(a[i] > 'Z')\n\t\t{\n\t\t\ta[i] = a[i] - 'a' + 'A';\n\t\t}\n\t}\n\tfor(i =0; i < len ;i ++)\n\t{\n\t\tj = i;\n\t\twhile(a[j] == a[i])\n\t\t{\n\t\t\tj ++;\n\t\t\tnum[i] ++;\n\t\t}\n\t\tcout<<\"(\"<='a'&&s[i]<='z')\n\t\ts[i]=s[i]-'a'+'A';\n\t}\n\tt=1;\n\tfor(i=0;i='a'&&a[j]<='z')\n {\n a[j]=a[j]+'A'-'a'; \n } \n}\nfor(k=0;a[k]!='\\0';k++)\n{ \n if(a[k]==a[k+1])\n {\n count++; \n }\n else\n {\n printf(\"(%c,%d)\",a[k],count);\n count=1;\n }\n}\nreturn 0;\n}"} +{"label": "103", "index": "51452", "code": "int main()\n{\n\tint i,len,sum;\n\tchar temp,str[1000]={0};\n\tgets(str);\n\tlen=strlen(str);\n\tfor(i=0;i=97)\n\t\t\tstr[i]=str[i]-32;\n\ttemp=str[0];\n\tsum=0;\n\tfor(i=1;i96&&a[i]<123)a[i]=a[i]-32;\n\tfor(i=0;i='a' && a[0]<='z')\n a[0] = a[0] - 'a' + 'A';\n char p = a[0];\n for(i = 1;i <= l; i++)\n {\n if(a[i]>='a' && a[i]<='z')\n a[i] = a[i] - 'a' + 'A';\n if(a[i] != p)\n {\n printf(\"(%c,%d)\",p,t);\n t = 1;\n p = a[i]; \n }\n else t++;\n }\n\n return 0; \n}\n"} +{"label": "103", "index": "51455", "code": "int main()\n{\n char a[1002], t;\n int i, j = 0, k, num[1002], m[1002];\n \n for(i = 0; i <= 1000; i++)\n num[i] = 1;\n \n cin.getline(a, 1001);\n \n m[0] = 0;\n for(i = 0; a[i] != '\\0'; i++)\n {\n if( (a[i] == a[i + 1])||(fabs(a[i] - a[i + 1]) == 32) )\n {\n num[j]++;\n m[j] = i;\n }\n else\n {\n m[j] = i;\n j++;\n }\n }\n \n for(i = 0; i < j; i++)\n {\n if( (a[m[i]] >= 'a')&&(a[m[i]] <= 'z') )\n {\n t = a[m[i]] - 32;\n cout << \"(\" << t << \",\" << num[i] << \")\";\n }\n else\n {\n t = a[m[i]];\n cout << \"(\" << t << \",\" << num[i] << \")\";\n }\n }\n \n return 0;\n}\n \n"} +{"label": "103", "index": "51456", "code": "\nint main ()\n{\n char str[1000];\n scanf(\"%s\",str);\n int a,b;char n;\n a=0;b=1;\n while (str[a]!='\\0') \n {\n str[a]=toupper(str[a]);\n a++;\n }\n a=0;\n while(str[a]!='\\0')\n {\n n=str[a];\n if (n==str[a+1])\n b=b+1;\n else\n {printf(\"(%c,%d)\",n,b);b=1;} \n a++;}\n \n\n}\n"} +{"label": "103", "index": "51457", "code": "char l(char c)\n{\nif (c>='a'&&c<='z')\n return c+'A'-'a';\nelse\n return c;\n}\n\nint main()\n{\n char s[1001];cin>>s;\n char c=l(s[0]);\n int t=1;\n for (int i=1;i<=strlen(s);i++)\n {if (c==l(s[i]))\n t++;\n else\n {\n cout<<'('<'Z')\n a[h]=a[h]-'a'+'A';\n }\n for(i=0;i> a;\n\tsum = 0;\n\tn = strlen(a);\n\tfor(i = 0; i < n - 1; i ++)\n\t{\n\t\tif(a[i + 1] == a[i] || a[i + 1] - a[i] == 32 || a[i] - a[i + 1] == 32)\n\t\t\tsum ++;\n\t\telse\n\t\t{\n\t\t\tif(a[i] > 'Z')\n\t\t\t{\n\t\t\t\tp = a[i] - '0';\n\t\t\t\tq = p - 32;\n\t\t\t\tb[i] = q + '0';\n\t\t\t\tcout << \"(\" << b[i] << \",\" << sum + 1 << \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tcout << \"(\" << a[i] << \",\" << sum + 1 << \")\";\t\n\t\t\tsum = 0;\n\t\t}\n\t}\n\tsum = 1;\n\tfor(i = n - 1; i > 0; i --)\n\t{\n\t\tif(a[i] == a[i - 1] || a[i] - a[i - 1] == 32 || a[i - 1] - a[i] == 32)\n\t\t{\n\t\t\tsum ++;\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t}\n\tif(a[n - 1] > 'Z')\n\t{\n\t\tp = a[n - 1] - '0';\n\t\tq = p - 32;\n\t\tb[n - 1] = q + '0';\n\t\tcout << \"(\" << b[n - 1] << \",\" << sum << \")\";\n\t}\n\telse\n\t\tcout << \"(\" << a[n - 1] << \",\" << sum << \")\";\t\n\treturn 0;\n}"} +{"label": "103", "index": "51460", "code": "void strupr(char a[])\n{\n int i;\n for(i=0;a[i]!='\\0';i++)\n {\n if (a[i]>='a'&&a[i]<='z')\n {\n a[i]=a[i]+'A'-'a';\n }\n }\n}\n int main()\n{\n int i,m,n=1;\n char a[1001];\n gets(a);\n strupr(a);\n for(i=1;a[i-1]!='\\0';i++)\n {\n if (a[i]==a[i-1])\n {\n n++;\n }\n else\n {\n printf(\"(%c,%d)\",a[i-1],n);\n n=1;\n }\n\n }\n\n return(0);\n}\n"} +{"label": "103", "index": "51461", "code": "int main()\n{\n int d = 26, p = 1;\n char c;\n while(scanf(\"%c\", &c), c!= '\\n'){\n if(c >= 'A' && c <= 'Z') c = c - 'A';\n if(c >= 'a' && c <= 'z') c = c - 'a';\n if(d >= 26) d = c;\n else if(d != c){\n printf(\"(%c,%d)\", d+'A', p);\n p = 1;\n d = c;\n }\n else p++;\n }\n printf(\"(%c,%d)\", d+'A', p);\n return 0;\n}"} +{"label": "103", "index": "51462", "code": "int main()\n{\n char a[1001];\n int i,j,l,y;\n int x[100]={0};\n scanf(\"%s\",a); \n l=strlen(a);\n for(i=0;i='a'&&a[i]<='z') a[i]=a[i]-'a'+'A';}\n for(i=0;i'Z')\n s[i]=s[i]-32;\n\t\t}\n c=s[0];j=1;\n for (i=1;i<=strlen(s);i++)\n {\n\t\t\tif (s[i]==c)\n j++;\n else \n { \n\t\t\t\tprintf(\"(%c,%d)\",c,j);\n\t j=1;c=s[i];\n\t \n }\n\n }\n return 0;\n\n}\n"} +{"label": "103", "index": "51464", "code": "main()\n{\n int a[1000]={0},b[1000],l,i,p=0;\n char zm[1000];\n scanf(\"%s\",zm);\n l=strlen(zm);\n b[0]=zm[0];\n for(i=1;i='a')\n b[i]=b[i]-'a'+'A';\n }\n for(i=0;i<=p;i++)\n {\n printf(\"(%c,%d)\",b[i],a[i]+1);\n }\n}"} +{"label": "103", "index": "51465", "code": "int main()\n{\n char string[1000];\n gets(string);\n int l,i,j,count;\n l=strlen(string);\n for(i=0;i'Z')\n string[i]=string[i]-'a'+'A';\n }\n for(i=0;i> str;\n\tfor (i = 0; str[i] != '\\0'; i++)\n\t{\n\t\tif (str[i] >= 'a' && str[i] <= 'z')\n\t\t{\n\t\t\tstr[i] = str[i] - 'a' + 'A';\n\t\t}\n\t}\n\tfor (i = 0; str[i] != '\\0'; i++)\n\t{\n\t\tif (str[i] == str[i + 1])\n\t\t{\n\t\t\tt++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tt++;\n\t\t\tcout << \"(\" << str[i] << \",\" << t << \")\";\n\t\t\tt = 0;\n\t\t}\n\t}\n\tcout << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51467", "code": "main()\n{\n int i,j,k,t;\n int a=1;\n char c[1001];\n scanf(\"%s\",c);\n for(i=1;i<=1000;i++)\n { \n if(c[i]>=65&&c[i]<97)\n {\n if(c[i]!=c[i-1]&&(c[i]!=c[i-1]-32))\n {\n if(c[i-1]<97)\n printf(\"(%c,%d)\",c[i-1],a);\n else\n printf(\"(%c,%d)\",c[i-1]-32,a);\n a=1;\n }\n else\n {\n a++;\n }\n }\n if(c[i]>=97&&c[i]<=122)\n {\n if(c[i]!=c[i-1]&&c[i]!=(c[i-1]+32))\n {\n if(c[i-1]<97)\n printf(\"(%c,%d)\",c[i-1],a);\n else\n printf(\"(%c,%d)\",c[i-1]-32,a);\n a=1;\n }\n else\n {\n a++;\n }\n }\n if(c[i]=='\\0')\n {\n if(c[i-1]<97)\n printf(\"(%c,%d)\",c[i-1],a);\n else\n printf(\"(%c,%d)\",c[i-1]-32,a);\n break;\n }\n }\n \n}\n "} +{"label": "103", "index": "51468", "code": "int main ()\n{\nchar str[1000],i,m=1,n;\nscanf (\"%s\",str);\nfor (i=0;i<=100;i++)\n{\nif (str[i]<='z' && str[i]>='a')\nstr[i]=str[i]+'A'-'a';\n}\ni=0;\nfor (i=0;i<=999;i++)\n{\n if (str[i]=='\\0')\n {n=i-1;break;}\n}\nfor (i=0;i<=n;i++)\n{\n if (str[i]==str[i+1])\n {m=m+1;}\n else\n {printf (\"(%c,%d)\",str[i],m);m=1;continue;}\n\n}\nreturn 0;\n}"} +{"label": "103", "index": "51469", "code": "int main()\n{\n\tchar line[110]={'\\0'},out[110]={'\\0'};\n\tint i,n=0,num[110]={0};\n\tcin.getline(line,110);\n\tfor(i=0;i='a'&&line[i]<='z')\n\t\t\tline[i]=line[i]-'a'+'A';\n\t}\n out[0]=line[0];\n\tnum[0]=1;\n\tfor(i=1;i='a' && f[i]<='z')f[i]=f[i]-'a'+'A';}\n\tfor(p=0;p= 97)\n\t\tc -= 32;\n\tt = c;\n\twhile (c != '\\n')\n\t{\n\t\tif (c >= 97)\n\t\t\tc -= 32;\n\t\tif (t == c)\n\t\t\ti++;\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << t << \",\" << i << \")\";\n\t\t\ti = 1;\n\t\t\tt = c;\n\t\t}\n\t\tc = cin.get();\n\t}\n\tcout << \"(\" << t << \",\" << i << \")\" << endl;\n\treturn 0;\n}\n"} +{"label": "103", "index": "51472", "code": "int main()\n{\n char s[1000],ss[1000];int i,j,l,c[1000];\n scanf(\"%s\",s);\n for(i=0;s[i]!='\\0';i++)\n {\n if(s[i]>='a'&&s[i]<='z')\n s[i]=s[i]-32;\n if(s[i]>='A'&&s[i]<='Z')\n s[i]=s[i];\n } \n ss[0]=s[0];\n j=0;\n for(i=0;s[i]!='\\0';i++)\n {\n if(s[i]==ss[j])\n c[j]++;\n else\n {j++;\n ss[j]=s[i];\n c[j]++;}\n }\n for(i=0;i<=j;i++)\n printf(\"(%c,%d)\",ss[i],c[i]);\n getchar();getchar();\n \n}\n"} +{"label": "103", "index": "51473", "code": "char c[1001]={\"\\0\"};\nchar temp[1001]={\"\\0\"};\nint deal();\nint deal1();\nint main()\n{\n\tcin>>c;\n\tdeal();\n\tdeal1();\n\treturn 0;\n}\nint deal()\n{\n\tint i;\n\tfor (i=0;c[i]!='\\0';i++)\n\t\tif ((c[i]>='a')&&(c[i]<='z'))\n\t\t\tc[i]=c[i]-'a'+'A';\n\treturn 0;\n}\nint deal1()\n{\n\tint i;\n\tchar word=c[0];\n\tint times[1001]={0};\n\tint l=0;\n\ttemp[0]=word;\n\tfor (i=0;c[i]!='\\0';i++)\n\t{\n\t\tif (c[i]==word)\n\t\t{\n\t\t\ttimes[l]++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tl++;\n\t\t\ttimes[l]=1;\n\t\t\ttemp[l]=c[i];\n\t\t\tword=temp[l];\n\t\t}\n\t}\n\tfor (i=0;times[i]!=0;i++)\n\t\tcout<<'('<='A' &&temp<='Z')\n return temp;\n else if (temp>='a'&&temp<='z')\n return temp-'a'+'A';\n else\n cout<<\"errer,not ??\"<>a;\n int length=strlen(a);\n char follow=la(a[0]);\n int same=1;\n for (int i=1 ; i> a;\n\tfor (i=0; i<(int)strlen(a); i++)\n\t\tif ((a[i]>='a')&&(a[i]<='z'))\n\t\t\ta[i]=a[i]-'a'+'A';\n\tcout << '(' << a[0] << ',';\n\tfor (i=1; i<(int)strlen(a); i++)\n\t{\n\t\tif (a[i]==a[i-1])\n\t\t\tans++;\n\t\telse\n\t\t{\n\t\t\tcout << ans << \")(\" << a[i] << ',';\n\t\t\tans=1;\n\t\t}\n\t}\n\tcout << ans << ')' << endl;\n\treturn 0;\n}"} +{"label": "103", "index": "51476", "code": "int main()\n{\nchar s[255];\nchar *p=s;\nint i=0,j=1;\n\nscanf(\"%s\",s);\nif(strlen(s)>255){\n \n\n}\nwhile(i='A' && *p<='Z') \n\t *p=*p+32;\n *p++;\n }\n if(s[i]==s[i+1])\n j++;\n else{\n printf(\"(%c,%d)\",s[i]-'a'+'A',j);\n j=1;\n}\ni++;\n}\n} "} +{"label": "103", "index": "51477", "code": "main()\n{\n char c[1000];\n scanf(\"%s\",c);\n int i;\n for(i=0;c[i]!='\\0';i++)\n {\n if((c[i]>='a')&&(c[i]<='z'))\n c[i]=c[i]+'A'-'a';\n }\n int m,n;\n n=1;\n for(m=0;c[m]!='\\0';m++)\n {\n if(c[m]!=c[m+1])\n {\n printf(\"(%c,%d)\",c[m],n);\n n=1;\n }\n else\n n++;\n }\n}\n"} +{"label": "103", "index": "51478", "code": "int main()\n{\n\tchar str[1000], s, temp = NULL;\n\tint i, sum;\n\tfor (i = 0; i < 1000; i++)\n\t{\n\t\tcin.get(s);\n\t\tif (s == '\\n')\n\t\t{\n\t\t\tcout << sum << \")\" << endl;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (s - 'a' >= 0 && s - 'a' <= 26)\n\t\t\t\ts = 'A' + s - 'a';\n\t\t\tif (temp != s)\n\t\t\t{\n\t\t\t\tif (temp != NULL)\n\t\t\t\t\tcout << sum << \")(\" << s << \",\";\n\t\t\t\telse\n\t\t\t\t\tcout << \"(\" << s << \",\";\n\t\t\t\ttemp = s;\n\t\t\t\tsum = 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51479", "code": "char big(char x);\nint main()\n{\n\tchar a[1003];\n\tchar t;\n\tint sum=0,i,len;\n\tcin>>a;\n\tlen=strlen(a);\n\tsum=1;\n\tt=big(a[0]);\n\tfor(i=1;i='a'&&x<='z') return(x-'a'+'A');\n\telse return x;\n}"} +{"label": "103", "index": "51480", "code": "int main()\n{\n\tchar str[1100]={0};\n\tint i=0,j=0,c[1000][2]={0};//c[][0]??,c[][1]??\n\tcin.getline(str,1100,'\\n');\n\tif(str[0]>='A'&&str[0]<='Z')\n\t\tc[0][0]=str[0];\n\telse\n\t\tc[0][0]=str[0]+'A'-'a';\n\tc[0][1]++;\n\tfor(i=1;str[i]!=0;i++)\n\t{\n\t\tif(str[i]>='A'&&str[i]<='Z'&&str[i]==c[j][0]||str[i]+'A'-'a'==c[j][0])\n\t\t\tc[j][1]++;\n\t\telse\n\t\t{\n\t\t\tj++;\n\t\t\tif(str[i]>='A'&&str[0]<='Z')\n\t\t\t\tc[j][0]=str[i];\n\t\t\telse\n\t\t\t\tc[j][0]=str[i]+'A'-'a';\n\t\t\tc[j][1]++;\n\t\t}\n\t}\n\tfor(i=0;i<=j;i++)\n\t\tcout<<'('<<(char)c[i][0]<<','<='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0;a[i]!='\\0';)\n {for(j=i;;j++)\n {if(a[j]==a[i])\n b[i]++;\n if(a[j]!=a[i])\n break;}\n printf(\"(%c,%d)\",a[i],b[i]);\n i+=b[i];\n }\n \nreturn 0;}\n"} +{"label": "103", "index": "51483", "code": "struct point{\n\tchar a;\n\tint b;\n}poi[40];\nint main()\n{\n\tchar str[1000];\n\tint i,j=0,k;\n\tscanf(\"%s\",&str);\n\tpoi[j].a=str[0];\n\tfor(i=1;str[i]!='\\0';i++){\n\t\tif(str[i]==str[i-1]||str[i]==str[i-1]-32||str[i]==str[i-1]+32){\n\t\t poi[j].b++;}\n\t\telse{j++;poi[j].a=str[i];}\n\t}\n\tfor(k=0;k<=j;k++){\n\t\tif(poi[k].a>96){poi[k].a=poi[k].a-32;}\n\t\tprintf(\"(%c,%d)\",poi[k].a,poi[k].b+1);\n\t\t\n\t}\n return 0;\n}"} +{"label": "103", "index": "51484", "code": "int main()\n{\n\tchar a[2000],c[2000];\n\tcin>>a;\n\tint l=strlen(a),i,j=1,k=0,b[2000];\n\tfor(i=0;i='a')&&(s[0]<='z'))\n c=s[0]-'a'+'A';\n else\n c=s[0];\n for(i=0;i<=l;i++)\n {\n if((s[i]!=c)&&((s[i]-'a'+'A')!=c))\n {\n printf(\"(%c,%d)\",c,p);\n p=0;\n if((s[i]>='a')&&(s[i]<='z'))\n c=s[i]-'a'+'A';\n else\n c=s[i]; \n }\n p++;\n }\n getchar();getchar();\n}"} +{"label": "103", "index": "51486", "code": "int main()\n{int i,j,k,t;\n char s[1000],last;\n scanf(\"%s\",s);\n// printf(\"%d%d\",'a','A');\n for (i=0;s[i]!='\\0';i++)\n if (s[i]<97) s[i]=s[i]+32;\n last='!';\n for (i=0;s[i]!='\\0';i++)\n { k=0;\n if (s[i]!=last)\n {\n last=s[i];\n for (j=i;s[j]==last;j++)\n k=k+1;\n \n printf(\"(%c,%d)\",s[i]-32,k);\n \n }\n } \n \n\n return 0;\n}\n"} +{"label": "103", "index": "51487", "code": "\nmain()\n{\n int a,i;\n char str[1001];\n a=1;\n scanf(\"%s\",str);\n for(i=0;;i++)\n {\n if(str[i]=='\\0')\n break;\n if(str[i]>96)\n str[i]=str[i]-32;\n }\n for(i=0;;i++)\n { \n \n if(str[i]==str[i+1])\n a++;\n else\n {\n printf(\"(%c,%d)\",str[i],a);\n a=1;\n }\n if(str[i+1]=='\\0')\n break;\n \n }\n\n} \n"} +{"label": "103", "index": "51488", "code": "main()\n{\n char str[101];\n gets(str);\n int i=0,n=1;\n for(i;str[i]!='\\0';i++)\n {\n if(str[i]>='a'&&str[i]<='z') str[i]+='A'-'a';\n }\n for(i=0;str[i]!='\\0';i++)\n {\n if(str[i]==str[i+1]) n++;\n else {\n printf(\"(%c,%d)\",str[i],n);\n n=1;\n }\n }\n getchar();\n}"} +{"label": "103", "index": "51489", "code": "\nint main()\n{\n int i,k=1,j,m,n,a[100];\n char str[1000],b[100];\n scanf(\"%s\",str);\n for(n=1;n<=strlen(str);n++)\n {a[n]=0;}\n \n for(m=0;m<=strlen(str)-1;m++)\n {\n if(str[m]>=97&&str[m]<=122)\n str[m]=str[m]-32;\n \n }\n if(strlen(str)==1)\n {b[1]=str[0];a[1]=1;}\n else{\n for(i=1;i<=strlen(str)-1;i++) \n { \n if(str[i]==str[i-1])\n {a[k]=a[k]+1;b[k]=str[i-1];}\n else\n {a[k]=a[k]+1;b[k]=str[i-1];k++;}\n if(i==strlen(str)-1)\n {a[k]=a[k]+1;b[k]=str[i];}\n }}\n for(j=1;j<=k;j++)\n {\n \n printf(\"(%c,%d)\",b[j],a[j]);\n }\n \n} \n"} +{"label": "103", "index": "51490", "code": "int main()\n{\n char str[1001];\n int len , i,temp ,sum = 1 ,k = 1;\n scanf(\"%s\",str);\n len = strlen( str );\n temp = 0;\n for( i = 0 ;i <= len+1 ;i ++ )\n { \n while( str[k] == str[temp] || str[k] == str[temp]+32 || str[k] == str[temp ] - 32 )\n { \n sum ++;\n k++;\n }\n\n if( str[temp] >= 'a' && str[temp] <= 'z')\n str[temp]-= 32;\n printf( \"(%c,%d)\",str[temp],sum );\n sum = 1;\n temp = k ; \n i = k+1;\n k = k+1;\n }\n}\n"} +{"label": "103", "index": "51491", "code": "int main()\n{\n char a[1000],b;\n int n,j,l,i;\n gets(a);\n l=strlen(a);\n for (i=0;i='a'&&a[i]<='z')\n a[i]=a[i]+'A'-'a';\n }\n for (i=0 ;i='a'&&a[i]<='z')\n a[i]=a[i]-'a'+'A';\n }\n for(i=0;i<1000;i++)\n {\n if(a[i]=='\\0')\n break;\n if(a[i]!=a[i+1])\n {\n n=0;\n for(j=i;a[j]==a[i];j--)\n n++;\n printf(\"(%c,%d)\",a[i],n);\n }\n }\n return 0;\n}\n"} +{"label": "103", "index": "51493", "code": "main()\n{\n int r=0,n,i=0,j=0,x=0,y=0,z[1000];\n char a[1000];\n \n scanf(\"%s\",a);\n n=strlen(a);\n \n for(i=0;i='a' && a[i]<='z')\n a[i]=a[i]-32;\n } \n \n \n \n for( x=0;x<=n;x++)\n {\n j=0;\n z[x]=0; \n if (x>0 && a[x]==a[x-1])\n continue; \n for(y=x;y<=n;y++)\n {\n if (a[y]==a[x])\n z[x]++;\n else \n {\n printf(\"(%c,%d)\",a[x],z[x]);\n break;\n } \n } \n }\n \n \n }\n "} +{"label": "103", "index": "51494", "code": "int f(char c)\n{ if ((c>'Z')&&(c<='z'))\n c=c-'a'+'A';\n return c;\n}\nmain()\n{ int j=1;\n char str[1050];\n scanf(\"%s\",str);\n for (int i=0;i<=strlen(str)-1;i++)\n {str[i]=f(str[i]);\n }\n for(int i=0;i<=strlen(str)-1;i++)\n {if(str[i]==str[i+1])\n {j=j+1;\n }\n else \n {printf(\"(%c,%d)\",str[i],j);\n j=1;\n }\n }\n}"} +{"label": "103", "index": "51495", "code": "main()\n{\n char string[1001];\n int time,m,n,i,j,k;\n gets(string);\n m=strlen(string);\n for (i=0;i='a'&&string[i]<='z')\n \t string[i]=string[i]-32;\n }\n time=1;\n for (i=0;i 64 && c1 < 91)\n\t\treturn (int) c1 - 65;\n\tif (c1 > 96 && c1 < 123)\n\t\treturn (int) c1 - 97;\n\treturn 0;\n}\n\nint main() {\n\tchar c[1000];\n\tint z, num, i;\n\tcin >> c;\n\tfor (i = 0; i < strlen(c); ++i) {\n\t\tz = chartonum(c[i]);\n\t\tnum = 1;\n\t\twhile (i != strlen(c) && chartonum(c[i]) == chartonum(c[i + 1])) {\n\t\t\t++i;\n\t\t\t++num;\n\t\t}\n\t\tif (i == strlen(c))\n\t\t\tnum--;\n\t\tcout << '(' << (char) (z + 65) << ',' << num << ')';\n\t}\n\treturn 0;\n}"} +{"label": "103", "index": "51497", "code": "\nint main()\n{\n\n\tchar string[1000];\n\tgets(string);\n\n\tint len=0;\n\tint count=0;\n\twhile(string[len])\n\t\tlen++;\n\n\tint index=0;\n\n\tchar first_letter=toupper(string[0]);\n\n\n\tfor(index=0;index<=len;)\n {\n\t\tif(toupper(string[index])==first_letter)\n\t\t{\n\t\t\tcount++;\n\t\t\tindex++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\t\tprintf(\"(%c,%d)\",first_letter,count);\n\t\t\t count=0;\n\t\t\t first_letter=toupper(string[index]);\n \n\t\t}\n\t}\n\n\t\t\n\treturn 0;\n}"} +{"label": "103", "index": "51498", "code": "void change(char words[])\n{\n\tint len = strlen(words);\n\tint i = 0;\n\tint d = 'A' - 'a';\n\tfor(i = 0; i < len; i++)\n\t{\n\t\tif(words[i] <= 'z'&& words[i] >= 'a')\n\t\t{\n\t\t\twords[i] = words[i] + d;\n\t\t}\n\t}\n}\nint main()\n{\n\tchar words[100];\n\tcin >> words;\n\tchange(words);\n\tchar mark = words[0];\n\tint sum = 0, len = strlen(words);\n\tfor(int i = 0; i < len; i++)\n\t{\n\t\tif(words[i] == mark)\n\t\t{\n\t\t\tsum++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"(\" << mark << \",\" << sum << \")\";\n\t\t\tmark = words[i];\n\t\t\tsum = 1;\n\t\t}\n\t}\n\tcout << \"(\" << mark << \",\" << sum << \")\";\n\treturn 0;\n}"} +{"label": "103", "index": "51499", "code": "int main()\n{\t\n\tchar a[1001];\n\tint i, temp;\n\tcin.getline(a, 1001);\n\tint len = strlen(a);\n\ttemp = 0;\n\twhile (temp < len)\n\t{\n\t\ti = temp + 1;\n\t\twhile ((i < len) && (a[i] == a[temp] || a[i] - 'a' == a[temp] - 'A' || a[i] - 'A' == a[temp] - 'a'))\n\t\t\ti ++;\n\t\tif (a[temp] <= 'Z')\n\t\t\tcout << \"(\" << (char) a[temp] << \",\" << i - temp << \")\";\n\t\telse\n\t\t\tcout << \"(\" << (char) (a[temp] - 'a' + 'A') << \",\" << i - temp << \")\"; \n\t\ttemp = i;\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51500", "code": "int main()\n{\n \tint a[100]={0},b[100]={0},n=0,m=0,i,j,k=0;\n \tcin>>a[0]>>b[0];\n \twhile( a[n]>=1)\n \t\t{\n\t \t a[n+1]=a[n]/2;\n\t\t//\tcout<< a[n]<=1)\n \t\t{\n\t \t b[m+1]=b[m]/2;\n\t\t\t//cout<=a;c=c/2)\n\t\t\tif(a==c)\n\t\t\t{\n\t\t\t\tprintf(\"%d\",c);\n\t\t\t\treturn 0;\n\t\t\t}\n}\n\nint main() \n{ \n\tint a,b,c,d;\n\tscanf(\"%d%d\",&a,&b);\n\tfinder(a,b); \n\treturn 0;\n} "} +{"label": "104", "index": "51502", "code": "\nint main()\n{ int x,y,a[100],b[100],i,j,ka,kb;\nscanf(\"%d%d\",&x,&y);\na[1]=x;\nb[1]=y;\ni=1;\nj=1;\nwhile(a[i]!=1)\n{i++;\na[i]=a[i-1]/2;\n}\n\nwhile(b[j]!=1)\n{j++;\nb[j]=b[j-1]/2;\n}\nfor(ka=1;ka<=i;ka++)\n{for(kb=1;kb<=j;kb++)\n{\t if (a[ka]==b[kb])\n{ printf(\"%d\\n\",a[ka]);\n break;\n}\nif (a[ka]==b[kb]) break;\n}\nif (a[ka]==b[kb]) break;\n}\n\n\n\treturn 0;\n}"} +{"label": "104", "index": "51503", "code": "int main()\n{\n\tint x,y,i,j,m=0,n=0,t;\n\tint a[1000],b[1000];\n\tscanf(\"%d %d\",&x,&y);\n\ta[0]=x;b[0]=y;\n\t\tfor(i=1;a[i-1]!=1;i++)\n\t\t{\n\t\t\ta[i]=x/2;\n\t\t\tx=x/2;\n\t\t\tm=m+1;\n\t\t}\n\t\tfor(j=1;b[j-1]!=1;j++)\n\t\t{\n\t\t\tb[j]=y/2;\n\t\t\ty=y/2;\n\t\t\tn=n+1;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i=1;j++)\n\t\t\tif((int)(x/pow(2.0,i))==(int)(y/pow(2.0,j))){\n\t\t\t\treturn x/pow(2.0,i);\n\t\t\t\tg=1;\n\t\t\t\tbreak;\n\t\t\t}\n\tif(g==1)break;\n\t}\n}\nint main(){\n\tint n1,n2;\n\tcin>>n1>>n2;\n\tcout<n)\n\t\t\tm=m/2;\n\t\telse n=n/2;\n\t}\n\tprintf(\"%d\",m);\n\treturn 0;\n}"} +{"label": "104", "index": "51508", "code": "int f(int a,int n)\n{\n\tif (n==1) return a; //????\n\telse return f(a,n-1)/2;\n}\nint main()\n{\n\tint a,b,i,j,t=1;\n\tcin>>a>>b;\n\tfor (i=1;f(a,i)>=1;i++)\n\t\tfor (j=1;f(b,j)>=1;j++) //???????????\n\t\t\tif (f(a,i)==f(b,j))\n\t\t\t{\n\t\t\t\tt=(f(a,i)>t? f(a,i):t); //????????????\n\t\t\t\tbreak;\n\t\t\t}\n\tcout << t <>x>>y;\n\twhile(1){\n\t\tif(pow(2,i)>x)\n\t\t\tbreak;\n\t\ti++;\n\t}\n\twhile(1){\n\t\tif(pow(2,j)>y)\n\t\t\tbreak;\n\t\tj++;\n\t}\n\twhile(i>j){\n\t\tx=x/2;\n\t\ti--;\n\t}\n\twhile(i>a[0]>>b[0];\n\tfor(i=1;i<11;i++)\n\t{\n\t\tif(a[i-1]%2==0)\n\t\t\ta[i]=a[i-1]/2;\n\t\telse\n\t\t\ta[i]=(a[i-1]-1)/2;\n\t}\n\tfor(i=1;i<11;i++)\n\t{\n\t\tif(b[i-1]%2==0)\n\t\t\tb[i]=b[i-1]/2;\n\t\telse\n\t\t\tb[i]=(b[i-1]-1)/2;\n\t}\n\tfor(i=0;i<11;i++)\n\t{\n\t\tfor(j=0;j<11;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tcout<>x>>y;//x,y?????\n\tcout<=1&&y>=1)//\n\t{\n\t m=x;\n\t n=y;\n\t int a[x],b[y];\n\t a[0]=x;\n\t for(i=1;i<=m;i++)\n\t {\n\t if(x>=2)\n\t\t {\n\t\t a[i]=x/2;\n\t x=x/2;\n\n\t }\n\t else break;\n\t }\n\n\t p=i-1;\n b[0]=y;\n for(i=1;i<=n;i++)\n {\n\t if(y>=2)\n\t {\n\t b[i]=y/2;\n\t y=y/2;\n\t }\n\t else break;\n }\n q=i-1;\n\n for(i=p,j=q;i>=0,j>=0;i--,j--)\n \tif(a[i]==b[j])\n \tc=a[i];\n \treturn c;\n\t}\n\t\n\t\n}\n\n\n\n"} +{"label": "104", "index": "51512", "code": "void main()\n{\n\tint x,i,y,j,k,l;\n int xn[15],yn[15];\n\tscanf(\"%d%d\",&x,&y);\n\tfor (i=0;x!=0;i++)\n\t{\n\t\txn[i]=x;\n\t\tx=x/2;\n\t}\n\tk=i-1;\n\tfor(i=0;y!=0;i++)\n\t{\n\t\tyn[i]=y;\n\t\ty=y/2;\n\t}\n\tl=i-1;\n\tif(xn[0]==yn[0])\n\t\tprintf(\"%d\",xn[0]);\n\telse\n\t{\n\tfor(;;k--)\n\t{\n\t\tif(xn[k]!=yn[l])\n\t\t{\n\t\t\tj=k+1;\n\t\t\tbreak;\n\t\t}\n\t\tl--;\n\t}\n\tprintf(\"%d\",xn[j]);\n\t}\n\n\n\n}"} +{"label": "104", "index": "51513", "code": "\n\nint main()\n{\n int a,b;\n cin>>a>>b;\n while(1)\n {\n while(a>b)\n {\n a=a/2;\n }\n while(b>a)\n {\n b=b/2;\n }\n if(a==b) break;\n }\n cout<y)\n\t{\n\t\tt=x;\n\t\tx=y;\n\t\ty=t;\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t\tif (a[i]==0) break;\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tb[i]=y;\n\t\ty=y/2;\n\t\tif (b[i]==0) break;\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tfor(j=0;;j++)\n\t\t{\n\t\t\tif(a[i]==b[j]) break;\n\t\t\tif(b[j]==0) break;\n\t\t}\n\t\tif(a[i]==b[j]) break;\n\t}\n\tprintf(\"%d\",a[i]);\n\t}\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51515", "code": "int main()\n{int a[1000],b[1000],i=0,j=0,n,m,loop;\nscanf(\"%d %d\",&n,&m);\nwhile(n!=0)\n{ a[i]=n;\n n=n/2;\n i++;\n}\nwhile(m!=0)\n{\nb[j]=m;\nm=m/2;\nj++;\n}\nfor(i=0;i<1000;i++)\n{\nfor(j=0;j<1000;j++)\n{\nif(a[i]==b[j])\n{\n\ngoto loop ;\n}\nelse\n{\ncontinue;\n}\n\n}\n}\n\nloop:printf(\"%d\\n\",a[i]);\nreturn 0;\n}"} +{"label": "104", "index": "51516", "code": "void main() \n{ \n\tint x,y,i,m,n; \n\tint a[15]={0},b[15]={0}; \n\t\n\tscanf(\"%d %d\",&x,&y); \n\t\n\ta[0]=x; \n\tb[0]=y; \n\t\n\tif(x==y) \n\t{ \n\t\tprintf(\"%d\\n\",x); \n\t\treturn; \n\t} \n\t\n\tfor(i=0;i<11;i++) \n\t{ \n\t\tif(a[i]==0) \n\t\t{ \n\t\t\tm=i-1; \n\t\t\tbreak; \n\t\t} \n\t\t\n\t\telse \n\t\t\ta[i+1]=a[i]/2; \n\t} \n\t\n\tfor(i=0;i<11;i++) \n\t{ \n\t\tif(b[i]==0) \n\t\t{ \n\t\t\tn=i-1; \n\t\t\tbreak; \n\t\t} \n\t\t\n\t\telse b[i+1]=b[i]/2; \n\t} \n\t\n\tfor(;;m--,n--) \n\t{ \n\t\tif(a[m]!=b[n]) \n\t\t\tbreak; \n\t} \n\t\n\tprintf(\"%d\\n\",a[m+1]); \n}\n"} +{"label": "104", "index": "51517", "code": "/*\n *????1062 ???\n *?????\n *??: 2010-11-21\n */\n\nint i,j,x,y;\nint f(int n,int x){\n if(n==1) return x;\n else return (f(n-1,x)-f(n-1,x)%2)/2;//?????????\n}\nint main(){\n cin>>x>>y;//????\n for(i=1;i<15;i++)\n \tfor(j=1;j<15;j++)\n \tif(f(i,x)==f(j,y)){//?????????????????????\n \t\tcout<> x >> y;\n\tmemo = y;\n\tdo {\n\t\tdo {\n\t\t\tif (x == y) {\n\t\t\t\tcout << x;\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\ty = y >> 1;\n\t\t} while (y);\n\t\tx = x >> 1;\n\t\ty = memo;\n\t} while (x);\n}"} +{"label": "104", "index": "51519", "code": "int main()\n{\n\tint put(int );\n\tint min(int ,int );\n\tint a[10],b[10],a1[10],b1[10];\n\tint n1,n2,p=0,q=0,i,j=0;\n\tscanf(\"%d%d\",&n1,&n2);\n\tfor(i=0;;i++)\n\t{\n\t\ta[i]=n1;\n\t\tn1=put(n1);\n\t\tp++;\n\t\tif(n1==0)\n\t\t\tbreak;\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tb[i]=n2;\n\t\tn2=put(n2);\n\t\tq++;\n\t\tif(n2==0)\n\t\t\tbreak;\n\t}\n\tfor(i=p;i>0;i--)\n\t{\n\t\ta1[j]=a[i-1];\n\t\tj++;\n\t}\n\tj=0;\n\tfor(i=q;i>0;i--)\n\t{\n\t\tb1[j]=b[i-1];\n\t\tj++;\n\t}\n\tfor(i=0;i=two(i)&&xb)\n\t{\n\t\tk=turn(a/2,b);\n\t}\n\tif(a=1;)\n\t{\n\t\tfor(i=0;a[i]>=1;i++)\n\t\t{\n\t\t\tif(y==a[i])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(y==a[i])break;\n\t\telse\n\t\t\t{\n\t\t\t\tif(y%2==0)\n\t\t\t\t\ty=y/2;\n\t\t\t\telse\n\t\t\t\t\ty=(y-1)/2;\n\t\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "104", "index": "51523", "code": "void main()\n{\n\tint a(int x,int y);\n\tint x,y,z;\n\tscanf(\"%d %d\",&x,&y);\n\tz=a(x,y);\n\tprintf(\"%d\\n\",z);\n}\n\nint a(int x,int y)\n{\n\tint m;\n\tif(x==y) m=x;\n\telse if(x>x>>y; //??x?y\n\tvoid commoninteger(int x,int y); //????commoninteger\n\tcommoninteger(x,y); //????commoninteger?????\n\treturn 0;\n}\n\nvoid commoninteger(int x,int y) //????commoninterger??????x?y???????????\n{\n\tif(x==y) //??x=y?????????x????\n\t\tcout<y) //??x>y???x??2???????commoninteger??????y??2???????commoninteger??\n\t\t\tcommoninteger(x/2,y);\n\t\t\telse commoninteger(x,y/2);\n\t}\n}"} +{"label": "104", "index": "51527", "code": "int f(int x ,int y){\t\t\t\t//??????????????????\n\tint p;\t\t\t\t\t\t\t//????\n\tif(x==y) return x;\t\t //?x=y??????x\n\telse {\t\t\t\t\t\t\t//??\n\t\tif(x>y){\n\t\t\tp=x;\n\t\t\tx=y;\n\t\t\ty=p;\n\t\t}\t\t\t\t\t\t\t//?y????\n\t\tif(y%2==0)y=y/2;\t\t\t\n\t\telse y=(y-1)/2;\t\t\t\t//?y???????y\n\t\treturn f(x,y);\t\t\t\t//??f(x,y)\n }\n}\nint main() {\t\t\t\t\t\t//?????\n\tint x,y;\t\t\t\t\t //????\n\tcin>>x>>y;\t\t\t\t\t //??x,y\n\tcout<>x>>y;\n\tint find(int,int);\n\tcout<y)return (find(x/2,y));//??????????????????????\n\telse return (find(x,y/2));\n}\n"} +{"label": "104", "index": "51530", "code": "int main()\n{\n\tint x,y;\n\tint a[20],b[20],i=0,j=0;\n\tint k,m,flag=0;\n\tscanf(\"%d %d\",&x,&y);\n\twhile(x)\n\t{\n\t\ta[i]=x;\n\t\ti++;\n\t\tx=x/2;\n\t}\n\twhile(y)\n\t{\n\t\tb[j]=y;\n\t\tj++;\n\t\ty=y/2;\n\t}\n\tfor(k=0;k>a>>b;\n\tint n=0;\n\tfor(int i=0;i<=a;i++){\n\t\tif(n==1)break;\n\t\tfor(int k=0;k>x>>y;\n\tcout<y)\n {return s(x/2,y);} //?????????????2????\n else\n {return s(x,y/2);}\n};"} +{"label": "104", "index": "51534", "code": "int main()\n{\n\tint x,y,a[20],b[20],i,j,p,q;\n\tscanf(\"%d%d\",&x,&y);\n\tif(x==y)\n\t\tprintf(\"%d\",x);\n\telse\n\t{\n\t\tif((x==1)||(y==1))\n\t\t\tprintf(\"1\");\n\n\t else\n\t\t{\n\t a[0]=x;\n\t\t\tfor(i=1;i<20;i++)\n\t\t\t{\n\t\t if(a[i-1]%2==0)\n\t\t \t\ta[i]=a[i-1]/2;\n\t \t\telse\n\t\t\t\t\ta[i]=(a[i-1]-1)/2;\n\t\t\t\tif(a[i]==1)\n\t\t\t\t{\n\t\t\t\t\tp=i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tb[0]=y;\n\t\t\tfor(i=1;i<20;i++)\n\t\t\t{\n\t\t\t\tif(b[i-1]%2==0)\n\t\t\t\t\tb[i]=b[i-1]/2;\n\t\t\t\telse\n\t\t\t\t\tb[i]=(b[i-1]-1)/2;\n\t\t\t\tif(b[i]==1)\n\t\t\t\t{\n\t\t\t\t\tq=i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i=0;i<=p;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<=q;j++)\n\t\t\t\t{\n\t\t\t\t\tif(a[i]==b[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tp=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tprintf(\"%d\",a[p]);\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "104", "index": "51535", "code": "\nint a1(int n)\n{\n\tif (n/2==0)\n\treturn 1;\n\telse\n\treturn (1+a1(n/2));\n}\nvoid search(int a,int b)\n{\n\tif (a1(a)==a1(b))\n\t{\n\t\tif (a/2==b/2&&a/2!=b/2)\n\t\t{\n\t\t\tcout<a1(b))\n\t\t{\n\t\t\tsearch(a/2,b);\n\t\t}\n\t\tif (a1(a)>x>>y;\n\tsearch(x,y);\n\n\n}"} +{"label": "104", "index": "51536", "code": "int X, Y, TX, TY;\nint A[256],B[256];\nint main()\n{\n\tcin >> X >> Y;\n\tA[TX = 1] = X;\n\tB[TY = 1] = Y;\n\twhile (A[TX] > 1)\n\t{\n\t\tA[TX + 1] = A[TX] / 2;\n\t\tTX ++;\n\t}\n\twhile (B[TY] > 1)\n\t{\n\t\tB[TY + 1] = B[TY] / 2;\n\t\tTY ++;\n\t}\n\twhile ((A[TX] == B[TY]) && (TX > 0) && (TY > 0))\n\t{\n\t\tTX --;TY --;\n\t}\n\tcout << A[TX + 1] << endl;\n}"} +{"label": "104", "index": "51537", "code": "int main()\n{ \n int xunzhao(int x,int y);\n\tint x,y,q;\n\tscanf(\"%d %d\",&x,&y);\n\tq=xunzhao(x,y);\n\tprintf(\"%d\",q);\n\t\n}\nint xunzhao(int x,int y)\n{\n\tint q;\n\tif(x==y)\n\tq=x;\n\tif(x>y)\n\treturn xunzhao(x/2,y);\n\tif(x>a>>b;\n\tm[0]=a,n[0]=b;\n\tif(a==1||b==1)cout<<'1'<=1;i++)\n\t{\n\t\ta[i+1]=a[i]/2;\n\n\t}\n\n\tfor(j=0;b[j]>=1;j++)\n\t{\n\t\tb[j+1]=b[j]/2;\n\n\t}\n\n while(1)\n\t{if(a[i]!=b[j])\n\tbreak;\n\t i--;j--;\n\n\t}\n\t\t\n\tprintf(\"%d\\n\",a[i+1]);\n\treturn 0;\n}"} +{"label": "104", "index": "51540", "code": "void main(){\n\tint x,y,i,j,m,number1,number2;\n\tscanf(\"%d %d\",&x,&y);\n\tint a[12]={0},b[12]={0};\n\tint c[12]={0},d[12]={0};\n\ti=1;\n\ta[0]=x;\n\twhile(a[i-1]>1)\n\t{ \n\t\tm=1;\n\t\tfor(j=1;j<=i+1;j++)m*=2; \n\t\tm=m/4;\n\t\ta[i]=x/m;\n\t\ti++;\n\t}\n\tnumber1=i;\n\t\n\tfor(i=0;i<=number1-1;i++)\n c[i]=a[number1-1-i];\n\t\n\t\n\ti=1;b[0]=y;\n\twhile(b[i-1]>1)\n\t{ \n\t\tm=1;\n\t\tfor(j=1;j<=i+1;j++) m*=2;\n\t\tm=m/4;\n\t\tb[i]=y/m;\n\t\ti++;\n\t}\n\tnumber2=i;\n\t\n\tfor(i=0;i<=number2-1;i++)\n\t\td[i]=b[number2-1-i];\n\t\n\t\n\tif(number1!=number2)\t\n\t{\n\t\tfor(i=1;i<12;i++)\n\t\t{\n\t\t\tif(c[i]!=d[i])\n\t\t\t{\n\t\t\t\tif(c[i]>d[i]||c[i]==d[i]+1||c[i]==2*d[i]){printf(\"%d\",d[i-1]);break;}\n\t\t\t\tif(d[i]> c[i]||d[i]==c[i]+1||d[i]==2*c[i]){printf(\"%d\",c[i-1]);break;}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t} \n\t}\n\tif(number1==number2)\n\t{\n\t \tfor(i=1;i<12;i++)\n\t\t{\n\t\t\tif(c[i]!=d[i])\n\t\t\t{\n\t\t\t\tif(c[i]>d[i]||c[i]==d[i]+1||c[i]==2*d[i]){printf(\"%d\",d[i-1]);break;}\n\t\t\t\tif(d[i]> c[i]||d[i]==c[i]+1||d[i]==2*c[i]){printf(\"%d\",c[i-1]);break;}\n\t\t\t\t\n\t\t\t\t\n\t\t\t} \n\t\t} \n\t\tif(i=number1-1)\n\t\t{ \n\t\t\tif(c[i]==d[i]){printf(\"%d\",c[i-1]);}\n\t\n\t\t}\n\t\t\n\t}\n}"} +{"label": "104", "index": "51541", "code": "\nint same(int a,int b)\n{\n\tif (a == 1||b == 1)\n\t\treturn 1;\n\telse if (a == b)\n\t\treturn a;\n\telse if (a>b)\n {\n \tif (a%2 == 0) return same (a/2,b);\n \telse return same((a-1)/2,b);\n }\n else if (b>a)\n {\n \tif (b%2 == 0) return same (a,b/2);\n \telse return same(a,(b-1)/2);\n }\n\treturn 0;\n}\n\nint main(void)\n{\n\tint x,y;\n\tcin>>x>>y;\n\tcout<n)\n\t\tm=m/2;\n\tif(m>m>>n;\n\tgaoxiao(m,n);\n\tchar mm;\n\tcin>>mm;\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51543", "code": "int main()\n{\n int x, y, i, a, b, m[20], n[20], j,f=0;\n scanf(\"%d%d\",&x,&y);\n if(x==y)\n {\n printf(\"%d\",x);\n }\n else\n {\n i=0;\n while(x>0)\n {\n m[i]=x;\n x=x/2;\n i++;\n }\n i=0;\n while(y>0)\n {\n n[i]=y;\n y=y/2;\n i++;\n }\n for(i=0;i<13;i++)\n {\n for(j=0;j<13;j++)\n {\n if(m[i]==n[j])\n if(f==0){printf(\"%d\",m[i]);\n f=1;}\n }\n }\n }\n return 0;\n}"} +{"label": "104", "index": "51544", "code": "int c(int , int);\nint main(void){\n\tint a,b;\n\tcin>>a>>b;\n\tcout<y) return c(x/2,y);\n\tif(x0)\n {\n a[i]=x;\n x=x/2;\n \n i++;\n }\n while(y>0)\n {\n b[k]=y;\n y=y/2;\n \n k++;\n }\n \n int flg=0;\n for(t=0;t>a[0]>>b[0];\t\t\t\t\t\t\t\t\t\t\t\t\t//??????????\n\tint i=1,j=1;\n\twhile(true)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//?????????????????????????\n\t{\n\t\tif(a[i-1]%2==0)\n\t\t{\n\t\t\ta[i]=a[i-1]/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i]=(a[i-1]-1)/2;\n\t\t}\n\t\tif(a[i]==1)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse i++;\n\t}\n\twhile(true)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//?????????????????????????\n\t{\n\t\tif(b[j-1]%2==0)\n\t\t{\n\t\t\tb[j]=b[j-1]/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[j]=(b[j-1]-1)/2;\n\t\t}\n\t\tif(b[j]==1)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\telse j++;\n\t}\n\twhile(i>=0&&j>=0)\t\t\t\t\t\t\t\t\t\t\t\t\t//?????????\n\t{\n\t\tif(a[i]==b[j])\n\t\t{\n\t\t\ti--;\n\t\t\tj--;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tcout<r2)\n\t{c=pow(2,r1-r2);\n\ta=a/c;}\n\tif(r1n){\n\t\ts=i;\n\t\tt=j;\n\t\tfor(i=0;i>a>>b;\n\twhile(a!=b)\n\t{\n\t\tif(a>b)\n\t\t\ta=F(a);\n\t\tif(a>m>>n;\n for(i=m;i>0&&flag;i/=2)\n for(j=n;j>0&&flag;j/=2)\n if(i==j)\n {cout<>x>>y;\n route(x,a,c); //??x,y????????a,b?\n route(y,b,c);\n int n1,n2;\n for(n1=0;a[n1]!=0;n1++); //???????????\n for(n2=0;b[n2]!=0;n2++);\n int j,k,flag=1;\n for(j=n1-1;j>=0;j--)\n\t{\n for(k=n2-1;k>=0;k--)\n\t\t {\n if(a[j]==b[k]) //???????????????????????\n\t\t\t {\n x1=a[j]; //??????????x1\n\t\t\t\t flag=0;\n break;\n\t\t\t }\n\t\t }\n\t\t if(flag==0)\n\t\t {break;}\n\t\t else\n\t\t {continue;}\n\t}\n\tcout<n)\n\t{\n\t\tm/=2;\n\t}\n\tif(m==n)\n\t\treturn m;\n\telse\n\t\treturn a(n,m);\n}\n"} +{"label": "104", "index": "51558", "code": "/*\n * 1000012712_322.cpp\n *Author:???\n * Created on: 2010-11-21\n * ????????\n */\nint main(){\n\tint x[1000],a[1000],y[1000];\n\tcin>>x[1]>>y[1];//??????\n\tint i,j;\n\ta[0]=1;\n\tfor(i=1;i<100;i++){\n\t a[i]=a[i-1]*2;\n\t}//a[]?2?n???\n\tfor(j=2;j<100;j++){\n\t\tif(x[1]==1){\n\t\t\tj=1;\n\t\t\tbreak;\n\t\t}\n\t\tfor(i=0;i<100;i++){\n\t\t if(x[j-1]j[i])\n\t\t\ta=a-j[i];\n\t\telse break;\n\t}\n\tk=i+1;\n\tb[0]=l;\t\n\tfor(i=1;i=0;p--)\n\t{\n\t\tfor(q=j-1;q>=0;q--)\n\t\t{\n\t\t\tif(answerx[p]==answery[q])\n\t\t\t{\n\t\t\t\ttemp=answerx[p];\n\t\t\t\tr=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(r==1)\n\t\tprintf(\"%d\\n\",temp);\n\telse\n\t\tprintf(\"1\\n\");\n}"} +{"label": "104", "index": "51561", "code": "int main()\n{\n\tint back(int x,int y);\n\tint x,y;\n\tscanf(\"%d %d\",&x,&y);\n\tprintf(\"%d\\n\",back(x,y));\n\t\n\treturn 0;\n}\n\nint back(int x,int y)\n{\n\tint a[100],b[100];\n\tint i=0,j;\n\tint n1,n2;\n\twhile (x>0)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t\ti++;\n\t}\n\tn1=i;\n\ti=0;\n\twhile (y>0)\n\t{\n\t\tb[i]=y;\n\t\ty=y/2;\n\t\ti++;\n\t}\n\tn2=i;\n\tfor (i=0;i>x>>y;\n\tint i,j,m,n,l;\n\ti=1;\n\tj=1;\n\tl=1;\n\ta[i]=x;\n\tb[j]=y;\n\twhile(a[i]!=1)\n\t{\n\t\ta[i+1]=a[i]/2;\n\t\ti=i+1;\n\t}\n\tm=i;\n\twhile(b[j]!=1)\n\t{\n\t\tb[j+1]=b[j]/2;\n\t\t\tj=j+1;\n\t}\n\tn=j;\n\tfor(i=1;i<=m;i++)\n\t{\n\t\tfor(j=1;j<=n;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tm=i;n=j;l=0;break;\n\t\t\t}\n\t\t}\n\t\tif(l==0)\n\t\t{\n\t\t\tbreak;}\n\t}\n\tcout< y) return common(x / 2, y);//???????????2\n\tif(x < y) return common(x, y / 2);\n\treturn x;//?????\n}\n\nint main()//???\n{\n\tint m = 0, n = 0;\n\tcin >> m >> n;\n\tcout << common(m, n) << endl;//????\n\treturn 0;\n}"} +{"label": "104", "index": "51565", "code": "int main()\n{ \n\tint x[20],y[20],i,h[20],j,s;\n\tfor(i=0;i<20;i++){x[i]=0;y[i]=0;h[i]=0;}\n int a,b;\n\tscanf(\"%d %d\",&a,&b);\n\tx[1]=a;y[1]=b;\n\tfor(i=2;x[i-1]>1;i++)\n\t\tx[i]=x[i-1]/2;\n\tfor(i=2;y[i-1]>1;i++)\n\t\ty[i]=y[i-1]/2;\n\tfor(j=1;y[j]!=0;j++)\n\tfor(i=1;x[i]!=0;i++)\n\t\tif(x[i]==y[j])h[i]=x[i];\n\tfor(i=1;;i++)\n\t\tif(h[i]!=0){s=h[i];break;}\n\tprintf(\"%d\",s);\n\treturn 0;\n}"} +{"label": "104", "index": "51566", "code": "void main()\n{\n\tint a,b;\n\tint ai[500],bi[500];\n\tscanf(\"%d%d\",&a,&b);\n\tint i;\n\tai[0]=a;\n\tbi[0]=b;\n\tint a_n=0,b_n=0;\n\tfor(i=0;ai[i]!=0;i++)\n\t{\n\t\tai[i+1]=ai[i]/2;\n\t\ta_n++;\n\t}\n\tfor(i=0;bi[i]!=0;i++)\n\t{\n\t\tbi[i+1]=bi[i]/2;\n\t\tb_n++;\n\t}\n\tint eq=0;\n\tint j;\n\tfor(i=0;i> x >> y;\n cout << tree (x,y) << endl;\n return 0;\n}\nint tree (int a, int b)\n{\n int i,c;\n for (i=0;i<11;i++)\n {\n c=a/power(2,i);\n if (b==c)\n return b;\n }\n for (i=0;i<11;i++)\n {\n c=b/power(2,i);\n if (a==c)\n return a;\n }\n if (a==1||b==1)\n return 1;\n return tree (a/2,b/2);\n}\nint power (int m,int n)\n{\n int j,sum=1;\n for (j=0;j1)||(b[i]>1));\n for(i=0;i<11;i++)\n {\n for(j=0;j<11;j++)\n {\n if(b[j]==a[i]) \n {\n t=b[j];\n s=1;\n break;\n }\n }\n if(s==1) break;\n }\n printf(\"%d\",t);\n}"} +{"label": "104", "index": "51569", "code": "int up(int x) //????????????????\n{\n\tif(x%2==1)return (x-1)/2;\n\telse return x/2;\n}\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\twhile(x!=y) //?x???y????????\n\t{\n\t\tif(abs(x-y)==1) //?????x?y??????????\n\t\t{\n\t\t\ty=up(y); \n\t\t\tx=up(x);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(y>x)y=up(y); //????????????\n\t\t\telse x=up(x);\n\t\t}\n\t}\n\tcout<b)\n\t{\n\t\ta=a/2;Hanshu(a,b);\n\t}\n\telse\n\t{\n\t\tb=b/2;Hanshu(a,b);\n\t}\n}"} +{"label": "104", "index": "51573", "code": "\nint main() {\n\tint m, n, c;\n\tint mark[1010]={0};\n\tscanf(\"%d%d\",&m,&n);\n\twhile (m > 0) {\n\t\tmark[m] = 1;\n\t\tm /= 2;\n\t}\n\twhile (n > 0) {\n\t\tif (mark[n] != 0) {\n\t\t\tprintf(\"%d\\n\",n);\n\t\t\tbreak;\n\t\t}\n\t\tn /= 2;\n\t}\n}"} +{"label": "104", "index": "51574", "code": "\n\nint main()\n{\n\tint x,y,i,j,k=0;\n\tscanf (\"%d %d\",&x,&y);\n\tint a[10];\n\tint b[10];\n\tfor (i=0;i<10;i++)\n\t\t{\n\t\t\ta[i]=x;\n\t\t\tx/=2;\n\t\t}\n\t\tfor (i=0;i<10;i++)\n\t\t{\n\t\t\tb[i]=y;\n\t\t\ty/=2;\n\t\t}\n\t\tfor (i=0;i<10;i++)\n\t\t{\n\t\t\tfor (j=0;j<10;j++)\n\t\t\t\tif (a[i]==b[j])\n\t\t\t\t{printf (\"%d\",a[i]);\n\t\t\t\t k=1;\n\t\t\t\tbreak;}\n\t\t\tif (k==1)\n\t\t\t\tbreak;\n\n\t\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51575", "code": "/*\n * 111.cpp\n *\n * Created on: 2010-11-13\n * Author: dell\n * ??????\n */\n\n\nint main(){\n int x,i,n[100],m[100],j,k;\n cin>>n[1];\n cin>>m[1];\n if(m[1]!=n[1]){\n for(i=1;i<=100;i++){\n \tif(n[i]%2==0)n[i+1]=n[i]/2;\n \telse if(n[i]%2!=0&&n[i]!=1)n[i+1]=(n[i]-1)/2;\n \telse if(n[i]%2!=0&&n[i]==1)break;}\n for(j=1;j<=100;j++){\n \tif(m[j]%2==0)m[j+1]=m[j]/2;\n \telse if(m[j]%2!=0&&m[j]!=1)m[j+1]=(m[j]-1)/2;\n \telse if(m[j]%2!=0&&m[j]==1){\n \t\tk=j;\n \t\tbreak;}\n \t}\n for(i=1;i<=100;i++){\n \tfor(j=1;j<=k;j++){\n \tif(m[j]==n[i])\n \t\tbreak;}\n \tif(m[j]==n[i])\n \t break;\n }\n\n\n x=m[j];\n cout<>x>>y;\n cout<>x>>y;\n for(i=1;i<=500;i++)\n { for(j=1;j<=500;j++)\n { if(f(x,i)==f(y,j)) {cout<>x>>y;\n\tcommon(x,y);\n\treturn 0;\n}\nvoid tree(int x)\n{\n\tint a[100],i;\n\tfor(i=0;i<100;i++)\n\t\ta[i]=1;\n\ta[0]=x;\n\tif(x>1)\n\t\tfor(i=1;x>1;i++)\n\t\t{\n\t\t\tif(x%2!=0)\n\t\t\t\t{\n\t\t\t\t\ta[i]=(x-1)/2;\n\t\t\t\t\tx=a[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ta[i]=x/2;\n\t\t\t\tx=a[i];\n\t\t\t}\n\t\t}\n}\nint common(int x,int y)\n{\n\tint i,j,t,a[100],b[100];\n\tfor(i=0;i<100;i++)\n\t\t{\n\t\t\ta[i]=1;\n\t\t\tb[i]=1;\n\t}\n\ta[0]=x;b[0]=y;\n\tif(x>1)\n\t\tfor(i=1;x>1;i++)\n\t\t{\n\t\t\tif(x%2!=0)\n\t\t\t\t{\n\t\t\t\t\ta[i]=(x-1)/2;\n\t\t\t\t\tx=a[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ta[i]=x/2;\n\t\t\t\tx=a[i];\n\t\t\t}\n\t\t}\n\tif(y>1)\n\t\tfor(i=1;y>1;i++)\n\t\t{\n\t\t\tif(y%2!=0)\n\t\t\t\t{\n\t\t\t\t\tb[i]=(y-1)/2;\n\t\t\t\t\ty=b[i];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tb[i]=y/2;\n\t\t\t\ty=b[i];\n\t\t\t}\n\t\t}\n\tif(x>=y)\n\t{\n\t \n\t for(i=0;i<100;i++)\n\t\t\t{\n\t\t\t\tfor(j=0;j<100;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(b[j]==a[i])\n\t\t\t\t\t {\n\t\t\t\t\t\t cout<a2[l]) k++;\n\t\telse l++;\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51580", "code": "\nint a(int x,int i) //?x?????i??\n{\n\tif(i==1)\n\t\treturn x;\n\telse return a(x,i-1)/2;\n}\nint main()\n{\n\tint x,y; //??x?y \n\tcin>>x>>y;\n\tint xline[100],yline[100]; //??x?y???\n\tint i=1; //??x?y???\n\tdo{\n\t\txline[i]=a(x,i);\n\t\ti++;\n\t}while(a(x,i));\n\tint j=1;\n\tdo{\n\t\tyline[j]=a(y,j);\n\t\tj++;\n\t}while(a(y,j));\n\tfor(j--,i--;yline[j]==xline[i]&&j>=1&&i>=1;j--,i--);//??????????????\n\tcout<>inputx>>inputy;\n\tcout <=0 && y-1-i>=0;i++)\n\t\t\t{ \tif (a[x-1-i]!=b[y-1-i])\n\t\t\t {break;}\n\t\t\t}\n\t printf(\"%d\\n\",a[x-i]);\n\t\t}\n\t}\n}"} +{"label": "104", "index": "51583", "code": "int last(int k)\n{\n\tif (k%2==0)\n\t{\n\t\treturn (k/2);\n\t}\n\telse\n\t{\n\t\treturn ((k-1)/2);\n\t}\n}\n\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\twhile (x!=y)\n\t{\n\t\tif (x>y)\n\t\t{\n\t\t\tx = last(x);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ty = last(y);\n\n\t\t}\n\t}\n\tcout<y) return route(x/2,y);\n\tif(x>x>>y;\n\tcout<y) a=f(x/2,y);\n\telse a=f(x,y/2);\n\treturn a;\n}\n"} +{"label": "104", "index": "51589", "code": "void main()\n{\n\tint i,j,k;\n\tint a,b,c;\n\tint t1,t2;\n\tint x[100],y[100],z;\n\t\n\t\n\tscanf(\"%d%d\",&a,&b);\n\n\ti=0;\n\tdo\n\t{\n\t\tx[i++]=a;\n\t\ta/=2;\n\t}\n\twhile(a>1);\n\tx[i]=1;\n\tt1=i;\n\n\t\n\t\n\tj=0;\n\tdo\n\t{\n\t\ty[j++]=b;\n\t\tb/=2;\n\t}\n\twhile(b>1);\n\ty[j]=1;\n\tt2=j;\n\n\n\tfor(i=0;i<=t1;i++)\n\t{\n\t\tfor(j=0;j<=t2;j++)\n\t\t{\n\t\t\tif(x[i]==y[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",x[i]);\n\t\t\t\tgoto flag;\n\t\t\t}\n\t\t}\n\t}\nflag:;\n}"} +{"label": "104", "index": "51590", "code": "\nint main(){\n\tint x,y;\n\tcin>>x>>y;\n\tint a[11]={x},b[11]={y};\t//???a,b??x,y???\n\tfor(int i=1;a[i-1]!=1;i++){\n\t\tif(a[i-1]%2==0)\n\t\t\ta[i]=a[i-1]/2;\n\t\telse a[i]=(a[i-1]-1)/2;\n\t\t}\t//??x???\n\tfor(int i=1;b[i-1]!=1;i++){\n\t\tif(b[i-1]%2==0)\n\t\t\tb[i]=b[i-1]/2;\n\t\telse b[i]=(b[i-1]-1)/2;\n\t\t} //??y???\n\tfor(int j=0;a[j]!=0;j++)\n\t\tfor(int k=0;b[k]!=0;k++)\n\t\t\tif(a[j]==b[k]){\n\t\t\t\tcout<>a>>b;\n\tm=a;\n\tn=b;\n\n\tdo\n\t{a=m;\n\tdo\n\t{\n\t\tif (a==b) \n\t\t{\n\t\t\tcout<=1);\n\n\tb=shangyigejiedian(b);\n\t}while(b>=1);\n\n\treturn 0;\n}\n\nint shangyigejiedian(int i)\n{\n\tint shangyigejiedian;\n\tif(i==1) return 0;\n\telse\n\t{\n\t\tif(i%2==0) return i/2;\n\t\telse return(i-1)/2;\n\t}\n}"} +{"label": "104", "index": "51592", "code": "/* Note:Your choice is C IDE */\nvoid main()\n{int i=0,j=0,flag=0,s1,s2,n,p,a[12],b[12];\n\tscanf(\"%d%d\",&n,&p);\n\twhile(n>0)\n\t{a[i]=n;\n\t\tn/=2;\n\t\ti++;}\n \twhile(p>0)\n\t{b[j]=p;\n\t\tp/=2;\n\t\tj++;}\n\tfor(s1=0;s1y)\n\t\tflag=searchjoint(y,x);\n\telse \n\t\tflag=searchjoint(x,y);\n\tprintf(\"%d\",flag);\n\treturn 0;\n}\nint searchjoint(int x,int y)\n{\n\tint i,j,t,flag=1;\n\tfor(i=0;i<10 && x>=1;i++)\n\t{\n\t\tfor(j=0,t=y;j<10 && t>=1;j++)\n\t\t{\n\t\t\tt=t/2;\n\t\t\tif(x==t)\n\t\t\t{\n\t\t\t\tflag=x;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag!=1)\n\t\t\tbreak;\n\t\tx=x/2;\n\t}\n\treturn flag;\n}"} +{"label": "104", "index": "51594", "code": "void main()\n{\n\tint road_1[10]={0},road_2[10]={0};\n\tint n,x,y,m,i,j;\n\tscanf(\"%d %d\",&x,&y);\n\t\n\t//?????????\n\troad_1[0]=x;//?x????\n\tfor(n=1;x!=1;n++)\n\t{\n\t\tif(x%2==0)\n\t\t{\n\t\t\troad_1[n]=x/2;\n\t\t\tx=x/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\troad_1[n]=(x-1)/2;\n\t\t\tx=(x-1)/2;\n\t\t}\n\t}\n\t\n\troad_2[0]=y;//?y????\n\tfor(m=1;y!=1;m++)\n\t{\n\t\tif(y%2==0)\n\t\t{\n\t\t\troad_2[m]=y/2;\n\t\t\ty=y/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\troad_2[m]=(y-1)/2;\n\t\t\ty=(y-1)/2;\n\t\t}\n\t}\n\n\t//????\n\tfor(i=0;i>x>>y;\n\tcout<n)\n\t\tp=n;\n\telse p=m;\n\tfor(i=0;i<=p;i++)\n\t{\n\t\tif(a[m-i]!=b[n-i])\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn a[m-i+1];\n}\n\n"} +{"label": "104", "index": "51596", "code": "int main()\n{\n int xpath[100]={0},ypath[100]={0};\n int xi=0,yi=0;\n cin>>xpath[0]>>ypath[0];\n while(xpath[xi]!=1)\n\t{\n\t xpath[xi+1]=xpath[xi]/2;\n\t xi++;\n\t}\n while(ypath[yi]!=1)\n\t{\n\t ypath[yi+1]=ypath[yi]/2;\n\t yi++;\n}\nwhile(xi>=0 && yi>=0)\n{\n\tif(xpath[xi]!=ypath[yi])\n\t{\n\t\tcout<y[0])\n\t{\n\t\ttemp=x[0];\n\t\tx[0]=y[0];\n\t\ty[0]=temp;\n\t}\n\ti=0;\n\twhile(x[i]!=1)\n\t{\n\t\ti++;\n\t\tx[i]=x[i-1]/2;\n\t}\n\ti=0; j=0;\n\twhile(y[j]!=x[i])\n\t{\n j++;\n\t y[j]=y[j-1]/2;\n\t if(y[j]=0)\n r1=i;\n if ((y-pow(2,i-1)) < pow(2,i-1) && (y-pow(2,i-1))>=0)\n r2=i;\n if (r1!=0 && r2!=0)\n break;\n }\n if (r1>r2)\n x=x/pow(2,r1-r2);\n else if (r1>m>>n;\n father(m,n);\n return 0;\n}\n"} +{"label": "104", "index": "51599", "code": "int erchashu(int a,int b)\n{\n\tif(a==b) return(a);\n\tif(a>b) return(erchashu(a/2,b));\n\tif(a>a[0]>>b[0];\n\t\n\t//????a???\n\tfor(i=0;a[i]>0;i++)\n\t\ta[i+1]=a[i]/2;\n\tfor(j=0;j<=i/2-1;j++) //\"<=\"!!!!!!!!\n\t{\n\t\tt=a[j];a[j]=a[i-1-j];a[i-1-j]=t;\n\t}\n\ta[i]=-1;\n\n\t\n\t//????b???\n\tfor(i=0;b[i]>0;i++)\n\t\tb[i+1]=b[i]/2;\n\tfor(j=0;j<=i/2-1;j++)\n\t{\n\t\tt=b[j];b[j]=b[i-1-j];b[i-1-j]=t;\n\t}\n\tb[i]=-1;\n\n\tfor(i=0;a[i]==b[i] && a[i]!=-1;i++);\n\tcout<n)\n\t{\n\t\tfor(i=1;i<=m-n;i++)\n\t\t{\n\t\t\tif(x/2*2==x) x=x/2;\n\t\t\telse x=(x-1)/2;\n\t\t}\n\t}\n\tif(n>m)\n\t{\n\t\tfor(i=1;i<=n-m;i++)\n\t\t{\n\t\t\tif(y/2*2==y) y=y/2;\n\t\t\telse y=(y-1)/2;\n\t\t}\n\t}\n\tint f(int x,int y);\n\tprintf(\"%d\",f(x,y));\n}\n\nint f(int x,int y)\n{\n\tint z;\n\tif(x==y) {z=x;return z;}\n\telse if(x/2*2==x&&y/2*2==y)\n\t{\n\t\tx=x/2;\n\t\ty=y/2;\n\t\tz=f(x,y);\n\t}\n\telse if(x/2*2!=x&&y/2*2!=y)\n\t{\n\t\tx=(x-1)/2;\n\t\ty=(y-1)/2;\n\t\tz=f(x,y);\n\t}\n\telse if(x/2*2!=x&&y/2*2==y)\n\t{\n\t\tx=(x-1)/2;\n\t\ty=y/2;\n\t\tz=f(x,y);\n\t}\n\telse if(x/2*2==x&&y/2*2!=y)\n\t{\n\t\tx=x/2;\n\t\ty=(y-1)/2;\n\t\tz=f(x,y);\n\t}\n}"} +{"label": "104", "index": "51604", "code": "void main()\n{\n int x,y,a,b,flag=1;\n scanf(\"%d %d\",&x,&y);\n for(b=y;b>=1;b=b/2)\n {\n \tfor(a=x;a>=1;a=a/2)\n {\n \tif(a==b) \n \t{\n \t\tif(flag==1)\n \t\t{\n \t\t\tprintf(\"%d\",a);\n \t\t\tflag=0;\n \t\t}\n \t}\n }\n }\n \n}"} +{"label": "104", "index": "51605", "code": "int main()\n{\n\tint x[1000]={0},y[1000]={0};\n\tcin>>x[0]>>y[0];\n\tfor(int i=0;x[i]!=1;i++)\n\t{\n\t\tif(x[i]%2==1)\n\t\t\tx[i+1]=(x[i]-1)/2;\n\t\telse\n\t\t\tx[i+1]=x[i]/2;\n\t}\n\tfor(int i=0;y[i]!=1;i++)\n\t{\n\t\tif(y[i]%2==1)\n\t\t\ty[i+1]=(y[i]-1)/2;\n\t\telse\n\t\t\ty[i+1]=y[i]/2;\n\t}\n\tfor(int i=0;i<1000;i++)\n\t{\n\t\tfor(int j=0;j<1000;j++)\n\t\t{\n\t\t\tif(x[i]==y[j])\n\t\t\t{\n\t\t\t\tcout<>n>>m;\n\twhile(1)\n\t{\n\t\tif(nb)\n\t{\n\t\tif(a>=2*b)\n\t\t\ttree(a/2,b);\n\t\telse\n\t\t\ttree(a/2,b/2);\n\t}\n\telse\n\t\ttree(b,a);\n}\n\nint main()\n{\n\tint x,y;\n\tscanf(\"%d %d\",&x,&y);\n\ttree(x,y);\n\treturn 0;\n}\n"} +{"label": "104", "index": "51608", "code": "void main()\n{\n\tint x[11]={0},y[11]={0},i,j,flag=1;\n\tscanf(\"%d%d\",&x[0],&y[0]);\n\tfor(i=0;i<10;i++)\n\t{\n\t\tx[i+1]=x[i]/2;\n\t\tif(x[i]==1)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(j=0;j<10;j++)\n\t{\n\t\ty[j+1]=y[j]/2;\n\t\tif(y[j]==1)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(x[i]==1)\n\t\t{\n\t\t\tprintf(\"1\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tfor(j=0;j<11;j++)\n\t\t{\n\t\t\tif(x[i]==y[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",x[i]);\n\t\t\t\t\n\t\t\t\tif(x[i+1]==y[j+1])\n\t\t\t\t{\n\t\t\t\t\tflag=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==0)\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n}\n\n"} +{"label": "104", "index": "51609", "code": "int min (int m,int n)\n{\n\tif (m>x>>y;\n\tx0=x;\n\ty0=y;\n\tfor(i=0;x>=1;i++)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t}\t\n\tm=i;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//m??????????????a[m-1];\n\tfor(i=0;y>=1;i++)\n\t{\n\t\tb[i]=y;\n\t\ty=y/2;\n\t}\t\n\tn=i;\n\tint flag=0;\n\tfor(i=0;ib) return common(a/2,b);\n\treturn common(a,b/2);\n}"} +{"label": "104", "index": "51612", "code": "int main()\n{\n int m,n,i,j,y,k;\n scanf(\"%d %d\",&m,&n);\n if(m==n)\n printf(\"%d\",m);\n else\n {\n if(m1;j++) \n {\n k/=2;\n if(y==k)\n\t\t\t\t\t\t {printf(\"%d\",y);\n\t\t\t\t\t\t goto l1;}\n\t\t }\t\t\t \n if(k==1)\n k=n;\n \n }\n}\n}\n"} +{"label": "104", "index": "51613", "code": "void main()\n{\n\tint x,y,i,countx,county,c,p,q;\n\tint a[11]={0},b[11]={0};\n\tscanf(\"%d %d\",&x,&y);\n\tcountx=1;\n\tcounty=1;\n\tc=0;\n\tp=x;\n\tq=y;\n\twhile (p!=1)\n\t{\n\t\tcountx++;\n\t\tp=p/2;\n\t}\n\t\twhile (q!=1)\n\t{\n\t\tcounty++;\n\t\tq=q/2;\n\t}\n\t\tfor(i=countx;i>=1;i--)\n\t\t{\n\t\t\ta[i]=x;\n\t\t\tx=x/2;\n\t\t}\n\t\tfor(i=county;i>=1;i--)\n\t\t{\n\t\t\tb[i]=y;\n\t\t\ty=y/2;\n\t\t}\n\t\tfor (i=1;i<=10;i++)\n\t\t{\n\t\t\tif(a[i]==b[i]&&a[i]!=0&&b[i]!=0) c=a[i];\n\t\t\telse break;\n\t\t}\n\tprintf(\"%d\",c);\n}\n/*int days(int month,int day)\n{\n\tint z=0;\n\tint k;\n\tif (month==1) z=day;\n\telse\n\t{\n\t\tfor(k=1;ky)\n\t\ttree(x/2,y);\n}\nint main (){\n\tint x,y;\n\tcin >> x >> y;//?????\n\ttree(x,y);//??x1\n\treturn 0;\n}\n"} +{"label": "104", "index": "51615", "code": "void main()\n{\n\tint x,y,a[1000],b[1000],i,j,mx,my,flag=0;\n\tscanf(\"%d %d\",&x,&y);\n\t*a=x;\n\tfor(mx=1;mx<1000;mx++)\n\t{\n\t\t*(a+mx)=*(a+mx-1)/2;\n if(*(a+mx)==0) break;\n\t}\n\t*b=y;\n\tfor(my=1;my<1000;my++)\n\t{\n\t\t*(b+my)=*(b+my-1)/2;\n if(*(b+my)==0) break;\n\t}\n\tfor(i=0;i<=mx;i++)\n\t{\n\t\tfor(j=0;j<=my;j++)\n\t\t{\n\t\t\tif(*(a+i)==*(b+j))\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==1) break;\n\t}\n\tprintf(\"%d\",*(a+i));\n}\n"} +{"label": "104", "index": "51616", "code": "int main(){\n\tint x,y,an[15]={0},bn[15]={0};\n\tscanf(\"%d%d\",&x,&y);\n\tint i=0,j=0,t=1;\n\twhile(x!=0){\n\t\tan[i]=x;\n\t\tx=x/2;\n\t\ti++;\n\t}\n\twhile(y!=0){\n\t\tbn[j]=y;\n\t\ty=y/2;\n\t\tj++;\n\t}\n\twhile(1){\n\t\tif(an[i-t]!=bn[j-t]||i-t<0||j-t<0)break;\n\t\tt++;\n\t}\n\tprintf(\"%d\",an[i-t+1]);\n\treturn 0;\n}\n"} +{"label": "104", "index": "51617", "code": "//**************************************************\n//* ????1.cpp *\n//* ? ????? *\n//* ?????2010?11? *\n//* ???????? *\n//**************************************************\nint t(int,int); //????t??n????x\nint x,y; //??????x,y\nint main()\n{\t\n\tint i,j,m,n;\n\tcin>>x>>y;\n\tfor(i=0;i<100;i++) //?????x??1????? \n\t{\n\t\tif(x>=pow(2.0,(i-1)*1.0)&&x=pow(2.0,(j-1)*1.0)&&y=pow(2,i-1)&&x0;i--)\n\t\tfor(j=y;j>0;j--)\n\t\t\tif(a2[i]==b2[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a2[i]);\n\t\t\t\tgoto loop;\n\t\t\t}\nloop:printf(\"\\n\");\n}\n\n\n\n"} +{"label": "104", "index": "51619", "code": "\nint main(int argc, char* argv[])\n{\n\tint iaX[11], iaY[11];\n\tint x,y, i, j, ilenx=0, ileny=0;\n\tint itemp;\n\tint imin;\n\tscanf(\"%d%d\", &x, &y);\n\tfor (i=0; i<11; i++)\n\t{\n\t\tiaX[i]=-1;\n\t\tiaY[i]=-1;\n\t}\n\n\ti=0;\n\twhile(x>0)\n\t{\n\t\tiaX[i++]=x;\n\t\tx/=2;\n\t\tilenx++;\n\t}\n\ti=0; j=ilenx-1;\n\twhile(i0)\n\t{\n\t\tiaY[i++]=y;\n\t\ty/=2;\n\t\tileny++;\n\t}\n\ti=0; j=ileny-1;\n\twhile(iileny? ileny:ilenx;\n\tfor (i=0;i0;i1++)\n {\n a[i1]=m/2;\n m=m/2;\n }\n for(i2=1;n>0;i2++)\n {\n b[i2]=n/2;\n n=n/2;\n }\n for(i3=12;i3>=0;i3--)\n {\n if(a[i3]!=0) {c[i4]=a[i3];i4++;}\n }\n i4=0;\n for(i3=12;i3>=0;i3--)\n {\n if(b[i3]!=0) {d[i4]=b[i3];i4++;}\n }\n for(i3=0;i3<13;i3++)\n {\n if(c[i3]!=d[i3]||(c[i3]==0&&d[i3]==0))\n {\n printf(\"%d\",c[i3-1]);\n break;\n }\n }\n return 0;\n}"} +{"label": "104", "index": "51621", "code": "int main()\n{\n\tint a[12]={100,100,100,100,100,100,100,100,100,100,100,100},b[12]={99,99,99,99,99,99,99,99,99,99,99,99},i,c,d,e;\n\tvoid x(int o[],int q);\n\tvoid y(int p[],int w);\n\tscanf(\"%d%d\",&d,&e);\n\tx(a,d);\n\ty(b,e);\n\tfor(i=1;i<11;i++)\n\t{\n c=a[i];\n\t if(a[i+1]!=b[i+1])\n\t\t break;\n\t}\n\tprintf(\"%d\\n\",a[i]);\n\treturn 0;\n}\nvoid x(int o[],int q)\n{\n\tint m,u;\n\tif(q==1)\n\t\tm=1;\n\telse if(q<4)\n\t\tm=2,u=2;\n\telse if(q<8)\n\t\tm=3,u=4;\n\telse if(q<16)\n\t\tm=4,u=8;\n\telse if(q<32)\n\t\tm=5,u=16;\n\telse if(q<64)\n\t m=6,u=32;\n\telse if(q<128)\n\t\tm=7,u=64;\n\telse if(q<256)\n\t\tm=8,u=128;\n\telse if(q<512)\n\t\tm=9,u=256;\n\telse\n\t\tm=10,u=512;\n\to[m]=q;\n\to[m-1]=u/2+(q-u)/2;\n\tif(m>2)\n\tx(o,o[m-1]);\n}\nvoid y(int p[],int w)\n{\n\tint n,v;\n\tif(w==1)\n\t\tn=1;\n\telse if(w<4)\n\t\tn=2,v=2;\n\telse if(w<8)\n\t\tn=3,v=4;\n\telse if(w<16)\n\t\tn=4,v=8;\n\telse if(w<32)\n\t\tn=5,v=16;\n\telse if(w<64)\n\t n=6,v=32;\n\telse if(w<128)\n\t\tn=7,v=64;\n\telse if(w<256)\n\t\tn=8,v=128;\n\telse if(w<512)\n\t\tn=9,v=256;\n\telse\n\t\tn=10,v=512;\n\tp[n]=w;\n\tp[n-1]=v/2+(w-v)/2;\n\tif(n>2)\n\tx(p,p[n-1]);\n}\n\n"} +{"label": "104", "index": "51622", "code": "int main(int a,int b){scanf(\"%d%d\",&a,&b);while(a!=b){while(a>b)a/=2;while(a1)\n\t{\n\t\tif(x[i]%2==0) x[i+1]=x[i]/2;\n\t\telse x[i+1]=(x[i]-1)/2;\n\t\ti=i+1;\n\t\tnum1=i+1;\n\t}\n\twhile(y[j]>1)\n\t{\n\t\tif(y[j]%2==0) y[j+1]=y[j]/2;\n\t\telse y[j+1]=(y[j]-1)/2;\n\t\tj=j+1;\n\t\tnum2=j+1;\n\t}\n\tint judge;\n\tfor(i=num1, j=num2;i>=0;i--)\n\t{\n\t\tif(x[i]==y[j]){j=j-1; judge=x[i];}\n\t}\n\tprintf(\"%d\\n\", judge);\n\t}\n\treturn 0;\n}\n"} +{"label": "104", "index": "51624", "code": "void count (int ,int );\nint flag;\nint main()\n{ int m,n,temp;\n cin>>m>>n;\n if( m > n )\n {\n\t temp = n;\n\t n = m;\n\t m = temp;\n }\t\n flag = 0;\n for(int i=m;i>=1 && flag == 0;i = i/2 )\n {\n\tcount (n,i);\n }\n return 0;\n}\n void count (int n,int i)\n { \n\t if( n < 1 || n < i )\n\t {\n\t\t return ;\n\t }\n\t else\n\t {\n\t\t if(i == n)\n\t\t {\n\t \tcout<y) {s++; return common(x/2,y,s);}\n\tif(x>a>>b;\n\tcout<>x>>y;\n\tmemset(p,0,sizeof(p));\n\tp[1]=1;\n\twhile(x!=1){ //?x?????????\n\t\tp[x]=1; //??x?????\n\t\tx=f[x];\n\t}\n\twhile(p[y]!=1) y=f[y]; //??y?????????x????????\n\tcout<>x>>y;\n\tcout<y)\n\t\treturn common(x/2,y);\n\telse\n\t\treturn common(x,y/2);\n}\n"} +{"label": "104", "index": "51628", "code": "int x(int a,int b);\nmain()\n{\n\tint a,b;\n\tscanf(\"%d%d\",&a,&b);\n\tprintf(\"%d\",x(a,b));\n}\nint x(int a,int b)\n{\n\tif(a>b)\n\t{a=a/2;\n\treturn x(a,b);}\n if(a=1;i++)\n\t\t{\n\t\t\tif(a[i]%2==0)\n\t\t\ta[i+1]=a[i]/2;\n\t\t\tif(a[i]%2==1)\n\t\t\t\ta[i+1]=(a[i]-1)/2;\n\t\t}\n\t\tb[0]=n;\n\t\tfor(j=0;b[j]>=1;j++)\n\t\t\t\t{\n\t\t\t\t\tif(b[j]%2==0)\n\t\t\t\t\tb[j+1]=b[j]/2;\n\t\t\t\t\tif(b[j]%2==1)\n\t\t\t\t\t\tb[j+1]=(b[j]-1)/2;\n\t\t\t\t}\n\t\tfor(i=0;a[i]>=1;i++)\n\t\t{\n\t\t\tfor(j=0;b[j]>=1;j++)\n\t\t\t{\n\t\t\t\tif(b[j]==a[i])\n\t\t\t\t{\n\t\t\t\t\tk=a[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(k==a[i])\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\tprintf(\"%d\",k);\n}"} +{"label": "104", "index": "51630", "code": "/*\n * T.cpp\n *\n * Created on: 2011-11-5\n * Author: dell\n */\nint main()\n{\n\tint x,y,i,j,flag=1;\n\tcin>>x>>y;\n\tint a[x],b[y];\n\ta[0]=x;b[0]=y;\n\tfor(i=1;i<=x;i++)\n\t\ta[i]=0;\n\tfor(i=1;i<=y;i++)\n\t\t\tb[i]=0;\n\tfor(i=0;i<=x;i++)\n\t\ta[i+1]=a[i]/2;\n\tfor(j=0;j<=y;j++)\n\t\tb[j+1]=b[j]/2;\n\tfor(i=0;i<=x;i++)\n\t{\n\t\tfor(j=0;j<=y;j++)\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tcout<m)\n\t{\n\t\ttmp=n;\n\t\tn=m;\n\t\tm=tmp;\n\t}\n\tdo\n\t{\n\t\tp[n]=1;\n\t\tn=n/2;\n\t} while (n>0);\n\tdo\n\t{\n\t\tif (p[m]) \n\t\t{\n\t\t\tprintf(\"%d\",m);\n\t\t\treturn;\n\t\t}\n\t\tm=m/2;\n\t} while (m>0);\n}"} +{"label": "104", "index": "51632", "code": "int x,y;\nint *p1=&x;\nint *p2=&y;\nvoid Read()\n{\n\tscanf(\"%d%d\",p1,p2);\n}\n/*int array for Pathway a[11],b[11]*/\nint a[11]={0},b[11]={0};\n/*int Function return Answer (x>=2^(Answer-1)&&x<(2^Answer)) as FuncofA */\nint FuncofA(int X)\n{\n\tint i;\n\tfor(i=1;;i++)\n\t{\n\t\tif((pow(2.0,i-1)<=X)&&pow(2.0,i)>X)\n\t\t{\n\t\t\treturn i;\n\t\t}\n\t\telse\n\t\t{}\n\t}\n}\n/*Function for binary tree as FuncofB*/\nvoid FuncofB()\n{\n\tint i;\n\tfor(i=(FuncofA(x));i>=1;i--)\n\t{\n\t\ta[i-1]=x;\n\t\tx/=2;\n\t}\n\tfor(i=(FuncofA(y));i>=1;i--)\n\t{\n\t\tb[i-1]=y;\n\t\ty/=2;\n\t}\n}\nvoid main()\n{\n\tRead();\n\tif(x==y)\n\t{\n\t\tgoto equal;\n\t}\n\telse\n\t{\n\t\tgoto unequal;\n\t}\nequal:\n\tprintf(\"%d\",x);\n\tgoto End;\nunequal:\n\tFuncofB();\n\tint i;\n\tfor(i=1;;i++)\n\t{\n\t\tif(a[i-1]==b[i-1])\n\t\t{}\n\t\telse\n\t\t{\n\t\t\tprintf(\"%d\",a[i-2]);\n\t\t\tbreak;\n\t\t}\n\t}\nEnd:\n\t;\n}"} +{"label": "104", "index": "51633", "code": "void main()\n{\n\tint a[10000],b[10000];\n\tint x,y,i,k,j;\n\tscanf(\"%d %d\",&x,&y);\n\tif(x==y)printf(\"%d\\n\",x);\n\telse if(x*y==x||x*y==y)printf(\"1\");\n\telse\n\t{\n\tfor(i=2;;i++)\n\t{\n\t\ta[0]=0;\n\t\ta[1]=x;\n\n\t\n\n\t\tif(x%2==1)\n\t\t{\n\t\t\tx=(x-1)/2;\n\t\t\ta[i]=x;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=x/2;\n\t\t\ta[i]=x;\n\t\t}\n\tif(x==1)break;\n\t}\n\n\tb[1]=y;\n\tb[0]=1;\n\tfor(j=2;;j++)\n\n\t{\n\t\n\t\t\n\n\t\tif(y%2==1)\n\t\t{\n\t\t\ty=(y-1)/2;\n\t\t\tb[j]=y;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ty=y/2;\n\t\t\tb[j]=y;\n\t\t}\n if(y==1)break;\n\n\t}\n\tfor(k=0;;k++)\n\t{\n\t\tif(a[i-k]!=b[j-k])\n\t\t\tbreak;\n\t}\n\tprintf(\"%d\\n\",a[i-k+1]);\n\t}\n}\n"} +{"label": "104", "index": "51634", "code": "void main()\n{\n\tint c[15],d[15],p,q,i,x,j,m,n;\n\tscanf(\"%d%d\",&n,&m);\n\ti=0;\n\tdo\n\t{\n\t\tc[i]=n;\n\t\tn=n/2;\n\t\ti=i+1;\n\t}while(n>0);\n\tp=i;\n\ti=0;\n\tdo\n\t{\n\t\td[i]=m;\n\t\tm=m/2;\n\t\ti=i+1;\n\t}while(m>0);\n\tq=i;x=0;\n\tfor(i=0;i>x>>y;\t\t//????x?y\n\twhile (y!=1)\n\t{\n\t\tm=x;\t\t//m????x\n\t\twhile (m!=1)\n\t\t{\n\t\t\tif (m==y)\t\t//?????\n\t\t\t{\n\t\t\t\tcout<>a>>b;\n kuai(a,b);\n return 0;\n}\n\nint kuai(int x,int y)\n{\n if(x==y)\n cout<y)\n kuai(x/2,y);\n return x;\n}\n"} +{"label": "104", "index": "51639", "code": "void main()\n{\n\tint a[20],b[20]={0},x,y,i,j,a0,b0,ia,jb,word=0;\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x,b[0]=y;\n\tfor(i=1;a0!=1;i++)\n\t{\n\t\tif(a[i-1]%2==0)a[i]=a[i-1]/2;\n\t\telse a[i]=(a[i-1]-1)/2;\n\t\ta0=a[i];\n\t}\n\tia=i;\n\tfor(j=1;b0!=1;j++)\n\t{\n\t\tif(b[j-1]%2==0)b[j]=b[j-1]/2;\n\t\telse b[j]=(b[j-1]-1)/2;\n\t\tb0=b[j];\n\t}\n\tjb=j;\n\tfor(i=0;i=1;i++)\n\t{\n\t\ta[i+1]=a[i]/2;\n\n\t}\n\n\tfor(j=0;b[j]>=1;j++)\n\t{\n\t\tb[j+1]=b[j]/2;\n\n\t}\nfor(i=0;i<=12;i++)\nfor(j=0;j<=12;j++)\nif(a[i]==b[j])\n{\n\tprintf(\"%d\\n\",a[i]);\nreturn 0;\n}\n\t\n}\n\n\t"} +{"label": "104", "index": "51641", "code": "int main()\n{\n\tint a,b,i=1,j=1,m,n,x[11],y[11];\n\tscanf(\"%d%d\",&a,&b);\n\tx[0]=a;y[0]=b;\n\twhile(a>1)\n\t{\n\t\ta=a/2;\n\t\tx[i]=a;\n\t\ti++;\n\t}\n\twhile(b>1)\n\t{\n\t\tb=b/2;\n\t\ty[j]=b;\n\t\tj++;\n\t}\n\tfor(m=0;m>a>>b;\n\tline(a,x,1);\n\tline(b,y,1);\n\tfor(i=1;x[i]!=0;i++)\n\t{\n\t\tfor(j=1;y[j]!=0;j++)\n\t\t{\n\t\t\tif(x[i]==y[j])\n\t\t\t{\n\t\t\t\tcout<>x>>y;\n h(x,a,-1);\n m(y,b,-1);\n for(j=0;a[j]!=0;j++)\n {\n for(t=0;b[t]!=0;t++)\n {\n if(a[j]==b[t])\n\t {\n\t cout<k))\n\t\t{\n\t\t\treturn i;\n\t\t}\n\t}\n}\n\n//??????????\nint up(int x)\n{\n\tint y;\n\tif(x%2==0)\n\t\ty=x/2;\n\telse\n\t\ty=(x-1)/2;\n\treturn y;\n}\n\nint main()\n{\n\tint x,y;\n\tscanf(\"%d %d\",&x,&y);\n\tif(level(x)==level(y))\n\t{\n\t\twhile(x!=y)\n\t\t{\n\t\t\tx=up(x);\n\t\t\ty=up(y);\n\t\t}\n\t}\n\telse\n\t\tif(level(x)>x>>y;\n nx[10]=x;\n ny[10]=y;\n \n for(int i=10;i>0;i--)\n nx[i-1]=nx[i]/2;\n for(int i=10;i>0;i--)\n ny[i-1]=ny[i]/2;\n\n for(sx=0;sx<11;sx++)\n if(nx[sx]!=0)\n {\n sx--;\n break;\n }\n for(sy=0;sy<11;sy++)\n if(ny[sy]!=0)\n {\n sy--;\n break;\n }\n\n for(int i=0;i<11;i++)\n {\n if(nx[sx]!=ny[sy])\n break;\n sx++;\n sy++;\n }\n \n cout<b)\n\t\treturn a;\n\telse\n\t\treturn b;\n}\nint min(int c,int d)\n{\n\tif(c>x>>y;\n\tt1=x;\n\tt2=y;\n\tif(t1==t2)\n\t\tcout<b){\n\t\ta=div(a);\n\t\tcompare(a,b);}\n\telse if (a>x>>y;\n\tpath(x,y);\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "104", "index": "51650", "code": "\nint N[MAX];\n\nint x_iter(int x){\n if(N[x-1]==1) return x;\n else{\n N[x-1]=1;\n x_iter(x/2);\n }\n}\n\nint main(){\n int x,y;\n cin>>x>>y;\n memset(N,0,sizeof(N));\n x_iter(x);\n cout<1))\n\t\t a[i+1]=a[i]/2;\n\t\tif(a[i]%2!=0)\n\t\t a[i+1]=(a[i]-1)/2;\n\t\tif(a[i]==1)\n\t\t\tbreak;\n\t}\n\tfor(j=0;;j++)\n\t{\n\t\tif((b[j]%2==0)&&(b[j]>1))\n\t\t b[j+1]=b[j]/2;\n\t\tif(b[j]%2!=0)\n\t\t b[j+1]=(b[j]-1)/2;\n\t\tif(b[j]==1)\n\t\t\tbreak;\n\t}\n\tp=i;\n\tq=j;\n\tfor(i=0;i<=p/2;i++)\n\t{\n t=a[i];\n a[i]=a[p-i];\n a[p-i]=t;\n }\n\tfor(i=0;i<=q/2;i++)\n\t{\n t=b[i];\n b[i]=b[q-i];\n b[q-i]=t;\n }\n for(j=0;;j++)\n {\n if(a[j]!=b[j])\n break;\n }\n\tprintf(\"%d\",a[j-1]);\n }\n return 0;\n}"} +{"label": "104", "index": "51652", "code": "void ercha(int *p)\n{\n\twhile(*p!=1)\n\t{\n p++;\n\t\t*p=(*(p-1))/2;\n\t}\n}\nvoid main()\n{\n\tint a[11]={0},b[11]={0},m,n,i,j;\n\tscanf(\"%d%d\",&m,&n);\n\ta[0]=m;\n\tb[0]=n;\n ercha(a);\n\tercha(b);\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(a[i]>b[0]){continue;}\n\t\telse\n\t\t{\n\t\t\tfor(j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tprintf(\"%d\",a[i]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(a[i]==b[j])break;\n\t\t}\n\t}\n}"} +{"label": "104", "index": "51653", "code": "void main()\n{\n int n,m,l,k,t,i,j,x,y;\n int a[1000],b[1000];\n scanf(\"%d%d\",&n,&m);\n if(n=k-t;i--)\n {\n if(a[i]==b[i+t-k]&&a[i-1]!=b[i+t-k-1])\n {\n x=a[i];\n break;\n }\n }\n printf(\"%d\",x);\n}"} +{"label": "104", "index": "51654", "code": "int main()\n{\n\tint a[100],b[100];\n\tint x,y,i=0,j=0,n1,n2;\n\tcin>>x>>y;\n\twhile(x>=1)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t\ti=i+1;\n\t}\n\tn1=i;\n\twhile(y>=1)\n\t{\n\t\tb[j]=y;\n\t\ty=y/2;\n\t\tj=j+1;\n\t}\n\tn2=j;\n\tfor(i=0;iy)\n\t{\n\t\treturn common(x/2,y);\n\t}\n\telse\n\t{\n\t\treturn common(x,y/2);\n\t}\n}\n"} +{"label": "104", "index": "51657", "code": "int main(int argc, char* argv[])\n{\n\tint x,y,a[11],b[11],i,j,m,n;\n\ti=0;\n\tj=0;\n\tint flag;\n\tflag=1;\n\tscanf(\"%d%d\",&x,&y);\n\tdo {a[i]=x;x=x/2;i=i+1;}\n\twhile (x>=1);\n\t\tdo {b[j]=y;y=y/2;j=j+1;}\n\t\twhile (y>=1);\n\t\t\tfor (m=0;m<11&&flag;m++)\n\t\t\t{\n\t\t\t\tfor (n=0;n<11&&flag;n++)\n\t\t\t\t{\n\t\t\t\tif (a[m]==b[n]) \n\t\t\t\t{\n\t\t\t\tprintf(\"%d\",a[m]);\n\t\t\t\tflag=0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51658", "code": "/*\n * 111110_03_tree.cpp\n *\n * Created on: 2011-11-10\n * Author: Alfalfa\n */\nint main(){\n\tint x,y,i,j,k1[1000],k2[1000],m=0,n=0;\n\tcin>>x>>y;\n\tfor(i=0;x>=1;i++) //??????x?????? ????k1\n\t{\n\t\tk1[i]=x;\n\t\tx=(x-x%2)/2;\n\t\tm++;\n\t}\n\tfor(i=0;y>=1;i++) //y????k2\n\t{\n\t\tk2[i]=y;\n\t\ty=(y-y%2)/2;\n\t\tn++;\n\t}\n\tfor(i=0;i=1)\n\t\t{\n\t\tx[i]=m;\n\t\tm=m/2;\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t}\n\tfor(j=0;j<=i;j++)\n\t\tp[j]=x[i-j-1];\n\tfor(i=0;i<=20;i++)\n\t{\n\t\tif(n>=1)\n\t\t{\n\t\ty[i]=n;\n\t\tn=n/2;\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t}\n\tfor(j=0;j<=i;j++)\n\t\tq[j]=y[i-j-1];\n\tfor(i=0;i<=20;i++)\n\t\tif(p[i]!=q[i])\n\t\t{\n\t\t\tprintf(\"%d\",p[i-1]);\n\t\t\tbreak;\n\t\t}\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n"} +{"label": "104", "index": "51660", "code": "int x,y;\nint maxn;\nint dfs(int n){\n\tint r=0;\n\tif(n==x||n==y)r++;\n\tif(n>maxn)return 0;\n\tr+=dfs(2*n)+dfs(2*n+1);\n\tif(r==2){\n\t\tcout<>x>>y;\n\tmaxn=x>y?x:y;\n\tdfs(1);\n\tcout<>x>>y;\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=0;a[i]!=1;i++)\n\t{\n\t\tif(a[i]%2==0)\n\t\t\ta[i+1]=a[i]/2;\n\t\telse a[i+1]=(a[i]-1)/2;\n\t}\n\tfor(i=0;b[i]!=1;i++)\n\t{\n\t\tif(b[i]%2==0)\n\t\t\tb[i+1]=b[i]/2;\n\t\telse b[i+1]=(b[i]-1)/2;\n\t}\n\tfor(i=0;a[i]!=1;i++)\n\t\tfor(j=0;b[j]!=1;j++)\n\t\t\tif(a[i]==b[j])\n\t\t\t\tgoto lable;\nlable:cout<=2;i++)\n\t\ta[i]=a[i-1]/2;\n for(l=1;b[l-1]>=2;l++)\n\t\tb[l]=b[l-1]/2;\n\tfor(j=0;j=pow(2,i)&&x1=pow(2,i)&&x2>x1>>x2;\n if(x1>x>>y;\n\tflag=0;\n\tfor(i=0;i<=x;i++) a[i]=0;\n\tfor(i=0;i<=y;i++) b[i]=0;\n \ti=0;j=0;\n\twhile(x>0)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t\ti++;\n\t}\n\twhile(y>0)\n\t{\n\t\tb[j]=y;\n\t\ty=y/2;\n\t\tj++;\n\t}\n for(m=0;m<=i;m++)\n {\n\n\t for(n=0;n<=j;n++)\n if (a[m]==b[n]) {cout<0;a/=2) {\n j=b;\n for(;j>0;j/=2)\n {\n if(a==j) {\n printf(\"%d\",a);\n i=1;break;}\n }\n if(i==1) break;}\n return 0;\n}"} +{"label": "104", "index": "51668", "code": "int main()\n{\n int x,y,t;\n cin>>x>>y;\n if (x>y)\n {\n t=x;x=y;y=t;\n }\n for (;(int)(log(x)/log(2))!=(int)(log(y)/log(2));)\n y=y/2;\n for (;(x!=y);)\n {\n x=x/2;\n y=y/2;\n }\n cout<>x>>y;//x,y?????\n\tcout<=2)\n\t\t {\n\t\t a[i]=x/2;\n\t x=x/2;\n\n\t }\n\t else break;\n\t }//?x????????????a????a[0]??????\n\n\t p=i-1;//?p?????????\n b[0]=y;\n for(i=1;i<=n;i++)\n {\n\t if(y>=2)\n\t {\n\t b[i]=y/2;\n\t y=y/2;\n\t }\n\t else break;\n }//?y????????????b????b[0]??????\n q=i-1;//?q?????????\n\n for(i=p,j=q;i>=0,j>=0;i--,j--)\n \tif(a[i]==b[j])\n \tc=a[i];\n \treturn c;//????????????\n\t\n\t\n\t\n}\n\n\n\n"} +{"label": "104", "index": "51670", "code": "/*\n * er_cha_shu.cpp\n * ?? - ???\n * ??????????1, 2, 3, ...???????????????????????????1?????????\n * ????????10????????(10, 5, 2, 1)??4????????(4, 2, 1)?????1????????\n * ???????1???????(1)???????x?y???????????????(x1, x2, ... ,1)?\n * (y1, y2, ... ,1)??????x = x1?y = y1?????????????i?j????xi ? yj???\n * ?xi = yj , xi + 1 = yj + 1, xi + 2 = yj + 2,... ??????????x?y???xi????yj??\n * Created on: 2013-11-20\n * Author: ???\n */\nint find(int x , int y){ // ???????\n\tif(x == y) return x; // ??????????\n\twhile( (x /= 2) > y ){} // ?????????? /2 ?????????????????????\n\treturn find(y , x);\n}\nint main(){\n\tint x , y;\n\tcin >> x >> y;\n\tcout << ( x > y ? find(x , y) : find(y , x) ) << endl;\n\treturn 0;\n}\n"} +{"label": "104", "index": "51671", "code": "\nvoid main()\n{\n\tint a,b,temp;\n\tscanf(\"%d %d\",&a,&b);\n\tif(ab);\n\t\tif(a>x[1]>>y[1];\n\ti=1;\n\twhile (x[i]!=1)\n\t{\n\t if (x[i]%2==0)\n\t {i=i+1;x[i]=x[i-1]/2;}\n\t else\n\t {i=i+1;x[i]=(x[i-1]-1)/2;}\n\t}\n\tl1=i;\n\ti=1;\n\twhile (y[i]!=1)\n\t{\n\t if (y[i]%2==0)\n\t {i=i+1;y[i]=y[i-1]/2;}\n\t else\n\t {i=i+1;y[i]=(y[i-1]-1)/2;}\n\t}\n\tl2=i;\n\tfor (i=1;i<=l1;i++)\n\t{\n\t\tfor (j=1;j<=l2;j++)\n\t\t{\n\t\t\tif (x[i]==y[j])\n\t\t\t\t{cout<y)\n{\n if(x%2==0) x=x/2;\n else x=(x-1)/2;\n}\nelse if(x>x>>y;\n\tfor (i=0;i<11;i++)//??x?y????\n\t{\n\t\tif (x>sum[i]&&x<=sum[i+1])\n\t\t\tx0=i+1;\n\t\tif (y>sum[i]&&y<=sum[i+1])\n\t\t\ty0=i+1;\n\t}\n\ta[x0]=x;\n\tb[y0]=y;\n\tfor (i=x0-1;i>0;i--)//??x???\n\t{\n\t\ta[i]=a[i+1]/2;\n\t}\n\tfor (i=y0-1;i>0;i--)//??y???\n\t{\n\t\tb[i]=b[i+1]/2;\n\t}\n\tif (x0>=y0)\n\t{\n\t\tfor (i=x0;i>0;i--)\n\t\t{\n\t\t\tif (a[i]==b[i])\n\t\t\t{\n\t\t\t\tcout<0;i--)\n\t\t\t{\n\t\t\t\tif (a[i]==b[i])\n\t\t\t\t{\n\t\t\t\t\tcout<> x >> y;\n\tcout << gcd( x, y );\n\treturn 0;\n}\n\nint gcd( int m, int n )\n{\n\tif( n>m )\n\t\treturn gcd( m, n/2 );\n\telse if( m>n)\n\t\treturn gcd( m/2, n );\n\telse\n\t\treturn m;\n}\n"} +{"label": "104", "index": "51678", "code": "int main() {\n\tint x, a[2][10], i, j, k, len[2], f;\n\tx = i = j = k = f = 0;\n\tmemset(a, 0, sizeof(a));\n\tmemset(len, 0, sizeof(len));\n\tfor (j=0; j<2; j++) {\n\t\tscanf(\"%d\", &x);\n\t\ti=0;\n\t\tdo {\n\t\t\ta[j][i] = x;\n\t\t\tif (x % 2 == 1)\n\t\t\t\tx--;\n\t\t\tx /= 2;\n\t\t\ti++;\n\t\t} while (x != 1 && x != 0);\n\t\ta[j][i] = 1;\n\t\tlen[j] = i;\n\t\t/*\n\t\tfor (; i>=0; i--)\n\t\t\tprintf(\"%d \", a[j][i]);\n\t\tprintf(\"\\n\");\n\t\t*/\n\t}\n\tif (a[0][0] == a[1][0]) {\n\t\tprintf(\"%d\", a[0][0]);\n\t\tf = 1;\n\t}\n\telse {\n\t\tfor (i=len[0], j=len[1]; i>=0 && j>=0; i--, j--) {\n\t\t\tif (a[0][i] != a[1][j]) {\n\t\t\t\tprintf(\"%d\", a[0][i+1]);\n\t\t\t\tf = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\tprintf(\"%d\", a[0][0]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (j == 0) {\n\t\t\t\tprintf(\"%d\", a[1][0]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//getchar();getchar();\n\treturn 0;\n}\n"} +{"label": "104", "index": "51679", "code": "\nint min(int x,int y){\n if (x>y) {\n return y;\n }\n else return x;\n}\nint max(int x,int y){\n if (x>x>>y;\n a=min(x,y);\n b=max(x,y);\n logofa=(log(a)/log(2.0));\n while (b>=(pow(2.0, logofa+1))) {\n b=b/2;\n }\n while (a>0) {\n if (a==b) {\n cout<=1){\n\t\ta[i]=m;\n\t\ti++;\n\t\tm=f(m);\n\t}\n\twhile(n>=1){\n\t\tb[j]=n;\n\t\tj++;\n\t\tn=f(n);\n\t}\n\tfor(p=0;p0){\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51683", "code": "int main()\n{\n\tint x,y,i,j;\n\tint a[100]={0},b[100]={0};\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;;i++)\n\t{\n\t\tif (a[i-1]==1) break;\n\t\ta[i]=a[i-1]/2;\n\t}\n\tfor(i=1;;i++)\n\t{\n\t\tif (b[i-1]==1) break;\n\t\tb[i]=b[i-1]/2;\n\t}\n\tfor(i=0;;i++)\n\t{\n\t\tfor(j=0;j<100;j++)\n\t\t{\n\t\t\tif (a[i]==b[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t\tgoto end;\n\t\t\t}\n\t\t}\n\t}\nend:\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51684", "code": "\nint go(int x){\n\n\tint y= 0;\n\n\tif(x%2== 1)\n\t\ty= (x- 1)/ 2;\n\telse\n\t\ty= x/ 2;\n\treturn y;\n}\n\nint main(){\n\n\tint a[10]= {0}, b[10]= {0}, same= 1, p= 0;\n\n\tcin>>a[0]>>b[0];\n\n\tint i= 0, j= 0, k= 0;\n\n\twhile((a[i]> 1) || (b[i]> 1)){\n\t\tp= 0;\n\n\t\tfor(j= 0; j<= i; j++){\n\t\t\tif(p== 0){\n\t\t\t\tfor(k= 0; k<= i; k++){\n\t\t\t\t\tif(a[j]== b[k]){\n\t\t\t\t\t\tsame= a[j];\n\t\t\t\t\t\tp= 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ta[i+1]= go(a[i]);\n\t\tb[i+1]= go(b[i]);\n\t\t\n\n\t\ti++;\n\t}\n\n\tcout<=0;i--)\n\t{\n\t\tm=a%2;\n\t\tif(m==0)\n\t\t{c[i]=a/2;}\n \telse if(m==1)\n\t\t{ c[i]=(a-1)/2;}\n\t a=c[i];\n\t}\n\t\n\td[11]=b;\n\tfor(i=10;i>=0;i--)\n\t{\n\t\tm=b%2;\n\t\tif(m==0)\n\t\t{d[i]=b/2;}\n \telse if(m==1)\n\t\t{ d[i]=(b-1)/2;}\n\t b=d[i];\n\t}\n\t\n\tj=0;\n\tfor(i=0;i<12;i++)\n\t\t{\n\t\t\t\n\t\t\tif(c[i]!=0)\n\t\t\t{e[j]=c[i];\n\t\t\tj=j+1;}\n\t\t\telse \n\t\t\t\tcontinue;\n\t\t}\n\t\n j=0;\n\tfor(i=0;i<12;i++)\n\t\t{\n\t\t\t\n\t\t\tif(d[i]!=0)\n\t\t\t{f[j]=d[i];\n\t\t\tj=j+1;}\n\t\t\telse \n\t\t\t\tcontinue;\n\t\t}\n\t\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(e[i]==f[i])\n\t\t{\n\t\t\tif(e[i]<=c[11]&&00){break;} \n }\n }\n else\n {\n for(n=0;n0){break;} \n } \n }\n}\n getchar();\ngetchar();\ngetchar(); \n}\n"} +{"label": "104", "index": "51688", "code": "int tree(int x,int y){\n\tif(xy)return tree((x-x%2)/2,y);\n\tif(x==y)return x;\n}\n\nint main() {\n\tint a,b;\n\tcin>>a>>b;\n\tcout << tree(a,b) << endl;\n\treturn 0;\n}\n"} +{"label": "104", "index": "51689", "code": "int main()\n{\n\tint x,y;\n\tscanf(\"%d %d\",&x,&y);\n\twhile(x>=1&&y>=1){\n\t\t if (x==y) \n\t\t {printf(\"%d\",x);\n break;\n\t\t }\n\t\t if(xy){\n x=x/2;\n\t\t\t }\n\t\t }\n\t}\n return 0;\n}"} +{"label": "104", "index": "51690", "code": "int main(){\nint x,y,m;\nscanf(\"%d %d\",&x,&y);\nm=y;\nwhile(x>=1){\n\twhile(y>=1){\n\t if(y==x){\n\t\t printf(\"%d\",y); return 0;\n\t }\n\t y=y/2;\n\t //printf(\"%d %d\\n\",x,y);\n\t}\n\tx=x/2;\n\ty=m;\n}\nreturn 0;\n}"} +{"label": "104", "index": "51691", "code": "/*\n * 1000012850_32.1.cpp\n * ????????????\n * Created on: 2010-11-20\n * Author: William\n */\nint main() //???\n{\n\tint a[12], b[12], i, j, k;\n\tcin>>a[0]>>b[0];\n\tif(a[0]!=1)\n\t{for(i=1;;i++)\n\t{\n\t\ta[i]=((a[i-1]-(a[i-1]%2))/2);\n\t\tif(a[i]==1)\n\t\t\tbreak;\n\t}}\n\tif(b[0]!=1)\n\t{for(i=1;;i++)\n\t{\n\t\tb[i]=((b[i-1]-(b[i-1]%2))/2);\n\t\tif(b[i]==1)\n\t\t\tbreak;\n\t}}\n\tfor(i=0;i<12;i++)\n\t\t{\n\t\t for(j=0;j<12;j++)\n\t\t {\n\t\t\t k=0;\n\t\t\t if(a[i]==b[j])\n\t\t\t {\n\t\t\t\t k=1;\n\t\t\t break;\n\t\t\t }\n\t\t }\n\t\t if(k==1)\n\t\t\t break;\n\t\t}\n\tcout<=t)\n {\n t=t*2;\n\tcx++;\n }\n t=2;cy=1;\n while(y>=t)\n {\n t=t*2;\n\tcy++;\n }\n while(!(x==y))\n {\n if(cx>=cy)\n\t{\n x=x/2;\n\t cx--;\n\t}\n\telse\n\t{\n y=y/2;\n\t cy--;\n\t}\n }\n printf(\"%d\\n\",x);\n}"} +{"label": "104", "index": "51693", "code": "/*\n * 1000062703.cpp\n *\n * Created on: 2010-11-12\n * Author: Administrator\n */\nint cha(int a,int b){\n\tif(a>b)\n\t\treturn(cha(a/2,b));\n\tif(a>x>>y;\n\tcout< n ) m /= 2;\n if( m < n ) n /= 2;\n }\n printf(\"%d\",m);\n \n} \nint main()\n{ int a , b,m;\n scanf(\"%d %d\",&a,&b);\n work(a,b);\n\n}\n"} +{"label": "104", "index": "51697", "code": "int f(int t)\n{\n\tint c=0;\n\tif(t==0)\n\t\tc=1;\n\tif(t>0)\n\t\tc=f(t-1)*2;\n\treturn c;\n}\nvoid main()\n{\n\tint i,a[11],b[11],m,n,x,y;\n\tscanf(\"%d%d\",&x,&y);\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif((x>=f(i))&&(x0;i--)\n\t{\n\t\tif(a[i]%2==0)\n\t\t\ta[i-1]=a[i]/2;\n\t\telse a[i-1]=a[i]/2+1;\n\t}\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif((y>=f(i))&&(y0;i--)\n\t{\n\t\tif(b[i]%2==0)\n\t\t\tb[i-1]=b[i]/2;\n\t\telse b[i-1]=b[i]/2+1;\n\t}\n\tif(x==y)\n\t\tprintf(\"%d\",x);\n\n\tif(m0;i++)\n\t\tfor(j=1;tree(y,j)>0;j++)\n\t\t\tif(tree(x,i)==tree(y,j))\n\t\t\t{\n\t\t\t\tprintf(\"%d\",tree(x,i));\n\t\t\t\treturn 0;\n\t\t\t}\n\t\tprintf(\"error\");\n\t\treturn 0;\n}"} +{"label": "104", "index": "51700", "code": "int main()\n{\n\tint x,y,i,j,s,t,v=0;\n\tint a[1000],b[1000];\n\tscanf(\"%d%d\",&x,&y);\n\tfor(i=0;x!=0;i++)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t}\n\ts=i;\n\tfor(i=0;y!=0;i++)\n\t{\n\t\tb[i]=y;\n\t\ty=y/2;\n\t}\n\tt=i;\n\tfor(i=0;i1;j++) \n {\n k/=2;\n if(y==k)\n\t\t {printf(\"%d\",y);\n\t\t\t i=100;\n break;}\n\t\t }\t\t\t \n if(k==1)\n k=n;\n \n }\n}\n}"} +{"label": "104", "index": "51703", "code": "main()\n{\nint x,y,i,j,m,n;\nstatic int a[16];\nstatic int b[16];\na[0]=10000;\nb[0]=20000;\nscanf(\"%d %d\",&x,&y);\na[1]=x;\nb[1]=y;\nfor(i=2;x>1;i++)\n { a[i]=x/2;\n x=x/2;}\nm=i-1;\nfor(j=2;y>1;j++)\n { b[j]=y/2;\n y=y/2;}\nn=j-1;\ndo{\n if(a[m]==b[n])\n m--;\n n--;\n }while(a[m]==b[n]);\nprintf(\"%d\",a[m+1]);\n}\n\n \n \n "} +{"label": "104", "index": "51704", "code": "/*\n * ditui2.cpp\n * ???\n * Created on: 2010-11-20\n * Author: ???\n */\n\nint main(){\n\tint x[1002],y[1002]; //???????\n\tint i,j,lengthx=0,lengthy=0,c=0; //lengthx,lengthy??x?y??????c????????\n\tcin>>x[0]>>y[0];\n\tfor(i=1;i<=1002;i++)\n\t\t{x[i]=x[i-1]/2;\n\t\tlengthx++;\n\t\tif(x[i]==0) break;\n\t\t}\n\tfor(i=1;i<=1002;i++)\n\t\t{y[i]=y[i-1]/2;\n\t\tlengthy++;\n\t\tif(y[i]==0) break;\n\t\t}\n\tfor(i=0;i<=lengthx-1;i++)\n\t\t{for(j=0;j<=lengthy-1;j++)\n\t\t\tif(x[i]==y[j])\n\t\t\t\t{c=x[i];break;}\n\t\tif(c!=0) break;\n\t\t}\n\tcout<y && x%2==0){\n\t\t\tx=x/2;}\n\t\telse if(x>y && x%2!=0){\n\t\t\tx=(x-1)/2;}\n\t\telse if(y>x && y%2==0){\n\t\t\ty=y/2;}\n\t\telse if(y>x && y%2!=0){\n\t\t\ty=(y-1)/2;}\n\t}\n\tprintf(\"%d\",x);\n\treturn 0;\n}\n "} +{"label": "104", "index": "51707", "code": "int main()\n{\n\tint n,m;\n\tscanf(\"%d%d\",&n,&m);\n\tint i,j,a[20]={n},b[20]={m};\n\tfor(i=1;i<20;i++)\n\t{\n\t\tif(n==1)\n\t\t\tbreak;\n\t\ta[i]=n/2;\n\t\tn=n/2;\n\t}\n\tfor(i=1;i<20;i++)\n\t{\n\t\tif(m==1)\n\t\t\tbreak;\n\t\tb[i]=m/2;\n\t\tm=m/2;\n\t}\n\tfor(i=0;i<20;i++)\n\t{\n\t\tfor(j=0;j<20;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t}\n\n\n\n\n\n\t\n\treturn 0;\n}\n"} +{"label": "104", "index": "51708", "code": "int main()\n{\n\tint a,b,c[11],d[11],n1=1,n2=1;\n\tint i,j,flag=0;\n\tscanf(\"%d %d\",&a,&b);\n\tc[0]=a;\n\td[0]=b;\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(c[i]==1)\n\t\t\tbreak;\n\t\tif(c[i]%2==0)\n\t\t\tc[i+1]=c[i]/2;\n\t\telse\n\t\t\tc[i+1]=(c[i]-1)/2;\n\t\tn1+=1;\n\t}\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(d[i]==1)\n\t\t\tbreak;\n\t\tif(d[i]%2==0)\n\t\t\td[i+1]=d[i]/2;\n\t\telse\n\t\t\td[i+1]=(d[i]-1)/2;\n\t\tn2+=1;\n\t}\n\tfor(i=0;i>a>>b;//?????\n\tint m[20];\n\tm[0]=a;m[10]=b;\n\tfor(i=1;i<10;i++)\n\t\tm[i]=m[i-1]/2;//a?1???\n\tfor(i=11;i<20;i++)\n\t\tm[i]=m[i-1]/2;//b?1???\n\tfor(i=0;i<20;i++)\n\t\tfor(j=i+1;j<20;j++)\n\t\t\tif(m[j]>m[i])\n\t\t\t{\n\t\t\t\tk=m[j];m[j]=m[i];m[i]=k;//???????????\n\t\t\t}\n\tfor(i=0;i<20;i++)\n\t\tif(m[i]==m[i+1])\n\t\t\t{cout<>x>>y;\nint a[100],b[100];\nt=x;\na[0]=x;\nfor(i=1;t/2>0;i++)\n\t{a[i]=t/2;t=t/2;}\n a[i]=1;\n t=y;\n b[0]=y;\nfor(j=1;t/2>0;j++)\n {b[j]=t/2;t=t/2;}\n b[j]=1;\nfor(;;)\n{if(i==-1)\n\t{cout<0;i++)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t}\n\tfor (j=0;y>0;j++)\n\t{\n\t\tb[j]=y;\n\t\ty=y/2;\n\t}\n\t\tif(i>j)\n\t{\n\tfor(m=0;mb)\n\t{t=a;a=b;b=t;}\n\tq=b;\n\twhile(a/2!=0)\n\t{\n\t\n\t\twhile(q/2!=0)\n\t\t{\n\t\n\t\t\tif(a==q)\n\t\t\t\tbreak;\n\t\t\tq/=2;\n\t\t}\n\t\t\n\t\tif(a==q)\n\t\t\tbreak;\n\t\ta/=2;\n\t\tq=b;\n\t}\n\treturn a;\n}"} +{"label": "104", "index": "51714", "code": "/*?? - ???*/ \n\n\n\nint main()\n{\n\tint x,y,t;\n\tcin>>x>>y;\n\tif(x>y)\n\t{\n\t\tt=x;x=y;y=t;\n\t}\n\tint floorx,floory;\n\tfloorx=floor(log(x)/log(2));//??x,y???? \n\tfloory=floor(log(y)/log(2));\n\tint i;\n\tfor(i=floory-1;i>=floorx;i--) \n\t y=y%2==0?y/2:(y-1)/2;//x??????????x????x/2?x????(x-1)/2 \n\tfor(i=floorx;i>=0;i--)\n\t{\n\t\tif(x!=y)\n\t\t{\n\t\t\tx=x%2==0?x/2:(x-1)/2;\n\t\t\ty=y%2==0?y/2:(y-1)/2;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tcout<> x >> y;\n\tint roadx[15] = {0};\n\tint roady[15] = {0};\n\tint c1 = 0, c2 = 0;\n\twhile(1) {\n\t roadx[c1] = x;\n\t\t x /= 2;\n\t\t c1++;\n\t\t if(x == 0) break;\n\t}\n\twhile(1) {\n\t roady[c2] = y;\n\t\t y /= 2;\n\t\t c2++;\n\t\t if(y == 0) break;\n\t}\n\tint i = 0;\n\twhile(1) {\n\t\tif(roadx[c1 - i - 1] != roady[c2 - i - 1]) {\n\t\t\tcout << roadx[c1 - i]; \n\t\t\tbreak;\n\t\t}\n\t\tif(i == c1 - 1) {\n\t\t\tcout << roadx[0];\n\t\t\tbreak;\n\t\t}\n\t\tif(i == c2 - 1) {\n\t\t\tcout << roady[0];\n\t\t\tbreak;\n\t\t}\n\t\ti++;\n\t}\n\tgetchar();\n\tgetchar();\n\treturn 0;\n}"} +{"label": "104", "index": "51716", "code": "\nvoid main()\n{\n\tint x,y;\n\tscanf(\"%d%d\",&x,&y);\n\tint a[1000],b[1000];\n\tint i=1,j=1;\n\ta[1]=x;\n\tb[1]=y;\n\tif(x==y)\n\t\tprintf(\"%d\",x);\n\telse\n\t{\n\twhile(a[i]!=1)\n\t{\n\t\ti++;\n\t\tif(x%2==0)\n\t\t{\n\t\t\ta[i]=x/2;\n\t\t\tx=x/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i]=(x-1)/2;\n\t\t\tx=(x-1)/2;\n\t\t}\n\t}\n\twhile(b[j]!=1)\n\t{\n\t\tj++;\n\t\tif(y%2==0)\n\t\t{\n\t\t\tb[j]=y/2;\n\t\t\ty=y/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[j]=(y-1)/2;\n\t\t\ty=(y-1)/2;\n\t\t}\n\t}\n\twhile(a[i]==b[j])\n\t{\n\t\ti--;\n\t\tj--;\n\t}\n\tprintf(\"%d\",a[i+1]);\n\t}\n}\n"} +{"label": "104", "index": "51717", "code": "int tree(int i,int j)\n{\n if(i==j) return i;\n if(i>j)\n {\n return tree(i/2,j); \n }\n if(i>i>>j;\n cout<=1&&y>=1)\n\t{\n\t\tfor(i=1;i<=1001;i++)\n\t\t{\n\t\t\ta[i]=x;\n\t\t\tx=x/2;\n\t\t\tb[i]=y;\n\t\t\ty=y/2;\n\t\t}\n\t}\n\tfor(i=1;i<=1001;i++)\n\t{\n\t\tfor(j=1;j<=1001;j++)\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t\tm=1;break;\n\t\t\t}\n\t\t\tif(m==1)\n\t\t\t\tbreak;\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51719", "code": "int main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\tint i,j,X[20]={0},Y[20]={0};\n\tX[0]=x;Y[0]=y;\n\tfor(i=1;i<20;i++)\n\t{\n\t\tX[i]=X[i-1]/2;\n\t\tY[i]=Y[i-1]/2;\n\t}\n\tint flag = 0;\n\tfor(i=0;i<20;i++)\n\t{\n\t\tfor(j=0;j<20;j++)\n\t\t{\n\t\t\tif(X[i]==Y[j])\n\t\t\t{\n\t\t\tcout<=a)n=i+1;\n\tj=a-pow(2,n-1)+1;\n\tk=(j+1)/2;\n p=pow(2,n-2)+k-1;\n\treturn p;\n}\nint main()\n{\n\tint m[12],n[12];\n\t\n\tint n1,n2,i,j,min;\n\tint x,y;\n\tcin>>x>>y;\n for(i=0;i<=11;i++)\n\t\tif(pow(2,i)<=x&&pow(2,i+1)-1>=x)n1=i+1;\n for(i=0;i<=11;i++)\n\t\tif(pow(2,i)<=y&&pow(2,i+1)-1>=y)n2=i+1;\n \n\tif(n1==1||n2==1)cout<<1;\n\telse\n\t{\n\tm[n1]=x;\n\tn[n2]=y;\n\tm[n1+1]=-1;\n\tn[n2+1]=-2;\n\tif(x>y)min=x;\n\telse min=y;\n\tfor(i=n1-1;i>=1;i--)\n\t\tm[i]=origin(m[i+1]);\n\tfor(i=n2-1;i>=1;i--)\n\t\tn[i]=origin(n[i+1]);\n\tfor(j=1;j<=min;j++)\n\t\tif(m[j]==n[j]&&m[j+1]!=n[j+1])\n\t\t{\n\t\t\tcout<y)return f(floor(x/2),y);\n}\nint main()\n{\n\tint n=0;\n\tint X,Y=0;\ncin>>X>>Y;\n\t\tcout<>x>>y;\n\tif(x==y)\n\t{\n\t\tcout<>m>>n;\n\tif (m==n) cout<1)//??m?????????????\n\t {\n\t if (m%2==0) //??m?????\n\t\t {\n\t\t\t a[j+1]=m/2;\n\t\t\t m=m/2;//?m???????????????\n\t\t }\n\t else \n\t {\n\t\t\t a[j+1]=(m-1)/2;\n\t\t\t m=(m-1)/2;\n\t\t }\n\t j=j+1;\n\t }\n\t int k=0;\n\t while (n>1)\n\t {\n\t if (n%2==0) \n\t\t {\n\t\t\t b[k+1]=n/2;\n\t\t\t n=n/2;\n\t\t }\n\t else \n\t {\n\t\t\t b[k+1]=(n-1)/2;\n\t\t\t n=(n-1)/2;\n\t\t }\n\t k=k+1;\n\t }\n\t while (a[j]==b[k])//???????????????\n\t {\n\t j=j-1;\n\t\t k=k-1;\n\t }\n\t cout<\n\nint findSameNode(int x,int y)\n{\n if (x == y) {\n return x;\n }\n else\n {\n if (x > y) {\n return findSameNode(x / 2, y);\n }\n else\n {\n return findSameNode(x, y / 2);\n }\n }\n}\n\n\nint main(int argc, const char * argv[])\n{\n int x,y;\n cin >> x >> y;\n cout << findSameNode(x, y);\n \n}\n"} +{"label": "104", "index": "51726", "code": "int way(int x,int a[10])\n{\n\tint i=0;\n\twhile(x>0)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t\ti++;\n\t}\n\treturn(i);\n}\nint num(int a[10],int x,int b[10],int y)\n{\n\tint p=0,t=0,i,j;\n\tfor(i=x,j=y;i>0&&j>0;i--,j--)\n\tif(a[i-1]!=b[j-1])\n\t{\n\t\tt=a[i];\n\t\tp++;\n\t\tbreak;\n\t}\n\tif(p==0)\n\tif(x>y) t=b[0];\n\telse t=a[0];\n\treturn(t);\n}\nint main()\n{\n\tint x,y,a[10],b[10],m,n,t,i,j;\n\tscanf(\"%d%d\",&x,&y);\n\tm=way(x,a);\n\tn=way(y,b);\n\tt=num(a,m,b,n);\n\tprintf(\"%d\",t);\n\treturn 0;\n}"} +{"label": "104", "index": "51727", "code": "int so(int x)\n{\n int i,soo=1;\n for(i=1;i<10;i++)\n { \n\t if((x/2)!=0)\n {x=(int)x/2; soo++;}\n else break; \n }\n return(soo);\n}\n\nvoid main()\n{\n int a,b,i,t,w,r,n;\n int c[1001],d[1001];\n\n scanf(\"%d%d\",&a,&b);\n\n\n i=so(a);t=so(b);\n for(c[0]=a,w=0;w>m>>n;\n\tint powerm,powern;\n\tif (m>powerm)>0;powerm++) ;\n\tfor (powern=0;(n>>powern)>0;powern++) ;\n\twhile (powerm>powern)\n\t{\n\t\tm=up(m);\n\t\tpowerm--;\n\t}\n\twhile (m!=n)\n\t{\n\t\tm=up(m);\n\t\tn=up(n);\n\t}\n\tcout<b)\n\t\treturn jie(b,a);\n\telse if(a>m>>n;\n\tif(m>n)\n\t\tc=jie(n,m);\n\telse if(m>m>>n;\n\tint temp = m;\n\tfor(len1 = 0;temp>=1;len1++){\n\t\tnum1[len1] = temp;\n\t\ttemp /=2;\n\t}\n\ttemp = n;\n\tfor(len2 = 0;temp>=1;len2++){\n\t\tnum2[len2] = temp;\n\t\ttemp/= 2;\n\t}\n\tint i=1;\n\twhile(num1[len1-i]==num2[len2-i])\n\t\ti++;\n\tcout<>x>>y;\n\tint a[12]={0},i,j,b[12]={0},point;\n\ta[0]=x;\n\tb[0]=y;\n\tfor (i=1;i<12;i++)\n\t{\n\t\ta[i]=a[i-1]/2;\n\t\tb[i]=b[i-1]/2;\n\t}\n\tfor (i=11;i>=0;i--)\n\t\tfor (j=11;j>=0;j--)\n\t\t\tif (a[i]==b[j]) point=a[i];\n\tcout << point << endl;\n\treturn 0;\n}\n"} +{"label": "104", "index": "51732", "code": "/*\n * r.cpp\n *\n * Created on: 2013-11-18\n * Author: shu\n */\n\nint min(int a,int b){\n\tif(a>=b)return b;\n\telse return a;\n}\nint f(int x,int y){\n\tint wx[10]={1,1,1,1,1,1,1,1,1,1},wy[10]={1,1,1,1,1,1,1,1,1,1};\n\tint i=0,j=0,t1,t2;\n\twx[0]=x;wy[0]=y; //?\n while(wx[i]!=1){ //?\n \twx[i+1]=floor(wx[i]/2); //x\n \ti++; //y\n } t1=i; //?\n i=0;\n while(wy[i]!=1){ //?\n \twy[i+1]=floor(wy[i]/2); //?\n \ti++; //?\n }t2=i;\n i=j=0;\n j=min(t1,t2);\n while(j>=0){\n \t if(wx[t1]!=wy[t2]){\n \t\t return wx[t1+1];\n \t\t break;\n \t }\n \t t1--;\n \t t2--;\n \t j--;\n }\n}\nint main(){\n\tint x1,y1;\n\tcin>>x1>>y1;\n\tcout<=0)\n\t{\n\t\tn=a[i]/2;\n\t\tif(n==0) break;\n\t\ti++;\n\t\ta[i]=n;\n\t}\n\tx0=i;\n\ti=0;\n\tb[0]=y;\n\twhile(i>=0)\n\t{\n\t\tn=b[i]/2;\n\t\tif(n==0) break;\n\t\ti++;\n\t\tb[i]=n;\n\t}\n\ty0=i;\n\tflag=0;\n\tfor(i=0;i<=x0;i++)\n\t{\n\t\tfor(j=0;j<=y0;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\tif(flag==1) break;\n\t}\n\tprintf(\"%d\",a[i]);\n\t\n\treturn 0;\n}\n\n\n\n\n\n"} +{"label": "104", "index": "51734", "code": "\nint up(int x) {\n\treturn x/2;\n}\n\nint meet(int x, int y) {\n\tif (x == y)\n\t\treturn x;\n\t\n\tint depthx = log2(x);\n\tint depthy = log2(y);\n\tif (depthx < depthy)\n\t\treturn meet(x, up(y));\n\telse if (depthx > depthy)\n\t\treturn meet(up(x), y);\n\telse\n\t\treturn meet(up(x), up(y));\n}\n\nint main() {\n\tint x, y;\n\tcin >> x >> y;\n\tcout << meet(x, y);\n}"} +{"label": "104", "index": "51735", "code": "void main()\n{\n\tint a[11],b[11],i,j;\n\tscanf(\"%d %d\",&a[0],&b[0]);\n\tfor(i=1;i<11;i++)\n\t{\n\t\ta[i]=(int)(a[i-1]/2);\n\t}\n\tfor(j=1;j<11;j++)\n\t{\n\t\tb[j]=(int)(b[j-1]/2);\n\t}\n\tfor(i=0;i<11;i++)\n\t{\n\t\tfor(j=0;j<11;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{printf(\"%d\\n\",a[i]);i=11;j=11;}\n\t\t\n\t\t}\n\t}\n}"} +{"label": "104", "index": "51736", "code": "\nint a[11],b[11],num1=1,num2=1;\nvoid f1(int x){\n\ta[1]=x;\n\tif(x!=1){\n\t\tdo{\n\t\t\tnum1++;\n\t\t\ta[num1]=x/2;\n\t\t\tx=a[num1];\n\t\t}while(a[num1]!=1);\n\t\ta[num1]=1;\n\t}\n}\nvoid f2(int y){\n\tb[1]=y;\n\tif(y!=1){\n\t\tdo{\n\t\t\tnum2++;\n\t\t\tb[num2]=y/2;\n\t\t\ty=b[num2];\n\t\t}while(b[num2]!=1);\n\t\tb[num2]=1;\n\t}\n}\nint main(){\n\tint x,y,p=0;\n\tcin>>x>>y;\n\tf1(x);\n\tf2(y);\n\tfor(int i=1;i<=num1;i++){\n\t\tfor(int j=1;j<=num2;j++){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tcout<y)\n\t {t=y;\n\t y=x;\n\t x=t;}\n\t a[0]=x;\n\tfor(i=1;;i++)\n\t{ a[i]=a[i-1]/2;\n\t if(a[i]/2==0)\n\t { break;}\n\t }\n\t n=i;\n\t zhao(n,y,a);\n\t \t\n //getchar();\n //getchar();\n\treturn 0;\n}\nvoid zhao(int n,int y,int a[])\n{ int i=0,t=0;\n for(i=0;i<=n;i++)\n { if(a[i]==y)\n { printf(\"%d\",y);\n t=1;\n break;\n \t \n\t }\n\t\t}\n \n\t if(y/2!=0&&t==0)\n\t zhao(n,y/2,a);\n\t \n}"} +{"label": "104", "index": "51738", "code": "int main()\n{\n int i,j,m,n,x,y;\n int a[1000]={0},b[1000]={0};\n scanf(\"%d\",&x);\n scanf(\"%d\",&y);\n a[0]=0;b[0]=1;\n for(i=1;;i++)\n {\n a[i]=x;\n x=x/2;\n if(a[i]==1)break;\n }\n m=i;\n for(i=1;;i++)\n {\n b[i]=y;\n y=y/2;\n if(b[i]==1)break;\n }\n n=i;\n for(i=m,j=n;;i--,j--)\n {\n if(a[i]==b[j]&&a[i-1]!=b[j-1])\n {\n printf(\"%d\",a[i]);\n break;\n }\n }\n return 0;\n}"} +{"label": "104", "index": "51739", "code": "\nint refine(int a)\n{\n if(a%2==1) return((a-1)/2);\n else return(a/2);\n}\n\nint main()\n{\n int a,b,i;\n scanf(\"%d%d\",&a,&b);\n while(a!=b)\n {\n if(a>b) a=refine(a);\n else b=refine(b);\n }\n printf(\"%d\",a);\n return 0;\n} "} +{"label": "104", "index": "51740", "code": "int main(){\n\tint i,j,x,y,a[1010];\n\tscanf(\"%d%d\",&x,&y);\n\tmemset(a,0,sizeof(a));\n\tfor(i=x;i>0;i/=2){\n\t\ta[i]=1;\n\t}\n\tfor(i=y;i>0;i/=2){\n\t\tif(a[i]){\n\t\t\tprintf(\"%d\",i);\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51741", "code": "int f(int n)\n{\n\tint i,s=1;\n\tfor(i=1;i<=n;i++)\n\t{\n\t\ts=s*2;\n\t}\n\treturn s;\n}\nint main ( )\n{\n\tint x,y,i,j,nx,ny;\n\tint x_row[10],y_row[10];\n\tscanf(\"%d %d\\n\",&x,&y);\n\tfor(i=1;1;i++)\n\t{\n\t\tif(xy1)\n\t{if(x1%2==0) return step(x1/2,y1);\n\telse return step((x1-1)/2,y1);\n\t}\n\tif(x1>x>>y;\n\tcout<1;i++,x=x/2)\na[i]=x/2;\na[i]=1;\nfor(i=1;y>1;i++,y=y/2)\nb[i]=y/2;\nb[i]=1;\nprintf(\"%d\\n\",judge(a,b));\n\nreturn 0;\n}\nint judge(int *p,int *q)\n{\nfor(;*p!=0;p++);\np--;\nfor(;*q!=0;q++);\nq--;\nfor(;*p==*q;p--,q--);\nq++;\nreturn (*q);\n\n\n\n}"} +{"label": "104", "index": "51745", "code": "int er(int x,int y)\n{\n\tif(x>y)\n\t\treturn er(x/2,y);\n\tif(x>A>>B; //??????\n\tfor(i=1;A>1;i++) //??A???\n\t{\n\t\ta[i]=A; //?????A??\n\t\tif(A%2==0) //??A??????????????A/2??????A-1)/2\n\t\t\tA=A/2;\n\t\telse\n\t\t\tA=(A-1)/2;\n\t}\n\ta[i]=A; //????????1\n\tn1=i; //???????\n\tfor(i=1;B>1;i++) //??B????????\n\t\t{\n\t\t\tb[i]=B;\n\t\t\tif(B%2==0)\n\t\t\t\tB=B/2;\n\t\t\telse\n\t\t\t\tB=(B-1)/2;\n\t\t}\n\tb[i]=B;\n\tn2=i;\n\tfor(i=1;i<=n1&&sign==0;i++) //?????????????????\n\t\tfor(j=1;j<=n2&&sign==0;j++)\n\t\t\tif(b[j]==a[i])\n\t\t\t\tsign=1; //????????????1?????\n\t\tcout<>x>>y;\n\tint i=0;\n\ta[i]=x;\n\twhile(x>1)\n\t{\n\t\tx=x/2;\n\t\ti++;\n\t\ta[i]=x;\n\t}\n\tnum1=i+1;\n\tint j=0;\n\tb[j]=y;\n\twhile(y>1)\n\t{\n\t\ty=y/2;\n\t\tj++;\n\t\tb[j]=y;\n\t}\n\tnum2=j+1;\n\tint flag=0;\n\tfor(i=0;i>x>>y;\n\tl2x=log(x)/log(2);\n\tl2y=log(y)/log(2);\n\tif(x==8)\tl2x=3;\n\tif(y==8)\tl2y=3;\n\txx[l2x]=x-pow(2,l2x);\n\tyy[l2y]=y-pow(2,l2y);\n\tfor(i=l2x-1;i>=0;i--)\txx[i]=xx[i+1]/2;\n\tfor(i=l2y-1;i>=0;i--)\tyy[i]=yy[i+1]/2;\n\ti=l2x;\n\tif(l2x>l2y)\ti=l2y;\n\tfor(;i>=0;i--)\n\t{\n\t\tif(xx[i]==yy[i])\n\t\t{\n\t\t\tcout<<(pow(2,i)+xx[i])<=0;i--)\n\t{\n\t\tp[i-1]=p[i]/2;\n\t}\n\tfor(i=t2;i>=0;i--)\n\t{\n\t\tq[i-1]=q[i]/2;\n\t}\n\tfor(i=0;i<12;i++)\n\t{\n\t\tif(q[i]!=p[i])\n\t\t{\n\t\t\tprintf(\"%d\",p[i-1]);\n\t\t\tbreak;\n\t\t}\n\t} \n\t}\n\tif(a==b)\n\t\tprintf(\"%d\",a);\n}\n"} +{"label": "104", "index": "51750", "code": "void main()\n{\n\tint x[1100],y[1100],i,j,m,n,t;\n\tscanf(\"%d %d\",&x[0],&y[0]);\n\tfor(i=1;x[i-1]>1;i++)\n\t{\n\t\tif(x[i-1]%2==0)\n\t\t\tx[i]=x[i-1]/2;\n\t\telse\n\t\t\tx[i]=(x[i-1]-1)/2;\n\t}\n\tm=i-1;\n\tfor(j=1;y[j-1]>1;j++)\n\t{\n\t\tif(y[j-1]%2==0)\n\t\t\ty[j]=y[j-1]/2;\n\t\telse\n\t\t\ty[j]=(y[j-1]-1)/2;\n\t}\n\tn=j-1;\n\tfor(i=m,j=n;i>=0 && j>=0;i--,j--)\n\t{\n\t\tif(x[i]!=y[j])\n\t\t{\n\t\t\tt=i+1;\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t\tif(i==0 || j==0)\n\t\t\t\tt=i;\n\t}\n\tprintf(\"%d\",x[t]);\n}\n\n\n"} +{"label": "104", "index": "51751", "code": "\n\nint main()\n{//de\n\tvoid seq(int m,int*seqm);\n\tint a,b;\n\tint seqa[10],seqb[10];\n\tint i,t;\n//in\n\tscanf(\"%d%d\",&a,&b);\n//pro\n\tseq(a,seqa);\n\tseq(b,seqb);\n//ou\n\tfor(i=0;seqa[i]==seqb[i];i++)t=seqa[i];\n\tprintf(\"%d\",t);\n\treturn 0;\n}\n\nvoid seq(int m,int*seqm)\n{\n\tint i,j;\n\tint temp[10];\n\ttemp[0]=m;\n\tfor(i=1;m>1;i++)\n\t\ttemp[i]=m=m/2;\n\tfor(j=i;j>=0;j--)\n\t\tseqm[j-1]=temp[i-j];\n\n\n\n}\n"} +{"label": "104", "index": "51752", "code": "int s(int a,int b)\n{\n\tint p,q;\n\tif(a>b)\n\t{\n\t\tp=a;q=b;\n\t}\n\telse\n\t{\n\t\tp=b;q=a;\n\t}\n\tp=p/2;\n\tif(p==q)return p;\n\telse s(p,q);\n}\nint main()\n{\n\tint m,n,re;\n\tcin>>m>>n;\n\tif(m==n)cout<y)\n\t\tt=result(x/2,y);\n\telse if(x1;i++)\n\t{\n\t\tif(a[i]%2==0)\n\t\t{\n\t\t\ta[i+1]=a[i]/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i+1]=(a[i]-1)/2;\n\t\t}\n\t}\n\tfor(j=1;b[j]>1;j++)\n\t{\n\t\tif(b[j]%2==0)\n\t\t{\n\t\t\tb[j+1]=b[j]/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[j+1]=(b[j]-1)/2;\n\t\t}\n\t}\n\tfor(i=1;a[i]>=1;i++)\n\t{\n\t\tfor(j=1;b[j]>=1;j++)\n\t\t{\n\t\t\tif(b[j]==a[i])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",b[j]);\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(k==1)\n\t\t{\n\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51755", "code": "//\n// Created by Chu-Pan,Wong on Dec 1, 2013.\n// Copyright (c) 2013 ChuPan,Wong. All rights reserved.\n//\n\n\n\n\nint routex[1000];\nint routey[1000];\n\nint main(int argc, char** argv){\n int x,y;\n cin>>x>>y;\n int nx,ny;\n for (nx=0; x!=1; nx++) {\n routex[nx]=x;\n if (x%2==0) {\n x/=2;\n }\n else{\n x=(x-1)/2;\n }\n }\n for (ny=0; y!=1; ny++) {\n routey[ny]=y;\n if (y%2==0) {\n y/=2;\n }\n else{\n y=(y-1)/2;\n }\n }\n routex[nx]=routey[ny]=1;\n int res;\n while (routex[nx]==routey[ny]) {\n if (nx<0||ny<0) {\n break;\n }\n res = routex[nx];\n nx--; ny--;\n }\n cout<b)\n\t\t a=a/2;\n\t\tif(a>x>>y;\nif(x==y)\n {\n cout<0; i++)\t\n\t\t{\t\t\n\t\t\tx_[i+1]=x_[i]/2;\t\n\t\t\tcount_x++;\t\n\t\t}\t\n\t\tfor(i=0; y_[i]>0; i++)\t\n\t\t{\t\n\t\t\ty_[i+1]=y_[i]/2;\t\n\t\t\tcount_y++;\t\n\t\t}\n\t\ti = count_x;\n\t\tj = count_y;\n\t\twhile(i >= 0 && j >= 0)\t\n\t\t{\t\t\n\t\t\tif(x_[i] == y_[j] && x_[i-1] != y_[j-1])\t\t\t\n\t\t\t\tprintf(\"%d\\n\", x_[i]);\t\t\n\t\t\ti--;\t\t\n\t\t\tj--;\t\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51760", "code": "\nint main(int argc, char* argv[])\n{\n\tint x[1000],y[1000];\n\tint i,j,k,p=1;\n\tscanf(\"%d %d\",&x[0],&y[0]);\n\tfor (i=1;x[i-1]!=1;i++)\n\t{\n\t\tif (x[i-1]%2==0)\n\t\t x[i]=x[i-1]/2;\n\t\tif (x[i-1]%2==1)\n x[i]=(x[i-1]-1)/2;\n\t}\n \tfor (i=1;y[i-1]!=1;i++)\n\t{\n\t\tif (y[i-1]%2==0)\n\t\t y[i]=y[i-1]/2;\n\t\tif (y[i-1]%2==1)\n y[i]=(y[i-1]-1)/2;\n\t}\n\n\tfor (k=0;x[k-1]!=1 && p==1;k++)\n\t{\tfor (j=0;y[j-1]!=1;j++)\n\t\t{ if (x[k]==y[j]) \n\t{\n\t printf(\"%d\\n\",x[k]);\n\t\t\t p=0;\n\t break;\t\n\t}\n\t\t}\n\t}\n\n\treturn 0;\n}\n"} +{"label": "104", "index": "51761", "code": "int main()\n{\n\tint a,b,i,j,k,d[100],e[100],f[100];\n\tfor(k=0;k<100;k++)\n\t{\n\t\tf[k]=0;\n\t}\n\t\tscanf(\"%d %d\",&a,&b);\n\t\tif(a==1||b==1)\n\t\t\tprintf(\"1\");\n\t\telse{\n\t\tif(a!=b)\n\t\t{\n\td[0]=a;e[0]=b;\n\tfor(i=0;i<100;i++)\n\t{\n\t\td[i+1]=d[i]/2;\n\t}\n\tfor(j=0;j<100;j++)\n\t{\n\t\te[j+1]=e[j]/2;\n\t}\n\tfor(i=0;i<100;i++)\n\t{\n\t\tfor(j=0;j<100;j++)\n\t\t{\n\t\t\tif(d[i]==e[j]&&d[i]!=0)\n\t\t\t{\n\t\t\tfor(k=0;k<100;k++)\n\t\t\t{\n\t\t\t\tif(f[k]==0)\n\t\t\t\t\tf[k]=d[i];\n\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tprintf(\"%d\",f[0]);\n\t\t}\n\t\telse printf(\"%d\",a);\n\t\t}\n\t\n\n\treturn 0;\n}"} +{"label": "104", "index": "51762", "code": "\nint main()\n{ int a[100],b[100],i=0,j=0,m,n,c=0,d=0;\nscanf(\"%d %d\",&n,&m);\nwhile(n!=0)\n{ a[i]=n;\n\tn=n/2;\n\ti++;\n\tc++;\n}\nwhile(m!=0)\n{\n\tb[j]=m;\n\tm=m/2;\n\tj++;\n\td++;\n}\nfor(i=0;i=Mi(n)&&x0)\n {\n a[n]=x;\n for (i=n-1;i>=0;i--)\n {\n a[i]=divide(a[i+1]);\n }\n }\n else a[n]=x;\n break;\n }\n }\n for (m=0;;m++)\n {\n if (y>=Mi(m)&&y0)\n {\n b[m]=y;\n for (i=m-1;i>=0;i--)\n {\n b[i]=divide(b[i+1]);\n }\n }\n else b[m]=y;\n break;\n }\n }\n for (i=n;i>=0;i--)\n {\n for (j=m;j>=0;j--)\n {\n if (a[i]==b[j]) \n {\n printf (\"%d\\n\",a[i]);\n c=c+1;\n break;\n }\n }\n if (c==1) break;\n }\n}"} +{"label": "104", "index": "51764", "code": "int main()\n{int a[100],b[100],i,m,n; //?????????\ncin>>a[1]>>b[1]; //?????\nfor(i=1;;i++)\n{if(a[i]%2==0) a[i+1]=a[i]/2;\n else a[i+1]=(a[i]-1)/2;\n\n if(a[i+1]==1) break; //?????????\n\n}\n m=i+1;\n\nfor(i=1;;i++)\n{if(b[i]%2==0) b[i+1]=b[i]/2; //??????\n else b[i+1]=(b[i]-1)/2;\n\n if(b[i+1]==1) break;\n}\n n=i+1;\n\nfor(i=1;i<=(m>n?n:m);i++)\n{if(a[m-i]!=b[n-i]) cout<>a>>b;\n divide(a,x,20);\n divide(b,y,20);\n for(int i1=1;i1<20;i1++)\n {\n if(x[i1]==1)\n {\n j=i1;\n break;\n }\n }\n //cout<1;i3++)\n {\n s[i3]=t;\n t=t/2;\n }\n s[i3]=t; \n} \n"} +{"label": "104", "index": "51766", "code": "void main()\n{\n\tint x,y,m,n,i,j,flag=0;\n\tdouble t;\n\tint a[10],b[10];\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;;i++)\n\t{\n\t\tt=pow(2,i);\n\t\tif(x/t<1)\n\t\t{\n\t\t\tm=(int)i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(i=1;;i++)\n\t{\n\t\tt=pow(2,i);\n\t\tif(y/t<1)\n\t\t{\n\t\t\tn=(int)i;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tfor(i=1;i>x>>y;\n\tif (x>=y) cout<>x>>y;\n\tif (x>y) max=x;else max=y;\n\twhile (x!=1)//??x???? \n\t{\n\t\tcheck[x]++;\n\t\tx=x/2;\n\t}\n\twhile (y!=1)//??y???? \n\t{\n\t\tcheck[y]++;\n\t\ty=y/2;\n\t}\n\tfor (i=max;i>=1;i--)//?????? \n\t if (check[i]==2) {\n \t\tcout<y) a=find(x/2,y);\n\telse if(xy) x=x/2;\n\t\telse y=y/2;\n\t}\n\treturn x;\n}"} +{"label": "104", "index": "51771", "code": "void main()\n{\n\tint a,b,x[11],y[11],i,j,t;\n\tscanf(\"%d%d\",&a,&b);\n\tt=0;\n\tx[0]=a;\n\tfor(i=1;i<11;i++)\n\t\t {\n\t\t\t \n\t \t x[i]=a/2;\n\t\t a=a/2;\n\t\t }\n\ty[0]=b;\n for(i=1;i<11;i++)\n\t{\n\t\ty[i]=b/2;\n\t\tb=b/2;\n\t}\n\tfor(i=0;i<10;i++)\n\t{\n\t\t for(j=0;j<10;j++)\n\t\t {\n\t\t\t if(x[i]==y[j]&&x[i]!=0&&y[j]!=0)\n\t\t\t {\n\t\t\t printf(\"%d\",x[i]);\n\t\t\t\t t=1;\n\t\t\t\t break;\n\t\t\t } \n\t\t } \n\t\t if(t==1)\n\t\t break;\n\t}\n}\n\t\n\n\n"} +{"label": "104", "index": "51772", "code": "int main()\n{\n\tint m,n,temp=0;\n\tint a[1000],b[1000];\n\tint i,j;\n\tscanf(\"%d %d\",&m,&n);\n\ta[0]=m;\n\tb[0]=n;\n\tfor(i=1;;i++)\n\t{\n\t\ta[i]=a[i-1]/2;\n\t\tif(a[i]==1)\tbreak;\n\t}\n\tfor(i=1;;i++)\n\t{\n\t\tb[i]=b[i-1]/2;\n\t\tif(b[i]==1)\tbreak;\n\t}\n\tfor(i=0;i<1000;i++)\n\t{\n\t\tfor(j=0;j<1000;j++)\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\ttemp=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif(temp==1) break;\n\t}\n\tprintf(\"%d\",a[i]);\n\treturn 0;\n}"} +{"label": "104", "index": "51773", "code": "int P(int a,int b)\n{\n\tif (a==b)\n\t{\n\t\treturn a;\n\t}\n\treturn P(a/2,b/2);\n}\nint main()\n{\n\tint a,b;\n\tcin>>a>>b;\n\n\tint i,j;\n\tfor (i=0;a>>i!=0;i++);\n\tfor (j=0;b>>j!=0;j++);\n\tif (i>j)\n\t{\n\t\ta>>=(i-j);\n\t}\n\telse\n\t{\n\t\tb>>=(j-i);\n\t}\n\tcout<colb)\n {\n while(cola>colb)\n {\n cola--;\n if(rowa%2==0) rowa=rowa/2;\n else rowa=(rowa+1)/2;\n }\n }\n if(cola=2;i=i/2)\n\t\t\t{\n\t\t\t\ty=y+1;\n\t\t\t}\n\t\t\tfor(i=n;i>=2;i=i/2)\n\t\t\t{\n\t\t\t\tx=x+1;\n\t\t\t}\n\t\t\tif(x==y)\n\t\t\t\treturn function(n/2,m/2);\n\t\t\tif(x>y)\n\t\t\t\t return function(n/2,m);\n\t\t\tif(x>n>>m;\n\t cout<> x >> y;\n\tcout << binary(x,y) << endl;\n\treturn 0;\n}\n"} +{"label": "104", "index": "51777", "code": "int main()\n{\n\tint x1,x2;\n\tcin>>x1>>x2;\n\tif(x1==x2)\n\t\tcout<=2*x2||x2>=2*x1)\n {\n if(x1>=2*x2)\n\t\t\tx1=x1/2;\n\t\tif(x2>=2*x1)\n\t\t\tx2=x2/2;\n\t}\n while(x1!=x2)\n {\n\t x1=x1/2;\n\t x2=x2/2;\n\t \t\t\n while(x1>=2*x2||x2>=2*x1)\n {\n if(x1>=2*x2)\n\t\t\tx1=x1/2;\n\t\tif(x2>=2*x1)\n\t\t\tx2=x2/2;\n\t}\n }\n cout<y)?x:y;min=(x y)\n\t{\n\t\twhile (x > y) //????t???????2t,2t+1??????2????????? \n\t\t\tx = x / 2 ; //??x<=y???????? \n\t\treturn find(x , y) ;\t\n\t}\n\telse\n\t{\n\t\twhile (y > x) //y??x \n\t\t\ty = y / 2 ;\n\t\treturn find(x , y) ;\t\n\t}\n}\nint main()\n{\n\tint m , n ;\n\tcin >> m >> n ;\n\tcout << find(m , n) ;\n\treturn 0 ;\t\n}\n"} +{"label": "104", "index": "51780", "code": "void main()\n{\n\tint x0,y0,i,j,k,l=10000;\n\tint x[10],y[10]={0};\n\n\tscanf(\"%d%d\",&x0,&y0);\n\tx[0]=x0;y[0]=y0;\n\tfor(i=0;i<9;i++)\n\t{\n\t\tx[i+1]=x[i]/2;\n\t}\n\tfor(i=0;i<9;i++)\n\t{\n\t\ty[i+1]=y[i]/2;\n\t}\n\t//\tprintf(\"%d\",x[0]);\n\tfor(i=0;i<10;i++)\n\t{\n\t\tfor(j=0;j<10;j++)\n\t\t{\n\t\t\tif(x[i]==y[j])\n\t\t\t{l=i;break;}\n\t\t}\n\tif(i==l)break;\n\t}\n\t\tprintf(\"%d\",x[i]);\n}\n \n"} +{"label": "104", "index": "51781", "code": "int f1(int x)\n{\n int n=1,i,p;\n for(i=0;i<12;i++)\n{\n x=x/2;\n n++;\n if(x==1)break;\n}\n return n; \n}\nint f2(int x,int y)\n{\n int i;\n for(i=0;i>a>>b;\n e=f1(a);\n f=f1(b);\n for(c=0;c>x>>y;\n\tfor(i=1;x>=1;i++){\n\t\tX[i]=x;\n\t x=x/2;}\n\tfor(j=1;y>=1;j++){\n\t\tY[j]=y;\n\t y=y/2;}\n\tfor(j=j-1,i=i-1;;j--,i--)\n\t\tif(X[i]!=Y[j]){\n\t\t\tcout<>x>>y;\n\tdouble row1=0,row2=0;\n\trow1=ceil(log2((double)(x+1)));\n\trow2=ceil(log2((double)(y+1)));\n\twhile (row2>row1){\n\t\ty=y/2;\n\t\trow2=ceil(log2((double)(y+1)));\n\t}\n\twhile (row1>row2){\n\t\t\tx=x/2;\n\t\t\trow1=ceil(log2((double)(x+1)));\n\t\t}\n\twhile (x!=y){\n\t\tx=x/2;\n\t\ty=y/2;\n\t}\n\tcout <b) search(a/2,b);\n\telse search(a,b/2);\n}"} +{"label": "104", "index": "51787", "code": "int main()\n{\n\tint i,a,b,temp,t1,t2;\n\tscanf(\"%d %d\",&a,&b);\n\tif(at2;i--){a=a/2;}\n\tfor(;a!=b;)\n\t{a=a/2;b=b/2;}\n\tprintf(\"%d\\n\",a);\n\treturn 0;\n}"} +{"label": "104", "index": "51788", "code": "/*\n * hs.2.cpp\n *\n * Created on: 2010-11-22\n * Author: l\n */\nint jd(int x)\n{if(x==1)\n\treturn 1;\nelse{\n\t\tif(x%2)\n\n\t\treturn (x-1)/2;\n\telse\n\t\treturn x/2;\n\t\t}\n}//????jd???x???x?????\nint main(){\n\tint x,y;\n\tcin>>x>>y;\n\tint lx=1,ly=1,s,t,p=0;\n\tint i,j;\n\ts=x;\n\tfor(lx=1;;lx++)\n\t{if(s!=1)\n\t\ts=jd(s);\n\telse break;\n\t}//??x???????\n\tt=y;//\nfor(ly=1;;ly++){\n\tif(t!=1)\n\t\tt=jd(t);\n\telse break;//??y???????\n}\n\ns=x;\nt=y;\n\tfor(i=1;i<=lx;i++)\n\t{t=y;\n\t\tfor(j=1;j<=ly;j++)\n\t\t{\n\t\t\tif(s==t)\n\t\t\t{p=1;\n\t\t\t\tcout<>x>>y;\n\twhile (x!=y) //?????????????2????????????????????????\n\t{\n\t\tif (x=1)\n\t{\n\t\tif(x[i]%2==0)\n\t\t\tx[i+1]=x[i]/2;\n\t\telse\n\t\t\tx[i+1]=(x[i]-1)/2;\n\t\ti++;\n\t}\n\ti=1;\n\twhile(y[i]>=1)\n\t{\n\t\tif(y[i]%2==0)\n\t\t\ty[i+1]=y[i]/2;\n\t\telse\n\t\t\ty[i+1]=(y[i]-1)/2;\n\t\ti++;\n\t}\n\tfor(j=1;j<11;j++)\n\t{\n\t\tfor(k=1;k<=i;k++)\n\t\t\tif(x[j]==y[k])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",x[j]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif(x[j]==y[k]) break;\n\t}\n}"} +{"label": "104", "index": "51792", "code": "/*\n * pr8.cpp\n *\n * Created on: 2011-11-15\n * Author: Gan Hua\n */\nint main()\n{\n\tint x,y,i=1,min,max;\n\tcin>>x>>y;\n\tmin=x;max=y;\n\tif(y0;min=min/2)\n\t\tif(i)\n\t\tfor(max=max;max>=min;max=max/2)\n\t\t\tif(max==min)\n\t\t\t\t{cout<>x>>y;\n\tcout< b )\n\t{\n\t\tif ( a % 2 == 0 )\n\t\t\treturn step( a/2 , b );\n\t\telse\n\t\t\treturn step( (a - 1) / 2 , b );\n\t}\n\telse if ( a < b )\n\t{\n\t\tif ( b % 2 == 0 )\n\t\t\treturn step( a , b/2 );\n\t\telse\n\t\t\treturn step( a , ( b-1) / 2 );\n\t}\n\telse\n\t\treturn a;\n}"} +{"label": "104", "index": "51794", "code": "void main()\n{\n\tint chang (int array[100]);\n\tint a[100]={0},b[100]={0};\n\tint x,y,i,j;\n\tint m,n;\n\tint k=0;\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;;i++)\n\t{\n\t\tif(x>1)\n\t\t{\n\t\t\ta[i]=x/2;\n\t\t\tx=x/2;\n\t\t}\n\t\telse break;\n\t}\n\tfor(j=1;;j++)\n\t{\n\t\tif(y>1)\n\t\t{\n\t\t\tb[j]=y/2;\n\t\t\ty=y/2;\n\t\t}\n\t\telse break;\n\t}\n\tm=chang(a);\n\tn=chang(b);\n\t\tfor(i=0;i>x>>y;\n\tfor(int i=0;i<10;i++)\n\t{\n\t\tq[i]=x/K(2,i);\n\t\tfor(int j=0;j<10;j++)\n\t\t{\n\t\t\tw[j]=y/K(2,j);\n\t\t\tif(q[i]==w[j])\n\t\t\t{\n\t\t\t\tcout<=1;i=i/2,k++)\n\t\ta[k]=i;\n\t \n\tfor(i=y,k=0;i>=1;i=i/2,k++)\n\t\tb[k]=i;\n\n\tfor(i=0,k=0;;i++)\n\t{\n\t\tif(a[i]==0) break;\n\t\tfor(j=0;;j++)\n\t\t{\n\t\t\tif(b[j]==0) break;\n\t\t\telse if(b[j]==a[i])\n\t\t\t\t{result=a[i];k++;break;}\n\t\t}\n\t\tif(k!=0) break;\n\t}\n\tprintf(\"%d\\n\",result);\n\t\n}"} +{"label": "104", "index": "51799", "code": "int search (int n)\n{\n\treturn n/2;\n}\nint main ()\n{\n\tint x, y;\n\tscanf(\"%d%d\", &x, &y);\n\twhile (x!=y) {\n\t\tif (x>y)\n\t\t\tx=search(x);\n\t\telse if(x>x>>y;\n\twhile(x!=y){\n\tif(x>y)x=x/2;\n\telse y=y/2;\n\t}\n\tif(x==y)cout<1)\n\t{\n\t\tx=x/2;\n xline[i]=x;\n\t\ti=i+1;\n\t}\n num1=i-1;\n\n\ti=1;\n\twhile(y>1)\n\t{\n\t\ty=y/2;\n\t\tyline[i]=y;\n\t\ti=i+1;\n\t}\n\tnum2=i-1;\n\n\tfor(i=0;i<=num1;i++)\n\t{\n\t\tfor(j=0;j<=num2;j++)\n\t\t\tif (xline[i]==yline[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\", xline[i]);\n\t\t\t\ti=num1+1;\n\t\t\t}\n\t}\n}\n\n"} +{"label": "104", "index": "51806", "code": "int main(int argc, char* argv[])\n{\n\tint x,y;\n\tscanf(\"%d%d\",&x,&y);\n\twhile(x!=y)\n\t{\n\tif(x>y)\n\t\tx/=2;\n\telse\n\t\ty/=2;\n\t}\n\tprintf(\"%d\",x);\n\t\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51807", "code": "int main(){\n\tint x,y,i;//???????i??????\n\tcin>>x>>y;//??????x,y\n\tfor(i=0;;i++){//??????????\n\t\tif(x==y){cout<y){x=x/2;continue;}//????????????2???????????\n\t\tif(xm)\n\t{\n\t\tif(n%2==0)\n\t\t\treturn f1(n/2,m);\n\t\telse\n\t\t\treturn f1((n-1)/2,m);\n\t}\n\telse\n\t{\n\t\tif(m%2==0)\n\t\t\treturn f1(n,m/2);\n\t\telse\n\t\t\treturn f1(n,(m-1)/2);\n\t}\n}\n"} +{"label": "104", "index": "51810", "code": "int path(int m,int n)\n //??????m,n???? \n{ \n if(m==n) //?????????? \n return m; \n if(m>n)\n m=m/2; \n else if(m>x>>y; //??x?y\n cout<< path(x,y); //???? \n\nreturn 0;\n}\n"} +{"label": "104", "index": "51811", "code": "/*\n * ???.cpp\n * Created on: 2012-11-19\n * Author:???\n */\nint f(int a, int b) {\n\tif (a == b)\n\t\treturn a;\n\tif (a > b) {\n\t\ta = a % 2 == 0 ? a / 2 : (a - 1) / 2;\n\t\treturn f(a, b);\n\t} else {\n\t\tb = b % 2 == 0 ? b / 2 : (b - 1) / 2;\n\t\treturn f(a, b);\n\t}\n}\nint main() {\n\tint a, b;\n\tcin >> a >> b;\n\tcout << f(a, b) << endl;\n\treturn 0;\n}\n"} +{"label": "104", "index": "51812", "code": "int main()\n{\n int x,y,i=1,j=1,a[20],b[20],k,s,f=0;\n scanf(\"%d%d\", &x,&y);\n a[1]=x;b[1]=y;\n while(x>0){\n i++;\n a[i]=x/2;\n x=x/2;\n }\n while(y>0){\n j++;\n b[j]=y/2;\n y=y/2;\n }\n for(k=1;k<=i;k++){\n for(s=1;s<=j;s++){\n if(a[k]==b[s]){\n if(f==0){printf(\"%d\", a[k]);\n f=1;\n }\n } \n }\n }\n return 0;\n }\n"} +{"label": "104", "index": "51813", "code": "/*\n * 1.cpp\n *??? ????????\n * Created on: 2011-11-14\n * Author: wangwenxia1963\n */\nint main()\n{\n\tint x,y,i,j;\n\tcin>>x>>y;\n\tfor(i=1;x/i>0;i=i*2)\n\t;\n\tfor(j=1;y/j>0;j=j*2)\n\t;\n\ti=i/2;j=j/2;//i,j????2?????\n\tif(i>j)\n\t\tx=x*j/i;\n\telse y=y*i/j;\n\twhile(x!=y)\n\t\t{\n\t\tx=x/2;\n\t\ty=y/2;\n\t\t}\n\tcout<b[j])\n\t\t{\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(b[j]>a[i])\n\t\t{\n\t\t\tj++;\n\t\t\tcontinue;\n\t\t}\n\t\tif(a[i]==b[j])\n\t\t\tbreak;\n\t}\n\tprintf(\"%d\\n\",a[i]);\n}\n"} +{"label": "104", "index": "51818", "code": "void main()\n{\n\tint x,y;int a[500],b[500],c[500];\n\tint i,j,t=0;int jishuqi1=0,jishuqi2=0;\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x;b[0]=y;\n\tfor(i=0;i<=488;i++)\n\t{\n\t\tif(a[i]>1)\n\t\t{a[i+1]=a[i]/2;\n\t\tjishuqi1=jishuqi1+1;}\n\t\telse if(a[i]<=1)\n\t\t\tbreak;\n\t}\n\tfor(j=0;j<=488;j++)\n\t{\n\t\tif(b[j]>1)\n\t\t{b[j+1]=b[j]/2;\n\t\tjishuqi2=jishuqi2+1;}\n\t\telse if(b[j]<=1)\n\t\t\tbreak;\n\t}\n\tfor(i=0;i<=jishuqi1;i++)\n\t\tfor(j=0;j<=jishuqi2;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tc[t]=a[i];\n\t\t\t t=t+1;\n\t\t\t}\n\t\t\telse if(a[i]!=b[j])\n\t\t\tcontinue;\n\t\t}\n\t\tprintf(\"%d\\n\",c[0]);\n}"} +{"label": "104", "index": "51819", "code": "void main()\n{\n\tint n;\n\tint i,j;\n\tint a1,a2;\n\tscanf(\"%d\",&n);\n\tint a[100];\n\ta[0]=n;\n\n\n\tfor(i=0;;i++)\n\t{if (a[i]==1) break;\n\t//printf(\"%d\",i);\n\t//printf(\" %d\\n\",a[i]);\n\ta[i+1]=a[i]/2;\n\t}\n\n\tint m;\n\tscanf(\"%d\",&m);\n\tint b[100];\n\tb[0]=m;\n\n\n\tfor(j=0;;j++)\n\t{if (b[j]==1) break;\n\t//printf(\"%d\",i);\n\t//printf(\" %d\\n\",b[i]);\n\tb[j+1]=b[j]/2;\n\t}\n\n\n\t//printf(\"\\n\\n\\n\\n\");\n\t//for(i=0;i<=99;i++)\n\t//printf(\"%d %d\\n\",a[i],b[i]);\n\n\tint flag;\n\tflag=0;\n\tfor(a1=0;a1<=i;a1++)\n\t\tif (flag==0)\n\t\tfor(a2=0;a2<=j;a2++)\n\t\t\tif (flag==0)\n\t\t\tif(a[a1]==b[a2]) {printf(\"%d\\n\",a[a1]); flag=1;}\n\t\n}"} +{"label": "104", "index": "51820", "code": "int main()\n{\n int x,y;\n cin>>x>>y;\n\n int tree(int,int);\n cout<y)\n\t\t\t x=x/2;\n\t\t else\n\t\t\t y=y/2;\n\t}\n\n\treturn x;\n\n}"} +{"label": "104", "index": "51821", "code": "void main()\n{\n\tint a[1000],b[1000],i=0,j=0,n=0,m=0;\n\t\n\tscanf(\"%d%d\",&a[0],&b[0]);\n\t\twhile(*(a+i)!=1)\n\t\t{\n\t\t\tif(*(a+i)%2==0)\n\t\t\t{\t*(a+i+1)=*(a+i)/2;\n\t\t\ti=i+1;}\n\t\t\telse\n\t\t\t{\n *(a+i+1)=(*(a+i)-1)/2;\n\t\t\t\t i=i+1;\n\t\t\t}\n\n\t\t}\n\t\t\twhile(*(b+j)!=1)\n\t\t{\n\t\t\tif(*(b+j)%2==0)\n\t\t\t{\t*(b+j+1)=*(b+j)/2;\n\t\t\tj=j+1;}\n\t\t\telse\n\t\t\t{\n *(b+j+1)=(*(b+j)-1)/2;\n\t\t\t\t j=j+1;\n\t\t\t}\n\n\t\t}\n\t\t\tfor(n=0;n<=i;n++)\n\t\t\t{\n\t\t\twhile(m!=j+1)\n\t\t\t\t{\n\t\t\t\t\tif (*(b+m)!=*(a+n))\n\t\t\t\t\t{m=m+1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tgoto loop;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\tm=0;\n\t\t\t}\nloop:printf(\"%d\",*(b+m));\n}\n"} +{"label": "104", "index": "51822", "code": "void main()\n{\n\tint i,x,y,m,n,c;\n\tint a[12],b[12];\n\tscanf(\"%d %d\",&x,&y);\n for(i=1,a[0]=x,b[0]=y;i<=11;i++)\n\t{ \n\t\t\n\t\ta[i]=a[i-1]/2;\n\t\t\n\t\tb[i]=b[i-1]/2;\n\t\n\t\n\t}\n\tfor(m=0;m<=11;m++)\n\t{\n\t\tfor(n=0;n<=11;n++)\n\t\t{\n\t\t\tif(a[m]==b[n])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[m]);\n\t\t\t\tgoto loop;\n\t\t\t}\n\t\t}\n \n\t\t\t\n\t}\nloop:c=0;\n}\n"} +{"label": "104", "index": "51823", "code": "main()\n{\n\tint x,y,a[500],b[500],i=1,j,m=0;\n\tscanf(\"%d%d\",&x,&y);\n a[0]=x; b[0]=y;\n\twhile(x!=0)\n\t{\n\t\ta[i]=x/2;\n\t\tx=x/2;\n\t\ti++;\n\t}\n\ti=1;\n\twhile(y!=0)\n\t{\n\t\tb[i]=y/2;\n\t\ty=y/2;\n\t\ti++;\n\t}\n\tfor(i=0;a[i]!=0;i++)\n\t{\n\t\tfor(j=0;b[j]!=0;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tm=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(m==0&&a[0]==b[0]) break;\n\t\telse if(m!=0)\n\t\t\tbreak;\n\t}\n\tprintf(\"%d\\n\", a[m]);\n}\n"} +{"label": "104", "index": "51824", "code": "void half(int x,int y)\n{\n\tif(x==y)\n\t\tcout<y)\n\t{\n\t\tx=x/2;\n\t\thalf(x,y);\n\t}\n\telse\n\t{\n\t\ty=y/2;\n\t\thalf(x,y);\n\t}\n}\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\thalf(x,y);\n\treturn 0;\n}\n"} +{"label": "104", "index": "51825", "code": "\n\nint f(int x,int y);\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\tcout<y)\n\t{\n\t\tx=x/2;\n\t\treturn f(x,y);\n\t}\n\t\tif(xtwo(i)&&xtwo(i)&&yy)\n\t{\n\t\n\t\tt=zhao(x,y,row1,flag);\n\t\t\tif(t==0)\n\t\t\t{\n\t\t\t\tfor(i=1;i<=row2;i++)\n\t\t\t\t{\n\t\t\t\tif(y%2==0)\n\t\t\t\t{\n\t\t\t\t\ty=y/2;\n\t\t\t\t}\n\t\t\t\telse y=(y-1)/2;\n\t\t\t\n\t\t\t\tt=zhao(x,y,row1,flag);\n\t\t\t\tif(t==1) \n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t}\n\telse if(y>x)\n\t{\n\t\tt=zhao(y,x,row2,flag);\n\t\t\tif(flag==0)\n\t\t\t{\n\t\t\t\tfor(i=1;i<=row1;i++)\n\t\t\t\t{\n\t\t\t\tif(x%2==0)\n\t\t\t\t{\n\t\t\t\t\tx=x/2;\n\t\t\t\t}\n\t\t\t\telse x=(x-1)/2;\n\t\t\t\tt=zhao(y,x,row2,flag);\n\t\t\t\tif(t==1)\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t}\n\n\n\t\n\n\n\treturn 0;\n}\n\nint zhao(int x,int y,int row1,int flag)\n{\n\tint i;\n\tfor(i=1;i<=row1;i++)\n\t\t{\n\t\t\tif(x%2==0)\n\t\t\t{\n\t\t\t\tx=x/2;\n\t\t\t}\n\t\t\telse x=(x-1)/2;\n\t\t\tif(x==y) \n\t\t\t{\n\t\t\t\tprintf(\"%d\",x);\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\telse continue;\n\t}\n\treturn (flag);\n}"} +{"label": "104", "index": "51827", "code": "/*\n * ???.cpp\n * Created on: 2012-11-19\n * Author:???\n */\nint f(int a, int b) {//?????a?b???????\u0093??\u0094???\n\tif (a == b)//?a??b????a??b?\n\t\treturn a;\n\tif (a > b) {//?a??b,???a??????b?\u0093???\u0094\n\t\treturn f(a % 2 == 0 ? a / 2 : (a - 1) / 2, b);\n\t} else {//?b??a,???b??????b?\u0093???\u0094\n\t\treturn f(a, b % 2 == 0 ? b / 2 : (b - 1) / 2);\n\t}\n}\nint main() {\n\tint a, b;\n\tcin >> a >> b;//?????\n\tcout << f(a, b) << endl;//?????\u0093???\u0094\n\treturn 0;\n}"} +{"label": "104", "index": "51828", "code": "\nvoid fuck(int x,int y){\n\tint temp;\n\tif(x==y)\n\t\tcout<>x>>y;\n\tfuck(x,y);\n\treturn 0;\n}"} +{"label": "104", "index": "51829", "code": "int main()\n{\n\tint exist=0,addressx[10]={0},addressy[10]={0},h,k,x,y,i=0,j=0;\n\tscanf(\"%d%d\",&x,&y);\n\twhile (x>=1)\n\t{\n addressx[i]=x;\n\t \n\t x=x/2;\n\t i+=1;\n\t}\n\n\twhile (y>=1)\n\t{\n\t\taddressy[j]=y;\n\t\n\t\ty=y/2;\n\t\tj+=1;\n\t}\n\n\tfor (h=0;h<=i-1;h++)\n\t{\n\t\tfor (k=0;k<=j-1;k++)\n\t\t{\n\t\t\tif (addressx[h]==addressy[k])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",addressx[h]);\n\t\t\t\texist=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(exist==1)\n\t\t\tbreak;\n\n\t}\n}"} +{"label": "104", "index": "51830", "code": "int main()\n{\n\tint n,m;\n\tcin>>n>>m;\n\tint f(int,int);\n\tcout<b) cr=f(a/2,b);\n\telse cr=f(a,b/2);\n\treturn cr;\n}"} +{"label": "104", "index": "51831", "code": "int main()\n{\n\tint c(int x,int y);\n\tint x,y;//???x?y\n\tcin>>x>>y;\n\tcout<y)\n\t\tz=c(x/2,y);//???????\n\tif(y>x)\n\t\tz=c(x,y/2);\n\treturn z;\n}"} +{"label": "104", "index": "51832", "code": "int main(int argc, char* argv[])\n{\n\tint t,x,y,a;\n\tscanf(\"%d %d\",&x,&y);\n\tif(x==1||y==1) printf(\"1\");\n\telse if(x==y) printf(\"%d\",x);\n\telse if(x!=y)\n\t{\n\t\tif(y>x)\n\t\t{\n\t\t\ta=x;\n\t\t\tx=y;\n\t\t\ty=a;\n\t\t}\n\t\t\tdo\n\t\t\t{\n\t\t\t\tx/=2;\n\t\t\t\tif(x=0,j>=0;i--,j--)\n\t\tif (x[i]==y[j])\n\t\t\troadmeet=x[i];\n\treturn roadmeet;\n}\n\nint main( )\n{\n\tint X,Y;\n\tcin>>X>>Y;\n\tcout<>x>>y;int t1=x,t2=y;\n int xx[12],yy[12];int k=0,kk=0;\n while(x>0)\n {\n xx[k++]=x;\n x=x/2;\n }\n while(y>0)\n {\n yy[kk++]=y;\n y=y/2;\n }\n int ans=0;\n for(int i=0;iy){\n t=x;\n\t\t x=y;\n\t\t y=t;\n\t\t}\n\t y=y/2;\n\t}\n\twhile(x!=y);\n\tprintf(\"%d\",y);\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51838", "code": "int main(){\n int i,j;\n for (cin>>i>>j;i!=j;){\n while (i>j) i/=2;\n while (j>i) j/=2;\n }\n cout<>x>>y;\n\twhile(x>=1)\n\t{\n\t\ta[i]=x;\n\t\tif(x%2==0)\n\t\t{\n\t\t\tx=x/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=(x-1)/2;\n\t\t}\n\t\ti=i+1;\n\t}\n\tj=0;\n\twhile(y>=1)\n\t{\n\t\tb[j]=y;\n\t\tif(y%2==0)\n\t\t{\n\t\t\ty=y/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ty=(y-1)/2;\n\t\t}\n\t\tj=j+1;\n\t}\n\twhile(j>0&&i>0)\n\t{\n\t\tif(b[j-1]!=a[i-1])\n\t\t{\n\t\t\tcout<=0&&j>=0;i--,j--)\n\t{\n\t\tif(rx[i]!=ry[j])\n\t\t\tbreak;\n\t}\n\t\n\tprintf(\"%d\",rx[i+1]);\n}"} +{"label": "104", "index": "51841", "code": "/*\n * 1.cpp\n *\n * Created on: 2011-11-14\n * Author: wangwenxia1963\n */\nint main()\n{\n\tint x,y,a,b,i,j;\n\tcin>>x>>y;\n\tfor(i=1;x/i>0;i=i*2)\n\t\ta=x%i;\n\tfor(j=1;y/j>0;j=j*2)\n\t\tb=y%j;\n\ti=i/2;j=j/2;\n\tif(i>j)\n\t\tx=x*j/i;\n\telse y=y*i/j;\n\twhile(x!=y)\n\t\t{\n\t\tx=x/2;\n\t\ty=y/2;\n\t\t}\n\tcout<y)\n\tx=x/2;\n\t}\n\tprintf(\"%d\\n\",x);\n}\n"} +{"label": "104", "index": "51843", "code": "//*********************\n//???***************\nint main()\n{\n\tint x,y;\n\tint ax[1000],ay[1000];\n\tcin>>x>>y;\n\tif(x==1||y==1)\n\t\tcout<<\"1\"<1)\n\t{\n\t\tax[0]=x;\n\t\tif(x%2==0)\n\t\t\tax[1]=x/2;\n\t\telse \n\t\t\tax[1]=(x-1)/2;\n\t\tfor(int i=2;;i++)\n\t\t{\n\t\t\tif(ax[i-1]%2==0)\n\t\t\t\tax[i]=ax[i-1]/2;\n\t\t\tif(ax[i-1]%2!=0)\n\t\t\t\tax[i]=(ax[i-1]-1)/2;\n\t\t\tif(ax[i-1]==1)\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t}\n\tint temp;\n\tif(y>1)\n\t{\n\t\tay[0]=y;\n\t\tif(y%2==0)\n\t\t\tay[1]=y/2;\n\t\telse \n\t\t\tay[1]=(y-1)/2;\n\t\tfor(int i=2;;i++)\n\t\t{\n\t\t\tif(ay[i-1]%2==0)\n\t\t\t\tay[i]=ay[i-1]/2;\n\t\t\tif(ay[i-1]%2!=0)\n\t\t\t\tay[i]=(ay[i-1]-1)/2;\n\t\t\tif(ay[i-1]==1)\n\t\t\t\t{ temp=i;\n\t\t\tbreak;}\n\t\t}\n\t}\n\tint counter=0;\n\tfor(int l=0;;l++)\n\t{\n\t\tfor(int k=0;k<=temp;k++)\n\t\t{\n\t\t\tif(ax[l]==ay[k])\n\t\t\t\t{\n\t\t\t\t\tcout<n){\n\t\tkn=k;\n\t\tbreak;\n\t}\n\t}\n\tl=1;\n\tfor (k=1;k<33;k++){\n\tl=l*2;\n\tif(l>i){\n\t\tki=k;\n\t\tbreak;\n\t}\n\t}\n\tfor(k=0;k=1)\n\t{\n\t\ta[i++]=x;\n\t\tx/=2;\n\t}\n\twhile(y>=1)\n\t{\n\t\tb[j++]=y;\n\t\ty/=2;\n\t}\n\tqsort(a,i,sizeof(a[0]),comp);\n\tqsort(b,j,sizeof(b[0]),comp);\n\tfor(i=0;;i++)\n\t{\n\t\tif(a[i]==b[i])\n\t\t k=a[i];\n\t\telse\n\t\t break;\n\t}\n\tif(x1==y1)\n\t\tprintf(\"%d\",x1);\n\telse\n\t\tprintf(\"%d\",k);\n\treturn 0;\n}"} +{"label": "104", "index": "51846", "code": "int main()\n{\n\tint x,y,sx=0,sy=0,an=0;\n\tcin>>x>>y;\n\tint jx[10],jy[10];\n\tjx[0]=x,jy[0]=y;sx++;\n\tfor(int i=1;jx[i-1]>=2;i++){\n\t\tjx[i]=jx[i-1]/2;\n\t\tsx++;\n\t}\n\tfor(int i=1;jy[i-1]>=2;i++){\n\t\tjy[i]=jy[i-1]/2;\n\t\tsy++;\n\t}\n\tfor(int i=0;i<=sx;i++){\n\t\tif(an!=0){cout<=1;i++)\n\t {\n\t\t for(j=0;n>m;j++)\n\t\t {\n\t\t\t n=n/2;\n\t\t }\n if(n!=m)\n\t\t {\n\t\t\t m=m/2;\n\t \t\t continue;\n\t\t }\n\t\t if(n==m)\n \t\t break;\n\t }\n\t printf(\"%d\\n\",m);\n\t }\n}\n\t\t\t \n"} +{"label": "104", "index": "51848", "code": "void change(int a[10000])\n{\n\tint i;\n\tfor(i=1;i<10000&&a[i-1]!=1;i++)\n\t{\n\t\ta[i]=(int)(a[i-1]/2);\n\t}\n}\nmain()\n{\n\tint i,j,x,y,a[10],b[10];\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x;b[0]=y;\n\tchange(a);change(b);\n\tfor(i=0;i<10;i++)\n\t{\n\t\tfor(j=0;j<10;j++)\n\t\t{if(a[i]==b[j]){printf(\"%d\\n\",a[i]);return 0;}\n\t\t}\n\t}\n}\n"} +{"label": "104", "index": "51849", "code": "\nvoid main()\n{\n int s[11],t[11];\n\tint m,n,j,k,i,l,a,b,sign=0;\n\tscanf(\"%d %d\",&m,&n);\n\ts[0]=m;t[0]=n;\n\tfor(k=m/2,i=1;k!=0;i++)\n\t{\n\t\ts[i]=k;\n\t\tk=k/2;\n \n\t}\n\tfor(j=n/2,l=1;j!=0;l++)\n\t{\n\t\tt[l]=j;\n\t\tj=j/2;\n \n\t}\n\tfor(a=0;a>x>>y;\n\twhile(x != y){\n\t\tif(x > y)\n\t\t\tx /= 2;\n\t\telse\n\t\t\ty /= 2;\n\t}\n\tcout<b)\n\t{\n\t\treturn answer(a/2,b);\n\t}\n\telse\n\t{\n\t\treturn answer(a,b/2);\n\t}\n}\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\tcout<>a>>b;\n\tfor(ca=0;;ca++){\n\t\tif(a=cb){\n\t\tfor(int i=cb;i=0;i--){\n\t\t\tif(a==b)\n\t\t\t\t{cout<=0;i--){\n\t\tif(a==b)\n\t\t\t{cout<0) {a[la++]=x%2;x/=2;}\n\tscanf(\"%d\",&x);\n\twhile (x>0) {b[lb++]=x%2;x/=2;}\n\tfor (i=la-1,j=lb-1,x=0;i>=0&&j>=0&&a[i]==b[j];i--,j--) x=x*2+a[i];\n\tprintf(\"%d\",x);\n\treturn 0;\n}\n"} +{"label": "104", "index": "51856", "code": "int main()\n{\n\tint x,y,nx,ny,i,j,k,ax[20]={0},ay[20]={0};\n\tcin>>x>>y;\n\tif(x==y)\n\t{\n\t\tcout<0)\n\t{\n\t\tax[nx]=x;\n\t\tx/=2;\n\t\tnx++;\n\t}\n\tnx--;\n\tny=1;\n\twhile(y>0)\n\t{\n\t\tay[ny]=y;\n\t\ty/=2;\n\t\tny++;\n\t}\n\tny--;\n\tfor(i=nx+ny; ;i--)\n\t\tif(ax[i-ny]!=ay[i-nx])\n\t\t{\n\t\t\tcout<>a>>b;\n while(1)\n {\n if(a>b)a=f(a);\n else if(b>a)b=f(b);\n else if(a==b){cout<>x>>y;\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;i<10;i++)\n\t\t{\n\t\t\ta[i]=a[i-1]/2;\n\t\t\tb[i]=b[i-1]/2;\n\t\t}\n\tfor(i=9;i>=0;i--)\n\t\tfor(j=0;j<10;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t\tmax=a[i];\n\t\t}\n\t\tcout<=0&&j-k>=0;k++)\n\t{\n\t\tif(a[i-k]!=b[j-k])\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tprintf(\"%d\",a[i-k+1]);\n}"} +{"label": "104", "index": "51860", "code": "\nint main(int argc, char* argv[])\n{\n\tint x,y,z;\n\tscanf(\"%d %d\",&x,&y);\n\twhile(x!=y)\n\t{\n\t\tif(xy&&x/2>=y/2)\n\t\t\tcheck(x/2,y);\n\t\tif(xb[j])\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif(shu==0)\n\t\t\tcontinue;\n\t\telse\n\t\t\tbreak;\n\t}\n\t}\n\treturn shu;\n}\nint main()\n{\n\tint x,y;\n\tscanf(\"%d%d\",&x,&y);\n\tprintf(\"%d\\n\",erchashu(x,y));\n}"} +{"label": "104", "index": "51864", "code": "int main ()\n{\n int a,b;\n scanf(\"%d%d\",&a,&b);\n do\n {\n if(a==b)\n {\n break;\n } \n if(a>b)\n {\n a=a/2;\n }\n else\n {\n b=b/2;\n }\n \n }\n while(1);\n printf(\"%d\",a);\n return 0;\n}"} +{"label": "104", "index": "51865", "code": "void main()\n{\n int i,m,n,temp;\n scanf(\"%d%d\",&m,&n);\n if(mn) m/=2;\n\t else\n\t {\n\t temp=n;\n\t\tn=m/2;\n\t\tm=temp;\n\t }\n\t}\n }\n }\n}"} +{"label": "104", "index": "51866", "code": "void main()\n{\n\tint n1,n2,n1_[100],n2_[100],i=0,j=0;\n\tscanf(\"%d%d\",&n1,&n2);\n\tdo\n\t{\n\t\tn1_[i]=n1;\n\t\tn1=n1/2;\n\t\ti++;\n\t}while(n1>=1);\n\tn1_[i]=1;\n\tdo\n\t{\n\t\tn2_[j]=n2;\n\t\tn2=n2/2;\n\t\tj++;\n\t}while(n2>=1);\n\tn2_[j]=1;\n\tfor(;;i--,j--)\n\t{\n\t\tif(n1_[i]!=n2_[j])\n\t\t\tbreak;\n\t}\n\tprintf(\"%d\",n1_[i+1]);\n}\n"} +{"label": "104", "index": "51867", "code": "int main() \n{int f(int n);\n int a,b,j,i;\n int s1[100],s2[100],s3[100];\n scanf(\"%d%d\",&a,&b);\n \n for(s1[0]=a,i=0;s1[i]!=1;i++)\n s1[i+1]=f(s1[i]);\n for(j=i;j>=0;j--)\n {s2[i-j]=s1[j];s1[j]=0;}\n\n for(s1[0]=b,i=0;s1[i]!=1;i++)\n s1[i+1]=f(s1[i]);\n for(j=i;j>=0;j--)\n {s3[i-j]=s1[j];s1[j]=0;}\n\n for(i=0;;i++)\n\t if(s2[i]!=s3[i]) { printf(\"%d\\n\",s2[i-1]);break;}\n return 0;\n}\nint f(int n)\n{int i,t=1,m;\n for(i=0;;i++)\n {t=2*t;\n if(t>n) {t=t/2;break;}\n }\n m=t/2+(n-t)/2;\n return m;\n}\n"} +{"label": "104", "index": "51868", "code": "\nint shulie(int a[]){\n\tint i,x1=0;\n\tfor(i=9;i>=0;i--){\n a[i]=a[i+1]/2;\n\t\tif(a[i]!=0) x1=i;\n\t}\n\treturn x1;\n}\n\nvoid main()\n{\n\tint x[11]={0},y[11]={0},i=0,x1,y1;\n\tscanf(\"%d%d\",&x[10],&y[10]);\n\tif(x[10]==1 || y[10]==1) printf(\"1\");\n else\n\t{\n\t\t{x1=shulie(x);\n\t y1=shulie(y);\n\t for(i=0;i<11;i++){\n\t\t if(x[x1]!=y[y1]) {printf(\"%d\",x[x1-1]);break;}\n\t\t else {x1++;\n\t\t y1++;\n\t\t\t continue;}\n\t}\n\t}\n\t}\n}"} +{"label": "104", "index": "51869", "code": "\nint main() {\n\tint xpath[100],ypath[100];\n\t\tint xi=0,yi=0;\n\t\tcin>>xpath[0]>>ypath[0];\n\t\twhile(xpath[xi]!=1)\n\t\t{\n\t\t\txpath[xi+1]=xpath[xi]/2;\n\t\t\txi++;\n\t\t}\n\n\t\twhile(ypath[yi]!=1)\n\t\t{\n\t\t\typath[yi+1]=ypath[yi]/2;\n\t\t\tyi++;\n\t\t}\n\t\twhile(xi>=0&&yi>=0)\n\t\t{\n\t\t\tif(xpath[xi]!=ypath[yi])\n\t\t\t{\n\t\t\t\tcout<y)\n {\n x=x/2;\n }\n else\n {\n y=y/2;\n }\n ercha(x,y);\n }\n}"} +{"label": "104", "index": "51871", "code": "\nint main()\n{\n\tint x[100],y[100],i,j,k;\n\tscanf(\"%d %d\",&x[0],&y[0]);\n\tfor(i=1;;i++)\n\t{\n\t\tx[i]=x[i-1]/2;\n\t\tif(x[i]==1)\n\t\t\tbreak;\n\t}\n\tfor(j=1;;j++)\n\t{\n\t\ty[j]=y[j-1]/2;\n\t\tfor(k=0;k<=i;k++)\n\t\t{\n\t\t\tif(y[0]==x[k]||y[j]==x[k])\n\t\t\t\tgoto out;\n\t\t}\n\t}\nout:printf(\"%d\",x[k]);\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51872", "code": "/*??\n1000012872\n */\nint f(int x,int y);\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\tcout<=2&&y>=2)\n\t{\n\t m=x;\n\t n=y;\n\t int a[x],b[y];\n\t a[0]=x;\n\t for(i=1;i<=m;i++)\n\t {\n\t if(x>=2)\n\t\t {\n\t\t a[i]=x/2;\n\t x=x/2;\n\n\t }\n\t else break;\n\t }\n\n\t p=i-1;\n b[0]=y;\n for(i=1;i<=n;i++)\n {\n\t if(y>=2)\n\t {\n\t b[i]=y/2;\n\t y=y/2;\n\t }\n\t else break;\n }\n q=i-1;\n\n for(i=p,j=q;i>=0,j>=0;i--,j--)\n \tif(a[i]==b[j])\n \tc=a[i];\n \treturn c;\n\t}\n\t\n\tif(x==1||y==1) return x;\n}\n\n\n\n"} +{"label": "104", "index": "51873", "code": "\nvoid main()\n{\n int a1,b1,i,j;\n int k=0;\n int a[20]={0},b[20]={0};\n scanf(\"%d%d\",&a1,&b1);\n for (i=0; a1!=0||b1!=0; a1/=2,b1/=2)\n {\n a[i]=a1;\n b[i]=b1;\n i++;\n }\n for (i=0; a[i]!=0; i++)\n {\n for (j=0; b[j]!=0; j++)\n {\n if (b[j]==a[i])\n {\n k=1;break;\n }\n }\n if (k==1)\n {\n break;\n }\n }\n printf(\"%d\",b[j]);\n \n}"} +{"label": "104", "index": "51874", "code": "int luo(int x,int y)\n{\n int r1,r2,c;\n\tif(x==y)\n\t\treturn x;\n\telse \n\t{\n\t\tr1=log((double)x)/(log(2.0));\n\t r2=log((double)y)/(log(2.0));\n\t if(r1>=r2)\n\t\t{\n\t\t\tx=x/2;\n\t\t luo(x,y);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ty=y/2;\n\t\t\tluo(x,y);\n\t\t}\n\t}\n}\nint main()\n{\n\tint x,y;\n\tscanf(\"%d%d\",&x,&y);\n\tprintf(\"%d\",luo(x,y));\n\t\n\treturn 0;\n}"} +{"label": "104", "index": "51875", "code": "int main()\n{\n\tint x[1000],y[1000],i,j,k,p,m;\n\tcin >> x[1] >> y[1];\n\ti=2;\n\tj=2;\n\twhile(x[i-1]!=1)\n\t{\n\t\tx[i]=x[i-1]/2;\n\t\ti++;\n\t}\n\twhile(y[j-1]!=1)\n\t{\n\t\ty[j]=y[j-1]/2;\n\t\tj++;\n\t}\n\tm=0;\n\tfor(k=1;k<=i-1;k++)\n\t{\n\t\tif(m==0)\n\t\t{\n\t\tfor(p=1;p<=j-1;p++)\n\t\t{\n\t\t\tif(y[p]==x[k])\n\t\t\t{\n\t\t\t\tcout << x[k];\n\t\t\t\tm=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t}\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51876", "code": "/*\n * ???.cpp\n *\n * Created on: 2010-11-23\n * Author: acer\n */\n\nint main()\n{\n\tint a,b,i=0,j=0,k;\t\t\t\t\t//ab?????????ij??????????\n\tint a_line[20],b_line[20];\t\t\t//?????????ab???\n\tcin>>a>>b;\n\twhile(a!=0)\t\t\t\t\t\t\t//?????\n\t{\n\t\ta_line[i]=a;\n\t\ta=a/2;\n\t\ti++;\n\t}\n\twhile(b!=0)\n\t{\n\t\tb_line[j]=b;\n\t\tb=b/2;\n\t\tj++;\n\t}\n\tif(i>j)\t\t\t\t\t\t\t\t//??ab???????\n\t{\n\t\tfor(k=0;k0)\n\t\t\tbreak;\n\t}\n\tprintf(\"%d\",a[i]);\n}"} +{"label": "104", "index": "51878", "code": "int next(int x)\n{\n\tint z;\n\tif(x%2==0)\n\t\tz=x/2;\n\telse\n\t\tz=(x-1)/2;\n return(z);\n}\nint main()\n{\n\tint x,y;\n\tint i,j,num1=1,num2=1;\n\tint z[11],k=0;\n\tint a[100],b[100];\n scanf(\"%d%d\",&x,&y);\n\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;;i++)\n\t{\n a[i]=next(x);\n\t\tx=a[i];\n\t\tnum1++;\n\t\tif(a[i]==1||a[i-1]==1)\n\t\t\tbreak;\n\t}\n for(i=1;;i++)\n\t{\n b[i]=next(y);\n\t\ty=b[i];\n\t\tnum2++;\n\t\tif(b[i]==1||b[i-1]==1)\n\t\t\tbreak;\n\t}\n\n\tfor(i=0;i>x>>y;\n\tint i,j;\n\tint p,q;\n\tint k=0;\n\tp=0;q=0;\n\tint c=1;\n\tint d=1;\n\tint a[11],b[11],f[11];\n for (i=1;i<=10;i++)\n\t\t{c=c*2;\n\t if (c>x)\n\t \t{p=i;break;}}\n\tfor (i=1;i<=10;i++)\n\t{\n\t\td=d*2;\n\t\tif (d>y)\n\t\t\t{q=i;break;}\n\t}\n\tfor (i=0;i<=p;i++)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t}\n\tfor (i=0;i<=q;i++)\n\t{\n\t\tb[i]=y;\n\t\ty=y/2;\n\t}\n\tfor (i=0;i<=p;i++)\n\t\tfor (j=0;j<=q;j++)\n\n\t\t\tif (a[i]==b[j]&&a[i]!=0)\n\t\t\t\t{ f[k]=a[i];k++;}\ncout<1;i++)\n\t\ta[i+1]=a[i]/2;\n\tfor(j=0;b[j]>1;j++)\n\t\tb[j+1]=b[j]/2;\n\tfor(i=0;a[i]>1;i++)\n\t{\n\t\tfor(j=0;b[j]>1;j++)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\troot=a[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(root!=0)break;\n\t}\n\tif(root==0)root=1;\n\t\tprintf(\"%d\",root);\n}\n"} +{"label": "104", "index": "51882", "code": "\nvoid main()\n{\n\tint a[2][10]={0};\n\tint i,j;\n\n\tscanf(\"%d %d\",&a[0][0],&a[1][0]);\n\n\tfor(i=1;a[0][i]==0;i++)\n\t{\n\t\ta[0][i]=a[0][i-1]/2;\n\t}\n\t\t \n\tfor(j=1;a[1][j]==0;j++) \n\t{\n\t\ta[1][j]=a[1][j-1]/2;\n\t}\n\n\tfor(i=0;a[0][i]!=0;i++)\n\t{\n\t\tfor(j=0;a[1][j]!=0;j++)\n\t\t{\n\t\t\tif(a[0][i]==a[1][j])\n\t\t\t{\n\t\t\t\tgoto k;\n\t\t\t}\n\t\t}\n\t}\n\n k:printf(\"%d\",a[1][j]);\n}"} +{"label": "104", "index": "51883", "code": "int main ()\n{\n\tint i,j,x,y,p,q,m,n;\n\tcin>>x>>y;\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(pow(2.0,i)>x) {p=i;m=x-pow(2.0,i-1)+1;break;}\n\t}\n\tfor(i=0;i<11;i++)\n\t{\n\t\tif(pow(2.0,i)>y) {q=i;n=y-pow(2.0,i-1)+1;break;}\n\t}\n\tfor(;;)\n\t{\n\t\tif(p==q)\n\t\t{\n\t\t\tif(m==n) {cout<q)\n\t\t{\n\t\t\tp--;\n\t\t\tif(m%2==0) m=m/2;\n\t\t\telse if(m%2==1) m=m/2+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tq--;\n\t\t\tif(n%2==0) n=n/2;\n\t\t\telse if(n%2==1) n=n/2+1;\n\t\t}\n\t}\n\treturn 0;\n}\n\n \n \n \n"} +{"label": "104", "index": "51884", "code": "int main()\n{\n\tint x,y,i,j,sign=0;\n\tint a[1000]={0},b[1000]={0};\n\tscanf(\"%d%d\",&x,&y);\n\n\tif(x>x>>y;\n\n\ta[1]=x;\n\n\tb[1]=y;\n\t\n\tfor(i=1;a[i]>=1;i++)\n\n\t{\n\n\t\ta[i+1]=a[i]/2;\n\n\t}\n\n\tfor(j=1;b[j]>=1;j++)\n\n\t{\n\n\t\tb[j+1]=b[j]/2;\n\n\t}\n\n\tint m,n,panduan=0;\n\n\tfor(m=1;m<=i-1;m++)\n\n\t{\n\n\t\tfor(n=1;n<=j-1;n++)\n\n\t\t{\n\n\t\t\tif(a[m]==b[n])\n\n\t\t\t{\n\n\t\t\t\tpanduan=1;\n\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\n\t\tif(panduan==1)\n\n\t\t\tbreak;\n\n\t}\n\n\tcout<=pow(2,i)&&a[1].x=pow(2,i)&&a[2].x=1;)\n\t\t\t{\n\t\t\t\tif(a[1].t%2) a[1].t=(a[1].t-1)/2;\n\t\t\t\telse a[1].t=a[1].t/2;\n\t\t\t\ti--;\n\t\t\t\tif(i==a[2].layer){\n\t\t\t\t\tif(a[1].t==a[2].t) {printf(\"%d\\n\",a[1].t);sign=1;break;}}\n\t\t\t\telse \n\t\t\t\t\tif(ii);\n\t\t\t\t\t\tif(a[2].t==a[1].t) {printf(\"%d\\n\",a[1].t);sign=1;break;}\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"} +{"label": "104", "index": "51887", "code": "void main()\n{\n\tint a[100]={0},b[100]={0},c[10];\n\tint i,j,x=0,y=0,k=0;\n\tscanf(\"%d %d\",&a[0],&b[0]);\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif(a[i]>=2)\n\t\t{\n\t\t\ta[i+1]=a[i]/2;\n\t\t\tx++;\n\t\t}\n\t}\n\tfor(j=0;j<100;j++)\n\t{\n\t\tif(b[j]>=2)\n\t\t{\n\t\t\tb[j+1]=b[j]/2;\n\t\t\ty++;\n\t\t}\n\t}\n\tfor(i=0;i<10;i++)\n\t{\n\t\tfor(j=0;j<10;j++)\n\t\t\tif(a[i]==b[j]&&a[i]!=0&&b[j]!=0)\n\t\t\t{c[k]=a[i];\n\t\t\tk++;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}\n\tprintf(\"%d\",c[0]);\n}"} +{"label": "104", "index": "51888", "code": "\nvoid main()\n{\n\tvoid change(int *p1,int *p2);\n int a,b;\n\tscanf(\"%d %d\",&a,&b);\n\twhile(a!=b)\n\t{\n\t\tif(a>b) \n\t\t{\n\t\t\tchange(&a,&b);\n\t\t}\n\t\tb=b/2;\n\t}\n\tprintf(\"%d\\n\",a);\n}\n\nvoid change(int *p1,int *p2)\n{\n\tint temp;\n\ttemp=*p1;\n\t*p1=*p2;\n\t*p2=temp;\n}"} +{"label": "104", "index": "51889", "code": "\nint main()\n{\n int x,y,x0,y0,result,flag=0;\n \n scanf(\"%d %d\",&x,&y);\n \n x0=x;y0=y;\n for (x=x0;x>=1;x/=2)\n for (y=y0;y>=1;y/=2)\n if (x==y&&flag==0)\n {\n result=x;\n flag=1;\n }\n \n printf(\"%d\\n\",result);\n getchar();getchar();\n \n return 0;\n \n}\n"} +{"label": "104", "index": "51890", "code": "void main()\n{\n\tint a,b,i,x1[100],x2[100],j,m,k,flag=0;\n\tscanf(\"%d %d\",&a,&b);\n\tx1[0]=a;\n\tx2[0]=b;\n\tfor(i=1;;i++)\n\t{\n\t\tx1[i]=x1[i-1]/2;\n\t\tif(x1[i]==0)\n\t\tbreak;\n\t}\n for(j=1;;j++)\n\t{\n\t\tx2[j]=x2[j-1]/2;\n\t\tif(x2[j]==0)\n\t\tbreak;\n\t}\n\tfor(k=0;k<=i;k++)\n\t{\n\t\tfor(m=0;m<=j;m++)\n\t\t{\n\t\t\tif(x1[k]==x2[m])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",x1[k]);\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n if(flag==1)\n\t\t break;\n\t}\n\n}\n\n"} +{"label": "104", "index": "51891", "code": "int common(int x,int y); \nint main()\n{\n\tint x,y;\n\twhile(cin>>x>>y)\n\t{\n\t\tcout<y)\n\t\treturn common((int)x/2,y);\n\t\telse\n\t\treturn common(x,(int)y/2);\n\t}\n}\n"} +{"label": "104", "index": "51892", "code": "\n\nint m,n;\nint f(int a,int b) //????????????????????????????2??????\n{\n while(a>=2*b)\n {\n a=a/2;\n }\n while(b>=2*a)\n {\n b=b/2; //???????a?b??????????????????????????ab???????\n }\n if(a>b) //??a??b??????????ab???????a?b?????\n {\n while(a!=b&&a/2!=b) //?????a?a/2????b\n {\n a=a/2;\n b=b/2;\n }\n return b;\n }\n if(b>a)\n {\n while(a!=b&&a!=b/2) //??\n {\n a=a/2;\n b=b/2;\n }\n return a;\n }\n if(a==b) return a;\n\n}\nint main()\n{\n cin >> m >> n ;\n cout<>a[0]>>b[0];\n\twhile(a[i]>1)\n\t{a[i+1]=a[i]/2;\n\t i++;\n\t}\n\twhile(b[j]>1)\n\t{b[j+1]=b[j]/2;\n\tj++;\n\t}\n\n\twhile(a[i]==b[j])\n\t{i--;\n\t\tj--;\n\t\t}\n\tcout<=0,j>=0;i--,j--)\n\t{\n\t\tif(x[i]==y[j])\n\t\t\tif(i==0||j==0||x[i-1]!=y[j-1])\n\t\t\t\tprintf(\"%d\\n\",x[i]);\n\t\t\telse\n\t\t\t\tcontinue;\n\t\telse\n\t\t\tbreak;\n\t}\n\t}\n}"} +{"label": "104", "index": "51896", "code": "int main()\n{\n\tint m,n,an;\n\tscanf(\"%d %d\",&m,&n);\n\tan=f(m,n);\n\tprintf(\"%d\",an);\n\n}\nint f(int a,int b)\n{\n\tint w;\n\tif(a==b)\n\t\tw=a;\n\tif(a>b)\n\t\tw=f(a/2,b);\n\tif(a0)\n\t{\n\t\ta[i+1]=x%2;\n\t\tx=(x-x%2)/2;\n\t\ti++;\n\t}\n\twhile(y>0)\n\t{\n\t\tb[j+1]=y%2;\n\t\ty=(y-y%2)/2;\n\t\tj++;\n\t}\n\tt=i;\n\twhile(a[i]==b[j])\n\t{\n\t\ti--;\n\t\tj--;\n\t}\n\tfor(k=t;k>=i+1;k--)\n\t\tn=n*2+a[k];\n\tprintf(\"%d\",n);\n}"} +{"label": "104", "index": "51898", "code": "int main(int argc, char* argv[])\n{\n\tint n1,n2,j=1,k=1,a[1000],b[1000],i=1,m=1,number,break1;\n\tscanf(\"%d%d\",&n1,&n2);\n\tif (n1==1||n2==1)\n\t\tprintf(\"1\\n\");\n\telse\n\t{\n\t\ta[0]=n1;\n\t b[0]=n2;\n\t\twhile(n1>1)\n\t\t{\n\t\tif (n1%2==0)\n\t\t{\t\n\t\t\tn1=n1/2;\n\t\t a[i]=n1;\n\t\t\ti++;\n\t\t}\n\t\telse {n1=(n1-1)/2;a[i]=n1;i++;}\n\t\tj++;\n\t\t}\n\t\twhile(n2>1)\n\t\t{\n\t\tif (n2%2==0)\n\t\t{\t\n\t\t\tn2=n2/2;\n\t\t b[m]=n2;\n\t\t\tm++;\n\t\t}\n\t\telse {n2=(n2-1)/2;b[m]=n2;m++;}\n\t\tk++;\n\t\t}\n\t\tfor (i=0;i=2*y)\n\t\t{\n\t\t\tx=x/2;\n\t\t}\n\t\telse if(y>=2*x)\n\t\t{\n\t\t\ty=y/2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tx=x/2;\n\t\t\ty=y/2;\n\t\t}\n\t}\n\tprintf(\"%d\",x);\n\treturn 0;\n}"} +{"label": "104", "index": "51901", "code": "int cmp(int x,int y)//????cmp\n{\n\tif(x==y)//???????x\n\t\treturn x;\n\telse//??????????2????????\n\t{\n\t\tif(x>y)\n\t\t{\n\t\t\tx=x/2;\n\t\t}\n\t\tif(x>x>>y;//????\n\tcout<y) proce(x/2,y);\n\telse\n\tproce(x,y/2);\n\t\n\t\n\t\n}\n\t\nint main()\n{\n//freopen(\"tt.in\",\"r\",stdin);\n//freopen(\"tt.out\",\"w\",stdout);\n\tscanf(\"%d%d\",&x,&y);\n\t\n\tproce(x,y);\n\t\n\t \nreturn 0;\n}"} +{"label": "104", "index": "51903", "code": "\nint main ()\n{\nint x[1000],y[1000],i,j,a,b,m,n,p=0;\n scanf (\"%d %d\",&a,&b);\n x[0]=a;y[0]=b;\nif (a==1||b==1)\n{\n printf(\"1\");\n}\nelse if (a==b)\n{ \n\tprintf(\"%d\",a);\n\n} \n\nelse{\nfor (i=1;a>0;i++)\n{\n if (a%2==0)\n {\n x[i]=(a/2);\n a=a/2;\n }\n if (a%2!=0&&a!=1)\n {\n x[i]=(a-1)/2;\n\ta=x[i];\n }\nif (a==1)\n\t { x[i]=1; a-=1; }\n m=i;\n}\n\nfor (j=1;b>0;j++)\n{\n if (b%2==0)\n {\n y[j]=(b/2);\n b=b/2;\n }\n if (b%2!=0&&b!=1)\n {\n y[j]=(b-1)/2;\n\tb=y[j];\n }\n if (b==1)\n {\n y[j]=b;\n b-=1;\n }\n n=j;\n}\n\n\n\n\n for (i=0;i<=m;i++)\n {\n for (j=0;j<=n;j++)\n {\n if (x[i]==y[j])\n\t {\n\t printf(\"%d\",x[i]);\n p=1;\n\t }\n if (p==1)\n\t\tbreak;\n }\n if (p==1)\n\t break;\n }\n}\n\nreturn 0;\n}\n\n\n\n\n\n\n"} +{"label": "104", "index": "51904", "code": "int main ()\n{\n\tint a,b;\n\tcin >> a >>b ;\n\tint x[11],y[11],xi[11],yi[11];\n\tint i,j,k;\n\tfor (i=0;i<=11;i++)\n\t{\n\t\tx[0]=a;\n\t\tif (x[i]==1) break;\n\t\telse x[i+1]=x[i]/2;\n\t}\n\tfor (j=0;j<=i;j++)\n\t\txi[j]=x[i-j];\n\tfor (i=0;i<=11;i++)\n\t{\n\t\ty[0]=b;\n\t\tif (y[i]==1) break;\n\t\telse y[i+1]=y[i]/2;\n\t}\n\tfor (j=0;j<=i;j++)\n\t\tyi[j]=y[i-j];\n\tfor (k=0;k<=i;k++)\n\t{\n\t\tif (xi[k]-yi[k]!=0) break;\n\t}\n\tcout << xi[k-1];\n\treturn 0;\n}\n"} +{"label": "104", "index": "51905", "code": "int find(int,int);\nint main()\n{\n int ans;\n int x,y;\n cin>>x>>y;\n ans=find(x,y);\n cout<y) return find(y,x);\n else return find(x,y/2);\n}\n"} +{"label": "104", "index": "51906", "code": "int main()\n{\n\t\n\tint i,j,a,e,f,d,h,g;\n int k,m,n;\n\tint y[1000],x[1000],z[1000];\n\tscanf(\"%d%d\",&m,&n);\n\tfor(i=1;m>0;i++){\n\t\tx[i]=m;\n\t\tm=m/2;\n\t}\n\tfor(j=1;n>0;j++){\n\t\ty[j]=n;\n\t\tn=n/2;\n\t}\n\tfor(k=1;ky)?com(x/2,y):com(x,y/2);\n\treturn t;\n}\nvoid main ()\n{\n\tint x,y;\n\tscanf(\"%d %d\",&x,&y);\n\tprintf(\"%d\\n\",com(x,y));\n}\n\n\t"} +{"label": "104", "index": "51909", "code": "/*\n *erchashu.cpp\n *?????????????\n *Created on: 2011-11-11\n *Author: ???\n */\nint main(){\n\tint a,b;\n\tcin>>a>>b;\n\twhile(a!=b){\n\t\tif(a>b) a=(a-a%2)/2;//??\n\t\telse b=(b-b%2)/2;\n\t}\n\tcout<>x>>y;\n a[0]=b[0]=1;\n while (x!=1)\n {\n a[a[0]]=x;\n a[0]++;\n x=x/2;\n }\n a[a[0]]=1;\n\n while (y!=1)\n {\n b[b[0]]=y;\n b[0]++;\n y=y/2;\n }\n b[b[0]]=1;\n\n int k=0;\n while (a[a[0]-k]==b[b[0]-k]) k++;\n\n if (a[0]-k+1==0) cout<b)\n\t\t\ta=a/2;\n\t\tif(a>a[1];\n\tcin>>b[1];\n\tshu(a,2);\n\tshu(b,2);\n\tfor(i=1;i<=99;i++)\n\t{\n\t\tfor(j=1;j<=99;j++)\n\t\t{\n\t\t\tif(a[i]==b[j]&&a[i]>0)\n\t\t\t{\n\t\t\t\tcout<>q;\n\treturn 0;\n}"} +{"label": "104", "index": "51913", "code": "void main()\n{\n\tint x[100],y[100],i,j,p,q,k,temp=0;\n\tscanf(\"%d%d\",&x[0],&y[0]);\n\tfor(i=0;x[i]!=0;i++)\n\t{\n\t\t\n\t\tx[i+1]=x[i]/2;\n\t}\n for(p=0;y[p]!=0;p++)\n\t{\n \n\t\ty[p+1]=y[p]/2;\n\t}\n\tfor(q=0;q<=i;q++)\n\t{\n\t\tfor(j=0;j<=p;j++)\n\t\t{\n\t\t\tif(x[q]==y[j])\n\t\t\t{\n\t\t\t\ttemp=1;\n\t\t\t\tk=q;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(temp==1)\n\t\t\tbreak;\n\t}\n\tprintf(\"%d\",x[k]);\n}"} +{"label": "104", "index": "51914", "code": "/*\n * ???????.cpp\n * ??????????x?y???????????1000\n * ?????????????????\n * ????: 2010-11-20\n * ??: ??\n */\n\n\n\nint main() {\n\t//??x?y\n\tint x, y;\n\tcin >> x;\n\tcin >> y;\n\n\t//?xArray?yArray??x?y????2??\n\tint xArray[11], yArray[11];\n\tint i, j;\n\tfor (i = 0; i < 11; i++) {\n\t\txArray[i] = x;\n\t\tyArray[i] = y;\n\t\tx /= 2;\n\t\ty /= 2;\n\t}\n\n\t//????????xArray?yArray???????????????\n\tfor (i = 0; i < 11; i++) {\n\t\tfor (j = 0; j < 11; j++) {\n\t\t\t//??????????????????\n\t\t\tif (xArray[i] == yArray[j]) {\n\t\t\t\tcout << xArray[i] << endl;\n\t\t\t\ti = j = 11;\n\t\t\t}\n\t\t}\n\t}\n\treturn 0; //????\n}\n"} +{"label": "104", "index": "51915", "code": "int f(int n,int m)\n{\n\tif(n==m)\n\t\treturn n;\n\telse\n\t{\n\t\tif(n/2>m)\n\t\t\treturn f(n/2,m);\n\t\telse\n\t\t\treturn f(m,n/2);\n\t}\n}\nint main()\n{\n int n,m;\n\tcin>>n>>m;\n\tif(n>x>>y;//????\n a[0]=x;b[0]=y;\n for(i=1;a[i-1]!=1;i++) {a[i]=a[i-1]/2;n++;}//???????\n for(i=1;b[i-1]!=1;i++) {b[i]=b[i-1]/2;m++;}\n if(x>=y)//??????????????\n {\n for(j=0;j> x >> y;//??????\n\twhile ( x != y )\n\t{\n\t\tif ( x > y ) x = x/2;//??x>y,??x?????\n\t\telse y = y/2;//???y?????\n\t}\n\tcout << x << endl;//?????\n\treturn 0;//????\n}\n"} +{"label": "104", "index": "51918", "code": "void main()\n{\n\tint x,y;\n\tint i,j,k;\n\tint a[100],b[100];\n\n\tscanf(\"%d %d\",&x,&y);\n\tfor(i=0;x>0;i++)\n\t{\n\t\ta[i]=x;\n\t\tx=x/2;\n\t}\n\ti=i-1;\n\tfor(j=0;y>0;j++)\n\t{\n\t\tb[j]=y;\n\t\ty=y/2;\n\t}\n\tj=j-1;\n\tfor(k=0;k<=i&&k<=j;k++)\n\t{if(a[i-k]!=b[j-k])\n\tbreak;}\n\tif(a[i-k]!=b[j-k])\n\t\tprintf(\"%d\",a[i-k+1]);\n\telse if(k==i+1)\n\t\tprintf(\"%d\",a[0]);\n\telse if(k==j+1)\n\t\tprintf(\"%d\",b[0]);\n\n\n\n\n}\n"} +{"label": "104", "index": "51919", "code": "int main()\n{\n\tint x,y,a[40]={0},b[40]={0},x1,y1,i,j;\n\tscanf(\"%d%d\", &x, &y);\n\tif(x==y)\n\t{\n\t\tprintf(\"%d\\n\", x);\n\t\treturn 0;\n\t}\n\tif(x==1 || y==1)\n\t{\n\t\tprintf(\"1\\n\");\n\t\treturn 0;\n\t}\n\tx1=sqrt(x);\n\ty1=sqrt(y);\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;i<=x1;i++)\n\t{\n\t\ta[i]=a[i-1]/2;\n\t}\n\tfor(i=1;i<=y1;i++)\n\t{\n\t\tb[i]=b[i-1]/2;\n\t}\n\tfor(i=0;i<=x1;i++)\n\t{\n\t\tfor(j=0;j<=y1;j++)\n\t\t{\n\t\t\tif(b[j]==a[i])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\", a[i]);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n\n\n\n\n "} +{"label": "104", "index": "51920", "code": "int cnt_row(int a);\t\t\t\t\t\t\t\t//??????()\nint main() \t\t\t\t\t\t\t\t\t\t//???\n{\n\tint x , y , i ,p;\n\tcin >> x >> y;\t\t\t\t\t\t//???????x?y\n\tif(xy)\n {\n x=x/2;\n }\n else\n if (y>x)\n {\n y=y/2;\n }\n if(x==y)\n {\n printf(\"%d\",x);\n }\n }\n while(x!=y);\n\n return 0;\n}"} +{"label": "104", "index": "51923", "code": "int f(int x,int y){//????f(x)???????\n\twhile(x!=y){\n\t\tif(x>y)x=x/2;\n\t\telse y=y/2;\n\t}\n\treturn x;\n}\nint main(){\n\tint a,b;\n\tcin>>a>>b;//????????\n\tcout<1;i++){\n\t\tx=x/2;\n\t\txp[i]=x;\n\t\txstp+=1;\n\t}\n\tfor(i=1;y>1;i++){\n\t\ty=y/2;\n\t\typ[i]=y;\n\t\tystp+=1;\n\t}\n\tfor(i=0;;i++){\n\t\tif(xp[0]==yp[0]){\n\t\t\tprintf(\"%d\",xp[0]);\n\t\t\tbreak;\n\t\t}\n\t\tif(xp[xstp-i-1]!=yp[ystp-i-1]&&xp[xstp-i]==yp[ystp-i]){\n\t\t\tprintf(\"%d\",xp[xstp-i]);\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}\n"} +{"label": "104", "index": "51925", "code": "int main() {\n\tint x, y, i = 1, j = 1, xi;\n\tcin >> x >> y;\n\tint a[1001] = { 0 }, b[1001] = { 0 };\n\ta[1] = x;\n\tb[1] = y;\n\twhile ( a[i] >= 1) {\n\t\ta[i + 1] = a[i] / 2;\n\t\ti ++;\n\t}\n\twhile ( b[j] >= 1) {\n\t\tb[j + 1] = b[j] / 2;\n\t\tj ++;\n\t}\n\twhile ( a[i] == b[j] && i >= 1 && j >= 1) {\n\t\txi = a[i];\n\t\ti --;\n\t\tj --;\n\t}\n\tcout << xi << endl;\n\treturn 0; \n}\n\n"} +{"label": "104", "index": "51926", "code": "\n\nint I=0;\n\nint root(int *a,int n)\n{\n\t*(a+I)=n;\n\tI++;\n\tif(n!=1){\n\t\tif(n%2==0)\n\t\t\troot( a,n/2 );\n\t\telse\n\t\t\troot( a,(n-1)/2 );\n\t}\n\treturn I;\n}\n\nvoid main()\n{\n\tint a0,b0,a[MAX],b[MAX],m,n,i,j,flag=0;\n\tscanf(\"%d%d\",&a0,&b0);\n\tm=root(a,a0);\n\tI=0;\n\tn=root(b,b0);\n\t\n\tfor(i=0;in)\n return f(m/2,n);\n else \n return m;\n}\n \nint main(int argc, char *argv[])\n{\n int x,y;\n scanf(\"%d%d\",&x,&y);\n printf(\"%d\",f(x,y));\n return 0;\n}\n"} +{"label": "104", "index": "51928", "code": "void main()\n{int a,b,c=0,d=0;scanf(\"%d%d\",&a,&b);\nif(a==b)printf(\"%d\",a);\nelse{\nfor(;a;)c=(c<<1)|(a&1),a>>=1;\nfor(;b;)d=(d<<1)|(b&1),b>>=1;\na=c^d,c=0;\nfor(;(a&1)==0;)c=(c<<1)|(d&1),a>>=1,d>>=1;\nprintf(\"%d\",c);}}"} +{"label": "104", "index": "51929", "code": "int f(int a,int b)\n{\n\t\n\tif(a==b)\n\t\treturn a;\n\telse if(a>b)\n\t\t return f(a/2,b);\n\telse if(a>x>>y;\n\tf(x,y);\n\t\n\tcout<b) {a=a/2;return f(a,b);}\n\telse {b=b/2;return f(a,b);}\n}\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\tcout<b)\n\t{ c=a;\n\t a=b;\n\t b=c;}\n\telse if(b>a)\n\t b=b/2;\n\telse \n\t{printf(\"%d\",a);\n\tbreak;}\n}\nreturn 0;\n}"} +{"label": "104", "index": "51932", "code": "int main()\n{\n\tint a[1001],x,y,i;\n\t\n\tscanf(\"%d%d\",&x,&y);\n\t\n\tfor (i=0;i<1001;i++) a[i]=0;\n\tfor (;x>0;)\n\t{\n\t\ta[x]=1;\n\t\tx=x/2;\n\t}\n\tfor (;y>0;)\n\t{\n\t\t\n\t\tif (a[y]==1) {\n\t\t\tprintf(\"%d\\n\",y);\n\t\t\tbreak;\n\t\t}\n\t\ty=y/2;\n\t}\n\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51933", "code": "//**************************************************\n//* ????1.cpp *\n//* ? ????? *\n//* ?????2010?11? *\n//* ???????? *\n//**************************************************\nint t(int,int);\nint x,y;\nint main()\n{\t\n\tint i,j,m,n;\n\tcin>>x>>y;\n\tfor(i=0;i<100;i++)\n\t{\n\t\tif(x>=pow(2.0,(i-1)*1.0)&&x=pow(2.0,(j-1)*1.0)&&yb) common(a/2,b);\n\telse if(b/2>a) common(a,b/2);\n else common(a/2,b/2);\n}"} +{"label": "104", "index": "51935", "code": "int main()\n{\nint x,y,a[10000],b[10000],i,j,k,p;\nscanf(\"%d %d\",&x,&y);\nif(x==y)\nprintf(\"%d\",x);\nelse\n{\na[1]=x;\nb[1]=y;\nfor(i=2;;i++)\n{\nif(a[i-1]==1)\nbreak;\nelse if(a[i-1]%2==0)\na[i]=(a[i-1]/2);\nelse a[i]=((a[i-1]-1)/2);\n}\nfor(j=2;;j++)\n{\nif(b[j-1]==1)\nbreak;\nelse if(b[j-1]%2==0)\nb[j]=(b[j-1]/2);\nelse b[j]=((b[j-1]-1)/2);\n}\nfor(k=i-1,p=j-1;;k--,p--)\nif(a[k]!=b[p])\nbreak;\nprintf(\"%d\",a[k+1]);\n}\n}"} +{"label": "104", "index": "51936", "code": "int main()\n{\n\tint x,y,l1=0,l2=0,i,j,k=0;\n\tscanf(\"%d%d\",&x,&y);\n\tint s1[10]={0},s2[10]={0};\n\tint level(int a);\n\tl1=level(x);\n\tl2=level(y);\n\ts1[0]=x;\n\ts2[0]=y;\n\tfor(i=1;i1&&a<4) k=2;\n\tif(a>4&&a<8) k=3;\n\tif(a>8&&a<16) k=4;\n\tif(a>16&&a<32) k=5;\n\tif(a>32&&a<64) k=6;\n\tif(a>64&&a<128) k=7;\n\tif(a>128&&a<256) k=8;\n\tif(a>256&&a<512) k=9;\n\telse k=10;\n\treturn(k);\n}"} +{"label": "104", "index": "51937", "code": "struct tree\n{\n\tstruct tree *up;\n\tint num;\n};\nstruct tree *MLC,*ptree;\nint a[500],b[500];\n\nint main()\n{\n\tint x,y,i=1,j,p,q,miao,woofoo=0;\n\tMLC=(struct tree *)malloc(MAXNUM*sizeof(struct tree));\n\tfor(ptree=MLC;ptreenum=i;\n\t\t//printf(\"%d\\n\",ptree->num);\n\t\t(ptree+i)->up=ptree;\n\t\t(ptree+i+1)->up=ptree;\n\t\ti++;\n\t}\n\tscanf(\"%d%d\",&x,&y);\n\tptree=MLC;\n\tptree=ptree+x-1;\n\ti=0;\n\tdo\n\t{\n\t\ta[i]=ptree->num;\n\t\t//printf(\"%d\\n\",a[i]);\n\t\tptree=ptree->up;\n\t\ti++;\n\t}while(a[i-1]!=1);\n\tptree=MLC+y-1;\n\tj=0;\n\tdo\n\t{\n\t\tb[j]=ptree->num;\n\t\t//printf(\"%d\\n\",b[j]);\n\t\tptree=ptree->up;\n\t\tj++;\n\t}while(b[j-1]!=1);\n\t/*for(p=i;p>0;p--)\n\t\tprintf(\"%d\\n\",a[p]);*/\n\tfor(p=0;p>m>>n;\n\tint a[100];\n\t\n\ta[0]=m;\n\tfor(int i=0;i<=98;i++)\n\t{\n\t\ta[i+1]=a[i]/2;\n\t\tif(a[i+1]==1)\n\t\t{\n\t\t\ts=i+1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(int h=0;h<=99;h++)\n\t{\n\t\tfor(int i=0;i<=s;i++)\n\t\t{\n\t\t\tif(a[i]==n)\n\t\t\t{\n\t\t\t\tcout<=pow(2,i-1)&&x=pow(2,i-1)&&y=2;i--)\n\t{\n\t\tif(a[i]%2==0)\n\t\t{\n\t\t\t\tt=(a[i]-pow(2,i-1))/2;\n\t\t\t\ta[i-1]=pow(2,i-2)+t;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\tt=(a[i]-1-pow(2,i-1))/2;\n\t\t\t\ta[i-1]=pow(2,i-2)+t;\n\t\t}\n\t}\n\tfor(j=n2;j>=2;j--)\n\t{\n\t\tif(b[j]%2==0)\n\t\t{\n\t\t\t\tt=(b[j]-pow(2,j-1))/2;\n\t\t\t\tb[j-1]=pow(2,j-2)+t;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\tt=(b[j]-1-pow(2,j-1))/2;\n\t\t\t\tb[j-1]=pow(2,j-2)+t;\n\t\t}\n\t}\n\tfor(i=1;i<=n1||i<=n2;i++)\n\t{\n\t\tif(a[i]==b[i])\n\t\t{\n\t\t\tnumber=number+1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\tprintf(\"%d\\n\",a[number]);\n}\n"} +{"label": "104", "index": "51940", "code": "int up(int x);\nint main()\n{\n\tint x1,y1;//??????\n\tcin>>x1>>y1;\n\tint x[100],y[100];\n\tint m=2,n=2;//x,y???\n\tx[1]=x1;\n\ty[1]=y1;\n\tif((x1==1)||(y1==1))\n\t\tcout<<1;\n\telse\n\t{\n\t\tint g=0;//????\n\t\twhile(g==0)\n\t\t{\n\t\t\tx[m]=up(x[m-1]);\n\t\t\tif(x[m]==1)\n\t\t\t\tg=1;\n\t\t\telse m++;\n\t }\n\t\tint f=0;//????\n\t\twhile(f==0)\n\t\t{\n\t\t\ty[n]=up(y[n-1]);\n\t\t\tif(y[n]==1)\n\t\t\t\tf=1;\n\t\t\telse n++;\n\t }\n\t\tint h=0;// ????\n\t\twhile(h==0)\n\t\t{\n\t\t\tif(x[m]==y[n])\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t\tn--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcout<>x>>y;\n\t\twhile(x!=y){\n\t\tif(x>y){\n\t\t\tx=x/2;\n\t\t}\n\t\telse{y=y/2;}\n\t}\n\tcout< b) \n {\n\t\tbinTree(a / 2, b);\n\t} \n else \n {\n\t\tbinTree(a, b / 2);\n\t}\n}\n\nint main() \n{\n\tint n, m;\n\tscanf(\"%d%d\", &n, &m);\n\tprintf(\"%d\", binTree(n, m));\n}\n"} +{"label": "104", "index": "51943", "code": "\nint main()\n{\n\tint x,y,t;\n\tscanf(\"%d %d\",&x,&y);\n\tif(x==1||y==1)\n\t{\n\t\tprintf(\"1\\n\");\n\t}\n\telse\n\t{if(x==y)\n\t{printf(\"%d\\n\",x);}\n\telse\n\t{do\n\t{if(x>y)\n\t{\n\t\tt=x;\n\t\tx=y;\n\t\ty=t;\n\t}\n\ty=y/2;\n\t}while(x!=y);\n\tprintf(\"%d\\n\",y);\n\t}\n\t}\n\n\n\treturn 0;\n}\n\n"} +{"label": "104", "index": "51944", "code": "\n\nint function( int x , int y );\nint main()\n{\n\tint x,y;\n\tcin>>x>>y;\n\tcout< y )\n\t{\n\t\tif( x%2==0 )\n\t\t{\n\t\t\treturn( function( x/2 , y ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn( function( (x-1)/2 , y ) );\n\t\t}\n\t}\n\telse\n\t{\n\t\tif( y%2==0 )\n\t\t{\n\t\t\treturn( function( x , y/2 ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn( function( x , (y-1)/2 ) );\n\t\t}\n\t}\n}"} +{"label": "104", "index": "51945", "code": "void main()\n{\n\tint m,n,x;\n\tscanf(\"%d%d\",&m,&n);\n\tx=n;\n\twhile(m>=1)\n\t{\n\t\tn=x;\n\t\twhile(n>=1)\n\t\t{\n\t\t if(m==n)\n\t\t {\n\t\t\tprintf(\"%d\\n\",m);\n\t\t\tbreak;\n\t\t }\n\t\t n=n/2;\n\t\t}\n\t\tif(m==n) break;\n\t\tm=m/2;\n\t}\n}\n"} +{"label": "104", "index": "51946", "code": "int main()\n{\n int x,y,i,j,p=0;\n int a[1000],b[1000];\n scanf(\"%d%d\",&x,&y);\n a[0]=x,b[0]=y;\n for(i=1;i<1000;i++)\n {\n if(a[i-1]>1)\n a[i]=a[i-1]/2;\n if(a[i-1]==1)\n break;\n }\n for(i=1;i<1000;i++)\n {\n if(b[i-1]>1)\n b[i]=b[i-1]/2;\n if(b[i-1]==1)\n break;\n }\n for(i=0;i<1000;i++)\n {\n for(j=0;j<1000;j++)\n {\n\n if(a[i]==b[j])\n {\n printf(\"%d\\n\",a[i]);\n p=1;\n break;\n }\n if(j==1000)\n break;\n /* if(a[i]==b[i])\n {\n printf(\"%d\\n\",a[i]);\n break;*/\n }\n if(p==1)\n break;\n }\n return 0;\n}\n"} +{"label": "104", "index": "51947", "code": "void main()\n{\n\tint i,j,k,l,x[1000],y[1000],flag=0;\n\tscanf(\"%d%d\",&x[0],&y[0]);\n\tfor (i=0;x[i]>1;i++)\n\t{\n\t\tif (x[i]%2==0)\n\t\t\tx[i+1]=x[i]/2;\n\t\telse x[i+1]=(x[i]-1)/2;\n\t}\n\tk=i;\n\tfor (j=0;y[j]>1;j++)\n\t{\n\t\tif (y[j]%2==0) y[j+1]=y[j]/2;\n\t\telse y[j+1]=(y[j]-1)/2;\n\t}\n\tl=j;\n\tfor (i=0;i<=k;i++)\n\t{\n\t\tfor (j=0;j<=l;j++)\n\t\t{\n\t\t\tif (x[i]==y[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",y[j]);\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (flag==1) break;\n\t\t}\n\t}\n}"} +{"label": "104", "index": "51948", "code": "void main()\n{\n void f(int a[],int n);\n int x,y,s,t,j;\n int a[11],b[11];\n for(j=0;j<11;j++)\n {\n a[j]=0;\n b[j]=0;\n }\n scanf(\"%d%d\",&x,&y);\n f(a,x);\n f(b,y);\n\n for(j=10;j>=0;j--)\n {\n if(a[j]!=0) {s=j;break;}\n }\n for(j=10;j>=0;j--)\n {\n if(b[j]!=0) {t=j;break;}\n }\n for(j=1;j<=s&&j<=t;j++)\n {\n if(a[s-j]!=b[t-j])\n {\n printf(\"%d\",a[s-j+1]);\n break;\n }\n }\n if(j==s+1) printf(\"%d\",a[0]);\n else{\n if(j==t+1) printf(\"%d\",b[0]);\n }\n}\nvoid f(int a[],int n)\n{\n int i;\n a[0]=n;\n n=n/2;\n for(i=1;n>0;i++)\n {\n if(n%2==0)\n {\n a[i]=n;\n n=n/2;\n }\n else\n {\n a[i]=n;\n n=(n-1)/2;\n }\n }\n}"} +{"label": "104", "index": "51949", "code": "/*????????pass?????????????????*/\nint main ( )\n{\n\tint x1, y1, x[11] = {0}, y[11] = {0}, i, j, ex, ey;\n\tvoid f(int z[11]);\n\tint g(int w[11]);\n\tcin >> x1 >> y1;\n\tx[0] = x1;\n\ty[0] = y1;\n f( x );\n\tf( y );\n\tex = g(x);\n\tey = g(y);\n\tfor (i = ex, j = ey;i >= 0, j >= 0;i--, j--)/*?????????*/\n\t{\n\t\tif (i == 0 && j == 0 && x[i] == y[j])\n\t\t\tcout << x[i] << endl;\n\t\telse if (x[i] == y[j] && x[i-1] != y[j-1])\n\t\t\t{\n\t\t\t\tcout << x[i] <b)a/=2;\nelse b/=2;\n}\nprintf(\"%d\",a);\n}"} +{"label": "104", "index": "51951", "code": "int main()\n{\n\tint x,y,i,j,k,xi,count=0;\n\tscanf(\"%d%d\",&x,&y);\n\tint a[11],b[11];\n\ta[0]=x;\n\tb[0]=y;\n\tif(x==1||y==1)\n\t\txi=1;\n\telse\n\t{\n\tfor(i=1;a[i-1]>1;i++)\n\t{\n\t\ta[i]=a[i-1]/2;\n\t\tb[i]=b[i-1]/2;\n\t}\n\tfor(i=0;a[i]>=1;i++)\n\t{\n\t\tfor(j=0;b[j]>=1;j++)\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\txi=a[i];\n\t\t\t\tcount+=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(count!=0)break;\n\t}\n\t}\n\tprintf(\"%d\\n\",xi);\n\treturn 0;\n}\n\t\n\n\n\t"} +{"label": "104", "index": "51952", "code": "int main()\n{\n\tint x[10],y[10],i,j,k;\n\tcin>>x[0]>>y[0];\n\tfor(i=1;;++i){\n\t\tx[i]=x[i-1]/2;\n\t\tif(x[i]==1)\n\t\t\tbreak;\n\t}\n\tfor(j=1;;++j){\n\t\ty[j]=y[j-1]/2;\n\t\tif(y[j]==1)\n\t\t\tbreak;\n\t}\n\tfor(k=0;;++k)\n\t{\n\t\tif(x[i-k]!=y[j-k])\n\t\t\tbreak;\n\t}\n\tcout<=0&&j>=0;)\n\t{\n\t\tk--;\n\t\tj--;\n\t}\n\t\tprintf(\"%d\",x[k+1]);\n}\n"} +{"label": "104", "index": "51956", "code": "int len(int x)\n{\n\tint i,k=0;\n\tfor(i=1;i<=10;i++)\n\t{\n\t\tif(x!=0)\n\t\t{\n\t\t\tx=(x-x%2)/2;\n\t\t\tk+=1;\n\t\t}\n\t\telse break;\n\t}\n\treturn k;\n}\nint ch(int x,int y)\n{\n\tint i,n;\n\tn=len(x);\n\tfor(i=1;i<=n-y;i++)\n\t{\n\t\tx=(x-x%2)/2;\n\t}\n\treturn x;\n}\nint main()\n{\n\tint x,y,m,n,i,a,s,same;\n\tscanf(\"%d %d\",&x,&y);\n\tm=len(x);\n\tn=len(y);\n\tif(m>n)a=n;\n\telse a=m;\n\tfor(i=a;i>=1;i--)\n\t{\n\t\tx=ch(x,i);\n\t\ty=ch(y,i);\n\t\tif(x==y)\n\t\t{\n\t\t\tprintf(\"%d\",x);\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51957", "code": "int main()\n{\n\tint x,y;\n\tcin >>x >>y;\n\tint gen(int, int); //???????????\n\tcout < b) //?a??b??a????up(a)?b???\n\t{\n\t\ta = up(a);\n\t\treturn gen(a,b);\n\t}\n\tif (a < b) //?b??a???\n\t{\n\t\t b = up(b);\n\t\t return gen(a,b);\n\t}\n}"} +{"label": "104", "index": "51958", "code": "int i,n,k;\n\nvoid work(int p,int u)\n{\n\tif (u==1) {cout<>n>>k;\n\twhile (n!=k)\n\t\t\t\t\tif (n>k) n=n>>1; else k=k>>1;\n cout<> x >> y ;\n\tcout << f( x, y) << endl;\n\treturn 0;\n}\nint f(int x,int y) //?????\n{\n\twhile(x!=y) //??x=y??x;?????????????????\n\t{\n\t\tif(x>y)\n\t\t\tx=x/2;\n\t\telse\n\t\t\ty=y/2;\n\t\treturn f(x,y);\n\t}\n\treturn x; //??????????\n}\n"} +{"label": "104", "index": "51960", "code": "\nint main()\n{\n\tint a[11]={0};\n\tint b[11]={0};\n\tint c[11]={0};\n\tint p=0,q=0,r=0;//??\n\tint i,j;\n\tint M,N;\n\n\tscanf(\"%d%d\",&M,&N);\n\n\twhile(M>0)\n\t{\n\t\ta[p]=M;\n\t\tif(M%2==0) M=M/2;\n\t\telse M=(M-1)/2;\n\t\tp=p+1;\n\t}\n\t\n\twhile(N>0)\n\t{\n\t\tb[q]=N;\n\t\tif(N%2==0) N=N/2;\n\t\telse N=(N-1)/2;\n\t\tq=q+1;\n\t}\n\n\n\tfor(i=0;i>a>>b;\n\tvoid cha_pri(int,int);\n\tif(a!=b)\n\t\tcha_pri(a,b);\n\telse cout<n)\n\t{\n\t\tm/=2;\n\t\tif(m==n)\n\t\t\tcout<n)\n {\n if(m>=(2*n))\n y(m/2,n);\n else if(m<(2*n))\n y(m/2,n/2);\n } \n else\n y(m,n);\n }\n "} +{"label": "104", "index": "51963", "code": "int ln(int a)\n{\n int b=0;\n for(b=0;b<11;b++)\n {\n if(pow((float)2,(float)b)>a)\n break;\n }\n return (b);\n}\n\nint main()\n{\n int a,b,i;\n int a1,b1;\n cin>>a>>b;\n a1=ln(a);\n b1=ln(b);\n int num_1[a1];\n int num_2[b1];\n int j=0;\n num_1[0]=a;\n num_2[0]=b;\n for(i=1;i1&&a[i]%2==0)\n\t\t\ta[i+1]=a[i]/2;\n else if(a[i]>1&&a[i]%2==1)\n\t\t\ta[i+1]=(a[i]-1)/2;\n\t\telse break;\n\t}\n\tm=i+1;\n\tfor(i=0;i<30;i++)\n\t{\n\t\tif(b[i]>1&&b[i]%2==0)\n\t\t\tb[i+1]=b[i]/2;\n else if(b[i]>1&&b[i]%2==1)\n\t\t\tb[i+1]=(b[i]-1)/2;\n\t\telse break;\n\t}\n\tn=i+1;\n for(i=0;i=0;i--)\n\t{\n\t\tif(m%2==0)\n\t\t{\n\t\t\tx[i]=m/2;\n\t\t\tm=m/2;\n\t\t\tcontinue;\n\t\t}\n\t\tif(m%2==1)\n\t\t{\n\t\t\tx[i]=(m-1)/2;\n\t\t\tm=(m-1)/2;\n\t\t\tcontinue;\n\t\t}\n\t}\n}\nvoid b(int m)\n{\n\tint i,n;\n\tfor(i=0;i<15;i++) y[i]=0;\n\tfor(i=0;i<15;i++)\n\t{\n\t\tif(m=0;i--)\n\t{\n\t\tif(m%2==0)\n\t\t{\n\t\t\ty[i]=m/2;\n\t\t\tm=m/2;\n\t\t\tcontinue;\n\t\t}\n\t\tif(m%2==1)\n\t\t{\n\t\t\ty[i]=(m-1)/2;\n\t\t\tm=(m-1)/2;\n\t\t\tcontinue;\n\t\t}\n\t}\n}\nint sqrt(int i)\n{\n\tint m=1,j;\n\tfor(j=1;j<=i;j++)\n\t{\n\t\tm=m*2;\n\t}\n\treturn m;\n}\nint c(void)\n{\n\tint i,k=1;\n\tfor(i=0;i<15;i++)\n\t{\n\t\tif(x[i]==y[i]) k=i;\n\t\tif(x[i]!=y[i]||x[i]==0) break;\n\t}\n\treturn x[k];\n}"} +{"label": "104", "index": "51966", "code": "int number(int n)\n{\n\tint i,k=1;\n\tfor(i=1;;i++)\n\t{\n\t\tk*=2;\n\t\tif(n=1;i--)\n\t{\n\t\tfor(j=n1;j>=1;j--)\n\t\t{\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\",a[i]);\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(k)\n\t\t\tbreak;\n\t}\n}\n\n\t\t\n"} +{"label": "104", "index": "51967", "code": "int choose(int x,int y)\n{\n\tif(x==y)return x;\n\tif(x>y)return choose(x/2,y);\n\telse return choose(x,y/2);\n}\nvoid main()\n{\n\tint choose(int x,int y);\n\tint m,n,k;\n\tscanf(\"%d%d\",&m,&n);\n\tk=choose(m,n);\n\tprintf(\"%d\\n\",k);\n}\n"} +{"label": "104", "index": "51968", "code": "int main(){\n\tint x,y,p;\t\t\t\t\t\t\t\t\t//????\n\tcin>>x>>y;\t\t\t\t\t\t\t\t\t//?????\n if(x==y)cout<=1;y=(y%2==0)?y/2:(y-1)/2){\t\t//?y????y=1\n\t\t\tx=p;\t\t\t\t\t\t\t\t//x???????????\n\t\t\twhile(x>=1){\t\t\t\t\t\t//?x>=1?\n\t\t\t\tx=(x%2==0)?x/2:(x-1)/2;\t\t\t//??x?????\n\t\t\t\tif(x==y){\t\t\t\t\t\t//????x=y\n\t\t\t\t\tcout<>m>>n;\n\tcout<y){\n\t\treturn common(x/2,y);\n\t}\n\tif(xy)\n\t\tfind(x/2,y);\n\telse\n\t\tfind(x,y/2);\t\n}\nvoid main()\n{\n\tint x,y;\n\tscanf(\"%d%d\",&x,&y);\n\tfind(x,y);\n}\n\n"} +{"label": "104", "index": "51973", "code": "void main()\n{\n\tint x,y,i,j;\n\tint a[10]={0};\n\tint b[10]={0};\n scanf(\"%d %d\",&x,&y);\n\ta[0]=x,b[0]=y;\n\tif(x==1||y==1) printf(\"1\");\n\telse \n\t{\n\t for(i=1;x!=1;i++)\n\t { a[i]=x/2;\n\t\t x=x/2;\n\t }\n for(j=1;y!=1;j++)\n\t { b[j]=y/2;\n\t\t y=y/2;\n\t }\n\t for(;i>=1,j>=1;i--,j--)\n\t\t if(a[i-1]!=b[j-1]) {printf(\"%d\",a[i]);\n\t\t break;}\n\t if(i==0&&j>=0) printf(\"%d\",a[0]);\n\t if(j==0&&i>0) printf(\"%d\",b[0]);\n\t}\n}"} +{"label": "104", "index": "51974", "code": "int main()\n{\n\tint ec(int a,int b); //?? ec????\n\tint x,y;\n\tcin>>x>>y;\n\tcout<b)\n\t{\tint t=a; \n\t\ta=b;\n\t\tb=t;\n\t}\n\treturn(ec(a,b/2)); //????\n}"} +{"label": "104", "index": "51975", "code": "int lujing(int a)\n{\n\tint b,j,n;\n\tfor(j=9;j>=0;j--)\n\t{\n\t\tif(a>=pow(2,j)&&a>x>>y;\n\ta[0]=x;b[0]=y;\n\tif(x==y) cout<b)\n\t\tSort(a/2,b);\n\telse\n\t\tSort(a,b/2);\n}\n\nint main()\n{\n\tint x,y,xi;\n\tcin >> x >> y;\n\tcout << Sort (x,y) << endl;\n\treturn 0;\n}"} +{"label": "104", "index": "51978", "code": "\n\nint a[20]={0},b[20]={0},i=0;\n\nvoid f(int x)\n{\n\tif (x==1)\n\t{\n\t\ta[i]=x;\n\t\ti++;\n\t}\n\telse\n\t{\n\t\tf(x/2);\n\t\ta[i]=x;\n\t\ti++;\n\t}\n}\n\n\nint main()\n{\n\tint x,y,j,counter=0,k;\n\tcin>>x>>y;\n\tf(y);\n\tfor (j=0;j<20;j++)\n\t{\n\t\tb[j]=a[j];\n\t\ta[j]=0;\n\t}\n\ti=0;\n\tf(x);\n\tfor (j=0;j<20;j++)\n\t{\n\t\tif (b[j]==a[j]&&b[j]>0)\n\t\t\tcounter++;\n\t\telse\n\t\t\tbreak;\n\t}\n\tcout<>x>>y;\n while(x!=1){\n \t a[n]=x;\n \t x=x/2;\n \t n++;\n }\n a[n]=1;\n while(y!=1){\n \t b[m]=y;\n \t y=y/2;\n \t m++;\n }\n b[m]=1;\n for(i=1;i<=n;i++)\n \t for(j=1;j<=m;j++)\n \t\t if(a[i]==b[j]){\n \t\t\t cout< n)\n\t\ttree(m / 2, n); \n\telse if (m < n)\n\t\ttree(m, n / 2); // ?? \n}\nint main()\n{\n\tint x, y;\n\tcin >> x >> y;\n\ttree(x , y); \n\tcout << k;\n\treturn 0;\n}\n"} +{"label": "104", "index": "51981", "code": "void main()\n{\n\tint f(int m,int n);\n\tint d,M,N;\n\tscanf(\"%d%d\",&M,&N);\n\tprintf(\"%d\",f(M,N));\n}\nint f(int m,int n)\n{\n\tint a;\n\tif (m1)\n\t{\n\t\tx=x/2;\n xline[i]=x;\n\t\ti=i+1;\n\t}\n num1=i-1;\n\n\ti=1;\n\twhile(y>1)\n\t{\n\t\ty=y/2;\n\t\tyline[i]=y;\n\t\ti=i+1;\n\t}\n\tnum2=i-1;\n\n\tfor(i=0;i<=num1;i++)\n\t{\n\t\tfor(j=0;j<=num2;j++)\n\t\t\tif (xline[i]==yline[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\\n\", xline[i]);\n\t\t\t\ti=num1+1;\n\t\t\t}\n\t}\n}\n\n"} +{"label": "104", "index": "51983", "code": "int main()\n{\n\tint i,j,a,b,x[10],y[10],countx=0,county=0;\n\tscanf(\"%d%d\",&a,&b);\n for(i=0;;i++)\n\t{\n\t\tif(i==0) x[i]=a;\n\t\telse x[i]=x[i-1]/2;\n \tcountx++;\n\t if(x[i]==1)\n\t\t break;\n\t}\n for(i=0;;i++)\n\t{\n\t\tif(i==0) y[i]=b;\n\t\telse y[i]=y[i-1]/2;\n\t\tcounty++;\n\t\tif(y[i]==1)\n\t\t\tbreak;\n\t}\n\tfor(i=0;i=2;i++)\n\t{\n\t\ta[i+1]=a[i]/2;\n\t}\n\tfor(k=0;b[k]>=2;k++)\n\t{\n\t\tb[k+1]=b[k]/2;\n\t}\n\tif(x!=y)\n\t{\n\t\tfor(;;i--,k--)\n\t {\n\t\t\tif(a[i]!=b[k])\n\t\t {\n\t\t\t break;\n\t\t }\n\t }\n\t\tprintf(\"%d\\n\",a[i+1]);\n\t}\n\telse\n\t{\n\t\tprintf(\"%d\\n\",x);\n\t}\n\n}"} +{"label": "104", "index": "51985", "code": "int main()\n{\n\tint x,y,i,j,l;\n\tint a[13]={0},b[13]={0};\n\tscanf(\"%d%d\",&x,&y);\n\tfor(i=0;x>0;i++){\n\t\ta[i]=x;\n\t\tx=x/2;\n\t}\n\tl=i;\n\tfor(;y>0;y=y/2){\n\t\tfor(j=0;j>x>>y;\n if(x>1)\n\t{\n\t\t for(i=1;;i++)\n\t\t { \n\t\t\t if(x%2==0)\n\t\t\t {\n\t\t\t a[i]=x;\n\t\t\t x=x/2;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t a[i]=x;\n\t\t\t x=(x-1)/2;\n\t\t\t }\n\t\t\t if(x==1)\n\t\t\t { a[i+1]=1; break; }\n\t\t }\n }\n\telse\n\t\ta[1]=1;\n\t if(y>1)\n\t{\n\t\t for(j=1;;j++)\n\t\t { \n\t\t\t if(y%2==0)\n\t\t\t {\n\t\t\t b[j]=y;\n\t\t\t y=y/2;\n\t\t\t }\n\t\t else\n\t\t\t {\n\t\t\t b[j]=y;\n\t\t\t y=(y-1)/2;\n\t\t\t }\n\t\t\t if(y==1)\n\t\t\t { b[j+1]=1; break; }\n\t\t }\n\t}\n\t else\n\t\t b[1]=1;\n\t for(p=1;p<=i+1;p++)\n\t {\n\t\t for(q=1;q<=j+1;q++)\n\t\t {\n\t\t\t if(a[p]==b[q])\n\t\t\t { k=1; cout<>x>>y;\n\tcout<=y)\n\t\t\treturn route(x/2,y);\n\t\telse if(x<=y/2)\n\t\t\treturn route(x,y/2);\n\t\telse\n\t\t\treturn route(x/2,y/2);\n\t}\n}"} +{"label": "104", "index": "51990", "code": "\nvoid main()\n{\n\tint a[1000]={0},b[1000]={0};\n\tint i,j,k,l;\n\tint x,y,flag=0;\n\n\tscanf(\"%d%d\",&x,&y);\n\ta[0]=x;\n\tb[0]=y;\n\tfor(i=1;x!=1;i++)\n\t{\n\t\tif(x%2==0)\n\t\t{\n\t\t\ta[i]=x/2;\n\t\t\tx=a[i];\n\t\t}\n\t\telse\n\t\t{\n\t\t\ta[i]=(x-1)/2;\n\t\t\tx=a[i];\n\t\t}\n\t}\n\tfor(j=1;y!=1;j++)\n\t{\n\t\tif(y%2==0)\n\t\t{\n\t\t\tb[j]=y/2;\n\t\t\ty=b[j];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tb[j]=(y-1)/2;\n\t\t\ty=b[j];\n\t\t}\n\t}\n\tfor(l=0;l<=i;l++)\n\t{\n\t\tfor(k=0;k<=j;k++)\n\t\t{\n\t\t\tif(b[k]==a[l])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[l]);\n\t\t\t\tflag=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag) break;\n\t}\n}"} +{"label": "104", "index": "51991", "code": "int main()\n{\nint x[10],y[10],a,b,i,j,k,t,m,s=0;\nscanf(\"%d %d\",&a,&b);\nfor(i=1,x[0]=a;x[i-1]!=1;i++)\n {\n x[i]=x[i-1]/2;\n }\nk=i;\nfor(i=1,y[0]=b;y[i-1]!=1;i++)\n {\n y[i]=y[i-1]/2;\n }\nt=i;\nfor(i=0;ij)\n\t\t\ti=i/2;\n\t\telse\n\t\t\tj=j/2;\n\t}\n\tprintf(\"%d\\n\",i);\n}"} +{"label": "104", "index": "51993", "code": "int main()\n{\n\tint m,n,s = 0;\n\tcin>>m>>n;\n\tint a[100];\n\tmemset(a, 0, sizeof(a));\n\ta[0]=m;\n\tfor(int i=0;i<=98;i++)\n\t{\n\t\ta[i+1]=a[i]/2;\n\t\tif(a[i+1]==1)\n\t\t{\n\t\t\ts=i+1;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(int h=0;h<=99;h++)\n\t{\n\t\tfor(int i=0;i<=s;i++)\n\t\t{\n\t\t\tif(a[i]==n)\n\t\t\t{\n\t\t\t\tcout<=n)\n\t{\n\t\tfor(j=0;j y)\n\t\t\tx /= 2;\n\t\telse if (x < y)\n\t\t\ty /= 2;\n\t}\n\tprintf(\"%d\",x);\n\treturn 0;\n}"} +{"label": "104", "index": "51997", "code": "\nvoid main()\n{\n\tint i,j,x,y,a[500]={0},b[500]={0};\n\tscanf(\"%d %d\",&x,&y);\n\ta[0]=x;b[0]=y;\n\tfor(i=1;a[i-1]>1;i++)\n\t{\n\t\tif(a[i-1]%2==0)\n\t\t{\n\t\t\ta[i]=a[i-1]/2;\n\t\t}\n\t\telse\n\t\t\ta[i]=(a[i-1]-1)/2;\n\t}\n\tfor(j=1;b[j-1]>1;j++)\n\t{\n\t\tif(b[j-1]%2==0)\n\t\t{\n\t\t\tb[j]=b[j-1]/2;\n\t\t}\n\t\telse\n\t\t\tb[j]=(b[j-1]-1)/2;\n\t}\n\tfor(i=0;a[i];i++)\n\t{\n\t\tfor(j=0;b[j];j++)\n\t\t\tif(a[i]==b[j])\n\t\t\t{\n\t\t\t\tprintf(\"%d\",a[i]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif(a[i]==b[j])\n\t\t\tbreak;\n\t}\t\n}"} +{"label": "104", "index": "51998", "code": "int x1,y1;\nint a1[100];\nint a2[100];\nint max(int a,int b)\n{\n\tif(a>=b) return a;\n\telse return b;\n}\nvoid find(int n)\n{\n\tint i,j,k;\n\tfor(j=0;;j++)\n\t{\n\t\tif(power(2,j+1)>n&&power(2,j)<=n)\n\t\t{\n\t\t\tx1=j;\n\t\t\tbreak;\n\t\t}\n\t}\n}\nint power(int a,int b)\n{\n\tint p,s=1;\n\tfor(p=0;p=0;i--)\n\t{\n\t\ta1[i]=n1;\n\t\ty1=n1-power(2,i);\n\t\tif(n1%2==0) o=y1/2+power(2,i-1);\n\t\telse o=(y1+1)/2+power(2,i-1);\n\t\tn1=n1-o;\n\t}\n\tfind(n2);\n\tt2=x1;\n\tfor(i=x1;i>=0;i--)\n\t{\n\t\ta2[i]=n2;\n\t\ty1=n2-power(2,i);\n\t\tif(n2%2==0) o=y1/2+power(2,i-1);\n\t\telse o=(y1+1)/2+power(2,i-1);\n\t\tn2=n2-o;\n\t}\n\tfor(i=max(t1,t2);i>=0;i--)\n\t{\n\t\tif(a2[i]==a1[i])\n\t\t{\n\t\t\tprintf(\"%d\\n\",a1[i]);\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn 0;\n}"} +{"label": "104", "index": "51999", "code": "void main()\n{ int i=0,x[15],y[15],a,j=0;\n scanf(\"%d %d\",&x[0],&y[0]);\n for (i=0;x[i]>1;i++)\n\t x[i+1]=x[i]/2;\n a=i;\n for (i=0;;i++)\n { y[i+1]=y[i]/2;\n for (j=0;j<=a;j++)\n if (x[j]==y[i]) break;\n if (x[j]==y[i]) break;\n }\n printf(\"%d\\n\",x[j]);\n}"}