logo AlgoBeat OnlineJudge
登录 注册

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

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Us the Cossack laid out matches on the table to form the expression (not necessarily correct) , where are single-digit integers from to .

:::align{center} :::

Vus the Cossack noticed this expression and wants to move the matches in the numbers and so that the expression becomes correct. That is, the , and cannot be changed.

Can Vus make the expression correct?

输入格式

The first line contains three integers , , and .

输出格式

Print , if it is possible to do so, or otherwise.

样例

样例输入 1

4 8 2

样例输出 1

Yes

样例输入 2

5 0 5

样例输出 2

Yes

样例输入 3

1 5 8

样例输出 3

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.