https://www.bilibili.com/video/BV1hu4y1P79B/?spm_id_from=333.999.0.0
https://www.luogu.com.cn/discuss/892421?page=1
https://www.luogu.com/article/om893g6h
https://blog.csdn.net/qq_46048008/article/details/126937326 美化
https://i.cnblogs.com/settings
https://zhuanlan.zhihu.com/p/765761988
vector<vector<int>>vis(n, vector<int>(n));
https://www.luogu.me/article/elcduz92
学习任务:
P4169 [Violet] 天使玩偶/SJY摆棋子
P12685 [国家集训队] 排队 加强版
https://www.luogu.me/article/cqhi72t6#1—gcd-log
ydkxj
https://www.luogu.com.cn/discuss/1357380
https://www.bilibili.com/video/BV1gca662EBm/
/*
多测不清空,OI见祖宗。
multitesting without clearing,oier meets the LCA.
十年OI一场空,不开LL见祖宗。
Ten years of OI just AFO,no #define int long long sees the LCA.
似是神犇成才处,实为蒟蒻黄泉路。
It is likely to be the Au medal for the big old,but in fact it is the Si medal for me.
黄题有恨无正解,码力不若小学生。
A yellow problem I can't AC,codeforces is not as NB as EUlar Shai.
今生无奈入OI,来世不做信竞人。
This life I am a Silly Being in oi,next life I won't f**k the sh*t of infomatics.
*/
https://www.luogu.com.cn/article/0bq6mgfx
https://www.luogu.me/article/i7hs6yi1
#define getchar getc
const int Size=1<<16;
inline char getc(){
static char syn[Size],*begin=syn,*end=syn;
if(begin==end) begin=syn,end=syn+fread(syn,1,Size,stdin);
return *begin++;
}
inline int read(){
int x=0;
char ch=getchar();
bool f=0;
while('9'<ch||ch<'0') f|= ch == '-',ch=getchar();
while('0'<=ch&&ch<='9') x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?-x:x;
}