92922024-02-20 10:24:09KristófBájital (80 pont)cpp17Wrong answer 12/8039ms9904 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]%x;
    }
    if(max>=meg){
    cout<<meg;
    }
    else
    {
        cout<<meg-(meg-max)/3;
    }



    return 0;
}
SubtaskSumTestVerdictTimeMemory
base12/80
1Accepted0/03ms1940 KiB
2Wrong answer0/03ms2192 KiB
3Wrong answer0/23ms2424 KiB
4Wrong answer0/23ms2436 KiB
5Wrong answer0/23ms2572 KiB
6Wrong answer0/23ms2792 KiB
7Wrong answer0/43ms2880 KiB
8Wrong answer0/43ms2896 KiB
9Wrong answer0/237ms4808 KiB
10Wrong answer0/239ms5436 KiB
11Wrong answer0/239ms6352 KiB
12Wrong answer0/237ms7240 KiB
13Wrong answer0/239ms7988 KiB
14Wrong answer0/237ms8060 KiB
15Wrong answer0/237ms8280 KiB
16Wrong answer0/239ms8360 KiB
17Wrong answer0/239ms8348 KiB
18Wrong answer0/237ms8572 KiB
19Wrong answer0/237ms8576 KiB
20Wrong answer0/237ms8564 KiB
21Wrong answer0/239ms8696 KiB
22Wrong answer0/237ms8916 KiB
23Wrong answer0/43ms8016 KiB
24Accepted4/43ms8232 KiB
25Wrong answer0/43ms8320 KiB
26Accepted4/424ms9620 KiB
27Wrong answer0/437ms9716 KiB
28Wrong answer0/437ms9812 KiB
29Wrong answer0/437ms9904 KiB
30Accepted2/237ms9816 KiB
31Accepted2/237ms9896 KiB
32Wrong answer0/237ms9900 KiB
33Wrong answer0/237ms9812 KiB