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
Show all messages
Hide all messages
Почему не работает??
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: Почему не работает??
Michael [SESC UrFU]
23 Aug 2013 20:05
нужна функция не trunc(), a ceil().
© 2000–2026
Timus Online Judge Team
. All rights reserved.