#P10993. 【MX-J3-T0】 37
【MX-J3-T0】 37
Background
Original link: https://oier.team/problems/J3A。
Problem Description
Input a natural number , and determine whether all digits of are equal.
Input Format
The input contains one line with one natural number .
Output Format
If all digits of are equal, output Yes; otherwise output No.
6
Yes
33
No
Hint
Sample Explanation #1
, and its three digits are all , which meets the requirement.
Sample Explanation #2
, and some digits are not equal (for example, the thousands digit and the hundreds digit), so it does not meet the requirement.
Constraints
This problem has test points, points each.
It is guaranteed that .
Translated by ChatGPT 5