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