113


SUBMITTED BY: Guest

DATE: Dec. 25, 2013, 3:02 p.m.

FORMAT: Text only

SIZE: 198 Bytes

HITS: 2043

  1. #include <cstdio>
  2. #include <cmath>
  3. int main()
  4. {
  5. int n;
  6. double p;
  7. while ( scanf("%d %lf", &n, &p) == 2 )
  8. printf("%.0lf\n", pow(p, 1.0/n));
  9. return 0;
  10. }

comments powered by Disqus