12250 | 2024-12-10 15:05:19 | Csongi | Hét krajcár | cpp17 | Wrong answer 0/100 | 2ms | 508 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 500 KiB | ||||
2 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 0/100 | ||||||
3 | Wrong answer | 1ms | 320 KiB | ||||
4 | Wrong answer | 1ms | 320 KiB | ||||
5 | Accepted | 2ms | 432 KiB | ||||
6 | Accepted | 1ms | 320 KiB | ||||
7 | Accepted | 2ms | 508 KiB | ||||
8 | Accepted | 2ms | 320 KiB | ||||
9 | Wrong answer | 2ms | 320 KiB | ||||
10 | Wrong answer | 2ms | 320 KiB | ||||
11 | Wrong answer | 2ms | 320 KiB | ||||
12 | Wrong answer | 1ms | 320 KiB | ||||
13 | Wrong answer | 1ms | 320 KiB | ||||
14 | Accepted | 1ms | 320 KiB | ||||
15 | Accepted | 1ms | 392 KiB | ||||
16 | Accepted | 1ms | 320 KiB | ||||
17 | Accepted | 2ms | 428 KiB |