原题:1336
题意:读入n,求m,k满足方程 m^2 = k^3*n,要求1 ≤ m, k ≤ 10^100
解:仔细想一想就好…
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
cout << n*n << endl << n << endl;
return 0;
}
原题:1336
题意:读入n,求m,k满足方程 m^2 = k^3*n,要求1 ≤ m, k ≤ 10^100
解:仔细想一想就好…
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
cout << n*n << endl << n << endl;
return 0;
}