链接 Cow Contest Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu 链接 Cow Contest 链接 Cow Contest Description N (1 ≤ N ≤ 100) cows, conv ...
分类:
编程语言 时间:
2016-08-11 00:23:11
阅读次数:
296
题目: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each ...
分类:
其他好文 时间:
2016-08-10 12:26:32
阅读次数:
134
题意:给定 n 个数,让你修改最少的数,使得这是一个不下降序列。 析:和3670一思路,就是一个LIS,也可以直接暴力,因为只有两个数,所以可以枚举在哪分界,左边是1,右边是2,更新答案。 代码如下: ...
分类:
其他好文 时间:
2016-08-09 20:39:00
阅读次数:
144
题目地址:http://poj.org/problem?id=3261 题目: Description Farmer John has noticed that the quality of milk given by his cows varies from day to day. On furt ...
分类:
编程语言 时间:
2016-08-09 00:17:52
阅读次数:
232
Aggressive cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11192 Accepted: 5492 Description Farmer John has built a new long barn, wit ...
分类:
其他好文 时间:
2016-08-07 21:25:20
阅读次数:
218
Cow Patterns Description A particular subgroup of K (1 <= K <= 25,000) of Farmer John's cows likes to make trouble. When placed in a line, these troub ...
分类:
编程语言 时间:
2016-08-07 15:30:20
阅读次数:
580
Description To improve the organization of his farm, Farmer John labels each of his N (1 <= N <= 5,000) cows with a distinct serial number in the rang ...
分类:
其他好文 时间:
2016-08-07 12:29:04
阅读次数:
170
题意: 大概就是一条线上有n个炸弹,然后让你随意扔一个爆炸半径为r的炸弹使他们全部爆炸, 第一次被引爆的炸弹爆炸半径为r-1,第二次为r-2。。。 求r最小是多少 思路: 用两个数组处理得到从左往右和从右往左到当前炸弹时的爆炸半径最小是多少,然后枚举投弹位置就可以了 ...
分类:
其他好文 时间:
2016-08-06 15:53:54
阅读次数:
138
Subsequences Summing to Sevens 题目描述 Farmer John's N cows are standing in a row, as they have a tendency to do from time to time. Each cow is labeled w ...
分类:
其他好文 时间:
2016-08-06 00:19:21
阅读次数:
189
Time Limit: 1000MS Description Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows nu ...
分类:
其他好文 时间:
2016-08-04 19:11:10
阅读次数:
173