You are already an experienced restaurateur.But you still don't have the money to hire anyone else, and you still only know how to cook ten dishes, and it's still the same ten dishes. As before, 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.
You still get your ingredients on your three farms. As before, 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 a farm to plant b after obtaining the ingredients for A. But you can't choose any piece, you can only choose the earliest piece of farmland to plant b. This means that if you want to grow new ingredients, you should only plant it on the earliest farms. The reason above is because you find that planting on a field too often can damage the farm(It's comforting, years of experience, no money, no cooking, but your brain). As before, 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 the minimum amount of time you have to spend planting.
EIGJBB
9