-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathl2.py
More file actions
30 lines (24 loc) · 692 Bytes
/
l2.py
File metadata and controls
30 lines (24 loc) · 692 Bytes
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
sms = 132
m_blocks = 66
n_blocks = 72
all_blocks = set()
for m in range(m_blocks):
for n in range(n_blocks):
all_blocks.add((m, n))
my_blocks = set()
for sm in range(0, 132):
for bid in range(sm, m_blocks * n_blocks, sms):
"""
m = sm // 2 #bid % m_blocks
n = bid // m_blocks + (sm % 2)
"""
m = (bid // 2) % m_blocks
n = (bid // 2) // m_blocks * 2 + bid % 2
print(f"{sm} {m} {n}")
my_blocks.add((m, n))
if (m, n) not in all_blocks:
print(f"egad: {m}, {n}")
for m in range(m_blocks):
for n in range(n_blocks):
if (m, n) not in my_blocks:
print(f"oh no: {m}, {n}")