QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#282186#7619. Make SYSU Great Again Iucup-team2818#AC ✓69ms1588kbC++141.0kb2023-12-11 16:05:092023-12-11 16:05:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

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

input:

3 7

output:

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

result:

ok The answer is correct.

Test #3:

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

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

input:

3 9

output:

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

result:

ok The answer is correct.

Test #5:

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

input:

10 20

output:

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

result:

ok The answer is correct.

Test #6:

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

input:

10 100

output:

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

result:

ok The answer is correct.

Test #7:

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

input:

32 64

output:

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

result:

ok The answer is correct.

Test #8:

score: 0
Accepted
time: 22ms
memory: 1488kb

input:

200000 400000

output:

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

result:

ok The answer is correct.

Test #9:

score: 0
Accepted
time: 50ms
memory: 1416kb

input:

200000 745589

output:

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

result:

ok The answer is correct.

Test #10:

score: 0
Accepted
time: 60ms
memory: 1588kb

input:

199999 978736

output:

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

result:

ok The answer is correct.

Test #11:

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

input:

198054 619549

output:

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

result:

ok The answer is correct.

Test #12:

score: 0
Accepted
time: 36ms
memory: 1492kb

input:

123124 567865

output:

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

result:

ok The answer is correct.

Test #13:

score: 0
Accepted
time: 21ms
memory: 1468kb

input:

124252 416756

output:

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

result:

ok The answer is correct.

Test #14:

score: 0
Accepted
time: 49ms
memory: 1468kb

input:

103503 748077

output:

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

result:

ok The answer is correct.

Test #15:

score: 0
Accepted
time: 64ms
memory: 1500kb

input:

120394 987331

output:

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

result:

ok The answer is correct.

Test #16:

score: 0
Accepted
time: 37ms
memory: 1588kb

input:

123942 619710

output:

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

result:

ok The answer is correct.

Test #17:

score: 0
Accepted
time: 68ms
memory: 1464kb

input:

51251 1000000

output:

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

result:

ok The answer is correct.

Test #18:

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

input:

200000 400001

output:

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

result:

ok The answer is correct.

Test #19:

score: 0
Accepted
time: 25ms
memory: 1504kb

input:

199999 400001

output:

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

result:

ok The answer is correct.

Test #20:

score: 0
Accepted
time: 14ms
memory: 1508kb

input:

100000 200000

output:

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

result:

ok The answer is correct.

Test #21:

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

input:

14125 28290

output:

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

result:

ok The answer is correct.

Test #22:

score: 0
Accepted
time: 69ms
memory: 1504kb

input:

200000 1000000

output:

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

result:

ok The answer is correct.

Test #23:

score: 0
Accepted
time: 63ms
memory: 1500kb

input:

100000 1000000

output:

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

result:

ok The answer is correct.

Test #24:

score: 0
Accepted
time: 63ms
memory: 1516kb

input:

1000 1000000

output:

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

result:

ok The answer is correct.

Test #25:

score: 0
Accepted
time: 20ms
memory: 1488kb

input:

532 283024

output:

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

result:

ok The answer is correct.

Test #26:

score: 0
Accepted
time: 37ms
memory: 1420kb

input:

121434 568983

output:

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

result:

ok The answer is correct.

Test #27:

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

input:

11111 32222

output:

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

result:

ok The answer is correct.

Test #28:

score: 0
Accepted
time: 30ms
memory: 1588kb

input:

200000 600000

output:

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

result:

ok The answer is correct.

Test #29:

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

input:

64 128

output:

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

result:

ok The answer is correct.

Test #30:

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

input:

128 8920

output:

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

result:

ok The answer is correct.

Extra Test:

score: 0
Extra Test Passed