Arksiana

Untitled

Jan 14th, 2021
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. year = input()
  2. year_as_int = int(year) + 1
  3. year = str(year_as_int)
  4.  
  5. while True:
  6.     symbols_count = len(year)
  7.     unique_counts = len(set(year))
  8.  
  9.     if symbols_count == unique_counts:
  10.         break
  11.     else:
  12.         year_as_int += 1
  13.         year = str(year_as_int)
  14. print(year)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment