| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83994 | 石晋骁 | 判断素数II | C++ | Wrong Answer | 1 MS | 272 KB | 276 | 2024-07-15 10:51:10 |
#include<bits/stdc++.h> using namespace std; int sum(int a){ int c = 0; for(int i = 2;i <= a;i++){ for(int j = 1;j < i;j++){ if(i % j != 0){ c++; } } } cout << c; } int main(){ int n; cin >> n; sum(n); return 0; }
------Input------
302
------Answer-----
62
------Your output-----
43978