TopCoder

User's AC Ratio

100.0% (1/1)

Submission's AC Ratio

100.0% (1/1)

Tags

Description

Input Format

Output Format

Sample Input 1

3 2
1 3 2
1 3
3 1

5 2
5 1 4 2 3
1 4
5 2

Sample Output 1

2

4

Hints

NTUJ cannot show multiple samples, so we merged them here

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 65536 2097152
1 5000 65536 2097152
2 5000 65536 2097152
3 5000 65536 2097152
4 5000 65536 2097152
5 5000 65536 2097152
6 5000 65536 2097152
7 5000 65536 2097152
8 5000 65536 2097152
9 5000 65536 2097152
10 5000 65536 2097152
11 5000 65536 2097152
12 5000 65536 2097152
13 5000 65536 2097152
14 5000 65536 2097152
15 5000 65536 2097152
16 5000 65536 2097152
17 5000 65536 2097152
18 5000 65536 2097152
19 5000 65536 2097152
20 5000 65536 2097152
21 5000 65536 2097152
22 5000 65536 2097152
23 5000 65536 2097152
24 5000 65536 2097152
25 5000 65536 2097152