protected override long ComputeResultLogic(Day3InputModel input) { var slope1 = Day3Helper.GetNumberOfTreesBySlope(input, 1, 1); var slope2 = Day3Helper.GetNumberOfTreesBySlope(input, 1, 3); var slope3 = Day3Helper.GetNumberOfTreesBySlope(input, 1, 5); var slope4 = Day3Helper.GetNumberOfTreesBySlope(input, 1, 7); var slope5 = Day3Helper.GetNumberOfTreesBySlope(input, 2, 1); long treesMultiplied = (long)slope1 * slope2 * slope3 * slope4 * slope5; return(treesMultiplied); }
protected override long ComputeResultLogic(Day3InputModel input) { return(Day3Helper.GetNumberOfTreesBySlope(input, 1, 3)); }