17492022-12-02 18:30:17levente19Késéscpp11Wrong answer 0/5028ms6748 KiB
#include <bits/stdc++.h>
#define gyorsan ios::sync_with_stdio(0);cin.tie(0)

using namespace std;

int main() {
    gyorsan;

    int idopill;
    vector<int> evsz;

    cin >> idopill;

    for(int i = 0; i < idopill; i++) {
        int ev;
        cin >> ev;
        evsz.push_back(ev);
    }

    for(int i = 1; i < evsz.size()-1; i++) {
        if(evsz[i] == evsz[0] && evsz[i+1] == evsz[1]) {
            cout << i+1 << endl;
            break;
        }
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Accepted0/03ms1704 KiB
2Wrong answer0/04ms2312 KiB
3Wrong answer0/52ms2080 KiB
4Wrong answer0/52ms2264 KiB
5Wrong answer0/518ms4624 KiB
6Wrong answer0/518ms4940 KiB
7Wrong answer0/425ms5008 KiB
8Wrong answer0/424ms5236 KiB
9Wrong answer0/424ms5444 KiB
10Wrong answer0/425ms5640 KiB
11Wrong answer0/425ms5848 KiB
12Wrong answer0/228ms6044 KiB
13Wrong answer0/228ms6000 KiB
14Wrong answer0/127ms6000 KiB
15Wrong answer0/127ms6000 KiB
16Wrong answer0/128ms6124 KiB
17Wrong answer0/127ms6204 KiB
18Wrong answer0/128ms6520 KiB
19Wrong answer0/128ms6748 KiB