Comments
On tourist → Hello 2018 -- Tutorial, 9 years ago
0

Alright,thanx that's ohkay . But what if I typecast log_2(m) to long long and then compare m and log_2(m)

In that case also its not working . why so ?

On tourist → Hello 2018 -- Tutorial, 9 years ago
0

But in this test case log_2(m) is giving 25 . Hence if the condition would fail in this case and the output would be m%pow(2,n) would give 0 . Where is the mistake here ?

25 33554432

On tourist → Hello 2018 -- Tutorial, 9 years ago
0

Why my solution failed on the 18th test case. On my machine, it's giving the right output. Why so?

34011797

Can someone help me out with the E problem in this contest!!!

Here is my code https://ideone.com/k8VHd2

I don't know why its giving the wrong answer on input: 624 892

Output should be 223068204,but it gives 243208479

Thanx in Advance !