| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84071 | 刘泽熙 | 判断素数II | C++ | Wrong Answer | 0 MS | 268 KB | 250 | 2024-07-15 11:25:23 |
#include<bits/stdc++.h> using namespace std; bool isZS(int a){ for(int j=2;j<a;j++){ if(a%j==0){ return false; } } return true; } int main(){ int n,sum=0; cin>>n; for(int i=2;i<n;i++){ if(isZS(i)){ sum++; } } }
------Input------
302
------Answer-----
62
------Your output-----