aboutsummaryrefslogtreecommitdiff
path: root/src/2022/day23/aoc.h
blob: 59d901c62f38ec05cf10ef421c393d233da08e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "common.h"
#include <vector>

namespace aoc2022 {

struct elf {
  int x;
  int y;

  friend bool operator<(elf e1, elf e2) { return e1.x < e2.x ? true : e1.x > e2.x ? false : e1.y < e2.y; }
  friend bool operator==(elf e1, elf e2) { return e1.x == e2.x && e1.y == e2.y; }
};

std::pair<int, int> day23(line_view);
} // namespace aoc2022