Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #define int long long
  6. #define f first
  7. #define s second
  8.  
  9. main()
  10. {
  11. ios::sync_with_stdio(false);
  12. int b, ans = 0;
  13. cin >> b;
  14. int sq = sqrt(b);
  15. for (int i = 1; i <= sq; i++){
  16. if (b % i == 0)
  17. ans += 2;
  18. }
  19. if (sq * sq == b)
  20. ans--;
  21. cout << ans;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement