POJ 2019 Power of Cryptography
技巧。
#include<iostream>
#include<cmath>
using namespace std;
double n,p;
int main(){
while(cin>>n>>p){
cout<<pow(p,1/n)<<endl;
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
技巧。
#include<iostream>
#include<cmath>
using namespace std;
double n,p;
int main(){
while(cin>>n>>p){
cout<<pow(p,1/n)<<endl;
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。