func_code_string: #include <bits/stdc++.h>   using namespace std;   long long n;   long long res, rem;   long long narr[100001];   long long tempint;   int main() {     scanf( %I64d , &n);     for (int i = 0; i < n; ++i) scanf( %I64d , narr + i);     sort(narr, narr + n);     reverse(narr, narr + n);     for (int i = 0; i < n; ++i) res += narr[i];     tempint = n - 1;     for (int i = 0; i < n; ++i, tempint -= 2) res += 2 * narr[i] * (tempint);     long long ores = res, on = n;     while (1) {       rem = ores % on;       if (rem == 0) {         break;       }       ores = on;       on = rem;     }     printf( %I64d %I64d , res / on, n / on);   }   