UVA 10177 (暑假-数学(3) -D - (2/3/4)-D Sqr/Rects/Cubes/Boxes?)
#include
intmain(){
intn;
while(scanf("%d",&n)!=EOF){
longlongs2=0,s3=0,s4=0,r2,r3,r4;
longlongm=n*(n+1)/2;
r2=m*m;
r3=m*m*m;
r4=m*m*m*m;
while(n){
s2+=n*n;
s3+=n*n*n;
s4+=n*n*n*n;
n--;
}
printf("%ll