11604 | 2024-10-29 23:57:20 | Kezdő | Hét krajcár | python3 | Accepted 100/100 | 20ms | 3224 KiB |
N = int(input())
T = [int(i) for i in input().split()]
v = -1
i = 0
while i < N and T[i] != 7:
i += 1
if i < N:
v = i+1
print(v)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 14ms | 2872 KiB | ||||
2 | Accepted | 14ms | 2872 KiB | ||||
subtask2 | 100/100 | ||||||
3 | Accepted | 16ms | 2872 KiB | ||||
4 | Accepted | 16ms | 2876 KiB | ||||
5 | Accepted | 20ms | 3140 KiB | ||||
6 | Accepted | 19ms | 3128 KiB | ||||
7 | Accepted | 17ms | 3128 KiB | ||||
8 | Accepted | 17ms | 3128 KiB | ||||
9 | Accepted | 17ms | 3128 KiB | ||||
10 | Accepted | 17ms | 3120 KiB | ||||
11 | Accepted | 17ms | 3128 KiB | ||||
12 | Accepted | 17ms | 3128 KiB | ||||
13 | Accepted | 18ms | 3132 KiB | ||||
14 | Accepted | 18ms | 3128 KiB | ||||
15 | Accepted | 19ms | 3128 KiB | ||||
16 | Accepted | 20ms | 3128 KiB | ||||
17 | Accepted | 18ms | 3224 KiB |