getting WA for CHEFEQ

solution :CodeChef: Practical coding for everyone
Question :CHEFEQ Problem - CodeChef
i can do this in many simpler way but whats wrong with this method.

@sam2code

nothing is wrong… you just missed ‘\n’ in print statement.

Here’s the AC’ed code: CodeChef: Practical coding for everyone

:slight_smile:

thanx a lot brother :slight_smile:

welcome… :slight_smile: