无谓的味道

导航

2015年9月21日 #

poj 1611 The Suspects(简单并查集)

摘要: The SuspectsTime Limit:1000MSMemory Limit:20000KTotal Submissions:28195Accepted:13741DescriptionSevere acute respiratory syndrome (SARS), an atypical ... 阅读全文

posted @ 2015-09-21 20:42 无谓的味道 阅读(160) 评论(0) 推荐(0) 编辑

poj 2965 The Pilots Brothers' refrigerator

摘要: DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles ... 阅读全文

posted @ 2015-09-21 19:45 无谓的味道 阅读(161) 评论(0) 推荐(0) 编辑

2015年9月20日 #

poj 1753 Flip Game

摘要: DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and ... 阅读全文

posted @ 2015-09-20 15:15 无谓的味道 阅读(157) 评论(0) 推荐(0) 编辑

2015年9月13日 #

SDIBT 2345 (3.2.1 Factorials 阶乘)

摘要: DescriptionN的阶乘写作N!表示小于等于N的所有正整数的乘积。阶乘会很快的变大,如13!就必须用32位整数类型来存储,70!即使用浮点数也存不下了。你的任务是找到阶乘最后面的非零位。举个例子,5!=1*2*3*4*5=120所以5!的最后面的非零位是2,7!=1*2*3*4*5*6*7=5... 阅读全文

posted @ 2015-09-13 15:43 无谓的味道 阅读(322) 评论(0) 推荐(0) 编辑

2015年8月15日 #

HDU 1176 免费馅饼

摘要: Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,... 阅读全文

posted @ 2015-08-15 10:57 无谓的味道 阅读(165) 评论(0) 推荐(0) 编辑

HDU 1058 Humble Numbers

摘要: DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18,... 阅读全文

posted @ 2015-08-15 09:25 无谓的味道 阅读(161) 评论(0) 推荐(0) 编辑

2015年8月14日 #

HDU 1003 MAXSUM(最大子序列和)

摘要: 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 ma... 阅读全文

posted @ 2015-08-14 15:19 无谓的味道 阅读(150) 评论(0) 推荐(0) 编辑

2015年8月13日 #

HDU1864 最大报销额

摘要: Description现有一笔经费可以报销一定额度的发票。允许报销的发票类型包括买图书(A类)、文具(B类)、差旅(C类),要求每张发票的总额不得超过1000元,每张发票上,单项物品的价值不得超过600元。现请你编写程序,在给出的一堆发票中找出可以报销的、不超过给定额度的最大报销额。Input测试输... 阅读全文

posted @ 2015-08-13 17:33 无谓的味道 阅读(148) 评论(0) 推荐(0) 编辑

HDU 1114 Piggy-Bank(完全背包)

摘要: DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes f... 阅读全文

posted @ 2015-08-13 15:54 无谓的味道 阅读(149) 评论(0) 推荐(0) 编辑

POJ 3624 Charm Bracelet

摘要: Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from theN(1 ≤... 阅读全文

posted @ 2015-08-13 14:43 无谓的味道 阅读(149) 评论(0) 推荐(0) 编辑