

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll demuoc(ll n)
{
ll dem=0;
for(ll i=1;i*i<=n;i++)
{
if(n%i==0)
{
dem+=i;
if(i!=n/i) dem+=n/i;
}
}
return dem;
}
ll n;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin>>n;
if(demuoc(n)-n>n) cout<<1;
else cout<<0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
41
26
25
Đếm số Phong phú thì thế nào ạ