Getting WA with HELPLIRA

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 :slight_smile:

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 - X8oI7l - Online C++ Compiler & Debugging Tool - Ideone.com

1 Like

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