The test cases for the problem are weak. For the worst case accepted solution are showing TLE on ideone.
I checked only for 2 submissions. Please help if the test case is wrong.
The test cases for the problem are weak. For the worst case accepted solution are showing TLE on ideone.
I checked only for 2 submissions. Please help if the test case is wrong.