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
5 3
3 6 5 4 3
2 2 2 1 3
1 4
2 5
3 4
4 1
1 4 5 3
1 3 3 2
1 4

Sample Output 1

-1
3
1
6

Hints

Problem Source

Migrated from old NTUJ.

Team ranking 2020

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 7000 65536 131072
1 7000 65536 131072
2 7000 65536 131072
3 7000 65536 131072
4 7000 65536 131072
5 7000 65536 131072
6 7000 65536 131072
7 7000 65536 131072
8 7000 65536 131072
9 7000 65536 131072
10 7000 65536 131072
11 7000 65536 131072
12 7000 65536 131072
13 7000 65536 131072
14 7000 65536 131072
15 7000 65536 131072
16 7000 65536 131072
17 7000 65536 131072
18 7000 65536 131072
19 7000 65536 131072
20 7000 65536 131072
21 7000 65536 131072
22 7000 65536 131072
23 7000 65536 131072
24 7000 65536 131072
25 7000 65536 131072
26 7000 65536 131072
27 7000 65536 131072
28 7000 65536 131072
29 7000 65536 131072
30 7000 65536 131072
31 7000 65536 131072
32 7000 65536 131072
33 7000 65536 131072
34 7000 65536 131072
35 7000 65536 131072