← Back to List

6764번: Sounds fishy! ↗

Solutions

Python 3
246 B | 246 chars
L = [int(input()) for i in range(4)]
if L[0] == L[1] == L[2] == L[3]:
    print("Fish At Constant Depth")
elif L[0] < L[1] < L[2] < L[3]:
    print("Fish Rising")
elif L[0] > L[1] > L[2] > L[3]:
    print("Fish Diving")
else:
    print("No Fish")