| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75555 | sh25_shenpy | 合数求和 | C++ | Accepted | 0 MS | 240 KB | 284 | 2025-12-07 18:14:10 |
#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(j%i==0){ sum++; } } if(sum>0) { s+=j; sum=0; } } cout<<s; return 0; }