cf590A Median Smoothing
摘要:A. Median Smoothingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA schoolboy named Vasya loves...
阅读全文
posted @
2015-11-01 00:16
zhber
阅读(311)
推荐(0)
cf591B Rebranding
摘要:B. Rebrandingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe name of one small but proud cor...
阅读全文
posted @
2015-11-01 00:09
zhber
阅读(214)
推荐(0)
cf591A Wizards' Duel
摘要:A. Wizards' Dueltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHarry Potter and He-Who-Must-Not...
阅读全文
posted @
2015-11-01 00:07
zhber
阅读(264)
推荐(0)
cf581D Three Logos
摘要:Three companies decided to order a billboard with pictures of their logos. A billboard is a bigsquareboard. A logo of each company is a rectangle of a...
阅读全文
posted @
2015-09-28 22:36
zhber
阅读(958)
推荐(0)
cf581B Luxurious Houses
摘要:The capital of Berland hasnmultifloor buildings. The architect who built up the capital was very creative, so all the houses were built in one row.Let...
阅读全文
posted @
2015-09-28 22:26
zhber
阅读(235)
推荐(0)
cf581A Vasya the Hipster
摘要:One day Vasya the Hipster decided to count how many socks he had. It turned out that he hadared socks andbblue socks.According to the latest fashion, ...
阅读全文
posted @
2015-09-28 22:24
zhber
阅读(284)
推荐(0)
2015.9.11模拟赛 codevs 4160【会玩的】
摘要:题目描述 Description hzwer真的很会玩啊…他有一个n*m的方格,每次可以给方格添加一整行或一整列,但是不能删除。现在他想要让总格子数超过k个,但是又想让总格子数尽可能小。请找出这时的n,m。如果有多解,输出任意一种方案。 题目描述 Description hzwer真的很会玩啊…他有
阅读全文
posted @
2015-09-11 22:46
zhber
阅读(216)
推荐(0)
2015.9.11模拟赛 codevs 4159【hzwer的迷の数列】
摘要:题目描述 Description hzwer找了一个人畜无害的迷の数列…… 现在hzwer希望对这个数列进行一些操作,请你来回答hzwer的问题。 操作一:查询第i个数的大小 操作二:把第i个数的大小改成x 操作三:将整个序列反转。即把第i个数放到第n-i+1个。 题目描述 Description
阅读全文
posted @
2015-09-11 22:44
zhber
阅读(315)
推荐(0)
cf509E Pretty Song
摘要:E. Pretty Songtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen Sasha was studying in the seve...
阅读全文
posted @
2015-02-01 16:47
zhber
阅读(228)
推荐(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)
cf509A Maximum in Table
摘要:A. Maximum in Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnn × ntableais defined as fo...
阅读全文
posted @
2015-02-01 16:29
zhber
阅读(314)
推荐(0)
bzoj3856 Monster
摘要:DescriptionTeacher Mai has a kingdom. A monster has invaded this kingdom, and Teacher Mai wants to kill it.Monster initially has h HP. And it will die...
阅读全文
posted @
2015-01-28 21:37
zhber
阅读(181)
推荐(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)
cf500B New Year Permutation
摘要:B. New Year Permutationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputUser ainta has a permutat...
阅读全文
posted @
2014-12-31 20:24
zhber
阅读(242)
推荐(0)
cf500A New Year Transportation
摘要:A. New Year Transportationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNew Year is coming in ...
阅读全文
posted @
2014-12-31 20:14
zhber
阅读(251)
推荐(0)
bzoj3750 [POI2015]Pieczęć
摘要:Description一张n*m的方格纸,有些格子需要印成黑色,剩下的格子需要保留白色。你有一个a*b的印章,有些格子是凸起(会沾上墨水)的。你需要判断能否用这个印章印出纸上的图案。印的过程中需要满足以下要求:(1)印章不可以旋转。(2)不能把墨水印到纸外面。(3)纸上的同一个格子不可以印多次。In...
阅读全文
posted @
2014-12-23 09:59
zhber
阅读(309)
推荐(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
阅读(270)
推荐(0)
bzoj2435 [Noi2011]道路修建
摘要:Description在 W 星球上有 n 个国家。为了各自国家的经济发展,他们决定在各个国家之间建设双向道路使得国家之间连通。但是每个国家的国王都很吝啬,他们只愿意修建恰好 n – 1条双向道路。 每条道路的修建都要付出一定的费用, 这个费用等于道路长度乘以道路两端的国家个数之差的绝对值。例如,在...
阅读全文
posted @
2014-12-11 16:47
zhber
阅读(225)
推荐(0)
cf493B Vasya and Wrestling
摘要:B. Vasya and Wrestlingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has become intereste...
阅读全文
posted @
2014-12-04 08:25
zhber
阅读(271)
推荐(0)
cf493A Vasya and Football
摘要:A. Vasya and Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has started watching ...
阅读全文
posted @
2014-12-04 08:21
zhber
阅读(206)
推荐(0)