122502024-12-10 15:05:19CsongiHét krajcárcpp17Wrong answer 0/1002ms508 KiB
#include <bits/stdc++.h>
#define ll long long
using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);

    int n, k = -1,l; cin >> n; l = n;
    while (n--)
    {
        int x; cin >> x;
        if (x == 7)
        {
            k = l-n;
        }
    }
    cout << k << endl;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms500 KiB
2Accepted1ms320 KiB
subtask20/100
3Wrong answer1ms320 KiB
4Wrong answer1ms320 KiB
5Accepted2ms432 KiB
6Accepted1ms320 KiB
7Accepted2ms508 KiB
8Accepted2ms320 KiB
9Wrong answer2ms320 KiB
10Wrong answer2ms320 KiB
11Wrong answer2ms320 KiB
12Wrong answer1ms320 KiB
13Wrong answer1ms320 KiB
14Accepted1ms320 KiB
15Accepted1ms392 KiB
16Accepted1ms320 KiB
17Accepted2ms428 KiB