コード例 #1
0
        public void ExampleC()
        {
            string c = "010\n" +
                       "101\n" +
                       "010";

            Assert.Equal(4, PathFinderTheAlpinist.PathFinder(c));
        }
コード例 #2
0
        public void ExampleB()
        {
            string b = "010\n" +
                       "010\n" +
                       "010";

            Assert.Equal(2, PathFinderTheAlpinist.PathFinder(b));
        }
コード例 #3
0
        public void ExampleA()
        {
            string a = "000\n" +
                       "000\n" +
                       "000";

            Assert.Equal(0, PathFinderTheAlpinist.PathFinder(a));
        }
コード例 #4
0
        public void ExampleM()
        {
            string m = "949\n" +
                       "618\n" +
                       "524";

            Assert.Equal(9, PathFinderTheAlpinist.PathFinder(m));
        }
コード例 #5
0
        public void ExampleD()
        {
            string d = "0707\n" +
                       "7070\n" +
                       "0707\n" +
                       "7070";

            Assert.Equal(42, PathFinderTheAlpinist.PathFinder(d));
        }
コード例 #6
0
        public void ExampleG()
        {
            string g = "000000\n" +
                       "000000\n" +
                       "000000\n" +
                       "000010\n" +
                       "000109\n" +
                       "001010";

            Assert.Equal(4, PathFinderTheAlpinist.PathFinder(g));
        }
コード例 #7
0
        public void ExampleF()
        {
            string f = "777000\n" +
                       "007000\n" +
                       "007000\n" +
                       "007000\n" +
                       "007000\n" +
                       "007777";

            Assert.Equal(0, PathFinderTheAlpinist.PathFinder(f));
        }
コード例 #8
0
        public void ExampleE()
        {
            string e = "700000\n" +
                       "077770\n" +
                       "077770\n" +
                       "077770\n" +
                       "077770\n" +
                       "000007";

            Assert.Equal(14, PathFinderTheAlpinist.PathFinder(e));
        }
コード例 #9
0
        public void ExampleL()
        {
            string l = "777777\n" +
                       "000007\n" +
                       "000007\n" +
                       "000007\n" +
                       "007777\n" +
                       "007000";

            Assert.Equal(7, PathFinderTheAlpinist.PathFinder(l));
        }
コード例 #10
0
        public void ExampleI()
        {
            string i = "777000\n" +
                       "000000\n" +
                       "000000\n" +
                       "000000\n" +
                       "000000\n" +
                       "000007";

            Assert.Equal(14, PathFinderTheAlpinist.PathFinder(i));
        }
コード例 #11
0
        public void ExampleH()
        {
            string h = "747062171\n" +
                       "904866986\n" +
                       "340268947\n" +
                       "974542098\n" +
                       "574036106\n" +
                       "567149757\n" +
                       "726658263\n" +
                       "848862682\n" +
                       "755104617";

            Assert.Equal(34, PathFinderTheAlpinist.PathFinder(h));
        }