Untitled

 avatar
user_8840555
plain_text
a year ago
236 B
2
Indexable
Never
from itertools import *

c = 0
for i in product('0123456', repeat=4):
    s = ''.join(i)
    c += 1
    if s.count('5') > 1 or '12' in s or '21' in s or '32' in s or '23' in s or '52' in s or '25' in s:
        continue
print(c)