Advertisement
Korobka887

шурумбурум

Feb 5th, 2022
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. from itertools import permutations
  2.  
  3. arr = list(map(str, permutations('ШУРУМБУРУМ')))
  4.  
  5. count = 0
  6. for i in arr:
  7.     count += 1 if not 'УУ' in i else 0
  8.  
  9. print(count)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement