mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-09 11:30:38 +00:00
first commit
This commit is contained in:
27
magic_square/td_carre_magique.py
Normal file
27
magic_square/td_carre_magique.py
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
carre1=[[4, 9, 2],\
|
||||
[3, 5, 7],\
|
||||
[8, 1, 6]]
|
||||
carre2=[[16, 9, 14],\
|
||||
[11, 13, 15],\
|
||||
[12, 17, 10]]
|
||||
carre3=[[1, 2, 3],\
|
||||
[4, 5, 6],\
|
||||
[7, 8, 9]]
|
||||
carre4=[[16, 3, 2, 13],\
|
||||
[5, 10, 11, 8],\
|
||||
[9, 6, 7, 12],\
|
||||
[4, 15, 14, 1]]
|
||||
carre5=[[1, 14, 14, 4],\
|
||||
[11, 7, 6, 9],\
|
||||
[8, 10, 10, 5],\
|
||||
[13, 2, 3, 15]]
|
||||
Reference in New Issue
Block a user