How wrong answer is displaying?

I am getting right answer on my system but when i am compiling it online on Chef’s compiler then it is giving wrong answer. Why it is so?

You might be missing some border cases… try some critical-border-line test cases …

1 Like

Trust codechef. If it is showing wrong answer then for some test case your answer is wrong.Also , See if you are using any implementation in your code that is system dependent.