From 90bf6ae125532040182b2914983514720242a0fa Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 12 Dec 2024 11:41:46 -0500 Subject: [PATCH] bad solution --- .idea/editor.xml | 717 ++++++++++++++-------------------------- CMakeLists.txt | 2 +- problems/day11/example | 1 + problems/day11/input | 1 + problems/day12/example1 | 4 + problems/day12/example2 | 5 + problems/day12/example3 | 10 + problems/day12/input | 140 ++++++++ src/day11.cpp | 71 ++++ src/day12.cpp | 179 +++++++++- 10 files changed, 650 insertions(+), 480 deletions(-) create mode 100644 problems/day11/example create mode 100644 problems/day11/input create mode 100644 problems/day12/example1 create mode 100644 problems/day12/example2 create mode 100644 problems/day12/example3 create mode 100644 problems/day12/input diff --git a/.idea/editor.xml b/.idea/editor.xml index b0d69ef..822bae1 100644 --- a/.idea/editor.xml +++ b/.idea/editor.xml @@ -1,483 +1,244 @@ - \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 379f0cd..5aaac3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(Advent-Of-Code-2024 VERSION 0.0.10) +project(Advent-Of-Code-2024 VERSION 0.0.11) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/problems/day11/example b/problems/day11/example new file mode 100644 index 0000000..528f9d5 --- /dev/null +++ b/problems/day11/example @@ -0,0 +1 @@ +125 17 \ No newline at end of file diff --git a/problems/day11/input b/problems/day11/input new file mode 100644 index 0000000..46fe4cc --- /dev/null +++ b/problems/day11/input @@ -0,0 +1 @@ +510613 358 84 40702 4373582 2 0 1584 diff --git a/problems/day12/example1 b/problems/day12/example1 new file mode 100644 index 0000000..cc5f968 --- /dev/null +++ b/problems/day12/example1 @@ -0,0 +1,4 @@ +AAAA +BBCD +BBCC +EEEC \ No newline at end of file diff --git a/problems/day12/example2 b/problems/day12/example2 new file mode 100644 index 0000000..50a7304 --- /dev/null +++ b/problems/day12/example2 @@ -0,0 +1,5 @@ +OOOOO +OXOXO +OOOOO +OXOXO +OOOOO diff --git a/problems/day12/example3 b/problems/day12/example3 new file mode 100644 index 0000000..0b328f1 --- /dev/null +++ b/problems/day12/example3 @@ -0,0 +1,10 @@ +RRRRIICCFF +RRRRIICCCF +VVRRRCCFFF +VVRCCCJFFF +VVVVCJJCFE +VVIVCCJJEE +VVIIICJJEE +MIIIIIJJEE +MIIISIJEEE +MMMISSJEEE \ No newline at end of file diff --git a/problems/day12/input b/problems/day12/input new file mode 100644 index 0000000..8b0f219 --- /dev/null +++ b/problems/day12/input @@ -0,0 +1,140 @@ +TTTTTTTTTTTTTTDDDDDDDDDDDDAAAKKKKKKKKKKKKKKKKKKKKKKKRRRRRRRRRRRRRXXXXXXXXXXZFFFFFFFFFFOFVVVVVVQQQQQUQQQQQQQQQQQQQQQQQCCGGNNNNHHHHHHHHHHHHHHH +TTTTTTTTTTTTTTDDDDDDDDDDDDAAAAAAKKKKKFKKKKKKKKKKKKKKRRRRRRRRRRRXXXXXXXXXXXXZFFFFFFFFFFFFFFFVMMQQQQQQQQQQQQQQQQQQQQQQQGGGGNNNNHHHHHHHHHHHHHHH +TTTTTTTTTTTTDDDDDDDDDDDUAAAAAAAAAKKFFFKKKKKKKKKKKKKKRRRRRRRRRRXXXXXXXXMXMMFFFFFFFFFFFFFFFMMMMMNQQQQQQQQQQQQQQQQQQQQQZZGGNNNNHHHHHHHHHHHHHHHH +TTTTTTTBTTTTDDDDDDDDDDUUUAAAAAAAKKKKFFKKKKKKKKKVLLLLLRRRRRRRRRXXXXXXXMMMMMFMMMMFFFFFFFFFXMMHMMNQQQQQQQIQQQQQQQQQQQQQQQGGNNNNVVVHHHHHHHHHHHHH +TTTTBTBBTTTTDDDDDDDDDDUUUAAAAAAAKKKFFKKKKKKKKKNLLLLLLRRRRRRRRRXXXXXXXMMMMMMMMMFFFFFFFFHXXXMHHNNQQQQQQQIIIQQQQQQQQQQQQQGG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AAAAAAAAAEEEEEEEQQQQQQQQQQQQUVVVVVIIIIIIIIIGSSSSSSSSYVVYYYYYYYYYYYQQQ +TTTTTTTTTTTTTLLLLLLLVVLLLLLLGGGGFGGGGGGYYYYYYYRYRRRRXXRRPPPPPPPIIIIIIIIIIIAAAAAAAAAEEEEQQQQQQQQQQQUUVFFFIIIIIIIIYYGGSSSSSSSSVYYYYYYYYYYQQQQQ +TTTTTTTTTMTLLLLLLLLLLVLLLLLLGSSGGGGSSSYYYYYYYRRRRRRRRRRRRRPPPPPIIIIIIIIIIIIAAAAAAAAEHEEQQQQQQQQQQQQQVVFFIIIIIIIYYYGGGVVSVSVVVYYYYYYYQQQQQQQQ +TTTTTTTTLLLLLLLLLLLLLLLLLLLLGSSSGTGSSYYYYYYYYYRRRRRRRRRRRRRPRRIIIIIIIIIIIAAAAAAAAAAEHEEQQQQQQQQQQQQQQFFFFIIIIIIIIYYGGGVVVVVVVYYYWYYYQQQQQQQQ diff --git a/src/day11.cpp b/src/day11.cpp index 05d0f56..1bd0c93 100644 --- a/src/day11.cpp +++ b/src/day11.cpp @@ -28,6 +28,77 @@ #include #include +void apply_rules(std::vector& stones) +{ + for (auto it = stones.begin(); it != stones.end(); ++it) + { + auto& val = *it; + + if (val == 0) + { + val = 1; + } else if (auto str = std::to_string(val); str.size() % 2 == 0) + { + auto last = str.substr(str.size() / 2); + auto first = str.substr(0, str.size() / 2); + auto pos = stones.insert(stones.erase(it), std::stoull(last)); + auto pos2 = stones.insert(pos, std::stoull(first)); + it = ++pos2; + } else + { + val *= 2024; + } + } +} + +blt::hashmap_t caches; + +blt::size_t fuck_dynamic_programming(blt::size_t stone, blt::size_t depth) +{ + if (caches.contains(blt::vec2ul{stone, depth})) + return caches[blt::vec2ul{stone, depth}]; + if (depth == 0) + return 1; + blt::size_t result = 0; + if (stone == 0) + result = fuck_dynamic_programming(1, depth - 1); + else if (const auto str = std::to_string(stone); str.size() % 2 == 0) + { + result = fuck_dynamic_programming(std::stoull(str.substr(0, str.size() / 2)), depth - 1); + result += fuck_dynamic_programming(std::stoull(str.substr(str.size() / 2)), depth - 1); + } else + result = fuck_dynamic_programming(stone * 2048, depth - 1); + caches[blt::vec2ul{stone, depth}] = result; + return result; +} + +void print(const std::vector& stones) +{ + for (const auto i : stones) + std::cout << i << " "; + std::cout << std::endl; +} + void run_day11() { + auto file = blt::fs::getFile("../problems/day11/input"); + + std::vector stones; + + auto stone_values = blt::string::split(file, ' '); + for (const auto& v : stone_values) + stones.push_back(std::stoull(v)); + + auto part2_copy = stones; + + for (int i = 0; i < 25; i++) + apply_rules(stones); + + BLT_TRACE(stones.size()); + + blt::size_t total = 0; + for (const auto i : part2_copy) + total += fuck_dynamic_programming(i, 75); + BLT_TRACE(total); + } \ No newline at end of file diff --git a/src/day12.cpp b/src/day12.cpp index 7b774bb..11007eb 100644 --- a/src/day12.cpp +++ b/src/day12.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -28,6 +29,182 @@ #include #include +namespace day12 +{ + std::vector> plots; + std::vector> perimeters; + std::vector> params; + std::vector founds; + blt::hashset_t visited; + blt::hashset_t visited_side; + + int width, height; + + template + std::optional()[0][0])>>> get(T& t, const int x, const int y) + { + if (x < 0 || y < 0 || x >= width || y >= height) + return {}; + return t[y][x]; + } + + blt::vec2i floodfill(const char prev, const int x, const int y) + { + if (visited.contains({x, y}) || x < 0 || y < 0 || x >= width || y >= height) + return {0, 0}; + const auto cur = plots[y][x]; + if (cur != prev) + return {0, 0}; + visited.insert({x, y}); + return blt::vec2i{1, perimeters[y][x]} + floodfill(cur, x + 1, y) + floodfill(cur, x - 1, y) + floodfill(cur, x, y + 1) + + floodfill(cur, x, y - 1); + } + + blt::vec2i flood(const int x, const int y) + { + return floodfill(plots[y][x], x, y); + } + + template + void print(const T& t) + { + for (int j = 0; j < height; j++) + { + for (int i = 0; i < width; i++) + std::cout << t[j][i] << " "; + std::cout << std::endl; + } + } +} + void run_day12() { -} \ No newline at end of file + using namespace day12; + auto file = blt::fs::getLinesFromFile("../problems/day12/example1"); + + width = static_cast(file.begin()->size()); + height = static_cast(file.size()); + + for (const auto& line : file) + { + plots.emplace_back(); + perimeters.emplace_back(); + for (const auto c : line) + { + plots.back().push_back(c); + perimeters.back().push_back(-1); + } + } + + for (int y = 0; y < height; y++) + { + for (int x = 0; x < width; x++) + { + int per = 0; + const auto cur = plots[y][x]; + if (const auto v = get(plots, x + 1, y); !v || v->get() != cur) + per++; + if (const auto v = get(plots, x - 1, y); !v || v->get() != cur) + per++; + if (const auto v = get(plots, x, y + 1); !v || v->get() != cur) + per++; + if (const auto v = get(plots, x, y - 1); !v || v->get() != cur) + per++; + perimeters[y][x] = per; + } + } + + int total = 0; + for (int y = 0; y < height; y++) + { + for (int x = 0; x < width; x++) + { + auto fill = flood(x, y); + const auto size = fill.x() * fill.y(); + total += size; + } + } + + BLT_TRACE(total); + + int total2 = 0; + visited.clear(); + for (int y = 0; y < height; y++) + { + for (int x = 0; x < width; x++) + { + if (visited_side.contains({x, y})) + continue; + auto cur = plots[y][x]; + int edges = 0; + int area = flood(x, y).x(); + + std::queue pos_to_check; + pos_to_check.push({x, y}); + + while (!pos_to_check.empty()) + { + auto pos = pos_to_check.front(); + pos_to_check.pop(); + + if (visited_side.contains(pos)) + continue; + + bool x_pos = false, x_neg = false, y_pos = false, y_neg = false; + + { + const auto v = get(plots, pos.x() + 1, pos.y()); + x_pos = v && v->get() == cur; + } + { + const auto v = get(plots, pos.x() - 1, pos.y()); + x_neg = v && v->get() == cur; + } + { + const auto v = get(plots, pos.x(), pos.y() + 1); + y_pos = v && v->get() == cur; + } + { + const auto v = get(plots, pos.x(), pos.y() - 1); + y_neg = v && v->get() == cur; + } + + if (x_pos) + pos_to_check.push({pos.x() + 1, pos.y()}); + if (y_pos) + pos_to_check.push({pos.x(), pos.y() + 1}); + if (x_neg) + pos_to_check.push({pos.x() - 1, pos.y()}); + if (y_neg) + pos_to_check.push({pos.x(), pos.y() - 1}); + + auto b4 = edges; + if ((x_pos && (y_pos && !y_neg) && !x_neg) || (x_pos && (!y_pos && y_neg) && !x_neg)) + edges++; + else if ((y_neg && (x_pos && !x_neg) && !y_pos) || (y_neg && (!x_pos && x_neg) && !y_pos)) + edges++; + else if ((x_neg && (y_pos && !y_neg) && !x_pos) || (x_neg && (!y_pos && y_neg) && !x_pos)) + edges++; + else if ((y_pos && (x_pos && !x_neg) && !y_neg) || (y_pos && (!x_pos && x_neg) && !y_neg)) + edges++; + + + if (x_neg && !x_pos && !y_pos && !y_neg || !x_neg && x_pos && !y_pos && !y_neg) + edges+=2; + if (!x_neg && !x_pos && y_pos && !y_neg || !x_neg && !x_pos && !y_pos && y_neg) + edges+=2; + if (!x_neg && !x_pos && !y_pos && !y_neg) + edges += 4; + + BLT_TRACE("Visit %c at %d %d edges %d (%d)", cur, pos.x(), pos.y(), edges, edges-b4); + + + visited_side.insert(pos); + + } + BLT_TRACE("For %c do %d edges with %d area", cur, edges, area); + total2 += edges * area; + } + } + BLT_TRACE(total2); +}