mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 08:51:59 +00:00
17 lines
236 B
C++
17 lines
236 B
C++
|
#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;
|
||
|
}
|