SCC(缩点)洛谷P3387
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859...
树状数组
区间求和
数组形式
1234567891011121314151617181920212223242526const int N = 5e5 + 10;int n;int tr[N];int lowbit(int x) { /...
洛谷P3370
自然溢出字符串hash(单哈希hash)1234567891011121314151617181920212223const ULL base = 131;ULL hash(std::string s) { int len =...
结构体tire树例题:洛谷P8306
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657...