Advertisement
Saleh127

UVA 113

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