Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.028 s | 3 KBi |
#2 |
Incorrecto
|
0.023 s | 3 KBi |
#3 |
Incorrecto
|
0.024 s | 3 KBi |
#4 |
Correcto
|
0.032 s | 3 KBi |
#5 |
Incorrecto
|
0.016 s | 3 KBi |
#6 |
Correcto
|
0.021 s | 3 KBi |
#7 |
Correcto
|
0.024 s | 3 KBi |
#8 |
Correcto
|
0.016 s | 3 KBi |
#9 |
Correcto
|
0.021 s | 3 KBi |
#10 |
Incorrecto
|
0.021 s | 3 KBi |
#11 |
Incorrecto
|
0.019 s | 3 KBi |
#12 |
Incorrecto
|
0.016 s | 3 KBi |
#13 |
Incorrecto
|
0.02 s | 3 KBi |
#14 |
Incorrecto
|
0.247 s | 32 KBi |
#15 |
Incorrecto
|
0.2 s | 12 KBi |
#16 |
Correcto
|
0.206 s | 29 KBi |
#17 |
Incorrecto
|
0.228 s | 30 KBi |
#18 |
Incorrecto
|
0.206 s | 30 KBi |
#19 |
Incorrecto
|
0.159 s | 29 KBi |
#20 |
Incorrecto
|
0.254 s | 59 KBi |
def split_array(array): array_sum = sum(array) left = 0 for i in array: left += i if left > 0 and array_sum - left < 0: print(i + 1) return print("Impossible") array_size = int(input()) array = [int(x) for x in input().split()] split_array(array)