You are viewing a single comment's thread. Return to all comments →
def saveThePrisoner(n, m, s):
m = m - 1 p = s + m r = p % n if r == 0: return n else: return r
Seems like cookies are disabled on this browser, please enable them to open this website
Save the Prisoner!
You are viewing a single comment's thread. Return to all comments →
def saveThePrisoner(n, m, s):