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
76
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
158
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 1152 简单的马周游问题 and sicily 1153 马的周游问题

1152: Description 在一个5 * 6的棋盘中的某个位置有一只马，如果它走29步正好经过除起点外的其他位置各一次，这样一种走法则称马的周游路线，试设计一个算法，从给定的起点出发，找出它的一...

2012/12/14 09:56
293
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