74082024-01-08 15:04:38rancealexkriszAranycipők (45)cpp17Wrong answer 44/454ms3772 KiB
#include <iostream>

using namespace std;

int main()
{
    int gol[100] = {0};

    int n,x,max=0;
    cin>>n;
    int jat[n] = {0};
    for(int i=1;i<=n;i++)
    {
       cin>>x;
       gol[x]++;
       if(max<x) max=x;
       jat[i]=x;

    }
    cout<<max<<endl;
    cout<<gol[max]<<endl;
    for(int i=1;i<=n;i++)
    {
        if(jat[i]==max) cout<<i<<endl;
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base44/45
1Accepted0/03ms1872 KiB
2Wrong answer0/03ms2128 KiB
3Accepted3/33ms2332 KiB
4Accepted3/33ms2532 KiB
5Accepted3/33ms2736 KiB
6Accepted3/33ms2824 KiB
7Accepted3/33ms2788 KiB
8Partially correct2/33ms2788 KiB
9Accepted3/33ms3032 KiB
10Accepted3/34ms3244 KiB
11Accepted3/33ms3456 KiB
12Accepted3/33ms3536 KiB
13Accepted3/33ms3540 KiB
14Accepted3/34ms3564 KiB
15Accepted3/33ms3560 KiB
16Accepted3/33ms3692 KiB
17Accepted3/34ms3772 KiB