2017-10-6
解答
不知道为什么float就compile error了,关于浮点数...
代码
#include <iostream>
#include <cmath>
using namespace std;
double a,b;
int main(){
while(cin>>a>>b){
cout<<pow(b,1.0/a)<<endl;
}
return 0;
}
2017-10-6
解答
不知道为什么float就compile error了,关于浮点数...
代码
#include <iostream>
#include <cmath>
using namespace std;
double a,b;
int main(){
while(cin>>a>>b){
cout<<pow(b,1.0/a)<<endl;
}
return 0;
}