标签:des style blog color io java strong for 数据
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 91523 Accepted Submission(s):
29316
1 #include<cstdio> 2 int main() 3 { 4 int m,n; 5 while(scanf("%d%d",&m,&n)==2) 6 { 7 int j=0,o=0,t; 8 if(m>n){t=m;m=n;n=t;} 9 for(int i=m;i<=n;i++) 10 if(i%2)j=j+i*i*i; 11 else o=o+i*i; 12 printf("%d %d\n",o,j); 13 } 14 return 0; 15 }
20 152
标签:des style blog color io java strong for 数据
原文地址:http://www.cnblogs.com/The-courage-that-year/p/3989767.html