BOJ/Python

[BOJ/백준] 21638 - SMS from MCHS (Python)

tjdms4327 2024. 9. 18. 21:12

문제 링크

오늘과 내일의 온도와 풍속에 따라 어떤 기상 예보 메세지를 보낼지 결정하는 문제이다.

 

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 v2>v1:
    print('MCHS warns! Strong wind is expected tomorrow.')
else:
    print('No message')