CHECHOC - Editorial

same here

Code run succesfully but it’s gives WA
Help me

Someone plz help getting WA.
https://www.codechef.com/viewsolution/38632008

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 .