aoc24: add day16

This commit is contained in:
2024-12-16 16:43:34 +01:00
parent 1108b8c65b
commit 9c840a7c8f
15 changed files with 976 additions and 8 deletions

27
sol/24/day12.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include <utility>
#include <vector>
#include <algorithm>
#include <numeric>
#include <thread>
#include <functional>
#include <mutex>
#include "aoc.hpp"
#include "aoc/utils.hpp"
#include "fmt/format.h"
using namespace aoc::types;
using namespace std::string_view_literals;
namespace gmf {}
auto aoc24::day11([[maybe_unused]]std::span<char const*> const& args) -> std::expected<void, aoc::error> {
auto res = aoc::read_text("./dat/24/re/12.txt");
// auto res = aoc::read_text("./dat/24/ex/12a.txt");
if (!res) return std::unexpected(res.error());
auto const txt = *res;
fmt::print("{}\n", txt);
return {};
}