Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | Abraham Linares | Ruby | 10033 | 33 | - | 17 days ago |
2 | Sharparam | Ruby | 10033 | 33 | - | 18 days ago |
3 | Frederik Bonfanti | Ruby | 10038 | 38 | - | 7 days ago |
4 | Mechazawa | JavaScript | 10057 | 57 | - | 16 days ago |
5 | CornerMercury | Python | 10058 | 58 | - | 14 days ago |
6 | dbasden | Python | 10058 | 58 | - | 18 days ago |
7 | ndren | Python | 10066 | 66 | - | 14 days ago |
8 | FSFabian Schedler | Kotlin | 10071 | 71 | - | 18 days ago |
9 | Filippo Orrù | Kotlin | 10072 | 72 | - | 17 days ago |
10 | Valentin Slawicek | Kotlin | 10073 | 73 | - | 17 days ago |
11 | Michael Böiers | Kotlin | 10096 | 96 | - | 2 days ago |
fun
main
(
)
=
println
(
generateSequence
(
::
readLine
)
.
joinToString
(
)
.
split
(
"
"
"
(
m
u
l
\
(
|
\
)
)
"
"
"
.
toRegex
(
)
)
.
mapNotNull
{
it
.
split
(
"
,
"
)
.
takeIf
{
it
.
size
==
2
}
}
.
mapNotNull
{
it
.
mapNotNull
(
String
::
toIntOrNull
)
.
takeIf
{
it
.
size
==
2
}
}
.
sumOf
{
it
[
0
]
*
it
[
1
]
}
)