func_code_string: #include <bits/stdc++.h>   using namespace std;   int n;   vector<pair<int, int> > ans;   int a[1000000];   int b[1000000];   int main() {     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++) {       if (b[i] == a[i])         continue;       else {         for (int j = i + 1; j < n; j++) {           if (b[j] == a[i]) {             for (int k = j; k > i; k--) {               swap(b[k], b[k - 1]);               ans.push_back(make_pair(k - 1, k));             }             break;           }         }       }     }     cout << ans.size() << endl;     for (int i = 0; i < ans.size(); i++) {       cout << ++ans[i].first <<     << ++ans[i].second << endl;     }     return 0;   }   