-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask315.py
More file actions
11 lines (11 loc) · 791 Bytes
/
task315.py
File metadata and controls
11 lines (11 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
# best: 63(jacekw Potatoman nauti natte, Code Golf International, 4atj sisyphus luke Seek mukundan, lv1.dev, HETHAT, natte, import itertools, jailctf merger, ox jam, intgrah jimboko awu macaque sammyuri) / others: 64(ï¾ï½²ï½½ï½¹ï¾ï½»ï¾ï¾ï¾II), 64(JRKX), 64(Team JYCDT), 64(ShadowPrompt Labs), 64(LogicLynx)
# ============================= 63 ============================
# p=lambda g,R=range(9):[[(g[i//3][j//3]>1)*g[i%3][j%3]for j in R]for i in R]
# p=lambda g:[sum([[[0,0,0],s][v>1]for v in t],[])for t in g for s in g]
# lambda g:[[x//2*y for x in t for y in s]for t in g for s in g]
p=lambda g:[[y*(x>1)for x in t for y in s]for t in g for s in g]
# {
# (0,0):0, (0,1):0, (0,2):0,
# (1,0):0, (1,1):0, (1,2):0,
# (2,0):0, (2,1):1, (2,2):2
# }[(x,y)]