Sum Checker
Time limit2sMemory limit1024 MB
Given three positive integers, the task is to check whether one of them equals the sum of the other two and print 1 or 0.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Three positive integers A, B, and C are given. Print 1 if one of these values is the sum of the other two, and 0 otherwise.
Input
The input is given in the following format.
A
B
C
Output
Print 1 if one of the values is the sum of the other two, and 0 otherwise. Print nothing other than the result, including any prompt for input.
Constraints
1 ≦ A ≦ 100.1 ≦ B ≦ 100.1 ≦ C ≦ 100.- All input values are integers.