def numCount(x):
i = 0
while x > 0:
x //= 10
i += 1
return i
N = 1
while i <= 714:
i += numCount(N)
N += 1
print(N)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def numCount(x):
i = 0
while x > 0:
x //= 10
i += 1
return i
i = 0
N = 1
while i <= 714:
i += numCount(N)
N += 1
print(N)