aoc/template/part_2.ts
2023-12-01 16:05:44 -07:00

22 lines
486 B
TypeScript

export const main = async (_lines: string[]): Promise<number | string> => {
return 10;
};
//
const isrun = process.argv.length > 1 && process.argv[1] === import.meta.path;
if (isrun) {
const file = Bun.file("./problem.txt");
const text = await file.text();
const lines = text.split("\n");
console.log("=== COMPUTATION ===\n");
const answer = await main(lines);
console.log("\n=== /COMPUTATION ===\n");
console.log("=== ANSWER TO P2 ===");
console.log(answer);
}