Submit | All submissions | Best solutions | Back to list |
SLEEPIN - SLEEPIN |
The input weekday is 1 if it is a weekday, and the input vacation is 1 if we are on vacation. We sleep in if it is not a weekday or we're on vacation. print true if we sleep in.
Input
You are given n, k separated by space, where 0 <= n, k <= 1.
Output
Print true if we sleep in, or false if we don't.
Example
Input: 0 0 Output: true
Input: 1 0 Output: false
Input: 0 1 Output: true
Added by: | Mussab ElDash |
Date: | 2013-12-19 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | CodingBat.com |