day6_part1.carbon 399 B

12345678910111213141516
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. // https://adventofcode.com/2024/day/6
  5. import Core library "io";
  6. import library "day6_common";
  7. fn Run() {
  8. var maze: Maze = Maze.Read();
  9. while (maze.Step()) {
  10. }
  11. Core.Print(maze.CountVisited());
  12. }