Skip to content

Commit 3cf2b5a

Browse files
committed
46
1 parent 1e4c4b1 commit 3cf2b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base_keymoon/task046.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# ================================================================================ 168 =================================================================================
33
# f p(g):a=[*zip(*g)];o=2;return[*zip(*[[[v,sum({*S,*s,*t}-{5})][v==5]for v in([0,0,*s]*2)[o:o+3]]for s,S,t in zip(a,[[]]+a,a[1:]+[[5]])if any(s)or(o:=t.index(5)+o-[*S,5].index(5))*0])]
44
# f p(g):a=[*zip(*g)];o=2;return[*zip(*[[[v,u][v==5]for v in[0,0,*s,0,0][o:o+3]]for s,S,t in zip(a,[()]+a,a[1:]+[(5,)])if any(s)and(u:=sum({*S+s+t}-{5}))or(o:=t.index(5)+o-[*S,5].index(5))*0])]
5-
def p(g):a=[*zip(*g)];o=2;return[*zip(*[[[v,sum({*S+s,*t}-{5})][v==5]for v in[0,0,*s,0,0][o:o+3]]for s,S,t in zip(a,[()]+a,a[1:]+[[5]])if any(s)or(o:=t.index(5)+o-[*S,5].index(5))*0])]
5+
# Zdef p(g):a=[*zip(*g)];o=2;return[*zip(*[[[v,sum({*S+s,*t}-{5})][v==5]for v in[0,0,*s,0,0][o:o+3]]for s,S,t in zip(a,[()]+a,a[1:]+[[5]])if any(s)or(o:=t.index(5)+o-[*S,5].index(5))*0])]
6+
def p(g):*a,=zip(*g);o=2;return[*zip(*[[[v,sum({*S+s,*t})-5][v==5]for v in[0,0,*s,0,0][o:o+3]]for s,S,t in zip(a,[()]+a,a[1:]+[[5]])if any(s)or(o:=t.index(5)+o-[*S,5].index(5))*0])]
67

78
# 棒みたいなのないかと思ったがある 無念
89

0 commit comments

Comments
 (0)