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

Alaska . PK Why the output for sample input isn't 4? [10] // Problem 1820. Ural Steaks 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?
morbidel Re: Why the output for sample input isn't 4? [7] // Problem 1820. Ural Steaks 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)
Vsevolod Re: morbidel // Problem 1820. Ural Steaks 21 Jan 2012 17:40
Oh, now I see. Thanks for explanation.
HaiyangZheng Re: Why the output for sample input isn't 4? // Problem 1820. Ural Steaks 29 Sep 2012 12:17
very thanks! good explain!

Edited by author 29.09.2012 12:20
Sanfeng HU Re: Why the output for sample input isn't 4? [1] // Problem 1820. Ural Steaks 8 Apr 2013 19:55
Thanks a lot!
annonynous Re: Why the output for sample input isn't 4? // Problem 1820. Ural Steaks 11 Apr 2013 14:42
nice explaination!!!! thanks a lot

Edited by author 11.04.2013 14:42
Armen_Zakarya Re: Why the output for sample input isn't 4? // Problem 1820. Ural Steaks 28 Jun 2013 18:48
Thanks very much. really very good explanation...
Mescheryakov_Kirill Re: Why the output for sample input isn't 4? // Problem 1820. Ural Steaks 27 Mar 2014 13:48
thank
thank you bro.
ONU_team_AvengerS Re: Why the output for sample input isn't 4? // Problem 1820. Ural Steaks 5 Nov 2011 17:14
Case it's 3 you stupid fuck!!!
Thanks. Boys acm.timus.ru this cool!