Gotta Catch Em All
You're playing your favorite video game: *Pekómon*! The objective of the game is, of course, to "Catch Them All". There are $N$ different *Pekómon* in the game. The $i$-th of them has a catching difficulty of $A_i$. To catch these *Pekómon*, you must use *Pekóballs*. There are two types of *Pekóballs* available to you: - Normal *Pekóballs*, which cost $X$ coins each. You need to throw **exac
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