126382024-12-27 14:12:34ffteklaAranycipők (45)cpp17Wrong answer 1/451ms508 KiB
#include <iostream>
#include <climits>

using namespace std;

int N,i,G[100],maxi=INT_MIN,db=0,x[100],j=1;
int main()
{
    cin>>N;
    for (i=1;i<=N;++i)
        cin>>G[i];

    for (i=1;i<=N;++i)
    {
        if (G[i]>maxi)
        {
            maxi=G[i];
        }
    }
    cout<<endl;
    cout<<maxi;
    cout<<endl;

    for (i=1;i<=N;++i)
    {
        if (G[i]==maxi)
        {
            ++db;
            x[j]=i;
            j++;

        }
    }
    cout<<db;
    cout<<endl;
    for (j=1;j<=db;++j)
        cout<<x[j]<<endl;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base1/45
1Wrong answer0/01ms320 KiB
2Wrong answer0/01ms320 KiB
3Wrong answer0/31ms496 KiB
4Partially correct1/31ms508 KiB
5Wrong answer0/31ms320 KiB
6Wrong answer0/31ms320 KiB
7Wrong answer0/31ms320 KiB
8Wrong answer0/31ms320 KiB
9Wrong answer0/31ms320 KiB
10Wrong answer0/31ms320 KiB
11Wrong answer0/31ms400 KiB
12Wrong answer0/31ms376 KiB
13Wrong answer0/31ms404 KiB
14Wrong answer0/31ms320 KiB
15Wrong answer0/31ms320 KiB
16Wrong answer0/31ms320 KiB
17Wrong answer0/31ms320 KiB