TopCoder

$\Huge Kzzz$
$\text{\Huge \color{black}假\color{red}裝自己是紅黑}$

User's AC Ratio

96.3% (52/54)

Submission's AC Ratio

75.4% (95/126)

Tags

Description



Input Format

$n$ is in the range of int

Output Format

Sample Input 1

5
1 2
1 3
2
2
2

Sample Output 1

3
2
empty!

Hints

Problem Source

NEOJ Problem 36

Subtasks

No. Testdata Range Constraints Score
1 0 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1