-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask084.py
More file actions
18 lines (18 loc) · 910 Bytes
/
task084.py
File metadata and controls
18 lines (18 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# best: 62(jacekw Potatoman nauti natte, Code Golf International, 4atj sisyphus luke Seek mukundan, lv1.dev, LogicLynx, FuunAgent, natte, import itertools, jailctf merger, ox jam, 2F, biz, intgrah jimboko awu macaque sammyuri) / others: 63(jonas ryno kg583 kabutack), 63(jacekwl Potatoman nauti), 63(ï¾ï½²ï½½ï½¹ï¾ï½»ï¾ï¾ï¾II), 63(JRKX), 63(ALE-Agent)
# 79
# p=lambda g,i=0:[[1for r[-i],g[-1][i]in[[2,4]]]for r in g[:-1]if(i:=i+1)]and g
# 64
# def p(g,i=1):
# *a,b=g
# for r in a:r[-i]=2;b[-i]=4;i+=1
# return g
# 64
# def p(g,i=1):
# for r in g[:-1]:r[-i]=2;g[-1][i]=4;i+=1
# return g
# lambda g,i=1:exec("g[i-1][-i]=2;g[-1][i]=4;i+=1;"*(len(g)-1),locals())or g 76
# lambda g:exec("i=1\nfor r in g[:-1]:r[-i]=2;g[-1][i]=4;i+=1",{"g":g})or g 75
# ============================ 62 ============================
def p(g,i=1):
for r in g[:-1]:r[-i]=2;g[-1][i]=4;i+=1
return g