摘要: DescriptionThe cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey their h... 阅读全文
posted @ 2015-10-05 21:06 HTWX 阅读(165) 评论(0) 推荐(0) 编辑
摘要: DescriptionAlas! A set of D (1 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 #define maxn 5001011 #define... 阅读全文
posted @ 2015-10-05 20:28 HTWX 阅读(221) 评论(0) 推荐(0) 编辑
摘要: DescriptionFJ打算带着他可爱的N (1 ≤ N ≤ 2,000)头奶牛去参加”年度最佳老农”的比赛.在比赛中,每个农夫把他的奶牛排成一列,然后准备经过评委检验. 比赛中简单地将奶牛的名字缩写为其头字母(the initial letter of every cow),举个例子,FJ带了B... 阅读全文
posted @ 2015-10-05 17:48 HTWX 阅读(120) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John 想让她的奶牛准备郡级跳跃比赛,贝茜和她的伙伴们正在练习跨栏。她们很累,所以她们想消耗最少的能量来跨栏。 显然,对于一头奶牛跳过几个矮栏是很容易的,但是高栏却很难。于是,奶牛们总是关心路径上最高的栏的高度。 奶牛的训练场中有 N (1 ≤ N ≤ 300)... 阅读全文
posted @ 2015-10-05 09:08 HTWX 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Description农夫约翰正驾驶一条小艇在牛勒比海上航行.海上有N(1≤N≤100)个岛屿,用1到N编号.约翰从1号小岛出发,最后到达N号小岛.一张藏宝图上说,如果他的路程上经过的小岛依次出现了Ai,A2,…,AM(2≤M≤10000)这样的序列(不一定相邻),那他最终就能找到古老的宝藏.但是,... 阅读全文
posted @ 2015-10-05 09:00 HTWX 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John是一个令人惊讶的会计学天才,他已经明白了他可能会花光他的钱,这些钱本来是要维持农场每个月的正常运转的。他已经计算了他以后N(1<=N<=100,000)个工作日中每一天的花费moneyi(1<=moneyi<=10,000),他想要为他连续的M(1<=M 阅读全文
posted @ 2015-10-04 09:56 HTWX 阅读(169) 评论(0) 推荐(0) 编辑
摘要: DescriptionEver the maturing businessman, Farmer John realizes that he must manage his time effectively. He has N jobs conveniently numbered 1..N (1 ... 阅读全文
posted @ 2015-10-04 09:54 HTWX 阅读(205) 评论(1) 推荐(0) 编辑
摘要: DescriptionFarmer John went to cut some wood and left N (2 2 #include 3 #include 4 #include 5 #include 6 #define MAX 100010 7 #define ll long long 8 ... 阅读全文
posted @ 2015-10-04 09:11 HTWX 阅读(131) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John's N (1 2 #include 3 #include 4 #include 5 #include 6 #define MAX 100010 7 #define ll long long 8 #define inf 600000000 9 using... 阅读全文
posted @ 2015-10-04 08:52 HTWX 阅读(125) 评论(0) 推荐(0) 编辑
摘要: DescriptionOh those picky N (1 >>>>>>>>>>>>>>>>>>>>>>>>>>Stall 2 .. c2>>>>>> c4>>>>>>>>> .. ..Stall 3 .. .. c3>>>>>>>>> .. .. .. ..Stall 4 .. .. .. c5 阅读全文
posted @ 2015-10-03 14:38 HTWX 阅读(143) 评论(0) 推荐(0) 编辑