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 1725. Sold Out!

Why Wa 5# (This solution is right)?
Posted by Dj_Denis 14 Nov 2009 15:23
Why I don't get AC
here is my code:

var n,k,m,AC:integer;
begin
readln(n,k);
m:=n div 2;
if k=m then AC:=0;
if k<m then AC:=m-k;
if k>m then AC:=k-m-1;
write(AC);
end.
Re: Why Wa 5# (This solution is right)?
Posted by Лерник Казарян [RAU] 17 Jan 2019 16:45
5 3
ans 0
Re: Why Wa 5# (This solution is right)?
Posted by Peshkov [57 lyceum tlt] 9 Jun 2020 19:34
n is even