Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
315790 | 邵致远 | 【C3-2】求因子数量 | C++ | 解答错误 | 0 | 4 MS | 256 KB | 206 | 2025-04-04 18:43:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ int s=0; for(int j=2;j<n;j++){ if(n%j==0) s++; } cout<<s<<endl; } return 0; }