TopCoder

User's AC Ratio

96.3% (26/27)

Submission's AC Ratio

84.8% (67/79)

Tags

Description



Input Format

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