0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 18:48:48 +00:00

P1075 [NOIP2012 普及组] 质因数分解

R63285797
This commit is contained in:
Baoshuo Ren 2021-11-21 16:33:35 +08:00 committed by Baoshuo Ren
parent 5d1aa225f1
commit 6100a26801
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

16
Luogu/P1075/P1075.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
cin >> n;
for (int i = 2; i * i <= n; i++) {
if (n % i == 0) {
cout << n / i << endl;
exit(0);
}
}
return 0;
}