摘要: #include int main() { float c,f; while(scanf("%f",&f)!=EOF) { c=(f-32)*5.0/9; printf("%.3f\n",c); } return 0; } 阅读全文
posted @ 2018-09-28 18:21 Estwind 阅读(532) 评论(0) 推荐(0) 编辑
摘要: #include int main() { float f,c; while(scanf("%f",&f)!=EOF) { c=(f-32)*5.0/9; printf("fahr=%f,celsius=%f\n",f,c); } return 0; } 阅读全文
posted @ 2018-09-28 18:06 Estwind 阅读(555) 评论(0) 推荐(0) 编辑
摘要: #include int main() { double a,b,c; while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF) { printf("%.3f\n",(a+b+c)/3); } return 0; } 阅读全文
posted @ 2018-09-28 17:53 Estwind 阅读(681) 评论(0) 推荐(0) 编辑
摘要: #include int main() { printf("\\n"); return 0; } 阅读全文
posted @ 2018-09-27 23:42 Estwind 阅读(414) 评论(0) 推荐(0) 编辑
摘要: #include int main() { printf("%%d"); return 0; } 阅读全文
posted @ 2018-09-27 23:37 Estwind 阅读(443) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b,c; while(scanf("%d %d",&a,&b)!=EOF) { c=a; a=b; b=c; printf("%d %d",a,b); } return 0; } 阅读全文
posted @ 2018-09-27 23:30 Estwind 阅读(561) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int s,a,b,c; while(scanf("%d",&s)!=EOF) { a=s/100; b=s%100/10; c=s%100%10; printf("%d%d%d",c,b,a); } return 0; } 阅读全文
posted @ 2018-09-27 23:19 Estwind 阅读(547) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int h1,m1,h2,m2,s; while(scanf("%d:%d %d:%d",&h1,&m1,&h2,&m2)!=EOF) { s=(h1-h2)*60+m2-m1-1; printf("%d",s); } return 0; } 阅读全文
posted @ 2018-09-27 23:09 Estwind 阅读(756) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int n1,m1,d1,n2,m2,d2,s; while(scanf("%d-%d-%d %d-%d-%d",&n1,&m1,&d1,&n2,&m2,&d2)!=EOF) s=d2-d1-1; printf("%d\n",s); return 0; } 阅读全文
posted @ 2018-09-26 23:51 Estwind 阅读(743) 评论(0) 推荐(0) 编辑
摘要: #include int main () { float a,b,h,s; while(scanf("%f,%f,%f",&a,&b,&h)!=EOF) { s=(a+b)*h/2; printf("%.2f",s); } return 0; } 阅读全文
posted @ 2018-09-26 22:23 Estwind 阅读(1549) 评论(0) 推荐(0) 编辑