摘要: Musical Chairs(约瑟夫环问题) TimeLimit:1000MS MemoryLimit:32768KB 64-bit integer IO format:%I64d Problem Description In the traditional game of Musical Chai 阅读全文
posted @ 2016-03-05 17:37 假大空 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Joseph(循环链表) TimeLimit:1000MS MemoryLimit:32768KB 64-bit integer IO format:%I64d Problem Description The Joseph's problem is notoriously known. For th 阅读全文
posted @ 2016-03-05 17:35 假大空 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 小孩报数问题(循环链表) TimeLimit:1000MS MemoryLimit:65536K 64-bit integer IO format:%lld Problem Description 有N个小孩围成一圈,给他们从1开始依次编号,现指定从第W个开始报数,报到第S个时,该小孩出列,然后从下 阅读全文
posted @ 2016-03-05 17:30 假大空 阅读(557) 评论(0) 推荐(0) 编辑