114322024-09-17 07:19:59madvirAranycipők (45)cpp17Wrong answer 17/454ms504 KiB
#include <iostream>

using namespace std;

int main()
{
    int n, maxi=1;
    cin >> n;
    int a[n];
    for(int i=0; i<n; i++) {
        cin >> a[i];
        if(a[i]>maxi) maxi=a[i];
    }
    cout<< maxi << endl;
    for(int i=0; i<n; i++) {
        if(a[i]==maxi) cout << i+1 << endl;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base17/45
1Wrong answer0/03ms360 KiB
2Wrong answer0/03ms296 KiB
3Partially correct2/32ms360 KiB
4Partially correct1/32ms360 KiB
5Partially correct1/32ms360 KiB
6Partially correct1/32ms360 KiB
7Partially correct1/33ms400 KiB
8Partially correct2/32ms360 KiB
9Partially correct1/33ms504 KiB
10Partially correct1/34ms384 KiB
11Partially correct1/33ms384 KiB
12Partially correct1/32ms256 KiB
13Partially correct1/33ms232 KiB
14Partially correct1/34ms384 KiB
15Partially correct1/34ms360 KiB
16Partially correct1/33ms256 KiB
17Partially correct1/34ms360 KiB