Whats wrong in my code(EVENT) even after covering all scenarioes

I have covered almost all scenarios as per editorial . Still I am getting WA
what is wrong in my code ?

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

1 Like

You forgot to change the line i.e. ā€˜\nā€™ after each output.

Your AC Code :: AC Code

1 Like

Thank you . It worked !

1 Like