上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

2022年9月19日

摘要: #include<stdio.h> main() { int t,sum=0; while(scanf("%d",&t)!=0) { if(t 1) break; sum=sum+t; } printf("%d\n",sum); } 阅读全文

posted @ 2022-09-19 19:47 lachesism 阅读(726) 评论(0) 推荐(0)

摘要: #include<stdio.h> main() { int y; scanf("%d",&y); if((y%400==0) || (y%4==0 && y%100!=0)) { printf("YES"); } else { printf("NO"); } } 阅读全文

posted @ 2022-09-19 19:23 lachesism 阅读(102) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a,b,s; scanf("%d %d",&a,&b); if(a<=3) { s=10; } else if(a<=10) { s=10+(a-3)*2; } else { s=24+(a-10)*3; } if(b>5) { s= 阅读全文

posted @ 2022-09-19 19:11 lachesism 阅读(363) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int x,y; scanf("%d %d",&x,&y); if(x>0&&y>0) { printf("I"); } else if(x<0&&y>0) { printf("II"); } else if(x<0&&y<0) { prin 阅读全文

posted @ 2022-09-19 19:05 lachesism 阅读(307) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a) { printf("Y"); } else { printf("N"); 阅读全文

posted @ 2022-09-19 18:46 lachesism 阅读(234) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int x; scanf("%d",&x); switch(x/10) { case 10: case 9: printf("优\n");break; case 8: printf("良\n");break; case 7: printf(" 阅读全文

posted @ 2022-09-19 18:39 lachesism 阅读(693) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==b) { printf("C"); } else if(b==c) { printf("A"); } else { printf("B"); } } 阅读全文

posted @ 2022-09-19 18:31 lachesism 阅读(415) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a; scanf("%d",&a); int g; g=a%10; int s; s=a/10; if(g>s) { printf("%d%d",g,s); } else { printf("%d",a); } } 阅读全文

posted @ 2022-09-19 18:17 lachesism 阅读(253) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a,b; scanf("%d %d",&a,&b); if(a%b==0) { printf("B是A的约数"); } else { printf("B不是A的约数"); } } 阅读全文

posted @ 2022-09-19 18:08 lachesism 阅读(321) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a; scanf("%d",&a); if(a<43199) { int h; h=a/3600; int m; m=(a%3600)/60; int s; s=(a%3600)%60; printf("AM %02d:%02d:%0 阅读全文

posted @ 2022-09-19 18:02 lachesism 阅读(528) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页