QOJ.ac

QOJ

Limite de temps : 1 s Limite de mémoire : 2048 MB Points totaux : 100

#1947. 笔记本贴纸

Statistiques

学校为你提供了一台笔记本电脑!然而,他们坚持要在你的新电脑上贴一张带有他们标志的笔记本贴纸。这张贴纸可能非常大,而且不能旋转!它能贴得下吗?要求在贴纸的四周都留出一厘米的空隙。

输入格式

输入包含一行,包含四个整数 $wc, hc, ws$ 和 $hs$ ($1 \le wc, hc, ws, hs \le 1,000$),其中 $wc$ 是你新笔记本电脑的宽度,$hc$ 是你新笔记本电脑的高度,$ws$ 是笔记本贴纸的宽度,$hs$ 是笔记本贴纸的高度。所有测量单位均为厘米。

输出格式

输出一个整数,如果笔记本贴纸在不旋转的情况下,且四周留有一厘米的空隙,能够贴在你的新笔记本电脑上,则输出 $1$,否则输出 $0$。

样例

样例输入 1

30 30 27 27

样例输出 1

1

样例输入 2

35 30 25 29

样例输出 2

0

样例输入 3

30 35 30 35

样例输出 3

0

Editorials

IDTypeStatusTitlePosted ByLast UpdatedActions
EditorialOpen Official EditorialQingyu- Download

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.