aoc-2023/day_17/solve_2.ts

8 lines
264 B
TypeScript
Raw Permalink Normal View History

2024-12-09 22:41:02 +09:00
import { readCostMap, solve_2} from "./solver.ts";
const input = await Deno.readTextFile("input.txt");
const costMap = readCostMap(input);
// console.log(costMap)
const result = solve_2(costMap, [costMap[0].length - 1, costMap.length - 1]);
console.log(result);