Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75552 sh25_shenpy 合数求和 C++ 解答错误 0 MS 252 KB 269 2025-12-07 18:09:00

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { int n,sum=0,s=0; cin>>n; for(int j=4;j<=n;j++){ for(int i=2;i<j;++i) { if(n%i==0){ sum++; } } if(sum!=0) { s+=j; } } cout<<s; return 0; }


测评信息: