-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask126.py
More file actions
9 lines (9 loc) · 813 Bytes
/
task126.py
File metadata and controls
9 lines (9 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
# best: 54(ï¾ï½²ï½½ï½¹ï¾ï½»ï¾ï¾ï¾II, Code Golf International, lv1.dev, LogicLynx, ALE-Agent, santa2024, FuunAgent, MasukenSamba, jailctf merger, ox jam) / others: 56(4atj sisyphus luke Seek mukundan), 56(HETHAT), 56(intgrah jimboko awu macaque sammyuri), 57(Team JYCDT), 57(ShadowPrompt Labs)
# lambda g:g[:-1]+[[4-4*(sum(r)<1or sum(r)/max(r)>1) for r in zip(*g)]]
# lambda g:g[:-1]+[[4*(len(r)-r.count(0)&1)for r in zip(*g)]]
# lambda g:g[:-1]+[[len(r)-r.count(0)<<2&4for r in zip(*g)]]
# lambda g:g[:-1]+[[4*(r.count(max(r))<2)for r in zip(*g)]]
# lambda g:g[:-1]+[[4*(sum(r)-2*max(r)<0)for r in zip(*g)]]
# lambda g:g[:-1]+[[4*(sum(r)==max(r)>0)for r in zip(*g)]]
# ======================== 54 ========================
p=lambda g:g[:-1]+[[4*(sum(r)==max(r)>0)for r in zip(*g)]]