aoc-2023/day_17/solve.ts
2024-12-09 22:41:02 +09:00

8 lines
262 B
TypeScript

import { readCostMap, solve} from "./solver.ts";
const input = await Deno.readTextFile("example.txt");
const costMap = readCostMap(input);
// console.log(costMap)
const result = solve(costMap, [costMap[0].length - 1, costMap.length - 1]);
console.log(result);