摘要: #include int main() { int n,m,a,b; while(scanf("%d %d",&n,&m)!=EOF) a=(m-2*n)/2; b=(m-2*n)%2; if(a>0 && b==0) printf("%d %d\n",n-a,a); else printf("No"); return 0;... 阅读全文
posted @ 2018-10-04 21:01 MichaelCecil 阅读(965) 评论(0) 推荐(0) 编辑
摘要: #include #include int main() { int n; const double pi=acos(-1); double a,b; while(scanf("%d",&n)!=EOF) a=sin(n*pi/180); b=cos(n*pi/180); printf("%.2f\n%.2f\n",a,b); ... 阅读全文
posted @ 2018-10-04 20:03 MichaelCecil 阅读(493) 评论(0) 推荐(0) 编辑
摘要: #include int main() { float f,c; while(scanf("%f",&f)!=EOF) c=5.0/9*(f-32); printf("%.3f",c); return 0; } 阅读全文
posted @ 2018-10-04 19:40 MichaelCecil 阅读(555) 评论(0) 推荐(0) 编辑
摘要: #include int main() { float f,c; while(scanf("%f",&f)!=EOF) c=5.0/9*(f-32); printf("fahr=%f,celsius=%f\n",f,c); return 0; } 阅读全文
posted @ 2018-10-04 19:37 MichaelCecil 阅读(649) 评论(0) 推荐(0) 编辑