| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 63599 | lhrssby | 质因数的个数 | C++ | Accepted | 0 MS | 248 KB | 297 | 2025-03-30 17:11:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,maxl=0,ans=0,d; cin>>a>>b; for(int i=a;i<=b;i++){ ans=0; d=i; int t=2; while(d!=1){ while(d%t==0){ d/=t; ans++; } t++; } maxl=max(maxl,ans); } cout<<maxl; return 0; }