mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 15:32:01 +00:00
18 lines
209 B
C++
18 lines
209 B
C++
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int n;
|
||
|
|
||
|
int main() {
|
||
|
cin >> n;
|
||
|
|
||
|
for (int i = 1; i <= n; i++) {
|
||
|
if (n % i == 0) {
|
||
|
cout << i << endl;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|