Encoding'20

Can anyone please tell why this solution for todays encoding contest…problem 6 is showing WA?
Question-
https://www.codechef.com/ENJU2020/problems/ECJN206
Solution -
https://www.codechef.com/viewsolution/34849601

Hey @shashank8989, your code is not working because of the lines 34 -36. There’s no need to check for that equality, without that your code is working fine.

Check this : Solution

Ohh ok… Actually i put that line coz i was getting WA before… Its weird that it works now maybe i messed up something thanks anyways bro :slight_smile: