Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined), problem: (F) Team Rocket Rises Again Solution in C/C++

By |2017-04-07T22:10:19+00:00January 16th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <bits/stdc++.h> #define F first #define S second #define X real() #define Y imag() using namespace std; typedef long long ll; typedef long double ld; vector<pair<int, ll> > g[202020]; int u[202020]; int bc[202020]; int b[202020]; vector<int> fr[202020]; ll d[202020]; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int [...]