摘要: Problem DescriptionIt's almost summer time, and that means that it's almost summer construction time! This year, the good people who are in charge of the roads on the tropical island paradise of Remote Island would like to repair and upgrade the various roads that lead between the various to 阅读全文
posted @ 2013-10-12 18:05 persistent codeants 阅读(235) 评论(0) 推荐(0)
摘要: Problem DescriptionA university network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided the network into two subnetworks in order to minimize traffic between parts.A disgruntled computer science student Vasya, after being exp 阅读全文
posted @ 2013-10-12 16:08 persistent codeants 阅读(166) 评论(0) 推荐(0)
摘要: Problem DescriptionYou are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤i≤ 2) from the tap;DROP(i) empty the potito the drain;POUR(i,j) pour from potito potj; after this operation either the potjis full (and there ma 阅读全文
posted @ 2013-10-12 12:46 persistent codeants 阅读(244) 评论(0) 推荐(0)
摘要: DescriptionEverybody is fond of computers, but buying a new one is always a money challenge. Fortunately, there is always a convenient way to deal with. You can replace your computer and get a brand new one, thus saving some maintenance cost. Of course, you must pay a fixed cost for each new compute 阅读全文
posted @ 2013-10-12 10:48 persistent codeants 阅读(280) 评论(0) 推荐(0)
摘要: DescriptionDearboy was so busy recently that now he has piles of clothes to wash. Luckily, he has a beautiful and hard-working girlfriend to help him. The clothes are in varieties of colors but each piece of them can be seen as of only one color. In order to prevent the clothes from getting dyed in 阅读全文
posted @ 2013-10-12 09:21 persistent codeants 阅读(185) 评论(0) 推荐(0)