Shorten 3-2

This commit is contained in:
Lynn Ochs 2020-12-04 20:29:19 +01:00
parent 742dcbf573
commit 12d7b5c639

View File

@ -1,3 +1,3 @@
d=list(open(0))
def f(y,x=1):return sum(d[i][i*y//x%31]=='#' for i in range(0,323,x))
f=lambda y,x=1:sum(d[i][i*y//x%31]<'.'for i in range(0,323,x))
print(f(1)*f(3)*f(5)*f(7)*f(1,2))