#136. 三数关系判断

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

三数关系判断

Three Number Relationship Check

Background

Congcong is currently learning addition. He wonders, given three integers, if it's always possible to find two of them whose sum is exactly equal to the third one.

Problem Description

Given three integers a,b,ca, b, c, return true if it is possible to add two of the integers to get the third.

Input Format

The input consists of a single line containing three integers a,b,ca, b, c, separated by spaces.

a b ca \ b \ c

Output Format

Output true if the sum of any two integers equals the third integer; otherwise, output false.

true or false

Sample

1 2 3
true
3 1 2
true
3 2 2
false

Sample Explanation

Sample 1: 1+2=31 + 2 = 3. Sample 2: 1+2=31 + 2 = 3. Sample 3: 3+2=523 + 2 = 5 \neq 2, and 2+2=432 + 2 = 4 \neq 3.

Constraints

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