Laptop Sticker
InterviewTime limit1sMemory limit1024 MB
Decide whether a sticker fits on a laptop lid with one centimeter of margin on every side, without rotating it.
- Level
Easy2 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
Your school has given you a laptop computer. However, they insist on putting a laptop sticker with their logo on your new computer. That sticker might be very large, and it cannot be rotated. Will it fit, with one centimeter to spare on all sides?
Input
The single line of input contains four integers , , , and (), where is the width of your new laptop computer, is the height of your new laptop computer, is the width of the laptop sticker, and is the height of the laptop sticker. All measurements are in centimeters.
Output
Output a single integer, which is 1 if the laptop sticker will fit on your new laptop computer, without rotating, but with one centimeter of space on all sides, and 0 if the laptop sticker will not fit.