#F. [NOIP2013 普及组] 计数问题

    Type: Default 1000ms 256MiB

[NOIP2013 普及组] 计数问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

试计算在区间 11nn 的所有整数中,数字 xx0x90\le x\le9)共出现了多少次?例如,在 111111 中,即在 1,2,3,4,5,6,7,8,9,10,111,2,3,4,5,6,7,8,9,10,11 中,数字 11 出现了 44 次。

输入格式

22 个整数 n,xn,x,之间用一个空格隔开。

输出格式

11 个整数,表示 xx 出现的次数。

11 1
4

提示

对于 100%100\% 的数据,1n1061\le n\le 10^60x90\le x \le 9

结营测试-精英班

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
7
Start at
2024-7-30 9:00
End at
2024-7-30 10:30
Duration
1.5 hour(s)
Host
Partic.
0