TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3
5 1 4

6
1 2 3 5 8 13

Sample Output 1

5

20

Hints

NTUJ cannot show multiple samples, so we merged them here.

Problem Source

Migrated from old NTUJ.

shik

Subtasks

No. Testdata Range Score

Testdata and Limits

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