atcoder#ARC105A. [ARC105A] Fourtune Cookies
[ARC105A] Fourtune Cookies
Score : points
Problem Statement
Snuke has four cookies with deliciousness , , , and . He will choose one or more from those cookies and eat them. Is it possible that the sum of the deliciousness of the eaten cookies is equal to that of the remaining cookies?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If it is possible that the sum of the deliciousness of the eaten cookies is equal to that of the remaining cookies, print Yes
; otherwise, print No
.
1 3 2 4
Yes
- If he eats the cookies with deliciousness and , the sum of the deliciousness of the eaten cookies will be equal to that of the remaining cookies.
1 2 4 8
No
- Whatever choice he makes, the sum of the deliciousness of the eaten cookies will never be equal to that of the remaining cookies.