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
3
1 1 2
13
1 1 1 1 1 514 1 1 1 1 1 1 1
3
1 1 1
13
1 1 1 1 1 83 1 1 1 1 1 1 1

Sample Output 1

6
8

Hints

Problem Source

Migrated from old NTUJ.

NTU NCPC 2014

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 65536 131072