| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159637 | 张晓冉 | 判断素数II | C++ | Wrong Answer | 1 MS | 264 KB | 258 | 2026-09-05 19:15:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int s = 0; for(int i = 2;i <= n;i++){ if(i % 2 != 0){ s++; }else{ s += 0; } } cout<<s<<endl; return 0; }
------Input------
302
------Answer-----
62
------Your output-----
150