dxnge

1

Oct 29th, 2021 (edited)
80
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 product
  2. h = list(map(''.join, product('012345', repeat=5)))
  3. print(sum(all((sum(map(int, b)) % 2 != 0) for b in zip(a, a[1::])) for a in h if a[0] != '0'))
  4.  
Advertisement
Add Comment
Please, Sign In to add comment