TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3 
0 40 200 40 
40 0 40 200 
0 200 200 0 
4 
0 30 230 30 
0 200 230 200 
30 0 30 230 
200 0 200 230 
3 
0 1 121 1 
0 0 121 4 
0 4 121 0 
0

Sample Output 1

Map 1 
Trees = 13 
Map 2 
Trees = 20 
Map 3 
Trees = 7

Hints

Problem Source

Migrated from old NTUJ.

2004 ACM ICPC World Final

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 65536 200