728x90
반응형
단순 구현 문제이다.
li = [int(input()) for _ in range(4)]
R = 0
for i in range(3):
if li[i+1] > li[i]:
R = R + 1
elif li[i+1] < li[i]:
R = R - 1
if len(set(li)) == 1:
print("Fish At Constant Depth")
elif R == 3:
print("Fish Rising")
elif R == -3:
print("Fish Diving")
else:
print("No Fish")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 6778번 Which Alien?(python) (0) | 2021.02.05 |
---|---|
백준 알고리즘 6768번 Don’t pass me the ball!(python) (0) | 2021.02.05 |
백준 알고리즘 6763번 Speed fines are not fine!(python) (0) | 2021.02.05 |
백준 알고리즘 5928번 Contest Timing(python) (0) | 2021.02.04 |
백준 알고리즘 5893번 17배(python) (0) | 2021.02.04 |