Browse Source

Minor changes

master
Noëlle Anthony 5 years ago
parent
commit
57c242aaed
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 1
    1
      2019/03b.py

+ 1
- 0
.gitignore View File

2019/03in.txt 2019/03in.txt
2019/jessin.txt

+ 1
- 1
2019/03b.py View File

for k,v in grid.items(): for k,v in grid.items():
if v[0] != 0 and v[1] != 0 and k != (0,0): if v[0] != 0 and v[1] != 0 and k != (0,0):
dists.append(abs(v[0]) + abs(v[1])) dists.append(abs(v[0]) + abs(v[1]))
print(dists)
print(sorted(dists))
print(min(dists)) print(min(dists))
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save