QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#311881#8138. Alice and Her Lost Catezteam1WA 1ms5968kbC++142.4kb2024-01-22 22:26:122024-01-22 22:26:12

詳細信息

Test #1:

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

input:

2
8
4 2 5 2 4 2 3 2
5 5 6 7 8 9 10 13
1 2
2 3
1 4
1 5
4 6
3 7
5 8
8
4 2 3 3 2 4 4 3
4 6 8 8 9 9 14 17
1 2
2 3
3 4
3 5
4 6
3 7
3 8

output:

4
3

result:

ok 2 number(s): "4 3"

Test #2:

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

input:

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

output:

0
0
2

result:

ok 3 number(s): "0 0 2"

Test #3:

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

input:

5
10
1 1 3 4 4 2 3 3 3 1
4 4 7 9 17 17 19 19 19 20
1 2
2 3
1 4
2 5
1 6
3 7
1 8
2 9
2 10
10
2 3 3 3 4 1 3 3 1 3
2 4 5 6 9 10 12 15 19 20
1 2
2 3
2 4
1 5
5 6
6 7
7 8
1 9
5 10
10
3 3 3 3 3 3 1 4 2 3
1 4 10 10 14 15 16 17 18 20
1 2
1 3
3 4
1 5
2 6
4 7
6 8
2 9
3 10
10
1 2 1 3 2 3 1 2 1 2
1 1 2 3 4 5 9 9 ...

output:

2
5
5
2
2

result:

ok 5 number(s): "2 5 5 2 2"

Test #4:

score: -100
Wrong Answer
time: 1ms
memory: 5816kb

input:

5
20
3 5 1 1 3 4 7 8 3 7 1 1 7 1 3 3 5 1 5 7
1 14 25 27 30 34 39 42 45 48 50 50 55 61 63 69 74 87 89 100
1 2
1 3
3 4
1 5
2 6
6 7
6 8
1 9
7 10
5 11
7 12
7 13
12 14
12 15
1 16
5 17
4 18
9 19
2 20
20
3 8 2 4 7 6 1 1 2 2 7 5 1 1 2 6 4 5 7 1
2 10 24 25 26 28 28 37 47 47 52 64 79 80 84 86 90 93 96 100
1 2...

output:

17
9
17
12
11

result:

wrong answer 1st numbers differ - expected: '10', found: '17'