OJ-Problems-Source/HDOJ/1977_autoAC.cpp
2016-08-19 10:57:19 +08:00

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;
}