#include <stdio.h> int main() { int a; while (scanf("%d", &a) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to int arr[a]; int count[a]; for (int i=0;i<a;i++){ scanf("%d", &arr[i]); count[i] = 0; } for (int i=0;i<a;i++){ for (int j=1;j*j<=arr[i];j++){ if (j * j == arr[i]){ count[i] ++; }else{ if (arr[i] % j == 0){ count[i] += 2; } } } } for (int i=0;i<a;i++){ printf("%d\n", count[i]); } } return 0; }