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

} // namespace aoc2015