Question
It does not work. I've also tried read(), readline() but that didn't work either. Do you know where the error is? Input The input is
It does not work. I've also tried read(), readline() but that didn't work either. Do you know where the error is?
Input
The input is a single line of positive integers. The first integer designates the number of segments, with 39. The following integers, 1>2>> designate the lengths of the segments, such that 199 for all . The lengths will permit at least one triangle to be constructed.
Output
Output is the maximum distance that one of Alaas structures can reach away from the wall, stated with a relative or absolute error of at most 102. The input data is chosen so that any structure acheiving the maximum distance has all vertices except the base vertices at least 0.0001 from the wall.
Sample Input 1 | Sample Output 1 |
---|---|
3 50 40 30 | 40 |
Sample Input 2 | Sample Output 2 |
---|---|
4 50 40 30 29 | 40 |
Sample Input 3 | Sample Output 3 |
---|---|
7 42 40 32 30 25 18 15 | 66.9495287 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started