Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct {
- size_t operator(const Cube &cube) const {
- long long hash = 0;
- long long MOD = 1e9 + 7;
- for(int i = 0 ; i < 6; ++i)
- for(int j = 0 ; j < 9 ; ++j)
- hash += (pot[i * 9 + j] * (cube.faces[i].tile[j] + 1)) % MOD;
- return (size_t)hash;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement