TopCoder

User's AC Ratio

75.0% (3/4)

Submission's AC Ratio

27.3% (3/11)

Tags

Description

The PDF file of all problems can be downloaded HERE

Input Format

Output Format

Sample Input 1

2
5 1
3 6 9 12 15
5 3
3 3 3 7 6

Sample Output 1

3
16

Hints

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 12000 65536 200