-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask037.py
More file actions
7 lines (7 loc) · 820 Bytes
/
Copy pathtask037.py
File metadata and controls
7 lines (7 loc) · 820 Bytes
1
2
3
4
5
6
7
# best: 101(Code Golf International) / others: 104(santa2024), 104(ox jam), 105(4atj sisyphus luke Seek mukundan), 105(jailctf merger), 109(LogicLynx)
# =============================================== 101 ===============================================
# port re;p=lambda g,c=-63:g*c or eval(re.sub("(?<=([^0]).{34})0(?=(.{35})*.{34}\\1)",r"\1",str(p(g,c+1))))[::-1]
# port re;p=lambda g,c=-9:g*c or eval(re.sub(r"(?<=([^0]).{34})(?=0(.{35})*(?<=\1))",r"\1+",str(p(g,c+1))))[::-1]
# port re;p=lambda g,c=-25:g*c or eval(re.sub(r"(([^0]).{34})0(?=(.{35})+(?<=\2))",r"\1\2",str(p(g,c+1))))[::-1]
# port re;p=lambda g,c=-45:g*c or eval(re.sub(r"(([^0]).{34})0((.{35})+(?<=\2))",r"\1\2\3",str(p(g,c+1))))[::-1]
import re;p=lambda g,c=-25:g*c or eval(re.sub(r"(([^0]).{34})0(?=(.{35})+(?<=\2))",r"\1\2",str(p(g,c+1))))[::-1]