92812024-02-19 17:57:22KristófBájital (80 pont)cpp17Wrong answer 12/8041ms5380 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+2)/3;
    }



    return 0;
}
SubtaskSumTestVerdictTimeMemory
base12/80
1Accepted0/03ms1808 KiB
2Wrong answer0/03ms2004 KiB
3Wrong answer0/23ms2216 KiB
4Wrong answer0/23ms2432 KiB
5Wrong answer0/23ms2644 KiB
6Wrong answer0/23ms2868 KiB
7Wrong answer0/43ms2948 KiB
8Wrong answer0/43ms2948 KiB
9Wrong answer0/237ms4336 KiB
10Wrong answer0/239ms4216 KiB
11Wrong answer0/239ms4424 KiB
12Wrong answer0/237ms4524 KiB
13Wrong answer0/237ms4640 KiB
14Wrong answer0/237ms4640 KiB
15Wrong answer0/237ms4912 KiB
16Wrong answer0/239ms4756 KiB
17Wrong answer0/237ms4748 KiB
18Wrong answer0/241ms4876 KiB
19Wrong answer0/237ms4860 KiB
20Wrong answer0/237ms4988 KiB
21Wrong answer0/237ms5076 KiB
22Wrong answer0/237ms5072 KiB
23Wrong answer0/43ms3940 KiB
24Accepted4/43ms4068 KiB
25Wrong answer0/43ms4148 KiB
26Accepted4/424ms5380 KiB
27Wrong answer0/437ms5272 KiB
28Wrong answer0/437ms5284 KiB
29Wrong answer0/437ms5380 KiB
30Accepted2/237ms5276 KiB
31Accepted2/237ms5284 KiB
32Wrong answer0/237ms5276 KiB
33Wrong answer0/237ms5376 KiB