The link to the problem is HERE.
[The competition is closed now]
I solved this problem in C++ and tested for all possible combinations I could and uploaded the code for submission. But it showed “Wrong Answer”. If can anyone tell me any testcase for which my code produces wrong output (I could not find any) andI just want to know what mistake I had committed. Any help is Much appreciated…!
My solution is HERE
Codechef should upload the test cases they used to verify the solution (after the contest ended). Atleast one gets to know which cases are not catered in the code…