该昵称已被占用_Error0_
该昵称已被占用_Error0_
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
该昵称已被占用_Error0_的博客
全部文章
(共2篇)
题解 | #素数的个数#
用Meissel-Lehmer筛法,时间复杂度为,空间复杂度为,需要注意的是计算区间内的质数也要包含。 #include <cstdio> #include <cmath> #include <vector> #include <algorithm> ...
C++
2026-02-26
0
7
题解 | #小红的异或构造#
这道题看着复杂,实际上很简单,题目要求 xor = xor ,其实这里你可以不用管xor到底是什么,你只需要知道,当对于所有的时, 无论和到底是什么, xor 就一定等于 xor 实现代码: #include <iostream> using namespace std; in...
2026-02-22
0
13