There are 100 people forming a circle and they are numbered from 1 to 100. They decide to kill each other using a sword, in following manner. At any point, person numbered n having a sword kills person numbered n+1 and passes the sword to n+2. This process doesnt stop untill at the end only 1 person remains alive. Initially, person numbered 1 has the sword in hand. Calculate the survivor number. What about any general N ?
Last Survival
最新推荐文章于 2025-05-22 10:54:51 发布
探讨100人围成一圈并按特定规则互相淘汰直至仅剩一人的游戏中,初始持剑者的最终生存编号。同时,寻求适用于任意人数N的一般规律。
399

被折叠的 条评论
为什么被折叠?



