本文分类:news发布日期:2025/10/28 7:44:24
打赏

相关文章

常用例题2

逆序对(归并排序解)性质:交换序列的任意两元素,序列的逆序数的奇偶性必定发生改变。LL a[N], tmp[N], n, ans = 0; void mergeSort(LL l, LL r){if (l >= r) return;LL mid = (l + r) >> 1, i = l, j = m…

STL 与库函数

pb_ds 库 其中 gp_hash_table 使用的最多,其等价于 unordered_map ,内部是无序的。 #include <bits/extc++.h> #include <ext/pb_ds/assoc_container.hpp> template<class S, class T> using omap…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部