We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da146d2 commit d5bf4f6Copy full SHA for d5bf4f6
2020/1a_v2.py
@@ -2,7 +2,8 @@
2
3
4
def main():
5
- print(sum(load_ints('1.txt')))
+ lines = load_ints('1.txt')
6
+ print(sum(i*j for i in lines for j in lines if i + j == 2020))
7
8
9
main()
0 commit comments