摘要: 1 #include 2 int main() 3 { 4 int a,b,c,n,t; 5 scanf("%d",&n); 6 while(n--) 7 { 8 scanf("%d%d",&a,&b); 9 c=a*b; 10 while(b) 11 { 12 ... 阅读全文
posted @ 2016-12-25 16:13 Posase 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int a,b,c,n; 5 while(~scanf("%d",&n)&&n) 6 { 7 a=n/100; 8 b=n/10%10; 9 c=n%10; 10 if(a*a*a+b*b*b+c*c*c==n) 11 ... 阅读全文
posted @ 2016-12-25 15:58 Posase 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int a,b,c,n,t; 5 while(~scanf("%d%d%d",&a,&b,&c)) 6 { 7 for(n=10,t=0; n<=100; n++) 8 if(n%3==a&&n%5==b&&n%7==c) 9 ... 阅读全文
posted @ 2016-12-25 15:56 Posase 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int a[105][105]; 4 int main() 5 { 6 int n,i,j,t; 7 while(~scanf("%d",&n)) 8 { 9 memset(a,0,sizeof a); 10 t=a[i=0][j=n-1]=1; 11 wh... 阅读全文
posted @ 2016-12-25 15:54 Posase 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a[5],i,max=0,min=10000; for(i=0; ia[i]) min=a[i]; } printf("%d %d\n",min,max); return 0; } 阅读全文
posted @ 2016-12-25 15:53 Posase 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int ss(double x); 6 int n,i,s,t,a,b; 7 double m,x,s1,s2; 8 scanf("%d",&n); 9 while(n--) 10 { 11 scanf("%lf",&m); 12 ... 阅读全文
posted @ 2016-12-25 15:52 Posase 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 2 #include 3 #include 4 int main() 5 { 6 int n,m,i,s,r,x; 7 scanf("%d",&n); 8 while(n--) 9 { 10 scanf("%d",&m); 11 s=0; 12 while(m--) 13 {... 阅读全文
posted @ 2016-12-25 15:51 Posase 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int n,m,t,i,s,r; 5 scanf("%d",&n); 6 while(n--) 7 { 8 scanf("%d",&m); 9 for(i=0,s=1,t=0; i 3 int a[19]; 4 int main() 5 { 6 ... 阅读全文
posted @ 2016-12-25 15:50 Posase 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int n,m,t,i; 5 scanf("%d",&n); 6 while(n--) 7 { 8 scanf("%d",&m); 9 for(i=0,t=1; i<m/2; i++,t+=2) 10 { 11 i... 阅读全文
posted @ 2016-12-25 15:49 Posase 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int n; 5 char a,b,c,t; 6 scanf("%d",&n); 7 while(n--) 8 { 9 getchar(); 10 scanf("%c%c%c",&a,&b,&c); 11 if(a>b) 12 ... 阅读全文
posted @ 2016-12-25 15:47 Posase 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int a,b; 5 scanf("%d%d",&a,&b); 6 printf("%d\n",a+b); 7 return 0; 8 } 阅读全文
posted @ 2016-12-25 15:40 Posase 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main() 4 { 5 double ans,x; 6 int n=12; 7 while(n--) 8 { 9 scanf("%lf",&x); 10 ans+=x; 11 } 12 ans/=12; 13 printf("%.2f\n",ans)... 阅读全文
posted @ 2016-12-25 15:18 Posase 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int temp(int,int); 4 5 int main() 6 { 7 int n,m; 8 while(~scanf("%d%d",&n,&m)&&(n!=-1||m!=-1)) 9 { 10 int ans=temp(n,m); 11 if(ans==1) 12 ... 阅读全文
posted @ 2016-12-25 15:16 Posase 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main() 4 { 5 double ans,x; 6 int n=12; 7 while(n--) 8 { 9 scanf("%lf",&x); 10 ans+=x; 11 } 12 ans/=12; 13 printf("$%.2f\n",ans... 阅读全文
posted @ 2016-12-25 15:15 Posase 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 char s[300]; 4 5 int lenth(char s[]) 6 { 7 int i=0; 8 while(s[i]!='\0') 9 ++i; 10 return i; 11 } 12 int main() 13 { 14 int n,i,ans,len; 15 while(... 阅读全文
posted @ 2016-12-25 15:12 Posase 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 char s[300]; 4 5 int main() 6 { 7 int n,a,b; 8 char c; 9 double ans; 10 scanf("%d",&n); 11 getchar(); 12 while(n--) 13 { 14 ... 阅读全文
posted @ 2016-12-25 15:11 Posase 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int jz(int x,int r,int temp) 4 { 5 int k=1,ans=0; 6 while(k <= x) 7 k*=r; 8 while(k!=1) 9 { 10 k/=r; 11 ans+=x/k%r; 12 } 13 if... 阅读全文
posted @ 2016-12-25 15:09 Posase 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 typedef struct 4 { 5 char num[6]; 6 char s[10]; 7 } cus; 8 9 cus xx[8]= {{"33","Zhejiang"},{"11","Beijing"}, 10 {"71","Taiwan"},{"81","Hong Kong"}, 11 ... 阅读全文
posted @ 2016-12-25 15:07 Posase 阅读(162) 评论(0) 推荐(0) 编辑