摘要:
#includeint main(){ int x; scanf("%d",&x); for(int i=1 ; i<=x ; ++i) { for(int j=1 ; j<=i ; ++j) { printf("%d*%d=%-4d",j,i,i*j); } ... 阅读全文
摘要:
#include#includeint main(){ int a,b,c,tmp=0,time=0,tag=0; scanf("%d%d%d",&a,&b,&c); while(tmp<=a) { if(tag==0) { ++time; tmp+=b; ... 阅读全文
摘要:
#include#includeint main(){ int a,b,sum=0,tag=0; scanf("%d%d",&a,&b); while(a<=b) { if(tag==5) { printf("\n"); tag=0; } prin... 阅读全文
摘要:
#include#includeint main(){ double x; scanf("%lf",&x); if(x>=0) printf("f(%.2lf) = %.2lf\n",x,pow(x,0.5)); else printf("f(%.2lf) = %.2lf\n",... 阅读全文
摘要:
#includeint main(){ double x; scanf("%lf",&x); if(x<=1600) printf("%.2lf\n",x*0); else if(x<=2500) printf("%.2lf\n",(x-1600)*0.05); else if(x<=3500)... 阅读全文
摘要:
#includeint main(){ int s,l; double rate; scanf("%d%d",&s,&l); rate=(double)(s-l)/l*100; if(rate<10) printf("OK\n"); else if(rate<50) prin... 阅读全文