题目:有n个人围成一圈,顺序排号。从第一个人开始报数(从1到3报数),凡报到3的人退出圈子,问最后留下的是原来第几号的那位。
程序源代码:
以上实例输出结果为:
作者:企业动态
https://www.supersauna.de/catalogsearch/result/?q=蜘蛛池出租【tg:seogoogle987】,ucc
https://www.nss.nhs.scot/search?q=蜘蛛池出租【tg:seogoogle987】,E4j
https://www.sweat.com/collections/vendors?q=蜘蛛池出租【tg:seogoogle987】,fXE
https://www.paulaschoice.hk/zh_hant/catalogsearch/result/?q=蜘蛛池出租【tg:seogoogle987】,wSX
https://www.openspaceinstitute.org/search?q=蜘蛛池出租【tg:seogoogle987】,sDF
https://www.olx.ba/pretraga?trazilica=蜘蛛池出租【tg:seogoogle987】,tQL
https://www.maigoo.com/search/?block=&q=蜘蛛池出租【tg:seogoogle987】,Kj6
https://www.madebyoranges.com/nl/search/蜘蛛池出租【tg:seogoogle987】,OQv
https://www.tarleton.edu/?s=蜘蛛池出租【tg:seogoogle987】,UHx
https://www.urmc.rochester.edu/news/search?q=蜘蛛池出租【tg:seogoogle987】,QkV