← All problemsSign in

Dabbling in Shadows

WhiteShadov, the God of Impostors, is conducting an ‘Among Us’ tournament for training impostors. There a $N$ imposters and $K$ crewmates. In his peculiar game, the imposters are all standing in a line and can send a **subsegment** of them with the task of killing all the $K$ crewmates. Each imposter has in his mind a set of crewmates to kill. This set will be displayed on top of every imposter.

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