Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
105229 NOIP2012 普及:第一题 质因数分解 C++ 通过 100 0 MS 268 KB 184 2023-06-10 16:38:04

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int x=sqrt(n); for(int i=2;i<=x;i++){ if(n%i==0){ cout<<n/i; break; } } return 0; }


测评信息: