92972024-02-20 11:19:01KristófBájital (80 pont)cpp17Wrong answer 16/8039ms5488 KiB
#include <iostream>
#include <vector>
#include <bits/stdc++.h>



using namespace std;

int main()
{
    int n;
    cin>>n;
    int x;
    cin>>x;
    int m;
    vector <int> menny;
    for(int i=0;i<n;i++){
        cin>>m;
        menny.push_back(m);
    }
    int meg=0;
    int i=0;
    int ism=0;
    int max;
    for(int i=0;i<n;i++)
    {
        meg+=menny[i]/x;
        max+=menny[i];
    }
    cout<<min(meg,max/(x+1));



    return 0;
}
SubtaskSumTestVerdictTimeMemory
base16/80
1Accepted0/03ms1812 KiB
2Wrong answer0/03ms2068 KiB
3Wrong answer0/23ms2152 KiB
4Wrong answer0/23ms2116 KiB
5Accepted2/23ms2316 KiB
6Accepted2/23ms2588 KiB
7Wrong answer0/43ms2564 KiB
8Wrong answer0/43ms2560 KiB
9Wrong answer0/237ms3676 KiB
10Wrong answer0/239ms3888 KiB
11Wrong answer0/237ms3972 KiB
12Wrong answer0/237ms4096 KiB
13Wrong answer0/237ms4180 KiB
14Wrong answer0/237ms4400 KiB
15Wrong answer0/237ms4448 KiB
16Wrong answer0/237ms4536 KiB
17Wrong answer0/237ms4608 KiB
18Wrong answer0/237ms4828 KiB
19Wrong answer0/237ms4828 KiB
20Wrong answer0/237ms4828 KiB
21Wrong answer0/237ms5024 KiB
22Wrong answer0/237ms5016 KiB
23Wrong answer0/43ms3832 KiB
24Accepted4/43ms4036 KiB
25Accepted4/42ms4040 KiB
26Accepted4/424ms5296 KiB
27Wrong answer0/437ms5372 KiB
28Wrong answer0/437ms5388 KiB
29Wrong answer0/437ms5488 KiB
30Wrong answer0/237ms5372 KiB
31Wrong answer0/237ms5372 KiB
32Wrong answer0/239ms5388 KiB
33Wrong answer0/239ms5484 KiB