This commit is contained in:
Feiko Wielsma 2025-12-06 20:36:52 +00:00
parent 840f236c60
commit 43448aaeb6
9 changed files with 1434 additions and 89 deletions

View file

@ -19,7 +19,6 @@ struct Diagram {
auto grid() { return GridView(data.data(), height, width); }
};
namespace {
auto printMap(Diagram &diagram) {
auto grid = diagram.grid();
for (auto row = 0UZ; row != grid.extent(0); row++) {
@ -137,7 +136,7 @@ auto moveMoveablePaper(Diagram &diagram) -> long {
return totalPaperRemoved;
}
} // namespace
auto main() -> int {
auto testCase = parseMap("test_input");
if (testCase) {