static void Main() { int n = Convert.ToInt32(Console.ReadLine()); int[][] grid = new int[n][]; for (int a_i = 0; a_i < n; a_i++) { string[] a_temp = Console.ReadLine().Split(' '); grid[a_i] = Array.ConvertAll(a_temp, Int32.Parse); } Solution s = new Solution(grid, n); s.diagonalDifference(); Console.ReadKey(); }