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
why WA???
Posted by
HermitVI
28 Sep 2011 00:27
var
n,k,s:integer;
begin
read (n,k);
s:=(n div(k)*2)+(n mod(k)*2);
writeln(s);
end.
Re: why WA???
Posted by
morbidel
28 Sep 2011 02:53
K can be larger than N.
See
http://acm.timus.ru/forum/thread.aspx?id=27083&upd=634524052819581250
© 2000–2024
Timus Online Judge Team
. All rights reserved.