aboutsummaryrefslogtreecommitdiff
path: root/src/2018/day3/aoc.cpp
blob: c5aa4039a4da964caaf8c9f624ca4b130e00f7c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "aoc.h"

namespace aoc2018 {

int day3(line_view file, int x) {
  fabric* f = new fabric;
  per_line(file, [&f](line_view lv) {
    f->parse(lv);
    return true;
  });

  return f->count(x);
}

} // namespace aoc2018