Day 16 solution

I spent an inordinately long amount of time on part 2, only to discover a fundamental flaw in my logic. Apparently for my input set, switching to the other person every time the first person had less time remaining meant that some combinations never got tested. The solution in this commit exhausts every option for one person, then every option for the second person (or animal...) which works for my test input. I have a feeling it won't work for all, though.
This commit is contained in:
2022-12-18 23:59:16 -06:00
parent f4e2351dbb
commit 6de69511e5
4 changed files with 268 additions and 1 deletions

View File

@ -69,6 +69,7 @@
<EmbeddedResource Include="inputs\15a.txt" />
<EmbeddedResource Include="inputs\16.txt" />
<None Remove="inputs\17.txt" />
<EmbeddedResource Include="inputs\16a.txt" />
<EmbeddedResource Include="inputs\17.txt" />
<None Remove="inputs\18.txt" />
<EmbeddedResource Include="inputs\17a.txt" />