getting WA for CHEFEQ

solution :http://www.codechef.com/viewsolution/6301025
Question :http://www.codechef.com/problems/CHEFEQ
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: http://www.codechef.com/viewsolution/6303136

:slight_smile:

thanx a lot brother :slight_smile:

welcome… :slight_smile: