⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ac1190.pas

📁 uralcode
💻 PAS
字号:
program ural1190;
var
  n,i,x,c,junk:word;
  min,max:longint;
  s:string;
procedure no;
  begin
    writeln('NO');
    halt;
  end;
begin
  readln(n);
  x:=10000;min:=0;max:=0;c:=0;
  for i:=1 to n do begin
    inc(c);
    readln(s);
    delete(s,1,pos(' ',s));
    if s[1]='1' then begin
      delete(s,1,2);
      val(s,x,junk);
      inc(min,x*c);
      if min>10000 then no;
      c:=0;
    end;
    inc(max,x);
  end;
  if max<10000 then no;
  writeln('YES');
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -