Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么 runtime error 附程序(pascal)

Posted by dinosaur at 2006-10-29 11:52:19 on Problem 2664
var
  m,k,c,i,num,n,t,j:longint;
  flag:boolean;
  a:array [1..10000] of boolean;
begin
  read(m);
  while m<>0 do
  begin
  readln(k);
  flag:=true;
  fillchar(a,sizeof(a),0);
  for i:=1 to m do
    begin
      read(c);
      a[c]:=true;
    end;
  readln;
  for i:=1 to k do
    begin
      read(num,n);
      t:=0;
      for j:=1 to num do
        begin
          read(c);
          if a[c] then t:=t+1;
        end;
      if t<n then flag:=false;
      readln;
    end;
  if not flag then writeln('no') else writeln('yes');
  read(m);
  end;
end.

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator