1 #include<stdio.h>
 2 #include<math.h>
 3 int main()
 4 {
 5     int i,m,n,k,t;
 6     scanf("%d",&n);
 7     while(n--)
 8     {
 9         scanf("%d",&m);
10         t=sqrt(m+1);
11         for(i=2,k=0;i<=t;i++)
12         if((m+1)%i==0)
13         k++;
14         printf("%d\n",k);
15     }
16     return 0;
17 }

相关文章:

  • 2021-05-18
  • 2021-08-02
  • 2022-12-23
  • 2022-01-10
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2021-08-10
  • 2021-11-29
  • 2021-04-06
  • 2021-09-06
  • 2022-03-09
相关资源
相似解决方案