USACO Platinum 2017 January - Promotion Counting

Author: Benjamin Qi

Merging Indexed Sets

1#include <bits/stdc++.h>
2#include <ext/pb_ds/tree_policy.hpp>
3#include <ext/pb_ds/assoc_container.hpp>
4
5using namespace std;
6using namespace __gnu_pbds;
7
8template<class T> using Tree = tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
9
10const int MX = 1e5+5;

This section is not complete.

Feel free to file a request to complete this using the "Contact Us" button.

similar sol w/o indexed set

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!

Give Us Feedback on USACO Platinum 2017 January - Promotion Counting!