func_code_string: #include <bits/stdc++.h>   using namespace std;   using LL = long long;   constexpr int N = 155;   int in[N][N];   int main() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     int n;     cin >> n;     for (int i = 1; i <= n; i++) {       for (int j = 1; j <= n; j++) {         cin >> in[i][j];       }     }     vector<int> ans(N);     for (int v = 1; v < n; v++) {       for (int i = 1; i <= n; i++) {         bool f1 = false;         bool f2 = true;         for (int j = 1; j <= n; j++) {           if (in[i][j] == v)             f1 = true;           else {             if (in[i][j] != -1 and in[i][j] != 0) f2 = false;           }         }         if (f1 && f2) {           ans[i] = v;           for (int j = 1; j <= n; j++) in[i][j] = in[j][i] = -1;           break;         }       }     }     for (int i = 1; i <= n; i++) cout << (ans[i] == 0 ? n : ans[i]) <<    ;   }   