mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 18:28:47 +00:00
724. 约数
https://www.acwing.com/problem/content/submission/code_detail/2512803/
This commit is contained in:
parent
aba7f11c01
commit
66d4ab6f2c
17
AcWing/724/724.cpp
Normal file
17
AcWing/724/724.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user