public class Main {
public static void main
(String[] args
) { int[][] data = {
{2, 3, 4},
{1, 7, 8},
{3, 4, 5}
};
for (int[] v: data) {
for (int i = 0; i < v[0]; i++) {
}
}
}
}
cHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIGludFtdW10gZGF0YSA9IHsKICAgICAgICAgICAgezIsIDMsIDR9LAogICAgICAgICAgICB7MSwgNywgOH0sCiAgICAgICAgICAgIHszLCA0LCA1fQogICAgICAgIH07CiAgICAgICAgZm9yIChpbnRbXSB2OiBkYXRhKSB7CiAgICAgICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgdlswXTsgaSsrKSB7CiAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oU3RyaW5nLnZhbHVlT2YodlswXSkgKyBTdHJpbmcudmFsdWVPZih2WzFdKSArIFN0cmluZy52YWx1ZU9mKHZbMl0pKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQo=