This website works better with JavaScript.
Explore
Help
Sign In
apo
/
AoC2020
Watch
1
Star
0
Fork
You've already forked AoC2020
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
master
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'master'
${ noResults }
AoC2020
/
02-1-1.py
2 lines
100 B
Raw
Permalink
Blame
History
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
View Git Blame
Copy Permalink