This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

15
LuoGu/RuMen/P1075.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;//输入这个数
for (int i = 2; i <= n; i++)//用for循环查找最小的因数
if (n % i == 0)//如果i是n的因数
{
cout << n / i;//输出较大的因数
break;//跳出循环
}
return 0;
}