|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||1174||417||369||35.143%|
A fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that a fish is swimming past if:
All other readings will be considered random noise or debris, which we will call “No Fish.”
Your task is to read a sequence of depth readings and determine if the alarm will sound.
The input will be four positive integers, representing the depth readings. Each integer will be on its own line of input.
The output is one of four possibilities. If the depth readings are increasing, then the output should be
Fish Rising. If the depth readings are decreasing, then the output should be
Fish Diving. If the depth readings are identical, then the output should be
Fish At Constant Depth. Otherwise, the output should be
1 10 12 13