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

随笔分类 -  贪心

1 2 3 下一页
cf287E Main Sequence
摘要:As you know, Vova has recently become a new shaman in the city of Ultima Thule. So, he has received the shaman knowledge about the correct bracket seq 阅读全文
posted @ 2017-08-04 10:41 zhber 阅读(216) 评论(0) 推荐(0)
cf725F Family Photos
摘要:Alice and Bonnie are sisters, but they don't like each other very much. So when some old family photos were found in the attic, they started to argue 阅读全文
posted @ 2017-08-04 10:30 zhber 阅读(317) 评论(0) 推荐(0)
cf3D Least Cost Bracket Sequence
摘要:This is yet another problem on regular bracket sequences. A bracket sequence is called regular, if by inserting "+" and "1" into it we get a correct m 阅读全文
posted @ 2017-07-24 16:31 zhber 阅读(349) 评论(0) 推荐(0)
Spoj-VISIBLEBOX Decreasing Number of Visible Box
摘要:Shadowman loves to collect box but his roommates woogieman and itman don't like box and so shadowman wants to hide boxes as many as possible. A box ca 阅读全文
posted @ 2017-07-12 00:20 zhber 阅读(225) 评论(0) 推荐(0)
cf299C Weird Game
摘要:Weird Game Yaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn't show up, Yaroslav and Andre 阅读全文
posted @ 2017-07-11 22:45 zhber 阅读(350) 评论(0) 推荐(0)
LightOJ1106 Gone Fishing
摘要:Gone Fishing John is going on a fishing trip. He has h hours available, and there are n lakes in the area all reachable along a single, one-way road. 阅读全文
posted @ 2017-07-11 22:10 zhber 阅读(170) 评论(0) 推荐(0)
bzoj4096 [Usaco2013 dec]Milk Scheduling
摘要:DescriptionFarmer John has N cows that need to be milked (1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 priority_queue q; 8 ... 阅读全文
posted @ 2015-09-28 22:45 zhber 阅读(193) 评论(0) 推荐(0)
cf581C Developing Skills
摘要:Petya loves computer games. Finally a game that he's been waiting for so long came out!The main character of this game hasndifferent skills, each of w... 阅读全文
posted @ 2015-09-28 22:31 zhber 阅读(388) 评论(0) 推荐(0)
bzoj3850 ZCC Loves Codefires
摘要:DescriptionThough ZCC has many Fans, ZCC himself is a crazy Fan of a coder, called "Memset137".It was on Codefires(CF), an online competitive programm... 阅读全文
posted @ 2015-02-01 19:27 zhber 阅读(212) 评论(0) 推荐(0)
cf509C Sums of Digits
摘要:C. Sums of Digitstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya had astrictly increasings... 阅读全文
posted @ 2015-02-01 16:41 zhber 阅读(461) 评论(0) 推荐(0)
cf509B Painting Pebbles
摘要:B. Painting Pebblestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere arenpiles of pebbles on ... 阅读全文
posted @ 2015-02-01 16:34 zhber 阅读(236) 评论(0) 推荐(0)
cf500C New Year Book Reading
摘要:C. New Year Book Readingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNew Year is coming, and ... 阅读全文
posted @ 2014-12-31 20:46 zhber 阅读(300) 评论(0) 推荐(0)
bzoj3790 神奇项链
摘要:Description母亲节就要到了,小 H 准备送给她一个特殊的项链。这个项链可以看作一个用小写字母组成的字符串,每个小写字母表示一种颜色。为了制作这个项链,小 H 购买了两个机器。第一个机器可以生成所有形式的回文串,第二个机器可以把两个回文串连接起来,而且第二个机器还有一个特殊的性质:假如一个字... 阅读全文
posted @ 2014-12-23 23:28 zhber 阅读(194) 评论(0) 推荐(0)
bzoj3750 [POI2015]Pieczęć
摘要:Description一张n*m的方格纸,有些格子需要印成黑色,剩下的格子需要保留白色。你有一个a*b的印章,有些格子是凸起(会沾上墨水)的。你需要判断能否用这个印章印出纸上的图案。印的过程中需要满足以下要求:(1)印章不可以旋转。(2)不能把墨水印到纸外面。(3)纸上的同一个格子不可以印多次。In... 阅读全文
posted @ 2014-12-23 09:59 zhber 阅读(309) 评论(0) 推荐(0)
cf494A Treasure
摘要:A. Treasuretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMalek has recently found a treasure m... 阅读全文
posted @ 2014-12-14 11:13 zhber 阅读(269) 评论(0) 推荐(0)
bzoj3174 [Tjoi2013]拯救小矮人
摘要:Description一群小矮人掉进了一个很深的陷阱里,由于太矮爬不上来,于是他们决定搭一个人梯。即:一个小矮人站在另一小矮人的 肩膀上,知道最顶端的小矮人伸直胳膊可以碰到陷阱口。对于每一个小矮人,我们知道他从脚到肩膀的高度Ai,并且他的胳膊长度为Bi。陷阱深度为H。如果我 们利用矮人1,矮人2,矮... 阅读全文
posted @ 2014-12-11 22:29 zhber 阅读(660) 评论(0) 推荐(0)
bzoj1528 [POI2005]sam-Toy Cars
摘要:DescriptionJasio 是一个三岁的小男孩,他最喜欢玩玩具了,他有n 个不同的玩具,它们都被放在了很高的架子上所以Jasio 拿不到它们. 为了让他的房间有足够的空间,在任何时刻地板上都不会有超过k 个玩具. Jasio 在地板上玩玩具. Jasio'的妈妈则在房间里陪他的儿子. 当Jas... 阅读全文
posted @ 2014-12-08 10:21 zhber 阅读(338) 评论(0) 推荐(0)
bzoj2802 [Poi2012]Warehouse Store
摘要:Description有一家专卖一种商品的店,考虑连续的n天。第i天上午会进货Ai件商品,中午的时候会有顾客需要购买Bi件商品,可以选择满足顾客的要求,或是无视掉他。如果要满足顾客的需求,就必须要有足够的库存。问最多能够满足多少个顾客的需求。Input第一行一个正整数n (n#include#inc... 阅读全文
posted @ 2014-12-07 20:20 zhber 阅读(147) 评论(0) 推荐(0)
bzoj1691 [Usaco2007 Dec]挑剔的美食家
摘要:Description与很多奶牛一样,Farmer John那群养尊处优的奶牛们对食物越来越挑剔,随便拿堆草就能打发她们午饭的日子自然是一去不返了。现在,Farmer John不得不去牧草专供商那里购买大量美味多汁的牧草,来满足他那N(1 #include#include#include#inclu... 阅读全文
posted @ 2014-12-05 09:38 zhber 阅读(212) 评论(0) 推荐(0)
cf493C Vasya and Basketball
摘要:C. Vasya and Basketballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya follows a basketbal... 阅读全文
posted @ 2014-12-04 08:43 zhber 阅读(277) 评论(0) 推荐(0)

1 2 3 下一页