Tower of Hanoi

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

"Tower of Hanoi" problem.


A B C

| | |
### | | start
##### | |
####### | |
---------------------------

|
|
V

A B C

| | |
| | ### goal
| | #####
| | #######
---------------------------

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

3

Sample output:

AACABBA
CBBCACC

Sample input:_

6

Sample output:

AABACCAABBCBAABACCACBBCCAABACCAABBCBAABBCCACBBCBAABACCAABBCBAAB
BCCBABBCCAACBCCBABBACAABBCCBABBCCAACBCCAABBACAACBCCBABBCCAACBCC

Sample input:_

7

Sample output:

AACABBAACCBCAACABBABCCBBAACABBAACCBCAACCBBABCCBCAACABBAACCBCAACABBABCCBBAACABBABCCBCAACCBBABCCBBAACABBAACCBCAACABBABCCBBAACABBA
CBBCACCBBAABCBBCACCABAACCBBCACCBBAABCBBAACCABAABCBBCACCBBAABCBBCACCABAACCBBCACCABAABCBBAACCABAACCBBCACCBBAABCBBCACCABAACCBBCACC

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid700.000209/12/25 11:49:550B / 37B / 30B
2hide24880.002909/12/28 15:55:330B / 44B / 38B
3kaki930.002810/01/07 11:39:590B / 39B / 53B
4ksk610.000410/01/22 22:33:210B / 28B / 33B
5leonid620.000310/01/22 16:37:390B / 31B / 30B
6shinh660.001410/01/11 02:26:240B / 32B / 33B
7not660.003410/01/22 16:09:350B / 34B / 31B

Python _

RankUserSizeTimeDateStatistics
1leonid840.004709/12/30 16:13:320B / 48B / 33B
2hallvabo990.008509/12/26 10:22:110B / 41B / 53B

Scheme _

RankUserSizeTimeDateStatistics
1murky-satyr1160.080110/01/08 03:45:070B / 52B / 46B
2kaki1750.084710/01/08 02:59:030B / 95B / 70B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1120.116610/01/05 18:06:180B / 53B / 43B
2youz1480.506509/12/26 00:44:580B / 64B / 73B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr924.014909/12/28 18:22:190B / 38B / 37B
2youz1013.886509/12/26 00:16:040B / 43B / 53B

Io _

RankUserSizeTimeDateStatistics
1pooq1480.287812/11/24 06:04:230B / 91B / 47B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr1020.153309/12/26 11:23:370B / 49B / 52B
2nn1040.142109/12/26 11:03:490B / 49B / 53B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1210.001610/01/08 04:08:340B / 69B / 45B

Xtal _

RankUserSizeTimeDateStatistics
1pooq1130.048212/12/04 01:20:060B / 52B / 61B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1030.002209/12/28 21:24:320B / 63B / 34B

J _

RankUserSizeTimeDateStatistics
1pooq620.418509/12/28 09:52:030B / 18B / 39B
2I., S.(pooq)500.140512/03/12 21:11:380B / 16B / 33B
3I., S.540.102512/03/12 20:26:470B / 15B / 39B

C _

RankUserSizeTimeDateStatistics
1not740.000309/12/28 10:36:020B / 34B / 40B
251b910.000909/12/28 02:44:430B / 48B / 43B
3inaniwa1030.000910/01/05 14:56:310B / 48B / 55B
4msk1090.000810/01/03 04:14:510B / 54B / 55B

D _

RankUserSizeTimeDateStatistics
151b1130.001609/12/28 04:03:200B / 65B / 45B

OCaml _

RankUserSizeTimeDateStatistics
1xsd1330.279310/01/08 00:14:570B / 66B / 52B
2ksk1020.241910/01/09 00:58:090B / 62B / 29B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa990.001909/12/27 00:02:330B / ?B / ?B
2rst76990.001909/12/29 07:34:430B / 48B / 49B
3Lost_dog1010.001809/12/26 14:47:240B / 48B / 50B
4Lost_dog(Thanks to rst76)970.001810/01/08 18:40:500B / 48B / 47B

Pascal _

RankUserSizeTimeDateStatistics
1uru1640.001110/01/17 23:40:010B / 100B / 58B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1000.035409/12/28 21:23:540B / 54B / 46B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1330.557409/12/27 18:40:080B / 64B / 65B

AWK _

RankUserSizeTimeDateStatistics
1nn860.001409/12/26 11:20:090B / 40B / 41B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)810.237009/12/28 03:35:3834B / 33B / 14B
2yshl1540.238509/12/28 03:35:290B / 113B / 16B

R _

RankUserSizeTimeDateStatistics
1pooq1220.489512/12/01 07:35:560B / 58B / 60B

GolfScript _

RankUserSizeTimeDateStatistics
1betaveros590.141610/01/06 21:37:110B / 17B / 42B
2betaveros(2)610.143710/01/06 21:32:520B / ?B / ?B

z80 _

RankUserSizeTimeDateStatistics
1kodera470.376509/12/27 00:08:2717B / 16B / 13B

vi _

RankUserSizeTimeDateStatistics
1nn600.591910/01/05 21:47:477B / 35B / 16B
2pla670.177910/01/08 05:04:592B / 38B / 24B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr1023.587110/01/05 03:28:320B / 48B / 51B
2nn1043.585409/12/27 15:03:270B / 49B / 51B

Language Ranking_

RankLangUserSizeScore
1z80kodera4710000
2JI., S.(pooq)509400
3GolfScriptbetaveros597966
4vinn607833
5Rubyksk617704
6Cnot746351
7Postscriptyshl(bin)815802
8Pythonleonid845595
9AWKnn865465
10Arcmurky-satyr925108
11HaskellLost_dog(Thanks to rst76)974845
12Fortran*yuko*1004700
13JavaScriptmurky-satyr1024607
14Groovymurky-satyr1024607
15OCamlksk1024607
16BASIC*yuko*1034563
17Common LISPkozima1124196
18D51b1134159
19Xtalpooq1134159
20Schememurky-satyr1164051
21Luamurky-satyr1213884
22Rpooq1223852
23Maximapooq1333533
24Iopooq1483175
25Pascaluru1642865

return top