Digit Count
Given a non-negative integer n, count how many digits it has. Pay attention to the special case: the number 0 still has one digit. Return the digit count.
Примеры
Ввод
12345Вывод
5Ввод
0Вывод
1Ввод
7Вывод
1Нужно реализовать
def count_digits(n: int) -> int:
Теги
math
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
EntrarVisible tests
1
Input
12345Expected
52
Input
0Expected
13
Input
7Expected
14
Input
24690Expected
55
Input
999999Expected
66
Input
1Expected
1Focus radio
Paused · SomaFM · Fluid