Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = int(input('Введите число N: '))
- N1 = set()
- N2 = set()
- while N > 0:
- elint = N % 10
- elSet = {elint}
- if elSet & N2 == set():
- N2.add(elint)
- else:
- N1.add(elint)
- N = N // 10
- print(N1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement