Hacker News new | ask | show | jobs
by _THE_PLAGUE 5326 days ago
Seems like this is something like P = ((N * M) - (N + M - 1))/K but haven't tried out too many cases.
1 comments

a solution given by the contestant: http://bit.ly/rTrO87