func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, b, a[22222], mx = 0;     cin >> n >> b;     mx = b;     for (int i = 0; i < n; i++) cin >> a[i];     for (int i = 0; i < n; i++) {       int k = b / a[i];       int s = b % a[i];       for (int j = i + 1; j < n; j++) {         int p = a[j] * k + s;         mx = max(mx, p);       }     }     cout << mx;     return 0;   }   