АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1816. Sum and Quantity of Digits

Time Limit: 1 seconds
Memory Limit:262144KB
Points:10
View Problem Statistics Submit Problem added debug

Дано целое число N. Найти сумму и количество его цифр.

Input

Одно целое число N (-109 ≤ N ≤ 109)

Output

Две целых числа, разделённые переводом строки - сумма цифр и их количество.

Sample

InputOutput
12345
15
5

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML for 7 Form, cycles /
1815. 07 - First digit 1816. 1817. 09 - Permutation of Digits 707. 10 - Длинный НОД 1818. 11 - Quantity of Triples
time generating 0.234 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.