| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139524 | 袁龙浩 | 判断素数II | C++ | Wrong Answer | 0 MS | 276 KB | 585 | 2025-12-07 15:04:52 |
#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,t,n; cin>>n; for(int i=2;i<=n;i++){ t=i; for(int j=1;j<=t;j++){ if(i%j==0) s++; } if(s!=0){ b++; } } } int main(){ int n,x,b; cin>>n; a(n); cout<<b; return 0; }
------Input------
302
------Answer-----
62
------Your output-----
0