func_code_string: #include <bits/stdc++.h>   using namespace std;   int mediana(vector<int> &v) {     if (int(v.size()) % 2 == 1) return v[int(v.size()) / 2];     return v[int(v.size()) / 2 - 1];   }   bool esta(vector<int> &v, int x) {     for (int i = 0; i < int(v.size()); i++)       if (v[i] == x) return true;     return false;   }   int main() {     int n, x;     cin >> n >> x;     vector<int> v(n);     for (int i = 0; i < n; i++) cin >> v[i];     sort(v.begin(), v.end());     int amount = 0;     while (mediana(v) != x) {       if (not esta(v, x))         v.push_back(x);       else if (mediana(v) < x)         v.push_back(1000000001);       else         v.push_back(-1);       amount++;       sort(v.begin(), v.end());     }     cout << amount << endl;   }   