随笔分类 - 网络流
摘要:时间限制: 1 Sec 内存限制: 256 MB题目描述恬恬的生日临近了。宇扬给她准备了一个大蛋糕。正如往常一样,宇扬在蛋糕上插了n支蜡烛,并把蛋糕分为m个区域。因为某种原因,他必须把第i根蜡烛插在第ai个区域或第bi个区域。区域之间是不相交的。宇扬在一个区域内同时...
阅读全文
摘要:Tom and Jerry are playing a game with tubes and pearls. The rule of the game is:1) Tom and Jerry come up together with a number K.2) T...
阅读全文
摘要:2012 If this is the end of the world how to do? I do not know how. But now scientists have found that some stars, who can live, but ...
阅读全文
摘要:Your platoon of wandering lizards has entered a strange room in the labyrinth you are exploring. As you are looking around for hidde...
阅读全文
摘要:You, the head of Department of Security, recently received a top-secret information that a group of terrorists is planning to transpor...
阅读全文
摘要:In the vast waters far far away, there are many islands. People are living on the islands, and all the transport among the islands rel...
阅读全文
摘要:A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supp...
阅读全文
摘要:Dearboy, a goods victualer, now comes to a big problem, and he needs your help. In his sale area there are N shopkeepers (marked from ...
阅读全文
摘要:On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or...
阅读全文
摘要:You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX),...
阅读全文
摘要:Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. ...
阅读全文
摘要:As you know, all the computers used for ACM contests must be identical, so the participants compete on equal terms. That is why all these computers ar
阅读全文
摘要:As you know, all the computers used for ACM contests must be identical, so the participants compete on equal terms. ...
阅读全文