Not Acceptable

ABC 406

Problem 10 of 50

Easy

What to do

Check if a submission time (C:D) is strictly before a deadline (A:B), where times are in hours and minutes. Return 'Yes' if submitted before the deadline, 'No' otherwise. Compare hours first, then minutes.

Key Concepts

if-statements comparison basic input/output integer handling

Examples

Input: A = 22, B = 40, C = 22, D = 30

Output: Yes

Input: A = 22, B = 40, C = 22, D = 45

Output: No

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...