P2109
我是拿著一個題目表在切poj..不知道為何這題被分到了貪心里..實在很orz1ac..久違了
#include <iostream>
#include <math.h>
using namespace std;
int main()

{
double p,k;
while (cin>>p>>k)
{
double answer=pow(k,(1/p));
cout<<answer<<endl;
}
return 0;
}posted on 2009-10-02 12:47 Vincent 閱讀(111) 評論(0) 編輯 收藏 引用 所屬分類: 數(shù)據(jù)結(jié)構(gòu)與算法

