[1217] Dinner 时间限制: 1000 ms 内存限制: 32768 K 问题描写叙述 Little A is one member of ACM team. He had just won the gold in World Final. To celebrate, he decided ...
分类:
其他好文 时间:
2017-06-04 11:48:52
阅读次数:
172
Farmer John has decided to construct electric fences. He has fenced his fields into a number of bizarre shapes and now must find the optimal place to ...
分类:
其他好文 时间:
2017-06-04 10:48:40
阅读次数:
272
题目链接: http://train.usaco.org/usacoprob2?a=p8taXWtZBpU&S=milk2 题目描述: 给出n组数, 求出最长连续有数区间与最长连续无数区间 解题思路: 简单贪心, 先排序, 然后如果有交集判断右端点,如果右端点大则延伸, 否则continue, 如果 ...
分类:
其他好文 时间:
2017-06-04 00:53:44
阅读次数:
235
133. [USACO Mar08] 牛跑步 ★★★ 输入文件:cowjog.in 输出文件:cowjog.out 简单对比时间限制:1 s 内存限制:128 MB $Bessie$准备用从牛棚跑到池塘的方法来锻炼. 但是因为她懒,她只准备沿着下坡的路跑到池塘,然后走回牛棚. $Bessie$也不想 ...
分类:
其他好文 时间:
2017-06-03 22:39:31
阅读次数:
231
A square arrangement of numbers is a 5 x 5 Latin Square because each whole number from 1 to 5 appears once and only once in each row and column. Write ...
分类:
其他好文 时间:
2017-06-03 22:29:59
阅读次数:
255
http://cogs.pro/cogs/problem/problem.php?pid=1588 ★★ 输入文件:dquery.in 输出文件:dquery.out 简单对比时间限制:1 s 内存限制:256 MB 【题目描述】 农夫约翰有N(2<=N<=40000)个农场,标号1到N。M(2<= ...
分类:
其他好文 时间:
2017-06-03 12:41:27
阅读次数:
297
codevs——1861 奶牛的数字游戏 2006年USACO 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 青铜 Bronze 题解 codevs——1861 奶牛的数字游戏 2006年USACO codevs——1861 奶牛的数字游戏 2006年USACO 时间限制: 1 ...
分类:
其他好文 时间:
2017-06-02 22:56:44
阅读次数:
180
方格取数。 但由于题意说金币数<0就死了,就不能继续转移。 ...
分类:
其他好文 时间:
2017-06-02 22:09:20
阅读次数:
272
洛谷——P1201 [USACO1.1]贪婪的送礼者Greedy Gift Givers codevs——1381 贪婪的礼物送礼者 USACO 题目描述 对于一群(NP个)要互送礼物的朋友,GY要确定每个人送出的钱比收到的多多少。在这一个问题中,每个人都准备了一些钱来送礼物,而这些钱将会被平均分给 ...
分类:
其他好文 时间:
2017-06-02 22:04:42
阅读次数:
175
codevs——4163 hzwer与逆序对 貌似这个题和上个题是一样的((⊙o⊙)…) 时间限制: 1 s 空间限制: 256000 KB 题目等级 : 黄金 Gold 题解 codevs——4163 hzwer与逆序对 貌似这个题和上个题是一样的((⊙o⊙)…) codevs——4163 hzw ...
分类:
其他好文 时间:
2017-06-02 21:14:42
阅读次数:
309