摘要: DNA 【描述】 A kind of virus has attacked the X planet, and many lives are infected. After weeks of study, The CHO (Creature Healthy Organization) of X pl 阅读全文
posted @ 2016-10-27 18:29 Reddest 阅读(480) 评论(0) 推荐(0) 编辑
摘要: Logs Stacking堆木头 总时间限制: 1000ms 内存限制: 131072kB 【描述】 Daxinganling produces a lot of timber. Before loading onto trains, the timberjacks will place the l 阅读全文
posted @ 2016-10-27 14:23 Reddest 阅读(701) 评论(2) 推荐(0) 编辑
摘要: Bullcow 总时间限制: 12000ms 单个测试点时间限制: 1000ms 内存限制: 131072kB 【描述】 一年一度的展会要来临了,农民约翰想要把N(1 <= N <= 100,000)只奶牛和公牛安排在单独的一行中。 约翰发现最近公牛们非常好斗;假如两只公牛在这一行中靠的太近,他们就 阅读全文
posted @ 2016-10-27 12:47 Reddest 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 偶数个数字3 总时间限制: 10000ms 单个测试点时间限制: 1000ms 内存限制: 131072kB 【描述】 在所有的N位数中,有多少个数中有偶数个数字3? 【输入】 一行给出数字N,N<=1000 【输出】 如题 【样例输入】 【样例输出】 【Solution】 用dp[i][1]表示i 阅读全文
posted @ 2016-10-27 11:29 Reddest 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 酒鬼 总时间限制: 2000ms 单个测试点时间限制: 1000ms 内存限制: 131072kB 【描述】 Santo刚刚与房东打赌赢得了一间在New Clondike 的大客厅。今天,他来到这个大客厅欣赏他的奖品。房东摆出了一行瓶子在酒吧上。瓶子里都装有不同体积的酒。令Santo高兴的是,瓶子中 阅读全文
posted @ 2016-10-27 10:42 Reddest 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 核电站 总时间限制: 5000ms 单个测试点时间限制: 1000ms 内存限制: 131072kB 【描述】 一个核电站有N个放核物质的坑,坑排列在一条直线上。如果连续M个坑中放入核物质,则会发生爆炸,于是,在某些坑中可能不放核物质。 任务:对于给定的N和M,求不发生爆炸的放置核物质的方案总数 【 阅读全文
posted @ 2016-10-27 10:12 Reddest 阅读(347) 评论(0) 推荐(0) 编辑