mirror of
https://github.com/thib8956/advent-of-code.git
synced 2025-08-24 00:11:57 +00:00
2018 day5
This commit is contained in:
13
2018/day6/day6.py
Normal file
13
2018/day6/day6.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
|
Reference in New Issue
Block a user