QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#209094#5367. 递增树列slime#20 11ms3860kbC++233.6kb2023-10-10 09:49:492024-07-04 02:17:55

詳細信息

Subtask #1:

score: 9
Accepted

Test #1:

score: 9
Accepted
time: 0ms
memory: 3532kb

input:

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

output:

712

result:

ok single line: '712'

Test #2:

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

input:

5
1 2
1 3
3 4
4 5

output:

44

result:

ok single line: '44'

Test #3:

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

input:

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

output:

576

result:

ok single line: '576'

Test #4:

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

input:

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

output:

6912

result:

ok single line: '6912'

Test #5:

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

input:

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

output:

3360

result:

ok single line: '3360'

Subtask #2:

score: 11
Accepted

Dependency #1:

100%
Accepted

Test #6:

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

input:

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

output:

389151297

result:

ok single line: '389151297'

Test #7:

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

input:

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

output:

17381952

result:

ok single line: '17381952'

Test #8:

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

input:

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

output:

4993920

result:

ok single line: '4993920'

Test #9:

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

input:

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

output:

818474475

result:

ok single line: '818474475'

Test #10:

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

input:

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

output:

16041048

result:

ok single line: '16041048'

Subtask #3:

score: 0
Judgement Failed

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Test #11:

score: 15
Accepted
time: 8ms
memory: 3664kb

input:

25
1 2
1 3
3 4
4 5
2 6
2 7
5 8
5 9
1 10
10 11
9 12
5 13
4 14
12 15
1 16
14 17
2 18
2 19
16 20
18 21
18 22
20 23
17 24
19 25

output:

179142361

result:

ok single line: '179142361'

Test #12:

score: 0
Accepted
time: 5ms
memory: 3644kb

input:

24
1 2
1 3
2 4
1 5
2 6
2 7
6 8
1 9
1 10
1 11
8 12
6 13
13 14
12 15
2 16
5 17
12 18
8 19
11 20
17 21
21 22
19 23
18 24

output:

680835791

result:

ok single line: '680835791'

Test #13:

score: 0
Accepted
time: 5ms
memory: 3820kb

input:

23
1 2
1 3
3 4
2 5
2 6
5 7
4 8
7 9
4 10
8 11
2 12
8 13
1 14
14 15
9 16
7 17
9 18
5 19
16 20
15 21
10 22
17 23

output:

613299173

result:

ok single line: '613299173'

Test #14:

score: 0
Accepted
time: 2ms
memory: 3568kb

input:

24
1 2
1 3
1 4
1 5
2 6
3 7
1 8
6 9
6 10
10 11
6 12
10 13
6 14
4 15
5 16
1 17
8 18
1 19
17 20
2 21
19 22
20 23
15 24

output:

990332459

result:

ok single line: '990332459'

Test #15:

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

input:

27
1 2
1 3
2 4
1 5
3 6
1 7
4 8
5 9
5 10
9 11
10 12
11 13
6 14
3 15
6 16
5 17
4 18
14 19
3 20
13 21
1 22
8 23
6 24
4 25
12 26
25 27

output:

254905851

result:

ok single line: '254905851'

Test #16:

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

input:

28
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

output:

245512165

result:

ok single line: '245512165'

Test #17:

score: 0
Accepted
time: 3ms
memory: 3644kb

input:

25
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25

output:

440732388

result:

ok single line: '440732388'

Test #18:

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

input:

25
1 2
2 3
2 4
3 5
3 6
4 7
6 8
8 9
8 10
9 11
9 12
11 13
11 14
12 15
14 16
15 17
16 18
16 19
19 20
19 21
20 22
21 23
21 24
24 25

output:

222462817

result:

ok single line: '222462817'

Test #19:

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

input:

30
1 2
1 3
1 4
2 5
5 6
3 7
7 8
5 9
6 10
7 11
10 12
9 13
11 14
11 15
14 16
13 17
16 18
15 19
19 20
20 21
18 22
22 23
21 24
24 25
22 26
24 27
25 28
27 29
27 30

output:

915280502

result:

ok single line: '915280502'

Test #20:

score: 0
Accepted
time: 6ms
memory: 3804kb

input:

29
1 2
2 3
1 4
4 5
2 6
5 7
3 8
7 9
5 10
7 11
10 12
9 13
13 14
11 15
11 16
12 17
17 18
17 19
17 20
16 21
17 22
20 23
22 24
23 25
22 26
25 27
24 28
28 29

output:

847984210

result:

ok single line: '847984210'

Test #21:

score: 0
Accepted
time: 3ms
memory: 3664kb

input:

30
1 2
1 3
3 4
4 5
4 6
5 7
6 8
6 9
8 10
6 11
11 12
10 13
9 14
9 15
15 16
15 17
17 18
16 19
16 20
19 21
16 22
20 23
20 24
21 25
20 26
22 27
25 28
26 29
28 30

output:

203499669

result:

ok single line: '203499669'

Test #22:

score: -15
Judgement Failed

input:

29
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
7 18
1 19
6 20
16 21
18 22
19 23
15 24
6 25
3 26
16 27
9 28
21 29

output:


result:


Subtask #4:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

0%

Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

0%