At least two equal digits
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Five-digit number is given. Determine whether the number contains at least two identical digits.
Input
One five-digit number.
Output
Print "YES" if the number has at least two identical digits. Print "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 8K
Acceptance rate 56%