func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, m;     cin >> n >> m;     vector<int> a(n), b(n), c(n);     for (int i = 0; i < n; i++) cin >> a[i];     for (int i = 0; i < n; i++) cin >> b[i];     int ans = INT_MAX;     sort(a.begin(), a.end());     sort(b.begin(), b.end());     for (int i = 0; i < n; i++) {       int x = (b[i] - a[0] + m) % m;       for (int j = 0; j < n; j++) c[j] = (a[j] + x) % m;       sort(c.begin(), c.end());       if (c == b) ans = min(ans, x);     }     cout << ans << endl;   }   