using System; using System.IO; using System.Collections; using System.Collections.Generic; class Example { public static void Main() { try { int nv,ne,m, // вхідні дані з першого рядка i0=0, // індекс того, що знаємо i1=1, // індекс того, що обчислюємо j,k,l; // лічильники int [,] c = new int [2,9]; // c[,j] - кількість маршрутів у вершину j using (StreamReader file = new StreamReader("input.txt")) { string[] s = file.ReadLine().Split(' '); nv = Int32.Parse(s[0]); ne = Int32.Parse(s[1]); m = Int32.Parse(s[2]); List> b = new List>();// списки суміжності for (j=0; j()); for (l=0; l