为什么会超时呢?
#include <bits/stdc++.h> using namespace std; int main() { int n,x; cin>>n; x=n-1; while(n%x) { x--; } cout<<x; return 0; }