Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | CornerMercury | Python | 194 | 97 | 97 | 41 days ago |
2 | dbasden | Python | 257 | 127 | 130 | 43 days ago |
3 | Szabolcs Dombi | Python | 263 | 105 | 158 | 43 days ago |
4 | Mechazawa | JavaScript | 10121 | 121 | - | 43 days ago |
import
sys
,
re
r
,
d
=
sys
.
stdin
.
read
(
)
.
split
(
'
\n
\n
'
)
p
=
re
.
sub
(
r
'
(
.
.
)
\
|
(
.
.
)
\
n
'
,
r
'
\
2
.
+
\
1
|
'
,
r
+
'
\n
'
)
c
=
0
for
l
in
d
.
splitlines
(
)
:
if
re
.
search
(
p
,
l
)
:
while
v
:=
re
.
search
(
p
,
l
)
:
a
,
b
=
v
.
span
(
)
l
=
l
[
:
a
]
+
l
[
b
-
2
:
]
+
'
,
'
+
l
[
a
:
b
-
3
]
c
+=
int
(
l
.
split
(
'
,
'
)
[
len
(
l
)
//
6
]
)
print
(
c
)