-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolver.py
More file actions
40 lines (27 loc) · 766 Bytes
/
Copy pathsolver.py
File metadata and controls
40 lines (27 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python3
from pathlib import Path
currdir = Path(__file__).parent.absolute()
# paste the example from the problem here ↓
test_input = """
1
2
3
""".strip()
def part1(p_input):
solution = p_input
return solution
def part2(p_input):
solution = p_input
return solution
def main():
raw_input = open(currdir.joinpath("input.txt")).read()
raw_input = test_input # testing with the example - comment for real input
# simple treat input
p_input = [line for line in raw_input.splitlines()]
# p_input = [int(line) for line in raw_input.splitlines()]
print("Solution to Part 1:")
print(part1(p_input))
# print("Solution to Part 2:")
# print(part2(p_input))
if __name__ == "__main__":
main()