Codechef Beginner problem

Question - https://www.codechef.com/problems/SPAMCLAS
Code - https://www.codechef.com/viewsolution/34144088
I don’t know why it is giving wrong answer.Please help.(I have commented what variable i have used for what)…

You can generate input and output file from a correct answer and then you can check for your solution.

1 Like