fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c,d,e=0,f;
  5. scanf("%d",&a);
  6. scanf("%d",&b);
  7. scanf("%d",&c);
  8. for(d=1;d<=c;d++){
  9. f=c/d;
  10. if(c%d==0&&f<=b&&f>=a)
  11. e++;
  12. }
  13. printf("%d",e);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5292KB
stdin
1 9 24
stdout
6