AoC2020/03-2-1.py

4 lines
113 B
Python
Raw Normal View History

2020-12-04 11:37:31 +00:00
d=list(open(0))
2020-12-04 19:29:19 +00:00
f=lambda y,x=1:sum(d[i][i*y//x%31]<'.'for i in range(0,323,x))
2020-12-03 21:59:07 +00:00
print(f(1)*f(3)*f(5)*f(7)*f(1,2))