TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

/problemdata/tmt514/bvg2-ffenc/F.pdf
Warn: 本題有 specialjudge

Input Format

Output Format

Sample Input 1


        

Sample Output 1

4 4
0 1 3 3
1 5 6 5
5 3 2 4
7 4 10 2
2
5
8
6

Hints

Problem Source

Migrated from old NTUJ.

Beverage Cup II - tmt514, dreamoon, ferng

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 1048576 20480