D. [NOIP 2013 普及组] 计数问题

    Type: RemoteJudge 1000ms 125MiB

[NOIP 2013 普及组] 计数问题

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

小蒙新冬令营[day4]

Not Claimed
Status
Done
Problem
7
Open Since
2026-1-30 0:00
Deadline
2026-1-31 23:59
Extension
24 hour(s)