Logo
(追記) (追記ここまで)

21638번 - SMS from MCHS 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB24061387131858.344%

문제

You work for MCHS (Russian Ministry of Emergency Situations). You have just received a report from Hydro-meteorological Center containing an information about today's weather and the forecast for tomorrow.

According to this report, the air temperature is $t_1$ degrees today, and the wind speed is $v_1$ meters per second. Tomorrow the air temperature will be $t_2$ degrees, and the wind speed will be $v_2$ meters per second.

You are given a task to notify citizens about the weather for tomorrow via SMS.

The most important goal is to warn citizens in case the storm is possible. If, according to the forecast, the temperature tomorrow will be negative, and the wind speed will be at least 10 meters per second, you should send a message with following text:

A storm warning for tomorrow! Be careful and stay home if possible!

Otherwise, you may just notify citizens about bad weather changes.

If the temperature tomorrow will be lower than today, then you should send a message with a warning about a cold snap. It should have the following text:

MCHS warns! Low temperature is expected tomorrow.

Otherwise, if wind speed tomorrow will be higher than today, then you should send a message with a warning about strong wind. It should have the following text:

MCHS warns! Strong wind is expected tomorrow.

If none of the above conditions is satisfied, the you don't have to send a message at all.

Given the report from Hydro-meteorological Center, determine, what message has to be sent.

입력

The first line of input contains two integers $t_1$ and $v_1$ --- the temperature and the wind speed for today ($-50 \le t_1 \le 50$; 0ドル \le v_1 \le 20$). The second line contains two integers $t_2$ and $v_2$ --- the temperature and the wind speed for tomorrow ($-50 \le t_2 \le 50$; 0ドル \le v_2 \le 20$).

출력

In case if any message has to be sent, output its text. Otherwise, output phrase "No message".

You can separate message words with spaces and line feeds arbitrarily.

제한

예제 입력 1

15 2
5 3

예제 출력 1

MCHS warns! Low temperature
is expected tomorrow.

예제 입력 2

15 1
17 1

예제 출력 2

No message

힌트

출처

Olympiad > Russian Olympiad in Informatics > Russia Team High School Programming Contest > Russia Team High School Programming Contest 2020 F번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /