QOJ.ac

QOJ

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

#13988. 煤灰精灵洒水器

الإحصائيات

天空之城业主协会(CSHOA)的最新法令公布了一项新规定:在每两次检查之间,你必须用至少 $w$ 加仑的水浇灌你的花园。检查每 $p$ 分钟进行一次。你已经有了一个正在运行的浇水计划:灰尘精灵洒水器被配置为以 $(t + b)$ 分钟为一个周期运行,其中在前 $t$ 分钟内以每分钟 $r$ 加仑的速度浇灌花园,然后休息 $b$ 分钟。碰巧的是,下一个浇水周期恰好在下一次 CSHOA 检查时开始,届时新规定也将开始生效。你很懒,如果当前的浇水计划已经符合新规定,你宁愿不更改洒水器的配置。如果必须更改配置,请输出 “The CSHOA decrees are as murky as the Forest Spirit”;否则输出 “Soot Sprites sing a lullaby”。

输入格式

输入只有一行,包含五个空格分隔的整数 $w, p, t, b$ 和 $r$ ($1 \le w, p, t, b, r \le 10^9$)。

  • $w$ 是每次检查之间所需的最低浇水量(加仑)。
  • $p$ 是检查间隔(分钟)。
  • $t$ 是每个浇水周期中的浇水时间(分钟)。
  • $b$ 是每个浇水周期中的休息时间(分钟)。
  • $r$ 是灰尘精灵洒水器浇灌花园的速度(加仑/分钟)。

输出格式

输出单行。如果必须更改配置,输出 “The CSHOA decrees are as murky as the Forest Spirit”;否则输出 “Soot Sprites sing a lullaby”。

样例

输入样例 1

3 6 2 2 1

输出样例 1

The CSHOA decrees are as murky as the Forest Spirit

输入样例 2

5 5 2 1 2

输出样例 2

Soot Sprites sing a lullaby

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.