| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122423 | 邹金行 | 判断质数(使用while循环) | C++ | Runtime Error | 0 MS | 260 KB | 194 | 2025-06-19 18:41:45 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; int i; cin>>n; while(i<n){ if(n%i==0){ cout<<"No"; return 0; } i++; } cout<<"Yes"; return 0; }
Runtime Error:Floating point exception