func_code_string: #include <bits/stdc++.h>   using namespace std;   long long read() {     long long k = 1, x = 0;     char c = getchar();     while (c <  0  || c >  9 ) {       if (c ==  - ) k = -1;       c = getchar();     }     while (c >=  0  && c <=  9 ) {       x = (x << 3) + (x << 1) + (c - 48);       c = getchar();     }     return x * k;   }   long long n, m, f[2001][2001], s[2001][2001], res[300000], p = 998244353;   long long a[1000604], k, ans, now;   int main() {     n = read();     k = read();     for (int i = 1; i <= n; i++) {       a[i] = read();     }     ans = 0;     sort(a + 1, a + 1 + n);     for (int v = 1; v * (k - 1) <= a[n]; v++) {       now = 0;       f[0][0] = 1;       for (int i = 1; i <= n; i++) {         while (a[i] - a[now + 1] >= v) now++;         f[i][0] = f[i - 1][0];         for (int j = 1; j <= k; j++) {           f[i][j] = (f[i - 1][j] + f[now][j - 1]) % p;         }       }       ans = (ans + f[n][k]) % p;     }     printf( %lld n , ans % p);   }   