摘要: 题意 题目链接:https://ac.nowcoder.com/acm/contest/6885/F 分析 代码 #include <bits/stdc++.h> #define pb push_back using namespace std; typedef long long ll; type 阅读全文
posted @ 2020-08-16 22:19 xzx9 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题意 题目链接:https://ac.nowcoder.com/acm/contest/6885/E 分析 如果直接建边,肯定会超时。那么,就要进行转化。可以设置 $32$ 个虚点,分别表示点权的第 \(i\) 位为 $1$。对于点权 \(a[i]\) 如果其第 \(j\) 位为 $1$,那么就从该 阅读全文
posted @ 2020-08-16 11:08 xzx9 阅读(159) 评论(0) 推荐(0) 编辑