Search found 1 match

by BlâckFoX
Thu Aug 09, 2012 5:19 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 50515

113 - wrong answer

Hii can anyone help me?

I submitted this ,but the judge kept saying i have wrong answer =( please help
#include <iostream>
#include <math.h>
using namespace std;

int main(){
double n, p;
double ans;
while(cin >> n >> p){
ans= pow(p,1/n);
cout << round(ans) << endl;
}
return 0;
}

Go to advanced search