这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在文章《CSP-S 2025游记》发表评论:
%%%
在文章《CSP-S 2025 游记》发表评论:
%%%
``` #include using namespace std; const int MAXLOG=22; const int MAXN=100005; int m,LCA; int n; vector g[MAXN]; int q,p; int anc[MAXN][MAXLOG+2]; int depth[MAXN…
GESP八级第一题 ~~此题建议归橙~~ 前置知识:GCD(最大公因数),LCM(最小公倍数), 互素 --- ### GCD(a,b)表示a和b的最大公因数 先看 辗转相除法 的代码 ```cpp int gcd(int x,int y){ if(x==0) return y; return gcd(y%x,x);…