摘要:
#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); } ...
阅读全文
posted @ 2015-02-13 20:17
Evence
阅读(140)
推荐(0)
编辑
摘要:
#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; ...
阅读全文
posted @ 2015-02-13 20:09
Evence
阅读(305)
推荐(0)
编辑
摘要:
#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...
阅读全文
posted @ 2015-02-13 18:34
Evence
阅读(183)
推荐(0)
编辑
摘要:
#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",...
阅读全文
posted @ 2015-02-13 17:57
Evence
阅读(198)
推荐(0)
编辑
摘要:
#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)...
阅读全文
posted @ 2015-02-13 17:47
Evence
阅读(274)
推荐(0)
编辑
摘要:
#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...
阅读全文
posted @ 2015-02-13 17:16
Evence
阅读(204)
推荐(0)
编辑