摘要: 题意:有n个人一起吃饭,有些人相互认识,有些人不认识,认识的人只想和认识的人一起吃饭,不想和 陌生人一起吃饭,问需要几张桌子。 题解:并查集 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 con 阅读全文
posted @ 2020-02-14 18:09 留幸愉 阅读(106) 评论(0) 推荐(0) 编辑
摘要: A.Three Strings 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int N = 1e5 + 7; 5 const int inf = 0x3f3f3f3f; 6 cha 阅读全文
posted @ 2020-02-14 16:57 留幸愉 阅读(232) 评论(0) 推荐(0) 编辑