Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monchy-monchy/33da9c06335b8d41e156528c7c91efcc to your computer and use it in GitHub Desktop.
Save monchy-monchy/33da9c06335b8d41e156528c7c91efcc to your computer and use it in GitHub Desktop.
ABC111 B - AtCoder Beginner Contest 111
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