-
Notifications
You must be signed in to change notification settings - Fork 0
/
Solution_18a.py
146 lines (123 loc) · 2.3 KB
/
Solution_18a.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import numpy
#matrix = numpy.zeros(16)
matrix = [[0 for i in range(16)] for j in range(16)]
matrix[0][0] = 75
matrix[1][0] = 95
matrix[1][1] = 64
matrix[2][0] = 17
matrix[2][1] = 47
matrix[2][2] = 82
matrix[3][0] = 18
matrix[3][1] = 35
matrix[3][2] = 87
matrix[3][3] = 10
matrix[4][0] = 20
matrix[4][1] = 04
matrix[4][2] = 82
matrix[4][3] = 47
matrix[4][4] = 65
matrix[5][0] = 19
matrix[5][1] = 01
matrix[5][2] = 23
matrix[5][3] = 75
matrix[5][4] = 03
matrix[5][5] = 34
matrix[6][0] = 88
matrix[6][1] = 02
matrix[6][2] = 77
matrix[6][3] = 73
matrix[6][4] = 07
matrix[6][5] = 63
matrix[6][6] = 67
matrix[7][0] = 99
matrix[7][1] = 65
matrix[7][2] = 04
matrix[7][3] = 28
matrix[7][4] = 06
matrix[7][5] = 16
matrix[7][6] = 70
matrix[7][7] = 92
matrix[8][0] = 41
matrix[8][1] = 41
matrix[8][2] = 26
matrix[8][3] = 56
matrix[8][4] = 83
matrix[8][5] = 40
matrix[8][6] = 80
matrix[8][7] = 70
matrix[8][8] = 33
matrix[9][0] = 41
matrix[9][1] = 48
matrix[9][2] = 72
matrix[9][3] = 33
matrix[9][4] = 47
matrix[9][5] = 32
matrix[9][6] = 37
matrix[9][7] = 16
matrix[9][8] = 94
matrix[9][9] = 29
matrix[10][0] = 53
matrix[10][1] = 71
matrix[10][2] = 44
matrix[10][3] = 65
matrix[10][4] = 25
matrix[10][5] = 43
matrix[10][6] = 91
matrix[10][7] = 52
matrix[10][8] = 97
matrix[10][9] = 51
matrix[10][10] = 14
matrix[11][0] = 70
matrix[11][1] = 11
matrix[11][2] = 33
matrix[11][3] = 28
matrix[11][4] = 77
matrix[11][5] = 73
matrix[11][6] = 17
matrix[11][7] = 78
matrix[11][8] = 39
matrix[11][9] = 68
matrix[11][10] = 17
matrix[11][11] = 57
matrix[12][0] = 91
matrix[12][1] = 71
matrix[12][2] = 52
matrix[12][3] = 38
matrix[12][4] = 17
matrix[12][5] = 14
matrix[12][6] = 91
matrix[12][7] = 43
matrix[12][8] = 58
matrix[12][9] = 50
matrix[12][10] = 27
matrix[12][11] = 29
matrix[12][12] = 48
matrix[13][0] = 63
matrix[13][1] = 66
matrix[13][2] = 04
matrix[13][3] = 68
matrix[13][4] = 89
matrix[13][5] = 53
matrix[13][6] = 67
matrix[13][7] = 30
matrix[13][8] = 73
matrix[13][9] = 16
matrix[13][10] = 69
matrix[13][11] = 87
matrix[13][12] = 40
matrix[13][13] = 31
matrix[14][0] = 04
matrix[14][1] = 62
matrix[14][2] = 98
matrix[14][3] = 27
matrix[14][4] = 23
matrix[14][5] = 9
matrix[14][6] = 70
matrix[14][7] = 98
matrix[14][8] = 73
matrix[14][9] = 93
matrix[14][10] = 38
matrix[14][11] = 53
matrix[14][12] = 60
matrix[14][13] = 04
matrix[14][14] = 23