You are viewing a single comment's thread. Return to all comments →
Java Solution
static int gameWithCells(int n, int m) { int q = 0; if(n%2 != 0 && m%2 != 0) q = 1; return (n/2)*(m/2) + ((n%2)*m/2) + ((m%2)*n/2) + q; }
Seems like cookies are disabled on this browser, please enable them to open this website
Army Game
You are viewing a single comment's thread. Return to all comments →
Java Solution