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

学习 时间:2026-08-11 12:05:20 阅读:6832
N为正整数,计算从1到N的所有整数中包含数字1的个数.用 Free

最佳回答

贪玩的小刺猬

个性的绿茶

2026-08-11 12:05:20

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-08-11 12:05:20

    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

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