same here
Code run succesfully but itβs gives WA
Help me
Nice explanation
in this test case :
1 7 2 3 , the answer coming out is 11;
i.e. 2 1 2 1 2 1 2
but it should be 3 0 3 0 3 0 3 ,here answer would be 12;
I think the formulae should be : ((ceil(m*n))/2)) * min(y, 2x);
Correct me if I am wrong .
in this test case :
1 7 2 3 , the answer coming out is 11;
i.e. 2 1 2 1 2 1 2
but it should be 3 0 3 0 3 0 3 ,here answer would be 12;
I think the formulae should be : ((ceil(m*n))/2)) * min(y, 2x);
Correct me if I am wrong .