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!
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!
really???!!! and how do you know it?