diff --git a/AdventOfCode/Problems/AOC2022/Day4/CampCleanup.cs b/AdventOfCode/Problems/AOC2022/Day4/CampCleanup.cs index 2271a9b..984b453 100644 --- a/AdventOfCode/Problems/AOC2022/Day4/CampCleanup.cs +++ b/AdventOfCode/Problems/AOC2022/Day4/CampCleanup.cs @@ -25,7 +25,9 @@ internal class CampCleanup : Problem .Chunk(2) .Select(r => new Range(r.First(), r.Last())) .First() - ).Chunk(2).Select(pair => (pair.First(), pair.Last())).First(); + ).Chunk(2) + .Select(pair => (pair.First(), pair.Last())) + .First(); _pairs.Add((a, b)); } } @@ -64,6 +66,6 @@ internal class CampCleanup : Problem return (B >= other.A && A <= other.A) || (A <= other.B && B >= other.B) || (A >= other.A && B <= other.B); } - public static implicit operator Range((int a, int b) value) => new Range(value.a, value.b); + public static implicit operator Range((int a, int b) value) => new (value.a, value.b); } } diff --git a/AdventOfCode/Runner/AOCRunner.cs b/AdventOfCode/Runner/AOCRunner.cs index cd80819..359f4f4 100644 --- a/AdventOfCode/Runner/AOCRunner.cs +++ b/AdventOfCode/Runner/AOCRunner.cs @@ -121,7 +121,7 @@ public class AOCRunner Console.ForegroundColor = ConsoleColor.Green; Console.Write("Done in "); Console.ForegroundColor = ConsoleColor.Cyan; - Console.WriteLine($"{sw.ElapsedMilliseconds}ms"); + Console.WriteLine($"{sw.Elapsed.TotalMilliseconds:n}ms"); } catch (NotImplementedException) {