OJ-Problems-Source/HDOJ/1220_autoAC.cpp

9 lines
168 B
C++
Raw Normal View History

2016-08-13 17:16:08 +08:00
#include <stdio.h>
int main(){
int n;
while(~scanf("%d",&n)){
printf("%d\n",n*n*(n-1)/2*(n*n*n-2)+n*n*n*(n*n-5)/2+2*n*n);
}
return 0;
}