11215 | 2024-07-16 21:44:29 | proba | Hét krajcár | python3 | Accepted 100/100 | 24ms | 3192 KiB |
#!/usr/bin/env python3
# NOTE: it is recommended to use this even if you don't understand the following code.
# input data
N = int(input())
T = list(map(int, input().split()))
i = 0
while i < len(T) and T[i] < 7:
i += 1
# insert your code here
print(-1 if i == len(T) else i+1) #Answer
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2916 KiB | ||||
2 | Accepted | 17ms | 2920 KiB | ||||
subtask2 | 100/100 | ||||||
3 | Accepted | 17ms | 3000 KiB | ||||
4 | Accepted | 17ms | 3064 KiB | ||||
5 | Accepted | 21ms | 3172 KiB | ||||
6 | Accepted | 23ms | 3192 KiB | ||||
7 | Accepted | 19ms | 3180 KiB | ||||
8 | Accepted | 19ms | 3176 KiB | ||||
9 | Accepted | 19ms | 3172 KiB | ||||
10 | Accepted | 19ms | 3192 KiB | ||||
11 | Accepted | 19ms | 3088 KiB | ||||
12 | Accepted | 19ms | 3108 KiB | ||||
13 | Accepted | 19ms | 3172 KiB | ||||
14 | Accepted | 23ms | 3180 KiB | ||||
15 | Accepted | 24ms | 3188 KiB | ||||
16 | Accepted | 21ms | 3100 KiB | ||||
17 | Accepted | 23ms | 3192 KiB |