1
2
3
4
5
6
7
8
|
a=int(input())
b=int(input())
c=int(input())
d=int(input())
if a<b and b<c and c<d :print("Fish Rising")
elif a>b and b>c and c>d : print("Fish Diving")
elif a==b and b==c and c==d : print("Fish At Constant Depth")
else: print("No Fish")
|
cs |
입력되있는 수들이 증가수열인지 감소하는지 모두 일치하는지
아니면 위 3가지 경우에 모두 해당하지 않는 것인지.
반응형
댓글