mirror of
https://github.com/thib8956/advent-of-code.git
synced 2025-08-24 00:11:57 +00:00
14 lines
228 B
Python
14 lines
228 B
Python
def dist(a, b):
|
|
"manhattan distance"
|
|
return abs(a.x - b.x) + abs(a.y - b.y)
|
|
|
|
def main(inp):
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import fileinput
|
|
inp = list(l.rstrip() for l in fileinput.input())
|
|
main(inp)
|
|
|