Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
76571 sh25_zhuwy 求约数 C++ 通过 0 MS 248 KB 261 2025-12-19 15:29:20

Tests(1/1):


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


测评信息: