摘要: #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 阅读(1550) 评论(0) 推荐(0) 编辑
摘要: #include #include const double pi=4.0*atan(1.0); int main () { float r,h,s1,s2; while(scanf("%f %f",&r,&h)!=EOF) {s1=2*pi*r*r; s2=2*pi*r*h; printf("Area=""%.3f",s1+s2);} retu... 阅读全文
posted @ 2018-09-26 22:11 Estwind 阅读(1424) 评论(0) 推荐(0) 编辑