sum of all permutations no leading 0

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

Given some digits on each line, generate all permutations (digits -> number) and calculate the sum of all permutations.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

9
12
567
3378
55985
123432
342472
44784
348
34
1
8
82
583
3878
58984
523831
348472
44884
848
98
5
5
42
547
3378
54982
123499
342479
44782
448
44
4

Sample output:

9
33
3996
139986
8533248
199999800
293333040
7199928
3330
77
1
8
110
3552
173316
9066576
293333040
373332960
7466592
4440
187
5
5
66
3552
139986
7466592
373332960
386666280
6666600
3552
88
4

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1llhuii500.01192018/04/02 22:28:465B / 15B / 27B
2xsot500.01212018/05/13 19:42:095B / 15B / 27B
3leonid510.02782013/01/08 07:17:320B / 32B / 16B
4Histocrat510.02732014/05/06 05:49:360B / 32B / 16B
5mitchs510.04202016/03/15 09:38:000B / 32B / 16B
6clock540.02712013/09/29 10:38:230B / 32B / 18B

Ruby2 _

RankUserSizeTimeDateStatistics
1xsot490.05242018/05/13 19:51:120B / 17B / 28B
2mitchs500.11182016/03/15 09:40:410B / 32B / 15B

Perl _

RankUserSizeTimeDateStatistics
1teebee500.01212013/01/08 20:10:090B / 27B / 20B
2tails500.04562016/03/15 11:38:190B / 27B / 20B
3llhuii510.01212015/09/08 01:31:300B / 16B / 35B

Python _

RankUserSizeTimeDateStatistics
1llhuii750.04072018/03/30 08:04:455B / 39B / 28B
2xsot750.09352018/05/13 12:53:195B / 39B / 29B
3clock790.01672012/09/22 08:19:430B / 43B / 26B
4leonid790.01942013/01/08 07:10:300B / 43B / 26B
5mitchs790.37962014/08/21 01:39:410B / 43B / 26B
6rolf840.01622013/01/13 05:53:580B / 51B / 32B
7recursive940.02272012/10/17 03:58:560B / 60B / 32B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii710.04392018/04/01 18:26:385B / 37B / 27B
2xsot710.04102018/05/13 12:54:415B / 37B / 28B

Io _

RankUserSizeTimeDateStatistics
1clock850.07992015/02/21 12:48:420B / 60B / 22B
2teebee850.10712015/02/21 23:04:450B / 60B / 22B
3pooq1150.09582012/10/20 20:34:200B / 73B / 38B

JavaScript _

RankUserSizeTimeDateStatistics
1nn720.01632012/10/23 07:12:530B / 39B / 31B
2clock720.01622015/02/11 22:13:310B / 39B / 31B

Xtal _

RankUserSizeTimeDateStatistics
1clock990.01962013/09/29 10:53:430B / 51B / 46B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock1330.01182013/03/23 02:08:570B / 50B / 36B

REXX _

RankUserSizeTimeDateStatistics
1clock920.01452012/11/15 13:36:550B / 55B / 20B
2teebee920.01422013/01/14 01:58:380B / 57B / 19B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock620.01732012/10/02 18:16:170B / 37B / 25B
2teebee620.01902013/01/14 01:38:130B / 37B / 25B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock1020.02242013/01/07 13:54:010B / 59B / 38B

J _

RankUserSizeTimeDateStatistics
1I., S.340.02702012/09/22 23:28:480B / 12B / 22B
2medialuna700.03522014/08/20 23:21:380B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee340.03812013/04/21 19:32:320B / 7B / 27B
2clock360.00442013/04/11 10:31:030B / 11B / 24B

C _

RankUserSizeTimeDateStatistics
1llhuii940.01362015/09/07 20:18:050B / 49B / 45B
2pandamonium940.01062015/10/03 22:06:140B / 49B / 45B
3nn1100.01062012/12/27 22:04:370B / 56B / 54B

Haskell _

RankUserSizeTimeDateStatistics
1Hendrik680.05782012/10/08 19:23:080B / 54B / 11B
2henkma680.04422012/10/08 22:31:210B / 54B / 11B
3cojna680.10042013/01/08 07:13:280B / 54B / 11B
4HPWiz680.02582018/05/14 10:04:350B / 54B / 11B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii940.01302015/09/07 21:04:330B / 49B / 45B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1040.13072012/11/06 07:14:430B / 64B / 37B

AWK _

RankUserSizeTimeDateStatistics
1llhuii440.01422014/08/21 01:29:080B / ?B / ?B
2teebee460.01072014/08/21 16:38:140B / 22B / 24B
3nn550.01072012/10/23 19:05:400B / 26B / 29B
4clock550.01062012/11/15 18:47:270B / 25B / 30B

jq _

RankUserSizeTimeDateStatistics
1clock840.01152015/02/11 22:01:080B / 46B / 36B

Bash _

RankUserSizeTimeDateStatistics
1llhuii500.00702015/09/06 22:17:320B / 24B / 25B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii570.02532018/04/06 15:07:080B / 20B / 33B
2tails660.01752018/04/06 10:38:010B / 26B / 37B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii500.01262015/09/06 22:17:460B / 24B / 25B

Fish _

RankUserSizeTimeDateStatistics
1llhuii500.01542015/09/06 22:17:400B / 24B / 25B

dc _

RankUserSizeTimeDateStatistics
1tails570.01382012/09/22 21:55:290B / 37B / 20B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii440.01072014/08/21 01:27:510B / ?B / ?B
2teebee470.01072014/03/21 05:51:420B / 23B / 24B

R _

RankUserSizeTimeDateStatistics
1clock830.16762012/10/15 15:12:540B / 48B / 33B

QCL _

RankUserSizeTimeDateStatistics
1clock1220.01842012/12/21 19:30:580B / 74B / 38B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)1800.03522016/07/13 15:17:0531B / 48B / 97B
2g33k2640.01492013/01/29 14:21:1332B / ?B / ?B

Whitespace _

RankUserSizeTimeDateStatistics
1mitchs2060.02202015/03/30 23:29:590B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1clock290.07492012/09/26 18:51:590B / 3B / 26B
2tails310.02662012/09/22 13:08:100B / 6B / 25B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs50.18202015/09/06 22:41:072B / 3B / 0B
2tails50.16332018/03/26 12:12:151B / 3B / 1B

Burlesque _

RankUserSizeTimeDateStatistics
1teebee100.06922013/04/28 05:26:500B / 5B / 5B
2clock100.07122013/04/29 09:36:460B / 5B / 5B
3mroman100.07542013/04/29 16:32:420B / 5B / 5B
4Hendrik100.07142014/04/19 03:29:000B / 5B / 5B

goruby _

RankUserSizeTimeDateStatistics
1mitchs190.07122016/03/15 09:43:460B / 10B / 7B

Groovy _

RankUserSizeTimeDateStatistics
1clock791.12232012/10/23 02:29:100B / 49B / 29B
2nn791.03892012/10/23 18:53:470B / 49B / 29B
3hoozie861.15932012/10/01 10:37:440B / ?B / ?B

Logo _

RankUserSizeTimeDateStatistics
1teebee780.02442013/01/28 06:00:520B / 50B / 21B
2clock780.02482013/03/09 00:24:300B / 48B / 26B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs510000
2Burlesqueteebee105000
3gorubymitchs192631
4GolfScriptclock291724
5JI., S.341470
6Kteebee341470
7xgawkllhuii441136
8AWKllhuii441136
9Ruby2xsot491020
10Perlteebee501000
11Bashllhuii501000
12Fishllhuii501000
13Zshllhuii501000
14Rubyllhuii501000
15dctails57877
16Bash (builtins)llhuii57877
17PARI/GPclock62806
18HaskellHendrik68735
19Python3llhuii71704
20JavaScriptnn72694
21Pythonllhuii75666
22Logoteebee78641
23Groovyclock79632
24Rclock83602
25jqclock84595
26Ioclock85588
27REXXclock92543
28Cllhuii94531
29ObjCllhuii94531
30Xtalclock99505
31Smalltalkclock102490
32Maximapooq104480
33QCLclock122409
34SNOBOLclock133375
35Brainfuckmitchs (cheat)180277
36Whitespacemitchs206242

return to the top page