NOJ/85/main.c

13 lines
225 B
C
Raw Normal View History

2020-08-31 16:46:43 +00:00
#include <stdio.h>
int main(void){
long long N,count = 0;
scanf("%lld",&N);
for(long long i = 1; i < N; i++){
double j = (double)(N-i)/(i+1);
if(j - (int)j < 10e-6) count++;
}
printf("%lld\n",count/2);
return 0;
}