Ordered text permutations

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

Create a block of text that gives all permutations (including repeats) of some text, in the order of the original letters.

Options

exec is denied

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

Sample input:_

ZA

Sample output:

ZZ
ZA
AZ
AA

Sample input:_

ABC

Sample output:

AAA
AAB
AAC
ABA
ABB
ABC
ACA
ACB
ACC
BAA
BAB
BAC
BBA
BBB
BBC
BCA
BCB
BCC
CAA
CAB
CAC
CBA
CBB
CBC
CCA
CCB
CCC

Sample input:_

THAI

Sample output:

TTTT
TTTH
TTTA
TTTI
TTHT
TTHH
TTHA
TTHI
TTAT
TTAH
TTAA
TTAI
TTIT
TTIH
TTIA
TTII
THTT
THTH
THTA
THTI
THHT
THHH
THHA
THHI
THAT
THAH
THAA
THAI
THIT
THIH
THIA
THII
TATT
TATH
TATA
TATI
TAHT
TAHH
TAHA
TAHI
TAAT
TAAH
TAAA
TAAI
TAIT
TAIH
TAIA
TAII
TITT
TITH
TITA
TITI
TIHT
TIHH
TIHA
TIHI
TIAT
TIAH
TIAA
TIAI
TIIT
TIIH
TIIA
TIII
HTTT
HTTH
HTTA
HTTI
HTHT
HTHH
HTHA
HTHI
HTAT
HTAH
HTAA
HTAI
HTIT
HTIH
HTIA
HTII
HHTT
HHTH
HHTA
HHTI
HHHT
HHHH
HHHA
HHHI
HHAT
HHAH
HHAA
HHAI
HHIT
HHIH
HHIA
HHII
HATT
HATH
HATA
HATI
HAHT
HAHH
HAHA
HAHI
HAAT
HAAH
HAAA
HAAI
HAIT
HAIH
HAIA
HAII
HITT
HITH
HITA
HITI
HIHT
HIHH
HIHA
HIHI
HIAT
HIAH
HIAA
HIAI
HIIT
HIIH
HIIA
HIII
ATTT
ATTH
ATTA
ATTI
ATHT
ATHH
ATHA
ATHI
ATAT
ATAH
ATAA
ATAI
ATIT
ATIH
ATIA
ATII
AHTT
AHTH
AHTA
AHTI
AHHT
AHHH
AHHA
AHHI
AHAT
AHAH
AHAA
AHAI
AHIT
AHIH
AHIA
AHII
AATT
AATH
AATA
AATI
AAHT
AAHH
AAHA
AAHI
AAAT
AAAH
AAAA
AAAI
AAIT
AAIH
AAIA
AAII
AITT
AITH
AITA
AITI
AIHT
AIHH
AIHA
AIHI
AIAT
AIAH
AIAA
AIAI
AIIT
AIIH
AIIA
AIII
ITTT
ITTH
ITTA
ITTI
ITHT
ITHH
ITHA
ITHI
ITAT
ITAH
ITAA
ITAI
ITIT
ITIH
ITIA
ITII
IHTT
IHTH
IHTA
IHTI
IHHT
IHHH
IHHA
IHHI
IHAT
IHAH
IHAA
IHAI
IHIT
IHIH
IHIA
IHII
IATT
IATH
IATA
IATI
IAHT
IAHH
IAHA
IAHI
IAAT
IAAH
IAAA
IAAI
IAIT
IAIH
IAIA
IAII
IITT
IITH
IITA
IITI
IIHT
IIHH
IIHA
IIHI
IIAT
IIAH
IIAA
IIAI
IIIT
IIIH
IIIA
IIII

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid490.03842014/10/11 03:49:200B / 24B / 24B
2mitchs490.04442014/10/11 04:20:270B / 28B / 19B
3Histocrat500.04152014/10/15 05:05:560B / 28B / 20B
4Histocrat (rand)500.03452014/10/15 05:39:070B / 28B / 20B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89390.04912014/10/20 00:11:110B / ?B / ?B
2teebee400.05772014/10/22 17:55:380B / 13B / 27B
3tails420.08602014/10/11 01:17:320B / 18B / 22B
4brx420.04732014/10/23 02:45:430B / 18B / 22B
5brx(alt)450.04402014/10/23 16:31:320B / 15B / 29B
6BioFALSE870.03352014/10/11 05:10:020B / 44B / 42B
7brx(alt+teebee)410.06392014/10/24 20:43:460B / 14B / 27B

Python _

RankUserSizeTimeDateStatistics
1leonid780.11362014/10/11 02:46:140B / 52B / 20B
2hallvabo780.08762014/10/11 06:56:230B / 52B / 20B
3mitchs780.09082014/10/11 12:57:180B / 45B / 20B
4rolf780.08592014/10/11 20:43:590B / 52B / 20B
5twobit780.10542014/10/21 20:22:440B / 46B / 24B
6hallvabo (symbol)810.11072014/10/11 07:01:380B / 40B / 38B
7nooodl820.09002014/10/11 21:42:170B / ?B / ?B

J _

RankUserSizeTimeDateStatistics
1pooq170.06572014/10/11 09:00:010B / 5B / 12B
2medialuna220.07092014/10/10 20:38:280B / 6B / 16B

K _

RankUserSizeTimeDateStatistics
1teebee250.03232014/10/11 18:36:210B / 10B / 15B
2teebee170.01932014/12/26 07:25:300B / 6B / 11B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer40.44222021/04/22 09:48:322B / 2B / 0B

Haskell _

RankUserSizeTimeDateStatistics
1cojna390.03392014/10/10 22:25:380B / 26B / 13B
2int-e390.03292014/10/10 22:30:050B / 26B / 12B
3henkma390.03252014/10/17 00:10:210B / 26B / 13B

sed _

RankUserSizeTimeDateStatistics
1tails750.05582014/10/17 10:52:310B / 16B / 54B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii660.03392014/10/10 21:14:040B / 30B / 36B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1460.03592014/10/20 07:51:240B / 0B / 146B

GolfScript _

RankUserSizeTimeDateStatistics
1tails230.07732014/10/22 15:47:360B / 4B / 19B

gs2 _

RankUserSizeTimeDateStatistics
1nooodl30.24232014/10/10 20:34:112B / ?B / ?B
2whio30.26302014/10/14 04:50:392B / 0B / 1B
3mitchs30.24412014/10/24 16:37:422B / 0B / 1B
4recursive30.24332015/09/29 15:55:252B / 0B / 1B

Nibbles _

RankUserSizeTimeDateStatistics
1tails30.04852022/02/15 22:43:272B / 1B / 0B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik60.16802014/10/11 06:24:260B / 6B / 0B
2teebee60.03992014/10/11 08:01:490B / 6B / 0B
3mroman60.04922014/10/12 04:20:380B / 6B / 0B
4fizzie60.04872014/10/12 04:33:490B / 6B / 0B

z80 _

RankUserSizeTimeDateStatistics
1fizzie440.69022014/10/24 00:20:0219B / 7B / 14B

Language Ranking_

RankLangUserSizeScore
1gs2nooodl310000
2Nibblestails310000
3JellyErik the Outgolfer47500
4BurlesqueHendrik65000
5Jpooq171764
6Kteebee171764
7GolfScripttails231304
8Haskellcojna39769
9Perltybalt8939769
10z80fizzie44681
11Rubyleonid49612
12xgawkllhuii66454
13sedtails75400
14Pythonleonid78384
15Brainfuckmitchs146205

return to the top page