TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description


Warn: 本題有 specialjudge

Input Format

Output Format

Sample Input 1

8
1 3
1 7
2 4 5
1 8
1 8
0
2 6 5
0
8
1 3
1 7
2 4 5
1 8
1 8
0
2 6 5
0

Sample Output 1

4
1 3 4 8
1 3 5 8
2 7 6
7 5
4
1 3 4 8
1 3 5 8
2 7 6
7 5

Hints

Problem Source

Migrated from old NTUJ.

NEERC 2009

Subtasks

No. Testdata Range Score

Testdata and Limits

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