TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

// Sample Input 1
4
1 2
1 3
1 4

// Sample Input 2
4
1 2
2 3
3 4

// Sample Input 3
6
1 3
2 3
3 4
4 5
4 6

Sample Output 1

// Sample Output 1
6

// Sample Output 2
2

// Sample Output 3
8

Hints

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 1048576 131072
1 2000 1048576 131072
2 2000 1048576 131072
3 2000 1048576 131072
4 2000 1048576 131072
5 2000 1048576 131072
6 2000 1048576 131072
7 2000 1048576 131072
8 2000 1048576 131072
9 2000 1048576 131072
10 2000 1048576 131072
11 2000 1048576 131072
12 2000 1048576 131072
13 2000 1048576 131072
14 2000 1048576 131072
15 2000 1048576 131072
16 2000 1048576 131072
17 2000 1048576 131072
18 2000 1048576 131072
19 2000 1048576 131072
20 2000 1048576 131072
21 2000 1048576 131072
22 2000 1048576 131072
23 2000 1048576 131072
24 2000 1048576 131072
25 2000 1048576 131072
26 2000 1048576 131072
27 2000 1048576 131072
28 2000 1048576 131072
29 2000 1048576 131072
30 2000 1048576 131072
31 2000 1048576 131072
32 2000 1048576 131072
33 2000 1048576 131072
34 2000 1048576 131072
35 2000 1048576 131072
36 2000 1048576 131072
37 2000 1048576 131072
38 2000 1048576 131072