103652024-04-01 12:20:26MagyarKendeSZLGBájital (80 pont)cpp17Accepted 80/8039ms19008 KiB
#include <bits/stdc++.h>
using namespace std;

long long N, X, A, sum, divS;
int main() {
    cin >> N >> X;
    while (N--) {
        cin >> A;
        sum += A;
        divS += A / X;
    }
    cout << min(sum / (X + 1), divS);
}
SubtaskSumTestVerdictTimeMemory
base80/80
1Accepted0/03ms1872 KiB
2Accepted0/03ms2124 KiB
3Accepted2/23ms2340 KiB
4Accepted2/23ms2556 KiB
5Accepted2/23ms2720 KiB
6Accepted2/23ms2940 KiB
7Accepted4/43ms3024 KiB
8Accepted4/43ms3044 KiB
9Accepted2/237ms3700 KiB
10Accepted2/239ms4596 KiB
11Accepted2/239ms5380 KiB
12Accepted2/239ms6168 KiB
13Accepted2/237ms6852 KiB
14Accepted2/237ms7608 KiB
15Accepted2/237ms8204 KiB
16Accepted2/237ms9012 KiB
17Accepted2/237ms9784 KiB
18Accepted2/237ms10544 KiB
19Accepted2/237ms11364 KiB
20Accepted2/237ms12072 KiB
21Accepted2/237ms12644 KiB
22Accepted2/237ms13320 KiB
23Accepted4/43ms13560 KiB
24Accepted4/43ms13688 KiB
25Accepted4/43ms13580 KiB
26Accepted4/424ms13852 KiB
27Accepted4/437ms14792 KiB
28Accepted4/437ms15452 KiB
29Accepted4/437ms16216 KiB
30Accepted2/237ms16976 KiB
31Accepted2/237ms17656 KiB
32Accepted2/239ms18332 KiB
33Accepted2/239ms19008 KiB