用pbds的自带哈希也可以过
#include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; gp_hash_table<ll,ll> mp;