摘要:
三路快排 void Quicksort(int l, int r) { if (l >= r) return; int key = arr[rand() % (r - l + 1) + l]; int i = l, j = l, k = r; while (i <= k) { if (arr[i] 阅读全文
摘要:
在fish的配置文件(~/.config/fish/config.fish)中写入 function proxy set -xg ALL_PROXY http://localhost:ports end function noproxy set -e ALL_PROXY end 完毕 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int PRIME =122777; const int MOD =998244353; const int INF =0x3f3f3f3f; cons 阅读全文
摘要:
前言:本篇文章将对STL(标准模板库)进行一个简单的介绍,以方便在算法竞赛中节省时间并方便使用。 C++ STL(标准模板库)是一套功能强大的 C++ 模板类,提供了通用的模板类和函数,这些模板类和函数可以实现多种流行和常用的算法和数据结构,如向量、链表、队列、栈。 C++ 标准模板库的核心包括以下 阅读全文