/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Matrix m1 = new Matrix(3,2);
//System.out.println(m1.m +" "+ m1.n); -> Mostra corretamente os valores "3" e "2"
m1.arr[0][0] = 1;
m1.arr[1][1] = 1;
m1.arr[2][0] = 1;
m1.arr[0][1] = 1;
m1.arr[1][0] = 1;
m1.arr[2][1] = 1;
for(int[] i : m1.arr){
for(int n : i){
}
}
//Matrix m2 = new Matrix(3,2); // your code goes here
}
}
class Matrix {
Scanner ler
= new Scanner
(System.
in); int m;
int n;
int [][] arr;
Matrix(int a, int b){
m = a;
n = b;
arr = new int[m][n];
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJICBNYXRyaXggbTEgPSBuZXcgTWF0cml4KDMsMik7CiAgICAgIC8vU3lzdGVtLm91dC5wcmludGxuKG0xLm0gKyIgIisgbTEubik7IC0+IE1vc3RyYSBjb3JyZXRhbWVudGUgb3MgdmFsb3JlcyAiMyIgZSAiMiIKICAgICAgbTEuYXJyWzBdWzBdID0gMTsKICAgICAgbTEuYXJyWzFdWzFdID0gMTsKICAgICAgbTEuYXJyWzJdWzBdID0gMTsKICAgICAgbTEuYXJyWzBdWzFdID0gMTsKICAgICAgbTEuYXJyWzFdWzBdID0gMTsKICAgICAgbTEuYXJyWzJdWzFdID0g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