NOJ/85/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

13 lines
225 B
C

#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;
}