题目描述 Although Farmer John has no problems walking around the fair to collect prizes or see the shows, his cows are not in such good shape; a full day ...
分类:
其他好文 时间:
2017-10-19 11:07:31
阅读次数:
188
Farmer John has decided to reward his cows for their hard work by taking them on a tour of the big city! The cows must decide how best to spend their ...
分类:
其他好文 时间:
2017-10-16 21:54:59
阅读次数:
216
题目描述 A little known fact about Bessie and friends is that they love stair climbing races. A better known fact is that cows really don't like going dow ...
分类:
其他好文 时间:
2017-10-12 13:12:49
阅读次数:
210
题意 : 给出 n 个模式串,最后给出一个主串,问你主串打乱重组的情况下,最多能够包含多少个模式串。 分析 : 如果你做过类似 Trie图 || AC自动机 + DP 类似的题目的话,那么这道题相对之前的对于主串的“构造”过程加上了一个限制,那就是字符的元素的有限制的,那么DP的状态就不能用长度来表 ...
分类:
其他好文 时间:
2017-10-12 01:02:24
阅读次数:
207
题目描述 FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numb ...
分类:
其他好文 时间:
2017-10-11 20:31:38
阅读次数:
203
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=3314 题意: N头牛在一个坐标轴上,每头牛有个高度。现给出一个距离值D。 如果某头牛在它的左边,在距离D的范围内,如果找到某个牛的高度至少是它的两倍,且在右边也能找到这样的牛的话。则此牛会感 ...
分类:
其他好文 时间:
2017-10-11 11:10:24
阅读次数:
147
题意 : 农夫 John 建造了一座很长的畜栏,它包括N (2 <= N <= 100,000)个隔间,这些小隔间依次编号为x1,...,xN (0 <= xi <= 1e9)。但是,John的C (2 <= C <= N)头牛们并不喜欢这种布局,而且几头牛放在一个隔间里,他们就要发生争斗。为了不让 ...
分类:
其他好文 时间:
2017-10-10 23:19:50
阅读次数:
195
P3052 [USACO12MAR]摩天大楼里的奶牛Cows in a Skyscraper P3052 [USACO12MAR]摩天大楼里的奶牛Cows in a Skyscraper P3052 [USACO12MAR]摩天大楼里的奶牛Cows in a Skyscraper 题目描述 A li ...
分类:
其他好文 时间:
2017-10-10 19:03:40
阅读次数:
163
NOIP 模拟赛2017 年10 ?5 ?题?名称拼不出的数整除钻?可执??件名lost div diamond输??件名lost.in div.in diamond.in输出?件名lost.out div.out diamond.out每个测试点时限1 秒1 秒1 秒内存限制256MB 256MB ...
分类:
其他好文 时间:
2017-10-10 00:09:42
阅读次数:
149
T1 拼不出的数 lost.in/.out/.cpp【问题描述】3 个元素的集合{5; 1; 2}的所有子集的和分别是0; 1; 2; 3; 5; 6; 7; 8。发现最小的不能由该集合子集拼出的数字是4。现在给你一个n 个元素的集合,问你最小的不能由该集合子集拼出的数字是多少。注意32 位数字表示 ...
分类:
其他好文 时间:
2017-10-09 22:42:06
阅读次数:
240