Hi guys this question looks to me as a simple one but I am get WA on this and on seeing it’s submissions I found no AC so just to confirm that the test cases are correct I want someone to solve this .
It would be a great help. Thanks in advance:)
Hi guys this question looks to me as a simple one but I am get WA on this and on seeing it’s submissions I found no AC so just to confirm that the test cases are correct I want someone to solve this .
It would be a great help. Thanks in advance:)
The same question is available in code-forces which was asked in recent contest. You can check your solution there. The link to the problem is
link text
Hope it helps:)