ENG
RUS
Timus 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
1820
. Ural Steaks
Почему не работает??
Posted by
Jacob
24 Apr 2013 23:19
var n,k,x: integer;
prov,res:real;
begin
read(n,k);
x:=n*2;
res:=x/k;
res:=trunc(res); writeln(res);
end.
Re: Почему не работает??
Posted by
Michael [SESC UrFU]
23 Aug 2013 20:05
нужна функция не trunc(), a ceil().
© 2000–2024
Timus Online Judge Team
. All rights reserved.