No.653 E869120 and Lucky Numbers
問題文最終更新日: 2026-06-26 04:07:34
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 184
(順位表)
の他の問題:
Problem Statement
6 and 7 are good numbers. Numbers that use only these digits, such as "66", "767", "7767", and "6667", are lucky numbers. (0 is not a lucky number.)
Now, E869120 wants to make p by adding 2 lucky numbers. Determine whether this is possible, answering "Yes" or "No".
Input
p
- $1≦p≦10^{20000}$
Output
Print "Yes" if it can be made, and "No" if it cannot. Print a newline at the end.
Sample
Sample 1
Input
123
Output
No
Sample 2
Input
142
Output
Yes
66 + 76 = 142.
Sample 3
Input
1552
Output
Yes
776 + 776 = 1552.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
e869120
はむこ