UVA 113

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
    double n,p;
    double temp;
    while(scanf("%lf%lf",&n,&p)==2)
    {
        temp=pow(p,1/n);
            printf("%.lf\n",temp);
    }
    return 0;
}

 

 

posted @ 2012-04-28 12:06  open your eyes  阅读(159)  评论(0编辑  收藏  举报