文章
44
粉丝
18
获赞
334
访问
25.6k
#include<iostream>
#include<cmath>
#include<vector>
#include<set>
using namespace std;
bool isE(int x){
set<int> s;
set<int>::iterator it;
for(int i=1;i<x;i++){
if(x%i==0){
s.insert(i);
}
}
int t=0;
for (it = s.begin(); it != s.end(); ++it) {
t += *it;
}
if(x==t) return true;
else return false;
}
bool isG(int x){
set<int> s;
set<int>::iterator it;
for(int i=1;i<x;i++){
if(x%i==0){
s.insert(i);
...
登录后发布评论
暂无评论,来抢沙发