There is a contest! | В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.
|
|
imesecan | Aug.31.2015 at 02:14:51 PM | |
0 | --- Test 1 --- 1 7
--- Pattern1 --- 153.938 43.982
|
imesecan | Dec.05.2015 at 11:05:54 AM | |
1 | It's isosceles triangle that means two sides are equal and we are given base and height. If you draw a line from the top to the center of base (base/2) you will get a right triangle. with the sides c (hypotenuse) (base/2) and height (h). Then using Pythagorean theorem you can calculate c.
Then the perimeter is 2c+base.
Note: Pay attention when calculating base/2, since base may be an odd number.
|
|