From 450342e67a596f4a2825319999f10743c5770796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 21 Dec 2019 07:50:22 +0100 Subject: Day 21 part 1 --- 19/py/d21.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '19') diff --git a/19/py/d21.py b/19/py/d21.py index 2e39563..3b2e123 100644 --- a/19/py/d21.py +++ b/19/py/d21.py @@ -1,3 +1,14 @@ +# program and idea for part 1: +# jump if any tile of the first three aren't ground and the fourth is ground +# J = (not A or not B or not C) and D +# (dm) <=> J = not (A and B and C) and D +# or A T +# and B T +# and C T +# not T J +# and D J +# walk + import intcode f = open("../input/21", "r").readlines() -- cgit v1.2.1