aboutsummaryrefslogtreecommitdiff
path: root/src/2015/day14/aoc.cpp
blob: 0f3859ceb2eb46175e88f9ba140a1394627f3a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "aoc.h"
namespace aoc2015 {
int day14(line_view file, int seconds) {
  olympics games;
  per_line(file, [&games](line_view lv) {
    games.parse(lv);
    return true;
  });
  auto p = games.best(seconds);
  return p.second;
}

} // namespace aoc2015