본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]21638번 SMS from MCHS

by 현장 2021. 5. 16.

-코드

t1, v1 = map(int, input().split())
t2, v2 = map(int, input().split())
if t2 < 0 and v2 >= 10:
    print("A storm warning for tomorrow! Be careful and stay home if possible!")
elif t1 > t2:
    print("MCHS warns! Low temperature is expected tomorrow.")
elif v1 < v2:
    print("MCHS warns! Strong wind is expected tomorrow.")
else:
    print("No message")