RES4O5PSTRT5IS357MFLXG4YHZK4WZI2MK6JOFZW4BYFYTBKBD4AC
}
}
}
return ret
}
func genGrid(lines Lines) map[gridPoint]int {
var ret = genGridHV(lines)
for _, line := range lines {
diffx := line.x2 - line.x1
diffy := line.y2 - line.y1
if abs(diffx) == abs(diffy) {
for x, y, i := line.x1, line.y1, 0; i <= abs(diffx); x, y, i = x+diffx/abs(diffx), y+diffy/abs(diffy), i+1 {
ret[gridPoint{x, y}]++