Codeforces Round #415 (Div. 1), problem: (E) Surprise me! Solution in C/C++

By |2017-07-24T17:01:59+00:00July 24th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include<iostream> #include<vector> #include<algorithm> #include<cstring> #include<cstdio> #include<cmath> #include<cstdlib> #include<ctime> #include<queue> #include<set> using namespace std; typedef long long LL; const int N=4e5; int gi() { int w=0;bool q=1;char c=getchar(); while ((c<'0'||c>'9') && c!='-') c=getchar(); if (c=='-') q=0,c=getchar(); while (c>='0'&&c <= '9') w=w*10+c-'0',c=getchar(); return q? w:-w; } [...]