n,x,m,i,q,p,s,j:longint;
c:string;
begin
read(n,x);
for i:=1 to n do begin
m:=i;
str(i,c);
p:=length(c);
for j:=1 to p do begin
q:=m mod 10;
if q=x then s:=s+1;
m:=m div 10;
end;
write(s);
end.
快速帮助 | 运行状态 | 反馈举报 | 关于我们 | 免责声明 | 浙ICP备11060257号 Processed in 0.0030 Second(s) Copyright (C) RQNOJ 2007-2019. All Rights Reserved.