From d943f03fa98ee74e8634fe5f3699a3e18256ac56 Mon Sep 17 00:00:00 2001 From: TheCK Date: Wed, 11 Dec 2024 21:38:01 +0100 Subject: [PATCH] aoc 2017 day 9 --- adventofcode/README.md | 10 +- .../org/ck/adventofcode/year2017/Day09.java | 91 +++++++++++++++++++ .../ck/adventofcode/year2017/Day09Test.java | 19 ++++ .../adventofcode/year2017/day09/01.result.txt | 1 + .../org/ck/adventofcode/year2017/day09/01.txt | 1 + .../year2017/day09/01a.result.txt | 1 + .../ck/adventofcode/year2017/day09/01a.txt | 1 + .../year2017/day09/01b.result.txt | 1 + .../ck/adventofcode/year2017/day09/01b.txt | 1 + .../year2017/day09/01c.result.txt | 1 + .../ck/adventofcode/year2017/day09/01c.txt | 1 + .../year2017/day09/01d.result.txt | 1 + .../ck/adventofcode/year2017/day09/01d.txt | 1 + .../year2017/day09/01e.result.txt | 1 + .../ck/adventofcode/year2017/day09/01e.txt | 1 + .../year2017/day09/01f.result.txt | 1 + .../ck/adventofcode/year2017/day09/01f.txt | 1 + .../year2017/day09/01g.result.txt | 1 + .../ck/adventofcode/year2017/day09/01g.txt | 1 + .../year2017/day09/01h.result.txt | 1 + .../ck/adventofcode/year2017/day09/01h.txt | 1 + .../adventofcode/year2017/day09/02.result.txt | 1 + .../org/ck/adventofcode/year2017/day09/02.txt | 1 + .../year2017/day09/02a.result.txt | 1 + .../ck/adventofcode/year2017/day09/02a.txt | 1 + .../year2017/day09/02b.result.txt | 1 + .../ck/adventofcode/year2017/day09/02b.txt | 1 + .../year2017/day09/02c.result.txt | 1 + .../ck/adventofcode/year2017/day09/02c.txt | 1 + .../year2017/day09/02d.result.txt | 1 + .../ck/adventofcode/year2017/day09/02d.txt | 1 + .../year2017/day09/02e.result.txt | 1 + .../ck/adventofcode/year2017/day09/02e.txt | 1 + .../year2017/day09/02f.result.txt | 1 + .../ck/adventofcode/year2017/day09/02f.txt | 1 + .../year2017/day09/02g.result.txt | 1 + .../ck/adventofcode/year2017/day09/02g.txt | 1 + .../year2017/day09/02h.result.txt | 1 + .../ck/adventofcode/year2017/day09/02h.txt | 1 + 39 files changed, 155 insertions(+), 1 deletion(-) create mode 100644 adventofcode/src/main/java/org/ck/adventofcode/year2017/Day09.java create mode 100644 adventofcode/src/test/java/org/ck/adventofcode/year2017/Day09Test.java create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.result.txt create mode 100644 adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.txt diff --git a/adventofcode/README.md b/adventofcode/README.md index d055ba26..ec871ab3 100644 --- a/adventofcode/README.md +++ b/adventofcode/README.md @@ -406,7 +406,7 @@ [20162402tests]: src/test/java/org/ck/adventofcode/year2016/Day24Test.java [20162501tests]: src/test/java/org/ck/adventofcode/year2016/Day25Test.java -# 2017 (16/16) +# 2017 (18/18) | # | Name | Solution | Test | |---------:|---------------------------------------------------------------------|:------------------------------------:|:---------------------------------:| @@ -426,6 +426,8 @@ | 20170702 | [Day 7: Recursive Circus - Part 2][20170702] | ✅[💾][20170702solution] | ✅[💾][20170702tests] | | 20170801 | [Day 8: I Heard You Like Registers][20170801] | ✅[💾][20170801solution] | ✅[💾][20170801tests] | | 20170802 | [Day 8: I Heard You Like Registers - Part 2][20170802] | ✅[💾][20170802solution] | ✅[💾][20170802tests] | +| 20170901 | [Day 9: Stream Processing][20170901] | ✅[💾][20170901solution] | ✅[💾][20170901tests] | +| 20170902 | [Day 9: Stream Processing - Part 2][20170902] | ✅[💾][20170902solution] | ✅[💾][20170902tests] | [20170101]: https://adventofcode.com/2017/day/1 [20170102]: https://adventofcode.com/2017/day/1#part2 @@ -443,6 +445,8 @@ [20170702]: https://adventofcode.com/2017/day/7#part2 [20170801]: https://adventofcode.com/2017/day/8 [20170802]: https://adventofcode.com/2017/day/8#part2 +[20170901]: https://adventofcode.com/2017/day/9 +[20170902]: https://adventofcode.com/2017/day/9#part2 [20170101solution]: src/main/java/org/ck/adventofcode/year2017/Day01.java [20170102solution]: src/main/java/org/ck/adventofcode/year2017/Day01.java @@ -460,6 +464,8 @@ [20170702solution]: src/main/java/org/ck/adventofcode/year2017/Day07.java [20170801solution]: src/main/java/org/ck/adventofcode/year2017/Day08.java [20170802solution]: src/main/java/org/ck/adventofcode/year2017/Day08.java +[20170901solution]: src/main/java/org/ck/adventofcode/year2017/Day09.java +[20170902solution]: src/main/java/org/ck/adventofcode/year2017/Day09.java [20170101tests]: src/test/java/org/ck/adventofcode/year2017/Day01Test.java [20170102tests]: src/test/java/org/ck/adventofcode/year2017/Day01Test.java @@ -477,6 +483,8 @@ [20170702tests]: src/test/java/org/ck/adventofcode/year2017/Day07Test.java [20170801tests]: src/test/java/org/ck/adventofcode/year2017/Day08Test.java [20170802tests]: src/test/java/org/ck/adventofcode/year2017/Day08Test.java +[20170901tests]: src/test/java/org/ck/adventofcode/year2017/Day09Test.java +[20170902tests]: src/test/java/org/ck/adventofcode/year2017/Day09Test.java # 2019 (29/30) diff --git a/adventofcode/src/main/java/org/ck/adventofcode/year2017/Day09.java b/adventofcode/src/main/java/org/ck/adventofcode/year2017/Day09.java new file mode 100644 index 00000000..4fd3381d --- /dev/null +++ b/adventofcode/src/main/java/org/ck/adventofcode/year2017/Day09.java @@ -0,0 +1,91 @@ +package org.ck.adventofcode.year2017; + +import java.util.ArrayList; +import java.util.List; +import java.util.Scanner; +import java.util.function.ToIntFunction; +import org.ck.adventofcode.util.AOCSolution; +import org.ck.codechallengelib.annotation.Solution; + +@Solution( + id = 20170901, + name = "Day 9: Stream Processing", + url = "https://adventofcode.com/2017/day/9", + category = "2017") +@Solution( + id = 20170902, + name = "Day 9: Stream Processing - Part 2", + url = "https://adventofcode.com/2017/day/9#part2", + category = "2017") +public class Day09 extends AOCSolution { + @Override + protected void runPartOne(final Scanner in) { + run(in, result -> count(result.result(), 1)); + } + + @Override + protected void runPartTwo(final Scanner in) { + run(in, ParseResult::garbageCount); + } + + private void run(final Scanner in, final ToIntFunction getResult) { + final String line = in.nextLine(); + + print(getResult.applyAsInt(parse(line, 1))); + } + + private int count(final List result, final int value) { + int count = value; + + for (Object o : result) { + if (o instanceof List list) { + count += count(list, value + 1); + } + } + + return count; + } + + private static ParseResult parse(final String line, final int start) { + final List result = new ArrayList<>(); + int index = start; + int garbageCount = 0; + + while (line.charAt(index) != '}') { + if (line.charAt(index) == '{') { + final ParseResult parseResult = parse(line, index + 1); + + result.add(parseResult.result()); + garbageCount += parseResult.garbageCount(); + index = parseResult.newIndex() + 1; + } else if (line.charAt(index) == ',') { + ++index; + } else if (line.charAt(index) == '<') { + final ParseResult parseResult = parseGarbage(line, index + 1); + + garbageCount += parseResult.garbageCount(); + index = parseResult.newIndex() + 1; + } + } + + return new ParseResult(result, index, garbageCount); + } + + private static ParseResult parseGarbage(final String line, final int start) { + int index = start; + int garbageCount = 0; + + while (line.charAt(index) != '>') { + if (line.charAt(index) == '!') { + index += 2; + } else { + ++garbageCount; + ++index; + } + } + + return new ParseResult(null, index, garbageCount); + } + + private record ParseResult(List result, int newIndex, int garbageCount) {} +} diff --git a/adventofcode/src/test/java/org/ck/adventofcode/year2017/Day09Test.java b/adventofcode/src/test/java/org/ck/adventofcode/year2017/Day09Test.java new file mode 100644 index 00000000..50ca46a5 --- /dev/null +++ b/adventofcode/src/test/java/org/ck/adventofcode/year2017/Day09Test.java @@ -0,0 +1,19 @@ +package org.ck.adventofcode.year2017; + +import org.ck.adventofcode.util.BaseAOCTest; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; + +class Day09Test extends BaseAOCTest { + @ParameterizedTest + @ValueSource(strings = {"01", "01a", "01b", "01c", "01d", "01e", "01f", "01g", "01h"}) + void testOne(String name) throws Exception { + runTest(new Day09()::partOne, "day09/%s".formatted(name)); + } + + @ParameterizedTest + @ValueSource(strings = {"02", "02a", "02b", "02c", "02d", "02e", "02f", "02g", "02h"}) + void testTwo(String name) throws Exception { + runTest(new Day09()::partTwo, "day09/%s".formatted(name)); + } +} diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.result.txt new file mode 100644 index 00000000..8d86089a --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.result.txt @@ -0,0 +1 @@ +12505 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.txt new file mode 100644 index 00000000..efcc6a70 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01.txt @@ -0,0 +1 @@ +{{{{{{{{{<}>,{<<'!!i}!>!!!!!>},<{,'!>,!!}},{{{{<"o>}},{,}}},{}},{<},!!ua!!!{{!>,},}},{{{,!>,>}}}},{{<,>,<>},{<'ui}<>,{{,<,!,!>},<'}>,{<}!!e>}},,!!!>ao'!"!!ooa!>},<"!!!>,<>}}},{{!>,,},{{,{,},},!{!!!>!>},<}'u!o>}}},{{{<}!!!!!>},eu!>},,,"i!ao!>'}"eia,!>},<>},{}},{<<}!!!!a'!!!!!!a!!>}}}},{{{!!!>!!!!i""!!u!!>}},{,{}},{"{!oo!>,}},{{{},},<>},{},{e!!au!!o!>},<'!!io'>}},{{{}},{{{}}}}},{{{{}},{{{{<},},},e!!!>},}}},{{},,{}}}}}},{{{{{},},<,a!>>}}},{},{{{{{{{},},}},},,},},}},{{},{}}}},{{{{,<},o"!!!>{>}},{{},},,e,!>!>},,<{>},{{{},<'!!,!!'e"o!>},},<'u!"!"o'!!'>},{!>},},<{!>,},,{!>e"i!!!>{u"e!>},,},}},!oo>}},{<<{i>,{{},{}}},{{{,<},<,,o{!>,<'!>},},<>},{{{!!!>},<}",!!},}!e!!e!},<"'!!!>,}},<{!>},!>},">}},{{},{,}},{{{{{{},{<'<,<>}},e!>!>},!!'>},{,!!}!>},>,},},,<},'!>o!!u'!!!>i!>o,>}}}}},{{{{",a!,{!>},<',!!!>a!>"}!!!>},<>},{,<<<,,}}}}},{{{},{},<>}},{{{{,{!!!>!!'i!e!!!>,<>,},<"}o"!!"'>}},{,>,{}}},{{<>,{}},!>},,<>}},{{{{!>,a,i'!>!,i!oeu!!!>,,<>},{,<{!>!!e'!,u!a!>!!!>o>,!!!>o"<>}},{{!>!!!!!>},a>}},{{{}},{{}}}},{{{{<"},}}>},,!!!>!!iui!>},<,!!"a>},},!!'!,!!e!>}a!!"a!!e>},{{{}},{{<}o'!!'!"o!!au>},{{{'!!o!!!>""}'iui>}},{!!},}}}}},{{{<>},,<{{<'},<{!"!>},}}},{{{{<>}},{{{{},{<'!>!!ii!>},u>}},{{},{<,!>,},<{{e'!!!!!>a'e"ei{!u!>,},>}}}}},{{}},{}},{{{<,u!!!>,{,<{!!",!ee!!!!>}},{{u!>,},{},}},{{,<'}<"!!'>},{'ea!!'!,!!!>'e!>},<"aae>,{},'!!o}"}>}}}}}},{{{,,<'!>e!!!>">,{,<{>,<,!a!>,,<>}},{{},{},},<{,{!!!!""{!>,u'>}}},{{,!!{!>,<}},{{{}},{{}u<}!}!>},},<,}},{<{'!!o}!i!>,,<}!>},,<{!>},,o!>},>}}}},{{{{{<}i!!a!>>},{e!e}"!>>}},{{{{{<},!>},a>},{<,u"!!!a!ui>}},<{}'a!>,!>},>}},{,<{!!!>},!!!!!>,<"e!!!}"!!!!i!!!>,!!a,i!!!!!>},<>},{}},{!>,},<'!>,<}>,{{,<{'!!o!>,i{">}}}},{{{{},<"u!,'">}},{{{{}},,},{{},!>},>},{{},!>},!>},e{!!a,o>}}},{},{{{{<a'}i!>},},<<"!>},}},{,,<,}>,},{{},!>},!>},<}!!"'i!>,<},<>}}},{{<"!>,!o!!>,{,}}}}},{{{{<'},}}}},{{{!>},},<>,{<{!>},}},{},{<>}},{{},{<"o!!!>!>,<'<'ua<}"!!!>,!!{!!!>>}},{{{},i!>},}},<'eui!ii!!o>}}},{{{{},{},<,e{>,!!e!!!>!!!au,!>,<{oio<>},{{<}e,'!>,!aou>,o!}!>},<>}}},{{},{{!!!>!>e}uie>}}},{{,oi!>,<,!u>},{{>},{!>!!!>!>},<{!iee},<'a>}}}},{{{{{!!!>{{'oe<}a{}>,{<}!>},,!!{o!e!>>}},{,},<>,<{,!>,!>},!!}},{{{!!>,{}}},{{{"o!!!>!,!!{!'"!>e!!!!u!!!!!!!a!>,<"!>},<>,!>,<<,e!!!!{i>},{{{{},<},{{,},},<}!>,>},{{<}i!!!>!!<{}!oe!!!>ie"!a{ia!>,<>},},}}}},{{{{{},{eu!>,>,{{}}}},{!>},>},{{{!!!!!>!'!>,<>,{},},},!!!>!>!!!!u!!i!!,!!{!>},}},<'i'!a!o!!"!!,!!u{!{o{i'!!u>}}}}}}},{}},{{{{{<}eu>}}},{{{},<'aa!!!>!>'}u>},{<}o!!'!,'<<},,},<"!!!>},<>},{{{,},<>},o{}!!"'!e,'!!!!!>,"!>,},{},<,!!},<>}}},{{!>,,},,<>,{}},{{{,}!!!!!!{"}i!!!>,!ou{<>,<{u!>},,<!!!>},}}},{{!>,>,<}o!!>}}}},{{{,<">},,<''a'!!a!>!!!!a!>ia"!"!!!'{!>,},<>},{>,{}},{{{{{{,},}},{},<>},{{{,,<o!>},<"!>,},},{{},{{}}}},{},{}}},{}}},{{{},{{}},{{},},{{{{{},<,}}},{}}}}}}},{{{<"!>},,},},},<"!>,<""a>}},{,{{}}},{a{!!!>,<,<,e!>},,},}},{{{},{{},!!!!a{!>},,<>}},{,<>,<'>}},{{{{},{{<>},{,},},<{"i!>}">,{!>!>,e>,{}}}}},{{!>},,{!!{>,{{{},},<},},,},}}}},<'!>,<}{!!!!}e!>},'!>'}!>e>}},{{<"',e}a!!!oe!>},,!!!>,i{u<>},{<",a'u}{!!a,{"'!!!>},},,}}},{{}},{{{<},!!!>},<"!>},<'i!!!>u!!!>e!!}e"e>}}}}}},{},{{{{{},e'e!!e'!!,e!!!>!!},{i}!!}}i<,{<>}},{{}}},{{},,<},{a!!!>"!>,,{u{!!{!,},{{},{!>},},<',,!!!!!>},}>},{{{<<<{!>,!>},<'{!!!>!>,!>},<"}!!!!!>,<>},},{<{ae!!!>!!!}!!!>"!!!>},o}!>},<>,{}}}}},{{{},!!uu!}}}},{{{},{{{{},{{},<{!>},{!!!>},,,{{{!>,>},<}!>,!!!!,}e>}}}},{{{}},{},{{},"!!o!>,<{au>,},<},e!!!!!!!>,}},{{{{{<'!!e!!!>},<>}}},{}},{{<{}!!ie!>,<}},{{{<"!>,},<>},},<"a!>,<{!!!>},},>},{{},{<'!>!!!{!!,"e!>},'>}},{{},{{<'ua!!<'u!!a}<}{'o>}}}}},{}}}},{{{{,i!>!!!>,a!>>},{!i!>,<>}}},{{,!!e!!!>aio!!<>,{},<}!!!>!>!!'!!}!>,<">}}},{{{'ia},},<>}},}"a!!!>!!>}},{{{>},{<},<,,<>}},{{}},{{{!i!!!>>}},{}!>!!!!!!',!>,!!!>"a!!!>a"!>,<>},{<>,{{<{'>},!>,<{!>,<}">}}}},{{{!!!"u}ae"'i!!}>,a!!!>!!!!,!>i>},{{}},{{}}},{{{}},{{}},{},},,,{<,"!!,!!!>!>'!!!>'>}}},{{},,<,,o"{e"!i'!!!!!>,<>}}},{{{{{{}}},,,}u!!{!!!>},,},{{e!!!>u!!o>},{{}}},{,<{!>!>},<{!!u<<>,{{{!!!>,,<"!}>}},!>},!>!>,<">}}},{{},{{u!!ea>}}},{{{<{,}'}!!e!>!!,'},{,,,!>!!!i!>>,,<}"!>},,<}!>e>},{,},<"!>!!!>},<>,{ao>}}},{{{},{{{{<>}},{},{}},{{},!>,<,ea!!aa{i!>"<>},,},<>},{{},{{},{{},{<"!!!>"i!!'!!,u!>},}}}}},{,},<'a,!!!!!>o!!!>{!>,}},{{{{{<<>},{{!!'!!!>'i!!{!>!>,<,u>}},{}},{{}i'>,{<'!'e{i,",<}>}},{},},},,{}},{<}"!>>}},{{{{,,<'a>},{<}"'u!!!>,},}},},}},{{{u}!!!>!!!!}'}aa!!u!!!>>}},{},{{<"!!>,},{{<'!!!!!u{!>!>,<,">},{!>!>,<>}}}}},{{},>,},,<>}},{{{,<<<>}},{{},{<'!>},},<{!>,<}!!a}oe!a'o!{>}},{!>>}},{{{,,,!!!>>,{,,},,<>,{}}}},{{{},"i!!!!!!!>,!e!>,"<>},{},},,<"!!!>},}},<}'!ao!>e}>},{{i!>{!>,<>}}}},{{,<'}{",<'!!!>,,<>,u}!!"!aa!>,<{!>!"!>},},,<>},{{{}},!"!!!!"!!e>}}}},{{!<>},{{{},a<>},{{<},},<,!!!>!>,<,!>},<>},{{{!!!i!!!!!>!'a!!!>o!!{oo!>},<>}}}},{{}!>,!!!><,i{o"!eauue>}},{<"!>u!!{},}},{}}}},{{},{{,!{o!!"}!!!!'!e{>,{!!!>,"!!'!!""!!!!!>,!>,<,!>},<',}!!'!>,<>}},{{{{,<>},{{,},{}},{{{{,<}'!!!>ei!>,<,}},},<,}"!>},<>}}},{!!!>ia},<>}},{{,u!>},<>},,,}},{>}}}},{{{{},<>},{},<<,!e{!>,<<}o!!'i!>,<,!>,,>}},{{<<<'!}i!!!>}a!!!!!>!>,<,u,!!!>!!!>>},{{<>},{}}},{{},<}!!'!i!!'>,},},{{{{}},{<}a!!!>}a!!}!!!!!!"a>}},{}}}},{{{{}}},{{!>eeoa!!e>,!!,{"{!<"}a},{<!{!iu!>,,}}}},{{{{},{<"!}!"!>},,{u"">,},<,,},{{!!!>!>,},,>,}}},{{},<"u}},{{<{!>},u!!!>i{!>,<}>,<"i},}},{{{{<,}>},{{}}},{},{!!e!!'!!}!>},},<{!!!>u!>,,!!}!!!>},<>}},{,{}},{{{<u{!>!>,<<"u}>}},{{iaui,i}ou'{!<}>,{{!>},,<"!!"!,eu,!>,<>}}},{<>,{<,},},<'"!!!>!!e>}}},{{},<}!!<'!>},"!!!!{!>,<,>},},u!>,<'"!e!!!>!!!>!u>}}}}},{{{<""'a!!!>!!'ue{u"ui'!>,<>,<,,<>},{{!!!>>},{}},{{{{{},<}}}}}}}},{{{{},{,<'}!!}e!!!>'>,,<"!!!>,,o,>},{{a"!!"!!!>},<},i<<,e!>ii<>}}},{{{},{}},{<>,{}},{{<{!!!!}>}}},{{{{},{}},{{{},{{,},!>,{!>},},!!a!!!,<{!>,<{'e},{}}}},{{{{{},<{e"!!},,{<,!!!>!e"o<,"},}},{e!!!!!{a>}},{{{{!!!>"<"e!>',o!!!>u!>!!!!o!}>},{},<{'eo>}},{{{},{<{i!a}},{{,<{,}!!!>!ee}!uo},e,e!>},},{,<"!!'"ea!!,!!!!!!!>,<}}},{,<>}},{{},{<"}{e!>},o!>},<>}},{}},{},<{i{>,{>}}},{{,<,!>ae'a,>,{{},,,},'"!!!>!!!>!>},}}}},{,},,<'"!!!>!>},,!<<>}},{{{},{{{<,e!!{!>,},<"e{!!ae>}}},{{",!>,<"aaai!!!>!}e>},{<'!!!>,}a'o!>,,,}}},{{,<'!!!!>},{<'!>},"i!!!>,,<"u<>}},{,,>,},<>}}},{{{{{{!>{<'!>,<}},{{<}},,<",u{!!!!!!{{e}!'>},{<'}a!!i!!!>!!!>},!!!>>}},{{},{}}},{{ueo{!!!>>},{!!,!!!>ei"u!!!>!>}a}a!o>}}},{{{{<}},{>,<,{!!u{>}}}},{},{{{!>!!{{!!e!!!>!>}!>!!!>,,{<{'},<'}}},<{a!"a}}!}!>!>!!"}>},{{{{},,},<,,!>,<<>},{!!,i!!!>u>}}},{{<,!!}o!>},<<{!!!>!!!"a>}},{{{<}ui"!>,<!>,!>},<>},,,!}!!!>!i>}}}}}},{{{{{},{'!!!ii!!{!!!>i!!!>,<>}},{},{{},{<,,<,!>},},>,{,<>}}}},{{<"'!!!{}!>,<'}!!',<>},{{<,'>},,!>},<}!!ea!!{>}},{{{<},",e,u>},{!!!>{!>>}},{{{{<'!!!!a,<}!>>,{<{!!e}ui!!!>!!!>}>}},{{{<{u!>,},<'!{!>,!!!>}e'au<>}}}},{},{{,<'i!uo!>},!!io>}}},{{{{}}},{{}},{{i!>!'}ei<"'!}i!>},e!!!!!>},},}},{''"!>,,!,>,,!'u"!!,o!!{a!>,}}}},{{{a'ao!>},,e!!a!>>,{}},{<'a!>,,{}},{},},<{!e!!{}!>},,>,{}}},{{,{}},{>,{}},{{<'uuu,u!>},!!!>'i!!!>>},},,},<"u{'!>,<>}},{{{{!!!>}''!!!>!>,<>},},<>},<,!>},},{{},<,ao!!!>,u">},<,o}ui}!!!!!!!>>}}},{{{{,{a!!{!>,}},{},{},},!u"!!!!>}},{{{{}a!>},,!!!!!>!!!>,},<{}>}}}},{{{,{{},},!!!>!>},!>},<}>}}},,<"!>,!!!>!!i,o!>},},{<,<},{<>,{},,<}!!!!!>i{!!!>!>},},}}}},{{{{},},<>},{},<,!u,!>,<>}},{<,<{!!i!>},<'>,{<}iiuo>}}},{{{,'}!!"!>,<"!>a!>},!,e!!"!!>},{},},,{}}},{},>},{,!!!!!!!><"'!>aa"i!>'>,{{}}}},{{{},<"a}!!!>"!"!!!>o!>!,o!!!>e>},{{}}},{{{{>}},{{},ai!!!>!eu>}}},{},,{<e{,a"!!!>!!!uiu!>,,}},{!!!>},},>}}}},{{{{{}}},{{{,<>}}}},{{{}}},{}}},{{{{<"!!!!{!>},},{{{{<,{o!!!>!>,<{{>}},},<<"'!!!>,,},{{{{<>},{}},,},{<{}>,<"{e!!!>a>},{{},"!!!>!!,!i"!!!>>}}}}},{{{<{!>,<,a!!!>!>},!!e>,{{},!>>}}},<"}e!!!>a!!!>!!!>!!"!i!!!>},<>},{}i>,{<<"',!>!>,,!!}i!!"a!!,<>}},{{{<},'!o"o!>,>}},,},}},{{},{<}!>,'o"!!,!>,},<"}>}},{{{{{{<,!>},<{"!!!!"}!!>},{<,!>},{!,!>},,<<'>,{<>,{}}}},{!!!!,,"!!!>,},<">},{{<'>}}},{{{},<<,!!>},{<<}!!!>!>},,},<}},{{{},{}},{},{{{'e>}},{{<"'ao<<'i{!>>}}}}},{{{{,{{!>},},<<u<'e!e>,{}}}}},{},<>}},{{},{<{!>,!!!!!>>}},{{{{},{{>}},{{},{}}},{!''!>,<>,{{}}},{i!"!!uua'!>e>}},{<{!!o!>},<,!!!>,e!!,!>},},<}!>},<>,},>}}}},{},{{{},{{{>},{<'o!o>}}},{{{},{!!>}}}},{{<>,},<""{!,e!!!>!!!!a'!!!>>},{{},{{<"'!!!,>},{}}},{{{{},,!,!!!>'a<},>,{},<"oo}!!!>"a!!a}!,u>}},},{!!!!!>},},<i>}},<""'>}}},{{{{{{},<"ee!e!!!!!>!u!!{}e!>!',"!!!>a>},{<"!!!>},!>},<>}},{{}},{}}},{{{<'!>},},<'!!!!!!!!!u,!!"!>!!}'>},{o!i}!!!>>}},{{!>},uu''>},}}},{{{{{{,{{{<<"!!!>!!},{{},{<}!>,u!>,<,!>,,,,},}}},e!!!>e!>,},>}},{{},{}}},{,,,<>},{<'!u"ie<>,{}!!<"!a>}}},{{},{>}},{{<}!>u!!!>,>}}},{{!!!>a<{!!,{!>!>},},!>,>},},{{},<'!!e!!!>!>},,},}}}}}},{{{{!!!>,,{{},<{ioai!>,,<<'!>},},}},{},{{{}},{!>,<"!oa!>>}}},{{{{{},{,,!!>}}},{{{<>}},{{{<>}}}}}},{{{},iea!>,!!o>},{{!!!>!!"!>,<}ou!!a!!!!!>},<','!!!>},<{>},{{},{"}!>,,<{i>}},{},},{!!!>{,!>,,!!!!,!>,<,i">}},{}ii!>o""!!!>>,{{{},<>},{}},{!!!>!>!>,},!,{}!!oa!!!>},!!!>},<>}}}},{{{{},},,<}!!'!>!>},<'"e">},{}},{{},{{!!!},<{>}}},{<}u!>},<",,{}}},{{{<}e!>},<>},{{<'!>},a!>'!!!!}o}!<{"!!>}},{}},{{{}},{}},{{{,<'eu!!!>'!i',<"'!,,,!>},},{{<"a{!>},}!!!>},"!!!>!>,<,!eo!u>},{}}},{{ie"!<'!!!>>,{<>,{}}},{{!!!>oui}{,'!!!>o!!}"!>'>,{<}!!!>},i!!i>}},{{<,<,,<{>,<'<<"a!>},,!>!!!>,>},{<"!{!!o!>,<<e>,},o>}}}}},{{{{ua>}},{!o!!!!!>a{o}<}o!!"uiu{>}},{{},{}},{{}}}}},{{{{},{{{'<>},},!>},<"""'!"!>},}},},,},eie{!!i,!!a!>!!!>!}!!!>>},{{"i!!!>o!>},<,},<>},{}}},{{,<>},<}},{{}',!>"!>},,!!'!!!>!o!!!>>},{{},{{{{!o}ii!!'!!!,o!!!>u!!ee<"i,!!!>>}}},{{},{!>!!!>},<<}uo!!!>'>}},{{},{{},{{{<>},,<>}}}}},{{{<},!!!>e{>},,<oee"!!!!{<>}}}},{{u"}}!!{>,{,!!!>},}},{!!u!!!>i"!!oua>,{{<,<">}}},{<}ui!>,<}"!!!!!>!!!>>,a!>>}}},{{{{{{<}!>,<}!>!!!>'"!!!!!>a!>,e!>,<{>,,'eo!!"!>a{u!!e{a'!e>}}},{},{{{,!!!>{,},<">},{{<'!>},,},},{}}},{<>,<{}"<{!>'!u!!!!'}'!i>}}},{{{<{o!u,a>}},{{}},{}},{{{!!!!!>!!!!!>!>,<{{!!>,},},{{<{ao!!!>""a'!'!>},,},<,o!!!>>},{{'<">},<'i!!!!!>u}'!>a,"!!!!!>,}},{{},<{!}>}}},{{},,{}},{{<{!!!>!!"!!!!e{i!>!!!!!>,},{{},{}}}}}},{{},{{{<,e!!o}!!!!!>,},}}}},{{{>,{},<'{a!>!uo!,!!>}},{{<'i!!!>i,>}},{{{}},{},!>},<,o!!i,}">}}},{{{{<{!!!!,"!!!!,ee}<,o!!!>!{!>},<,!>,,},!u}!!!>!>,i"o!!ii!!!!aui>},e!>a!>},},!!,i>},{},<>}},{{},<,!>,!>,},<}!>},!>,,<!>>}}}}},{{{{{{},{}},{>},{{}},{{<'u!>,<,!u>},{},,<"!!!>!>,!>}a}e<>,<"!!!>}"e}eo'{e,ai>},{<<'!>,<{ao!!>,<,!!!'{>,{{},}}}}},{{{{},<,{!!!>},<{<}">},{},{{{},{<},<,o>}},{,<''"!!}'{u<>,{}}}},{{{}},{{{,},,<>,,},,!>>}}},{},!}!>o!>,},,<,i!!!>},!>},}},{{{!{!!!!'<',>},{{},{{<>}}}},{{>,<'a!>},<"!!u<}!>},!!!>>}},{{{{!!!!i!!o'i!>!>!>!>,<>,{}},,,,<>},<"},},<!!!>!!>}}},{{{{},}>},},<'!>},',o{>},{{i!a<"!>u!!!!,,!!!>e"!!!>>}},{<{}!>,},!>,},,<'>,!>>}}},{{{{,,<>},{{{},{{}}}},{{"!>},,<,a},},,<>},{<}e!!!>,<}"{}>}}},{{{},},{},{}},{{},{},,}},{{{{{},}eia!>,!>!!!>!!<{,!!!>!>,!>,<>},{!{!!,>}},{{},<>,{<"a}},},,<'e>},{{{},<}>},{{},<'>},<}e>}},e,u,e!!"">}},{{{{{!!!!!>}!}!e!!!>!!"'{'!!!!!>>},{>}},{{{}},{}}},{{{{},{}}},{<"<,,<>,{<"!>,,},<{!>aai!>,>}},{{},{},,,,i!!!>!}!!!>{i!>,},>,{<'!!!>}!"e!!!>u!!!>},}}}},{{<>,{}},{<"a!>},<}}!>,},>},{{,!!!!!a{!>},,},'!>,}}}},{{<,'u>},{{!}"!"!}!>u!!o>},{{},{,},!!{!i!'}}!!'>}}},{{<}"!>,{!'!>,},"}!><,!!!{!>},},<,a!>!>,},{}}}},{{{},},{},{{{},<"'">},{{<,e!!!>'<>}},{{,<'}u!>,},},,},{<,,o!!'!>>}}}},{{{},<,>},{{<{!>{>},"{!!!!{!!!>!>,},{{<>}}},{{{{!>,},!>'e!>!!!>ue!!},{{{}},{{}}},{{e!>!!!>e!>},},'"!>,,<},<>,{{}}},},<}!>!>',},e!!i!!!>a!>,<}'>}},{{}}},{{{},{,<'!!,<'e!!'!!!>!!<"ei!!!>!'{<>,!>'>},{<{!>a!>,},},!!'>,{}}},{{!!!>!!!>!!!>>},,,!>},,<"a>}}},{{{{},{<>,{}}},{{<'"}i!>,<,},<{}!>},,!>},o{>},{}},{{!!!>!!"<"!>u<}ua>,<'!!ou!>},}}},{{{},'ie}"u>},<",ii!!!>!u{o!>},},<}!!!>!!!!!>>},{{{{<,!>,},},},{<>}},{{}}},{{<"a,}u!!o},>},{>}}},{{<}e,>}}},{},{{<,'eee!!!>e>},{{{},<uo}u"!!!>u>},{}}},{{},!>,!!o!!>}}}}},{{{<{},<{"}!!!>!!!>>},{{{},!>u!!!!{ei>},{},!>,},}!!>}},{},,},!!>,{}}},{{{<'e!,,<{>}},{{{},{}}},{{{e!>'u>},<"o!'a!>,!>},<>},}}},{{'!iu'!!!>},<}!>},},,'a>},{{}}},{{{{{{{!>},<{}!>o,}{o">},{<'}!!o!!,!!!!!>"!>,<!>,<,!"{>,{{o,o!!>},<'o!>!>,,}}},u!!!!oa{a>},{}},{!!ii!!!>{!a!!o>}},,},},}},{{{,,<"!!!}!!!>,!!!"a",!!!>!>,<>}},{{{{<}}},{">}},{{{},,!uoe'e!>},},},<'!>},<>}},{<}{ea!'"au!>},,>}}}},{{{{{i!,a>},{<<"u!!o!>},<"{!>},{{e>,{{},,"!>,},}}}},{ieii>},{{},<<<}>,{}},{<,o!>!!{!>},}}},{{{},<{!>,e!>,}}},{{},{{<"!!e}i}e!>!>},<e>},<'!!!>!>,<}",!>,<},'u,},{{<""!!}"!!!>{<>},<{i}!>},}{!!!>i!!!>o>}},{{{,<,<"},>},},!>a"a!,">}}},{{{{},<{!>!>},},<>},},{,},{>},{{{{<{ea!>},>},{<{i!,'!!'!>,<}!>},<'!>},,<>}}},{{{<"!>},<"!>,"!!!!!<}"!!!>!{,>}},{{}}},{<,oe!!!>!!!>!>},}}}}}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.result.txt new file mode 100644 index 00000000..56a6051c --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.result.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.txt new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01a.txt @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.result.txt new file mode 100644 index 00000000..62f94575 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.result.txt @@ -0,0 +1 @@ +6 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.txt new file mode 100644 index 00000000..d6da0324 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01b.txt @@ -0,0 +1 @@ +{{{}}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.result.txt new file mode 100644 index 00000000..7813681f --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.result.txt @@ -0,0 +1 @@ +5 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.txt new file mode 100644 index 00000000..8f43612f --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01c.txt @@ -0,0 +1 @@ +{{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.result.txt new file mode 100644 index 00000000..19c7bdba --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.result.txt @@ -0,0 +1 @@ +16 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.txt new file mode 100644 index 00000000..4cd213bb --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01d.txt @@ -0,0 +1 @@ +{{{},{},{{}}}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.result.txt new file mode 100644 index 00000000..56a6051c --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.result.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.txt new file mode 100644 index 00000000..c4ff63c0 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01e.txt @@ -0,0 +1 @@ +{,,,} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.result.txt new file mode 100644 index 00000000..f11c82a4 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.result.txt @@ -0,0 +1 @@ +9 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.txt new file mode 100644 index 00000000..bd0421ac --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01f.txt @@ -0,0 +1 @@ +{{},{},{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.result.txt new file mode 100644 index 00000000..f11c82a4 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.result.txt @@ -0,0 +1 @@ +9 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.txt new file mode 100644 index 00000000..21bd366b --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01g.txt @@ -0,0 +1 @@ +{{},{},{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.result.txt new file mode 100644 index 00000000..e440e5c8 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.result.txt @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.txt new file mode 100644 index 00000000..0f233d4c --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/01h.txt @@ -0,0 +1 @@ +{{},{},{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.result.txt new file mode 100644 index 00000000..3674be44 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.result.txt @@ -0,0 +1 @@ +6671 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.txt new file mode 100644 index 00000000..efcc6a70 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02.txt @@ -0,0 +1 @@ +{{{{{{{{{<}>,{<<'!!i}!>!!!!!>},<{,'!>,!!}},{{{{<"o>}},{,}}},{}},{<},!!ua!!!{{!>,},}},{{{,!>,>}}}},{{<,>,<>},{<'ui}<>,{{,<,!,!>},<'}>,{<}!!e>}},,!!!>ao'!"!!ooa!>},<"!!!>,<>}}},{{!>,,},{{,{,},},!{!!!>!>},<}'u!o>}}},{{{<}!!!!!>},eu!>},,,"i!ao!>'}"eia,!>},<>},{}},{<<}!!!!a'!!!!!!a!!>}}}},{{{!!!>!!!!i""!!u!!>}},{,{}},{"{!oo!>,}},{{{},},<>},{},{e!!au!!o!>},<'!!io'>}},{{{}},{{{}}}}},{{{{}},{{{{<},},},e!!!>},}}},{{},,{}}}}}},{{{{{},},<,a!>>}}},{},{{{{{{{},},}},},,},},}},{{},{}}}},{{{{,<},o"!!!>{>}},{{},},,e,!>!>},,<{>},{{{},<'!!,!!'e"o!>},},<'u!"!"o'!!'>},{!>},},<{!>,},,{!>e"i!!!>{u"e!>},,},}},!oo>}},{<<{i>,{{},{}}},{{{,<},<,,o{!>,<'!>},},<>},{{{!!!>},<}",!!},}!e!!e!},<"'!!!>,}},<{!>},!>},">}},{{},{,}},{{{{{{},{<'<,<>}},e!>!>},!!'>},{,!!}!>},>,},},,<},'!>o!!u'!!!>i!>o,>}}}}},{{{{",a!,{!>},<',!!!>a!>"}!!!>},<>},{,<<<,,}}}}},{{{},{},<>}},{{{{,{!!!>!!'i!e!!!>,<>,},<"}o"!!"'>}},{,>,{}}},{{<>,{}},!>},,<>}},{{{{!>,a,i'!>!,i!oeu!!!>,,<>},{,<{!>!!e'!,u!a!>!!!>o>,!!!>o"<>}},{{!>!!!!!>},a>}},{{{}},{{}}}},{{{{<"},}}>},,!!!>!!iui!>},<,!!"a>},},!!'!,!!e!>}a!!"a!!e>},{{{}},{{<}o'!!'!"o!!au>},{{{'!!o!!!>""}'iui>}},{!!},}}}}},{{{<>},,<{{<'},<{!"!>},}}},{{{{<>}},{{{{},{<'!>!!ii!>},u>}},{{},{<,!>,},<{{e'!!!!!>a'e"ei{!u!>,},>}}}}},{{}},{}},{{{<,u!!!>,{,<{!!",!ee!!!!>}},{{u!>,},{},}},{{,<'}<"!!'>},{'ea!!'!,!!!>'e!>},<"aae>,{},'!!o}"}>}}}}}},{{{,,<'!>e!!!>">,{,<{>,<,!a!>,,<>}},{{},{},},<{,{!!!!""{!>,u'>}}},{{,!!{!>,<}},{{{}},{{}u<}!}!>},},<,}},{<{'!!o}!i!>,,<}!>},,<{!>},,o!>},>}}}},{{{{{<}i!!a!>>},{e!e}"!>>}},{{{{{<},!>},a>},{<,u"!!!a!ui>}},<{}'a!>,!>},>}},{,<{!!!>},!!!!!>,<"e!!!}"!!!!i!!!>,!!a,i!!!!!>},<>},{}},{!>,},<'!>,<}>,{{,<{'!!o!>,i{">}}}},{{{{},<"u!,'">}},{{{{}},,},{{},!>},>},{{},!>},!>},e{!!a,o>}}},{},{{{{<a'}i!>},},<<"!>},}},{,,<,}>,},{{},!>},!>},<}!!"'i!>,<},<>}}},{{<"!>,!o!!>,{,}}}}},{{{{<'},}}}},{{{!>},},<>,{<{!>},}},{},{<>}},{{},{<"o!!!>!>,<'<'ua<}"!!!>,!!{!!!>>}},{{{},i!>},}},<'eui!ii!!o>}}},{{{{},{},<,e{>,!!e!!!>!!!au,!>,<{oio<>},{{<}e,'!>,!aou>,o!}!>},<>}}},{{},{{!!!>!>e}uie>}}},{{,oi!>,<,!u>},{{>},{!>!!!>!>},<{!iee},<'a>}}}},{{{{{!!!>{{'oe<}a{}>,{<}!>},,!!{o!e!>>}},{,},<>,<{,!>,!>},!!}},{{{!!>,{}}},{{{"o!!!>!,!!{!'"!>e!!!!u!!!!!!!a!>,<"!>},<>,!>,<<,e!!!!{i>},{{{{},<},{{,},},<}!>,>},{{<}i!!!>!!<{}!oe!!!>ie"!a{ia!>,<>},},}}}},{{{{{},{eu!>,>,{{}}}},{!>},>},{{{!!!!!>!'!>,<>,{},},},!!!>!>!!!!u!!i!!,!!{!>},}},<'i'!a!o!!"!!,!!u{!{o{i'!!u>}}}}}}},{}},{{{{{<}eu>}}},{{{},<'aa!!!>!>'}u>},{<}o!!'!,'<<},,},<"!!!>},<>},{{{,},<>},o{}!!"'!e,'!!!!!>,"!>,},{},<,!!},<>}}},{{!>,,},,<>,{}},{{{,}!!!!!!{"}i!!!>,!ou{<>,<{u!>},,<!!!>},}}},{{!>,>,<}o!!>}}}},{{{,<">},,<''a'!!a!>!!!!a!>ia"!"!!!'{!>,},<>},{>,{}},{{{{{{,},}},{},<>},{{{,,<o!>},<"!>,},},{{},{{}}}},{},{}}},{}}},{{{},{{}},{{},},{{{{{},<,}}},{}}}}}}},{{{<"!>},,},},},<"!>,<""a>}},{,{{}}},{a{!!!>,<,<,e!>},,},}},{{{},{{},!!!!a{!>},,<>}},{,<>,<'>}},{{{{},{{<>},{,},},<{"i!>}">,{!>!>,e>,{}}}}},{{!>},,{!!{>,{{{},},<},},,},}}}},<'!>,<}{!!!!}e!>},'!>'}!>e>}},{{<"',e}a!!!oe!>},,!!!>,i{u<>},{<",a'u}{!!a,{"'!!!>},},,}}},{{}},{{{<},!!!>},<"!>},<'i!!!>u!!!>e!!}e"e>}}}}}},{},{{{{{},e'e!!e'!!,e!!!>!!},{i}!!}}i<,{<>}},{{}}},{{},,<},{a!!!>"!>,,{u{!!{!,},{{},{!>},},<',,!!!!!>},}>},{{{<<<{!>,!>},<'{!!!>!>,!>},<"}!!!!!>,<>},},{<{ae!!!>!!!}!!!>"!!!>},o}!>},<>,{}}}}},{{{},!!uu!}}}},{{{},{{{{},{{},<{!>},{!!!>},,,{{{!>,>},<}!>,!!!!,}e>}}}},{{{}},{},{{},"!!o!>,<{au>,},<},e!!!!!!!>,}},{{{{{<'!!e!!!>},<>}}},{}},{{<{}!!ie!>,<}},{{{<"!>,},<>},},<"a!>,<{!!!>},},>},{{},{<'!>!!!{!!,"e!>},'>}},{{},{{<'ua!!<'u!!a}<}{'o>}}}}},{}}}},{{{{,i!>!!!>,a!>>},{!i!>,<>}}},{{,!!e!!!>aio!!<>,{},<}!!!>!>!!'!!}!>,<">}}},{{{'ia},},<>}},}"a!!!>!!>}},{{{>},{<},<,,<>}},{{}},{{{!i!!!>>}},{}!>!!!!!!',!>,!!!>"a!!!>a"!>,<>},{<>,{{<{'>},!>,<{!>,<}">}}}},{{{!!!"u}ae"'i!!}>,a!!!>!!!!,!>i>},{{}},{{}}},{{{}},{{}},{},},,,{<,"!!,!!!>!>'!!!>'>}}},{{},,<,,o"{e"!i'!!!!!>,<>}}},{{{{{{}}},,,}u!!{!!!>},,},{{e!!!>u!!o>},{{}}},{,<{!>!>},<{!!u<<>,{{{!!!>,,<"!}>}},!>},!>!>,<">}}},{{},{{u!!ea>}}},{{{<{,}'}!!e!>!!,'},{,,,!>!!!i!>>,,<}"!>},,<}!>e>},{,},<"!>!!!>},<>,{ao>}}},{{{},{{{{<>}},{},{}},{{},!>,<,ea!!aa{i!>"<>},,},<>},{{},{{},{{},{<"!!!>"i!!'!!,u!>},}}}}},{,},<'a,!!!!!>o!!!>{!>,}},{{{{{<<>},{{!!'!!!>'i!!{!>!>,<,u>}},{}},{{}i'>,{<'!'e{i,",<}>}},{},},},,{}},{<}"!>>}},{{{{,,<'a>},{<}"'u!!!>,},}},},}},{{{u}!!!>!!!!}'}aa!!u!!!>>}},{},{{<"!!>,},{{<'!!!!!u{!>!>,<,">},{!>!>,<>}}}}},{{},>,},,<>}},{{{,<<<>}},{{},{<'!>},},<{!>,<}!!a}oe!a'o!{>}},{!>>}},{{{,,,!!!>>,{,,},,<>,{}}}},{{{},"i!!!!!!!>,!e!>,"<>},{},},,<"!!!>},}},<}'!ao!>e}>},{{i!>{!>,<>}}}},{{,<'}{",<'!!!>,,<>,u}!!"!aa!>,<{!>!"!>},},,<>},{{{}},!"!!!!"!!e>}}}},{{!<>},{{{},a<>},{{<},},<,!!!>!>,<,!>},<>},{{{!!!i!!!!!>!'a!!!>o!!{oo!>},<>}}}},{{}!>,!!!><,i{o"!eauue>}},{<"!>u!!{},}},{}}}},{{},{{,!{o!!"}!!!!'!e{>,{!!!>,"!!'!!""!!!!!>,!>,<,!>},<',}!!'!>,<>}},{{{{,<>},{{,},{}},{{{{,<}'!!!>ei!>,<,}},},<,}"!>},<>}}},{!!!>ia},<>}},{{,u!>},<>},,,}},{>}}}},{{{{},<>},{},<<,!e{!>,<<}o!!'i!>,<,!>,,>}},{{<<<'!}i!!!>}a!!!!!>!>,<,u,!!!>!!!>>},{{<>},{}}},{{},<}!!'!i!!'>,},},{{{{}},{<}a!!!>}a!!}!!!!!!"a>}},{}}}},{{{{}}},{{!>eeoa!!e>,!!,{"{!<"}a},{<!{!iu!>,,}}}},{{{{},{<"!}!"!>},,{u"">,},<,,},{{!!!>!>,},,>,}}},{{},<"u}},{{<{!>},u!!!>i{!>,<}>,<"i},}},{{{{<,}>},{{}}},{},{!!e!!'!!}!>},},<{!!!>u!>,,!!}!!!>},<>}},{,{}},{{{<u{!>!>,<<"u}>}},{{iaui,i}ou'{!<}>,{{!>},,<"!!"!,eu,!>,<>}}},{<>,{<,},},<'"!!!>!!e>}}},{{},<}!!<'!>},"!!!!{!>,<,>},},u!>,<'"!e!!!>!!!>!u>}}}}},{{{<""'a!!!>!!'ue{u"ui'!>,<>,<,,<>},{{!!!>>},{}},{{{{{},<}}}}}}}},{{{{},{,<'}!!}e!!!>'>,,<"!!!>,,o,>},{{a"!!"!!!>},<},i<<,e!>ii<>}}},{{{},{}},{<>,{}},{{<{!!!!}>}}},{{{{},{}},{{{},{{,},!>,{!>},},!!a!!!,<{!>,<{'e},{}}}},{{{{{},<{e"!!},,{<,!!!>!e"o<,"},}},{e!!!!!{a>}},{{{{!!!>"<"e!>',o!!!>u!>!!!!o!}>},{},<{'eo>}},{{{},{<{i!a}},{{,<{,}!!!>!ee}!uo},e,e!>},},{,<"!!'"ea!!,!!!!!!!>,<}}},{,<>}},{{},{<"}{e!>},o!>},<>}},{}},{},<{i{>,{>}}},{{,<,!>ae'a,>,{{},,,},'"!!!>!!!>!>},}}}},{,},,<'"!!!>!>},,!<<>}},{{{},{{{<,e!!{!>,},<"e{!!ae>}}},{{",!>,<"aaai!!!>!}e>},{<'!!!>,}a'o!>,,,}}},{{,<'!!!!>},{<'!>},"i!!!>,,<"u<>}},{,,>,},<>}}},{{{{{{!>{<'!>,<}},{{<}},,<",u{!!!!!!{{e}!'>},{<'}a!!i!!!>!!!>},!!!>>}},{{},{}}},{{ueo{!!!>>},{!!,!!!>ei"u!!!>!>}a}a!o>}}},{{{{<}},{>,<,{!!u{>}}}},{},{{{!>!!{{!!e!!!>!>}!>!!!>,,{<{'},<'}}},<{a!"a}}!}!>!>!!"}>},{{{{},,},<,,!>,<<>},{!!,i!!!>u>}}},{{<,!!}o!>},<<{!!!>!!!"a>}},{{{<}ui"!>,<!>,!>},<>},,,!}!!!>!i>}}}}}},{{{{{},{'!!!ii!!{!!!>i!!!>,<>}},{},{{},{<,,<,!>},},>,{,<>}}}},{{<"'!!!{}!>,<'}!!',<>},{{<,'>},,!>},<}!!ea!!{>}},{{{<},",e,u>},{!!!>{!>>}},{{{{<'!!!!a,<}!>>,{<{!!e}ui!!!>!!!>}>}},{{{<{u!>,},<'!{!>,!!!>}e'au<>}}}},{},{{,<'i!uo!>},!!io>}}},{{{{}}},{{}},{{i!>!'}ei<"'!}i!>},e!!!!!>},},}},{''"!>,,!,>,,!'u"!!,o!!{a!>,}}}},{{{a'ao!>},,e!!a!>>,{}},{<'a!>,,{}},{},},<{!e!!{}!>},,>,{}}},{{,{}},{>,{}},{{<'uuu,u!>},!!!>'i!!!>>},},,},<"u{'!>,<>}},{{{{!!!>}''!!!>!>,<>},},<>},<,!>},},{{},<,ao!!!>,u">},<,o}ui}!!!!!!!>>}}},{{{{,{a!!{!>,}},{},{},},!u"!!!!>}},{{{{}a!>},,!!!!!>!!!>,},<{}>}}}},{{{,{{},},!!!>!>},!>},<}>}}},,<"!>,!!!>!!i,o!>},},{<,<},{<>,{},,<}!!!!!>i{!!!>!>},},}}}},{{{{},},<>},{},<,!u,!>,<>}},{<,<{!!i!>},<'>,{<}iiuo>}}},{{{,'}!!"!>,<"!>a!>},!,e!!"!!>},{},},,{}}},{},>},{,!!!!!!!><"'!>aa"i!>'>,{{}}}},{{{},<"a}!!!>"!"!!!>o!>!,o!!!>e>},{{}}},{{{{>}},{{},ai!!!>!eu>}}},{},,{<e{,a"!!!>!!!uiu!>,,}},{!!!>},},>}}}},{{{{{}}},{{{,<>}}}},{{{}}},{}}},{{{{<"!!!!{!>},},{{{{<,{o!!!>!>,<{{>}},},<<"'!!!>,,},{{{{<>},{}},,},{<{}>,<"{e!!!>a>},{{},"!!!>!!,!i"!!!>>}}}}},{{{<{!>,<,a!!!>!>},!!e>,{{},!>>}}},<"}e!!!>a!!!>!!!>!!"!i!!!>},<>},{}i>,{<<"',!>!>,,!!}i!!"a!!,<>}},{{{<},'!o"o!>,>}},,},}},{{},{<}!>,'o"!!,!>,},<"}>}},{{{{{{<,!>},<{"!!!!"}!!>},{<,!>},{!,!>},,<<'>,{<>,{}}}},{!!!!,,"!!!>,},<">},{{<'>}}},{{{},<<,!!>},{<<}!!!>!>},,},<}},{{{},{}},{},{{{'e>}},{{<"'ao<<'i{!>>}}}}},{{{{,{{!>},},<<u<'e!e>,{}}}}},{},<>}},{{},{<{!>,!!!!!>>}},{{{{},{{>}},{{},{}}},{!''!>,<>,{{}}},{i!"!!uua'!>e>}},{<{!!o!>},<,!!!>,e!!,!>},},<}!>},<>,},>}}}},{},{{{},{{{>},{<'o!o>}}},{{{},{!!>}}}},{{<>,},<""{!,e!!!>!!!!a'!!!>>},{{},{{<"'!!!,>},{}}},{{{{},,!,!!!>'a<},>,{},<"oo}!!!>"a!!a}!,u>}},},{!!!!!>},},<i>}},<""'>}}},{{{{{{},<"ee!e!!!!!>!u!!{}e!>!',"!!!>a>},{<"!!!>},!>},<>}},{{}},{}}},{{{<'!>},},<'!!!!!!!!!u,!!"!>!!}'>},{o!i}!!!>>}},{{!>},uu''>},}}},{{{{{{,{{{<<"!!!>!!},{{},{<}!>,u!>,<,!>,,,,},}}},e!!!>e!>,},>}},{{},{}}},{,,,<>},{<'!u"ie<>,{}!!<"!a>}}},{{},{>}},{{<}!>u!!!>,>}}},{{!!!>a<{!!,{!>!>},},!>,>},},{{},<'!!e!!!>!>},,},}}}}}},{{{{!!!>,,{{},<{ioai!>,,<<'!>},},}},{},{{{}},{!>,<"!oa!>>}}},{{{{{},{,,!!>}}},{{{<>}},{{{<>}}}}}},{{{},iea!>,!!o>},{{!!!>!!"!>,<}ou!!a!!!!!>},<','!!!>},<{>},{{},{"}!>,,<{i>}},{},},{!!!>{,!>,,!!!!,!>,<,i">}},{}ii!>o""!!!>>,{{{},<>},{}},{!!!>!>!>,},!,{}!!oa!!!>},!!!>},<>}}}},{{{{},},,<}!!'!>!>},<'"e">},{}},{{},{{!!!},<{>}}},{<}u!>},<",,{}}},{{{<}e!>},<>},{{<'!>},a!>'!!!!}o}!<{"!!>}},{}},{{{}},{}},{{{,<'eu!!!>'!i',<"'!,,,!>},},{{<"a{!>},}!!!>},"!!!>!>,<,!eo!u>},{}}},{{ie"!<'!!!>>,{<>,{}}},{{!!!>oui}{,'!!!>o!!}"!>'>,{<}!!!>},i!!i>}},{{<,<,,<{>,<'<<"a!>},,!>!!!>,>},{<"!{!!o!>,<<e>,},o>}}}}},{{{{ua>}},{!o!!!!!>a{o}<}o!!"uiu{>}},{{},{}},{{}}}}},{{{{},{{{'<>},},!>},<"""'!"!>},}},},,},eie{!!i,!!a!>!!!>!}!!!>>},{{"i!!!>o!>},<,},<>},{}}},{{,<>},<}},{{}',!>"!>},,!!'!!!>!o!!!>>},{{},{{{{!o}ii!!'!!!,o!!!>u!!ee<"i,!!!>>}}},{{},{!>!!!>},<<}uo!!!>'>}},{{},{{},{{{<>},,<>}}}}},{{{<},!!!>e{>},,<oee"!!!!{<>}}}},{{u"}}!!{>,{,!!!>},}},{!!u!!!>i"!!oua>,{{<,<">}}},{<}ui!>,<}"!!!!!>!!!>>,a!>>}}},{{{{{{<}!>,<}!>!!!>'"!!!!!>a!>,e!>,<{>,,'eo!!"!>a{u!!e{a'!e>}}},{},{{{,!!!>{,},<">},{{<'!>},,},},{}}},{<>,<{}"<{!>'!u!!!!'}'!i>}}},{{{<{o!u,a>}},{{}},{}},{{{!!!!!>!!!!!>!>,<{{!!>,},},{{<{ao!!!>""a'!'!>},,},<,o!!!>>},{{'<">},<'i!!!!!>u}'!>a,"!!!!!>,}},{{},<{!}>}}},{{},,{}},{{<{!!!>!!"!!!!e{i!>!!!!!>,},{{},{}}}}}},{{},{{{<,e!!o}!!!!!>,},}}}},{{{>,{},<'{a!>!uo!,!!>}},{{<'i!!!>i,>}},{{{}},{},!>},<,o!!i,}">}}},{{{{<{!!!!,"!!!!,ee}<,o!!!>!{!>},<,!>,,},!u}!!!>!>,i"o!!ii!!!!aui>},e!>a!>},},!!,i>},{},<>}},{{},<,!>,!>,},<}!>},!>,,<!>>}}}}},{{{{{{},{}},{>},{{}},{{<'u!>,<,!u>},{},,<"!!!>!>,!>}a}e<>,<"!!!>}"e}eo'{e,ai>},{<<'!>,<{ao!!>,<,!!!'{>,{{},}}}}},{{{{},<,{!!!>},<{<}">},{},{{{},{<},<,o>}},{,<''"!!}'{u<>,{}}}},{{{}},{{{,},,<>,,},,!>>}}},{},!}!>o!>,},,<,i!!!>},!>},}},{{{!{!!!!'<',>},{{},{{<>}}}},{{>,<'a!>},<"!!u<}!>},!!!>>}},{{{{!!!!i!!o'i!>!>!>!>,<>,{}},,,,<>},<"},},<!!!>!!>}}},{{{{},}>},},<'!>},',o{>},{{i!a<"!>u!!!!,,!!!>e"!!!>>}},{<{}!>,},!>,},,<'>,!>>}}},{{{{,,<>},{{{},{{}}}},{{"!>},,<,a},},,<>},{<}e!!!>,<}"{}>}}},{{{},},{},{}},{{},{},,}},{{{{{},}eia!>,!>!!!>!!<{,!!!>!>,!>,<>},{!{!!,>}},{{},<>,{<"a}},},,<'e>},{{{},<}>},{{},<'>},<}e>}},e,u,e!!"">}},{{{{{!!!!!>}!}!e!!!>!!"'{'!!!!!>>},{>}},{{{}},{}}},{{{{},{}}},{<"<,,<>,{<"!>,,},<{!>aai!>,>}},{{},{},,,,i!!!>!}!!!>{i!>,},>,{<'!!!>}!"e!!!>u!!!>},}}}},{{<>,{}},{<"a!>},<}}!>,},>},{{,!!!!!a{!>},,},'!>,}}}},{{<,'u>},{{!}"!"!}!>u!!o>},{{},{,},!!{!i!'}}!!'>}}},{{<}"!>,{!'!>,},"}!><,!!!{!>},},<,a!>!>,},{}}}},{{{},},{},{{{},<"'">},{{<,e!!!>'<>}},{{,<'}u!>,},},,},{<,,o!!'!>>}}}},{{{},<,>},{{<{!>{>},"{!!!!{!!!>!>,},{{<>}}},{{{{!>,},!>'e!>!!!>ue!!},{{{}},{{}}},{{e!>!!!>e!>},},'"!>,,<},<>,{{}}},},<}!>!>',},e!!i!!!>a!>,<}'>}},{{}}},{{{},{,<'!!,<'e!!'!!!>!!<"ei!!!>!'{<>,!>'>},{<{!>a!>,},},!!'>,{}}},{{!!!>!!!>!!!>>},,,!>},,<"a>}}},{{{{},{<>,{}}},{{<'"}i!>,<,},<{}!>},,!>},o{>},{}},{{!!!>!!"<"!>u<}ua>,<'!!ou!>},}}},{{{},'ie}"u>},<",ii!!!>!u{o!>},},<}!!!>!!!!!>>},{{{{<,!>,},},},{<>}},{{}}},{{<"a,}u!!o},>},{>}}},{{<}e,>}}},{},{{<,'eee!!!>e>},{{{},<uo}u"!!!>u>},{}}},{{},!>,!!o!!>}}}}},{{{<{},<{"}!!!>!!!>>},{{{},!>u!!!!{ei>},{},!>,},}!!>}},{},,},!!>,{}}},{{{<'e!,,<{>}},{{{},{}}},{{{e!>'u>},<"o!'a!>,!>},<>},}}},{{'!iu'!!!>},<}!>},},,'a>},{{}}},{{{{{{{!>},<{}!>o,}{o">},{<'}!!o!!,!!!!!>"!>,<!>,<,!"{>,{{o,o!!>},<'o!>!>,,}}},u!!!!oa{a>},{}},{!!ii!!!>{!a!!o>}},,},},}},{{{,,<"!!!}!!!>,!!!"a",!!!>!>,<>}},{{{{<}}},{">}},{{{},,!uoe'e!>},},},<'!>},<>}},{<}{ea!'"au!>},,>}}}},{{{{{i!,a>},{<<"u!!o!>},<"{!>},{{e>,{{},,"!>,},}}}},{ieii>},{{},<<<}>,{}},{<,o!>!!{!>},}}},{{{},<{!>,e!>,}}},{{},{{<"!!e}i}e!>!>},<e>},<'!!!>!>,<}",!>,<},'u,},{{<""!!}"!!!>{<>},<{i}!>},}{!!!>i!!!>o>}},{{{,<,<"},>},},!>a"a!,">}}},{{{{},<{!>!>},},<>},},{,},{>},{{{{<{ea!>},>},{<{i!,'!!'!>,<}!>},<'!>},,<>}}},{{{<"!>},<"!>,"!!!!!<}"!!!>!{,>}},{{}}},{<,oe!!!>!!!>!>},}}}}}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.result.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.result.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.txt new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02a.txt @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.result.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.result.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.txt new file mode 100644 index 00000000..d6da0324 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02b.txt @@ -0,0 +1 @@ +{{{}}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.result.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.result.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.txt new file mode 100644 index 00000000..8f43612f --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02c.txt @@ -0,0 +1 @@ +{{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.result.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.result.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.txt new file mode 100644 index 00000000..4cd213bb --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02d.txt @@ -0,0 +1 @@ +{{{},{},{{}}}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.result.txt new file mode 100644 index 00000000..bf0d87ab --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.result.txt @@ -0,0 +1 @@ +4 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.txt new file mode 100644 index 00000000..c4ff63c0 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02e.txt @@ -0,0 +1 @@ +{,,,} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.result.txt new file mode 100644 index 00000000..301160a9 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.result.txt @@ -0,0 +1 @@ +8 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.txt new file mode 100644 index 00000000..bd0421ac --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02f.txt @@ -0,0 +1 @@ +{{},{},{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.result.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.result.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.txt new file mode 100644 index 00000000..21bd366b --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02g.txt @@ -0,0 +1 @@ +{{},{},{},{}} \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.result.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.result.txt new file mode 100644 index 00000000..8e2afd34 --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.result.txt @@ -0,0 +1 @@ +17 \ No newline at end of file diff --git a/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.txt b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.txt new file mode 100644 index 00000000..0f233d4c --- /dev/null +++ b/adventofcode/src/test/resources/org/ck/adventofcode/year2017/day09/02h.txt @@ -0,0 +1 @@ +{{},{},{},{}} \ No newline at end of file