#7386. [UOI 2025 II Stage] A+B=C

[UOI 2025 II Stage] A+B=C

[UOI 2025 II Stage] A+B=C

题目描述

Us the Cossack laid out matches on the table to form the expression (not necessarily correct) $a+b=c$, where $a,b,c$ are single-digit integers from $0$ to $9$.

:::align{center} :::

Vus the Cossack noticed this expression and wants to move the matches only\textbf{only} in the numbers aa and bb so that the expression becomes correct. That is, the +\tt{+}, =\tt{=} and cc cannot be changed.

Can Vus make the expression correct?

输入格式

The first line contains three integers $a$, $b$, and $c$ $(0\leq a,b,c\leq 9)$.

输出格式

Print $\tt{Yes}$, if it is possible to do so, or $\tt{No}$ otherwise.
4 8 2
Yes
5 0 5
Yes
1 5 8
No

提示

In the first example:

:::align{center} :::

In the second example, the equality holds immediately.

In the third example, it is impossible to rearrange the matches. 标签: P15086|2025|枚举|UOI(乌克兰)

来源

P15086|[UOI 2025 II Stage] A+B=C