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

2WA 1AC PASCAL....

Posted by aiouniya at 2012-08-24 09:40:07 on Problem 2664
var
  n,i,m,k,l,j,o:integer;
  a:array[1..maxint]of integer;
  mn:boolean;
begin
  read(n);
  while n<>0 do
    begin
      fillchar(a,sizeof(a),0);
      mn:=true;
      readln(m);
      for i:=1 to n do begin read(o);a[o]:=1;end;
      for i:=1 to m do
        begin
         read(k,l);
         for j:=1 to k do begin read(o); if a[o]=1 then dec(l) end;
         if l>0 then mn:=false;
        end;
        if mn then writeln('yes') ELSE WRITELN('no');
      read(n);
    end;
end.


这水题都贡献了2WA,好吧。。。

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