func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int i, j, m, n, k, a[1100], b[1100][10], count = 0;     cin >> n >> m >> k;     for (i = 0; i <= m; i++) a[i] = 10000000;     for (i = 1; i <= n; i++) {       for (j = 0; j < 2; j++) cin >> b[i][j];       if (a[b[i][0]] > b[i][1]) a[b[i][0]] = b[i][1];     }     for (i = 1; i <= m; i++) count += a[i];     if (count > k)       cout << k << endl;     else       cout << count << endl;     return 0;   }   