摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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++) ... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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... 阅读全文