提交记录 185771
| 提交时间 |
评测时间 |
| 2026-11-28 21:51:08 |
2026-11-28 21:51:13 |
#include <bits/stdc++.h>
using namespace std;
constexpr int N = 10000000;
uint8_t *isp;
#define get(pos) (isp[pos >> 3] >> (pos & 7) & 1)
#define rev(pos) (isp[pos >> 3] &= (uint8_t)0xFF ^ (1 << (pos & 7)))
void sieve(uint64_t n, char *s)
{
memset(s,0xFF,N / 8);
s[0] ^= 3;
isp = (uint8_t *)s;
for(int i = 2;i * i < N;i++)
{
if(!get(i)) continue;
for(int j = i * i;j < N;j += i)
rev(j);
}
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 29.457 ms | 1 MB + 232 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-12-01 21:43:43 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠