Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | LiquidFun | Python | 146 | 88 | 58 | 10 months ago |
2 | anonymous | Kotlin | 227 | 123 | 104 | 11 months ago |
3 | Mustafa Furkan Kaptan | Python | 313 | 170 | 143 | 11 months ago |
4 | Valentin Slawicek | Kotlin | 404 | 221 | 183 | 11 months ago |
import
re
t
,
i
=
0
,
0
try
:
while
l
:=
input
(
)
:
s
,
v
=
l
[
l
.
index
(
"
:
"
)
:
]
.
split
(
"
;
"
)
,
True
for
w
in
s
:
f
=
lambda
c
:
int
(
re
.
findall
(
f
"
(
\
d
+
)
{
c
}
"
,
w
)
[
0
]
)
r
=
f
(
"
r
e
d
"
)
<
13
if
"
d
"
in
w
else
1
g
=
f
(
"
g
r
e
e
n
"
)
<
14
if
"
n
"
in
w
else
1
b
=
f
(
"
b
l
u
e
"
)
<
15
if
"
b
"
in
w
else
1
v
&=
all
(
(
r
,
g
,
b
)
)
if
v
:
t
+=
i
+
1
i
+=
1
except
:
print
(
t
)