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 |
fun
main
(
)
=
println
(
generateSequence
(
::
readLine
)
.
count
{
it
.
split
(
"
"
)
.
map
(
String
::
toInt
)
.
run
{
if
(
first
(
)
<
last
(
)
)
this
else
reversed
(
)
}
.
windowed
(
2
)
.
all
{
it
[
1
]
-
it
[
0
]
in
1
..
3
}
}
)