func_code_string: #include <bits/stdc++.h>   using namespace std;   long long lmin(long long a, long long b) {     if (a < b) return a;     return b;   }   long long lmax(long long a, long long b) {     if (a > b) return a;     return b;   }   int main() {     long long t1, t2, x1, x2, t0;     scanf(  %lld %lld %lld %lld %lld , &t1, &t2, &x1, &x2, &t0);     long long mint = 100000000000LL, mint2 = 10000000000000000LL;     double min = 10000000000000.000;     if (t2 == t0 && t1 != t0) {       printf( 0 %lld n , x2);       return 0;     } else if (t2 == t0 && t1 == t0) {       printf( %lld %lld n , x1, x2);       return 0;     }     for (long long i = 1; i <= x1; i++) {       double temp = (double)((t0 - t1) * i);       temp /= (double)(t2 - t0);       long long temp2 = (long long)temp;       double t = ((double)t1 * (double)i + (double)t2 * (double)temp2) /                  (double)(i + temp2);       if (temp > x2) continue;       long long temp3 = temp2 * (t2 - t0) - i * (t0 - t1);       if (temp3 >= 0) {         if (t <= min) {           min = t;           mint = temp2;           mint2 = i;         }       } else {         t = ((double)t1 * (double)i + (double)t2 * (double)(temp2 + 1)) /             (double)(i + temp2 + 1);         if (temp2 + 1 > x2) continue;         if (t <= min) {           min = t;           mint = temp2 + 1;           mint2 = i;         }       }     }     long long i = 1;     for (i = 1; mint2 * i <= x1 && mint * i <= x2; i++)       ;     if (mint2 * i > x1 || mint * i > x2) i--;     if (i == 0) {       mint2 = 0;       mint = x2;       i = 1;     }     printf( %lld %lld n , mint2 * i, mint * i);     return 0;   }   