摘要:
板子那篇烂尾了,等 \(25\) 年 \(csp\) 时再继续写吧 CF1620E Replace the Numbers 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,b[5000004]; int opt[5000003]; 阅读全文
摘要:
$${\color{red}construction}$$ \(\Large{数论}\) 点击查看 GCD 点击查看 B4025 最大公约数 gcd: #include<bits/stdc++.h> #define int long long using namespace std; int a,b 阅读全文
摘要:
Day -114514 教练说寒假去郑州集训,还没想好去不去。 Day -4 想了想,还是去吧,毕竟就一周,不去还得关在 \(lyyz\) Day 0 与 Star_F一同前往,在高铁上闲得无聊,刷会视频,刷着刷着伤感起来。 由于当天并没有课,所以就在郑州逛了一下午。 不过郑州好无聊啊,就打卡了个二 阅读全文
摘要:
P1505 [国家集训队] 旅游 思路: 边权转点权,由于父亲可能有许多儿子,所以一条边的权值需要付给儿子 点击查看代码 #include<bits/stdc++.h> #define ll long long using namespace std; const int N=2e6; inline 阅读全文