Conquering Demons
CodeChefOpen on judge ↗
It's Merisake's summer vacation and he was wondering what he could spend his time doing on his vacation. Like any other child, he decides to play his favorite game _Conquering Demons_. In this game, there are $N$ demons. Merisake plans to beat exactly one demon a day, i.e. he plans to play the game for $N$ days. Note that he can choose any unbeaten demon on any day. This game has a feature, wher
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