|
|
back to boardtest 11 ......sad.... Posted by xinxin 7 Oct 2016 20:06 #include<iostream> #include<stdlib.h> #include<math.h> using namespace std; int main() {long double n; long long int m,i; cin>>m;
for(i=1;i<10000000000000000000;i++) { n=sqrt(i*i*i*m); if(n==floor(n+0.5)) { cout<<n<<endl<<i;break;} } fflush(stdin); getchar(); return 0;} |
|
|