QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#650126#7619. Make SYSU Great Again IHuangHanShengAC ✓451ms22604kbC++17987b2024-10-18 13:13:052024-10-18 13:13:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

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

input:

3 7

output:

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

result:

ok The answer is correct.

Test #3:

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

input:

2 4

output:

1 1
2 1
2 2
1 2

result:

ok The answer is correct.

Test #4:

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

input:

3 9

output:

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

result:

ok The answer is correct.

Test #5:

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

input:

10 20

output:

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

result:

ok The answer is correct.

Test #6:

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

input:

10 100

output:

1 1
10 1
10 2
9 2
9 3
8 3
8 4
7 4
7 5
6 5
6 6
5 6
5 7
4 7
4 8
3 8
3 9
2 9
2 10
1 10
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: 3620kb

input:

32 64

output:

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

result:

ok The answer is correct.

Test #8:

score: 0
Accepted
time: 188ms
memory: 22296kb

input:

200000 400000

output:

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

result:

ok The answer is correct.

Test #9:

score: 0
Accepted
time: 343ms
memory: 22536kb

input:

200000 745589

output:

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

result:

ok The answer is correct.

Test #10:

score: 0
Accepted
time: 427ms
memory: 22308kb

input:

199999 978736

output:

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

result:

ok The answer is correct.

Test #11:

score: 0
Accepted
time: 284ms
memory: 22200kb

input:

198054 619549

output:

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

result:

ok The answer is correct.

Test #12:

score: 0
Accepted
time: 279ms
memory: 15108kb

input:

123124 567865

output:

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

result:

ok The answer is correct.

Test #13:

score: 0
Accepted
time: 184ms
memory: 15468kb

input:

124252 416756

output:

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

result:

ok The answer is correct.

Test #14:

score: 0
Accepted
time: 268ms
memory: 13324kb

input:

103503 748077

output:

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

result:

ok The answer is correct.

Test #15:

score: 0
Accepted
time: 403ms
memory: 14900kb

input:

120394 987331

output:

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

result:

ok The answer is correct.

Test #16:

score: 0
Accepted
time: 255ms
memory: 15240kb

input:

123942 619710

output:

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

result:

ok The answer is correct.

Test #17:

score: 0
Accepted
time: 379ms
memory: 8472kb

input:

51251 1000000

output:

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

result:

ok The answer is correct.

Test #18:

score: 0
Accepted
time: 159ms
memory: 22604kb

input:

200000 400001

output:

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

result:

ok The answer is correct.

Test #19:

score: 0
Accepted
time: 207ms
memory: 22256kb

input:

199999 400001

output:

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

result:

ok The answer is correct.

Test #20:

score: 0
Accepted
time: 116ms
memory: 12964kb

input:

100000 200000

output:

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

result:

ok The answer is correct.

Test #21:

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

input:

14125 28290

output:

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

result:

ok The answer is correct.

Test #22:

score: 0
Accepted
time: 451ms
memory: 22564kb

input:

200000 1000000

output:

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

result:

ok The answer is correct.

Test #23:

score: 0
Accepted
time: 420ms
memory: 12928kb

input:

100000 1000000

output:

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

result:

ok The answer is correct.

Test #24:

score: 0
Accepted
time: 219ms
memory: 3912kb

input:

1000 1000000

output:

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

result:

ok The answer is correct.

Test #25:

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

input:

532 283024

output:

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

result:

ok The answer is correct.

Test #26:

score: 0
Accepted
time: 200ms
memory: 15036kb

input:

121434 568983

output:

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

result:

ok The answer is correct.

Test #27:

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

input:

11111 32222

output:

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

result:

ok The answer is correct.

Test #28:

score: 0
Accepted
time: 264ms
memory: 22400kb

input:

200000 600000

output:

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

result:

ok The answer is correct.

Test #29:

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

input:

64 128

output:

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

result:

ok The answer is correct.

Test #30:

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

input:

128 8920

output:

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

result:

ok The answer is correct.

Extra Test:

score: 0
Extra Test Passed