TopCoder

User's AC Ratio

50.0% (1/2)

Submission's AC Ratio

20.0% (1/5)

Tags

Description

Input Format

Output Format

Sample Input 1

3
4 11
0 1
2 0
3 2
1 3
4 11
2 0
3 2
1 3
0 1
2 100
0 0
0 10

Sample Output 1

1 (-1, 3)
2 (-1, -2)
49 (0, -1)

Hints

Problem Source

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 3000 2097152 65536
1 3000 2097152 65536
2 3000 2097152 65536
3 3000 2097152 65536
4 3000 2097152 65536
5 3000 2097152 65536
6 3000 2097152 65536
7 3000 2097152 65536
8 3000 2097152 65536
9 3000 2097152 65536
10 3000 2097152 65536
11 3000 2097152 65536
12 3000 2097152 65536
13 3000 2097152 65536
14 3000 2097152 65536
15 3000 2097152 65536
16 3000 2097152 65536
17 3000 2097152 65536
18 3000 2097152 65536
19 3000 2097152 65536
20 3000 2097152 65536
21 3000 2097152 65536
22 3000 2097152 65536
23 3000 2097152 65536
24 3000 2097152 65536
25 3000 2097152 65536
26 3000 2097152 65536
27 3000 2097152 65536
28 3000 2097152 65536
29 3000 2097152 65536