| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12196 | 罗炜翰 | 判断质数 | C++ | Compile Error | 0 | 0 MS | 0 KB | 348 | 2025-07-08 14:22:22 |
#include<bits/stdc++.h> using namespace std; int fun(int q){ for(int i=0;i<q;i++){ if(q%i==0){ return 0; } } return 1; } int funa(int q){ for(int i=0;i<q;i++){ if(q%i==0){ return i; break; } } } int main() { int n; cin>>n; if(!(fun(n)){ cout<<funa(n); } else { cout<<"Yes"; } }