#121. 根据日期和假期设置闹钟时间
根据日期和假期设置闹钟时间
Alarm Clock Time
Background
In daily life, people usually adjust their alarm clock times based on the day of the week and whether they are on vacation. You need to write a program to simulate this alarm setting logic.
Problem Description
Given a day of the week encoded as =Sun, =Mon, =Tue, ...=Sat, and a boolean indicating if we are on vacation, return a string of the form "7:00" indicating when the alarm clock should ring.
Weekdays (Monday to Friday), the alarm should be "7:00" and on the weekend (Saturday and Sunday) it should be "10:00".
Unless we are on vacation -- then on weekdays it should be "10:00" and weekends it should be "off".
Input Format
Input is given from standard input in the following format.
dayvacation
Where day is an integer ( to ), and vacation is a boolean (true or false).
Output Format
Output is printed to standard output in the following format.
alarm_time
Where alarm_time is a string representing the alarm time.
Sample
1 false
"7:00"
5 false
"7:00"
0 false
"10:00"
Sample Explanation
Sample 1: Monday () and not on vacation, alarm is "7:00".
Sample 2: Friday () and not on vacation, alarm is "7:00".
Sample 3: Sunday () and not on vacation, alarm is "10:00".
Constraints
Time limit: s, Memory limit: KiB for each test case.