Pokemon Finder - Debug
CodeChefOpen on judge ↗
###Problem Statement: Ash Ketchum loves to catch pokemon. While wondering in a forest he encounters pokemons of different levels. Ash realizes that he has only $k$ pokeballs left with him which can only be used to catch $k$ pokemons occurring simultaneously. He gets a message from professor Oak that if Ash catches pokemons such that the sum of levels of pokemons is a perfect square, then
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