2015年1月25日
摘要: #includeint main(){ int a[10]; int i,j; while(~scanf("%d",&a[0])) { for(i=1;i0){ printf("%d",i); a[i]--; break; } for(i=0;i<10;i++) for... 阅读全文
posted @ 2015-01-25 13:07 赛亚人 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int m,n,i,j; int count; int **a; while(~scanf("%d%d",&m,&n)) { if(m20||n>20) continue; count=0; a=(int **)malloc(m*size... 阅读全文
posted @ 2015-01-25 12:10 赛亚人 阅读(511) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int m,n,i,j; int count; int **a; while(~scanf("%d%d",&m,&n)) { if(m20||n>20) continue; count=0; a=(int **)malloc(m*size... 阅读全文
posted @ 2015-01-25 11:59 赛亚人 阅读(643) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int n,i,max; int *a; int b[10]; while(~scanf("%d",&n)) { for(i=0;imax) max=b[i]; printf("%d:",max); for(i=0;i<10;i++) ... 阅读全文
posted @ 2015-01-25 11:38 赛亚人 阅读(379) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int n,x,i; int *a; while(~scanf("%d%d",&n,&x)) { if(n>20) continue; a=(int *)malloc(n*sizeof(int)); for(i=0;i<n;i++) sc... 阅读全文
posted @ 2015-01-25 11:16 赛亚人 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include#includeint isprime(int n){ if(n==2||n==3) return 1; if(n%2==0) return 0; int i; for(i=3;in) continue; count=0;i=2;flag=1; while(count=m&&is... 阅读全文
posted @ 2015-01-25 11:05 赛亚人 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int n,i; long a,b,c; int *d; scanf("%d",&n); d=(int *)malloc(n*sizeof(int)); for(i=0;ic)?1:0; } for(i=0;i#includetypedef s... 阅读全文
posted @ 2015-01-25 10:22 赛亚人 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){ int n,i; int a,b,c; while(scanf("%d",&n)!=EOF) { if(n>=1000||n<1) continue; a=n/100; b=n/10%10; c=n%10; for(i=0;i<a;i++) prin... 阅读全文
posted @ 2015-01-25 09:45 赛亚人 阅读(108) 评论(0) 推荐(0) 编辑
  2015年1月24日
摘要: #include#define N 101char s[10][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};int main(){ char str[N]; int i,n; int a,b,c; while(~scanf(... 阅读全文
posted @ 2015-01-24 23:56 赛亚人 阅读(87) 评论(0) 推荐(0) 编辑
摘要: #include#define N 100int main(){ int i,n,flag,flag2; char str[N]; while(gets(str)!=NULL) { n=0; flag=0;flag2=0; for(i=0;str[i]!='.';i++) { if(str... 阅读全文
posted @ 2015-01-24 23:31 赛亚人 阅读(155) 评论(0) 推荐(0) 编辑