发信人: pcasnik (pcasnik), 信区: BrainTeaser
标 题: Re: 微软brainteaser (转载)
发信站: BBS 未名空间站 (Mon Dec 7 22:40:18 2009, 美东)
write N (not a power of 2) in base 2, remove the first digit "1",
then put one "0" at the end.
this Josephus problem has been discussed before on this board:
http://www.mitbbs.com/article_t/BrainTeaser/31166663.html
--
※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 99.32.]
|