Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54278 | 张思存 | 质因数分解 | C++ | Accepted | 0 MS | 244 KB | 220 | 2024-10-26 23:21:58 |
#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; } } return 0; }