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

学习 时间:2026-11-09 22:17:23 阅读:290
N为正整数,计算从1到N的所有整数中包含数字1的个数.用 Free

最佳回答

激动的康乃馨

慈祥的翅膀

2026-11-09 22:17:23

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-11-09 22:17:23

    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

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