#P1. 判断是否睡懒觉
判断是否睡懒觉
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.
weekdayvacation
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.