Advertisement
Spocoman

06. Next Happy Year

Jan 17th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. year = int(input()) + 1
  2.  
  3. while len(set(str(year))) != len(str(year)):
  4.     year += 1
  5.  
  6. print(year)
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement