摘要: IntervalsTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 22503Accepted: 8506DescriptionYou are given n closed, integer intervals [ai, bi] and... 阅读全文
posted @ 2015-03-28 23:10 daydaycode 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Burn the Linked CampTime Limit: 2 Seconds Memory Limit: 65536 KBIt is well known that, in the period of The Three Empires, Liu Bei, the emperor of ... 阅读全文
posted @ 2015-03-28 20:48 daydaycode 阅读(276) 评论(0) 推荐(0) 编辑
摘要: DescriptionGive you a sequence of n numbers, and a number k you should find the max length of Good subsequence. Good subsequence is a continuous subse... 阅读全文
posted @ 2015-03-28 18:34 daydaycode 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题意:你有X元钱,进行M轮赌博游戏。每一轮可以将所持的任意一部分钱作为赌注(赌注为0元表示这一轮不押),赌注可以是小数的,不是一定要整数。每一轮 赢的概率为P,赢了赌注翻倍,输了赌注就没了。如果你最后持有至少1000000元钱的话,就可以把钱全部带走。要求计算在采取最优策略时,获得至少 100000... 阅读全文
posted @ 2015-03-28 11:26 daydaycode 阅读(945) 评论(0) 推荐(0) 编辑