diff --git a/05/input b/05/input new file mode 100644 index 0000000..0c4520e --- /dev/null +++ b/05/input @@ -0,0 +1,975 @@ +BBFFBFBRLL +FFFFBFBRLR +BFFBBFBRLR +BFBBBFBLLL +FFBBFBBLRR +BFBFFFFRRL +BBBBFFFRLR +BFFFBBFRLL +FFFFBFBRRL +BFBBFFFRRL +BBFBBBFRLL +FBFFBFFRLL +FBBBBBBLRL +FFFBBFBLRL +FFBBFFFLLR +FBBFFFBLLL +FFBFBBBRRL +FBFBBBFRRL +FFBBBFFLRL +BFBBBBFRLR +FBBBFFBRRL +FBBFBFFRLL +FBFBFBBLLL +BFBFFFFLRR +FFFBBFFLLL +FFFFBFFRLL +FBBBBFBRRR +FBBFBBBLRL +BBBBFFFLLL +FFFFBFBLLR +BFFFFBBRLL +BFFFFBBRLR +BFFFFFBRLL +BFFBBBFRRL +FBFFBBBLRR +BFBFFBFRRR +BBBBFFBLRR +FFFFFBBRLR +BFFFBBBRLR +BBFBFFBRRL +FBBFBFBLRR +BFBBFBFRLR +FFFFFBFRRR +BFFFFFBLRL +FFFBFBBLLR +BFFFBBBLRR +FFBFFBBRRL +FBBBBBBLLL +FBBBBFBLRL +BBFFFBFRRL +BBFFFBBRRL +FFBFBFBLRL +FFFFBBBRLR +FBBFFBFLRL +FBBBBFBRLR +BBFBFBBLRL +BBBBFFFLRR +BFBBFFBRLL +BFBBFBBRLR +FFFBBFBRRR +BFFBBBFRRR +BFBBFBBLRR +FBBFFBBLRL +FFFBFBBRRL +BFFFBFBRRR +FBBBFFBLRR +BBFFBBBLLR +BFFBBBBRLR +BBBBFBFRRR +BBBBFFFRRL +BBFFBBBRRL +FFBBBBBRRL +FFFFBBFRRL +BFFFFFBLLL +FFBFFBBLRL +FFFBBFFLRL +BFBFBFFLLR +FFFFBFFRRL +FBBBBFFRLR +FBBBBFBRRL +FBBBFBFLLR +FBBBBBBRRR +FBBFFFFRRL +FBFBFFFRLL +BBFFFBFRLL +BFFBFFFRLL +FFFFBFFLRL +FB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BFFFBBFLLR +BBFBBFFLLR +FBFFFFFLLR +FFFBBFFRLL +BBFBBFFRLL +FFFFBBBLLL +BFBFFBBRLR +FBBFBBBLLR +BFFBBBFLLR +BFFFFFFLRL +BFFBBBFLLL +BFBFFBFLLL +BBFBFFBLLL +FFBBBBFRLL +FBFFBFFLRR +BBBFFBBRRL +BFFBBFFRRR +BBBBFFFLLR +BFBBFFBRRR +FBFFFBFRLL +FFBBBFFRLL +FBBBBFBLRR +FFFBBFBLRR +FFBBFFFLRR +BBFBBBFLRR +FBFBFFBRLR +FBBFFBBLLR +BBFFBBBLRR +BBFBFFBLLR +FBBFFFBLRL +BFBFBFFLRL +FFFBFFFRLR +FBFBFFFLRL +BBBFFBFRLR +BBBFBBFLLL +FBFBFBBLLR +BFBFBFFLLL +FFBFFFBRRR +BFBFBFFRLR +FFFBBBBLRR +BBFBBFFLRL +FFBFFFFRRL +BFBFFBFLLR +FFBBBBFLLR +FBFBBBBRRR +FFBFFBFLRL +FBBBBBBRLL +BBFBFBBLLL +FBBFFBBRRL +FBBBBBBRRL diff --git a/05/part1 b/05/part1 new file mode 100755 index 0000000..d43f54c --- /dev/null +++ b/05/part1 @@ -0,0 +1,11 @@ +#!/usr/bin/python3 + +max = 0 +with open("input") as fh: + for ln in fh: + s = ln.strip() + bin = s.replace("F", "0").replace("B", "1").replace("L", "0").replace("R", "1") + num = int(bin, base=2) + if max < num: + max = num + print(s, bin, num, max) diff --git a/05/part2 b/05/part2 new file mode 100755 index 0000000..72ca66e --- /dev/null +++ b/05/part2 @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +occupied = set() +with open("input") as fh: + for ln in fh: + s = ln.strip() + bin = s.replace("F", "0").replace("B", "1").replace("L", "0").replace("R", "1") + num = int(bin, base=2) + occupied.add(num) + +for i in range(1024): + if i not in occupied and i-1 in occupied and i+1 in occupied: + print(i)