ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1327. Fuses

What is wrong?
Posted by Anna 7 Feb 2010 10:00
Program ff;
Var a,b:integer;
Begin
Readln(a);
Readln(b);
if (b-a) mod 2=0
then Writeln((b-a)/2)
else Writeln((b-a) div 2+1);
end.
Re: What is wrong?
Posted by sklyack 14 Apr 2010 20:37
Test: 1 5
Right answer: 3
Yours: 2