Why the output for sample input isn't 4?
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?
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?
Case it's 3 you stupid fuck!!!
Re: morbidel
Oh, now I see. Thanks for explanation.
Re: Why the output for sample input isn't 4?
Thanks. Boys acm.timus.ru this cool!
Re: Why the output for sample input isn't 4?
very thanks! good explain!
Edited by author 29.09.2012 12:20
Re: Why the output for sample input isn't 4?
Thanks a lot!
Re: Why the output for sample input isn't 4?
nice explaination!!!! thanks a lot
Edited by author 11.04.2013 14:42
Re: Why the output for sample input isn't 4?
Thanks very much. really very good explanation...
Re: Why the output for sample input isn't 4?
thank
Re: Why the output for sample input isn't 4?
thank you bro.