func_code_string: #include <bits/stdc++.h>   using namespace std;   double A[100], B[100];   int main() {     int n, V;     cin >> n >> V;     double S = 0.0;     for (int i = 0; i < n; i++) {       cin >> A[i];       S += A[i];     }     for (int i = 0; i < n; i++) A[i] *= V / S;     double MIN = 1.0;     for (int i = 0; i < n; i++) {       cin >> B[i];       MIN = min(MIN, B[i] / A[i]);     }     double result = 0.0;     for (int i = 0; i < n; i++) result += A[i] * MIN;     cout.precision(10);     cout << result;     return 0;   }   