Try this test case :
3 1 0
For the above testcase actual output should have been
but according to almost all codes(including editorialist's) its
So am i correct ?? or have i made a mistake in understanding the problem??
I resort to your generous replies.
Thanks in Advance.