Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5951 | 陈颖钧 | 约数的个数 | C++ | Wrong Answer | 0 | 0 MS | 264 KB | 245 | 2025-02-16 17:30:10 |
#include<bits/stdc++.h> using namespace std; int i,n,j,a; int main(){ cin>>n; for(i=1;i<=n;i++){ for(j=1;j<=i;j++){ if(i%j==0){ a+=j; } } } cout<<j; return 0; }