using System;
public class Test
{
public static void Main()
{
// your code goes here
int[][] a = new int[5][];
Array.Fill(a,new int[5]);
printMatrix(a);
a[1][2]=3;
printMatrix(a);
}
private static void printMatrix(int[][]arr)
{
for (int i = 0; i < arr.GetLength(0); i++)
{
for (int j = 0; j < arr[i].GetLength(0); j++)
{
Console.Write(arr[i][j]+" ");
}
Console.WriteLine();
}
Console.WriteLine();
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJCglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJCWludFtdW10gYSA9IG5ldyBpbnRbNV1bXTsKCQlBcnJheS5GaWxsKGEsbmV3IGludFs1XSk7CgkJcHJpbnRNYXRyaXgoYSk7CgkJYVsxXVsyXT0zOwoJCXByaW50TWF0cml4KGEpOwoJfQoJCglwcml2YXRlIHN0YXRpYyB2b2lkIHByaW50TWF0cml4KGludFtdW11hcnIpCgl7CgkJZm9yIChpbnQgaSA9IDA7IGkgPCBhcnIuR2V0TGVuZ3RoKDApOyBpKyspCiAgICAgICAgewogICAgICAgICAgICBmb3IgKGludCBqID0gMDsgaiA8IGFycltpXS5HZXRMZW5ndGgoMCk7IGorKykKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZShhcnJbaV1bal0rIiAiKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgpOwogICAgICAgIH0KICAgICAgICBDb25zb2xlLldyaXRlTGluZSgpOwoJfQoJCn0=