TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

4
4 4
4 8
8 8
100 100

Sample Output 1

1
1
4
518

Hints

Problem Source

Migrated from old NTUJ.

shik

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 7000 65536 200
1 7000 65536 200
2 7000 65536 200
3 7000 65536 200
4 7000 65536 200
5 7000 65536 200
6 7000 65536 200
7 7000 65536 200
8 7000 65536 200
9 7000 65536 200
10 7000 65536 200
11 7000 65536 200
12 7000 65536 200
13 7000 65536 200