QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#48038#4652. Minimum DiameterHuangHanShengML 0ms0kbC++173.0kb2022-09-11 12:31:402022-09-11 12:31:43

详细

Test #1:

score: 0
Memory Limit Exceeded

input:

210
2 1
1 2
10 6
1 2
2 3
4 5
5 6
7 8
8 9
12 9
1 2
2 3
3 4
5 6
6 7
7 8
9 10
10 11
11 12
10 5
1 2
2 3
3 4
4 5
5 6
996 993
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33...

output:


result: