zhber
有好多做过的题没写下来,如果我还能记得就补吧
摘要: C. Cardiogramtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem, your task is to use... 阅读全文
posted @ 2014-05-31 23:35 zhber 阅读(231) 评论(0) 推荐(0) 编辑
摘要: A. Queue on Bus Stoptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's that time of the year wh... 阅读全文
posted @ 2014-05-31 23:32 zhber 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Description约翰遭受了重大的损失:蟑螂吃掉了他所有的干草,留下一群饥饿的牛.他乘着容量为C(1≤C≤50000)个单位的马车,去顿因家买一些干草.顿因有H(1≤H≤5000)包干草,每一包都有它的体积Vi(l≤Vi≤C).约翰只能整包购买,他最多可以运回多少体积的干草呢?Input第1行输... 阅读全文
posted @ 2014-05-31 23:02 zhber 阅读(171) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John有一个过时的打谷机(收割小麦),它需要带子来带动。发动机驱动轮1总是顺时针旋转的,用来带动转轮2,转轮2来带动转轮3,等等。一共有n(2#include#includeusing namespace std;int n,cnt;struct edge{ ... 阅读全文
posted @ 2014-05-31 22:53 zhber 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(184) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John已经决定把水灌到他的n(1#include#include#includeusing namespace std;struct node{ int x,y,c;}dat[100000];int n,cnt,sum,ans;int map[301][3... 阅读全文
posted @ 2014-05-31 22:46 zhber 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 某种数列问题 (jx.cpp/c/pas) 1000MS 256MB众所周知,chenzeyu97有无数的妹子(阿掉!>_#include#include#define maxn 1000001using namespace std;inline int read(){ int x=0,f=1... 阅读全文
posted @ 2014-05-31 22:28 zhber 阅读(353) 评论(1) 推荐(2) 编辑
摘要: 水灾(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 阅读(221) 评论(0) 推荐(0) 编辑