예제 #1
0
 public static void Main(string[] args)
 {
     var solver = new ChessMetricSolver();
     System.Console.WriteLine(solver.solve(3, new int[]{ 0, 0 }, new int[]{ 1, 0 }, 1));
     System.Console.WriteLine(solver.solve(3, new int[]{ 0, 0 }, new int[]{ 1, 2 }, 1));
     System.Console.WriteLine(solver.solve(3, new int[]{ 0, 0 }, new int[]{ 2, 2 }, 1));
     System.Console.WriteLine(solver.solve(3, new int[]{ 0, 0 }, new int[]{ 0, 0 }, 2));
     System.Console.WriteLine(solver.solve(100, new int[]{ 0, 0 }, new int[]{ 0, 99 }, 50));
 }
예제 #2
0
        public static void Main(string[] args)
        {
            var solver = new ChessMetricSolver();

            System.Console.WriteLine(solver.solve(3, new int[] { 0, 0 }, new int[] { 1, 0 }, 1));
            System.Console.WriteLine(solver.solve(3, new int[] { 0, 0 }, new int[] { 1, 2 }, 1));
            System.Console.WriteLine(solver.solve(3, new int[] { 0, 0 }, new int[] { 2, 2 }, 1));
            System.Console.WriteLine(solver.solve(3, new int[] { 0, 0 }, new int[] { 0, 0 }, 2));
            System.Console.WriteLine(solver.solve(100, new int[] { 0, 0 }, new int[] { 0, 99 }, 50));
        }