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

2022年9月19日

摘要: #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 阅读(163) 评论(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 阅读(414) 评论(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 阅读(317) 评论(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 阅读(201) 评论(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 阅读(253) 评论(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 阅读(378) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> main( ) { int a; scanf("%d",&a); int h; h=a/3600; if(h>23) { int d; d=h/24; h=h-24; if(h>23) { h=h-24; } int m; m=(a%3600)/60; int 阅读全文

posted @ 2022-09-19 17:56 lachesism 阅读(418) 评论(0) 推荐(0) 编辑

2022年9月12日

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

posted @ 2022-09-12 00:06 lachesism 阅读(222) 评论(0) 推荐(0) 编辑

2022年9月8日

摘要: #include"stdio.h" main() { int x; scanf("%d",&x); if( x<0) x=-x; printf("%d",x); } 阅读全文

posted @ 2022-09-08 16:32 lachesism 阅读(146) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> int main(void) { int x,y,z; printf("Enter x:\n"); scanf("%d",&x); if(x%10==0) { y=x; z=x; } else { y=x*2; z=x*3; } printf("y=%d\nz= 阅读全文

posted @ 2022-09-08 16:31 lachesism 阅读(180) 评论(0) 推荐(0) 编辑

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