diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-12-03 13:24:39 +0200 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2025-12-03 13:40:23 +0200 |
| commit | 60979281fe80f94e5b85c73fbd2ba939e1eafe55 (patch) | |
| tree | 5c909f0341686604f5f06174bccc5da2b3f2b904 /skel/solution.cpp | |
| parent | add aoc.mk (diff) | |
| download | aoc25-60979281fe80f94e5b85c73fbd2ba939e1eafe55.tar.gz aoc25-60979281fe80f94e5b85c73fbd2ba939e1eafe55.zip | |
add skel/ directory
Diffstat (limited to 'skel/solution.cpp')
| -rw-r--r-- | skel/solution.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/skel/solution.cpp b/skel/solution.cpp new file mode 100644 index 0000000..4279dec --- /dev/null +++ b/skel/solution.cpp | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include <bits/stdc++.h> | ||
| 2 | |||
| 3 | namespace views = std::views; | ||
| 4 | namespace ranges = std::ranges; | ||
| 5 | |||
| 6 | auto parse_input(std::istream& is) { | ||
| 7 | const std::string input = { | ||
| 8 | std::istreambuf_iterator<char>(is), | ||
| 9 | std::istreambuf_iterator<char>() | ||
| 10 | }; | ||
| 11 | |||
| 12 | auto const lines = views::split(input, '\n'); | ||
| 13 | // Parse input | ||
| 14 | return lines; | ||
| 15 | } | ||
| 16 | |||
| 17 | void part1(auto const& input) { | ||
| 18 | // Write first part solution here | ||
| 19 | } | ||
| 20 | |||
| 21 | void part2(auto const& input) { | ||
| 22 | // Write second part solution here | ||
| 23 | } | ||
| 24 | |||
| 25 | int main() { | ||
| 26 | auto const input = parse_input(std::cin); | ||
| 27 | |||
| 28 | part1(input); | ||
| 29 | part2(input); | ||
| 30 | |||
| 31 | return 0; | ||
| 32 | } | ||
