Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119483 | 吴梓玄 | 14判断素数III | C++ | Wrong Answer | 1 MS | 268 KB | 228 | 2025-05-17 16:36:40 |
#include <bits/stdc++.h> using namespace std; int main() { int a,s=0; cin>>a; for(int i=2;i<a;i++){ if (a%i==0){ s=1; break; } } if(s=1){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }
------Input------
465
------Answer-----
NO
------Your output-----
YES