TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

6
1 1
1 2
1 3
2 1
3 1
2 2

Sample Output 1

17

Hints

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 6000 262144 131072
1 6000 262144 131072
2 6000 262144 131072
3 6000 262144 131072
4 6000 262144 131072
5 6000 262144 131072
6 6000 262144 131072
7 6000 262144 131072
8 6000 262144 131072
9 6000 262144 131072
10 6000 262144 131072
11 6000 262144 131072
12 6000 262144 131072
13 6000 262144 131072
14 6000 262144 131072
15 6000 262144 131072
16 6000 262144 131072
17 6000 262144 131072
18 6000 262144 131072
19 6000 262144 131072
20 6000 262144 131072