uva 113 Power of Cryptography

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main()
{
    int n;
    double p;
    while(cin >> n >> p)
    {
        printf("%.0f\n",pow(p,1.0/n));
    }
}

 

posted @ 2015-07-18 19:15  杨永华  阅读(100)  评论(0编辑  收藏  举报