Guest User

Untitled

a guest
Sep 20th, 2021
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4. void solve()
  5. {
  6.     ll y;
  7.     cin>>y;
  8.     ll ans=0;
  9.     for(ll i=1;i*i<=y;i++)
  10.     {
  11.         if(i*i==y)
  12.         {
  13.            ans+=1;
  14.            break;
  15.         }
  16.         if(y%i==0) ans+=2;
  17.  
  18.     }
  19.     cout<<ans<<endl;
  20. }
  21. int main()
  22. {
  23.     solve();
  24.     return 0;
  25. }
  26.  
RAW Paste Data