#274. 判断两数和或值为10

    ID: 274 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-1gesp1条件结构数学基础

判断两数和或值为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 aa and bb, return true if one of them is 1010 or if their sum is 1010. 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.

true or false

Sample

9 10
true
9 9
false
1 9
true

Sample Explanation

For Sample 1, the input is 99 and 1010. One of the numbers is 1010, so true is returned. For Sample 2, the input is 99 and 99. Neither number is 1010, and their sum 9+9=189+9=18 is not 1010, so false is returned. For Sample 3, the input is 11 and 99. Neither number is 1010, but their sum 1+9=101+9=10 is 1010, so true is returned.

Constraints

Time limit: 11 second, Memory limit: 10241024 KiB.