← All problemsSign in

X-24 and his SUBSET code

CodeChefRating 2530Open on judge ↗

X-24 - the clone of Logan has evil plans, and this time he has decided to reduce Logan to ashes. He has a subset code which can cause havoc, and Logan must know what it is to curb X-24's actions. After musing for a long time, Logan finally deduced the subset code. Let's say there are N targets of the subset code. Each target has some value associated with it. Logan can carry out the following o

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