AoC2020/03-2-1.py
2020-12-03 23:48:33 +01:00

4 lines
131 B
Python

d=list(open("/dev/stdin"))
def f(y,x=1):return 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))