public static void Main() { // Read dimensions - Not used. Console.ReadLine().Split(' '); // Create the list of layers. List <Layer> layers = new List <Layer>(); // Get number of queries int numQueries = Convert.ToInt32(Console.ReadLine()); for (int i = 0; i < numQueries; i++) { Query query = Query.FromString(Console.ReadLine()); ProcessQuery(layers, query); } }
public static void Main() { // Create the matrix from the input. string[] dimensions = Console.ReadLine().Split(' '); int rows = Convert.ToInt32(dimensions[0]); int cols = Convert.ToInt32(dimensions[1]); List <Layer> layers = new List <Layer>(); // Get number of queries int numQueries = Convert.ToInt32(Console.ReadLine()); for (int i = 0; i < numQueries; i++) { Query query = Query.FromString(Console.ReadLine()); ProcessQuery(layers, query); } }