diff options
Diffstat (limited to 'src/2017/day22/aoc.h')
-rw-r--r-- | src/2017/day22/aoc.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/2017/day22/aoc.h b/src/2017/day22/aoc.h index 6c9c549..2011f47 100644 --- a/src/2017/day22/aoc.h +++ b/src/2017/day22/aoc.h @@ -3,5 +3,14 @@ #include <vector> namespace aoc2017 { + +struct node22 { + int x; + int y; + + node22(int x0, int y0): x(x0), y(y0) {} + bool operator<(const node22& n) const noexcept { return x < n.x ? true : x > n.x ? false : y < n.y; } +}; + std::pair<int64_t, int64_t> day22(line_view); -} +} // namespace aoc2017 |