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 1161. Stripies

The sample is incorrect?!
Posted by Ilya (Vologda SPU) 9 Sep 2009 21:46
input:
3
72
30
50

output:
120.00

But the task is to find the minimal weight!
I wonder how 120.00 (2*sqrt(72*50)) can be minimal? It's maximal!
Re: The sample is incorrect?!
Posted by Ilya (Vologda SPU) 2 Mar 2010 01:49
Sorry, sample is ok, my thought is not ^^"
Re: The sample is incorrect?!
Posted by sylap 14 Oct 2012 15:34
step #1 : 2*sqrt(72*50) =120  -->  colliding 72  and 50 and new stripy with weight 120
step #2 : 2*sqrt(120*30)=120  -->  colliding 120 and 30 and new stripy with weight 120