WA Answer on Codechef IDE

What care to be taken for not getting WA on codechef even after getting Right output on External IDE…??

Check out some test cases yourself, sometimes your code might be giving wrong for some particular test case, checking on the boundary of input might be a good start…