AoC2020/03-1-1.py

2 lines
81 B
Python

print(sum('#'==open('/dev/stdin').readlines()[i][(i*3)%31] for i in range(323)))