Author: Óscar Garries
Official Editorial
C++
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);
Feel free to voice your thoughts in the comments section.