func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, m, k;   int a[100];   int ans;   int main() {     cin >> n >> m >> k;     for (int i = 0; i < k; i++) {       cin >> a[i];       a[i]--;     }     for (int i = 0; i < n; i++) {       for (int j = 0; j < m; j++) {         int x;         cin >> x;         x--;         int pos = 0;         while (a[pos] != x) {           pos++;         }         ans += pos + 1;         for (int i = pos; i > 0; i--) {           a[i] = a[i - 1];         }         a[0] = x;       }     }     cout << ans;   }   