n = int(input())
B = [0.0 for i in range(n)]
for i in range(n):
B[i] = float(input())
if B[i] < 0:
print(i)
break
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input())
B = [0.0 for i in range(n)]
for i in range(n):
B[i] = float(input())
for i in range(n):
if B[i] < 0:
print(i)
break