以上来源于: WordNet
This problem is a variant of the Josephus problem which can be solved with segment tree.
这个问题是约瑟夫问题的一个变种,可以用线段树解决。
In the Vol. 23 of Fang Zhongtong's mathematical work Shudu Yan (1687) a problem which belongs to the system of Josephus' Problem. It is the only appearance of this kind of problem in China.
方中通《数度衍》卷23中列有一个属于约瑟夫斯问题的题目,这是目前所知中国古算书中惟一的一个有关的题目。
应用推荐