#include <iostream> #include <cstdio> #include <cstring> #include <queue> #include <cstring> #include <cstdlib> #include <algorithm> #include <map> using namespace std; map<int, int> mapleft; map<int, int> mapright; int map1[100010]; int su...