Editorial for Цифрларының қосындысы
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Hint 1.
Үш таңбалы сан үш цифрдан тұрады: жүздік, ондық және бірлік.
Hint 2.
Бұл цифрларды саннан бөлек алу үшін бүтін бөлу және қалдық амалдарын қолдануға болады.
Hint 3.
Мысалы, цифрларды былай алуға болады:
\(a =\lfloor \frac{n}{100} \rfloor\), енді \(b\), \(c\) табу қалды.