摘要: 1 #include 2 char s[1005]; 3 int main() 4 { 5 int n; 6 scanf("%d",&n); 7 while(n--) 8 { 9 int i,r,w,b; 10 scanf("%s",s); 11 for(i=r=w=b=0; s[i]!='\0';... 阅读全文
posted @ 2017-02-01 23:19 Posase 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1 //递归就是快。。。 2 #include 3 char s[100]; 4 int lenth(char*); 5 int check(char*,int); 6 int main() 7 { 8 int n; 9 scanf("%d",&n); 10 while(n--) 11 { 12 scanf("%s",s); 13... 阅读全文
posted @ 2017-02-01 23:07 Posase 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 typedef struct 3 { 4 int len,wid,num; 5 }cus; 6 cus a[1000]; 7 int main() 8 { 9 int n,m; 10 scanf("%d",&n); 11 while(n--) 12 { 13 int i,j,k; 14 ... 阅读全文
posted @ 2017-02-01 22:21 Posase 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int n; 5 scanf("%d",&n); 6 while(n--) 7 { 8 int m; 9 scanf("%d",&m); 10 int temp=0,ans=0; 11 for(int i=1; i<=m; ... 阅读全文
posted @ 2017-02-01 21:24 Posase 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int a[100]; 3 void q_sort(int*,int,int); 4 int main() 5 { 6 int t,n; 7 scanf("%d",&t); 8 while(t--) 9 { 10 scanf("%d",&n); 11 for(int i=0; iy) 34... 阅读全文
posted @ 2017-02-01 20:32 Posase 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int n; 5 scanf("%d",&n); 6 while(n--) 7 { 8 int a,b; 9 char s; 10 scanf("%x%c%x",&a,&s,&b); 11 if(s=='+') 12 pr 阅读全文
posted @ 2017-02-01 16:45 Posase 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int a[100]; 3 int main() 4 { 5 int n; 6 while(~scanf("%d",&n) && n) 7 { 8 int i,j; 9 for(i=j=0; i<n; ++i) 10 { 11 scanf("%d",&a[i... 阅读全文
posted @ 2017-02-01 16:12 Posase 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #define PI 3.1415926 3 int main() 4 { 5 double r; 6 while(~scanf("%lf",&r)) 7 printf("%.0lf\n",PI*4/3*r*r*r); 8 } 阅读全文
posted @ 2017-02-01 15:29 Posase 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 char s[1010]; 4 int a[26]; 5 int main() 6 { 7 int n,maxa; 8 scanf("%d",&n); 9 while(n--) 10 { 11 scanf("%s",s); 12 memset(a,0,sizeof a... 阅读全文
posted @ 2017-02-01 15:13 Posase 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int n,m; 5 char s; 6 scanf("%d",&n); 7 while(n--) 8 { 9 scanf("%s%d",&s,&m); 10 if(s<'a') 11 s-='A'-1; 12 ... 阅读全文
posted @ 2017-02-01 14:39 Posase 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 int n; 6 scanf("%d",&n); 7 while(n--) 8 { 9 int m,i,ant,ans; 10 scanf("%d",&m); 11 m+=1; 12 ant=(int)... 阅读全文
posted @ 2017-02-01 14:27 Posase 阅读(135) 评论(0) 推荐(0) 编辑