#include <stdio.h>
int main()
{
long x=0;
while(scanf("%ld",&x)==1){
long sum=6*(x/2)*(x/2)+12*(x/2)-3;
printf("%ld\n",sum);
}
return 0;
}
int main()
{
long x=0;
while(scanf("%ld",&x)==1){
long sum=6*(x/2)*(x/2)+12*(x/2)-3;
printf("%ld\n",sum);
}
return 0;
}
No comments:
Post a Comment