英语翻译5

https://acs.jxnu.edu.cn/external/gym/doc/GYM100002B.doc

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

Output

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

Sample inputs and outputs

bricks.in

bricks.out

1.0 2.0 1.5 1.4 1.0

NO

1.0 2.0 1.5 1.5 1.0

YES

中文翻译:

 “如果”城堡的囚犯决定通过拆掉牢房里的砖墙逃跑。为了不让狱卒看到他的作品,他应该把他从墙上取下来的砖块拿掉。所有砖的形状都是平行的矩形,大小为A×B×C英寸,而且强度很大,很难打破。然而,在牢房的地板上有一条小的矩形下水道,其尺寸为D×E英寸,深如一口同样大小的矩形井(如此之深,以至于它的深度无法测量,不可忽略)。这个囚犯正好有(高达十分之一英寸!)测量所有尺寸A,B,C,D,E和任意知道是否有可能通过地板上的洞把城堡的砖块处理掉。请替他回答这个问题。

输入
输入文件由一行组成,用空格分隔A、B、C、D和E。A、B、C是砖边的长度,D、E是孔边的长度。所有长度至少1英寸,最多10英寸,小数点后最多有1位数。
 

输出
在输出文件中写一个单词“是”,如果有可能通过孔处理砖块,否则不会。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值