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

34798번 - Missed Alarm 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB28423420784.490%

문제

It is November 14, 2025. You are doing your last minute preparations for the 2025 Pacific Northwest Regional. You have Eurovision music blasting in your dorm room as you code up your final solution to Free Solo. You submit your solution to Kattis and watch as the green check marks slowly accumulate... you hit F5 one last time, and see that all test cases have passed!

With your coding preparations now complete, you decide to prepare all the materials that you will bring to the regional contest. You pack your trusty copies of CLRS and KT, along with language reference books for C, C++, Java, Kotlin, and Python. You print out a copy of the KACTL team reference document and also print your personal templates.

You check your phone. It is November 15, 2025. You realize you need to get a good night's sleep. You set your alarm and start preparing for bed. You're excited for the regional contest but not so excited it'll keep you up tonight. With your alarm set to go off at some point on the 15th, you get into bed and you're already asleep before your head hits your pillow.

You suddenly wake up and look at the clock. It's still November 15, 2025. Did you sleep through your alarm?

입력

The input consists of two lines.

The first line contains a time in the form HH:MM, indicating when you set your alarm. It is guaranteed that this is a valid time between 10:00 and 12:59, inclusive.

The second line contains a time in the form HH:MM, indicating when you look at the clock. It is guaranteed that this is a valid time between 10:00 and 12:59, inclusive. It is further guaranteed that this time is not exactly the same as your alarm.

A valid time will always have a minute value that is an integer between 0ドル$ and 59ドル,ドル inclusive. The minute value will always be represented using two digits, possibly with a leading zero.

출력

Output YES if you woke up after your alarm. Output NO otherwise.

제한

예제 입력 1

11:13
12:23

예제 출력 1

YES

예제 입력 2

11:23
11:13

예제 출력 2

NO

예제 입력 3

12:13
11:13

예제 출력 3

NO

예제 입력 4

12:23
11:13

예제 출력 4

NO

예제 입력 5

11:00
10:00

예제 출력 5

NO

예제 입력 6

10:00
11:00

예제 출력 6

YES

노트

출처

ICPC > Regionals > North America > Pacific Northwest Regional > 2025 ICPC Pacific Northwest Regional > Division 2 E번

  • 문제를 만든 사람: Nick Wu
(追記) (追記ここまで)

출처

대학교 대회

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

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