QWQ跪求大神帮助!!
约瑟夫问题如下!
n people are standing in a circle waiting to be executed. Counting begins at start point in the circle and proceeds around the circle. Counting from 1 to k, kth person is executed. The procedure is repeated with the remaining people, starting with the next person, skipping the same number of people, until only one person remains, and is freed. Who is the lucky person?
然后这道题就是报数吧我觉得QWQ。。写出来答案和标准答案不一样求前辈们指点_(:зゝ∠)_
约瑟夫问题如下!
n people are standing in a circle waiting to be executed. Counting begins at start point in the circle and proceeds around the circle. Counting from 1 to k, kth person is executed. The procedure is repeated with the remaining people, starting with the next person, skipping the same number of people, until only one person remains, and is freed. Who is the lucky person?
然后这道题就是报数吧我觉得QWQ。。写出来答案和标准答案不一样求前辈们指点_(:зゝ∠)_