include <bits/stdc++.h>
using namespace std; int n; int main() {
cin >> n;
for (int i = 2; i <= n; i++)
if ((n - 1) % i == 0)
cout << i << " ";
return 0;
}
using namespace std; int n; int main() {
cin >> n;
for (int i = 2; i <= n; i++)
if ((n - 1) % i == 0)
cout << i << " ";
return 0;
}
登录后即可回复本帖,与出题人和同学一起讨论。
登录