Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77565 sh25_zhuhy 求约数 C++ 通过 0 MS 248 KB 233 2025-12-26 14:27:35

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int a,n,bomb; cin>>a; n=0; for(bomb=1;bomb<=a;bomb++){ if(a%bomb==0){ cout<<bomb<<" "; n+=1; } } cout<<endl; cout<<" "<<n; }


测评信息: