USACO Gold 2016 December - Moocast

Author: Óscar Garries

Official Analysis

C++

C++ Implementation

1#include <bits/stdc++.h>
2
3using namespace std;
4using ll = long long;
5
6const int maxN = 1e3;
7
8vector<int> x(maxN), y(maxN);
9vector<bool> visited(maxN);
10vector<vector<bool>> g(maxN, vector<bool>(maxN, false));

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 Gold 2016 December - Moocast!