版本比较
P7206 [COCI2019-2020#3] Lampice
正文
增加 8 行删除 8 行
99 行未改动10010110210310410510410510610710810911011111210710810911011111211311411511693 行未改动99 行未改动int h1[50005], h2[50005], dep[50005], q[50005], ta, nlen;int L, R; bool chk;#define pii pair<int, int>#define mp make_pairstruct hash_pair { template <class T1, class T2> struct hash_pair { template <class T1, class T2> size_t operator()(const pair<T1, T2>& p) const { auto hash1 = hash<T1>{}(p.first); auto hash2 = hash<T2>{}(p.second); return hash1 ^ hash2; } }; { auto hash1 = hash<T1>{}(p.first); auto hash2 = hash<T2>{}(p.second); return hash1 ^ hash2; }};unordered_map<pii, bool, hash_pair> f;inline void gethash(int now, int fa){ for(int i = he[now]; i; i = r[i].nxt)93 行未改动