AtCoder Regular Contest 105
翻译中…
Problem Statement
翻译中…
Snuke has four cookies with deliciousness $A$, $B$, $C$, and $D$. 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.
$1 \leq A,B,C,D \leq 10^{8}$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B C D
翻译中…
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.
翻译中…
样例
Input #1
1 3 2 4
Output #1
Yes
- If he eats the cookies with deliciousness $1$ and $4$, the sum of the deliciousness of the eaten cookies will be equal to that of the remaining cookies.
Input #2
1 2 4 8
Output #2
No
- Whatever choice he makes, the sum of the deliciousness of the eaten cookies will never be equal to that of the remaining cookies.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。