#include<iostream>
using namespace std;
int main(){
long m,n;
while(cin>>m>>n){
if(m>n){
int temp;
temp=m;
m=n;
n=temp;
}
long dou=0,trip=0;
long N=n-m;
for(int i=0;i<=N;i++){
if((m)%2 != 0)
trip+=m*m*m;
else
dou+=m*m;
m++;
}
cout<<dou<<" "<<trip<<endl;
}
return 0;
}
总结:忽略没有比较m,n大小,距离大水逼还有一定距离