TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

The PDF file of all problems can be downloaded HERE

Input Format

Output Format

Sample Input 1

2
4 6
1 2 1
2 3 1
3 4 1
4 1 1
1 3 2
2 4 2
6 9
1 2 1
2 3 1
2 4 1
1 5 1
1 6 1
3 4 3
4 5 3
5 6 3
6 3 3

Sample Output 1

4
10

Hints

Problem Source

Migrated from old NTUJ.

seanwu

Subtasks

No. Testdata Range Score

Testdata and Limits

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