TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Note: Unlike the pdf file, the input file has many test cases and ends with EOF.

Output Format

Sample Input 1

6 75000
8 other
3 bathroom
2 bathroom
10 kitchen
16 bedroom
7 balcony
2 75123
10 kitchen
15 balcony

Sample Output 1

46
16
3187500
25
0
1314652.5

Hints

Problem Source

Migrated from old NTUJ.

ACM ICPC 2011–2012, NEERC, Northern Subregional Contest

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 200