Advertisement
amine99

Untitled

Feb 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define loop(i,b,e) for(int i=b;i<=e;i++)
  4. #define reloop(i,e,b) for(int i=e;i>=b;i--)
  5.  
  6. int n,ans;
  7.  
  8. int main() {
  9. ios_base::sync_with_stdio(false);
  10. cin.tie(0);
  11. cout.tie(0);
  12. cin >> n;
  13. loop(i,1,n/2) {
  14. if (n % i == 0)
  15. ans++;
  16. }
  17. cout << ans;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement