yibaini / aoapc-book

Automatically exported from code.google.com/p/aoapc-book
1 stars 0 forks source link

刘老师您好,关于训练指南例题26的一点小疑问 #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

例题26 约瑟夫问题的变形
约瑟夫原版问题答案为:f(n)=(f(n-1)+k)%n
该变形问题答案为:(m-k+1+f(n))%n
请问m-k+1是为什么呢?怎么变的?
谢谢!

Original issue reported on code.google.com by ysq.sinc...@gmail.com on 14 Feb 2014 at 6:45