Final round of Tri-Wiz-Code
CodeChefOpen on judge ↗
Congratulations!!! You have reached the final round of the Tri-Wiz-Code Cup and the question for your final round is "For any positive integer 'K', the sum of digits of 'K' is defined as the sum of 'K' itself and its digits. When 'H' is the digit-sum of 'K' , we call 'K' the dime of 'H'. For example, the digit-sum of 349 is 365 (= 349 + 3 + 4 + 9). Therefore, 349 is a dime of 365. But there are
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