TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3
3 5
item1001 $20
item1002 $10
item1003 $25
food9001 $50 : 1 item1001 2 item1002
food9002 $100 : 4 item1003
food7001 $101 : 2 item1001 1 item1002 2 item1003
food10002 $77 : 1 item1001
food10004 $50 : 1 item1001 2 item1002
1 2
item1 $1
food1 $99999999 : 1 item1 1 item2
food2 $99999999 : 99 item1
3 1
item99999 $99999997
item99998 $99999998
item99997 $99999999
food514 $99999999 : 99 item99999

Sample Output 1

food7001/food9001/food10002/food10004
food2
no such recipe.

Hints

Problem Source

NPSC 2013 高中組初賽 pD

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 10000 1048576 1048576 1 2
1 10000 1048576 1048576 2