limit inclusive. How many times does the digit 1 appear in all of them together?
For example, the number 111 contains three ones.
limit can be up to a billion, so writing the numbers out one by one is too slow.limit=12 → 5
Ones appear in 1, 10, 11 (twice) and 12, five in total.
limit=9 → 1
Among 0 through 9 there is a single 1.
limit=100 → 21
limit=12
5
Run checks the first 3 tests in your browser. Submit checks all 70 tests on the server, hidden ones included.