Пример #1
0
        public string SolveSecondStar(StreamReader reader)
        {
            treeMap = StreamParsers.GetStreamAs2DIntArray(reader);

            var treeProduct = CountTrees(1, 1) * CountTrees(3, 1) * CountTrees(5, 1) * CountTrees(7, 1) * CountTrees(1, 2);

            return(treeProduct.ToString());
        }
Пример #2
0
        public string SolveFirstStar(StreamReader reader)
        {
            treeMap = StreamParsers.GetStreamAs2DIntArray(reader);

            return(CountTrees(3, 1).ToString());
        }