Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open("hanya.in") as fd:
- n = int(fd.readline())
- for i in range(n):
- x = int(fd.readline())
- alist = fd.readline().split()
- num = []
- for j in alist:
- num.append(int(j))
- mini = 1
- mini = min(num)
- maxi = -1
- maxi = max(num)
- ans = 0
- if(maxi>0):
- ans = ans +1
- if mini<0:
- ans = ans +1
- print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement