Advertisement
raisul82

UVA 113 - Power of Cryptography

Feb 8th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. double p,n,k,l;
  6. while(scanf("%lf%lf",&n,&p)==2)
  7. {
  8. k=pow(p,1/n);
  9. printf("%.0lf\n",k);
  10.  
  11. }
  12.  
  13. return 0;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement