| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139525 | 袁龙浩 | 判断素数II | C++ | Wrong Answer | 0 MS | 272 KB | 595 | 2025-12-07 15:13:32 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int a(int x){ int s=0,b=0,n; cin>>n; for(int i=2;i<=n;i++){ for(int j=2;j<=i;j++){ if(i%j!=0) s++; break; } if(s!=0){ b++; } } cout<<b; } int main(){ int n,x,b; cin>>n; a(n); return 0; }
------Input------
302
------Answer-----
62
------Your output-----
0