随笔分类 -  Uva

UVA 796 - Critical Links (求桥)
摘要:Critical LinksIn a computer network a link L, which interconnects two servers, is considered critical if there are at least two servers A and B such that all network interconnection paths between A and B pass through L. Removing a critical link generates two disjoint sub-networks such that any two s 阅读全文

posted @ 2013-07-11 15:42 kuangbin 阅读(1518) 评论(0) 推荐(0)

UVA 315 315 - Network(求割点个数)
摘要:NetworkA Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 toN. No two places have the same number. The lines are bidirectional and always connect together two places and in each place the lines end in a telepho 阅读全文

posted @ 2013-07-11 15:40 kuangbin 阅读(2378) 评论(0) 推荐(0)

UVA 10054 The Necklace(欧拉回路,打印路径)
摘要:题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=995Problem D: The NecklaceMy little sister had a beautiful necklace made of colorful beads. Two successive beads in the necklace shared a common color at their meeting point. The figure be 阅读全文

posted @ 2013-06-22 13:47 kuangbin 阅读(815) 评论(0) 推荐(0)

UVA 11624 - Fire! (简单图论基础)
摘要:Problem B: Fire!Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help Joe escape the maze.Given Joe's location in the maze and which squares of the maze are on fire, you must determine whether Joe can 阅读全文

posted @ 2013-05-23 20:11 kuangbin 阅读(3985) 评论(0) 推荐(0)

UVA 321 The New Villa (搜索)
摘要:The New VillaMr. Black recently bought a villa in the countryside. Only one thing bothers him: although there are light switches in most rooms, the lights they control are often in other rooms than the switches themselves. While his estate agent saw this as a feature, Mr. Black has come to believe t 阅读全文

posted @ 2013-03-11 21:20 kuangbin 阅读(544) 评论(0) 推荐(0)

Uva 11300 Spreading the Wealth
摘要:F. Spreading the WealthProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to coins of equal value, such that the total number of coins is divisible by the numbe 阅读全文

posted @ 2012-10-24 10:53 kuangbin 阅读(1486) 评论(0) 推荐(0)

Uva 11729 Commando War (贪心,排序)
摘要:There is a war and it doesn't look very promising for your country. Now it's time to act. You have a commando squad at your disposal and planning an ambush on an important enemy camp located nearby. You have N soldiers in your squad. In your master-plan, every single soldier has a unique res 阅读全文

posted @ 2012-10-24 00:30 kuangbin 阅读(1367) 评论(0) 推荐(0)

Uva 11292 The Dragon of Loowater(排序后贪心)
摘要:Problem C: The Dragon of LoowaterOnce upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek in central Loowater had always been a prime breeding ground for geese. Due to the lack of predators, the geese population was out of control. The peo 阅读全文

posted @ 2012-10-24 00:09 kuangbin 阅读(2098) 评论(0) 推荐(3)

Counting Game (Uva)
摘要:Counting GameThere are n people standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" loudly, then the second person (people are numbered 1 to n from left to right) says ``2" loudly. This is followed by the 3rd person saying 阅读全文

posted @ 2011-09-17 18:21 kuangbin 阅读(554) 评论(0) 推荐(0)

One-Two-Three (Uva)
摘要:One-Two-ThreeYour little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize them. Note that your little brother is only a child, so he may make small mistakes: for each word, there might be at most one wrong lett 阅读全文

posted @ 2011-09-17 17:41 kuangbin 阅读(391) 评论(0) 推荐(0)

导航

JAVASCRIPT: