Help out with the code

I have checked my solution with many inputs but its giving wrong answer please help out with the code http://www.codechef.com/viewsolution/2181785.

@aasthi i dont know java but while checking output with test cases i found that u forgot to print new line after output of every test case

here is ur AC solution

http://www.codechef.com/viewsolution/2181830
:slight_smile:

5 Likes

@chandan11111 thanks,it was the actual mistakeā€¦:slight_smile:

1 Like

@chandan11111 more and more ppl doing the same mistakeā€¦:smiley:

1 Like

new users are not aware abt tht :slight_smile:
i remember when i submit my first code i did the same mistake :stuck_out_tongue: :smiley:

1 Like