You are viewing a single comment's thread. Return to all comments →
c#
public static int gameWithCells(int n, int m)
{ int package; if (n > 1 && m > 1) { package = ((n/2) * (m/2)) + ((n/2) * (m % 2)) + ((m/2) * (n % 2)) + ((m * n) % 2); } else package = ((n * m)/2) + ((n * m) % 2); return package; }
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 →
c#
public static int gameWithCells(int n, int m)