print this triangle

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

print this triangle

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

*NOTHING*

Sample output:

10
11 10
100 11 10
101 12 11 10
110 20 12 11 10
111 21 13 12 11 10
1000 22 20 13 12 11 10
1001 100 21 14 13 12 11 10
1010 101 22 20 14 13 12 11 10
1011 102 23 21 15 14 13 12 11 10
1100 110 30 22 20 15 14 13 12 11 10
1101 111 31 23 21 16 15 14 13 12 11 10
1110 112 32 24 22 20 16 15 14 13 12 11 10
1111 120 33 30 23 21 17 16 15 14 13 12 11 10
10000 121 100 31 24 22 20 17 16 15 14 13 12 11 10
10001 122 101 32 25 23 21 18 17 16 15 14 13 12 11 10
10010 200 102 33 30 24 22 20 18 17 16 15 14 13 12 11 10
10011 201 103 34 31 25 23 21 19 18 17 16 15 14 13 12 11 10
10100 202 110 40 32 26 24 22 20 19 18 17 16 15 14 13 12 11 10
10101 210 111 41 33 30 25 23 21 1a 19 18 17 16 15 14 13 12 11 10
10110 211 112 42 34 31 26 24 22 20 1a 19 18 17 16 15 14 13 12 11 10
10111 212 113 43 35 32 27 25 23 21 1b 1a 19 18 17 16 15 14 13 12 11 10
11000 220 120 44 40 33 30 26 24 22 20 1b 1a 19 18 17 16 15 14 13 12 11 10
11001 221 121 100 41 34 31 27 25 23 21 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
11010 222 122 101 42 35 32 28 26 24 22 20 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
11011 1000 123 102 43 36 33 30 27 25 23 21 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
11100 1001 130 103 44 40 34 31 28 26 24 22 20 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
11101 1002 131 104 45 41 35 32 29 27 25 23 21 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
11110 1010 132 110 50 42 36 33 30 28 26 24 22 20 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
11111 1011 133 111 51 43 37 34 31 29 27 25 23 21 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100000 1012 200 112 52 44 40 35 32 2a 28 26 24 22 20 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100001 1020 201 113 53 45 41 36 33 30 29 27 25 23 21 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100010 1021 202 114 54 46 42 37 34 31 2a 28 26 24 22 20 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100011 1022 203 120 55 50 43 38 35 32 2b 29 27 25 23 21 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100100 1100 210 121 100 51 44 40 36 33 30 2a 28 26 24 22 20 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100101 1101 211 122 101 52 45 41 37 34 31 2b 29 27 25 23 21 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100110 1102 212 123 102 53 46 42 38 35 32 2c 2a 28 26 24 22 20 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
100111 1110 213 124 103 54 47 43 39 36 33 30 2b 29 27 25 23 21 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101000 1111 220 130 104 55 50 44 40 37 34 31 2c 2a 28 26 24 22 20 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101001 1112 221 131 105 56 51 45 41 38 35 32 2d 2b 29 27 25 23 21 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101010 1120 222 132 110 60 52 46 42 39 36 33 30 2c 2a 28 26 24 22 20 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101011 1121 223 133 111 61 53 47 43 3a 37 34 31 2d 2b 29 27 25 23 21 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101100 1122 230 134 112 62 54 48 44 40 38 35 32 2e 2c 2a 28 26 24 22 20 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101101 1200 231 140 113 63 55 50 45 41 39 36 33 30 2d 2b 29 27 25 23 21 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101110 1201 232 141 114 64 56 51 46 42 3a 37 34 31 2e 2c 2a 28 26 24 22 20 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
101111 1202 233 142 115 65 57 52 47 43 3b 38 35 32 2f 2d 2b 29 27 25 23 21 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110000 1210 300 143 120 66 60 53 48 44 40 39 36 33 30 2e 2c 2a 28 26 24 22 20 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110001 1211 301 144 121 100 61 54 49 45 41 3a 37 34 31 2f 2d 2b 29 27 25 23 21 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110010 1212 302 200 122 101 62 55 50 46 42 3b 38 35 32 2g 2e 2c 2a 28 26 24 22 20 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110011 1220 303 201 123 102 63 56 51 47 43 3c 39 36 33 30 2f 2d 2b 29 27 25 23 21 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110100 1221 310 202 124 103 64 57 52 48 44 40 3a 37 34 31 2g 2e 2c 2a 28 26 24 22 20 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110101 1222 311 203 125 104 65 58 53 49 45 41 3b 38 35 32 2h 2f 2d 2b 29 27 25 23 21 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110110 2000 312 204 130 105 66 60 54 4a 46 42 3c 39 36 33 30 2g 2e 2c 2a 28 26 24 22 20 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
110111 2001 313 210 131 106 67 61 55 50 47 43 3d 3a 37 34 31 2h 2f 2d 2b 29 27 25 23 21 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111000 2002 320 211 132 110 70 62 56 51 48 44 40 3b 38 35 32 2i 2g 2e 2c 2a 28 26 24 22 20 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111001 2010 321 212 133 111 71 63 57 52 49 45 41 3c 39 36 33 30 2h 2f 2d 2b 29 27 25 23 21 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111010 2011 322 213 134 112 72 64 58 53 4a 46 42 3d 3a 37 34 31 2i 2g 2e 2c 2a 28 26 24 22 20 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111011 2012 323 214 135 113 73 65 59 54 4b 47 43 3e 3b 38 35 32 2j 2h 2f 2d 2b 29 27 25 23 21 1t 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111100 2020 330 220 140 114 74 66 60 55 50 48 44 40 3c 39 36 33 30 2i 2g 2e 2c 2a 28 26 24 22 20 1t 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111101 2021 331 221 141 115 75 67 61 56 51 49 45 41 3d 3a 37 34 31 2j 2h 2f 2d 2b 29 27 25 23 21 1u 1t 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111110 2022 332 222 142 116 76 68 62 57 52 4a 46 42 3e 3b 38 35 32 2k 2i 2g 2e 2c 2a 28 26 24 22 20 1u 1t 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
111111 2100 333 223 143 120 77 70 63 58 53 4b 47 43 3f 3c 39 36 33 30 2j 2h 2f 2d 2b 29 27 25 23 21 1v 1u 1t 1s 1r 1q 1p 1o 1n 1m 1l 1k 1j 1i 1h 1g 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs590.00012017/11/03 12:11:290B / 25B / 32B
2ndimov630.01132017/11/03 06:52:080B / 32B / 28B
3rotary-o630.01482017/11/03 08:38:130B / 29B / 31B
4%20940.01942017/10/27 16:36:520B / 45B / 41B
5Histocrat1020.01772017/10/27 22:05:380B / 54B / 44B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs600.06072017/10/28 21:25:070B / 28B / 30B
2ndimov630.06612017/11/03 06:53:020B / 32B / 28B
3rotary-o640.05962017/10/28 02:31:590B / 30B / 31B
4letranger850.05132017/10/27 18:47:180B / 38B / 45B
5%20860.05382017/10/27 16:32:540B / 38B / 45B

Perl _

RankUserSizeTimeDateStatistics
1tails860.01232017/10/27 16:03:220B / 31B / 53B
2teebee860.04112017/10/28 06:25:190B / 28B / 56B
3%20910.02032017/10/27 14:15:310B / 39B / 50B

Python _

RankUserSizeTimeDateStatistics
1mitchs990.04162017/10/31 09:06:240B / 52B / 42B
2llhuii1010.05652017/11/05 10:56:400B / 56B / 42B
3hallvabo1060.04232017/10/31 09:37:380B / 59B / 43B
4lynn1090.02972017/11/06 05:29:350B / 57B / 40B
5rolf1180.02552017/10/29 04:15:460B / 65B / 32B
6Mr. Xcoder1100.05252017/11/14 05:42:090B / 62B / 41B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs1020.04352017/10/30 15:09:050B / 58B / 39B
2fill1140.04172017/11/07 16:33:360B / 67B / 38B
3ebicochineal1150.12462017/11/05 20:18:580B / 58B / 54B
4rolf1270.04262017/10/29 03:48:320B / 63B / 42B
5mypetlion1540.03952017/11/07 08:32:450B / 102B / 40B

Common LISP _

RankUserSizeTimeDateStatistics
1rolf3790.15382017/10/30 03:56:510B / 206B / 101B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea790.02432017/11/09 21:06:450B / 40B / 38B
2ETHproductions830.02482017/11/07 00:46:080B / 44B / 38B
3teebee1020.01962017/10/28 20:12:190B / 47B / 54B
4letranger1150.01692017/10/27 19:57:390B / 61B / 53B

Perl6 _

RankUserSizeTimeDateStatistics
1tails580.74722017/11/08 17:56:000B / 28B / 25B

C _

RankUserSizeTimeDateStatistics
1llhuii890.00012017/11/09 02:02:074B / 43B / 42B
2tails920.00012017/11/02 17:11:590B / 47B / 45B
3%20950.00012017/11/03 09:00:150B / 46B / 49B
4merry960.00012017/11/06 09:12:380B / 46B / 50B
5chocobi1040.00012017/10/28 09:20:020B / 55B / 49B
6lynn1050.01042017/11/06 05:59:450B / 56B / 49B
7tails (got longer despite effort)1100.00712017/11/09 18:48:1434B / 34B / 42B
8rolf1760.01112017/10/29 05:00:480B / 87B / 84B

Go _

RankUserSizeTimeDateStatistics
1rolf4020.03972017/10/30 07:09:190B / 113B / 83B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1010.02062017/11/03 06:44:020B / 47B / 52B
2yuki1370.01632017/10/27 10:19:110B / 83B / 47B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1210.26552017/11/01 23:20:060B / 69B / 49B
2teebee1460.05982017/10/30 06:59:160B / 82B / 60B

AWK _

RankUserSizeTimeDateStatistics
1ludo1100.01492017/11/10 04:08:000B / 56B / 52B

sed _

RankUserSizeTimeDateStatistics
1tails1490.26042017/11/02 11:17:590B / 62B / 74B
2mitchs (tails)1470.27552017/11/10 06:48:490B / 59B / 75B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii1040.28612017/11/09 23:43:300B / 41B / 56B
2tails1080.06832017/10/27 18:06:480B / 36B / 62B

make _

RankUserSizeTimeDateStatistics
1tails2400.06812017/11/07 10:35:360B / 108B / 82B

dc _

RankUserSizeTimeDateStatistics
1tails760.05322017/11/05 22:53:140B / 57B / 19B

xgawk _

RankUserSizeTimeDateStatistics
1ludo1070.01582017/11/10 04:07:370B / 56B / 51B

Postscript _

RankUserSizeTimeDateStatistics
1tails1030.07292017/11/05 11:59:0742B / 37B / 20B
2rolf1810.08602017/10/29 22:40:0052B / 70B / 40B

R _

RankUserSizeTimeDateStatistics
1ludo1220.28742017/11/10 03:48:120B / 60B / 54B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)2020.06652017/11/09 05:16:590B / 0B / 200B
2mitchs2280.05772017/11/09 05:13:410B / 0B / 228B

GolfScript _

RankUserSizeTimeDateStatistics
1tails400.21422017/10/27 12:09:470B / 12B / 27B
2mitchs400.18602017/11/01 08:06:230B / 15B / 24B
3%20400.18522017/11/01 19:13:560B / 15B / 24B
4rolf560.23852017/11/01 02:18:500B / 16B / 39B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs160.13592017/10/28 05:05:529B / 3B / 3B
2tails160.13832017/10/31 15:16:519B / 3B / 3B
3whio160.17402017/11/01 21:43:299B / 4B / 3B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik210.08292017/10/28 11:10:200B / 15B / 6B

DOS _

RankUserSizeTimeDateStatistics
1chocobi573.06902017/10/28 21:43:2236B / 10B / 7B

goruby _

RankUserSizeTimeDateStatistics
1mitchs490.02582017/11/10 04:46:240B / 20B / 26B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o842.11882017/10/29 10:56:400B / 50B / 27B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs1610000
2BurlesqueHendrik217619
3GolfScripttails404000
4gorubymitchs493265
5DOSchocobi572807
6Perl6tails582758
7Rubymitchs592711
8Ruby2mitchs602666
9dctails762105
10JavaScriptFizzyTea792025
11Scalarotary-o841904
12Perltails861860
13Cllhuii891797
14Pythonmitchs991616
15Haskellhenkma1011584
16Python3mitchs1021568
17Postscripttails1031553
18Bash (builtins)llhuii1041538
19xgawkludo1071495
20AWKludo1101454
21Javarotary-o1211322
22Rludo1221311
23sedmitchs (tails)1471088
24Brainfuckmitchs (cheat)202792
25maketails240666
26Common LISProlf379422
27Gorolf402398

return to the top page