Sum of all 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

Given an integer, create all permutations (digits) and calculate the sum of all these permutations.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

123
345
678
324
234
987
478
324
349
098
203
348
989
323
123
234
345
456
567
678
789
111
222
333
444
555
666
777
888
999
192
182
172
167
723
847
958
167
278
390

Sample output:

1332
2664
4662
1998
1998
5328
4218
1998
3552
187
1110
3330
5772
1776
1332
1998
2664
3330
3996
4662
5328
666
1332
1998
2664
3330
3996
4662
5328
5994
2664
2442
2220
3108
2664
4218
4884
3108
3774
2664

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1llhuii330.01212018/04/07 16:57:252B / 13B / 16B
2clock350.01292012/10/02 18:50:440B / 19B / 14B
3mitchs350.01502016/03/15 04:36:510B / 19B / 13B
4xsot350.02302016/03/15 12:09:490B / 18B / 15B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs350.12542016/03/15 05:14:320B / 19B / 13B
2xsot350.06972016/03/15 12:10:030B / 18B / 15B
3llhuii350.06182018/03/25 15:14:170B / 19B / 14B

Perl _

RankUserSizeTimeDateStatistics
1tails360.01082018/03/26 16:56:160B / 19B / 17B
2llhuii370.01102018/03/25 22:42:200B / 18B / 18B
3teebee390.01612012/12/21 22:16:210B / 22B / 17B
4clock390.01152013/02/02 13:05:110B / 22B / 17B

Python _

RankUserSizeTimeDateStatistics
1llhuii520.02362018/03/25 16:00:130B / 35B / 15B
2xsot550.02792018/03/25 19:20:040B / 40B / 12B
3mitchs560.02982016/03/15 04:47:430B / 35B / 19B
4clock580.01812013/02/02 08:39:400B / 37B / 20B
5leonid580.04322013/10/18 07:15:060B / 37B / 20B
6rolf620.05452013/01/13 04:54:000B / 39B / 21B
7Trimsty1410.03182014/03/25 05:00:130B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii490.04142018/03/25 16:03:100B / 32B / 16B
2mitchs520.05982016/03/15 04:59:480B / 31B / 18B
3xsot520.05272016/03/15 11:23:170B / 31B / 18B
4mypetlion570.04052018/06/20 02:08:170B / 35B / 21B

PHP _

RankUserSizeTimeDateStatistics
1clock650.04552012/12/21 02:43:211B / 33B / 31B
2teebee650.03392012/12/21 06:58:121B / 33B / 31B

Scheme _

RankUserSizeTimeDateStatistics
1cddddr870.03452012/09/22 05:55:410B / 52B / 27B

Io _

RankUserSizeTimeDateStatistics
1teebee670.06992013/07/12 16:45:020B / 52B / 12B
2clock670.07122013/07/13 21:44:590B / 51B / 14B
3pooq700.07672012/12/04 20:00:430B / 52B / 14B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea510.01682014/12/23 18:23:560B / 29B / 22B
2Shmiddty520.01612013/10/18 07:45:110B / 29B / 23B
3clock520.01672013/10/18 08:37:120B / 29B / 23B
4teebee520.03192014/12/23 10:22:470B / 29B / 23B
5nn570.01692012/10/22 23:28:130B / 32B / 25B
6Sait2000590.01772012/12/04 18:12:230B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1clock610.01122013/02/02 06:32:110B / 36B / 23B
2teebee660.01112013/02/01 17:15:470B / 43B / 20B

Tcl _

RankUserSizeTimeDateStatistics
1clock810.02162013/03/23 13:01:580B / 46B / 23B

Xtal _

RankUserSizeTimeDateStatistics
1teebee660.01782013/03/23 18:08:320B / 40B / 26B
2clock660.02212013/03/23 18:35:060B / 40B / 26B
3pooq800.09562012/12/04 19:06:120B / 47B / 30B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock1030.01592013/02/04 10:30:230B / 50B / 26B

Icon _

RankUserSizeTimeDateStatistics
1clock700.01332013/02/02 06:49:190B / 43B / 23B
2teebee740.01352013/02/02 16:27:420B / 44B / 27B

REXX _

RankUserSizeTimeDateStatistics
1teebee560.06752012/12/21 06:47:030B / 37B / 14B
2clock560.01382012/12/21 07:34:450B / 37B / 14B
3*yuko*560.02032014/03/19 00:09:220B / 37B / 17B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock530.07392013/02/02 13:17:190B / 34B / 19B
2mitchs530.01592016/03/15 05:56:170B / 31B / 22B
3teebee550.00742013/01/02 09:56:050B / 35B / 20B

Cyan _

RankUserSizeTimeDateStatistics
1clock710.58152013/02/03 19:13:000B / 42B / 28B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock790.10822013/02/02 13:18:320B / 46B / 30B

BASIC _

RankUserSizeTimeDateStatistics
1clock810.00992013/02/02 13:20:290B / 53B / 25B
2pooq920.16532012/12/04 19:30:440B / 61B / 21B

J _

RankUserSizeTimeDateStatistics
1I., S.400.02732012/09/22 23:27:370B / 14B / 26B
2medialuna710.02952014/08/20 23:19:360B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee280.01762013/04/21 18:21:180B / 9B / 18B
2clock300.00472013/04/11 01:25:140B / 11B / 19B

C _

RankUserSizeTimeDateStatistics
1llhuii610.01062015/02/12 23:55:540B / 36B / 25B
2pandamonium610.01062015/10/04 13:10:510B / 34B / 27B
3tails610.01102018/03/26 17:09:210B / 36B / 25B
4clock770.01332013/03/23 12:27:260B / 43B / 34B
5nn850.01092012/12/27 21:45:150B / 46B / 38B

Haskell _

RankUserSizeTimeDateStatistics
1henkma660.02072012/09/22 15:54:590B / 41B / 24B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii610.01272015/09/07 21:06:380B / 36B / 25B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*610.01432012/11/04 23:18:440B / 36B / 24B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1010.12872012/12/04 21:14:170B / 70B / 25B

Euphoria _

RankUserSizeTimeDateStatistics
1clock720.01082014/01/28 22:50:510B / 48B / 21B

AWK _

RankUserSizeTimeDateStatistics
1llhuii320.01232015/02/13 00:08:160B / 15B / 17B
2mitchs320.01352016/03/15 05:32:460B / 16B / 16B
3teebee330.01062014/08/21 07:03:530B / 15B / 18B
4clock350.01052012/11/16 03:20:190B / 18B / 17B
5nn350.01282012/11/18 22:38:330B / 17B / 18B

jq _

RankUserSizeTimeDateStatistics
1clock420.01132015/02/11 01:49:010B / 22B / 19B
2teebee430.01112014/12/24 05:53:310B / 23B / 19B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii430.01992018/03/25 15:05:460B / 22B / 18B
2tails440.06412018/04/06 12:10:160B / 21B / 16B

wake _

RankUserSizeTimeDateStatistics
1clock1000.04662012/10/07 11:11:530B / 42B / 54B

bc _

RankUserSizeTimeDateStatistics
1clock560.01022013/02/02 13:23:110B / 31B / 24B
2teebee580.01372012/12/21 16:27:100B / 34B / 23B

dc _

RankUserSizeTimeDateStatistics
1tails310.01752012/09/22 22:09:330B / 20B / 11B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii320.01732015/02/13 00:08:460B / 15B / 17B
2mitchs320.01072016/03/15 05:32:540B / 16B / 16B
3teebee330.01292014/08/21 07:05:010B / 15B / 18B

R _

RankUserSizeTimeDateStatistics
1clock660.24832013/02/02 13:24:130B / 38B / 26B
2pooq870.14262012/12/07 18:10:280B / 55B / 30B

QCL _

RankUserSizeTimeDateStatistics
1teebee730.02762014/12/23 10:35:490B / 47B / 19B
2clock760.02522012/12/20 19:24:520B / 50B / 19B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1630.08312016/07/09 04:45:250B / 0B / 163B
2mitchs (cheat)1920.02832014/04/18 13:26:0529B / 49B / 113B
3g33k2780.00022013/01/29 14:21:4839B / ?B / ?B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u1140.02372016/03/13 21:14:290B / 0B / 0B
2mitchs1140.01162016/03/15 08:06:150B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1clock330.00472013/02/02 17:01:131B / 5B / 27B

GolfScript _

RankUserSizeTimeDateStatistics
1clock230.03002012/10/02 18:44:580B / 3B / 20B
2tails230.02442018/03/26 18:17:280B / 4B / 19B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs70.09682015/09/06 15:31:142B / 5B / 0B
2tails70.06102018/03/26 17:35:161B / 5B / 1B

Burlesque _

RankUserSizeTimeDateStatistics
1teebee140.01632013/04/28 05:35:390B / 9B / 5B
2clock140.01772013/04/29 09:36:050B / 9B / 5B
3Hendrik140.01682014/04/19 03:28:050B / 9B / 5B
4mroman240.01802012/09/22 08:12:000B / 11B / 13B

Vim _

RankUserSizeTimeDateStatistics
1clock400.03142013/02/02 16:25:232B / 20B / 17B

Groovy _

RankUserSizeTimeDateStatistics
1clock601.08192012/10/05 10:19:310B / 43B / 17B
2nn601.06582012/10/22 23:25:460B / 43B / 17B
3teebee601.08932012/12/21 23:31:330B / 43B / 17B
4hoozie921.06952012/10/01 10:24:120B / ?B / ?B

Logo _

RankUserSizeTimeDateStatistics
1clock490.01162013/01/28 08:34:550B / 32B / 13B
2teebee490.01152013/01/28 17:35:250B / 32B / 13B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs710000
2Burlesqueteebee145000
3GolfScriptclock233043
4Kteebee282500
5dctails312258
6AWKllhuii322187
7xgawkllhuii322187
8Befungeclock332121
9Rubyllhuii332121
10Ruby2mitchs352000
11Perltails361944
12JI., S.401750
13Vimclock401750
14jqclock421666
15Bash (builtins)llhuii431627
16Logoclock491428
17Python3llhuii491428
18JavaScriptFizzyTea511372
19Pythonllhuii521346
20PARI/GPclock531320
21REXXteebee561250
22bcclock561250
23Groovyclock601166
24Fortran*yuko*611147
25Luaclock611147
26Cllhuii611147
27ObjCllhuii611147
28PHPclock651076
29Haskellhenkma661060
30Rclock661060
31Xtalteebee661060
32Ioteebee671044
33Iconclock701000
34Cyanclock71985
35Euphoriaclock72972
36QCLteebee73958
37Smalltalkclock79886
38BASICclock81864
39Tclclock81864
40Schemecddddr87804
41wakeclock100700
42Maximapooq101693
43SNOBOLclock103679
44Whitespacekaz_u114614
45Brainfuckmitchs163429

return to the top page