You are viewing a single comment's thread. Return to all comments →
c#
public static long strangeGrid(int r, int c)
{ long rlong = (long)r; long answer = (long)(10 * ((rlong - 1) / 2) - 1 - (rlong % 2) + (2 * c)); return answer; }
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Grid Again
You are viewing a single comment's thread. Return to all comments →
c#
public static long strangeGrid(int r, int c)