예제 #1
0
    public static void Y2015_Day14_GetMaximumDistanceOfFastestReindeer()
    {
        // Arrange
        string[] flightData = new[]
        {
            "Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seconds.",
            "Dancer can fly 16 km/s for 11 seconds, but then must rest for 162 seconds.",
        };

        int timeIndex = 1000;

        // Act
        int actual = Day14.GetMaximumDistanceOfFastestReindeer(flightData, timeIndex);

        // Assert
        actual.ShouldBe(1120);
    }