Easy15 pts
Save the Prisoner!
n prisoners, m sweets, start s. Pass m-1. Who gets the last? 1-indexed.
Input
t; each: n m s
Output
Prisoner id per test.
Sample
2 5 2 1 5 2 2
Expected
2 3
Loading editor…
Output
No output yet. Run your code to see results.