Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
113
SUBMITTED BY:
Guest
DATE:
Dec. 25, 2013, 3:02 p.m.
FORMAT:
Text only
SIZE:
198 Bytes
Raw
Download
Tweet
HITS:
2043
Go to comments
Report
#include <cstdio>
#include <cmath>
int main()
{
int n;
double p;
while ( scanf("%d %lf", &n, &p) == 2 )
printf("%.0lf\n", pow(p, 1.0/n));
return 0;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus