#P1239. 计数器
计数器
Description
A book has pages, with page numbers starting from . Please find how many times each of the digits appears in all page numbers. No page number has leading zeros; for example, when , page is not 0005, but just .
Input Format
A single positive integer , the total number of pages.
Output Format
Output ten lines in total, where the -th line is the count of digit .
11
1
4
1
1
1
1
1
1
1
1
Hint
For of the testdata, .
: Three new groups of testdata were added.
Translated by ChatGPT 5
京公网安备 11011102002149号