http://acm.hdu.edu.cn/showproblem.php?pid=1977

很容易看出规律

View Code
#include <stdio.h>
#include <string.h>
int main()
{
    int t;
    __int64 n;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%I64d",&n);
        printf("%I64d %I64d\n",n*n*n,(n+1)*(n+1)*(n+1));
    }
    return 0;
}

 

 

相关文章:

  • 2021-06-12
  • 2021-05-18
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-12-29
  • 2021-06-04
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2021-10-17
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案