chore: setup for day 6

This commit is contained in:
Stevan Freeborn
2024-12-06 14:26:48 -06:00
parent 3d23ae0dd3
commit 75af0819fa
5 changed files with 86 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
using System.Diagnostics;
if (args.Length is 0)
{
Console.WriteLine("Please provide a path to the input file.");
return;
}
if (File.Exists(args[0]) is false)
{
Console.WriteLine("The provided file does not exist.");
return;
}
var isPart2 = args.Length is 2 && args[1] is "part2";
var input = await File.ReadAllTextAsync(args[0]);
var stopwatch = new Stopwatch();
stopwatch.Start();
// TODO: Implement solution
stopwatch.Stop();
// TODO: Print result
Console.WriteLine($". ({stopwatch.ElapsedMilliseconds}ms)");