コード例 #1
0
        public void Test2()
        {
            long[]     a      = new long[] { 1, 2, 3, 4 };
            List <int> result = Four.Solve(a);

            Assert.IsNull(result);
        }
コード例 #2
0
        public void Test3()
        {
            long[]     a      = new long[] { -1, -2, -3, -4, 5 };
            List <int> result = Four.Solve(a);

            Assert.IsNull(result);
        }
コード例 #3
0
        public void Test5()
        {
            long[]     a      = new long[] { -1, -2, 1, 2 };
            List <int> result = Four.Solve(a);

            Assert.IsNotNull(result);
            this.Check(a, result);
        }
コード例 #4
0
        public void Test1()
        {
            long[]     a      = new long[] { -7, 1, 3, 7, 10, -14, 20 };
            List <int> result = Four.Solve(a);

            Assert.IsNotNull(result);
            this.Check(a, result);
        }