Factoradic Encoder

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

Factoradic encoder
en.wikipedia.org/wiki/Factorial_number_system

Options

exec is denied

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

Sample input:_

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

Sample output:

0
10
100
110
200
210
1000
1010
1100
1110
1200
1210
2000
2010
2100
2110
2200
2210
3000
3010
3100
3110
3200
3210
10000
10010
10100
10110
10200
10210
11000
11010
11100
11110
11200
11210
12000
12010
12100
12110
12200
12210
13000
13010
13100
13110
13200
13210
20000
20010
20100
20110
20200
20210
21000
21010
21100
21110
21200
21210
22000
22010
22100
22110
22200
22210
23000
23010
23100
23110
23200
23210
30000
30010
30100
30110
30200
30210
31000
31010
31100
31110
31200
31210
32000
32010
32100
32110
32200
32210
33000
33010
33100
33110
33200
33210
40000
40010
40100
40110
40200
40210
41000
41010
41100
41110
41200
41210
42000
42010
42100
42110
42200
42210
43000
43010
43100
43110
43200
43210
100000

Sample input:_

19486
3369496
10550
1052
25894
226941
15197
0
5900864
10465280
19882
72165
4
4501328
508

Sample output:

36013200
9243502200
20342100
1233100
50533200
550103110
30030210
0
16225341100
28743031100
36331200
162113110
200
12350501100
410200

Sample input:_

1913754
250
2
171
7847437
2522496
6926
67221
3186
3877158
216
7319021
14796107
10057060
2064
5
33
126
14484
11
21609
2077648
15992
2004054
2392
27549820
13692
15
568498
3885053
86389
264389
3081
3354
8597309
85
99
462
3
3064
52
70
418
2640450
1
3810796
122346
43
6937290
7
9
27419
743058
1929
256
3518
362
37
231559
3525628
198842
31
15181
1829603
1076
26547
85399
25
31482545
1158232
15126212
84
2144
1524702
14
1087073
1094920
14756
3246
41874
4456
11289
179
4579
1058
21
38500
134820
1213
28
322746
897870
21964464
3336363
81097
14465457
186
389
8432213
6

Sample output:

5234543000
201200
100
120110
21550112010
6843240000
12332100
152203110
4223000
10611531000
140000
20141140210
40675041210
27633040200
2510000
210
11110
101000
26032000
1210
42001110
5641332200
31111100
5454221000
3142200
75821340200
25002000
2110
1505321200
10625520210
210542010
643110210
4131110
4343000
23615410210
32010
40110
341000
110
4122200
20200
23200
321200
7236133000
10
10440430200
301523000
13010
19103033000
1010
1110
53021210
2033003000
2401110
202200
4512100
300100
12010
556331010
9633410200
473100100
11010
30022010
5030031210
1243100
51510110
206331010
10010
86663422210
3155342200
41611333100
32000
2541100
4163341000
2100
2874442210
3011412200
26243100
4301000
102043000
6102200
21401110
121210
6203010
1240100
3110
74240200
325122000
1402010
10200
800123000
2421011000
60460110000
9156500110
200340010
39760521110
123000
310210
23210220210
1000

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid500.09532011/09/03 11:58:010B / 26B / 22B
2yvl530.08012011/09/01 02:50:190B / 29B / 20B
3clock670.05342011/09/03 17:35:021B / ?B / ?B
4aglias760.06332011/08/21 18:04:160B / 37B / 32B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89500.19352011/09/03 13:04:573B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo630.08242011/08/21 00:40:230B / 40B / 17B
2leonid630.07772011/09/03 22:11:280B / 40B / 17B
3leonid (hallvabo)630.07972011/09/03 22:11:570B / 40B / 17B

Scheme _

RankUserSizeTimeDateStatistics
1kaki910.48822011/09/01 10:55:510B / 45B / 36B
2cddddr1120.18992011/08/22 04:45:030B / 49B / 46B
3kaki880.11292013/03/25 06:28:360B / 41B / 40B

Io _

RankUserSizeTimeDateStatistics
1pooq1120.53802011/08/24 21:42:190B / 81B / 27B

JavaScript _

RankUserSizeTimeDateStatistics
1nn580.01292011/08/24 15:00:130B / 33B / 25B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*960.01012011/08/25 22:54:500B / 49B / 42B
2pooq1040.01222011/08/24 21:45:420B / 64B / 30B

J _

RankUserSizeTimeDateStatistics
1pooq380.14302011/08/21 13:15:310B / 12B / 25B

K _

RankUserSizeTimeDateStatistics
1teebee260.01382014/09/13 21:06:400B / 12B / 14B

C _

RankUserSizeTimeDateStatistics
1nn780.00262011/08/24 15:22:440B / 39B / 39B
2hinoe780.00252011/09/03 10:10:280B / 39B / 39B
3inaniwa980.00242011/08/22 09:39:510B / 47B / 51B
4aglias1000.02292011/08/21 02:39:020B / 49B / 51B

Haskell _

RankUserSizeTimeDateStatistics
1rst76640.01162011/08/24 23:49:550B / 36B / 22B
2notogawa640.01172011/08/25 00:20:220B / 37B / 21B
3henkma640.01142011/08/27 11:08:170B / 36B / 22B
4monqy980.01202011/08/23 06:24:250B / 47B / 47B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1200.00342011/08/29 18:22:300B / 81B / 28B
2uru1320.00372011/08/29 16:23:510B / 89B / 32B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*930.00382011/08/25 22:53:110B / 59B / 32B
2*yuko*880.04032011/12/04 04:21:080B / 54B / 31B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*3260.02252011/08/30 02:51:100B / 225B / 47B

Maxima _

RankUserSizeTimeDateStatistics
1pooq850.52692011/08/24 22:03:400B / 46B / 38B

AWK _

RankUserSizeTimeDateStatistics
1llhuii410.03312014/09/14 01:43:320B / ?B / ?B

R _

RankUserSizeTimeDateStatistics
1pooq1000.93672011/08/24 17:00:210B / 57B / 39B
2pooq990.58922012/10/25 18:02:310B / 58B / 37B

Groovy _

RankUserSizeTimeDateStatistics
1nn756.63122011/09/01 14:14:120B / 48B / 23B

Language Ranking_

RankLangUserSizeScore
1Kteebee2610000
2Jpooq386842
3AWKllhuii416341
4Rubyleonid505200
5Perltybalt89505200
6JavaScriptnn584482
7Pythonhallvabo634126
8Haskellrst76644062
9Groovynn753466
10Cnn783333
11Maximapooq853058
12Fortran*yuko*882954
13Schemekaki882954
14BASIC*yuko*962708
15Rpooq992626
16Iopooq1122321
17Pascal*yuko*1202166
18COBOL*yuko*326797

return top