mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
bd4f730b16
1900-1999
19 lines
294 B
C++
19 lines
294 B
C++
#include <iostream>
|
|
#include <string.h>
|
|
#include <cstdio>
|
|
using namespace std;
|
|
typedef long long LL;
|
|
const int MS=1001;
|
|
int main()
|
|
{
|
|
LL n;
|
|
int T;
|
|
cin>>T;
|
|
while(T--)
|
|
{
|
|
cin>>n;
|
|
cout<<n*n*n<<" "<<(n+1)*(n+1)*(n+1)<<endl;
|
|
}
|
|
return 0;
|
|
}
|