Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ext/pb_ds/assoc_container.hpp>
- using namespace __gnu_pbds;
- gp_hash_table<int, int> table;
- ----------------------------------------------
- const int RANDOM = chrono::high_resolution_clock::now().time_since_epoch().count();
- struct chash {
- int operator()(int x) const { return x ^ RANDOM; }
- };
- gp_hash_table<key, int, chash> table;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement