摘要: include<stdio.h> int main(){ int s; double t1,t2; scanf("%d",&s); t1=27+23+s/1.2; t2=s/3.0; if(t1>t2){ printf("Walk"); } else if(t1=t2){ printf("All") 阅读全文
posted @ 2025-04-13 22:16 巴尔嘉 阅读(9) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ int x; scanf("%d",&x); if(x%30&&x%50&&x%70){ printf("3 5 7"); } else if(x%30&&x%50){ printf("3 5"); } else if(x%30&&x%70) 阅读全文
posted @ 2025-04-13 22:13 巴尔嘉 阅读(19) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ int a; scanf("%d",&a); if(a>=10 && a<=99){//在这里学会了用&&,|| printf("1"); } else{ printf("0"); } return 0; } 阅读全文
posted @ 2025-04-13 22:11 巴尔嘉 阅读(11) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ int n; scanf("%d",&n); if(n%2==0){//在这道题学会了奇偶数的语言 printf("even"); } else{ printf("odd"); } return 0; } 阅读全文
posted @ 2025-04-13 22:10 巴尔嘉 阅读(6) 评论(0) 推荐(0)
摘要: include<stdio.h> include<math.h> int main(){ double n,k; scanf("%lf",&n); k=fabs(n);//学会了绝对值的语言,( •̀ ω •́ )y printf("%.2lf",k); return 0; } 阅读全文
posted @ 2025-04-13 22:09 巴尔嘉 阅读(12) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ int N; scanf("%d",&N); if (N>0){ printf("positive\n"); } else if (N==0){ printf("zero\n"); } else{ printf("negative\n"); 阅读全文
posted @ 2025-04-13 22:08 巴尔嘉 阅读(6) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ long long A,B,k;//开始一直写不对因为不会用long long,还是没理解。 scanf("%lld %lld",&A,&B); k=A*B; printf("%lld",k); return 0; } 阅读全文
posted @ 2025-04-13 22:06 巴尔嘉 阅读(16) 评论(0) 推荐(0)
摘要: include<stdio.h> include<math.h>//刚开始写的时候没有带这个math库一直报错 int main(){ double xa,ya,xb,yb,l; scanf("%lf %lf",&xa,&ya); scanf("%lf %lf",&xb,&yb); l=sqrt(( 阅读全文
posted @ 2025-04-13 22:03 巴尔嘉 阅读(6) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ int h,r,t; scanf("%d %d",&h,&r); double v,x; v=3.14rr*h/1000; x=20/v; t=(int)x; if(x==t){ printf("%d\n",t);//初次完整运用了if语言 阅读全文
posted @ 2025-04-13 22:01 巴尔嘉 阅读(9) 评论(0) 推荐(0)
摘要: include<stdio.h> int main(){ char x,y,z;//在这道题中能够熟练运用char类型 scanf("%c %c %c",&x,&y,&z); printf("%c%c%c",z,y,x); return 0; } 阅读全文
posted @ 2025-04-13 21:59 巴尔嘉 阅读(14) 评论(0) 推荐(0)