repeated permutation

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 repeated combinations.
--BioFALSE

Options

exec is denied

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

Sample input:_

4 2

Sample output:

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

Sample input:_

3 3

Sample output:

1 1 1
1 1 2
1 1 3
1 2 1
1 2 2
1 2 3
1 3 1
1 3 2
1 3 3
2 1 1
2 1 2
2 1 3
2 2 1
2 2 2
2 2 3
2 3 1
2 3 2
2 3 3
3 1 1
3 1 2
3 1 3
3 2 1
3 2 2
3 2 3
3 3 1
3 3 2
3 3 3

Sample input:_

2 5

Sample output:

1 1 1 1 1
1 1 1 1 2
1 1 1 2 1
1 1 1 2 2
1 1 2 1 1
1 1 2 1 2
1 1 2 2 1
1 1 2 2 2
1 2 1 1 1
1 2 1 1 2
1 2 1 2 1
1 2 1 2 2
1 2 2 1 1
1 2 2 1 2
1 2 2 2 1
1 2 2 2 2
2 1 1 1 1
2 1 1 1 2
2 1 1 2 1
2 1 1 2 2
2 1 2 1 1
2 1 2 1 2
2 1 2 2 1
2 1 2 2 2
2 2 1 1 1
2 2 1 1 2
2 2 1 2 1
2 2 1 2 2
2 2 2 1 1
2 2 2 1 2
2 2 2 2 1
2 2 2 2 2

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs (luck)590.03612014/03/19 01:51:090B / 28B / 29B
2Histocrat600.07172014/03/21 06:47:280B / 33B / 24B
3mitchs600.03622014/03/26 07:39:380B / 29B / 29B
4mitchs (Histocrat,luck)560.04042014/04/03 07:47:040B / 26B / 28B
5mitchs (Histocrat)590.05952014/04/03 08:00:570B / 29B / 28B

Perl _

RankUserSizeTimeDateStatistics
1teebee470.37172014/03/23 04:00:580B / 11B / 34B
2tybalt89480.05252014/03/23 02:51:250B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1llhuii(luck)780.19452014/03/27 23:28:390B / 41B / 30B
2hallvabo810.09412014/03/19 11:12:280B / 47B / 28B
3llhuii890.19172014/03/19 12:02:270B / 49B / 32B
4mitchs890.08532014/03/23 04:23:380B / 48B / 33B
5hallvabo (noluck)950.11292014/03/19 11:20:450B / 58B / 32B
6rolf1010.09302014/03/20 03:49:240B / 54B / 41B
7starenka1290.16972014/03/30 04:34:180B / ?B / ?B
8zzxy1350.09102014/03/23 22:42:400B / 89B / 36B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs880.18822014/03/23 04:11:390B / 47B / 35B
2Trimsty1030.18432014/03/26 03:52:260B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1090.03592014/03/30 18:26:360B / 57B / 39B
2teebee(pooq)870.03732014/04/02 08:06:400B / 48B / 29B

J _

RankUserSizeTimeDateStatistics
1I., S.230.06502014/03/22 06:42:190B / 7B / 16B
2I., S.(cheat)240.07082014/03/22 06:40:030B / 6B / 18B

K _

RankUserSizeTimeDateStatistics
1teebee290.02382014/03/22 06:20:180B / 10B / 19B

Haskell _

RankUserSizeTimeDateStatistics
1henkma780.04052014/03/20 21:34:560B / 35B / 41B
2cojna780.03512014/03/21 01:26:180B / 33B / 45B

Octave _

RankUserSizeTimeDateStatistics
1pooq690.88792014/03/31 13:31:330B / 39B / 29B
2teebee(pooq)630.61522014/04/02 06:18:120B / 37B / 25B

AWK _

RankUserSizeTimeDateStatistics
1teebee620.45272014/03/22 05:39:430B / 26B / 36B
2llhuii710.03202014/03/19 08:27:460B / 38B / 31B

Zsh _

RankUserSizeTimeDateStatistics
1eban470.03322014/04/07 15:18:450B / 22B / 18B

xgawk _

RankUserSizeTimeDateStatistics
1teebee620.58502014/03/27 05:28:390B / 26B / 36B
2llhuii630.03222014/03/19 11:44:420B / 32B / 31B

R _

RankUserSizeTimeDateStatistics
1pooq780.44572014/03/29 08:01:000B / 49B / 29B

GolfScript _

RankUserSizeTimeDateStatistics
1whio(luck)290.34142014/03/27 06:47:080B / 8B / 20B
2whio300.12262014/04/01 06:26:270B / 6B / 23B
3whio(luck)280.12662014/04/02 07:14:500B / 8B / 19B

Burlesque _

RankUserSizeTimeDateStatistics
1teebee120.03742014/03/23 04:54:390B / 8B / 4B
2Hendrik120.20672014/04/01 16:25:110B / 8B / 4B
3mroman100.06152015/01/27 22:49:570B / 10B / 0B

Language Ranking_

RankLangUserSizeScore
1Burlesquemroman1010000
2JI., S.234347
3GolfScriptwhio(luck)283571
4Kteebee293448
5Perlteebee472127
6Zsheban472127
7Rubymitchs (Histocrat,luck)561785
8AWKteebee621612
9xgawkteebee621612
10Octaveteebee(pooq)631587
11Haskellhenkma781282
12Pythonllhuii(luck)781282
13Rpooq781282
14BASICteebee(pooq)871149
15Python3mitchs881136

return top