| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 57 | 29 | 28 | 59.574% |
Senya likes integers not containing two consecutive equal digits. You are given an integer $n$. Help Senya to find the smallest integer he likes, which is strictly greater than $n$.
Input contains integer $n$ (1ドル \le n \le 10^{18}$).
Print the smallest integer strictly greater than $n,ドル which doesn't contain any two consecutive equal digits.
98
101