← All problemsSign in

SCHEDULE LECTURES

Vivek is the topper of Metallurgy Department and to continue this feat he is planning to attend some Lectures. There are 3 types of Lecture $A$, $B$ and $C$. Lecture $A$ can be attended on any day, lecture $B$ cannot be attended on 2 consecutive days and there must be gap of atleast 2 days to attend Lecture $C$ again. Attending lectures are a tiresome job so he attends only one lecture each day

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start