72962024-01-06 14:58:52DhaneHaneKövek (100 pont)cpp17Wrong answer 0/10026ms3672 KiB
#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int db,n,o,k; cin>>n;
    vector <int> x; x.resize(n+1);
    o=0;
    for (int i=1;i<=n;++i)
    {
        cin>>x[i];
        o=o+x[i];
    }
    for (int i=1;i<=n;++i)
    {
        if (x[i]>o/n) ++db;
    }
    cout<<db;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/100
1Wrong answer0/03ms1808 KiB
2Wrong answer0/026ms2764 KiB
3Wrong answer0/52ms2144 KiB
4Wrong answer0/53ms2216 KiB
5Wrong answer0/52ms2332 KiB
6Wrong answer0/53ms2560 KiB
7Wrong answer0/53ms2552 KiB
8Wrong answer0/53ms2484 KiB
9Wrong answer0/73ms2596 KiB
10Wrong answer0/73ms2608 KiB
11Wrong answer0/83ms2612 KiB
12Wrong answer0/83ms2624 KiB
13Wrong answer0/83ms2884 KiB
14Wrong answer0/84ms3024 KiB
15Wrong answer0/810ms3300 KiB
16Wrong answer0/823ms3388 KiB
17Wrong answer0/826ms3672 KiB