21FA - 03 Dangerous Dinosaur Dodgeball
CodeChefOpen on judge ↗
Ptolemy the Pterodactyl is playing a game of dinosaur dodgeball with his pterodactyl pals. In this version of dodgeball, there are two types of balls: $fire$ balls and $ice$ balls. Additionally, the game is very quick in that every pterodactyl throws some amount of balls (which may be zero) at other pterodactyls all at the same time. Unfortunately, these pterodactyls aren’t very good at dodging, 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