Advertisement
jeff69

Untitled

Mar 21st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. #include <iomanip>
  3. #include <iostream>
  4. #include <functional>
  5. #include <algorithm>
  6. #include <math.h>
  7. #include <cmath>
  8. #include <string>
  9. #include <vector>
  10. #include<set>
  11. #include<map>
  12. #include <time.h>
  13. #include <fstream>
  14. using namespace std;
  15.  
  16.  
  17. int main(){
  18.  
  19. int n;
  20. int limit;
  21. cin >> n;
  22.  
  23. double c = sqrt(n*1.0);
  24. double sum = 0;
  25.  
  26. for (int i = 1; i <=c; i++){
  27. if (n%i == 0 ){
  28.  
  29. sum++;
  30.  
  31. }
  32. }
  33. cout << sum;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement