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

1 2 6 1
3 4 3 17
2 3 9 3
1 21 1 8

0 0 0 0 0
3 3 2 4 3
2 2 4 3 1
4 2 2 7 7

0 4
1 2 3 2

Sample Output 1

9
3 2
23
1 1 2 3

Hints

Problem Source

Migrated from old NTUJ.

Asia Regional Hatyai 2012

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 16000 65536 20000