| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149183 | 杜雨轩 | 判断质数(使用while循环) | C++ | Wrong Answer | 0 MS | 280 KB | 267 | 2026-03-07 17:13:08 |
#include<iostream> using namespace std; int main(){ long long a,b=0; cin>>a; for(int i = 1; i<a ; i++){ if(a%i==0){ b++; if(b<=2){ cout<<"Yes"; return 0; }else{ cout<<"No"; } } } return 0; }
------Input------
560
------Answer-----
No
------Your output-----
Yes