摘要:
【题解】 " P3939 数颜色" 不要数据结构和模板学傻了... 考虑到兔子们交换都是相邻的,说明任何一次交换只会引起$O(1)$的变化。 我们开很多$vector$存没种兔子的下标就好了。到时候二分查找查询。 复杂度$O(nlogn)$ cpp include include include i 阅读全文
摘要:
【题解】 " AT2043 AND Grid" 我们考虑直接构造两个互补的图切分别联通的图,然后原图有的大家都有就构造完成了。 cpp include include include include include include include include include include in 阅读全文