Missing case

Hi, somebody please check and let me know which case I am missing.

https://www.codechef.com/viewsolution/52162663

Thanks in advance

1
114915568 0
1 Like

Thanks…
Please give me tips how to find missing case. every time I just miss some edge case. can you tell me what was your thought process when you inspect this solution?

In this case - I just wrote a brute-force implementation plus random testcase generator and used that to find a random testcase where your answer differed from mine :man_shrugging:

Thanks…modified code but still not passed.
https://www.codechef.com/viewsolution/52299208

check this please.

1
895896049 9
1 Like

Thanks … I found my mistake.

1 Like