看到 � ≤ 20000 n≤20000 和第一篇题解,再看下所有的 AC 记录,发现都是 � ( � � � ) O( ω nm ) 的?
我赛时完全没有想到怎么用 bitset 做,但写了个 � ( � + � ) O(n+m) 做法过掉了它。