ENG  RUSTimus 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 the output for sample input isn't 4?
Posted by Alaska . PK 6 Oct 2011 22:53
When n = 3 and k = 2, the output should be 4 because for the first 2 steaks, it would take 2 minutes (1 + 1 for both the sides) and for the remaining 1 steak again 2 minutes (1 + 1 for both the sides)
then 2 + 2 = 4. That's what I think the output should be. So, what's wrong here, can somebody answer please?
Re: Why the output for sample input isn't 4?
Posted by morbidel 7 Oct 2011 15:01
minute 1: side 1 steak 1 and side 1 steak 2
minute 2: side 2 steak 1 and side 1 steak 3 (steak 1 is finished)
minute 3: side 2 steak 2 and side 2 steak 3 (steak 2 and 3 are finished)
Re: Why the output for sample input isn't 4?
Posted by ONU_team_AvengerS 5 Nov 2011 17:14
Case it's 3 you stupid fuck!!!
Re: morbidel
Posted by Vsevolod 21 Jan 2012 17:40
Oh, now I see. Thanks for explanation.
Re: Why the output for sample input isn't 4?
Posted by Firdavs 7 Mar 2012 09:54
Thanks. Boys acm.timus.ru this cool!
Re: Why the output for sample input isn't 4?
Posted by HaiyangZheng 29 Sep 2012 12:17
very thanks! good explain!

Edited by author 29.09.2012 12:20
Re: Why the output for sample input isn't 4?
Posted by Sanfeng HU 8 Apr 2013 19:55
Thanks a lot!
Re: Why the output for sample input isn't 4?
Posted by annonynous 11 Apr 2013 14:42
nice explaination!!!! thanks a lot

Edited by author 11.04.2013 14:42
Re: Why the output for sample input isn't 4?
Posted by Armen_Zakarya 28 Jun 2013 18:48
Thanks very much. really very good explanation...
Re: Why the output for sample input isn't 4?
Posted by Mescheryakov_Kirill 27 Mar 2014 13:48
thank
Re: Why the output for sample input isn't 4?
Posted by faramarz 11 Dec 2014 23:32
thank you bro.