from itertools import combinations_with_replacement as comb
def count(arr,num):
res=0
for i in arr:
if (int(i)==num): res+=1
return res
s=''
for i in range(10): s+=str(i)
print(len(list(filter(lambda x: int(x[0])%2==1 and count(x,7)==2 and count(x,2)==0 and count(x,0)==0,list(comb(s,5))))))
Будет выведено 63
1)256 в корне= 16 бит это мощьность алфавита или 2 байта.
2)260×2= 520 байт
Все 4 задачи в файле "PAS" которые находятся под этим сообщением. Будут вопросы, задавайте в ЛС