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

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer90.45472021/04/22 01:40:324B / 4B / 1B

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
2Fleur1020.12452022/01/14 15:31:070B / 45B / 57B

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

Nibbles _

RankUserSizeTimeDateStatistics
1tails30.04792022/01/14 14:35:442B / 1B / 0B

Language Ranking_

RankLangUserSizeScore
1Nibblestails310000
2JellyErik the Outgolfer93333
3GolfScriptwhio(luck)34882
4JI., S.(cheat)44681
5Rpooq46652
6Rubymitchs (luck)50600
7Perlteebee(shlomif)55545
8Octaveteebee64468
9xgawkllhuii68441
10AWKllhuii72416
11Maximapooq78384
12Pythonllhuii97309
13Haskellhenkma105285

return to the top page