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

    Type: RemoteJudge 1000ms 125MiB

[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.

题目背景

NOIP2013 普及组 T1

题目描述

试计算在区间 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

C23越秀初二选拔赛

Not Attended
Status
Done
Rule
IOI
Problem
8
Start at
2024-11-9 14:00
End at
2024-11-9 17:00
Duration
3 hour(s)
Host
Partic.
22