Program.cs 663 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace pruf
  8. {
  9. public class Program
  10. {
  11. static int[][] ConvertToIntArray(string[] lines) => lines.Select(line => line.Split(' ').Select(int.Parse).ToArray()).ToArray();
  12. static void Main(string[] args)
  13. {
  14. string path = @"D:\Galochkin\pruf\input.txt";
  15. string[] lines = File.ReadAllLines(path);
  16. int[][] arr = ConvertToIntArray(lines);
  17. PrufCode obj = new PrufCode(arr);
  18. obj.Realizing();
  19. Console.ReadLine();
  20. }
  21. }
  22. }