Codeforces Round #408 (Div. 2), problem: (F) Sequence Recovery Solution in C/C++

By |2017-04-11T10:29:43+00:00April 11th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <bits/stdc++.h> using namespace std; const int N = 3e5 + 5, inf = 1e9 + 7; int ma[N << 2], lz[N << 2], ma2[N << 2], n; int vma[N]; void build1(int id = 1, int l = 0, int r = n) { [...]