文件目录

#include <iostream>
using namespace std;
int main()
{
    int n, x;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < n; j++)
        {
            cin >> x;
            if (i == j || i + j == n - 1)
                x += 10;
            cout << x << " ";
        }
        cout << endl;
    }
    return 0;
}
int ans1()
{
    int n;
    int a[150][150] = {};
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < n; j++)
        {
            cin >> a[i][j];
        }
    }
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < n; j++)
        {
            if (i == j || i + j == n - 1)
                a[i][j] += 10;
            cout << a[i][j] << " ";
        }
        cout << endl;
    }
    return 0;
}