diff options
Diffstat (limited to 'codechef/chnum.py')
-rwxr-xr-x | codechef/chnum.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/codechef/chnum.py b/codechef/chnum.py new file mode 100755 index 0000000..95bad50 --- /dev/null +++ b/codechef/chnum.py @@ -0,0 +1,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)) |