[Community Puzzle] Cheap Choices - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Braxis27,validated by @Zab,@M319 and @_vcxl.
If you have any issues, feel free to ping them.

Choosing cheap option will help you to survive

Tags HashMap and PriorityQueue are more appropriate for this task.