摘要:
https://scut.online/p/362 和LCA差不多,注意开大点不怕浪费。 include using namespace std; typedef long long ll; const int MAXN=1e5; int head[MAXN+1],nxt[2 MAXN+1],to[ 阅读全文
摘要:
https://www.luogu.org/problemnew/show/P4861 把好像把一开始b==1的特判去掉就可以AC了。 cpp include using namespace std; typedef long long ll; inline int gcd(int a,int b) 阅读全文
摘要:
https://www.luogu.org/problemnew/show/P2283 需要注意max是求解顺序是从右到左,最好保证安全每次都清空就没问题了。 include using namespace std; typedef long long ll; //不要输出 0.0之类的数 cons 阅读全文