← All problemsSign in

Crazy Miner

Bruce the miner works as a slave in a diamond mine, and now the mine is starting to fall apart. After helping his friends evacuate the mine, he thinks it is the perfect time to make some profit and escape from his oppressive masters. His plan is to re-enter the mine with the excuse of helping more people, take as much diamonds as he can and exit the mine before it falls apart without being seen.

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start