oops forgot to add this

This commit is contained in:
a 2020-12-06 22:39:00 -06:00
parent 75e02dd3c6
commit 1952cc2d9d

20
05/05_oneliner.py Normal file
View file

@ -0,0 +1,20 @@
print(
(
lambda l: (
max(l),
*(
a+1
for a, b in zip(l[:-1], l[1:])
if a == b-2
)
)
)
(
sorted(
[
int(line.translate(str.maketrans("FBLR","0101")),2)
for line in open("input.txt")
]
)
)
)