Game of Throwns

From programming_contest
Jump to navigation Jump to search

This problem asks you to simulate a specified game. Just do what it says, modding to deal with wrap around, and push the new value to a stack. Pop for undo.