#include <stdio.h>
int main ()
{
__int64 n,t,m;
scanf("%I64d",&t);
while (t--)
{
scanf("%I64d",&n);
m=n+1;
printf("%I64d %I64d\n",n*n*n,m*m*m);
}
return 0;
}
hdu1977 Consecutive sum II
最新推荐文章于 2019-08-21 15:27:59 发布
#include <stdio.h>
int main ()
{
__int64 n,t,m;
scanf("%I64d",&t);
while (t--)
{
scanf("%I64d",&n);
m=n+1;
printf("%I64d %I64d\n",n*n*n,m*m*m);
}
return 0;
}