IOI 2010 - Traffic

Author: Óscar Garries

Official Editorial

C++

C++ Implementation

1#include "traffic.h"
2#include <bits/stdc++.h>
3
4using namespace std;
5const int MX = 1e6;
6const int INF = 2e9 + 1;
7
8int fans = 0;
9
10vector<int> g[MX], nodes(MX), people(MX), children(MX);

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 IOI 2010 - Traffic!