Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define f first
- #define s second
- main()
- {
- ios::sync_with_stdio(false);
- int b, ans = 0;
- cin >> b;
- int sq = sqrt(b);
- for (int i = 1; i <= sq; i++){
- if (b % i == 0)
- ans += 2;
- }
- if (sq * sq == b)
- ans--;
- cout << ans;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement