D展开全文即可 #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> pll; #define fi first #define se second #define pk push_back #define mk make_pair const ll N=5e2+10, mod=998244353, inf=0x3f3f3f3f3f3f3f3f; ll peo[N], prof[N], pro[N], tmp[N], ans[N], a, b...