online_judge_1108
摘要:#include #include int main(){ int n=1,i,top; int a[10001]; char ch[10]; while(n!=0) { scanf("%d",&n); if(n10000) ...
阅读全文
posted @
2015-01-28 22:45
赛亚人
阅读(104)
推荐(0)
online_judge_1107
摘要:#include #include int main(){ int n=1,i,j; int *a; int min,pmin; int sum; while(n!=0) { scanf("%d",&n); if(n10000) ...
阅读全文
posted @
2015-01-28 19:03
赛亚人
阅读(119)
推荐(0)
online_judge_1106
摘要:#include #include int shuhe(int n){ int sum=0; while(n) { sum+=n%10; n/=10; } return sum;}int main(){ int n=1; whi...
阅读全文
posted @
2015-01-28 16:47
赛亚人
阅读(105)
推荐(0)
online_judge_1105
摘要:#include #include #include int main(){ char str[81]; int i; while(gets(str)!=NULL) { if(strcmp(str,"!")==0) break; ...
阅读全文
posted @
2015-01-28 16:39
赛亚人
阅读(100)
推荐(0)
online_judge_1478
摘要:#include #include int max(int a,int b,int c){ return (a>b?a:b)>c?(a>b?a:b):c;}int main(){ int a=1,b,c; while(a!=0) { scanf("%d%d%d"...
阅读全文
posted @
2015-01-28 16:11
赛亚人
阅读(89)
推荐(0)
online_judge_1477
摘要:#include #include void Reverse(int *a,int n,int k){ int i,t,m; for(i=0;i=1000||k<0) continue; a=(int *)malloc(n*sizeof(int)); ...
阅读全文
posted @
2015-01-28 15:58
赛亚人
阅读(107)
推荐(0)
online_judge_1476
摘要:#include #include #include int wangquan(int n){ int i; for(i=2;i=10000) continue; if(wangquan(n)) printf("Yes\n"); ...
阅读全文
posted @
2015-01-28 15:57
赛亚人
阅读(105)
推荐(0)
online_judge_1472改
摘要:#include #include int main(){ int m,n,i,j,k,min; int a[2001]; while(scanf("%d",&m)!=EOF) { min=1001; for(i=0;imin+1000;i--) ...
阅读全文
posted @
2015-01-28 14:12
赛亚人
阅读(87)
推荐(0)
online_judge_1472
摘要:#include #include typedef struct Exp{ int xishu; int cishu;}Exp;int main(){ int m,n,i,j,k; Exp *a,*b,*c; while(scanf("%d",&m)!=EOF) ...
阅读全文
posted @
2015-01-28 13:33
赛亚人
阅读(100)
推荐(0)
online_judge_1471
摘要:#include #include #include int main(){ char s1[101],s2[101],s[201]; int len1,len2,i,j,k; while(gets(s1)!=NULL) { gets(s2); l...
阅读全文
posted @
2015-01-28 11:55
赛亚人
阅读(99)
推荐(0)
online_judge_1470
摘要:#include #include void swap(int *a,int *b){ int t; t=*a; *a=*b; *b=t;}int main(){ int n,i,j,k; int a[10][10],b[10]; while(scanf("...
阅读全文
posted @
2015-01-28 11:19
赛亚人
阅读(84)
推荐(0)
online_judge_1475改
摘要:#include #include #include typedef struct IP{ int a; int b; int c; int d;}IP;typedef struct S{ int len; IP source; IP destination...
阅读全文
posted @
2015-01-28 10:48
赛亚人
阅读(163)
推荐(0)
online_judge_1475
摘要:这道题目我测试了好多次都没问题,但是就是无法AC,十分愤怒。我编程习惯十分差,谁要是发现Bug。求指点!#include #include #include typedef struct SString{ char e[200];}SString;typedef struct IP{ i...
阅读全文
posted @
2015-01-27 23:26
赛亚人
阅读(98)
推荐(0)
online_judge_1474
摘要:#include #include int c[10][10];void Chengji(int **a,int n,int k){ int **b; int x,y,z,t; b=(int **)malloc(n*sizeof(int *)); for(x=0;x<n;x+...
阅读全文
posted @
2015-01-27 19:35
赛亚人
阅读(122)
推荐(0)
online_judge_1473
摘要:#include #include void Reverse(int n){ if(n==0) printf("0"); else if(n==1) printf("1"); else { Reverse(n>>1); ...
阅读全文
posted @
2015-01-27 15:40
赛亚人
阅读(120)
推荐(0)