I have tried several times and yet I am getting WA in the problem HELPLIRA.
MY LATEST SUBMISSION:
http://www.codechef.com/viewsolution/3255224
Could someone kindly point out my mistake.Thanks in advance
I have tried several times and yet I am getting WA in the problem HELPLIRA.
MY LATEST SUBMISSION:
http://www.codechef.com/viewsolution/3255224
Could someone kindly point out my mistake.Thanks in advance
For input:
4
-1 0 1 0 0 1
-2 0 2 0 0 2
-3 0 2 0 0 3
0 0 0 3 3 0
the correct answer is 1 and 3, but your code returns 1 and 4 - http://ideone.com/X8oI7l
Thanks!I had made a silly mistake in the formula for finding the area.I corrected it and my solution was accepted.
http://www.codechef.com/viewsolution/3255316