combination

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

print sorted combinations (without repeatings).

--BioFALSE

Options

exec is denied

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

Sample input:_

7 2

Sample output:

1 2
1 3
1 4
1 5
1 6
1 7
2 3
2 4
2 5
2 6
2 7
3 4
3 5
3 6
3 7
4 5
4 6
4 7
5 6
5 7
6 7

Sample input:_

5 3

Sample output:

1 2 3
1 2 4
1 2 5
1 3 4
1 3 5
1 4 5
2 3 4
2 3 5
2 4 5
3 4 5

Sample input:_

13 12

Sample output:

1 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 7 8 9 10 11 13
1 2 3 4 5 6 7 8 9 10 12 13
1 2 3 4 5 6 7 8 9 11 12 13
1 2 3 4 5 6 7 8 10 11 12 13
1 2 3 4 5 6 7 9 10 11 12 13
1 2 3 4 5 6 8 9 10 11 12 13
1 2 3 4 5 7 8 9 10 11 12 13
1 2 3 4 6 7 8 9 10 11 12 13
1 2 3 5 6 7 8 9 10 11 12 13
1 2 4 5 6 7 8 9 10 11 12 13
1 3 4 5 6 7 8 9 10 11 12 13
2 3 4 5 6 7 8 9 10 11 12 13

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs (luck)500.04002014/03/26 11:15:100B / 27B / 21B
2Histocrat (luck)530.03562014/03/19 21:44:300B / 28B / 23B
3Histocrat540.03582014/03/20 03:07:570B / 27B / 25B
4mitchs540.08152014/03/26 08:26:360B / 26B / 26B
5mitchs (embed)570.03772014/03/19 02:24:290B / 31B / 24B
6BioFALSE840.03592014/03/18 21:00:330B / 52B / 28B
7BioFALSE (author)840.03532014/03/18 21:01:340B / 52B / 28B
8shlomif1020.07562014/03/27 20:04:440B / 41B / 52B

Perl _

RankUserSizeTimeDateStatistics
1shlomif580.05412014/03/23 01:25:080B / 16B / 40B
2yenzie1050.03372014/03/27 05:14:120B / 42B / 59B
3teebee(shlomif)550.08362014/04/04 22:08:310B / 16B / 37B

Python _

RankUserSizeTimeDateStatistics
1llhuii970.38572014/03/27 22:57:360B / 43B / 50B
2llhuii(luck)980.35382014/03/27 17:50:110B / 43B / 51B
3hallvabo1040.09342014/03/24 07:19:350B / 72B / 24B
4mitchs (luck)1120.08592014/03/23 12:13:390B / 74B / 30B
5mitchs1190.22352014/03/19 04:55:590B / 83B / 28B
6rolf1190.08642014/03/21 02:06:350B / 83B / 28B

J _

RankUserSizeTimeDateStatistics
1I., S.(cheat)440.07462014/03/22 00:16:370B / 11B / 33B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1050.03662014/03/28 01:35:430B / 55B / 45B
2pyon1100.03432014/03/27 12:05:420B / ?B / ?B
3shlomif1190.03432014/03/27 09:54:150B / 69B / 43B

Maxima _

RankUserSizeTimeDateStatistics
1pooq780.41552014/04/01 19:51:030B / 41B / 35B

Octave _

RankUserSizeTimeDateStatistics
1teebee640.74972014/04/01 08:36:380B / 40B / 22B
2pooq820.72362014/03/29 17:38:050B / 50B / 30B

AWK _

RankUserSizeTimeDateStatistics
1llhuii720.05692014/03/19 00:35:510B / 38B / 32B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii680.03922014/03/19 00:24:060B / 34B / 32B

R _

RankUserSizeTimeDateStatistics
1pooq460.98982014/03/29 04:54:560B / 27B / 19B
2teebee460.40912014/04/01 07:04:090B / 27B / 19B

GolfScript _

RankUserSizeTimeDateStatistics
1whio(luck)400.15602014/03/27 03:31:390B / 10B / 29B
2whio(luck)340.14412014/04/04 07:36:090B / 9B / 24B

Language Ranking_

RankLangUserSizeScore
1GolfScriptwhio(luck)3410000
2JI., S.(cheat)447727
3Rpooq467391
4Rubymitchs (luck)506800
5Perlteebee(shlomif)556181
6Octaveteebee645312
7xgawkllhuii685000
8AWKllhuii724722
9Maximapooq784358
10Pythonllhuii973505
11Haskellhenkma1053238

return top