#P1. 判断是否睡懒觉

    ID: 1 Type: Default 1000ms 256MiB Tried: 5 Accepted: 2 Difficulty: 10 Uploaded By: Tags>codingbatWarmup-1gesp1条件结构

判断是否睡懒觉

Sleep In

Background

Congcong is a programmer who loves life. Every day, he faces an important decision: should he sleep in today? This decision depends on whether it's a weekday or a weekend, and whether he is on vacation.

Problem Description

Given two boolean parameters: weekday and vacation. The parameter weekday is true if it is a weekday, and false if it is a weekend. The parameter vacation is true if Congcong is on vacation, and false if he is not.

Congcong sleeps in if it is not a weekday (i.e., weekday is false) OR he is on vacation (i.e., vacation is true). Return true if Congcong sleeps in, otherwise return false.

Input Format

Input is given from standard input in the following format.

weekday vacation

Where weekday and vacation are boolean values, represented as true or false.

Output Format

Output is printed to standard output in the following format.

result

Where result is a boolean value, true if Congcong sleeps in, false otherwise.

Sample

false false
true
true false
false
false true
true

Sample Explanation

Sample 1: weekday is false (weekend), vacation is false (not on vacation). Since it's the weekend, Congcong sleeps in, returning true. Sample 2: weekday is true (weekday), vacation is false (not on vacation). Since it's a weekday and not on vacation, Congcong does not sleep in, returning false. Sample 3: weekday is false (weekend), vacation is true (on vacation). Even though it's the weekend, he is also on vacation, so Congcong sleeps in, returning true.

Constraints

Time limit: 1 second per test case. Memory limit: 1024 KiB.