#include <iostream>
#include <iomanip>
int main()
{
using std::cout;
using std::setw;
using std::endl;
int myArray[10][10];
for (int i = 0; i<10; i++){
for (int j = 0; j<10; j++){
myArray[i][j] = 10 * i + j + 1;
}
}
for (int i = 0; i<10; i++){
for (int j = 0; j<10; j++){
cout << setw(5) << myArray[i][j];
}
cout << endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KCmludCBtYWluKCkKewogICAgdXNpbmcgc3RkOjpjb3V0OwogICAgdXNpbmcgc3RkOjpzZXR3OwogICAgdXNpbmcgc3RkOjplbmRsOwoKICAgIGludCBteUFycmF5WzEwXVsxMF07CgogICAgZm9yIChpbnQgaSA9IDA7IGk8MTA7IGkrKyl7CiAgICAgICAgZm9yIChpbnQgaiA9IDA7IGo8MTA7IGorKyl7CiAgICAgICAgICAgIG15QXJyYXlbaV1bal0gPSAxMCAqIGkgKyBqICsgMTsKICAgICAgICB9CiAgICB9CgoKICAgIGZvciAoaW50IGkgPSAwOyBpPDEwOyBpKyspewoKICAgICAgICBmb3IgKGludCBqID0gMDsgajwxMDsgaisrKXsKICAgICAgICAgICAgY291dCA8PCBzZXR3KDUpIDw8IG15QXJyYXlbaV1bal07CiAgICAgICAgfQogICAgICAgIGNvdXQgPDwgZW5kbDsKICAgIH0KfQ==