問題一覧 > 通常問題

No.795 Restrictions!!!!!!!!!!!!!!

レベル : / AI推定難易度 : 138 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 537
作問者 : asdf1 / テスター : ciel
お気に入りにしたユーザー ProblemId : 2511 / 自分の提出
問題文最終更新日: 2019-03-15 15:57:27
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 207 (順位表) の他の問題:

Problem Statement

$asdf1$ and $asdf2$ are fighting over the inheritance of $asdf3$.
The inheritance of $asdf3$ consists of $N$ $100$-yen coins and $M$ $10$-yen coins.

When all the coins are distributed between the two of them, determine whether $asdf1$ and $asdf2$ can inherit the same amount.

Input

$N$
$M$

Integers $N$ and $M$ are each given on one line.
$1≦N≦10^{100000}$
$M=10×N$ holds.

Output

Print "Yes" if they can inherit the same amount, and "No" otherwise. Print a newline at the end.

Sample

Sample 1
Input
1 
10
Output
Yes

Sample 2
Input
1362 
13620
Output
Yes

1362 is asdf1's rating on AtCoder as of October 23, 2018.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。