
一、題目
Josephus Problem
There are people standing in a circle waiting to be executed. After the first person is executed, certain number of people is skipped and one person is executed. Then again, people are skipped and a person is executed. The elimination proceeds around the circle (which is becoming smaller and smaller as the executed people are removed), until only the last person remains, who is given freedom.

