func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     cin.tie(0);     cin.sync_with_stdio(0);     int n, t1, t2;     double k;     cin >> n >> t1 >> t2 >> k;     k /= 100;     k = 1 - k;     double c[n + 1];     for (int i = 1; i <= n; i++) {       int a, b;       cin >> a >> b;       int tema = a;       int temb = b;       a = max(a, temb);       b = min(tema, b);       if (t1 * k >= t2) {         c[i] = t1 * a * k + t2 * b;       } else {         c[i] = t1 * b * k + t2 * a;       }     }     int g[n + 1];     for (int i = 1; i <= n; i++) {       g[i] = i;     }     for (int i = 1; i <= n; i++) {       for (int j = i; j <= n; j++) {         if (c[j] > c[i] || (c[j] == c[i] && g[j] < g[i])) {           double temb = c[i];           c[i] = c[j];           c[j] = temb;           int temb2 = g[i];           g[i] = g[j];           g[j] = temb2;         }       }     }     for (int i = 1; i <= n; i++) {       cout << g[i] <<     << fixed << setprecision(2) << c[i] <<    ;       cout <<   n ;     }     return 0;   }   