上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: #include int main() { int a,b,c,d,e,n; scanf("%d",&n); a=n/10000; b=n%10000/1000; c=n%10000%1000/100; d=n%10000%1000%100/10; e=n%10000%1000%100%10; if(a!=0) printf... 阅读全文
posted @ 2018-10-25 18:51 MichaelCecil 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b,c,s; scanf("%d-%d-%d",&a,&b,&c); if((a%4==0&&a%100!=0)||(a%400==0)) { if(b==1){ s=c; } if(b==2){ s=31+c; ... 阅读全文
posted @ 2018-10-23 23:44 MichaelCecil 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int count = 0; int n; scanf("%d",&n); while(n>1) { if(n%2==1) n=n*3+1; else n/=2; count++; } printf("%d\n",count); ... 阅读全文
posted @ 2018-10-21 14:05 MichaelCecil 阅读(727) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int i,n; scanf("%d",&n); float sum=0.0; float a=1; float b=2; for(i=1;i<=n;i++){ sum=sum+1.0*b/a; int c=a; a=b; b=c+b; ... 阅读全文
posted @ 2018-10-21 13:38 MichaelCecil 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { float a,b,c,x1,x2,delta; scanf("%f %f %f",&a,&b,&c); delta=b*b-4*a*c; if(a==0){ if(b==0) printf("No\n"); else printf("%... 阅读全文
posted @ 2018-10-13 22:22 MichaelCecil 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b,c,d,s,i; for(i=31;i<100;i++){ s=i*i; a=s/1000; b=s%1000/100; c=s%100/10; d=s%10; if(a==b&&c==d) printf("%... 阅读全文
posted @ 2018-10-13 20:47 MichaelCecil 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b; while(scanf("%d %d",&a,&b)!=EOF) if(a<=6||b<=2||a<=20&&b<5) printf("yes\n"); else printf("no\n"); return 0; } 阅读全文
posted @ 2018-10-08 17:01 MichaelCecil 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b; while(scanf("%d %d",&a,&b)!=EOF) if(1500+a*5+b*5>=1800) printf("A"); if(1500+a*5+b*5>=1700&&1500+a*5+b*5=1600&&1500+a*5+b*5<=1699) printf("C"); ... 阅读全文
posted @ 2018-10-08 16:52 MichaelCecil 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF) if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a) printf("yes"); else printf("no"); return 0; } 阅读全文
posted @ 2018-10-08 16:29 MichaelCecil 阅读(942) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a; while(scanf("%d",&a)!=EOF) if(a%2==0) printf("odd"); else printf("even"); return 0; } 阅读全文
posted @ 2018-10-05 11:41 MichaelCecil 阅读(950) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页