program apple;

var

a:array[1..10] of integer;

n,i,total:integer;

begin

for i:=1 to 10 do read(a[i]);

readln(n);

n:=n+30;

for i:=1 to 10 do

if n>=a[i] then inc(total);

writeln(total);

end.

3 条评论

  • @ 2009-10-31 17:59:21

    total没赋初值......

  • @ 2009-10-31 10:46:37

    var

    h,i,j,s:integer;

    a:array[1..10]of integer;

    begin

    j:=0;

    for i:=1 to 10 do

    begin

    read(s);

    a[i]:=s;

    end;

    readln;

    read(s);

    for i:=1 to 10 do

    if a[i]

  • @ 2009-10-31 10:29:48

    var

    l:array[1..10] of longint;

    h,i,t:longint;

    begin

    for i:=1 to 10 do read(l[i]);

    readln(h);

    h:=h+30;

    for i:=1 to 10 do if l[i]

  • 1

信息

ID
1102
难度
3
分类
模拟 点击显示
标签
递交数
16769
已通过
8813
通过率
53%
被复制
63
上传者