Untitled
unknown
plain_text
2 years ago
286 B
10
Indexable
from itertools import*
cnt = 0
for i in product('0123456',repeat= 4):
i = "".join(i)
if i.count("5") == 1 and ('02' not in i) and ('20'not in i) and ('24'not in i) and ('42'not in i) and \
'62' not in i and '26'not in i:
cnt += 1
print(cnt,i)Editor is loading...