hdu5643 King's Game(约瑟夫环+线段树)
Problem Description
In order to remember history, King plans to play losephus problem in the parade gap.He calls n(1≤n≤5000) soldiers,
counterclockwise in a circle, in label 1,2,3...n.
The fir
原创
2016-03-17 13:45:29 ·
837 阅读 ·
3 评论