Why the compiler is giving wrong answer?

//code deleted

I’ve checked for several test cases all giving right answers.
Link: CodeChef: Practical coding for everyone

You are not allowed to ask questions during the contest. Please wait till contest is over

1 Like