Browse Source

cleanup

master
mid-kid 2 years ago
parent
commit
f2910faba9
  1. 4
      d09.cc

4
d09.cc

@ -88,8 +88,8 @@ void output_img(const vector<Pos2d> &knot, const unordered_set<Pos2d> &visited)
TAIL,
HEAD
};
unsigned width = max_x - min_x;
unsigned height = max_y - min_y;
unsigned width = max_x + 1 - min_x;
unsigned height = max_y + 1 - min_y;
auto map = vector<enum Grid>(width * height);
for (auto i : visited) map[(i.y - min_y) * width + (i.x - min_x)] = VISITED;

Loading…
Cancel
Save