TO BE CODED IN C
Mitsuha is traveling to Tokyo to meet Taki Tachibana. She plans to prepare
Itomori's best sushi for him, which requires three main ingredients: Bread Salmon
and Corn She expresses her favourite recipe as a string, such as BBSCS
meaning Bread, Bread, Salmon, Corn, and Salmon.
Mitsuha has pieces of bread, pieces of salmon, and pieces of corn in her kitchen.
The nearby shop offers all three ingredients unlimited supply at prices yen for bread,
yen for salmon, and yen for corn.
With yen to spend, what is the maximum number of sushi plates she can prepare,
assuming she cannot break or slice any ingredients?
Input:
Recipe: a string containing only letters such that lenstring
Example :
Recipe: BBBSSC
Output: