TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

1
10
1 2 3 2 1 2 3 2 1 2
6
2 1 3
2 3 5
1 4 4
1 3 2
1 5 2
2 2 9

Sample Output 1

3
2
7

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 4000 1048576 131072
1 4000 1048576 131072
2 4000 1048576 131072