USACO December 2016 Gold - Moocast

Author: Óscar Garries

Official Editorial: http://www.usaco.org/current/data/sol_moocast_gold_dec16.html

C++

C++ Implementation

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int maxN = 1e3;
vector<int> x(maxN), y(maxN);
vector<bool> visited(maxN);
vector<vector<bool>> g(maxN, vector<bool>(maxN, false));

Give Us Feedback on USACO December 2016 Gold - Moocast!