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

学习 时间:2026-09-25 18:25:55 阅读:5290
N为正整数,计算从1到N的所有整数中包含数字1的个数.用 Free

最佳回答

唠叨的牛排

无奈的纸鹤

2026-09-25 18:25:55

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-09-25 18:25:55

    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

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