TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
3
PUFF 30
chips 20
cake 1000
2
chips 10
cake 1
3
OREO 50
pie 20
waffle 100
3
pie 10
oreo 2
waffle 20
donut 10

Sample Output 1

1200
NO 2200

Hints

Problem Source

NPSC 2013 國中組決賽 pG

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~1 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 1048576 1048576 1 2
1 2000 1048576 1048576 2