Initial release

This commit is contained in:
Francois JUMELLE
2021-05-03 22:32:40 +02:00
commit 20526d93c8
928 changed files with 452368 additions and 0 deletions

18
Suite du Lézard.py Normal file
View File

@@ -0,0 +1,18 @@
input = 1333
suite = "010001010010000101000011010000001110010000000001110101010000000000001011"
table = ["", ]
for i in range(len(suite)):
table.append(suite[i])
table += (None,)*input
for i in range(len(table)):
if table[i] == None:
if i%3 == 0:
table[i] = table[i//3]
else:
table[i] = table[i-i//3]
res = "".join(table[input:input+16])
print(int(res, 2))