QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#326760#7997. 树 V 图ReineRabbitWA 1ms10000kbC++173.0kb2024-02-13 23:30:042024-02-13 23:30:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10
15 2
10 5
3 5
12 5
10 9
11 7
3 8
2 4
7 1
15 14
8 13
15 6
2 1
4 8
11 15
1 1 1 1 2 1 1 1 2 2 1 2 1 1 1
15 3
8 11
12 8
1 3
13 15
5 9
10 13
6 12
14 4
4 9
15 5
11 10
2 14
7 2
6 3
3 2 3 2 2 3 2 1 2 1 1 3 1 2 1
15 5
1 7
5 2
11 9
6 8
13 3
14 12
3 1
8 9
5 10
10 11
5 1
12 13
10 15
11 4
3 3 3 2 3 2 1 2 2 2 ...

output:

11
15
8
9
5
2
1
0
15
18

result:

ok 10 numbers

Test #2:

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

input:

10
15 2
7 10
10 3
11 4
9 7
4 15
14 8
7 1
8 15
13 4
2 1
15 9
11 6
2 12
5 6
2 2 2 1 1 1 2 1 2 2 1 2 1 1 1
15 3
4 10
12 3
7 3
9 1
6 7
9 11
11 7
10 8
13 15
14 2
14 7
5 15
12 13
11 10
1 2 3 3 3 3 3 3 1 3 3 3 3 2 3
15 5
12 9
6 8
13 2
6 10
2 3
14 15
10 5
4 15
14 13
5 7
11 10
14 12
1 5
13 8
2 4 1 3 2 2 5 3 ...

output:

21
4
8
2
13
17
13
0
0
0

result:

wrong answer 3rd numbers differ - expected: '5', found: '8'