sum of subsequences

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

Sort the sum of all subsequences of length 2.

Options

exec is denied

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

Sample input:_

1 2 3 4
2 3 4 5
3 4 5 6
7 7 7 7
1 1 1 1
3 4 3 3
99 87 99
100 0 100
3 1 4 1 5 9
1 3 3 7
9 8 7 6 5 4 3 2 1
5 6 7 8 9
10 9 10 8 10 7
1 3 5 7 9 11 13
1 4 9 16 25 36
0 0 0
20 21 22 23 24 25 26 27 28
19 0 7 6 5 4
11 12

Sample output:

[3,4,5,5,6,7]
[5,6,7,7,8,9]
[7,8,9,9,10,11]
[14,14,14,14,14,14]
[2,2,2,2,2,2]
[6,6,6,7,7,7]
[186,186,198]
[100,100,200]
[2,4,4,5,5,6,6,7,8,9,10,10,12,13,14]
[4,4,6,8,10,10]
[3,4,5,5,6,6,7,7,7,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,13,13,13,14,14,15,15,16,17]
[11,12,13,13,14,14,15,15,16,17]
[15,16,17,17,17,17,18,18,18,19,19,19,20,20,20]
[4,6,8,8,10,10,12,12,12,14,14,14,16,16,16,18,18,20,20,22,24]
[5,10,13,17,20,25,26,29,34,37,40,41,45,52,61]
[0,0,0]
[41,42,43,43,44,44,45,45,45,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,51,51,51,52,52,53,53,54,55]
[4,5,6,7,9,10,11,11,12,13,19,23,24,25,26]
[23]

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock670.02002012/09/21 11:34:270B / 36B / 28B
2hide24680.01282012/09/20 16:55:260B / 36B / 29B

Perl _

RankUserSizeTimeDateStatistics
1teebee680.01412012/09/23 20:00:200B / 17B / 49B
2tybalt89730.04612012/09/23 05:45:280B / ?B / ?B
3tails730.01752012/09/23 12:24:450B / 25B / 47B
4teebee(tybalt89)650.01282012/09/23 21:58:340B / 16B / 47B

Python _

RankUserSizeTimeDateStatistics
1hallvabo1080.02102012/09/17 12:49:430B / 61B / 39B
2twobit1090.01642012/09/17 07:14:170B / 68B / 33B
3Defenestrator1130.01652012/09/20 14:00:440B / 72B / 32B
4twobit (hallvabo)1070.06822012/09/24 03:52:250B / 62B / 37B

JavaScript _

RankUserSizeTimeDateStatistics
10mg1090.01992012/09/17 12:57:110B / 59B / 44B

J _

RankUserSizeTimeDateStatistics
1I., S.580.02902012/09/17 06:49:340B / 15B / 41B

K _

RankUserSizeTimeDateStatistics
1twobit520.00452012/09/21 07:01:200B / 11B / 40B
2teebee480.01322014/12/25 10:02:430B / 9B / 39B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer120.19592021/04/18 00:34:0910B / 2B / 0B

Haskell _

RankUserSizeTimeDateStatistics
1henkma830.04552012/09/17 21:02:260B / 59B / 19B
2I., S.1040.02132012/09/17 07:36:550B / 76B / 23B

AWK _

RankUserSizeTimeDateStatistics
1nn910.01582012/11/30 10:53:340B / 36B / 55B

GolfScript _

RankUserSizeTimeDateStatistics
1tails320.03212012/09/21 22:33:390B / 4B / 28B
2clock320.03132012/09/22 09:48:540B / 2B / 30B
3twobit360.07402012/09/21 06:38:480B / 5B / 31B
4twobit (tails)300.07112012/09/24 03:14:590B / 3B / 27B

Burlesque _

RankUserSizeTimeDateStatistics
1teebee260.02422012/09/17 00:18:060B / 10B / 16B
2mroman260.03662012/09/17 00:53:460B / 10B / 16B
3clock260.03092012/09/17 01:20:080B / 10B / 16B
4mroman230.02732013/09/11 19:10:040B / 9B / 14B

Language Ranking_

RankLangUserSizeScore
1JellyErik the Outgolfer1210000
2Burlesquemroman235217
3GolfScripttwobit (tails)304000
4Kteebee482500
5JI., S.582068
6Perlteebee(tybalt89)651846
7Rubyclock671791
8Haskellhenkma831445
9AWKnn911318
10Pythontwobit (hallvabo)1071121
11JavaScript0mg1091100

return to the top page