Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
63602 sbybsggp 质因数的个数 C++ 通过 0 MS 236 KB 261 2025-03-30 17:39:37

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; }


测评信息: