22671_Bricks

2022-5-16 18:22| 发布者: Hocassian| 查看: 27| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506841260399-Problem List-采集的数据-后羿采集器.html

Pro.ID

22671

Title

Bricks

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22671

AC

3

Submit

11

Ratio

27.27%

时间&空间限制

  • Time Limit: 1500/500 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    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 that goes 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 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.

    输出

    Description

    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 that goes 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.

    Input

    The input 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.

    Output

    Write to the output a single word YES if it is possible to dispose of the bricks through the hole or NO otherwise.

    Sample Input

    1.0 2.0 1.5 1.5 1.0

    Sample Output

    YES

    Source

    样例输入

    1.0 2.0 1.5 1.5 1.0

    样例输出

    YES

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部