摘要: D. Bad Luck Island time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The Bad Luck Island i 阅读全文
posted @ 2017-04-21 21:28 konjak魔芋 阅读(466) 评论(0) 推荐(0) 编辑
摘要: B. Painting The Wall time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Painting The Wall 阅读全文
posted @ 2017-04-21 20:26 konjak魔芋 阅读(385) 评论(0) 推荐(0) 编辑
摘要: A. Little Pony and Expected Maximum time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Li 阅读全文
posted @ 2017-04-21 19:44 konjak魔芋 阅读(250) 评论(0) 推荐(0) 编辑
摘要: D. Bag of mice time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The dragon and the prince 阅读全文
posted @ 2017-04-21 19:18 konjak魔芋 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 2688: Green Hackenbush Description 有一个古老的游戏叫做Green Hackenbush,游戏是这样进行的:两个人轮流在一棵树上删边,每次删边后不与根联通的子树直接被ignore,不能删边的游戏者输。Alice和Bob也在玩这个游戏,不过他们面对的是n棵树,第i棵树 阅读全文
posted @ 2017-04-21 18:32 konjak魔芋 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1419: Red is good Description 桌面上有R张红牌和B张黑牌,随机打乱顺序后放在桌面上,开始一张一张地翻牌,翻到红牌得到1美元,黑牌则付出1美元。可以随时停止翻牌,在最优策略下平均能得到多少钱。 Input 一行输入两个数R,B,其值在0到5000之间 Output 在最优 阅读全文
posted @ 2017-04-21 16:08 konjak魔芋 阅读(320) 评论(0) 推荐(0) 编辑
摘要: JC的小苹果 Submit: 432 Solved: 159 Description 让我们继续JC和DZY的故事。 “你是我的小丫小苹果,怎么爱你都不嫌多!” “点亮我生命的火,火火火火火!” 话说JC历经艰辛来到了城市B,但是由于他的疏忽DZY偷走了他的小苹果!没有小苹果怎么听歌!他发现邪恶的D 阅读全文
posted @ 2017-04-21 14:40 konjak魔芋 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 未经博主同意不能转载 4558: [JLoi2016]方 Description 上帝说,不要圆,要方,于是便有了这道题。由于我们应该方,而且最好能够尽量方,所以上帝派我们来找正方形 上帝把我们派到了一个有N行M列的方格图上,图上一共有(N+1)×(M+1)个格点,我们需要做的就是找出这些格点形 成 阅读全文
posted @ 2017-04-21 09:25 konjak魔芋 阅读(311) 评论(0) 推荐(1) 编辑