Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.022 s | 3 KBi |
#2 |
Correcto
|
0.022 s | 3 KBi |
#3 |
Correcto
|
0.021 s | 3 KBi |
#4 |
Incorrecto
|
0.02 s | 3 KBi |
#5 |
Correcto
|
0.021 s | 3 KBi |
#6 |
Incorrecto
|
0.024 s | 3 KBi |
#7 |
Incorrecto
|
0.024 s | 3 KBi |
#8 |
Incorrecto
|
0.019 s | 3 KBi |
#9 |
Incorrecto
|
0.022 s | 3 KBi |
#10 |
Correcto
|
0.023 s | 3 KBi |
#11 |
Correcto
|
0.028 s | 5 KBi |
#12 |
Correcto
|
0.024 s | 3 KBi |
#13 |
Correcto
|
0.022 s | 3 KBi |
#14 |
Correcto
|
0.327 s | 33 KBi |
#15 |
Correcto
|
0.456 s | 13 KBi |
#16 |
Incorrecto
|
0.459 s | 29 KBi |
#17 |
Correcto
|
0.439 s | 29 KBi |
#18 |
Correcto
|
0.283 s | 29 KBi |
#19 |
Correcto
|
0.363 s | 29 KBi |
#20 |
Correcto
|
0.477 s | 59 KBi |
n = input() size =int(n) i = 0 sum_total=0 array = size*[0] array_totals =[0,0] number =input() args =number.split() flag = 'Impossible' for i in range(0,size): array[i] = int(args[i]) sum_total= sum_total + array[i] i=0 array_totals[1] = sum_total for i in range (0,size): array_totals[0] = array_totals[0] + array[i] array_totals[1] = array_totals[1] - array[i] if array_totals[0] > 0 and array_totals[1] < 0: flag = int(i+1) print(flag) break