Chef dishes and guests
CodeChefOpen on judge ↗
Chef is an expert in cooking, but he only likes 3 vegetables i.e. *tomato, potato and onion*. So he always makes dishes by using these 3 vegetables (each dish is made of one of the 3 vegetables) . Among these 3 vegetables, he likes tomato the most and potato the worst. Chef's Manager has invited $N$ guests for $K$ days and the Chef has to cook food for them. On the first day of his cooking, he
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start