You are a young restaurateur.But you can't afford to hire anyone else, so everything at the restaurant needs to be done by you.Now the restaurant mainly consists of two things, one is to get the ingredients, the other is to cook.
As a young boss, you can only cook ten dishes, and each dish requires only three ingredients, any combination of a, b and c , a, b and c are three ingredients.
Here are the ingredients and names of each dish:
1. Ingredients required: aaa, dish name: A.
2. Ingredients required: aab, dish name: B.
3. Ingredients required: aac, dish name: C.
4. Ingredients required: bbb, dish name: D.
5. Ingredients required: bba, dish name: E.
6. Ingredients required: bbc, dish name: F.
7. Ingredients required: ccc, dish name: G.
8. Ingredients required: cca, dish name: H.
9. Ingredients required: ccb, dish name: I.
10. Ingredients required: abc, dish name: J.
Besides having no money to hire people, you also have no money to buy ingredients. But you own three farms, and one farm produces only one serving of ingredients. In other words, if you want to make A, it needs three ingredients of a, so you need to plant a on all three fields. So you can get enough ingredients to make A at the same time. If the next dish you want to make is B, you only need to change any farm to plant b after obtaining the ingredients for A. So only after complete A, can three farms grow new food, which means that you have just enough ingredients to make B. It is known that it takes 1 minute to plant new ingredients in a farm.
Now that you have the menu for the day, and you need to cook in order of the menu, you want to know how much time you're going to spend planting.
EIGJBB
9