feat: solve part 1

This commit is contained in:
Stevan Freeborn
2023-12-08 21:46:28 -06:00
parent 1506d716fb
commit b05f886666
5 changed files with 234 additions and 14 deletions
+9 -2
View File
@@ -1,4 +1,5 @@
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Text.RegularExpressions;
namespace Trebuchet;
@@ -23,9 +24,15 @@ public class Program
: new PartOnePuzzleSolver();
var input = await File.ReadAllLinesAsync(args[0]);
var stopwatch = new Stopwatch();
stopwatch.Start();
var result = puzzleSolver.SumCalibrationValues(input);
Console.WriteLine($"The sum of all calibration values is {result}.");
stopwatch.Stop();
Console.WriteLine($"The sum of all calibration values is {result}. ({stopwatch.ElapsedMilliseconds}ms)");
return result;
}