Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
---|---|---|---|---|---|---|
1 | Visible-Bag4062 | Python | 180 | 57 | 123 | 11 months ago |
2 | LiquidFun | Python | 188 | 71 | 117 | 10 months ago |
3 | Mustafa Furkan Kaptan | Python | 202 | 70 | 132 | 11 months ago |
4 | Valentin Slawicek | Kotlin | 523 | 233 | 290 | 11 months ago |
from
collections
import
deque
t
=
0
cards
=
[
]
try
:
while
l
:=
input
(
)
:
winning
,
our
=
l
.
split
(
"
|
"
)
t
+=
1
cards
.
append
(
len
(
set
(
our
.
split
(
)
)
.
intersection
(
set
(
winning
[
9
:
]
.
split
(
)
)
)
)
)
except
:
q
=
deque
(
)
for
i
,
c
in
enumerate
(
cards
)
:
q
+=
range
(
i
+
1
,
i
+
1
+
c
)
while
q
:
t
+=
1
i
=
q
.
popleft
(
)
q
+=
range
(
i
+
1
,
i
+
1
+
cards
[
i
]
)
print
(
t
)