Untitled
user_8840555
plain_text
2 years ago
271 B
5
Indexable
from itertools import * c = 0 for i in product('0123456', repeat=4): s = ''.join(i) if s.count('5') == 1 and '12' not in s and '21' not in s and '32' not in s and '23' not in s and '52' not in s and '25' not in s and s[0] != '0': c += 1 print(c)
Editor is loading...