N为正整数,计算从1到N的所有整数中包含数字1的个数.

学习 时间:2026-03-29 17:32:38 阅读:593
N为正整数,计算从1到N的所有整数中包含数字1的个数.用 Free

最佳回答

留胡子的鸵鸟

俏皮的芒果

2026-03-29 17:32:38

varn,i,s:longint;m:string;beginread(n);for i:=1 to n dobeginstr(i,m);if pos('1',m)0 then s:=s+1;end;write(s);end。

最新回答共有2条回答

  • 虚心的电灯胆
    回复
    2026-03-29 17:32:38

    varn,i,s:longint;m:string;beginread(n);for i:=1 to n dobeginstr(i,m);if pos('1',m)0 then s:=s+1;end;write(s);end。

上一篇 She doesn't care (not care) for him at all 这句中,选doesn't care

下一篇 如果时光可以倒流(作文