본문 바로가기
python-algorithm

[백준] 6764

by 무적김두칠 2021. 3. 3.

1
2
3
4
5
6
7
8
a=int(input())
b=int(input())
c=int(input())
d=int(input())
if a<and b<and c<d :print("Fish Rising")
elif a>and b>and c>d : print("Fish Diving")
elif a==and b==and c==d : print("Fish At Constant Depth")
elseprint("No Fish")
cs

입력되있는 수들이 증가수열인지 감소하는지 모두 일치하는지
아니면 위 3가지 경우에 모두 해당하지 않는 것인지.

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 6778  (0) 2021.03.03
[백준] 6768  (0) 2021.03.03
[백준] 6763  (0) 2021.03.03
[백준] 5928  (0) 2021.03.03
[백준] 1297  (0) 2021.03.03

댓글