Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- i = 0
- for t in product( sorted("ГЕПАРД"), repeat=3 ):
- i += 1
- st = "".join(t)
- if st[0] == "Д":
- print(i, st)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement