Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75538 sh25_shenpy 求一个合数的所有质因数 C++ 运行超时 1000 MS 236 KB 284 2025-12-07 17:01:34

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=sqrt(1.0*n);++i) { if(n%i==0){ cout<<i<<" "; while(n%i==0){ n=n/i; } break; } } return 0; }


测评信息: