about summary refs log tree commit diff
path: root/codechef/chnum.py
blob: 95bad50e167242a1ed82e27e6c8548d3390cf8a8 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env python3
from collections import Counter

for _ in range(int(input())):
    input()
    sizes = Counter(z // abs(z) for z in map(int, input().split())).values()
    print(max(sizes), min(sizes))