Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | CornerMercury | Python | 188 | 85 | 103 | 41 days ago |
2 | dbasden | Python | 222 | 102 | 120 | 41 days ago |
3 | Michael Böiers | Kotlin | 253 | 119 | 134 | 37 days ago |
4 | Mechazawa | JavaScript | 268 | 122 | 146 | 37 days ago |
fun
main
(
)
=
generateSequence
(
::
readLine
)
.
map
{
it
.
split
(
"
"
,
"
:
"
)
.
map
(
String
::
toLong
)
}
.
run
{
println
(
filter
{
fun
List
<
Long
>
.
check
(
x
:
Long
)
:
Boolean
=
if
(
isEmpty
(
)
)
x
==
it
[
0
]
else
first
(
)
.
let
{
sequenceOf
(
x
+
it
,
x
*
it
,
"
$
x
$
i
t
"
.
toLong
(
)
)
.
any
{
drop
(
1
)
.
check
(
it
)
}
}
it
.
drop
(
1
)
.
check
(
0
)
}
.
sumOf
{
it
.
first
(
)
}
)
}