【枚举、打表】
Mr丶Gao
加油!
展开
-
HDU 1015.Safecracker【暴力枚举】【8月17】
SafecrackerProblem Description=== Op tech briefing, 2002/11/02 06:42 CST === "The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely ra原创 2015-08-17 13:11:03 · 712 阅读 · 0 评论 -
HDU 1172.猜数字【思路转换,思维练习】【枚举】【8月8】
猜数字Problem Description猜数字游戏是gameboy最喜欢的游戏之一。游戏的规则是这样的:计算机随机产生一个四位数,然后玩家猜这个四位数是什么。每猜一个数,计算机都会告诉玩家猜对几个数字,其中有几个数字在正确的位置上。比如计算机随机产生的数字为1122。如果玩家猜1234,因为1,2这两个数字同时存在于这两个数中,而且1在这两个数中的位置是相同的,所以计算原创 2015-08-08 21:42:22 · 934 阅读 · 0 评论 -
HDU 1016.Prime Ring Problem【DFS(递归)】【素数打表】【8月17】
Prime Ring ProblemProblem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent c原创 2015-08-17 14:08:33 · 596 阅读 · 0 评论 -
HDU 1003.Max Sum【最大连续子序列和】【8月14】
Max SumProblem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is原创 2015-08-14 18:36:26 · 610 阅读 · 0 评论 -
HDU 4548.美素数【打表】【预处理】【8月11】
美素数Problem Description 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能计算出这个区间内有多少个美素数吗?原创 2015-08-11 14:08:47 · 577 阅读 · 0 评论 -
HDU 1006.Tick and Tick【11月12】【很久没写博客了】
Tick and TickProblem DescriptionThe three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and each of them would like原创 2015-11-12 17:30:16 · 1071 阅读 · 0 评论 -
HDU 5867.Water problem【打表】【8月20】
Water problemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 233 Accepted Submission(s): 158Problem DescriptionIf the numbers原创 2016-08-20 16:46:50 · 434 阅读 · 0 评论 -
HDU 1007.Quoit Design【分治法】【投机取巧(枚举)】【9月9】【16年8月12更新分治法】
Quoit DesignProblem DescriptionHave you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the field原创 2015-09-09 11:15:35 · 478 阅读 · 0 评论