一开始变量开小了,哎: { Author:wzx961008 Problem:UVa 10055-Hashmat the Brave Warrior Verdict:Accepted Language:PASCAL Run Time:0.152s Submission Date:2011-01-13 09:29:12 } var a,b:int64; function abs(i:int64):int64; begin if i>0 then exit(i) else exit(-i); end; begin while not eof do begin readln(a,b); writeln(abs(a-b)); end; end.