http://acm.hdu.edu.cn/showproblem.php?pid=2007
#include <stdio.h>
int main(){
int m,n,t,x=0,y=0,i;
while(scanf("%d %d",&m,&n)!=EOF){
if(m>n){t=m;m=n;n=t;}
for(i=m;i<=n;i++){
if(i%2==0){
x+=i*i;
}
else y+=i*i*i;
}
printf("%d %d\n",x,y);
x=0;y=0;
}
return 0;
}