直接降红!!!
#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main(){ int n; cin>>n; for(int i=2;;i++){ if(n%i==0){ cout<<n/i; break; } } }
这种题正没什么含金量的
你说你用sqrt判素数是澄还好说,你连素数都不用判!!!!!!!!!!!!!!!!!!!
这题放普及组过水了