私信TA
用户名:uq_56624597545
访问量:457
签 名:
不会c++,想哭
自我简介:
一个废物
作者: 往事云烟 发表时间:2023-05-07 19:39:50 浏览:9 | 评论:0
解题思路:注意事项:参考代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,sum=0;
cin>>x;
for(int i=1;i<x;i++)
if(x%i==0) sum+=i;
}
if(sum==x) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
0.0分
0 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换
万能编程问答
代码解释器
代码纠错
SQL生成与解释