group elements

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

Group elements of the input list on each line (separated by space) by equality.

Options

exec is denied

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

Sample input:_

8 8 2 2 2 2 8 8 8 8 8 5 5
5 5 5 5
5 5 5 5 8 8 8 8
9 9 9 8
8 8 8 8 2 3 3 2
8 8 8 9 9 9 9 5 5 5 5 0 0
6 5 5 5 8 8 8
0 0 0 0 1 1 1
9 9 9
5 5 4 4 4 6 3 3 3 4 4

Sample output:

[8 8] [2 2 2 2] [8 8 8 8 8] [5 5]
[5 5 5 5]
[5 5 5 5] [8 8 8 8]
[9 9 9] [8]
[8 8 8 8] [2] [3 3] [2]
[8 8 8] [9 9 9 9] [5 5 5 5] [0 0]
[6] [5 5 5] [8 8 8]
[0 0 0 0] [1 1 1]
[9 9 9]
[5 5] [4 4 4] [6] [3 3 3] [4 4]

Sample input:_

0 7 7 7 5 5 9
6 6 6 1 1 1 1 1
8 8 8 8 9 9 9
2 2 2 1 1
1
3 3 3 3 3 3 3 3 6
0 0 0 0 7 7 2 2 2 2 0 0 0 0 2
9 9 9 9 9 9 9 7 7 7 9 9 4 4 4 4
2 2 2 2 3 3 3 6 6 6 6 9 9 9 9 3 3 3 3
9 9 9 9 1 0 0 0 0 3 3
5 5 5 2 2 0 0 0 8 8 4 4 4 4 9 9 9
1 1 4 7 7 7
8 7 7 7 7 7 7
5 5
9 9 9 6 6 6 6 9 9 9 1 1 1 4 4 4 4
7 7 7 9 9 3 3
2 2 2 6 6 8 4 4 4
1 1 1 1 3 3 3
0 0 0 5 5 5 5 5 5
2 2 2 9 9 3 3 3 3 0 0 0 0

Sample output:

[0] [7 7 7] [5 5] [9]
[6 6 6] [1 1 1 1 1]
[8 8 8 8] [9 9 9]
[2 2 2] [1 1]
[1]
[3 3 3 3 3 3 3 3] [6]
[0 0 0 0] [7 7] [2 2 2 2] [0 0 0 0] [2]
[9 9 9 9 9 9 9] [7 7 7] [9 9] [4 4 4 4]
[2 2 2 2] [3 3 3] [6 6 6 6] [9 9 9 9] [3 3 3 3]
[9 9 9 9] [1] [0 0 0 0] [3 3]
[5 5 5] [2 2] [0 0 0] [8 8] [4 4 4 4] [9 9 9]
[1 1] [4] [7 7 7]
[8] [7 7 7 7 7 7]
[5 5]
[9 9 9] [6 6 6 6] [9 9 9] [1 1 1] [4 4 4 4]
[7 7 7] [9 9] [3 3]
[2 2 2] [6 6] [8] [4 4 4]
[1 1 1 1] [3 3 3]
[0 0 0] [5 5 5 5 5 5]
[2 2 2] [9 9] [3 3 3 3] [0 0 0 0]

Sample input:_

3 3 3 0 0 0 0 1 1 1 1 2 2 2 2 5 5 5 1 1 1 1 1 0 0 1 1 7 7 1 3 3 5 5 5 5 3
3 3 3 3 0 9 8 8 8 4 2 2 1 1
3 3 1 8 5 5 0 0 0 4 4 4 9 9 9 7 7 3 3 3 3 3 3 3 6 2 2 2 2 5 2 0 0 0 0
4 8 8 8 0 0 0 0 6 6 6 9 9 1 1 1 1 6 6 6 7 7 7 7 5 0 0 0 1 1 1 9 9 2 9 9 9 6 8 8 8 8 7 7 7 7
1 1 1 1 1 1 7 7 7 7 2 2 6 8 4 2 2 2 2 2

Sample output:

[3 3 3] [0 0 0 0] [1 1 1 1] [2 2 2 2] [5 5 5] [1 1 1 1 1] [0 0] [1 1] [7 7] [1] [3 3] [5 5 5 5] [3]
[3 3 3 3] [0] [9] [8 8 8] [4] [2 2] [1 1]
[3 3] [1] [8] [5 5] [0 0 0] [4 4 4] [9 9 9] [7 7] [3 3 3 3 3 3 3] [6] [2 2 2 2] [5] [2] [0 0 0 0]
[4] [8 8 8] [0 0 0 0] [6 6 6] [9 9] [1 1 1 1] [6 6 6] [7 7 7 7] [5] [0 0 0] [1 1 1] [9 9] [2] [9 9 9] [6] [8 8 8 8] [7 7 7 7]
[1 1 1 1 1 1] [7 7 7 7] [2 2] [6] [8] [4] [2 2 2 2 2]

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid340.04262012/07/24 05:54:240B / 11B / 19B
2clock340.06122012/07/24 06:06:270B / 11B / 19B
3twobit350.03542012/07/24 06:12:260B / 12B / 19B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89290.07752012/07/23 02:35:070B / ?B / ?B
2ninjalj290.03372012/07/23 09:49:290B / 9B / 17B
3tails290.05322012/07/23 21:52:130B / 9B / 17B
4leonid290.03362012/07/24 05:56:520B / 9B / 17B
5twobit290.04362012/07/24 06:08:270B / 9B / 17B
6milieu290.04222012/07/24 09:14:200B / 9B / 17B
7clock290.03342012/07/24 09:32:250B / 9B / 17B
8nfouille290.03792012/07/25 19:42:340B / ?B / ?B
9Hem290.04052012/07/28 17:52:420B / 9B / 17B
10jonathan camacho1310.03292014/09/04 13:29:350B / 57B / 69B

Python _

RankUserSizeTimeDateStatistics
1clock650.06112012/07/23 04:21:070B / 35B / 26B
2leonid650.06692012/07/24 05:51:370B / 35B / 26B
3hallvabo670.05472012/07/23 05:49:340B / 37B / 25B
4twobit670.09152012/07/24 05:38:390B / 37B / 25B
5twobit (no import)860.05762012/07/24 05:51:150B / 34B / 39B
6hallvabo (no import)860.04512012/07/28 11:47:460B / 34B / 38B

PHP _

RankUserSizeTimeDateStatistics
1clock530.08512012/07/29 03:10:2516B / 23B / 14B

Scheme _

RankUserSizeTimeDateStatistics
1kaki660.10122012/11/02 20:57:040B / 37B / 28B

Io _

RankUserSizeTimeDateStatistics
1pooq1070.31172012/11/12 20:53:560B / 58B / 41B

JavaScript _

RankUserSizeTimeDateStatistics
1clock540.04412012/07/23 03:20:320B / 26B / 27B
20mg540.04782012/07/23 06:24:140B / 26B / 27B
3nn540.07942012/07/23 22:18:560B / 26B / 27B
4milieu540.06462012/07/24 09:21:150B / 26B / 27B
5twobit540.05582012/07/25 09:19:080B / 26B / 27B

Lua _

RankUserSizeTimeDateStatistics
1clock890.03322012/07/27 08:59:210B / 38B / 45B

Kite _

RankUserSizeTimeDateStatistics
1clock1010.12852012/07/29 03:30:310B / 58B / 42B

J _

RankUserSizeTimeDateStatistics
1I., S.540.10172012/07/23 06:33:010B / 16B / 37B

K _

RankUserSizeTimeDateStatistics
1twobit590.05352012/07/23 02:10:320B / 12B / 45B
2teebee(twobit)550.03742012/08/09 08:38:360B / 11B / 41B

C _

RankUserSizeTimeDateStatistics
1nu840.03242012/07/29 16:20:160B / 41B / 41B
2nn990.03252012/07/29 15:44:440B / 46B / 51B

Haskell _

RankUserSizeTimeDateStatistics
1henkma790.05102012/07/25 21:24:460B / 36B / 41B
2notogawa810.05672012/07/24 23:11:200B / 33B / 45B
3cojna860.03512012/07/23 06:58:020B / 56B / 26B
4Hendrik860.04502012/07/28 05:20:060B / 56B / 26B
5I., S.1070.04532012/07/23 06:08:180B / 71B / 27B

AWK _

RankUserSizeTimeDateStatistics
1nn390.03262012/07/23 22:43:030B / 14B / 24B
2ninjalj390.03612012/07/24 15:52:350B / 14B / 24B

sed _

RankUserSizeTimeDateStatistics
1clock220.03302012/07/23 02:42:170B / 4B / 17B
2ninjalj220.03282012/07/23 09:52:360B / 4B / 17B
3tails220.04692012/07/23 21:53:350B / 4B / 17B
4nn220.03622012/07/23 22:19:450B / 4B / 17B
5leonid220.04592012/07/25 09:32:590B / 4B / 17B
6twobit230.04132012/07/25 09:24:180B / 5B / 17B

Bash _

RankUserSizeTimeDateStatistics
1leonid300.02222012/07/25 09:33:450B / 8B / 20B
2clock300.01392012/07/25 09:57:340B / 8B / 20B
3ninjalj (pure bash)1670.44622012/07/23 11:15:170B / 68B / 75B

wake _

RankUserSizeTimeDateStatistics
1clock350.03592012/07/29 03:17:331B / 4B / 28B

dc _

RankUserSizeTimeDateStatistics
1tails710.02972012/07/24 23:54:260B / 53B / 18B

xgawk _

RankUserSizeTimeDateStatistics
1ninjalj390.04172012/07/24 15:52:470B / 14B / 24B

R _

RankUserSizeTimeDateStatistics
1pooq570.46372012/10/07 10:34:280B / 26B / 30B

GolfScript _

RankUserSizeTimeDateStatistics
1tails290.10472012/07/23 22:57:410B / 4B / 25B
2leonid300.14142012/07/24 07:42:190B / 5B / 25B
3tails280.13082012/07/30 04:47:010B / 4B / 24B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu260.10702012/07/24 07:49:240B / ?B / ?B
2clock260.10682012/07/24 08:59:350B / 3B / 22B

Burlesque _

RankUserSizeTimeDateStatistics
1clock(teebee)110.04292012/09/23 02:47:040B / 5B / 6B
2teebee(mroman)130.05842012/09/23 01:11:400B / 7B / 6B
3mroman150.04252012/09/16 21:57:220B / 8B / 7B
4clock(mroman)210.03852012/09/16 16:46:080B / 8B / 13B
5clock220.03652012/09/16 07:52:430B / 6B / 15B

Vim _

RankUserSizeTimeDateStatistics
1clock250.10472012/07/23 02:43:470B / 7B / 16B
2ninjalj250.07082012/07/23 10:00:150B / 7B / 16B
3nn250.04202012/07/23 22:21:050B / 7B / 16B

Groovy _

RankUserSizeTimeDateStatistics
1nn492.67192012/07/23 22:24:190B / 26B / 22B
2clock493.09932012/07/24 02:06:160B / 26B / 22B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr618.23032012/07/23 17:57:220B / 35B / 25B

Language Ranking_

RankLangUserSizeScore
1Burlesqueclock(teebee)1110000
2sedclock225000
3Vimclock254400
4FlogScriptmilieu264230
5GolfScripttails283928
6Perltybalt89293793
7Bashleonid303666
8Rubyleonid343235
9wakeclock353142
10AWKnn392820
11xgawkninjalj392820
12Groovynn492244
13PHPclock532075
14JavaScriptclock542037
15JI., S.542037
16Kteebee(twobit)552000
17Rpooq571929
18Scalamurky-satyr611803
19Pythonclock651692
20Schemekaki661666
21dctails711549
22Haskellhenkma791392
23Cnu841309
24Luaclock891235
25Kiteclock1011089
26Iopooq1071028

return top