···121213131414# Read problem input
1515-grid = []
1615asteroids = set()
17161817for y, line in enumerate(fileinput.input()):
1918 for x, c in enumerate(line.strip()):
2019 if c == '#':
2120 asteroids.add((x, y))
2222- grid.append([c == '#' for c in line.strip()])
23212424-width = len(grid[0])
2525-height = len(grid)
26222723# Part 1
2824detections = {