提交时间:2024-11-24 14:02:31
运行 ID: 57557
#include<bits/stdc++.h> using namespace std; int main() { int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ if(n%i==0){ cout<<i<<" "; sum++; } } cout<<endl; cout<<" "<<sum; return 0; }