#121. 根据日期和假期设置闹钟时间

    ID: 121 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatLogic-1gesp1条件结构模拟

根据日期和假期设置闹钟时间

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 00=Sun, 11=Mon, 22=Tue, ...66=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.

day vacation

Where day is an integer (00 to 66), 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 (11) and not on vacation, alarm is "7:00".

Sample 2: Friday (55) and not on vacation, alarm is "7:00".

Sample 3: Sunday (00) and not on vacation, alarm is "10:00".

Constraints

Time limit: 11s, Memory limit: 10241024KiB for each test case.