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 6
2 3 4 5
3 1 4
2 2 100
3 1 3
1 1 4 2
3 1 3
3 4 4

Sample Output 1

154
800
12
0

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 2000 262144 131072
1 2000 262144 131072
2 2000 262144 131072
3 2000 262144 131072
4 2000 262144 131072
5 2000 262144 131072
6 2000 262144 131072
7 2000 262144 131072
8 2000 262144 131072
9 2000 262144 131072