This commit is contained in:
Zengtudor 2024-11-24 14:58:17 +08:00
parent bc61588d94
commit a987d9b00a

View File

@ -4,13 +4,14 @@ using ll = int64_t;
const ll maxn{ll(1e6+5)};
ll t,n,m,ind[maxn];
vector<pair<ll,ll>> adj[maxn];
vector<vector<pair<ll,ll>>> adj{maxn};
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
cin>>t;
while(t--){
cin>>n>>m;
fill(ind,ind+n+1,0);
for(ll i{1};i<=n;i++)adj[i].clear();