#P126. 练21.3 神奇装置
练21.3 神奇装置
Description
A fish-finder is a magical device that helps anglers locate fish. It determines whether an object is a fish based on four consecutive depth readings, with the following rules:
- If the four depths are strictly increasing, the fish-finder gives a "Fish Rising" alert.
- If the four depths are strictly decreasing, the fish-finder gives a "Fish Diving" alert.
- If the four depths are all equal, the fish-finder gives a "Fish At Constant Depth" alert.
- Otherwise, the fish-finder gives a "No Fish" message.
Input Format
A line of four integers , , , (), representing the four depth readings.
Output Format
Output a single string, representing the alert message.
Sample
3 4 9 11Fish Rising