Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TO BE CODED IN C + + Mitsuha is traveling to Tokyo to meet Taki Tachibana. She plans to prepare Itomori's best sushi for him,
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:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started