这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
大家赛时是怎么用 VSCode 的? 省选的时候第一次赛时使用 NOI Linux,当时的机子有安装汉化和 C++ 的扩展,VSCode 编码和调试的效率比 Dev C++ 高多了。所以之后半年都是用 VSCode,这次 CSP 也申请了 Linux。 然而这次比赛的 Linux 中 VSCode 一点扩展都没有,对我…
在讨论《关于__lg相关问题》回复:
 @[xiao999yao](luogu://user/1062722) 从2021开始就可以用了,还…
~~一道培养注意力机制的好题~~,主要是笔者的水平的太低,没法快速想到正解。 先看小样例: | 1 | 3 | 5 | 7 | 9 |:-:|:-:|:-:|:-:|:-:| | $0$ | $8$ | $240$ | $16128$ | $1451520$| 发现差不多是 $O(n!)$ 级别的: | 1! | 3!…
在讨论《关于NOI系列比赛C++标准》回复:
@[heike305](luogu://user/789739) 是的
在讨论《关于NOI系列比赛C++标准》回复:
NOI linux2.0 里的 vscode 可以用 c++17 但比赛测评用的是 c++14 标准
在讨论《请留下您的CSP初赛估分》回复:
S 87.5
在讨论《我在等一份民间题解》回复:
@[zhangjunxizjx](luogu://user/980719) [https://www.luogu.me/article/sxivgi8l](https://www.luogu.me/article/sxivgi8l) 这样就行了
提供一种简单的想法  注意到红色这个圈内,数字单调递增,即 $f(x)={x \choose…
考虑动态规划,设 $dp_i$ 为赋值 $[1,i]$ 的最小代价。 赋值 $[j,i]$ 的代价为 $\lvert a_i-a_j \rvert+i-j+1 $,所以 $$\begin{aligned} dp_i=\min_{1\le j a_i} \left (a_j +\min(dp_{j-1}-j,minn_j…
$$a^b \equiv b^c \pmod{p}$$ 不妨令 $b \equiv a \pmod{p}$,则 $a^b \equiv a^c \pmod{p}$,因为 $p$ 是质数,且 $a using namespace std; using ll=long long; using lll=__int128; i…
大纲背景颜色从蓝变绿,内容改动不大。 - ### 入门级 1. 改“g++、gcc 等常见编译器的基本使用”为 “常用编译命令 g++ 的基本使用”。  $ 15pts 对于 $T(l,r)$ 可采用前缀和的方法。 设 $sum_n=\sum_{i=1}^{n} [a_i\ne b_i]$,$T(l,r)=sum_r-sum_{l-1}$。 对于 $A(l,r)$ 在 $[l,r]$ 中的 $0$ 统计其后有多少 $1$,所以 $A(l,r)=\su…
在讨论《联合省选 ++RP 专贴》回复:
day2 rp++
在讨论《联合省选 2025 集中讨论贴》回复:
T1明间数据过水,贪心做法能AC,赛场上连小样例都过不了,~~但能过大样例~~
在讨论《请求撤下或更改题解》回复:
@[Burning_Red](luogu://user/1439183)
在讨论《请求撤下或更改题解》回复:
for(int i=1;i<=N;i++){ for(int j=2;i*j<=N;j++) 复杂度没有错误,这里的循环是调和级数级别,也就是nlogn $\sum_{i=1}^{n} \frac{n}{i} =n\sum_{i=1}^{n} \frac{1}{i}\approx n \ln n\\$ 事实上 $ \l…
```cpp #include #include #include using namespace std; const int N=2e5+10; int dfn[N],dep[N],size[N],a[N],son[N],fa[N],top[N]; int Time; vector e[N]; struct edg…
在讨论《建议添加民间数据作为 hack》回复:
zc
在讨论《CSP求助》回复:
是因为监考员睁一只眼闭一只眼不管,还是本来就可以?
在讨论《玄关,蒻苟纯模拟不会写优化,dalao教教我》回复:
```cpp #include #include using namespace std; const int N=1e5+10; int a[N];//每个数对应的最终值 string s; //pos指s操作到几位 int getint(int &pos){//string转int int x=0; while(p…
在讨论《20ptsRE》回复:
万分感谢,已AC
``` #include #include #include #include using namespace std; typedef long long ll; const int N=3e5+10; ll a[N]; ll f(ll x,ll y){ return atoll((to_string(x)+to_s…
在讨论《选一关,红题,求调50pts》回复:
$ \begin{array}{l} \mathop{{b}}\nolimits^{{2}}-4ac<0 \\ \end{array} $时,sqrt会RE
```cpp #include #include using namespace std; string s1,s2; bool check(int pos1,int pos2){ while(pos1 >s1; int t; for(cin>>t;t;--t){ cin>>s2; if(check(0,0))puts…
```cpp #include #include #include using namespace std; bool b; void print(string s){ cout >s; b=s.length()&1; s1=s.substr(0,(s.length()+1)/2); s2=s.substr(s.len…