Dancing pokemons
CodeChefOpen on judge ↗
The old time pokemon craze has finally re-emerged.You are to solve one such problem from pokemon world.Ash has organized a party in the pokemon centre. There are N pokemons initially with an id defined by a positive integer Ai.Initially all the N pokemons are dancing. Q pokemons are sheduled to attend the pokemon centre for the party.But since each pokemon is shy to dance alone,a pokemon will dan
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