No.795 Restrictions!!!!!!!!!!!!!!
問題文最終更新日: 2019-03-15 15:57:27
English (AI translation)
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もしくは右上の雲マークをクリックしてアカウントを作成してください。
asdf1