From 8b6c82b0a20df5312e33b36701ce31490191df9f Mon Sep 17 00:00:00 2001 From: Tim Stallard Date: Sat, 5 Dec 2020 10:49:51 +0000 Subject: [PATCH] day 5 --- 05/1.py | 6 + 05/2.py | 6 + 05/input | 902 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 914 insertions(+) create mode 100644 05/1.py create mode 100644 05/2.py create mode 100644 05/input diff --git a/05/1.py b/05/1.py new file mode 100644 index 0000000..941ce82 --- /dev/null +++ b/05/1.py @@ -0,0 +1,6 @@ +from functools import reduce +from math import floor, ceil +shuffle = lambda l, h, s: reduce(lambda a, b: (a[0], floor((a[0]+a[1])/2)) if b in "FL" else (ceil((a[0]+a[1])/2), a[1]), s, (l, h))[0] +lines = [l for l in open("input", "r").read().split("\n") if l] +ids = [shuffle(0, 127, l[:7]) * 8 + shuffle(0, 7, l[7:]) for l in lines] +print(max(ids)) diff --git a/05/2.py b/05/2.py new file mode 100644 index 0000000..015bf22 --- /dev/null +++ b/05/2.py @@ -0,0 +1,6 @@ +from functools import reduce +from math import floor, ceil +shuffle = lambda l, h, s: reduce(lambda a, b: (a[0], floor((a[0]+a[1])/2)) if b in "FL" else (ceil((a[0]+a[1])/2), a[1]), s, (l, h))[0] +lines = [l for l in open("input", "r").read().split("\n") if l] +ids = sorted([shuffle(0, 127, l[:7]) * 8 + shuffle(0, 7, l[7:]) for l in lines]) +print([int((a+b)/2) for (a, b) in zip(ids, ids[1:]) if b - a == 2][0]) diff --git a/05/input b/05/input new file mode 100644 index 0000000..6582563 --- /dev/null +++ b/05/input @@ -0,0 +1,902 @@ +BBBFBFFRLL +FBBBBBFRRR +FBFFBBBRLR +FBBFBFBRLR +BBFBBFBLRL +BBFBFBBLLL +BBBBFFFRLL +FBBFFFBRRL +BFBFFBBRLL +BFFBFBBRLL +BBFFFBFRLR +FFBFBBBRRL +BBFFBFFLRL +FFBBBFFRLR +BFFFBFFRRL +BBFBFFFRRL +FBBFFFFRLL +FBBFFFBLRL +FB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