8 ms·
Seems like this is something like P = ((N * M) - (N + M - 1))/K but haven't tried out too many cases.
by _THE_PLAGUE 15y ago
Seems like this is something like P = ((N * M) - (N + M - 1))/K but haven't tried out too many cases.
- kuszi 15y agoa solution given by the contestant: http://bit.ly/rTrO87 http://bit.ly/rTrO87