摘要:
#includeint main(){ int t,m,n,x,y,i; while(scanf("%d%d",&n,&m)!=EOF) { if(n>m) {t=n;n=m;m=t;} x=0; y=0; for(i=n;i<=m;i++) { if(i%2==0) y=y+i*i; else x=x+i*i*i; } printf("%d %d\n",y,x); } return 0;}
阅读全文
posted @ 2013-07-26 17:37
mzlover
阅读(210)
推荐(0)
编辑
摘要:
#includemain(){ int a,b,c,t; scanf("%d%d%d",&a,&b,&c); if(a>b) { t=a;a=b;b=t;} if(a>c) { t=a;a=c;c=t;} if(b>c) { t=b;b=c;c=t;} printf("%d %d %d\n",a,b,c);}
阅读全文
posted @ 2013-07-26 11:45
mzlover
阅读(154)
推荐(0)
编辑
摘要:
#includemain(){ int a,b,c,t; scanf("%d%d%d",&a,&b,&c); if(a>b) { t=a;a=b;b=t;} if(a>c) { t=a;a=c;c=t;} if(b>c) { t=b;b=c;c=t;} printf("%d,%d,%d\n",a,b,c);}
阅读全文
posted @ 2013-07-26 11:43
mzlover
阅读(197)
推荐(0)
编辑