Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | Frederik Bonfanti | Ruby | 127 | 54 | 73 | 7 days ago |
2 | Sharparam | Ruby | 133 | 57 | 76 | 19 days ago |
3 | Michael Böiers | Kotlin | 173 | 73 | 100 | 10 days ago |
4 | CornerMercury | Python | 184 | 76 | 108 | 14 days ago |
5 | dbasden | Python | 193 | 81 | 112 | 18 days ago |
import
sys
print
(
sum
(
(
lambda
deltas
:
all
(
-
3
<=
n
<=
-
1
for
n
in
deltas
)
or
all
(
1
<=
n
<=
3
for
n
in
deltas
)
)
(
[
int
(
a
)
-
int
(
b
)
for
a
,
b
in
zip
(
ls
,
ls
[
1
:
]
)
]
)
for
ls
in
map
(
str
.
split
,
sys
.
stdin
)
)
)