This website requires JavaScript.
Explore
Help
Sign In
apo
/
AoC2020
Watch
1
Star
0
Fork
0
You've already forked AoC2020
Code
Issues
Pull Requests
Releases
Wiki
Activity
a290f1f068
AoC2020
/
02-1-1.py
2 lines
100 B
Python
Raw
Normal View
History
Unescape
Escape
Replace /dev/stdin with 0
2020-12-04 11:37:31 +00:00
print
(
sum
(
int
(
(
s
:=
a
.
split
(
'
-
'
)
)
[
0
]
)
<
=
c
.
count
(
b
[
0
]
)
<
=
int
(
s
[
1
]
)
for
a
,
b
,
c
in
map
(
str
.
split
,
open
(
0
)
)
)
)
Reference in New Issue
Copy Permalink