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
4
1 10000 0 0
10000 1 1 1
1 10000 -10 -10
10000 1 10 10
3
1 10000 10 10
10000 1 -10 -10
1 1 0 0

Sample Output 1

6
4

Hints

Problem Source

Migrated from old NTUJ.

NTU NCPC 2014

Subtasks

No. Testdata Range Score

Testdata and Limits

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