QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#247871#7619. Make SYSU Great Again Iucup-team1734#TL 96ms22352kbC++231.9kb2023-11-11 16:21:412023-11-11 16:21:41

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3500kb

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

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

input:

3 7

output:

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

result:

ok The answer is correct.

Test #3:

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

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

input:

3 9

output:

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

result:

ok The answer is correct.

Test #5:

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

input:

10 20

output:

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

result:

ok The answer is correct.

Test #6:

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

input:

10 100

output:

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

result:

ok The answer is correct.

Test #7:

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

input:

32 64

output:

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

result:

ok The answer is correct.

Test #8:

score: 0
Accepted
time: 96ms
memory: 22352kb

input:

200000 400000

output:

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

result:

ok The answer is correct.

Test #9:

score: -100
Time Limit Exceeded

input:

200000 745589

output:

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

result: