QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#880775#10017. Experiments With Divine TreesUndercover#WA 63ms36920kbC++232.8kb2025-02-03 19:58:182025-02-03 19:58:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 14ms
memory: 25132kb

input:

3
1 3
3 2

output:

8

result:

ok answer is '8'

Test #2:

score: 0
Accepted
time: 15ms
memory: 21624kb

input:

4
1 2
2 3
2 4

output:

10

result:

ok answer is '10'

Test #3:

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

input:

7
1 2
1 4
1 5
1 6
2 3
2 7

output:

84

result:

ok answer is '84'

Test #4:

score: 0
Accepted
time: 63ms
memory: 36776kb

input:

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

output:

417443307

result:

ok answer is '417443307'

Test #5:

score: -100
Wrong Answer
time: 59ms
memory: 36920kb

input:

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

output:

773079104

result:

wrong answer expected '648876680', found '773079104'