#t228. 收集瓶盖赢大奖
收集瓶盖赢大奖
Collect Bottle Caps for a Prize
Problem Description
A beverage company recently launched a "collect bottle caps for a grand prize" promotion: if you have 10 caps printed with Lucky (幸运), or 20 caps printed with Encourage (鼓励), you can redeem a mystery grand prize.
Given the number of caps printed with Lucky and the number printed with Encourage that you currently have, determine whether you can redeem the grand prize.
Input Format
One line containing two integers: the number of caps printed with "Lucky" and the number printed with "Encourage", separated by a single space.
Output Format
One line. If you can redeem the grand prize, output 1; otherwise output 0.
Sample Input
11 19
Sample Output
1
Hint
- The redemption condition is an "or" relationship:
||is true if either side holds — contrast it with&&(and) to remember. - Verify with the sample:
11 19→1.