codeforce
revstar_
分享快乐
展开
-
codeforce492 B. Vanya and Lanterns
B. Vanya and Lanternstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya walks late at night along a straight street of l原创 2015-08-08 17:02:51 · 501 阅读 · 0 评论 -
Codeforces Round #313 (Div. 2) C. Geralds Hexagon(补大三角.cpp
DescriptionGerald got a very curious hexagon for his birthday. The boy found out that all the angles of the hexagon are equal to. Then he measured the length of its sides, and found that e原创 2015-08-20 21:39:22 · 615 阅读 · 0 评论 -
Random Teams(Codeforces Round 273)
Descriptionn participants of the competition were split intom teams in some manner so that each team has at least one participant. After the competition each pair of participants from the same t原创 2015-08-21 19:51:51 · 621 阅读 · 0 评论 -
Codeforces Round #178 (Div. 2) B .Shaass and Bookshelf
Shaass has n books. He wants to make a bookshelf for all his books. He wants the bookshelf's dimensions to be as small as possible. The thickness of thei-th book is ti and its pages' width is equal原创 2015-08-06 20:09:56 · 938 阅读 · 0 评论 -
Codeforces Round #313 A. Currency System in Geraldion
DescriptionA magic island Geraldion, where Gerald lives, has its own currency system. It uses banknotes of several values. But the problem is, the system is not perfect and sometimes it happens th原创 2015-07-24 19:06:55 · 567 阅读 · 0 评论 -
CodeForces 556A
DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thought about a string of length n consisting of原创 2015-07-31 18:28:47 · 727 阅读 · 0 评论 -
hdu 5224 Tom and Paper
DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum perimeter of this paper. Input原创 2015-07-31 18:42:25 · 637 阅读 · 0 评论 -
codeforces #304546 CSoldier and Cards (模拟)
Soldier and CardsDescriptionTwo bored soldiers are playing card war. Their card deck consists of exactly n cards, numbered from 1 to n, all values are different. They divide cards between th原创 2015-07-20 14:29:40 · 537 阅读 · 0 评论 -
acm CodeForces 546A
题目来自CodeForces 546ADescriptionA soldier wants to buy w bananas in the shop. He has to payk dollars for the first banana, 2k dollars for the second one and so on (in other words, he has t原创 2015-07-17 09:30:54 · 452 阅读 · 0 评论 -
B. Worms
题目来源CodeForces474BB. Wormstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt is lunch time for Mole. His friend, Marm原创 2015-07-17 16:40:11 · 891 阅读 · 0 评论 -
acm CodeForces 546B
DescriptionColonel has n badges. He wants to give one badge to every of hisn soldiers. Each badge has a coolness factor, which shows how much it's owner reached. Coolness factor can be increas原创 2015-07-17 09:39:31 · 454 阅读 · 0 评论 -
acm CodeForces 492A
DescriptionVanya got n cubes. He decided to build a pyramid from them. Vanya wants to build the pyramid as follows: the top level of the pyramid must consist of1 cube, the second level must cons原创 2015-07-17 09:51:20 · 490 阅读 · 0 评论 -
acm CodeForces 554B
DescriptionOhana Matsumae is trying to clean a room, which is divided up into an n by n grid of squares. Each square is initially either clean or dirty. Ohana can sweep her broom over columns of原创 2015-07-17 09:49:20 · 476 阅读 · 0 评论 -
Codeforces313 Equivalent Strings(DFS)
D. Equivalent Stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday on a lecture about strings Gerald l原创 2015-07-28 16:46:45 · 508 阅读 · 0 评论 -
codeforece 18c
DescriptionOnce Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negative. He became interested in how many ways exi原创 2015-08-09 18:54:02 · 647 阅读 · 0 评论 -
poj 1328Radar Installation
DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation,原创 2015-08-09 19:08:14 · 489 阅读 · 0 评论 -
Codeforces Round #315 (Div. 2)
DescriptionLittle Lesha loves listening to music via his smartphone. But the smartphone doesn't have much memory, so Lesha listens to his favorite songs in a well-known social network InTalk.Unf原创 2015-08-21 21:16:15 · 717 阅读 · 0 评论