摘要: n!%k^i==0 TimeLimit:5000MS MemoryLimit:65536KB 64-bit integer IO format:%I64d Problem Description 给你n和k,求最大的i 使得n!%k^i==0 Input 第一行是一个t表测试数据的组数 每组测试数据 阅读全文
posted @ 2016-03-10 20:53 假大空 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 吃糖果 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 31689 Accepted Submission(s): 9011 Problem De 阅读全文
posted @ 2016-03-08 23:23 假大空 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: Not Equal on a Segment TimeLimit:1000MS MemoryLimit:256MB 64-bit integer IO format:%I64d Problem Description You are given array a with n integers and 阅读全文
posted @ 2016-03-03 15:19 假大空 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 士兵队列训练问题(循环链表or队列) TimeLimit:1000MS MemoryLimit:32768KB 64-bit integer IO format:%I64d Problem Description 某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下: 阅读全文
posted @ 2016-03-01 21:28 假大空 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Duff and Weight Lifting TimeLimit:1000MS MemoryLimit:256MB 64-bit integer IO format:%I64d Problem Description Recently, Duff has been practicing weigh 阅读全文
posted @ 2016-02-06 22:43 假大空 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Duff in Love TimeLimit:2000MS MemoryLimit:256MB 64-bit integer IO format:%I64d Problem Description Duff is in love with lovely numbers! A positive int 阅读全文
posted @ 2016-02-06 22:35 假大空 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Duff and Meat TimeLimit:1000MS MemoryLimit:256MB 64-bit integer IO format:%I64d Problem Description Duff is addicted to meat! Malek wants to keep her 阅读全文
posted @ 2016-02-06 22:28 假大空 阅读(178) 评论(0) 推荐(0) 编辑