TopCoder

User's AC Ratio

100.0% (1/1)

Submission's AC Ratio

14.3% (1/7)

Tags

Description

Input Format

Output Format

Sample Input 1

8 3
2 9 14 3 6 8 11 6

6 2
1 2 3 4 5 6

Sample Output 1

45

14

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 3000 1048576 131072
1 3000 1048576 131072
2 3000 1048576 131072
3 3000 1048576 131072
4 3000 1048576 131072
5 3000 1048576 131072
6 3000 1048576 131072
7 3000 1048576 131072
8 3000 1048576 131072
9 3000 1048576 131072
10 3000 1048576 131072
11 3000 1048576 131072
12 3000 1048576 131072
13 3000 1048576 131072