23082023-01-10 07:46:12szabel26Kövek (100 pont)cpp17Wrong answer 27/10026ms5148 KiB
#include <iostream>
#include <vector>

using namespace std;

vector<int>x;

int n,i,s,a,cel,lepes;

int main()
{
    cin>>n;
    for(i=1;i<=n;++i)
    {
        cin>>a;
        x.push_back(a);
        s+=a;
    }
    cel=s/n;
    for(i=0;i<n;++i)
    {
        if(x[i]>cel) ++lepes;
    }
    cout<<lepes;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base27/100
1Accepted0/03ms1872 KiB
2Wrong answer0/026ms3248 KiB
3Accepted5/52ms2344 KiB
4Accepted5/52ms2544 KiB
5Wrong answer0/52ms2604 KiB
6Wrong answer0/52ms2736 KiB
7Accepted5/52ms3092 KiB
8Accepted5/52ms3084 KiB
9Accepted7/72ms3264 KiB
10Wrong answer0/72ms3432 KiB
11Wrong answer0/82ms3480 KiB
12Wrong answer0/82ms3556 KiB
13Wrong answer0/83ms3732 KiB
14Wrong answer0/84ms4120 KiB
15Wrong answer0/810ms4476 KiB
16Wrong answer0/824ms5112 KiB
17Wrong answer0/826ms5148 KiB