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

实在不明为何错 ,请指点...谢谢

Posted by jackland at 2007-11-13 20:38:52 on Problem 2234
Program pku2234;


 Var
        
        N           : Longint;



Procedure Work;
 var
        i,s     : Longint;
          A     : Array [1..1000] of  longint;
Begin
  while not eof do
  begin
    read(N);
    For i:=1 to N do
    read(A[i]);
    readln;

    s:=A[1];
    for i:=2 to N  do s:=s xor A[i];
    if s =0 then writeln('No') else Writeln('Yes');

  end;

End;



Begin

  Work;

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