fork(1) download
  1. #include<bits/stdc++.h>
  2. #define LL long long int
  3. using namespace std;
  4. int main()
  5. {
  6. double xx;
  7. LL x,y,temp;
  8.  
  9. cin>>x>>y;
  10. xx = (pow(x,1.0/y));
  11.  
  12. cout<<xx<<" "<<(LL)xx<<endl;
  13.  
  14. }
Success #stdin #stdout 0s 3460KB
stdin
1000 3
stdout
10 9