oops forgot to add this
This commit is contained in:
parent
75e02dd3c6
commit
1952cc2d9d
20
05/05_oneliner.py
Normal file
20
05/05_oneliner.py
Normal 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")
|
||||
]
|
||||
)
|
||||
)
|
||||
)
|
Loading…
Reference in a new issue