恒邪

2014年3月20日 #

[ACM] hdu 1114 Piggy-Bank(完全背包)

摘要: Piggy-BankTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9921Accepted Submission(s): 4997Problem 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 @ 2014-03-20 17:45 恒邪 阅读(256) 评论(0) 推荐(0) 编辑

[ACM] hdu 2602 Bone Collector(01背包)

摘要: Bone CollectorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 25042Accepted Submission(s): 10147Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such 阅读全文

posted @ 2014-03-20 17:30 恒邪 阅读(159) 评论(0) 推荐(0) 编辑

[ACM] hdu 1016 Prime Ring Problem (DFS)

摘要: Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23268Accepted Submission(s): 10363Problem 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 n 阅读全文

posted @ 2014-03-20 15:28 恒邪 阅读(125) 评论(0) 推荐(0) 编辑

[蓝桥杯历届题目] 黄金队列

摘要: 黄金分割数0.618与美学有重要的关系。舞台上报幕员所站的位置大约就是舞台宽度的0.618处,墙上的画像一般也挂在房间高度的0.618处,甚至股票的波动据说也能找到0.618的影子....黄金分割数是个无理数,也就是无法表示为两个整数的比值。0.618只是它的近似值,其真值可以通过对5开方减去1再除以2来获得,我们取它的一个较精确的近似值:0.618034有趣的是,一些简单的数列中也会包含这个无理数,这很令数学家震惊!134711182947....称为“鲁卡斯队列”。它后面的每一个项都是前边两项的和。如果观察前后两项的比值,即:1/3,3/4,4/7,7/11,11/18...会发现它越来越 阅读全文

posted @ 2014-03-20 14:39 恒邪 阅读(179) 评论(0) 推荐(0) 编辑

导航