约数的个数 代码 # 计数 def f(x)->int: cnt = 0 i = 1 while i * i <= x: if x % i == 0: cnt += 1 if i * i < x: cnt += 1 i += 1 return cnt n = int(input()) a = list(map(int,input().split())) for i in a: print(f(i))