#274. 判断两数和或值为10
判断两数和或值为10
Check for 10 or Sum is 10
Background
Congcong is currently learning basic logical judgments. Dawei gave him a simple task to determine if two numbers meet specific conditions.
Problem Description
Given two integers and , return true if one of them is or if their sum is . Otherwise, return false.
Input Format
Input is given from standard input in the following format.
a b
Output Format
Output to standard output in the following format.
trueorfalse
Sample
9 10
true
9 9
false
1 9
true
Sample Explanation
For Sample 1, the input is and . One of the numbers is , so true is returned.
For Sample 2, the input is and . Neither number is , and their sum is not , so false is returned.
For Sample 3, the input is and . Neither number is , but their sum is , so true is returned.
Constraints
Time limit: second, Memory limit: KiB.