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 9 3 7
0 1 0.333333
0 3 0.666667
1 0 0.500000
1 1 0.200000
1 2 0.300000
2 0 0.400000
2 3 0.600000
3 1 0.350000
3 3 0.650000
0.100000 0.300000 0.600000
0.400000 0.100000 0.500000
0.000000 1.000000 0.000000
0.250000 0.500000 0.250000
1 0 2 0 1 1 2

Sample Output 1

2
3
3
3
3
3
1

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 10000 1024 131072
1 10000 1024 131072
2 10000 1024 131072
3 10000 1024 131072
4 10000 1024 131072
5 10000 1024 131072
6 10000 1024 131072
7 10000 1024 131072
8 10000 1024 131072
9 10000 1024 131072
10 10000 1024 131072
11 10000 1024 131072