zhukov000

08-2

Jun 24th, 2021
526
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from itertools import product
  2.  
  3. i = 0
  4. for t in product( sorted("ГЕПАРД"), repeat=3 ):
  5.   i += 1
  6.   st = "".join(t)
  7.   if st[0] == "Д":
  8.     print(i, st)
  9.     break
  10.  
RAW Paste Data