Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace std {
- template<>
- struct hash<pair<int, int>> {
- size_t operator()(const pair<int, int>& a) const {
- return a.first * MAGIC + a.second;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement