三道题比较基础,全程暴力,一个小时全部AC…… 1. 第一题,并查集,处理一下就好。 #include <iostream> #include <algorithm> #include <vector> #include <set> #include <map> #include <queue> using namespace std; map<string, string> pre; str...