|
Menu |
|
Задача Bricks
| Файл входного файла: | bricks.in |
|---|---|
| Файл выходного файла: | bricks.out |
| Ограничение по памяти: | 64 MB |
| Ограничение по времени: | 2 s |
Описание
The prisoner of the "IF" castle has decided to run away by disassembling the brick wall in his prison cell. To hide his work from his jailors he shall get rid of the bricks that he removes from the wall. All bricks have a shape of rectangular parallelepiped with the size of A × B × C inches and are so strong that they are impossible to break. However, there's a small rectangular sewer hole in the cell's floor with the size of D × E inches thatgoes deep down as a rectangular well of the same size (so deep it is, that its depth could not be measured and can be neglected). The prisoner have precisely (up to a tenth of an inch!) measured all the sizes A, B, C, D, E and wants to know if it is possible to dispose of the castle's bricks through the hole in the floor. Please, answer this question for him.
Формат входных данных
The input file consists of a single line with 5 numbers A, B, C, D, and E separated by spaces. A, B, C are the lengths of brick's sides, and D, E are the lengths of hole's sides. All lengths are at least 1 and at most 10 inches and have at most 1 digit after decimal point.
Формат выходных данных
Write to the output file a single word YES if it is possible to dispose of the bricks through the hole or NO otherwise.
Примеры:
| ввод | вывод |
|---|---|
|
1.0 2.0 1.5 1.4 1.0 |
NO |
|
|
|
|
1.0 2.0 1.5 1.5 1.0 |
YES |
|
|
|
Обсуждение:
Начать обсуждение:
Powered by django, eJudge.
а может параллелепипед пройти через прямоугольник с наклоном(с другим углом)
Дата: 2010-05-08 19:23
Ответить →
Да,здесь надо сделать перебор синуса угла от 0 до 1 с шагом приблиз. 0,00001
Дата: 2010-08-10 18:12
Ответить →