摘要:
#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;... 阅读全文
摘要:
#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); ... 阅读全文
摘要:
#include int main() { float f,c; while(scanf("%f",&f)!=EOF) c=5.0/9*(f-32); printf("%.3f",c); return 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; } 阅读全文