← All problemsSign in

Rohan and the events

There are two types of event which Rohan attends good and bad events .Every day Rohan attend at least 1 event . He distribute n days in 3 blocks 1st block consist of good events only , 2nd block consist of bad events only and 3 block contain good events only (Every block contain at least 1 day). He has x good events (numbered 1 to x) and y (numbered 1 to y) bad events to attend in n days. He w

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