QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#247558#7619. Make SYSU Great Again Iucup-team2069#AC ✓300ms75440kbC++202.1kb2023-11-11 14:55:332023-11-11 14:55:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

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

input:

3 7

output:

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

result:

ok The answer is correct.

Test #3:

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

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: 12976kb

input:

3 9

output:

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

result:

ok The answer is correct.

Test #5:

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

input:

10 20

output:

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

result:

ok The answer is correct.

Test #6:

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

input:

10 100

output:

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

input:

32 64

output:

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

result:

ok The answer is correct.

Test #8:

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

input:

200000 400000

output:

199999 199999
199999 200000
200000 200000
200000 199999
3 1
2 1
3 3
2 2
1 3
1 2
6 4
5 4
6 6
5 5
4 6
4 5
9 7
8 7
9 9
8 8
7 9
7 8
12 10
11 10
12 12
11 11
10 12
10 11
15 13
14 13
15 15
14 14
13 15
13 14
18 16
17 16
18 18
17 17
16 18
16 17
21 19
20 19
21 21
20 20
19 21
19 20
24 22
23 22
24 24
23 23
22 2...

result:

ok The answer is correct.

Test #9:

score: 0
Accepted
time: 149ms
memory: 60588kb

input:

200000 745589

output:

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

result:

ok The answer is correct.

Test #10:

score: 0
Accepted
time: 256ms
memory: 74484kb

input:

199999 978736

output:

199996 199996
199996 199997
199997 199997
199997 199996
199998 199998
199998 199999
199999 199999
199999 199998
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15...

result:

ok The answer is correct.

Test #11:

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

input:

198054 619549

output:

2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
21 20
20 20
20 21
19 21
19 20
21 21
23 22
24 22
...

result:

ok The answer is correct.

Test #12:

score: 0
Accepted
time: 142ms
memory: 54584kb

input:

123124 567865

output:

123121 123121
123121 123122
123122 123122
123122 123121
123123 123123
123123 123124
123124 123124
123124 123123
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15...

result:

ok The answer is correct.

Test #13:

score: 0
Accepted
time: 71ms
memory: 39428kb

input:

124252 416756

output:

124249 124249
124249 124250
124250 124250
124250 124249
124251 124251
124251 124252
124252 124252
124252 124251
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15...

result:

ok The answer is correct.

Test #14:

score: 0
Accepted
time: 214ms
memory: 59868kb

input:

103503 748077

output:

2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
21 20
20 20
20 21
19 21
19 20
21 21
23 22
24 22
...

result:

ok The answer is correct.

Test #15:

score: 0
Accepted
time: 296ms
memory: 74584kb

input:

120394 987331

output:

120391 120391
120391 120392
120392 120392
120392 120391
120393 120393
120393 120394
120394 120394
120394 120393
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15...

result:

ok The answer is correct.

Test #16:

score: 0
Accepted
time: 152ms
memory: 54716kb

input:

123942 619710

output:

2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
21 20
20 20
20 21
19 21
19 20
21 21
23 22
24 22
...

result:

ok The answer is correct.

Test #17:

score: 0
Accepted
time: 270ms
memory: 75440kb

input:

51251 1000000

output:

51250 51250
51250 51251
51251 51251
51251 51250
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
...

result:

ok The answer is correct.

Test #18:

score: 0
Accepted
time: 40ms
memory: 39392kb

input:

200000 400001

output:

199999 199999
199999 200000
200000 200000
200000 199999
3 1
2 1
3 3
2 2
1 3
1 2
6 4
5 4
6 6
5 5
4 6
4 5
9 7
8 7
9 9
8 8
7 9
7 8
12 10
11 10
12 12
11 11
10 12
10 11
15 13
14 13
15 15
14 14
13 15
13 14
18 16
17 16
18 18
17 17
16 18
16 17
21 19
20 19
21 21
20 20
19 21
19 20
24 22
23 22
24 24
23 23
22 2...

result:

ok The answer is correct.

Test #19:

score: 0
Accepted
time: 51ms
memory: 39108kb

input:

199999 400001

output:

199996 199996
199996 199997
199997 199997
199997 199996
199998 199998
199998 199999
199999 199999
199999 199998
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
6 4
5 4
6 6
5 5
4 6
4 5
9 7
8 7
9 9
8 8
7 9
7 8
12 10
11 10
12 12
11 11
10 12
10 11
15 13
14 13
15 15
14 14
13 15
13 14
18 16
17 16
18 18
17 17
16 18
16 17
...

result:

ok The answer is correct.

Test #20:

score: 0
Accepted
time: 29ms
memory: 25768kb

input:

100000 200000

output:

99997 99997
99997 99998
99998 99998
99998 99997
99999 99999
99999 100000
100000 100000
100000 99999
3 1
2 1
3 3
2 2
1 3
1 2
6 4
5 4
6 6
5 5
4 6
4 5
9 7
8 7
9 9
8 8
7 9
7 8
12 10
11 10
12 12
11 11
10 12
10 11
15 13
14 13
15 15
14 14
13 15
13 14
18 16
17 16
18 18
17 17
16 18
16 17
21 19
20 19
21 21
20...

result:

ok The answer is correct.

Test #21:

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

input:

14125 28290

output:

14122 14122
14122 14123
14123 14123
14123 14122
14124 14124
14124 14125
14125 14125
14125 14124
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
...

result:

ok The answer is correct.

Test #22:

score: 0
Accepted
time: 259ms
memory: 74892kb

input:

200000 1000000

output:

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

result:

ok The answer is correct.

Test #23:

score: 0
Accepted
time: 300ms
memory: 75004kb

input:

100000 1000000

output:

99997 99997
99997 99998
99998 99998
99998 99997
99999 99999
99999 100000
100000 100000
100000 99999
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18...

result:

ok The answer is correct.

Test #24:

score: 0
Accepted
time: 168ms
memory: 74900kb

input:

1000 1000000

output:

997 997
997 998
998 998
998 997
999 999
999 1000
1000 1000
1000 999
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 1...

result:

ok The answer is correct.

Test #25:

score: 0
Accepted
time: 34ms
memory: 34024kb

input:

532 283024

output:

529 529
529 530
530 530
530 529
531 531
531 532
532 532
532 531
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18...

result:

ok The answer is correct.

Test #26:

score: 0
Accepted
time: 142ms
memory: 55508kb

input:

121434 568983

output:

2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
21 20
20 20
20 21
19 21
19 20
21 21
23 22
24 22
...

result:

ok The answer is correct.

Test #27:

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

input:

11111 32222

output:

11110 11110
11110 11111
11111 11111
11111 11110
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
...

result:

ok The answer is correct.

Test #28:

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

input:

200000 600000

output:

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

result:

ok The answer is correct.

Test #29:

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

input:

64 128

output:

61 61
61 62
62 62
62 61
63 63
63 64
64 64
64 63
3 1
2 1
3 3
2 2
1 3
1 2
6 4
5 4
6 6
5 5
4 6
4 5
9 7
8 7
9 9
8 8
7 9
7 8
12 10
11 10
12 12
11 11
10 12
10 11
15 13
14 13
15 15
14 14
13 15
13 14
18 16
17 16
18 18
17 17
16 18
16 17
21 19
20 19
21 21
20 20
19 21
19 20
24 22
23 22
24 24
23 23
22 24
22 23
...

result:

ok The answer is correct.

Test #30:

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

input:

128 8920

output:

127 127
127 128
128 128
128 127
2 1
3 1
3 2
2 2
2 3
1 3
1 2
3 3
5 4
6 4
6 5
5 5
5 6
4 6
4 5
6 6
8 7
9 7
9 8
8 8
8 9
7 9
7 8
9 9
11 10
12 10
12 11
11 11
11 12
10 12
10 11
12 12
14 13
15 13
15 14
14 14
14 15
13 15
13 14
15 15
17 16
18 16
18 17
17 17
17 18
16 18
16 17
18 18
20 19
21 19
21 20
20 20
20 2...

result:

ok The answer is correct.

Extra Test:

score: 0
Extra Test Passed