QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117421#33. Cat in a treexiaossr#11 104ms8560kbC++171.5kb2023-07-01 06:58:242024-05-31 18:45:39

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

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

input:

10 2
0
0
2
2
0
3
4
7
2

output:

6

result:

ok single line: '6'

Test #2:

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

input:

10 3
0
0
2
1
4
4
3
1
7

output:

4

result:

ok single line: '4'

Test #3:

score: 11
Accepted
time: 3ms
memory: 8228kb

input:

12 1
0
0
1
3
1
0
2
1
3
2
2

output:

12

result:

ok single line: '12'

Test #4:

score: 11
Accepted
time: 3ms
memory: 8300kb

input:

12 4
0
0
1
2
0
0
4
7
7
9
10

output:

3

result:

ok single line: '3'

Test #5:

score: 11
Accepted
time: 3ms
memory: 8524kb

input:

14 2
0
1
2
3
0
1
5
1
4
0
3
11
9

output:

8

result:

ok single line: '8'

Test #6:

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

input:

14 4
0
0
2
3
4
2
6
3
6
9
3
3
2

output:

3

result:

ok single line: '3'

Test #7:

score: 11
Accepted
time: 15ms
memory: 8304kb

input:

16 2
0
0
0
1
2
3
2
6
6
0
4
11
0
12
2

output:

11

result:

ok single line: '11'

Test #8:

score: 11
Accepted
time: 15ms
memory: 8368kb

input:

16 3
0
0
0
3
2
2
0
2
8
4
6
11
8
3
5

output:

6

result:

ok single line: '6'

Test #9:

score: 11
Accepted
time: 96ms
memory: 8324kb

input:

18 1
0
0
2
2
2
1
0
3
1
4
2
2
12
0
6
10
13

output:

18

result:

ok single line: '18'

Test #10:

score: 11
Accepted
time: 56ms
memory: 8368kb

input:

18 5
0
0
2
1
0
2
6
5
8
5
0
8
5
4
12
7
10

output:

4

result:

ok single line: '4'

Test #11:

score: 11
Accepted
time: 73ms
memory: 8264kb

input:

18 1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

output:

18

result:

ok single line: '18'

Test #12:

score: 11
Accepted
time: 104ms
memory: 8332kb

input:

18 2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

output:

17

result:

ok single line: '17'

Test #13:

score: 11
Accepted
time: 45ms
memory: 8296kb

input:

17 1
0
1
1
0
0
1
2
0
1
0
2
1
2
2
2
2

output:

17

result:

ok single line: '17'

Test #14:

score: 11
Accepted
time: 29ms
memory: 8268kb

input:

17 2
0
1
0
1
1
0
2
1
2
1
1
0
1
2
0
0

output:

14

result:

ok single line: '14'

Test #15:

score: 11
Accepted
time: 50ms
memory: 8560kb

input:

18 5
0
0
1
1
0
1
2
2
2
1
0
0
1
0
1
1
0

output:

1

result:

ok single line: '1'

Test #16:

score: 11
Accepted
time: 94ms
memory: 8304kb

input:

18 1
0
1
2
0
1
0
4
0
2
3
0
3
2
1
3
4
2

output:

18

result:

ok single line: '18'

Test #17:

score: 11
Accepted
time: 55ms
memory: 8560kb

input:

18 2
0
0
0
1
2
2
3
3
1
3
4
1
1
4
2
4
0

output:

13

result:

ok single line: '13'

Test #18:

score: 11
Accepted
time: 51ms
memory: 8360kb

input:

18 3
0
1
1
3
1
4
2
1
0
2
0
0
1
1
3
0
3

output:

5

result:

ok single line: '5'

Test #19:

score: 11
Accepted
time: 55ms
memory: 8328kb

input:

18 6
0
0
2
3
4
3
3
1
6
1
2
0
2
0
5
2
4

output:

2

result:

ok single line: '2'

Test #20:

score: 11
Accepted
time: 56ms
memory: 8560kb

input:

18 7
0
1
0
3
2
0
6
3
4
4
3
2
6
3
6
0
0

output:

1

result:

ok single line: '1'

Subtask #2:

score: 0
Runtime Error

Dependency #1:

100%
Accepted

Test #21:

score: 0
Runtime Error

input:

1500 1000
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
...

output:


result:


Subtask #3:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%