getting wrong answer in spite of trying a lot.Please help me find the error in the code.The link to my solution is http://www.codechef.com/viewsolution/3611135.
input your code fails is:
1
2
2 2
because 2 * 2 in NOT greater than 2 + 2
sorry the link i provided was incorrect.I have edited the link and for 2 2 it gives 0 as the output.Can you please recheck it?
Hopefully, you agree, that this input should print same result for both test cases:
2
4
0 0 3 3
4
3 3 0 0
I got my mistake sir.Can you please suggest me a way to find the solution for the problem?