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!

i thin it's work correct, but can't get acc, please help!
Posted by wavejke 21 Jun 2011 16:03
where is my mistake? falls on 5th

var i,nr,n,k,c:integer;
begin
read(n,k);
nr:=trunc(n/2);
if (k>nr) then
begin
for i:=nr+1 to k-1 do
inc(c);
end;
if (k<nr) then
begin
for i:=k+1 to nr do
inc(c);
end;
write(c);
end.
Re: i thin it's work correct, but can't get acc, please help!
Posted by vova 21 Jun 2011 16:06
your mistake in DNA!!
Re: i thin it's work correct, but can't get acc, please help!
Posted by renat-nasyrov 22 Sep 2011 04:02
A person with mistake in DNA solved more problems than you.
Re: i thin it's work correct, but can't get acc, please help!
Posted by Jumabek_Alihonov 27 May 2012 15:29
really???!!! and how do you know it?