随笔分类 -  UVa

UVa 11078 - Open Credit System(开放式学分制)
摘要:Open Credit System Input:Standard InputOutput:Standard OutputIn an open credit system, the students can choose any course they like, but there is a problem. Some of the students are more senior than other students. The professor of such a course has found quite a number of such students who came fro 阅读全文

posted @ 2013-05-30 20:45 nigel_jw 阅读(297) 评论(0) 推荐(0)

UVa 11520 - Fill the Square (填充正方形)
摘要:Fill the Square Input:Standard InputOutput:Standard OutputIn this problem, you have to draw a square using uppercase English Alphabets.To be more precise, you will be given a square grid with some empty blocks and others already filled for you with some letters to make your task easier. You have to 阅读全文

posted @ 2013-05-29 20:52 nigel_jw 阅读(311) 评论(0) 推荐(0)

UVa 11462 - Age Sort (桶排序)
摘要:Age SortInput:Standard InputOutput:Standard OutputYou are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that country lives for 100 or more years. Now, you are given a very simple task of sorting all the ages in ascending order.InputT 阅读全文

posted @ 2013-05-29 11:50 nigel_jw 阅读(279) 评论(0) 推荐(0)

UVa 11210 - Chinese Mahjong(中国麻将)
摘要:Chinese MahjongMahjong () is a game of Chinese origin usually played by four persons with tiles resembling dominoes and bearing various designs, which are drawn and discarded until one player wins with a hand of four combinations of three tiles each and a pair of matching tiles.A set of Mahjong tile 阅读全文

posted @ 2013-05-28 12:49 nigel_jw 阅读(405) 评论(0) 推荐(0)

UVa 11384 - Help is needed for Dexter (正整数序列)
摘要:Help is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at least not for Dee Dee. But Dexter does not have time to spend on this silly task, so he wants your help.Ther 阅读全文

posted @ 2013-05-27 21:53 nigel_jw 阅读(171) 评论(0) 推荐(0)

UVa11300 - 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 @ 2013-05-24 21:03 nigel_jw 阅读(147) 评论(0) 推荐(0)

UVa11729 Commando War(突击战)
摘要:GCommando WarInput:Standard InputOutput:Standard Output“Waiting for orders we held in the wood, word from the front never cameBy evening the sound of the gunfire was miles awayAh softly we moved through the shadows, slip away through the treesCrossing their lines in the mists in the fields on our ha 阅读全文

posted @ 2013-05-24 20:41 nigel_jw 阅读(254) 评论(0) 推荐(0)

UVa 11292 Dragon of Loowater
摘要:Once 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 people of Loowater mostly kept clear 阅读全文

posted @ 2013-05-24 16:41 nigel_jw 阅读(139) 评论(0) 推荐(0)

导航