diff --git a/Codechef/SeptemberLong/TREE2.py b/Codechef/SeptemberLong/TREE2.py new file mode 100644 index 0000000..96c2199 --- /dev/null +++ b/Codechef/SeptemberLong/TREE2.py @@ -0,0 +1,10 @@ +# cook your dish here +t = int(input()) +for _ in range(t): + n = int(input()) + x = ( list(map(int,input().strip().split()))) + x = set(x) + if 0 in x : + print(len(x)-1) + else : + print(len(x)) \ No newline at end of file