3 comments

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