Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
55246 | zhangweiran | 质因数分解 | C++ | Accepted | 0 MS | 240 KB | 153 | 2024-11-03 22:02:41 |
#include<iostream> using namespace std; int main() { int n; cin>>n; int i=n-1; for(;n%i!=0;i--) {} cout<<i; return 0; }