题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1575 算是模板吧     Read More
posted @ 2016-03-15 20:33 西瓜不懂柠檬的酸 Views(142) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5643    约瑟夫环问题的原来描述为,设有编号为1,2,……,n的n(n>0)个人围成一个圈,从第1个人开始报数,报到k时停止报数,报k的人出圈,再从他的下一个人起重新报数,报到m时停止报数,报k的出圈 Read More
posted @ 2016-03-15 13:41 西瓜不懂柠檬的酸 Views(461) Comments(0) Diggs(0)
levels of contents