TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

4
10 10 2 3 3 2
10 14 2 3 3 2
10 15 2 3 3 2
1000000000 999999999 1 4 10000 3

Sample Output 1

4
4
5
250018751

Hints

Problem Source

Migrated from old NTUJ.

NTU Team Ranking 2015

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 131072
1 1000 65536 131072
2 1000 65536 131072
3 1000 65536 131072
4 1000 65536 131072
5 1000 65536 131072