1:哈希 建立:拉链法: a:数组 #include <bits/stdc++.h> using namespace std; const int md = 1e9; int h[1000],idx,ne[1000],e[1000]; void add(int x) { int y = (x % md + md) % md; e[idx] ...