sicily 1176 Two Ends

Description In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Players take turns removing a ...

2013/01/30 20:48
527
sicily 1563 GECKO

Description During the rainy season, one of the walls in the house is infested with mosquitoes. The wall is covered by h × w square tiles, where there are h rows of tiles from...

2013/01/23 13:12
34
sicily 1083 Networking

Description You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible routes for the...

2013/01/19 17:36
76
sicily 1211 商人的宣传

Description Bruce是K国的商人，他在A州成立了自己的公司，这次他的公司生产出了一批性能很好的产品，准备宣传活动开始后的第L天到达B州进行新品拍卖，期间Bruce打算将产品拿到各个州去做推销...

2013/01/17 18:28
373
sicily 1781 Knight

Description Your task is to write a program to calculate the minimum number of moves needed for a knight to reach one point from another. The possible knight moves are shown in ...

2013/01/16 18:58
34
sicily 1935 二叉树重建

Description 对于二叉树T，可以递归定义它的先序遍历、中序遍历和后序遍历如下： PreOrder(T)=T的根节点+PreOrder(T的左子树)+PreOrder(T的右子树) InOrder(T)=InOrder(T的左子树)+T的根节点...

2013/01/16 17:05
205
sicily 1090 Highways

Description The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is...

2013/01/14 10:30
146
sicily 1050 Numbers & Letters

Description In the early 80’s, a popular TV show on Dutch television was ‘Cijfers en Letters’ (Numbers and Letters). This game consisted of two game elements, in which the ma...

2013/01/09 20:25
115
sicily 1317 Sudoku

Description Sudoku is a placement puzzle. The goal is to enter a symbol in each cell of a grid, most frequently a 9 x 9 grid made up of 3 x 3subgrids. Each row, column and subgr...

2013/01/09 17:20
145
sicily 1135 飞越原野

Description 勇敢的德鲁伊法里奥出色的完成了任务之后，正在迅速的向自己的基地撤退。但由于后面有着一大群追兵，所以法里奥要尽快地返回基地，否则就会被敌人捉住。 终于，法里奥来到了最后...

2013/01/06 21:49
263
sicily 1210 二叉树

Description 在众多的数据结构中，二叉树是一种特殊而重要的结构，有着广泛的应用。二叉树或者是一个结点，或者有且仅有一个结点为二叉树的根，其余结点被分成两个互不相交的子集，一个作为左...

2013/01/05 18:42
173
sicily 1444 Prime Path

Description The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on the...

2013/01/04 23:41
49
sicily 1215 脱离地牢

Description 在一个神秘的国度里，年轻的王子Paris与美丽的公主Helen在一起过着幸福的生活。他们都随身带有一块带磁性的阴阳魔法石，身居地狱的魔王Satan早就想得到这两块石头了，只要把它们...

2013/01/03 23:16
134
sicily 1048 Inverso

Description The game of ‘Inverso’ is played on a 3x3 grid of colored fields (each field is either black or white). Each field is numbered as follows: 1 2 3 4 5 6 7 8 9 The pl...

2013/01/03 19:49
83
sicily 1034 Forest

Description In the field of computer science, forest is important and deeply researched , it is a model for many data structures . Now it’s your job here to calculate the dept...

2012/12/17 21:03
113
sicily 1011 Lenny's Lucky Lotto

Description Lenny likes to play the game of lotto. In the lotto game, he picks a list of N unique numbers in the range from 1 to M. If his list matches the list of numbers that ...

2012/12/17 16:13
135
sicily 1004 I Conduit!

Description Irv Kenneth Diggit works for a company that excavates trenches, digs holes and generally tears up people's yards. Irv's job is to make sure that no underground pipe ...

2012/12/17 12:16
161
sicily 1002 Anti-prime Sequences

Description Given a sequence of consecutive integers n,n+1,n+2,...,m, an anti-prime sequence is a rearrangement of these integers so that each adjacent pair of integers sums to ...

2012/12/17 09:47
64
sicily 1031 Campus

Description At present, Zhongshan University has 4 campuses with a total area of 6.17 square kilometers sitting respectively on both sides of the Pearl River or facing the South...

2012/12/16 18:02
104
sicily 1024 Magic Island

Description There are N cities and N-1 roads in Magic-Island. You can go from one city to any other. One road only connects two cities. One day, The king of magic-island want to...

2012/12/16 11:11
363