mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
17 lines
252 B
C++
17 lines
252 B
C++
#include<stdio.h>
|
|
__int64 a[2500];
|
|
int main()
|
|
{
|
|
__int64 sum,i,n;
|
|
a[1]=1;
|
|
for(i=3;i<=2500;i+=2)
|
|
{
|
|
a[i]+=a[i-2]+i*i;
|
|
}
|
|
while(scanf("%I64d",&n)!=EOF)
|
|
{
|
|
printf("%I64d\n",a[n]);
|
|
}
|
|
return 0;
|
|
}
|