3 comments

[ 2.8 ms ] story [ 16.0 ms ] thread
Seems like this is something like P = ((N * M) - (N + M - 1))/K but haven't tried out too many cases.