using System;
using System.Collections.Generic;
public class Test
{
public static void Main()
{
List<List<int>> matriz = new List<List<int>>();
matriz.Add(new List<int> {3, 4, 1} );
matriz.Add(new List<int> {2, 4, 5} );
matriz.Add(new List<int> {44, 8, 9} );
int busca = 1;
for(int a = 0; a < matriz.Count; a++) {
for(int b = 0; b < matriz[a].Count; b++) {
if (matriz[a][b] == busca) {
Console.WriteLine("Busca: {0}, Linha: {1}, Coluna: {2}", busca, a, b);
}
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCSAgICBMaXN0PExpc3Q8aW50Pj4gbWF0cml6ID0gbmV3IExpc3Q8TGlzdDxpbnQ+PigpOwoJICAgIG1hdHJpei5BZGQobmV3IExpc3Q8aW50PiB7MywgNCwgMX0gICk7CgkgICAgbWF0cml6LkFkZChuZXcgTGlzdDxpbnQ+IHsyLCA0LCA1fSAgKTsKCSAgICBtYXRyaXouQWRkKG5ldyBMaXN0PGludD4gezQ0LCA4LCA5fSApOwoJCWludCBidXNjYSA9IDE7CgkgICAgZm9yKGludCBhID0gMDsgYSA8IG1hdHJpei5Db3VudDsgYSsrKSB7CgkgICAgICBmb3IoaW50IGIgPSAwOyBiIDwgbWF0cml6W2FdLkNvdW50OyBiKyspIHsKCSAgICAgICAgaWYgKG1hdHJpelthXVtiXSA9PSBidXNjYSkgewoJICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJCdXNjYTogezB9LCBMaW5oYTogezF9LCBDb2x1bmE6IHsyfSIsIGJ1c2NhLCBhLCBiKTsKCSAgICAgICAgfQoJICAgICAgfQoJICAgIH0KCX0KfQ==