#NOIP2013A. 计数问题
计数问题
Cannot parse: (0 , import_utils.normalizeSubtasks) is not a function or its return value is not iterable
Background
Special for beginners, ^_^
Description
试计算在区间 1 到 n 的所有整数中,数字 x (0 ≤ x ≤ 9) 共出现了多少次?
例如,在 1,2,3,4,5,6,7,8,9,10,11 中,1 出现了 4 次。
Format
Input
输入共一行两个整数,n,x。之间用一个空格隔开。
Output
输出共 1 行一个整数,表示 x 出现的次数。
Samples
11 1
4
Limitation
对于 100% 数据 1 ≤ n ≤ 1000000,0 ≤ x ≤ 9 。