advent-of-code/2022/python/_sample.py

28 lines
450 B
Python
Raw Permalink Normal View History

2022-12-15 06:17:19 +00:00
import matrix
2022-12-09 16:43:00 +00:00
import shared
2022-12-15 06:17:19 +00:00
import itertools
import functools
2022-12-09 16:43:00 +00:00
2022-12-17 03:07:17 +00:00
# @shared.profile
2022-12-15 06:17:19 +00:00
def part1(rows):
pass
2022-12-12 07:41:14 +00:00
2022-12-09 16:43:00 +00:00
2022-12-17 03:07:17 +00:00
# @shared.profile
2022-12-15 06:17:19 +00:00
def part2(rows):
pass
2022-12-17 03:07:17 +00:00
2022-12-09 16:43:00 +00:00
def main():
2022-12-15 06:17:19 +00:00
rows = [row for row in shared.load_rows(15)]
with shared.elapsed_timer() as elapsed:
part1(rows)
print("🕒", elapsed())
with shared.elapsed_timer() as elapsed:
part2(rows)
print("🕒", elapsed())
2022-12-09 16:43:00 +00:00
if __name__ == "__main__":
main()