标签:style http io ar color os sp for on
化简一下即可
2 1 3
0 1
#include<stdio.h> int main() { int i,j,s,m,sum; scanf("%d",&s); while(s--) { sum=0; scanf("%d",&m); for(i=1;(i+1)*(i+1)-1<=m;i++) { if((m+1)%(i+1)==0) sum++; } printf("%d\n",sum); } return 0; }
NYOJ 216 A problem is easy【数学题】
标签:style http io ar color os sp for on
原文地址:http://blog.csdn.net/qq_16767427/article/details/41901311