| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 19820 | 桑迪 | 因子求和 | C++ | Accepted | 100 | 0 MS | 252 KB | 214 | 2021-05-23 10:20:17 |
#include<bits/stdc++.h> using namespace std; int n; int yp(int c){ int sum=0; for(int i=2;i<c;i++){ if(!(c%i)){ sum+=i; } } return sum; } int main(){ cin>>n; cout<<yp(n); return 0; }