Meanwhile, in a twist, Tesla this month settled a high-profile case in Northern California that claimed Autopilot played a role in the fatal crash of an Apple engineer, Walter Huang. The company’s decision to settle with Huang’s family—along with a ruli…
//新生训练 #include <iostream>
#include <algorithm>
using namespace std;
const int N 5000;
int p[N], sz[N];
int n, m;
int find(int x)
{if (p[x] ! x)p[x] find(p[x]);return p[x];
}
int main()
{int T;scanf("%d", &T);for (int k 1; …