Monster Monster
You have run into an army of $N$ monsters, and you must defeat them all! Each monster has a certain amount of health points (HP) which you know beforehand — the $i$-th monster has $H_{i}$ HP. You can attack exactly **one** monster per day, and only if your attack stat $A$ is **greater than or equal to** the monster's HP. In other words, you can attack a monster only if you can defeat it in a s
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