Can someone explain why my solution for the question 1709D - Rorororobot is giving wrong answer for test case 9 submission 203589041 . Any help is appreciated.
Can someone explain why my solution for the question 1709D - Rorororobot is giving wrong answer for test case 9 submission 203589041 . Any help is appreciated.
I am pretty sure that the logic (find the pairs that are occuring the most) I have used is correct but I am getting a wrong answer. Can some tell me what's wrong with my code or provide a counter test case . Any help is appreciated.
I am getting the right answer when running the testcases locally however codeforces when running the code on their servers gives a different output. Can anyone explain what's happening here. Any help is appreciated. Thanks.
[problem:E. Turn Off The TV] [link](https://mirror.codeforces.com/contest/863/problem/E) , My submission : 188805621
I think the code I have written in correct and according to me its giving the correct answer for the testcase (testcase 14) , but CF says that the answer is wrong. Can anyone go through the testcase 14 and let me know what I am missing .Any help is appreciated. Thanks