Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
我的过不了!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator