func_code_string: #include <bits/stdc++.h>   using namespace std;   vector<pair<int, int> > ans;   int a[305], b[305], n;   int cur[305];   map<int, vector<int> > m;   int main() {     ios_base::sync_with_stdio(0);     cin >> n;     for (int i = 0; i < n; i++) cin >> a[i];     for (int i = 0; i < n; i++) cin >> b[i];     for (int i = 0; i < n; i++) {       m[a[i]].push_back(i);     }     for (auto &x : m) reverse(x.second.begin(), x.second.end());     for (int i = 0; i < n; i++) {       cur[i] = m[b[i]].back();       m[b[i]].pop_back();     }     for (int i = 0; i < n; i++)       if (1) cerr << cur[i] <<    ;     if (1) cerr <<   n ;     for (int i = 0; i < n; i++)       for (int j = 0; j < n - 1; j++) {         if (cur[j] > cur[j + 1]) {           ans.push_back({j + 1, j + 2});           swap(cur[j], cur[j + 1]);         }       }     cout << ans.size() <<   n ;     for (auto x : ans) cout << x.first <<     << x.second <<   n ;   }   