QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#562615#9189. Make them MeetLeafSeek11 1ms3708kbC++17840b2024-09-13 19:24:242024-09-13 19:24:24

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

2 1
0 1

output:

4
0 0
0 0
0 0
0 0

result:

points 1.0

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3596kb

input:

3 2
0 1
0 2

output:

6
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0

result:

wrong answer If people start at 0 and 1, then they can avoid each other

Subtask #2:

score: 0
Runtime Error

Test #6:

score: 13
Accepted
time: 0ms
memory: 3708kb

input:

2 1
0 1

output:

4
0 0
0 0
0 0
0 0

result:

points 1.0

Test #7:

score: 0
Runtime Error

input:

3 3
1 2
0 1
0 2

output:


result:


Subtask #3:

score: 11
Accepted

Test #15:

score: 11
Accepted
time: 0ms
memory: 3604kb

input:

2 1
0 1

output:

4
0 0
0 0
0 0
0 0

result:

points 1.0

Test #16:

score: 11
Accepted
time: 0ms
memory: 3676kb

input:

3 2
0 1
1 2

output:

6
0 0 0
0 0 2
0 0 0
0 0 2
0 0 0
0 0 2

result:

points 1.0

Test #17:

score: 11
Accepted
time: 0ms
memory: 3652kb

input:

4 3
0 1
1 2
2 3

output:

8
0 0 0 3
0 0 2 2
0 0 0 3
0 0 2 2
0 0 0 3
0 0 2 2
0 0 0 3
0 0 2 2

result:

points 1.0

Test #18:

score: 11
Accepted
time: 1ms
memory: 3660kb

input:

49 48
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48

output:

98
0 0 0 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47
0 0 2 2 4 4 6 6 8 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 42 42 44 44 46 46 48
0 0 0 3 3 5 5 7 7 9 9 11...

result:

points 1.0

Test #19:

score: 11
Accepted
time: 1ms
memory: 3664kb

input:

99 98
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 52
5...

output:

198
0 0 0 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97
0 0 2 2 4 ...

result:

points 1.0

Test #20:

score: 11
Accepted
time: 1ms
memory: 3604kb

input:

100 99
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 52
...

output:

200
0 0 0 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63 63 65 65 67 67 69 69 71 71 73 73 75 75 77 77 79 79 81 81 83 83 85 85 87 87 89 89 91 91 93 93 95 95 97 97 99
0 0 2 2...

result:

points 1.0

Test #21:

score: 11
Accepted
time: 1ms
memory: 3660kb

input:

64 63
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 52
5...

output:

128
0 0 0 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 41 41 43 43 45 45 47 47 49 49 51 51 53 53 55 55 57 57 59 59 61 61 63
0 0 2 2 4 4 6 6 8 8 10 10 12 12 14 14 16 16 18 18 20 20 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40...

result:

points 1.0

Subtask #4:

score: 0
Skipped

Dependency #1:

0%

Subtask #5:

score: 0
Skipped

Dependency #1:

0%