#P1554. [USACO06DEC] 梦中的统计 Dream Counting B
[USACO06DEC] 梦中的统计 Dream Counting B
Description
Bessie's mind is sharp, as if she vividly sees each number she has counted. She starts to pay attention to every digit (): how many times does each digit appear during the counting process?
Given two integers and , determine how many times each digit appears in the sequence .
Input Format
Line : Two integers and separated by a space.
Output Format
Line : Ten integers separated by spaces, representing how many times the digits appear in the sequence.
129 137
1 10 2 9 1 1 1 1 0 1
Hint
Constraints: , .
Translated by ChatGPT 5
京公网安备 11011102002149号