QOJ.ac

QOJ

حد الوقت: 1 s حد الذاكرة: 512 MB مجموع النقاط: 100

#4298. 来自 MCHS 的短信

الإحصائيات

你为 MCHS(俄罗斯紧急情况部)工作。你刚刚收到一份来自水文气象中心的报告,其中包含了今天的天气信息和明天的天气预报。

根据这份报告,今天的气温为 $t_1$ 度,风速为 $v_1$ 米/秒。明天的气温将为 $t_2$ 度,风速将为 $v_2$ 米/秒。你的任务是通过短信通知市民明天的天气情况。

最重要的目标是在可能发生风暴时向市民发出警告。如果根据预报,明天的气温为负值,且风速至少为 $10$ 米/秒,你应该发送以下内容的短信:

A storm warning for tomorrow! Be careful and stay home if possible!

否则,你只需通知市民有关恶劣天气的变化。

如果明天的气温低于今天,你应该发送一条关于寒潮的警告短信。短信内容应为:

MCHS warns! Low temperature is expected tomorrow.

否则,如果明天的风速高于今天,你应该发送一条关于大风的警告短信。短信内容应为:

MCHS warns! Strong wind is expected tomorrow.

如果上述条件均不满足,则无需发送任何短信。

根据水文气象中心的报告,确定需要发送什么信息。

输入格式

第一行包含两个整数 $t_1$ 和 $v_1$,分别表示今天的气温和风速($-50 \le t_1 \le 50$;$0 \le v_1 \le 20$)。第二行包含两个整数 $t_2$ 和 $v_2$,分别表示明天的气温和风速($-50 \le t_2 \le 50$;$0 \le v_2 \le 20$)。

输出格式

如果需要发送任何信息,请输出其文本。否则,输出短语 “No message”。

你可以随意使用空格和换行符来分隔短信中的单词。

样例

输入格式 1

15 2
5 3

输出格式 1

MCHS warns! Low temperature is expected tomorrow.

输入格式 2

15 1
17 1

输出格式 2

No message

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.