Compare commits

..

No commits in common. "1c8057dfdedba7f512e8a63df32c833072eeeafd" and "43deb91a60015d59043916a31b58b15e58517ed1" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
l=set(map(int,open(0)))
print([a*b for a in l if(b:=2020-a)in l])
print([a*b for a in l if (b:=2020-a) in l])

View File

@ -1,4 +1,4 @@
def f(d,e,f):
a,b=*map(int,d.split('-'))
return (f[a-1]==e[0])^(f[b-1]==e[0])
print(sum(f(*x.split())for x in open(0)))
print(sum(f(*x.split()) for x in open(0)))