USACO Silver 2020 January - Wormhole Sort

Author: Óscar Garries

Official Analysis

C++

C++ Implementation

1#include <bits/stdc++.h>
2
3using namespace std;
4
5const int MX = 1e5;
6
7vector<pair<int, int>> g[MX];
8vector<int> ar(MX), component(MX);
9int n, m;
10

Give Us Feedback on USACO Silver 2020 January - Wormhole Sort!

Join the Discussion!

Feel free to voice your thoughts in the comments section.