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 5 5 0 1
0 1 10 0 1 0
0 3 15 -1 0 0
1 2 22 -2 1 0
1 3 13 -1 1 1
2 3 20 -2 1 0

Sample Output 1

49

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