QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#247217#7619. Make SYSU Great Again Iucup-team1289#AC ✓176ms25720kbC++201.4kb2023-11-11 13:41:422023-11-11 13:41:43

详细

Test #1:

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

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

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

input:

3 7

output:

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

result:

ok The answer is correct.

Test #3:

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

input:

2 4

output:

1 1
1 2
2 2
2 1

result:

ok The answer is correct.

Test #4:

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

input:

3 9

output:

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

result:

ok The answer is correct.

Test #5:

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

input:

10 20

output:

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

result:

ok The answer is correct.

Test #6:

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

input:

10 100

output:

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

result:

ok The answer is correct.

Test #7:

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

input:

32 64

output:

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

result:

ok The answer is correct.

Test #8:

score: 0
Accepted
time: 32ms
memory: 9192kb

input:

200000 400000

output:

1 1
1 200000
2 200000
2 199999
3 199999
3 199998
4 199998
4 199997
5 199997
5 199996
6 199996
6 199995
7 199995
7 199994
8 199994
8 199993
9 199993
9 199992
10 199992
10 199991
11 199991
11 199990
12 199990
12 199989
13 199989
13 199988
14 199988
14 199987
15 199987
15 199986
16 199986
16 199985
17 ...

result:

ok The answer is correct.

Test #9:

score: 0
Accepted
time: 138ms
memory: 25260kb

input:

200000 745589

output:

1 1
1 200000
2 200000
2 199999
3 199999
3 199998
4 199998
4 199997
5 199997
5 199996
6 199996
6 199995
7 199995
7 199994
8 199994
8 199993
9 199993
9 199992
10 199992
10 199991
11 199991
11 199990
12 199990
12 199989
13 199989
13 199988
14 199988
14 199987
15 199987
15 199986
16 199986
16 199985
17 ...

result:

ok The answer is correct.

Test #10:

score: 0
Accepted
time: 176ms
memory: 25132kb

input:

199999 978736

output:

1 1
1 199999
2 199999
2 199998
3 199998
3 199997
4 199997
4 199996
5 199996
5 199995
6 199995
6 199994
7 199994
7 199993
8 199993
8 199992
9 199992
9 199991
10 199991
10 199990
11 199990
11 199989
12 199989
12 199988
13 199988
13 199987
14 199987
14 199986
15 199986
15 199985
16 199985
16 199984
17 ...

result:

ok The answer is correct.

Test #11:

score: 0
Accepted
time: 124ms
memory: 25720kb

input:

198054 619549

output:

1 1
1 198054
2 198054
2 198053
3 198053
3 198052
4 198052
4 198051
5 198051
5 198050
6 198050
6 198049
7 198049
7 198048
8 198048
8 198047
9 198047
9 198046
10 198046
10 198045
11 198045
11 198044
12 198044
12 198043
13 198043
13 198042
14 198042
14 198041
15 198041
15 198040
16 198040
16 198039
17 ...

result:

ok The answer is correct.

Test #12:

score: 0
Accepted
time: 102ms
memory: 16544kb

input:

123124 567865

output:

1 1
1 123124
2 123124
2 123123
3 123123
3 123122
4 123122
4 123121
5 123121
5 123120
6 123120
6 123119
7 123119
7 123118
8 123118
8 123117
9 123117
9 123116
10 123116
10 123115
11 123115
11 123114
12 123114
12 123113
13 123113
13 123112
14 123112
14 123111
15 123111
15 123110
16 123110
16 123109
17 ...

result:

ok The answer is correct.

Test #13:

score: 0
Accepted
time: 81ms
memory: 16820kb

input:

124252 416756

output:

1 1
1 124252
2 124252
2 124251
3 124251
3 124250
4 124250
4 124249
5 124249
5 124248
6 124248
6 124247
7 124247
7 124246
8 124246
8 124245
9 124245
9 124244
10 124244
10 124243
11 124243
11 124242
12 124242
12 124241
13 124241
13 124240
14 124240
14 124239
15 124239
15 124238
16 124238
16 124237
17 ...

result:

ok The answer is correct.

Test #14:

score: 0
Accepted
time: 108ms
memory: 14504kb

input:

103503 748077

output:

1 1
1 103503
2 103503
2 103502
3 103502
3 103501
4 103501
4 103500
5 103500
5 103499
6 103499
6 103498
7 103498
7 103497
8 103497
8 103496
9 103496
9 103495
10 103495
10 103494
11 103494
11 103493
12 103493
12 103492
13 103492
13 103491
14 103491
14 103490
15 103490
15 103489
16 103489
16 103488
17 ...

result:

ok The answer is correct.

Test #15:

score: 0
Accepted
time: 144ms
memory: 16344kb

input:

120394 987331

output:

1 1
1 120394
2 120394
2 120393
3 120393
3 120392
4 120392
4 120391
5 120391
5 120390
6 120390
6 120389
7 120389
7 120388
8 120388
8 120387
9 120387
9 120386
10 120386
10 120385
11 120385
11 120384
12 120384
12 120383
13 120383
13 120382
14 120382
14 120381
15 120381
15 120380
16 120380
16 120379
17 ...

result:

ok The answer is correct.

Test #16:

score: 0
Accepted
time: 105ms
memory: 16832kb

input:

123942 619710

output:

1 1
1 123942
2 123942
2 123941
3 123941
3 123940
4 123940
4 123939
5 123939
5 123938
6 123938
6 123937
7 123937
7 123936
8 123936
8 123935
9 123935
9 123934
10 123934
10 123933
11 123933
11 123932
12 123932
12 123931
13 123931
13 123930
14 123930
14 123929
15 123929
15 123928
16 123928
16 123927
17 ...

result:

ok The answer is correct.

Test #17:

score: 0
Accepted
time: 121ms
memory: 8668kb

input:

51251 1000000

output:

1 1
1 51251
2 51251
2 51250
3 51250
3 51249
4 51249
4 51248
5 51248
5 51247
6 51247
6 51246
7 51246
7 51245
8 51245
8 51244
9 51244
9 51243
10 51243
10 51242
11 51242
11 51241
12 51241
12 51240
13 51240
13 51239
14 51239
14 51238
15 51238
15 51237
16 51237
16 51236
17 51236
17 51235
18 51235
18 5123...

result:

ok The answer is correct.

Test #18:

score: 0
Accepted
time: 104ms
memory: 25440kb

input:

200000 400001

output:

1 1
1 200000
2 200000
2 199999
3 199999
3 199998
4 199998
4 199997
5 199997
5 199996
6 199996
6 199995
7 199995
7 199994
8 199994
8 199993
9 199993
9 199992
10 199992
10 199991
11 199991
11 199990
12 199990
12 199989
13 199989
13 199988
14 199988
14 199987
15 199987
15 199986
16 199986
16 199985
17 ...

result:

ok The answer is correct.

Test #19:

score: 0
Accepted
time: 105ms
memory: 25040kb

input:

199999 400001

output:

1 1
1 199999
2 199999
2 199998
3 199998
3 199997
4 199997
4 199996
5 199996
5 199995
6 199995
6 199994
7 199994
7 199993
8 199993
8 199992
9 199992
9 199991
10 199991
10 199990
11 199990
11 199989
12 199989
12 199988
13 199988
13 199987
14 199987
14 199986
15 199986
15 199985
16 199985
16 199984
17 ...

result:

ok The answer is correct.

Test #20:

score: 0
Accepted
time: 12ms
memory: 5168kb

input:

100000 200000

output:

1 1
1 100000
2 100000
2 99999
3 99999
3 99998
4 99998
4 99997
5 99997
5 99996
6 99996
6 99995
7 99995
7 99994
8 99994
8 99993
9 99993
9 99992
10 99992
10 99991
11 99991
11 99990
12 99990
12 99989
13 99989
13 99988
14 99988
14 99987
15 99987
15 99986
16 99986
16 99985
17 99985
17 99984
18 99984
18 99...

result:

ok The answer is correct.

Test #21:

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

input:

14125 28290

output:

1 1
1 14125
2 14125
2 14124
3 14124
3 14123
4 14123
4 14122
5 14122
5 14121
6 14121
6 14120
7 14120
7 14119
8 14119
8 14118
9 14118
9 14117
10 14117
10 14116
11 14116
11 14115
12 14115
12 14114
13 14114
13 14113
14 14113
14 14112
15 14112
15 14111
16 14111
16 14110
17 14110
17 14109
18 14109
18 1410...

result:

ok The answer is correct.

Test #22:

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

input:

200000 1000000

output:

1 1
1 200000
2 200000
2 199999
3 199999
3 199998
4 199998
4 199997
5 199997
5 199996
6 199996
6 199995
7 199995
7 199994
8 199994
8 199993
9 199993
9 199992
10 199992
10 199991
11 199991
11 199990
12 199990
12 199989
13 199989
13 199988
14 199988
14 199987
15 199987
15 199986
16 199986
16 199985
17 ...

result:

ok The answer is correct.

Test #23:

score: 0
Accepted
time: 141ms
memory: 14144kb

input:

100000 1000000

output:

1 1
1 100000
2 100000
2 99999
3 99999
3 99998
4 99998
4 99997
5 99997
5 99996
6 99996
6 99995
7 99995
7 99994
8 99994
8 99993
9 99993
9 99992
10 99992
10 99991
11 99991
11 99990
12 99990
12 99989
13 99989
13 99988
14 99988
14 99987
15 99987
15 99986
16 99986
16 99985
17 99985
17 99984
18 99984
18 99...

result:

ok The answer is correct.

Test #24:

score: 0
Accepted
time: 94ms
memory: 3640kb

input:

1000 1000000

output:

1 1
1 1000
2 1000
2 999
3 999
3 998
4 998
4 997
5 997
5 996
6 996
6 995
7 995
7 994
8 994
8 993
9 993
9 992
10 992
10 991
11 991
11 990
12 990
12 989
13 989
13 988
14 988
14 987
15 987
15 986
16 986
16 985
17 985
17 984
18 984
18 983
19 983
19 982
20 982
20 981
21 981
21 980
22 980
22 979
23 979
23 ...

result:

ok The answer is correct.

Test #25:

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

input:

532 283024

output:

1 1
1 532
2 532
2 531
3 531
3 530
4 530
4 529
5 529
5 528
6 528
6 527
7 527
7 526
8 526
8 525
9 525
9 524
10 524
10 523
11 523
11 522
12 522
12 521
13 521
13 520
14 520
14 519
15 519
15 518
16 518
16 517
17 517
17 516
18 516
18 515
19 515
19 514
20 514
20 513
21 513
21 512
22 512
22 511
23 511
23 51...

result:

ok The answer is correct.

Test #26:

score: 0
Accepted
time: 89ms
memory: 16296kb

input:

121434 568983

output:

1 1
1 121434
2 121434
2 121433
3 121433
3 121432
4 121432
4 121431
5 121431
5 121430
6 121430
6 121429
7 121429
7 121428
8 121428
8 121427
9 121427
9 121426
10 121426
10 121425
11 121425
11 121424
12 121424
12 121423
13 121423
13 121422
14 121422
14 121421
15 121421
15 121420
16 121420
16 121419
17 ...

result:

ok The answer is correct.

Test #27:

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

input:

11111 32222

output:

1 1
1 11111
2 11111
2 11110
3 11110
3 11109
4 11109
4 11108
5 11108
5 11107
6 11107
6 11106
7 11106
7 11105
8 11105
8 11104
9 11104
9 11103
10 11103
10 11102
11 11102
11 11101
12 11101
12 11100
13 11100
13 11099
14 11099
14 11098
15 11098
15 11097
16 11097
16 11096
17 11096
17 11095
18 11095
18 1109...

result:

ok The answer is correct.

Test #28:

score: 0
Accepted
time: 133ms
memory: 25124kb

input:

200000 600000

output:

1 1
1 200000
2 200000
2 199999
3 199999
3 199998
4 199998
4 199997
5 199997
5 199996
6 199996
6 199995
7 199995
7 199994
8 199994
8 199993
9 199993
9 199992
10 199992
10 199991
11 199991
11 199990
12 199990
12 199989
13 199989
13 199988
14 199988
14 199987
15 199987
15 199986
16 199986
16 199985
17 ...

result:

ok The answer is correct.

Test #29:

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

input:

64 128

output:

1 1
1 64
2 64
2 63
3 63
3 62
4 62
4 61
5 61
5 60
6 60
6 59
7 59
7 58
8 58
8 57
9 57
9 56
10 56
10 55
11 55
11 54
12 54
12 53
13 53
13 52
14 52
14 51
15 51
15 50
16 50
16 49
17 49
17 48
18 48
18 47
19 47
19 46
20 46
20 45
21 45
21 44
22 44
22 43
23 43
23 42
24 42
24 41
25 41
25 40
26 40
26 39
27 39
2...

result:

ok The answer is correct.

Test #30:

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

input:

128 8920

output:

1 1
1 128
2 128
2 127
3 127
3 126
4 126
4 125
5 125
5 124
6 124
6 123
7 123
7 122
8 122
8 121
9 121
9 120
10 120
10 119
11 119
11 118
12 118
12 117
13 117
13 116
14 116
14 115
15 115
15 114
16 114
16 113
17 113
17 112
18 112
18 111
19 111
19 110
20 110
20 109
21 109
21 108
22 108
22 107
23 107
23 10...

result:

ok The answer is correct.

Extra Test:

score: 0
Extra Test Passed