func_code_string: #include <bits/stdc++.h>   #pragma GCC target( avx2 )   #pragma GCC optimization( O3 )   #pragma GCC optimization( unroll-loops )   using namespace std;   template <class T1, class T2>   ostream &operator<<(ostream &os, const pair<T1, T2> &p) {     os <<  {  << p.first <<  ,  << p.second <<  } ;     return os;   }   const int N = 3e5 + 5;   const int oo = 1e9 + 7;   double s, a, b, c;   double func(double x, double y, double z) {     return a * log(x) + b * log(y) + c * log(z);   }   double ans2(double x, double S, double &y) {     double l = 1e-9, r = S;     for (int i = 0; i < 500; i++) {       double l1 = (l * 2 + r) / 3;       double l2 = (l + 2 * r) / 3;       if (func(x, l1, S - l1) > func(x, l2, S - l2))         r = l2;       else         l = l1;     }     y = l;     return func(x, l, S - l);   }   pair<double, pair<double, double> > ans1(double S) {     double l = 1e-9, r = S;     double y;     for (int i = 0; i < 500; i++) {       double l1 = (l * 2 + r) / 3;       double l2 = (l + 2 * r) / 3;       if (ans2(l1, S - l1, y) > ans2(l2, S - l2, y))         r = l2;       else         l = l1;     }     ans2(l, S - l, y);     return {l, {y, S - l - y}};   }   int32_t main() {     ios::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     cin >> s >> a >> b >> c;     auto x = ans1(s);     cout << fixed << setprecision(15) << x.first <<     << x.second.first <<              << x.second.second <<   n ;   }   