@[24fen](/user/1061537) 代码发出来啊
by hexuchen @ 2023-08-13 15:09:57
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = n - 1; i > sqrt(n); i--) if (n % i == 0) {
cout << i;
break;
}
return 0;
}
```
by 24fen @ 2023-08-13 15:16:31
```
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
for (int i=2;i<n;i++) {
if(n%i==0){
cout<<n/i;
return 0;
}
}
}
```
本蒟蒻写的,如有差错,望大佬轻喷~~~
by shenyeting @ 2023-08-13 15:48:57
代码试过了,过了o((>ω< ))o
by shenyeting @ 2023-08-13 15:50:15
谢谢
by 24fen @ 2023-08-14 16:00:33