← All problemsSign in

Dark

*Jonas* is a very enthusiast history student. He lives in the state of *Winden* and is fascinated by its history. One night he was roaming in the forests of *Winden* and accidentally he discovered the $Widen$ $Caves$. Which indeed were a $Time$ $Machine!$ He knew that historically Winden was a very poor state, but if he can go to the past and give the gold that he found in the caves to the people,

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