|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||256 MB||18||16||14||87.500%|
Mount Snowdon, the tallest place in Wales, is a major attraction for mountain bikers far and wide. To take advantage of the popularity of this thrilling sport, an enterprising new venture plans to open several new bike repair shops throughout the rolling foothills.
The cunning small business owner’s financial success relates directly to the velocity of the average biker: the faster a biker is going at the foot of the hill the more likely they are to encounter a problem and have to walk — or sometimes limp — into the shop.
Snowdon, like most mountains, has a very angular sort of shape. In fact, the profile of the mountain can be represented as N connected line segments pointing downward at various angles, each starting where the last left off. Given this highly scientific representation of the landscape, we need to find the likely speeds of bikers given that they may start off from the top of any of the N segments.
As we all know, a biker on a θ-degree slope from the vertical will accelerate at a rate of precisely g × cos(θ) ms−2 along the slope.
Each of the N lines of output should contain one real number: the velocity of a biker starting at the ith-most segment from the top and finishing at the foot of the mountain.
Answers will be judged as correct if they are printed to within an absolute or relative difference of 10−6 from their exact values.
2 9 69 60 100 60
3 77 500 65 20 5 1000 80
249.70323 172.65601 163.52926