Codeforces Round #425 (Div. 2), problem: (E) Vasya and Shifts Solution In C/C++
#include<bits/stdc++.h> #define oo 0x3f3f3f3f #define cl(x) memset(x, 0, sizeof(x)) #define mp make_pair #define fr first #define sc second #define pii pair<int, int> #define pb push_back #define mo 1000000007 #define maxn 510 typedef long long ll; …