Initial release
This commit is contained in:
14
Insaisissable matrice.py
Normal file
14
Insaisissable matrice.py
Normal file
@@ -0,0 +1,14 @@
|
||||
M=[[17, 3, 4, 14, 5, 17], [8, 16, 3, 17, 14, 12], [13, 5, 15, 4, 16, 3], [14, 7, 3, 16, 3, 2], [6, 1, 16, 10, 5, 13], [11, 1, 9, 11, 18, 8]]
|
||||
|
||||
input = 39
|
||||
|
||||
for iter in range(input):
|
||||
for i in range(len(M)):
|
||||
for j in range(len(M[i])):
|
||||
M[i][j] = (M[i][j]*9+3)%19
|
||||
|
||||
sum = 0
|
||||
for i in range(len(M)):
|
||||
for j in range(len(M[i])):
|
||||
sum += M[i][j]
|
||||
print(sum)
|
||||
Reference in New Issue
Block a user