TopCoder

User's AC Ratio

100.0% (3/3)

Submission's AC Ratio

33.3% (3/9)

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