mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
24 lines
334 B
Python
24 lines
334 B
Python
def problem_p02952(input_data):
|
|
n = int(eval(input_data))
|
|
|
|
def countKeta(num):
|
|
|
|
count = 1
|
|
|
|
while num / 10 >= 1:
|
|
|
|
count += 1
|
|
|
|
num = num // 10
|
|
|
|
return count
|
|
|
|
count = 0
|
|
|
|
for i in range(1, n + 1):
|
|
|
|
if countKeta(i) % 2 == 1:
|
|
|
|
count += 1
|
|
|
|
return count
|