zhber
有好多做过的题没写下来,如果我还能记得就补吧

随笔分类 -  bzoj

上一页 1 ··· 4 5 6 7 8
bzoj1677[Usaco2005 Jan]Sumsets 求和
摘要:DescriptionFarmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that are an in... 阅读全文
posted @ 2014-06-15 23:51 zhber 阅读(137) 评论(0) 推荐(0)
bzoj1680[Usaco2005 Mar]Yogurt factory
摘要:DescriptionThe cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 inline int read(){ int x=0,f=1;char ch... 阅读全文
posted @ 2014-06-15 23:30 zhber 阅读(186) 评论(0) 推荐(0)
2014.6.14模拟赛【bzoj1592】[Usaco2008 Feb]Making the Grade 路面修整
摘要:DescriptionFJ打算好好修一下农场中某条凹凸不平的土路。按奶牛们的要求,修好后的路面高度应当单调上升或单调下降,也就是说,高度上升与高度下降的路段不能同时出现在修好的路中。 整条路被分成了N段,N个整数A_1, ... , A_N (1 #include#include#include#d... 阅读全文
posted @ 2014-06-14 22:05 zhber 阅读(292) 评论(0) 推荐(0)
2014.6.14模拟赛【bzoj1646】[Usaco2007 Open]Catch That Cow 抓住那只牛
摘要:DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 #include#incl... 阅读全文
posted @ 2014-06-14 21:39 zhber 阅读(175) 评论(0) 推荐(0)
bzoj1616[Usaco2008 Mar]Cow Travelling游荡的奶牛
摘要:Description奶牛们在被划分成N行M列(2 #include#include#include#includeusing namespace std;const int mx[4]={0,1,0,-1};const int my[4]={1,0,-1,0};inline int read(){... 阅读全文
posted @ 2014-06-09 23:18 zhber 阅读(192) 评论(0) 推荐(0)
bzoj3400[Usaco2009 Mar]Cow Frisbee Team 奶牛沙盘队
摘要:Description农夫顿因开始玩飞盘之后,约翰也打算让奶牛们享受飞盘的乐趣.他要组建一只奶牛飞盘队.他的N(1≤N≤2000)只奶牛,每只部有一个飞盘水准指数Ri(1≤Ri≤100000).约翰要选出1只或多于1只奶牛来参加他的飞盘队.由于约翰的幸运数字是F(1≤F≤1000),他希望所有奶牛的... 阅读全文
posted @ 2014-06-07 01:24 zhber 阅读(176) 评论(0) 推荐(0)
bzoj1707[Usaco2007 Nov]tanning分配防晒霜
摘要:Description奶牛们计划着去海滩上享受日光浴。为了避免皮肤被阳光灼伤,所有C(1 =x的牛开始找起——剪枝就在这里其他没有了……暴力呗#include#includeusing namespace std;int n,m,ans,now=1;int l[3000],r[3000];struc... 阅读全文
posted @ 2014-06-06 22:42 zhber 阅读(175) 评论(0) 推荐(0)
bzoj1617[Usaco2008 Mar]River Crossing渡河问题
摘要:DescriptionFarmer John以及他的N(1 #includeusing namespace std;int a[3000];int f[3000][2];int main(){int n,m;scanf("%d%d",&n,&m);for (int i=1;i<=n;i++) {sc... 阅读全文
posted @ 2014-06-03 11:23 zhber 阅读(166) 评论(0) 推荐(0)
bzoj1666[Usaco2006 Oct]Another Cow Number Game 奶牛的数字游戏
摘要:Description奶牛们又在玩一种无聊的数字游戏。输得很郁闷的贝茜想请你写个程序来帮她在开局时预测结果。在游戏的开始,每头牛都会得到一个数N(1#include#include#include#include#includeusing namespace std;inline int read(... 阅读全文
posted @ 2014-06-02 23:28 zhber 阅读(235) 评论(0) 推荐(0)
bzoj1708[Usaco2007 Oct]Money奶牛的硬币
摘要:Description在创立了她们自己的政权之后,奶牛们决定推广新的货币系统。在强烈的叛逆心理的驱使下,她们准备使用奇怪的面值。在传统的货币系统中,硬币的面值通常是1,5,10,20或25,50,以及100单位的货币,有时为了更方便地交易,会发行面值为2单位的硬币。 奶牛们想知道,对于一个给定的货币... 阅读全文
posted @ 2014-06-02 22:53 zhber 阅读(221) 评论(0) 推荐(0)
bzoj1618[Usaco2008 Nov]Buying Hay 购买干草
摘要:Description约翰的干草库存已经告罄,他打算为奶牛们采购日(1≤日≤50000)磅干草.他知道N(1≤N≤100)个干草公司,现在用1到N给它们编号.第i个公司卖的干草包重量为Pi(1≤Pi≤5000)磅,需要的开销为Ci(l≤Ci≤5000)美元.每个干草公司的货源都十分充足,可以卖出无限... 阅读全文
posted @ 2014-06-02 22:41 zhber 阅读(170) 评论(0) 推荐(0)
bzoj1606[Usaco2008 Dec]Hay For Sale 购买干草
摘要:Description约翰遭受了重大的损失:蟑螂吃掉了他所有的干草,留下一群饥饿的牛.他乘着容量为C(1≤C≤50000)个单位的马车,去顿因家买一些干草.顿因有H(1≤H≤5000)包干草,每一包都有它的体积Vi(l≤Vi≤C).约翰只能整包购买,他最多可以运回多少体积的干草呢?Input第1行输... 阅读全文
posted @ 2014-05-31 23:02 zhber 阅读(177) 评论(0) 推荐(0)
bzoj1603 [Usaco2008 Oct]打谷机
摘要:DescriptionFarmer John有一个过时的打谷机(收割小麦),它需要带子来带动。发动机驱动轮1总是顺时针旋转的,用来带动转轮2,转轮2来带动转轮3,等等。一共有n(2#include#includeusing namespace std;int n,cnt;struct edge{ ... 阅读全文
posted @ 2014-05-31 22:53 zhber 阅读(235) 评论(0) 推荐(0)
bzoj1602 [Usaco2008 Oct]牧场行走
摘要:DescriptionN头牛(2#include#includeusing namespace std;struct aaa{ int to,next,v;}e[5000000];int n,m,cnt,x,y,z;int head[100000];int map[1001][1001];bo... 阅读全文
posted @ 2014-05-31 22:51 zhber 阅读(190) 评论(0) 推荐(0)
bzoj1600 [Usaco2008 Oct]建造栅栏
摘要:Description勤奋的Farmer John想要建造一个四面的栅栏来关住牛们。他有一块长为n(4using namespace std;int n,i,f[2505];int main(){ scanf("%d",&n); if(n<4) {printf("0\n");return 0;}... 阅读全文
posted @ 2014-05-31 22:36 zhber 阅读(166) 评论(0) 推荐(0)
2014.5.31模拟赛【水灾】
摘要:水灾(sliker.cpp/c/pas) 1000MS 64MB大雨应经下了几天雨,却还是没有停的样子。土豪CCY刚从外地赚完1e元回来,知道不久除了自己别墅,其他的地方都将会被洪水淹没。CCY所在的城市可以用一个N*M(N,M#includeusing namespace std;int n,m;... 阅读全文
posted @ 2014-05-31 22:17 zhber 阅读(223) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8