Skip to content

Instantly share code, notes, and snippets.

@KT-Yeh
Created February 17, 2014 08:20
Show Gist options
  • Save KT-Yeh/9046771 to your computer and use it in GitHub Desktop.
Save KT-Yeh/9046771 to your computer and use it in GitHub Desktop.
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
double n,p;
while (scanf("%lf %lf", &n, &p) != EOF)
printf("%.0f\n",pow(p,1.0/n));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment