uva 113

题意:开平方啊,值并没有超过double能表示的范围,水过 。。。。
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
	double n,p;
	while(cin>>n>>p)
	{
		cout<<(int)(pow(p,1.0/n)+0.5)<<endl;
	}
	return 0;
}


你可能感兴趣的:(uva 113)