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 25278RQ at 2004-03-28 11:33:21 on Problem 1067
var
  a,b:array [1..1000] of longint;
  k,i:longint;
begin
  k:=0;
  repeat
    inc(k);
    readln(a[k],b[k]);
  until eof;
  for i:=1 to k do
    if a[i]<>b[i] then
      begin
        if odd(abs(a[i]-b[i])) then writeln(0)
          else writeln(1);
      end
      else if odd(a[i]) then writeln(1) else writeln(0);
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