TopCoder

User's AC Ratio

100.0% (3/3)

Submission's AC Ratio

80.0% (4/5)

Tags

Description

Input Format

Output Format

Sample Input 1

3 2 2
1 2 1
4 2 2
1 2 1 2

Sample Output 1

2
4

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 1000 262144 131072
1 1000 262144 131072
2 1000 262144 131072