Coughing Chef
CodeChefOpen on judge ↗
Once Chef had a serious case of cough and visited a doctor. The doctor diagnosed it as a very rare case of cough in which they have to record the number of times he coughed in one hour to determine the alternating dosage of the two Cough Syrups required to cure him. The 1st cough syrups loses its effectiveness after 3 dosage and needs to be switched with the other and then after the 2nd cough syru
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