Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
63601 sbybsggp 质因数的个数 C++ Accepted 0 MS 248 KB 261 2025-03-30 17:39:29

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int n,m,maxl=0; int main(){ cin>>n>>m; for(int i=n;i<=m;i++){ int d=i,ans=0,t=2; while(d!=1){ while(d%t!=0){ t++; } ans++; d/=t; } maxl=max(maxl,ans); } cout<<maxl; }


Judgement Protocol: