Saleh127

CF 1068B

Jul 11th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define fellow_junior ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. int main()
  7. {
  8. fellow_junior
  9.  
  10. ll a,c,d=0,e,i,j,k,l;
  11. cin>>a;
  12. c=sqrt(a);
  13. for(i=1;i<c;i++)
  14. {
  15. if(a%i==0)
  16. {
  17. d+=2;
  18. }
  19. }
  20. if(a%c==0)
  21. {
  22. if(c*c==a) d++;
  23. else d+=2;
  24. }
  25. cout<<d<<endl;
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment