{"raw_statement":[{"iden":"background","content":"对应的选择、判断题：<https://ti.luogu.com.cn/problemset/1150>"},{"iden":"statement","content":"小杨认为自己的幸运数是正整数 $k$（注：保证 $1 \\le k\\le 9$）。小杨想知道，对于从 $1$ 到 $n$ 的所有正整数中， $k$ 出现了多少次。"},{"iden":"input","content":"第一行包含一个正整数 $n$。\n\n第二行包含一个正整数 $k$。"},{"iden":"output","content":"输出从 $1$ 到 $n$ 的所有正整数中， $k$ 出现的次数。"},{"iden":"note","content":"从 $1$ 到 $25$ 中，$2$ 出现的正整数有 $2,12,20,21,22,23,24,25$ ，一共出现了 $9$ 次。\n\n对于全部数据，保证有 $1 \\le n\\le 1000,1 \\le k\\le 9$。"}],"translated_statement":null,"sample_group":[["25\n2","9"]],"show_order":[],"formal_statement":null,"simple_statement":null,"has_page_source":false}