Ants garbage
CodeChefOpen on judge ↗
Inside a hypothetical ant’s nest there is only one garbage-ant responsible to carry out all the dust. From time to time, this ant must grab the dust from all chambers inside the nest and bring it outside. The nest has one outside door and has a lot of chambers. Two different chambers are connected by tunnels that can be crossed in both direction. It is possible to go from a chamber to any other c
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