QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#248571#7619. Make SYSU Great Again Iucup-team672#AC ✓318ms67772kbC++14738b2023-11-11 20:02:122023-11-11 20:02:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 14808kb

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

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

input:

3 7

output:

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

result:

ok The answer is correct.

Test #3:

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

input:

2 4

output:

2 2
1 2
1 1
2 1

result:

ok The answer is correct.

Test #4:

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

input:

3 9

output:

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

result:

ok The answer is correct.

Test #5:

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

input:

10 20

output:

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

result:

ok The answer is correct.

Test #6:

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

input:

10 100

output:

10 10
9 10
9 8
7 8
7 6
5 6
5 4
3 4
3 2
1 2
1 1
2 1
2 3
4 3
4 5
6 5
6 7
8 7
8 9
10 9
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 2
2 4
2 5
2 6
2 7
2 8
2 9
2 10
3 1
3 3
3 5
3 6
3 7
3 8
3 9
3 10
4 1
4 2
4 4
4 6
4 7
4 8
4 9
4 10
5 1
5 2
5 3
5 5
5 7
5 8
5 9
5 10
6 1
6 2
6 3
6 4
6 6
6 8
6 9
6 10
7 1
7 2
7 3
7 4
7 ...

result:

ok The answer is correct.

Test #7:

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

input:

32 64

output:

32 32
31 32
31 30
29 30
29 28
27 28
27 26
25 26
25 24
23 24
23 22
21 22
21 20
19 20
19 18
17 18
17 16
15 16
15 14
13 14
13 12
11 12
11 10
9 10
9 8
7 8
7 6
5 6
5 4
3 4
3 2
1 2
1 1
2 1
2 3
4 3
4 5
6 5
6 7
8 7
8 9
10 9
10 11
12 11
12 13
14 13
14 15
16 15
16 17
18 17
18 19
20 19
20 21
22 21
22 23
24 23
...

result:

ok The answer is correct.

Test #8:

score: 0
Accepted
time: 56ms
memory: 35492kb

input:

200000 400000

output:

200000 200000
199999 200000
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979...

result:

ok The answer is correct.

Test #9:

score: 0
Accepted
time: 194ms
memory: 55720kb

input:

200000 745589

output:

200000 200000
199999 200000
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979...

result:

ok The answer is correct.

Test #10:

score: 0
Accepted
time: 299ms
memory: 66720kb

input:

199999 978736

output:

199999 199999
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979 199980
199979...

result:

ok The answer is correct.

Test #11:

score: 0
Accepted
time: 154ms
memory: 47892kb

input:

198054 619549

output:

198054 198054
198053 198054
198053 198052
198051 198052
198051 198050
198049 198050
198049 198048
198047 198048
198047 198046
198045 198046
198045 198044
198043 198044
198043 198042
198041 198042
198041 198040
198039 198040
198039 198038
198037 198038
198037 198036
198035 198036
198035 198034
198033...

result:

ok The answer is correct.

Test #12:

score: 0
Accepted
time: 161ms
memory: 47448kb

input:

123124 567865

output:

123124 123124
123123 123124
123123 123122
123121 123122
123121 123120
123119 123120
123119 123118
123117 123118
123117 123116
123115 123116
123115 123114
123113 123114
123113 123112
123111 123112
123111 123110
123109 123110
123109 123108
123107 123108
123107 123106
123105 123106
123105 123104
123103...

result:

ok The answer is correct.

Test #13:

score: 0
Accepted
time: 85ms
memory: 38264kb

input:

124252 416756

output:

124252 124252
124251 124252
124251 124250
124249 124250
124249 124248
124247 124248
124247 124246
124245 124246
124245 124244
124243 124244
124243 124242
124241 124242
124241 124240
124239 124240
124239 124238
124237 124238
124237 124236
124235 124236
124235 124234
124233 124234
124233 124232
124231...

result:

ok The answer is correct.

Test #14:

score: 0
Accepted
time: 221ms
memory: 55956kb

input:

103503 748077

output:

103503 103503
103503 103502
103501 103502
103501 103500
103499 103500
103499 103498
103497 103498
103497 103496
103495 103496
103495 103494
103493 103494
103493 103492
103491 103492
103491 103490
103489 103490
103489 103488
103487 103488
103487 103486
103485 103486
103485 103484
103483 103484
103483...

result:

ok The answer is correct.

Test #15:

score: 0
Accepted
time: 318ms
memory: 67172kb

input:

120394 987331

output:

120394 120394
120393 120394
120393 120392
120391 120392
120391 120390
120389 120390
120389 120388
120387 120388
120387 120386
120385 120386
120385 120384
120383 120384
120383 120382
120381 120382
120381 120380
120379 120380
120379 120378
120377 120378
120377 120376
120375 120376
120375 120374
120373...

result:

ok The answer is correct.

Test #16:

score: 0
Accepted
time: 174ms
memory: 47764kb

input:

123942 619710

output:

123942 123942
123941 123942
123941 123940
123939 123940
123939 123938
123937 123938
123937 123936
123935 123936
123935 123934
123933 123934
123933 123932
123931 123932
123931 123930
123929 123930
123929 123928
123927 123928
123927 123926
123925 123926
123925 123924
123923 123924
123923 123922
123921...

result:

ok The answer is correct.

Test #17:

score: 0
Accepted
time: 290ms
memory: 67704kb

input:

51251 1000000

output:

51251 51251
51251 51250
51249 51250
51249 51248
51247 51248
51247 51246
51245 51246
51245 51244
51243 51244
51243 51242
51241 51242
51241 51240
51239 51240
51239 51238
51237 51238
51237 51236
51235 51236
51235 51234
51233 51234
51233 51232
51231 51232
51231 51230
51229 51230
51229 51228
51227 51228
...

result:

ok The answer is correct.

Test #18:

score: 0
Accepted
time: 46ms
memory: 37532kb

input:

200000 400001

output:

200000 200000
199999 200000
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979...

result:

ok The answer is correct.

Test #19:

score: 0
Accepted
time: 59ms
memory: 37608kb

input:

199999 400001

output:

199999 199999
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979 199980
199979...

result:

ok The answer is correct.

Test #20:

score: 0
Accepted
time: 18ms
memory: 26116kb

input:

100000 200000

output:

100000 100000
99999 100000
99999 99998
99997 99998
99997 99996
99995 99996
99995 99994
99993 99994
99993 99992
99991 99992
99991 99990
99989 99990
99989 99988
99987 99988
99987 99986
99985 99986
99985 99984
99983 99984
99983 99982
99981 99982
99981 99980
99979 99980
99979 99978
99977 99978
99977 999...

result:

ok The answer is correct.

Test #21:

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

input:

14125 28290

output:

14125 14125
14125 14124
14123 14124
14123 14122
14121 14122
14121 14120
14119 14120
14119 14118
14117 14118
14117 14116
14115 14116
14115 14114
14113 14114
14113 14112
14111 14112
14111 14110
14109 14110
14109 14108
14107 14108
14107 14106
14105 14106
14105 14104
14103 14104
14103 14102
14101 14102
...

result:

ok The answer is correct.

Test #22:

score: 0
Accepted
time: 302ms
memory: 67704kb

input:

200000 1000000

output:

200000 200000
199999 200000
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979...

result:

ok The answer is correct.

Test #23:

score: 0
Accepted
time: 317ms
memory: 67684kb

input:

100000 1000000

output:

100000 100000
99999 100000
99999 99998
99997 99998
99997 99996
99995 99996
99995 99994
99993 99994
99993 99992
99991 99992
99991 99990
99989 99990
99989 99988
99987 99988
99987 99986
99985 99986
99985 99984
99983 99984
99983 99982
99981 99982
99981 99980
99979 99980
99979 99978
99977 99978
99977 999...

result:

ok The answer is correct.

Test #24:

score: 0
Accepted
time: 187ms
memory: 67772kb

input:

1000 1000000

output:

1000 1000
999 1000
999 998
997 998
997 996
995 996
995 994
993 994
993 992
991 992
991 990
989 990
989 988
987 988
987 986
985 986
985 984
983 984
983 982
981 982
981 980
979 980
979 978
977 978
977 976
975 976
975 974
973 974
973 972
971 972
971 970
969 970
969 968
967 968
967 966
965 966
965 964
9...

result:

ok The answer is correct.

Test #25:

score: 0
Accepted
time: 53ms
memory: 30028kb

input:

532 283024

output:

532 532
531 532
531 530
529 530
529 528
527 528
527 526
525 526
525 524
523 524
523 522
521 522
521 520
519 520
519 518
517 518
517 516
515 516
515 514
513 514
513 512
511 512
511 510
509 510
509 508
507 508
507 506
505 506
505 504
503 504
503 502
501 502
501 500
499 500
499 498
497 498
497 496
495 ...

result:

ok The answer is correct.

Test #26:

score: 0
Accepted
time: 147ms
memory: 45464kb

input:

121434 568983

output:

121434 121434
121433 121434
121433 121432
121431 121432
121431 121430
121429 121430
121429 121428
121427 121428
121427 121426
121425 121426
121425 121424
121423 121424
121423 121422
121421 121422
121421 121420
121419 121420
121419 121418
121417 121418
121417 121416
121415 121416
121415 121414
121413...

result:

ok The answer is correct.

Test #27:

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

input:

11111 32222

output:

11111 11111
11111 11110
11109 11110
11109 11108
11107 11108
11107 11106
11105 11106
11105 11104
11103 11104
11103 11102
11101 11102
11101 11100
11099 11100
11099 11098
11097 11098
11097 11096
11095 11096
11095 11094
11093 11094
11093 11092
11091 11092
11091 11090
11089 11090
11089 11088
11087 11088
...

result:

ok The answer is correct.

Test #28:

score: 0
Accepted
time: 125ms
memory: 46904kb

input:

200000 600000

output:

200000 200000
199999 200000
199999 199998
199997 199998
199997 199996
199995 199996
199995 199994
199993 199994
199993 199992
199991 199992
199991 199990
199989 199990
199989 199988
199987 199988
199987 199986
199985 199986
199985 199984
199983 199984
199983 199982
199981 199982
199981 199980
199979...

result:

ok The answer is correct.

Test #29:

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

input:

64 128

output:

64 64
63 64
63 62
61 62
61 60
59 60
59 58
57 58
57 56
55 56
55 54
53 54
53 52
51 52
51 50
49 50
49 48
47 48
47 46
45 46
45 44
43 44
43 42
41 42
41 40
39 40
39 38
37 38
37 36
35 36
35 34
33 34
33 32
31 32
31 30
29 30
29 28
27 28
27 26
25 26
25 24
23 24
23 22
21 22
21 20
19 20
19 18
17 18
17 16
15 16
...

result:

ok The answer is correct.

Test #30:

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

input:

128 8920

output:

128 128
127 128
127 126
125 126
125 124
123 124
123 122
121 122
121 120
119 120
119 118
117 118
117 116
115 116
115 114
113 114
113 112
111 112
111 110
109 110
109 108
107 108
107 106
105 106
105 104
103 104
103 102
101 102
101 100
99 100
99 98
97 98
97 96
95 96
95 94
93 94
93 92
91 92
91 90
89 90
8...

result:

ok The answer is correct.

Extra Test:

score: 0
Extra Test Passed