Bricks —— 判断矩形能否嵌套

该博客介绍了如何判断矩形砖块是否能通过监狱地板上的小矩形洞口进行处置。输入包含砖块和洞口尺寸,输出是YES或NO,表示能否通过。分析中提到,除了正常放置外,还可以斜放,并提供了判断嵌套可行性的方法。
摘要由CSDN通过智能技术生成

题目来源:Gym100002B

Input file: bricks.in
Output file: bricks.out

Bricks

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 separate

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值