Wrong Answer

i am getting answer to this question wrong…please help me…

 http://www.codechef.com/viewsolution/4558500 

.

2 Likes

flag should be initialized inside while loop.

8 Likes

Thanx… It’s cool…

//