aboutsummaryrefslogtreecommitdiff
path: root/src/2017/day22/aoc.h
blob: 2011f47e5074475a93405247a31c099f983e5129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include "common.h"
#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