人類の歴史に存在するゲームをすべてマスターしよう
検索
ログイン 登録
Name
0 / 2730
0
通知
99

ユーザーアカウント

設定 ログアウト

通知

新しい通知はありません。

言語

English 繁體中文 简体中文 Español Português Deutsch العربية français Русский 한국어 भारतीय
メニュー

フォーラム > ゲームの攻略法とヒント

ハノイの塔で大きな山を移動

投稿者 Novel Games
2007-01-25 22:33:45
#1
Novel Games
(翻訳者 Microsoft) n個の大きな山を移動するトリックは、最初のn - 1個を別のパイルに移動し、最後のピースをターゲットパイルに移動し、n -1個をターゲットパイルに移動することです。

n - 1個を他のパイルに移動するには、最初のn - 2個などを移動する必要があります。

原則として、奇数個を山に移動する場合は、最初のステップは最初のピースをその杭に移動することです。偶数個を山に移動する場合は、最初のステップは最初のピースを別のパイルに移動することです。
(オリジナル) Moving Large Piles in Tower of Hanoi

The trick to move a large pile of n pieces is to move the first n - 1 pieces to another pile, then move the last piece to the target pile, and then move the n - 1 pieces to the target pile.

To move the n - 1 pieces to the other pile, first you will need to move the first n - 2 pieces, and so on.

As a rule, if you want to move an odd number of pieces to a pile, the first step is to move the first piece to that pile; and if you want to move an even number of pieces to a pile, the first step is to move the first piece to another pile.
投稿者 Novel Games
2007-01-25 22:33:45
いいね!
返信する

返信する

返信するにはログインが必要です
ログイン 登録
#1 に返信する:
メッセージを入力してください
投稿者 %s
返答を投稿
送信中。。
返信されませんでした。もう1度返信してください。 閉じる