|
|
back to boardtest 8 - wrong answer. my program work. but timus don't accept answer. var n,k,m:word; begin read(n,k); if 2*n mod k=0 then m:=2*n div k else m:=(2*n div k)+1; write(m); end. Re: test 8 - wrong answer. K can be greater than N Re: test 8 - wrong answer. why is this take wrong answer? var n,k,m:word; begin read(n,k); if n>k then if 2*n mod k=0 then m:=2*n div k else m:=(2*n div k)+1; if n<= k then m:=2*n; write(m); end. Re: test 8 - wrong answer. When k >= n then we can cook all of them in two minutes (first minute one side, second minute second side) not in 2*n minutes. Edited by author 23.09.2011 20:06 Re: test 8 - wrong answer. Thank you!!!! I did it!!! Re: test 8 - wrong answer. why if 2n div k <> 0 you add 1? Re: test 8 - wrong answer. thank you man! :D |
|
|