Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23514 未命名(之人) 质因数分解 C++ 运行出错 0 MS 236 KB 261 2023-07-15 16:56:25

Tests(0/10):


#include "bits/stdc++.h" using namespace std; bool zs(int a){ for(int i=0;i*i<=a;i++){ if(a%i==0)return false; } return true; } int main(){ int n; cin>>n; int d=0; for(int j=2;j<n;j++){ if(zs(j)&&n%j==0)d=n; } cout<<d; }


测评信息: