TopCoder

User's AC Ratio

97.3% (36/37)

Submission's AC Ratio

86.5% (77/89)

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