练21.3 神奇装置
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
fish-finder 是一个能够帮助垂钓者找到鱼的神奇装置。它根据某个物体连续的四个深度来判断这个物体是不是一条鱼。我们的目的是实现一个 fish-finder,具体要求如下:如果连续的四个深度是严格递增的,fish-finder 发出"
Fish Rising
"的警报。如果连续的四个深度是严格递减的,Fish-finder 发出"
Fish Diving
"的警报。如果连续的四个深度是相同的,fish-finder 发出"
Fish At Constant Depth
"警报。如果都不是,Fish-finder 发出"
No Fish
"提示。
输入格式
一行四个整数 $a$,$b$,$c$,$d$ ($1 \le a,b,c,d \le 100$),表示四个深度的大小。输出格式
输出一个字符串,表示一种提示语。样例
3 4 9 11
Fish Rising
测试分支语句2
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2025-1-19 8:15
- End at
- 2025-1-19 10:15
- Duration
- 2 hour(s)
- Host
- Partic.
- 4