вторник, 26 ноября 2024 г.

s=0
for a1 in range(1,9):
   
for a2 in range(9):
       
for a3 in range(9):
           
for a4 in range(9):
               
for a5 in range(9):
                   
for a6 in range(9):
                       
for a7 in range(9):
                            st=
str(a1)+str(a2)+str(a3)+str(a4)+str(a5)+str(a6)+str(a7)
                           
if a1 % 2 == 0 and a7 % 3 != 0 and st.count("6")>=1:
                                s=s+
1
                               
print(st)
print(s)

 

for i in range(101,110):
a="5"*i
while ("555" in a) or ("11" in a) or ("2" in a):
if "555" in a:
a=a.replace("555","1",1)
if "11" in a:
a=a.replace("11", "25",1)
if "2" in a:
a=a.replace("2", "5",1)
if a=="15":
print(i)

for x in range(2031):
y=7**170+7**100-x
st=""
while y!=0:
st=st+str(y%7)
y=y//7
st=st[::-1]
if st.count("0")==71:
print(x)


def F(n):
if n==1:
return 1
if n>1:
return 2*n*F(n-1)
print(F(1000))

for a in range(0,50000):
a_fl=True
for x in range(0,50000):
if (((x&32765!=0) or (x&22635!=0))<=(x&a>0))==False:
a_fl=False
break
if a_fl==True:
print(a)

Комментариев нет:

Отправить комментарий