Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | LiquidFun | Python | 146 | 88 | 58 | 13 months ago |
2 | anonymous | Kotlin | 227 | 123 | 104 | 13 months ago |
3 | Mustafa Furkan Kaptan | Python | 313 | 170 | 143 | 13 months ago |
4 | Valentin Slawicek | Kotlin | 404 | 221 | 183 | 13 months ago |
5 | CornerMercury | Python | 10059 | - | 59 | 52 days ago |
fun
main
(
)
=
println
(
generateSequence
(
::
readLine
)
.
withIndex
(
)
.
map
{
(
i
,
s
)
->
if
(
"
"
"
\
d
{
3
}
|
(
[
2
-
9
]
.
|
1
[
3
-
9
]
)
r
e
d
|
(
[
2
-
9
]
.
|
1
[
4
-
9
]
)
g
r
e
e
n
|
(
[
2
-
9
]
.
|
1
[
5
-
9
]
)
b
l
u
e
"
"
"
.
toRegex
(
)
.
containsMatchIn
(
s
)
)
0
else
i
+
1
}
.
sum
(
)
)