http://www.codechef.com/viewsolution/3784470
Can somebody tell me how is this getting accepted. I ran it on ideone and it is giving wrong answer for the sample test cases.
http://www.codechef.com/viewsolution/3784470
Can somebody tell me how is this getting accepted. I ran it on ideone and it is giving wrong answer for the sample test cases.