TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

4
3 1
1 1 1
3 1
1 2 3
3 1
1 3 2
3 3
5 1 4

Sample Output 1

3
3
3
2

Hints

Problem Source

Migrated from old NTUJ.

NPSC 2013 Senior

Subtasks

No. Testdata Range Score

Testdata and Limits

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