| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64840 | 冯纪尧 | 判断素数II | C++ | Wrong Answer | 2 MS | 272 KB | 273 | 2024-01-22 10:58:08 |
#include<bits/stdc++.h> using namespace std; bool zs(int a){ if(a<2){ return 0; } int r=0; int q=0; for(int i=2;i<=a-1;i++){ if(a%i==0){ return 0; } } return 1; } int main() { int a; cin>>a; cout<<zs(a); return 0; }
------Input------
302
------Answer-----
62
------Your output-----
0