11215 | 2024-07-16 21:44:29 | proba | Hét krajcár | python3 | Elfogadva 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
Részfeladat | Összpont | Teszt | Verdikt | Idő | Memória | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Elfogadva | 17ms | 2916 KiB | ||||
2 | Elfogadva | 17ms | 2920 KiB | ||||
subtask2 | 100/100 | ||||||
3 | Elfogadva | 17ms | 3000 KiB | ||||
4 | Elfogadva | 17ms | 3064 KiB | ||||
5 | Elfogadva | 21ms | 3172 KiB | ||||
6 | Elfogadva | 23ms | 3192 KiB | ||||
7 | Elfogadva | 19ms | 3180 KiB | ||||
8 | Elfogadva | 19ms | 3176 KiB | ||||
9 | Elfogadva | 19ms | 3172 KiB | ||||
10 | Elfogadva | 19ms | 3192 KiB | ||||
11 | Elfogadva | 19ms | 3088 KiB | ||||
12 | Elfogadva | 19ms | 3108 KiB | ||||
13 | Elfogadva | 19ms | 3172 KiB | ||||
14 | Elfogadva | 23ms | 3180 KiB | ||||
15 | Elfogadva | 24ms | 3188 KiB | ||||
16 | Elfogadva | 21ms | 3100 KiB | ||||
17 | Elfogadva | 23ms | 3192 KiB |