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 |
i
=
require
(
'
f
s
'
)
.
readFileSync
(
0
,
'
u
t
f
8
'
)
console
.
log
(
i
.
split
`
\n
`
.
reduce
(
(
a
,
l
)
=>
{
o
=
0
;
[
t
,
...
p
]
=
l
.
split
(
/
:?
/
)
.
map
(
Number
)
;
for
(
i
=
0
;
i
<
4
**
p
.
length
;
i
++
)
if
(
p
.
reduce
(
(
a
,
p
,
k
)
=>
i
&
1
<<
k
*
2
?
a
+
p
:
i
&
1
<<
k
*
2
+
1
?
a
*
p
:
+
(
'
'
+
a
+
p
)
,
0
)
==
t
)
o
=
t
;
return
a
+
o
}
,
0
)
)