TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
6
1 3 3
2 3 5
3 4 7
4 5 10
4 6 2
2
1 2 514

Sample Output 1

53 61 41 41 81 49
514 514

Hints

Problem Source

Migrated from old NTUJ.

hanhan0912

Subtasks

No. Testdata Range Score

Testdata and Limits

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