Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created December 10, 2017 02:01
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 whatalnk/21e097c86e1edf658e8385425e7cc866 to your computer and use it in GitHub Desktop.
Save whatalnk/21e097c86e1edf658e8385425e7cc866 to your computer and use it in GitHub Desktop.
AtCoder ABC #079
n = input()
if (n[0] == n[1] == n[2]) or (n[1] == n[2] == n[3]):
print("Yes")
else:
print("No")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment