-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask200.py
More file actions
13 lines (10 loc) · 839 Bytes
/
task200.py
File metadata and controls
13 lines (10 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# best: 84(Code Golf International, jailctf merger, ox jam) / others: 88(FuunAgent), 89(4atj sisyphus luke Seek mukundan), 89(HIMAGINE THE FUTURE.), 90(ALE-Agent), 91(jacekwl Potatoman nauti)
# ======================================= 84 =======================================
# p=lambda g:[([0]*g[9].index(c:=max(g[9]))+[c,0,c,5,c,0][(i<1)*2:][:4-2*(0<i<9)]*9)[:10]for i in range(10)]
# p=lambda g:[([0]*g[9].index(c:=max(g[9]))+[c,5,c,0,c,0,c,5][((i>0)+(i>8))*2:][:4]*9)[:10]for i in range(10)]
# p=lambda g,R=range(10):[([0]*g[9].index(c:=max(g[9]))+[[c,((i<j%4<2)+(i==j%4*3>8))*5][j%2] for j in R])[:10]for i in R]
# p=lambda g:[([0]*g[9].index(c:=max(g[9]))+[c,(i<1)*5,c,(i>8)*5]*9)[:10]for i in range(10)]
p=lambda g:[([0]*g[9].index(c:=max(g[9]))+[c,0**i*5,c,(i>8)*5]*9)[:10]for i in range(10)]
# i==0 2:6
# 0<i<9 0:2
# i==9 0:4