Codeforces 577A. Multiplication Table Solution
///La ilaha illellahu muhammadur rasulullah
///******Bismillahir-Rahmanir-Rahim******///
///Abul Hasnat Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int i,ans=0,n,c;
- cin>>n>>c;
- for(i=1; i<=n; i++)
- {
- if((c%i==0)&&(c/i<=n))
- ans++;
- }
- cout<<ans<<endl;
- }
No comments