Pabon_SEC

Power of criptography

Sep 3rd, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. main()
  4. {
  5.     double n,p,k;
  6.     while(scanf("%lf %lf",&n,&p)!=EOF)
  7.     {
  8.         k=pow(p,1.0/n);
  9.         printf("%0.0lf\n",k);
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment