← All problemsSign in

Turing Town

People of Turing Town are capable of nothing less than magic and that is why the 3 main units of coinage are the Bronze Knuts, Silver Sickles and Gold Galleons. 29 knuts make a sickle and 17 sickles make a galleon. Given ‘K’ knuts, convert this into galleons, sickles and knuts by first converting as many knuts as possible to galleons and then the remaining knuts to as many sickles as possible. Dis

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