TCCC '24 Feb P1 - Morning Routine

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

Thornhill Computer Club 2024 - February Mock CCC - Problem 1

KurbyDoo always stays up late and can never fall asleep on time. As a result, he often wakes up late for school causing him to skip breakfast and even potentially miss the bus which always arrives exactly 8 hours after midnight. Aware of his problem, he decides to plan his morning routine accordingly depending on when he wakes up. It takes 5 minutes for him to get out of bed, 30 minutes to eat breakfast,10 minutes to get ready for school, and 5 minutes to walk to the bus stop. KurbyDoo will always complete every part of his morning routine. However, depending on how late he wakes up, he may not have enough time for breakfast and thus chooses to skip it entirely to save time. Given the time KurbyDoo wakes up, determine if he can make the bus, needs to skip breakfast, or misses the bus entirely.

Input Specifications

The first line of input will contain two integers H (1 \le H < 12) and M (0 \le M < 60) representing the number of hours and minutes after midnight at which KurbyDoo wakes up at.

Output Specifications

Depending on when KurbyDoo wakes up, output one of the following strings on a single line:

  • KURBYDOO MAKES THE BUS if he can make the bus without skipping breakfast.
  • KURBYDOO SKIPS BREAKFAST if he can make the bus by skipping breakfast.
  • KURBYDOO MISSES THE BUS if he cannot make the bus.

Sample Input 1

7 10

Sample Output 1

KURBYDOO MAKES THE BUS

Explanation of Sample Output 1

Kurbydoo can complete his morning routine by 8 hours and 0 minutes after midnight and is thus able to make the bus.

Sample Input 2

7 25

Sample Output 2

KURBYDOO SKIPS BREAKFAST

Explanation of Sample Output 2

KurbyDoo will complete his morning routine by 8 hours and 15 minutes after midnight, which is too late for the bus. However, if KurbyDoo chooses to skip breakfast, he will complete his morning routine by 7 hours and 45 minutes after midnight and can make the bus.

Sample Input 3

7 50

Sample Output 3

KURBYDOO MISSES THE BUS

Explanation of Sample Output 3

Kurbydoo will miss the bus even if he chooses to skip breakfast.


Comments

There are no comments at the moment.