Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5946 | D班-汤依宁 | 约数的个数 | C++ | Wrong Answer | 0 | 1 MS | 260 KB | 174 | 2025-02-16 17:23:13 |
#include <bits/stdc++.h> using namespace std; int main() { int a,b=1,c=1,sum=0; cin>>a; for(;b<a;b++,c++) { if(b%c==0) { sum+=c; } } cout<<sum; }