1 solutions
-
1
numbers = list(map(int, input().split())) n = numbers[0] data = numbers[1:]
negative_count = 0
zero_count = 0
positive_count = 0
for num in data: if num < 0: negative_count += 1 elif num == 0: zero_count += 1 else: positive_count += 1print(f"{negative_count} {zero_count} {positive_count}")
Information
- ID
- 1804
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 6
- Tags
- # Submissions
- 18
- Accepted
- 11
- Uploaded By