回答編集履歴
2
修正
answer
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
> 「n-1枚を○○して、残る1枚を○○し、先程のn-1枚を○○する」
|
2
|
+
|
3
|
+
○○を埋めてみた。
|
4
|
+
|
1
5
|
```C
|
2
6
|
#include<stdio.h>
|
3
7
|
|
1
微修正
answer
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
// 底板を before から after へ
|
17
17
|
hanoidisk(before, after);
|
18
18
|
|
19
|
-
// another から
|
19
|
+
// another から after へ(退避しておいた)num-1 枚を移動する
|
20
20
|
if ( num != 1 ) hanoimove(another, after, num-1);
|
21
21
|
}
|
22
22
|
|