Hi all, the function "pow( x , y )" should raise x to the y-th power , it works fine on my PC, but it gives me wrong answer on codeforces .
the problem is : I have a string , say "123", when I make call the function like this " pow( 10 , str.size()-1 ) " it returns "99"
why not returning "100" ???
my code: http://pastebin.com/B1LXwys6
the problem : http://www.codeforces.com/problemset/problem/61/C
thnx in advance :) .
the problem is : I have a string , say "123", when I make call the function like this " pow( 10 , str.size()-1 ) " it returns "99"
why not returning "100" ???
my code: http://pastebin.com/B1LXwys6
the problem : http://www.codeforces.com/problemset/problem/61/C
thnx in advance :) .