Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | Ruby | 120 | 60 | 60 | 8 months ago | |
2 | Python | 134 | 64 | 70 | 8 months ago | |
3 | FSFabian Schedler | Kotlin | 158 | 77 | 81 | 9 months ago |
last
=
0
for
line
in
open
(
0
)
:
diff
=
list
(
map
(
int
,
line
.
split
(
)
)
)
[
:
:
-
1
]
for
_
in
diff
:
last
+=
diff
[
-
1
]
diff
=
[
b
-
a
for
a
,
b
in
zip
(
diff
,
diff
[
1
:
]
)
]
print
(
last
)