QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#800172#7722. Group the Numbersucup-team3583#AC ✓7ms6048kbC++202.0kb2024-12-05 22:48:282024-12-05 22:48:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3580kb

input:

6 2

output:

5 4 2 
6 3 1 

result:

ok answer is correct

Test #2:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

12 3

output:

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

result:

ok answer is correct

Test #3:

score: 0
Accepted
time: 4ms
memory: 3636kb

input:

100000 100000

output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...

result:

ok answer is correct

Test #4:

score: 0
Accepted
time: 0ms
memory: 3764kb

input:

100000 2

output:

1 100000 2 99999 3 99998 4 99997 5 99996 6 99995 7 99994 8 99993 9 99992 10 99991 11 99990 12 99989 13 99988 14 99987 15 99986 16 99985 17 99984 18 99983 19 99982 20 99981 21 99980 22 99979 23 99978 24 99977 25 99976 26 99975 27 99974 28 99973 29 99972 30 99971 31 99970 32 99969 33 99968 34 99967 35...

result:

ok answer is correct

Test #5:

score: 0
Accepted
time: 4ms
memory: 3800kb

input:

100000 500

output:

1 100000 2 99999 3 99998 4 99997 5 99996 6 99995 7 99994 8 99993 9 99992 10 99991 11 99990 12 99989 13 99988 14 99987 15 99986 16 99985 17 99984 18 99983 19 99982 20 99981 21 99980 22 99979 23 99978 24 99977 25 99976 26 99975 27 99974 28 99973 29 99972 30 99971 31 99970 32 99969 33 99968 34 99967 35...

result:

ok answer is correct

Test #6:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

1 1

output:

1

result:

ok answer is correct

Test #7:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

2 1

output:

1 2 

result:

ok answer is correct

Test #8:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

3 3

output:

1
2
3

result:

ok answer is correct

Test #9:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

4 2

output:

1 4 
2 3 

result:

ok answer is correct

Test #10:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

6 2

output:

5 4 2 
6 3 1 

result:

ok answer is correct

Test #11:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

8 4

output:

1 8 
2 7 
3 6 
4 5 

result:

ok answer is correct

Test #12:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

9 3

output:

7 6 2 
8 4 3 
9 5 1 

result:

ok answer is correct

Test #13:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

10 5

output:

1 10 
2 9 
3 8 
4 7 
5 6 

result:

ok answer is correct

Test #14:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

12 3

output:

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

result:

ok answer is correct

Test #15:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

14 7

output:

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

result:

ok answer is correct

Test #16:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

15 5

output:

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

result:

ok answer is correct

Test #17:

score: 0
Accepted
time: 0ms
memory: 3864kb

input:

16 2

output:

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

result:

ok answer is correct

Test #18:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

18 9

output:

1 18 
2 17 
3 16 
4 15 
5 14 
6 13 
7 12 
8 11 
9 10 

result:

ok answer is correct

Test #19:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

40 20

output:

1 40 
2 39 
3 38 
4 37 
5 36 
6 35 
7 34 
8 33 
9 32 
10 31 
11 30 
12 29 
13 28 
14 27 
15 26 
16 25 
17 24 
18 23 
19 22 
20 21 

result:

ok answer is correct

Test #20:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

70 14

output:

29 28 8 43 70 
30 26 9 44 69 
31 24 10 45 68 
32 22 11 46 67 
33 20 12 47 66 
34 18 13 48 65 
35 16 14 49 64 
36 27 1 50 63 
37 25 2 51 62 
38 23 3 52 61 
39 21 4 53 60 
40 19 5 54 59 
41 17 6 55 58 
42 15 7 56 57 

result:

ok answer is correct

Test #21:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

115 23

output:

47 46 12 70 115 
48 44 13 71 114 
49 42 14 72 113 
50 40 15 73 112 
51 38 16 74 111 
52 36 17 75 110 
53 34 18 76 109 
54 32 19 77 108 
55 30 20 78 107 
56 28 21 79 106 
57 26 22 80 105 
58 24 23 81 104 
59 45 1 82 103 
60 43 2 83 102 
61 41 3 84 101 
62 39 4 85 100 
63 37 5 86 99 
64 35 6 87 98 
65...

result:

ok answer is correct

Test #22:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

198 66

output:

133 132 34 
134 130 35 
135 128 36 
136 126 37 
137 124 38 
138 122 39 
139 120 40 
140 118 41 
141 116 42 
142 114 43 
143 112 44 
144 110 45 
145 108 46 
146 106 47 
147 104 48 
148 102 49 
149 100 50 
150 98 51 
151 96 52 
152 94 53 
153 92 54 
154 90 55 
155 88 56 
156 86 57 
157 84 58 
158 82 5...

result:

ok answer is correct

Test #23:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

350 50

output:

101 100 26 151 350 152 349 
102 98 27 153 348 154 347 
103 96 28 155 346 156 345 
104 94 29 157 344 158 343 
105 92 30 159 342 160 341 
106 90 31 161 340 162 339 
107 88 32 163 338 164 337 
108 86 33 165 336 166 335 
109 84 34 167 334 168 333 
110 82 35 169 332 170 331 
111 80 36 171 330 172 329 
11...

result:

ok answer is correct

Test #24:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

652 163

output:

1 652 2 651 
3 650 4 649 
5 648 6 647 
7 646 8 645 
9 644 10 643 
11 642 12 641 
13 640 14 639 
15 638 16 637 
17 636 18 635 
19 634 20 633 
21 632 22 631 
23 630 24 629 
25 628 26 627 
27 626 28 625 
29 624 30 623 
31 622 32 621 
33 620 34 619 
35 618 36 617 
37 616 38 615 
39 614 40 613 
41 612 42...

result:

ok answer is correct

Test #25:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

1168 16

output:

33 32 9 49 1168 50 1167 51 1166 52 1165 53 1164 54 1163 55 1162 56 1161 57 1160 58 1159 59 1158 60 1157 61 1156 62 1155 63 1154 64 1153 65 1152 66 1151 67 1150 68 1149 69 1148 70 1147 71 1146 72 1145 73 1144 74 1143 75 1142 76 1141 77 1140 78 1139 79 1138 80 1137 81 1136 82 1135 83 1134 
34 30 10 84...

result:

ok answer is correct

Test #26:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

2104 526

output:

1 2104 2 2103 
3 2102 4 2101 
5 2100 6 2099 
7 2098 8 2097 
9 2096 10 2095 
11 2094 12 2093 
13 2092 14 2091 
15 2090 16 2089 
17 2088 18 2087 
19 2086 20 2085 
21 2084 22 2083 
23 2082 24 2081 
25 2080 26 2079 
27 2078 28 2077 
29 2076 30 2075 
31 2074 32 2073 
33 2072 34 2071 
35 2070 36 2069 
37 ...

result:

ok answer is correct

Test #27:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

3562 274

output:

549 548 138 823 3562 824 3561 825 3560 826 3559 827 3558 
550 546 139 828 3557 829 3556 830 3555 831 3554 832 3553 
551 544 140 833 3552 834 3551 835 3550 836 3549 837 3548 
552 542 141 838 3547 839 3546 840 3545 841 3544 842 3543 
553 540 142 843 3542 844 3541 845 3540 846 3539 847 3538 
554 538 14...

result:

ok answer is correct

Test #28:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

6528 1632

output:

1 6528 2 6527 
3 6526 4 6525 
5 6524 6 6523 
7 6522 8 6521 
9 6520 10 6519 
11 6518 12 6517 
13 6516 14 6515 
15 6514 16 6513 
17 6512 18 6511 
19 6510 20 6509 
21 6508 22 6507 
23 6506 24 6505 
25 6504 26 6503 
27 6502 28 6501 
29 6500 30 6499 
31 6498 32 6497 
33 6496 34 6495 
35 6494 36 6493 
37 ...

result:

ok answer is correct

Test #29:

score: 0
Accepted
time: 1ms
memory: 3584kb

input:

10395 165

output:

331 330 83 496 10395 497 10394 498 10393 499 10392 500 10391 501 10390 502 10389 503 10388 504 10387 505 10386 506 10385 507 10384 508 10383 509 10382 510 10381 511 10380 512 10379 513 10378 514 10377 515 10376 516 10375 517 10374 518 10373 519 10372 520 10371 521 10370 522 10369 523 10368 524 10367...

result:

ok answer is correct

Test #30:

score: 0
Accepted
time: 1ms
memory: 3656kb

input:

16820 10

output:

1 16820 2 16819 3 16818 4 16817 5 16816 6 16815 7 16814 8 16813 9 16812 10 16811 11 16810 12 16809 13 16808 14 16807 15 16806 16 16805 17 16804 18 16803 19 16802 20 16801 21 16800 22 16799 23 16798 24 16797 25 16796 26 16795 27 16794 28 16793 29 16792 30 16791 31 16790 32 16789 33 16788 34 16787 35 ...

result:

ok answer is correct

Test #31:

score: 0
Accepted
time: 2ms
memory: 3968kb

input:

31638 10546

output:

21093 21092 5274 
21094 21090 5275 
21095 21088 5276 
21096 21086 5277 
21097 21084 5278 
21098 21082 5279 
21099 21080 5280 
21100 21078 5281 
21101 21076 5282 
21102 21074 5283 
21103 21072 5284 
21104 21070 5285 
21105 21068 5286 
21106 21066 5287 
21107 21064 5288 
21108 21062 5289 
21109 21060 ...

result:

ok answer is correct

Test #32:

score: 0
Accepted
time: 3ms
memory: 3696kb

input:

61368 12

output:

1 61368 2 61367 3 61366 4 61365 5 61364 6 61363 7 61362 8 61361 9 61360 10 61359 11 61358 12 61357 13 61356 14 61355 15 61354 16 61353 17 61352 18 61351 19 61350 20 61349 21 61348 22 61347 23 61346 24 61345 25 61344 26 61343 27 61342 28 61341 29 61340 30 61339 31 61338 32 61337 33 61336 34 61335 35 ...

result:

ok answer is correct

Test #33:

score: 0
Accepted
time: 4ms
memory: 4008kb

input:

100000 160

output:

321 320 81 481 100000 482 99999 483 99998 484 99997 485 99996 486 99995 487 99994 488 99993 489 99992 490 99991 491 99990 492 99989 493 99988 494 99987 495 99986 496 99985 497 99984 498 99983 499 99982 500 99981 501 99980 502 99979 503 99978 504 99977 505 99976 506 99975 507 99974 508 99973 509 9997...

result:

ok answer is correct

Test #34:

score: 0
Accepted
time: 4ms
memory: 3864kb

input:

99991 99991

output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...

result:

ok answer is correct

Test #35:

score: 0
Accepted
time: 5ms
memory: 3980kb

input:

99989 1

output:

3 2 1 4 99989 5 99988 6 99987 7 99986 8 99985 9 99984 10 99983 11 99982 12 99981 13 99980 14 99979 15 99978 16 99977 17 99976 18 99975 19 99974 20 99973 21 99972 22 99971 23 99970 24 99969 25 99968 26 99967 27 99966 28 99965 29 99964 30 99963 31 99962 32 99961 33 99960 34 99959 35 99958 36 99957 37 ...

result:

ok answer is correct

Test #36:

score: 0
Accepted
time: 4ms
memory: 3604kb

input:

99971 99971

output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...

result:

ok answer is correct

Test #37:

score: 0
Accepted
time: 4ms
memory: 3852kb

input:

99961 1

output:

3 2 1 4 99961 5 99960 6 99959 7 99958 8 99957 9 99956 10 99955 11 99954 12 99953 13 99952 14 99951 15 99950 16 99949 17 99948 18 99947 19 99946 20 99945 21 99944 22 99943 23 99942 24 99941 25 99940 26 99939 27 99938 28 99937 29 99936 30 99935 31 99934 32 99933 33 99932 34 99931 35 99930 36 99929 37 ...

result:

ok answer is correct

Test #38:

score: 0
Accepted
time: 4ms
memory: 3580kb

input:

99929 99929

output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
...

result:

ok answer is correct

Test #39:

score: 0
Accepted
time: 4ms
memory: 3728kb

input:

96728 226

output:

1 96728 2 96727 3 96726 4 96725 5 96724 6 96723 7 96722 8 96721 9 96720 10 96719 11 96718 12 96717 13 96716 14 96715 15 96714 16 96713 17 96712 18 96711 19 96710 20 96709 21 96708 22 96707 23 96706 24 96705 25 96704 26 96703 27 96702 28 96701 29 96700 30 96699 31 96698 32 96697 33 96696 34 96695 35 ...

result:

ok answer is correct

Test #40:

score: 0
Accepted
time: 4ms
memory: 3820kb

input:

95742 243

output:

1 95742 2 95741 3 95740 4 95739 5 95738 6 95737 7 95736 8 95735 9 95734 10 95733 11 95732 12 95731 13 95730 14 95729 15 95728 16 95727 17 95726 18 95725 19 95724 20 95723 21 95722 22 95721 23 95720 24 95719 25 95718 26 95717 27 95716 28 95715 29 95714 30 95713 31 95712 32 95711 33 95710 34 95709 35 ...

result:

ok answer is correct

Test #41:

score: 0
Accepted
time: 4ms
memory: 3780kb

input:

93737 49

output:

99 98 25 148 93737 149 93736 150 93735 151 93734 152 93733 153 93732 154 93731 155 93730 156 93729 157 93728 158 93727 159 93726 160 93725 161 93724 162 93723 163 93722 164 93721 165 93720 166 93719 167 93718 168 93717 169 93716 170 93715 171 93714 172 93713 173 93712 174 93711 175 93710 176 93709 1...

result:

ok answer is correct

Test #42:

score: 0
Accepted
time: 4ms
memory: 3784kb

input:

94528 224

output:

1 94528 2 94527 3 94526 4 94525 5 94524 6 94523 7 94522 8 94521 9 94520 10 94519 11 94518 12 94517 13 94516 14 94515 15 94514 16 94513 17 94512 18 94511 19 94510 20 94509 21 94508 22 94507 23 94506 24 94505 25 94504 26 94503 27 94502 28 94501 29 94500 30 94499 31 94498 32 94497 33 94496 34 94495 35 ...

result:

ok answer is correct

Test #43:

score: 0
Accepted
time: 4ms
memory: 3724kb

input:

93284 4

output:

9 8 3 13 93284 14 93283 15 93282 16 93281 17 93280 18 93279 19 93278 20 93277 21 93276 22 93275 23 93274 24 93273 25 93272 26 93271 27 93270 28 93269 29 93268 30 93267 31 93266 32 93265 33 93264 34 93263 35 93262 36 93261 37 93260 38 93259 39 93258 40 93257 41 93256 42 93255 43 93254 44 93253 45 932...

result:

ok answer is correct

Test #44:

score: 0
Accepted
time: 0ms
memory: 4008kb

input:

93784 152

output:

305 304 77 457 93784 458 93783 459 93782 460 93781 461 93780 462 93779 463 93778 464 93777 465 93776 466 93775 467 93774 468 93773 469 93772 470 93771 471 93770 472 93769 473 93768 474 93767 475 93766 476 93765 477 93764 478 93763 479 93762 480 93761 481 93760 482 93759 483 93758 484 93757 485 93756...

result:

ok answer is correct

Test #45:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

98879 101

output:

203 202 51 304 98879 305 98878 306 98877 307 98876 308 98875 309 98874 310 98873 311 98872 312 98871 313 98870 314 98869 315 98868 316 98867 317 98866 318 98865 319 98864 320 98863 321 98862 322 98861 323 98860 324 98859 325 98858 326 98857 327 98856 328 98855 329 98854 330 98853 331 98852 332 98851...

result:

ok answer is correct

Test #46:

score: 0
Accepted
time: 4ms
memory: 3780kb

input:

100000 1

output:

1 100000 2 99999 3 99998 4 99997 5 99996 6 99995 7 99994 8 99993 9 99992 10 99991 11 99990 12 99989 13 99988 14 99987 15 99986 16 99985 17 99984 18 99983 19 99982 20 99981 21 99980 22 99979 23 99978 24 99977 25 99976 26 99975 27 99974 28 99973 29 99972 30 99971 31 99970 32 99969 33 99968 34 99967 35...

result:

ok answer is correct

Test #47:

score: 0
Accepted
time: 3ms
memory: 4368kb

input:

99910 9991

output:

1 99910 2 99909 3 99908 4 99907 5 99906 
6 99905 7 99904 8 99903 9 99902 10 99901 
11 99900 12 99899 13 99898 14 99897 15 99896 
16 99895 17 99894 18 99893 19 99892 20 99891 
21 99890 22 99889 23 99888 24 99887 25 99886 
26 99885 27 99884 28 99883 29 99882 30 99881 
31 99880 32 99879 33 99878 34 998...

result:

ok answer is correct

Test #48:

score: 0
Accepted
time: 3ms
memory: 5980kb

input:

99906 49953

output:

1 99906 
2 99905 
3 99904 
4 99903 
5 99902 
6 99901 
7 99900 
8 99899 
9 99898 
10 99897 
11 99896 
12 99895 
13 99894 
14 99893 
15 99892 
16 99891 
17 99890 
18 99889 
19 99888 
20 99887 
21 99886 
22 99885 
23 99884 
24 99883 
25 99882 
26 99881 
27 99880 
28 99879 
29 99878 
30 99877 
31 99876 ...

result:

ok answer is correct

Test #49:

score: 0
Accepted
time: 3ms
memory: 4660kb

input:

99942 16657

output:

1 99942 2 99941 3 99940 
4 99939 5 99938 6 99937 
7 99936 8 99935 9 99934 
10 99933 11 99932 12 99931 
13 99930 14 99929 15 99928 
16 99927 17 99926 18 99925 
19 99924 20 99923 21 99922 
22 99921 23 99920 24 99919 
25 99918 26 99917 27 99916 
28 99915 29 99914 30 99913 
31 99912 32 99911 33 99910 
3...

result:

ok answer is correct

Test #50:

score: 0
Accepted
time: 5ms
memory: 4140kb

input:

99968 6248

output:

1 99968 2 99967 3 99966 4 99965 5 99964 6 99963 7 99962 8 99961 
9 99960 10 99959 11 99958 12 99957 13 99956 14 99955 15 99954 16 99953 
17 99952 18 99951 19 99950 20 99949 21 99948 22 99947 23 99946 24 99945 
25 99944 26 99943 27 99942 28 99941 29 99940 30 99939 31 99938 32 99937 
33 99936 34 99935...

result:

ok answer is correct

Test #51:

score: 0
Accepted
time: 5ms
memory: 4428kb

input:

99990 9999

output:

1 99990 2 99989 3 99988 4 99987 5 99986 
6 99985 7 99984 8 99983 9 99982 10 99981 
11 99980 12 99979 13 99978 14 99977 15 99976 
16 99975 17 99974 18 99973 19 99972 20 99971 
21 99970 22 99969 23 99968 24 99967 25 99966 
26 99965 27 99964 28 99963 29 99962 30 99961 
31 99960 32 99959 33 99958 34 999...

result:

ok answer is correct

Test #52:

score: 0
Accepted
time: 2ms
memory: 3872kb

input:

99960 2940

output:

1 99960 2 99959 3 99958 4 99957 5 99956 6 99955 7 99954 8 99953 9 99952 10 99951 11 99950 12 99949 13 99948 14 99947 15 99946 16 99945 17 99944 
18 99943 19 99942 20 99941 21 99940 22 99939 23 99938 24 99937 25 99936 26 99935 27 99934 28 99933 29 99932 30 99931 31 99930 32 99929 33 99928 34 99927 
3...

result:

ok answer is correct

Test #53:

score: 0
Accepted
time: 5ms
memory: 4504kb

input:

99972 8331

output:

1 99972 2 99971 3 99970 4 99969 5 99968 6 99967 
7 99966 8 99965 9 99964 10 99963 11 99962 12 99961 
13 99960 14 99959 15 99958 16 99957 17 99956 18 99955 
19 99954 20 99953 21 99952 22 99951 23 99950 24 99949 
25 99948 26 99947 27 99946 28 99945 29 99944 30 99943 
31 99942 32 99941 33 99940 34 9993...

result:

ok answer is correct

Test #54:

score: 0
Accepted
time: 5ms
memory: 4188kb

input:

99958 2438

output:

4877 4876 1220 7315 99958 7316 99957 7317 99956 7318 99955 7319 99954 7320 99953 7321 99952 7322 99951 7323 99950 7324 99949 7325 99948 7326 99947 7327 99946 7328 99945 7329 99944 7330 99943 7331 99942 7332 99941 7333 99940 
4878 4874 1221 7334 99939 7335 99938 7336 99937 7337 99936 7338 99935 7339 ...

result:

ok answer is correct

Test #55:

score: 0
Accepted
time: 7ms
memory: 6048kb

input:

99938 49969

output:

1 99938 
2 99937 
3 99936 
4 99935 
5 99934 
6 99933 
7 99932 
8 99931 
9 99930 
10 99929 
11 99928 
12 99927 
13 99926 
14 99925 
15 99924 
16 99923 
17 99922 
18 99921 
19 99920 
20 99919 
21 99918 
22 99917 
23 99916 
24 99915 
25 99914 
26 99913 
27 99912 
28 99911 
29 99910 
30 99909 
31 99908 ...

result:

ok answer is correct

Test #56:

score: 0
Accepted
time: 5ms
memory: 4004kb

input:

99960 2940

output:

1 99960 2 99959 3 99958 4 99957 5 99956 6 99955 7 99954 8 99953 9 99952 10 99951 11 99950 12 99949 13 99948 14 99947 15 99946 16 99945 17 99944 
18 99943 19 99942 20 99941 21 99940 22 99939 23 99938 24 99937 25 99936 26 99935 27 99934 28 99933 29 99932 30 99931 31 99930 32 99929 33 99928 34 99927 
3...

result:

ok answer is correct

Test #57:

score: 0
Accepted
time: 3ms
memory: 4412kb

input:

100000 25000

output:

1 100000 2 99999 
3 99998 4 99997 
5 99996 6 99995 
7 99994 8 99993 
9 99992 10 99991 
11 99990 12 99989 
13 99988 14 99987 
15 99986 16 99985 
17 99984 18 99983 
19 99982 20 99981 
21 99980 22 99979 
23 99978 24 99977 
25 99976 26 99975 
27 99974 28 99973 
29 99972 30 99971 
31 99970 32 99969 
33 9...

result:

ok answer is correct

Test #58:

score: 0
Accepted
time: 6ms
memory: 4660kb

input:

100000 10000

output:

1 100000 2 99999 3 99998 4 99997 5 99996 
6 99995 7 99994 8 99993 9 99992 10 99991 
11 99990 12 99989 13 99988 14 99987 15 99986 
16 99985 17 99984 18 99983 19 99982 20 99981 
21 99980 22 99979 23 99978 24 99977 25 99976 
26 99975 27 99974 28 99973 29 99972 30 99971 
31 99970 32 99969 33 99968 34 99...

result:

ok answer is correct

Test #59:

score: 0
Accepted
time: 5ms
memory: 3904kb

input:

100000 1250

output:

1 100000 2 99999 3 99998 4 99997 5 99996 6 99995 7 99994 8 99993 9 99992 10 99991 11 99990 12 99989 13 99988 14 99987 15 99986 16 99985 17 99984 18 99983 19 99982 20 99981 21 99980 22 99979 23 99978 24 99977 25 99976 26 99975 27 99974 28 99973 29 99972 30 99971 31 99970 32 99969 33 99968 34 99967 35...

result:

ok answer is correct

Test #60:

score: 0
Accepted
time: 0ms
memory: 4368kb

input:

100000 6250

output:

1 100000 2 99999 3 99998 4 99997 5 99996 6 99995 7 99994 8 99993 
9 99992 10 99991 11 99990 12 99989 13 99988 14 99987 15 99986 16 99985 
17 99984 18 99983 19 99982 20 99981 21 99980 22 99979 23 99978 24 99977 
25 99976 26 99975 27 99974 28 99973 29 99972 30 99971 31 99970 32 99969 
33 99968 34 9996...

result:

ok answer is correct

Test #61:

score: 0
Accepted
time: 5ms
memory: 3892kb

input:

100000 5000

output:

1 100000 2 99999 3 99998 4 99997 5 99996 6 99995 7 99994 8 99993 9 99992 10 99991 
11 99990 12 99989 13 99988 14 99987 15 99986 16 99985 17 99984 18 99983 19 99982 20 99981 
21 99980 22 99979 23 99978 24 99977 25 99976 26 99975 27 99974 28 99973 29 99972 30 99971 
31 99970 32 99969 33 99968 34 99967...

result:

ok answer is correct