| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75700 | 陈昊然 | 13判断质数 | C++ | Wrong Answer | 1 MS | 272 KB | 220 | 2024-05-28 19:15:32 |
#include <bits/stdc++.h> using namespace std; int main (){ int a,e=1; cin>>a; for(int i=1;i<=a-1;i++){ if (a%i==0){ e=0; } } if(a==0){ cout<<"No"; }else{ cout<<"Yes"; } return 0; }
------Input------
560
------Answer-----
No
------Your output-----
Yes