Puzzleup 2015 (14) Jumping Pawns - 拼圖
By Eden
at 2015-10-28T21:42
at 2015-10-28T21:42
Table of Contents
題目網址: http://www.puzzleup.com/2015/
http://www.puzzleup.com/2015/puzzle/?14
答題時限: 10月30日7PM-比賽結束(約12月16日)
加分時限: 10月30日7PM-11月4日6:59PM
答對可得基本分100分。答案可上傳5次,每改1次答案從基本分扣20分。
比賽期間內可隨時上傳答案,加分時限內答對第n天加(6-n)分
另依題目的難易有額外加分(如有80%的人這題答錯,答對者加80分)
◆JUMPING PAWNS
There is a 1x20 board and 10 pawns are placed on the leftmost squares. Your
task is to move these 10 pawns to the rightmost squares in minimum steps.
A step consists of either a MOVE or a JUMP
- MOVE: Pawn can move to the empty adjacent square to its right.
- JUMP: Pawn can jump over adjacent right pawn to the next square if it is
empty. Jumping must continue till the pawn can't jump.
What is the minimum number of steps to accomplish this task?
現有一個 1x20 的棋盤及 10 個小兵放在棋盤的最左邊。
你要將所有小兵以最少步數移到最右邊。
每一步可以做以下兩種動作:移動或跳躍。
* 移動:小兵可以移到它右邊和它相鄰的空格當中。
* 跳躍:小兵可以跳過它右邊和它相鄰的小兵到達再相鄰的空格。
一步跳躍要跳到這個小兵無法再跳為止。
試問這最少步數為多少?
If the probem was asked for 1x6 board and 3 pawns, then the answer would be 5:
若此問題改問 1x6 棋盤及 3 個小兵,則答案為 5:
0PPP
1PP P
2 P PP
3 PPP
4 P PP
5 PPP
--
いああオレたちには見えてるモノがあるbデ きっと誰にも奪われないモノがあるはずさ
け 開口一番一虚一実跳梁跋扈形影相弔yュL羊頭狗肉東奔西走国士無双南柯之夢 歪も
ぶ 意味がないと思えるコトがある ラPきっとでも意図はそこに必ずある んの
く 依依恋恋空前絶後疾風怒濤有無相生 ラH急転直下物情騷然愚者一得相思相愛 だが
ろ 無意味じゃない ラ6あの意図が 恋た
で 有為転変死生有命蒼天已死黄天當立 !!6五里霧中解散宣言千錯万綜則天去私 のり
--
Tags:
拼圖
All Comments
Related Posts
新竹裱框
By Yedda
at 2015-10-27T00:14
at 2015-10-27T00:14
將正整數著色
By Leila
at 2015-10-24T10:12
at 2015-10-24T10:12
總統大選選制問題
By Elizabeth
at 2015-10-23T21:52
at 2015-10-23T21:52
總統大選問題
By Joe
at 2015-10-23T18:30
at 2015-10-23T18:30
將正整數著色
By Charlie
at 2015-10-22T01:46
at 2015-10-22T01:46