19 lines
385 B
Cheetah
19 lines
385 B
Cheetah
import fs from "node:fs";
|
|
import { printTime, now } from "../util";
|
|
|
|
const data = fs.readFileSync("./inputs/input", "utf8");
|
|
|
|
let timer = now.instant();
|
|
console.log(
|
|
"part one:",
|
|
data.split("\n").slice(0, -1),
|
|
printTime(now.instant().since(timer))
|
|
);
|
|
|
|
timer = now.instant();
|
|
console.log(
|
|
"part two:",
|
|
data.split("\n").slice(0, -1),
|
|
printTime(now.instant().since(timer))
|
|
);
|