原创 acm 2 1006 Line belt

1.1006 2. Problem Description In a two-dimensional plane there are two line belts, there are two segments AB and CD, lx

原创 acm 2 1026 Sudoku Killer

1.1026 2. Problem Description 自從2006年3月10日至11日的首屆數獨世界錦標賽以後,數獨這項遊戲越來越受到人們的喜愛和重視。 據說,在2008北京奧運會上,會將數獨列爲一個單獨的項目進行比賽,冠軍將有可能

原创 acm 3 1005 monkey

1.1005 2. Problem Description A group of researchers are designing an experiment to test the IQ of a monkey. They wi

原创 acm 2 1016 Red and Black

1.1016 2. Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red

原创 acm 2 1010 Catch him

1.1010 2. Problem Description 在美式足球中,四分衛負責指揮整隻球隊的進攻戰術和跑位,以及給接球員傳球的任務。四分衛是一隻球隊進攻組最重要的球員,而且一般身體都相對比較弱小,所以通常球隊會安排5-7名大漢來保

原创 acm 2 1025 Sequence two

1.1025 2.Sequence two Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission

原创 acm 2 1013 A strange lift

1.1013 2. Problem Description There is a strange lift.The lift can stop can at every floor as you want, and there is

原创 acm 2 1009 連連看

1.1009 2. Problem Description “連連看”相信很多人都玩過。沒玩過也沒關係,下面我給大家介紹一下遊戲規則:在一個棋盤中,放了很多的棋子。如果某兩個相同的棋子,可以通過一條線連起來(這條線不能經過其它棋子),而且

原创 acm 2 1015 Knight Moves

1.1015 騎士跳躍 2. problem statement A friend of you is doing research on the Traveling Knight Problem (TKP) where you are

原创 acm 2 1014(同1013) A strange lift

1.1013 2. Problem Description There is a strange lift.The lift can stop can at every floor as you want, and there is

原创 acm 2 1005 Turn the corner

1.1005 2. Turn the corner: Mr. West bought a new car! So he is travelling around the city. One day he comes to a ver

原创 acm 2 1011 Oil Deposits

1.1011 2.Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground oil depos

原创 acm 3 1006 數塔

1.1006 2. Problem Description 在講述DP算法的時候,一個經典的例子就是數塔問題,它是這樣描述的: 有如下所示的數塔,要求從頂層走到底層,若每一步只能走到相鄰的結點,則經過的結點的數字之和最大是多少?  已經告

原创 acm 2 1012 Rescue

1.1012 2. Problem Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is describ

原创 acm 2 1017 非常可樂

1.1017 2.Problem Description大家一定覺的運動以後喝可樂是一件很愜意的事情,但是seeyou卻不這麼認爲。因爲每次當seeyou買了可樂以後,阿牛就要求和seeyou一起分享這一瓶可樂,而且一定要喝的和seeyo