特判多一点,具体代码有注释 include include include using namespace std;int n, m;int a, b;vector<int>G[101000];void add(int x, int y) { G[x].push_back(y);}</int> int main() { cin >> a >> b; if (a == 0 && b == 0) { cout << 3 << " " << 3 << endl; co...