合集-杂七杂八

摘要:__int128 CRT(vector<pair<__int128, __int128>>& eq) { return accumulate(eq.begin() + 1, eq.end(), eq[0],[](pair<__int128, __int128>& res, pair<__int128 阅读全文
posted @ 2025-08-14 08:51 NotMonika 阅读(14) 评论(0) 推荐(0)
摘要:#define flog2(x) (63-__builtin_clzll(x))快速处理整数log2,在处理st表时很有用 pbds 平衡树 typedef tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update> 阅读全文
posted @ 2025-08-06 20:47 NotMonika 阅读(29) 评论(0) 推荐(0)
摘要:测试代码: #include<bits/stdc++.h> #include<bits/extc++.h> #define _GLIBCXX_PERMIT_BACKWARD_HASH #include<backward/hash_map> using namespace std; using nam 阅读全文
posted @ 2025-08-08 11:29 NotMonika 阅读(34) 评论(0) 推荐(0)