← All problemsSign in

Kill Monsters (Easy Version)

CodeChefRating 2392Open on judge ↗

**This is the easy version of the problem. Here, the values of $X, K, $ and $H_i$ will not exceed $500$.** In a video game, you are tasked with defeating monsters. The $i$-th monster has a health value of $H_i$. You start with an initial health value of $X$. You can defeat the $i$-th monster if your current health $X$ is **strictly greater than** the monster's health $H_i$, i.e, if $X\gt H_i

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