Skip to content

Instantly share code, notes, and snippets.

@NamPE286
Created August 9, 2023 13:32
Show Gist options
  • Save NamPE286/2e0632ac9464baf2a979980262c993ca to your computer and use it in GitHub Desktop.
Save NamPE286/2e0632ac9464baf2a979980262c993ca to your computer and use it in GitHub Desktop.
Indexed set template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
template <class T>
using indexed_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
int main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment