USACO Silver 2018 January - Mootube

Author: Óscar Garries

Official Analysis

C++

C++ Implementation

1#include <bits/stdc++.h>
2
3using namespace std;
4
5const int INF = 1e9;
6
7vector<pair<int, int>> g[5001];
8vector<bool> visited(5001);
9int k, v, sol;
10

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!

Give Us Feedback on USACO Silver 2018 January - Mootube!