Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
315781 邵致远 【C3-2】求因子数量 C++ 解答错误 0 7 MS 252 KB 206 2025-04-04 18:41:54

Tests(0/2):


#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(i%j==0) s++; } cout<<s<<endl; } return 0; }


测评信息: