Open GoogleCodeExporter opened 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
ysq.sinc...@gmail.com
Original issue reported on code.google.com by
ysq.sinc...@gmail.com
on 14 Feb 2014 at 6:45