Constraint on Cakes
CodeChefOpen on judge ↗
Chef has to prepare cakes for his bakery. Each cake requires $a$ number of eggs, $b$ gms of flour and $c$ ml of milk. The bakery has a stock of $x$ number of eggs, $y$ kgs of flour and $z$ litres of milk. Calculate the total number of cakes that can be prepared. ###Input: - First line of input consists of number of test cases $T$ - Then testcases follow, each line of testcase inputs $6$ vari
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