func_code_string: #include <bits/stdc++.h>   using namespace std;   void frepn() {     freopen(                     .in ,          r , stdin);     freopen(                     .out ,          w , stdout);   }   const int N = 50500;   const long long INF = (1e17) + 777;   const int mod = (1e9) + 7;   int n, a[N], k, t;   int ans, ans2, ans3, ans4;   int main() {     ios_base::sync_with_stdio(0);     ;     cin >> n >> k >> t;     ans = k * t;     for (int i = 1; i <= n; i++) {       cin >> a[i];       ans4 += a[i];     }     sort(a + 1, a + 1 + n);     for (int i = n - k; i <= n; i++) {       ans2 += a[i];     }     for (int i = 1; i <= n - k; i++) {       ans3 += a[i];     }     if (ans2 < ans)       cout << ans4;     else       cout << ans3 + ans;     return 0;   }   