Created
August 6, 2021 02:13
-
-
Save monchy-monchy/33da9c06335b8d41e156528c7c91efcc to your computer and use it in GitHub Desktop.
ABC111 B - AtCoder Beginner Contest 111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N = int(input()) | |
c = 0 | |
while N <= 999: | |
n = str(N) | |
if n[0] == n[1] == n[2]: | |
c = N | |
check = False | |
break | |
N += 1 | |
print(N) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment