上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 30 下一页
摘要: 1 #include 2 int a[21]; 3 int main() 4 { 5 int n,m,i,temp; 6 a[1]=temp=1; 7 for(i=2; i<21; ++i) 8 { 9 if(i%2) 10 temp*=i; 11 a[i]=a[i-1]+temp; 12 ... 阅读全文
posted @ 2016-12-28 11:38 Posase 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 double ans,x; 5 int n=12; 6 while(n--) 7 { 8 scanf("%lf",&x); 9 ans+=x; 10 } 11 ans/=12; 12 printf("%.2f\n",ans); 13... 阅读全文
posted @ 2016-12-28 11:38 Posase 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 //freopen("in.txt","r",stdin); 5 int a,n,m; 6 while(~scanf("%d",&a)) 7 { 8 while(a--) 9 { 10 scanf("%d%d",&n,&m); 11... 阅读全文
posted @ 2016-12-28 11:37 Posase 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { struct { char name[250]; int qm; int by; char gb; char xb; int lw; } xx[205]; int jxj[105],n,i,s,k,m; ... 阅读全文
posted @ 2016-12-28 11:36 Posase 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 char a[200]; 3 int b[200]; 4 int len(char s[]) 5 { 6 int i=0; 7 while(s[i]!='\0') 8 ++i; 9 return i; 10 } 11 int main() 12 { 13 int n,maxn,minn,i,j,t,k; ... 阅读全文
posted @ 2016-12-28 11:36 Posase 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int a[4]; 3 int main() 4 { 5 int n,x,t,i,j,k,maxn,minn; 6 while(~scanf("%d",&n)) 7 { 8 while(n--) 9 { 10 scanf("%d",&x); 11 ... 阅读全文
posted @ 2016-12-28 11:35 Posase 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main() 4 { 5 int n,m,s,t; 6 while(~scanf("%d",&t)) 7 { 8 while(t--) 9 { 10 scanf("%d%d",&n,&m); 11 s=0; 12 ... 阅读全文
posted @ 2016-12-28 11:34 Posase 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 int a,b,c,t; 5 scanf("%d%d%d",&a,&b,&c); 6 if(a>b) 7 { 8 t=a; 9 a=b; 10 b=t; 11 } 12 if(b>c) 13 { 14 ... 阅读全文
posted @ 2016-12-28 11:34 Posase 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 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 ··· 17 18 19 20 21 22 23 24 25 ··· 30 下一页