示例#1
0
        static void Main(string[] args)
        {
            int[]    t = { -5, -5, -5, -42, 6, 12 };
            Solution q = new Solution(t);

            Console.WriteLine("Winter Length = " + q.solution());
        }
示例#2
0
 public void Test2()
 {
     Solution instance = new Solution();
     string S = @"00:01:07,400-234-090
     00:05:01,701 - 080 - 080
     00:05:00,400 - 234 - 090";
     int R = instance.solution(S);
     Assert.AreEqual(R, 900);
 }
示例#3
0
        static void Main(string[] args)
        {
            var solution = new Solution();

            int[] test = new int[] { 1, 2, 3, 4 };

            Print(solution.solution(test, 1));
            Print(solution.solution(test, 2));
            Print(solution.solution(test, 3));
            Print(solution.solution(test, 4));
            Print(solution.solution(test, 5));
            Print(solution.solution(test, 8));
            Print(solution.solution(test, 10));
            Print(solution.solution(test, 256));
        }