func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     long long n;     cin >> n;     unordered_map<long long, long long> mymap;     long long maxval = INT_MIN, minval = INT_MAX;     for (int i = 0; i < n; i++) {       long long temp;       cin >> temp;       mymap[temp]++;       if (temp > maxval) maxval = temp;       if (temp < minval) minval = temp;     }     cout << maxval - minval <<    ;     if (maxval == minval)       cout << (mymap[maxval] * (mymap[maxval] - 1)) / 2 << endl;     else       cout << mymap[maxval] * mymap[minval] << endl;     return 0;   }   