TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

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

Sample Output 1

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

Hints

Problem Source

Migrated from old NTUJ.

TOPC 2019

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 1048576 131072
1 10000 1048576 131072
2 10000 1048576 131072
3 10000 1048576 131072
4 10000 1048576 131072
5 10000 1048576 131072
6 10000 1048576 131072
7 10000 1048576 131072
8 10000 1048576 131072
9 10000 1048576 131072
10 10000 1048576 131072
11 10000 1048576 131072
12 10000 1048576 131072