Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
38340 老方 质因数分解 C++ 运行超时 1000 MS 252 KB 287 2024-01-26 18:42:34

Tests(1/10):


#include<bits/stdc++.h> using namespace std; bool isp(int n){ for(int i=2;i*i<=n;i++){ if(n%i==0)return false; } return true; } int main(){ int n; scanf("%d",&n); for(int i=n-1;i>=0;i--){ if(n%i==0&&isp(i)){ printf("%d",i); return 0; } } return 0; }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

1999410011

输出

                    

答案

49999

检查日志

Runtime Error:Killed

系统信息

exit code: 0, checker exit code: 0