I think output of both code is not same.Andrey wrote:Thank's![/code]Code: Select all
#include<iostream.h> #include<math.h> void main() { double n,p; while(cin>>n>>p) cout<<floor(pow(p,1.0/n)+0.5); }
In the AC code you use " %.lf " which mean the output should be without any point.
But in the second code you don't tell any thing. So it should print point and so on.

By the way, what's the number of this problem.
Ibrahim