I want to solve problem on the contest and I need your help.
I have number n and I want to find out how many digit 1 - s are in the numbers from 1 to n. how to solve it? n < 10^20.
for exapmle for n = 15 answer is 8
1
10
11
12
13
14
15
there are 8 one from 1 to 15. help please
thanks
A DP problem
Moderator: Board moderators
A DP problem
Giorgi Saghinadze
http://acm.uva.es/problemset/usersjudge.php?user=32393
http://acm.uva.es/problemset/usersjudge.php?user=32393
I can't understand
can you or others explain it to me more clearly?

can you or others explain it to me more clearly?
Giorgi Saghinadze
http://acm.uva.es/problemset/usersjudge.php?user=32393
http://acm.uva.es/problemset/usersjudge.php?user=32393